« first day (1650 days earlier)      last day (3313 days later) » 

6:00 PM
so who wants to help with jabbascript. I bought the domain and thought of the name and idea, but I need someone else to code 99% of it.
 
well, node's callback as last argument + coffee's arrow functiosn just happen to work well together
 
there is no money in it yet.. but if I make money I promise to maybe pay you
URGENT!
 
though, i'm using promises now so..
 
ϰɤ
 
dirty unicoder
 
6:01 PM
@rlemon where is the craigslist posting!? :P
 
window.ɤ = jQuery
 
Problem with promises is when you want to access any but the last response. CFS' tribute to monads can do that
 
yea, i see that
 
dude, you should take it
Omaha
 
'erotic'? i hope they meant 'exotic'
 
6:04 PM
posted on April 23, 2015 by Alex R. Young

I've been running DailyJS since 2009 using Jekyll, but for the last few years it's made writing more difficult in many ways. The main issue I had was the time it takes to generate the site--it was at about 15 minutes on my VPS, which meant any correction took an

 
I should make a library called ω
 
@NickDugger @JanDvorak jquarry.io
 
though.. goats probably aren't too exotic in nebraska.. so must have meant erotic.
 
it does almost exactly what @NickDugger did
 
> Oh, man, these things crash so beautifully -- Scott Manley, 2015
 
6:07 PM
hahahah @Loktar damn you.
now I'm trapped in the best of craigslist
 
@Feeds You're predicting the future again
 
and with this I am done with best of craigslist
cc @Zirak
 
@JanDvorak Scott Manley is the man
 
@rlemon It's all white and sticky on the inside
 
6:10 PM
that's needs to be on lorem pizza
 
what does?
the gif that isn't loading because some moron decided to not gifv it
ohh yea, that.
 
Linux people. Halp me pls. How can I proxy a file from the internet to another one? Just one file, the rest of the website should be accessible as it is.
 
I un-v-ed it for oneboxing
 
get my extension
it oneboxes gifv
 
6:11 PM
@KendallFrey Scott Man is the Manley
 
@AwalGarg What?
 
@AwalGarg rephrase
 
What is app.use(logger('combined')) used for? I don't see it in the docs
 
logging
 
> logger
 
6:12 PM
first, look for a require('logger')
or logger = require('something')
to find out what library it is. THOSE are the docs you want
 
Allo.
 
FINALLY chromium compiled. About damn time.
 
I'm following a tutorial and var logger actually imports to morgan.
 
but 99% certain it logs and then calls next() to pass on to the next middleware
 
@Zirak Did you look into casper?
 
6:13 PM
ok, so it's morgan.
 
I'M ONLY HUMAN
 
@Zirak prove it
 
@BenFortune Yes, I'm looking into it in parallel
 
@JanDvorak 7uAl9
 
6:14 PM
@Luggage I see
 
@Zirak what is 0.1 + 0.2
 
@Zirak You're dancer.
 
on the internet, a file is located at foo://bar.baz/dum/da/di.duh. I want some magical thing to happen so that all requests to that url serve what is actually located at foo://bar.baz/changed/url/too.good. @Zirak @rlemon
(just on my pc ofc)
 
what is foo:?
 
@AwalGarg what server
node-http-proxy is pretty easy
 
6:15 PM
Should we just ban multiping?
 
proxying with nginx is also not hard
 
ohhh. like all requests form your pc you want to proxy?
 
@NickDugger cheapshot :D
 
Wish there was something magical to help me developing stuff lol.
 
@JanDvorak in fairness we both asked him to explain
 
6:15 PM
in a pinch htaccess will do
 
@rlemon errmm, the server isn't mine.
what @Luggage said
 
what OS are you on?
 
@rlemon true
 
@Luggage Ubuntu
 
@Zirak you fail
 
6:16 PM
@BenFortune allo
 
hm, then i don't know. on windows telerik.com/fiddler will do that
 
@AwalGarg Edit /etc/hosts, make bar.baz redirect to localhost, raise local server, check for that path, forward all others
 
but you wanta proxy, which means everythign will get proxied
 
You can do something similar on your router
 
just most thigsn will pass right through
 
6:17 PM
@Zirak of all people I expected you to get the reference
 
@Zirak I want rest of the site to be accessible.
 
Got a new headset today, the bass makes me nauseous
 
turn down for what?
 
i think you ened a proxy, not just a route
unless deep packet inspection
 
> forward all others
 
6:18 PM
couldn't you do this in the hosts file?
or am I just making up words
 
> Edit /etc/hosts
 
@rlemon hosts file is for hosts. not perfectly absolute urls.
 
hosts can't match specific urls
 
ah lemon, FP thing
 
6:19 PM
Front Page?
 
You can also sniff your local traffic and do TCP injection
 
FP = Floating Point
 
Not that difficult with Scapy, for instance
 
6:19 PM
a good ol-fashioned http proxy is what you want
 
@Zirak sounds like a plan. How?
 
node-http-proxy
 
@AwalGarg ...I was joking
 
preferrably transparent
 
@Luggage hmm, lemme look that up.
 
6:19 PM
holy shit I said that like 5 minutes ago
 
I said it better
 
Nice. Moustache on moustache.
 
I think only stupid suggestions reach @AwalGarg's brain
6
And everything @Luggage says is stupid so he was thrown off his guard
 
lol
 
and @Zirak is salty as fuck
3
 
6:20 PM
Only possible explanation
 
Makes sense to me.
 
he's like a pretzel
 
and robert is sour
 
@Luggage @AwalGarg it's called nginx
 
like a lemon
 
6:21 PM
it's like apache but less shit
 
pls
 
no it's not unless nginx can be a proxy
not reverse proxy
 
nginx can be a proxy
or reverse proxy
or upside down proxy
 
nginx can be pretty much anything
nginx is awesome
 
any kind of proxy you want
 
6:21 PM
yea, i guess so
 
@Luggage nginx can be a proxy, but that is too much of a mess
 
the only thing nginx can't do is basic auth backed by an ldap (not kerberos) realm
 
I want some quick 5 minute hack.
 
and configuring nginx is like a bajillion times better than dealing with fucking apache configs
 
@rlemon : did you added J. Beiber's face in this pic ?
 
6:22 PM
no, Lokes actually dating the beibs
 
@rlemon or actual proxy tools like charles
 
@ssube but nginx can auth via http and a small node wrapper can do the rest
 
Thumbs up
 
it's also way more reliable
 
again, kept looking for the results of my name, and I ended up on this page jsdm.com/jsw/popular/247
 
6:22 PM
@Luggage or you just have your app do the auth like a reasonable person
 
@AwalGarg Still want a proxy. We can convince you to do that in the next 5 minutes. Or you can do it in 5 minutes.
 
I was trying to do something really stupid, nginx wouldn't let me.
 
that's what i do, but you said nginx -> ldap so..
 
Only problem I've run into with it.
 
@towc hahahahahaha
nice clone
 
6:23 PM
jsdm.com , the single-user codepen
 
asian characters ...
 
nginx can't auth via shell command?
if so openldap shoudl get you the rest of the way
 
should we report this to the codepen staff?
 
you can
 
@Zirak I am convinced. How to proceed?
 
6:24 PM
but they are in China I guess
no one cares about copyrights over there
 
report waht? that chinese steal everything? not news
 
even takedown notices get ignored
 
@AwalGarg <_< hits you on the head with hammer
 
oh wait I got a good looking tut
 
@rlemon But the Chinese are known for their original, high quality products
 
6:25 PM
so what is the rule for unicode variable names
not all are supported
is there is a list of supported types?
 
for which language ?
 
upside-down-ternet may have some useful info for this, @AwalGarg ex-parrot.com/pete/upside-down-ternet.html
 
@rlemon anything designated as a letter
 
See UnicodeLetter
 
@Zirak the phenomenon I witnessed while working retail. Chinese person would walk in, look at the "made in" and if it said "china" wouldn't buy it... all I could think was "but.. YOU are made in China..."
 
6:26 PM
!!> var kůň
 
@JanDvorak "undefined"
 
!!> var ; = 1;
 
@rlemon "SyntaxError: illegal character"
 
:(
that is &#894;
 
You can do that in golfscript
 
6:28 PM
that isn't a semicolon tho
it is a unicode char
> GREEK QUESTION MARK
 
not a letter, apparently
 
lame
there goes more trolling attempts
 
!! var # = 1;
 
@KarelG That didn't make much sense. Use the !!/help command to learn more.
 
that > at me is difficult to reach. fuck azerty
 
6:29 PM
@rlemon the dark theme stuff for color hinting needs to make sure it's not an html entity
 
I know
trust me I know
I see the same shit you do :P
 
if you checked for entities first and only did colors if it wasn't, that would be sweet
then you could show the entity and wouldn't need any weird regex negative lookbacks
 
it should check word bounds
not sure why it isn't
unless I over wrote that change accidentally
 
be lazy: check for &#, show the entity, else if #, show the color, else don't care
 
I'll look into it tonight if I remember
 
6:31 PM
If js had negative lookbehind...
Oh the things we could do
 
look ahead?
 
what's the repo for the dark theme?
 
xregex
 
/\B#(?:[0-9a-f]{3}){1,2}\b/ig
fix it fix it fix it
that entire method codebase needs an overhaul
 
6:33 PM
overhaul = run it over with a heavy truck?
 
it isn't that bad.
I've seen worse on production websites
at least this is an extension for wasting time
 
@ssube ngx_http_auth_request_module -> content_by_lua 'os.execute("authuser.sh")' -> openldap
 
so you want entities bordered?
why?
 
not for any real reason, other than to show they're added by the script and not actually part of chat
also so I could copy/paste the color handler
 
6:40 PM
let me think about it. I would rather show the entity AND the codes for it like I do color
or does that do that?
sorry I just skimmed it for now
 
it should?
it's almost identical to the color handling, but does <span> + match + </span> + match
 
 return '<span style="width:12px;height:12px;border:1px solid #222;display:inline-block;">' + match + '</span>' + match;
 
I'm just not sure about the escaping for match
 
how does this evaluate the entity tho? magically inside of the span?
 
no idea :D
 
6:41 PM
or both are evaluated? neither are :P
 
may need to unescape it first
 
your lack of distinction confused me
 
FINALLY! In Canary console, errors/warnings/etc have a background colour
 
@rlemon how do you test changes to that script?
never done chrome ext work before
 
How do I make Express send the file with the new page when clicking on a button? Do I use jQuery?
 
6:47 PM
wait
what
 
@StevensHaen You mean like <a href="url_of_new_page"></a>
 
@ssube load them (unpackaged) them locally
 
@Retsam makes sense
 
chrome://extensions
load unpackaged extension
fuckit I'm not pinging you again for a typo. you know what I mean.
 
@StevensHaen are you trolling?
 
6:51 PM
not that I know of
 
@Zirak @Luggage I used my do server as a proxy because for some reason, nginx refused to respond to the requests originated by python.
all sorted
 
Out of curiosity, what's the use case?
 
trying to see how ubuntu gets timezone information from the server without any api key
 
@adeneo jQuery is just the Emacs of JS. — ssube 38 secs ago
 
@AwalGarg dunno about Ubuntu.. but Angstrom
ntpdate pool.ntp.org
bam!
 
6:53 PM
@ssube You are the most of stupid
 
@Zirak anything you can do in jQ can be done in JS, but jQ has a hotkey for it.
 
yeah, ubuntu gets it from geonames.org, although I can't see how.
also, now I see why nginx refused to serve the request. I edited the global config to do something stupid...
 
> LETS IMPORT JQUERY FOR ONE FUNCTION HURRRR YEA! GOOD IDEA!
 
^---
 
Is JS getting better AJAX support eventually?
 
6:56 PM
why would people do that
 
@Retsam already
 
@Retsam it did years ago, people just didn't notice because they were all busy using emacs
 
if (typeof Object.extend !== 'function') {
    Object.extend = function (d, s) {
        for (var k in s) {
            if (s.hasOwnProperty(k)) {
                var v = s[k];
                if (d.hasOwnProperty(k) && typeof d[k] === "object" && typeof v === "object") {
                    Object.extend(d[k], v);
                } else {
                    d[k] = v;
                }
            }
        }
        return d;
    };
}
@ssube shut up the extend people
provide a non-jQuery extend
 
what the hell, man
 
6:57 PM
_.extend :P
 
that's way too many words
 
but it is so nice to just toss into a utils.js file
and works well
and isn't jQuery
 
@Zirak Ah. Just need to wait for some browsers to support that and it'll be nice.
 

« first day (1650 days earlier)      last day (3313 days later) »