« first day (986 days earlier)      last day (3956 days later) » 

12:00 AM
So for a notes app, there would be a table for everyone's notebooks, a table for everyone's notes, etc.?
Is mongo... like a different thing?
 
Let's stop thinking in terms of tables. :)
 
okay
:)
How does mongo apps work?
 
You'd probably have blobs for users and blobs for notes
 
@crowder blobs, eh? :D
 
user blobs would be keyed by something unique
say, a Facebook UID
or your app UID
 
12:01 AM
@crowder ah
 
Inside those blobs, you'd keep data about notes a user is interested in
 
So the UID's aren't columns, but theyre like attached to the object itself?
and everything's subcategorized?
 
It's a key-value store, like a giant dictionary
Not like tables in an Excel spreadsheet
 
@crowder ah
Is it based on objects, like User.Notebook.Notetitle.notecontents?
 
key is "fbuid624872810210" value is a blob of JSON, say: "{ "notes" : [ .... ] } and so on
 
12:02 AM
@crowder OOh!
 
JSON as an example, you can do other formats, of course
binary is fine
compressed JSON is not unusual
Then a note would be something like:
 
@crowder But are there physical organization, or must it be represented in json
Oh wait I got it
 
key => "note19872981" = value => "raw note text"
 
ok
@crowder in json?
 
Then in my user blob, my notes array would have "note19872981" in the list
Sure, if you like JSON -- again, it's not required
JSON is nice because it's more succinct than other text based formats and more readable than binary
 
12:04 AM
@crowder but must it be a static data format? Does mongo have any organization of data itself?
 
Static in what sense?
I'm not sure I'm following you
If you need something you can query arbitrarily, then you probably want a real RDBMS, like MySQL
or PostgreSQL
 
@crowder okay
 
which is a lot nicer than MySQL in many ways
 
I think mongo sounds cooler
Thanks
 
"Sounds cool" is always the best way to make high level architectural decisions for your service. ;)
I like to choose my technical tools by who has the neatest logo, but your way works, too...
 
user1125394
12:21 AM
!!/urban mongo
 
@cx Mongo In skateboarding, pushing the skateboard with your front foot. If you're normal, you use your left foot, and vice versa for goofy.
 
Behold my incredible name generator: cdpn.io/mdJLD
(Lorem Ipsum actually works better as a data source than shakespeare's)
 
Not enough bitwise operators, 4/10
 
@copy << >> ~~ ^ there you go
 
12:36 AM
Much better
bag.sort is O(n logn) but bag[Math.floor(bag.length * rand.next())] is O(1)
 
good point
 
I have to say, IE's toStaticHTML is a nice idea
 
ie> navigator.userAgent
 
@BenjaminGruenbaum "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; .NET4.0E; .NET4.0C; Tablet PC 2.0; rv:11.0) like Gecko"
 
user1125394
12:46 AM
ie> '1+1'
 
@cx Sorry buster, no eval for you!
 
Attention room owners and 5K+ users. You may now execute commands on IE11 JavaScript using the ie> handle thanks to @Zirak. It runs on a vm on my box. If you mess the bot up, it will mess up. This is an eval call and not a web worker, if you stick it in an infinite loop it will stay there. This is why this is only open to room owners and 5k+ers
10
ie> let x=1;x;
 
@BenjaminGruenbaum 1
 
yay I'm useful
 
ie> Audio
 
12:48 AM
@copy "\nfunction Audio() {\n [native code]\n}\n"
 
ie> document.createElement('canvas').getContext('3d')
 
@IvoWetzel null
 
user1125394
ie> this
 
@cx Sorry buster, no eval for you!
 
user1125394
I can read
 
12:49 AM
Where's the WebGl :(
 
Sorry @cx you were not the reason this is limited -_-
 
user1125394
np
 
user1125394
!!/nudge 5 "change to a better name"
 
@cx Nudge registered.
 
!!/tell dr.eval echo "ie>'!!/eval 1+1'"
 
12:52 AM
@dr.eval Command "ie>'!!/eval does not exist.
@dr.eval "ie>'!!/eval 1+1'"
 
so close
 
@dr.eval You know, that's how Skynet got started
 
@IvoWetzel One, Million, Dollars! Muhaha
 
@cx nudge change to a better name
 
1:01 AM
ie> new Audio( 'data:audio/wav;base64,'+btoa( (function(f){for(var t=0,S='RIFF_oO_WAVEfmt '+atob('EAAAAAEAAQBAHwAAQB8AAAEACAA')+'data';++t<3e5;)S+=String.fromCharCode(eva‌​l(f));return S})( '(t<<3)*[8/9,1,9/8,6/5,4/3,3/2,0][[0xd2d2c8,0xce4088,0xca32c8,0x8e4009][t>>14&3]>>(‌​0x3dbe4688>>((t>>10&15)>9?18:t>>10&15)*3&7)*3&7]&255' ) ) ).play();
 
hmm?
Oh you did >ie instead of ie>
 
@copy SyntaxError: Invalid character
 
ie> window.localStorage
 
@IvoWetzel {"chat:icc":"[{\"sender\":\"chat:1372380236044:96612\",\"time\":1372381066294,\"‌​content\":{\"command\":\"poll\",\"data\":{\"r17\":{},\"r32522\":{},\"since\":2038‌​1415},\"since\":20381415,\"until\":20381415,\"source\":\"poll\"}},{\"sender\":\"c‌​hat:1372380236044:96612\",\"time\":1372381071328,\"content\":{\"command\":\"poll\"‌​,\"data\":{\"r17\":{\"t\":20381418,\"d\":3},\"r32522\":{\"t\":20381418,\"d\" (snip)
 
ie> document.cookie
Should probably be blocked, although in the case of the chat it's not enough to hijack the session
 
1:05 AM
This is open to room owners only
For a reason.
If you want to kill it, all you need to do is while(true){}, I'm not bringing it back though so you'll ruin it for everyone :P
 
Don't worry, I'm not going to do that. It's 3am in the morning I'll probably go to bed now :P
 
It does do some nice things though
 
still wondering why it didn't return a 3d context though
 
ie> window.toStaticHTML("<a href='lol' onclick='omgimxss()'>click me</a>")
 
@BenjaminGruenbaum "<a href=lol>click me</a>"
 
1:09 AM
ie> ({}).__proto__
 
@BenjaminGruenbaum {}
 
ie> new XMLHttpRequest().foo
 
@IvoWetzel null
@IvoWetzel "undefined"
 
ie> new WebSocket();
 
@IvoWetzel TypeError: Argument not optional
 
1:13 AM
ie> e = new WebSocket('ws://echo.websocket.org'); e.onopen = function() { e.send('Echo Test'); } ; e.onmessage = function(d) { console.log(d); e.close(); }
 
@IvoWetzel "function(d) { console.log(d); e.close(); }"
 
@IvoWetzel The log says:
got message [object Object]
[object MessageEvent]
 
nice
Maybe we can finally do cool stuff without having to leave IE out (unless anything non WebRTC isn't cool enough for you)
I still wonder whether there will be some gotchas with the WebGL shaders....
 
ie> WebGLShader
 
@BenjaminGruenbaum {}
 
1:16 AM
@BenjaminGruenbaum I'm more concerned about minor differences when it comes to the actual output on the screen, after all MS is a DX shop, so who knows what exactly they do under the hood when it comes to the GL apis
 
ie> new WebGLContextEvent()
 
@BenjaminGruenbaum {}
 
@IvoWetzel Using OpenGL for it would be a lot easier for them, it's not like it doesn't run on windows already
ie> requestAnimationFrame
 
@BenjaminGruenbaum "undefined"
@BenjaminGruenbaum "\nfunction requestAnimationFrame() {\n [native code]\n}\n"
 
ie> window.AesGcmEncryptResult
 
1:20 AM
@BenjaminGruenbaum "undefined"
@BenjaminGruenbaum {}
 
!!/testie
 
ie> 1+2
 
@CapricaSix 3
 
You might want to exclude @CapricaSix too.
 
Or just ban abusers
Stop worrying, this is going to run for a day or two so people can get a sense of how IE11 acts. People aren't going to ruin it 'just cause'
 
1:25 AM
:-D One method might be easier ...
 
That said, @Zirak
Caprica something something
 
ie> WebRTCCompetition
 
@Gacnt ReferenceError: 'WebRTCCompetition' is undefined
 
True enough. A room owner experimenting is more likely to cause trouble. :-)
 
Anybody playing any good mmos atm?
 
1:26 AM
Anyone seen @mikedidthis these last two weeks here?
 
@BenjaminGruenbaum Aw, why not 3.259k+ users :(
 
Use the caprica hack @NagaJolokia suggested :P
 
^ not that I'd do anything with IE11, but hey
 
Hmm. No. Maybe he's been on holiday.
 
1:29 AM
@Feeds At least until he shows up, I think he just disappeared
!!/mute
 
@BenjaminGruenbaum 895174
 
@BenjaminGruenbaum Will that work?
 
!!/unmute 895174
 
@BenjaminGruenbaum Unmuted user 895174
 
@Nile Yeah
 
1:31 AM
Just for funsies. How do I get her to say something?
!!Hello
 
@Nile Invalid /tell arguments. Use /help for usage info
@Nile That didn't make much sense. Use the help command to learn more.
@Nile That didn't make much sense. Maybe you meant: tell
 
@BenjaminGruenbaum sorry, feel free to bin those ^
 
And there: ^^^
 
1:50 AM
@BenjaminGruenbaum How come you remove?
 
Mike from owners
 
Haven't seen him for a while
If he comes back he's welcome to be room owner again.
 
Oh
 
He was made room owner, then kind of disappeared.
23 mins ago, by Benjamin Gruenbaum
@Feeds At least until he shows up, I think he just disappeared
 
1:52 AM
Last seen 6d ago.
 
26 mins ago, by Benjamin Gruenbaum
Anyone seen @mikedidthis these last two weeks here?
@NagaJolokia Yeah, in the HTML/CSS room
 
Oh, I see.
~8 days ago in here
Last mention, anyway.
 
This game looks amazing
I wish I had a ps3
 
lol, day9
 
30 minutes of watching some guy play a game? You must be really bored ...
 
1:56 AM
:D His play throughs are hilarious
Any good MMOs worth playing now or what
 
Loriot is hilarious
 
2:18 AM
@Gacnt, it is!
 
!!/ie [i for(i of [1,2,3])]
 
ie> [i for(i of [1,2,3])]
 
boo
 
@Gacnt what @phenomnomnominal said :P
its a great game
the story is so awesome
man I feel like im on a programming roll lately
like a make random demo shit roll
 
I want an MMO to play
 
2:34 AM
@Loktar To me, that seems like magic!
 
lol it is a bit of magic
I was doing that for the last js1k
so I've had to look it over and figure it all out again lol
 
:-D (cough, documentation)
 
yeah Im so bad at that
 
@Loktar It's so awesome. You've gotta make a tutorial or something
 
Maybe I will actually. Tbh it took me a while to be able to create that
I started out with this worldofrot.com/stuff/water.html
and then had the idea to roll it up basically
Im going to make a pen from the water one too I think
 
2:46 AM
@Loktar I'd be excited to read it if you did.
 
Ill try.. Im terrible at explanations though :P
 
Is there a JS equivalent to PHP's $_SERVER['SERVER_ADDR'] ?
hmm location.host gets me the dns name
that'll do pig
 
@BenjaminGruenbaum Hi bestie :)
 
3:29 AM
@ColinCurtin 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.
 
@Gacnt Planetside 2
 
played it before, little bored of it :)
 
3:44 AM
This is what I get for asking SVoice some jokes... goo.gl/hUCsq
 
4:10 AM
0
Q: Upon clicking the "Go" button, The blue square is meant to fade out. Once that is complete, a red square is meant to fade in. This doesn't happen

ManishUpon clicking the "Go" button, The blue square is meant to fade out. Once that is complete, a red square is meant to fade in. This doesn't happen. Go <script type="text/javascript"> (document).ready(function() { $("buttn#go").onClick(function...

 
omg no one is present
 
presents!?
 
El Presidente
 
interesting
 
their 'html' site has js errors lol pso2.com/us/html
 
4:24 AM
@DuyLuc 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.
@Bornfree 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.
 
4:57 AM
 
hey guys
got a good question
 
@phenomnomnominal ^ You may like that one, it's got disturbeds vocalist with serj tankian :D
 
@Gacnt, YOUR FACE.
 
Love you long time
 
Someone call me in 5 hours to wake me up.
 
5:07 AM
Phone # please
 
!!/help ping
 
@phenomnomnominal Command ping does not exist.
 
may i have some one answer this stackoverflow.com/questions/17333132/… , hopefully some one with good knowledge on servers
 
@Gacnt +52 81 8421 1017
 
soundcloud.com/pegboardnerds/1-pegboard-nerds-tristam-razor I'm gonna have this playing in the phone
 
5:14 AM
i currently have 30 seconds to mars - hurricane on repeat :P
 
GOK
Hey
Can you people out here throw some light on below question
0
Q: jQuery Validations for html elements with Language support(Japanese)

GOKI have applied custom validation techniques and messages for my application. I have used validations for html fields like below: Number only fields - > assigned input tags with data-type='number' or type='number' and handled in scripts with digits ASCII characters to be allowed in the particular...

 
462 rep and you're still leaving Thanks In Advance in the question?
 
6:04 AM
 
0
Q: How to set value in canvas object

SoumyaI am trying to set value in canvas field through Java Script but it doesn't set any value can anyone suggest on this? I have tried the below code but it doesn't work function setSignature(name,value) { document.getElementById(""+id+"Signpanal").innerHTML=value; }

 
6:57 AM
@JanDvorak commented in the Gist.
 
AOE 3 is awesome
i mean indians have sacred cows!! so historically perfect :D
 
@aboxy 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.
 
@OctavianDamiean responded
 
7:41 AM
@hyptos 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.
@himanshupareek66 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.
 
Hi, I am using JsTree, and with "types" plugin, I am able to set my custom icon for children nodes, but still getting the default folder icon for root node.
 
I don't know that library, sorry
 
7:56 AM
Does anyone else feel a need for new coding conventions in JavaScript?
0
Q: Defining properties and naming conventions in JavaScript

Aadit M ShahI've been a good JavaScript programmer and adhered to the coding conventions enlisted by Douglas Crockford. However JavaScript has evolved since then and I believe the naming conventions are now outdated. For example Crockford said: Do not use _ (underbar) as the first character of a name. I...

 
umm... if you're asking what conventions you should use, that doesn't belong to SO
concerning "is there any way to make properties non-enumerable, non-configurable or non-writable easily", I can't see how it''s related to any naming conventions
 
@AaditMShah :/
Regex?
:/
:\
 
@OctavianDamiean I didn't want to spend more time than necessary to write the question or make it more confusing for people to understand it. Hence regex.
@JanDvorak My primary goal was not to create a naming convention. Instead it was to create an alternative, more friendly version of Object.defineProperties.
 
@OctavianDamiean is it OK to edit a recent answer to point to MDN instead of W3schools?
 
I would encourage you to do so.
 
8:11 AM
@JanDvorak I know that w3schools bashing is frowned upon but I don't like them anyway and would do it.
 
@JanDvorak I would point to caniuse.com/#feat=transforms2d
@JanDvorak CSS transformations != CSS animations
 
@AaditMShah apparently you have some quite profound JavaScript knowledge so I probably don't have to tell you the drawbacks of RegEx. :)
 
@OctavianDamiean Indeed. Instead it would be better to do key.charAt(0) === "_" for non-enumerable properties and key.charAt(key.length - 1) === "_" for non-configurable properties.
Oh and key.toUpperCase() === key for non-writable properties.
 
@RobW oops, my fault. Reedited with your reference
 
@OctavianDamiean I'll edit my question and remove the regexes.
 
8:38 AM
see the load of bad code :-(
\o/ oh wow css only accordions with max-height hack :D
 
9:09 AM
@CichyK24 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.
 
DNS Points to Prohibited IP
You've requested a page on a website (img.stack.imgur.com) that is on the CloudFlare network. Unfortunately, it is resolving to an IP address that is creating a conflict within CloudFlare's system. If you are the owner of this website, you should login to CloudFlare and change the DNS A records for img.stack.imgur.com to resolve to a different IP address.

Timestamp: Fri, 28-Jun-13 09:15:22 GMT

Your IP address: 198.7.20.141

Requested URL: img.stack.imgur.com/0LUVf.jpg0
 
I just uploaded an image..:)
 
9:41 AM
@Caponera 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.
@RishiJagati 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.
 
is codepen down ?
 
hi..
 
9:58 AM
Hi
 
10:14 AM
Slow day in there...
 
guys.. whats happening in your life..:)
 
10:34 AM
heh, that's cool. Buy a set of racing seat mounting bars from a racing gear supplier, have the supplier invite you to some test rides in a couple of weeks. :)
 
nice :)
 
0
Q: Handling Players, enemies and attacks in HTML5

Chris MorrisI'm building a simple (currently) game with free roaming player and monsters on a map built by a 2D grid. I've been looking at the methods for implementing characters and enemies onto the screen and I've seen two seperate methods for doing this online. Drawing the player onto the screen canvas...

 
Hi
 
10:57 AM
'lo (just because it sounds almost like no)
 
@BenjaminGruenbaum It's a very quick fix if you want
...this guy is insane (cc @copy) data.glacicle.org/screens/latest-desktop.png
 
user1125394
11:20 AM
I need to find a chat with experts in finance :), but those guys are not really on irc or things like that
 
@Kersten 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.
 
11:54 AM
hello everyone
 
@DarkoJ 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.
 
hi, I write a question yesterday, but no one help me, and I'm stuck with this - stackoverflow.com/questions/17342665/…
if anyone has time to look
I would be grateful
 
@DarkoJ Your question looks like "Finish my work for me" rather than "How to do this very precise thing?". Nobody wants to answer that.
 

« first day (986 days earlier)      last day (3956 days later) »