Illustrates point with a photo of a Windows XP computer.
Not only Windows XP, but Internet Explorer 6 too.
Illustrates point with a photo of a Windows XP computer.
Not only Windows XP, but Internet Explorer 6 too.
Supposedly, the problem is thousands of programs with code likeif (GetWindowsVersion().Startswith("Windows 9"))
{
//Windows 9x
DisableFancyXPFeatures();
}
I don't understand why people would ever do that when Windows has always had proper APIs for determining the version (and integer major version numbers)
Anyways, I just went to Google to see if I was able to find the website... No luck, but I did find this:http://thedailywtf.com/Articles/A-Privacy-Monstrosity-on-Top-of-a-Coding-Monstrosity.aspx
Oh interesting, I didn't find that when I searched. The site I found it on was the company of some recruiter that emailed me asking that I send some referrals their way (so basically crowdsourcing their recruitment work). http://viptela.com/jobs/apply/543/
I found this beautiful JavaScript snippet embedded in a contact form:
for(llelementlooper=0; llelementlooper<document.forms[llformlooper2].elements.length; llelementlooper++)
{
var llelementphone = (document.forms[llformlooper2].elements[llelementlooper].name)
if ( llformphone == '' && ((llelementphone=='phone')
|| (llelementphone=='Phone')
|| (llelementphone=='phone')
|| (llelementphone=='mobilephone')
|| (llelementphone=='PHONE')
|| (llelementphone=='sPhone')
|| (llelementphone=='strPhone')
|| (llelementphone=='Telephone')
|| (llelementphone=='telephone')
|| (llelementphone=='tel')
|| (llelementphone=='si_contact_ex_field6')
|| (llelementphone=='phonenumber')
|| (llelementphone=='phone_number')
|| (llelementphone=='phoneTextBox')
|| (llelementphone=='PhoneNumber_num_25_1')
|| (llelementphone=='Telefone')
|| (llelementphone=='Contact Phone')
|| (llelementphone=='submitted[row_3][phone]')
|| (llelementphone=='edit-profile-phone')
|| (llelementphone=='contactTelephone')
|| (llelementphone=='f4')
|| (llelementphone=='Contact-Phone')
|| (llelementphone=='formItem_239')
|| (llelementphone=='phone_r')
|| (llelementphone=='PhoneNo')
|| (llelementphone=='LeadGen_ContactForm_98494_m0:Phone')
|| (llelementphone=='telefono')
|| (llelementphone=='ntelephone')
|| (llelementphone=='wtelephone')
|| (llelementphone=='watelephone')
|| (llelementphone=='form[telefoon]')
|| (llelementphone=='phone_work')
|| (llelementphone=='telephone-number')
|| (llelementphone=='ctl00$HeaderText$ctl00$PhoneText')
|| (llelementphone=='ctl00$ctl00$cphMain$cphInsideMain$widget1$ctl00$viewBiz$ctl00$phone$textbox')
|| (llelementphone=='ctl00$ctl00$ContentPlaceHolderBase$ContentPlaceHolderSideMenu$TextBoxPhone')
|| (llelementphone=='ctl00$SPWebPartManager1$g_c8bd31c3_e338_41df_bdbe_021242ca01c8$ctl01$ctl06$txtTextbox')
|| (llelementphone=='ctl00$ctl00$ctl00$ContentPlaceHolderDefault$MasterContentPlaceHolder$txtPhone')
|| (llelementphone=='curftelephone')
|| (llelementphone=='form[Telephone]')
|| (llelementphone=='tx_pilmailform_pi1[text][phone]')
|| (llelementphone=='ctl00$ctl00$templateMainContent$homeBanners$HomeBannerList$ctrLeads$txt_5_1')
|| (llelementphone=='ac_daytimeNumber')
|| (llelementphone=='daytime_phone')
|| (llelementphone=='r4')
|| (llelementphone=='ctl00$ContentPlaceHolderBody$Phone')
|| (llelementphone=='Fld10_label')
|| (llelementphone=='field333')
|| (llelementphone=='txtMobile')
|| (llelementphone=='form_nominator_phonenumber')
|| (llelementphone=='submitted[phone_no]')
|| (llelementphone=='submitted[phone]')
|| (llelementphone=='submitted[5]')
|| (llelementphone=='submitted[telephone_no]')
|| (llelementphone=='fields[Contact Phone]')
|| (llelementphone=='cf2_field_5')
|| (llelementphone=='a23786')
|| (llelementphone=='rpr_phone')
|| (llelementphone=='phone-number')
|| (llelementphone=='txt_homePhone')
|| (llelementphone=='your-number')
|| (llelementphone=='Contact_Phone')
|| (llelementphone=='ctl00$CPH_body$txtContactnumber')
|| (llelementphone=='profile_telephone')
|| (llelementphone=='item_meta[90]' && llfrmid==11823)
|| (llelementphone=='item_meta[181]' && llfrmid==26416)
|| (llelementphone=='input_4' && llfrmid==21452)
|| (llelementphone=='EditableTextField100' && llfrmid==13948)
|| (llelementphone=='EditableTextField205' && llfrmid==13948)
|| (llelementphone=='EditableTextField100' && llfrmid==13948)
|| (llelementphone=='EditableTextField166' && llfrmid==13948)
|| (llelementphone=='EditableTextField104' && llfrmid==13948)
|| (llelementphone=='cf2_field_4' && llfrmid==23878)
|| (llelementphone=='input_4' && llfrmid==24017)
|| (llelementphone=='cf_field_4' && llfrmid==15876)
|| (llelementphone=='cf5_field_5' && llfrmid==15876)
|| (llelementphone=='input_9' && llfrmid==17254)
|| (llelementphone=='input_2' && llfrmid==22954)
|| (llelementphone=='input_8' && llfrmid==23756)
|| (llelementphone=='input_3' && llfrmid==18793)
|| (llelementphone=='input_6' && llfrmid==24811)
|| (llelementphone=='input_3' && llfrmid==19880)
|| (llelementphone=='input_6' && llfrmid==19230)
|| (llelementphone=='input_3' && llfrmid==24747)
|| (llelementphone=='input_4' && llfrmid==25897)
|| (llelementphone=='text-481' && llfrmid==14451)
|| (llelementphone=='Form7111$formField_7576')
|| (llelementphone=='Form7168$formField_7673')
|| (llelementphone=='Form7116$formField_7592')
|| (llelementphone=='Form7150$formField_7645')
|| (llelementphone=='Form7153$formField_7655')
|| (llelementphone=='Form7119$formField_7600')
|| (llelementphone=='Form7123$formField_7608')
|| (llelementphone=='Form7161$formField_7665')
|| (llelementphone=='Form7176$formField_7690')
|| (llelementphone=='Form7172$formField_7681')
|| (llelementphone=='Form7113$formField_7584')
|| (llelementphone=='Form7106$formField_7568')
|| (llelementphone=='Form7111$formField_7576')
|| (llelementphone=='Form7136$formField_7628')
|| (llelementphone=='Form6482$formField_7621')
|| (llelementphone=='Form6548$formField_6988')
|| (llelementphone=='submitted[business_phone]')
|| (llelementphone=='tfa_3' && llfrmid==23388)
|| (llelementphone=='ContentObjectAttribute_ezsurvey_answer_4455_3633')
|| (llelementphone=='838ae21c-1f95-488f-a511-135a588a50fb_Phone')
|| (llelementphone=='plc$lt$zoneContent$pageplaceholder$pageplaceholder$lt$zoneRightContent$contentText$BizFormControl1$Bizform1$ctl00$Telephone$txt1st')
|| (llelementphone=='plc$lt$zoneContent$pageplaceholder$pageplaceholder$lt$zoneRightContent$contentText$BizFormControl1$Bizform1$ctl00$Telephone')
|| (llelementphone=='ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ContentAreaPlaceholderMain$ctl02$ContactForm_3$TextBoxTelephone')
|| (llelementphone=='plc$lt$Content2$pageplaceholder1$pageplaceholder1$lt$Content$BizForm$viewBiz$ctl00$Phone_Number')
|| (llelementphone=='ctl00$ctl00$ContentPlaceHolder1$cphMainContent$C002$tbTelephone')
|| (llelementphone=='contact$tbPhoneNumber')
|| (llelementphone=='crMain$ctl00$txtPhone')
|| (llelementphone=='ctl00$PrimaryContent$tbPhone')
|| (llelementphone=='ff_nm_phone[]')
|| (llelementphone=='q5_phoneNumber5[phone]')
|| (llelementphone=='TechContactPhone')
|| (llelementphone=='referral_phone_number')
|| (llelementphone=='field8418998')
|| (llelementphone=='ctl00$Content$ctl00$txtPhone')
|| (llelementphone=='ctl00$PlaceHolderMain$ucContactUs$txtPhone')
|| (llelementphone=='m_field_id_4' && llfrmid==15091)
|| (llelementphone=='Field7' && llfrmid==23387)
|| (llelementphone=='input_4' && llfrmid==22578)
|| (llelementphone=='input_2' && llfrmid==11241)
|| (llelementphone=='input_7' && llfrmid==23633)
|| (llelementphone=='input_7' && llfrmid==22114)
|| (llelementphone=='input_4' && (llformalyzerURL.indexOf('demo') != -1) && llfrmid==17544)
|| (llelementphone=='input_4' && (llformalyzerURL.indexOf('contact') != -1) && llfrmid==17544)
|| (llelementphone=='field_4' && llfrmid==24654)
|| (llelementphone=='input_6' && llfrmid==24782)
|| (llelementphone=='input_4' && (llformalyzerURL.indexOf('contact-us') != -1) && llfrmid==16794)
|| (llelementphone=='input_3' && (llformalyzerURL.indexOf('try-and-buy') != -1) && llfrmid==16794)
|| (llelementphone=='input_4' && (llformalyzerURL.indexOf('contact-us') != -1) && llfrmid==23842)
|| (llelementphone=='input_4' && llfrmid==25451)
|| (llelementphone=='input_5' && llfrmid==24911)
|| (llelementphone=='input_3' && llfrmid==13417)
|| (llelementphone=='input_4' && llfrmid==23813)
|| (llelementphone=='input_4' && llfrmid==21483)
|| (llelementphone=='input_3' && llfrmid==25396)
|| (llelementphone=='input_3' && llfrmid==16175)
|| (llelementphone=='input_7' && llfrmid==25797)
|| (llelementphone=='input_4' && llfrmid==15650)
|| (llelementphone=='input_3' && llfrmid==22025)
|| (llelementphone=='input_3' && llfrmid==14534)
|| (llelementphone=='input_4' && llfrmid==25216)
|| (llelementphone=='input_5' && llfrmid==22884)
|| (llelementphone=='input_6' && llfrmid==25783)
|| (llelementphone=='text-747' && llfrmid==16324)
|| (llelementphone=='vfb-42' && llfrmid==24468)
|| (llelementphone=='vfb-33' && llfrmid==24468)
|| (llelementphone=='item_meta[57]' && llfrmid==25268)
|| (llelementphone=='item_meta[78]' && llfrmid==25268)
|| (llelementphone=='item_meta[85]' && llfrmid==25268)
|| (llelementphone=='item_meta[154]' && llfrmid==25268)
|| (llelementphone=='item_meta[220]' && llfrmid==25268)
|| (llelementphone=='item_meta[240]' && llfrmid==25268)
|| (llelementphone=='item_meta[286]' && llfrmid==25268)
|| (llelementphone=='fieldname5' && llfrmid==12535)
|| (llelementphone=='Question12' && llfrmid==24639)
|| (llelementphone=='ninja_forms_field_4' && llfrmid==19321)
|| (llelementphone=='EditableTextField' && llfrmid==15064)
|| (llelementphone=='form_fields[27]' && llfrmid==22688)
|| (llelementphone=='ctl00$body$phone')
|| (llelementphone=='ctl00$MainContent$txtPhone')
|| (llelementphone=='FreeTrialForm$Phone')
|| (llelementphone=='text-521ada035aa46')
|| (llelementphone=='C_BusPhone')
|| (llelementphone=='ctl00$ctl00$templateMainContent$pageContent$ctrLeads$txt_5_1')
|| (llelementphone=='ctl00$Modules$ctl00$rptFields$ctl06$1204')
|| (llelementphone=='ctl00$Modules$ctl00$rptFields$ctl06$1320')
|| (llelementphone=='ctl00$Modules$ctl00$rptFields$ctl07$1242')
|| (llelementphone=='ctl00$Modules$ctl00$rptFields$ctl07$1202')
|| (llelementphone=='ctl00$Modules$ctl00$rptFields$ctl08$1242')
|| (llelementphone=='ctl00$MainColumnPlaceHolder$uxPhone')
|| (llelementphone=='ctl00$MainContent$DropZoneTop$columnDisplay$ctl04$controlcolumn$ctl00$WidgetHost$WidgetHost_widget$IDPhone')
|| (llelementphone=='ctl00$ctl05$txtPhone')
|| (llelementphone=='ctl00$Modules$ctl00$rptFields$ctl07$1219')
|| (llelementphone=='LeadGen_ContactForm_33872_m419365:Phone')
|| (llelementphone=='F02220803')
|| (llelementphone=='h2c0f')
|| (llelementphone=='your_phone_number')
|| (llelementphone=='Question7')
|| (llelementphone=='Question51')
|| (llelementphone=='Question59')
|| (llelementphone=='Question35')
|| (llelementphone=='Question67')
|| (llelementphone=='field9740823')
|| (llelementphone=='message[phone]')
|| (llelementphone=='dnn$ctr1266$ViewKamakuraRegister$Phone')
|| (llelementphone=='phone1')
|| (llelementphone=='inf_field_Phone1')
|| (llelementphone=='hscontact_phone')
|| (llelementphone=='data[Contact][phone]')
|| (llelementphone=='fields[Phone]')
|| (llelementphone=='contact[PhoneNumber]')
|| (llelementphone=='phonename3')
|| (llelementphone=='UserPhone')
|| (llelementphone=='ctl00$MainBody$txtPhoneTech')
|| (llelementphone=='Telephone1')
|| (llelementphone=='PhoneNumber')
|| (llelementphone=='work_phone')
|| (llelementphone=='jform[contact_telephone]')
|| (llelementphone=='form[phone]')
|| (llelementphone=='RequestAQuote1$txtPhone')
|| (llelementphone=='06_Phone')
|| (llelementphone=='txtPhone')
|| (llelementphone=='field_location[und][0][phone]')
|| (llelementphone=='your-phone')
|| (llelementphone=='cmsForms_phone')
|| (llelementphone=='Txt_phonenumber')
|| (llelementphone=='businessPhone')
|| (llelementphone=='boxHomePhone')
|| (llelementphone=='HomePhone')
|| (llelementphone=='request-phone')
|| (llelementphone=='user[phone]')
|| (llelementphone=='DATA[PHONE]')
|| (llelementphone=='ctl00$ctl00$ctl00$cphContent$cphContent$cphContent$Phone')
|| (llelementphone=='ctl00$MainBody$Form1$obj11')
|| (llelementphone=='LeadGen_ContactForm_90888_m1467651:Phone')
|| (llelementphone=='Users[work]')
|| (llelementphone=='Question43')
|| (llelementphone=='aics_phone')
|| (llelementphone=='form[workphone]')
|| (llelementphone=='ctl00$ctl00$ContentPlaceHolder1$cphMainContent$C006$tbTelephone')
|| (llelementphone=='cntnt01fbrp__47')
|| (llelementphone=='submitted[phone_number]')
|| (llelementphone=='flipform_phone')
|| (llelementphone=='txtPhone')
|| (llelementphone=='ctl00$ContentPlaceHolder2$txtPhnno')
|| (llelementphone=='ctl00$ctl00$ContentPlaceHolder1$ContentPlaceHolder1$mainContentRegion$BizFormControl1$Bizform1$ctl00$Phone')
|| (llelementphone=='inpPhone')
|| (llelementphone=='j_phone')
|| (llelementphone=='m6e81afbrp__53')
|| (llelementphone=='item_meta[119]')
|| (llelementphone=='ctl00$ContentPlaceHolder_Content$dataPhone')
|| (llelementphone=='ctl00$generalContentPlaceHolder$ctrlContactUs$tbPhone')
|| (llelementphone=='ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ContentPlaceHolder1$Contact_6$txtPhone')
|| (llelementphone=='ctl00$MainContent$tel')
|| (llelementphone=='dynform_element_3')
|| (llelementphone=='telephone_1')
|| (llelementphone=='cf_phone')
|| (llelementphone=='Lead_PrimaryPhone')
|| (llelementphone=='p_lt_zoneContent_wP_wP_lt_zonePageWidgets_RevolabsMicrosoftDynamicsCRMContactForm_1_txtBusinessPhone')
|| (llelementphone=='si_contact_ex_field2')
|| (llelementphone=='dnn$ctr458$XModPro$ctl00$ctl00$ctl00$Telephone')
|| (llelementphone=='ctl00$ctl06$txtTelephone')
|| (llelementphone=='dnn$ctr458$XModPro$ctl00$ctl00$ctl00$Telephone')
|| (llelementphone=='ctl00$ctl00$mainCopy$CPHCenter$ctl00$QuickRegControl_2$TBPhone')
|| (llelementphone=='LeadGen_ContactForm_38163_m457931:Phone')
|| (llelementphone=='LeadGen_ContactForm_29909_m371524:Phone')
|| (llelementphone=='LeadGen_ContactForm_32343_m395611:Phone')
|| (llelementphone=='LeadGen_ContactForm_31530_m388101:Phone')
|| (llelementphone=='LeadGen_ContactForm_27072_m349818:Phone')
|| (llelementphone=='LeadGen_ContactForm_28362_m354522:Phone')
|| (llelementphone=='LeadGen_ContactForm_28759_m358745:Phone')
|| (llelementphone=='LeadGen_ContactForm_32343_m395611:Phone')
|| (llelementphone=='LeadGen_ContactForm_33631_m415978:Phone')
|| (llelementphone=='LeadGen_ContactForm_30695_m380436:Phone')
|| (llelementphone=='LeadGen_ContactForm_29958_m372138:Phone')
|| (llelementphone=='LeadGen_ContactForm_31471_m387422:Phone')
|| (llelementphone=='LeadGen_ContactForm_32514_m397613:Phone')
|| (llelementphone=='LeadGen_ContactForm_29152_m362772:Phone')
|| (llelementphone=='LeadGen_ContactForm_32540_m397908:Phone')
|| (llelementphone=='pNumber')
|| (llelementphone=='organizer_phone')
|| (llelementphone=='ctl00$PlaceHolderMain$TrialDownloadForm$Phone')
|| (llelementphone=='ContactSubmission.Phone.Value')
|| (llelementphone=='ctl00$body$txtPhone')
|| (llelementphone=='p$lt$ctl03$pageplaceholder$p$lt$zoneCentre$editabletext$ucEditableText$widget1$ctl00$viewBiz$ctl00$Telephone$textbox')
|| (llelementphone=='ctl01_ctl00_pbForm1_ctl_phone_61f3')
|| (llelementphone=='ctl01$ctl00$ContentPlaceHolder1$ctl15$Phone')
|| (llelementphone=='p$lt$zoneContent$pageplaceholder$p$lt$zoneRightContent$contentText$ucEditableText$BizFormControl1$Bizform1$ctl00$Telephone$textbox')
|| (llelementphone=='ctl00$ctl00$ContentPlaceHolder$ContentPlaceHolder$ctl00$fPhone')
|| (llelementphone=='pagecolumns_0$form_B502CC1EC1644B38B722523526D45F36$field_6BCFC01A782747DF8E785B5533850EEB')
|| (llelementphone=='cf3_field_10')
|| (llelementphone=='r_phone')
|| (llelementphone=='c_phone')
|| (llelementphone=='cf-1[]')
|| (llelementphone=='frm_phone')
|| (llelementphone=='Patient_Phone_Number')
|| (llelementphone=='ctl00$PageContent$ctl00$txtPhone')
|| (llelementphone=='dnn$ctr398$FormMaster$ctl_6e49bedd138a4684a66b62dcb1a34658')
|| (llelementphone=='id_tel')
|| (llelementphone=='field_contact_tel[und][0][value]')
|| (llelementphone=='Phone:')
|| (llelementphone=='ContactPhone')
|| (llelementphone=='submitted[telephone]')
|| (llelementphone=='ctl00$ContentPlaceHolder1$ctl04$txtPhone')
|| (llelementphone=='ctl00$ContentPlaceHolder_pageContent$contact_phone')
|| (llelementphone=='264')
|| (llelementphone=='form_phone_number')
|| (llelementphone=='field8418998')
|| (llelementphone=='phoneTBox')
|| (llelementphone=='pagecontent_1$content_0$contentbottom_0$txtPhone')
|| (llelementphone=='application_0$PhoneTextBox')
|| (llelementphone=='submitted[phone_work]')
|| (llelementphone=='data[Lead][phone]')
|| (llelementphone=='a4475-telephone')
|| (llelementphone=='ctl00$Form$txtPhoneNumber')
|| (llelementphone=='signup_form_data[Phone]')
|| (llelementphone=='WorkPhone')
|| (llelementphone=='lldPhone')
|| (llelementphone=='web_form_1[field_102]value')
|| (llelementphone=='LeadGen_ContactForm_114694_m1832700:Phone')
|| (llelementphone=='phoneSalesForm')
|| (llelementphone=='fund_phone')
|| (llelementphone=='Phonepi_Phone')
|| (llelementphone=='field343')
|| (llelementphone=='cntnt01fbrp__48')
|| (llelementphone=='contact[phone]')
|| (llelementphone=='ctl00_ContentPlaceHolder1_ctl01_contactTelephoneBox_text')
|| (llelementphone=='ctl01$ctl00$ContentPlaceHolder1$ctl29$Phone')
|| (llelementphone=='plc$lt$content$pageplaceholder$pageplaceholder$lt$bodyColumnZone$LogilityContactUs$txtWorkPhone')
|| (llelementphone=='ctl00$ctl00$ctl00$cphBody$cphMain$cphMain$FormBuilder1$FormBuilderListView$ctrl4$FieldControl_Telephone')
|| (llelementphone=='ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_content$ctl02$RenderForm_1$rpFieldsets$ctl00$rpFields$ctl04$126d33a3_9f7f_4583_8c94_5820d58fc030')
|| (llelementphone=='tx_powermail_pi1[uid1266]')
|| (llelementphone=='si_contact_ex_field3')
|| (llelementphone=='inc_contact1$txtPhone')
|| (llelementphone=='item2_tel_1')
|| (llelementphone=='LeadGen_ContactForm_15766_m0:Phone')
|| (llelementphone=='ctl00$ContentPlaceHolder1$txtPhone')
|| (llelementphone=='Default$Content$FormViewer$FieldsRepeater$ctl04$ctl00$ViewTextBox')
|| (llelementphone=='Default$Content$FormViewer$FieldsRepeater$ctl04$ctl00$ViewTextBox')
|| (llelementphone=='ctl00$SecondaryPageContent$C005$ctl00$ctl00$C002$ctl00$ctl00$textBox_write')
|| (llelementphone=='_u216318653597056311')
|| (llelementphone=='_u630018292785751084')
|| (llelementphone=='data[Contact][office_phone]')
|| (llelementphone=='ctl00$ctl00$cphMainContent$Content$txtPhone')
|| (llelementphone=='ctl00$ContentPlaceHolder1$txtTel')
|| (llelementphone=='item_5')
|| (llelementphone=='ques_21432')
|| (llelementphone=='phoneNum')
|| (llelementphone=='CONTACT_PHONE')
|| (llelementphone=='ff_nm_cf_phonetext[]')
|| (llelementphone=='WorkPhone')
) )
{
llformphone = (document.forms[llformlooper2].elements[llelementlooper].value);
In case you need a first name field, it's also got you covered with a similar code segment. Here's the full script in all its glory: https://gist.github.com/Daniel15/d0d81db793c89a01afe2
That's fine except for the fact that it goes to "1 of 26" if I press Home twice.
That's because the in-reply-to post was deleted or moved.
The correct behaviour would be to display an error message (if the post was deleted), or go to the post's new location (if it was moved). Just doing nothing doesn't make sense.
You're sort-of kind-of approximating Discourse's original launch theme. It's tough to find it in the wild anymore, since most active Discourse sites got the current flatter Win8/O365-ish theme auto-deployed during regular upgrades, but here's one forum that's still rocking the 0.8 style.
That looks much nicer than the current Discourse theme.
Related: Press End twice, then press Home. You end up at "2 of 26".
Gotta love off-by-one errors and reimplementing basic browser navigation features like the Home/End keys.
So why not unload the <noscript> tag once the page has been loaded? One wonders.
I don't think browsers keep the <noscript>
elements in memory if JavaScript is enabled.
It quite clearly says your address has to be between 4607 and 15623 characters.
But the address field has a maximum length of 18 characters. Does this mean I need to fill in the form 256 times?
I was trying to select a seat for a Qantas flight and got this helpful message:
I've checked the characters and can confirm that they are indeed characters, and the length of text sure is a length of some sort.
No matter what I entered into the "address" field, I kept hitting the same error. "Start over" is the only choice, the error page totally kills the session so clicking back just brings me to a "session expired" page.
The address field has a limit of 18 characters so I had to write "St" instead of "Street" in the address field due to the length of my street name. I thought that might be why it's complaining, so I entered my USA address instead, and got the exact same error. I tried four times and couldn't even work out what I was doing wrong now.
I called Qantas and a service rep couldn't do it either - She kept getting a "Seats already allocated" error. We eventually worked out that since this was a codeshare flight (a different airline ticketed my flight), we needed to use a different booking confirmation code to get it to work. I tried again with the other booking code and got the same error, but she tried it on her end and it worked for her.
Airline booking systems are TRWTF.
Why are they called emoji and not emoticons?
Do we really need both and :facepunch:?
Also: Australia
this site is not hosted on our dedicated servers at he.net
The dedicated server is with Hivelocity, not he.net.
it's hosted on Digital Ocean
Most languages[citation needed] only allow letters, numbers, and underscores in identifiers. Emoji are none of those.
C#, Java and PHP all allow unicode identifiers, including certain symbols. JavaScript doesn't. Not sure about other languages though.
I've never tested Emoji but I assumed they'd work given weird random symbols work.
In the system I use, we currently have 5 possible states for our bugs:Pending - equivalent to Open
On Hold - generally used when there is some obstacle to actually implementing a fix. These get reviewed on a weekly basis to see if they can be put back in a tracking status.
Cancelled - for some reason or another, the bug has become a non-issue. Either it could not be replicated, there were multiple tickets, etc.
Completed - this indicates that the fix has been completed and verified. It just needs to be published.
Released - the fix has been completed, verified, and published.
At work, tasks only have "open" and "closed" states, and we use tags for things like this this (Cancelled = notabug or wontfix, Completed = fixready, Released = task closed). Tasks are associated with diffs in Phabricator and the state (whether they've been committed and whether they're in prod yet or not) is automatically pulled from Phabricator.
"Variables are always initialized before use, arrays and integers are checked for overflow, and memory is managed automatically"
Wow, managed memory? Variables are initialised? I don't think I can handle the amount of innovation here. Clearly Apple have redefined expectations of what programming languages should do.
Oh my god... swift is worse than I thoughthttp://www.globalnerdy.com/2014/06/03/swift-fun-fact-1-you-can-use-emoji-characters-in-variable-constant-function-and-class-names/
(Also helps when copying and pasting links, as the URL reflects your actual current position, not an arbitrary top.)
Usually when I send a forum link to a friend, I want to link them to the thread itself, not to some arbitrary offset. Having to scroll all the way to the top or manually edit the URL just to do this is a bit odd.
What I meant is multimedia keys on keyboard / my bluetooth headphones.
I use di.fm's web player along with the Sway.fm Chrome extension which adds media key support. Not sure if it works on Windows but it works on my MacBook. I used to use Winamp on Windows, but their web player is pretty good these days.
I'm still seeing it in their code (search for "encrypted"
). Here's the code that handles "decrypting" it, looks like it was originally to hide email addresses or something:
booking[sNSStartup].fixMail = {priority: 9,init: function() {
var c = this;
$(".encrypted").each(function() {
$(this).html(c.deCode($(this).text()));
$(this).removeClass("encrypted")
})
},deCode: function(c) {
return c.replace(/[a-zA-Z]/g, function(d) {
return String.fromCharCode((d <= "Z" ? 90 : 122) >= (d = d.charCodeAt(0) + 13) ? d : d - 26)
})
}};
Bonus WTF: They read with $.text() and write with $.html(), thus turning even correctly-escaped text into an XSS hole. Genius.
At least the 1x1px image is loaded from a CDN. You have to be efficient with your 95 byte files.
Unfortunately "Why are your answers ROT13 encoded in your HTML?" wasn't in Booking.com's FAQ.
Are the previous threads going to be imported or is the old forum going to be removed forever?
Is that message specific to whatever software that is? (Is that Opera?) Or is it an OS-wide thing? (What is that? OSX?)Microsoft Outlook on OS X. Apparently the built-in Mail app in OSX doesn't behave well with the Exchange setup at work so we need to use Outlook. It really hasn't been too bad though, I expected a lot worse from a Microsoft app on an Apple OS.
The local electricity company's online management portal seems to use some rather interesting browser detection code:
var isMobile = "" === "true"; var isAndroid = "" === "true"; var isIPad = "" === "true"; var isIPhone = "" === "true";
I went to the site using Google Chrome on my phone (a Samsung Galaxy S3). It rendered with a mobile stylesheet but that isAndroid variable was still false.
At least they're checking for strict equality, right?
@blakeyrat said:
I mean I already think Nuget on Windows/Visual Studio is a bad idea
Really it's just the same thing .NET developers have always done (check in .dll files in a lib folder) with added dependency management and version tracking. If you don't use package restore, you're not dependent on NuGet at all (as you just end up with a folder containing all the dependencies).
@levbor said:
Why am I the only one who thinks this is TRWTF?
Reminds me of something I'd see on http://www.textfromxcode.com/ :P
Shouldn't the UI be communicating to a business layer, not directly to the DAL?
dependency injection framework such as spring or GIN.I'd suggest Google Guice.
Sometimes you're told that you need permission from $USER to perform an operation, but $USER can't actually enter credentials for you.
I got this one at work a while ago:
Another time, it said I need permission from daniell (my user). The file wasn't locked by any other process, and closing and reopening Explorer didn't fix it. Restarting my computer fixed it, though.
@LoremIpsumDolorSitAmet said:
Nice find! So whose build code should be named and shamed?
Well, it's better then why my copies of the Windows ISO burner seem to do: Appear to successfully finish only to find that the disk image is corrupted when trying to use it.I used to use CDBurnerXP and it seemed to "freeze" when bad things happened. The app wasn't actually locked up or frozen, but the progress bar got stuck at a certain percentage and wouldn't move, and nothing was written to the log. I think it's just a big wrapper around a CD burning COM/ActiveX component so maybe it just wasn't handling the errors correctly.
Turns out the build failure was because of a particular task failing but not outputting any errors:
Task "CollectFilesinFolder" (TaskId:470) Done executing task "CollectFilesinFolder" -- FAILED. (TaskId:470)
I looked at this task in a decompiler and saw that it loads an error message but never actually does anything with the error message (because who would like to actually see the reason for a build failure?):
if (!Directory.Exists(this.RootPath)) { SR.GetString("BUILDTASK_ColectFilesInFolder_RootIsNotValid", this.RootPath); return false; }
A build on the CI box (CruiseControl.NET) was failing but I couldn't see any obvious errors. So I tried building just one of the many web sites and services on my PC and got this:
I'm so used to seeing red when builds fail that I didn't even realise it had failed to build.
@wonkoTheSane said:
If the site uses windows auth and/or the share is locked down to certian users then the current user may not be able to access the images, Doing it this way will use the Application pool identity to access the file and pass it back to the client - still more code than is needed, but it does make a bit of sense.
Did you take a screenshot? It's gone now but I'm curious as to what was in the stack trace :P
Reminds me of when I saw some print_r debugging on one of the biggest news sites in Australia (news.com.au). The University of Sydney one is a lot worse though.
@Jaime said:
The posted code would fail if the format was changed to PNG.
Any idea what the original intention was? Possibly trying to remove or add a thumbnail or some other metadata? I can understand not knowing about WriteFile and re-implementing that badly, but the conversion from JPEG to JPEG is surely not explained by not knowing that you can read a file to a byte array.The code is in a page called "GetImage.ashx" and as far as I can tell it's only designed to retrieve a JPEG image file off a network share (I think it's coming from a NetApp NAS box). The images are just small photos and I think all the processing is done when the images are uploaded. No clue what the original developer was thinking or if I'm missing anything :P
A while back I encountered this piece of code:
byte[] objImgData = ConvertImageToByteArray(new Bitmap(fileName), ImageFormat.Jpeg); MemoryStream objMemoryStream = new MemoryStream(); objMemoryStream.Write(objImgData, 0, objImgData.Length); Image objImage = Image.FromStream(objMemoryStream); HttpContext.Current.Response.AddHeader("Content-Disposition", "filename=" + fileName); HttpContext.Current.Response.ContentType = "image/Jpeg"; objImage.Save(HttpContext.Current.Response.OutputStream, ImageFormat.Jpeg); ... private byte[] ConvertImageToByteArray(Image objImageToConvert, ImageFormat objFormatOfImage) { byte[] objByteImage; using (MemoryStream objMemoryStream = new MemoryStream()) { objImageToConvert.Save(objMemoryStream, objFormatOfImage); objByteImage = objMemoryStream.ToArray(); } return objByteImage; }
So essentially what it does is:
It's using two different instances of the same image and three different streams in memory. Surely there's a better way?
It's already known beforehand that the image is a valid image file. I replaced it with a single line of code:
Response.WriteFile(filename);
Bonus bug: The Content-Disposition header in the old code had the full server-side path for the file, not just the file name)
As regards cost for SSL certs, ever think about moving to a free provider? such as StartSSL?I agree - Use a free StartSSL certificate for the staging server.
Last time I had to clean up HTML, I wrote a C# app that uses the HTML Agility Pack to parse the page. It looped through every element in the file, removing the ones that weren't in a whitelist (and cleaning up the attributes of the remaining elements). I used it to do the first pass of converting a Sharepoint wiki with horrid HTML to Dokuwiki/MediaWiki format. I can try find the app if it'd be useful to you.
@sprained said:
This is one of the very few things that Adobe Dreamweaver is brilliant at, actually. Although maybe a tad expensive if this is all you're going to use it for.
Not even PHP requires a third-party library just to guarantee basic functionality across platforms.PHP just has a single main implementation, though.
JavaScript doesn't have OOP.Intrinsic types like strings have instance methods on them (like toUpperCase)... Looks pretty OO to me.
Interesting... I did a very similar thing a while back. http://jsfiddle.net/Daniel15/Z6FBf/2/ (Community Server seems to eat some of the characters)
@ais523 said:
More likely it's an MS Word to web-based CMS copy & paste operation that went south. Word's bulleted lists by default use the Symbol font for their bullets and include a non-breaking space after the bullets...
Are you using Lotus Notes?Nope - My university uses some Hotmail thing which I forward to my personal Google Apps account.
@blakeyrat said:
Oh and the Status Bar on the launcher screen, if you launch the app without double-clicking a file, reads: "Oompa Loompa doompadee doo."
For some reason I'm still on a bunch of mailing lists at my university even though I graduated last year. Today I got an email that had the following text:
...
information sessions for students studying:
•&νβσπ;Software & Web Development
•&νβσπ;Information Systems
•&νβσπ;Telecommunications & Networking
...
Searching Google for &νβσπ; brings back 700 results. What is this strange series of characters and where does it come from?
@dhromed said:
What language is this? I know none that allow variable names to start with %.
On http://smec.com/:
<script type="text/javascript"> function handleError() { return true; } window.onerror = handleError; </script> <script type="text/javascript" language="javascript"> function doCallback1(param1, param2, param3) { Callback1.Callback(param1, param2, param3); } function doCallback2(param1, param2, param3) { Callback1.Callback(param1, param2, param3); Callback2.Callback(param1, param2, param3); Callback3.Callback(param1, param2, param3); } function doCallback3(param1, param2, param3) { Callback2.Callback(param1, param2, param3); Callback3.Callback(param1, param2, param3); }function InitLocation(division) { clbDivision.Callback(division); } </script>
I'm not sure what's worse - The fact that all JavaScript errors are silently ignored, doCallback2 having three callbacks and doCallback3 having two callbacks, or the use of some global "Callback[123]". Also there's functions called "foo" and "bar" defined in their JavaScript somewhere. Another WTF - When you return true in the window.onerror handler, this prevents the default event handler. This is the opposite to all the other DOM 0 events (such as onclick), where returning false prevents the default handler.
Also, not JavaScript, but on the same site, large.css is "Medium" and medium.css is "Lagre":
<link type="text/css" href="/Css/fonts_files/large.css" title="Medium" rel="alternate stylesheet" /> <link type="text/css" href="/Css/fonts_files/medium.css" title="Lagre" rel="alternate stylesheet" />
It's called a CSS framework, and it's a workaround to stuff likeHow is this a framework? How is having <div class="cssFloatLeft cssPositionAbsolute cssMarginTop10 cssPaddingBottom12 cssWidth280"> better than actually using CSS properly?
I have devised a common.css that I include in each project and update now and then based on new insights. It's similar to reset.css, except it's based on practical usage instead of the common bullshit anti-wisdom known as "ZERO ALL THE THINGS BECAUSE I AM BETTER THAN THE DEFAULTS".Sounds like Normalize.css, which is what the HTML5 Boilerplate uses. Source is on Github.