Writing a Numa load balancer
-
تاریخ: 1395/5/12 ساعت: 15:43
Vote count: 0 I have some applications that I start with the Windows START command. With the option /AFFINITY I force the processes on all cores of a Numa node. I want to include some load-balancing logic (so that e.g. the first application is started on node 0, the next on node 1, the next again on...
Model class : how to build a model using PDO's prepared statements syntax?
-
تاریخ: 1395/5/12 ساعت: 15:43
Vote count: 0 I want to build a model class for my PHP application. It will have methods meant to select/update/insert/delete specific data from a database according to the method's parameters. I only want to use prepared statements. Here is an overview of what the class should look like : class Dat...
Does youtube data API live streaming support multi track audio?
-
تاریخ: 1395/5/12 ساعت: 15:43
Vote count: 0 Does YouTube data API supports multiple track audio streaming? I've a live streaming solution which can do broadcasting to YouTube. Was looking for adding multiple audio tracks. So I wanted to know if YouTube supports multiple audio tracks. I could not find any such details in YouTube ...
routing is not working with angular js
-
تاریخ: 1395/5/12 ساعت: 14:40
Vote count: 0 As a part of lea ing process, I am roaming around angular js routing concepts.. for this I created one i er folder inside app with two sample test html pages .. when i run the app it should load first page from that folder but it does not not happening .. I am not sure where i have don...
Database table not created in Moto G3 device
-
تاریخ: 1395/5/12 ساعت: 14:40
Vote count: -1 I have a DB with 5 tables, and all of them are created in all the devices I tested, but in Moto G3 device the unique one isn't created and I can't find the answer. The other 4 tables are created correctly. In all the others devices this table is created without problems and I'm able t...
What happens if you delete AppDelegate in a new project?
-
تاریخ: 1395/5/12 ساعت: 14:40
Vote count: 0 Just curious what happens if you remove the AppDelegate.swift file. asked 23 secs agoBright Future Let's block ads! (Why?)
Event checking if message (post) is read/unread
-
تاریخ: 1395/5/12 ساعت: 13:25
Vote count: 0 I'm curious is there a way in javascript/jquery or php to check if a message/post is read/unread by the user; or has the message box site changed ? I'm thinking about implementing notifications system similar to facebook one - so that any new post/message will add to the title a number...
MapView does not load properly inside fragment. Strange behaviour on Google PLay services 9.4.0
-
تاریخ: 1395/5/12 ساعت: 13:25
Vote count: 0 I am using MapView inside a fragment. Now it does not load. (Or to be precise, it loads but it does not load. Yes, its weird, pics attached.) Here is the code : @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the ...
Spark streaming job scheduling controlling window?
-
تاریخ: 1395/5/12 ساعت: 13:25
Vote count: 0 I have a problem where in spark streaming i am only conce ed about last 1 minute so I have written my code accordingly Now sometime due to various resource my scheduled batched got piled up like this INFO JobScheduler: Added jobs for time 1470046240000 ms INFO JobScheduler: Added jobs ...
MySQL: Case Query within a Case Query?
-
تاریخ: 1395/5/12 ساعت: 11:27
Vote count: 0 I have a query that gets unit count and it tagging if completed or not. SELECT distinct location, case when id is NULL then 'Not Started' when '1' then 'Completed' else 'In Progress' end as Remarks, count(name) as CountName FROM table group by location, case when id is NULL then 'Not S...
UIStackView not hiding parts of subviews created during rotation
-
تاریخ: 1395/5/12 ساعت: 11:27
Vote count: 0 I have a custom "button" (not a UIButton subclass) in a stack view in the header area of my main view (see images). The header shows an image, labels, and the custom button on the first page, and only the title on subsequent pages. I re-create my pages during size changes (rotation, mu...
Separate cookie storage for two UIWebView
-
تاریخ: 1395/5/12 ساعت: 11:27
Vote count: 0 I want to login many accounts of same site in different webView. For example i have Tab Bar Controller That contains three View Controllers and each View Controllers contain webView. And for example i embed stackoverflow url for webView in every class. How user can login to different a...
Swift Get Every Frame From Camera and Modify With CIImage
-
تاریخ: 1395/5/12 ساعت: 9:45
Vote count: 0 I have seen many tutorials that show how to place the live camera image on the screen, but I want to modify the images with a CIImage. I have taken a look at this, but couldn't find out if that would work. I am assuming that to do this, I need to take every frame, modify it, and then p...
Angularjs factory calling a function: TypeError: function is not a function
-
تاریخ: 1395/5/12 ساعت: 9:45
Vote count: 0 I'm trying to call another function within my factory but i get this error. i did what others said in this link. i could not find the problem. where did i go wrong? Thanks! .factory('UserPreferences',function(Http,ngDialog,Notification){ var settings = {} retu { authenticated: false, s...
MongoDb group sum by month unable to execute aggregate
-
تاریخ: 1395/5/12 ساعت: 9:45
Vote count: 0 I have an aggregation script which at the last stage results in the following output. I now want to group and sum by account category but it's telling me that I am somehow trying to convert from BSON type EOO to Date - which I ca ot see in my code anywhere. { "_id" : { "party_uuid" : "...
access yahoo finance data with oauth
-
تاریخ: 1395/5/12 ساعت: 8:22
Vote count: 0 I'm trying to access yahoo finance data via oauth so I can make more requests. I got a php library to do this: https://github.com/isaacs/authentipede Unfortunately, I can't seem to get permission. Here is my code: <?php echo '<p>HEY IM GREG</p>'; $ff = 'abocym6j4p6'; $my_var = file_get...
Paragraph element forces text to jump to next line when I shrink the browser window?
-
تاریخ: 1395/5/12 ساعت: 8:22
Vote count: 0 I have a normal paragraph element within the body element, which contains multiple lines of text that when the browser window is shrunk, forces the text to the jump to the next line. I don't want this to happen but for it have a defined and constant structure of how many lines the text...
JavaScript function not returning variable
-
تاریخ: 1395/5/12 ساعت: 8:22
Vote count: 0 I'm trying to get the ID of a signed in user in Google Chrome using a separate function, however the gaiaId variable always seems to be 'undefined' even though userId contains the ID (I checked). How do I retu the id from the function that's called? function getGaia(){ chrome.identity....
Can't get pivot table to work from 2 tables
-
تاریخ: 1395/5/12 ساعت: 7:17
Vote count: 0 Below is an example excel that I can't get to work correctly. I have 2 different sets of data in 2 different tables each. One set of data I made from scratch and successfully made a Pivot table (from 2 tables) that shows the information in the way I want it to. The other Pivot table th...
Ionic2: platform.is() response is undefined
-
تاریخ: 1395/5/12 ساعت: 7:17
Vote count: 0 I'm using the native Bluetooth serial library and trying to mock data for testing in the browser. By experimentation (and a little reading) it seems that the way to do this is to check for the 'cordova' platform: export class BluetoothServiceWrapper implements OnDestroy, OnChanges { .....