How do I show a help popup window on the iPad? I want to show a modal popup window that grays out the background similar to the email applications "Compose New Mail" app.
I have a method that gets called quite often, with text coming in as a parameter..
I'm looking at creating a thread pool that checks the line of text, and performs actions based on that..
Can someone help me out with the basics behind creating the thread pool and firing off new threads please? This is so damn confusing..
Hey guys,
I've been trying to cross-compile Spidermonkey and I am stuck with the problem wherein prtypes.h(NSPR) is unrecognizable. I alread triedy modifying Makefile.ref/config.mk/jsconfig.mk to point to a desired NSPR/DIS directory. I must have missed some basic steps because it still won't make things work.
Do you have any ideas on how to properly modify the makefiles to point my spidermonkey to the right NSPR libraries?
Thanks!
I want to add twitter oauth just like facebook connect in my site like this site http://mytweeple.com/default.aspx. Need help on this how i can do this.
Regards,
I have added repository and at the time of commit I get error as error: abort: no username supplied (see "hg help config"). I am not getting Mercurial.ini file on my local as well. Does anyone know how I can resolve this error on Fedora?
I've been trying to debug some super slow performance in running my cucumber features. I've run various calls through ruby-prof and think I see the bottlenecks (not too familiar with using ruby-prof) but do not know the cause or more important the solution. I've include below the output from running rake cucumber.
http://dl.dropbox.com/u/1788885/rake_cucumber.txt
Does anyone have any idea why this is happening or how I could go about debugging it further?
Thanks,
Eric
My sample file is like below:
H343423 Something1 Something2
C343423 0
A23423432 asdfasdf sdfs
#2342323
I have the following regex:
if (line =~ /^[HC]\d+\s/) != nil
puts line
end
Basically I want to read everything that starts with H or C and is followed by numbers and I want to stop reading when space is encountered (I want to read one word).
Output I want is:
H343423
C343423
Output my RegEx is getting is:
H343423 Something1 Something2
C343423 0
So it is fetching the whole line but I just want it to stop after first word is read.
Any help?
I'm digging through Akamai logs, downloading excel sheets, and then manually joining them so that I can do sorting of data to find top videos and referrers. Are there any tools you know of to help with this kind of processing? I'm looking for something like Urchin used to be for Apache logs, but for Akamai logs. Thanks!
Hey there,
I just wanted to build my App for submitting it to the AppStore - it includes the widely used three20 framework.
As the Debug Versions on the Dev-Devices worked great, i'm having trouble compiling the project for distribution.
XCode says:
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv6, VALID_ARCHS=i386).
Any idea what's happening there?
I've tried to google it, but i haven't found a solution yet.
Thanks!
Could someone help explain what is going on in this precommit hook? I thought changing files would cause them to be restaged.
http://snipplr.com/view/28523/git-precommit-hook-to-fix-trailing-whitespace/
Hi,
I believe that some one is running shell commands to my server via my site, Could any one offer any help on how the user could be doing this ?
also how could I stop this?
I'm having a really hard time implementing the jquery plugin serialScroll/scrollTo with Keyboard arrows.
Here's the site: http://www.subrb.com/jstest
My JS code is in keyboard.js.
I can't get anything to happen at all.
Thanks in advance
As the author has forgotten to add a detailed usage listing (or I can't find it), I wonder if anyone knows anything about the command-line options accepted by the FernFlower decompiler application.
You can find an online version here: http://www.reversed-java.com/fernflower/
I'm trying to enable/disable all these flags that are present on that webpage.
The actual command-line JAR can be found here: https://github.com/Bukkit/Bukkit-MinecraftServer
Many thanks
Nik
Hi,
Can anybody help me writting a regular expression to replace these characters with a empty string. Character list is given below.
public static char[] delimiters = { ' ', '\r', '\n', '?', '!', ';', '.', ',', '`', ':', '(', ')', '{', '}', '[', ']', '|', '\'', '\\', '~', '=', '@', '>', '<', '&', '%', '-', '/', '#' };
Thanks.
Subrat.
Hi,
I have the following code which recording the scroll Y position in my ListView whenever my activity is paused.
protected void onSaveInstanceState (Bundle outState) {
super.onSaveInstanceState(outState);
int scroll = mListView.getScrollY();
System.out.println (" scrollY" + scroll);
}
But regardless where I scroll my ListView vertically, the value of getScrollY() always return 0. Can anyone please help me?
Thank you.
During the following months I'll have some spare time so I thought of picking up a new programming language.I've been reading some articles about Go and Io and both of them look interesting and very promising so I'm stuck making a decision about which one to pick up next.
I'm mainly interested in distributed systems and concurrency.
Any help is greatly appreciated. Thanks.
i cant seem to get my avd built and i dont understand why i got all the tools i even have GIT but when i try to do the command avd devices it will say no such command can any on help me please and thank you
I have a database containing multiple tables (Person, Parents, etc)
Person table has certain attributes particularly ssn, countryofbirth and currentcountry.
Parents table has ssn, and fathersbirthcountry
I'm trying to output the SSNs of all people who have the same countryofbirth as their fathersbirthcountry and also have same currentcountry as fathersbirthcountry.
SELECT Person.ssn
FROM Person, Parents
WHERE fathersbirthcountry = countryofbirth
AND currentcountry = fathersbirthcountry;
the above doesn't seem to be working, could anyone please help me out?
I'm having a great deal of difficulty trying to figure out the logic behind this problem. I have developed everything else, but I really could use some help, any sort of help, on the part I'm stuck on.
Back story:
*A group of actors waits in a circle. They "count
off" by various amounts. The last few to audition
are thought to have the best chance of getting the
parts and becoming stars.
Instead of actors having names, they are identified
by numbers. The "Audition Order" in the table tells,
reading left-to-right, the "names" of the actors who
will be auditioned in the order they will perform.*
Sample output:
etc, all the way up to 10.
What I have so far:
using System;
using System.Collections;
using System.Text;
namespace The_Last_Survivor
{
class Program
{
static void Main(string[] args)
{
//Declare Variables
int NumOfActors = 0;
System.DateTime dt = System.DateTime.Now;
int interval = 3;
ArrayList Ring = new ArrayList(10);
//Header
Console.Out.WriteLine("Actors\tNumber\tOrder");
//Add Actors
for (int x = 1; x < 11; x++)
{
NumOfActors++;
Ring.Insert((x - 1), new Actor(x));
foreach (Actor i in Ring)
{
Console.Out.WriteLine("{0}\t{1}\t{2}", NumOfActors, i, i.Order(interval, x));
}
Console.Out.WriteLine("\n");
}
Console.In.Read();
}
public class Actor
{
//Variables
protected int Number;
//Constructor
public Actor(int num)
{
Number = num;
}
//Order in circle
public string Order(int inter, int num)
{
//Variable
string result = "";
ArrayList myArray = new ArrayList(num);
//Filling Array
for (int i = 0; i < num; i++)
myArray.Add(i + 1);
//Formula
foreach (int element in myArray)
{
if (element == inter)
{
result += String.Format(" {0}", element);
myArray.RemoveAt(element);
}
}
return result;
}
//String override
public override string ToString()
{
return String.Format("{0}", Number);
}
}
}
}
The part I'm stuck on is getting some math going that does this:
Can anyone offer some guidance and/or sample code?
Please help me to prevent my data from SQL injection.
I have replaced ' with '' (single quote with 2 quote) while doing any operation on sql server.
Please tell me what all i need to do , to prevent my application from SQL injection. my application is in asp.net 2.0
I want calling actionScript 2.0 function from c# , I using ExternalInterface.addCallback;
In flash:
ExternalInterface.addCallback("test", function (text : String) : Void
{
//code
});
in C#: I using shockwave flash object
player.CallFunction("" + "myString" + "");
but error: Error HRESULT E_FAIL has been returned from a call to a COM component. in C#
I using cs4 and VS2008, please help me!
As a self-taught programmer I find myself sometimes thinking how to improve my learning skills.
Are there any books out there that you recommend, that help a self-taught learning aproach?
When I ask about books here, please I`m not reffering about programming books, but something more like metacognition and the process of learning.
Hey all,
I need to query my database table to find which employee has the most support tickets related to them. I can do this just fine using this MySQL query:
SELECT employee_id, COUNT(id) AS number_of_tickets FROM tickets GROUP BY employee_id ORDER BY number_of_tickets DESC LIMIT 1;
How would write this in Ruby-on-Rails?
Thanks very much for your assistance.
I use Ruby version 1.8.6, Rails version 2.2.2 and MySQL Server version 5.0.
I know a little bit of regex, but not mutch. What is the best way to get just the number out of the following html. (I want to have 32 returned). the values of width,row span, and size are all different in this horrible html page. Any help?
<td width=14 rowspan=2 align=right><font size=2 face="helvetica">32</font></td>