« first day (1075 days earlier)      last day (4099 days later) » 

16:01
Ring the burn unit. Tell them they got an extra crispy coming in.
Funny, this coming from someone who's just spent the last 9 hours rewriting a core function to make it 0.3% faster and 40% less readable. :/
heh
I'm having a moment here; is there an HTML version of RFC2616 that is fully linked, with monospace code blocks and proportional font paragraphs?
Life and times of C++ optimization
Know thy compiler.
@Starsong agreed (to some extent), and what about client-side code? (eg. JS, CSS3)
16:03
@Starsong amen brother
@CSᵠ People rarely consider client side performance as it doesn't add load to their servers.
It doesn't have to be scalable, just responsive.
@DanLugg Er - the second google result? w3.org/Protocols/rfc2616/rfc2616.html
If people cared about client-side performance, jQuery would be unheard of.
:))))))
Anyway, off to join the gym.
16:04
@Danack Sorry. Missed one requirement; single page.
devs should take that into account nowadays
See everypone later or tomorrow.
Have fun getting your swell on @Starsong
seeya
I found one before; on IETF (I think)
16:04
BTW
7
m59
m59
$foo->$this->bar
that fails for obvious reasons...
what is the right way?
@ircmaxell Awesome. Thank you :)
m59
m59
$bar = $this->bar;
$foo->$bar();
@ircmaxell awesome, something to listen to before the most boring computer class.
:-D
later
16:08
@Danack Nevermind, it wasn't 2616. It was a draft on HTTP messaging
m59
m59
Is that really the right way? ^^
Currently in London, I gave a presentation on my code for Amazon EC2 EBS and I think it went down well (the cat pictures may have helped)!
@ircmaxell +1 for bacon
pinging @PeeHaa
@Jimbo Devs who develop faster using framework they have not developed themselves are one of them who sell maintenance contracts because they only think about money and cannot make it by themselves. I'm making great, optimized websites in less than a month without using OOP and frameworks. I sell it around 6k€, where can I complain ? — Yonn Trimoreau 3 mins ago
16:33
@m59 call_user_func([$foo, $this->bar]);
@orangepill that one went by with 0 reaction from the crowd. None at all. Like crickets.
@ircmaxell Is that different from the last presentation I looked through (whichever that was...)?
The content is not, but the slides are definitely tweaked, with some surprises in there
m59
m59
@DaveRandom thanks
@ircmaxell 65-66?
user652649
@Gordon hi, do you know anything about this?
user652649
in HTML / CSS / DOM / webdesign, 6 mins ago, by Lucio
If you are a Twitter user, pay attention: There is a user who is attacking SE people. Please flag him! Report any Tweet where is attacking your partners. And if you want to, report as SPAM. Also you can Tweet any though that you want to :P Collaborate with SE community on Twitter!!
Can someone with Chrome on Windows visit this link and tell me copy one of the font styles?
user895378
17:00
@LeviMorrison Oh, I totally forgot to do screenshots for you on that the other day -- sorry
Someone supposedly narrowed it down to WOFF on Chrome in Windows, but I am unable to verify. I just wanted to check what font type Web Fonts was serving those users.
Someone else has claimed I just need to recompile the fonts because Google Web Fonts has a poor quality render of the particular fonts we are using.
user652649
i think woff was supported already in chrome 1, but older safari might need svg fonts
It's hard to know when you don't have a Windows box handy (I have one, it's just not close to me)
@Wes People claim it renders WOFF poorly.
Hey everyone!
user652649
@LeviMorrison false, even if you recreate the fonts with fontsquirrel you will get the same results
user652649
17:05
yes, but it's not a chrome's fault, it's windows that sucks, firefox has the same problem
user652649
if you want to test fonts @LeviMorrison i have many vms with winxp, win7 msie8 9 10, chrome, firefox etc
That may be helpful.
user652649
;) what do you need?
I am using wordpress. From the admin panel I am creating a page, but I am unable to find where that php page is created by the framework. Of course it gives a permalink like "http://localhost/myfiles/?page_id=520", but I need to tweak that code ;/
@Wes Could I get screenshots of php.net/manual/en/function.strpos.php?beta=1 in various browsers under Win7 and greater (if you have them)? I do not care about WinXP (we have officially dropped support for XP in PHP - no need to support it on the website too).
17:10
@LeviMorrison Ever try something like browserstack.com
user652649
ok, let me start vms
I used browsershots back when it was way less popular and was quite responsive.
@Lusitanian reporting for duty
The fonts look wonderful on Mac, and I haven't noticed anything amiss on my Linux machines either, so I think this is just a Win problem of some kind. If I can pin-point the problem we can maybe work around it.
Evening yall
17:13
@PeeHaa why exactly do we have symfonysession as a storage adapter, why'd we allow that in, and since we allowed that in, why did we disallow the laravel adapter
imho we should either have both or none
leaning towards none
We should have neither and I am willing to go through the backlog, but I am sure it was you who was drunk at the time :)
it probably was on me lol
:-)
user652649
win7 / msie9 = i.imgur.com/u4kolRL.png
@PeeHaa ya. @igorw sent the PR
17:15
Goddamnit @igor!
:P
Ummm... I feel pretty stupid asking this because it seems like it should be so obvious, but is there any way to define the minimum PHP version for a package with composer?
i sincerely hope no one's relying on that atm
we should remove it in v1.0
maybe make a bridge lib
@Lusitanian Yep that would be the nice thing to do
No one used wordpress who are here?
Well, I guess you do, so not no-one
user652649
17:16
win7 / chrome 29 i.imgur.com/eUfjqA7.png
Perhaps also add some banner in the readme stating it is going to be removed soon
Let me open up an issue btw and see what happens
kk
make sure to blame @igorw and not me
user652649
win7 / firefox 24 i.imgur.com/23GvBD6.png
why does my Event Listener Count dramatically DROP when i load my page with an active session? when i load my page through my login screen my listener count is 2000 higher!
17:21
You sure this is about PHP?
Ok then.
user652649
i think it has to do with the fact that I have an active session...when I already have a session going and load my page the count is far less. When a session is created before loading the page the count soars!
page count? event listener count?
magix keyword count?
event listener count
17:24
What the h*&% are you talking about?
it doesnt make sense to me that the count would change, cuz intuitively i would expect the event listener count to depend solely on JS, but when I have an active session, it lowers the count
user652649
win7 / msie11 preview i.imgur.com/iHNxtcG.png
@DaveRandom Apart from me :P
@DaveRandom shut up and get shit done
user652649
@LeviMorrison need more?
user652649
17:25
all fonts look fine to me though
user652649
note: my cleartype settings are windows' default settings
Seriously, dafuq, is it really not possible in a dependency manager to specify a dependency on a version of the language???
@DaveRandom "php": ">=5.3"
in your require
Depends on what DM you are using
obviously replace with your own constraint
17:27
Where the hell is that documented?
i don't know if it is lol
@PeeHaa composer
@PeeHaa You find, on that page, somewhere where it says you can require a PHP version, and I'll shut up
hmmmm go on mate :)
17:30
@DaveRandom you may like my notes on composer - docs.google.com/presentation/d/… Actually @fabien, you may like them too.
@Lusitanian I'd respond but I now have to shut up
Thanks :-)
@Danack Thanks, I'll check it out later
user652649
@LeviMorrison if you want to help msie issues i did already... but the header isn't finished yet, right? going home though ... let me know if you need help, i have also many mobile devices to test with
user652649
later
17:44
"PHPStorm Code Inspection: No suspicious code found" EFF YEAH!
@Danack yey no spy!
Or rather, no probable bugs!
So far my experience with secondary education has been, school is getting in the way of my education.
@NickFury My experience was similar.
make it staph!
Ah cool, thanks @Danack
@Fabien most of it should make sense - obviously it's written as a bit of a presentation, so some bits might not.
@DanLugg that's depressing
18:02
@NickFury I should clarity; it wasn't entirely that way, however the majority was (like 65%, not 99%)
There were some fundamental things I picked up, but I had already stumbled upon them myself, and the class coverage was really only reinforcement of what I was already doing myself.
Yeah, I don't think I'm going to attend any more lectures until im in my second year, besides everything's posted online. It just feels like a big waste of money though XD. Oh well, for the paper!
@NickFury I wouldn't recommend you skip all your lectures...
@DanLugg Well this is COMP1010 most of the kids in here come from some science background and need the prereq. Until he lectures about anything other than data-types and operators, I don't think it's relevant that I attend. But you're right, I shouldn't miss all of them, only most of them XD.
18:15
anyone from the USA?
Does North Dakota count?
@NickFury yes, i just want to inquire one thing (off topic)
@NickFury your current time is 2:15 PM, right? if yes, what time do NYSE close? 9:30 a.m. to 4:00 p.m?
@NokImchen Well, it probably isn't 2:15 in ND; believe they are on central time. It is 2:15~ in NY though and your times are accurate.
@cspray and in Ney York, its Wednesday? Or Thursday?
@NokImchen Wednesday
18:30
@cspray oh, actually, i'm trying to find relation between NYSE and NSE :) thanks a lot :)
I really hope we get a shorthand syntax for anonymous functions lambdas someday.
user652649
someone using netbeans here?
@Wes I am.
user652649
do you know if it's possible to make "intellisense" work on a class implementing Traversable interface inside foreachs?
@Wes Not entirely sure, but I always just use this:
foreach($traversable as $item){
    /* @var $item ItemType */
}
Anywhere after that comment $item will pick up the ItemType intellisense.
user652649
18:35
yes, that works, but how about without @var ?
@Wes Don't think so.
user652649
no chances it reads the @return of ->current() method?
@ircmaxell might know, he uses NetBeans IIRC. I dunno if he's around though.
@Wes Give it a shot, if you find out anything let me know :-)
user652649
everything i tried didn't work :(
@Wes It seems IE is disobeying some sizing rules for that logo :/
user652649
18:38
@LeviMorrison checking
user652649
@LeviMorrison in ".navbar .brand img" add width:48px; and height:24px;
I dunno about netbeans, but phpstorm does seem to pick up @return types. Of course, when it's @return mixed that's not much help.
@Wes Why doesn't it honor the inline attributes?
user652649
because in bootstrap.css theres img width:auto and height:auto
nasty.
I will kill that style and have you recheck.
user652649
18:44
ok
Aw man, that flag is hilarious.
@Wes In any case, this is a bug. CSS does not override inline attributes. Or at least that is my understanding.
user652649
actually css should override width="" and height="", but it should not override style="width:xx;height:xx"
Man, I'm digging this:
user652649
you would see the same issue even on chrome and firefox, but bootstrap says:
width: auto\9;
height: auto;
user652649
18:48
that width: auto\9; is parsed only by msie, ignored by other browsers
You can do it outside the loop, to make it a bit cleaner:
/** @var $traversable ItemType[] */
foreach($traversable as $item){
...
}
@Danack Whoah, good call.
Didn't know that was supported.
Yeah - it is, and it's REALLY useful for typhinting the return types of functions.
user652649
@Danack didn't work on netbeans
@Wes Seemed to work on mine; I'm on 7.3
18:50
@Wes Well, fark netbeans.
user652649
correction:
works: /* @var $x \BS\GEO\City[] */
does not: /** @var $x \BS\GEO\City[] */
Actually, NetBeans does something screwy:
/* @var $pdoCollection \PDO[] */
foreach($pdoCollection as $pdo){

}
Both, $pdoCollection and $pdo are typed to \PDO.
But whatever, it works.
user652649
yeah
user924016
Hi guys, i need some help. stackoverflow.com/questions/19012692/…
user924016
On testing
user652649
18:57
it was since the death of PDT that i don't use an IDE [millions of neurons died in the meanwhile constantly browsing APIs], last time i've tried netbeans looked super annoying to me, but not today... did it change a lot recently?
user652649
or was my first impression wrong? xD
user924016
its a decent free IDE
user924016
but it can become sluggish
user924016
slow
user924016
compared to phpstorm or lighter non java IDE's
18:59
@Wes Change has been pushed, but it will take a few hours for mirrors to update.
user652649
@LeviMorrison ok i'll check tomorrow early in the morning and let you know
user652649
@QuackQuacker not as slow as eclipse, though xD
user924016
lol
user924016
well i will admit i have used Netbeans alot in past times, and it has alot of great features
user652649
i actually liked pdt
user924016
19:02
And for html5 projects i think it can be quite nice
user924016
but now a days im more into just hacking around in a shell with tmux,vim etc
user924016
and maybe sometimes switch to a light gui like sublimetext
SQL SELECT * FROM TBL WHERE ID in(other table ids) "other table ids" what to put there?
user652649
when i have used PDT netbeans' php support was very poor, now PDT is nearly dead, eclipse seems to be eccellent, it looks like a text editor, interface is very clean, i've customized it in a couple of minutes, etc
@ircmaxell very informative! I also just realized I code using STUPID =o(
user924016
19:09
stackoverflow.com/questions/19012692/… is my question crappy, im not getting anything near the explenations i was hoping...
user924016
nvm
user924016
i just got exactly what i was looking for
@Akxe another select query
So a while ago one of you guys posted code to convert a clean url into a get variable. like if I typed in www.noahhuppert.com/blog/programing it would become www.noahhuppert.com/index.php?url=blog/programing
19:35
@NoahHuppert this is normally done by server-software next to PHP. You most likely refer to the Apache HTTPD Webserver and it's famous Rewrite Module: httpd.apache.org/docs/current/rewrite
Nowadays this is normally done more on the PHP side with a simple rule like FallbackResource: httpd.apache.org/docs/current/mod/mod_dir.html#fallbackresource
And then parsing the URL within your own routing / frontend-controller script
@Starsong my VPS has enough RAM, (Apache2 + PHP5 + Sqllite3 + webmin + phpLiteAdmin) consumes less than 100 MB :) , earlier MySql iself used to consume 100 MB :|
@Danack Where did you get the @return Type[] syntax; phpDocumentor?
Hello, In php when using mkdir function it also accepts ('files/images/../../') . Is it possible to remove all symbolic links.
@AbhishekGahlot realpath
19:42
@DanLugg Think I asked phpstorm support.
@Danack Oh ok. So it's supported in phpstorm I assume...
Phpstorm will also do it automatically if it's 'obvious' what the return type is, and you type /** enter above a function - will create the full doc block.
@DanLugg Yes, I can confirm this works in PHPStorm. Good for variable hints and iterators for example as well.
Neato. I'm considering a switch...
@hakre Is it possible to use realpath if folder is not yet created?
Like mkdir(realpath('something'))
19:44
Well I came up with an interesting problem that there is probably a simple solution for..
that I can't figure out. xD
@AbhishekGahlot I don't think that works well with the real part of realpath :) - but I have some resolver for string paths for that somewhere on stackoverflow.
If you wanted to try to test a login via ajax
I'm trying to figure out how to do that without passing the password in plaintext
I have a gallery in a table called images and the pictures are separated by data_type categories (i.e. hvac, painting, etc..) I want to call 4 pictures and use on separate pages. How would I write this in php? This is what I currently have. SELECT * FROM images ORDER BY RAND() LIMIT 4"
since js has no built in md5 functions
@VoidWhisperer The first problem is that you're using MD5 for passwords.
And that's a rather big problem.
19:46
Well
What cryptology would you recommend?
(I haven't hashed any passwords yet so it doesn't matter.. yet)
@hakre It would be nice if you share link, beside that filtering string could be security issue too. Isn't it
@VoidWhisperer Secondly, SSL is the answer to not passing things around in visible plain-text.
>.>
Great....
59.99$ to make sure some password isn't sent in plain text
@VoidWhisperer wut
19:48
You can self-sign certificates.
Yeah, then no one uses your site
@VoidWhisperer Or even better get a free one from a CA
because their b rowser whines to them about how the self-signed certificates aren't safe
CA?
certificate authority
I was referring to testing, but anyway.
19:49
google startssl @VoidWhisperer
@PeeHaa and then i could pass the 'password' field text in plaintext from js and not have to worry about it being visible to people watching the connection?
Yeah. That is what ssl does
Ok
The reason i was wondering this is i'm working on setting up a small tf2 server hosting business thing to actually make money off of my vps.. and the only thing left mostly to do is the ordering part and the login to the cp
since i got the cp to work :L
Are you doing this to perform an AJAX login? (the mention of JS is where I get this)
19:52
@VoidWhisperer If you are going to make money of it why aren't you so cheap to spend 60 bucks on it
because
my server can host all of 2 tf2 servers at once right now
with it's size
and even if i overpriced the slots, that's barely $15-18 a month i would make off of it
and that's assuming people even use it to begin with
:(
So i'd rather not dump 60$ into something that has no gurantee to make the money back
Sometimes we just do things for the sake of doing them; whether they cost money or not ;-)
lol
I don't have a job as a 16 year old (I'm doing this so i can hopefully actually start to make a bit of money a month, even if it isn't much)
so $60 is alot to me right now XD
@VoidWhisperer what specs do you have to have to run such a server?
You should be able to find an SSL cert for less than 60 USD...
19:54
@Ocramius based on looking at my server
tf2 is eating up about 600MB of RAM being idle
>.>
the server, anyways
digitalocean has 1 gig servers for ~ 10 bucks/month
mine is 9.75$ a month
Never-mind figured it out SELECT * FROM images where data_type='hvac' ORDER BY RAND() LIMIT 4"
@Charles until i have a confirmation i could actually make money off of this
i'm not dumping anymore than i already am into it
which is ~10$ a month for a server and a domain name
lol
19:57
But still, when it's time, it can be done cheaper...
true
TIL godaddy's services are overpriced as f' and it's a bad place to host.
or own a domain name rather
Yeah, they're a crap company with crap corporate policies.
their support is also crap too
I'd recommend gandi.net

« first day (1075 days earlier)      last day (4099 days later) »