« first day (893 days earlier)      last day (4062 days later) » 

9:00 PM
LMFAO
@BenjaminGruenbaum you are a genius! — ColinE 17 secs ago
 
HAHA
Dude, you should show him how to write a function
 
@dystroy Why the for loop? Have them share a class, and use $(this)
 
@BenjaminGruenbaum I don't really have the time to read the question... Must go...
 
why do people down vote you on a perfectly valid question you need help with ?
 
Define perfectly valid?
 
9:02 PM
-1
Q: Secret word program in python

Steve JobsI'm trying to add a feature to the following program that takes in a secret word and letters guessed as input where letter guessed is an empty list. example: isWordGuessed('hello',[ ]). How do I make the function stop when all the letters have been guessed correctly and if after 8 guessed the per...

 
What ?
 
SO is not a code-writing service.
 
@SteveJobs Get my girlfriend an ipad
 
9:05 PM
in C#, 4 mins ago, by Kendall Frey
Programmers are problem solvers who happen to know how to write code.
If you make no attempt to solve the problem, you have, well, made no attempt.
 
I created a new variable called secretWordLen which is the length of the secretWord, and everytime the user guesses a letter that is in the word, secretWordLen goes down by 1
then if secretWordLen == 0, return True
that's what i've tried
i just didn't ask for it to be written
 
@SteveJobs, what bit isn't working then?
 
@copy They'll offer it in about two months.
 
Do websockets replace the need for ajax requests where you just want to send something to the database on a server? or do web sockets cater better for something more specific ?
 
Welll
 
9:08 PM
@Dave WebSockets are just TCP/UDP sockets implemented in-browser.
 
sass sucks :3
for optimizations :D
 
@phenomnomnominal i don't know, I start the function in Idle and after i type in the first letter, it just freezes there
 
@SteveJobs omg you are alive!!!
 
@Darkyen You suck.
 
zomg zomg zomg zomg zomg zomg
 
9:08 PM
It gets rid of the overhead of an XmlHTTPRequest and response.
 
@OctavianDamiean you realize while nesting wht it does right ?
all decendent selector ?
 
@ShotgunNinja well i read sockets are ideal for say a live chat room... but are they worth it for say a login page where you just submit a form ?
 
fyi its like QSA , well it is QSA
on the parent
 
@Darkyen wat?
 
@OctavianDamiean how will u have 3 levels of nesting in SaSS ?
 
9:10 PM
@Dave No.
 
@Dave They are not ideal for said login page. In fact, you should use a secure HTTP request (a la HTTPS or something, or with encrypted data) for login.
 
/* I will use scss */
table.hl {
  margin: 2em 0;
  td.ln {
    text-align: right;
    li.omg{
      text-align:left;
    }
  }
}
 
ah i see
 
table.h1 td.ln li.omg{
   text-align:left;
}
right ?
 
ill need to read up on using encryption data for login
 
9:11 PM
@OctavianDamiean as much as its convienient to write but... :'( its very poor for the browser
it has to go through all elements
 
WebSockets provide speed at the cost of reliability and potential security. HTTP/HTTPS are slower, but provide end-to-end reliability and (in the case of HTTPS) automatic encryption.
 
@ShotgunNinja websockets are insecure ?
are you referring to p2p by any chance ?
 
@Darkyen Well, they don't provide automatic encryption like HTTPS.
 
well the whole point was low-level communication, wasnt it ?
 
Also, HTTP headers provide information about who sent them, and from what.
No, the point was "What is better, WebSockets or HTTP?"
The answer is that it depends on your application requirements.
 
9:14 PM
yeap
 
well - when is it best to use websockets verses the usual ajax requests
was the jist of it
 
@Dave when u need realtime to crazy level go with websockets
else stick to http
 
I've used WebSockets for a Web-based robot controller
 
hmm so not even a chat room would need websockets?
 
@Dave WebSockets just reduces the response time by (loosely) a factor of 10.
 
9:16 PM
ah i thought it would allow greater capacity of users without server struggling
in which case response time not important on a chat room
 
@Dave Yes, but think to yourself why the servers would be struggling in the first place.
 
@Dave, websockets are basically perfect for a chat
 
well one my server is not powerful and two large users = large chat requests
 
@ShotgunNinja i have abused them to provide microphone input to server
 
@phenomnomnominal oh ?
 
9:17 PM
via a flash solution
 
@Darkyen Very nice.
 
@ShotgunNinja lol
 
I've used websockets to stream low latency video. Works really well.
 
does SO use sockets for this chat?
 
current webRTC implementation / webAudio implementation makes u send uncompressed audio
flash could be good sometimes
 
9:18 PM
@Darkyen would it work on tablets/phones with flash ?
 
@Dave I believe SO chat does use WebSockets when available, with a polling AJAX backup when not supported.
 
i see
 
I used HTML5 canvas and did the processing myself instead of using flash.
 
@Dave The problem with WebSockets is that they're not supported in all browsers.
Nor are they uniformly implemented.
 
9:19 PM
yeh - but i imagine they would be supported by end of this year surely
 
good night
@Dave i use native microphone api's on them
 
If I do onclick="window.open()" event on a button, how can I close that child window when the form is submitted?
 
so i dont have to worried about that "SHIT"
 
They're implemented in all current versions of all major browsers. The problem isn't the implementation, it's people not updating cough IE cough
 
guys, can I ask a question?
 
9:20 PM
@phenomnomnominal That's actually better than I was expecting
 
@David19801 if you pay me with your soul.
 
Does IE9 support websockets?
 
@JoeyMorani No, and it never will.
 
You need a fallback to long polling
But that's what abstraction libraries are for
 
9:21 PM
WebSocket is a web technology providing full-duplex communications channels over a single TCP connection. The WebSocket protocol was standardized by the IETF as RFC 6455 in 2011, and the WebSocket API for in Web IDL is being standardized by the W3C. WebSocket is designed to be implemented in web browsers and web servers, but it can be used by any client or server application. The WebSocket Protocol is an independent TCP-based protocol. Its only relationship to HTTP is that its handshake is interpreted by HTTP servers as an Upgrade request. The WebSocket protocol makes possible more interac...
 
ok! is it possible to make a bookmark in javascript that will replace google with tomato?
 
wtf. People should really stop using IE.
 
like google.com becomes tomato.com when I click the bookmark?
 
@phenomnomnominal Nah. you need a message that says "Get with the damn times and download a real browser, shmuck!"
 
Say WHAT ???
faith in humanity ... lost
 
9:22 PM
Masturbation cream... nice.
 
lol one left..
/me gets his coat
 
lol
 
anyone?
 
posted on March 27, 2013 by Victor Rodriguez

Apollo Rocket Engines Recovered from Atlantic Ocean Floor Why You’ll Never See a Red Comet Like in ‘Game of Thrones’ This is What Can Happen When a CME Hits Earth Friday Night Lights: Fireball Lights Up the U.S. East Coast The Story of Earth (in 2 Minutes and 20 Seconds)

 
@David19801 im not sure its wise to make a JS function that replaces people's bookmarks from google to tomato
 
9:22 PM
am I banned again?
 
that would be so damn annoying.
 
not their bookmarks...
 
@Darkyen What are you even talking about?
 
what do you mean then
 
basically, I am making a website for myself that if I go to google I click it and it will take me to my website with the same search tag
 
9:23 PM
That's stupid.
 
it's cool!
 
Why would you want that?
 
greasemonkey plugin i guess could do it ?
 
just for fun...
i think it would be cool
 
@OctavianDamiean i dislike sass/scss 's compiled code
i re-wrote the whole website into vanilla css
 
9:24 PM
or you trying to infect people to force them to your website...
 
and it works faster , much faster
 
but would it be possible to make a bookmarkley that can do it?
how can i infect with just a bookmarklet? that doesn't make sense
 
but then the website is way too much bloated with css animations and stuff
 
@Darkyen Proof it by showing actual data because I just don't see why.
 
i hate sites with tons of div animation its like "yes well done now give me my content"
 
9:26 PM
@OctavianDamiean the all child selector which it nests into is very slower then ">"
 
anyone?
really, its not for a bad reason...
 
@David19801 i like turtles
 
@David19801 i don't understand what you try to achieve
 
ok, so far I have javascript:
 
just replace " " with ">" (if applicable) in your own css and you will see your site optimized yourself
 
9:26 PM
but i want to get the url, then replace aaa with bbb
 
othercase
 
@Darkyen !!>while(!messy)stroke();
 
@Darkyen Wait a minute, I just realized that I'm arguing with you about SCSS while I mean less. -___-
 
@David19801 ??
 
@Darkyen Yea that's how my CSS looks like.
 
9:28 PM
xD
 
@David19801 have you written any thing yet as an attempt
 
@phenomnomnominal well, we talked about it today...
 
ok, say you are on google.com/s=green then you click the bookmarklet and it will make it example.com/s=green
 
less is beautiful
 
9:28 PM
this could be a big step
 
so I need to get the url and replace google with example...
 
@OctavianDamiean then you are awesome :D
 
.selected < .container{}
 
yes, so far I have javascript:
 
you care and love the user browser
@Shmiddty the other one
 
9:29 PM
no
 
can you show it if its not too long
 
@David19801 you need to replace string pattern within the url, am i correct?
 
yes!
 
nyways end of this mellow day for me ,.. see yall and thanks !
 
$.container > .selected{} is the proposal, right?
 
9:30 PM
@David19801 check for javascript regular expression
 
var a='google';var b='example';get url, replace a with b in url
 
@GNi33, yeah i saw, great aye
 
@Nexxpresso Dude a request,..... use amazon
 
yes, it is
 
or ask lemon to re-ship it to u
.. now gbye
 
9:31 PM
https://developer.mozilla.org/en/docs/JavaScript/Reference/Global_Objects/String/replace

Check this resource, it will help you
 
any idea how to do the last 2 parts?
 
the manual explains
 
0
Q: License for free but restricted software sharing

ChristopheI have built a JavaScript library that I'd like to release for free within my user community. However I want to keep it under control, and not allow my users to pass it on to others without my permission. As far as I can tell, a MIT or GPL license won't work for that scenario. What licensing opt...

 
thanks I will try it
have a nice day everyone!
 
!!/refresh
 
9:32 PM
@Zirak Command revenge does not exist.
2
 
I'm not sure I like $ in css. I might prefer something like:

(.container) > .selected{}
 
...should I be concerned that I accidentally wrote "refresh" as "revenge"?
 
@Zirak Yes.
 
!!/revenge
 
@Shmiddty Command revenge does not exist.
 
9:33 PM
@Zirak depends...
 
!!What are we going to do tonight, Brain?
 
@Shmiddty Y U NO MAEK SENSE!? Could not understand What are we going to do tonight, Brain?
 
!!Google is evil
 
@Happyninja Y U NO MAEK SENSE!? Could not understand Google is evil (perhaps you meant to execute a command? If so, prepend the command name with a /)
 
!!/learn What are we going to do tonight, Brain?
 
9:34 PM
@Shmiddty Command what learned
 
!!what
 
@Shmiddty Y U NO MAEK SENSE!? Could not understand what (perhaps you meant to execute a command? If so, prepend the command name with a /)
 
!!/learn google is evil
 
!!/what
 
@Happyninja Command google already exists
@Shmiddty are
 
9:34 PM
thats annoying. if you type do a uturn in google it does a barrel roll >.>
 
!!/learn 'Google is evil'
 
!!/forget what
 
Could not process input. Error: Cannot call method 'replace' of undefined
@Shmiddty Command what forgotten.
 
let chatbot sleep its his vacation
 
barbie
 
9:36 PM
!!/ban Happyninja
 
@phenomnomnominal User Happyninja added to mindjail.
 
guys, how to redirect using javascript?
its the last part im stuck on
so i have a url in var a='http://www.google.com'; how to redirect to a?
 
window.location.replace('url')
 
location.href = ...
 
...whichi is it?!
 
9:37 PM
Either. I think replace is better
 
You can do it in several ways.
!!/google how to redirect using javascript
 
thats annoying comparing php time to js time for seconds past epoch :(
 
Woo!!! done thanks, all code is working :):):) time for skyrim
l8r
 
I can't believe they are not broadcasting Community here in Austria. It has got to be the best series ever.
 
9:40 PM
@OctavianDamiean I have LOVED hearing about you watching it haha
 
Another option would be to create a meta element
 
Because yes, it is the best.
And I try to make everyone ever watch it
Have you caught up?
 
You know what I'll do once I'm through all seasons? I'll watch it again, then again and again until I know every characters lines just like I did with the new Bond movies.
I'm not mental, SHADDAP!
 
@OctavianDamiean, you're not. You're doing the exact right thing.
About once a month I watch the whole series again,
 
Hey guys, is this a proper technique to load a script locally if cdn fails?
 
9:43 PM
@ŠimeVidas at least 51 people think so
 
document.write === bad
 
well, it's pretty widely used
 
It's still evil. Or misunderstood, at least.
 
@JanDvorak It's an old question. Things move fast in web dev
 
i mean the technique, not document.write in that case
 
9:44 PM
document.write seems OK in this context
 
but yeah, in that context i see no problem using document.write
 
Seems a reasonable technique, but wouldn't it be better to do var src = document.createElement('script'); then add the attribute?
 
Cool :-)
 
The technique seems OK for me
 
@phenomnomnominal That script would not block, which would not preserve script order.
 
9:46 PM
hahahah
> Don't repeat that you goon!
 
Oh yeah of course duh
 
at least 52 people think it's a good technique now.
 
but doesn't document.write replace the current page?
 
not if called before the page load
 
9:47 PM
^this
 
~o?
 
document.write is crazy :-)
 
have a whiff
 
Huh fair enough. That's what I get for avoiding it.
 
hello good peopl.js
e*
 
9:48 PM
Awesome canvas demos here mrdoob.com some are really good
 
peephole.js?
 
@phenomnomnominal yeah, there are little use-cases for those techniques that are avoided everywhere else
 
whatever tickles ur fanny
 
@Dave, yep. MrDoob wrote three.js
 
they are avoided out of perfectly good reasons, as well as they make total sense in a niche-case
 
9:49 PM
I need some inspiration
 
like eval has it's use-cases too
 
hes very clever
 
or motivation
im serious
woah
im nlot the guy from harry potter
that turns into a dog
 
@phenomnomnominal why? '!!\ban'
 
headphones up, volume up, smash in some Parkway Drive -> MOTIVATION!
;)
 
9:51 PM
do u have those "coders block" moments?
just fkn stumped
 
@Happyninja, because I can
!!/unban Happyninja
 
@phenomnomnominal User Happyninja freed from mindjail!
 
Oh god Annie is overdoing the Texan, jeez!
 
@phenomnomnominal did i done anything wrong?
 
@OctavianDamiean Pierce is fucking great in that episode
 
9:52 PM
@phenomnomnominal Yea, he's still trying to get in. :D
hahaha Abed is fucking genius.
 
> "Do you want to have gay sex with me?"
2
> "Oh, no thank you"
 
it's this bad...
 
ow my eyes
 
@phenomnomnominal haha exactly. :D
 
That's quite a bit of orange
 
9:58 PM
woah
it was so loud i got literally dc
 

« first day (893 days earlier)      last day (4062 days later) »