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

4:01 PM
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)
 
4:03 PM
@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.
 
4:04 PM
@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)
 
4:04 PM
BTW
7
 
m59
$foo->$this->bar
that fails for obvious reasons...
what is the right way?
 
@ircmaxell Awesome. Thank you :)
 
m59
$bar = $this->bar;
$foo->$bar();
 
@ircmaxell awesome, something to listen to before the most boring computer class.
 
:-D
later
 
4:08 PM
@Danack Nevermind, it wasn't 2616. It was a draft on HTTP messaging
 
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
 
4:33 PM
@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
@DaveRandom thanks
 
4:48 PM
 
@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
5:00 PM
@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
5:05 PM
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).
 
5:10 PM
@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
 
5:13 PM
@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
 
5:15 PM
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
5:16 PM
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
 
:D
 
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!
 
5:21 PM
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
 
5:24 PM
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
5:25 PM
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
 
5:27 PM
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 :)
 
5:30 PM
@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
 
5:44 PM
"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
 
6:02 PM
@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.
 
6:15 PM
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
 
6:30 PM
@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
6:35 PM
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
6:38 PM
@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
6:44 PM
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
6:48 PM
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
 
6:50 PM
@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
 
Hi guys, i need some help. stackoverflow.com/questions/19012692/…
On testing
 
user652649
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
6:58 PM
or was my first impression wrong? xD
 
its a decent free IDE
but it can become sluggish
slow
compared to phpstorm or lighter non java IDE's
 
@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
 
lol
well i will admit i have used Netbeans alot in past times, and it has alot of great features
 
user652649
7:02 PM
i actually liked pdt
 
And for html5 projects i think it can be quite nice
but now a days im more into just hacking around in a shell with tmux,vim etc
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(
 
stackoverflow.com/questions/19012692/… is my question crappy, im not getting anything near the explenations i was hoping...
nvm
i just got exactly what i was looking for
 
7:14 PM
@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
 
7:35 PM
@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
 
7:42 PM
@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'))
 
7:44 PM
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.
 
7:46 PM
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
 
7:48 PM
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.
 
7:49 PM
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)
 
7:52 PM
@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...
 
7:54 PM
@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
 
7:57 PM
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 (3864 days later) »