convert 12 hour time format to 24 hours format from python
◷
تاریخ انتشار: 1395/4/1 | ساعت: 12:28
Vote count: 0 from my python code, i got the resulted list like below. list1 = [{'start': 'Mon12', 'end': '3:30'}, {'start': '7', 'end': '10:30'}] Here, i need to convert the above list1 to 24 hrs date format like below. list2 = [{'start': 12, 'end': 1530}, {'start': 1900, 'end': 2230}] How to do th...
Draw curved arrow in delphi
◷
تاریخ انتشار: 1395/4/1 | ساعت: 11:25
Vote count: 0 I want to draw a curved right arrow at TCanvas as shape in Microsoft Word. Does anybody know an working method? enter image description here asked 2 mins agofajar ach Let's block ads! (Why?)
How to find all of a youtube channels videos with the yt gem in rails
◷
تاریخ انتشار: 1395/4/1 | ساعت: 11:25
Vote count: 0 I want a list of all video ids from a certain cha el. I have tried current_user.cha el.videos, but that retu s a lot of stuff. I honestly dont know what to try from here. thanks in advance asked 2 mins agoZaviermiller Let's block ads! (Why?)
Python Simulation Inconsistency
◷
تاریخ انتشار: 1395/4/1 | ساعت: 11:25
Vote count: 0 I have made a simulator using Python for a game called Final Fantasy XII. The purpose of this simulator is to see how much "gil" (in-game currency) you can get from one particular enemy. This should output around 23000 from our experiance, but what happens with this is, it outputs 2400...
Tracking geolocation of other users using google maps in real time
◷
تاریخ انتشار: 1395/4/1 | ساعت: 10:23
Vote count: 0 Since most browsers has HTML5 enabled, tracking the current device and displaying it on the map is possible, however, is there a function for a webapp based device, to update a central database on it's location? My theory is that a user can POST a form to upload it's co-ordianates, but...
Need to get cx_freeze (or Pyinstaller) to pick up Taurus package.
◷
تاریخ انتشار: 1395/4/1 | ساعت: 10:23
Vote count: 0 I can't seem to get cx_freeze to pick up Taurus. Taurus is similar to PyQt and PySide. I designed me GUI with Taurus Designer (similar to QT Designer). Interestingly enough cx_freeze picks up PySide which isn't even used. I think it may be confusing Taurus with PySide somehow. I've tri...
C string behaving strangely when longer than 7 characters
◷
تاریخ انتشار: 1395/4/1 | ساعت: 10:23
Vote count: 0 I am trying to create a program in C which takes a user's input and 'evolves' a random string until it matches the input. So far it works fine on input which is 7 characters or less, but as soon as a user enters 8 characters the program doesn't work. I can't figure out where I am going...
Tile mapping in 2d Array w/ Collision [Visual Basic]
◷
تاریخ انتشار: 1395/4/1 | ساعت: 8:51
Vote count: 0 I have a program that currently maps tiles in a maze format. using VB graphics. I want a picturebox to detect collision with a certain tile,(i.e a 48x48 section of the map) The tiles have been mapped in a 2d array Dim stage = {{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to install poker-eval on CentOS
◷
تاریخ انتشار: 1395/4/1 | ساعت: 8:51
Vote count: 0 Kind of a super noob in Linux here. How do I download poker-eval on CentOS? The default page is this: https://packages.qa.debian.org/p/poker-eval.html which confuses me much. And I also found this via google: https://copr.fedorainfracloud.org/coprs/nibbler/poker-eval/ but I'm confused ...
C++ vector object access
◷
تاریخ انتشار: 1395/4/1 | ساعت: 8:51
Vote count: -1 I am having trouble to access object in c++ vector. The vector is declared to hold custom class. Class is defined as following: class SPMgmt { private: vector<Part> partList; vector<Supplier> supplierList; public: SPMgmt(); SPMgmt(fstream&, fstream&); void listPart(); void listSupplie...
How can I return a called back function?
◷
تاریخ انتشار: 1395/4/1 | ساعت: 7:51
Vote count: 0 I using Angular's $http to get questions, which expects a promise in retu , either success or error: Question.getQuestions().success(function (res) { ... }).error(function (err) {}); In my method, I need to check if token is expired, if so, refresh, then make the request to /questions ...
CakePHP3 Application error with AWS RDS Database
◷
تاریخ انتشار: 1395/4/1 | ساعت: 7:51
Vote count: 0 I initially used a local mysql database for my cakephp 3 application and everything was working as it should. I'm in the process of deploying my cakephp3 application so I created a RDS MySql instance and co ected it to MySql workbench and just copied the database I had before to the RD...
Optimize/simply this SQL query
◷
تاریخ انتشار: 1395/4/1 | ساعت: 7:51
Vote count: 0 I have this query and it works but I know this can be simplified: SELECT class, COUNT(class), publisher FROM books WHERE publisher = 'Company ABC' GROUP BY class UNION SELECT class, COUNT(class), publisher FROM books WHERE publisher = 'Company DEF' GROUP BY class UNION SELECT class, CO...
How to group / bucket data in kibana4?
◷
تاریخ انتشار: 1395/4/1 | ساعت: 6:29
Vote count: 0 I have various fields that i would like to group by and display only the one with the last timestamp. How do i achieve this in kibana-4 in the discover / visualize view? e.g. date-time f.name l.name type Jun 1,2016 A B 0 Jun 2,2016 A B 0 Jun 3,2016 A B 0 Jun 4,2016 A B 1 should only di...
VR Default mode ON
◷
تاریخ انتشار: 1395/4/1 | ساعت: 6:29
Vote count: 0 I embendeded a Youtube with the iframeApi. Now i want to customize it putting the VR (cardboard buton) ON as default. If this happens the stereostopic will work? Thanks, Franco asked 1 min agoVirtual Ventures Let's block ads! (Why?)
Sum of Char string
◷
تاریخ انتشار: 1395/4/1 | ساعت: 6:29
Vote count: 0 I have to write a function to find the sum of the numbers from a string. The sum needs to be printed out for each row in main. I'm using strtok and token to strip off comma's. Then atof to convert string to double. I'm heaving hard time to co ect these pieces togather. #include <stdio....
Bootstrap CSS app container space issue
◷
تاریخ انتشار: 1395/4/1 | ساعت: 5:28
Vote count: 0 I am referencing sample angular2 asp application. Replace app.html with <nav class="navbar navbar-inverse navbar-fixed-top"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="#"> <span class="glyphicon glyphicon-sunglasses"></span> </a> </div> <ul ...
How to extract multiple dates from varchar2(4000) multiline string using sql?
◷
تاریخ انتشار: 1395/4/1 | ساعت: 5:28
Vote count: 0 I have two columns ID (NUMBER), DESCRIPTION (VARCHAR2(4000)) in Origional Table DESCRIPTION column has multiline strings. I need to extract dates from each line of the string and also need to find earliest date. so the result would look like in Expected result table.. Expected result, ...
Query only most recent results for each unique 'unitId' : 'id' combination
◷
تاریخ انتشار: 1395/4/1 | ساعت: 5:28
Vote count: 0 My query retu s a list of objects -- each of which are test reports. A test report contains a unitId indicating which test unit produced the result. My goal is to gather the most recent report for each unit and filter out all of the older reports. Example: The query might look somethin...
Does paperclip need FFMPEG to upload videos?
◷
تاریخ انتشار: 1395/4/1 | ساعت: 3:53
Vote count: 0 I'm using this gem right now: https://github.com/ruby-av/paperclip-av-transcoder. Do i need to install FFMPEG like i did for uploading images (imagemagick)? If I do, i can't seem to figure out how to install FFMPEG since I'm using Nitrous.io, which is a cloud based IDE. I found out how...