Call to a member function query() on a non-object
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
5:39
Vote count: 0 I'm getting this fatal error when trying to execute a insert query. Here in DaoUsuario.php line 27 -> $banco->query($queryInsert); My code: Index.php <?php if($_POST['botao']){ $nome = $_POST['nome']; $sobrenome = $_POST['sobrenome']; $cpf = $_POST['cpf']; $usuario = $_POST['usuario'];...
TypeError: Cannot read property '$$hashKey' of undefined
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
5:39
Vote count: 0 I have an object retu by http post in angular var altest = { //here I have an empty object prepared to be extend Detail: {} getVacanshitDetail: function(passdata) { var self = this; $http.post(Constants.API.baseUrl).success( function(response) { console.log(response); angular.extend(se...
Socket using mysql message queue is considered realtime?
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
3:22
Vote count: 0 Im using PHP and ratchet, im dealing with how i can create an event from the serverside and push it to the clients. I know i can use ZeroMQ, but this will also create an overhead, each time an event has to be notify, a new socket co ection is made. So i was wondering, wouldnt it better...
Overriding methods of form controls
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
3:22
Vote count: 0 I was wondering how I can override the default methods of form controls? This question arose from the following goal: I have a picturebox. When I call its .Refresh() method, it will do some procedures under the hood, including triggering the picturebox's Paint event. Basically I want t...
Simulating a coin flip experiment in Python
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
3:22
Vote count: 0 I am having trouble getting a program to work properly. The goal is to simulate a coin flip as follows: Consider a random sequence of numbers: epsilon_1, epsilon_2, ... , epsilon_N. Each term in this sequence takes on values +1 or -1, depending on the outcome of the coin toss experimen...
Trying to find the circular reference in my django urlpatterns using django-subdomains?
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
0:20
Vote count: 0 I'm getting a the url conf correct for my web app, and I'm at a loose end. I think the idea behind django-subdomains is that the subdomain routing is stored in the SUBDOMAIN_URLCONFS ROOT_URLCONF = 'creativeflow' # A dictionary of urlconf module paths, keyed by their subdomain. SUBDOMA...
Integrate Firebase Database with FCM
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
0:20
Vote count: 0 Is there a way to integrate the Firebase real time database with the newly introduced Firebase Cloud Messaging services ?I am building an app which uses the the Firebase realtime database for storing data. I want to notify my users using push notifications for every new insert in the d...
Detect collision between sprites in Xcode using Swift
◷
تاریخ انتشار:
1395/4/21
|
ساعت:
0:20
Vote count: 0 I have a problem in my code. I'm creating a Game and I need to have a sprite that can appear multiple times at the same time, to do so I created a class so I can do addChild(obstacle) multiple times and it will spawn one SKSpriteNode exactly similar to another. My problem is that I wan...
Change font style from SQL valuw
◷
تاریخ انتشار:
1395/4/20
|
ساعت:
22:46
Vote count: 0 Here's the thing: Let's say that I'm creating a database for a football season. There are two columns: player1 and player 2, and a third one wich I will call it "flag". What I need is that if the flag is on "1", the text for the player1 change to bold and the player2 remain normal or v...
How to use tesseract OCR using scala
◷
تاریخ انتشار:
1395/4/20
|
ساعت:
22:46
Vote count: 0 I have millions of images and I have to take the text out of them. I have searched about OCR(Optical Character Recognition) APIs and found tesseract to be one of the best. I am supposed to do it using scala and Spark. Can anyone please provide an example on how to use tesseract API usi...
Effectively forward porting changes of core theme: Git Three Way Merge with Core Changes?
◷
تاریخ انتشار:
1395/4/20
|
ساعت:
22:46
Vote count: 0 I am working on Magento (not asking this on magento.stackexchange.com because it is more git related). Sometimes it is unavoidable to change files from core theme. It works (simplyfied) like this That is the core file: vendor/magento/module-theme/view/frontend/templates/message.phtml I...
How to apply random.uniform to two columns of a dataframe?
◷
تاریخ انتشار:
1395/4/20
|
ساعت:
21:37
Vote count: 0 How to apply random.uniform to two columns of a dataframe? df = pd.DataFrame(np.random.randn(6,4),columns=list('ABCD')) def f(x): retu random.uniform(x[0],x[1]) df['E'] = f(df[['A','B']]) asked 1 min agoMartin This entry passed through the Full-Text RSS service - if this is your conten...
Error in fortran code?
◷
تاریخ انتشار:
1395/4/20
|
ساعت:
21:37
Vote count: 0 **hello everybody i have received a fortran code, i don't know that which version of fortran is it?? part of this code is here: PROGRAM CSTGRD PARAMETER(IP=51,JP=100,NX=35,NY=61,LX=500,LY=500,IPW=25,IPE=25, 1 JPS=25,JPN=25,JPT=(JPS+JP+JPN),IPT=(IPW+IP+IPE) 2 ,NPR=(10*(NX+NY-2)+1),NSEC=...
backbone list bind to collection
◷
تاریخ انتشار:
1395/4/20
|
ساعت:
21:37
Vote count: 0 I am trying to understand how a collection passed in to a view is being referenced and used. There does not seem to be any reference to the collection, but it's models are being used. Also, I'm unable to get the collection items to be bound/displayed when I use my collection that is bo...
Executing External Programs in pascal
◷
تاریخ انتشار:
1395/4/20
|
ساعت:
20:32
Vote count: 0 hello i want open program with below code but i cantprogram launchprogram; uses Classes, SysUtils, Process; var AProcess: TProcess; begin AProcess := TProcess.Create(nil); AProcess.Executable:= 'C:Program Files (x86)oCamoCam.exe'; AProcess.Parameters.Add('-h'); AProcess.Options := APro...
How does the callback to the servers `request event` work in node.js?
◷
تاریخ انتشار:
1395/4/20
|
ساعت:
20:32
Vote count: 0 I am trying to use a curried fn with a closure as a callback to the servers request event. It works the first time a client makes a request (the html is sent and diplayed) but the second time the page is blank. Does node erase the closure after calling the cb once? // server.js var pyp...
Webstorm 11 doesn't recognize NPM but the cmp does
◷
تاریخ انتشار:
1395/4/20
|
ساعت:
20:32
Vote count: 0 I use windows 10 and the CMD does recognize any NPM command but the terminal of the Webstorm doesn't. The Node.js and Node.js interpreters in the plugins are activated. Webstorm 11 nmp -v 2.15.8 node -v 4.4.7 Any idea what I need to do? asked 43 secs agoElior Sastiel Let's block ads! (...
make python code more expressive (FSM, CFG, moands)
◷
تاریخ انتشار:
1395/4/20
|
ساعت:
19:28
Vote count: 0 Here python code. Simple request with user login (i remove some details for clea ess): def process_request(request): if post: validators_map = (('email', (validators.v_required, validators.v_email,)), ('password', (validators.v_required,))) has_errors, errors_map = validators.validate_...
Value passed to servlet is coming as null in extjs4.2.2 - java servlet
◷
تاریخ انتشار:
1395/4/20
|
ساعت:
19:28
Vote count: 0 I am new using ExtJS. I have created a login form, on Submit the parameter values should be passed to Servlet. Even the servlet is getting called, the value passing is null. Attaching the code snippet below, please help me in debugging the error. login.js Ext.application({ name: 'test-...
redirect_stderr does not work (Python 3.5)
◷
تاریخ انتشار:
1395/4/20
|
ساعت:
19:28
Vote count: 0 #! python3 from contextlib import redirect_stderr import io f = io.StringIO() with redirect_stderr(f): # simulates an error erd As seen above, I have used the redirect_stderr function to redirect stderr to a StringIO object. However, it doesn't work, as the error message is still print...