|
Friday, May 25th, 2012
dailywtf_rss
|
2:00p Error'd: Docking Ejection
http://thedailywtf.com/Articles/Docking-Ejection.aspx "I think my Docking Station is docked to my docking station," writes Tod Hoven, "I wonder which one my laptop is docked to?"

"This was the return address on a package I received in the mail," writes Aaron.

"I got this lovely dialog box while trying to install Vodafone's mobile broadband software," writes Dan, "I think her curious look is an apt stock photo for the IsFatalError_Finish button."

"I received this in a confirmation for an upcoming hotel reservation," Rich Dudley wrote, "I think I'm going to play it safe and leave the room early. This is a rather well known casino in Las Vegas, and the odds don't seem to be in my favor there."

"I was loading some data into Salesforce and was presented with the above progress dialog," writes Andy Max, "I think I'll need some more tea."

"Wait a sec," Mike Davies wrote, "IE8 is required to install IE8?"

"I'm not sure what I was doing on Facebook, but this just popped up," wrote Ravi Lodhiya, "I guess I should be more careful to not inadvertently call AsyncRespose()."



|
(3 comments | ir ko piebilst) Thursday, May 24th, 2012
dailywtf_rss
|
3:00p Papering Over the Problem
http://thedailywtf.com/Articles/Papering-Over-the-Problem.aspx There are certain baselines that telecom companies care about. If, for example, your company is responsible for a set of network devices at the local airport, detecting and correcting failures quickly was very important.
Miguel was the IT support for the team ulitmately accountable for those devices. His first major project for them sounded fairly simple: when an alert condition occurs, generate a printed report. He was given a generous budget and told to do whatever it took for delivery.
It wasn't the biggest problem he'd ever had stacked in front of him. The supervision system that actually did the monitory and raised alerts was designed to be easy to tap into. Once he understood the system, generating a series of printed reports was little more than a step-and-repeat process. It was easy, and he had a lot of time and budget left over. So Miguel did what most people do in those situations: he slacked off for a bit and splurged on hardware. They wanted a dedicated printer for these reports, so he bought them the newest, niftiest laser printer he could find. Its main selling points were speed and a long MTBF.
The work was done, even with his splurging, he was still on time and under budget, so Miguel grabbed the boss and setup a demo. Miguel rubbed off a fake alert, and a moment later the printer spit out a nice report announcing the error. Miguel smiled at his boss and started to explain how reliable the printer was, but his boss cut that thread short like a guillotine.
"This is completely useless," the boss said as he started to ream Miguel. "This isn't what I wanted at all!"
Miguel felt like a sucker; had he misunderstood the requirements so badly? "Detect alerts and print a report," wasn't the most complex thing, ever. "I'm not sure what the problem is?" Miguel asked.
The boss took a deep breath and tried to draw down. "The printer doesn't make any noise."
"And that's bad?"
"Of course it's bad! How are the technicians going to know to log into the superviser program and check the alerts if they can't hear the printer?" The boss sighed. "Well, this was your first project. We all make mistakes. I'll help you cover it, this time. There's an old dot-matrix printer in the supply closet. You're off-square now, but use that instead and everything will be square."


|
Wednesday, May 23rd, 2012
kruts
|
10:14p
Nez, Reinikam vēl joprojām nav draudzenes?
|
(2 comments | ir ko piebilst)
dailywtf_rss
|
1:00p CodeSOD: Representative Table
http://thedailywtf.com/Articles/Representative-Table.aspx "This is a small peek into the production database of one of our client's systems," writes Walter. "I wish I could say that this was an unused table, an isolated occurrence... or even that I had some other job prospects. But sadly, none of those are the case."
mysql> select * from month
+-------------+
| month |
+-------------+
| NULL |
| June |
| July |
| 3 |
| T |
| C |
| A |
| 1 |
| 2 |
| L |
| 4 |
| P |
| D |
| S |
| 7 |
| NO |
| January |
| August |
| February |
| March |
| April |
| May |
| September |
| OCTOBER |
| NOVEMBER |
| December |
| |
| 0 |
+-------------+
28 rows in set (0.04 sec)


|
divi_g
|
3:26p
Gifņņņā no http://theinkblot.com/!
Sickness Quotient: 75% Your "Sickness Quotient" of 75% indicates therapy may be useful. Detailed Diagnosis Interpersonal Insights Everyone likes you. This is because your life is such a mess that everyone else is relieved they aren't you. Your friends (both of them) think you're a total clod. As long as you continue to buy the beer, however, they'll still be your pals. Job Performance & Attitude You have a deep love for your patients, which is unfortunate since you're a veterinarian. You hate your job but will never leave it. That's because no one else will hire people whose job skills consist of sleeping and surfing the web. Personality Insight Your personal motto is "You are what you do when it counts." And everyone thinks you're an idiot when you say it.
Vēl nospiedu linku arī uz online grūtniecības testu. Izrādās, es nemaz neesmu uzbarojies, es esmu stāvoklī! :]
P.S. Tiem, kas ļoti pamatīgi grib īpaši iedziļināties savās Roršaha asociācijās, iesaku pie rezultātiem paspaidīt "Retabulate Results" ;)
|
(5 comments | ir ko piebilst) Tuesday, May 22nd, 2012
racoon
|
10:41p Par ko mums būs ellē degti
#:"Vai algu paaugstināsiet?" $:"Mēs jau Tev paaugstinājām" #:"Kad?" $:"Aizvakar, plānojām apcirpt, bet neapcirpām!"
|
(4 comments | ir ko piebilst)
divi_g
|
8:20p
Trīs episkas lietas šodien: 1) Social Media Revolution (parody) no twitera, diemžēl neatceros, kā konkrēti
2) damcuks ļoti caurspīdīgā melnā blūzītē ar, cik pamanīju, pieskaņotas krāsas veļu un gandrīz izdzertu alus "torpēdu". Sexy Vanags-style :))
3) pēc astoņām sezonām Hauss Em-Dī beidzies.
|
(2 comments | ir ko piebilst)
putnupr
|
12:15a
Šis negaiss vienalga nepārspēj to,ko piedzīvojām toreiz,kad ciemojāmies pie murka-gandrīz Alpu pakājē,vienīgi šis ir dzintarzemē,tāpēc īstāks.
|
(26 comments | ir ko piebilst) Monday, May 21st, 2012
divi_g
|
11:19p
Neatceros, kad pēdējo reizi dzirdēju tik garus pērkona dārdus.
|
(3 comments | ir ko piebilst)
smejmoon
|
9:47p
pārāk jauks laiks, lai paliktu iekšā
|
(ir ko piebilst)
dailywtf_rss
|
3:00p Confessions: The Soft CPU Upgrade
http://thedailywtf.com/Articles/Confessions-The-Soft-CPU-Upgrade.aspx "Years ago," writes Maxime, "we found ourselves plagued with a brand new, unusably sluggish website. Most of the team blamed the esoteric VMCMWTH-based architecture (i.e. View-Model-Controller-Model-What-The-Huuhhhhh) that was pioneered by the Chief Developer. But the Chief Developer and the CTO (who also happened to be his uncle), blamed the hardware. More specifically, it was the 'inferior, off brand' CPU."
"Now despite the fact that this 'inferior, off brand' CPU commanded over 40% of the market, and that no one had ever experienced any performance problems on it ever, the powers-that-be refused to even consider the possibility that the non-performance was a result of their poorly-designed system."
"Replacing all of the production servers to get a new CPU was extremely expensive – especially when it would come out of Network Operation's much-needed budget – and obviously wouldn't do anything except delay resolving the actual problem. After a few clandestine meetings with network operations, I thought up a novel way to deliver a CPU upgrade..."
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/smp.h>
static char *cpuname = "HyperTurbo 256-bit, AwesomeCache enabled";
int init_module() {
loff_t i;
for (i=0; i < nr_cpu_ids; i++) {
strcpy((&cpu_data(i))->x86_model_id, cpuname);
}
return 0;
}
"Sadly, after the Chief Developer ran his own series of tests, he found that the performance was tremendously improved and that no other changes were needed. A year or so (and many customer complaints) later, they finally decided to 'upgrade' the website."


|
Friday, May 18th, 2012
dailywtf_rss
|
1:00p Error'd: Element of Violence
http://thedailywtf.com/Articles/Element-of-Violence.aspx "Avast blocked itself from updating on reboot," Tejio writes, "if it can't trust itself, who can it trust?"

"While browsing for a USB cable from Amazon, I found this bargain for £10431.80," wrote Dazzie Bee, "and it even comes with free shipping!"

"This panel usually displays real-time bus information," wrote Tom Wright, "the fact that the two errors are actually different suggested to me that I had just caught it as it broke. No such luck - it was still displaying the same thing on my way home."

"I recently got an 'ultra high capacity' battery for my HP laptop," wrote Tod, "I noticed that the Quick Setup guide included an unexpected instruction: 'Replace this box with PI statement as per spec'. It's repeated several times, so it must be important!"

"I got this message trying to buy a game that was included as a demo with my xbox," wrote Ryan, "it was a fun game, but I just can't justify the $53.6M cost. If it was only $50M... maybe."

"I got this from Symantec's online store," writes, D.J.. "Repeatedly.

"I guess Adobe 'Reader' doesn't 'like' too much 'violence'," notes Andrew D.

>


|
divi_g
|
9:46a
Un ko lai dara ar Muzeju nakti? Neiet grēks, bet nekā īpaši interesanta arī nav.
|
(10 comments | ir ko piebilst) Thursday, May 17th, 2012
dailywtf_rss
|
1:00p Representative Line: Sanity Check
http://thedailywtf.com/Articles/Sanity-Check.aspx "Lucky me," Ryan wrote, "I got assigned to work on Legacy, an application whose name accurately describes itself. I'm pretty sure that this system manages to have a WTF/line ratio greater than 1.0, especially if we include the 'minor' ones, like the System.Environment.Exit calls peppered throughout library code that causes the app to inexplicably exit."
"But beyond minor annoyances like that, or the random number generator class that seems to exist solely to duplicate the behavior System.Random, I discovered this gem inside a class method."
// Sanity check
const int expected_length = 199 + 6;
Ryan adds, "I don't even want to know why a constant is declared inside a class... or what makes 199 + 6 better than 205. My head hurts."


|
putnupr
|
1:01p
paziņa draugos.lv atsūtīja linku, lai aizpilda anketu viņas maģistra darbam:
"Kādā brīvā brīdī, atpūšoties vai gribot nedaudz izklaidēties, aizpildiet, lūdzu, anketu par sievietes skaistumu (vajadzīgs manam maģistra darbam). Lūdzu, izturiet anketas pirmo daļu, pēc tam jautājumu aizpildīšana ritēs daudz vieglāk Laiks ir ierobežots - līdz piektienas (18.maija) vakaram. Aptauja atrodas šeit: http://www.visidati.lv/aptauja/688509745/"
|
(21 comments | ir ko piebilst) Wednesday, May 16th, 2012
smejmoon
|
3:45p skaisti līst
dzīve paliek aizvien mierīgāka un gaišāka
|
(1 comment | ir ko piebilst)
divi_g
|
12:03a
"Interniem" ir aptrūcies komēdijas, un šamie ir ķērušies pie meksikāņu melodrāmas. Un dažiem padumiem politiskiem etniskiem jociņiem.
|
(ir ko piebilst) Tuesday, May 15th, 2012
dailywtf_rss
|
1:00p Long Distance
http://thedailywtf.com/Articles/Long-Distance.aspx Lawrence's employer had heard that this newfangled "Desktop PC" could reduce their IT costs, and they wanted in on it. It was the mid 80s, and at the time, their plants scattered all over Alabama connected to a central mainframe via dumb terminals connected over very expensive leased lines. It was time to upgrade, and Lawrence wasn't in charge of it. He didn't get called in until things went wrong.
"This new PC system is really slow," he was told while on a plant tour. That didn't sound likely- the PCs were running blisteringly fast 4.77MHz, 8088 CPUs with 16Kb of RAM, and since someone had connected "arithmetic-heavy accounting usage" to "floating point processing", they all had 8087 co-processors. There was no way they were slow, especially since half the time they were just running a 3270 terminal emulator.
But sure enough, when they fired up the terminal emulator, it was slower than anything. Going from the login screen to the menu, and then from the menu to the order fulfillment screen took multiple minutes. Was the 300-baud smartmodem that slow? Lawrence fiddled connections, tested the line, and then eventually got around to cranking the volume on the modem's speaker. No, the modem wasn't that slow.
Whoever had configured the deployment had tried to mirror their old system as closely as possible. In the old system, the terminal started a new connection every time the user pressed enter, and then disconnected from the mainframe until the user triggered the next command. So in the new system, they did the same thing- which meant each time the client finished loading a screen, the modem would hang up.
That particular problem was easy to fix, and simply involved making sure each PC had its own phone line, and that the terminal emulator made sure to keep the connection open. But one of their remote offices, someplace deep in the Alabama backwoods, proved intractable- they couldn't connect at all.
Lawrence tried diagnosing their problem remotely at first. The phone line seemed good- he could dial it; the plant users could dial out. He shipped them a fresh modem, and eventually a fresh PC, but nothing seemed to make a difference. They couldn't dial the mainframe. So he had to go out to the plant.
Having learned his lesson, the first thing Lawrence did was crank the volume on the modem speaker. When the computer attempted to dial out, he heard the sound of touchtone bleeps followed by a crackly voice saying, "Number please."
That particular plant was so back in the backwoods of Alabama that it didn't have direct-dial long distance. The users were so used to it that they didn't even think it could be the problem. The small town phone company had no firm plan when they would start doing it. Lawrence helped pack up the PCs and reinstall the dumb terminals. By the time he left that company, they were still using them. They might still be using them today.


|
divi_g
|
4:51p
Lasot e-lasītājā, tomēr bik pietrūkst tās viena konkrēta darba lasīšanas nobeigšanas sajūtas, kas rodas, aizverot izlasītas grāmatas vāku; šeit grāmatu no grāmatas atšķir tikai klikšķi.
No otras puses, tā ir lieta, pie kuras var pierast, un kopumā es labprāt pārkonvertētu lielum-lielāko daļu savas bibliotēkas uz putekļus nekrājošām e-grāmatām.
|
(9 comments | ir ko piebilst)
divi_g
|
10:58a
Dienas prieks: "Atēnas" e-grāmatas arī kindles formātā. Pagaidām gan ļoti maz, bet nu vismaz pirmais solis ir sperts :)
|
(14 comments | ir ko piebilst) Monday, May 14th, 2012
dailywtf_rss
|
1:00p Coded Smorgasbord: FAIL FAIL,FAIL FAIL,FAIL FAIL and More
http://thedailywtf.com/Articles/FAIL-FAIL,FAIL-FAIL,FAIL-FAIL-and-More.aspx "We're had been using a manufacturer's web service, but started getting errors all of a sudden," wrote Peter Lindgren. "Something has really, really failed."
<StatusCode>InternalServerError</StatusCode>
<StatusDescription>Internal Server Error</StatusDescription>
<WebHeaders>
<X-Backside-Transport>FAIL FAIL,FAIL FAIL,FAIL FAIL</X-Backside-Transport>
</WebHeaders>
"Fortunately, a short time later, it started working again with this message."
<StatusCode>OK</StatusCode>
<StatusDescription>OK</StatusDescription>
<WebHeaders>
<X-Backside-Transport>OK OK,OK OK,OK OK</X-Backside-Transport>
</WebHeaders>
"I'm not sure of the purpose of this," Jasmine wrote via the Submit to The Daily WTF visual studio extension, "maybe the stack was just too small or something?"
Public Function Save() As Boolean
Try
SaveMeeting()
Catch ex As Exception
Throw ex
End Try
End Function
"I was asked to modify some simple web page used to generate an online store," Mihai Todor wrote, "here's a Javascript function that I found in it, which is used to validate the required fields."
function checkdata() {
dataok = true;
t1 = document.forms.signup.firstName.value;
t2 = document.forms.signup.lastName.value;
t3 = document.forms.signup.userName.value;
t4 = document.forms.signup.password.value;
t5 = document.forms.signup.passwordConfirm.value;
t6 = document.forms.signup.email.value;
t7 = document.forms.signup.url.value;
t8 = document.forms.signup.adminFrontname.value;
t9 = document.forms.signup.locale.options.selectedIndex;
t10 = document.forms.signup.currency.options.selectedIndex;
t11 = document.forms.signup.timezone.options.selectedIndex;
t12 = document.forms.signup.packetType.options.selectedIndex;
t13 = document.forms.signup.captcha_code.value;
if(t1 == '' || t2 == '' || t3 == '' || t4 == '' || t5 == '' || t6 == '' || t7 == '' || t8 == ''){
alert("Please fill-up all the fields");
dataok = false; return(dataok);}
if(t4 != t5){
alert("Please enter the password again");
dataok = false; return(dataok);}
if(t9 == 0){
alert("Please select a locale");
dataok = false; return(dataok);}
if(t10 == 0){
alert("Please select a currency");
dataok = false; return(dataok);}
if(t11 == 0){
alert("Please select a time zone");
dataok = false; return(dataok);}
if(t12 == 0){
alert("Please select a packet type");
dataok = false; return(dataok);}
if(t13 == ''){
alert("Please fill-up the code field");
dataok = false; return(dataok);}
return(dataok);
}
"I've seen these types of constants on The Daily WTF before and always questioned if they were real," wrote Sterge, "and then I saw these."
public static final String SLASH = "/";
public static final String PERCENT = "%";
"I'm on a team that maintains a pretty 'serious' banking application," Giga B wrote, "it's pretty serious about the number of parameters in functions."
public void WriteStep1Data(int LoanRequestID,
string InsertDate,
string OperatorID,
string FirstName,
string LastName,
string BirthDay,
int DocuemntTypeID,
int MaritialStatusID,
string DocumentIssueDate,
string DocumentExpireDate,
string DocumentIssuer,
string DocumentNo,
string PersonalNo,
int UniversityDegreeID,
string Address,
string Address2,
int RealAddressLivingPeriod,
int ChildrenCount,
int FamilyMembersCount,
decimal MonthlyIncome,
decimal MonthlyFamilyExpanses,
string HomePhoneNumber,
string MobilePhoneNumber,
string WorkPhoneNumber,
string EmailAddress,
string JobOrganizationName,
string JobOrganizationAddress,
string JobOrganizationActivity,
string JobOrganizationPhoneNumber,
string JobPosition,
string JobWorkingYears,
string JobBossName,
string JobBossPhoneNumber,
byte ClientSex,
decimal FinTotalProductsAmount,
decimal FinCommissionAmount,
int FinLoanPeriod,
decimal FinFirstPaymentAmount,
decimal FinLoanAmount,
decimal FinMonthlyPaymentAmount,
string GuarantorName,
string GuarantorLastName,
string GuarantorBirthDate,
string GuarantorPersonalNo,
int? GuarantorDocType,
string GuarantorDocumentNo,
string GuarantorDocIssuer,
string GuarantorDocIssueDate,
string GuarantorDocExpireDate,
string GuarantorTelHome,
string GuarantorTelMobile,
string GuarantorAddress,
string GuarantorAddressReal,
string GuarantorJobName,
decimal GuarantorIncome,
byte? GuarantorSex,
decimal HistoryPlaticAnnualTurnOver,
string HistoryDescription,
string MarketingQ1,
string MarketingQ2,
int StatusID,
string DateViewed,
string DateAnswered,
string BackOfficeUserID,
string RepaymentDate,
string ShopID,
string CalculationGroupID,
decimal RegFeeAmount,
int clientDeptNo,
int guarantorDeptNo,
int guarantorMaritialStatusID,
string AccountCodeWord,
string ClientFatherName,
string ClientBirthPlace,
string ClientCityAttendingToReg,
string GuarantorFatherName,
string GuarantorBirthPlace,
string GuarantorCityAttendingToReg,
string GuarantorJobActivity,
string GuarantorJobPosition,
string GuarantorJobContactPhone,
string GuarantorJobCodeWord,
string GuarantorEmailAddress
)
{
... snip a few hundred lines ...
}
"I learned a neat trick from our enterprise framework," Eli noted, "if you want to convert an int to a double, just do this!"
double d = Double.valueOf(new Integer(i).toString()).doubleValue();
"I had to look over some C# code written by a colleague of mine," notes John D, "the following lines represent just the tip of the iceberg of the pain that I had to go through while understanding the code."
bool true1 =true;
bool true12 = true;
.... snip ....
true1 = false;
true1 = false;
"I found this pattern in source code I have been working on," wrote Nas Nubian, "this is how some developer decided to open a new window for when users click on a links."
<a href="/the/path/to/the/url"
onclick="window.open(this.getAttribute('href'),'_blank');return false;">
link text
</a>
"So," wonders Johnny B, "I guess GUID from our production db servers are better than local GUID?"
Function GetNewGuid()
Dim cnGuid, rsGuid
Set cnGuid = CreateObject("ADODB.Connection")
Set rsGuid = CreateObject("ADODB.Recordset")
cnGuid.Open = _
"Provider=SQLOLEDB.1;" +
"Data Source=<production server>; " +
"Initial Catalog=<production DB> " +
"user id = '********';" +
"password='*********'""
rsGuid.Open "SELECT newid() as Guid", cnGuid
If Not rsGuid.EOF Then
GetNewGuid = rsGuid("Guid").Value
End If
End Function
"The comment says it all," wrote Michael.
/**
* Defines the value for none. Default is "none".
*/
public static String NONE = "none";
"This is snippet of code I found in a large program I maintain," wrote Brian. "The original developers have long since moved on. Funnily enough, this particular code was properly mutexed, but I guess the paranoid programmer doesn't trust mutexes. I only wish the original developers were so 'paranoid' when it came to avoiding things like buffer overflows, memory leaks, and sql injection."
if ( resData.state() == RESOURCE_STATE_ACTIVE )
{
elapsedTime.setBase( resData.startTime() );
if ( elapsedTime.diff() >= maxDuration )
{
// Do one more validity check, the paranoid programmer knows
// the state may have changed since the last check.
if ( resData.state() == RESOURCE_STATE_ACTIVE )
{
resourceActiveTooLong( resData );
}
}
}


|
Sunday, May 13th, 2012
watt
|
2:41p
Izgāzies gultā lasu grāmatu: meitiņa atrāpo on cenšas izraut iPad'u man no rokām. Ja es lasītu papīra grāmatu, to es arī nekādā gadījumā viņai nedotu [plēst], un tādējādi, iespējams, iepotētu bērnam tieksmi pēc grāmatām. Diemžēl ar šo tiek iepotēta tikai tieksme pēc planšetdatoriem...
Nevar rādīt arī Kindle, jo tam ārkārtīgi trausls/vārīgs ekrāns. ipad pats īstenībā pret bērniem ir ļoti noturīgs - nekāda vaina: tikai gan ap šo laiku bērniņam ir tikai jāspēlējas ar mantiņām un sadzīves priekšmetiem. Ar ipad spēlēties varēs tikai no kādiem 2-3 gadiem. Bet bērniņam visvairāk gribas tieši to, ko nedrīkst dabūt: grauzt vadus, līst pie elektrības kontaktiem, apgrābstīt datora klaviatūru (un peli), vai apsiekalot youtube iekš ipad.
***
Par dienas režīmu. Šobrīd (parasti) mazā gulēt iet ap 22:00 un ceļas ap 6 vai 7. (Mēs gan turpinam gulēt vismaz līdz 8, mazā pa to laiku savā nodabā var ņemties). Pa dienu meita guļ apmēram 2-3 reizes: ap 10-11, ap 15, un tad ap 18 (ja paveicas). Ja nesanāk aizmigt ap sešiem, tad ap 20-21 ir liels nespēks, bļaušana un nemiers, kamēr ap 22 atlūzt.
Intersanti, ka meitiņa mēdz pamosties, lai nedaudz uzēstu. Iedod paēst, un tad viņa vēl kādu pusstundu turpina gulēt. Līdzīgi pa nakti: var teikt, viņa pa nakti nemostas, bet tikai vēlas paēst. A. iedod krūti, mazā paēd un guļ mierīgi tālāk.
Vakarā mēs viņu praktiski nekad "nemidzinam". Aizmigs pati, kad sajutīsies miegaina, un arī lai ciešāk guļ. (Miegs viņai labs - var runāt, skatīties filmas, viņu tas netraucē.) Kad nāca zobiņi, tad gan bija jāpiestrādā nedaudz - bet man ir ķengursoma (Manduca), un tajā nēsājot, meitiņa uzreiz nomierinās, un arī ātri aizmieg.
|
(2 comments | ir ko piebilst)
divi_g
|
10:46a
Odi joprojām izjūt pret mani nevajadzīgas simpātijas. Bet vismaz ērces ignorē, kas pilnīgi atsvert pirmo.
|
(ir ko piebilst)
|