« first day (1265 days earlier)      last day (3908 days later) » 

18:11
@webarto complicated , mostly
I am the guy who in the current company does the "custom sites"
... also, I suck at time assessments .. and tend to be lazy
@MichaelCalkins you are either extremely proficient with it and have extensive experience with said framework or completely clueless and are just following the latest hype ... those are only groups of people who unconditionally suggest a specific framework in this chat room
I don't think your that lazy or something, I think that your work is not that exciting and you fail with assessments, I suck at being code monkey, but can deliver something complex, sometimes. If they don't understand that, their bad.
actually, if I do not fuck up too much in the next few month, I probably will be coding much less
If you fuck up it's their fault.
meh .. not really
i tend to go on media-binges, which hurt my productivity
@tereško yay! that's a good sign
18:22
anyway, in near future I probably will be just responsible R&D and project architecture
I'm distraction junkie galore, so...
mornign
Come to your senses and work for US and A company.
@PeeHaa cheers!
Heey!
Damn, I can't figure out how to upload a photo to my feed using Facebook's Graph API
just keep on digging
18:26
Can't find nothing that points me in the right direction. Only how to upload a photo to an album, which is a whole other method
How bad is coding 14 hours a day for your health?
I've never really thought about it but it is probably not great for you
Definitely not.
That means with 8 hours of sleep you have 2 hours left for living the rest of your life.
@David The real question is how bad is it for your code
18:40
@David thing is you can do intensive mental work for about 4-6 hours a day
and 6h is for people who have immense cognitive stamina (think - people who can score over 140 IQ)
Well I suppose it wouldn't be 14 solid hours of pure code, there would be breaks in between reading stuff but it would also be stuff related to code
You can do that 1 or 2 days a week, that's a lie, sitting in front of computer is not amount of productive hours.
nolifer phenomenon :P
btw .. correct me if I am wrong, but any IQ score above 130-140 is not actually an indication of higher intellect .. it only means that you can answer all question for longer time
because question themselves do not get more complicated
I've been forgetting to have lunch lately aswell. I just finished up college related stuff at the end of Feb and since then I have just been coding like a lunatic all day everyday
@tereško That's just one factor, it's not determinant.
18:44
@webarto .. it's that, or I have an interesting problem
@David oooooow you are not coding for a boss?
@PeeHaa No you don't need a boss to code
@David That's not what my point is
if that David-guy is still in university, I am kinda envious, because he grasps stuff that took me ~10 years of incremental progress to understand
18:47
Coding for a boss for x hours is entirely different
If you get money, you're always coding for someone who is your boss, one way or another.
@tereško Is that sarcasm or are you being serious?
@David serious
@webarto Not really. I code for the boss during day time and when I get home I code for my own business which is just different
i have been programming for 13 years now .. and you are at least on the level that I was 3 years ago .. probably above
18:49
@PeeHaa I can't word it properly, yeah :)
@webarto well ... yeah .. .the problem is that I maxed out a 160 point test few month ago
Well, you're a smart fool then.
@tereško I started coding when I was 11 years old though so I have been at it for a while now
@tereško Programming programming or just fiddling with code?
@webarto since I usually see myself as barely adequate, the result feels counter-intuitive
@webarto I was going to national programming "olympics" 14 years ago
18:52
That means you're still hungry IMHO, which is good.
morning
morning Wund... Nikita :)
@NikiC monribng
@tereško You wouldn't like my extended web programming teacher. She teaches to pull the data from the model in the controller and push it into the view haha
yeah .. since we were just talking about wunderkinds
18:55
@LeviMorrison Why not both?
@SecondRikudo I don't quite understand what you are asking?
@David she's teaching what she thinks is a good architecture
you can always submit an extensive paper explaining the subject
@tereško The student submit a paper to the lecturer?
also exploring the possible reasons for Rails-like architectures on web
@David don't you have "term-papers" ?
when I was in university, we were producing several per month in each (non-math) subject
@tereško What size did those have?
18:58
@tereško We had a project(a web app) and an actual exam at the end of year, basically developing a tiny web app in the 3 hours. Not enough time to do anything good
@tereško IMHO you're wasting your life/time thinking about it, I do to, I'm already old and I'm still 5 years younger than you. I try to progress daily but I can't beat myself up all the time when I see the smart people here. Acquire currency while your brain is young because this isn't going to last forever, if you're in top 1% (or 10%), you're still going to be wanted. I don't if this makes sense, but, meh.
@NikiC under 10 pages
@ircmaxell I don't get it, I'm that stupid :) Oh, you can click on it. Hah.
I'm not stupid, I'm the smartest.
@webarto you haven't been paying attention to latest research results. The "you can only learn while you are young" is considered to be pure bullshit in moder neurology. Actually, till age of 25 you cannot take full benefits of brain plasticity, because prefrontal-cortex is still developing
19:02
@LeviMorrison Get responsive
@tereško We definitely don't have that kind of stuff around here...
@SecondRikudo It already is responsive, we just don't stretch it as wide as we should.
@LeviMorrison The current highest practical width is 1920, isn't it?
yayyy! moar security issues :(
19:04
Plan against that
Yay! Where @Ocramius?
And I though it was fun...
@SecondRikudo I think I saw a rule in there for max-width: 1700px, yeah
@webarto you will know once it's fixed
So yeah, blast with the width, I hate seeing sites over only half my screen
19:04
@Ocramius FIX IT FIX IT FIX IT
@NikiC well .. I managed to get in an strange period in my university. They were still trying to get full accredition for the Computer Science program, which is why they just threw at us everything that they was as "useful"
@SecondRikudo full-width wiki on 3200x1800 is hard to read, honestly.
There should be a cap.
i learned more about project management then thoughout all 4 of my attemts in getting a master's degree
Should it be 1700? I dunno.
@LeviMorrison I'm actually not that sure about that, it's a good point though.
19:06
@tereško Did you eventually get the masters?
nope
I've a 1920 screen to provide with screenshots if you'd like, I'm not expert at those things
I will try again next year
Why not? You just didn't put the work in?
@SecondRikudo Oddly enough I don't have a screen that small ^^
19:07
yeah .. I the "real work" was always more important ... ya know, the stuff tht lets you pay for shit
@LeviMorrison Heh
I may ask you to take some screenshots later ^^
Sure thing, ping meh
I've just heard there are 'magento experts' out there in the wild
when you see one, shoot to the knee please
@tereško No, that's just stupid, I never meant that, but you will have other things in life in that period.
For starters, you need to find a job which is not making custom websites, no pun intended :)
19:12
my current projects are "Chashback system" and a fitness app with marketplace for training programs from real trainers
Hi guyz
What age are you people here just out of curiosity?
need help regarding facebook authentication
mine is in profile
can you please help me for same?
19:13
vagues question are vague
i will appreciate your help.
hello
@DhavalKhant You won't find may facebook devs here.
@tereško it's very simple?
Also works rather well.
@s Actually it's PHP
@SecondRikudo
@DhavalKhant Either ask a question or don't
@BenjaminGruenbaum "simple" would not be the correct description. It has it's strengths but at the same time it has a very limited usecase
Getting error 500 after facebook login
do you have any idea guyz?
@DhavalKhant Enable error reporting and check the error log
@tereško its very limited use case is 90% of the web - database skins and simple with simple admin interfaces and limited dynamic content.
How on earth is anybody in here ever going to be able to help you with the info your provide?
19:19
@BenjaminGruenbaum 90% of web is wordpress
your point ?
That's like posting on some random forum on the web saying your car doesn'twork.What's the problem?
@tereško that it is a solid reason for that architecture on the web. Most websites don't need a lot of strong abstractions and otoh it does have built in abstractions that cover the most basic uses.
For example, it allows the designer to design the page while the coder codes the database querying logic.
@PeeHaa my car not work cna u halp plz its urgent
19:24
@webarto halp*
@PeeHaa Y U COMMENT STUPID
@Leri lol I had to look what that was about, but then I saw OPs excellent response :)
Wai wait wait. I have the perfect response!
No you are stupid! — PeeHaa 6 secs ago
@BenjaminGruenbaum our education system sickens me
BAM CHECKMATE
19:27
@SecondRikudo what?
My brother got a few CS exams to prepare for bagrut a few days ago... Those questions, I still have to wash my eyes every time I remember what was on those papers -_-
@PeeHaa instant up-vote. :D
What do you understand out of the terms "פעולה חיצונית" and "פעולה פנימית"?
(Internal function vs external function)
19:29
At first I thought it was public vs private
Turns out it's static vs non-static
"Write a constructor that generates all possible objects of whatever kind"
@SecondRikudo one function you use in-house, the other outside :)
"Take this function and add recursion"
WTF is wrong with those people? :|
Shut up, at least it's better than not having it at all.
@webarto No, it really isn't :|
yup, better... not
19:32
Well you can "enlighten" someone later, but if they don't have a clue what you're talking about, hardly.
@webarto They aren't even learning the proper attitude.
Less competition for us :P
They don't learn debugging, they don't learn research, they don't learn OOP properly (they learn OOP, but not properly)
You can learn all of that properly without being forced, good information is few clicks away.
@SecondRikudo what?
@SecondRikudo that sounds reasonable though.
@SecondRikudo it's high school.
19:36
@BenjaminGruenbaum To me it sounded like "just add water" instant noodles or something.
@BenjaminGruenbaum Exactly! That's the very first thing I'll teach someone
How to debug their own problems, and how to use Google.
Yes.
@BenjaminGruenbaum Part 1 was to define an object "BiStone" which is supposedly some sort of gaming stone, sure, whatever.
Then it has you create an object "Stones" which is a collection of BiStones, and as the constructor, you need to generate all of the possible BiStone combinations (total of 49), in the constructor.
Bad practice ^
I'm not saying Dependency Injection or something, that's clearly too high level for a mere highschool student </sarcasm>, but at the very least make it a differnt freaking method!
No, make it an external algorithm.
Surely at some point you will have a collection that needs to be instantiated with only X of 49 combinations.
19:54
Fonts on Wikipedia changed?
@SecondRikudo look at the upside - stones could have been a static property on BiStone
Also generating things on the constructor isn't too bad. It's just 49 objects.
@SecondRikudo Could you do a force-refresh on wiki.php.net/rfc/returntypehinting and then take a screenshot at 1080p?
I'd probably use a flyweight, or you know... the numbers 1 to 49
Probably an enum.
@LeviMorrison ^
I'd say it's a tad bit too wide, honestly.
19:56
And that's on Linux ^
I'm thinking of doing max-width:75rem instead of 1700px; I think that cuts off ~150px which should be enough.
Your thoughts?
@LeviMorrison I like it, it uses the real estate
No, it doesn't. It just makes it harder to read.
@LeviMorrison my opinion is otherwise
I want to read with eye motion, not head motion :P
20:02
@webarto if you need head motion to read that at 1900px, there's another problem there
@LeviMorrison Enlarge the font then.
Zoom the page then :P
@ircmaxell Can't quiet understand, do you move head to focus or eyes?
@webarto eyes
That's better :)
Oh God it's this question again. Blah blah, can't parse HTML with regex, blah it will fail with <body someAttr='<body>'> or <head data-foo='<body>'> or whatever. Blah regular languages and HTML not being regular, blah using a stack. Blah blah DOM API blah built in blah document.body.style.backgroundColor='blue' . Blah the center will not hold it is too late. Obligatory link stackoverflow.com/a/1732454/1348195 blah. Happy coding! — Benjamin Gruenbaum 1 min ago
20:05
22
A: remove script tag from HTML content

webarto$html = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $html); http://codepad.org/EscseAIp

RELEASE THE KRAKEN
Wait, I just realized you have a <body> tag in a span tag. Nothing to see here :( Wat. — Benjamin Gruenbaum 7 secs ago
@webarto why?
oh why?
well soz, it's a bad answer and now I have to downvote it :(
@SecondRikudo I could do that, probably. Could you maximize your screen and set html { font-size: 112.5%; } and take a screenshot of it?
Feel free, it's your right :)
@BenjaminGruenbaum I got sick of everyone jumping on bandwagon.
20:09
@SecondRikudo Your thoughts on that? (@webarto you too)
@webarto sometimes there is a damn good reason to jump on a bandwagon, also - that's like saying parameterized SQL queries are a bandwagon :P
@LeviMorrison I certainly like it better than the last one
Although PHP DOM apis are silly. Especially given $("script").remove() is how you'd do it with jQuery or Array.map(document.getElementsByTagName("script"),function(el){ return el.parentNode.removeChild(el); }) with plain dom.
There are 3 options I can think of:
1. Do nothing.
2. Limit the max-width a bit more.
3. Scale the font size up by 12.5% once we hit 1080p.
@BenjaminGruenbaum Haha, I think I'll add that to my auto comments from now on :D
20:15
@BenjaminGruenbaum I know it well, if I had replied with DOM thingy someone would say "not what the OP asked", or similar, it was just an "experiment" :) I will update, sometimes.
Still, it's a perfectly valid solution for sane HTML.
@webarto not really
You're chasing perfection here although lots of things you use on daily basis are imperfect.
As I said, it was tagged with regex, it worked, OP accepted.
Then came stupid comments with some "injections".
I got bored :)
@SecondRikudo I've been doing some reading on font scaling on websites. It seems that while it does make reading the site easier it does mess around with users who have already set their default font size to be larger than the default anyway.
(I do this on my high-res laptop)
I'm used to changing zoom from site to site so it didn't bother me too much, but it is a valid concern, I suppose.
@LeviMorrison Well, you need to ask yourself about what sort of percentage are we talking about here
How many people view the site in over 1080p?
20:21
Or rather, how many view it in 1080p+ and also set a large base-font already?
window.innerWidth
914
If I use constructor that initiates a connection to MySQL, and then a destructor that nulls the connection, do I need to manually close the connections each time I use the MySQL?
I zoomed chat to this level.
@Axel No, you usually don't need to explicitly close the connection as well...
PHP is garbage collected. The connection (and memory) will be freed once the object dies naturally.
@SecondRikudo Ah, so what's the point of the destructor that nulls the connection? Is it useless?
20:24
New higher res icon for Stack Overflow
@Axel Yes, pretty much
Unless the masters around this room say something I don't know.
@ircmaxell - what do you think?
@SecondRikudo, I use $database, but I made the destructor null the connection when the object is no longer used. Not sure if this is needed, I thought it was clever :P
20:39
Someone used before ddslike select jquery before ?
@SecondRikudo Once the script dies, I think. In case of PDO, probably object.
In any case, closing it is superfluous.
@webarto In the case of mysqli as well. mysql is global, so yeah.
> Upon successful connection to the database, an instance of the PDO class is returned to your script. The connection remains active for the lifetime of that PDO object. To close the connection, you need to destroy the object by ensuring that all remaining references to it are deleted--you do this by assigning NULL to the variable that holds the object. If you don't do this explicitly, PHP will automatically close the connection when your script ends.
So good guy PHP?
> In my opinion the person who is responsible for the PDOException error message should be slapped in the face! It is unusual to reveal passwords when an error occurs.
LOL
20:43
You have any good tutorial about PHP POO ? I am good in PHP Brute but have some problem with POO !
Yeah, don't worry about it. @Axel
@Mombay LOL
LooL :D
@webarto I once wrote a tool that had to run for quite a while and the PDO connection would drop after a few minutes of the script running
PDO Connection used it with ZEND FRAMEWORK one time :p
@David Probably it has a lifetime/timeout somewhere defined that depends on SQL server.
20:45
Yeah I think it would last for like 5 minutes
@SecondRikudo I just realized that there's no point in doing width:90%; just do 100% and set a max.
Will be a lot better.
We have no NEED 5% space on each side.
Just fill it up ^^
21:41
@SecondRikudo I need screenshot of latest: wiki.php.net/rfc/returntypehinting
can u halp meh?
Sure, lemme clear cache
You likey?
It's narrower, right?
With the same font-size?
Slightly larger font. Is narrower.
Yeah, I like this one a lot
Unrelated, I always thought that the table of contents should be position: fixed
21:44
Yeah, you and @DaveRandom both.
To serve as quick navigation between the different parts of the RFC
It just makes sense especially since there's nothing else in that space.
It won't work in practice unless you feel like writing JS code to make sure that the ToC will fit vertically.
and THEN enable the fixed.
@LeviMorrison Hmmm, that's true. But that doesn't sound so bad, I belive that can be calculated rather easily
Maybe it's not too bad now, but last time I tried doing something like that IE 8 was new and the different browsers reported things so differently.
IE and FF weren't consistent and IE 8 used a different API.
Well, now IE11 is new.
How far back are you supporting?
21:46
We are sort-of supporting IE 8 simply because we can't get rid of it.
Too many XP people stuck on IE 8.
XP is officially dead.
Yeah but that just barely happened.
Why should you care?
XP is officially dead next Tuesday.
Most of our website bug reports are actually IE 8 complaints.
That's why I care ^^
21:47
@LeviMorrison Give a nice big message to those with IE 8 and below to upgrade their browsers or their computer would explode.
Believe me, they already know.
I'll write a JavaScript for the countdown till it does :P
So again, what is the problem?
Most people using IE 8 are using it because of company mandates.
Simple declare that IE8 is obsolete and no longer supported, and be done with it.
Eh, that's a group decision.
21:48
I'm not saying that the site should not work
It's only sort-of supported now.
But users with IE8 should get a "working" version of the site.
We use all sorts of things that IE doesn't support but it at least is usable.
(Mostly)
As in, it should be perfectly readable and legible, but nothing more is guaranteed.
Hmmm, I see
In that case, it's pretty simple
IE8 won't get the position: fixed.
Do not try to figure it out with IE8 APIs, just leave it as display: block by default with IE8.
It's not just a CSS thing, you need to make sure it fits in viewport first ^^
21:50
Why do computers even come with IE. Why can they not come pre installed with Chrome or FF?
@LeviMorrison The stylesheet says position: static;
Windows needs to adopt Webkit or something
@EliteGamer A lot of programs depend on IE for some reason
Then with JavaScript, you make sure it fits the viewport and change that to position: fixed.
@JoeWatkins Programs do?
21:51
I'm okay with IE being shipped. My problem with it is the deep integration with the OS so you cannot get rid of it.
@EliteGamer Because Microsoft ship Windows with their browser, because they want market share.
@SecondRikudo And recheck when viewport is resized.
Yea, but no one likes it hahaa and it is a pain for web developers.
It worked perfectly with netscape, IE 6 used to have over 90% of the share, IIRC.
@LeviMorrison Yup
Wait
Is it not possible to somehow utilize media queries for this?
No, because you don't know the size of the ToC
21:53
Right
So basically, you need to calculate out the dimensions of the box, including its offset, and the total size of the viewport, and act accordingly.
And also take resizing into account.
That all still sound doable.
Sure, you code it up and open a PR ^^
@LeviMorrison Sure thing, where do I find the repo?
Well, that's the hard part.
It's 2 repos :/
It's wiki and shared.
21:55
@LeviMorrison *sad face*
This is the wiki we're talking about, right?
This won't be needed in the actual web one?
I wouldn't would it into web-php, no.
Now I just need to realize what the heck is going on in the repo XD
Basically you shouldn't modify anything in the wiki repo except for a certain directory.
You can modify this one: dokuwiki/lib/tpl/phpnet
I'm guessing?
Ah, even deeper
Well, I don't see the script that's being used in the page.
22:00
Yeah, I don't really understand the wiki and shared repos that much, sorry.
@LeviMorrison What are you editing then? :o
Shared repo folder: styles/
I have edited the wiki tpl once or twice.
I'm really glad I switched to using relative font units. Bumping up the font-size on larger screen is nice.
It's not a fix-all because what you are really measuring is the viewport.
Ah, OK I see, basically the js.php file includes everything and compiles it into a single minified JS file
So editing the script.js in that folder directly should do the trick...
Also, if you feel like it I know the wiki pages have JS errors on them.
My God what crappy piece of code...
22:04
Haven't ever taken a look at why.
I just got sick of RFCs being hard to read and looking like crap.
So I started fixing it ^^
@LeviMorrison can you nuke the 1280px font size bump?
I don't think any of that is debuggable unless I can get it "unminified" somehow
@salathe Probably; why?
the text looks comically huge on my comically small screen, especially since I don't have the browser maximised
What is your resolution?
(or viewport size, rather)
22:07
I can relate
A screenshot doesn't help
That's with maximized on my smaller screen
Because it's all about what you see, not how your screenshot looks on my 3200x1800
@SecondRikudo What resolution is that?
That would be a 15'' laptop's resolution
Lemme fetch up exact numbers
My 3200x1800 screen is on a 15" laptop lol
22:09
1366x768
So 1440 would escape it.
@LeviMorrison Currently, 1483x836
And you think at that size its too big?
Definitely
I'll just have to trust you ^^
22:10
Maybe moving the break point to 1680 or something (my full screen) :)
That's an odd resolution.
What device is it?
it's an early 2011 macbook pro, 15" screen at 1680x1050
When fullscreen you don't think the font is too big?
if I'm going full screen on this thing, I'm probably showing someone the page so bigger is better :P
Hey guys, any of you are familiar with Thesis framework for WP?
22:14
@salathe Okay. I bumped it from 1280 to 1680.
but no, it's obviously "big" (-ger than I'm used to) but not distractingly so.
@LeviMorrison grand :)
@DaveRandom Unless it is Countable.
Thanks anyways! Byebye
22:32
@SecondRikudo Here's a good test page for "does it fit?" wiki.php.net/rfc/password_hash

« first day (1265 days earlier)      last day (3908 days later) »