« first day (975 days earlier)      last day (3959 days later) » 

1:00 PM
how far does this session namespace spreads?
 
How do I invite an user to chat if I know his username? Just the two of us...
 
@Ryan do you work on zf?
 
@udaysagar it's valid
 
Why are you flagging? You have a mod in the room.
I see 11 flag notifications -_-
 
@HamZa, @TobyHinloopen stop it
 
1:01 PM
stop what
 
talking in whatever language that is
 
@BenjaminGruenbaum how far will that spread?
 
aaah :P
sorry :P
 
if you do $mynamespace = new Zend_Session_Namespace('mynamespace'); it will set a key in the $_SESSION var
 
@TobyHinloopen I work in the ----, internship in an IT company
 
1:01 PM
thx
 
you can use it anywhere
 
@Ocramius sorry :)
 
If you don't like certain messages in the room just move them. No need to flag, that shows the messages to users of all rooms.
 
okay, so its global right? @moranjk
 
just as global as $_SESSION is
 
1:02 PM
@BenjaminGruenbaum Did I got flagged :O ?
 
@HamZa aah ok. I work as Ruby on Rails dev for Studentenwerk @ Hoofddorp
 
@moranjk but before using anywhere i have to set zend_Session::start() in bootstrap right?
 
Please keep it English in here @TobyHinloopen
 
there are also static methods on Zend_Session for namespaceIsset() to see if it already exists
 
@TobyHinloopen I see ...
 
1:03 PM
yea, i am aware of that..
 
@PeeHaa: I'm keeping it English (now), aren't I?
 
@PeeHaa埽 Too many dutch people here lol
 
@TobyHinloopen You really want to be a smart ass?
 
So true.. damn dutchies!
 
No, tony did.
 
1:04 PM
@TobyHinloopen (he's also dutch)
 
I have never needed to explicitly execute Zend_Session::start()
 
noo, it's a serious question, i stopped talking dutch for a while
 
@HamZa suppose he's frisian too ;)
 
k
carry on
 
@DamienOvereem well belgian or frisian or dutch all the same, if you speak dutch :p
 
1:05 PM
@HamZa Hindelopen is a city in "friesland" :)
 
22 messages moved to bin
 
good thing my name isn't "Hindelopen" :P
 
Was close enough
 
belgian and dutch are not the same, as long as they don't agree how to name their french fries
 
the doc says "By starting the session in the bootstrap file, you avoid the possibility that your session might be started". So I guess it is safer to call it, but I never have
 
1:06 PM
and @HamZa shame on you! Frisian != dutch :)
 
@DamienOvereem aah make sense
@DamienOvereem such racist lolz
 
The Frisian languages are a closely related group of Germanic languages, spoken by about 500,000 members of Frisian ethnic groups, who live on the southern fringes of the North Sea in the Netherlands, Germany and Denmark. The Frisian languages are the second closest living languages to English, after Scots. However, modern English and Frisian are mostly unintelligible to each other. Frisian languages bear similarities to Low German, Dutch (from which many Frisian words have been borrowed), and Danish. Additional shared linguistic characteristics between the Great Yarmouth area, Friesland...
Bam!
 
Now sit in a corner and contemplate about this revelation!
 
@DamienOvereem eeh, I'm more interested in PHP than frisian :p
 
1:07 PM
@DamienOvereem We should really close the border between us and your people ;)
 
@PeeHaa埽 but he is dutch :p
 
No.. im Frisian :)
 
@HamZa Isn't he from leeuwarden?
 
Leeuwarden ftw! :)
 
1:08 PM
@DamienOvereem eeeh, I'm confused with @dragon112 lol
 
Leeuwarden ive never been there yay
 
Oh right.. first you mistake Frysian being dutch.. and now you are taking me for a dragon with an emergency call.... Keep going man, you are on track today!
 
@DamienOvereem It's monday sir !
a blue one :p
 
1:10 PM
Anybody seen @Gordon today / yesterday?
 
I see his avatar in chat
top right
probably was here somewhere in the last few hours
(the G thing)
 
ah 1 hour ago
I thought he was slacking again :P
 
Good morning again
 
Good morning.
 
@CarrieKendall Yeah, especially biking and running. Really awesome
 
1:14 PM
Mornign
 
@ircmaxell they should think about pushing it towards niche markets. the transition would be more accepted and others outside of the niche would most likely have MORE interest IMO
 
@ircmaxell Yo
 
@CarrieKendall perhaps. But depends on their goal...
 
nonetheless, i can imagine the epicness in the city.. i feel like a jackass standing in chinatown trying to orient myself with my brick of a phone :P
 
exactly
 
1:17 PM
i also have this death grip on anything i have out in NYC after seeing this dude take this little girl's iPad right out of her hands and run off
 
Yeah, that can happen
 
it'd be pretty awkward to steal someone's glasses though :P
 
Are there disadvantages of using CakePHP I tried the demo ( tutorial -> blog) on their website and I liked how fast I can create something with it.
 
@Duikboot for starters, they don't update their code in a way that promotes growth, its all backwards compatible crap that fluffs up their documentation and codebase
 
@CarrieKendall Serves her right for walking on the street with an ipad in her hands :P_
@Duikboot The thing is one big disadvangtage
 
1:20 PM
So using Symfony or Laravel is a better framework? ( Newer? )
 
@ircmaxell read your glass article, what did you mean by the muscle memory thing?
 
getting used to interacting with it
where you stop thinking about it, and just do it...
 
I thought it was all done with voice
 
Side is touch thingie
you can swipe and such
 
@TobyHinloopen There is no parttime job as php developer :(
 
1:23 PM
@Duikboot cakePHP is a good place to learn.. you don't always have to start in a "good" framework.. you just need to understand why its bad and generally the best way to learn it to USE it
 
If you live near Drachten and are a decent coder, we might have an opening :)
 
Allright, soon I have to build a web-rental-shop but I would like to use a framework.
Currently Im writing everything in plain PHP
 
@DamienOvereem ~150km far from amsterdam, impossibruuu
 
(Zend Framework 2.2) I'm trying to get the name of the route of a page request in the onBootstrap method in Module.php. I am using $route = $e->getRouteMatch()->getMatchedRouteName(); but I can the error: Fatal error: Call to a member function getMatchedRouteName() on a non-object. I've done my research and I don't see why this wouldn't work. Any guidance.
 
@Leigh base interaction is voice. But a lot is touch as well
 
1:25 PM
@CarrieKendall i would disagree. While cakePHP might be a good as a research subject in PHP frameworks, i would strongly recommend against use of it in real projects.
 
@ircmaxell alright, didn't know there was touch involved
cheers
 
@HamZa that would be a bit of a long drive yes :)
 
I thought it was going to be like... twitching your nose to navigate menus :D
 
And you would ofcourse have to be my slave.. which might or might not be enjoyable :)
 
@DamienOvereem Thanks for the offer though
@DamienOvereem Don't worry, as long as I can use regex to solve all kind of problems. it's ok :D
 
1:26 PM
@PeeHaa埽 what?
 
@tereško to each its own.. people come in here and ask for advice on frameworks and hear the usual: that one is horrid! so they blindly use symfony or whatever else and never truly understand why.. its okay to learn by coding rather than being told
 
preg_replace( '^3', '6',$salary); Everything can be solved with regexp ;p
well if you type it correctly.. but wth ;p you know what i mean :)
 
@CarrieKendall I think learn by coding is for someone who is more advanced: i.e. already know the basics
 
@DamienOvereem lol do you mean 3000euro would become 6000 hahaha
 
@Leigh yeah, the right temple is a touch sensor
 
1:28 PM
@JohnConde It means that your variable is not an instance of an object. Can we see the code you used to initialize the variable?
 
basically :)
 
@Telkitty猫咪咪 and how did you learn the basics? i am not saying reading and listening to experienced programmers is bad.. all i am saying is that its okay to use poorly written frameworks for learning. i can explain to him why global is bad but until he is trying to debug a global variable he will be hard pressed to truly understand :]
 
@CarrieKendall actually i have started to recommend Silex as "first framework"
 
If your excuse for writing dirty code is "my bosses said so", you're not doing your job. Be a partner, not a slave...
@tereško same here
 
it is small enough that you can actually understand the code and not filled with crappy practices
 
1:31 PM
@tereško i was playing around with it last week for the first time, its very tidy
 
that string is too long to fit on a tile
 
public function onBootstrap(MvcEvent $e)
{
$em = $e->getApplication()->getEventManager();
$sm = $e->getApplication()->getServiceManager();

$route = $e->getRouteMatch()->getMatchedRouteName();
echo $route; exit;
}`
 
@tereško but you can dig in and do some interesting stuff with it as well
 
Hi everyone
I got a question
 
@Abyss hellow
 
1:35 PM
About switch. Is it possible to reverse switch ?
 
@Abyss elaborate ?
 
?
 
@Abyss "reverse switch" doesn't make sense (to me). Maybe you should explain what you want ?
 
1:38 PM
@ircmaxell Eeeeeh ...
 
Any function or hook to reverse switch. switch(a) case 1: exam; case 2: exam; I want to reverse switch(a) case 2: exam; case 1: exam; and do it programmly
 
@Abyss: check out PHP-Parser. You could build a visitor to do that for you (since it's just an array at that point)...
 
@Abyss Do you have a usecase ?
 
$a = $b; $b = $a; ... there.. I can switch ..
 
Wow, nice
Awesome dude
 
1:40 PM
I know i'm an awesome dude. But thank you for recognizing my awesomeness.
 
@DamienOvereem lolz
 
@ircmaxell too much
 
too much...?
 
@ircmaxell you're awesome, too awesome. Basically you should give us some of your awesomeness :p
 
Gawd. We @php guys have so much awesomness. The whole world can share in our wealth!
 
1:43 PM
hello sirs :-) only a little help with a sql query... how to select name from table WHERE first word = second word? thanks
 
"select name from table where firstword = 'second word';` ?
Seriously.. I have no clue what you mean :)
 
Uhh
 
not so easy :D the words are not given...are dynamic
 
USE SUBSTRING_INDEX
Explode phase by whitespace using SUBSTRING_INDEX and compare two pieces in WHERE condition
 
I would select all the field, and then use php preg_grep with something like
(\S+)\s+\1
 
1:46 PM
Does anyone with the required rep on meta.stackoverflow feel like creating the 'unclear' tag for the new system?
 
and directly on database without php ? it would be great...
 
unclear tag ? Nothing should be 'unclear' ..
you always have a question about something right ?
 
Anonymous
@DamienOvereem you just pinged me ;)
 
Lol nice :)
guess everyone at your place is awesome then :)
 
@DamienOvereem Have you read meta.stackoverflow.com/questions/184154/…
Basically closing -> 'on hold' and 'not a real question' -> 'unclear what you're asking'
 
1:50 PM
@HamZa I do try to give you some of my awesomeness every day :-P
 
@ircmaxell eh thanks ^^
 
no one can help with the sql where first word = second word ? example name table can contain alpha alpha.... beta beta... or good as alpha beta...and so on, but I just need the select where alpha = alpha or beta = beta ...
 
I told you, get everything and filter with PHP, you'll get an array
use preg_grep
I even gave you a pattern ...
Now go search a bit
 
ok php no prob, but on sql server ?
 
Mysql has a very poor regex support (unless you install something)
I personally hate to do this kind of logic server side in mysql, but if you want to use a maze of substring with mysql, then go ahead :p
 
1:56 PM
> frustrated
 
@DamienOvereem Because Friesland is part of the Netherlands saying you're dutch isn't incorrect imo.
 
/me watches a rollercoaster being deconstructed.
 
Friesland \o/
 
2:06 PM
@dragon112 Everyone living in "Noord Holland" and higher should call themselves Frysians. We were there first!
And yes, that includes amsterdam :)
 
@DamienOvereem eeeh, the invasion of amsterdam has started :o
 
I don't really care, you can have Holland for all I care xD
If you invade now you will get Zuid Holland for free!
Watched too much home shopping programs
 
No! .. That would mean we'd also get The Hague. And we don't want that piece of political nonsense :)
 
@DamienOvereem I reckon you have two passports then yeah?
 
But that's how life works.. You buy one vacuum cleaner and get Den Haag for free!
Wait what..?
@Jack There is no such thing as a Frisian Passport (not legally at least)
 
2:11 PM
Basically frisians are officially dutch, but they don't admit it
 
I need help implementing pagination, I'm using PDO.
 
They are still in denial after hundreds of years :p
Sure ask @iroegbu
@ircmaxell Do you know the battery life of the Google Glass when you use navigation constantly (like when you are on a bike)?
 
@Gear54rus relogin and you'll be able to talk :)
 
not great
I took a 10 minute video yesterday, and it ate like 30% of the battery
 
God, that's terrible
 
2:13 PM
I want to count the total number of records as I need that to calculate the number of pages... I have sql containing LIMIT and OFFSET. Is it possible for PDO to give me the number of total records, ignoring my LIMIT and OFFSET or do I need to query separately for that information?
 
I suppose Navigation is a little easier on the battery.. but that's still pretty bad.
 
The bulk of navigation is the constant recalculation of gps coordinates
 
@dragon112 navigation == gps, that consumes more power
 
Hmmm I guess...
 
the gps antenna itself consumes some power, but that's not the most intensive.
the algorithms to convert gps data into actual coordinates is far from trivial.
 
2:15 PM
I wonder whether you can write apps for google glass already
 
Yes you can
 
yes
 
Native development environment would be Java on eclipse?
 
I've actually played with it a little but don't have the actual device... :(
Android
 
I can imagine the first FPS for Google Glass =D
 
2:16 PM
That'd be awesome..
 
Imagine the bystander's reaction though haha
"Why is that guy running and hiding behind a lamp post" heh
 
@Telkitty猫咪咪 no, html5 on REST
 
Hey can someone explain to me the process of updating a git repository? I'm confused at the difference between "commit" and "push"
 
@ircmaxell yeah right :p
 
@TheSnooker commit is for yourself, push is for others.
 
2:18 PM
makes sense.. so when I "push" something to a repository like unfuddle for example. It updates the master version?
 
I suppose.
 
no, I am serious, it's html5 on rest
 
@Jack one last question. How do the changes made to the repo get to the server?
 
@TheSnooker You mean pull?
 
2:20 PM
@TheSnooker Ehm ... wait, what do you mean "how do the changes get to the server?"
Depends on how the "remote" is set up, either ssh, git or http(s)
 
@Jack yes
@Jack so there needs to be like a Daemon running on the server if I want to use Git?
 
@TheSnooker It allows to be run on ssh (quite popular), so that would be a daemon
 
@Jack and thats what the keys are for right?
 
What keys?
 
2:22 PM
@Jack so I can authenticate between the server and the repository?... unfuddle has this button that says "make public key"
 
@TheSnooker Ehm yeah, that sounds like ssh setup
 
@Jack okay I think I get it.. this is my first time using Git.. I've only ever used SVN which seems so much less complex. Not sure what is so cool about Git, yet.
@Jack next task is to figure out how to connect PHP storm to Git :-P
thanks for the help
 
@TheSnooker The best feature of Git, I find, is the decentralized design :)
np~
 
@Jack yeah i get that but in a corporate setup with only a few developers I kinda prefer SVN but I'm gonna give Git an honest try.
 
Lets get all the Frysian discussion out of the way :)
 
2:25 PM
@Telkitty猫咪咪 your point? It's a REST api, using HTML5 as the primary display medium
 
All fav it.. its time for the php Frisian Awareness Program
 
lol
 
Just noticed the pull request from the guy fixing tabs in files for netware support. Seriously, there's still netware support? :x
 
I actually did novell netware 6 certification :) .
too much java in their management software for my taste though :)
 
Err.. so whats the difference between "Fetching" and "Rebasing" in Git?
 
2:30 PM
Rebasing is typically done before a commit iirc.
Though, I've never had to do it, so I'm not sure :)
 
actually, rebase happens on a clean working copy...
 
Anyone here worked with FPDF?
 
@Ocramius Yep you're right :)
 
Is it possible to use sessions with FPDF Im trying to : array('user rights', $_SESSION['user']['rights']),
 
2:39 PM
@Duikboot Why wouldn't you be able to use the session?
 
I got it working :-)
 
@Jimbo dupe?
Why do people use the @syntax :(
 
@BenjaminGruenbaum Can't decide, I put NC
@syntax is good in PHPDoc and Symfony2 annotations only ;)
 
Good Night all.. :)
 
Yay, I successfully eradicated the tag :D
 
good morning
 
3:10 PM
wtf did I get twice the human-being-verification?! Two following posts…
 
@bwoebi maybe you are too fast
 
@Happyninja to repwhore you have to be fast xD
 
@bwoebi why do you want more rep?
 
@Happyninja I hate it to see this question was removed... :o
 
@bwoebi ?
 
3:20 PM
@Happyninja the deleted questions you can only see with 10k I mean
 
@bwoebi don't you think there is a reason why they were deleted first?
 
morning
 
@NikiC morning ;)
 
yo
 
@ircmaxell yo, bonjour!
 
3:25 PM
 
:] Overwhelmingly
Although several people who normally vote haven't; maybe send out an email before officially closing it?
 
Gotta buy PHPStrorm license now :(
 
@LeviMorrison Uhm, we have like three thousand people who can vote...
nevermind after the edit ^^
 
Yeah, my original message was poorly worded >.<
 
3:27 PM
@NikiC Congrats!
 
@LeviMorrison Nah, I'd be crazy to do that. Things could turn around ^^
 
@NikiC I understand that; just trying to be fair.
Hey, I've installed the vld extension but I don't seem to be getting opcodes anywhere. I can't seem to find documentation on how to 'use' it either. Are they just supposed to echo to stdout or do they go somewhere else or what am I supposed to do?
 
@LeviMorrison -dvld.enabled=1
or vld.enable=1 or something like that
or vld.active
just try a few ^^
also with vld.execute=0 if you only want ops
 
line     # *  op                           fetch          ext  return  operands
---------------------------------------------------------------------------------
   7     0  >   ZEND_DECLARE_LAMBDA_FUNCTION                             '%00%7Bclosure%7D%2FUsers%2Flevijm%2Flambda.php0x10501b04d'
   8     1      ASSIGN                                                   !0, ~0
  10     2    > RETURN                                                   1
Lambda's seem to embed the path to the fle?
 
Ahhh, debugging weird GC related crashes: gist.github.com/odoucet/5796378/#comment-846580
 
3:36 PM
@LeviMorrison It's just the function name
the one generated internally for the lambda
 
A poor choice of a function name if you ask me.
 
who cares what the name is :-P
 
I was just trying to finish some of the internals docs on opcodes and there wasn't an example for ZEND_DECLARE_LAMBDA_FUNCTION yet.
 
wait, documenting internals? Who would be so crazy?
 
@LeviMorrison you must be crazy
oh
well, what @ircmaxell said
 
3:41 PM
:-P
 
People who do that must be really insane.
 
No no, not insane, masochistic rather :)
 
Any advices regarding free IDE?
 
Hello!!
 
No, insane...
 
3:48 PM
@an1zhegorodov Sublime Text or Netbeans if your price is free.
Although I can't remember the details on Sublime; it might just be a free trial.
 
@LeviMorrison I thought that Sublime is just a good editor with a bunch of plugins
@LeviMorrison What about Aptana?
 
Anyone ever write a load of code in a class, come back to it a day later, and thought "what the f* is this code"... <-- That's me, but within the same 30 minutes.
 
@an1zhegorodov Correct, but it's something like an IDE.
 
This query executes ok: SELECT pol.id AS pol_id,geom FROM polylines AS pol JOIN (SELECT GROUP_CONCAT(start_x,start_y,end_x,end_y) AS geom,polyline_id AS par_pol_id FROM(SELECT s.*,pol_parts.polyline_id,pol_parts.sequence AS seq FROM polylines_parts AS pol_parts JOIN segments_view AS s ON s.seg_id=pol_parts.segment_id ORDER BY seq ASC) AS q1 GROUP BY polyline_id) AS q2 ON par_pol_id=pol.id

But when i am trying to make a view using the above query the following error appears: #1349 - View's SELECT contains a subquery in the FROM clause
Can anyone knows what does this mean's?
 
@an1zhegorodov Tried it for all of 5 seconds but it had problems galore on my system back then. Was quite a while ago.
@ChrisPappas It means the View's SELECT contains a subquery in the FROM clause.
 
3:52 PM
Ok, but why this is wrong?
 
Because the View's SELECT contains a subquery in the FROM clause.
 
Pff, why view's select cannot contain a subquery in the from clause?
 
I knew you could do it on your own.
When you get such a specific error message it should be quite easy to research the topic.
 
@ChrisPappas It also means that your query isn't properly indented in this chat room =p
 
@an1zhegorodov Aptana has changed a lot since I tried it. Go test drive it and report back :]
 
4:02 PM
@LeviMorrison My colleague claims that it lacks GoTos
 
The IDE feature or the PHP language feature?
 
IDE feature
 
What's the goto ide feature?
 
I think he means that it doesn't take you to where a variable or class was defined.
 
I have heard that call_user_func is slow - is there any difference between:
$instance->{$name}($arguments);
and
call_user_func([$instance, $name], $arguments);
in terms of performance?
 
4:18 PM
Dunno, if you really care to know why don't you measure it?
 
@Danack yes, sure
 
I suspect the difference is negligible.
 
I probably should measure it - but was feeling lazy.
 
the difference gets noticeable with 5.3 vs 5.4 iirc
 
@LeviMorrison Ah yes, that's what ZS does pretty well.
 
4:21 PM
group_concat(field_1 seperator '---') works!
group_concat(field_1,field_2) works!

i am searching something like group_concat(field_1 seperator '-',field_2 seperator '|')
 
@NikiC I am still plagued by this:
/Users/levijm/Projects/php-src/Zend/zend_language_parser.y:50.1-5: invalid directive: `%code'
/Users/levijm/Projects/php-src/Zend/zend_language_parser.y:50.7-14: syntax error, unexpected identifier
make: *** [/Users/levijm/Projects/php-src/Zend/zend_language_parser.c] Error 1
Bothersome.
What version of bison do you have?
I'll just download and build that version for this.
 
@Danack 3v4l.org/ea47g Very simple benchmark
 
@LeviMorrison 2.5
 
@cspray Thanks dude, that's a significant difference for large loops, particularly after I've noticed the bug in my code and replaced call_user_func with call_user_func_array.
 
@Danack you can also just look at the differences in opcodes: 3v4l.org/SXoel/vld#tabs 3v4l.org/PW57a/vld#tabs
 
4:33 PM
@NikiC: off the top of your head, when would a JMPNZ opcode be used instead of a JMPZ?
 
@Ocramius ooh.
 
@Ocramius Something magical seems to have happened between beta3 and beta4 though ... could be a fluke.
 
Ahh, do {} while($foo)
 
@ircmaxell Depends on how many branches there are I guess?
And that ^^ :)
 
actually, that looks like the only way JMPNZ is used...
actually, no
boolean || also does it
WEIRD
 
4:38 PM
if ($foo) { /*statements */ } should also do it.
 
The logical || makes sense though.
 
@NikiC Running tests now. Thanks :]
 
Evenings
 
The zend_jmp_optimization() function is scary! Wonder what the cyclomatic complexity is ;-)
 
4:48 PM
too high
 
It's a good case of "Save, compile ... it works! Commit, my job is done here!"
Alternatively, "Hey it works, let's find out why"
 
I determined a while back if I ever own a successful startup that uses PHP I'm going to hire someone like @NikiC to work on PHP core cleanup and general codebase improvements.
 
And then you're going to commit it back into php-src right? Right?! :)
 
Of course.
Although by the time I own that startup it might just so happen that HHVM is really stable and fast and we'll just use that instead.
 
looking at the GC here, it looks much the same
 
4:57 PM
True; that reminds me, I have to find a cleanish system to compile hhvm on :)
 

« first day (975 days earlier)      last day (3959 days later) »