« first day (1779 days earlier)      last day (3168 days later) » 

7:00 AM
the only 3d rendering part of it is the extremely simple dimensionize function at the bottom and the z-sorting :D
 
7:12 AM
@copy just curious. where do you go learn all that (specifically that only. I mean nix stuff)?
 
7:30 AM
TIL: Yes, you can put MicroUSB males into MiniUSB females and it will charge. No, the cable won't stay in.
 
@JanDvorak i don't know about that.. LOL
I was thinking maybe append a json object to a list
but I'm not too sure in that idea
should I just give a gigantic chunk of json array to the frontend dev?
 
Just use websockets
 
i'm not fluent in js, but I'm trying to think for my friend
websockets? like, just normal web sockets?
 
sending the data all at once might also be an option. Yet another option would be that the client knows when to grab more data and does.
 
hmm, well the premise is this:
I have a ton of json objects, and in my mongodb, I will query for specific fields that the frontend asks for
and sometimes it could be very specific and only return 1 or two jsons
but it could grow exponentially to like, say 100-200 jsons without enough specification
so I'm not sure about the second option
 
7:40 AM
@OneRaynyDay limit on the server
 
what do you mean by that?
 
seems like the client knows best when it wants data -> use standard REST-like API
 
yeah. Is it logical to give them like
200 json objects that are.. say 20 lines long after prettifier?
or is that too much at once
yeah, my API is REST
 
200 objects * 20 lines * 80 characters = 320 kB. Not that big unless you do that very often.
 
Depends on how much of the website the user wants to explore - I'd say >50% <70% of the website will require that much query
it's a statistics website, so I guess it's natural that it would require a ton of queries in mongodb
 
 
2 hours later…
9:27 AM
4
Q: a comparison equals to true, but when i put it as if condition, why it is not evaluated as true?

cnkida := "ALL" b := "not all" if (a == "ALL") != (b == "ALL") { fmt.Printf("why not falling into this case?\n") } Here is a piece of Go code I wrote, to print something if a and b have exactly one to be "ALL". But why the fmt.Printf is not triggered? However the following does print: c := (a...

 
9:58 AM
no better feeling than remote installing arch on a shitty old system
 
Breaking the shitty old system with a bat is probably a better feeling
Temporarily, anyway
 
do you mean a Windows batch file?
 
Hah
 
I somehow have feelings attached to that old shitty system. Well. No. Fuck it.
 
DDR
Windows XP was a good release, man.
 
10:31 AM
29
A: Should I stop referring Kali users to U&L from AU?

jasonwryanThey are, sadly, more appropriate here, seeing the distro is based on a Linux kernel. In order to minimise the impact on those of us who have little patience for the numbats that think that installing Kali will make them l337 haXX0r5, please—as a public service— ensure that they are all tagged k...

how wise
 
10:49 AM
@BenjaminGruenbaum meta.stackoverflow.com/q/303794/871050 last link is dead.
 
-5
Q: Why do websites use so many CSS and Javascript references

JulesIf I go on any well-designed website, I will find at least 10 different web links to Javascript and different CSS sites. Why is that the case? Why not have all CSS on one page? Thanks.

 
11:36 AM
anyone using visual studio code with definitelytyped?
 
11:53 AM
Roughly how good is general support for flexbox on mobile?
By caniuse.com/#search=flex it looks good, but are there still, say, iOS 6 users around?
 
@ivarni it lists number of users per platform as well. so iOS6 has like 0.09% according to it.
 
is iOS6 the thing that runs on iPhone6? I'm confused.
 
Oh goodie
Nah, the iOS versions and the iPhone model numbers aren't really correlated
iPhone6 ships with iOS8 iirc
 
Ah, good. Otherwise my Kazam Trooper 2.4.5 would have been running an outdated version of Android.
 
I didn't understand any of that but good to hear
 
12:09 PM
iOS 6 was the last update to i*4, no?
> Apple: Company to Introduce Next iPhone and New Apple TV Box at Sept. 9 Event, Reports Say
The company sent out invites Thursday that read, "Hey Siri, give us a hint," reports say. Apple is expected to reveal an iPhone 6s and 6s Plus at the event, as well as an upgrade to Apple TV.
While we're talking about iPhones, either Nick or ʞɔᴉN was talking about waiting until the 6s/7 was out
 
I've switched to Android so I'm not really updated on the latest iPhone buzz, but I suppose waiting for an s-version isn't a bad move, it's been a while since iPhone6 was launched
That is, if money isn't a big concern, if it is, maybe still wait for a new release and then get the previous version cheaper
and I totally screwed up that sentence by throwing commas all over it
 
12:36 PM
I'd rather buy four Android phones than one cheapest iPhone for the same price.
 
There are Android phones that are the same price as iPhones, though.
 
What's the quality comparison within the same price tag?
 
I got a Z3 Compact instead of the iPhone 6 because I don't want to start using a purse to be able to carry my phone around. Don't really care which OS I'm on, but physical size matters.
 
I like the ability to program for my own phone. I've already downloaded Ruboto.
 
@ivarni So you don't want a 165mm phone screen, then?
@JanDvorak I'm sure there'd be a package on Cydia (jailbreak) which allows you to program your phone like you can on Android
 
12:42 PM
@Callum Nope, and I hope this trend of "omg guise the phones must keep getting bigger" goes away :)
 
Just wait, you'll be carrying around a table for your "phone" in a few years.
If I need to put the phone on something to use for fear of dropping it - it's too damn big
 
Or leave the phone at home and remote into it from a watch...
 
Shhh, you'll give people ideas...
Why even carry your phone or smart "watch"?
 
I love how we're going back to having to use both hands to operate a phone
 
Wow. I have "Wine Internet Explorer" installed.
 
12:51 PM
!!s/a phone//
 
@JanDvorak I love how we're going back to having to use both hands to operate (source)
 
!!s/operate/masturbate/
 
@MadaraUchiha @JanDvorak I love how we're going back to having to use both hands to masturbate (source) (source)
 
kthxbye
 
I'm not judging your dirty thoughts, but you could have saved six characters in that replacement...
 
12:55 PM
@JanDvorak you just wasted 99 characters
 
102
 
Wow. I was...erm...obnoxious, last night, wasn't I
 
@TomW Religious discussions will do that.
 
I don't really do that anymore. For reasons that are obvious. Dunno what came over me
 
@MadaraUchiha Not to me, I am the messiah thus always right.
 
1:18 PM
I think Jamie is trying to strip Scotland of our 2nd favourite drink... theguardian.com/commentisfree/2015/aug/30/…
user image
3
 
@Callum Not bad
 
2:04 PM
> You just used a keyboard SHORTCUT. Are you sure you meant to do that? You can turn keyboard SHORTCUTS off in your Account Preferences. Click on the OK button to continue.
 
@AwalGarg No, I do not want to use keyboard SHORTCUTS
 
ALT+F4 for a shortcut to turn them off.
 
CAPS LOCK IS CRUISE CONTROL FOR COOL
 
i just spent two days writing a java program °~°
i feel a little nauseous now
 
@Cauterite Do you wish for me to wash your brain out with bleach, after spending two days in hell?
 
2:09 PM
i'd appreciate it
 
Either that or we take a SHORTCUT with an electric drill, I don't mind
 
i could do with some shortcuts, since they don't seem to be part of java's design philosophy whatsoever
if i have to write X y = new X(); again i'll scream
 
X is fine
 
@Cauterite X y = new X(y);
HNNNNG
 
MyCorporateNetwork.ProjectAlphaBeaver.ServerMainCode.CollectionTCO<MyCorporateNe‌​twork.Pr... isn't
 
2:13 PM
X y = new X(); vs let y = X::new() vs let y = new X();
 
@Callum What language is that? (in the middle)?
 
Ruby is just y = X.new :-D
 
@MadaraUchiha Rust
@JanDvorak Pythun fur lyfe m9
 
it's not about the length, it's about the redundancy
 
It's all about the pentiums
 
2:15 PM
@Cauterite That
Java is extremely clunky, too much overhead, too little actual expressiveness.
Now, in Java 7/8 it's better than it used to
 
Java vs PHP? Suicide is an option.
 
Today you can do something like this
Map<MyObject, Map<MyOtherObject, List<MoreObject>>> map = new HashMap<>();
In Java 6 (which, OF COURSE we still use extensively), you have to go all the way
 
can you omit the () like that?
 
Map<MyObject, Map<MyOtherObject, List<MoreObject>>> map = new HashMap<MyObject, Map<MyOtherObject, List<MoreObject>>>();
 
.stream().sort(x -> x.getFoo()).collect(Collectors.toList()).. I'm not sold on Java8
 
2:17 PM
@MadaraUchiha C# isn't much better, as far as I remember.
 
@Cauterite No, apologies
@Callum vOv at least C# has var
Although I dislike statically typed languages because they don't really solve the problems I'm worried about
I program in JavaScript, a lot, I can't remember the last time I've had a type related bug.
Most of my bugs stem from lack of tests, or a design flaw.
Almost never types
 
@MadaraUchiha Such as compile-time correctness validation?
 
@JanDvorak I still do use a linter, mind you
 
Heya everyone!
 
What is the difference between mutable and immutable? Is it that you can change the type of a mutable and can't with an immutable?
 
2:18 PM
I just tend to think that enforcing types in write time is silly
 
@Deep Hae
 
@m have you tried Haskell?
 
@Callum The only rule for immutable, once you get a reference for an object, that reference never ever changes, and neither does the objects referenced in the object originally referenced.
 
Is it possible to do inheritance in JS via constructor functions?
 
@MadaraUchiha Is that universal, or just for JS
 
2:20 PM
@Callum i thought that was a joke
 
@Deep ES6 class syntax mon ami
 
So let list = new Immutable.List([1, 2, 3]);, list will never change, and will always and until it's garbage collected will hold a list of 1, 2, 3.
 
user406009
@Deep You can look at how babel does it.
 
@Callum Universal. That's the meaning of the word "Immutable"
 
@Callum Mutable objects have fields that can be changed, immutable objects have no fields that can be changed after the object is created. A very simple immutable object is a object without any field
 
2:20 PM
It does not mutate
 
@MadaraUchiha Ah, thanks.
 
I'm not well-reheased with ES6, and, unfortunately, I don't have enough time to learn it for this one.
 
@Deep Have a look at the module pattern
And how inheritence is done there
 
okay, thanks
 
@Deep when you say "inheritance" do you mean non-prototype inheritance ?
 
2:22 PM
I'm not too sure what you mean by that. I'll just explain my problem.
 
let Module1 = function() {
    // do some stuff;
    return {
        func1: function() { return 42; }
    };
};

let Module2 = function() {
    let base = Module1();
    base.func2 = function() { return 43; };

    return base;
};
@Deep the gist of it ^
 
I basically have a constructor function that creates a Box object with 4 properties: x,y,w,h, and I want another constructor Door to be a Box object, but with some extra properties: isOpen etc.
 
This can be fairly easily be translated to new Module1() and new Module2(), I'll leave that as an exercise to you :)
 
okey dokey, thanks!
 
2:25 PM
@Deep then in the door constructor, just set the new object's prototype to Box.prototype, i think?
 
@Cauterite Not really, you just have to call the Door constructor
Door.apply(this, arguments), mostly
 
okay, do that instead
 
Box.apply... rather
@Cauterite the setting of the new object's prototype to Box's is something you do outside of the constructor.
You don't want it to happen every time you create a new Door.
 
okay, I'll read into it, thanks
 
Favourite package managers?
 
2:27 PM
@MadaraUchiha oh, i forgot the new operator sets the .__proto__ automatically
 
@Callum npm
 
Any reason for that, or just what you're used to?
 
@Callum We currently don't have anything better vOv
 
@Callum addons.mozilla.org … does that count? (dunno if you're asking about libraries or deployment)
 
Bower isn't really a valid alternative.
 
2:31 PM
I'm totally lost in OOP in Nodejs
 
@Cauterite I suppose it counts, maybe not similar to npm or gem, but I think it counts.
 
oh hi again @VeeeneX
 
@Cauterite Hi!
 
so this new JS string syntax with backticks, this is news to me
 
Template strings, no?
 
2:33 PM
backticks just happen to be my favourite string delimiters
 
That Babel looks cool, I like it
 
i don't care so much for the template feature, but not having to escape newlines is pretty sweet
 
Granted this isn't that useful an example, but in general it is quite useful.
 
@Cauterite IIRC it's also a lot more performant than concatenating strings
 
@MadaraUchiha You have renamed yourself, I mean nick?
 
2:37 PM
@MadaraUchiha i guess that's kinda nice then
 
@VeeeneX From Second Rikudo?
 
@MadaraUchiha I am missing your point. How can a language solve the problems you are worried about (lack of tests and design flaws, as you said)?
 
Quite a while ago actually
@AwalGarg Exactly, it can't.
I see strict typing as a sort of training wheels system.
If you have a lot of devs in various skill levels, it's a good baseline to have
 
!!>String.rawc:\windows\system32\n\r;
 
@Cauterite "c:\\windows\\system32\\n\\r"
 
2:38 PM
But for a solo experienced dev or a core team of strong devs? Nope.
 
@CapricaSix NOICE!
 
Yeah @MadaraUchiha
 
@Cauterite I don't get it, where is the brackets? What did you do to cap D:
 
@MadaraUchiha But static languages are easier to JIT, and even if the type system doesn't help you all the time, they can still help some times.
 
@Callum String.raw :D
 
2:40 PM
@AwalGarg Not really, not with well-written code anyway
 
@Cauterite :DDD
!!should I go cut the grass?
 
@Callum Definitely
 
Fuck you!
 
!!should he smoke it afterwards?
 
@MadaraUchiha Yes, absolutely
 
2:42 PM
I think we're thinking of different "grass"es
 
I hope there's better solution than this : document.head.outerHTML + document.body.outerHTML, to get whole page source after render
 
@MadaraUchiha Don't get to see that kind of code all very often. But I do like to have the ability to break my language.
 
@VeeeneX document.documentElement.outerHTML
 
@VeeeneX document.documentElement ?
 
@Cauterite think again (@ivarni)
 
2:44 PM
Oh too late
 
@AwalGarg works for me… ?
 
whole page source includes doctype as well, which is not part of the documentElement
 
Thanks, I tried to improvise. What is difference of document.documentElement.outerHTML and document.documentElement. Both returns string or not?
 
I literally just used that today in a tampermonkey plugin to change Modernizr classes on <html> while writing flexbox fallbacks
 
@AwalGarg If you're consistent with your types, don't do crazy shit like changing objects after they were created in unpredictable ways, don't use eval or implicit-eval, etc, then JIT has absolutely no problem optimizing your code.
 
2:45 PM
@AwalGarg since his initial solution didn't get the doctype either i thought he didn't want it
 
@VeeeneX document.documentElement is object sorry
 
@VeeeneX documentElement is the object representing the <html> element
 
Thanks again!
 
are there any tag functions other than String.raw?
 
TIL document.doctype
 
2:50 PM
@MadaraUchiha True. But if the language doesn't offer those constructs, JIT will be much more effective. For instance, V8 will have to decide whether the function is optimizable or not before optimizing it.
 
oh, you can make your own tag functions!
 
@AwalGarg Sure, but that happens once during the execution of the program, that's negligible or very near-negligible..
 
@MadaraUchiha Yes, but seeing today's large code bases, lowering the parse time of code seems to be an important area to look in. Specially if the code has to run on mobile devices.
 
@AwalGarg Not really...
On client-side JavaScript, it's the DOM that's the bottleneck for 99.8% of the cases.
Not JavaScript itself.
 
I am not talking about runtime, but loading and parsing the code itself.
 
2:53 PM
@AwalGarg Negligible. Even on mobile.
Unless you have 10MB of compressed JavaScript, negligible.
 
@MadaraUchiha even in terms of battery life?
 
@MadaraUchiha checkout Paul Irish's performance audit of reddit mobile
 
@JanDvorak Again, DOM is what takes the biggest chunk of resources.
Memory, CPU and battery alike.
 
speaking of 10 MB, how about jQuery?
 
@JanDvorak You don't use jQuery in performance sensitive environments
 
2:55 PM
Nor most other libraries, for that matter
 
!!>(x => x)`.raw[0]
 
@Cauterite "SyntaxError: unterminated string literal"
 
don't think that made it to caprica the way i wrote it
!!>(x => x)\t.raw[0]
 
@Cauterite "SyntaxError: unterminated string literal"
@Cauterite "\\t"
 
How can I fix problem with scope pastie.org/10385609 see commented lines
I've tried use like in php :D
 
3:17 PM
@VeeeneX that = this; # this is not a comment in js, but a syntax error
 
3:28 PM
Good morning
 
Hello guys!
 
@AwalGarg Thanks
 
Can someone help me on this:

http://stackoverflow.com/questions/32298040/interactjs-library-does-not-work
I need help please.
 
i'm afraid your jsfiddle gives me a completely blank page
and all the externals scripts with non-SSL URLs won't load ("Blocked loading mixed active content")
 
So @Cauterite what can I do in your opinion?
 
3:39 PM
@FranciscoMariaCalisto change all script src URLs from 'http://…' to '//…'
 
Hae gais
 
<script src = "js / drag-drop.js"> </ script>
wth is this
you don't simply insert spaces in paths
 
wtf
 
@AwalGarg it was SO disformat
in code it have no spaces
 
Basically, within web development, we have HTML,
And within HTML, we can use href and src attributes to link css and js files.
To link these, we need to use paths.
Pl0x edit your post m9
 
3:43 PM
I will try @Cauterite
 
@Callum how interesting
 
I'm bit lost Can I use npm packpages in casperjs?
 
4:02 PM
4
Q: Use a node module from casperjs

Darren CookIs it possible to install a node module, installed via npm, and then require it from a casperjs script? (I see lots of posts and tools for running casper or phantom from inside node.js, but that is not what I'm trying to do.) The casperjs docs seem to say it is possible, but only show with hand...

Pl0x learn how to google.
 
Morning
 
Morning
 
4:42 PM
@Callum the Italian rugby team sucks hard XD
 
@SomeKittens thats pretty interesting
ends one day after the js13k
 
Btw, I'm moving to ox in 2 days :D
 
@towc I could tell :p
 
5:04 PM
@SomeKittens Looks a lot like TDwtf's challenges
 
@Zirak Haven't been on there in ages. What do they have?
 
@SomeKittens They're things like making a card shuffler which cheats, and then a card shuffler which cheats but also detects when others are cheating, etc.
Or rather tries to signal to the other players that a cheating card shuffler is used
In unrelated news, it seems like jsh is pretty abandoned (maybe because I pretty much abandoned it). Since I created it with this room in mind, can anyone give me their ¢5 on how to make it usable and a great thing overall?
If interest is shown in it my plan is to bump it to the current console's version, add an importScript function and work on marking obsolete lines (so you can make a mistake without it seeming like part of the overall plan)
@Lalaland jsh.zirak.me
4
 
@Zirak enable ES6 flags? You may have already done this
 
@SomeKittens oh, inject babel. Interesting.
 
It's based on Chrome DevTools, right?
 
5:12 PM
yep
 
Chrome has flags for fat arrow 'n stuff
can you flip those?
 
nope
 
boooo
injecting Babel and/or other libs then
 
user406009
@Zirak You might want to consider another name. There are a bunch of stuff named jsh.
 
@Lalaland Too late
Mine will trample the others
 
5:14 PM
@Lalaland I don't think marketing this into massive $$$ is Zirak's goal here, given xhe's stated above that this is for /17/
 
Not just for this room, but the idea came from this room
 
GH does TypeScript highlighting. Win!
 
I need to pick up some abandoned repos...like switcheroo. Switcheroo is awesome.
 
I'm slowly catching up on my GH issues.
 
...let's not talk about SO-ChatBot. It's a mess.
 
5:23 PM
Newjob's cool with me doing minor maintenance work, especially since I maintain a few of the tools we use. Yay!
Major work too, in the case where a tool is missing a feature we need.
 
oh, neat. Remind me where you work for again? Nordic something?
ah, so you and @copy are rivals
Better work place?
 
WAY better than my last job
 
That thing is cool. What is it?
 
If copy and I are rivals, we're really bad at it.
@TomW (semi) live attack data against Norse honeypots: map.norsecorp.com
 
@SomeKittens ah yes, I've found the FAQ link
 
crl
5:30 PM
var myHeaders = new Headers();
var myInit = { method: 'GET',
               headers: myHeaders,
               mode: 'cors',
               cache: 'default' };
var myRequest = new Request('flowers.jpg',myInit);
fetch(myRequest,myInit)
something is wrong there, myInit used twice, maybe it's just fetch(myrequest) ?
 
@SomeKittens How many people work there?
 
@TomW It's some pretty cool stuff. A gazillion datums all over
@Zirak 100+?
dunno exact numbers
Still has the feel of a small, scrappy startup though
Combines the expectation of everyone pulling their own weight with the autonomy and trust required for everyone to be awesome.
 
@Zirak jsh seems really useful - 8/8
 
gr8 m8, 8/8
 
crl
I h8 u
 
5:37 PM
i cri evrytim u siy tht
 
@Callum Thanks. Will you use it though?
 
> ultimately outputting the data via Output nodes.
I'm so good at naming things
 
@Zirak Yeah, my school doesn't like us using dev tools in case we "hack the network", so I'll be using it a lot at school.
 
@Callum Sounds legit
 
If you can hack the network through devtools, it deserves to be hacked
what's the worst you can do? XHR? WebRTC?
and there's nothing stopping you from using one of a gazillion static site providers and just running the JS that way
 
user406009
5:43 PM
@SomeKittens There's actually an interesting part of the websocket spec dealing with this.
 
The worst people have done is, wait for it, changed text to Comic Sans and made a teacher believed it would stay that way. Skrubs.
 
user406009
With websockets, the data is arbitrarily masked, so you can't use it to attack the network components in between you and the server.
 
@Callum The vulnerability there is the teacher, not the browser
 
@SomeKittens IT guy don' give a fuck :p
 
@Callum I worked for school IT in two different districts. Sounds about right.
 
user406009
5:45 PM
A school that stupid isn't going to notice the difference between jsh and the developer tools.
 
Smart folks who just didn't care to make sure everyone was educated (ironically enough). I don't blame them.
 
user406009
Looks like a duck = its a duck: for those types of people.
 
@Zirak I think i found a bug :p
 
You probably found 10, it's pretty old by now
 
Yup, it fucks itself when you give it document
 
5:48 PM
oh, yes, I haven't done node previews yet. It's really complex.
 
Can I get some more downvotes and rude/obscene flags on this answer (and/or comments)? Thanks! stackoverflow.com/a/32299300/2234742
Whoops
Sorry let me fix that link
Ok link fixed
 
@MaximillianLaumeister FlaggeWhat a charming young man. Flagged.
 
Using express 3.0.3, express.session middleware create cookie even for users that are not logged in, so basically when user goes to example.com where he can fill out login form, middleware immediately create 'connect.sid' cookie, is there some way to avoid that? (i want cookie to be created only when user logs in)
 

« first day (1779 days earlier)      last day (3168 days later) »