0
votes
0answers
3 views

Javascript - Reduce the number of IF statements

is there a javascript select case type function to set a variable how the following code would perform? i see a CASE function but it doesn't really seem that much more efficient from a line number ...
0
votes
0answers
3 views

Correctly formatting data for lstm recurrent neural network in R / mxnet

I want to train an lstm neural net using the mx.lstm function in the R package mxnet. My data comprises n feature vectors, a vector of labelled classes and a time vector, much like this dummy example ...
0
votes
0answers
4 views

How to do a backspace in python

How do I do a backspace in python? I think there is a way using \something but I don't know what. If there are other ways that you know of, I would appreciate the help. Thank you. Also, try edit off ...
0
votes
0answers
2 views

On click Angular function won't work

I want to launch a new page when a cube is clicked using Angular. My code is currently not doing anything when I click the boxes so I might have everything wrong. My on-click function is: $scope....
0
votes
0answers
2 views

Why is github sometimes ignoring my sln and csprol files?

I'm using two computers with Visual Studio Ultimate 2012 and the Github extension for it. There are multiple solutions in the repository. Sometimes after commiting, some the sln and csproj files are ...
0
votes
0answers
2 views

Alamofire Post Request with nested JSON parameters

My Alamofire post request looks like this: Alamofire.request("http://...", method: HTTPMethod.post, parameters: parameters, encoding: JSONEncoding.default, headers: nil) .responseJSON(...
0
votes
0answers
3 views

Rails form runs POST when I need PATCH

I have a rails form that I want to use to edit an answer by running the update action (PATCH), but I keep getting this error: No route matches [POST] "/answers/724" This is the form: <%= ...
0
votes
0answers
5 views

Java Swing - Formatting Tables

So I'm working on a Punnett square project and I just wanted a little help with some formatting in my swing application. What I'm trying to do is have "labels" next to the left of and to the top of a ...
0
votes
0answers
3 views

Legend only affects to one of the linked axes

The following MVCE reproduces a problem that I am experiencing when displaying a legend in a figure that has several axes objects. In order to plot an elevation profile of the terrain I use two axes: ...
0
votes
0answers
6 views

how to activate script if cell value is value

I'm new to coding. I have the following script in google sheets script which works fine. function morningemail() { var doc = SpreadsheetApp.getActiveSpreadsheet(); var sheet = doc.getSheetByName("...
-1
votes
1answer
14 views

Super Simple JQuery Complication … Need insight

Please help me understand the problem in this code. I have tried multiple variations of it to no avail. I can make the code work in Chrome Console, but not hardcoded in. Please note that for my ...
0
votes
0answers
3 views

Render like/unlike form on post

I'm trying to allow users to like/unlike foods on my app. When they click the like button, it should send an ajax request to like the food, and the opposite should happen when they click the unlike ...
0
votes
0answers
2 views

contenteditable for a specific Table span using JS onclick

I have a simple table where I'm trying to allow for the fields to be made contenteditable after pressing the edit button that I am printing next to each value: <table> <tr> <th&...
0
votes
0answers
2 views

Google Chrome content_script not loading JS on matching URL

Even after searching a lot of topics in stack overflow, nothing helped me to fix this error... I'm trying to create an extension, and for now there are simple codes in it, but unfortunately, the ...
0
votes
0answers
4 views

What could be the reason for a Zend Application to works on one machine but not the other?

I have a ZF2 application that is functional on several machines. All running Zend Server. It has been very difficult to hunt down the problem so please ask questions to help get closer to the issue. ...

15 30 50 per page