|
yaoi prophet posted:Tumblr lets users reblog/like posts they see on their dashboard. When you look at an individual post, it also shows you the last 50 or so 'notes' (reblogs, likes, and replies) on that post, not only by that user, but by all people who reblogged that post. Pretty interesting, right? Sounds like the sort of data you might want to visualize if you're into that sort of thing. This is awesome. quote:<a class="more_notes_link" href="#" onclick="this.style.display='none';document.getElementById('notes_loading_POSTID').style.display = 'inline';if(window.ActiveXObject)var tumblrReq=new ActiveXObject('Microsoft.XMLHTTP');else if(window.XMLHttpRequest)var tumblrReq=new XMLHttpRequest();else return false;tumblrReq.onreadystatechange=function(){if(tumblrReq.readyState==4){var notes_html=tumblrReq.responseText.split('<!-- START '+'NOTES -->')[1].split('<!-- END '+'NOTES -->')[0];if(window.tumblrNotesLoaded)if(tumblrNotesLoaded(notes_html)==false)return;var more_notes_link=document.getElementById('more_notes_POSTID');var notes=more_notes_link.parentNode;notes.removeChild(more_notes_link);notes.innerHTML+=notes_html;if(window.tumblrNotesInserted)tumblrNotesInserted(notes_html);}};tumblrReq.open('GET','/notes/POSTID/REBLOG_KEY?from_c=',true);tumblrReq.send();return false;">Show more notes</a><span id="notes_loading_POSTID" style="display:none;">Loading...</span>
|
# ¿ Jan 27, 2011 22:05 |
|
|
# ¿ Apr 28, 2024 08:24 |
|
Wouldn't it just be easier to resave the word document as .docx and unzip it
|
# ¿ Apr 30, 2011 18:56 |
|
Monkeyseesaw posted:Rule #1 of web development: Browsers don't scream about *anything*. code:
|
# ¿ May 12, 2011 20:58 |
|
NotShadowStar posted:
I know one of those SEO spammer retards loves doing stuff like code:
|
# ¿ May 13, 2011 20:56 |
|
course you cancode:
|
# ¿ May 27, 2011 18:12 |
|
To be fair, gcc has it described as -Wall Emits all generally useful warnings that gcc can provide. Specific warnings can also be flagged using -Wwarning, where warning is replaced by a string identifying an item for which you want to list warnings. while php has it as // Report all PHP errors (see changelog) error_reporting(E_ALL);
|
# ¿ May 29, 2011 05:17 |
|
Chairman Steve posted:Isn't this part of PHP's API for interacting with MySQL, and not inherently part of MySQL itself? PHp's API for interacting with mysql should bloody well be prepare, execute, fetch Not real escape string
|
# ¿ May 30, 2011 04:28 |
|
Today I saw a MySQL database for an old internal webapp. It has one column that contains base64-encoded XML for data.
|
# ¿ Jun 1, 2011 23:13 |
|
Ghettocode horror: find nd replace 'id=' with 'class=' then iterate through that
|
# ¿ Jul 22, 2011 14:23 |
|
Profane Obituary! posted:this is what blame is for. Assuming you use version control at all.
|
# ¿ Jul 29, 2011 00:07 |
|
Internet Janitor posted:Good luck punching 80 characters on a card- where the hell do you plan on putting the identification sequence? Most compilers don't even accept more than 72 characters. I suppose next you guys are going to tell me you waste space on multi-character variable names. i, ì, í, î, ï are all perfectly valid variable names and I see them used far too often.
|
# ¿ Jul 30, 2011 04:50 |
|
NotShadowStar posted:I've been working with Drupal a hell of a lot the last six months. The core developers behind it seem like reasonably intelligent people and understand PHP is a wretched language and keep it to the very basics: arrays, functions, very basic objects and it works okay-ish, if not excessively verbose. Unfortunately when I have to delve into PHP land I remember how god awful it its. It took me an entire afternoon to parse a CSV file because neither str_getcsv or fgetcsv could figure out new lines properly so it always just split CSV files into one gigantic flat array. Something that would take minutes to do in any other language. It works okay provided your newlines are at the end of a line and not within any value field ever
|
# ¿ Aug 12, 2011 21:58 |
|
Wheany posted:var hasChanged = false; Why not just use hasChanged && (module1.reload(), module2.reload(), module3.reload(), module4.reload()); (assuming this is js)
|
# ¿ Sep 7, 2011 00:52 |
|
Monkeyseesaw posted:Well I was being glib to some degree. Never fear, Adobe is here! edit: the css is worse
|
# ¿ Sep 16, 2011 22:03 |
|
I've seen some assholes in unicode-aware languages use ìíîıǐi for nested ++ Seems like a good idea.
|
# ¿ Oct 19, 2011 17:25 |
|
nielsm posted:But how else could you write financial applications if you don't have a way for decimal numbers! I've seen code where php:<? $price1 = mysql_result($dbprice1); $price2 = mysql_result($dbprice2); $price = $price1.'.'.$price2; ?>
|
# ¿ Nov 2, 2011 19:03 |
|
yaoi prophet posted:The next time I really want to gently caress with a web dev I'm using this trick on them. Don't forget that certain things carry weight so if they use multiple CSS files you can also override them or use comically specific > rules
|
# ¿ Dec 21, 2011 05:19 |
|
Zamujasa posted:Holy poo poo, that TVTropes page is amazing. I wonder how many terrible hacks have been added to the source to do these sorts of things, since they definitely don't seem to be standard markup. http://tvtropes.org/pmwiki/pmwiki.php/Tropers/Solstace?action=source Haha, what the hell
|
# ¿ Dec 25, 2011 01:53 |
|
Wheany posted:If you want to be a cool dude, roll your own json encoder in php. Then make everything a string. And also, don't bother quoting every name in an object, you're a cool dude, after all.
|
# ¿ Dec 27, 2011 23:19 |
|
baquerd posted:I counter with code:
|
# ¿ Dec 31, 2011 18:38 |
|
Rainbow Pony Deluxe posted:Is this how you say "Come at me, bro" in PHP? No, this is the tvtropes forum javascript library in a nutshell
|
# ¿ Dec 31, 2011 19:34 |
|
Zamujasa posted:That quote reminds me of people who almost exhibit common sense, but make a sharp turn into a wall. For example, it really is possible to pull off a man-in-the-middle attack, but... not quite like the way he's showing. Lol: L=Alto Palo
|
# ¿ Jan 12, 2012 15:28 |
|
I think the real horror there is running a version of PHP vulnerable to so many fun, hilarious things and ..that old
|
# ¿ Jan 19, 2012 17:50 |
|
bc 1.06.95 Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. ^C (interrupt) use quit to exit.
|
# ¿ Jan 21, 2012 16:16 |
|
nielsm posted:phpFreeChat.
|
# ¿ Jan 27, 2012 01:15 |
|
I just found an old PHP script that used sqlite2. The issue here wasn't sqlite2. It was remote access to it: the other end would exec("rm -rf /tmp/sqdb"); exec("wget -q -O /tmp/sqdb phpurl"); - which would send the entire database, run an insert, then send it back up in a cURL HTTP POST
|
# ¿ Feb 3, 2012 06:02 |
|
code:
|
# ¿ Feb 10, 2012 22:49 |
|
pokeyman posted:Would it be too generous to suggest that someone forgot to add if (debug) around that garbage? Why would you think that? (production)
|
# ¿ Feb 11, 2012 00:30 |
|
The Gripper posted:What on earth is it trying to do? I presume it's to do something like allowing X-F-F to be parsed for logging to access.log/error.log or for DB/logins/etc It doesn't actually work. edit: the only thing that that function is called in is to log to access.log on page hit access.log's IPs consist entirely of 10.* LAN IPs. Impotence fucked around with this message at 01:34 on Feb 11, 2012 |
# ¿ Feb 11, 2012 01:32 |
|
Zend_Mail does sanitisation in any way right..?
|
# ¿ Mar 15, 2012 19:47 |
|
Wheany posted:hg init What, I have to type git commit every single time I make a change?
|
# ¿ Apr 20, 2012 18:34 |
|
Contero posted:code:
|
# ¿ Apr 28, 2012 19:24 |
|
yaoi prophet posted:I like the repeating ICAgICAgICAg. I bet they're using EBC because the person who implemented their encryption doesn't know the first thing about block ciphers. Nah, that was base64 of the quoted post. I've actually seen it encapsulated in XML like three levels deep. And some people actually consider it encryption
|
# ¿ Apr 28, 2012 20:03 |
|
trex eaterofcadrs posted:Any reason you're not using solr or elasticsearch? They do all that kind of crap for you. Out of curiosity, what are your thoughts on indextank?
|
# ¿ May 4, 2012 02:14 |
|
question: it's php 5.4 already and there is still an error in transliterated hebrew. what causes it?
|
# ¿ May 10, 2012 17:24 |
|
What is it with PHP and virtually every environment for it? It seems like PHP is almost always running disgustingly out of date versions, no "normal host off the street" (or anywhere else really) runs up to date/anywhere close to up to date versions/5.4?
|
# ¿ May 10, 2012 17:53 |
|
Otto Skorzeny posted:a shitload of weed. http://utf-8.jp/public/aaencode.html
|
# ¿ May 12, 2012 09:34 |
|
Zamujasa posted:<html xmlns="http://www.w3.org/1999/xhtml" /> Did he seriously close the <html> tag?
|
# ¿ May 17, 2012 23:30 |
|
Gazpacho posted:As the internet creates a fetish subculture for everything, so does project hosting create... php:<? $Text4fba9fe079c2a->setText('Hello world'); $HBox4fba9fe079af5->addChild($Text4fba9fe079c2a); $input4fba9fe079cca = new Harmony_Toolkit_Element('input');?>
|
# ¿ May 21, 2012 21:05 |
|
|
# ¿ Apr 28, 2024 08:24 |
|
Internet Janitor posted:There's also https://github.com/aseemk/json5 Does http://publib.boulder.ibm.com/infocenter/wsdatap/v3r8m1/topic/xi50/convertingbetweenjsonandjsonx07.htm#wq18 count?
|
# ¿ May 28, 2012 21:42 |