« first day (779 days earlier)      last day (4172 days later) » 

12:01 AM
posted on December 02, 2012 by Victor Rodriguez

In the Shadow of the Moon: Experience a Solar Eclipse From 37 Kilometers Up Monty python - Universe song

 
12:38 AM
Anyone alive?
 
yo
 
Hi
JavaScript's exciting this time of night.
 
do you guys think its blocking my site to me from requests
 
I hate IE7
 
@benlevywebdesign Both details and proper English would be appreciated.
 
12:45 AM
Do you think my site is being blocked only from be because of requests
 
Do you get an error? Does it just time out?
 
just times out
 
What does a traceroute say?
And what's the url of your site?
 
actually now it instead of timing out it goes to error404.000webhost.com?
 
404? Sounds like they terminated your account
Or they just have technical issues...
 
12:50 AM
but if I'm on a different connection it works fine I think because I've proxy-ed it
but you can go to benlevywebdesign.com and check out my site for your self
 
And seriously? There are STILL hosters who have those ancient frontpage extensions?
yeah, redirects for me, too
 
redirects to what
it says I may need to update my name servers but they are the same
 
It looks like they wiped your account
 
No redirect for me
 
12:55 AM
Finally.
No more document.getElementsByClassName
@rlemon you didnt make some bad joke about "dont mention jquery or raynos will rant for hours"
 
rlemon? Making bad jokes? never....
 
@Raynos How sweet would it be if someone could come up with a way to only use a '$' instead... :-) haha
Actually, that library would be really useful...
 
I'm thinking about switching hosting
 
Resumes are so useless
 
@SomeKittens how so?
 
1:03 AM
I'm fine with talking about myself, but this resume-speak communicates nothing.
 
Send video resumes...
 
because after a few times with my current host blocking just me a for idk how long when I was trying to work with my php and wp site
I'm thinking bluehost.com
 
How do I say "I enjoy problem solving and hacking away for hours" without sounding like a complete tool ("Creative, hardworking individual who enjoys creating innovative solutions to difficult problems")
@twiz It's for a class. sigh
This semester is going to be over in two weeks, and that will be wonderful
 
@benlevywebdesign Some might think otherwise, but I've been using hostmonster for a while and I have never had any problems with them. Good support service too.
 
how cheap
and still have good service
 
1:06 AM
I've found the most success with localhost myself. Customer support can get rather annoying...
 
@benlevywebdesign Well their homepage lists the exact same deal as bluehost... haha
 
oh really
do you ever have a problem with you not being able to access your site but others can
 
honestly I've lost track of what I pay for hosting because I pay for domains that expire at random times all year...
@benlevywebdesign haha I have no clue how that would even happen
are you sure your browser didn't just cache the page or some stupid shit?
 
1:10 AM
@SomeKittens college is such a joke. I feel as though I should have spent my time actually learning things instead...
 
It's 49% complete joke, 51% really useful stuff.
 
@SomeKittens well... clearly you go to a better school than I did... haha
 
I actually now have no idea what going on with my site
 
Some of the professors here are really awesome.
 
@benlevywebdesign haha yea your site looks pretty broken...
@benlevywebdesign Why does your site switch between the 3rd and 1st person...? haha
 
1:13 AM
Speaking of domains, it seems that dormless.com is taken. Would it be worth it to try and buy it?
 
@SomeKittens I had like 7 classes on javascript all taught by some guy from China who clearly wasn't able to read the title of the class, because the classes weren't supposed to be about javascript.... haha
 
what part of my site, screen shot it if you can
 
@SomeKittens What are you planning to put there?
and are trying to spend a ton of money? haha
 
Trying to spend as little money as possible.
 
@SomeKittens I've never actually bought a domain that was already registered, but it sounds like you'll generally pay $500+
 
1:17 AM
Welp, not doing that.
 
just based on googleing
so I could be wrong... but probably not
 
Depends. I once bought one for 150€
 
Yeah, I've found about the same.
Given our server budget is $100...
 
I guess your chances to get it cheap are the best if you can get in touch with the owner directly (i.e. not through a domain trading platform) and he's not using the domain at all - not even for emails.
 
@benlevywebdesign ^screenshot
 
1:19 AM
haha, nice errors etc
I'd surely hire that guy to design my website...
 
hahaha
From the source: '<!-- sorry for any mistakes that I made -->'
haha
Who was that message intended for?
 
1:52 AM
is @benlevywebdesign here anymore? it seems like he's gotten lots of jobs, but just doesn't know how to do, like, anything. maybe he could explore a career path in sales and just share the wealth
 
@dyelawn Haha I'm pretty sure he left. What makes you think he's gotten lots of jobs?
 
all those images of his previous work on the website that aren't loading
 
Well its all design work, so I would say he's just more of a designer than a developer.
 
@twiz aren't we all (note: no, we're not)
 
One of the little rubber "feet" on my mouse fell off, so I spend like 5 mins searching for it... It was stuck to my hand.
 
2:03 AM
still, i'm assuming someone paid him to do those things. amazing, seeing as he was just earlier today informed that a) free web hosting is probably not good, and b) a thing called firebug / web inspector exists
 
That's really odd... I suppose a graphic designer doesn't really "need" to know any of that, but they probably should.
Actually its kind of impressive that someone could become a graphic designer and avoid learning any of that.
 
@twiz i'm self-taught (english major in school) and still n00b, so funny enough i can actually relate to him. but a lot of the things he asks could be answered by a simple google search, and that's frustrating for someone who aims to ask thoughtful questions in a valuable community
 
-2
Q: Is there a jquary Prompt Box?

user1185907I need a popup text input that a Prompt Box gives? Is there anything like the javascript Prompt Box in jquary? thanks for any help!

ERMAGERD JQUARY!
 
@SomeKittens haha its been deleted
 
@twiz only using $ is stupid for obvouis reasons
 
2:17 AM
@Raynos I was just making a joke about jQuery...
 
oh :D
I thought you were being a jquery fanboy
 
but honestly, what is wrong with the '$' part of it?
 
its overloaded
to hell
also abusing QSA is abuse
I tried to avoid QSA as much as possible
 
@Raynos inefficient?
 
@benlevywebdesign Hostgator.com
 
2:25 AM
My opinion on jQuery;
Its best quality: It gives any idiot the ability to create a dynamic site.
Its worst quality: It gives any idiot the ability to create a dynamic site.
 
@twiz my opinion: if you're using it to create a dynamic site, you're doing it wrong
 
@dyelawn So if you're using it, you're doing it wrong? haha
 
let me rephrase: i love the ability to achieve the visual / ajaxin' effects i'm going for intuitively through jquery. want to slide something? slide it. etc. but you shouldn't just be running server side scripts with getJson, because then your site will become sprawling
i guess what i mean is, the thought of a "dynamic site" should not be limited to the realm of jquery, but should consider both server side and client side elements
 
not sure I follow. If you're not using ajax request to run server side scripts, then how is a site supposed to work?
Do you just mean jQuery tends to lead to code with no real structure?
 
correct. most of the time, when i see $.getJson, someone just successfully made their first ajax call to a public api and thinks they're starting a multi-million dollar business because of it.
really, i think if you can figure out how to leverage the full capabilities of jQuery's ajax methods, then you understand how stuff works. fully leveraging the power of jQuery ajax requires understanding xmlhttprequests, response evaluation, etc. if you've gone that far and you don't understand server side, you should
 
2:46 AM
Not sure I really get how knowledge of xmlhttprequests would help very much. How would one use jQuery differently based on that knowledge?
 
@twiz just less liberally
 
@twiz inefficient yes. But also too generic. It encourages bad practices
 
3:02 AM
@Raynos I get what you mean, but what bad would come of that practice, other than overuse of inefficient code?
 
3:23 AM
I've been fiddling with some hobby projects recently and noticed that, instead of mapping models to views, I'm defining 'add', 'remove' and 'modify' functions that relate changes in the model to the view (as opposed to using a templating system or some such). Is that terrible? Should I go refactor right now?
 
@SomeKittens Did you also find that from twitter? And yes, holy-toast
 
no, HN
 
that script is insane and I want to know how it works, but there is just now way I'm going to attempt making sense that code...
I wish it had comments... ha
 
4:24 AM
Daaamn, it's using the 2d context. That's pretty awesome.
 
4:50 AM
who here hates jquery mobile
 
5:07 AM
how to display combobox after clicking on radio button using jsp
 
5:27 AM
@twiz you start hard coupling your JS to CSS selector structures. It's a maintenance nightmare. Avoid use CSS selectors in JS wherever possible to seperate concerns
 
@Raynos ah. good point.
 
lol
How you doing raynos ?
 
5:54 AM
Ok... so... I'm doing something really random. And I'm disabling my capslock key and using it as a shift-only-shiftier key.
so I'm going to make like CAPSLOCK+j type '$' or something
basically all the symbols that are used a lot in programming, but are in really annoying positions on the keyboard
not sure which keys I should map to what though.....
 
Hmm
@twiz um
capslock + j ?
its more annoying then shift + 4
seriously
i mean use ur small finger for shift
and
the finger b/w the longest and the thumb for 4
$ see so much convinient
 
well I mean thats an opinion..... haha
what I'm suggesting means that you don't have to take you fingers off the home row
A better example for this would be the '+' symbol
 
right hand small finger + ring finger or whatever u call the finger next to the right finger
 
you mean left hand?
 
nope right hand
i have shift on both sides of my keyboard
 
6:03 AM
lol I can barely make my hand do that
 
and + is over =
so learn it :P
 
huh?
 
it comes from practise
the "+" symbol is shift + "="
 
yea, but it could also be CAPLOCK+k haha
 
@FlorianMargaine you use Azerty keyboard :D
@twiz its actually faster htne caps lock + k
u will get both ur hands busy for no good reason
while one can do the job ;-)
btw cya
have to teach a bunch of classmates
 
6:07 AM
OK seeya. I'll be hitting capslock repeatedly....
 
Hey! check this out! :)
 
Cool story, bro.
 
@Prasanth hahaha that is the most worthless thing ever. but at least its creative...
but seriously, wtf is wrong with whoever named PHP
 
better than npm
It is a recursive bacronymic abbreviation for "npm is not an acronym"
 
I can't even comprehend how that makes sense... ha
 
6:22 AM
General rule is that it probably doesnt
 
well... luckily everyone thinks its node package manager or something, so no one cares what it originally meant
but... "npm is not an acronym" only has 1 p in it...
 
 
3 hours later…
9:05 AM
hello frds
 
omg i about to give up on this web stuff
 
9:29 AM
@OctavianDamiean Hello do you have teamviewer?
 
Well I can install it if I need it but what's the problem?
 
I just don't know whats wrong with my site/computer accessing my site anymore
I can get to this benlevywebdsign.netai.net
but I can't seem to view it at just benlevywebdesign.com
 
Indeed, there's a 404.
 
If anybody here sees me online on facebook , ping me here saying i have to work ! or ping me on facebook saying gtfo fb and work
 
9:32 AM
Morning everyone.
 
Good Morning Eugene
/afk
 
Guys could anyone help me with regex?
 
@benlevywebdesign It's just that your hosting company's 404 redirect sucks big time.
 
@Eugene Can try
 
...really?
 
9:33 AM
@OctavianDamiean haha
 
@benlevywebdesign no difference for me
 
@FlorianMargaine whats wrong with that?
 
@FlorianMargaine Yes Really
@benlevywebdesign it can confuse
 
I'm home already ~~
 
i think
xD
 
9:34 AM
you are at the bottom of the page right?
 
I have an input field and I need to be able to pass values that are only in range 995-999
 
"home" is at the top
 
I'm not sure how to approach this.
 
@Eugene Not using regex.
 
9:34 AM
You don't need a regex
 
Just check if the entered value is 995 <= value <= 999
 
@benlevywebdesign just put Home there not go home
 
I'm about to go crazy/cry
 
@benlevywebdesign Then just label it, "Move to top" or something like that.
 
@OctavianDamiean I thought about checking as I type. Regex for checking, that only numbers are allowed
 
9:36 AM
@Abhishek that is the least of my problems or concerns right now
:,(
 
@Eugene if (+nb != +nb) { console.log('nb is not a number'); }
 
what does this mean:
"We have just received a HUGE (over 3GB/s incoming traffic) DDoS attack targeting the Server #35. Our CISCO guard firewall was unable to handle such attack, so one of the server IP address - 31.170.161.51 was disabled (all the rest websites on this server are working fine)."
 
@benlevywebdesign That there's an ongoing Distributed Denial of Service attack on one of their servers.
 
k thanks
 
@benlevywebdesign it means "change host"
 
9:45 AM
what
 
Yup, change your hosting company.
 
ok I got bluehost and I am trying to figure that out
I need help
the cPanel is confusing
 
@benlevywebdesign rent a one which allows ssh , and ftp
thats all u will probably need cPanel is for dummies
 
bluehost has that
ftp
 
but its getting ddosed
 
9:56 AM
@FlorianMargaine thank you.
 
wait
000webhost is getting that
bluehost is different
 
Firefox's inbuild developer tools are so lame
 
me like them
 
@Zirak Really is
@Abhishek Uhh, thanks, I guess? :p
 
10:13 AM
I cant ftp into my new bluehost account
 
Errors?
 
do you have teamviewer?
Its hard to explain
 
Nope
 
Screenshot?
 
10:16 AM
Yea, I know I've used jQuery ... stone me.
 
}:(
I Don't Know What To Do Anymore
 
Hi, elites, Did anyone use webgl?
 
I want to unlink my domain to stupid 000webhost can I get help doing that?
 
Or THREE.js
0
Q: How to draw map road with three.js

jasonjiflyIn 2d canvas, we can draw a line and set its width as a road on map, how can I implement this with Three js in a 3d scene. I have found that Path seemed to be the most approximate to my idea, but I don't know how to use it.

 
10:32 AM
@OctavianDamiean jsfiddle.net/7HQmv/1
 
I will paypall someone some money to help me jk
 
anyone familiar with async javascript here?
and particularly the async library to make async less async
or anyother similar libraries
 
yeah, so?
 
@FlorianMargaine you talking to me?
 
10:40 AM
@FlorianMargaine aah okay, so i'm using the async library on browser to fetch two backbone collections, because I want the callback to happen when both had fully loaded
 
@andho Point being, if you have a question, ask it - try not to ask leader questions or make pointless small talk if you have a real question :-)
 
now that is actually working
but, this doesn't allow me to use the Backbone models even bindings
so any of you have a solution for this on hand??
 
working code or excerpt?
async.forEach([
        {coll:self.model.mypatients, filter:{type:'mypatients'}},
        {coll:self.model.myclinicpatients, filter:{type:'myclinicpatients'}}
    ],
    function(item, fn) {
        item.coll.fetch({success: function(){fn();}, data:item.filter});
    },
    function(err) {
        if (err) {
            console.log(err);
            return;
        }
        scroller.refresh();
    }
);
there you go
 
@andho function(){fn();}? Why not just fn?
 
10:45 AM
i don't remember, but i did try that
i think it was a glitch in async
 
did you try fn or fn()?
 
just checked, basically the two functions actually have different parameters, but they can be ignored
but the success functions gets the model as the first parameters
but final callback requires err as the first parameter
 
@andho Seems to me like you are trying to make JS behave in a way that it was not designed to, rather than embracing the asyncsauceOMG nature of Javascript. Not that I have any room to manoeuvre when it comes to Doing It Wrong in JS, but I never try and make it behave like it's blocking, it just causes headaches.
 
it's not blocking, it's just ummm
well it's avoiding this
dosomething(function(data) {
    doanotherthing(function(otherdata) {
        doWhatYouReallyWanted();
    });
})
now if you see here
the two requests will not be Parallel, increasing the time it takes to execute
 
@andho just use jQuery deferred
 
10:51 AM
what async does is, execute both the functions in parallel, and run the doWhatYouReallyWanted when both parallel functions has finished
@FlorianMargaine oh, all this time i though jquery deferred was something else
 
yeah, and what's wrong?
I don't see what's your problem there
JQuery deferred is exactly that
it allows you to use $.when
 
my problem is, not really a problem, what i was thinking was i wanted to "bind" as in Backbone.Collection.bind('change', function()... to two collections
but i think, it's not a real scenario i was thinking about
 
ok my name servers are pointing to my new host but I see the dang 404 from 000webhost still
 
so now that i thought about it, it's not a problem i guess. Thanks for RubberDucking
@FlorianMargaine i've understood that, it's pretty much the same as async
 
10:56 AM
yep
 
thanks guys
 
11:08 AM
hi guys
 
freeandopenweb.com vote to keep a free and open web
10
@GNi33 o hai
 
"Last login: Mon Dec 3 03:07:49 on console
Ben-Levys-iMac:~ benlevy$ curl http://benlevywebdesign.com/
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="http://error404.000webhost.com/?">here</a>.</p>
</body></html>
Ben-Levys-iMac:~ benlevy$"
when I am in terminal
 
@FlorianMargaine Like Syria you might lose us too :P
 
posted on December 03, 2012

It’s time for some browser stats; as always according to StatCounter. The Q3 stats are moderately interesting, both on the mobile and on the desktop side. Mobile On the mobile side Opera loses three points and ends up slightly behind Safari and Android. It remains to be seen whether this is a hiccup or the start of a trend. Opera has had such hiccups before, and might easily reverse i

 
11:26 AM
emscripten, but i don't care! AWESOME!
 
Anyone in here played with java, uploading different image types to a directory, something like the SO feature ?
 
@FlorianMargaine yo
dude
the meeting is today ??
does this affect tapeer ;(
Other countries, however – notably, the United States – believe instead that the WCIT should adopt only minor changes to the ITRs as necessary to modernise the existing provisions of the treaty, and that new provisions and authorities are unnecessary.
 
11:49 AM
@FlorianMargaine Yea, I know. I didn't bother to do it all too fancy.
 
@OctavianDamiean fancy ? jsfiddle.net/7HQmv/2
 
;D
not sure if fancy or siezure :3
@GNi33 how much time it takes to load , usually ?
 
FUD
is there a chrome extension to find out what is the jquery selector id of any som element on the page by right clicking or something like that?
dom*
 
12:07 PM
@Abhishek uh, didn't take all too long for me
@FUD you pretty much have that built-in in the dev-tools
right-click -> inspect element -> have a look at the lower bottom of the dev-tools
but in general, you really should know the selector yourself
don't take the whole tree, just some points that make sense to make the selector specific enough
(just like you would do in css basically)
 
FUD
how to select that? i think you mean xpath?
 
xpath? what, why?
you're talking about an element in the DOM of any webpage, right?
 
@GNi33 took me like 300 seconds
i hope ITU doesnt makes crazy decisions today :'(
 
It's a collection of governments in a country far away from anyone they "represent", of course they're going to make horrible decisions =]
In javascript, is there an easy way to spew out all an objects fields? I'm thinking something like PHP's printf or whatever it is.. Rather than doing for (x in myObj) { alert(x); }
 
12:24 PM
console.log
 
console.log(myObj)? Won't that just say "[object]" but instead of a nasty popup box, the console?
 
Nope, just give it a try
 
Is that browser independent or are we assuming Chrome there? Cos in IE it just says [object]
 
It works in all browsers except for IE
 
Chrome isn't an option, SharePoint is rather temperemental with other browsers
 
12:26 PM
The above statement is true for many things
 
Yes but I'm not interested in "Use another browser"
 
Then only god may help you
 
Man it's far too easy for people to dismiss something as impossible just because it's IE nowadays.....
Cheers
 
@Sean you might give firebug lite a try. console.log may work well with it
 
Getting things working in IE is one thing, but developing in IE ... ugh
 
12:30 PM
for (key in object) {
    if (object.hasOwnProperty(key)) {
        console.log('%s: %s', key, object[key]);
    }
}
^ @Sean
Wait, am I too late?
 
it seems double can represent exactly ´0.1` and 0.2
 
dude, you're always so random
 
it can even represent 0.3 exactly
so now I am wondering why 0.1 + 0.2 = 3.0000000000004, but can be hacked to be 0.3 exactly
@FlorianMargaine :D
 
12:47 PM
@copy shooting guns randomly is onething , shooting straight into your head killing yourself ? Well thats what developing in IE 8,6,7,9 is like
 
@FlorianMargaine jsfiddle.net/jcnN7/2
I think it's so close to 0.1 the inaccuracies don't even come to play in 20 first digits after the decimal point..
I wonder what the result is if you do that with infinite accuracy
 
you know, you have a lot of time on your hands
 
no the ground work for this was done a long time ago in stackoverflow.com/a/11939888/995876
the jsfiddle
I just had to put the values from windows calculator into it
 
Drawing to an offscreen canvas and then using drawImage to do one single draw: +5 FPS
 

« first day (779 days earlier)      last day (4172 days later) »