|
That is rather helpful; it explains that the DataManager is merely a wrapper round a connection, and that it probably should be deleted from the project and simply replaced by an IDbConnection and a factory
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Working on Google sign in API for one of my project which need to load one j query file called
https://apis.google.com/js/client:plusone.js
i copy this link send it to my co-worker by Skype, he copied and apply that code. Boom, g-sign in button do not click. the same code working fine on the test project that we have created but not on our main project.
Reason,
Skype see "client:plusone.js" and convert :P to and when same code goes to vs it leaves a blank space and copied like "client lusone.js". after spending some half an hour we finally got a working example of Google sign in.
Ravi Khoda
|
|
|
|
|
Thank God the code didn't use mooning
|
|
|
|
|
Words just fail me...
Help wiht a code[^]
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
|
It has been removed. What did it say?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Have not seen it either, but from the tip of my tongue Id' guess it was similar to what my link below Shows off...
|
|
|
|
|
Thanks Marco, that's the one.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
It was someone trying to compile poorly formatted XML as C++
I don't know why.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
|
Same question again. I did see the first one.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
I didn't
|
|
|
|
|
My favorite part is:
- Perhaps you should create a spreadsheet.
- Hey! Can you help creating a spreadsheet? I'm new into programming.
|
|
|
|
|
Just in case the message gets removed from reddit again, I've decided to copy the text verbatim...
Hi fellows, I'm stuck I need to extract data, the code was send to me from the statistics department of Mexico I need to extract information from a webpage, it says is API information. I tried to copy and paste the code on Dev- C++ 4.9.9.2 and click on run but it says file not compiled, after that I save the file and still is the same. The information is about energy consumption. THANKS! <DATASET_BIINEGI xmlns="http://schemas.datacontract.org/2004/07/BIINEGI.Model" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <Data> <GeneralNote/> <GeneralSource> Secretaría de Energía. Balance nacional de energía. </GeneralSource> <Serie> <Obs> <CurrentValue>9250.67</CurrentValue> <NotesPeriod i:nil="true"/> <SourcesPeriod i:nil="true"/> <TimePeriod>2010</TimePeriod> <ValueStatus/> </Obs> </Serie> </Data> <MetaData> <CreationDate>13/07/2015 10:23:56 a.m.</CreationDate> <Freq>Anual</Freq> <Indicator>13241</Indicator> <LastUpdate>2012/08/27</LastUpdate> <Name>Total</Name> <NoOfDecimals>3</NoOfDecimals> <Unit>Petajoules</Unit> <Region>Nacional</Region> </MetaData> </DATASET_BIINEGI>
I intentionally kept the delightful formatting of the original.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
cmd.CommandType = CommandType.Text
...no comment...
|
|
|
|
|
Duncan Edwards Jones wrote: ...no comment...
... would have been preferable.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
This one is epic
while (true) {
continue;
}
|
|
|
|
|
What's wrong with that? I ran a test on that code an hour ago...still waiting on it to finish though!
"Go forth into the source" - Neal Morse
|
|
|
|
|
internal static class CommandType
{
internal static System.Data.CommandType Text = System.Data.CommandType.StoredProcedure;
} simple fix
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
|
That's exactly why I hate comments.
I've seen this type of comments A LOT...
product.Save()
Dim helper As String That kind of stuff.
And yes, I've seen it in C# too!
I've even written a tip about proper commenting, which 99.9% of the time is not commenting
|
|
|
|
|
"Save the customer" saves a product..?
Apply kerosine liberally and inject a spark of hope
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Eddy Vluggen wrote: "Save the customer" saves a product..? And that's nothing yet
|
|
|
|
|
Think bigger:
whales.Save();
If you're having a bad day, stare at your feet and smile.
|
|
|
|
|
I recently started a new job and my first project it to do a maintenance release of one of the companies products. Yesterday I found code like this...
if ((CString)presuffixS.GetAt(i) == "%") { if ((CString)presuffixS.GetAt(i+1) == "i") {
presuffix = presuffix + szDeviceID;
i++;
}
else if ((CString)presuffixS.GetAt(i+1) == "t") {
presuffix = presuffix + szType;
i++;
}
else if ((CString)presuffixS.GetAt(i+1) == "n") {
presuffix = presuffix + szId;
i++;
}
}
Could it be any less efficient? I also found this technique used several other places too!
Thanks,
Robin.
|
|
|
|