Force verbose error report
Vote count: 0 Once ru ing my test I faced this: =ERROR REPORT==== 29-Jul-2016::01:34:22 === ** Generic server <0.141.0> terminating ** Last message in was {send_req, {{url, ***************, *****************,443, undefined,undefined,"/api",https,hostname}, [{"X-API-Version","0.5"}, {"Accept","*/*"}]...
Python error: Cannot import name KafkaConsumer
Vote count: 0 I installed the kafka-python package for Python. I have a kafka producer and consumer ru ing. I want the python code to read the kafka topic and print out the messages. My python code is below: import sys from kafka import KafkaConsumer def kafkatest(): print "Step 1 complete" consumer...
pygame.error: Couldn't open mp3
Vote count: 0 Here's the code for something I was testing out to put in a game I'm creating. I made this code to try to make the music loop over and over again. Here: from pygame import mixer mixer.init() mixer.music.load('C:\Users\owner-\Dropbox\Programming\Zelpha808\music.mp3') def play(): timer =...
Comparing number cast to string in str list
Vote count: 0 I have a list of string numbers and a counter inside a for loop. If the counter is in the list I do something, like this: codes = ['123','1245','564','8920','57498'] f = open('path_to_file','r') for lineno, line in enumerate(file, start=1): if str(lineno) in codes: print str(lineno) + ...
angular $http request to API endpoint error?
Vote count: 0 I am trying to utilize angular's $http.jsonp() method to access data about a Vimeo video at an arbitrary url, say https://vimeo.com/176329517. I want a reliable way to pull the video id for a video, so I figured accessing Vimeo's API endpoint would be the most flexible way to go. Any i...
Loading whole pages with ajax in wordpress
Vote count: 0 Im having a problem loading pages in wordpress with ajax. I have to make animated page transition, so i decided to use ajax and put page content into a div which i will animate into view. I created this logic, that works 50% of the time. There are generally a lot of weird bugs. So my q...
Nearest Neighbors in CUDA Particles
Vote count: 0 I'm trying to reimplement (and modify) CUDA Particles for OpenCL and use it to query nearest neighbors for every particle. I've created the following structures: Buffer P holding all particles' 3D positions (float3) Buffer Sp storing int2 pairs of particle ids and their spatial hashes....
Storing and Reporting on data retrieved from an API
Vote count: 0 I have a very high-level, generic question related to the retrieval of data with an API, the storage of that data, and the ability to report off of the data. My background is primarily on the database side with a specific focus on reporting out of Crystal. That being said, I'm fairly g...
Beautifulsoup select by css
Vote count: 0 How do I get the href in this html structure: <ul id="ul"> <li> <a href="/index.html" class="a"> </a> </li> </ul> Knowing that I need to select exactly what is in the href and that there is other elements nested inside the li tag asked 29 secs agoJulien Fadel Let's block ads! (Why?)
Regex to exclude special characters in first name
Vote count: 0 I have a requirement to exclude special characters in first and last name of the fields . The special characters are :- “ ", / < > I'm using @Patte a otation on the field name , Please let know the correct regex for the field or where i'm going wrong? Please find my code below :- @NotE...
Handling round screen on regular Android
Vote count: 0 I have a smartwatch with round screen that is ru ing regular Android 5.1 (not Android Wear). My layout is getting cut off on the sides and would like to adjust it so everything fits on the screen or make a separate layout. Is there a way to achieve this on regular Android? I've been re...
CSS: make drop-down menu as wide as top bar
Vote count: 0 I've made a top bar that contains drop-down MENU button on the right side. But this drop-down content has exactly the same size (width) as my MENU button. Finally - my goal is to make this drop-down content as wide as the top bar is. My HTML code looks like this: <div id="top-bar"> <di...
Extracting Unique Rows From Join Based On Oldest Date
Vote count: 0 I have have a MYSQL query to join 3 tables together. There is an events table and for each event there are a number of dates. I am trying to create a query so that it pulls out each event and only the start date for that event. Now with the query below it fetches the results but I have...