Newest Questions

Q&A for professional and enthusiast programmers

SQL nested aggregate wage by quarter

I am trying to aggregate wages for worker for 8 quarters. As columns, have employee id quarter (1 digit int) year (4 digit int) quarterly_wage year_quarter (string i created from quarter and year) ...

Transform JSON Data into a timetable

I have an API that is a large JSON file from a URL, what I'm attempting to do is create a timetable out of it. I've gotten as far as being able to print certain sections of the JSON file but I can't ...

why my javascript code doesnt behave as I expect

The if statement doesn't work, it goes to the else statement, even though the colors match Can you please tell me where's the bug? var colors = [ "rgb(255,0,0)", "rgb(255,255,0)", "rgb(0,255,0)", "...

Adding jar files to tomcat directory

I have created a web project in Eclipse which includes mysql connector for jdbc. Everything works fine when I run application in Eclipse. However, when I set up the project under Tomcat, mysql jar is ...

Best way to Re-Use a Cursor in PL/SQL

I'm building a program that will repopulate an Employee's new record based on his/her old records. Just a sample concept: x_table holds the employee records. Record with ID 1 is the initial record and ...

Can't get the username id in the url Django

Here is my view.py def Profil (request, username): user = User.objects.get(username=username) return render(request, 'blog/Profilvisitor.html', {}) And here the index.html <a href="{%...

what is the battery driver function and power_supply class function?

I will make battery driver for fuel gauge. I have some questions. what is the battery driver function(eg. stc3117_battery.c, MAX17040_battery.c)?? Just, battery driver function is battery parameter ...

Uncaught Error: Call to a member function bind_param() on boolean

I'm getting this error when trying to import data into my editor to edit my blog post. Uncaught Error: Call to a member function bind_param() on boolean this is my PHP code $stmt = $db-...

MATLAB - How the MATLAB train function works

enter image description here I am confused with how the MATLAB train function works. I divide my data into TRAINING / VALIDATION / TESTING using 0.7/0.15/0.15 split. Using the train function, does ...

making array of alpha char with c++ cipher

i want to get word from user and put it at array [5][5] by sequence and then after adding this word adding alpha char with out the char of this word(Playfair cipher)

R Does knncat normalise data?

I am performing a knn analysis of some data. I have both categorical (with more than 2 factors) and continuous data. I found a package that accounts for this situation (knncat) but there's very little ...

Delphi trouble kbmmw on iOS platform

I developed mobile client on iOS with KBMMW Pro. It connected with windows 2012 server. I tested it with WiFi it works. When I run it through the mobile internet, it doesn't work. Error: Project ...

Bitbucket repository started returning “remote: Too many invalid password attempts. Try logging in through the website.” (403) since yesterday

Since yesterday, bitbucket repository started returning this on any request: remote: Too many invalid password attempts. Try logging in through the website. fatal: unable to access 'https://...

How to get optimum exposure time

I am pondering how to set the correct exposure time for image acquisition in TEM mode. I found the following script that ought to be usable but did not really see how to use it: image src = ...

Auto start video recording

I was using following code to start video recording public class Main2Activity extends AppCompatActivity { private Button record; @Override protected void onCreate(Bundle savedInstanceState) { ...

AutoHotKey not sending special characters

I have a fairly simple script that is not sending special Polish characters. The script: <^>!e::SendInput {Raw}asdęasd I expected to get asdęasd every time I pressed AltGr + e, but instead ...

Read Files From Dropbox through Mirth

I have a requirement where I need to read the HL7v2 files stored in sites like dropbox. One way to do this is to download the file from that site and access it via SFTP through Mirth. But that ...

erlang - is it possible to output the list length after having it run a quicksort?

I'm a newbie to Erlang. I've been running a quick sort on a random list of numbers (i've also had it only keep unique numbers so duplicates do not show up in the sorted list). It works fine in that ...

Convert text column, with several formats, to date column in MySQL

I have a column, named 'ActionTime' with varchar entries of the following format, either: '14/02/2016 5:05' or '14/02/2016 15:05' I want to create a query that will return a new column with the ...

How do I prevent this formatting in visual studio Code?

When I press Option+Shift+F Changes to I neither want the space before : nor the line wrap to next after . How do I prevent this?

How to rerun a failing job automatically in talend?

I am new to talend (less than a month) i hope can get some help. I am testing a job that migrate a huge amount of data from an oracle database into salesfroce, the job works fine but sometimes due ...

Instanciate a bean with singleton scope

When the bean below will be instanciated ? <bean id="a" class="Someclass" lazy-init="true" scope="singleton"/> Does Spring ignore the "lazy-init" attribute in this case (because we use ...

How to add Laravel We Application on Facebook TAB

I am working with Laravel 5.4. 1) I add the Website. enter image description here and all it's okay for the moment. 2) Try to open the website on facebook, got this error enter image description ...

Recyclerview some images will not show without setIsRecyclable(false)?

I have a recyclerview that shows some itens. Inside every item I have a imageview with a like buttom. I added setIsRecyclable(false) because some images was not appearing in my cardview when I ...

SQL Interview Test

Having been given the following question as part of an interview I am keen to know the optimum solution. The question has been edited so that it is not identifiable. Question Table 'transactions' ...

panel background image only shows EVT_SET_CURSOR

dear all: I have been working fruitless in animation with wxpython. Is it just that wxpython is not suitable for animation ? I created a frame and then a panel in the frame. The panel is for the ...

Apply class on checkboxes collection

I would like to add a class on each instance of my collection. This is my checkboxes collection : .cov-pick-row.w-row = f.input_field :inspiration_image_ids, :collection => @...

draft.js: Initiate contentState from props

I am trying to initiate the contentState of a draft.js editor with data from props. const processedInput = convertFromRaw(this.props.toEdit.content) this.setState(EditorState.push(this.state....

Return outputs of a function to a dictionary

I have a function which can return a variable number of outputs. I would like to save this to a dictionary like so: val_dict={} idx = 0 for key in some_test_function(1,2,3): val_dict[idx] = key ...

User signup with username in Devise

In my app I updated devise to use :username instead of :email as validation like described in the documentation. I want :username to be unique but :email to be not unique. Registration with :...

Spark Cassandra connector join on clustering key

Im trying to run a spark job on a fraction of my data in Cassandra. I have in hand a RDD of keys (partition and clustering columns) and I would like to run my job only on those keys. type ...

Undefined index with (is_numeric($POST[ [duplicate]

I am using a php form which will get the cid from the URL. e.g records.php?cid=23 But I am getting the error Undefined index of cid in the following line. if (is_numeric($_POST['cid'])) if (...

vb.net devexpress datagridview add values in rows

I have Devexpress Grid control in my form, I would like to add values in rows manually, but when I entered value in cell after press enter, I see nothing in cell. I do not understand why, do we need ...

How can I create a parameter which choosing a number of top of values

I've created a report in SSRS 2008. The report contains fields: Number of requests, Organization of the initiator How can I create a parameter which choosing a number of top of values from field ...

Laravel 5.4 database connection

I have a problem with laravel 5.4 conection with database. I made changes in cofig/database file and when I try to migrate I recive 1045 error. > 'mysql' => [ 'driver' => 'mysql'...

Purpose of “%matplotlib inline”

an absolute noob here. Could someone explain to me what exactly is the use of this line - %matplotlib inline ? Thanks in advance.

How to pause charging for Elastic Beanstalk?

I have simplest version of PHP elastic beanstalk server. It has single virtual machine EC2 instance and it, in turn, has gp2 volume attached. In order to pause charging, should I just stop EC2 ...

Redirect loop response in route middleware laravel

I've problem with my laravel route. I create my custom middleware for my web, but when I tried to go to login page the browser said "ERR_TOO_MANY_REDIRECTS" I've tried to check my custom middleware ...

C compiling “undefined reference to”? [duplicate]

I have a C code like this: #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <time.h> int sumofinpoint=0; int numofpoint=0; void *montecarlo(int number) { ...

sftp file upload with python - avoiding file renaming

I want to create a python script that enables me to upload files in a specific folder via sftp. The directories are allways the same. This is what I came up with: import pysftp import os import ...

Superagent Sending undefined auth header

I have an expressjs api set up with basic auth using this method: .use(function (req, res, next) { var auth; if (req.headers.authorization) { auth = new Buffer(req.headers....

Character encoding when reading a csv file

I am reading a list of urls from a csv file and am getting these 'AC0' etc. for where there are hyphens in the url. I have tried using .encode('utf-8') etc but not had any success so far. with open('...

apply bouncing effect & rotation on moving image along x-axis android studio

public class MainActivity extends AppCompatActivity { Animation_Layout animation_layout; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ...

How to load up documentation with Sphinx on a debian server

I'm quite new to Sphinx side. I have read some stuff about it on Sphinx official documentation site and I have follow these steps for install and configure it on my debian wheezy server: I have ...

Javascript requestAnimationFrame - HowTo stop program running and wait until drawn?

I wrote a small program in javascript where a person is basically moving over a field hunting mushrooms, after every move (N,E,S,W) i want to redraw the whole canvas and i also want to see it on my ...

How to send content of variable out of anonymous function

I would like to send the name of a file out of the function that I can emit the output and send to another component. I tried with a prototype but I couldn't solve it. file(file: File): void { ...

Playground execution aborted: error: Execution was interrupted, reason: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)

var str = "Hello, playground" let newTypeString = NSString(string: str) // here is the error // NSString(string: String)

OpenSSl library for Android

Where it is possible to download OpenSSL library for Android 7.0? From this subject I took for Android 6 Error "Could not load SSL library" on Android with TidHTTP

Mapping sub domains in Tomcat

My webapps directory in Tomcat currently looks like this. webapps/ | -CR/ | -HW/ | -SWC/ I have the webapps folder with three subfolder, CR, HW and SWC I want www.mydomain....

Local module descriptor class for com.google.firebase.auth not found spamming in Logcat

I built now since 4 Weeks a Chat App and my Problem is the Firebase Notifications don't arrive after the phone isn´t used for 2 Hours or more. If it works , the logcat doesn't show this message: "W/...
15 30 50 per page
Translating... 0%