Call jQuery on from apply
Vote count: 0 I am writing a small library that will take care of adding and removing events. I am simply attempting to pass the parameters of a method to jQuery on. Is there any reason that I should not be able to do this? # within some object ... on: (el, args...) -> $(el).on.apply(this, args) The...
Call from URL showing blank records
Vote count: 0 I have an option menu (selFilter) that filters a MYSQL query. The option menu choice is used in a link to filter a second PHP page. export.php?recordID=<?php echo $_POST['selFilter'];?> My option menu: <select name="selFilter" id="selFilter" onchange="formFilter.submit()"> <option valu...
Array element modification behaves wrong
Vote count: -1 I have an array filled with default strings, and I'm trying to replace part of the characters in the default string at random position. If I do something like this, I will have all elements in the array changed: arr = ["*"] * 10 arr[0][0..2] = "aaa" arr # => ["aaa", "aaa", "aaa", "aaa...
Assigning memory
Vote count: 0 I'm trying to assign memory por double *r[3] Whenever I try this way it keep failing: #include <cstdio> int main(){ int N = 10; double *r[3] = new double[N][3]; delete r; retu 0; } How is the correct way? asked 1 min agoLuciano Robino Let's block ads! (Why?)
Wordpress Customized Months Achieve Template
Vote count: 0 how can i create category page for month post view with next prev pagination which will redirect to next prev month page . http://www.vermontadaptive.org/wp/calendar/ this is page link i need this page dynamic. Users can navigation by MONTH using < PREVIOUS and NEXT. asked 1 min agoRus...
c# REST Service with XML and stream as parameters
Vote count: 0 I am trying to unit test wcf REST Service that accepts both xml content and stream parameter. The rest service call when it accepts just file name (instead of XML) and stream it works fine but passing xml contents through the URL it fails. The reason for XML is there is lot more inform...
How to align the C# label in the style of Linux booting
Vote count: 0 I am using Visual Studio 2015, developing winform program. I would like to have a C# label to make the item names in the left while the results aligned to right. Just like the booting information demonstration of some of Linux distributions as below: In Console.Write(), seems the Strin...
Concatenate multiple list
Vote count: 1 I would like to know how to concatenate several list using a loop. Here is an example of what I'm trying to do: object MyObj { var objs = Set ( MyObj("MyObj1", anotherObjList), MyObj("MyObj2", anotherObjList) ) val list = List.empty[AnotherObj] def findAll = for (obj <- objs) List.conc...
Algorithm for finding highest volume sales
Vote count: -4 I have some data such: Date, item, amountSold 22-3-14, shampoo, 20 22-3-14, polish, 2 23-3-14, noodles, 5 23-3-14, sausage, 5 23-3-15, candy ,20 How would I create an algorithm to find out the greatest volume of sales on a given day. So the most amountSold basically. I was wondering h...
How to write multiple lines to a output file in C?
Vote count: 0 I am new to file write/read operations in C programming. Is there a solution to write all printf() which is on the below, to my output txt file? I could not write all the lines to my txt file. for(i=0;i < n;i++) if(i!=startnode) { outputFile = fopen(myOutputFile, "w"); printf("nCOST of...
Converting Byte Array to String Then Back to Byte Array?
Vote count: 0 I guess I have two parts to this question, I have a company logo, which is saved as a byte array in my database. I want to load the Byte array (logo) into the cookie as I want to display the logo on my _layout pages. So is this a good approach? if not want other option(with example) co...
Sending a custom ArrayList through an Intent
Vote count: -2 I'm having a problem when working with custom ArrayLists and trying to move them between activities. First I've declared a custom ArrayList in my first activity: private ArrayList<String[]> dataArray = new ArrayList<String[]>(); Where each element of the ArrayList is an array of Strin...
Populate a tableview with section category
Vote count: 0 I want to populate a data in uitableview. I have a different sections with different category and each category contains different number of rows. - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { retu allCategory.count; } - (NSString *)tableView:(UITableView *)tableV...
Bootstrap: Fixed left nav but able to scroll
Vote count: 0 I have a left nav and overflow the page already.What I want to do is the nav won't be able to overflow but it can be scroll and my content <div> won't be affected.But I don't want to use iframe.Is it possible to do? http://www.bootply.com/69848Similar with this example, but I want the ...
UITextField return key next bug
Vote count: 0 There's explanation of quistion title Here's part of code of InputViewController: class InputViewController: UIViewController, UITextFieldDelegate { private var firstResponderTag = 0 ... func textFieldDidBeginEditing(textField: UITextField) { firstResponderTag = textField.tag } func te...
Laravel run composer / git commands within controller
Vote count: 0 is it possible to run composer or git commands from within a controller in Laravel? Something like that: class TestController extends Controller { // public function shell(Request $request){ if($request->isMethod('post')){ $data['output'] = shell_exec('composer update'); // or some git...
Refactoring (large) switch statement in procedural code?
Vote count: -1 Code characteristics: Written in PHP (but suspect code author had more background with assembly code...) Imperative, almost procedural. 3 500 lines of code in single file Switch takes 2 000+ of those lines Code is written in imperative non-procedural style inside case statements No te...
Python's not A or A%B
Vote count: 0 I understnd 0 stand for false and 1 stand for true, so 'not 1' means false and 'not 0' means true, but for sth like 'not 3' 'not 4'...., why they mean false? because 'not 3' could have a chance of being '1'. asked 2 mins agolxdthriller Let's block ads! (Why?)
Ping between a Chat application and SMS
Vote count: 0 I am thinking of developing a chat module in a web application where a customer wants to chat to the administrator through the chat module. The twist here is the message the customer shoots from the chat application should to be sent to the phone of the administrator through SMS and he...
R : Visualize correlated words against one or more words
Vote count: 0 I have a corpus of 11 text documents. I have found word associations using the commands: findAssocs(dtm, c("youngster","campaign"), corlimit=0.9) findAssocs(dtms, "corruption", corlimit=0.9) dtm is a document term matrix. dtm <- DocumentTermMatrix(docs) where docs is the corpus. dtms i...