« first day (972 days earlier)      last day (3968 days later) » 

12:00 AM
overwriting open seems like an even more dangerous thing. As for changing my code to work with my test I disagree. Writing testable code is a big deal to me. You have to pass things around with dependency injection, you have to plan ahead. It's totally worth it imho
 
That's nothing to do with Python.
 
@cx That's an awesome style
 
@cx It's not 'the python style', it's common logic.
 
user1125394
I'm more with the logic let it crash
 
You want to test your code, that's both how you spec it, and how you validate its correctness.
 
12:01 AM
Test-driven development (TDD) is a software development process that relies on the repetition of a very short development cycle: first the developer writes an (initially failing) automated test case that defines a desired improvement or new function, then produces the minimum amount of code to pass that test, and finally refactors the new code to acceptable standards. Kent Beck, who is credited with having developed or 'rediscovered' the technique, stated in 2003 that TDD encourages simple designs and inspires confidence. Test-driven development is related to the test-first programming c...
 
user1125394
and once it's close to ready, write some minimal tests
 
@BenjaminGruenbaum Yeah, I'd agree that overwriting open is dangerous
None of the three options are optimal
 
Does python have a notion of in-memory files?
 
I don't know, it might
 
Guys,
 
12:03 AM
Well, thanks anyway
 
user1125394
@BenjaminGruenbaum 'streamReaders'?
 
@BenjaminGruenbaum +1 for spec. It's not just a test.
 
If you have images on your website and when user click on an image then you want that image to open in a new tab with full size. Would you set cursor to that image as pointer or resize?
 
@loading... Of course it's not just a test :P In JavaScript it's pretty much the only contracting and order in your code, the only thing validating object schema, typing and such.
 
and why?
 
12:05 AM
@BenjaminGruenbaum Yeah, I was really saying that for @cx's benefit.
 
normally 99% websites set their cursor to pointer in this situation
 
Ah cool :)
 
and I figured resize makes sense too
 
I like to think of tests as the design document.
 
Tests are usually the first thing I read. Especially since a lot of good libraries have a lot of good tests but very little good documentation
 
12:09 AM
Yeah, I learnt a ton about regexps once by examining the test suite.
 
user1125394
:))
 
lol
 
That's so unfunny you even get a star there :)
 
@loading... congrats
 
12:12 AM
Why is this clipping in IE10?
 
@O0oO0oOO0ooO er, cool?
 
what?
 
ah, padding-bottom. I always seem to discover my answer right after I post here.
 
@O0oO0oOO0ooO I replied to your ping.
 
hmm right, I was just saying congratulations because you have learned ton of regex
 
12:16 AM
@O0oO0oOO0ooO I can't tell if that is sarcasm or not. :-)
 
@O0oO0oOO0ooO Why do you keep editing and deleting messages to change meaning?
 
This is one of my favourite regexp articles: perl.plover.com/Regex/article.html
 
Oh that one again :)
 
Heh, I think I've mentioned it only once before!
 
12:23 AM
Yeah, but it's a pretty well known one, it has been around this room a few times before
May 17 at 22:38, by FizzyTea
This is a great article about regexps: http://perl.plover.com/Regex/article.html
 
Oh right. Cool.
 
Jul 13 '12 at 9:28, by adscriven
Oh and a v. nice article here if you know Perl. Or if you don't. I don't know Perl and I understood it. (Here: http://perl.plover.com/Regex/article.html)
 
Well that's further back than I can possibly remember. :-)
I'm allowed an off-by-one error now and again. :-)
 
That's cool though
 
Well, yeah, I mention it because I found it really helpful when I was first learning about regexps.
 
12:27 AM
How does a CSS padding change introduce a JS error?!? Thanks, IE.
 
I've only ever had a go at writing a regexp engine once though (for fun); it was of the NFA type.
 
What d'ya mean decodeURIComponent is undefined. It's part of the language!
 
Ah, found it. It was based loosely on the Glushkov construction, dcc.uchile.cl/~gnavarro/ps/algor04.2.pdf
 
12:47 AM
1
Q: CodeIgniter TankAuth ajax forms

TwhylerI am using the lastest version of CodeIgniter and TankAuth and all functions work properly such as login, logout, email and register. Currently when a user needs to login, you are redirected to a separate page, which is, /auth/login. What I am experimenting with is loading the login page in a mo...

 
@Raindrop Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
What website can I use to edit javascript code and see the output in real-time
 
@Raindrop codepen.io may be nice for you
 
@Raindrop for simple stuff, you can use the JS console.
 
1:08 AM
@Raindrop jsfiddle.net probably the best known
 
1:28 AM
Not looking forward to making a BBCode function in javascript
 
@Dave it's pretty trivial..
Also, do markdown, markdown>bbcode
 
the example i saw online looked horrific
this is what i found via google ufku.com/personal/bbc2html
 
Yeah, that's probably a joke.
 
do you know any elegant examples out there?
 
2:09 AM
Potato
!! Don't starve or sleep
 
@rlemon Don't starve
 
good answer
!! New game or continue
 
@rlemon New game
@rlemon Wait, I changed my mind! continue
 
oo a table turner! @Zirak nice touch
 
any one a wizard with setting up team speak on servers i have installed it but dont seem to be able to connect to it
 
2:12 AM
But I know more often the first choice is the right one.
 
@rlemon That may have been the super seekret option he mentioned earlier
 
Maybe..
!!secret
 
@rlemon That didn't make much sense. Use the help command to learn more.
 
what is the worst is not being able to 'read' replies from my mobile while my desktop is open
 
!!secret or
 
2:14 AM
@SomeKittens That didn't make much sense. Use the help command to learn more.
 
if I have the desktop open and i'm on my mobile and you ping me ten times I have to 'view' them all once I return to my desktop to get them to dismiss
@SomeKittens did you see lemonmeme.com/demos/motion_demo2.html
 
niiice.
You can refresh the page to get rid of pings you've viewed.
 
you've viewed - exactly.
my point is ... mobile interface while the the desktop is open doesn't register them as viewed
 
I'd leave the chat up, view a bunch of pings while in class and then refresh on my home pc when I got back
 
and if they have gone into 'transcript' it's a big pita
I think being logged in and chatting from the mobile site has something to do with it
 
2:28 AM
Go to use profile -> replies
That's where it is, is that taking forever for you too?
I haven't gotten an HTTP response in ~ 10 seconds now
 
@GarethParker Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
Anyone used Chutzpah or phantom for testing? Over.
 
2:44 AM
0
Q: Server error when accessing 'replies' in chat

Benjamin GruenbaumGo to chat user profile. Click "replies" Page doesn't load for quite a bit of time. Eventually I get this: Honestly, I like the funny cat picture better than I would have liked my replies but I thought I'd let you know about the bug :)

Can you reproduce, over?
@phenomnomnominal Phantom yes, but with mocha over.
Also interesting
1
Q: How to tell what stage a CSS3 animation is at using jQuery?

PhillEg, this is my code: @-webkit-keyframes anim { 0% { -webkit-transform: translate(-100px,0px) rotate(5deg); } 50% { -webkit-transform: translate(-140px,-5px) rotate(10deg); } 100% { -webkit-transform: translate(200px,-30px) rotate(40deg); } } ...

 
@BenjaminGruenbaum Cannot reproduce. Over.
 
@copy Hmmm, inside replies - click auto still works? Over.
This is consistent across sessions, I get that in IE too, over.
 
3:00 AM
@Zirak In that case, while cwd is /v8/src, I would run $ grep -rn "NumberToRadixString" .
they are usually in runtime.cc
 
uhh isn't it exactly the opposite
browsers report the stupid animation intermediate state and not the destination
:(
 
Oh yeah XD
Good, users need that, see?
 
they need an object model for their application
 
You can't implement WeakMap right?
 
3:06 AM
querying UI/Presentation values is usually sign that you don't have one
nope
 
What about using a c++ external module in node? That would probably work, even if it'd be painfully slow
 
all references are always strong
 
For the question, he is talking about animations though. He might want to poll presentation stuff for more presentation stuff.
 
wait, harmony doesn't have WeakReference?
it just has WeakMap?
 
3:08 AM
strawman .P
 
it's so backwards.. to give us WeakMap but not WeakReferences
 
@BenjaminGruenbaum Yup
 
3:37 AM
0
Q: Review this Jquery plugin in aim to contribute to the project

DanielI'm new here, so if I got off tracks, please bear with me. I need help to identify why this plugin doesn't work on IE. This is a fantastic slider plugin, but for somehow the slides don't appear on any IE browser. I'm a beginner with JS, so I quite need help here to understand the big picture. I r...

 
3:57 AM
@phenom hey sexy
 
@Gacnt, whatever, douche. Over.
 
Haha you're still doing that :P under
@phenomnomnominal Just for that, I'm using teeth next time
 
 
global warming alert
It's over
 
lol
 
4:05 AM
over
 
Well, I'm currently drowning as it is
user image
4
LOLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
 
4:45 AM
user image
8
 
9
Q: jQuery dialog box not capturing control - IE 9.0

Abijeet PatroI have a CSS sucker fish side-menu on my page. When the user clicks on an item in the page, I'm popping up a jquery-ui dialog box and inside a div on the page I am loading an HTML page through jQuery-AJAX. In Chrome the focus shifts away from the menu and onto the jquery-ui dialog box whenever I...

 
5:20 AM
@Gacnt lol
Hi, is there anyone here know how to select in tab in jQuery UI?
 
What do you mean with selecting a tab?
 
Select another tab
 
You're unbelievably helpful ...
 
api.jqueryui.com/tabs There used to be a "select" method (I think), but now it isn't there.
Error: no such method 'select' for tabs widget instance
 
@Derek朕會功夫 "There used to be a "select" method" means did you updated jQuery UI file?
 
5:36 AM
@Mr_Green I googled it and most SO answers say $("#tabs").tabs("select", "name") so I think there was a select method
 
check "active" in the same documentation @Derek朕會功夫 I think that is what you are looking for
 
What I really want to do is to change the tab, so for example if Tab#1 is showing now, I want to switch to Tab#2.
 
@Derek朕會功夫 codepen.io/anon/pen/fqlye
Like that?
 
yea!
Oh so this is how you do it.
Thanks.
 
6:00 AM
@abject_error Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
118,317 signatures on the Stop Watching Us letter to the US congress in only two days. That's pretty good.
 
6:20 AM
Easiest way to know when you had enough of a project, search the CSS file for stupid class names like blah, more-blah, yadda-yadda and the like.
Oh yea, anther random fun fact. The NSA used a licensed picture for their internal logo without attributing the author. So they basically stole that picture. :D
This made me lol.
 
@LeeGary Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
7:14 AM
how do you do between in js, (i.e. if x is between 26 and 50)
 
586
A: What is your best programmer joke?

spelchecQ: How many prolog programmers does it take to change a lightbulb? A: Yes.

 
@deep eh like in normal math. 26 < x < 50
 
no i feel stupid
 
7:30 AM
huh
Now that I think about it, that might not work.
!!> var x = 10; 26 < x < 50
 
@OctavianDamiean true
 
!!> var x = 10; 26 < x && x < 50
 
@OctavianDamiean false
 
@deep ^
That's exclusive of course, if you need it to be inclusive, then you have to use less or equal to (<=)
 
@Bella Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
7:35 AM
Morning all
 
morning
hi i need to do jquery validation for registration form can any one suggest me
 
who built this game, cubeslam.com/oghoud ? amazing
@Bella its easy whats the issue
 
i dont know how to do with out using plugin @conner
 
I suggest you start working on it.
 
how
 
7:41 AM
Try to break down the problem on paper.
Basically, write an algorithm for it.
Then implement it.
 
@Bella well you can start by collecting the form data on submit
 
You can start earlier than on submit.
 
hm k @Conner
 
@Connor
 
@Connor google made it. Over.
 
7:44 AM
kk sorry @Connor
 
@phenomnomnominal Roger That!
 
20k+
 
@PeeHaa埽 Can I delete you?
Nah, just kidding. :D
 
7:51 AM
I can offer you a reopen vote.
 
Please downvote the thing so we can delete it new style :D
 
There's a new style delete? Did I miss something?
 
@OctavianDamiean New questions can only be deleted when they are on -3
 
Ah, cool.
 
does setTimeout have a default time?
 
7:54 AM
!!mdn setTimeout
 
kk
 
@PeeHaa埽 so slow, so so slow.
 
It's waaaay tooo early for me
 
Moar coffee then. :)
 
8:04 AM
YES!
 
8:14 AM
@Esailija With all respect, but you do not seem to understand OOP design. — m3th0dman 1 hour ago
 
@MichaelField Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
I have nothing against Java as a language.. but my god are the "java programmers" retarded
their war cry is "best practice" or "oop design"
 
what would be a good example of using web workers, does this mean i can make ajax request's without the effecting the page?
 
8:27 AM
@Connor 4
@Connor xhr is not available in web workers
and xhr already doesn't effect the page...
if you respect the a of ajax, that is
 
@FlorianMargaine webworkers has XMLHttpRequest
 
@PeeHaa埽 HAHAHAHAHAHAHA
 
Ow I see. It is a "jquery developer"
 
@PeeHaa埽 there's such a thing?
 
8:37 AM
Sure there is. Those people who think jquery is a language inspired by javascript
 
lol
 
@Edward Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@Esailija lol :D
 
@OctavianDamiean can you suggest what syntax I should highlight the text with here: stackoverflow.com/questions/17091566/…
 
@Esailija Oh my god ... oh my oh my god. I've studied design patterns and how to apply them but whenever I hear or see someone overdo it with design patterns just to sound or look all fancy I'd like to vomit.
@mikedidthis Phew, that's a tough one. I'd actually try them one by one as this is some sort of custom templating markup. Note: You don't have to save the edit in order to see the effect of a markdown syntax highlight change, just change the type and wait for a couple of seconds for it to take effect.
 
8:43 AM
@OctavianDamiean ahh ok. Its smarty or a cousin of it.
 
58
Q: Changes to syntax highlighting

Jeff Atwood locked for the history - please post bugs and feature-requests separately. -Shog9 We're changing the way syntax highlighting is done on the Stack Exchange engine. As you probably know, we use Google Code Prettify for automatic syntax highlighting. Since the beginning, we've had kind o...

Here are the supported prettify styles.
 
@PeeHaa埽 this kids a nob
 
@OctavianDamiean thank you sir.
 
@Connor Yes. Let's just delete the entire question
 
Bob: "So, you want a car"; Sally: "Yea, please."; Bob: "Here you go."; Sally: "Wait, that car has no engine, seats, steering wheel or anything else a car is supposed to have"; Bob: "It looks like a car, I don't know what you want. You should have said that you want a car that can drive."Octavian Damiean 32 secs ago
 
8:51 AM
lulz
 
@OctavianDamiean the design patterns are needed for languages like Java in some situations, they always add complexity but you get hopefully needed flexibility and extensibility
 
@Esailija I didn't say they are bad, I just said that I don't like people that tend to overdo it with design patterns.
 
well they aren't good either
D
bunch of hacks
 
Yea, that's true, a language should require you to come up with design patterns in the first place.
Gosh, am I happy not to have to deal with Java anymore.
 
Java programmers*
;d
spend some time in the Java tag... bunch of douche bags
 
8:58 AM
@PeeHaa埽 cool
 
@PeeHaa埽 -3, do it.
 
@OctavianDamiean Lol at you
 
jsfiddle.net/fyKzV <- i know this is a noob bug... but why the heck is my canvas not cleared ?
 
back
 
okay nvm solved it.. forgot about begin and ending path
 
9:02 AM
@O0oO0oOO0ooO what's the IE logo all about?
if anyone can help me out?, im trying to get the Workspace tab up in devTools, it's not there and forgot how i got it there before
 
In Chrome?
Wait, Workspace?
 
@OctavianDamiean yeah in the settings panel
i had it before it let me add a local folder so i can make changes, this is the only way i can work with sass i can't get the Support for SASS working, maybe becauseI 'im not local
 
Uh, interesting. I've never seen that one.
 
0
Q: Chrome developer tools workspace mappings

MikeCan anyone tell me how the Chrome developer tools workspace mappings work. I believe it is only available in Canary at the moment. I thought it is supposed to allow me to make changes to the CSS rules in the elements view and have them automatically saved to the local files as demonstrated by Pa...

 
WHOA!
TIL
Ah, Canary.
 
9:10 AM
i have never worked in canary tho
:s
 
@PeeHaa埽 i would give you 2 or 3, but i can't
 
Ron
9:28 AM
Hi, how can I set indicator of input text to the beginning?
 
@Ron the caret?
 
Ron
yes
 
you using jQuery?
 
Ron
Yea, found the jQuery Caret plugin, thank you
 
anyone know how to add a south resize cursor the a chrome resize textarea?
 
9:41 AM
little bash help
I want to read a file like this:

1 2
3 4
5 6
and execute the command some 1 2, then some 3 4, etc
ideas?
cat file | some doesn't work
googling xargs.
xargs is exactly what I want.
 
what up
@Esailija you around?
 
@redline yes hi
 
if your busy just ignore me, but you said webWorkers can do xhr, im looking at this page and it says

Features Available to Workers

Due to their multi-threaded behavior, web workers only has access to a subset of JavaScript's features:

The navigator object
The location object (read-only)
XMLHttpRequest
 
@Connor my bad then :)
 
9:48 AM
@redline cool :)
I'll read it
 
@Esailija while you probably hate the content of the article, you can still choose a wise response such as "nice presentation graphics" and make me happy :P
 
:)
 
@redline btw did you get so far the instantiation speed from 1 instance per ms to smething faster?
 
@Esailija the only thing that provided any kind of a performance increase from my tests as of now was just __proto__
but i haven't tested that much, just chatted with you most of the time
 
do you use ~ character in keys?
 
9:50 AM
i need to sit down and actually do detailed testing, but i wasted all my day writing that article instead
 
yes i understand the hashmapping
i know it's a performance hit
but i already need properties no matter what with getter/setters
so it doesn't matter
 
oh
 
but based on our discussions, i have identified even more increases i can achieve
but right now i'm going to focus on a few other key areas before i delve back into performance...i already spent the better part of a week from 2.0 -> 2.1 on performance, it's time for a performance break...i'm so exhausted >_<
 
^^
 
9:52 AM
but if you're ever bored and want to ticker, be my guest...nobody else maintains any of this but me as of now
 
were there other developers?
before
 
i have other developers that work with me on client projects, but not this
and no, not before either...it's always been just me
 
must be lot of work
 
YES
did i make sure to type that in caps?
YES!!!
there's some exclamations too
 
:D
 
10:04 AM
roflol
quote from a guy right beside me
"The best way to test it out is to deploy in prod"
 
rofl
 
I wanna hit him
 
lol
i always found user acceptance testing to be the best time to find bugs :P
 
10:19 AM
@redline "The blue screen of death? Oh that's a feature, sir. What? You don't like that? We'll remove it immediately."
 
@FlorianMargaine If I suppose he was more ironical about it, he is not entirely wrong on that statement :p
we have a fairly large QA department inhouse here, of course they catch a lot of things and bugs, but the real-world scenario's are still a different thing right
 
@Neil haha
 
when working with web workers is the js file location relative to the current js file?
 
ITS - reasonable shortcut for "I think so" ? :p
 
Yo :P
i am adding one person to this room :P
meh 20 rep... anybody feeling generous :?
 
10:35 AM
0
Q: Can't download files from a site

vinitI have found many sites block the download of files. I would like to know whether there is a way to download the content of these websites regardless of the block (which might be Javascript). Often I can't copy the text from my browser. I don't want to use the Print Screen option or Snipping Too...

0
Q: Optimize DOM game performance

pablopablo89I am working on a game developed on DOM using Crafty JS framework, and Greensock GSAP JS (http://www.greensock.com/gsap-js/) for animations. It is my first time working with these technologies. I am have a problem with FPS going down to 15 and less when animations are performed on bigger DOM ele...

 
10:48 AM
0
A: Style button based on api call

SujaYou dont necessarily need a jQuery based solution its easy but having a pure CSS / JS solution is also an option. If you are just using jQuery for changing a color or adding a class you are most likely doing it wrong. For example you are using a progress bar . <div class="progress_bar"> <...

vote her up!
 
@Darkyen who is it?
 
well MY SISTER :P
 
@Darkyen :)
 
:-) i think she can use a lot of aid from this room :D
 
i have a question about web workers, new Worker('something.js'); what is something.js relative of? i have tried, worker.js, javascripts/worker.js & domain.com/javascripts/worker.js
none of which work
 
10:52 AM
@Connor, it can be either
 
@phenomnomnominal ok....
when i do domain.com i get a dom exeption
 
grudge arrived xD
 
@jAndy o_O
i just added her rep upto 31 :-/
 
it's relative to the JS file you're making the worker in, or you can do it from a 'http://' path, over
 
the chat is still counting her with 1 :-|
 
10:54 AM
@phenomnomnominal ok thanks :)
 
@phenomnomnominal \o
 

« first day (972 days earlier)      last day (3968 days later) »