« first day (444 days earlier)      last day (4501 days later) » 

12:00 AM
Awesome, got my second highest daily rep total today. Almost all of it coming from MySQL questions
 
@CharlesSprayberry including or excluding bounties?
 
@NikiC I've never been awarded any bounties that I'm aware of.
I think my answers are on a more intermediate level and they don't tend to get bounties very often
 
@CharlesSprayberry Wow. It's an easy way to get rep. Give a few good answers to +500 questions and that really sums up ;)
Though I must say that +500 is quite rare
 
@NikiC I kinda hone in on questions where they are using mysql_
I am adamantly against the use of the extension. I wish on every mysql_ doc page they'd have a big yellow box at the top saying this extension isn't advised for use.
 
Hm, looking at my profile it seems like only answered a +500 once. I somehow thought it was more ^^
@CharlesSprayberry We are getting there
 
12:05 AM
And then somehow delete every tutorial on the internet that uses mysql_
 
philip already added some overview stuff for the various exts
 
@NikiC Indeed, I really like the new MySQL API pages
@NikiC Yea, it looks really nice and it gives a clear place to say "Hey, even the PHP team says you shouldn't use this"
 
And adding those notes definitely is scheduled too
 
But, the problem imo is that some of the educators are still answering examples using mysql_. I feel that this just encourages the use of the extension, but oh well. Its too ingrained in PHP to ever completely remove
 
@edorian Interesting slides. Although I really miss an actual speaker while reading slides...
 
12:08 AM
@Willempie I agree about the speaker but the slides work pretty well. Better than some other slides I've tried to look at.
 
My first publicly available talk: Stop Wasting Time By Applying Clean Code Principles It's about sugar and code and everything nice!
The video is still processing apparently but since I'm going to bed now I'd rather post the link now while I have the guts to do so.. once I've seen it I might be to critical, shy, whatever to do that egal :)
 
@edorian Love the German accent :D
 
Oh. It's ready..
panic mode
God I sound German...
 
@Edorian hack the interwebz so no one can see it!
 
Oh yeah, you sound so German
 
12:14 AM
@Edorian Believe me, it's a lot better than listening to your average Dutch person speaking English..
 
somebody just blatantly forked my blog and converted it into his blog
 
@NikiC wow, really?
 
so, no, not exactly :P
 
@NikiC Ok, I thought you meant like articles and everything :P
 
anyone know how to convert video on server side?
 
12:18 AM
Evening @CharlesSprayberry how are you?
 
like to mp4 ogg and WebM .. for html5
 
@Twinborn Pretty good. Working on some issues and milestones for my project. How about you?
 
@CharlesSprayberry nah ^^
 
@NikiC I semi-pondered using your design when I created my own blog. But, I figured I'd do something different
@NikiC I actually plan to make a post about your STUPID article. Going through my codebase and evaluating it to see how STUPID it is. When I get a bit more code though.
 
posted on January 03, 2012 by Brandon Savage

During my last job, I occasionally was invited to interview candidates for the web development team. Usually I’d receive a copy of their resume a few days beforehand with the instructions to review it, and I’d take a few minutes to read their resume and usually pop them into Google to take a look at [...]

 
12:25 AM
@CharlesSprayberry Not bad man, just got in. Working on a wireframe and geetting some php resources together
 
1:11 AM
All right. I'm off. See you tomorrow :)
 
take it ez
 
 
1 hour later…
2:24 AM
hello?
 
How do you create a restful service in PHP... the only thing I can think of is using apache rewrite to map it to get parameters...
 
2:44 AM
anybody know how to increase the maximum decimal limit in PHP? for example, if you take the sine of 127893247324, it'll give you a rounded decimal. How can I increase that limit?
I've looked everywhere, I feel so dumb :P
 
You'll want to look for precision
 
yeah, i was just looking at that
seems like it'll slow down the server a lot
when i'm looking for a precision value of about 30
 
@Jaxo You can call ini_set('precision', $n) and then set it back to original value after you do whatever it is that you want to do
 
@CharlesSprayberry I'm doing that now, but it seems like $n is not working correctly. I put it to 300, just to test, and the value I'm getting is far lower than 300 decimal places
 
@Jaxo I'm sure you'll hit memory constraints before you get a decimal that large back
@Jaxo What are you doing that you could possibly need that much precision?
 
2:51 AM
@CharlesSprayberry I'm doing a little side project
an 'encoder'
encodes a value with a given key, i need the sine of that key to be precise to allow the inverse sine to be again removed from it to get the original string
the larger the key, the harder the encoded string is to hack
This is what I have so far: pastebin.com/8GMZzdsK
the $keyed . '' will contain a delimiter composed of the sine($key)
 
@Jaxo Well, assuming that you're doing this is just a learning experience and aren't planning on using it in production code from the very basic docs at PHP about floating point number precision I'd say you'll wind up going about this the wrong way.
That being said I don't know enough about what you're trying to do besides point you in the direction of the docs on floating point number comparison and the functions they recommend
 
it's not even a learning experience, i've been coding in PHP since 2009, i'm just doing this for fun
Not as long as many of you, though
Thank you for your help, though!
 
3:26 AM
Awesome just got the lower-level badge for
 
user1385191
I finally got an autoloader and some templates up this weekend
 
anybody here got experience with facebook app dev?
 
 
2 hours later…
5:29 AM
@ircmaxell is this Creating a Secure PHP Login Script only tidy or you have fixed the problems you mentioned in the blog post.
 
5:44 AM
5 lines away from 100% code coverage. Sometimes getting those last few lines can be a big pain
 
6:01 AM
Hrmm...I'm intrigued by the SessionHandler class in 5.4
 
@ircmaxell or just don't answer :(
 
@OmeidHerat It is like 1am on east coast US :P
 
@CharlesSprayberry True that, but click on his name and it says, seen 1 min ago :)
 
Tek
WELL IT LIES!
 
@Tek How come ?
I am sure that doesn't talk about this specific chat room but the over all SO.
that is same as the one in your profile.
 
Tek
6:22 AM
@OmeidHerat I was joking :p
Who knows
 
 
2 hours later…
8:27 AM
Happy New Day Everybody!!!
 
3rd days the charm!
 
9:10 AM
yeah ;)
@edorian: You posted me an example (I thought it was a phpunit example) with an easy request / response abstraction. You remember?
I can't find it any longer. I think it was the bankaccount example.
 
thx.
 
10:07 AM
urgh, I wish the flagging system allowed a note to be added. I can't understand why all these messages are being flagged
By 'all these', I mean the (I assume) Hindi messages being posted in the casual rooms
 
The default assumption would be someone going "english or gtfo"?
 
Yes, but there aren't any language policies in the other rooms (as far as I know). And I'm even getting flags from some personal user rooms as well. That was a couple of days ago
 
I wasn't trying implying that the flags where validated. But yes: Comments for chat room flags would be appreciated
Couldn't find anything on meta on that subject
 
Yeah, looking there myself. I guess I'll create a topic if it continues to be a problem
I just mark them as 'not sure' now
 
I've had more +10k people coming in and asking why something was flagged. I'd open a on meta if you don't mind
 
10:18 AM
Will do, I'm just going to wait till the next batch crop up so I can add a screenshot. Shouldn't be too long
Perfect timing, just got 1 more!
 
So you will? Fine too
 
10:31 AM
and it's done
0
Q: Option to add comment when flagging messages in chat

JohnPOf late I've noticed that multiple flags are waiting for me when I join the PHP chat room on SO. A bulk of these are flags of non English messages so I have no context on why it was flagged. What would be good is an option to allow people to add a comment/message when flagging messages so that ...

 
10:46 AM
@JohnP I don't have a "mod flag option" here
Or do I ?
Do'h
 
@edorian it's right at the bottom of that square that pops up
:)
 
0
Q: Store records for a table in wordpress

Moshe ShahamI need to create a page in wordpress that displays a table with 3/4 fields, and let editors add and update the records in this table. I'm a drupal developer and don't have much experience with wordpress. I know that in drupal I would just create a content type 'record' and than create a view to ...

Thinking this question belongs more at Wordpress Q&A not on SO
 
11:22 AM
hello i want to know about how to create amazon s3 api using php code
 
11:56 AM
@JigarTank try looking for videos like this jream.com/learning/videos/server-hosting/…
 
morning
 
Good day :)
Does anyone know good online consulting system?
 
12:13 PM
Consulting system?
 
But those aren't suitable for me and I looked through quite many of them. For that reason I'm asking here.
 
@edorian Now watching your talk
@Gordon why?
 
@NikiC not constructive
 
@Gordon I'm not sure it is. It's probably a duplicate but it does seem constructive (to some degree at least)
@Gordon Because I think that at least in this particular case there is a clear answer to the question: No. (Though also No to his alternative ^^)
 
12:37 PM
@NikiC then why do all the answers say Yes
 
@Gordon Because you didn't bother to answer :P
(Okay, and me neither)
 
@NikiC I left a comment with my opinion
 
@Gordon vorbildlich :)
 
must … resist … urge … to … flag … non-english … answer
:)
 
@Gordon I didn't want to check what the Google Translator says about it ;)
exemplary?
 
12:46 PM
i dont care. i understand german ;)
 
12:57 PM
Hi to all,
I am trying a query into my database but it fails
Can u help me please?
 
@user726730 you have to write the correct query
 
The query="SELECT v1.id AS id, v1.title AS poll_title, v1.hits AS hits, SUM(v1.hits) AS counter FROM poll_answer AS v1 WHERE v1.id_question='1'"
I only take the first row of the table
If i write GROUP BY hits, the counter info it's not right
@Gordon Maybe i must join poll_answer with itself.
Is that right?
 
@user726730 sorry no idea
 
first of all .. is id_question really a VARCHAR column ? @user726730
 
no, it's a int
(30) i think
 
1:04 PM
WHERE v1.id_question='1' .. well ..
 
And if that question has an id (that is unique?) why do you select SUM(hits) ?
 
Could anyone tell me, do I need to update my fork of some project on github to stay up to date or it is synchronized automatically?
 
You need to merge the upstream repo yourself
 
And every time I clone my fork I clone the newest version of main branch?
 
@Eugene , i have no idea , but logic dictates that it does get auomatically updated
@Eugene yes
 
1:06 PM
Everytime you clone something you clone the current version of the branch you select, yes
 
@edorian this table has poll_answers, hits show me how many users clicked this answer...I want total_hits to calculate the % rate
 
But github can't automagically merge upstream changes into your repo for you
they might conflict and then what? Just doesn't work out
 
i want to do while fetching the colums
 
@edorian Thank you. Do I need to merge locally with conten from main branch and then commit to my fork?
 
@user726730 , answers and question have no place in same table
 
1:07 PM
@Eugene Yeah. The github docs are quite good on that one but short version:
 
@edorian Mostly answerd my previous question I guess.
 
git remote add upstream git://blablabla; git fetch upstream; git checkout branch; git merge upstream/branch;
 
@edorian I'm doing from IDE so will try it out. Thank you.
 
@tereško no i don't have question into this table
i have poll_questions table for this job
 
@edorian That this in Docs on GitHub said everything. :)
 
@edorian This should be it help.github.com/subtree-merge I guess.
 
@Eugene help.github.com/fork-a-repo - Configure remotes & Pull in upstream changes
 
@edorian Ooops. My mistake.
 
1:24 PM
@edorian Doesn't pull anything. Probably don't know, how to do it correctly via IDE. :)
 
Not pull, fetch.. but yeah: You need to figure out your ide your self.
 
@edorian Your talk was nice
 
@NikiC Thanks :) More feedback, no matter what, appreciated
 
@NikiC you should speak at conferences too
 
1:33 PM
i am trying to convert this javascript function

function get_random_color() {
var letters = '0123456789ABCDEF'.split('');
var color = '#';
for (var i = 0; i < 6; i++ ) {
color += letters[Math.round(Math.random() * 15)];
}
return color;
}

to a php function..I try this:


<?php
function get_random_color() {
$letters = explode("", "0123456789ABCDEF");
$color = "#";
for (var $i = 0; $i < 6; $i++ ) {
$color += $letters[rand(0, 15)];
}
return $color;
}
?>

Am i right?
 
@Gordon ...
@Gordon By the way do you have some talk of yours online?
 
@NikiC y u no wanna speak at conferences? meh!!!
@NikiC nope, only the slides for the singleton talk
 
@Gordon for obvious reasons ^^
 
@NikiC obvious reasons are non-obvious
 
@Gordon pity, would like to watch one of your talks ^^
@Gordon ...
 
1:35 PM
@NikiC you have to hold presentations in school and university so you can do it at confs too. we want you to tell us about php internals. so unless you are speech impaired, do it please :)
 
@Gordon Nice of you to try and motivate me, but I'll stay with: ...
 
@NikiC you'll also get a free conf pass and accomodation and get to know the phpeople, including me and if you are lucky you might even get paid or get a gift. dpc workshop holders got an awesome bathrobe with the php logo stitched onto it.
@NikiC and did I mention the beer? there is always beer at confs. or hot chocolate but then you'll have to drink it alone because the other hot choc drinker doesnt like to socialize :)
 
@NikiC hey.
 
hey @Eugene
@Gordon I'll just be evil and ignore what you say :P
 
@NikiC You work with Github, right?
 
1:46 PM
@Eugene I have repos there, if that's what you mean
 
@NikiC Do you also use PhpStorm as your IDE ( hope @tereško is away :D ).
 
@NikiC :P
 
@Eugene yes :P
@Gordon :P
 
@NikiC Okey. Could you tell me, how to do upstream pull?
 
äh
I usually use the git bash ^^
2
 
1:49 PM
ok, question. what reasons is there to use a file level or class level docblock when you are using a modern cvs?
 
Ou. So no IDE interface too.
 
@Eugene but give me a sec I'll find it
 
hm...
Just pulling upstream somehow doesn't work for me
 
given that there is no answers i assume there is no reason to use them anymore :)
that matches my opinion
 
1:54 PM
On the main menu, choose VCS | Git | Pull Changes. The Pull Changes dialog box opens.
Specify the required Git root and the URL address or alias of the source remote repository.
From the Branches to Merge list, select the remote branches you want to merge to the current local branch.
 
@edorian Yeah but that didn't work for me
Ah, I had to tick master
 
scm management with an IDE kinda always feels wrong, cumbersome and painful
 
@Gordon done + gone.
 
The only thing I use phpstorm for is doing big scary rebases because I don't trust myself on the CLI with that and the interface didn't break on me so far
 
@hakre yay
 
1:58 PM
@Gordon For source tarballs.
 
Hello ladies and gentlemen
 
In case anyone still knows what that is in times of git.
 
@hakre For science!
 
Patches and tarballs!
 
Patches vs Tarballs, the great goblin match-up
 
2:00 PM
Also static analysis. You don't want to pull the whole version history only to find out about, let's say the author of each file.
 
@NikiC Damn. I'm definitely doing something wrong. Currenly even master branch with a fork of Twig is older then the main branch.
@NikiC Will need to look in it at home :(
 
huh?
but you did add fabpots repo as upstream right?
 
@NikiC Where to? I just made a fork of his project and then started to work with it not in default master branch, but in separate new one jeserkin
 
@Eugene: About how many forks is this about?
I mean who forked from what until you come to your repo now.
 
anyone here use cpanel?
 
2:10 PM
@hakre Not exactly. More about getting updates from main branch into working copy.
 
is main your local master branch, or is it a remote branch?
If you cloned on github, then pulled to your local system, your local repo will have upstream as your (cloned) github repo.
 
@hakre Emmm. I'm confused. Logically it should be remote.
 
However, normally you want to merge changes from the original repo into your local changes and then push those over to your github repo
So you need to tell your local repo that there is another remote branch to pull from.
It's on github as well, let me see if I can find the page
If this is github, then you have upstream setup:
$ git fetch upstream                    # Fetches any new changes from the original repo
$ git merge upstream/master
I normally use git bash.
Your IDE probably allows you to execute the fetch and the merge commands.
 
@Gordon what has class level doc block to do with vcs?
 
@hakre Will try it via bash.
 
2:23 PM
@hakre me prefers to just git pull upstream master (and also prefers to --rebase, not merge)
 
@NikiC basically everything I would put as annotation is already covered by my VCS. Or is obvious from the code itself.
 
@Gordon Isn't the class doc block there for documenting what the class does? how is that coverd by vcs?
 
@NikiC well what do you want to document in a class level docblock that isnt obvious from the API already?
Do I really want to document that namespace foo\Models; class User is a User Model?
 
@Gordon No, I was thinking about less obvious cases
 
@NikiC yeah, but i cannot think of less obvious cases :)
which is why i am asking
 
2:31 PM
@Gordon Not off the top of my head, but there definitely are cases ;)
 
morning
 
Good Morning and Happy New Year (if I haven't seen you since)
 
same to you @ircmaxell
 
:-D
 
morning @irc
 
2:35 PM
How's it going?
 
good as always, you?
 
Pretty good. First day back in the office in a week, so it was fun waking up
 
first day back in "office" tomorrow :(
 
nice
my gps on my phone isn't locating me... sigh
 
has anyone here used cpanel? Is there a shell to run unix commands?
all I see is an interface
 
2:41 PM
morning, @ircmaxell
 
@tereško Good Morning and Happy New Year
 
Hiho
 
Hey there @edorian
 
Hi all
@ircmaxell think im getting the hang of the MVC and PDO thing!
 
nice
 
2:47 PM
heh .. it took me something like a year to understand MVC
 
To say it again now that the eu-afternoon-people are here:
My first publicly available talk at php conference on video: Stop Wasting Time By Applying Clean Code Principles It's about coding practice, professionalism, testing and getting stuff done.. mostly
7
 
@edorian By the way, I don't think the title was appropriate ;)
Or I didn't get the title ^^
 
@NikiC Well the talk wasn't appropriate for the title
But it's what I wanted to talk about and it fit the description close enough to not let peoples expections down
 
Thinking about it, my second hypothesis was right: I didn't get the title :P
 
nods to @tereško - Definitely. OOP has many steps/levels of "understood"
@NikiC "Don't do pointless stuff but get going"?
 
2:51 PM
hello bros... yesterday I ask for a problem with include(); and I have another question: because I'm tired of how PHP manages a relative path (A includes B and C includes A but C is on another dir so all the paths are messed up) so I ask: It's better to put all the files on the same dir? then organizes with alias to files (or maybe with an IDE for projects in PHP) sorry for my english (again)
 
How do I clean my code? It was laying around for some years now and there is dust on top of it. I have the feeling this makes my website slow. Any suggestions?
 
I though of it as "by applying clean code principles you are wasting time so stop that" but it was probably meant as "by applying cc principles you stop wasting time"
 
@hakre Needs 20% more psr-0
 
@hakre , start by reading through it and commenting
then refactor
 
@NikiC Yes, yes definitively
 
2:53 PM
How do i pass an ID to an index page controller?
I tried this
public function index($id)
	{
		$this->view->lead = $this->model->singleLead($id);}
 
i use public function post_login( \Foo\Bar\Request $request ){}
which reminds me that i should get back to working on that damned framework
 
i fail to see what was funny about it ..
 
@StephenWolfe And it didn't work?
 
@tereško u not working on ur frame work, didnt u want to get that lunched
 
2:59 PM
english, please
 
hey all, I am reading this post: forums.cpanel.net/f5/mod_proxy-apache-18802.html The guy is typing in unix commands that would be used within the shell like bash. But WHM does not support shell access, so I am wondering is he already assuming that you logged in via ssh?
 
3:18 PM
@Gordon Now could you equate this event to abcnews.go.com/Technology/…?
 
:)
Everything back to normal after new years
 
@edorian Yup. I like the intro to the talk (Just at the part where you tossed out the first elePHPant...
 
Not the part where I stuttered around trying to get my calm? :)
 
Can you send a link to the vid please?
 
3:27 PM
:-D
38 mins ago, by edorian
My first publicly available talk at php conference on video: Stop Wasting Time By Applying Clean Code Principles It's about coding practice, professionalism, testing and getting stuff done.. mostly
it's starred...
 
Well, I starred it, but the flashplugin does not work here.
 
Ahh
 
So a link to the actual file would be helpful ;)
 
I don't have one yet
 
(and I didn't know slideshare has videos)
 
3:28 PM
@edorian Oh, and your figures are really low for US employment (it's closer to $200 per hour with overhead and benefits)...
 
It's hostet here: blip.tv/phpnw/…
Just embedded above the slides. (slideshare doesn't host videos afaik)
 
@edorian , maybe it's because of Opera, but slides look a bit broken
 
@tereško Nah, in Firefox some of the slides have some issues as well, text overlapping a 'quote box' etc.
 
@tereško Looks fine to me in opera. But there is a pdf too just in case: dl.dropbox.com/u/3615626/slides/…
 
@ircmaxell One from me too. :)
 
3:36 PM
@edorian : try slide 39 : slideshare.net/Edorian/…
oh , and you suck at typography
 
Oh yeah. That and 89 was broken by slideshare
 
@edorian yeah. slideshare fu*ked up my slides as well
 
:-D
@tereško dude, really? that's what you comment on?
 
Has anyone got examples of a good user friendly interface not amazon
 
it's not like his slides uncovered the mysteries of universe to me , @ircmaxell
 
3:41 PM
slides are meaningless to me. The talk is what's important
 
yeah, opened the pptx and converting to PDF takes ages.
 
in this channel it is just preaching to the choir
 
have I found a bug?
 
@ircmaxell good slides manage to convey the essence of the talk though
 
@tereško disagree. There's always something you can learn...
 
3:42 PM
 
lol
 
The lol comes here:
 
@Gordon Not for me. For me, slides either visualize or bullet the talk. The meat and good info is in the talk
 
@hakre , did you decide to download the internet ?
 
address typed in: data://text/plain,hello
 
3:43 PM
How do i stop the recursive function when i press stop button:

<script language="javascript">
function rec_fun(a){
$.ajax({url:"centerdata.php?id="+a, success:function(result){
$("#centerdata").html(result);
rec_fun(a);
}});
}

</script>
<input name='start' type="button" onclick="javascript: rec_fun('1')" >
<input name='stop' type="button" >
 
@ircmaxell no doubt about that, but the visualization and the bullets should give you a good idea what the talk is about. otherwise they are just a misused tool.
 
@hakre , send a bug report , but make sure that you are running the latest stable version
 
I have stopped to report bugs to opera
 
@ircmaxell "Our brains suck as cache" by @edorian. Well, that's for sure. XD
 
@Gordon Fair enough... But if I can know what you're going to say by reading your side,
 
3:44 PM
@user994144 you have to run the recursion via timeout/interval not via direct function call. then you can stop it.
 
@user994144 , look at the top-left side of this page .. does it say "JQuery" ?
( because that PoC doesnt even fit in javascript room )
 
@tereško Does it say "JavaScript"?
 
@ircmaxell only if "what you are going to say" is meant literally, e.g. the slides contain the words. but if they summarize your main points its fine.
 
@Gordon Yes, literally. Not as in I know the topic, so I can deduce it...
 
so at next i try that with <img src="">, let's take a look.
 
3:46 PM
@ircmaxell agreed then
 
:-D
I can't stand slide readers
 
@user994144 , you might find this discussion relevant : programmers.stackexchange.com/questions/128094/…
 
@edorian: why did you put air quotes around architect? is that a shot (that's my title :-P)
 
@ircmaxell Number & Words on the slides, for me, are inversely proportional to how familiar I'm with giving a talk or how conformable I feel talking freely without a net :)
 
@Eugene huh ?
 
3:49 PM
@edorian Agreed
@edorian And I sort-of disagree with your point on the system architecture. If your architecture makes code not testable, your architecture is far too low (it's a design). Any architecture should be testable, since architectures don't impact how code is written, but the overall high level functioning of the app. A design is what impacts testability (pedantic, sure, but perhaps important)...
 
I don't recall my exact words. So i can't really respond to the architect. The part where I talk about testing / introducing tdd?
 
yes
like 22 minutes or so in
 
Is there an URL shortener that is able to pick base64 encoded 2-3MB of data?
 
@ircmaxell Lets say I've adapted the wording to the audience a little. While I can see your point (technically) I was referring to 'architect' in the sense of "The one guy that decides where the code goes and where the module boundaries are".

If you have 'broken' module boundaries testing can be really hard.
 
Ah ok
(I'm nitpicking, since the talk is good and there's not much of substance that I can disagree with)
 
3:58 PM
.. and you blamed me about the "typography comment" .. ehh
 
@ircmaxell UB said: All programmers are architects and that architecture is everything from the most abstract of the module interface to the most concrete of the method implementations.
 

« first day (444 days earlier)      last day (4501 days later) »