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 need help converting a VB.NET handles statement to C#. This is the VB
Private Sub ReceiveMessage(ByVal rr As RemoteRequest) Handles AppServer.ReceiveRequest
'Some code in here
End Sub
i have a vb6 code i want to use http://ndde.codeplex.com/ , pleasehelp me convert to c#
thanks
Const TOPIC_SENSOR As String = "SeeLane|Sensor"
Const TOPIC_GATE As String = "SeeLane|Gate"
Const TOPIC_PIN As String = "SeeLane|Pin"
Const ITEM_SENSOR_ACTIVATE As String = "Activate"
Const ITEM_GATE_OPEN As String = "Open"
Const ITEM_PIN_ON As String = "On"
Const ITEM_PIN_OFF As String = "Off"
Private Sub Form_Load()
On Error GoTo NO_DDE_SERVER
lblCar.LinkMode = vbLinkNotify
lblLaneId.LinkMode = vbLinkManual
lblName.LinkMode = vbLinkManual
lblAuthorized.LinkMode = vbLinkManual
lblFile.LinkMode = vbLinkManual
lblConfidence.LinkMode = vbLinkManual
lblType.LinkMode = vbLinkManual
MsgBox "Ket noi voi thanh cong voi SeeLane !!!"
Exit Sub
NO_DDE_SERVER:
MsgBox "Khong the ket noi voi SeeLane !(Xem chuong trinh co chay khong?)."
Exit Sub
End Sub
Private Sub lblCar_LinkNotify()
On Error Resume Next
lblCar.LinkRequest
lblLaneId.LinkRequest
lblName.LinkRequest
lblAuthorized.LinkRequest
lblFile.LinkRequest
lblConfidence.LinkRequest
lblType.LinkRequest
CheckAuthorized
lblLaneId.Caption = lblLaneId.Caption + 1
End Sub
Private Sub CheckAuthorized()
Dim i As Integer
i = lblAuthorized.Caption
i = i + 1
If lblAuthorized.Caption = 1 Then
lblPoke.LinkTopic = TOPIC_GATE
lblPoke.LinkItem = ITEM_GATE_OPEN
lblPoke = Chr(lblLaneId.Caption)
lblPoke.LinkMode = vbLinkManual
lblPoke.LinkPoke
End If
End Sub
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'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!
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?
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?
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.
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 need to add different values for each option tag in my collection_select cause Im trying to use this jquery plugin.... How do I do that?
Heres my collection select code
<%= e.collection_select(:id,State.all,:id,:name) %>
The output should be something like
<select name="state[id]" id="state_id" class="selectable">
<option value="">-- select --</option>
<option value="1" title="florida">Florida</option>
<option value="2" title="georgia">Georgia</option>
</select>
Pleasehelp.
Hi Geeks,
I am using a QStackedWidget on my mainWindow. The firstPageWidget on stackedWidget contains 3 buttons. Now If I will press the first button on firstPage, I want the stackedWidget show the 2nd Page widget. Following are the details
I tried to connect like this in my mainwindow
connect(firstPageWidget->button1,SIGNAL(clicked()),stackWidget,SLOT(setCurrentIndex(int)));
Now I want to know how to pass the value of index number to stackWidget to set currentIndex?
If my question is not much clear please tell me I will explain more.
Hey everyone,
I have a dillema where our client relations department has been brought in for advice on UI and I vehemently disagree with it...even though I don't consider myself a designer at all. While I have been vocal about my disagreement about it, I've been asked to point to design standards to prove that what I'm saying is correct and that the guys in Client Relations are flat out wrong.
A mockup is below, I'm trying to argue that the icons of the airplane, boat, and couch (ya, I didn't choose those either) belong in the header of the page (same area as the logo) and not in the content area of the page. Can anybody pleasehelp me by pointing me to something that helps prove my point?
Thanks a lot,
Greg Andora
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?
Hi All,
I'm trying to work out a query that self join itself on a table using the eventnumber. I've never done a self join before.
What i'm trying to query is when a client has started off in a city which is chester to see what city they moved to. But I dont want to be able to see if they started off in another city. I would also like be only see the move once (So i'd only like to see if they went from chester to london rather then chester to london to wales)
The StartTimeDate is the same EndDateTime if they moved to another city.
Data example as follows if they started off in the city chester :-
clientid EventNumber City StartDateTime EndDateTime
1 1 Chester 10/03/2009 11/04/2010 13:00
1 1 Liverpool 11/04/2010 13:00 30/06/2010 16:00
1 1 Wales 30/07/2010 16:00
the result I would like to see is on the 2nd row - so it only shows me liverpool.
Could anyone point in the right direcetion please?
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>
Hi,
<a href="#"><img src="http://www.google.com/intl/en_ALL/images/logo.gif" onClick="alert('hi')"/></a>
In the above code, i am appending a javascript onclick method to the image tag. When I click the image once and I press back, it should go back to the page it came from. Instead its staying on the same page. Is there any way I can avoid that? (probably set something else instead of href="#"). The reason I set href="#" is to make my cursor turn into hand, other than that it has no use.
This is occuring in FIREFOX, IE it works fine
Pleasehelp. Thanks.
Hey all, I have been doing nothing but web development over the last few years and haven't written any Java or C++ in what feels like forever. I don't necessarily need to use these languages, so I'm entirely open to suggestion. I was given an email list by a client to import into their mailchimp account yesterday and unfortunately, Mailchimp couldn't read the file. It's a text file, but I don't believe it's tab delimited (which would make this much, much easier for me).
A small portion of the file (I've changed last names and email addresses) can be viewed here: http://sparktoignite.com/patients.txt
If anyone has suggestions on how I can get this into a Mailchimp readable format (csv, tab delimited txt, excel) please let me know. I feel like 3 years ago I would've been able to do this in a matter of minutes, but given that I haven't touched anything other than RoR, PHP, and jQuery for the last few years, I don't know where to start.
Thanks!
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! :)
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 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.
Hey im a noob in flash cs3 and i want to create a jeopardy game where when a button is pressed we go in to the main question scene and when we come back the button the we pressed is now disabled via 'button._visible=flase'...pls any help...any suggestions or links to tutorials or tutorials from you guys or girls will grateful thanx...