« first day (1567 days earlier)      last day (3379 days later) » 

1:00 PM
which means I can both use the function normally in code, but also use the string as a dispatch table github.com/Ralt/lxc-wrapper/blob/master/cli.lisp#L25
 
@FlorianMargaine nice.
 
all this while keeping a sane syntax ((defcommand name ()))
 
So you modify the original "defun" and wrap it in something enabling reflective behaviour?
 
nope...
let me show you
 
well, create a new version of "defun"
 
1:01 PM
 
I suppose it's possible because defun is a function in Lisp, no?
 
this is the macro expansion on the left ^
it's what ends up being compiled after the macro is expanded
(I got this by using C-c C-m btw)
 
I think we just disagree on the wording
 
I guess
defun is not a function, it's a macro
 
@FlorianMargaine what's the practical difference from the outside?
ah, it's resolved in compile-time?
 
1:03 PM
yep
 
okay, I see it now I think
 
at runtime the macros don't really exist anymore
 
to do this kind of stuff in my world you use Template Haskell
 
yep, it's similar to C++ templates too. Only, you know, sane.
 
data Florian = Florian { _name :: String }

makeLenses ''Florian  -- introduces a Lens called `name`, that operates on values of type Florian
 
1:05 PM
and also more powerful, since you can do loops, create unique variables (gensym), etc
@BartekBanachewicz that's not hygienic tho, is it? (the _name variable is unavailable for further usage)
 
makes sense... wait... HAHAHAHA
 
@FlorianMargaine both _name and name are still present. I'm not sure I understand what "hygienic" means here.
 
lol
@BartekBanachewicz not polluting the scope by something happening at compile time
in the first example I gave you, the stream variable will never collide with another variable
also: I found something amazing. fpm. Effing package management.
 
Has anyone had issues with gulp-browserify sometimes missing a module when compiling the output? When I was working on something at home last night, I had to constantly re-run my gulp commands, because browserify would leave some require's undefined.
 
@FlorianMargaine I'm not sure how TH works in this regard
 
1:11 PM
sometimes it would get packaged, and sometimes it was undefined. It was terribly inconsistent
 
@NickDugger just use make
 
make?
 
yes, make
 
@KendallFrey This troll would only work in a computer science lab building
 
uhhh, I'm afraid that a single word is not helpful.
 
1:12 PM
@NickDugger I had several scripts to output, but these lines are basically enough if you have a single entry point: github.com/Ralt/erinome/blob/master/Makefile#L24-L25
well, that + the all task and the variables definitions, ofc.
 
I don't understand what I'm looking at. Makefile?
 
yeah
you don't know make? :s
 
Nope
bro, I'm noob
 
damn
are you on windows?
 
yeah
 
1:15 PM
anyway
make is probably older than you
 
lol
 
In software development, Make is a utility that automatically builds executable programs and libraries from source code by reading files called makefiles which specify how to derive the target program. Though integrated development environments and language-specific compiler features can also be used to manage a build process, Make remains widely used, especially in Unix. Besides building programs, Make can be used to manage any project where some files must be updated automatically from others whenever the others change. == Origin == There are now a number of dependency-tracking build utilities...
1977
older than you: confirmed.
 
It's older than most people that venture into this room
 
yep :P
except @dystroy
maybe @Luggage? dunno how old he is
 
And @mikedidthis :P
 
1:17 PM
isn't mike like 32 or something?
he'd have to be 38 to be older than make
@NickDugger anyway, make is something that uses Makefile and runs tasks...
does that remind you of something? :D
 
yes lol
I'll definitely look into it
 
and basically... you can run tasks and give dependencies to these tasks, so they run other tasks if necessary...
and you can make make only run if files changed...
 
So make is the same age than my wife ? OK, now I'm convinced, I'll use make to cook my dinner build and test miaou instead of using my own shell scripts...
 
I basically use watch make and go on with my life
(watch is a program that runs a command line every x seconds, 2 by default)
@dystroy lol :P
 
linky to watch pls
Make me a pro
 
1:21 PM
!!tell NickDugger google man watch
 
Linux :(
 
this is on linux though... not sure if you can get it on windows
I'd just install cygwin or something on windows though...
 
@Loktar come join me at rebecca.blackfriday
 
I was looking into cygwin for something c++ related, but I forgot what it was. Compiler maybe? I think I was drunk
 
1:23 PM
how do I force a youtube video to loop?
 
@KendallFrey there are websites that do that for you
 
cygwin gives you some linux-like terminal and environment
 
hi guys
I am currently working on angularjs framework.
 
what is the main use of angularjs .why should I use it
?
and why not simple jquery
 
1:28 PM
._.
 
They're not even the same thing
use this aurelia.io
/worst advice ever, and not even real advice
 
haha
but please anybody tell me the exact use of angularjs
 
There is no exact use for it, just like there's no exact use for jQuery, which you can see by the many people that abuse it.
do you know what MVVM stands for?
 
yes
Model View ViewModel
 
Yes. jQuery doesn't have that
at all
 
1:32 PM
so basically you are saying that as jQuery doesnt have MVVM architecture thats why these different MVC based javascript libraries are developed
 
I think you're not understanding what the main point of jQuery is
jQuery is for DOM abstraction. Using it for anything else is not only weird, but misuse, in my opinion. It's evolved into a pile of garbage
Angular does have its own DOM abstraction included, but it also does a lot more, like the MVVM
 
it's MVW, not MVVM
 
jQuery does not (out of the box) have MVVM
Fine
MVWhatever
 
exactly :P
 
anybody here have experience using timer
s
 
1:36 PM
you mean MVVM based frameworks can also do same functionality of jQuery
along with its own added functionality
 
Yeah, angular is known to have 'its own jquery'
 
aka jqlite
 
wat -- oh, it literally is called jqLite lol
 
function startAlertTimer() {
    AlertTimer = setInterval(function() {
        getKioskMessages()
    }, 2000);
}
function stopAlertTimer() {
    window.clearInterval(AlertTimer);
}
 
> angular.element delegates to Angular's built-in subset of jQuery, called "jQuery lite" or "jqLite."
 
1:37 PM
startalerttimer is called on pageload
this works correctly but now breaks my on click
 $(document).ready(function() {
     $('#msg_alerts').on('click', 'tr', function(event) {
         var alerttexts = $(this).children().map(function() {
             return $.trim($(this).html())

         }).get();

         $('#msg_alerts tr ').click(function() {
             $('#basic-dialog-content').modal();
             return false;

         });
         //alert(alerttexts.join())
         console.log(alerttexts)
         $('#basic-dialog-content tr').last().after('<tr id="' + alerttexts[0] + '"><td>' + alerttexts[0] + '</td><td>' + alerttexts[1] + '</td><td>' + alerttexts[2] + '</td
now displays 4 instances of the message in the console
 
@Corbo152 make a jsfiddle example of the problem
 
@NickDugger okay mate cheers
 
so what differentiate angular from knockout/backbone/node?
 
Personal preference, and fanboys
Node is not the same thing, though
Node is a server/back end
 
haha and I though because its a product of Google
 
1:42 PM
Node is not a google product. do you mean Angular?
 
yes
 
Yeah, when it comes to MVWhatever, it's all personal preference. Some people love Knockout, some people love Angular, and some people (like myself) don't like any of them
 
(y)
 
if I had to use one, I'd use this one that we just found yesterday aurelia.io
 
so what do you think what it makes so different from others?
 
1:46 PM
@NickDugger js fiddle gonna be a nightmare as its an aspx page and data etc.
ill just try and fix it lol
 
Just make a really simplified version. No need to copy/paste a whole code dump
 
think its something to do with stopping the timer
 
@NickDugger okay
 
@John that message wasn't meant for you lol
 
any knockout experience available....
 
1:49 PM
@NabeelQadri 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.
 
What makes Aurelia different is that it allows you to use the new ES6 syntax, without making up its own syntax and methodologies. It's all just plain old javascript
 
@FlorianMargaine Older than me but not but much.
 
anyway @FlorianMargaine TH
 
Make was still pooping itself when I came around.
 
@NickDugger oops
 
1:50 PM
i want to add the class to parents when checkbox is checked "http://knockoutjs.com/documentation/if-binding.html" but the parent is out of the scope of with binding
 
@Luggage so you're like 36?
 
35. Make was a slow learner.
 
I see.
heh
 
jsreport.net looks pretty nice. It's nothing I can't do with phantom-js myself, but still nice.
 
can anybody tell me then why should I use angularjs (excluding personal interest)?
 
1:54 PM
You don't need angularjs, but it's a popular-ish framework that does lots of the things you'll need for a rich web UI.
There are many worse decisions.
 
TIL blob stands for binary large object.
 
I doubt that was the answer you're looking for but I'm no angular evangelist.
 
I'd say you should use Angular because it does all the things!
(Like jQuery of course!)
 
If you don't have opinions about how a web app should be structured than just doing it 'the angular way' will give you a solid foundation.
 
Hi. Question for somebody good with Angular. I have a directive with transclusion, which has its own controller. This controller is however, never instantiated it seems. Should this be working just fine?
 
1:57 PM
Personally I use a piecemeal stack of socket.io (and some jQuery $.ajax i'm removing), knockout.js, crossroads
 
I just go with NIH...
 
What does NIH stand for? I assume not National Institutes of Health.
Or you just mean 'roll your own'?
 
yeah
NIH = not invented here
 
gotcha
 
I usually go with something simple tho
duck typing et al
 
2:03 PM
that's why I like making a stack from 'micro frameworks'.
 
just use github.com/ndugger/HTMLBuilder.js -- it does... some things
 
@Luggage this is for php, but the concepts of this tutorial are absolutely what I believe in github.com/PatrickLouys/no-framework-tutorial
 
I'll take a look, but I think I get it
And except for knockout which all of my views are created with, I can switch out most of my framework choices without too much headache. I consider myself pretty good at keeping my concerns separated
 
@FlorianMargaine PHP kill it
 
@BartekBanachewicz kill yourself :P
 
2:07 PM
@FlorianMargaine wait you're anti PHP right
just checking
 
Have you read it? I actually recommend reading it, even if you won't ever write php
Yeah, anti php but working with php at day job + php-src contributor
Php totally sucks
No one can deny that
 
@FlorianMargaine okay
 
So yea, just showing you that usually you only need a few lines of code to replace any framework until you need advanced features.
 
at one point would i need to stop the timer?
when the data is loaded into the array or when the dom is loaded
 
I've taken a look at frameworks before just to get the overall shape of the public API so I can defer that choice until later. I just write minimal code but 'shape' it to replace with a framewokr if I outgrow it.
I work with some coldfusion at work
Well, not for long. Today is my last day.
I quit. Going freelance.
 
2:12 PM
Freelance is a pain in the arse with taxes... good luck
 
Taxes don't scare me.
 
@Luggage taxes probably dont, but tax return forms will!
 
It can't be worse than figuring out cost basis for stocks
 
or do you mean contracting? which is different
 
welll, i have a contract already, but it's for a project, not like I got to their premises and sit down and work there
 
user2620028
2:14 PM
contracting is different from being an independent contractor. The important word in there being independent
 
Call it what you will. Unemployed, if you like.
 
@Luggage good luck!
 
I'm independent. I'm not a contract employee.
 
@Luggage ugh. @SterlingArcher does that at his work too, only bad stories.
 
Did I tell you guys which IDE we use to learn C at college?
 
2:15 PM
cfml is capable. It' sjust a markup language like many others. And it has an almost JS like script syntax
 
i believe the problem is that when i click to open my modal its running the pageload event again
 
but it's the falling support that's a problem
 
which is starting the timer
 
@SomeGuy borlang turbo?
 
@SomeGuy notepad\o/!
 
2:16 PM
anyone have any pointers of a fix?
 
@FlorianMargaine Holy shit
How'd you know?!
 
@darkyen00 told us when he did it couple years ago :D
 
borland still exists?
 
Hahaha that makes sense
 
borland.com warns you that they use cookies. That's funny.
 
2:17 PM
@Luggage Yep! Still looks like a DOS app, though
 
@Luggage it's the law
google does too
 
@Luggage tons of sites do
 
All of borland's products ont he site look like BS>
 
sf.net too
etc etc
 
@Luggage Welcome to the EU
 
2:19 PM
really? didn't notice. I also didn't know about the law.
 
@Luggage changed name to Embarcadero
 
Don'y 99% of sites use cookies. Why would one need to be notified.
 
hello ninjas :-)
 
@Luggage It's not about functional cookies
I.e. session cookies
 
2:20 PM
can this be further simplified?
_.filter(arr, function(item){
      return _.all(rules, function(rule){
        return rule(item);
      });
    })
 
@Luggage EU cookie law
 
EU cookie law is stupid
 
yeap
 
if you use cookies, localStorage and/or sessionStorage you have to notify
 
Great idea in theory. Stupid in practice
 
2:21 PM
@NickDugger agreed!
 
so, at school they asked me to make a tiny research of something that came from France or about France, that I would later have to expose speaking for 12mins with a slideshow. I was originally thinking cheese, but then I realized that there's not a whole 12m of interesting facts about cheese. Anything cool about programming/computers from France?
 
@DrogoNevets Not for all cookies
 
@KamilTomšík _.filter(arr, function(item) { return _.all(rules, rule); });
 
@PeeHaa i work for a private UK company, we have lawyers that would disagree with you
 
@DrogoNevets Maybe the UK is different, but EU does allow session cookies
 
2:22 PM
@towc Hahaha I'm not surprised at all that you'd try to make it about cheese
 
@FlorianMargaine where's rule?
 
> For cookies that are deemed to be ‘strictly necessary for the delivery of a service requested by the user’ the consent of the user is not needed. An example of a ‘strictly necessary’ cookie is when you press ‘add to basket’ or ‘continue to checkout’ when shopping online.
@DrogoNevets ^
@KamilTomšík same function you used...
 
it also has to be interesting for my classmates to listen
 
Oh, some French guy is who's known for creating the Rayman series. Nice
 
2:22 PM
@FlorianMargaine consent is not required, there is a difference between consent and notification
the use rstill needs to be notified that the site uses cookies
 
@FlorianMargaine but in my case it comes from _.all (you have 3 undefined vars, I have only twos - arr & rules)
 
@DrogoNevets ah, maybe
 
"See that ship over there? They're re-broadcasting Major League Baseball with implied oral consent, not express written consent -- or so the legend goes."
 
@FlorianMargaine which is also stupid! but hey ho (had to write a little jQ plugin the other day as we realised our site doesnt currently tell users we use cookies)
 
"We use cookies. Get over it."
 
is acceptable
 
Don't consent? GET OUT!
 
@FlorianMargaine we try our best not to use 3rd party plugins
 
that's... stupid?
 
2:25 PM
we dont ask consent, we simply notify and use the "implied constent" clause in amendment 3 i think
@FlorianMargaine nah avoids bloat, potential copyright/IP issues, and does 100% of what we want and nothing more or less - also support is generally easier if browser updates break it, etc, etc
 
@FlorianMargaine | I just go with NIH... -Florian Margaine
 
@Luggage yeah, for personal projects.
 
@Luggage hehe
 
@DrogoNevets also takes 2 weeks instead of 1 hour
 
@FlorianMargaine haha, youve not seen our JS devs, bar me theyd spend 2 week implementing any 3rd party thing! half of them are on verbal warnings for being so slow
 
2:28 PM
was there a proper way to quote?
 
> yes
but not when replying...
 
I mean "throw someone's statements back in their face".
 
and it's >
 
ah
 
2:30 PM
> ah
(sorry couldnt resist)
 
31 mins ago, by Florian Margaine
I just go with NIH...
you probably meant this ^
which works with replies, btw.
@Luggage get the "permalink" of a message
 
the :0000 is the permalink?
ok.
 
right click -> copy link
 
gotcha.
 
are you sure? it's the little arrow at the left of a message
 
2:32 PM
when hovering over said message
 
you know, you're older than @Loktar, technology is something hard for you.
:P
 
I keep missing. they need ot make the button bigger
 
harsh....but fair
put your own CSS on it
 
* { font-size: 500%; }
 
i would've maybe made it a bit less vague!
 
2:33 PM
How do I muter everyone in the room? :)
 
@Luggage lemme guess, is this your phone?
:D
 
oh, my phone !
 
How do I mute everyone in the room? :)
 
argh, stupdi connection problem
 
2:34 PM
(for the reference, @Luggage, @dystroy is older than you.)
 
It gives me the error, then when I edit, it duplicates the message.
 
(and still on a chat room, even at the retirement home. Amazing, eh?)
@Luggage yeah, happens
 
@FlorianMargaine But I learnt to live in the future, I even got rid of my rotary dial phone (because of arthritis, mainly)
 
Psh. I'm of a generation where I started with computers young. My niece/nephew don't know any more than I.
 
I know, I'm messing with you :P
 
2:36 PM
Also, I only have a cell.
Ye,a I know.
 
@Luggage they aged 2 and 3 right?
 
A Jitterbug.
 
yay!!! my friend has managed to get me one of the new google phones betas!
 
ohh yea? What's that get you?
Anyone considering a phone, I love my motox 2014.
 
I'm gonna have like 4 hours of sleep tonight before I do a 24 hour game jam
 
2:42 PM
@DrogoNevets Ara?
 
gonna be making a 'retro' styled helicopter shooting game.
 
Like this but with guns?
 
user4082764
0
Q: imagecreatefromgif() from base64 encoded animated gif in POST

innovationI am trying to make animated GIFs from media streams, videos, or images using the GifShot plugin. My problem is that the ajax part does not see webcam_image_ajax.php. isn't working. Please do not hate me so the question will be a little longer. I have to create this ajax function for uploadin...

 
@innovation 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.
 
@BenFortune nah, mine is gonna be top-down
 
2:51 PM
@BenFortune yes
 
user4082764
Hi everyone...
 
Hello, anyone here able to give me some pointers, as to shortening 3 functions into fewer lines of code?
Want to change,, from onclick, to addEventListener, but already when converting local variables, into global, the code doesn't work as it does, when they are local.
 
@sunto 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.
 
anybody got a hold of ryanos ?
 
He should reply to tweets
Try that
 

« first day (1567 days earlier)      last day (3379 days later) »