« first day (781 days earlier)      last day (4185 days later) » 

6:00 PM
Cats on the internet I'm ok with. Cats shitting in my garden not so much :)
 
I dont like them in real. In pics, they are Ok :::P
Ah lol
 
cates cute ....cool...i love them ...
 
Its not that I dont like, I am afraid of Pet Cats. When I visit my aunt, her fucking cat just jumps on to me. Err. I will have to run for life then. Same thing with dogs
 
@NullPointer I only now read what it is about
 
@NullPointer Nice website (functionality)
 
6:03 PM
The title of the should have given it away though :P
 
@PeeHaa ???
 
@NullPointer I thought it was just a random cat corner on the internet, but it actually has a use
 
@PeeHaa its.. that's why ... i posted here
 
Will this always result in a broken image with whatever setting php ini have?
<img src ="http://hackerssite.com/phpshell.php"></img>
?
 
6:05 PM
@Kishor no
 
@Kishor what ???
 
@Kishor If that PHP file serves an image with proper headers, it would work.
 
user1125394
Madara Uchiha has invited you to join Recycle Bin o thx but there are better places :p
 
@cyril hehe
 
@cyril It invites you there? lol
 
user1125394
6:06 PM
yep
 
Nov 30 at 22:07, by DaveRandom
@PeeHaa The thing is recycle bin is not bin, I think bin has special rules, but recycle bin is just a public room some randomer created, so it's just like the post was migrated from here to e.g. JS, where it would make sense that you get an invite. Took me a while to figure that out, and I'm still not sure it's right.
 
@MadaraUchiha - Lets imagine the file is a php shell file.
@NullPointer - I am getting an imagelink from user and hotlinking it. wanted to know whats the worst thats going to happen without any preventions/checks
 
@Kishor Nothing for you. Make it clear for the user that the image wasn't originated at your site. So that you aren't responsible for damage
Do add checks and preventions though, don't leave your users vulnerable, it's not right.
 
6:09 PM
@MadaraUchiha @PeeHaa ....came same time in bin lol
 
I was hoping room owners had access :D
 
@MadaraUchiha - Yeah, Okay. will do that for sure. Just wanted to know if its vulnerable to me anyway.
 
how to move message ??? to other room ?
 
@NullPointer room owners can do that
 
Magic and fairy dust
 
6:11 PM
@NullPointer Room owners privilege only :)
 
i have created room but unable to do
 
@NullPointer Click on the room▼
There's "Move messages" there
Just changed them all like that, example 'echo "<td>"."<input type=text name=id[] value=" . $row[ID] . " </td>";' Still doesn't want to update whatsoever — Jamie Straw 2 mins ago
Someone clearly misses the point here...
 
user1125394
0 message moved to recycle bin
 
1 message moved from [Actionscript ](chat.stackoverflow.com/rooms/20546/actionscript)
@MadaraUchiha thankyou got it
 
is it possible to make a class destroy all references to itself?
 
6:22 PM
no and that's stupid
 
@NikiC why is that stupid? I want noone to be able to access the object anymore
And hello to you @NikiC
^_^
 
@Neal You are basically asking "Can I leave danging pointers in PHP?"
 
@NikiC well yes and no. is there a way to make it so that if one tries to use that pointer, it fails with some custom error
i guess I can make some if condition...
but that is annoying
 
E_ALL_HELL_FREEZES_OVER?
:D
 
@PeeHaa :-P
 
6:31 PM
stackoverflow.com/questions/3420902/… how this user posted only 20 char long answer
??
:-\
 
@NullPointer ha
That was before the limits.
@NullPointer The other answer is a comment. flag it as such...
I see no eval, hear no eval. — Neal 2 mins ago
^_^
 
@Neal Just community delete it :)
 
done
 
@PeeHaa lol that too :-P the option wasn't there yet
and now it is. voted
 
:)
 
Hi, please somebody help with htaccess rewriting rules, my server show this url: www.domain.com/domain.com/folder/.... but it is wrong, I want it to be www.domain.com/folder/....
 
@NullPointer I still want to know where people are getting that idea
It's not intuitive to think to store images in a database.. someone or something is giving them this idea.. I must know who/what
 
6:47 PM
@MikeB i think these are non cat loving people .... .yup its worst thing to do...
 
@MadaraUchiha Sure, if you know what to search for. But how does a novice programmer come up with the idea of storing binary data (usually a very foreign concept) in a database field
Unless they regularly read tutorials from 2008
 
<?="Hi all" ?>
 
short open echo tag and neglecting the semi colon. Wow. You're brave
 
user1125394
@MikeB you store them directly on disk then?
 
And hiya :)
 
6:50 PM
@Baba Parse error: syntax error, unexpected $end on bla
hello..
 
@cyril Sure, or a cdn, or other highly available location.. but I see this image/blob-field question on SO atleast once a week since I've been on here
 
@NullPointer & @PeeHaa its obvious you are version 4.3.0 - 5.3.9 3v4l.org/bQmO9 :)
 
@NullPointer lol, You always run the code snippets people drop here ha ha?
 
Join me at 5.4.0 - 5.4.9
 
And I've never seen the idea of storing images in a database publicized (save from the few tutorials showing how to do this.. but they're always accomponied with disclaimers and warnings about how its a bad idea) or glamorized in any way.. so how is this bad practice getting out?
 
user1125394
6:52 PM
@MikeB ok but I fell also in the trap, because many dbs say they support binary data and so on
 
@Baba I'm on 5.4 and I still think it is terrible practice :D
 
@MikeB I linked that for a reason
 
@cyril I'm not attacking you or anyone - please understand that :)
 
Most of those are over 3 years old.
 
I just want to understand where you first got the notion of doing that
 
6:53 PM
@MikeB Use cases and pros: stackoverflow.com/a/815887/508666
 
@PeeHaa ... lol
@PeeHaa .. my main man .. how are you doing today
 
Coldish, but besides that pretty good. And how is Baba today?
 
@PeeHaa There's always exceptions to the rule.. tell me if the people who are using mysql_query() to insert blob data into a table called myTable are likely to fall within that case?
 
<?php echo "Hi Old School PeeHaa"; ?>
@PeeHaa am ok .. taking a lot of ORT
 
@MikeB :D
 
6:55 PM
Hmmmmm
 
Touche Mike touche
 
<?php

function redirect($to = "") {
    header("Location: rikudo.myminicity.com$to");
    exit();
}

$xml = file_get_contents("http://rikudo.myminicity.com/xml");

$dom = new DOMDocument();

$dom->loadXML($xml);

$root = $dom->getElementsByTagName("city")->item(0);

foreach($root->childNodes as $child) {
    if ($child instanceof DOMElement) { ${$child->tagName} = $child->textContent; }
}

if ($unemployment > 10) {
    if ($population > 300) {
        redirect("com");
    }
    redirect("ind");
 
@MadaraUchiha Work with me. I'm a novice programmer who understands the basics of filesystems and code syntax. I can write hello world and save/pull information from a database. Where in the world do I get the idea to take an image and store it in a database.
 
This piece of code works perfectly on localhost, but fails on a live server.
 
@MadaraUchiha ping
 
6:56 PM
Gives a 500 error
Error logs says the following:
[Wed Dec 05 19:51:09 2012] [error] [client 95.35.63.237] File does not exist: /home/tchizik/public_html/sys_cpanel, referer: XXX
I never tried to access sys_cpanel from the code, where does this error come from?
@Baba Hey
@MikeB You need a gallery application
 
@MadaraUchiha 500 Error ... ?? was error reporting switched off
 
Everytime I see 4 ifs right after eachother I'm tempted to convert it into a switch :) Do I have mental issues?
 
@Baba It's a live server, so yeah, probably.
 
@MadaraUchiha There is your problem. You are using cpanel :D
 
@MikeB Where you store images somewhere, not necessarily in the Database.
So you google something like "How to store and fetch images with php and mysql"
Or even without the mysql part, and those are the tutorials you get
That's all there is to it.
 
6:59 PM
@MadaraUchiha out of curiosity just add
error_reporting(E_ALL);
ini_set("display_errors", "on");
 
@Baba I still get a 500 page, and the same error in the error log.
 
function redirect($to = "") {
	//header("Location: rikudo.myminicity.com$to");
	var_dump("Location: rikudo.myminicity.com$to");
	exit();
}
I got string 'Location: http://rikudo.myminicity.com/' (length=39)
to was empty most of the time
only wanted you to remove the redirection
add error reporting and see
 
@Baba That's the intended output
All the conditions should fail, and the default (empty) redirect should be called.
 
@MadaraUchiha Clear the file and add die('Madara'); - Do you see it?
@MadaraUchiha Thanks that helps
 
7:04 PM
@PeeHaa ... i concur
 
@PeeHaa But that's a warning, not a fatal error
It should trigger an empty page, not a 500 error.
 
@MikeB die('Madara'); looks interesting
 
Sanity check to make sure you're working on an even playing field
It's not fair to our sanity if we spend hours debugging a problem that's on a totally different level :p
 
@MikeB Fails as well... :o
wth is wrong with that server
 
See :)
 
7:06 PM
@MadaraUchiha ... have seen that before .. when error reporting is turned off
 
@Baba What kind of error would die('Madara') cause?
 
EndOfLifeException $e
 
@MadaraUchiha just to check the redirection and remove the header
 
Noob question. I save data after sanitization to my database. I now want to check if it exists. so should I check it with sanitized data or non sanitized one? I mean, in the query, at the WHERE= part
I am just making sure
 
@Kishor Don't sanitize. Prepare
 
7:09 PM
@Kishor I don't follow. What are you trying to do?
 
user1125394
if ($time === "2012-12-21") throw ...
 
@Kishor You always escape parameters
 
-6
Q: What is wrong with the following PHP code?

muzzz<?php $var = "abcd"; $i = 2; echo "$var[($i)-1]"; ?> Is $var[($i)-1] not equivalent to $var[2-1] , which is equal to $var[1]? But this code fails to run. If this is wrong, how do I achieve this?

 
@MikeB - Okay. :) Cheers!
@PeeHaa - I am using mysqli, procedural, just like I was using mysql. I am moving on from there soon, am slow lol.
 
7:13 PM
That's not an excuse to not use prepared statements :)
 
This website is not for "I don't know how". It is for, I tried, this is what I did, and it is not working. What have you tried?Neal 5 secs ago
 
Ha ha.. I will start using it/them
 
he is struggling with html and php and someone needs him to use ajax :)
 
@Neal why not suggest to do like echo 'hellow this'.$var.'end over here'; ?
 
7:18 PM
@NullPointer eh?
for what?
 
@NullPointer I am very confused...
x_x
 
@Kishor lol
 
you suggested to use like echo "{$var[$i-1]}"; i think we use {} when we want to make sure var will be handle like variable in " so isnt it good to use above like i ^^^
 
@MadaraUchiha ... any luck
 
7:22 PM
@Baba Nope
is @webarto here?
 
@MadaraUchiha seen 1m ago, talked 1h ago
 
Leave a message after the beep @MadaraUchiha
 
beep beep beep beep ..
i heard many beed in senserod movie
 
@MadaraUchiha did you try what i asked ?
 
7:29 PM
@Baba What have you asked again?
Enabling error reporting? The server isn't mine, I can't enable it globally.
 
@MadaraUchiha Error Reporting Just on the script , replace header with var_dump and just run the same code
 
@Baba I'm telling you die('Madara'); fails too
 
<?php
<?php die('Madara'); ?> fails
You must be kidding right :)
 
@TimWolla this is a legit answer to the question. This is not a comment. If you are using the "review" tools, you have the option whether or not to make a comment (which you did). You should probably do some research for before quickly flagging next time ^_^ — Neal 5 secs ago
Please help me nag ^_^
 
whats you people's comfortable place for coding? Sofa? Table? Bed? at times, it makes me so uncomfortable that its so irritating to carry on.
 
7:34 PM
@Kishor Sofa
lol
 
i like loo....lol
 
@Kishor my dek in my office. I have mo other choice...
 
@Neal - I assume you work as a coder. Am not asking in that sense.. apart from job, when at home i mean
 
@Kishor ehhhh couch
 
sofa, daybed, couch, divan bed, divan
 
7:37 PM
toilet!
 
@NullPointer divan?
 
@MikeB lol
 
@NullPointer - You are from India?
 
@Neal all are synonyms
 
@NullPointer ahhh haaa...
 
7:38 PM
@NullPointer - Not really. they are different. :|
 
@MikeB there should be hot sheet ....
 
bed !== couch
 
Sofa != Divan
Divan -
http://img.tradeindia.com/fp/1/663/329.jpg
 
@Kishor got here translate.google.co.in/…
@Neal yup...
 
0
A: What is the PHP function that takes the string 12/5/2012 as input and prints 05-12-2012

Sheikh Heera Anyone can u please help me, I want to know What is the PHP function that takes the string 12/5/2012 as input and prints 05-12-2012 You may try this to convert 12/5/2012 to 05-12-2012 function mdy_to_dmy($dt) { $dt=explode('/', $dt); $new_dt=$dt[1]."-".$dt[0]."-".$dt[2]; retu...

 
7:40 PM
@NullPointer So, you originally typed foreigners? :P
 
lol
 
@Neal You know you can type with two hands :P
 
I can't believe a 16K rep would use explode on that
 
water closit should be beautiful ...and comfortable
 
@webarto naaah
 
7:41 PM
@Baba zOMG
 
hehe funny typos tho
 
@ShaquinTrifonoff :----P ......???
 
@NullPointer &rls=org.mozilla:en-US:official&q= foreigners &bav=
 
@webarto .. lol the next just with 80 rep is using DataTime .. see the contrast
 
Amazing. @Baba I think he earned rep from HTML/CSS/JS and not from PHP... but still...
 
7:43 PM
what /who ????
 
@ShaquinTrifonoff - It flashed Foreigners for a second and changed to couch in the text field, for me. I didnt care much though :)
 
@webarto ... i don't know what to say ...
@webarto saw a code like this like 5 years ago
lol
can't stop laughing
 
He probably thinks that is leet.
 
Just thinking .. how do you advice someone like that ?
Please google PHP For dummies or what
 
7:48 PM
@Baba php for dummies is a boring book
 
@NullPointer .. don't tell me you read that ?
:)
 
tried .... for 2-3 days ....
ill tell you
...lol
 
function mdy_to_dmy($dt){return explode('/', $dt)[0] . '-' . explode('/', $dt)[1] . '-' . explode('/', $dt)[2]);} One liner. I'm just kidding, you have no excuse not to use strtotime or DateTime for that matter, leave the calculations to PHP. I suggest you delete your answer. — webarto 49 secs ago
 
@NullPointer how many years back?
 
@webarto lol
 
7:50 PM
1 year
 
was expecting a jquery version .. lol
@NullPointer got the PDF version some year back .. saw the introduction and deleted it instantly
 
@webarto So he did
 
@webarto It's gone
deleted
 
new $.awesomeMdyToDmtjQueryPlugin('12/5/2012').month(2).date(2).year(4);
 
@webarto that even better that what we have there ... lol
 
7:52 PM
@PeeHaa ping
 
jo @DaveRandom
 
Howz tricks? Just a brief question about the gripHandler, I feel sure I'm missing something
 
ping @DaveRandom -t
 
@DaveRandom shoot
And tricks are good
 
github.com/PeeHaa/gripHandler/blob/master/griphandler.js#L23 - why .data() and not just a var initialHeight;? It seems like they would work the same way :-/
 
7:55 PM
Anyone have any idea how Wordpress Url Rewrite posts with title name? Using Database and Htaccess together somehow? or someother way?
 
shuld be
@Baba also got pdf too...
 
@NullPointer you are hurting my eyes
:)
 
Okay, need to find something that will give me +1 rep. Then I'll have 10101
 
@NullPointer - You are too slow to delete a message before others see it. :)
 
i also want to make same title for headfirst series
 
7:58 PM
@NullPointer .. download it then out of curiosity ...
@GordonM done
 
@GordonM - I am going to +1 on one of your answers. And You FAIL
ah you already failed! :P
 
Thanks to me :)
 
Damn, 10110.
 
You now have 10110. @Baba - He wanted 10101. He looked for +1, you gave him +10 :P
 
Nice try though :) Thanks
 
7:59 PM
@GordonM now 3 downvote by other and i by @GordonM himself on answer make 10101
 
@DaveRandom I've been staring at it really hard and I came to the conclusion that I have no fucking idea
 
@NullPointer lol
 
@GordonM Let's downvote 4 of your answers then lol
 
It looks like there is a reason for it, but I just don't see it :P
 
Ah, no worries, it's not a big deal :)
 
8:00 PM
@PeeHaa lol. I'd guess it's a remnant of something, it's obvious there are a couple of revisits because apart from anything else the dblclick handler is randomly indented by 2 instead of 4 spaces.
 
Just curious how do people end of with this in the first place
0
Q: PHP: Split Complicated String

w0lf42I'm attempting to write a function that will take a string and create a drop down list. Here is an example string: Primary[Blue|0000FF,Red|FF0000,Yellow|FFFF00],Secondary[Green|00FF00,Orange|FF9900,Purple|663399],Brown|A52A2A,Silver|C0C0C0 That I want to turn into this: <select> <...

 
@DaveRandom Lol. Didn't even notice that. It also doesn´t really help there is only one commit ;P
 
@PeeHaa :O not even looked at the history.
 
lol... I had someone look at my site with Chrome 25.0.1337.0
 
@ShaquinTrifonoff i.imgur.com/AFMDJ.png bottom right corner, your life will never be the same.
 
8:09 PM
@NullPointer forced to cheat stackoverflow.com/a/13731527/1226894
 
I have urls like mysite.com/view.php?id=1 I have the title of the url in the database. I am trying to have urls like mysite.com/title-of-the-post Can someone point me in the right direction?
 
@Kishor You have a single point of entry, with a rewrite to prettify urls
The actual URL is mysite.com/index.php?route=title-of-the-post
 
@Kishor i tried to open both link .... stupid again
@Baba ????
 
@NullPointer - lol, I am sorry.
@MadaraUchiha - I didnt get you. The actual url? what do you mean?
 
Then index.php contains the logic to fetch titles from the database, and return the appropriate page.
 
8:12 PM
@NullPointer combined preg_match_all + 2 loops
 
@Kishor You set index.php to accept a GET variable named route.
 
@Kishor sont be
 
I give users 5 random links to click on, like index.php?id=1 to 5.
 
Right I'm off out, later all
 
and yeah, I can get the id and fetch the content
 
8:13 PM
That url (index.php?route=page-name) is prettified with mod_rewrite to /page-name
 
@Baba its cool....
 
@Kishor But then index.php can contain the logic to fetch the actual page with the slug (that's what it's called)
 
@MadaraUchiha - How do you have the page name at first part? I dont have it in my case.
 
@NullPointer .. really thinking it was messy ...
 
@Kishor I don't follow?
 
8:14 PM
How do people end up with such strings in the first place
@webarto any ideas
 
@Baba They're idiots, mostly.
 
@Kishor assuming you're using apache, you need to set up a rule with mod_rewrite to redirect everything to the index
 
@Kishor night guys ....its 1.45pm gota go to sleep
 
@MadaraUchiha ... looking at the string .. it looks like a stupid version of json
 
@Madara - I have the id of the page and I am trying to make an seo friendly slug. the post name is in the database.
@G-Nugget - You are getting me wrong. I can fetch the content and show it to the user. But I need to make the URL SEO friendly. So instead of id=1, I would like /post-name
@NullPointer - 1.45 am same here ;) Good Night Budd!
 
8:17 PM
@kishor yes, you make a mod_rewrite rule so mysite.com/nice-title is redirected to mysite.com/index.php?q=nice-title and then the index handles it
users can then just go to mysite.com/nice-title
 
@G-Nugget - am sorry, but I am confused because the post titles are in my database. Its better if you can point me to some time where I can read about this, if there is any.
Oh wait. I get the logic now.
Ty.
Bed time. Take care all :)
 
@Kishor Store "SEO" URL in column, and then check if that "content" exists, if it does, display it, and you know you can't have content with the same name... You need internal routing done with PHP, with mod_rewrite you just route all traffic to one file, ideally, index.php...
 
Hi guys just want to know how real world PHP works, am from ASP.NET, so just want to know if people use any ready made controls as there are in ASP.NET or deal directly with HTML blocks? Are their any such controls?
 
@Mahesha999 No, we deal directly with HTML.
 
I'm sure there's stuff like that in frameworks but if there is then I've never used them because honestly they'd just get in the way.
 
8:31 PM
@Mahesha999 Are you talking about the puke which is rendered in your HTML?
 
Because that was main reason PHP was made, to deal directly with HTML.
Don't take directly literally.
 
@PeeHaa puke? didnt get it
 
As in <asp:Wtf id="MainZone" runat="server" headertext="Main"> etc
 
yes
 
8:34 PM
... that's the 'puke'
 
I mean are there any quickly usable ready to work UI element that behaves in the documented way when we provide some config param (and mostly with default ones)
 
is their any such open source official repository?
 
Unless you mean HTML, which is documented
 
@Mahesha999 No, and probably lots of them: github.com
 
user1125394
8:35 PM
P Hypertext P...
 
cyril...
 
or I think we can just plug in JQuery?? did any one tried?
 
Do you know Vanilla JS? @Mahesha999
 
@Mahesha999 Vanilla JS is great, you should try it!
 
If you haven't learned the language yet I always suggest to steer away from using Frameworks/libraries or you'll end up like @webarto ;)
Nothing but jQuery from that guy
 
We tried to intervene but failed
 
$.what('@PeeHaa').are().you().talking().about() ?
 
See? It's too late!
 
i have to work on project , which is stuck with jQuery 1.2 ... there is additional drawback to frameworks that i had not considered before - they rot
 
Needs more jquery!
 
8:41 PM
@tereško That was like so 5 years ago.
 
@webarto Funny because it's true
 
But you probably haven't heard it before ^_^
 
@tereško rot? how?
 
Actually I have. :)
 
You just got used to newer features and bug fixes, but they don't "rot" per-se
 
8:48 PM
Bit rot, also known as bit decay, data rot, or data decay, is a colloquial computing term used most commonly to describe a gradual decay of storage media. It may also refer to the degradation of a software program over time. Decay of storage media Bit rot is often defined as the event in which the small electric charge of a bit in memory disperses, possibly altering program code. Bit rot can also be used to describe the phenomenon of data stored in EPROMs and flash memory gradually decaying over the duration of many years, or in the decay of data stored on CD or DVD discs or other types ...
 
@GordonM I don't think that's what he means...
 
I dunno. Browsers have advanced a hell of a lot in 5 years, and there's bound to be deprecated features.
The documentation certainly does rot. And any plugins that got rolled into the main jQuery lib will no longer be supported too.
 
Software rot, also known as code rot or software erosion or software decay or software entropy describes the perceived "rot" which is either a slow deterioration of software performance over time or its diminishing responsiveness that will eventually lead to it becoming faulty, unusable, and/or otherwise called "legacy" and in need of upgrade. This is not a physical phenomenon: the software does not actually decay, but rather suffers from a lack of being responsive and updated with respect to the changing environment in which it resides. Software can deteriorate in "performance" over t...
 
hy guys, is anybody here? I think they ddos attack my server, can anybody help me?
 
Ah yeah, that's the one I meant.
 
8:59 PM
@martincpt Your hosting company.
 
@martincpt Why do you think it was a DDOS?
 

« first day (781 days earlier)      last day (4185 days later) »