« first day (761 days earlier)      last day (4412 days later) » 

00:16
by highlighting do you mean like selecting with the mouse?
@phenomnomnominal Yes, I've tried using the CSS only method as well. Both methods work in a simple JSFiddle. So it must be something else in my code. There must be a conflict or something.
00:34
0
Q: UV texture mapping with perspective correct interpolation

TwodordanI am working on a software rasterizer for educational purposes and I am having issues with the texturing. The problem is, only one face of the cube gets correctly textured. The rest are stretched edges: You can see the running program online here. I have used cartesian coordinates, and all ...

Have you tried using unselectable="on" in your html?
If it's only for a few elements, that is a pretty easy way to go
I'll check what browser support is like
Did I totally imagine that unselectable exists?
I think I'm going cray cray
00:54
yes, you are.
Oh well. I blame the penguins.
I'm on my way there to meet you, dealing with parsing HORRID HTML
My head isn't in a very HTMLy kinda place today. Refactoring an old project
J'adore la CoffeeScript.
mmm, always fun
Okay, I just had a thought. This project is a tetris AI right. Currently, each turn it takes a given piece and finds all the places it could go, then gives them a score based on a whole bunch of rules. Do you think it would be better to have the list of all possible moves and remove the invalid ones, rather than build the set of possible moves each turn?
01:04
All possible Tetris moves sounds like a HUGE list
Not really
its only a 20 by 10 grid
7 different pieces
max of 4 different rotations
every block, every rotation, every possible combination of pieces on the grid?
nah, not worried about combinations
I'm talking individual positions, not worrying about any other piece
01:05
That's 1.606938e+60 board combinations alone.
I'm saying is it better to try to place a piece and check if it can go there, rather than check for places it can go and place it?
That way I only have to create the set of positions once for each type of piece
I guess I don't understand what you mean
Then when you place the piece you can ignore large parts of the grid at a time because the pieces have to be touching vertically
I'll have a play and see how it goes
01:51
Is JavaScript in the modern browsers just the:

1). pure interpreter ( not VM )
2). VM with JIT-compiling and smth like JVM, .NET, llvm?
Is JS a complied or interpreted language?
Dan
Dan
hi there, in my backbonejs app I am writing whenever i go to a page within the app it works ok but then when I refresh it shows up blank? can anyone help?
@SomeKittens for what browser...
V8 compiles, SpiderMonkey interprets
As examples
IE uses JS Engine , which is similar to the JIT-compliation
for example
but , it's IE
and MS has another stuff like JSCript.NET , which uses full power of the .NET, but has JS-syntax
language != runtime environment
for example Effile uses C++ compiler, but has own semantics
01:58
My mistake, I misread and thought you were mistakenly talking about Java.
Which happens more often than I'd like.
One day we'll all be calling it ECMAScript :D
I hope they'll come up with a better name....
I don't know about other browsers like FF, Opera etc ( not MS one ), but I have feelings, that FF-developers use llvm for such aim, but it's only my suggestion and no more, about IE - I know well, but not about another stuff
For the Chrome JS Engine, look up v8
For the FF engine look up SpiderMonkey
both are open source
thanks! and what's about Presto ( main engine of the Opera ) ? :) Could you give me a keyword to google? :)
02:02
I have no idea about Presto sorry, never had to look into it
A JavaScript engine is specialized computer software which interprets and executes JavaScript (also known as ECMAScript). Although there are several uses for a JavaScript engine, it is most commonly used in web browsers. History Before the second browser war in 2008-2009, the JavaScript engine (also termed JavaScript interpreter or JavaScript implementation) was known as simply an interpreter that read and executed JavaScript source code. The first JavaScript engine was created by Brendan Eich at Netscape Communications Corporation for the Netscape Navigator web browser. The engine, cod...
Opera
Carakan, by Opera Software, used since Opera 10.50
Futhark, by Opera Software, replaced by Carakan in Opera 10.50 (released March 2010)
Just looking quickly, the current opera engine is Carakan
@@gsendders is on the Opera team
And doesn't v8 do its own thing? It's an interpreter with a compiler with a toaster?
yeah pretty much
^ Good overview
I <3 COFFEESCRIPT:
BLANK_GRID =
  for x in [0..21]
    for y in [0..11]
      if y in [0, 11] then -3
      else if x in [0, 21] then -2
      else 0
Does anyone have an example of where a WeakMap will be particularly useful?
02:20
@rlemon omg that bird feeder kicks ass
 
1 hour later…
damn..
hey @phenomnomnominal you dont happen to be a sublime text 2 advocate do you?
I'm currently advocating TextMate!
So no. But it does look quite nice
damn. i am a textmate guy myself... been looking into making the switch
some things look awesome in st2, but then simple things that i use all the time in textmate arent there
yeah I know what you mean
the demo on the site looks great
like pressing shift+cmd+return at any point on a line of code will put a semicolon at the end of that line and then add another line below
03:56
but i've been doing a lot (a LOT) of coffeescript, and the textmate bundle is great. the sublime ones don't seem to be so good
so frustrating
especially because textmate 2 looks sweet but it also doesnt seem to be going anywhere
and i have SO many tm snippets
The textmate 2 repo is still pretty active: github.com/textmate/textmate
yea but do you think it will ever have as active a plugin community as st2?
Maybe not. But I guess eventually the features of either one will be in the other
04:11
!!/listcommands
!!/botisntrunning?
!!/sadly
04:27
!!/ithinkallchatshouldbelikethisnow
what are the two of you doing? is it something like those Easter eggs I've been hearing about?
!!/wearebeingcoolkids
!!/wanttoseeaneasteregg?
type <[^>]
!!/howtosendarbitraryvariablestoabackboneView?
<[^>]
haha yeah I like that one
the pony is coming!!!
the unholy child weeps the tears of virgins
the barber's child sweeps the hairs of shavin's
04:39
child labour... not cool.
but they get paid in candy!
Valid. I would work for Candy.
This doesn't help you at all does it? I assume you already saw it.
12
Q: backbone.js: how to pass parameters to a view

vikkunI have a series of buttons which when clicked display a popup menu positioned just below the button. I want to pass the position of button to the view. how can I do that? ItemView = Backbone.View.extend({ tagName: 'li', events: { 'click': 'showMenu' }, initialize: functio...

is that this one?
29
A: backbone.js: how to pass parameters to a view

diraYou just need to pass the extra parameter when you construct the MenuView. No need to add the initialize function. new MenuView({ collection: itemColl, position: this.getPosition() }) And then, in MenuView, you can use this.options.position.

Yeah
Not what you want?
<[^>]
04:47
Actually it's perfect. Sorry I didn't post that I found it; Ithoughtmyquestionwasmissed
typinglikethiscandothatitwouldseem
___
how much markdown works in here?
@phenomnomnominal hehe... nice...
I know LINKS DO
HELLO
HELLO
# Hello
hello
mellow yellow
<[^>]
i.am.so.confused.
04:53
See this question:
1330
Q: RegEx match open tags except XHTML self-contained tags

JeffI need to match all of these opening tags: <p> <a href="foo"> But not these: <br /> <hr class="foo" /> I came up with this and wanted to make sure I've got it right. I am only capturing the a-z. <([a-z]+) *[^/]*?> I believe it says: Find a less-than, then ...

im reading it now
Dan
Dan
see this question:

http://stackoverflow.com/questions/13376773/backbone-routing-not-working-on-refresh

can anyone help
@phenomnomnominal brought to you by: utf8
Right? Haha it's so good.
is that like the most popular question on SO?
i guess thats an easy question to answer
04:59
One of them for sure?
05:48
is a router a proxy server in a sense?
 
1 hour later…
07:09
interestingly enough, it does
That's either the smartest question ever, or the dumbest
Yep
E = mc^2
black holes and entropy and all that
@phenomnomnominal well it is stupidiest
actually I think it doesn't, because the random data is still information.
07:16
for the simple fact that HDD just toggles the magnetic polarity
Why do you say that?
+1
go read how HDD works ?
Who doesn't know how a HDD works?
No where does it say it isn't a solid state hard drive
haha
but the amount of data remains the same whether it's random or lolcat pictures
My memories a little bit foggy, it's been a while since I did digital electronics, but is you consider flash memory to basically be rows and rows of capacitors either holding charge or not to be 1's or 0's, then the state with no charge, has less energy that the state with charge, and therefore less mass?
07:25
> You should use mysql_num_rows and get the count of the result query.
seriously what the fuck. did nobody tell this guy that retrieving lots of rows just to count them is stupid?
@phenomnomnominal HARD DISK DRIVES
HDD :P
IS USUALLY KNOWN AS Hard Disk
we usually say SSD as SSD
why are you shouting?
cause i want to facepalm
but ... erm i am on low-web so using net without images
No, the question just says hard drive
Is it okay if I post a heavy image to this chat?
07:38
Always
Given that its made of bits, and therefore has weight.
Yeah it's about 1 TB so maybe 0.1 picograms
Yep sounds about right haha
@ThunderRabbit 1TB eh ?
what are you going to share it with ?
p2p ? actually hosting a server self or using webRTC p2p connection sounds better then uploading
07:41
it's taking a while to upload sorry
seriously!
Do you know what blows my mind? There is so much water stored in reservoirs in the northern hemisphere, that the change in the weight distribution of the planet increased the length of the day.
I've already received it here, my internet is just that fast.
naw that can't be right
sweet, and I haven't even purchased the camera yet!!!
That's what I thought, but apparently it's true
by moving the water above the normal water line?
yeah makes sense then
07:44
Oh don't you have a 10 gigapixel camera yet? All the rage here.
By shifting the weight from the southern hemisphere to the northern hemisphere
water in north versus south doesn't make the day longer.. water further away from earths core would do it, like a skater extending his or her arms while spinning...
There's a change in the moment of inertia.
north to south or expanding radius?
The equator gets bigger
you sayin' I'm fat?
07:52
Nah, but yo mama is
ohhhhhhhhhhhhhhhhhhhhhhhhh
b-b-b-b-b-burn!
In all seriousness, she is extremely overweight.
your moment of inertia is so high, you don't know how much storage space your hard drive weighs!!
Dude. Uncool. I'm very sensitive about the size of my hard drive. The kids at school teased me and said it was small.
snork
sorry
07:55
!!/urban douchebag
haha
oh is the bot not running
dammit
hahaha
what bot? I'm askin' srsly
oh Zirak has a bot for the chat
it's handy as
handy as a bot?
are you from OZ?
i'll find the github repo
NZ
close enough
I see
haha don't tell any Kiwis you said that
07:56
In the scheme of the world, people can't tell us apart anyway haha
I can identify the land masses on a map.
I remember there was an episode of the Wild Thornberrys when they came to new zealand. Every accent was SO fucking australian haha
Well that puts you ahead of most
I'll admit, Lord of the Rings changed things a bit. But not much
Now instead of "never heard of it", you get "oh! peter jackson!"
@Abhishek that's not a stupid question
@phenomnomnominal What's Lord of the Rings?
ohhhhhhhhhhhhh!!!
Haha, oh the irony
08:00
@ThunderRabbit you should be banned for this
although I saw a question on programmers.se "who's yoda?"
@FlorianMargaine ;
He's off that awesome movie with Jar Jar Binks right?
:123456789abcd
hahah Phenom
08:02
wow
I'm resisting clicking; I need to work
They have a t-shirt.
I'm learning how awesome backbone is!! woooo
@ThunderRabbit spoiler: it's not
rofl
the website sucks
Don't be hating on my man jashkenas!
08:04
what is better than backbone?
The website is almost as awesome as Jar Jar!
@ThunderRabbit any modular pattern?
backbone is overrated
they make it sound like you need them to have a well organized code
jQuery is steller rated , but can we do anything
08:04
well it's working nicely for me on this project
@Abhishek jQuery is stellar rated for very good reasons ;)
oh hey @Abhishek I pushed this repo last night github.com/Ralt/components
@FlorianMargaine y ?
cough the word that you are looking for is: "Why?".
Oh.
@Abhishek I said it: "for very good reasons"
08:06
lol
notably: simple API, DOM abstraction
I count this as part of the simple API :)
jQuery -> means I don't waste my entire life worrying about cross-browser crap, and can actually make cool stuff for the web.
Yeah, good call
and another "good reason" (although controversial): full packaging
08:09
It's super easy to make plugins for
that's an advantage/inconvenient ^
well, it's an advantage in itself
the implementation is bad though
Personally, I hope 2.0 will be the end of IE8
the day IE8 is over, I won't use jquery :)
That's a good point!
@FlorianMargaine =1
well florian u dont use much jQuery anyways
08:14
@Abhishek not in personal projects, I do use it in my dayjob though
Do you use underscore?
nope
it has some nice utility functions, but I've never had the need for it
yeah fair enough
@FlorianMargaine would u pray for me :3
I applied for experimental features job in Wikimedia foundation [ hoping my experiments [[with source code ]] will impress em ]
Well, I won't pray for you, but I will wish you good luck!
08:24
thanks :D
What did the application involve?
a couple of demos i sent em and stuff like what u know and etc ..
Nice. I'm sure you'll be all good
Your responsibilities will include, but are not limited to
Develop experimental features that engage new & existing Wikipedia contributors
Extend the MediaWiki platform to support new experimental features and A/B testing capacity
The skills and experience you'll need
Three or more years of solid experience in Web development
Experience with A/B testing
Ability to iterate quickly and meet tight deadlines
Familiarity with version control systems (we use Git and Gerrit) and continuous integration systems
08:26
I think i belong to mobile / visual editor more but we can always re-apply :D
@Zirak. Dude. In. cred. i. ble.
@Abhishek - looks good! Would be a great position to have on your CV
In Chrome, hit Shft+Esc, right click on the tabs, enable "Goats Teleported"
@Zirak lol
I want to work in the goat teleportation department
@phenomnomnominal hahaha
08:30
BEST: 'I suppose we should use less GOATO statements in our teleport method'
Hmm
what does this changes ?
Hi guys, I have a click function that only work once. Can someone help me spot where it's coming from? jsfiddle.net/RF6df/45 (click the thumbnails to open/close the container)
@ThunderRabbit What are you doing in here? :D
too much code; but what I did notice: assigning an ID for the active element is a bad idea. store it in a variable or add a class instead
hey @OctavianDamiean!! I was booted from room 15, and I've been working on backbone recently, so hello room 17!!
08:44
@Zirak ... what does that do?
@ThunderRabbit Booted? Woot?
@FlorianMargaine - Isn't it obvious :P
You won't believe me even if I tell you
I don't have write perms in that room anymore
"booted" might be overly dramatic
@ThunderRabbit Oh yea there was a access list wipe recently.
08:45
Android is read-only? meh.
@phenomnomnominal well, not really :D
You have write access again.
Haha. I'm unimpressed by how few goats are being teleported on my machine.
thanks @ThiefM, but why is that idea so bad? Do you think this can stop my click function?
@FlorianMargaine Yea, anti-troll measures and the patriot pact.
08:47
unlikely, but it's kind of dirty
:)
@OctavianDamiean You're austrian. Patriot act doesn't concern you :p
Hmm, would a youtube video downloader be doable in JS?
@FlorianMargaine I didn't want to call it the Final Solution.
@phenomnomnominal: With node yes, sure
08:49
@phenomnomnominal If it's hot, why not.
in browser-based JS probably not so much
Why do you say that?
@phenomnomnominal yes
simply because with browser you have CORS
@phenomnomnominal I felt lonely not replying to your message
Well I can clean that in a few days. My real problem is that I have to click twice on a thumbnail to close the container and then I can't open it anymore.
08:49
@Zirak lol
@wyem You can clean it in a few days...but you won't
@phenomnomnominal You win "the most random thing I've heard all week" award
You know it, I know it, you repress it a bit, I don't care too much.
08:50
@Neil Haha, what particular thing is that for?
@Zirak it will be on top of my to-do list ;)
@phenomnomnominal I like to take note of strange things I hear, because, as I reason, there are some sentences and phrases that one may hear only once in their lifetimes
And I think you hit the mark this time
The Google Nexus 4 got SOLD OUT in the US in an hour! This power packed phone with its improved hardware runs on Android 4.2 Jelly bean. With its amazingly low price, its a STEAL!
expected!
@wyem Of course it will
Why would your computer teleport goats anyway?
08:52
@Abhishek Jelly Bean? They're really taking this "Java bean" thing too far
@Neil let Firefox OS come ;D
All the new google stuff is sold out here, too - also after like an hour.
its a cake :D
I wonder how long it's going to take until they restock it
@Abhishek Only two days behind mate. good job. :D
08:53
by the way, why is an ID dirtyer than a class?
@wyem In 4 days, if you come back here with sparkling clean code, I will give you a special mystery prize.
@OctavianDamiean dude they are launching it in india :P
@ThiefMaster The time it takes every google executive to make a lever pulling gesture and say "Cha-ching!"
Using HTML5 and the new Mozilla-proposed standard APIs, developers everywhere will be able to create amazing experiences and apps. Developers will no longer need to learn and develop against platform-specific native APIs.

i sense awesome ness
@wyen, you don't want to know what the prize is.
08:54
not sure I want to know what your special prize is :)
It's not my penis
oh what a relief !
@Abhishek I think we're hitting an interesting point in the software engineering where programmers no longer have the excuse to say "It can't be done"
@Neil and that opens doors for creating so many things that were supposed to be not-done ?
We are having to admit that we're not capable of certain things, even if we can do it, simply because we lack the platforms to stand on
08:57
@Neil, more importantly, we're hitting the point where programmers no longer have the excuse to say "It can't be done in the browser"
@phenomnomnominal erm Firefox OS , Windows 8
put it directly to OS , HTML 5 native apps ;D
@Abhishek I mean, before we can make phenomenal programs using html5 for example, we require platforms and frameworks.. we can't start from nothing or it is really too much to handle
But why does it have to be in the OS?
@Neil We've hit that point in the 70s. "It can't be done" is slang for "this will take too much meddling or will be completely retarded"
@Abhishek Whut? Where'd you read that?
08:57
@Neil dunno needs more testing
@phenomnomnominal Mozilla says Open Standards
@phenomnomnominal Well right, obviously you still can't do the same on a IBM as400
@OctavianDamiean I didnt just read it i also tested it :Duh:
firefox os!
@Zirak Well anything is possible, theoretically, but so is writing a web browser from MS-DOS
@OctavianDamiean you will need a nightly firefox build and people.mozilla.com/~myk/r2d2b2g
However there are so many hurdles you would have had to overcome that it might as well have been impossible
08:59
to get your hands on the friken awesomeness ;D
Exactly.
Now if you want to make a freakin' box rotate in 3d space, you can make a freakin' box rotate in 3d space
@gsnedders what is the opera peerconnection / datachannel routemap like?
4D is the new 3D.

« first day (761 days earlier)      last day (4412 days later) »