« first day (878 days earlier)      last day (4073 days later) » 

9:00 PM
!!/s/code/porn/
 
code.. :p
 
@BenjaminGruenbaum Y U NO MAEK SENSE!? Could not understand s/code/porn
@BenjaminGruenbaum Invalid command /s/code/porn
 
@BenjaminGruenbaum Invalid command /s/code/porn/
 
I saw that
 
9:01 PM
What's so difficult about the last / ...
!! s/of code/of porn/
 
@Zirak He's writing a lot of porn (source)
 
That's what I get for not using sed for a while
 
@Ben I prefer CL design about identifiers visibility.
 
Hey Guys I am very new in javascript so i need some help in it you can just explain me is it possible or not my question I have one website which has one sign up form and people need has to go to that website for sign up i want some thing which people dont need to go to that site they just click on sign up button on my website and in popup that website will open and in that popup i just want to show that form just that sign up form not whole content so is it possible with java script ?
 
@FlorianMargaine ? (I don't know CL)
 
9:02 PM
if yes then what i kind of scripting i need?
 
Nobody knows CL, except for Florian
 
@MalikUsman Yes, it's possible using JavaScript
Probably you'd need node.js (serverside javascript) on your server to manage sign-ups, a database (something like PostgreSQL or MongoDB) to keep track of users and client-side javascript to show the users messages like pop-ups, and to handle user interaction
 
Every symbol is private by default. You can export it (make it visible from outside) and call it with package:name. However, all symbols are still accessible using package::name. So you define an api but if the dev of your api wants to shoot himself he can
User of you api*
Symbol = identifier, basically
 
JavaScript is just missing interfaces
 
@BenjaminGruenbaum Aww i see
 
9:05 PM
@FlorianMargaine I had LISP in class today
Something called Agent0
 
Common lisp or scheme?
 
ok let me search on google more about anyway thanks for giving me a right way
Thanks
 
@FlorianMargaine Agent0
 
Oh. I don't know it
 
@MalikUsman you're welcome
@FlorianMargaine It's a very specific dialect designed for multi-agent systems
 
9:06 PM
K
Ill google
 
1
Q: Backbone is not accessible through the console in jsfiddle

Backbone FuryI'm working with the event system and I wanted to run some quick commands in the console. I noticed the global variable Backbone is available in the JavaScript window of www.jsfiddle.net but not from the console. Here is the fiddle. console.log('hello'); console.log(Backbone);

LOL
 
Ahoy folks; anyone know off hand if Selectivzr also provides support for improperly implemented CSS 2.X selectors in IE6/7?
Or am I better to use something like IE-7.js?
 
@Bracketworks I'd probably just use Sizzle
(or jQuery, but don't tell anyone here shhh)
Or heaven forbid, don't use CSS 2.X selectors
 
lol; well, Selectivizr leverages frameworks like jQuery/mootools to perform it's re-application of styles.
 
Rlemon had linked to something a few weeks ago called code battles or something where you program a bot in js and it battles with other's people's bots online?
 
ah thx
 
@BenjaminGruenbaum I haven't used Sizzle independently of a framework; I could use it in lieu of something like Selectivizr to polyfill missing selectors? I'm assuming I'd have to work with it's API and that it's not a drop-in like the others?
 
@Bracketworks I'd just avoid complicated selectors and stick to the basic for IE6/7 , make JS do the rest of the work for me, use LESS or SASS if that's not enough
 
The problem with object-oriented languages is they’ve got all this implicit environment that they carry around with them. You wanted a banana but what you got was a gorilla holding the banana and the entire jungle. — Joe Armstrong
 
yes, done for today... just 13 hours...
project getting blocked by external US dependencies every day... not so good
 
9:26 PM
@BenjaminGruenbaum Well, I'm not trying to use nth-root-of-parents-best-friends-type, I'm just trying to use multiple classes .foo.bar { color: awesome; }
IE6 fails. I think 7 dun goof'd too.
 
IE6 can't do multiple classes o_O?
 
@BenjaminGruenbaum Nope. div.foo.bar gets read as div.bar
 
Has anyone ever experienced an error in IE8+ that no longer occurs when you open F12 developer tools?
 
heh
 
9:29 PM
@Shmiddty Yeah, probably when writing console.log or something like that
 
@Shmiddty I've experienced a problem in IE8+ that the developer tools no longer occur when I press F12.
 
@BenjaminGruenbaum That's it! thank you!
 
:D
 
@Shmiddty you're welcome
 
i didn't write console.log because i thought you'd get pissed off with me :D
 
9:32 PM
needs more coffee
 
^ If I did something wrong let me know
 
Well, I'm heading home; if anyone has recommendations outside of Selectivizr and IE-7.js for drop-in CSS2/3 selector polyfills for IE 6-8, feel free to @ me.
 
It looks good me. If I was actually doing this I would probably write it more concisely but the problem when answering questions to people unfamiliar with the syntax, is it can be a bit obtuse otherwise. e.g CQ.Create(input).Find("a").Select(x=>x.Cq().Attr("href")); => CQ.Create(input)["a"].Select(x=>x["href"]);
 
That is since the indexer is a synoym for Select, as well as a synonym for GetAttribute when it's all in a small space it probably looks like calculus to someone whose never used it before
I sometimes go out of my way to write it out as longhand as possible to not scare people ;)
 
9:39 PM
I'm wondering if I should look questions answered with HAP and suggest CsQuery as an alternative approach, @ThiefMaster do you think it's OK in terms of SO etiquette?
 
I want those C# lambdas in JS :(
 
@BenjaminGruenbaum: is that something created by you?
 
I did that for some older high-ranked questions.. resulted in some of them being closed :/
 
@ThiefMaster No, it's actually something created by @JamieTreworgy
 
I got in an argument with a mod about one of them and eventually got it reopened
 
9:40 PM
and no, i don't think that's OK
 
@copy the harmony spec actually says "C# like lambdas"
 
if I ask about X, i don't want an answer telling me to use Y. but if X is horribly deprecated or crap or unfit it might not be a bad answer altogether as long as it solves the question
 
I think it's tricky b/c there are some old high-google-ranked questions like "is there a CSS library in C#?" Well there wasn't at the time, so it seems pretty reasonable to add an answer now..
 
@BenjaminGruenbaum That's great. I've also seen unpacking arrays in a firefox extension, which looks great too (not sure if that's the same standard though)
 
@ThiefMaster People asking about parsing HTML using Regular expressions, people suggest using HtmlAgilityPack instead (which is true), I'd like to suggest CsQuery as a new alternative. I think it offers substantial advantage for that use case
 
9:42 PM
I think for new questions it's totally reasonable. Oded has also been answering those kinds of questions with CsQuery a lot which is nice.
 
@JamieTreworgy that's great :)
I'm not telling people that they're doing something wrong, I'm offering other options for tackling the problem so users who'll run into it in the future will be better aware of their alternatives
 
Why did someone post that fightcodegame link? Now I am about to waste hours
 
Do you think a comment on the HtmlAgilityPack answer is better etiquette?
It's more about promoting CsQuery in favor of HAP because a lot of people are not aware of their options, I don't want it to look like it's about repping
 
What's funny is that recently Simon M. clearly has an alert for HAP questions, he answers almost all of them. But I think this is a fairly recent thing. since I've been stalking HAP tag for a year. He doesn't actively work on it any more as far as I know.
 
That's probably not a good SO question anymore
 
9:47 PM
never saw that one before!
Nice summary
 
@twiz in your chat profile, in the 'rooms currently in' look in the bottom right corner
 
I like questions like that on SO. I think it's a shame that the rules prohibit them.
 
They solicit debate
 
programmers.se
 
^ awesome site
 
9:49 PM
^ where Qs like that should live
 
There should be a venue for them. It's really hard, in practice, to just figure out what's a good library for doing something.
Unless it's something really common that has a defacto standard
 
0
Q: Alternative to theme forest

JonnyI'm looking to build a new corporate website using a ready made HTML theme so that I can focus on the business logic rather than on the presentation. Any recommendations for websites similar/alternative to Themeforest ? Thanks in advance ?

 
@BrandonGelfand do you know how to use a web server? go and click the link called Website i obviously didn't make wamp.
 
Just donated to Wikimedia. I feel better now.
 
Grr why can't people make up their minds... POST requests with xml, json and urlencoded string data all from the same site.
 
10:02 PM
What is the browser asking for?
In C# with WebAPI it serializes based on what the browser asked for
 
!!> let [x, y] = [3,4]; [x, y]
 
@copy "SyntaxError: Unexpected strict mode reserved word"
 
@BenjaminGruenbaum, yeah but you'd think there should be some consistency
 
Fak u chrome
 
@copy, strict mode worker is strict.
 
10:04 PM
@copy :)
@phenomnomnominal That code works in FF in strict mode afaik
Does python have something like JS bind?
 
Probably because FF has actually implemented let.
 
Yeah
 
> Two Mozilla-specific caveats: First, if your code is JavaScript 1.7 or greater (you're chrome code, or you've used the right <script type="">) and is strict mode code, let and yield have the functionality they've had since those keywords were first introduced. But strict mode code on the web, loaded with <script src=""> or <script>...</script>, won't be able to use let/yield as identifiers.
 
@copy Was that yeah to my question?
 
Yeah
 
10:06 PM
What's it called, I can't find it
 
I don't know :P
 
Oh wait, I see that python has higher order functions and functools has a partial method
That's probably just functools.partial(obj.method,obj)
 
Either functools or just use lambda for that
 
I find it strange that I can't find a simple answer for that online
 
Make a question and answer it yourself?
 
10:11 PM
Probably
 
huh?
18
Q: python argument binders

Dustin Getzhow can I bind arguments to a python method to store a nullary functor for later invocation? similar to C++'s boost::bind

 
Just was I was looking for, thanks :)
 
@BenjaminGruenbaum, it would seem your google-fu is weak today
 
Yeah :/
Either that or copy used his elite vim skills to travel back in time and create such a question
^ About as likely
 
I'd actually say more likely
 
10:16 PM
when using the AJAX and jquery, how do I name the data I'm sending? Like this?

$.ajax({
		url: "handler.php",
		type: "post",
		data: {dataNames: JSON.stringify(actualData)},
		success: function(data){
			alert(data);
		}
    });
 
@Howdy_McGee first of all, there's no need to use JSON.stringify , jQuery already does that
 
Yes, that's known as JSON
 
Second of all, your data is already named, that's just how JSON works
 
drilled into my own hand :(
ouch
 
Now why would you do that?
 
10:18 PM
seemed like a good idea at the time
drilling on a round plastic tube, had to hold the tube so it wouldn't spin. Bit slipped off and hit my hand :/
not deep, still hurt
 
like it's named data?
 
data: actualData,
 
What I'm trying to do is rename data to something more meaningful, so is data: mandatory or can I just rename it?
 
I wish there was a comprehensive guide on the jQuery API.... oh wait....
 
right I read those and it makes 0 sense because there's no examples to go along with it
 
10:23 PM
Did you scroll to the "examples" section
 
Dude, there's plenty of examples, showing that you didn't read it
 
data: 'blahblah' actually has meaning to jQuery
Anything else has less meaning
So trying to make it more meaningful isn't possible
 
For instance: data: 'love'
 
$('#formname').serialize(); is my favorite method
var data = in front of it, but what do I know, nothhinnnggggg
 
whereas, emotionsIDontFeel: 'love'
More meaning to people, less to jQuery
 
10:27 PM
I feel good, converted my messy as project from PHP to RoR successfuly
 
Good, now move it to node!
2
 
Are you TRYING to kill me?
 
and then to Go!
 
And then to groovy and ill wear my hipster scarf and what not
and my big framed glasses
 
can't forget the typewriter in starbucks
 
10:29 PM
LOL
 
Ruby is for hipsters. Node is for people who want to get things done right.
 
Actual lol's
 
then to assemby
 
then to hex, then binary
 
LOL
 
10:29 PM
PUNCHCARDS!!!!
 
but step through the hexes
 
Then to bash?
 
Butterflies.
 
^ Yep, butterflies.
 
then to brainfuck
 
10:30 PM
Going from PHP to RoR is a day and night difference, so nice not having to type in SQL every time and just let RoR handle it all, so much easier to micro manage your project too
lol brainfuck
 
Brainfuck is for noobs
 
once you're done brainfuck, intel hex. it's even worse
 
I read about that once and had a good laugh
 
try malebolge
 
10:30 PM
Brainfuck is an esoteric programming language noted for its extreme minimalism. It is a Turing tarpit, designed to challenge and amuse programmers, and was not made to be suitable for practical use. It was created in 1993 by Urban Müller. The name of the language is generally not capitalized except at the start of a sentence, although it is a proper noun. Language design Urban Müller created brainfuck in 1993 with the intention of designing a language which could be implemented with the smallest possible compiler, inspired by the 1024-byte compiler for the FALSE programming language....
 
Intel HEX is a file format for conveying binary information for applications like programming microcontrollers, EPROMs, and other kinds of chips. In a typical application, a compiler or assembler converts a program's source code (such as in C or assembly language) to machine code and outputs it into a HEX file. That file is then imported by a programmer to "burn" the machine code into a ROM, or is transferred to the target system for loading and execution. Format The format is a text file, with each line containing hexadecimal values encoding a sequence of data and their starting offset o...
^ did this in HS for CE
 
CE?
 
CompEng
 
Cheese is a generic term for a diverse group of milk-based food products. Cheese is produced in wide-ranging flavors, textures, and forms. Cheese consists of proteins and fat from milk, usually the milk of cows, buffalo, goats, or sheep. It is produced by coagulation of the milk protein casein. Typically, the milk is acidified and addition of the enzyme rennet causes coagulation. The solids are separated and pressed into final form. Some cheeses have molds on the rind or throughout. Most cheeses melt at cooking temperature. Hundreds of types of cheese from various countries are produ...
 
lol
 
10:31 PM
I like cheese. but I don't like Pineapples. They're fucking ananas! stupid english!
 
It didn't show up :(
 
Chess is a two-player strategy board game played on a chessboard, a checkered gameboard with 64 squares arranged in an eight-by-eight grid. It is one of the world's most popular games, played by millions of people worldwide at home, in clubs, online, by correspondence, and in tournaments. Each player begins the game with 16 pieces: one king, one queen, two rooks, two knights, two bishops, and eight pawns. Each of the six piece types moves differently. Pieces are used to attack and capture the opponent's pieces, with the objective to 'checkmate' the opponent's king by placing it und...
 
This shit is Ananas
 
no this shit got ignored earlier today. ;)
 
1 message moved to Trash can
Putting dubstep where it belongs.
4
 
10:33 PM
lol
i dont mind dubstep. but thats funny ^
 
LOL
-> 1 message moved to Trash can
I can only dream
 
1 user moved to Trash can
2
 
:O
Do I still exist?
Is this purgatory?
 
Hahahaha shit, i didn't know you could do that?
 
@XCritics "cogito ergo sum" -- cogito tu?
 
anyone can ;) but only if you're in the cleverclub
 
Are you putting a spell on me
 
latin?
 
@JanDvorak
 
10:36 PM
russian
 
@XCritics "I think therefore I am" -- do you think?
 
@phenomnomnominal has invited you to join Trash can. See your invitations.
 
italian according to google translate.
 
I've never been so insulted in my life
 
welcome to the js room :P
we're a fun crowd.
 
10:37 PM
@XCritics well done then you achieved another level then
 
hahaha
 
Except on sundays, because everyone here is strictly religious
2
 
Whaaaaaat
 
No one mostly even comes online on sunday
 
10:38 PM
God damn macbook can't hold down letters to spam them or else I get to choose from all these other letters I don't want
 
Achievement Unlocked! - Offended by the JS room as a collective.
6
 
@XCritics, if that's the most insulted you've ever been, you're doing pretty well
@copy yeah bro.
 
@copy cept that week where I put in the description not to be and all of a sudden we were not (outside questioning the desc)
it was a glorious week
 
Hail Satan?
Stan* :)
 
10:40 PM
the hockey player?
 
I did love the tweet "So, anyone know what number we text to vote on the new pope?"
 
new pope ? I thought they call them, "old pope"
 
it's not morbid because the last one didn't die.
 
@JanDvorak The character from the eminem song
 
politics in almost everything now
 
10:42 PM
wait for it...
win
 
Winning
 
so much of it
 
lol
 
I bet his publicist came up with that
 
Eagle 1 Goat 0
 
10:46 PM
image not found
 
imgur.com/a/fzpg5?4 just read the comments.
 
referer-based blocks.. hate them.
 
Ken M is a moron, but so so funny
 
> My wife crushes hot dogs with a rolling pin
 
:D
 
10:58 PM
When there is no type hierarchy you don’t have to manage the type hierarchy. — Rob Pike
 
oh whatever ChatBot, you and your philosophies
 
:o to move an image with JS. CSS = position:relative; Warum? I would think that JavaScript is STRONGER then css :p
 
js !== css. they are comparing apples and oranges
 
@rlemon but js == css, just like js == php and js == c :P
(In the turing-complete sense)
(oddly)
 
js(css) > css
 
11:12 PM
Also Brainfuck. And Conway's Game of Life
 
is css turing complete? o_O
 
And sed (if I recall correctly)
 
@david I think so, but it's hacky
 
@david yes
 
Well yeah, ofc they are not the same. I was just thinking that in a browser environment. JavaScript would overule CSS :)
 
11:15 PM
@copy I didn't know game of life was turing complete, that's awesome :)
 
That's awesome
 
css should not be turing complete >< that just means something has gone horribly horribly wrong
 
hacky === upsets the purists
 
11:20 PM
i'm not 1337 anymore :(
 
11:40 PM
How are these different?
function createPerson(name) { this.name = name; } vs...
function createPerson(name) { return { name: name }; }
or are they very similar?
I think you don't have to use the new keyword with the one returning an object.
 
what?
One is a constructor, the other is not
You don't have to use the new keyword when returning an object, in fact if you're returning an object new does not do anything
Also, next time when you paste code type Control+K to format it
 
I know the first one is a constructor function which you must have the new keyword. But what do you call the second one, any special name for it?
 
That's just a function, it makes more sense to me not to use constructors
You could call it a module, but it's not really a module (it's too small imho)
You could call it a factory, that's not really a factory, it would be dumb to call it such
I'd probably still call it a constructor
 
I was thinking 'factory' for a bit. So many different names and concepts... Why would you not to use constructors?
 
(It constructs an object)
JavaScript is a class-less language
It has classes, but they're in the background, they're implicit, doing something like a "constructor function" seems stupid
It hides intent, is error prone (calling on same object) and is pretty silly, that's just my opinion though plenty of people use em
 
11:53 PM
Yeah, I recently learned about them and their purpose to construct an object.
 
I'd probably just do {name:"WHATEVER"}
No need to be explicit about it, modern JS engines will extract classes out of that for me
 
Favorite coding program
dicuss.
 
coding program?
 
Like ide or w/e, Sublime Text, Coda, VIM, VI, LESS
 
For what language? JavaScript?
 
11:56 PM
Sure
 
Nodepad ++ right now. I did like Scite too. And dunno what Ill use once I got Ubuntu Tomorrow
 
Visual Studio + Resharper but that's really expensive, if I had to pay for it I'd probably go with either Sublime Text 3 or WebStorm or WebMatrix
 
Sublime Text '3'??? First I heard of that
 
discuss.
 
11:58 PM
ah
I used Coda 2 for a while when just writing php/html but now with RoR Sublime Texts tab triggers and short cuts are amazing
God I don't want to go back for 7 days 12 hour shift tomorrow :(
 

« first day (878 days earlier)      last day (4073 days later) »