Uzi Z

1

votes
3

answer
123

views

Building unirest request without maven

I'm been trying to learn unirest and apparently, I'm stuck with the situation of learning how to compile it without using maven. Below is what I've learned so far since most of the tutorials I've found is teaching unirest with maven. I'm not sure what else I missed but this is what I got so far: imp...
Uzi
1

votes
1

answer
982

views

Slow opencv resize function execution time

I am facing a slow execution time of the FIRST usage of the opencv (3.0) resize funtion (using visual studio on Windows). The following simple program shows the problem: int _tmain(int argc, _TCHAR* argv[]) { DECLARE_TIMING(ttt); START_TIMING(ttt); cv::Mat tmp1=cv::Mat::ones(100,100, CV_8UC3); cv::M...
Uzi
1

votes
2

answer
84

views

Substring with inconsistent length

I have this quite long string that contains multiple information. So I guess we can say that its a couple of fields concatenated together without any delimiters. I understand that to make this work, all of the lengths of the fields should always be fixed. However, two of the fields represent a name...
Uzi
1

votes
2

answer
56

views

Put unirest string response into a hashmap

I have a string response from a unirest request that I made and I was wondering if I could put the result into a HashMap for easier access of the response fields. Any suggestion will be helpful. Here is a sample of the response: { 'access_token':'HzDzAtlom6CDqRa0zPetH09hZbDr8tm__hPw7aCx2m0h0gnGwHMaK...
Uzi
2

votes
4

answer
44

views

Javascript: Searching substring pattern and returning found string

I have a string composed by several fields. Two of which will always vary in length. I could simply use substring if all fields have fixed lengths. Sample: 48001MCAbastillas2200800046300017100518110555130000123 The fields are divided like this: 480 | 01 | MCAbastillas | 2200800046300017 | 100518 | 1...
Uzi
2

votes
4

answer
305

views

Whats wrong with these SQL statements?

Problem 1: Using the SQL CREATE TABLE statement, create a table, MOVSTARDIR, with attributes for the movie number, star number, and director number and the 4 acting awards. The primary key is the movie number, star number and director number (all 3), with referential integrity enforced. The director...
Uzi
2

votes
0

answer
387

views

Stream microphone input to HTML5 using c#

I want to capture an audio source such as mic or sound card using c# and stream it to a remote HTML5 application preferably using the HTML5 'Audio' tag. I don't want to use browser plugins (such as VLC or Flash) I need the latency to be minimal. Thanks! Uzi
Uzi
2

votes
2

answer
3.7k

views

wix: running external msi before installation begins

my application requires the microsoft visual c++ redisributable package (vcredist_x86.exe). i have a custom action to run the vcredist_x86.exe i want it to run only if it's not already installed. i created a registry search to check it. the question: how do i run this action with the check? when usi...
Uzi
2

votes
3

answer
72

views

testing methods that accept Class arguments

I'm trying to figure out how test a small library I'm working on . Using this simplified method as an example: private int countMappableFields(Class type) { int mappableFields = 0; Field[] fields = type.getFields(); for (int i = 0; i < fields.length ; i++) { if (FieldHelper.isMappable(fields[i])) ma...
Uzi Z
1

votes
2

answer
873

views

How query from another database that is in another machine/server

I've been looking for answer to this but I can't seem to find the right answer online and my problem goes like this. I'm trying to query a set of records from another table which is in an another database installed in a different machine. To make it clearer: My stored procedure is running on IP: 192...
Uzi
2

votes
1

answer
380

views

Django SQL Select logs - why do I see so many of them?

I'm trying to understand how many SQL select queries each request on my app requires (Django+Tastypie). I changed the logging configuration so I can see the relevant logs. For some reason I see a vast number of these logs. For example, for simple get_list - I see ~100 select lines. When I tried to d...
Uzi
6

votes
1

answer
613

views

Detect if other player left unintentionally (e.g. internet disconnection) and reconnect - Google play real time multiplayer

I am implementing google play game service real time multiplayer. Currently if I turn off the WIFI on one client the other client doesn't detect that the connection is lost. No PeerDisconnect events are called. 1 - Does the API provide anything to check if the peer is still connected? 2 - Is there a...
Uzi
1

votes
2

answer
479

views

Parts of mesh become invisible at certian angles Unity3D

I am importing an fbx model but parts of it are invisible in the scene And game at certain angles. Attached image SS-1 = the full model - You can see that some parts of the mesh are invisible Attached image SS-2 = closeup of an invisible mesh selected Attached image SS-3 = Main Camera Settings Attac...
Uzi
3

votes
4

answer
735

views

Profiling for Django + Tastypie

What is the best tool to do profiling on a Django app that uses Tastypie (all responses or JSON, so django_toolbar is no good in this case)?
Uzi
2

votes
8

answer
12k

views

Access VBA remove CR & LF only from the beginning of a text string by searching for them

I need to remove line breaks from the beginning of a memo type records. I dont want to use the replace function as it would remove all line breaks from the record which is not desired. Its only the line breaks at the beginning of the field that I am interested in removing. Furthermore, the my record...
uZI
4

votes
2

answer
785

views

Visual Studio 2010: using a winforms user control in a VSPackage Tool Window

when creating a simple VSPackage with a Tool Window a sample WPF user control is created and added to the Tool Window. Must this user control be of WPF? i have a winforms user control and, when adding it to the tool window it's not getting displayed. tried hosting it in WPF with no success. is there...
Uzi
2

votes
3

answer
3.1k

views

Placing popup window in the middle of the main window

I'm trying to place a popup window (TitleWindow) in the middle of the main application window. how do i set the coordinates of my popup window to be of the main application window? i tried the localToGlobal function but with no luck, I just can't get the main window x and y. Thanks in advance, Uzi.
uzi orgad
2

votes
1

answer
250

views

'pandas' has no attribute 'read_csv'"

I have been using pandas for a while and it worked fine but out of nowhere, it decided to give me this error AttributeError('module 'pandas' has no attribute 'read_csv'') Now I have spent many many hours trying to solve this issue viewing every StackOverflow forum but they don't help. I know where...
Lil Uzi Codes
2

votes
0

answer
109

views

define multiple mongos instances in a spring data mongodb project

we have a HA deployment of mongodb including multiple shards and 2 mongos nodes. all access to the underlying mongod instances is done via these mongos nodes. my question is if there is a possibility to configure these 2 mongos instances so spring-data-mongodb will either load balance between them o...
Uzi
3

votes
2

answer
154

views

Pass dynamic params to IIFE

I've got this issue with passing a variable to an IFFE. did some reading, still didn't figure it out. would really appreciate some guidance here. i have a click event handler function that gets a certain ID from the DOM when clicked. i need to pass that ID to an IIFE that IFFE needs to either add/r...
Uzi
11

votes
1

answer
1.3k

views

Django Test Database looks empty while test is runnin

I have a Django project that uses local PostgreSQL server. I'm using a debugger to debug some weird bugs that I have. While the debugger is stopped on one of the tests, I tried to look at the test database. I see this new database (test_project1) and all the schemes are defined as they should be. Bu...
Uzi
2

votes
2

answer
75

views

How to print all jar results into a file using bash script

I've been trying to do this simple script that I wrote where it runs an executable jar file that I made. The command of the script are as follows: #!/bin/bash msisdn=$1 java -cp /home/support/phuzca/Migration/PostpaidXMigration_lib/ -jar /home/support/phuzca/Migration/PostpaidXMigration.jar $msisdn...
Uzi
0

votes
1

answer
26

views

How to run executable jar file with multiple external libraries in linux

I've been trying to run an executable jar but somehow it returns an error that my class is not existing. I tried to search the web on different ways to run it and I have tried the following so far: java -cp Unirest.jar:lib/* java -cp Unirest.jar:/home/appstemp/phuzca/lib/ java -cp Unirest.jar;/home/...
Uzi
1

votes
0

answer
36

views

How to cancel match request before onRoomCreated event triggers? Google Play Services - Real Time Multiplayer

How to properly cancel a realtime multiplayer match if the user cancels the match before onRoomCreated is triggered? At this time there's no room id to call leaveRoom. GPGMultiplayer.startQuickMatch (1, 1); Right after this the user presses cancel for some reason now how do I cleanup?
Uzi