Hello,
I understand how POST works but if for example the following request is made:
GET /index.jsp?page=home
How do I get get this in a MVC form?
Thanks
Hi,
I'm having a problem with NSUserDefaults. I've followed the steps in the books as closely as I can for my app, but still get the same problem.
I am getting a
*** -[NSUserDefaults integerForKey:]: message sent to deallocated instance 0x3b375a0
error when I try and load in the settings. Here is the code that I have, it is in the App…
Hi,
I'm trying to adapt a bash script from "Sams' Teach Yourself Linux in 24 Hours" which is a safe delete command called rmv. The files are removed by calling rmv -d file1 file2 etc. In the original script a max of 4 files can by removed using the variables $1 $2 $3 $4.
I want to extend this to an unlimited number of files by using a…
I've got an Eclipse (Galileo) project (called ProguardBuilder) that runs Proguard over a set of class files in other projects and produces a jar file.
I'd like to have the ProguardBuilder project get rebuilt any time any class file in the other projects changes. AutoBuild doesn't do that; presumably it's smart enough to recognize…
I'm currently using a modified CSS Cacheer as an alternative but its syntax is somewhat vague and adoption is, well, abysmally low... Documentation is hard to come by as well.
I'm looking to switch to SASS as it has a bigger user base than CSS Cacheer and better documentation. I am aware of phpHaml but it doesn't have support for…
I am working in Flash Builder 4 with Google Map's ActionScript API. I have created a map, loaded some custom markers onto it and added some MouseEvent listeners to each marker.
The trouble comes when I load an InfoWindow panel. I want to dynamically set the htmlContent based off of information stored in a database. The trouble…
I have seen this topic discussed several times, but emphasis is on "very good in-line-comparison" here, which was not really covered by those threads.
E.g. I would like the tool to recognize and highlight that the resource "colorpicker_newstring" has been added when comparing the following two blocks. WinMerge and Kdiff both…
Hi!
I searched before I ask, without lucky..
I looking for a simple script for myself, which I can search for files/folders. Found this code snippet in the php manual (I think I need this), but it is not work for me.
"Was looking for a simple way to search for a file/directory using a mask. Here is such a function.
By…
Man, I am still not able to save a picture when I send an intent asking for a photo to be taken. Here's what I am doing:
Make a URI representing the pathname
android.content.Context c = getApplicationContext();
String fname = c.getFilesDir().getAbsolutePath()+"/parked.jpg";
java.io.File file = new java.io.File(…
Essentially I want to have a script execute when the contents of a DIV change. Since the scripts are separate (content script in chrome extension & webpage script), I need a way simply observe changes in DOM state. I could set up polling but that seems sloppy.
I'm considering writing a console application in C# and I want to incorporate history, completion and command line editing features something like GNU readline (but not necessarily as extensive as that!)
Is there an existing library for .net which provides this type of functionality? I guess one option would be to use…
I am working on a .NET project which uses Microsoft SQL server. In this project, I need a CLR stored procedure (written in C#) that uses a remote web service. So, when the stored procedure is executed on the SQL server, it makes web service calls and thus sends packets to a remote location. The problem is that when…
We are seeing bad behavior in an application when it runs on Server 2008 (not R2). This is a WinForms application, and Control.MousePosition is returning {0,0} no matter where the mouse is on the screen... Control.MousePosition just makes a P/Invoke call to Win32 api GetCursorPos().
There is a control in our…
I am puzzled by generics. You can declare a field like:
Class<Collection<String>> clazz = ...
It seems logical that you could assign this field with:
Class<Collection<String>> clazz = Collection<String>.class;
However, this generates an error:
Syntax error on token ">",…
Hello,
I was wondering if should one could explain in detail how chains work in rainbow tables as though you would a complete novice but with relevance to programming.
I understand that a chain is 16 bytes long. 8 bytes mark the starting point and 8 mark the end. I also understand that in the filename we have…
When somebody shares a Spotify playlist, the attachment is missing from the Graph API.
What is shown in Facebook:
What is returned by the Graph API:
{
"id": "********_******",
"from": {
"name": "*****",
"id": "*****"
},
"message": "Refused's setlist from last night's secret show in…
Can I configure mod_php, XDebug, or Eclipse (or some other free program) to print to file the code that is executed? And if so can I limit it to function calls to keep it somewhat readable?
Hey,
Im sure I am missing something here but none the less.
foo['bar'] = nil
if(foo['bar'] == nil)
puts "foo bar is nil :("
However, nothing happens? Any thoughts?
I have downloaded, compiled and installed so far:
apr-1.3.9
apr-util-1.3.9
sqlite-3.6.23
zlib-1.2.4
libtool-2.2.6b
Now after downloading subversion-1.6.9, the config works fine but compiling it will end with the following error:
cd subversion/svn && /bin/sh /root/subversion-1.6.9/libtool…
I've got a YUI AutoComplete control, works great. Except that I'd like it to expand the list of suggestions as soon as the user selects the input box. How do I make that happen?
Right now expansion doesn't happen until the user hits a key in the box.
When you use
git rm --cached myfile
it doesn't delete from the local filesystem, which is my goal. But once you commit the changes, push them to a central repository, then pull them into another yet another repository it still deletes the file from that system.
Is there a way to just remove…
I am trying to update an ms access database from a datagridview.
The datagridview is populated on a button click and the database is updated when any cell is modified.
The code example I have been using populates on form load and uses the cellendedit event.
private OleDbConnection connection…
You have a sequence of functions to execute. Case A: They do not depend on each other. Which of these is better?
function main() {
a();
b();
c();
}
or
function main() {
a();
}
function a() {
...
b();
}
function b() {
...
c();
}
Case B: They do depend on successful…
I currently have an application which uses a regular ListView with groups to show a bunch of modules.
I would like to use a Category view. Category view is the new view introduced in Windows Vista for the Control Panel:
Is there a third party control or a way (via API) to create a…