« first day (420 days earlier)      last day (4529 days later) » 

7:00 PM
or maybe it does..
Attempting to dynamically define such a strict mode function using the Function constructor (15.3.2) will throw a SyntaxError exception.
 
hey
thanks @Esailija, it kinda works
but only when you press the second time
 
new Function( 'eval', '' ) is not a dynamically defined strict mode function but new Function( 'eval', '"use strict";' );is
 
@ŠimeVidas I was halfway hunting through the spec for why this is the case before I realise this is a pedantic waste of my time \o/
 
@Esailija I guess, new Function(...) doesn't inherit the scrict-mode-ness from the environment in which it was evaluated.
 
total waste of time question
read about .PHONY in makefile instead
 
7:03 PM
@ThomasBlobaum make files are useful
 
@ŠimeVidas, it says in the spec that you need to define strict mode function in Function constructor to make it throw.. it doesn't matter what's outside
 
.PHONY makes your makefile robust
 
@Raynos Figuring out how JS implementations work... waste of time?... Sorry, I'm not able to comprehend that... :)
 
hey
@Esailija: I've changed output to <html><body>lalala</body></html>
but it gives me lalala usually only on the second time
 
@ŠimeVidas its not JS though, its eval, which no JS programmer is ever going to use
 
hey
7:05 PM
do you have any idea why? Btw, thanks for your help
 
@ŠimeVidas it was a joke. You know these are good questions for es-discuss right?
if something is non-trivial to explain it may require rephrasing in the specification
 
@hey, maybe it's a bug in your code if it does it only the every other time
 
for es-discuss thats different
but its not a very 'real world' question or problem or concern
 
hey
it always echos the same text... Ok, I will try to relook everything
 
@Esailija I think I've figured it out. When using new Function(...), the strictness of the resulting function is determined by the body that was passed in (the last argument to the new Function(...) call (See step 10 here). However, when using function declarations or function expressions, the strictness is determined not just by the function's body, but also by whether or not the function is "contained in strict code".
 
7:11 PM
yes
 
Therefore, the browsers behave correctly.
 
but this is pretty useless information and my life still sucks
=D
 
@Esailija why life still sucks :(
 
what have you been working on @Esailija
 
I was joking... I implied that knowing new Function needs to define strict mode within itself is not making my life any better because I will never use it :D
 
7:13 PM
yeh
 
@Esailija who are you
 
@Raynos what do you mean by that?
 
who are you.
It's a pretty vague and open question
 
who are you?
 
It's a bit hostile though :D
 
7:17 PM
yes it is
I am js noob
 
I'm raynos o/
 
I've been doing js for 2 years now
that's me
 
I just have no internet handle on you, it's strange
 
google results show my guide for a game
 
You should totally do more open source o/
 
7:22 PM
yeah I have some stuff but I never make it to github ... stupid procrastination
 
@Esailija why you do that right now.
Unless it's shit code you don't want on github
 
well look at this for instance
haven't written docs for it at all
and I don't even use it
 
I reckon this is probably one of the worst pieces of code I have : github.com/Raynos/jQuery-plugin-scaffolding/blob/master/lib/…
 
@Esailija That info about new Function may seem useless to you, but my rule is: "The more you know about something, the better you understand the fundamentals of that same thing." (if that makes sense to you)
 
@Esailija I see what you mean
@Esailija that's github messing with your whitespace right? Rather then your code being broken
 
7:27 PM
You mean tabs? :D
 
its a browser issue
 
@Esailija I mean the whitespace, my eyes
 
different browsers render a tab char different
thus anyone using github should use spaces
 
yes it's tabs so it's a lot of white-space depending on tab width you have
 
no, something went wrong
 
7:28 PM
mm, can you make a screenshot
 
whitespace is inconsitent
the indentation doesn't match up
 
I wrote it over 2 days a few months ago out of interest and then never touched it again :D
It's not really worth the overhead
 
It's still nice to leave a readme with some description
Like that one clearly says "lol nothing to see here, move along"
 
yea :D
I thought to myself "i write the readme.md tomorrow"
 
Good God go download a linux distro already
 
7:34 PM
windows <3
 
@ThomasBlobaum Y U NO LIKE WINDOWS XP
 
duuude... no
this room--
 
I upgraded from windows 98 last year
I think windows xp is pretty good compared to 98
 
raynos does windows xp have alt+prnt scrn
 
I think javascript is pretty good compared to fortran
it might do, cba to see whether it works
@ThomasBlobaum Im on campus, campus has either windows or terminal unix
I can't write a report in terminal unix
 
7:35 PM
terminal unix <3
 
you arent on your own computer?
 
yes
 
use terminal linux to install gnome package
 
Sure you can! You can use vim/emacs/nano/pico, so you can write anything!
 
vi report.txt
 
7:36 PM
@CharlesSprayberry troll.
 
what distro is it debian family? just fucking yum install gnome group
 
@Raynos :)
 
just look at this crap .ensure( "number, number... -> number" ); :D
 
srsly though, who cares what OS you use? Does it get the job done? Are you happy with it? You go boi
 
gnome on fedora is only matched by osx imho
 
7:37 PM
@Esailija ?
 
@CharlesSprayberry not true, I will hit anyone using win95
 
@CharlesSprayberry so, i herd you liek windows me?
 
@Charles who cares about having sex, does your hand get the job done? Are you happy with it? you go boi
 
I think it might enforce the return type =D
 
7:38 PM
@Esailija WHAT EVEN IS THIS
 
@ThomasBlobaum I don't think the difference between Linux and Windows is quite the same as the difference in sex and masturbation.
 
@Charles sounds like the words of someone who only has ever done one
 
If you think Linux->Windows isn't like sex->masturbation, you haven't really used Linux (or never had sex)
 
@Zirak if I say Linux->Windows is like sex->orgy will you hit me
 
Regardless of your opinions on my personal life, who cares if somebody wants to use Windows XP and they are perfectly productive with it what's the harm? Don't get the OS fanboyism
 
7:43 PM
@Raynos I'll do much more than that
@CharlesSprayberry I don't have something personal against windows xp, your statement is just wrong. I won't go and recommend windows ME or windows 95 just because they're usable.
 
@CharlesSprayberry that's like saying who cares if somebody wants to use classic ASP and they are perfectly productive with it, what's the harm?
 
but windows ME and 95 sucks :/
 
See, you're going all the way back to ME and 95
XP is still viable, as sad as it is to say. I mean, there's plenty of arguments against upgrading XP to Vista or 7.
 
I'll also not recommend Mac OS1
 
@CharlesSprayberry name me one good argument
 
7:46 PM
I'm not saying that all OS are built the same, but realistically how many people out there are still using ME or 95? I mean, come on.
 
So your argument is "people are still doing it, therefore it's a valid choice"?
 
@Raynos Hardware requirements. Vista and 7 require much beefier computers, perhaps you're cheap and don't care about upgrading because your XP machine is still good for you
 
@Raynos what linux term is it
lets hack a gui into it
 
@CharlesSprayberry My crappy laptop managed to run windows 7. How crappy can a computer be that it can't even run windows 7? It certainly won't be able to launch xp and two chrome tabs
 
@CharlesSprayberry meh, if your hardware is that old it deserves upgrading. I can appreciate the argument if you use a computer occasionally
 
7:48 PM
Well, the bulk of people aren't developers and aren't going to be using the beefiest of hardware
Businesses included
 
The minimal reqs are almost always incorrect. You can hit lower and still be fine.
 
@CharlesSprayberry "businesses included"
 
7:51 PM
You havn't seen the business apps I have seen
 
what did they do to my poor screenshot
 
you ask those guys "What's a profiler?" and they don't know :D
 
your second monitor is empty? :P
 
it somehow ghosted over
 
7:53 PM
in windows I have never taken a screenshot like that.. checkmate
 
i have a 26" 16:9 and a 24" 5:4 and two laptops
my XPS runs three monitors, thing is a beast!
 
just 2x 24" here :P
 
it might be my screenshot cmd actually, i had to hack at the config to get three monitors to work
usually have jurassic park or something on that one on the left
anyways the difference its just night and day
 
the difference of what
 
its like a fisher price kids play toolset and then one day your Dad gives you some of his real tools and you are like "oh shit, wtf was I doing with that plastic"
any of the modern gui's that run on linux versus windows
osx, kde, gnome, xfce
( i dont know what osx is called)
highly recommend.
 
7:57 PM
unless they do some really awesome magic, whatever you are used to is the best
 
I personally use OSX @ThomasBlobaum I understand what you're saying, I had the same reaction when I swapped from Windows
 
they do awesome stuff. it isnt magic but it might feel like it.
FOSS have nearly caught up to osx
 
But, I'm not gonna say that everybody should swap to OSX just because I had a good experience with it. Maybe you like your thing a little better. I'm cool with that.
 
im not even telling them to switch to gnome which is what i prefer
literally anything is better than unintegrated, uncustomizable, somehow both retarded and overly complicated windows
you'll probably feel like you lost a bunch of features, and then you'll use your computer for a day and realize everything you actually use a computer for is improved on ten fold
 
@ThomasBlobaum For developers or power users I agree with you
The average user though opens up a browser window...looks at FB/Twitter, the news maybe some porn and that's it
Open up a word processor occasionally
Play some music
And for really obviously bad OS I'm in your boat, if we had seen a Windows 95 screenshot I'd probably still be laughing. But, XP, while not a "Porsche", can still get you down the road relatively safely
 
8:04 PM
something as simple as installing and using GIT on a windows is a bitch
using a TERMINAL is a bitch
SSH to anywhere reliably
all the text editors sans notepad++ are worthless child's play
 
@ThomasBlobaum ...
Why use git when you can use microsoft team foundation server
I mean it's totally integrated with Visual Studio 2005
 
no package managers
 
When should I use Ext.setup(...) instead of Ext.application(...) ?
 
@ThomasBlobaum sublime text 2 works on windows
 
bullshit file folder interfaces
 
8:06 PM
@ThomasBlobaum psh, package managers, who needs package managers when you have .NET and microsoft frameworks
 
"Administrator" instead of root
just gtfo
 
HOW I EVEN TYPE ADMINISTRAT0R
It's pretty good
 
admin-i-strator
is it like that, I used to write admin-strator
 
It's like an IQ gate. If you cant type administrator then you cant use the admin role
 
I use windows as user =( no administrator for me
it should be like that by default
 
8:09 PM
First thing I do when I log into linux is sudo su
 
@Raynos , i know people who at the first chance on ubuntu did sudo chmod -R 777 /
 
@tereško I did that, was that bad?
 
=]
 
Problem is, it's not obvouis I'm trolling. I'm actually that bad at linux :\
 
8:15 PM
yeah , your specialization seems quite narrow
 
@Raynos i will continue to recommend you install a modern linux distro until you do it
from now on
 
@ThomasBlobaum does ubuntu not count :\
 
that is all it takes to learn linux
ubuntu is become bloat
use a different one
 
should I just install os/360? :D
 
@ThomasBlobaum , ubuntu was bloated at 1.x
install Arch or Gentoo, or maybe something from BSD family
 
8:19 PM
install something with KDE, xfce or gnome
 
lol ?
 
it doesnt matter what is underneath it but it would be a good idea to get something that runs yum or apt-get
 
why would that matter ?
 
because thats all that really matters
 
8:20 PM
and ubunutu runs kde i think ootb, but like i said, its a little resource intense these days
arch and gentoo for a self described linux newb is just trolling
dont be lame
 
no , it is not
if he wants to learn , then there are no better ways
 
Are we having linux wars?
 
yes
 
I use ubuntu desktop frequently.
U mad?
 
8:21 PM
no because i don't care what OS you use
 
ubuntu is really fine, its just easy to choose a slightly better option
 
I use ubuntu servers in hype-rv, u mad?
What are better options, what's the issues with ubuntu?
 
go read about it online, but the tl:dr is that it runs too much stuff ootb
 
@Esailija I have a computer around here somewhere with windows3.1 on it.
 
@Incognito, does it run crysis
 
8:23 PM
@ThomasBlobaum If you want something that doesn't run stuff randomly I'd just go for z/OS mainframes ;).
@Esailija I haven't booted it, the capacitor on the mobo is leaking.
 
i would recommend fedora, debian for ease of use or arch linux or slackware for someone that wants to get a little more advanced
 
What about BSD and mint?
 
mint is just different ubuntu
 
@Incognito, ah ok
 
i cant make any recommendation on those
 
8:24 PM
@Esailija Yes. The real trick is getting the CDroms into the 8.25" floppy drive and fitting it all onto the whopping 7MB hardisk.
 
well .. i started with FreeBSD .. then did the whole trip of Mandrake , Fedora , CentOS, Ubuntu, ZenWalk, Gentoo .. and returned to FreeBSD
 
I'm not huge into differences between distros, I normally get set up with a bare-bones install and use whatever methods are best for that distro to get what I want done (ie, ubuntu is basically apt-get whatever, tweak config files).
 
(thats the list of distros which i have used for more then a month )
 
I used Mandrake, I hated the damn thing. It's mandravia now.
 
@Incognito I use ubuntu netbook edition on my server :D
u mad?
 
8:27 PM
Is that server netbook edition?
I don't even know what's installed on it.
@Raynos man, I gave that guy a bunch of cryptographic hashes and told him I'm bunk mates with the POTUS and he can call me at 1800 jenny craig. I'm just trying to fly under the radar until he figures it all out.
That server is untraceable.
Or was anyway, I mentioned it here.
 
Are there anyone who can help me with Sencha Touch?
 
hey
@Esailija : I was trying to find a mistake all this time, but no luck. The thing is, that when I do validation of form, it gives me a mistake only the second time I click the button. What do you think?
It works only the second time button is clicked
maybe I need to delete src of iframe or something like that?
 
Show me the codez
 
hey
yeah, ok, sec
 
@Incognito heard that. i mostly choose based on resource consumption, package manager, and a somewhat sane /home setup
fedora won me over
 
hey
8:32 PM
$('.submitButton').click(function() {
$("#my_form").submit();
var txt = $('#my_iframe').contents().find("body").text();
alert(txt);
})
 
im a linux newb compared to many people though
 
hey
first alert is empty, then when I press submitButton second time, it shows text which I want to show
iframe looks like this
<iframe id='my_iframe' style='display: none' name='my_iframe'></iframe>
and form targets to my_iframe
 
Does .submit() do any asynchronous stuff?
 
you are trying to get the contents right after
you need to wait for the iframe to load before trying to get .contents
 
hey
oh, smth like that? $("#my_form").submit(function() { //gettext});
 
8:35 PM
$("#my_iframe").bind( "load", function(){} ) etc..
 
Depends on what it does. But maybe.
 
then when the form posts to the iframe, the iframe load event triggers after the upload is complete and you can retrieve the text
 
lol
1
Q: Hover all element in html

JO JOJOIs there any way to add hover on all elements in html (div,p,span,a...) I'm trying like this: $("*").hover( function () { $(this).addClass('hover'); ; }, function () { $(this).removeClass('hover'); } ); and CSS #hover { background-c...

 
and no answers are mentioning anything about event delegation =)
 
hey
you're genius it works now, but only for the very first time you need to click twice too, but other times it refreshes automatically
hm, maybe I need to include iframe via jquery, not have it in html
i'll try that
 
8:39 PM
Well the thing is, you need to create a new iframe everytime
at least that's what I do with "ajax" uploads
I create hidden form and iframe dynamically and trash them every time
well the form isn't hidden
 
of course
 
hey
$("#idWhereIframeShouldBe").html("x<iframe id='my_iframe' style='display: none' name='my_iframe'></iframe>");
doesn't work
 
swoon
 
hey
I put it in $('.submitButton').click(function() {
 
8:42 PM
 
@tereško what would be the most optimized way to monitor every browser event?
 
@hey, do a jsfiddle
 
@ThomasBlobaum , i have no idea , never have had such a stupid urge
 
@ThomasBlobaum One way is to wrap window.addEventListener & Node.prototype.addEventListener. But the second part of teresko's message comes to mind as well.
 
@tereško entertain me
how would it be done?
 
8:46 PM
Object.getOwnPropertyNames( document ).filter(function(v){return v.substr(0, 2) == "on" });;
 
then just bind those events
 
@Zirak right but how could you reliably catch events that might be prevented from bubbling
 
["ondblclick", "ondragenter", "ondragleave", "onpaste", "onfocus", "onscroll", "ondragend", "onsubmit", "onbeforepaste", "onselectstart", "onwebkitfullscreenchange", "onmousemove", "onselectionchange", "onmouseout", "onbeforecut", "onclick", "onbeforecopy", "oninvalid", "onkeypress", "onabort", "onmouseover", "onkeydown", "ondragover", "onerror", "onreadystatechange", "onselect", "ondrag", "onchange", "oncontextmenu", "onmousewheel", "onreset", "oninput", "oncut", "onsearch", "ondrop", "onblur", "onmousedown", "onload", "ondragstart", "onmouseup", "oncopy", "onkeyup"]
 
8:48 PM
@ThomasBlobaum By wrapping, I meant override, log and re-fire
 
hey
i have different form, submit button in my code is in form
the problem is when I include iframe
i think i include it not correctly maybe
 
@hey, works: jsfiddle.net/6EbDv/4
because new iframe is created every time, you need to bind load every time
 
hey
hm, it's still doesn't work only for the very first time
 
the jsfiddle works for me on every click * shrug *
 
hey
yeah, fiddle works, my code doesn't... hrrr
omg
it works with alert(txt);, but when I use model of twitter bootstrap, it doesn't work for the first time :)
that's interesting
 
8:56 PM
why do you need twitter for file upload
 
hey
no, i want to give answer with model
it's prettier alert
 
well if you have alert code right next to some other code and the alert works for the txt, then pretty sure the problem is with the prettier alert, no ? Or perhaps you could try with console log that doesn't block the execution so no side effects.. dunno
 
hey
yeah, ok, i will try to experiment, thank you very much for your help, i really spent lots of time doing it, you helped a lot :)
 
hey
9:11 PM
@Esailija : I made it working by invoking that method $('#modal').modal(); before everything. :) Do you have any ideas why it worked?
 
I have no idea what .modal is
I don't use bloated plugins for simple shit :P
 
@Incognito and because of the powers of google your SO account is linked to your dientity
 
hey
well, I just want to make it eye candy :)
probably that was a mistake all along...
 
eye candy is css + html :P
 
hey
yeah, you're absolutely right, but i can't use css for alerts :)
 
9:15 PM
Eye candy can be js as well ;)
 
hey
i would need to write my own plugin i guess to make alerts eye candy
 
eye candy is css
No
you dont write your "own plugin"
Fuck this jQuery architecture
you write modular javascript
As a matter of fact why do you even have alerts?
There ugly as hell
Use a better notification system.
 
you could use something like the dialog box from jquery ui
 
and l2ux
 
or something more lightweight
 
9:17 PM
If you have any sense you would avoid jQuery ui like the plague
 
@Raynos LMFAO :D
 
I feel old :(
 
how is not eye candy css + html? that's literally what you see on the screen
the pretty buttons are just html + css
 
Man I'd make a shit mentor
 
:(
 
9:19 PM
eye candy is css
 
hey
yeah, but what about alerts?
 
html is content
 
html+css + DOM append wtf?
 
not all content is html , @Raynos
 
9:20 PM
without html you don't have nothing to css
 
without css there was html , for 5+ years
 
@tereško name me content thats not html?
SVG ?
images?
 
xml json
 
must i ?
 
hey
sometimes i feel stupid when i see you talking
 
9:23 PM
@tereško it's not obvouis to me. Should it be?
I can only think of svg, images dont count because they are html <img> tags
 
And mathml I guess
 
You guys are taking me completely out of context :D What I meant is that you don't need 20k lines jQuery plugin to show a fucking div centered on the screen with an ok button
2
 
If you really want to, change position: absolute to fixed
 
hey
9:27 PM
yeah, I understand now, I really can create my own simple modal with jquery instead of using heavy plugin (~250 lines)
 
You don't need jquery as well.
 
hey
yeah, I know, but I use it in many things (ajax, animations etc)
And in those things I also don't need jquery, but it's just very convenient
or it's better to write everything by your own hands in plain javascript?
 
@tereško depends
Firefox renders it as text in a <pre> block
But I see your point, browsers can render content that is not text/html
 
"better" is a tricky thing. I'd prefer to write everything by hand. If you need to just get shit done fast, or you're doing a very complex thing (like 3D animation), then a library/framework is probably the best option for you.
 
9:55 PM
Community why you spread misinformation :(
Internet, why you full of shit :(
 
stop being a mana hording wizard, @Raynos
sometimes you need to just be a practical systems integration specialist
 
-3
A: running javascript in head, cant use window.onload, can't use jquery

austincheneyWhy not just add this one line after your code sample above? document.documentElement.onload += getURLparameter;

@ThomasBlobaum what do you mean?
Also give that guy some downvote love.
 

« first day (420 days earlier)      last day (4529 days later) »