convert 12 hour time format to 24 hours format from python
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
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?)
Python Simulation Inconsistency
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...
C string behaving strangely when longer than 7 characters
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]
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
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
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?
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
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
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?
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
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
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
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 ...
Does paperclip need FFMPEG to upload videos?
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...