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.
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!
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 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?
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 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.
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?
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.
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'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?
I want to do this:
foo.com/xxx= foo.com/somepage.php?id=xxx
This is how I do it:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^([^/]+)$ http://foo.com/somepage.php?id=$1 [L]
the problem now, is that foo.com doesn't work any more.
I can't see foo.com neither foo.com/index.php
help me! :)
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
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.
Hi all,
I am using a following query in MySQl for fetching data from a table. Its taking too long because the conditional check within the aggregate function.Please help how to make it faster
SELECT
testcharfield
,SUM(IF (Type = 'pi',quantity, 0)) AS OB
,SUM(IF (Type = 'pe',quantity, 0)) AS CB
FROM Table1
WHERE
sequenceID = 6107
GROUP BY testcharfield
I have to tables as follows;
Employees: Name nvarchar(50), Job Title nvarchar(50) and Salary int.
Employers: Name nvarchar(50), Job Title nvarchar(50)
I would like to select every item from the 'Employers' table where 'Job Title' does NOT show up in the 'Employees' table.
I know this is a simple query but it has me stumped.
I'd be grateful for any help. Thanks.
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!
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>
I think I heard this quote referenced on a .Net Rocks podcast but I can't find it in the transcripts. I believe it was an old quote, possibly not directly related to software but can certainly be applied to software. I believe the person who said it has a wikipedia page.
Please help me remember.
Thanks
Hi,
I was reading somewhere that with MEF I can simply drop a dll into a directory and my application (with some MEF magic) will be able to read it and execute the code in it?
Hopefully only classes that implement an interface that I define??
Can someone help me to get going, with some links maybe for my problem.
I've looked through some of the docs, but nothing seems to be what I'm after and its tricky when I don't know exactly what to search on...
Thx
S
Hi All,
I am trying to compare to textbox values on an aspx form. Both the values represent dates. The are formatted like "dd/MMM/yyyy". How can I compare them in javascript to see if they are not equal and which one is greater etc... Does javascript have a date constructor for strings like this? Any tips would be appreciated. Thanks for the help.
Cheers,
~ck in San Diego
I am working on improving website performance. Here are the list of key performance indicators I am looking at for each page
Total Bytes downloaded
Number of requests
DNS look up time
FirstByte Download time
DOM content load time
Total load time
Is there any optimum value for each KPI to indicate website performance? Please help me in this regard.
hi all,
I want to implement Dicom using JAVA.
And also i should not use any existing API and i have to develop from the scratch.
I spent almost 10 days in understanding DICOM itself,i got some vague idea
so kindly help how implement it in java , where to start,architechture etc...
Regards,
Sam
I am new to programming PHP and am trying to validate a field in a form.
The field if for a RAL color code and so would look something like : RAL 1001.
so the letters RAL and then 4 numbers.
Can someone help me set them into a regular expression to validate them.
i have tried this with no success:
$string_exp = "/^[RAL][0-9 .-]+$/i";
What can I say but sorry for being a complete NOOB at PHP.
Cheers
Ben