« first day (2551 days earlier)      last day (2391 days later) » 

12:00 PM
so that Grunt initializes node
so that grunt runs npm install
 
Chickens and eggs come to mind
 
You want to use a program without installing it?
 
Just let Ant run npm install
Then grunt it up
 
Install grunt first
 
yeah, that's what I'm doing now
 
12:01 PM
grunt! grunt! grunt!
 
npm install --save-dev grunt
 
should have been grunt tho
 
et viola
 
people still use grunt
 
They finally released a 1.0.0
 
12:02 PM
Guys, do you know how can I use a variable as a part of a regex pattern in JS? jsfiddle.net/0vzuoh20/2
 
@Shafizadeh Build it from a string, then construct with new RegEx()
 
@OliverSalzburg why? RegEx() I need to use match()
 
you forgot the case insensitivity flag
 
@littlepootis the problem is this returns NULL
 
@Shafizadeh do this instead jsfiddle.net/0vzuoh20/3
you're passing in a string, not a regular expressin
 
12:05 PM
Okay, doing what I originally did with first doing npm install works. Only problem I have right now (created a question a few hours ago):
0
Q: Grunt command executed through Ant has slightly mangled output

NzallI have the following Ant build.xml script, which runs npm install and then grunt (this is a proof of concept to check if we can integrate grunt into our product through Ant, as a stopgap until we can add integrated support): <project name="GruntTest" default="buildGrunt"> <description>Run Grunt ...

> >> 1 file created 293 B  255 B
something's wrong with the encoding it seems
 
@Nzall Can you ignore that?
Because your life will be a lot less painful if you can :D
 
@OliverSalzburg yeah, it's not critical
 
@littlepootis yes this is good
 
ah, derp, yeah
 
12:13 PM
@towc i.imgur.com/Bj7j3K3.png getting bigger
 
nice :3
 
@OliverSalzburg After reading that article, I concur, it's not really worth it trying to fix that
 
in 4-7 years I might be able to get fruit!
:P
 
I just tossed both hydroponics experiments because the wet bonemeal is like an orgy erb for flies
 
yea it's a learning process.
I suggest getting really good at making cuttings first :P
 
12:15 PM
woke up and the plastic poked bags wrapping one of them had about a dozen adult and young flies in it
 
cone your plant like 10 times. then start fucking around
 
cuttings? For the clone?
and you mean clone instead of cone, right?
 
ohh, yea :P
clone*
 
but yeah, I guess mass experimenting is probably the way to go
 
After making a cutting, you need to put a cone on the plant so it doesn't scratch itself
 
12:16 PM
@towc also, you have a few plants that you don't experiment on so you keep the basil alive
 
well, a plant is like 1.50€ at tesco's tbf
but yeah, the main basil plant is still growing strong
well, tbf it's probably dying and I'm not noticing it
I'm such a bad mother
 
!!giphy shame
 
doesn't matter how much they are. point is you wanna get better at keeping them alive.
 
the lemon balm is growing a bit too big and seems to need the least amount of care, I could start trying things on that instead
 
12:18 PM
so your main goal is to keep the main plant alive forever
 
@rlemon yup
 
forever....
 
what have I done
no basil, please don't do that! Nooooooo
 
if you can find it, pick up some german ivy
it isn't edible, but it is super easy to care for and clone
 
either way, I like the idea of wrapping some home-made fertilizer in a paper towel to use as soil and my current jar setup
will do :)
 
12:20 PM
if you can get it to flower, you'll know because it smells like shit :P
 
woop woop!
 
but thankfully it doesn't often flower (I've had it for 6 years, flowered once)
 
not really a fan of any kind of flower tbf
 
but I can take a clipping of one plant, just shove it into the ground and it'll grow
 
I just like the green
 
12:21 PM
no need to root them
 
@rlemon IT'S JUST AN EMPTY WOOOORD!
 
:puts song in spotify:
cause headphones --> mobile
 
speaking of which
cant find mine since yesterday
 
I stole them
 
12:26 PM
check your earballs
 
@rlemon Imma ship limes to your workplace :/
 
nice,
can you include some salt and a bottle of tequila ?
 
and some...
 
... and vue stickers.
 
lemon
 
12:27 PM
nahh, got that covered m8
:bits off finger, squeezes into drink casually:
 
speaking of tequila, I should go drinking this weekend
 
speaking of weekend
 
@towc @copy @BadgerCat oi, is the 18th in Vienna still up?
 
this weekend I'm going to either build a desk, or play way too many video games and get nothing done
 
they're coming to BA in the end
 
12:29 PM
what date?
 
@rlemon this weekend I'm going to a Paparoach concert
 
18th through 26th
 
nice
 
I think
 
have fun
 
12:29 PM
I will :D
 
leave your phone at home
 
@towc uh oh, I can't make it a week, but I can make it 2 days
18th and 19th or 19th and 20th
 
@KamilSolecki well, I'm not going to be in SK for most of that tbf
I leave on the 19th, morning, and come back late on the 24th
 
@rlemon Re: lumber, My brother said they get theirs from Craftsmen Hardwoods but again they don't have a lot of specialty stuff, they'd have to order it in from somewhere else.
 
@towc then I shall be there on the 18th
 
12:30 PM
I found amwoodinc.com that sells a lot of specialty woods
 
I need to get some wood
 
I need/want some really nice shit tho
expensive shit
 
@rlemon no way
 
@rlemon buy antimatter, duh
 
you can't leave phones at home. That doesn't even make sense.
 
12:33 PM
Ye also dont leave phones in the car during a hot summer. Someone can break the window.... and take them.
 
@KamilSolecki not enough expensive
 
@rlemon A&M has stuff up to $100 per board foot
 
@KamilSolecki how about a cold summer?
 
1" is $15 b/f
 
or fall
or winter
 
12:33 PM
that's.. not that bad.
 
or spring
 
I could handle that.
 
> Scientists claim that antimatter is the costliest material to make. In 2006, Gerald Smith estimated $250 million could produce 10 milligrams of positrons (equivalent to $25 billion per gram); in 1999, NASA gave a figure of $62.5 trillion per gram of antihydrogen.
 
maybe even do it with maple and than veneer over with walnut.
never thought of that....
 
Meh, circuit boards are so effin expensive to order. And I dont have the tools to make a layered one at home.
 
12:34 PM
@KamilSolecki factorioooooo
 
@KendallFrey currently I do everything with pine or spruce or just random construction lumber.
so like. even maple is 'expensive'
 
lol right
In school we did all our woodworking with shitty pine.
So that's my experience
 
but I'm getting enough confidence that I wanna try to bang out something with some nice hardwood
 
@KendallFrey cheapest I found was 150$ for 5, but they dont sell less. Single pieces are about 100-180$ :/
 
for what? a custom PCB?
 
12:36 PM
but thanks for that site. looks like some decent enough prices if I'm building for myself.
 
Their HQ is in Cambridge, in case you cared
Took me a while to find that
 
@KendallFrey a 2-layered custom PCB of 38cm x 15cm
 
I've never needed my own board, but if I did I'd probably just use protoboard
 
for a keyboard, meh
 
ohh that way
yeah can't solder that on
 
12:39 PM
and lots and lots of connections, hence I will (most likely) need 2 layered.
 
Go home Google, you're drunk
 
I went into my ad settings and added a bunch of shit to my dislike tags.
man, did my ad quality ever improve. now it's almost exclusively for online programming courses
 
my ad quality improved since I started using adblock
 
@rlemon oh, where can you find that?
found it
 
@rlemon I did the same, and get a lot of the same. No noticeable quality improvement though.
 
12:49 PM
if you ask me, that is a quality improvement. not seeing stupid ads for cars or products I'll never buy twice
google is great at knowing what I just purchased, and giving me an ad for it.
 
Can someone tell me how to properly set up permissions for a Wordpress installation? Like, it seems like, if you want it to work as intended, you have to give write access to your whole web root to your httpd user
But that seems kinda retarded
But if you don't give those permissions, you can no longer use any of the convenience update/installation mechanisms
And the docs just explain over and over that you shouldn't set 777 on everything. No shit
 
@rlemon Instead I see stupid ads for math, computer, and programming lessons that I'll never buy...
 
exactly!
 
you know what they say. a payload in motion stays in motion
 
!!giphy phrasing
 
@Zirak nice
@OliverSalzburg oh, that's all right. Your options are to use a plugin (most of them are paid, many break on the regs) or copy your database and webroot from a staging server that is insecure to prod.
 
I can't tell if pipelines are useful or pointless sugar
 
@BenFortune is that hibernate for JS?
ORMs are questionable to begin with, but ActiveRecord and Hibernate are not the ones to take inspiration from.
@Luggage both. They make long functional patterns look more fluent.
 
Yea I can imagine cases where they provide clarity
as long as people dont overuse them, im fine with it
 
abusing the new syntax for all uses is a proud tradition around here.
 
1:10 PM
The fluent/builder patterns are great for devs, but a pain to write and can perform poorly or use a mutable object
 
and I'll ask you kindly not to disparage
 
make good, immutable code look fluent and folks will be more inclined to write it
 
that pipeline might make libraries like rambda easier to use
 
@ssube Dunno what hibernate is, but I've just been testing it and it seems pretty good
 
Hibernate is Java's ORM, the big one.
 
1:16 PM
yeah typeorm is nice
 
I'll have to try out that library, got a few places it could go, but an ORM "inspired by Java and Ruby" does not instill confidence.
 
it would be really cool if it dealt better with queries though
I tried to work on it but it's pretty difficult
 
haven't done any real work with it though
 
I use NHubernate, the .NET port. It's decent and powerful. I would seriously consider not using it for a new project, of course, but no big regrets.
 
1:19 PM
is there an easy way to do this?
Array.from(elems.children).filter((elem)=>elem.tagName.toLowerCase() === 'video')
where elems is an array of NodeElements
I just filter the videos
 
@BenFortune interesting, but I would have to look into it to see if it actually does what linq does
 
@Neoares That looks like an easy way.
 
which is pretty intricate and involves specific c# features
 
well jQuery has something like elem.next('video')
 
it doesn't do what c# does
it can't. there is no built in func -> AST feature in JS
 
1:20 PM
yeah I would bet it doesn't
@Luggage nothing built in, but you can build it
that's the difficult part
 
yea, you can do.
 
TS might have something in the works to help
 
not for returning the AST of code like linq needs
 
var result = new Collection<Test>()
.where(e => (e.ParamString.toUpperCase().toLowerCase() == "3".toLowerCase().substring(0, 10) || e.ParamInt >= 4) && e.ParamString2 <= "2")
.orderBy(e => e.ParamInt)
.select(e => <any> {
    IntParam: e.ParamInt,
    StringParam: e.ParamString.toUpperCase()
})
.getSql();
Pretty ugly IMO
 
e.ParamString2
 
1:22 PM
it's not too bad, but it's not the point
linq compiles something like that into an actual efficient query
 
reminds me of a contractor I worked with who wrote stuff like myTheBtn.ParamArg13
 
instead of just manipulating a string at runtime
@Luggage I think there was something like that
but I don't remember
 
in LINQ, your code would have access to the expression AST, like { $type: 'comparison', operator: '<=', leftSide: { identifier: 'paramString2 }, rightSide: { intergetLIteral: 42 }
 
though technically, TS compiles itself
so it's technically possible
 
It uses that AST to build the SQL (or other)
 
1:23 PM
I mean, it's technically possible regardless
 
yea, just use a parser
 
but I think I remember something about TS being able to make it easier
 
parse at runtime or have it also compile to an AST in another file or something at build time
 
I'd totally do it if I was doing like a
related master's thesis
otherwise ain't nobody got time fo dat
 
the fact nobody wrote a working babel plugin for it proves that
 
1:25 PM
meh, not even that hard. import esprima or another parser, then make a visitor to output the SQL from the tree
 
building the sql queries is the hard part
not parsing the code
 
TS might be at an advantage just because it has type info
otherwise you'd have to pass all those StringArg1 tags
 
for things like conditionals, it's mostly a 1-to-1 map. you could also translate some functions call, like .includes() in IN (), etc.
 
and that gets uuuuugly
 
@ssube pass where/when? this isn't done at runtime
it's only possible with something like TS
 
1:27 PM
@ssube Back in the day, I just had a script to allow everything, then I updated, then I ran another script to lock everything back down. But now people have to use it
So this is not an option
 
I don't see how TS helps. I don't think it gives you anything other that a little more metedata.
 
@Luggage if includes is IN, you'd want to check types on the array pased
 
But I think I have a good picture now of which folders need exactly which rights and should be owned by whom
 
@Luggage you can't do this at all without type information
so yeah, you need TS or equivalent
 
you can, folks have written it for JS
 
1:28 PM
written what
 
you either lose all validation or someone has to manually pass types
 
> TS or equivalent
you need type info
it's not even about validation
 
or you lose type checking
 
the result queries depend on the type information
 
.@JusticeGuyhoo asks, "What kind of lubricant can you use in space?" #AskNASA https://www.nasa.gov/live https://t.co/xhY0fn3xdi
huehuehue
 
1:38 PM
astro glide?
 
morning everyone
 
@littlepootis What about all the plugins?
 
1:54 PM
Does anyone recognise where this voodoo comes from:
document.querySelector('html').classList.remove('no-js');
document.querySelector('html').classList.add('js');
 
what voodoo?
 
@Danack Most likely modernizr or some such?
 
maybe....some more context:
<!DOCTYPE html>

<!--[if IE 8]><html class="no-js lt-ie10 lt-ie9" lang="en" xml:lang="en" itemscope itemtype="http://schema.org/WebSite"><![endif]-->
<!--[if IE 9]><html class="no-js lt-ie10" lang="en" xml:lang="en" itemscope itemtype="http://schema.org/WebSite"><![endif]-->
<!--[if !IE]><!--><html class="no-js" lang="en" xml:lang="en" itemscope itemtype="http://schema.org/WebSite"><!--<![endif]-->

<head>

    <script>
    document.querySelector('html').classList.remove('no-js');
    document.querySelector('html').classList.add('js');
 
@Danack What voodoo?
 
@RoelvanUden those lines of code that look like they've been copied + pasted in, without a comment of why they are needed or what they do.
429
A: What is the purpose of the HTML "no-js" class?

Gregory PakoszWhen Modernizr runs, it removes the "no-js" class and replaces it with "js". This is a way to apply different CSS rules depending on whether or not Javascript support is enabled. See Modernizer's source code.

....our website doesn't support people who have turned Javascript off.....so I'll have to ask the frontend dev what that is meant to be doing.
 
2:00 PM
nobody supports people who have turned Javascript off
 
@Danack Maybe displaying a message that our website is not supported without js
 
disable js and check :D
 
@jAndy Eh.. some people do.
 
Is there some CSS rule tied to .no-js or .js?
 
Turning javascript off is arguably worse than forgetting to take your Waifu on a flight
 
2:01 PM
I was talking in a more... general and sarcastic way you idiots :P
like.... anyone who has turned of Javascript should burn in hell or whatever place, because he or she clearly didn't recognise the year of the lord 2017
 
@MadaraUchiha nope.....and there doesn't seem to be anything tied to css rules for no-js. I think they just copied that stuff across without bringing the actual modernizr library with it.
 
@KamilSolecki I remembered today that I turned off JS on the Terraria wiki ages ago.
 
@Danack My guess is that it's taken from some tutorial or starter and left like this
 
I thought webpack's require.context() had a way to list all modules it found. I can't find it.
ohh there it is. keys(). in the old docs, but not the new.
 
2:19 PM
still works, though
 
webpacks docs really can be confusing. It got better a lot if you exclusively follow the 2.x, 3.x docs tho
 
hi is there a way to reload a page in jquery but keep a popup window i have open from that page open? when i use location.reload() it refreshes the page (good) but removes my popup window i have from that page (bad)
 
okay.. I'm being stupid. why can't I connect to my new pg install?
I've set pg_hba to all md5, I created my user, set the password, granted permission to all.
> password authentication failed for user 'foo'
 
databases not allowed here, this is a JS &f flowchart room
 
user736893
2:30 PM
Am I retarded or didn't there used to be a git command line download for windows? git-scm.com/downloads
 
user736893
all I see is a GUI section
 
user736893
I need an adult!
 
lol, rly?
 
@Neoares Command is does not exist. (note that /tell works on commands, it's not an echo.)
 
@jAndy The main problem is that google returns wp1 results even when you explicitly search for webpack 2
 
2:31 PM
@Neoares Command is does not exist. (note that /tell works on commands, it's not an echo.)
 
@rlemon are you connecting locally or remotely?
 
local
 
does your pg_hba have local listeners that include that user?
 
@RatherNotsay yes, the git shell
 
most of my connection issues have been with the host field in the pg_hba rows rather than the auth
 
2:33 PM
local	all	all				md5
 
user736893
@Neoares Where can I find that on git-scm.com? I did find git-for-windows.github.io
 
well, that's pretty unambiguous
 
lol
local type, all dbs, all users, method md5
 
does sudo -u postgres psql work?
 
should
doesnt psql have to come first?
 
2:34 PM
not on any of my distros
 
btw, at least windows requires capital U
so I run psql -U postgres ...
 
sudo on windows? wat?
 
@ssube yes
so does
su foo
psql dbname
 
user1731387
any react native developers are here?
 
@RatherNotsay you just install github
then remove github
violà
 
user736893
2:38 PM
lol
 
not kidding
 
user736893
it doesn't matter I guess, I got it, I just swear it used to be right on that page
 
user736893
git-for-windows.github.io just installs the command shell
 
user736893
like I wanted
 
@ssube no, without sudo :P
 
2:39 PM
@ssube nvm, it was node-pg being stupid
docs say use env vars for connection info. but doesn't recognise them correctly. passing in a connection string manually worked.
 
I don't mind the new Github Desktop for when I'm lazy
 
I can't use it
snce sometimes I don't commit all the lines of a file
 
@BenFortune Dude, you need to have some standards!
 
yes, a true developer has some principles
 
citation needed
 
2:47 PM
When it comes to Javascript, you have to forget all your principles.
 
or you can write Typescript :D
 
^
 
When it comes to Typescript, you have to forget all morals too.
 
type Principles = true;
 
principles >>> morals
I'd rather have good code that does terrible things than bad code that helps people and saves the world.
 
2:48 PM
> I'm not sure I agree with Hitler, but his code is so readable.
 
you're being hyperbolic, but I bet if you ask any war historian, they'll say something similar
shame we didn't have computers back then
 
> I'm not sure I agree with Stalin, but his code is so uniform.
 
@OliverSalzburg hahaha, you obviously don't know me
 
I thought I did :'(
 
Guise I made a thing
@rlemon
 
2:54 PM
that's a pretty good drawing
but I've always used limes with tequila
 
I always used lemons
 
huh. It makes sense, just never tried it.
 
Do try, Also addition of sugar is nice
 
I always do lime > tequila > salt
tastes better if you bite the citrus first
 
Yeah but salt goes in the eyes
 
2:56 PM
oh man, if you enjoy painful drinks...
if you haven't tried it, do
 
in barcelona they also do that
 
as long as you have some sort of helmet, you can replace everything else with house hold items. We used a snow shovel, fire extinguisher, and iron skillet iirc.
 
but they hit you with a hammer over and over again
 
!!s/a .*/brain cells/
 
@rlemon but they hit you with brain cells (source)
 
2:58 PM
getting hit with heavy objects while you drink is a lot of fun, turns out
 
damn
works I guess
 
@ssube oi oi looks fun as hell
 
Used to play a game before hockey games in the locker room. Put your helmet and gloves on and absolutely go to town on each other's head
 

« first day (2551 days earlier)      last day (2391 days later) »