|
Oh my god... The MFC MESSAGE_MAP... How could i miss this rape on #define-macros and the whole C++ Language...
|
|
|
|
|
Thinking it's 21st century I registered with my name (Blažko, note so called soft z in the middle) and published something like an eBook.
Than I found that in some situations I see there my name as Blažko (what I reported them), even directly book's page is OK.
Later, after filling form (where is already no chance to change any name) I got this wonderful reply:
"Unfortunately, we are unable to approve your ad as your book's author name violates one of our ad guideline policies. i.e; the cover page has the name which is not correctly displayed/spelled."
ROTFL (There is no problem with cover page[^].)
(Actually they already "reached out to our technical team to investigate this issue. We'll contact you with more information by the end of the day on October 13, 2015.")
|
|
|
|
|
if you have ever wrote a proxy server and just wanted to relay SSL data then you just need to read the HTTPS connect to get the host name and then join the client socket to a server socket and pump the data between sockets.
Doing MITM after first installing a CA certificate on the client machine so that it works in stealth mode is not so easy and you need to use a SSL-Stream to authenticate with both the client and server to decrypt the data.
Trouble is a SSL-Stream in stealth mode won't give you the host name and if you read the socket that the SSL-Stream is conncted to so you can parse the host name from the stream then the SSL-Stream won't work, it's read forwards only.
So how did i patch this up to work using .NET 3.5 ?
Well i used something like two proxy servers and the first one read the socket stream to extract the host-name and then relayed the data to a second proxy that connected a SSL-Stream to the incoming net.socket and then asked the first proxy for the host name.
browser->host-name-proxy->MITM Proxy->Internet
OK i wrapped it up inside a single class so that it all worked inside a single proxy server on the same process id but i must be very cleaver for thinking outside the box and getting something to work or went about it all wrong and must be very stupi.
Maybe I needed to use some other network base class.
shoot away, it's code Jim but not as we know it
|
|
|
|
|
private void ZombieCheck() {
if (IsZombied) {
if (IsYukonPartialZombie) {
_internalTransaction = null;
}
throw ADP.TransactionZombied(this);
}
}
The code is perfectly good - it's the names that amuse..
Extra points - which large software company does this code come from?
|
|
|
|
|
Duncan Edwards Jones wrote: Extra points - which large software company does this code come from?
Too easy[^].
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Beat me to it
Always remember that you are absolutely unique. Just like everyone else.
|
|
|
|
|
When I read your title I thought of one of my favorite pinball tables
I never finish anyth
|
|
|
|
|
That's the spirit Thing, lend a hand!
|
|
|
|
|
I was more thinking about the Bride of Pinbot, but that works with The Thing, too
I never finish anyth
|
|
|
|
|
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???
|
|
|
|
|
Would've been funnier if it was displayed in red
|
|
|
|
|
I thought only end users did stuff like that!
"Go forth into the source" - Neal Morse
|
|
|
|
|
Looks like the work of a tool. Unlikely that developer wrote it.
Mysteries remain, two of which are:
- How come the other entries (like Rock Gardens, Parkdale) don't have it?
- How come the 'obscure Firefox glitch', first reported in 2004 is still under resolution?
|
|
|
|
|
I think Firefox shouldn't resolve this "glitch." Trying to lock up the browser by rendering a million things? Not this time.
|
|
|
|
|
Loved the author's photo, btw.. "CS student and .NET programmer extraordinaire, currently starting out in the corporate world."
Ah yes, we all looked like that when we were "currently starting out". After 20 years though, it all ends up the same way[^]..
Lesson for today's youth: love your hair while you've still got it!
How do you know so much about swallows? Well, you have to know these things when you're a king, you know.
modified 31-Aug-21 21:01pm.
|
|
|
|
|
this was from a year or two ago...really!
I was investing a batch scheduling issue using CA-Scheduler.
The program in COBOL had the following code (paraphrased as I've forgotten it all).
TestTime:
If time <> 2am then
Wait 1 second
Goto testTime
End If
This program at the beginning of a schedule of 1,200 nightly would start somewhere usually between 11:30 and midnight because of changes to the schedule.
It worked like this for 5 years before anyone challenged what was happening with the batch cycle.
On review the programmer put the code in because the tester insisted on seeing the code work at 2am...there is no scheduler in developement or UAT, and of course the code never ever came out....
Once fixed the schedule dropped from 9 hours to less than 4....
Go testers!!!
|
|
|
|
|
|
In regards to testers and, in this case, auditors...
A number of years ago, I worked on an ERP application and developed auto-invoice functionality.
When an item was received, and invoice would be automatically generated and approved.
The auditor wanted to see the various stages on the screen... receive the item (good), generate an invoice (good), APPROVE the invoice (well... it's auto approved, so we can't show you the intermediate step...) and all of this in the production system.
I convinced her to watch me perform the actions in the test system because receiving something in production would generate a cheque...
|
|
|
|
|
This is not the worst code in the world. This is just a tribute to the worst code in the world. I could not remember the worst code in the world.
Kitty at my foot and I waAAAant to touch it...
|
|
|
|
|
|
How about an undocumented testing control that was buried in the scheduler of a number of ERP systems. When ERP was a new buzzword introduced to the market, I embedded the control to enable testing and debugging of the software with customer-supplied data. That code and trigger got replicated in later versions of the system as companies purchased copies of the scheduler to speed development of their systems.
When I first started working on ERP scheduling, there were only five systems on the market and I had contracts with three of the companies to tweak my original software. Every so often, I hear reports of some scheduling process going bananas and dumping screeds of garbage to whatever device is used to output from the process.
The difficult may take time, the impossible a little longer.
|
|
|
|
|
|
I'm pretty sure mine is the worst...
|
|
|
|
|
My recent was some RPG code that did ROUGHLY this:
MINS = 'XX' of minutes
IF (MINS='09' OR MINS='19' OR MINS='29'.. OR MINS='59' or MINS='99') THEN ...
When I questioned this, I was told that they discovered sometimes it returns 99.
To which I laughed. I suggested:
MIN = 'X' of minutes (last digit)
IF (MIN='9') THEN ...
...
For the record, they pushed back and the code was not fixed!
Fast forward a couple of years. They are no longer in business!
|
|
|
|
|
Well, I guess it could be worse... what if the "wait" had been left out? I dread to think what the load on the machine's CPU would've been like...
|
|
|
|