Better dao design with Anorm
◷
تاریخ انتشار: 1395/3/22 | ساعت: 12:11
Vote count: 0 I'm working on a code base has lots of singleton daos which getting a new co ection from pool in each method with DB.withCo ection then executes block. Dao methods use Anorm parsers to parse result set. There are some cases each dao method run some other dao methods in anorm parsers to...
OBJECTIVE-C: How to call/reference "reportScores:withCompletionHandler: " in ViewController.m? (GameCenter reporting scores)
◷
تاریخ انتشار: 1395/3/22 | ساعت: 9:33
Vote count: 0 New iOS developer here so this is likely an easy question! Here is the code I am using for my Game Center(See below, copied from Apple's Documentation). I have it under my ViewController.m. My question is, how do I "call" or "reference" this in the "-(void)viewDidLoad" in order to repo...
Why am I receiving DOUBLE double quotes in my JSON?
◷
تاریخ انتشار: 1395/3/22 | ساعت: 9:33
Vote count: 0 I have an ASP.NET 2015 community web project. I am trying to use JavaScript to read JSON passed back from the backend. This was coded in VS 2013 and worked. When it failed on my machine, I noticed that the JSON that was being created has double double quotes. I had thought this was a d...
Mysql historical stock price database schema
◷
تاریخ انتشار: 1395/3/22 | ساعت: 9:33
Vote count: 0 I am creating a table with 7,000 stocks and historical end of day prices for the last 7 years or 1,400 days of data. I need to query stock prices frequently as of a specified dates (say 30 days ago, 1 year ago or 6 years). Additionally, I need to keep adding data everyday and keep drop...
Yodlee fastlink - receiving error responses trying to invoke iFrame
◷
تاریخ انتشار: 1395/3/22 | ساعت: 8:20
Vote count: 0 I'm looking to render Yodlee Fastlink in an iframe on a rails app and encountering issues similar to those in the question here, which don't seem to have been fully addressed in responses. I have closely followed the instructions in the Yodlee Fastlink guide, and successfully obtained ...
Movement not working AS3
◷
تاریخ انتشار: 1395/3/22 | ساعت: 8:20
Vote count: 0 I'm currently working on a game and am fairly new to as3. I'm stuck on the character movement i was following a guide and ended up with this as my code. when i test the game it just plays the character animation and i cant control it. package { import flash.display.Stage; import flash....
how can i solve the gcc problems in Debian ? when i am apt-get install gcc find one qustions ?
◷
تاریخ انتشار: 1395/3/22 | ساعت: 8:20
Vote count: 0 i'm using gcc command try to complier files in Debian terminal , then tu back : zsh: command not found: gcc so i'm tried sudo apt-get install gcc. The following packages have unmet dependencies: gcc : Depends:gcc-4.7(>=4.7.2-1~) but it is not going to be installed Recommends: libc6-dev...
FMXBroadcastReceiver (Android) is broken in Delphi XE10? What changed since XE7?
◷
تاریخ انتشار: 1395/3/22 | ساعت: 6:46
Vote count: 0 To work with USB-devices (on Android-devices having USB-host) one has to use BroadcastReceiver. I have found a demo (https://github.com/freeonterminate/delphi/tree/master/BroadcastReceiver). I have tested it on Delphi XE10. Wasted a lot of time to make it work until I discovered that d...
distributed data reader across multiple machines
◷
تاریخ انتشار: 1395/3/22 | ساعت: 6:46
Vote count: 0 is there any distributed data reader for TensorFlow? if not, what is the suggested way for handling big datasets over multiple machines? The distributed inception example here pre-segments the data over multiple machines and then each workers grabs its subset of data from available sub...
Karma Coverage not finding files (angular2 / typescript)
◷
تاریخ انتشار: 1395/3/22 | ساعت: 6:46
Vote count: 0 I am working on getting an app set up using Angular 2 w/ typescript and I'm having issues getting my karma coverage to find the files I want it to inspect. I've set this up successfully on an angular 1.x application but there seems to be another layer I'm missing with typescript. Every...
python numpy vectorize duplicated
◷
تاریخ انتشار: 1395/3/22 | ساعت: 5:25
Vote count: 0 In my python 2.X/3.X code, I am mapping an array arr using a function func, so I do def func(i): .... print(o) retu o output = numpy.vectorize(func)(arr) When I look at the printout, the output of the first element is printed twice! Has anyone else seen that behavior? Is that bug? Than...
How to get certain text from a url links
◷
تاریخ انتشار: 1395/3/22 | ساعت: 5:25
Vote count: 0 So im trying to get all the statistics in the statistics box page on the url page for each team. An example of what the page looks like is on the hyperlink I put below. Im trying to have if so it prints out; month : win % month : win % All time: win% But I am not to sure how to write t...
Laravel Project Folder Location Apache
◷
تاریخ انتشار: 1395/3/22 | ساعت: 5:25
Vote count: 0 I created a new laravel project in /var/www/html/project with: cd /var/www/html laravel new project My apache config file has the following: DocumentRoot "/var/www/html" ... <Directory "/var/www/html"> When I go to my website homepage I don't see the welcome page. Shouldn't this defaul...
what is the encryption algorithm used in ejabberd. What is its equivalent in PHP?
◷
تاریخ انتشار: 1395/3/22 | ساعت: 4:03
Vote count: -1 I see that there is some kind of encryption that is done in ejabberd, specifically, in the modules, cyrsasl_digest. I am wondering what is it ? md5() ? What is the php equivalent of that encryption? Thanks! asked 2 mins agosad Let's block ads! (Why?)
"Expand All" button in a drill down report canceling another feature
◷
تاریخ انتشار: 1395/3/22 | ساعت: 4:03
Vote count: 0 I have a main report that shows a bar chart for the sales per country. once I click on a country bar, a drill down report shows a (+/-) list of all countries toggled by the country name, with only the clicked country expanded, while the others are collapsed. I was asked by the client t...
how to convert number in parenthesis to negative sign in datatable in c#?
◷
تاریخ انتشار: 1395/3/22 | ساعت: 4:03
Vote count: 0 Below code is only converting positive values to 2 decimals. I also need to convert negatives values that are enclosed in brackets ( ) to 2 decimals. if (dr["Market Value"] != DBNull.Value) { dr["Market Value"] = Convert.ToDecimal(dr["Market Value"]).ToString("#.##"); asked 2 mins agoR...
Accessing a property in a child class which has been modified by a parent class method
◷
تاریخ انتشار: 1395/3/22 | ساعت: 2:54
Vote count: 0 I am working on an application and I have run into this dilemma. Below is a very simplified version but I am wondering if its possible Example: class A{ public $test = null; public function method1(){ $this->test = 'finished'; } } class B extends A{ public function getMethod1Test(){ re...
Most efficient data data structure for array with 2 different types
◷
تاریخ انتشار: 1395/3/22 | ساعت: 2:54
Vote count: 0 Working in Java with multidimensional arrays which have 3 columns of two data types - Column1 can be of any primitive data type, Column2 and Column3 are integers of the same size. We have thousands of these arrays with many lookup and comparison operations so we would like to see if th...
C Transmitting file, concept for Server/Client loop
◷
تاریخ انتشار: 1395/3/22 | ساعت: 2:54
Vote count: 0 Send: do { filep = ftell(file); if(filesize <= buffsize){ fread(buffer, 1, filesize, file); ts = UDT::send(socket, (char*) buffer, filesize, 0); }else{ fread(buffer, 1, buffsize, file); ts = UDT::send(socket, (char*) buffer, buffsize, 0); } if (ts == UDT::ERROR) { cout << "sendfile err...
Access to unlisted twitch VOD
◷
تاریخ انتشار: 1395/3/22 | ساعت: 1:36
Vote count: 0 I'm making a best of my twitch lives, but I don't have access to my really old replays. I would like to know if they are deleted or just unlisted. Is there a way to find them? asked 10 mins agoNucktrooper Let's block ads! (Why?)