« first day (163 days earlier)      last day (4790 days later) » 

5:02 PM
Heyho
 
Hi @Raynos
could you help with my query?
 
Anything exciting?
@Greg maybe. How much are you paying?
 
allo all
 
£ 1.0 × 10-105
@MylesGray good evening
 
Well the default is stopped. It just stays in that state :D
 
5:07 PM
anyone know a good server hoster for Windows Server 2008 R2 + Full SQL Server?
I need to move a desktop app's DB to the cloud and am pricing around
was looking at Amazon EC2 but I dont think they host with full SQL Server
 
@Raynos yeah that's what I thought of first. I think ui can be overridden but can't figure it out
 
@MylesGray godaddy?
 
@Raynos ima smack you
 
rackspace. There pretty good
 
@MylesGray I really like rackspace
 
@Greg o/
 
@Raynos snap
 
user1385191
lol, their example is broken when you drag + scroll
 
@Greg I was looking at rackspace too
theyre expensive though
I have a 150GB OS image
 
@MylesGray buy a physical server
 
5:09 PM
@Raynos We have one
We need to store it somewhere with MASSHOOOV bandwidth
 
@MylesGray use rackspace cloud files for large file storage
11p / Gb / month
 
@Greg its not the file, we need the whole server up
there are 150 client laptops syncing to it
at the moment out 4Mb connection doesnt cut it :P
So all we really need is a rediculous fast internet connection (which we cant get)
 
Would Rackspace cloud files not do it for you?
It's a really fast CDN
11p / Gb / Month - that's disk space & bandwidth
 
@Greg I dont think so, as the client laptops need to send and recieve data from the DB
so its not just hosting files
we need SQL server to change shit too
otherwise i would have gone with Akami or someone
 
they've got an extensive API for the CDN
 
5:13 PM
@MylesGray use no.de
fuck their sql server shit. do it in mongo
 
@Raynos and re-write the whole app? :P
 
Yes
It'll only take you 2 weeks
tell them your doing it for free as a bonus
 
It took the dev a year to write this app, its not something i can jsut change
 
Sure you can, your a programming god
Your The M Gray
 
@Raynos wow, I never knew there could be so much sarcasm in so few words :D
 
5:15 PM
his the m gray what?
 
user1385191
I'm reminded of this
 
user1385191
The Picture of Dorian Gray is the only published novel by Oscar Wilde, appearing as the lead story in Lippincott's Monthly Magazine on 20 June 1890, printed as the July 1890 issue of this magazine. Wilde later revised this edition, making several alterations, and adding new chapters; the amended version was published by Ward, Lock, and Company in April 1891. The title is sometimes rendered incorrectly as The Portrait of Dorian Gray. The novel tells of a young man named Dorian Gray, the subject of a painting by artist Basil Hallward. Basil is impressed by Dorian's beauty and becomes in...
 
@Greg ignore @Raynos he hasnt taken his pills today :)
 
@MylesGray I was about to call the apostrophe police.
 
@Greg would it make you feel better if I apostrophised my sentence?
 
5:17 PM
@MylesGray sorry, I was being a geek referring to chat.stackoverflow.com/transcript/message/519484#519484
 
@Greg Ahh yes, i missed that :P
 
I'm reminded of this.
make sure to check out the customer submitted images.
 
@Nathan hahahahahahaa
that's actually great
 
I may or may not have contributed one :D
 
holy crap I didn't notice the pope one!
 
5:31 PM
that pope one is epic
So rackspace we recon?
 
user1385191
found it
 
user1385191
 
:D
 
Who here loves ASP.NET ?
 
lol
not me
 
5:41 PM
@Raynos loves, or uses? Because if someone uses it, they likely don't love it.
 
actually i guess i love it
 
punches asp.net
and IIS
 
its rep drives people to better technologies
 
user1385191
1
Q: How to remove or reset CSS style using JS?

Sam RudolphI want either remove or reset a style applied on a particular DOM node using JS. node.style.webkitTransitionDuration = '5000ms'; node.style.webkitTransformOrigin = '200px 200px'; node.style.webkitTransform = 'rotateZ(25rad)'; I want to reset/set webkitTransf...

 
user1385191
this question makes no sense
 
5:44 PM
hmm
i think i get it
he wants to instantly remove it
 
Yeah he wants to reset an animation when something happens
 
user1385191
great, node.style['webkitTransform'] = null
 
na
you need to kill the duration first
or else it will animate back to "null"
 
user1385191
well, yeah, you null all the properties you set
 
user1385191
that was just one
 
5:46 PM
i remove the css properties
we have a css animation library
works pretty well
 
user1385191
so you delete them then?
 
yep
style.removeProperty
 
user1385191
yuck, this question is a disaster
 
jquery solution doesn't help
 
user1385191
not even close to helping
 
5:50 PM
lol
"You can use jQuery"
i dont see why he even suggested that
 
6:02 PM
arg.. ok unrelated ms sql question, Im doing log(sum(val)) sometimes the val can be 0, which causes an error in log.. anyone know how I could do log(sum(val) or 1)?
 
log(sum(val == 0 ? 1 : val))
 
Wow, yeah. That answer was worthless.
(My now removed answer)
 
@loktar please don't recommend .live
14
A: jQuery: live() vs delegate()

Nick Craver.live() requires you run the selector immediately, unless you're using the result it's very wasteful. The event handler here is attached to document, so all event of that type from any elements bubbling must be checked. Here's a usage example: $(".myClass").live("click", function() { alert("Hi...

 
Ill recommend the hell out of it
every day.
 
:D
 
6:14 PM
thanks for the link
 
Seriously though, .delegate is better.
 
very interesting thanks
ill recommend delegate
changes answer
@ChadScira ill try that,
 
That answer reminds me of @NickCraver
He was the best :(
He's like @IvoWetzel but then 3 times as good
@IvoWetzel how would you rank yourself compared to @NickCraver?
 
user1385191
webkit animation answer, now with closures: jsfiddle.net/GdGw7/2
 
6:24 PM
I really like css animations
cant wait till stupid IE has them
 
user1385191
I can't believe it took me 10 minutes and some reading to figure out how to get the closure to work.
 
user1385191
I wasn't storing a reference.
 
How would one use client side and server side templating together in harmony>?
Preferably using the same MVC on client and server
 
Ternary operators no worky in tsql :? uses case
 
Yeah, from what I've been looking at, I think CASE is what you're looking for
 
user1385191
 
yeah i was able to do case val when 0 then 1 else val end
oh nice @MattMcDonald
 
user1385191
he uses directX for the IE stuff
 
6:59 PM
There's something odd about writing the line platform.error('There was a problem submitting your error. Please try again');
 
lol
do you send that error too the next time?
 
hehe. No, platform.error() just shows an error message. The function I'm calling it from is the failure condition of an async error reporting system.
 
user1385191
throw new Error("invalid error");
3
 
So, there's no circular logic about it. It just looks like there should be :-)
 
lol
thats even better
 
7:02 PM
@MattMcDonald I like it!
 
Tom
hello theres :D
 
So I have a general question: what are the pros/cons of developing an application purely in javascript (using web services [e.g. couchDB] as the backend via AJAX)?
 
@BobFincheimer SEO butthurt
 
cool, add 1 to the cons
 
Tom
@BobFincheimer for an AJAX app I'd go for pure JS
 
7:11 PM
thats what I mean mainly, but maybe storage needs to be in the "cloud"
you know what I mean...99.999% Javascript
 
@BobFincheimer that would be called PureScript
 
okay
so pros/cons of PureScript...
 
@BobFincheimer undefined = true;
 
lol, maybe put that as less stable language?
 
Tom
@BobFincheimer you don't have to hire PHP/ASP/etc... developers
 
7:14 PM
cool, but is JS easier/harder? less/more time intesive?
you still need to hire JS developers
 
@BobFincheimer it's easier to misunderstood I would say
 
Tom
@BobFincheimer it's different... you can achieve the same both ways
 
cool
so what are the advantages of the JS way, and the disadvantages
I am not saying one is right and the other wrong
 
@yojimbo87 @BobFincheimer I think it's probably harder to find JS developers that actually understand the language. (though, to be fair, I haven't really tried)
 
they both are valid
 
Tom
7:15 PM
but normally on a purescript app you have only JS files stored on your filesystem, a cache layer and a "stick-together" compiler. aswell as XHR handlers.
 
but what are the strengths/weaknesses of Pure JS
 
Tom
@BobFincheimer you mean like node.js for backend too?
 
no
lets forget the backend for now
just in terms of the View/Presentation layer
and technically the controller layer
 
Tom
@BobFincheimer your controllers doing the heavy stuff will be called by ajax and will still be in the backend
 
@Tom That's not his question, though
 
7:17 PM
Pure JS, everything on front end
controllers in this situation would not be on the backend
all logic handled by JS
 
@BobFincheimer I'm really finding myself at a loss for any particular strengths and weaknesses.
 
Tom
@BobFincheimer aslong as you don't run into security holes, you should be fine with JS
 
Tom
there's some stuff you should do behind courtains thou
 
@BobFincheimer pros - asynchronous nature
 
7:19 PM
good
more responsive
less bandwidth maybe??
 
Tom
no "jumping" around pages...
 
well maybe no bandwidth
definitely less than getting HTML everytime
 
Tom
it depends how you write it, if you parse templates client-side you can save on bandwith
if you do the template parsing server-side it'll be the same
 
if you use REST stuff on backend you will save some bits
 
yup
good
lets say templating is on client side
I am talking about the most amount of JS possible
 
7:21 PM
@BobFincheimer It could also just be more frontloaded, in terms of load-time/bandwidth etc. Loading scripts isn't cheap (resources wise), but can be mitigated by minimization.
 
so if it can be done on the client, do it on the client
performance, space problem...cool
 
Tom
JS is easily compressed, if you haven't take a look at google's closure compiler
 
@BobFincheimer Security is the first and foremost, I'd say. It's not difficult to inject bogus values into global variables, or execute arbitrary code.
 
7:22 PM
great con
good
 
potential pros is a direct access to JS APIs, for example HTML5 stuff
 
how about backwards compatability?
 
Tom
I'd say working on a pureScript basis is better for development... as your entire team will be working on JS files which will be compiled together...
@BobFincheimer with a decent framework like jQuery you should be alright
 
@BobFincheimer It depends on what you mean by backwards compatibility. If you're asking whether your app will be viable 5 years from now, then it's a non-issue. If you're asking about performance on older hardware/slow connections, then it may be a con.
 
7:24 PM
you can use modernizr for checking compatibility and offer fallback solutions
 
Ron
Can someone please give me the regex to replace everything inside div with id (id as var) including the container div?
 
good point @Ryan
 
Tom
@Ron could you please explain that a little better?
 
IE6 has slow JS, so backwards compatability now is a con
but in years to come, JS is going to only get better
and faster
and I am sure it will not leave how it works now
shit, g2g, bbl
 
Tom
@BobFincheimer I wouldn't support IE6
go for 7,8 and 9
 
Ron
7:26 PM
@Tom I got the following html line <div id="123" class="something" onmouseover="doesntmatter()" ...>.....</div> I want to replace everything inside it including the div with the id
 
@Ron Parsing HTML is not something regex does. If you're doing this in the context of a website, then it might be easier to traverse the DOM.
 
Ron
I dont want to parse html. I want to detect the text inside the div, including the div and by using replace(new RegExp()...) I will replace it.
 
@Tom my face when "support IE6"
 
Tom
@yojimbo87 I said don't support IE6
 
@Ron In which case you have to figure out where the DIV starts and ends, and which elements are inside it. The regex has to know all these things, and that is notoriously difficult to do.
 
7:31 PM
@Tom yeah I know, but I first read only the ending support IE6
 
Tom
@yojimbo87 =P no, that's just one piece of crap noone should be using anymore
 
@Ron

    var elem = document.getElementById('123'),
    	parent = elem.parentNode,
    	newText = document.createTextNode('123');

    parent.replaceChild(newText, elem);
I think that should work for you, without using regex.
 
Microsoft should follow chromium/chrome and also change IE logo
user image
9
to something like this
 
That's a little terrifying
 
awesome!
 
7:38 PM
@RyanKinal which version of IE wasn't terrifying?
 
Ron
@Ryan Kinal Thank you. I found a better solution - $('#123').replaceWith(newText)
 
@Ron Ah, you're using jQuery. Yep. That'll do.
@yojimbo87 Good point
 
user1385191
I tend to like (YOU'RE MAD!!!) IE 8. Its ui isn't the greatest, but as a browser, it's slightly above average.
 
Tom
@MattMcDonald it's IE7 with localStorage
 
@Tom and hashchange event
 
Tom
7:40 PM
@yojimbo87 yeah, sorry, missed that
 
@Tom that's enough features for MS to release a new browser
not like FF 4
 
user1385191
this is mostly why I like it so much
 
Tom
6
Q: What are the major differences between IE7 and IE8 that a web developer should know?

alexI've just downloaded IE8, which replaced my IE7, but that's okay because IE8 has a 'compatibility view' which is meant to render pages like IE7 (not sure about the JavaScript). I was wondering if there is a listing on the internet of all major differences a developer should know between the vers...

 
IE 7 mode?
 
user1385191
7:43 PM
yeah, you can test IE 7 quirks + standards, IE 8 standards + quirks, and IE compatibility mode quirks + standards
 
user1385191
makes developing for IE a lot easier
 
if they have also IE6 mode then it would be for hardcore users and masochists
 
user1385191
they don't have IE 6 mode
 
user1385191
you have to use IETester or an alternate configuration
 
yeah I know I was just joking
 
7:44 PM
Or the MS recommended solution - virtualization
 
Tom
I heard Dreamviewer now emulates every browser's behaviour for testing - does anybody know if that's true?
 
aren't there sandbox plugins? I saw it somewhere
 
microsoft.com/downloads/en/… - free images for testing various versions of IE
 
user1385191
Dreamweaver is a rotting, bloated corpse of a program that should never be used anywhere by anyone
 
7:46 PM
@MattMcDonald Content developers use it at my company :-(
 
user1385191
my boss uses it too
 
Tom
I heard some developers at my new job use it, that's why I'm asking
 
user1385191
oh, I think adobe labs has something that runs through it
 
Tom
I still consider it shit
 
user1385191
I forget the name
 
7:47 PM
@Tom I have no idea whether the browser testing is true. I've avoided Dreamweaver like the plague for 11 years
 
user1385191
it's going to be a paid service
 
Tom
@RyanKinal I tried it 4 years ago and hated it...
 
user1385191
that's it
 
Tom
@MattMcDonald that's cool but you still have to install the browsers you want to test on separately
so there's no fucking difference in the end =/
 
user1385191
7:50 PM
I like how they say you "save money"
 
user1385191
even though Dreamweaver is $400
 
Tom
I have a question: can <select> elements be styled on windows?
 
user1385191
windows the OS or windows as in window.open()?
 
Tom
windows OS
I'll make an example fiddle for testing
 
Here's something I asked here earlier but still haven't solved:
0
Q: jQuery UI draggable - constrain inner element within parent when inner element is larger than parent

GregI am trying to achieve this effect with jQuery UI - very much like the way you crop an image on Facebook: http://blog.creonfx.com/examples/javascript/facebook-cropping-mootools.html Here is a very simple test case in HTML (an img within a div): <div> <img src="fat_cat.jpg"> <...

 
user1385191
7:52 PM
I know option tags can't really be styled in IE < 9
 
Tom
test this: it works OK on ubuntu linux
but on windows it will display wrong
 
@Tom doesn't look different on my ubuntu machine
I have found it's easier to replace the whole select element with <div> elements, generated in javascript at runtime
jquery-ui has this inbuilt, but just for styling a select, it doesn't need much code to achieve that
 
Tom
btw this is how it looks like on ubuntu:
@Greg jquerui has a <select> replacement built-in?
could some windows user tell me if it displays similar or the same on their machine please?
 
@Tom in IE?
 
Tom
@yojimbo87 browser doesn't matter I think
 
7:59 PM
in IE it's different
 
Tom
since input elements are OS-dependant
@yojimbo87 which version? and on chrome or firefox, is it the same?
 
IE 8
chrome without background
 
Tom
impressed =/ on my aunties' windows XP it looked like cr@p
thank you =)
 
this is chrome
chrome 10
 
Hi, got a problem with a navigation, don't know why it doesn't hide the last one I was on, can you check out my code?
 
Tom
8:02 PM
thanks... I'll consider greg's idea of replacing the select elements with JS-active elements
@Omegakenshin it displays very weird... "se ve feito jaja"
it does hide if you hover on the dropdown menu for a while...
@Greg does jquerui have an integrated <select> replacement widget?
 
I personally hate it when apps/pages don't use native UI elements.
 
@Tom XD salu2, I understand but, what could be the reason, it does not hide, after i hover the next one?
I been trying to fix this like for 3 hours, im kinda new to jquery
 
user1385191
@Nathan form elements are built, and have been mainstays for a reason. they work.
 
Like my son's LEGO MindStorms software (written in some Adobe crap) runs on the Mac but has UI elements like Windows and he's like "you have to hit the X on the right side to close?!?!"
 
user1385191
they have prepopulated CSS values so they work even better
 
user1385191
8:09 PM
they're stupidly easy to put onto a page
 
Tom
@Omegakenshin hmm... I really don't have brains left to look deeply into your code, and it's a little lot
but you should be hiding all elements displayed before showing a new one, that way you'll always have the correct behaviour
@MattMcDonald so you're suggesting not to style input elements at all?
 
@Omegakenshin have you considered using superfish?
 
user1385191
I'm suggesting to stick to just using positioning CSS, not graphical CSS.
 
Tom
@MattMcDonald ok... i'll take a look on what I could do, thx
 
user1385191
there's a lot of science the goes behind these form elements (w3 specs and whatnot)
 
8:12 PM
@Nathan wow nathan, thanks a lot
I look into that ^^
 
@Omegakenshin yeah, much less painful
 
user1385191
nice question
 
Tom
@MattMcDonald +1 just learned something new
 
user1385191
I've always used method 2
 
user1385191
8:24 PM
(as outlined in the question)
 
yc
Sorry. Chat window is crapping out
Yeah, I was using method 2, but then Douglas Crockford yelled at me via JSLint
 
Tom
thumbs up for method #2
 
user1385191
Crockford also wants people to code applications bottom-to-top
 
user1385191
so as to avoid calling functions before they're defined
 
Tom
@MattMcDonald crockford is a theorist...
and apparently the theory for this scope check in JSLint wasn't that great
 
user1385191
8:27 PM
he's certifiably an expert in JS, but I don't agree with some of his stylistic requirements
 
I prefer to declare my variables at the top of a scope/function, unless there is some logical reason to do otherwise. In the case of loops, I see no logical reason to declare them in the loop itself, as it could lead to confusion in where the variables are scoped.
 
user1385191
it does depend on the eye of the beholder
 
Code Complete advocates "minimum lifespan", a minimum number of lines between variable declaration and last usage. But hoisting screws that up.
 
you guys notice atwoods acceptance rate is like 34%
 
Tom
is it a bad practice to define separate CSS classes for two different elements, calling both classes the same. i.e. div.foobar and ul.foobar? what about the same example with ids?
 
user1385191
8:39 PM
yeah, you want unique, separate classes and ids
 
user1385191
ids have to be unique
 
Tom
ok, then I have eventually violated the good practices
:S
what's up with the chat window? it's behaving weird :S scrolling up randomly
 
8:51 PM
hey do you guys always prefix your classes/ids with the element type? For example div.class, personally I always just do .class or #id but just wondering.
 
Tom
@Loktar it's ok in CSS I guess, but for jQuery selections you should always use the tag name too
 
yeah im just talking about css
 
user1385191
you want high specificity
 
hmm does it speed it up when doing that in JQuery?
 
user1385191
so you get the intended result
 
8:53 PM
because honestly alot of times I just do .class
but i guess it would make sense for div.class in jquery to be faster..
 
Tom
@Loktar yes, especially in IE, it's much faster
 
yeah @MattMcDonald I do for the most part like for lists etc. but just general styles I dont prefix in css
my reasoning is because your tied to that tag type now, like a class thats .left
i can use it on a div, or li
but if i prefix im stuck using it for that element. I see alot of people though esp in SO questions always prefixing styles though.. so if its a best practice id rather do it
I just cant find anything definitive saying yes do it this way
 
@Tom yeah, jquery ui can style select elements out of the box
 
Tom
@Loktar mix both
@Greg do you happen to have a link or something, i checked the jquerui site earlier
and didn't find it
 

« first day (163 days earlier)      last day (4790 days later) »