-
Stack Overflow All Questions
-
Super User All Questions
-
Web Applications All Questions
-
Area 51 Discussion Zone All Questions
-
Programmers All Questions
-
Meta Stack Overflow All Questions
-
Ask Ubuntu All Questions
Pass value from jquery to rails form's hidden_field
I have jquery which renders a value inside an html element <div id="serialsNewFormatted"></div> Which is nothing but a number/integer. Now I want to pass value rendere inside the above …
How to insert shopping cart date into database?
I'm doing an online Food Ordering System and it has the add to cart function. Below is my cart function code. I would like to insert the data added into the cart by customer into the database to be …
'is' operator behaves differently when comparing strings with spaces
Started learning Python (python 3.3) and was trying out the 'is' operator. I tried this: >>> b = 'is it the space?' >>> a = 'is it the space?' >>> a is b False >>> …
C# properties usage
No, this is not another question about WHY we should use properties in C# :) I'd like to know what's the main difference between private string _name; public string Name { get { return _name; } …
mongodb find on nested objects
I have many documents with the following structure: { _id: ObjectId("519af935c1a9f8094f0002aa"), messages: [{ message: "Message A", timestamp: 1369130219638 }, …
Non blocking read and blocking write on Posix PIPE
I'm writing Client-Server application using posix FIFO to communicate. Both client and server are single thread and single process application. The server is design to handle multiple clients. Each …
How do I access a file inside an OSGi bundle?
I am new to OSGi and created an OSGi-bundle which I run in the Apache Felix OSGi-container. There is a file resource contained in the bundle, which I need to pass to a method as a java.io.File. To ...
Rename selected sheets with names from a list
I have to rename my selected sheets (tabs of sheets) continuously in order to keep them updated with new additions i.e. sorting them based on new names, numbers or other criteria. I have made a ...
add an intent in a java code in android
I have to call an intent at addgroup() when the if condition is satisfied but not able to do so.Kindly help. It is not showing any error but the game crashes at the point when we try to call an ...
How to set a layout that blocks the buttons of the layout that's below it
Let's say I have some views in this structure: <RelativeLayout> <ImageView android:id="@+id/below"></ImageView> <ImageView android:id="@+id/above"></ImageView> ...
2D array of 2 cells lists
my question is next: I'm trying to implement an minesweeper so i have a 2d array, where which cell holds ['H',' ']. When i try to update the second value in a selected rowXcol it updates all values …
Can I make a PHP function to create text input fields?
So I'm going to be making a couple forms with multiple text input boxes, so I figured making a function to help automate this would be a good idea. Below is the function I've come up with: however, …
RuntimeException using Camera.open()
This is likely an advanced question since I have a a fair bit of experience with developing camera apps for Android and have the basics right. On some phones, when calling Camera.open(0); I get a …
sublightcmd.exe 4.0.2 works fine manually, not when a batch file is used
Error occured. Login failed: WrongUsernameOrPassword SublightCmd.exe downloadbatch "C:\Path\To\Videos" "*.mkv" "en" /recursive:true /skipRecentlySearched:false /username:"user" /password:"pass" …
Passing session variable across functions in codeigniter
I am trying to access session variables from different function while storing them in a different function. Following is the prototype of what i am trying to do: public funtion1() { $data=(some ...
JS to replace spaces in a string to '+' and pass as Google Seach link
I am linking a text to Google Search. I have to replace the spaces in text with '+' and pass it in href attribute to link with google search, i am pasting the code here and also on jsfiddle please ...
Namespaced API's and resource routes
I have my API in a versioned namespace, namespace :api do namespace :v1 do resources :posts end end but now when I have my controller do a redirect_to @post I get a route error for Post ...
Python concatenate n dictionnaries with highest value
I would like to create a new dictionary from dictionaries. all keys in all dictionaries must be present in resulting dictionary all keys must be present only once value for key is highest value from …
How to include full-path in Rails 3 link_to statement?
I am trying to put a Rails link_to statement inside a Mailer email that includes the full-path (ie - http://localhost/contacts/id/confirm). The link_to statement that I am trying works in my standard …
How to backup mac data using ubuntu
Suddenly my mac mini hard drive crashed and I am trying to save data from Macintosh HD 2 in my usb using ubuntu. I am able to mount Macintosh HD 2 but getting this error You do not have the ...
jQuery/Javascript slideshow not changing image
this can be found on http://adamginther.com, when the Canucks icon is clicked. The Canucks icon is the third icon underneath "information architecture and usability. I am trying to create a jQuery …
Statically compile pdftk for Heroku. Need to split PDF into single page files
So we're using heroku to host our rails application. We've moved to the cedar stack. This stack does not have the pdftk library installed. I contacted support and was told to statically compile it for …
How to test a spring controller method by using MockMvc?
i'm using spring 3.2.0 and junit 4 This is my controller method which i need to test @RequestMapping(value="Home") public ModelAndView returnHome(){ return new ModelAndView("Home"); } ...
GooglePlay services set appID programmatically
I know that you can set com.google.android.gms.games.APP_ID through AndroidManifest. But is there a way to set it programmatically, through some Builder or something similar?
How to Cycle Through Background Colors on Hover with jQuery
I'm trying to make a div that cycles through background colors when hovered over with the mouse. I've figured out how to make the background color switch to a color value from a set of values on ...
JavaScript object properties count limit, deleting oldest updated ones
I would like to implement a size limit for JavaScript objects and their properties count. What I need is to delete oldest updated one when a new property is added to an object. Consider the following …
Best way to define private methods for a class in Objective-C
I just started programming Objective-C and, having a background in Java, wonder how people writing Objective-C programs deal with private methods. I understand there may be several conventions and …
problems loading local html file from assets folder
I'm trying to load html file from assets folder on listview item click. the problem is, on click it shows the clean page, inspect of html file. here is a fragment of code. public static ListView ...
Get close window button in asp.net C#(server side)
I want to get the [browser] close button event in my web app. I know how to get it client side by javascript but there are some problems within. Is it possible to get this event server side in my web …
jquery mobile google maps setDirections(response) layout
cant find out how to fix this layout issue: when google maps discription contains too long text it looks like on first image. layout in <li class="swipe_list" id="directions"></li> ...