« first day (317 days earlier)      last day (4627 days later) » 

12:17 AM
@FelixKling , here is a free advice : stop using complicated css2+ selectors with your JS library ( any of them )
 
user1385191
12:28 AM
yikes, I didn't even know about those pseudo-selectors
 
12:42 AM
@teresko: I don't get it...
 
what exactly is so hard to get ?
 
I don't understand what you want to tell me...
 
user1385191
...
 
@MattMcDonald , how do you cope with such situations ?
 
user1385191
context?
 
12:44 AM
well , the guy above
 
user1385191
I think it's a lose-lose for everybody and best avoided
 
user1385191
I picked up the Bill Karwin book you've been recommending and have been reading it for the past few days
 
user1385191
it's been a big help
 
Ok I can have a live now
 
ok , nice
 
12:51 AM
@teresko: I was just suggesting to everyone who regularly answers jQuery questions to not use these selectors anymore. Otherwise we have to go back and update all the answers one day. I did not say anything about *me* using any selectors...
In this context I just don't understand your comment. But anyway...
 
@Raynos now explain what it is , and what it's supposed to do ?!?
 
user1385191
it's supposed to emulate this, lol
 
@teresko open source clone of this
 
it makes me to log in , just to view the room
 
@teresko view the transcript :)
 
12:53 AM
that should happen only if i intend to write
 
Yes you need to login in to join a room
@teresko we had 48 hours to hack together as many features as possible
 
oh
 
It was for the nodeknockout competition
 
then you are excused
 
user1385191
they made it in two days
 
12:54 AM
first offense and all
 
:P
 
user1385191
@teresko is there any good (My)SQL reference you'd recommend?
 
user1385191
I've basically been doing interactive tutorials all weekend
 
not really , i know next to nothing about mysql-specific parts
 
10000 lines of code
 
12:57 AM
and most of that is collected from multiple sources
 
user1385191
I've found this really helpful:
 
user1385191
 
@MattMcDonald you would be better of trying FreeNode ##mysql and asking for the best book they can recommend
 
user1385191
favourite part about that karwin book?
 
user1385191
he uses PDO :)
 
1:54 AM
only serious SQL book i have read was "SQL Antipatterns" , anything else has been variations on handbook concept
 
2:46 AM
What's your preferred Async/Sync library for Javascript? (I understand this is a personal preferecece question, but I'm truly interested in peoples's favorites )
 
3:22 AM
@Lime what do you mean by Async/Sync Library ?
 
@Omied Libraries like Seq or Raynos simple after function. Basically it allows you to run code in parallel, and prevents tons of nested callbacks.
There is a list of tons of them here.
 
3:45 AM
@Lime I need another flow control library :P
 
@Lime I see, never heard of them before.
but I am not really sure if you can run javascript in paralell, at least not in V8
 
@Omeid I thought thats why its called nonblocking, unless I have totally missed someting :| ?
 
@OmeidHerat you cant call javascript in parallel per se
you can run tasks in parallel though
Thats how async operations work
For example I can send 10 HTTP requests in parallel
and fire one callback handler when all 10 finish
 
isn't that serial ?
 
No
HTTP 1
HTTP 1 finish
HTTP 2
HTTP 2 finish
HTTP 3
...
is serial
HTTP 1
HTTP 2
HTTP 3
HTTP 4
HTTP 1 finish
HTTP 5
HTTP 3 finish
HTTP 6
HTTP 7
HTTP 2 finish
HTTP 8
HTTP 4 finish
...
Is async, non blocking & parallel
You fire them all at once and you run them all in parallel
What your actually running parallel are sub processes that handle the HTTP request
 
3:57 AM
make sense.
and is actually really interesting
 
Or whats more likely is a HTTP thread pool running those HTTP requests in threads in parallel
Thats what async IO means.
and thats how callbacks work. notice how callbacks are un-ordered
 
@Raynos thanks for the clarification of parallel tasks vs parallel javascript
 
@Raynos your first example was serial though.
you just talked about one callback after 10 calls.
 
@OmeidHerat yes
@OmeidHerat oh thats an example of what async libraries do
 
Well if I call setTimeout several times with several different functions, will they all run at the same time @Raynos
 
3:59 AM
They run 10 tasks in parallel then aggregate all 10 results into one callback
after is an example of that
I need to make another flow control library for middleware
 
@Raynos would you right that in c or Javascript
 
@Lime js of course
 
What do you mean be middleware, because I think I misunderstood you
I assuming you meant between separate servers, is that right?
 
middleware in the express sense
Ill see if I can write up an example
 
4:26 AM
Primative middleware
 
hi there
 
The Sand Box Security Model
 
 
2 hours later…
7:01 AM
0
Q: Review my JavaScript API called Fayer

SamFayer is JavaScript API to kick off page specific JavaScript. Source code and more detail on API can be found @Github. Please review the code structure and JS code writing style, also give me feedback on how can I improve the code so as to further reduce file size.

 
7:19 AM
hi, i tryin to change the innerHTML by id on a link element.
JS:
onload=function(){
var localUrl = document.URL
localUrl = localUrl.split('http://')[1].split('/');
document.getElementById('menuDomain').innerHTML = localUrl[0];
}

html: <a id="menuDomain" href=".."></a>

But it is unchanged. :(
 
 
1 hour later…
8:25 AM
RT @donmelton: ATTENTION INTERNETS! WebKit is not 10 years old today. That happened on June 25. I know the date because that's when I st ...
 
 
3 hours later…
11:08 AM
0
Q: Check if select has a certain option

MajidI suspect there is a simpler way to find if a select has a certain option, but don't know what. The objective of the following is to check if the desired option exists or not, and if it does, set it as the selected option: Markup <input type="text" size="2" id="selectVal"/> <button onc...

 
11:18 AM
When using the xml schema validator, I have an element structure defined that can occur many times, or not at all. Its set to maxOccurs="unbounded", but it fails when there isn't at least one element. Is it possible to change the schema to not require at least one element?
duh. minOccurs="0"
 
 
2 hours later…
12:57 PM
RT @krijnhoetmer: text-overflow support in Firefox 7! Finally! \o/ http://t.co/i3un2Pi
 
Hey guys, I am having a "add user" page on my site. There you can add a bulk of users to the system (see: 109.230.224.243/~tagebuch/… ). I use jQuery. Now I want to subscribe different input fields to JS functions. But the problem is: I have a "new line" button that adds a line for a user to be added. How do I subscribe those events to the JS functions? Should I just unsubscribe all and resubscribe them?
Using a class selector.
Also what is my best bet in adding a line? Do I just do it like I do now (I embed the html as text) or should I construct a jquery syntax?
 
1:15 PM
can someone help me out with a quick jQuery UI problem... here is the page, I'm using toggle to switch between the two divs, but the UI blind effect won't work...
here is a link to the page: host.philmadelphia2.com/~clare/order
and here is it working properly: jsfiddle.net/9MATW/2
not sure why its works in jsfiddle, but not live
 
1:53 PM
mornin all
 
Morning.
I've been avoiding Qs all day v.v
How was your weekend?
 
2:15 PM
@Incognito morning! Can ya help me out with my question up there?
 
@Incognito rainy
windy
stormy
 
@sinni800 Honestly I don't want to. You've got it running from some IP address, Set it up on jsFiddle and show just the problem you're having, I don't want to sift through the code of a full-featured app to look at one issue.
That being said, it's probably related to event delegation. danwebb.net/2008/2/8/event-delegation-made-easy-in-jquery
Also, it's called binding events, not subscribing them.
 
@Icognito The code that is on the site I am showing you actually has like 10 Lines of JS code
Alright, binding
 
If it's 10 lines put it in jsFiddle, and/or ask a question and link to it here.
We ask questions so that knowledge is reusable, chat-rooms don't make re-use of knowledge easy. Someone, somewhere, some time, will have the same problem you are, I'd rather help both of you than just you.
 
Alright. The question is pretty generic anyway, so I'll word it out in a SO question
 
2:24 PM
Hey guys
 
@Raynos Hey.
 
nodeknockout is over
stackchat.raynos.org
 
@Raynos Can you add Content-Type headers to the OAuth please?
 
No
Its frozen
48 hours over cant change the server
 
:(.
I can't authenticate due to stupid firewall policy.
 
2:29 PM
@Incognito register by hand
 
jsfiddle.net/Xr9X9/2 now why the heck does it say "shell form does not validate" when I click submit?
 
@Raynos is that ur copy o fthis chat but with node?
 
@Neal yes and buggy
We hacked it together in 48 hours
 
@Raynos no websockets?
 
@Neal of course websockets
 
2:36 PM
:-P
seems a bit hacky ^_^
as is mine lol blipit.net/pushForChat
 
:( What did we do wrong on the git workflow?
Y U REMOVE
 
2:53 PM
@Raynos That graph's complex enough that it looks like sheet music. How many bases were you working with?
 
@Incognito one >_<
we had 3 forks of one repo
we pulled from the main repo before commiting
 
hey was someone just on my chat thingy?
 
Well, you have two "First" commits, is that just not putting in messages, or did the whole tree actually move?
@Neal Thingy, eh?
 
@Neal No, but I've been meaning to find that again so I could see how you do the polling. Bookmarked :P.
 
2:59 PM
@Incognito ^_^ i have not owrked on it in a while
its very buggy
 
@Raynos I'm not sure, but it looks like you've been committing from different branches/trees/parents at random. Are you using standard GIT or some weird tool around it?
 
@Raynos Maybe you didn't pull the thing to your working directory. =/
 
Cmon people vote :P
Vote you basstards
 
@Raynos I don't authenticate with FB. Bad move on their part :(
 
3:04 PM
@Incognito github?
 
@Raynos Isn't that for participants?
 
oh
shucks
 
Ahahaha, blocked by firewall, OAuth has no content type headers.
 
xd
 
3:07 PM
Hey! I like XML
 
(Floating point numbers, fixed point numbers, bit shifting, memory/cache, and more)
 
@RyanKinal Branches would be probably the most under-rated bit on there.
 
@sinni800 burn in hell
 
@Incognito I don't know anything about them, unless I just don't recognize the term
 
@Raynos Jeez.
 
3:14 PM
@Raynos Dude. It's just XML. It's a valid and versatile format, if a bit bloated.
 
Has anyone here seen QML? en.wikipedia.org/wiki/QML
Pretty slick.
But mostly used outside of the web, for some reason.
(probably CSS :P)
@RyanKinal It's basically just how to not make stupid IF statements all over the place.
 
user1385191
man, some of those node entries are impressive
 
@Incognito Ah. Fair enough :-)
 
user1385191
how much were you allowed to do before the contest began?
 
@MattMcDonald Well, look what Raynos and two others did in 48 hours.
 
3:17 PM
@MattMcDonald like?
@MattMcDonald zero code
@MattMcDonald why didnt you join? :P
 
I often feel like I'm forced into stupid if statements by VB. I wonder if I can be smarter about that.
 
How about some CSV, guys? :D!
 
user1385191
not much free time
 
@RyanKinal Sample?
 
If myDataSet IsNot DBNull.value Then
	If myDataSet.Tables.Count > 0 Then
		If myDataSet.Tables(0).Rows.Count > 0 Then
			' Do stuff
		End If
	End If
End If
Due to the way VB interprets boolean operators, I can't combine those like I would do in JS
 
3:22 PM
@RyanKinal Been a while since I did any VB, but can you not use () ?
ie, (a IsNot b) and (c isNot d)
 
If myDataSet IsNot DBNull.value And myDataSet.Tables.Count > 0 And myDataSet.Tables(0).Rows.Count > 0 Then
	' Do stuff
End If
 
Alternatively, what if you used variables, it might be more readable...
 
The above breaks if myDataSet is DBNull.value
Does () change that?
 
If (myDataSet IsNot DBNull.value) And (myDataSet.Tables.Count > 0) And (myDataSet.Tables(0).Rows.Count > 0) Then
	' Do stuff
End If
I mean like that.
 
Right, but () are just grouping operators, right?
 
3:25 PM
I think operator precedent in VB may place IsNot above AND, for some reason.
@RyanKinal Correct.
 
Hmm. I'll have to give it a shot.
 
oh was the node knockout this weekend or something?
 
If it's breaking, it might be precedent of your boolean operators being all kinds of F*d up, VB style.
 
user1385191
yeah, it was this past weekend
 
@Incognito Could be. I'll give it a look.
 
3:26 PM
Ill have to do it next year
I need to look at the entries now
 
user1385191
some of them are really good
 
user1385191
the pong one is cool
 
Any that is not a game doesnt impress me :P
joking of course. I love the game entries though
 
@Loktar yes it was
Y U NO NODE
 
I tried to sign up too late :?
 
3:28 PM
@Loktar stackchat.raynos.org
We had an entry
 
@RyanKinal Yeah that's exactly what's happening, msdn.microsoft.com/en-us/library/fw84t893(VS.80).aspx isNot happens before Not, because it's an object comparison, which happens before all the bitwise, which they've placed NOT into.
tl;dr: VB is stupid.
 
nice @Raynos thats your entry then?
 
@Incognito OMFG. And they say JS is screwed up
 
@Incognito VB allows me to have extension methods which take their value argument by reference :O
 
@RyanKinal JS is fine, crockford's "most misunderstood language" explains the misconception quite well.
 
3:30 PM
Kinda stupid since C# doesn't do that though
 
@Loktar and @jcolebrand & @yojimbo87
 
user1385191
looks like people spent a ton of time on conceptualizing and design
 
Yeah there are some VERY nice looking ones.. without much functionality
 
@Incognito Yeah, I realize. But people who haven't learned the language don't realize that.
 
3:31 PM
I like the heatwave one
that one is pretty cool
 
user1385191
well, only 48 hours were given to write code
 
user1385191
so OOP is essentially a must
 
yeah, these people did some great things in 48 hours.
 
Programming language? Isn't it more like a scripting language? :P
 
3:32 PM
i like this page for learning
something closer to university-style lectures
 
@sinni800 I'm going to interpret that as sarcasm. For your safety.
 
@teresko Yeah I've actually only watched the first few so far...
@RyanKinal I was debating flagging, but Raynos would yuno all over the place.
 
@Incognito lol
"yuno" is the best verb ever
 
Also, I'm considering an attempt at writing a QML renderer. In JS, of course. For the web.
 
3:35 PM
@RyanKinal Hah.
 
I don't know if this has been linked here, but there's a pretty sweet article on How Browsers Work that seems like it could be very very useful to any serious web dev.
 
posted on August 29, 2011

Well, the webOS saga has already entered a new phaes. The Next Web reports that Samsung is seriously considering buying webOS (in addition to hiring a former HP VC for marketing their PCs.) So it’s outright sale, and not licensing. And it’s Samsung. Neither is unexpected; I predicted both a week ago. (And I must admit I’m very happy to finally get something right, even thoug

 
@RyanKinal It needs to be more wide-spread, as per my ongoing rant about layers.
50 pages (300 words/page), should not take anyone more than three hours to internalize and understand it.
Reading is one thing, critically understanding takes a bit longer.
 
RT @dalmaer: A day in the life of Android WebKit dealings: Android WebKit is the closest thing to being the IE6 of mobile dev... http:// ...
 
3:50 PM
@Incognito Yeah... although I disagree with your internalization and understanding time frame. I'd almost say it shouldn't take anyone less than three hours to internalize and understand it.
 
@RyanKinal Perhaps... Maybe I see the average person who's going to read that differently.
 
The obvious analogy, of course, being Chess - minutes to learn (read), decades to master (understand).
 
Mastery is no simple thing, but understanding what models are going on isn't complex.
 
@Incognito I guess when I think "understand", I think "completely understand", as opposed to simply conceptualize. Understanding implies a detailed knowledge, IMO.
 
For instance, I'm not physics guy, but my friend who's doing a PhD in astrophysics, I generally understand his work, because I generally understand some of the models, enough that I can discuss problems he's having with computational limits, or even ask him questions that make him stop and think, such as, is gravitation relative to frames of reference if it's part of space and not truthfully a force?
@RyanKinal By that definition, I don't understand JavaScript.
 
3:55 PM
@Incognito Neither do I ;-)
 
And I won't for another perhaps 1-3 years.
I've always been amazed that, regardless of what domain of knowledge you're in, it's always the novices that claim mastery, and the masters that claim ignorance.
 
There are, obviously, levels of understanding, mastery being the ultimate goal
@Incognito Very Taoist :-)
 
@RyanKinal I'm not sure we have an actual criteria for mastery, we're very much a hacker-culture where we improve skills when others recognize them.
A self-respecting hacker doesn't call himself a hacker, he has others do that for him.
 
@Incognito Well, that gets into the definition of "hacker"
There are several connotations for the word
 
Absolutely, but I mean the culture where we don't have criteria such as "You have skills A B and C" as you would, a lawyer or accountant.
 
3:59 PM
(like crap right?...)
 
You're a good programmer when other programmers recognize you as one, not because of a list of skills.
 
True. And it comes down to the fact that mastery is more something to strive for, rather than to achieve.
 
Login to System
Username:
Password:
 
@Incognito lol i meant designwise :-P
colors etc
 

« first day (317 days earlier)      last day (4627 days later) »