« first day (801 days earlier)      last day (4138 days later) » 

12:02 AM
Eveningmorning
 
@PeeHaa G'afternoon :p
 
@Charles: We now kinda clash
Should we sync a bit, like one starting from oldest, the other from newest?
 
@hakre Yeah, currently going through by the view count.
 
Okay you take high, I take low
 
I'll start from the oldest once I'm done with my current tab set.
oka
High then.
 
12:03 AM
But how to sort by view count?
 
[php5] hasaccepted:0 closed:0 views:400
Unfortunately it's a minimum
 
oh
 
so that pulls up anything with 400 or more views.
 
let's take by time
 
k
 
12:04 AM
which end do you want?
 
I'll start from the oldest questions.
 
okay, then I do the opposite and take the "latest"
 
user1125394
time to get a decent browser
 
user1125394
(Firefox 12)
 
@hakre Looks like we'll meet somewhere in February of 2010.
 
12:06 AM
@Charles Yes I need to switch tags, too, I have [php5] + [php] right now, correct that in 10 tabs.
 
what are you doing with the tags?
 
Down to about 850 total anyway.
@Jocelyn We're brutally murdering .
SE, Inc and the diamond mods refuse to acknowledge that PHP5 === PHP, and only they can make it a synonym due to it being a "versioned" tag.
We're therefore eliminating the tag entirely. Once it's dead and gone, it'll be kept dead and gone by the New Tag Deletionist Cabal. :p
 
seems to be a long process, with so many questions to edit :-(
 
@Charles But what about merged questions?
1
Q: reference from a newly created object

Kingston Town Possible Duplicate: new operator and reference error In old version of php, I have to use an ampersand to reference newly created object such as $a=&new something(); and I am running this old code in a newer version of php, I get warnings of deprecated use of references. If I de...

 
only 47.9k questions in the close vote queue! :-D
 
12:09 AM
@PeeHaa Flag and tell mods should re-tag them.
 
@Jocelyn You ain't seen' nothin'. :p I once went through a few thousand "zend" questions by hand by myself. php5 started with like 8,000....
 
@hakre I'm kind of thinking of doing a meta question once there are no more live questions. That many mod flags is likely to irritate the mods.
 
1
Q: Deletion/Voting of/on non-deleteable questions

hakre Background: I'm concerned about changing the tags of questions. Some questions are blocked to be edited, e.g. the tags can not be changed. I run over them again and again over the last months and want to know more. There are some questions that have been marked as duplicate by a moderator, a...

 
what can i do with the $newYearDate , i know there is something missing
 
user1125394
12:10 AM
can somone help me, by fetching this url commondatastorage.googleapis.com/chromium-browser-continuous/… and giving me the link to the last item please, because my firefox 12 can't load it
 
@Charles See above ^ the meta ^ quetsion ^
 
I like the last sentence in your profile, @Charles
 
@hakre I still think we'll want to check with them before putting in what's going to be like two dozen flags.
@Jocelyn Thanks. :p
 
If you've got problems to formulate your question, a helpful snippet that can't go wrong is "script not work."
 
@Charles See the discssion there on meta, it was actually told to me I should flag those questions, that's what I do the half-whole of the day so far :)
Some of them got already re-tagged ^^
 
@hakre you're kindly helping new users to get their questions closed faster? ;-)
 
Also if you find a question that is extremely bad, flag it for low quatlity.
 
@hakre Okay!
 
user1125394
3 mins ago, by cyril
can somone help me, by fetching this url http://commondatastorage.googleapis.com/chromium-browser-continuous/index.html?path=Linux/ and giving me the link to the last item please, because my firefox 12 can't load it
 
user1125394
12:14 AM
please :(
 
@cyril What is the last it4em?
 
@cyril Getting a white page of death. Ain't just you.
 
Also: get adecent browser
 
user1125394
it takes time to load
 
@cyril Is it 174584 / the last changed file
 
user1125394
12:15 AM
@PeeHaa full url?
 
@cyril link is empty for me in chrome here.
 
user1125394
perfect, thx @PeeHaa
 
user1125394
yep indeed
 
12:25 AM
0
A: How to find out programmatically if a web server instance supports url rewrite

JasperIt's already touched upon below, but I believe the following recipe is a rather waterproof solution to this problem: Set up the redirection Request a page through its rewritten url If the request returns the page in question, you have redirection set up correctly, if you get HTTP 404 response, ...

 
@PeeHaa It worked!
2 hours ago, by Gordon
@MikeB pong and merry xmas
 
^new answer thx @Jasper
 
@MikeB Looks like it. Although I already was given my answer on github :)
 
@hakre You're welcome, it was an interesting question to research and think out a complete answer for
 
Is someone here or can help?
XD
I want to bash my pc in
 
12:31 AM
@skopp WE WILL END YOU
 
IIS is giving me grief
Why :[
 
running normally then?
 
aha
 
@skopp PC bashing?
 
@MikeB :P
 
12:32 AM
Quick way to override II-monkeyfighting-S?
 
@Charles: Are you using the bookmarklet? If you've got problems, let me know, there is a small update with timings.
 
with nginx
Hey @hakre you just gave me an idea
The charles proxy thingy
but i don't have time for that now
 
@hakre Still using my old one and just doing other improvements by hand, but I have the other stashed away for the next time a mass-retagging is needed.
 
Stupid , , idiots...
 
12:36 AM
I'm about to just push the bloody crap to server as usual
Tried working locally first, been at this hours. IIS sucks
 
@tereško gone.
 
@skopp I lol'ed
 
@PeeHaa: HAve you seen my ping about dupe helper in cv-pls chrome ext?
Also if you like, you can burn PHP5 tag from the middle when sorted by newest :)
 
12:39 AM
i'm just doing some maintenance on +
 
I have a bookmarklet here: gist.github.com/29075469ab51900d6de5
 
@PeeHaa thanks for lolling.
 
@hakre I have seen a ping. It was gone though when I checked again. Let me check the transcript
 
@hakre @PeeHaa "middle" means within twelve months of Feb 2010 right now :p
 
@tereško gone.
@PeeHaa I can tell you: Just asking if it should still work.
 
12:40 AM
that's a gist not a bookmarklet
/joke
 
I just checked out github.com/nikic/PHP-Parser#readme and it says you can use it to find security issues. Can someone provide an example of how that would be done?
 
@hakre Ah. Yes. That may just be the case if you are on the beta version.
@DaveRandom kinda killed it. We have been thinking about a better version for the next release
 
coool how does that bbkomarket work?
can it make eggs
 
Part of it requires a central server the cloud of some sorts
 
@PeeHaa ok. I would have started with improving the pop-up and editing the list :)
 
12:43 AM
@hakre That's the reason it's temporary gone. It made @DaveRandom's eyes blled if I recall correctly
:)
 
blled?
 
3
A: How is MVC supposed to work in CodeIgniter

Tom BDespite its claims to the contrary, Codeigniter does not use MVC at all (In fact, very few web frameworks do!) it actually uses a PAC (Presentation-abstraction-control) architecture. Essentially, in PAC the presentation layer is fed data by a presenter (which CodeIgniter calls a controller) and...

 
bleed :D
 
who said Codeigniter uses mvc?
 
Codeingniter :)
 
12:46 AM
^ what he said
 
Seriously, anyone work with PHP on virtual environments ("cloud")?
particularly foundry
cloudfoundry
 
It wont echo my column information, only the index, how can I do this? Code:

$stm = $this->db->query("SELECT * FROM `bots`");
$stm->execute();

$row = $stm->fetchAll();

echo $id = $row[0];
echo $identity = $row[1];
 
like 99% of us work on virtual machines , and VPSs .. but that's not what you meant
 
@skopp Not mass-production generic-instance ones like AWS, but I do in general. Why?
@BrendonMcBain You're echoing the result of an assignment. How about using var_dump($row) and seeing what's inside?
 
Because, I've got a killer beta access to a service that's going public January
 
12:48 AM
@BrendonMcBain If that is PDO it returns a recordset not a single row
 
@Charles It gave me an associate ray of my table info in the var dump.
 
brb w details
 
Although I kinda doubt it is pdo. Looks like something homebrewn
 
> Please help me out of this problem, because I am totally freaked out thinking of any solution and my mind is also not helping me out.
 
@BrendonMcBain Sooo, use what it gave you there as keys? Maybe I don't understand the question.
 
12:49 AM
query() and after that execute()
 
@PeeHaa That's another method.
@Charles It wont let me do $row[the row index]
 
Is it PDO @BrendonMcBain?
 
@PeeHaa Yes, your method is another way
 
Wut?
 
@PeeHaa There is more than one way of using PDO
 
12:50 AM
1 sec...
 
@BrendonMcBain but you should not use two ways at once
 
@BrendonMcBain Any suggestions of the correct way to approach this problem would be great.
 
@BrendonMcBain That's not the entire point. If it's PDO, there are constants you can patch to fetchAll that will do what you seem to think you want to do.
 
> Are there any suggestions on how to fix this wonderful issue?
> Has anyone come across this before and tracked it down?
 
12:51 AM
fetchAll( PDO::FETCH_ASSOC )
 
Notice: Undefined offset
$row = $stm->fetchAll(PDO::FETCH_ASSOC);
echo $row[2];
 
Yeah that's another way...
 
5 mins ago, by Charles
@BrendonMcBain You're echoing the result of an assignment. How about using var_dump($row) and seeing what's inside?
 
@tereško How can I manipulate the information in my var_dump?
 
The 555 mark has been passed
 
12:53 AM
@tereško I think you meant FETCH_NUM, he wants numbered indexes.
 
@BrendonMcBain please read the manual page for var_dump()
before i loose it
 
@tereško Some would argue that it's too late for that :p
 
> Well, there we go, sometimes I guess we blind for minutes and just don't see stuff. Oh we coders...daaa
Not for the file, but still, sigh.
 
Freudian IAP: > thanks in advantage for your help
Military support IAP: > tanks for all help.
 
12:58 AM
lolz
 
How do I get the information from what I see in the var_dump using fetchAll(); ?

$row = $stm->fetchAll(PDO::FETCH_NUM);
echo $row[1];
 
@BrendonMcBain Copy/paste the var_dump please. Be sure to hit the fixed font button in the chat interface...
 
array(1) { [0]=> array(4) { [0]=> string(1) "1" [1]=> string(7) "Brendon" [2]=> string(3) "yes" [3]=> string(9) "Australia" } }

(Don't know where the fixed font button is, sorry :/)
 
1:02 AM
Huh, got it to appear once but not again. Stupid chat.
So, as you can see from the var_dump layout, $row is an array that itself contains an array. You want the inner array, correct?
 
15 mins ago, by PeeHaa
@BrendonMcBain If that is PDO it returns a recordset not a single row
 
Freedom in answering: > Feel free to suggest something that I haven't explicitly listed.
The nice way to ask for code: > What kind of code should i write to get the file from the accountingserver in the first place?
 
@BrendonMcBain So, what have you tried to accomplish this?
 
Imagine standing in the woods alone: > Anybody here know to solve the problems?
 
1:06 AM
@Charles Honestly am confused on what to do, (Obviously im new to this PDO stuff haha)
 
@hakre story of my life
 
@BrendonMcBain The manual almost never fails to be helpful: php.net/manual/en/pdostatement.fetchall.php
 
Read it, and it didn't work as it said
 
@BrendonMcBain This isn't about PDO, this is about arrays. Here's the manual page, for a refresher. Look for the "Accessing array elements with square bracket syntax" section.
 
1:08 AM
are you "new to" using arrays ?
 
I tried PDO::FETCH_COLUMN and it only got index 0
 
Also, why are you using fetchAll when you only want one record? That's the root of this issue.
 
That's I'm done with this guy
 
Anonymous
teresko patience is a virtue
 
1:12 AM
2
Q: Static classes in PHP

RKhInstead of declaring each function as "static" in a class, is there any way that I can make a class itself "static"?

 
The nice way to tell you had not time to google > I will appreciate some google keywords too.
 
lies
i have entered ##freebsd with that phrase several times
usually when i have some mystical error and variations of log messages give 2-4 answers from some obscure chinese/egyptian/french sites
 
user1125394
Chrome 26 on Linux Version 26.0.1370.0 (174584)
 
Everytime I see a question tagged I get disappointed and have to remove the tag :(
 
yeah
though, it's still better then when you see in 4 out of 5 cases to have to retag it to
... and the rest have to be retagged to
 
1:20 AM
You win. That's indeed very sad
 
@Charles Solved it, having a really slow day it seems lol, ty
 
user1125394
what's your opinion about SQLalchemy?
 
user1125394
seems a powerful ORM tool
 
The 333 mark has been passed
 
well .. it's an ORM ... what exactly do you want to hear from us ?
 
user1125394
1:26 AM
if there are no complaints, it's ok
 
@cyril how many complaint have you heard about Rails ActiveRecord ? (outside this chat room)
 
Grappa opened.
 
user1125394
 
have you actually read it , or did you just threw google at me ?
 
user1125394
you're great man, I've half read it actually now
 
user1125394
1:34 AM
but there are plenty of articles like that
 
not "like that"
this one actually explains where ORMs should be used
 
Blinken Future > Once the money has been raised then the job can be done.
 
I had to write it
thats what took so long
but figured, just get it the f done
 
.. wall of text
 
1:43 AM
i think you are not really familiar with the concept
 
what concept
oh are u talking to me or to cyril
 
The 222 mark has been passed
 
@cyril: wall of text.
bigass wall of text.
why are people afraid of text
dont nobody read books no more
 
do you know what "typography" is ?
 
SO to the rescue! > Google has not provided me with results that help me fix.
 
user1125394
1:47 AM
@skopp what did I do?
 
@tereško constructive criticism is welcome, by all means
It's the first time I hear that one, so I really would like to know what the problem is - contrast? font too light?
The theme looked cool... and I didn't design it, but obv that doesn't always mean it's the right one for a certain task
@cyril nothing, that's the problem ;p
 
@Charles: I'm in Dec 2009 now, where are thou?
 
@hakre, that means secret gists are not actually secret
thanks goodness i didn't start using it as a diary
The new gists are weird
And always end up being named index.<extension>
almost always
 
Secret gists are just not indexed by search engines, that's all.
 
Ok
including github's?
they should have named it Non Indexed then
Secret means... secret, in my language (English)
Sorry, i don't usually complain this much, I'm actually quite a cool guy when not beating people up
but it's 3.58am
i cant get no sleep
/me np Faithless - INsomnia
I also don't apologise for my own misbehaviour, but it's christmas
 
2:00 AM
Asking anyway > I know this is not right place to ask this. where should i ask this
 
hmm
?
Don't ask whether someone is here or can help. Just tell us your problem. If anybody can and wants to help, they will.
 
@hakre Had to take a break due to mandatory chores. Hard to sit at the dinner table when it's full of random crap from christmas present wrapping earlier :p
Last left off in June '09
150 left...
 
150 questions tagged / 100 questions tagged
This is really great!
 
@skopp what would you have expected? them requiring authentication? not seeing the problem...
 
The word "secret", that's all
implying private
 
2:05 AM
how would i capture anything (a-zA-Z0-9$*) and => only when they are together?
 
to me at least
 
can that be done in one capture group?
 
Done with June...
 
@skopp for one, that's probably why they named it secret and not private. also, making it authenticated would make the feature completely useless. the whole point of gists is to share random blobs of code.
 
The 111 mark has been passed
 
2:08 AM
Sure, I'm not arguing... XD I just misunderstood. How many people do u know that admit when they're wrong
which is what im doing
 
/me relaxes
 
/me narrowly avoids a street brawl
okay, surely someone here knows fusionleaf
 
Done with July.
 
would something like this work to capture all letter numbers $ and =>
    ([a-z0-9A-Z$]|(=>)*)
let me reprase that... it doesn't
 
Free speech: > If you feel a need to correct my English, do it! :)
 
Okay.... The need to correct your speech, for starters is > free speech\
@tereško ... could I ask you to be a bit more straight up
 
Done with August 2009
 
Not to say I'm a typographic P.I.M.P.
but look at scriptogr.am/skopp
Big difference, no?
Irrelevant, linking that. But I honestly am not sure what you're implying. Can only deduce or worse, assume
Also keep in mind it's 4.15 am
here
 
@hakre, halfway done with Sept, but gotta AFK for dinner. Have fun.
 
my brain is a hunk of spaghetti
 
2:16 AM
@Charles haha, it's nearly finished
@Charles Enjoy your meal!
 
spaghetti?
i hope not, hannibal
Someone, anyone... what would you charge for setting up and maintaining a website without killing a client? [skopp.github.com/rtfmtrue]
 
7 questions tagged / 6 questions tagged / all still exisitng questions have been flagged for moderation to remove the tag.
Happy XMas.
 
is there any way to ignore some letter in a regex for example trim out the whitespace in (test[a-zA-Z0-9\s]*test)
 
2:32 AM
I'd use ruby for that
 
0
Q: Please Alias the PHP5 Tag to the PHP Tag Now

hakreAfter discussions here on meta over the past years and the practical initiative in the year 2012 it has been researched and practically established that the tag php5 actually is not needed any longer and has passed it's lifetime. All questions with the tag have been reviewed and the tag has been...

2
 
Okay, I'm done now. Gn8!
 
Me too. later @hakre
 
Anonymous
tomorrow @hakre @PeeHaa
 
Night @hakre and @PeeHaa
@hakre And good work!
 
soon somebody is going to have to teach me how to debug segfaults...
 
3:13 AM
@igorw bugs.php.net/bugs-generating-backtrace.php is a decent starting place, assuming it's a PHP segfault. A bit less useful otherwise.
 
@Charles cheers, I'll give that a shot tomorrow. and figure out how to get a core dump on this crappy excuse for an OS
 
3:37 AM
@qwertymk You want to capture that group, but with all the whitespace removed?
 
3:50 AM
Well for some reason I thought that would be possible, but when thinking about it, I realize it's not. It becomes rather trivial though as soon as you're allowed to use any code.
 
Anonymous
Is there a component called "File system" in web server aside from Apache, PHP, and Mysql modules?
 
@TheCOMPLETEPHPNewbie Basically, the file system is the system on which your files reside, usually your hard drive (well, actually, your hard drive is the hardware, whereas the file system is the layer of software on top of it that give you things such as folders and files).
Or wasn't that what you meant?
 
Anonymous
Ohh, I get it now. Why the system though? It can be confusing. I would've probably called it, just file space, file depository, file location...
 
Anonymous
Just watchin a youtube tut about a webservers...
 
4:06 AM
it's a system that represents the file storage in an abstract way
 
@TheCOMPLETEPHPNewbie And there's a number of things going on behind the scenes which make it actually a lot more than just a "space" or a "repository". These days, though, we're so used to that magic just doing what it should and not ever working without it that it may not feel like a system anymore
 
Anonymous
I would love to see a rich visual illustration of every single thing, that goes behind the servers. even as much as, how packets get there and return, even though I am under the belief it is in bits of codes
 
@Jasper correct
 
posted on December 25, 2012 by PHP Advent

The other day, I went to help a co-worker set up his laptop. When teaching new topics, I’m a big fan of active participation, letting the other person drive as a means to better understanding. So, during the setup, I explained what we were doing, what changes we were making and why, but insisted he make the actual changes on his system. Watching him work, it quickly became apparent that--whil

 
4:28 AM
Merry Christmas Everyone on PHP room!! Wish you all a grateful day and cheerful moment!
 
Anonymous
Merry Christmas @JosuaMarcelChrisano
 
@all Merry Christmas
2
@andho @Charles @DaveRandom @rdlowrey @ualinker Hi
 
5:02 AM
@Alex_ios @TheCOMPLETEPHPNewbie @JosuaMarcelChrisano Merry Christmas
 
Anonymous
Merry Christmas @NullPointer
 
@PeeHaa @DaveRandom @gordon @hakre @tereško @ircmaxell @rdlowrey @Jack @cyril @Charles @Neal @MikeB @webrto @andho ....Merry Christmas to all ..and happy holiday ...sorry for this super super ping
 
What @NullPointer said ^^ :)
 
@Jack Merry Christmas to all ..and happy holiday
12
Q: How appropriate is it to ask for upvotes in chat?

user1879104I recently saw in PHP chat room that one user asked for upvotes. Now I'm wondering these things: Is it appropriate to ask for upvotes in chat? Should we ask for upvotes for either badges/hats or anything like that? Is this behavior we expect from high rep users? Can we ask for upvotes af...

neal got a switchwation ...
 
5:17 AM
@NullPointer You can shove that superping where the sun don't shine! </humbug>
 
5:37 AM
@NullPointer Wish you the same.
@NullPointer @Charles @all Can you please look at my question
?
 
should i escape a single backslash in a single quoted regex
'test\+1'
or
'test\\+1'
to escape the +
 
@qwertymk use preg_quote
 
@Alex_ios you want to resize image you mean
 
i think it would be one slash
 
i was hoping for something more difinitive, i don't want it to break later
nice logo change @NullPointer
 
5:42 AM
@NullPointer I wanna make 3 images with sizes mentioned over there and save them in a folder.
 
@qwertymk thankyou
 
@Alex_ios Code looks fine. Are you sure there aren't any notices, warnings or errors? Maybe bad permissions or directory ownership?
 
@Alex_ios here you go
function thumbnail_image($original_file_path, $new_width, $new_height, $save_path="")
{
	$imgInfo = getimagesize($original_file_path);
	$imgExtension = "";

    switch ($imgInfo[2])
    {
	    case 1:
	    	$imgExtension = '.gif';
	   		break;

	    case 2:
	    	$imgExtension = '.jpg';
	    	break;

	    case 3:
	    	$imgExtension = '.png';
	    	break;
    }

	if ($save_path=="") $save_path = "thumbnail".$imgExtension ;

	// Get new dimensions
	list($width, $height) = getimagesize($original_file_path);
now call this like
  thumbnail_image("../image", "726", "438","../img/thumb726.png");
 
@NullPointer You people and your copy-and-paste code.
github.com/avalanche123/Imagine <- best darn image manipulation library this side of PHP 5.3.
 
@Alex_ios change dimension you want ..like i have created 726*438
 
5:47 AM
... then I look at the docs and don't actually see a quick and easy one-liner for resizing and get confused. Blah.
Ah, there we go, in the introduction‌​.
 
sorry its like thumbnail_image("../image".$uploadfile, "726", "438","../img/thumb726.png");
 
@Charles @NullPointer any advice on
8 mins ago, by qwertymk
should i escape a single backslash in a single quoted regex
 
@qwertymk No, just run the contents through preg_quote.
If you need to, that is.
Then again, it depends.
What is the unescaped regex?
 
if i want to match a single + in a string
in a single quote string
 
5:51 AM
@qwertymk '/\+/' will indeed work for you. The only things you need to escape in PHP single-quoted strings are single quotes and backslashes right before single quotes.
 
but it i want to match a backslash i need 4 backslashes
 
@qwertymk Maybe; I'd sooner pass the needed backslash through preg_quote and make sure it's done sanely.
 
u mean just once for testing to see what it outputs?
 
@qwertymk That and, frankly, all the damned time. I hate leaning toothpick syndrome.
 
oh, i completely didn't catch that, I thought u guys meant to cut up my regex
which i currently have another 10 minutes to still be able to follow
after that its magic
 
5:59 AM
@NullPointer Thank you so much. Checking.
@Charles Thanks. Checking.
 
@Alex_ios yours welcome
 

« first day (801 days earlier)      last day (4138 days later) »