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

12:04 AM
y it quite
 
@Raynos before i want to goto sleep, could you verify i asked the question correctly, so it is understandable?
0
Q: jquery-mobile categorie navigation from database

wHiTeHaTI'm following a jquery mobile documentation for dynamic page generation. The goal here is to follow links and generate the "next" pages from an provided array. The documentation is provided with a static array and uses also a static menu (no deeplinking/multilevel).The provided example is as fol...

It is becomming to late for me have to get up in 4:45 hours, Goodnight @Raynos,i'll hope you get someone else to talk here.
 
12:28 AM
0
A: How many tiers should my models have in a DB driven web app?

RaynosIn node.js I generally use a only three layers. Data layer: A simple layer that talks directly to the datasource. It's only job is efficiently extracting data from the source and writing to it. The datasource can be anything, a TCP endpoint, a HTTP endpoint, a database, a filesystem, etc. Doma...

I think that's quite a nice elegant architecture summary
 
12:42 AM
hi
 
What do people think of my server architecture model
 
1:47 AM
@Zirak nice example
 
2:00 AM
How I counter dart trolls
 
@MattMcDonald great page
 
@island205 its kind of cool how your "catching up" :D
 
@Raynos catch up what?
@Raynos what am i catching up?
 
You reading old chat messages and replying to them ;)
 
@Raynos en,last night,i was the watcher
@Raynos but i had to go to bed,so,today,i am back to read.
@Raynos because i am interested in Olli' question
 
2:20 AM
That's a lot of pinging...
 
That should be a blog post
 
One moment, several things on the go.
 
@Raynos SO is looking at making tag-specific blogs FYI
 
2:33 AM
@Raynos Your server post doesn't describe what problems you're trying to solve, simply what your solution is.
 
@Incognito the problem I am trying to solve is application architecture
 
@Raynos You wave your hands like the wind through the trees in the forest.
 
:D
I needed a way to modularly structure node.js applications
The description is my personal way I view modular architecture for a node.js application
 
@Raynos Why? What was itching you so badly you had to scratch it?
 
balls of mud
I didnt want database access code in my view logic code
I didnt want database optimisations inlined in my domain logic
I wanted a neat domain object that doesnt have to worry about database optimisations
all it had to do was handle logic on the domain in abstract manner
I dont want it to have to worry about how this information should be shown either
 
2:41 AM
What was the issue with working in mud?
 
codes ugly
codes a pain to read and maintain
codes not loosely coupled
 
That's how you should start your blog: the problem you faced that you are about to solve. Then solve it, then explain trade-offs and still claim your stuff is awesome sauce.
 
I see
 
For bonus points contrast yours against other models.
 
I was more going, "you know architecture, it needs solid structure, here's how I do mine"
 
2:43 AM
What you have is the technical manual to your guide, which is good for technical manuals but not appealing to blog readers.
 
I see
its about the audience
 
When someone hits your site from reddit you need to capture their attention, you do that by saying "here's a challenge"
There's other ways obviously but that's a good one to start with.
In other words: Nobody woke up this morning to read yet another guy's thoughts on server architecture, they're trying to figure out how to solve their own problems.
 
@Incognito really it's an answer to "Hey I have node.js, what now? How I MVC, what bloated framework I load?"
Added some more opening paragraphs
 
3:02 AM
That's brave to say your own code is bad.
 
It is
it fucking sucks
I mean revision 2, the refactoring is good
"I dont want to touch it" might sound bad
I mean it easy to misinterpret it as "I'm a bad programmer"
Where as actually it means "I'm such a good programmer, clearly code I wrote 3 months ago is significantly worse then what I write today"
 
No, it's basically what you learnt.
First versions always suck.
5
If you could burn down anything and re-build it, would you do it differently?
 
@Incognito I came from another room to star this!
 
Always
 
@OmeidHerat I feel honoured! :D
 
3:05 AM
That is so true :)
 
That'd be a good topic to read up on: why our first versions suck.
 
@Incognito its obvouis
One does an act, one learns
if your first version didn't suck you didn't learn
If you don't learn your either a polymath and master of the universe or an idiot
 
Okay, but what can I do to predict why it's going to suck, so I can learn my lesson before I jump into the fire?
 
Well, hello, mortals
Greetings from Costa Rica
 
@Incognito ask people wiser then you. Ask people who already learned the lesson. That's it. Other then that you can iterate aggressively to learn the lesson fast and to apply the lesson fast
> Win8's attitude toward HTML/JS is nothing but a classic Embrace, Extend & Lock-in tactic. If you could get those JS people love Metro then you could sell lots of Win8 and Win8 tablets so there MSFT goes to show HTML/JS folks love - embrace - while tying their HTML/JS support to a proprietary WinRT - extend - that way these JS guys could get stuck with Win8 from now on - lockin. It might not be the smartest strategy but it would not hurt much trying either.
Ugh, I think that guy has a point
The whole HTML5/JS in win8 is going to be all about writing propietory non portable bullshit
 
3:14 AM
I don't really pay attention to windows.
My version of XP is crappy enough, I've never seen a browser crash so much in my life.
XP? Dude, I'm on vista.
This thing's junk.
I'd swap my hard-drives back to ubuntu but my computer is a pain to open up the way I've stuffed it into a box of never-going-to-be-removed.
 
;_;
y u no linux
 
Because I was playing tf2.
So I have cygwin on here, and that's laggy as hell.
And git for windows keeps putting \r in with all my \n, wtf?
 
0
Q: Live Home Page - Never touch the refresh button on the home page of a Stack Exchange site again!

George Edison About Live Home Page is a simple UserScript that updates the home page of any Stack Exchange site with questions as they are asked. Any activity on a question will bump it to the top of the home page and some nice jQuery animations will proudly announce its arrival! This script is very ea...

 
@Incognito i know ;_;
git for windows keeps trolling
 
Windows is all "Yo dawg, I heard you liked line feeds so we gave you a carriage return just in case you thought this was a typewriter"
3
 
3:36 AM
RT @NVAccess: NVDA 2011.3 Released! http://www.nvda-project.org/blog/NVDA2011.3Released #fb #NVDASR
 
Hello
 
rehello
 
Hey... Can somebody give me a hand on this question? --> stackoverflow.com/questions/8264435/…
 
3:50 AM
I want to trim an array of any initial elements that are 0 (like trimming leading white space) without using a for loop. Is there a simple way to do this?
Seems not really. while(this.coefficients[0] === 0) this.coefficients.shift();
 
isn't the for loop simple enough?
 
it is not true
it dosen't work
 
4:31 AM
Hai,
Anybody here ?
 
@digitxp how about using array map()? is this client side or nodejs?
 
4:58 AM
@DileepDil i am
 
 
1 hour later…
6:19 AM
posted on November 25, 2011 by Vasilis

12 usability tips voor je e-commerce website, webshop of commerciële website – Usability blog If you don’t speak Dutch you are very unfortunate since there are several sites that publish high quality articles about usability and other web related stuff. The Belgian Usability blog is one of them. In this article they give us twelve tips for e-commerce sites. If you’re into th

 
6:45 AM
Can anybody help me with an ajax php problem :S?
 
7:42 AM
@Howdy_McGee whats the problem?
 
8:42 AM
Any one here to sort out my problem
 
9:06 AM
any any of you recall the last tome someone posted a question here which did not include jquery ?
 
is there any way to reset my DIV'S position in jQuery ? i think that there is a method for that.
 
this is kinda sad
 
I am dynamically changing its TOP value ,how can i reset ??
 
remove it
 
@tereško what ?
 
9:08 AM
the current position is kept inside style attribute of the tag
remove the value and css takes over
and it does not require jquery
 
Nops,not like that,i want to get its default position ,removing its value may cause incorrect position ,i htink
i think
 
maybe you shouldn't , you are pretty bad at it
 
Is any one help me to sort out problem
 
well , @RahulSingh , i pretty much failed in my attempt to translate your "question" to english
 
NOt have good english....
I know that
 
9:22 AM
you suck at adding question marks too
 
I posted their that I have added a script to auto complete values of text field
 
@RahulSingh no problem dude,just try to say...i am also very poor in English.
 
> I wish if value entered other than suggestion in my text box than on blur my text box shouldn't be empty or null.
can someone translate this ?
 
I meant
if value is entered other than suggestion list
 
@tereško Not without getting paid.
 
9:24 AM
than on blur text box value becomes null
I hope u get it now
 
then !== than
 
@tereško He saying that he posted a Question regarding auto complete.
 
U got question na
don't discuss with meaning
 
A is larger **than** B
At first happened A , and only **then** - B
 
TUjhe samjh nahi aa rha hai gadhe to main kya karoon...
 
9:26 AM
@RahulSingh cool dude....
 
@thanks DILEEp
Kahan se ho?
@tereško: u got question now?
 
i think i did
 
@tereško If somebody entered a value on text box other than suggestion ,then on BLUR event that text box shouldn't be empty or null
 
which would mean that his code has nothing to do with problem
 
I dont know that.
 
9:31 AM
Gadhe bata na kaise hoga... Bhakchodii band kar....
Please help me how can I sort this problem...
 
by writing some code
 
Please link to the Question .
 
you can actually scroll up , @DileepDil
 
@tereško NO
 
Chutiye ye to mujhe bhi pata hai... That I know dear....
1
Q: Suggestion list on text box skip values

Rahul SinghI have added a suggestion list to my text box. With my script I am getting suggestion, But on blur if text is type other than suggested list it removed from my text box and value becomes blank of text box. <input name="poetname" type="text" id="poetname" maxlength="80" onkeyup="lookup(th...

 
9:35 AM
i would begin with the fact that your XHR response contains HTML and not data
which is bad
 
OK....
Next time I will keep this in mind
///
 
do you understand the implications of that ?
 
Tell me first how this will be sorted out...
 
you could begin with using JSON to return data from server , and then build the tags for suggestion box on the client
here is a small example i wrote ages ago
it had somewhat similar autocomplete , but without reseting it to null , if input does not match
 
Its showing off characters
I means
unknown encoding
 
9:45 AM
left click on line and "save as"
 
Can' t you set content-type? @tereško
So is it running on your laptop?
the webserver?
 
no , i am using opera's built in feature , they do not recognize 7-zip format .. i guess i will have to report it as bug
 
Can I stress test it? :P
 
sure , but it is off now
 
@tereško Do you have to forward any ports on the router for the webserver to work?
 
9:54 AM
no
it going through opera's proxy service
 
@tereško thats nice....
 
and , if i understand it right , the connection is not "incoming"
 
You mean it doesnt actually listen on anything?
Something like comet requests to browser?
 
honestly , i am just guessing
but i assume that yes , my bowser is opening socket to the opera's service
because my local network is somewhat locked up
kinda like skype's P2P works
 
I've seen something like this before, but this is much more cooler than that...
And I suppose it doesn't need much configuration?
 
9:58 AM
i choose directory i want to chare
here is the list of "tools" i can run from my browser
 
yeah, I saw them...
Now thinking about installing opera!
 
i tend to use this one , when i need to share a live project : unite.opera.com/application/272
kinda like free DNS under opera's domain
 
yeah, looks pretty neat...
 
Why i cant do this ?? var read = document.getElementById("conf_third");
read.removeAttribute('top');
again problem
huh
 
no
use document.getElementById('conf_third').style.removeAttribute('top');
just make sure it works also on IE7 .. it is DOM1 , but you can never know
top is part of style , not of the element itself
 
10:17 AM
ok
@tereško
document.getElementById("conf_third").style.removeAttribute is not a function :i am getting this error
 
hmm ... then there is no other way then to just manually mess with style attribute
try at first deleting element.style.top
 
ok let me try...
 
if that fails , you can set top value to auto ... and it that fails too , you can always just regexp the style attribute and brute-force the expected behavior
 
document.getElementById('conf_third').setAttribute('top',null); this works but its not getting changed on Firebug
 
define "works but its not getting changed"
which part does not change ?
the information in firebug or elements position ?
 
10:29 AM
@tereško on the HTML part [on Firebug] i can see the changed value ,but its not getting refreshed on the page.
also on the left BOX of firebug it showing 150px
 
jeez
document.getElementById('conf_third').setAttribute('top',null);
YOU ARE DOING IT WRONG
 
then ?
 
top is inside of style
 
.style.setAttribute ??
 
yes
this is the result of focusing on jquery instead of expanding your skill in native javascript
 
10:31 AM
ohh
document.getElementById("conf_third").style.setAttribute is not a function throwing this error
 
does it work now ?
 
nops
 
ehh
document.getElementById("conf_third").style.top = null;
 
Ohh god..it worked.....
@tereško thanks...it worked..
:D
@tereško i am sorry to disturb u ,but how can i do with this z-index ?
 
same way , style.zIndex , IIRC
 
10:39 AM
ohhhh
 
but if you want to reset multiple values , it will be better to do it with css
 
okkies
 
you can do the same by adding class , because inline styles ( ones you change with javascript ) can be overridden with !important in CSS
 
the reason is that each time you touch the style attribute in javascript , it triggers a REFLOW stage in browser's rendering
 
10:42 AM
REFLOW stage ??
 
google: "browser reflow"
 
Okkies :)
 
this is one of the reasons why you should never set static ( ones that do not change , unlike animations ) css attributes and instead do it with classes
 
10:58 AM
Hey all,have any one used facebook fb.ui method to post on user wall after getting extended permission but it should show a prompt asking user to share
 
Can anyone please check my question..
 
Question ??
 
you have 41 question
 
11:40 AM
0
Q: How to develope "Client script library" for ASP.net controls and how these works?

Niranjan KalaI have been working on .Net platform for 2 year and right now i am working on DevExpress controls for 6 months. All these control have client-side Events which are under some ClientScript nameSpace of particular control, Which specify ClientInstanceName, methods and properties accessible at clie...

 
Hai,i am again with a new Question.
0
Q: javascript regex replace html

Dileep Dilsee - > i have the following text in a variable var s = "<html> <head> <style type="text/css" > body{ background:url(/a.png); } </style> <script src="2.js"></script> <script src="1.js"></script> </...

 
Wow, cows can jump ~1.5 metres. That's awesome.
 
@Zirak Cows ?
 
@DileepDil Don't parse html with regular expressions. Seriously.
Use the DOM.
 
@Zirak its not HTML
 
11:52 AM
@DileepDil Yes, cows! I recently discovered that cows are very interesting
 
hehe...how ,why ?
 
Because they're friggin awesome. The first time I heard they have 4 stomachs I was like "woooooooah". More O's were added every time.
 
Besides, they're tasty, and cereal without milk just isn't the same.
 
ummmmmmm
 
11:58 AM
mmmm, steak...medium-rare drool
 
posted on November 25, 2011 by Thomas Fuchs

This Friday, November 25, 2011, mastering the art of JavaScript performance got cheaper! Use code TURKEY to get over 50% off my JavaScript Performance Rocks! Ebook and get it for only $19! Enjoy!

 
12:52 PM
 
1:03 PM
@rlemon looks like my friends boss!
As for the people who haven't seen this, should definitely check it out! youtube.com/watch?feature=player_detailpage&v=u4IdoBU1uKE
The future of javascript...
 
1:39 PM
Hello friends, i'm conflict issue with jquery tools and jquery ui
i am also using prototype.js in same page
i used jquery conflict
but no effect
please some one advice
 
Interesting. Three redundant libraries in the same page.
var $jqOrSomething = jQuery.noConflict();
//instead of `$` to reference jQuery, use jQuery or $jqOrSomething
 
@Zirar : yes i used jQuery.noConflict(); but no effect
 
What did you do after noConflict?
 
i replaced all $ with jQuery .
regarding jquery scripts
like $( into jQuery(
$. into jQuery(
i usually do this
 
$.something === jQuery.something...
 
1:44 PM
yes
$. into jQuery.
 
And what doesn't work with that?
 
errors ui library is not working,should i replace $ in ui tools
even i tried that. but getting errors
 
1)What errors? 2)Using any plugins?
 
Hello! :D
Somebody please, help me!!!
 
Error: element.attachEvent is not a function
Source File:js/prototype/prototype.js
Error: jQuery("#aw_booking_date_from").datepicker is not a function
 
1:49 PM
0
Q: Google map showing gray areas when show / hidden

ÓscarI'm having this problem: I have two Google maps in one page, showing just one a time. One shows a user-selected preferred store. If the user wants to choose another one, a WebService provides the nearest ones, and with that info, I hide the first map (and some associated elements), create another...

 
2) no plugins . jquery ui
 
There, there
I'm having an error with Google maps
 
@gowri No idea, sorry
 
And I might kill somebody (or get killed) if I don't fix this... now
 
2 messages moved to bin
Next time, edit your message
 
1:50 PM
Sorry, I didn't know that could be done
 
@Óscar Well, you're asking a lot of questions at the same time there
 
@Zirak: ok np, but can you give me the hint . should i replace $ into jQuery in jquery tools
 
You should ideally be asking one question per question
 
erm, yeah
 
@Zirak: ok thanks
 
1:53 PM
Mmmmm
But should I then do 3 posts with the same fiddle?
 
@Óscar Why not? Well, the first question can be easily split off
 
At the end, the most important one is the third, as I stated there... That weird behavior, I just didn't want to pollute StackOverflow with a bunch of questions
 
There's an easier way, actually. Just wrap stuff with (function($) {...}(jQuery));. That way, you can keep using $ inside these blocks, and still have them reference jQuery
 
i will check jquery tools lib structure
 
The thing is, my impression is that the 'grey square' problem is just the map loading too slowly
Which simply means your bandwidth is too low
I think you should include which browser you're seeing these problems on
 
1:59 PM
Mmmm
All of them
IE, Firefox, Chrome, Opera and Safari
 
I really don't see any problems in the fiddle
 
Well, you know, the important ones... (Konqueror cries deeply)
 
I mean, I see the squares, but they disappear reasonably quickly as the map is loaded
 
Just switch between the views by pressing the buttons below the maps
Repeatedly
Yeah, I know
But you can see the map shifts
In my real-world application, the Ajax service is rather slow
So you can wait for a minute with the map shifted
I'd like to know how to stop the map from shifting... Even if it hasn't been loaded, how can I make it display the previous map as it was?
 
Hmm, not sure, never had experience working with Google Maps API before
 
2:02 PM
@Zirak: i tried that but no effect.
(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){retu
above is sample
can i change $=function into jQuery=function
 
Seeing how I don't know what that is...
 
Just wrap stuff in anonymous functions and pass them $ as jQuery
 
@gowri You look like Michael Jackson
Other than that, my question remains unanswered and I'm afraid
 
ha ha ha
yeah i tried that
like (function($){
 
2:09 PM
...and }(jQuery));
 
of course i did
can i give lib init structure
order
1.prototype.js 2.jquery 3.noconflict 4.jquery ui 5.jquery tools
 
why would you do something like that ?
 
@tereško: are u asking me
 
well , do you see anyone else here trying to create a JS library clusterfuck ?
 
sorry, what's wrong in that
 
2:27 PM
Why use prototype and jQuery?
 
@RyanKinal I think you were meaning ||, not &&
 
Not really. I mean, sure, that's the expected viewpoint in this room, but I understand the use of frameworks/libraries.
I don't understand the use of so many, but I understand the use of one.
 
@RyanKinal: i am using magento frame
work
so most of the functionalities are with prototype.js
for datepicker i add jquery
 
then remove jquery's datepicker and use one with prototype.js
and if that is some sort of default setup , then just stop using magento
 
@RubenTan I can't see how that would be done without using a recursive callback and a filter call.
 

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