Hey guys, i'm a bit of a new programmer taking a class.So in my code what im trying to do is to select three random numbers, and see if it matches with the numbers that the lottery throws out. The problem is where the 1st number and 3rd number selected randomly show up fine, but i have no idea on how to get the 2nd number to show up. I know my error is right here at lotteryDigit2 int lotteryDigit1 = lottery / 100; int lotteryDigit2 = lottery * 1; int lotteryDigit3 = lottery % 10; int guessDigit1 = guess …

Member Avatar
Member Avatar
+0 forum 3

I have this database and I need to display data from koncerti (koncertnaziv,karte,mesto,datum) based on what grupanaziv is sleceted before, and grupanaziv is in different table called grupe, grupa_id from koncerti has same id as id from grupe, so that is connected in that way, so I need to match grupanaziv that user choosed as option and its id from grupe is same as grupa_id from koncerti, and display data from koncerti for that id, I need help with that I am thinking of something like this Select * From koncerti WHERE grupa_id (part which I dont know) MATCHES id …

Member Avatar
Member Avatar
+0 forum 8

I have tried a written a code like so re.findall(r'[A-Z]{3}[a-z][A-Z]{3}',string) to find the solution for this python challenge http://www.pythonchallenge.com/pc/def/equality.html it seems so hard to figure out. I'm getting 527 matches and none takes me to the next level. Help or close hints will be appreciated

Member Avatar
Member Avatar
+0 forum 8

I have written an application to send ecards 1. It has a drop down to select a ecard, to, from, date,message, preview, finish options. 2. After entering details and clicking on finish able to save data into datbase 3.Able to send the ecard immediately 4. Unable to send the ecard for further date. Need a sample code to schedule a application which runs on daily basis, to select the ecards which are not sent and if they matches to current date we need to send them

Member Avatar
Member Avatar
+0 forum 1

I am having trouble getting a correct response when searching through each of my datarows. While stepping through during debugging, I am seeing the boolean response is getting triggered even if one row does not match my selected string. I just want to search all of the rows and if at least one row matches(a single textbox in that row), everything will be fine and the error in dgv will not be populated. Am I missing something simple here? Party as Boolean = False For each eventrow as Datarow in PFC_Xpress.Tables("Event Info").rows If Incident_Type.text = "Party" Then For Each personrow …

Member Avatar
Member Avatar
+0 forum 11

Hello all, I have an XML string that I need to tear down and process. Sorry for what may be a simple problem, but I'm new to XML processing. Here is a sample of the XML: <?xml version="1.0" encoding="UTF-8" ?> <CCSMessage Type="4" Name="CustomerFetchResponse" Source="CoremaContextServer" Destination="WSA0205" UserID="LoyaltyBatch" IncludeLoyaltySummary="true" LimitLoyaltyTransactions="0" > <Result> <Status>SUCCESS</Status> </Result> <Customer CustomerID="36240"> <CustomerID CCSID="289521" TimeStamp="2010-10-01 12:13:53">36240 </CustomerID> <LoyaltySummary HouseholdID="110000036242" LoyaltyStatus="2" TotalSpend="6419.80" TotalVisits="136"> <LoyaltyIDs> <LoyaltyID ID="410000073094" RedeemFlag="true" DateIssued="2010-10-01"> </LoyaltyID> </LoyaltyIDs> <OfferProgress> <OfferProgressTotals OfferID="1012" OfferType="P" OfferDescription="No Email Birthday Promotion for Dec" OptIn="Y"> <OfferProgressTotal ID="1" Description="Earned"> <LifetimeValue>0</LifetimeValue> </OfferProgressTotal> <OfferProgressTotal ID="2" Description="Last Reward"> <LifetimeValue>0</LifetimeValue> </OfferProgressTotal> <OfferProgressTotal ID="3" Description="Redeemed"> <LifetimeValue>0</LifetimeValue> </OfferProgressTotal> <OfferProgressTotal ID="4" …

Member Avatar
Member Avatar
+0 forum 1

Over the past month I have been working on a certificate generation system and one part I have still yet to get working is the part that probably is one of the easier parts. All I need to do is check the email that someone enters against the email of the one in the database, and if that email matches I need to print the first name. I have been reading the PHP manual and looking at other's codes with similar problems and how they fixed it but I cannot seem to get it to work. Is there anything obvious …

Member Avatar
Member Avatar
+0 forum 2

I'm trying to use this url as regex but it doesnt seems to be working 'sorry of my bad english' Full code: [CODE]Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://localhost/pos/leftpanel.html") Dim response As System.Net.HttpWebResponse = request.GetResponse Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream()) Dim rssourcecode As String = sr.ReadToEnd Dim r As New System.Text.RegularExpressions.Regex("http://localhost/booksmodule/ListContent.php?case=.*&funcfor=.*&funcmod=.*&catid=LM3334443&refid=.*&ccshowid=.*") Dim matches As MatchCollection = r.Matches(rssourcecode) For Each itemcode As Match In matches ListBox1.Items.Add(itemcode) Next [/CODE] I have added .* on where i want to find matches here is the actual url [CODE]http://localhost/booksmodule/ListContent.php?case=normal&funcfor=author&funcmod=information&catid=LM3334443&refid=22333&ccshowid=553332[/CODE]

Member Avatar
+0 forum 0

The End.