« first day (959 days earlier)      last day (4214 days later) » 

00:00
@copy If I ever come to Germany, will I have free access to your cereal?
no9
no9
@BenjaminGruenbaum please some additional info... i belive the problem is that ASP does not recognise IE10
causing the application to behave weird
The problem is you're using asp classic which is a horrible technology, the symptom is that ASP doesn't recognize IE10
no9
no9
so the fix would be to eliminate the browser from browser list on every IIS server?
@JanDvorak 5PM
@Zirak Yes, and also to my toilet paper
00:02
@no9 the fix would be to run aspnet_regbrowsers.exe
@JanDvorak Haven't been across it yet.
So right now I am getting various requests, I am guessing incorrectly, for developers.google.com/analytics/devguides/collection/gajs/… to be used on pages here at work. I'd like to verify with other people here who have used GA.
@copy Ihre Toilettenpapier ist mein Toilettenpapier
no9
no9
@BenjaminGruenbaum ok I understand ... on every server?
Honestly in my pov, your app is legacy anyway, just add the header
00:04
@Zirak Richtig
In other words, setDomainName in google analytics should only be used to set your cookie path to your TLD and not set it to some other domain
Anyone good with bash / shell ?
@Raynos don't ask to ask just ask :P
Raynos you n00b
Is anyone good with bash? I find it hard to debug where I am doing it wrong ( github.com/Raynos/dotfiles/blob/master/.functions#L95 ) trying to get the uri this hub pull-request command returns into a thing
:D
So hub pull-request is like git commit
00:05
@BenjaminGruenbaum Don't insult the great master
with no args it opens your $EDITOR
And it returns a http uri
but I cant damn well figure out how to get access to it from a bash script
so if GA is on pizza.com/user-profile-somemajorbrand and someone requests that major brand request setDomainName to be set to somemajorbrand.com they'd be wrong...yea?
@Raynos You want $result to be what's stdouted from that command?
Then isn't that $result = $(...) ?
@Zirak not sure whether it standouts it
@Zirak i dont think that worked
man I need a toy repo to try this
no9
no9
@BenjaminGruenbaum Feel like adding an answer? I tried in test enviroment and it looks promising. Still need to test it tmorrow.
anyways thanks for the tip!
00:15
@no9 Naa, I'm in the middle of coding, good luck though :)
no9
no9
same to you
Are there any other node compatible DBs besides mongo and mysql that are easy 2 implement?
Does anyoneee know about google analytics?! sigh
@lawm define easy
@lawm the mongodb driver is NOT easy at all
00:21
@Raynos but... my question?
like easy to use on heroku or another host
oh
lol
there are hosted versions
of every database
also
/leave
@Raynos bye, good luck
@Varayut 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.
@Parris I know about google analytics
@BenjaminGruenbaum You've done these things in c#. You have a method which conditionally yields (is an IEnumerable), and you loop over the results. But if it's empty, the method didn't yield anything, a NullReference exception is thrown.
Is there a nice way to fix that?
"How do I make it not error"
You mean like a yield break ?
I'll be more specific: this loops over this
static IEnumerable<int> empty()
{
    yield break;
}
Doesn't yield anything, empty enumerable
So I think that when I try to yield break at the end either way, it still tries the binding (yes, I've tried, yield break at the end still throws the same error)
00:29
put a yield break there
Outside the loop? Tried that
Why aren't you just returning:
metas.Where(this.IsValidOGNode);
instead of that loop
huh. That's a good point.
Because it's a weird internal class
I'll try converting that to something sane
Just use CsQuery, really
It'll take a few minutes to convert and you'll get to use something that wasn't written for C# 2
> We are processing the requested change to your cookie preferences.
>
> This may take up to a few minutes to process. Processing 6%
00:33
Also, just for the record, someone else already wrote an open graph library
Are they using this to annoy people who disable tracking cookies
rlemon yelled at me for targeting v4.5
And yeah, I saw that. It sucked
user1125394
!!/Choose signin_ login_
@xcx signin
@BenjaminGruenbaum so, I am getting requests at work from outside organizations to add various google analytics stuff. One thing that came up was the use of setDomainName... I feel like everyone uses it incorrectly and across domains sets it to their original domains when it should in fact be the name of the TLD on each site. Is this correct?
00:35
@xcx signin_
user1125394
confirmayed ok.
durr, I didn't include Linq.
@Zirak LINQ is all extension methods, that's like static method only not ugly. It's a kind of JS'y extension in C#
user1125394
yeah yeah, but that's why it didn't have the methods I was looking for
00:36
@Parris yeah
@BenjaminGruenbaum cool! hahah, I felt like i was crazy :).
ugh
Now it's complaining about with a different null-error flavour
@Zirak this is HAP
This is c#
@Zirak I've had a bunch of those too when I used it, really, you only have one file and it's short
This is bad C# before it had the maybe monad built in through Nullable, because HAP is an ancient library
00:40
gneh gneh gneh gneh
...that's how I envision you
It better have proper documentation
@Zirak what does it return? What're the keys and values?
What's my target output? Page dependent. I included an example in the readme
But don't worry, I'm porting it
What a surprising example :P
<3
        var dom = CQ.CreateFromUrl("http://www.imdb.com/title/tt0379786/");
        var res = dom["meta[property^=og\\:]"].Select(
            x => new { property = x["property"].Substring(3), content = x["content"] });
        foreach (var val in res)
        {
            Console.WriteLine("{0} => {1}",val.property,val.content);
        }
        Console.Read();
<3 right back
Wait, that's stupid
00:55
Yeah, I pretty much got there too
I'll deflatten and ship
LINQ is awesome
It's like JS's filter/map/reduce only very very smart. Kind of like a space pen.
My code is so boring
You're just extracting OpenGraph data from a page, it's a one liner. Do something fun :)
It's a drag to read. I guess it means I win and Bob Martin is proud.
Not in the algorithmic sense, in the code-structure sense.
01:03
@Zirak you should obfuscate it and then try to guess what you're reading.
Fuck uncle Bob, he writes Java... how can he even expect people to take him seriously
@Parris It's 86 lines, which is nothing
About 30 lines are doc comments (why are they so stupid?)
:9747743 X is widely used so X is good is an extremely poor argument for X.
@Zirak we try to avoid inline comments for the most part in favor of just having more functions that do lots of really tiny things.
That's what I meant by "my code is so boring"
01:06
although i think simple doc comments would be nice
One sec, I'll push
@Parris "Functions that do really tiny things" makes me want to hurl. A function should do one thing, logically. If it makes sense to break your code to more functions do so, but don't do it for the sake of having lots of functions.
Zirak is doing something that needs one class (OGraphData) containing two fields (or properties) and a static function that returns an enumerable of elements of that OGraphData
@BenjaminGruenbaum of course, but you'd be surprised how many things a function does... also this method allows you to see patterns to create mixins
its also a key concept in that book "refactoring"
@Parris What book?
Bob Martin wrote like 10 books iirc
01:09
Lol, that's Martin Fowler, I love that book.
Now that guy I take seriously
he's funny too
Looks fine to me! :)
@Zirak ParseDocument , if you had one JavaScript function name on arrays to describe what that method does, which would it be?
It looks more readable than my monstrosity.... I definitely need to refactor this. I am not sure how yet though: github.com/parris/iz/blob/master/src/iz.js
01:12
var res = [];
arr.forEach(function(elem){
    res.push(function(elem));
}
return res;
I know
(Hint: LINQ has a ToDictionary method)
I know how to write it compactly. I unwound it on purpose
It's not about making it compact at all...
Yes, I understand your intention
01:15
Stuff like Where and Select are well known C# constructs. I wouldn't second guess their usage like people would .filter and .map in JS
oh, ok, I missed this one, you're right
01:36
All you audio people this question about generating random audio like data might be interesting to you.
@lawm did you ever mess up making your procfile originally
It has to be named Procfile with no extensions
do a git rm procfile and try pushing it again
Yeah, my first time I added Procfile to gitignore so it wouldn't clutter up anything. I am not a smart man.
if you mess up making it, e.g. lower p, git won't change the capital
LOL
today was a fun day
0
Q: Adding new objects to a clientside array - best practices?

SB2055Say you have a list of "vehicles" - you have an observableArray of these ko.observable()s. You let your user add a new vehicle with the following: var emptyVehicle = { "make": "chevrolet", "model": "corvette" }; app.on('CLICKED_ADD_VEHICLE', function () { var vehicle = ne...

@BenjaminGruenbaum that does look interesting
01:44
@phenomnomnominal I thought about you when I read it
too much work to do anything about it though haha
even for the bounty
It's not about the bounty, it's about the math :)
yeah but I have my own interesting maths to work on :)
02:02
@phenomnomnominal Y U NO requestAnimationFrame?
nice btw
@BenjaminGruenbaum haha i just changed like 3 numbers from his code
Yeah, that's an old song :P
@PabloDeNadai 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.
haha no, it's just the vocal track!
Yeah, I know :)
02:08
I love shit like this, you can hear the track bleeding from the headphones haha
Haha, I wish it was really Acapella though :P
how good would that be
it must exist
That's chop suey
Also chop suey
and i hate his voice
02:11
wow the first guys are insane
@RickSarvas 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.
02:18
This is serious skill
(that dude is amazing)
holy shittttt
still harder on a real piano haha
He's doing both
thats pritttty awesome
actually he's definitely not playing that at first
not on the ipad
He is, it's crazy
02:20
but he's using 2 fingers and playing like 5 notes?
macros ! all the things !
His hands are just moving faster than the frames in the video
he's an insane pianist, I know, I just reckon it's prerecorded
That is stunning
02:25
nice, anyway I'm off to bad, not impressive or anything, just like that song
Woah, bad version
Here's the album one
Listen to that whole thing if you have a chance. Like he starts off all virtuosic and shit, but then he just grooves and it's insane.
Will do
First version missed all the sax, anyway, gnight
can hot girl become a great programmer?
anyone can become anything, also, you're a tool.
02:30
@O0oO0oOO0ooO yes
@O0oO0oOO0ooO Why not?
02:45
Can't sleep :/
Better code some python
Coding music ideas?
Propaghandi!
@BenjaminGruenbaum
@copy Does python have shorthand this notation for constructors?
Like in CoffeeScript:
constructor: (@name,@age) ->
Means in python
def __init(self,name,age):
    self.name = name
    self.age = age
03:05
@BenjaminGruenbaum I don't think so
1 message moved to Trash can
3
Why are we just called JavaScript? It's boring
room topic changed to Super Awesome Mega JavaScript: Everything JavaScript | New User? Read rules.javascriptroom.com (hint, the controller is Zirak, the view is dystroy, and the model is BadgerGirl) [ecmascript] [javascript] [this]
Way better
03:11
@O0oO0oOO0ooO I like
room topic changed to The Super Awesome Mega-Magic JavaScript Time Show!: Everything JavaScript | New User? Read rules.javascriptroom.com (hint, the controller is Zirak, the view is dystroy, and the model is BadgerGirl) [ecmascript] [good-time] [javascript] [most-popular] [this]
room topic changed to Craig's Super Awesome Mega-Magic JavaScript Time Show!: Everything JavaScript | New User? Read rules.javascriptroom.com (hint, the controller is Zirak, the view is dystroy, and the model is BadgerGirl) [ecmascript] [good-time] [javascript] [most-popular] [this]
Haha yes
@BenjaminGruenbaum did you see this:
12 hours ago, by phenomnomnominal
CPU Core Estimation with JavaScript: http://blog.wg.oftn.org/post/51125082905/core-estimator
Someone else did exactly what I did haha
Mine still seems to work better though, theirs crashes smart phones haha
Hey! remember this:
That dude kept bringing up and we ripped it apart?
jTypes: JS Library for Overcoming Differential Inheritance with Prototype-based Objects - http://www.jtypes.com/
03:26
Craig's Super Awesome Mega-Magic JavaScript Time Show! LOL
Whos doing is this
emm
It was rlemon
Totally you
 
1 hour later…
04:34
K, changing back to JS
room topic changed to JavaScript: Everything JavaScript | New User? Read rules.javascriptroom.com (hint, the controller is Zirak, the view is dystroy, and the model is BadgerGirl) [ecmascript] [good-time] [javascript] [most-popular] [this]
:(
Yeah keep the tags
I love that the way you declare code as ASM.js is "use asm";, which is nice of them
04:50
room topic changed to JavaScript: Everything JavaScript | New User? Read rules.javascriptroom.com [ecmascript] [good-time] [javascript] [most-popular] [this]
Wow, no python spec
@d3c0y 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.
05:10
@jaux 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.
05:22
@phenomnomnominal Bro, I tried googling but nothing, is there a way to set maximize to actually take up all screen real-estate?
Full screen API?
No sorry, I meant on my MBP
Guess I should have included that
Apparently holding shift and clicking the button will make it full screen?
oh, I dunno? chrome is cmd+F?
That's find
And by fullscreen, I just mean hitting the maximize button
like the little green ball in the top left
I do love the github GUI for OS X though I must say
05:36
oh
Yeah that's full fullscreen, I was just talking about maximize, but w/e it's cool ^^
If you want it to be 'Maximize' (like in Windows)
-- First .... use spread gesture to have text 'drop off the side'
-- Then use green 'diamond' or shortcut

Effect: Windows-like fullscreen, with text resized to fit for readability.
05:48
Hey guys I have a array that has two objects in it so: object[object:data,etc...] that gets sent as a json through ajax and on my receiving end, in PHP......When I try to access a value such as firstname after a decode I am unable to see it...I am using the following $checkArray->{'firstname'}
so 'firstname' will have the value of firstname and that is what I am trying to get but I am having trouble accessing it.
@DavidBiga an array of two objects? Let me guess you need $checkArray[0]['firstname'] in PHP
You haven't shown the entire array, however
No man thats not it....okay here
sendArray =['firstname':'david'...there will be more of these]; - I make ajax call...send as datatype json and data is info :sendArray
in php file I use
$checkArray = json_decode($_POST['info'],true);
@DavidBiga that's not valid JSON or even valid javascript
what I am trying to do is access the firstname, lastname, etc.. and store it into database, I have all that set its just I am having trouble getting the values
var sendArray = [];
			if ($(".firstname").val().length > 1 && $(".firstname").val() != " ")
			{
				var insideData  = {
					'firstname' : $(".firstname").val()
				}
				sendArray.push(insideData);
			}

			if ($(".lastname").val().length > 1 && $(".lastname").val() != " ")
			{
				var insideData  = {
					'lastname' : $(".lastname").val()
				}
				sendArray.push(insideData);
			}

			if ($(".phone").val().length > 1 && $(".phone").val() != " ")
			{
				var insideData  = {
					'phone' : $(".phone").val()
is that better?
formatting please
05:56
here is my php file
$checkArray = json_decode($_POST['info'],true);

$sql="UPDATE TaxiCompany set firstname =:firstname WHERE username = :user";
$sth=$DBH->prepare($sql);
$sth->execute(array(':firstname' => $checkArray[0]['firstname'],':user' => $_SESSION['userActive']));
one sec
formatting please, and preferably use a pastebin
want me to put it in one?
I've read your code now
you are creating an array of one-key objects. Not exactly a great structure.
what would you recommend?
And why am I unable to get the value?
05:58
I would recommend a single object with multiple keys
For what I need I thought this would be better

« first day (959 days earlier)      last day (4214 days later) »