« first day (1600 days earlier)      last day (3339 days later) » 

12:01 AM
yeah I'm looking at it
 
1:06 AM
@SterlingArcher imgur.com/a/T3XWO best comment
 
1:24 AM
hi rlemon.
 
 
1 hour later…
2:26 AM
@AwalGarg Hahaha yeah, some of us got suspended too, as Zirak said
I think that was what started @rlemon's obsession with blinking GIFs too
 
sure was
 
Is it possible to write a JavaScript where the user can define how many columns the table will have and define the width for each?
 
@copy hi
 
Thank you in advance.
 
2:46 AM
ember vs react, go
 
@KyleHotchkiss both have 5 letters?
 
 
2 hours later…
5:01 AM
 
 
1 hour later…
6:27 AM
I am moving an rectangle element when user clicks mousedown and then mouseup on that element.
This is working fine. but when user mousedown on the element and mouseup outside of the browser/window, my implementation fails.
How can I solve this issue?
 
Cancel the event when the mouse moves outside the bounding box
 
hmm interesting :)
but fails when user moved out of the window but didn't mouseup and again enters the window
right?
The continuity will be lost
and the user will get surprised
 
I'm assuming you're trying to do some sort of drag and drop thing?
 
yeah
 
Yeah just drop it where the mouse leaves the box
 
6:33 AM
not exactly drag and drop, but drawing rectangles on a canvas like container
 
@AwalGarg roflol
 
Yeah I've done something like that before
No one will complain if it stops moving when their mouse is outside the window
 
@Mr_Green hiiii
 
hi
 
howzzya doing with the backbone?
 
6:42 AM
@Meredith don't think as a programmer and tell me, isn't that bad experience ? :)
@argentum47 yeah still working on it
 
It's what literally every program does
 
whats up with you?
 
I have done away with the backbone view and used react in place. but my css sucks. gitapp.pagekite.me
 
@argentum47 you used backbone + react?
 
yeah. :P
 
6:45 AM
even I thought the same but didn't do that
btw, your site loads slowly here
but react says it will increase speed by 80% :?
 
actually I think its because of the server. I am hosting it from my localhost
plus there are ajax requests
I mean everything is ajax :P
 
ohh we can also host through localhost? wow
 
there is ngrok, pagekite, proxylocal
pagekite is paid. first 30 days is free :P
and ngrok generates a url like 34567add.ngrok.com
 
wassup guys!
 
nice
ceiling :P
ohh also a light
 
6:50 AM
:D, can you tell me how to fix that navs when viewed in 320x480, its like stacked but I want it like the facebook mobile application.
 
@argentum47 I would remove the outline from the tabs that appears when it is clicked.
 
clicked/focussed
use outline: none;
 
and how to put them side by side ?
 
You want the tabs to be next to each other on narrow screens?
 
6:55 AM
yup
 
Are you sure?
 
like that second navbar
 
Like you want to replace the text with icons and make the tabs really small?
 
yeah
ow
ok will try that. but how to specify that for small screens no text only image.
 
That might be the culprit
Yeah so remove the nav-justified class and add your own that reacts how you want it to on narrow screens
 
7:02 AM
ok
 
And instead of Users, you'll want <span class="icon"></span><span class="title">Users</span>
Hide .title when the screen is too small
 
yah
gotcha
 
7:46 AM
I think I will discard the nav-tabs. its no use. :D
after customizing nothing of bootstrap remains
 
user4433485
8:18 AM
Hi
 
user4433485
Can someone help me maybe =)
 
user4433485
I am trying to move a image from class to class in css, I did some research and find something interesting but it's not really what I want
 
user4433485
<div id="boyto" class="fimg2">
 
user4433485
woops
 
8:42 AM
//class to class in css// ??@HaltlolXD
guys is there any way to get marked places from google map
for example all stores within USA which are all marked in google map
 
Why are we in weekend room mode?
 
coz I'm in my git pull coffee meeting
 
9:02 AM
that makes sense yeah
 
I like the name they gave to the meeting at my company :-)
it's the weekly update about everything going on...
 
@SterlingArcher this story has been running on and off the internet for at least 10-15 years
 
9:17 AM
oh hmm
> Releases for OSX 10.10, Ubuntu 14.04, and Windows 8
Terra seems to be really alive
I suppose it's time I gave it another shot
 
You mean the game, TERA, or something else?
 
@RoelvanUden no, it's a language called Terra
low-level / static / compiled(native)
 
Everyone his or her own hobby I suppose. I guess yours is trying languages? :D
 
@BartekBanachewicz what attracts you in languages?
 
@RoelvanUden nah, that would be rightfold from the lounge. I study them more than try.
 
9:20 AM
@BartekBanachewicz What's the point of Terra? Adding static typing to what appears to be Lua? Does it use LuaJIT for speed?
 
@FlorianMargaine by the time terra came out I was still in the C++ phase and I was a great fan of hybrid solutions (dual-languaged). Terra fit that perfectly
@RoelvanUden Terra is compiled AoT.
the compilation process is metaprogrammed as Lua programs emitting terra code
IOW, Lua does to terra what templates do in C++
 
@BartekBanachewicz 14.10 came out a while ago
 
@BartekBanachewicz did I already show you this?
 
Also window 8.1
 
Terra is actually kinda interesting.
 
9:21 AM
CL-USER> (defun foo ())
FOO
CL-USER> (disassemble #'foo)
; disassembly for FOO
; Size: 22 bytes. Origin: #x100457E254
; 54:       498B4C2460       MOV RCX, [R12+96]                ; thread.binding-stack-pointer
                                                              ; no-arg-parsing entry point
; 59:       48894DF8         MOV [RBP-8], RCX
; 5D:       BA17001020       MOV EDX, 537919511
; 62:       488BE5           MOV RSP, RBP
; 65:       F8               CLC
; 66:       5D               POP RBP
 
@RoelvanUden I wrote a simple OpenGL program in it once
@FlorianMargaine neat
@BenjaminGruenbaum I suppose as a single guy working on a compiler he's doing well anyway
I was kinda hoping for better ARM support
 
Oh yeah for sure
 
1
Q: jquery variable decleration

behnamI've been looking at the jquery source code. It first declares a bunch of variables like this: var deletedIds = []; var slice = deletedIds.slice; var concat = deletedIds.concat; then it start declaring a comma separated list of functions and variables: var version = "1.11.2", // Defi...

 
Terra technically could fit in something very small, it's just typical builds carry on the runtime environment
 
What do you think about RPython?
 
9:24 AM
kinda like smalltalk... so it can recompile parts of it on the fly
 
@BartekBanachewicz of course it does it for other functions too
 
@FlorianMargaine you could prolly add that to GHCi, GHC api should have features for it
 
@BartekBanachewicz it's in the common lisp standard ftr
 
@BenjaminGruenbaum I... don't use python enough to form an opinion.
 
still fun
 
@FlorianMargaine I got stuck on "Ruby on Rails", it's not a drug I think but it's not a programming language either
 
> You scored 19 out of 25!
welp
@ivarni neither is PHP
har har
 
But seriously, it's a framework
 
9:32 AM
yes congratulations on ruining the joke
 
I'm here all day
That joke is so old it was probably ruined ages ago anyway
 
9:46 AM
hello guys
 
Hello
 
cheers ali
 
I'm having a problem converting a Gruntfile.js to a gulpfile.js. I posted a question on SO about it
-1
Q: Creating gulpfile.js equivalent for the following Gruntfile.js

Ali SamiiI have the following Gruntfile.js that I am attempting to convert to a gulpfile.js but I am unsure how to write the beginning part of the gulpfile.js so that the variables declared are understood. I am speaking about the following 2 lines: var config = grunt.file.readJSON('json/config.json'); va...

 
@AliSamii isolate it to your actual problem - how to do "grunt.file.readJSON(" in gulp
@AliSamii that'd just make it a duplicate though, (hint: you can require JSON files)
 
you mean restructure my question? Or think about a solution based on your comment?
or both?
 
9:53 AM
I'm telling you three things:
- Your question is bad because it's too specific to your code - don't show type errors, explain the error shortly instead. You did not sufficiently isolate your problem
- You should edit your question to be more generic
- You can solve your problem by loading JSON files with `require` instead of grunt.file.whatever
There is no way a title like "Creating gulpfile.js equivalent for the following Gruntfile.js" will help anyone in the future.
 
OK. I agree, the idea is to make it help others in the future.
I will reformat/rewrite the question to benefit a broader audience.
 
See my edit
 
:)
 
and, posted an answer.
 
I always tend to put more in, but sometimes (often) less is more
 
10:00 AM
It's about isolating the problem as much as possible
 
You won't even have to ask 9/10 times if you isolate the problem enough.
 
@BenjaminGruenbaumn Thanks. Based on your earlier hint, I also looked up requiring files in gulp and found this plugin npmjs.com/package/gulp-data but I think that is probably unnecessary.
Your answer to your better edited version of my question solves my needs, I believe.
 
glad I could help
 
is there any alternative method for crystal report in linux ?
 
@underscore How about a virtual machine in Linux that runs your crystal?
 
10:17 AM
Oops
use windows in linux as virtual
no never
 
How about just using Crystal Reports? :-P
 
i need to print an invoice from ubuntu
 
I tend to make invoices in HTML and make a PDF of it with PhantomJS
Because easy and lazy and all of that.
 
for . matrix printers ?
 
I think underscore is talking about desktop version rather then cloud/web/server based version. Otherwise the problem shouldn't exist...
 
10:22 AM
i hope to use linux in every single PC in our branch network
 
@Sheepy I have no idea what functionality he's using. He didn't say. It's very ambiguous to ask for an 'alternative' without specifying whatever is needed, so I just went the most common thing I think people do with it.
(Which is generating something PDF)
 
We do now it with PHP @RoelvanUden
PHP to PDF
though FPDF
But there is a problem exits when our . matrix printer is changing
 
@RoelvanUden Good. I have already given up on my common sense. I use a trackball. Using left hand. (Our IT eventually installed a mouse, on right hand side.)
 
@underscore so from tb to mdr tb + aids
 
without installing drivers for . matrix printer i want to print a PDF
 
10:27 AM
thats hard.
why can't you just use google chrome as a service ?
 
why google chrome ?
 
@underscore google takes the headache of drivers and connecting to the os
and renders pdf for you from decent html, and you can just make this all a nice BOT !
 
@darkyen00 Hmm. If the pdf still needs to be printed on a dotmatrix, it doesn't matther whether you have pdf or html.
 
@Sheepy still :P chrome will do the hardwork for you.
you can just dump html -> print via dtm
 
@darkyen00 When I search dtm, I get some cars. Seems to be a racing team.
 
10:30 AM
Dot Matrix
 
Oh, thanks. Not sure how that config works. I'll give up...
 
actually do we need PDF for this ?
 
Ah I know. I assume it is driver error. You assume it is crystal report incompatibility,
 
can't we just use canvas or svg ?
 
@underscore yep
 
10:32 AM
@underscore Of course you can.
 
PhantomJS runs on almost anything, headless, and does that for you o_o
 
@RoelvanUden what is the doc path i just want to read ?
?
 
how can i use print functions ?
 
1
Q: Print page in PhantomJS

ChruSIs there any way to print a page in PhantomJS. I want to pass my page to PDF Printer (PDFCreator) in order to get a good-looking PDF page (See my question here) I'm using the following code, but it doesn't work var page = require('webpage').create(), address, output, size; var input = phanto...

 
10:38 AM
Then when you have your PDF/PNG/whatever just use a regular print lib
 
11:31 AM
0
Q: HTML Columns without css

Nirali JoshiI want to generate 2 columns from html. I don't want to use , -webkit-column-count: 3; /* Chrome, Safari, Opera */ -moz-column-count: 3; /* Firefox */ column-count: 3; Is there any other way to generate columns ?

 
11:46 AM
please close it ^
 
11:59 AM
well, at least he knows to stay away from column-count :)
it's one of the few things that only works properly in IE
 
hello
 
The answer is very strange. I fail to see how it doesn't contain CSS...
 
@dystroy lol I didnt' even register the "no CSS" part. I guess OP wants a <table>
 
Hi all good evening..
 
is there function in javascript that tells you if a variable contains value? For example isDefined(myvar) checks if myvar isn't null or undefined or NaN
 
12:04 PM
@ivarni That's what I suggested in comment but... I won't answer this until I know why he wants a no-css layout...
 
I can make my own function, but just wanted to check.
 
Hi I have small doubt? Its possible to customize the addeventlistener dialog design
?
 
@Vlad There's none but be careful that there are many possible specs for such a function and the one you want differs from one case to the other one so it's usually saner to just test in place (it might be if (myvar) if you know what you do.
@SKM17 What's the "addeventlistener dialog" ?
 
@dystroy This page is asking you to confirm that you want to leave - data you have entered may not be saved
 
Oh, you mean "onbeforeunload" ?
 
12:09 PM
gonna make my own.
 
@dystroy yes
 
You may suggest a message by returning it in your callback but browsers tend more and more to ignore it, as the consensus is that such a dialog is bad practice
 
I hate those messages so much I have a userscript setting window.onbeforeunload to a noop-function on sites that use it
 
@dystroy but customer need like this
 
hasValue: function (myVar) {
            if (myVar !== null &&
                myVar !== undefined &&
                myVar !== NaN) {
                return true;
            } else {
                return false;
            }
        }
 
12:14 PM
@SKM17 No : he asks for it, he doesn't need it. What he needs is somebody knowledgeable to help him make a sound specification.
 
@dystroy var formSubmitting = false;

window.onload = function() {
window.addEventListener("beforeunload", function (e) {
var confirmationMessage = 'It looks like you have been editing something. ';
confirmationMessage += 'If you leave before saving, your changes will be lost.';

if (formSubmitting) {
return undefined;
}

(e || window.event).returnValue = confirmationMessage; //Gecko + IE
return confirmationMessage; //Gecko + Webkit, Safari, Chrome etc.
});
};
this is the code we have used to populate while navigating to next page without saving the modification
 
@SKM17 It's classical and OK (unless I miss something). But you have less and less guarantee the user will see your message.
onbeforeunload messages should (and probably will) die
 
user3949359
Are primitives in JS also functions? I've seen Boolean being used as a function.
 
user3949359
How is this possible?
 
12:25 PM
Boolean is a function
true is a boolean
Maybe you could use code to point what precisely confuses you ?
 
user3949359
6
Q: Higher-order functions in Javascript

Sir BelkinI am reading Eloquent JavaScript (The new edition) and I reached the part on higher order functions and I'm confused on what's happening in the following code. function noisy(f) { return function(arg) { console.log("calling with", arg); var val = f(arg); console.log("called with",...

 
@Vlad This is terrible.
 
@nosille Make the distinction between Boolean and boolean
There;s a function in JS called Boolean.
 
user3949359
so, it's not the primitive
 
While true and false are of type boolean.
@nosille Right
The function takes an argument and returns a boolean.
 
user3949359
12:30 PM
why would they do this? It's confusing
 
There wasn't a whooping lot of time to design the language.
 
@nosille I don't think so, actually
you have a type boolean and a constructive coercive function Boolean
 
!!> Boolean('false')
 
@ivarni true
 
it can be confusing
 
user3949359
12:33 PM
I see
 
@ivarni it's coercive, most of those are
I don't even know if that's the right spelling
yeah I think it is
 
@BartekBanachewicz Yes, I know, but I can see how some people coming from other languages might get confused
is what I am saying
 
"coming from other languages" is a bit moot imho
 
Everyone always applies their prior knowledge to a new language.
 
A language should be consistent within its domain, monkeying other languages isn't strictly necessary
 
12:35 PM
so type coercion or truthyness never threw you off guard?
 
In such a way, it's confusing.
 
@RoelvanUden that won't take you far in Haskell if you come from JS or C++
 
@BartekBanachewicz That's why nobody likes Haskell. Except you.
 
@RoelvanUden Except for @BenjaminGruenbaum. He loves Haskell.
 
1 min ago, by Bartek Banachewicz
@ivarni it's coercive, most of those are
for me implicit coercion is broken in principle
it's not about one particular JS implementation
(implicit coercion, a.k.a. weak typing)
 
12:41 PM
@BartekBanachewicz Strong/static typing solves a problem that just isn't there anymore.
 
@SecondRikudo excuse me?
 
Type safety is a nice feature, but how many type related bugs have you had in the last year when coding JavaScript for instance?
 
hasValue: function (myVar) {
            if (myVar !== null &&
                myVar !== undefined &&
                !isNaN(myVar)) {
                return true;
            } else {
                return false;
            }
        }
 
Because I can count mine on one hand
 
this is better :D NaN !== NaN
 
12:42 PM
@SecondRikudo a lot
 
@BartekBanachewicz In that case, you may lack discipline.
 
most of the errors i have in JS are TypeErrors
 
@SecondRikudo Way too much.
 
@SecondRikudo do you also say that when coding in assembly?
 
@BartekBanachewicz I don't code in assembly, I am sane.
 
12:43 PM
"JavaScript is the assembly of the web!"
 
@SecondRikudo and why is suddenly using asm than js less sane?
After all, you might just lack discipline.
 
@BartekBanachewicz Well, let's start with the fact that I code mostly web applications. Not motherboard firmware.
 
@SecondRikudo but you still throw blanket statements like static typing solves a problem that just isn't there anymore., despite being aware of other problems in different areas of programming?
 
Second, I don't consider myself smart, after all, Erik Meyer only has 4 brain cells, and I'm certainly not as smart as he is. But that fact that I very rarely get type bugs in my code means a thing or two about how I code.
 
@BartekBanachewicz Do you really have type bugs in your JS code ? That's hard to imagine when I assume you know how to code
I never saw one in my code.
 
12:47 PM
Type bugs happen when you're not familiar with the language
And don't get me wrong, JavaScript has a lot of quirks and crazinesses
 
@SecondRikudo why don't you remove "type" from it
 
But once you're sufficiently familiar with the tool you're working with, types aren't really a problem anymore...
 
after all, smart programmers don't create bugs
 
That's also why I don't pay attention to == vs === : == doesn't bring you bugs when your code isn't stochastic
 
NaN is toxic :D
 
12:48 PM
@BartekBanachewicz That's not what we say. What we say is that you usually know the types your API requires
 
@SecondRikudo types are never a problem. They are a form of annotation, used for reflexion, documentation, and correctness checks.
 
@BartekBanachewicz To be perfectly honest I've had two thrown exceptions in my application going back from today all the way to beginning of 2014
It's not about smart, it's about discipline.
 
@dystroy Do you? API design is a complex matter.
 
If you're disciplined with your tests, with your build, with your workflow, you won't get bugs in production.
 
And frankly, vast majority of JS libraries I used had horrible APIs
 
12:49 PM
@BartekBanachewicz Of course API design is hard but confusing types isn't something you do
 
@SecondRikudo that's blatantly false.
 
@BartekBanachewicz My application proves you differently.
Wish I could have shown it.
 
Your application is a web application doing things that compared to some systems are really pretty trivial, no offence.
Discarding the value of static typing everywhere basing on such a limited scope is silly, imho.
 
@BartekBanachewicz My application is a web application that's 95% automatic
 
yeah well I am sure your application is a great one.
you're still missing the point.
 
12:51 PM
To sum it up: Long live TypeScript!
 
@BartekBanachewicz Let's not get into the "my application is bigger than your application" argument.
My application doesn't do "trivial" things by any standard
 
@RoelvanUden I wish people stopped bringing up TS every time static typing is mentioned.
@SecondRikudo The only one doing that right now is you.
 
But a good test coverage and being code-Nazi with myself pays off.
 
@BartekBanachewicz Because...?
 
@RoelvanUden because its type system isn't exactly state-of-the-art
 
12:52 PM
hasValue: function (myVar) {
            if (typeof myVar=== 'number') {
                if (isNaN(myVar)) {
                    return false;
                }
            } else {
                if (myVar!== null &&
                    myVar!== undefined) {
                    return true;
                } else {
                    return false;
                }
            }
        }
 
We're in the JavaScript room and talking about type checks, TypeScript naturally emerges
 
The way I view strong typing, today in 2015, is like training wheels.
 
@dystroy but you have to document the API anyway, at which point you're effectively typing type annotations
 
much better
 
You don't really need to worry about them too much once you're acquainted enough with the tools you have.
 
12:53 PM
@Vlad Not all paths return a value.
(Static types would've told you ahahahaha)
 
@SecondRikudo Thank god you're not in charge of writing the software of the planes I'm going to fly on.
 
static types?
 
@BartekBanachewicz This isn't a constructive argument
 
@BartekBanachewicz Lol, because you think those who are in charge of them are much better?
 
@dystroy true.
 
12:54 PM
Good luck with that.
 
@SecondRikudo I am pretty sure you're a very experienced and knowleadge'able developer
 
@Vlad return typeof myVar === 'number' ? !isNaN(myVar) : mVar != null
Same thing. But shorter. And proper.
 
Surely people with years of experience could learn a lot from you in terms of implementing mission-critical systems
 
@BartekBanachewicz Maybe more convincing : My code isn't bug free. Miaou for example contains many bugs. But types confusion isn't where they come from.
 
7 mins ago, by Bartek Banachewicz
@SecondRikudo types are never a problem. They are a form of annotation, used for reflexion, documentation, and correctness checks.
you all seem to be focusing on the last part
 
12:56 PM
It's all tied
 
@BartekBanachewicz My boss says that I can't use types. I want to keep my job because I have 4 kids.
 
@phenomnomnominal you can't "not use types"
 
@BartekBanachewicz yeah but that's what my boss said.
 
you can not use static type checking or explicit type annotations.
 
He's a manager, and he heard it from a consultant.
 
12:57 PM
@phenomnomnominal well, he doesn't know a lot then.
 
Types are a problem.
never say never.
 
@phenomnomnominal Oh then it's true. If your manager told you, and it comes from a consultant.
 
@dystroy It's only as tied as you want it to be. Strongly-typed languages with dynamic typing exist.
 
No arguing about it.
 
@RoelvanUden doesn't matter if it's true. It matters if I want to keep my job.
 
12:58 PM
yeah whatever. make it first work, than make it look nice
 
(this isn't actually true btw, but I don't like people saying something is never a problem.)
The only thing I've really learn writing software is that nothing is never a problem.
 
@phenomnomnominal that particular example was particularly bad
 
@BartekBanachewicz I guess you've never worked for idiots then.
 
no, I haven't, and I don't intend to.
 
@BartekBanachewicz Amen to that.
 
12:59 PM
And I hope you never have to
 

« first day (1600 days earlier)      last day (3339 days later) »