« first day (2789 days earlier)      last day (2158 days later) » 

1:04 AM
Hoy!
 
its another 4 minutes of lifetime wasted, but its undeniably hilarious
 
1:19 AM
morn
 
morn
 
Wes
@jAndy thats remarkable
if he doesnt rage and rams into all parked vehicles i'll be impressed
 
2:02 AM
isNaN( 'Pizza is a traditional Italian dish consisting of a yeasted flatbread typically topped with tomato sauce and cheese and baked in an oven. It can also be topped with additional vegetables, meats, and condiments, and can be made without cheese.' ); // true
 
Wes
2:36 AM
bugs.chromium.org/p/chromium/issues/detail?id=849527 @KevinB that's gonna break a lot of sites if they ship it like this
 
 
2 hours later…
4:26 AM
morn
 
 
1 hour later…
5:51 AM
Hey folks, how to respond when someone very high up the mgmt. ladder praises you on text to people higher up the ladder, on slack / text.
I can answer tech ques, but I am terrible at human protocols, the only thing I could come up after 5 minutes of thinking was a emoji response.
 
6:07 AM
ohai
@ShrekOverflow lol for a minute i couldnt figure out what kinda drug MGMT is
 
6:32 AM
@ShrekOverflow thank them
> Thanks guys, really appreciate it!
 
6:42 AM
wtf, MS is acquiring github?
 
yessir
was all the rage yesterday news wise
 
I was on a small city trip. Completely offline until this morning
that's a hard wake up
 
@Loktar but how ?
 
ooh I thought you meant they were all saying it in slack or something
 
Yeah they are but I dunno how to thank em properly I don’t want to come out as an idiot
You are welcome sounds too assanine
thanks to thanks is awkward 🙄
It’s my job sounds like option 1
 
6:51 AM
@jAndy Kinda odd that she is aware of the dimensions of hers car (she did not hit that orange truck and that white van at the bottom) but is not about the space dimension of the parking lot.
 
@jAndy incredible.
amazing.
 
7:18 AM
o/
 
ohai
it still hurts that I missed out on GMK Serika keycap set
it was just too good
 
luckily I have a habit to dry-run git rm first because I accidentally did git rm -nf *
if that "n" was not there, I would be pissed
 
7:35 AM
Hi, this function: var b64encoded = btoa(String.fromCharCode.apply(null, getImageResult)); is throwing a range error. I'm not calling it recurseively, I'm just loading an enormous image. I need to know how to bypass this error without interrupting the function. (obviously, a try / catch block will cause the function to end.
 
guys
if someone won't stop me right now
im gonna spend $50 on one of these
 
That's a lot of money for a sign which reads "Image not found"
 
Lol
They're basically keys that look like they're made from tiny legos
Surrounded by normal white ones
 
no no, its $50 for just one
of the colorful ones
 
@KamilSolecki My proxy isn't letting me open that :P
It would be quicker to just tell me what it is
 
@KamilSolecki are those "depth" feeling just prints or are those really cut out?
I like flat tops. No other things like that tiny bar on the F and J keys
(that is for visually impaired people I know)
those keys on my work laptop has a robust aid. you feel it too quickly.
I want a subtle feel or just nothing
@JacobSchneider that error comes from .fromCharCode
you are also using it incorrectly
 
@KarelG they have an actual depth, as they are hand-assembled from hand-cut pieces of wood, but then again they are later molded into epoxy and given the shape of a normal keycap
 
would you not have some ... on your fingertips after using it for a while?
 
some of what
 
"impression"
bah google translate
 
7:58 AM
im not sure I understand what you mean :P
 
let's say if you press hard with your fingertip on a non-flat surface, it will leave a print of the surface on your fingertips
for a moment
idk how it is called in my native language <.<
so cannot find a good translation
 
oh that
Well maybe
no idea tbh
wouldn't bother me, I guess
 
ffs
We apparently have a scheduled job which "removes" libraries which aren't in standard folders
Would have been nice to have that active in preproduction or even test so I'd have known..
 
put those in standard folders then
I can see the reasoning behind it
 
8:06 AM
Sure, but you don't have some process which is active only in production..
what kind of reasoning is that?
It would have been an easy fix to apply in test
But now I have to wait until tomorrow morning for the fix to be applied
 
get rekt kerol
 
107
Q: Why does `array[i++%n] += i+" "` give different results in Java 8 and Java 10?

Olivier GrégoireFor a challenge, a fellow code golfer wrote the following code: import java.util.*; public class Main { public static void main(String[] args) { int size = 3; String[] array = new String[size]; Arrays.fill(array, ""); for(int i = 0; i <= 100; ) { array[i++%size] += i + " ...

wew lad
 
8:22 AM
!!urban wew lad
 
@Neoares wew lad A phrase used to convey astonishment at something especially stupid or ridiculous.
 
wew lad
 
8:36 AM
@BenFortune interesting discovery tho.
I use += pretty often while it is not a good practice 😐
 
I use a concatenationFactory, that spawns concatenators, who in turn pick up items from the concatenation queue and concatenate them
 
@KarelG the jvm optimises your += (depending on the version, it might be done at runtime). It is a best practice to use the short and readable code IMO
 
I use tmp = i+1; i = tmp;
 
@KamilSolecki it is a bad practice to build a concatenationFactory yourself instead of injecting a concatenationFactoryFactory
 
@DenysSéguret AFAIK, i = i + 1 gets optimized in the same way. But is more "correct". The concatenation got added to prevent re-typing long variable names
 
8:47 AM
my_loop_iterator_counter = my_loop_iterator_counter + Number("1")
I think I got the point
 
that was an example. For a numeric one step increments, you can use an increment operator
postfix or prefix. (optimization fetish: prefix is faster)
 
9:02 AM
you mean i++ vs ++i?
 
yes
 
they're different
 
using ++ or += is a little like using implicit for loops rather than explicit ones
 
> I'm not going to bother reading the question, just recommend libraries
@ChrisAbyAntony He is... — Ben Fortune 1 min ago
Fucking robo moron
 
i do not see a point in doing += 1
 
9:09 AM
const one = 1; foo += one;
 
const two = one + one;
const three = two + one;
or const three = one + two
 
while (num != num + 1) num++;
 
you mean while(++num !== num + 1);?
 
that wouldn't work either
const curnum = num;  while(num < curnum + 1) num++;
 
9:16 AM
five.isFive(10); // false
five.oclock(); // '🕔'
five.oclockSomewhere(); // '🍺'
five.guys(); // '🍔'
 
Hello everyone
Can someone help me ?
 
!!welcome user9582479
 
@user9582479 Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
Thanks Neoares
 
you're one of the few that don't thank the bot
 
9:25 AM
Are u bot ?
 
yes I am
@BenFortune is my creator
 
Ah sorry
 
it's OK, I was programmed with one of the most sophisticated NLP Neural Networks, so you can talk freely with me
anyway, you can ask your question, and if someone is free, he will help you
sadly I can not solve programming tasks
 
@Neoares is he your dad? 😮
did he do some unity with caprica?
 
caprica and I are very united
we synchronize every night, at 23:00 UTC
 
9:38 AM
you what lad
 
user95... probably has left after he saw Neoares' weirdness 😐
 
9:50 AM
Neoares: "Welcome to the internet! I will be your guide!"
 
@KarelG how would I fix this issue?
 
fix the stream coming from the server. You do not need charCodeAt thing
 
Hi All, Can someone help me with fixing System.Threading.ThreadAbortException
I'm getting this error after a form.submit() is called
Not exactly after the form.submit() once the call reaches to the destination page while reading value from session, there it throws a System.Threading.ThreadAbortException
Any Idea??
Error message is: unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.
 
@Jilu Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
or use the fetch api which has a built in solution for bytestreams
 
9:59 AM
System.Threading sounds like C#
 
^
but form.submit seems so javascript
 
Blind guess its ASP.NET
you might have more luck in the C# room
with that
 
Ok Thanks
 
@Jilu Try replacing the contents of thread work with a stupid stub method that prints out a message or something
Then add functionality back in bit by bit until you see the change that results in the problem happening.. my guess is it's probably a call to a native library which causes problems
 
@Neil Yeah will try that
Thanks
 
10:08 AM
No problem
 
user9674579
10:36 AM
Neil are you a moderator ?
 
user9674579
Are there any room moderators here ?
 
you are probably confusing room owners with moderators (people in blue names) like Madara
 
I am considering looking for something at microsoft
even as an intern
only jobs they have in BA aren't relevant to my skills: careers.microsoft.com/us/en/… :/
but there's some stuff in vienna: careers.microsoft.com/us/en/…
everything looks so corporate. I might enjoy it, but I'd have to start at the bottom of the ladder
 
I do not want to insult you, but why would they recruit someone like you?
2
 
10:52 AM
+1
 
if I start as an intern, why not?
I'd think they hire people who are much less skilled/mentally stable than me
I don't have any facts to back that up, it just makes intuitive sense for me
5
 
@towc that's not easy
specially the second thing
 
you haven't truly met many people, have you?
I'm just more vocal about my issues
 
give it a shot
 
:shoots towc:
god I love how ambiguous english is
it's ridiculous
 
10:57 AM
it's "shoots" though
 
fixed, thanks
 
* 📣💨 Neoares *
 
11:18 AM
yes, sir?
 
 
@towc Just makes you sound like a whiney bitch
 
11:36 AM
I don't disagree
 
You still managing your hackerspace?
 
I help out sometimes
 
What you doing for money nowadays?
 
I worked fulltime for a month. That money will last for ~4 more months
in the meantime, I'm looking for another job
 
Nice, anything specific? Seems like you were grasping straws at the ms jobs you posted
 
11:40 AM
I've been rejecting proposals from corporations, and not applying to them
but microsoft might actually be good
not because of money, but because they seem to be a huge powerful entity who is now setting out to do seemingly good things
and that's rare
but also because of money
in general, I'd love to do something that gives me some training, for once. Ideally with haskell/lisp
 
Like buying github? :P
 
@Neil data.
 
@MadaraUchiha Fuck off it's data
 
@BenFortune that's one thing
 
I still have my doubts.
 
11:42 AM
I was never properly introduced to the industry. I jumped on the wagon when I was 14 and since then, whoever hired me just seemed to assume I knew what I was doing
 
Especially after what they did with linkedin and skype
 
and for the most part, they were right. I always got them the results they wanted
but I have skill debts regarding working with teams for example
or having a supervisor
 
does anybody using loopback?
The create method has not been setup. The PersistedModel has not been correctly attached to a DataSource!
what is this issue here?
 
or rather, right now what I know for the jobs is a subset of what I've been learning to do stuff like the pens, which I enjoy doing. It's been a very messy learning process, because the goal wasn't to build a product. Maybe if I start with another technology, learning under a team lead, it will be different
this has made me appreciate academia in a way, where you learn because other people tell you to, not because of what you enjoy
and I kind of hate myself for not enjoying certain things, which is a weird feeling
 
start with a calculator program made in factorio and go from there
 
11:56 AM
do you have a good way to program in factorio?
 
@Wietlol Isn't factorio that game?
 
it is
 
You can program in factorio? Hmmm mebe i should look into it.
I fondly remember writing macros for Ultima Online back in the day.
 
not as far as I know
 
@New_2_Code You get buildings that basically implement an ALU
 
12:02 PM
it took me a few days to get some simple functionality built into it
for which, I eventually used a mod
 
Aah a arithmetic logic unit... Sounds interesting
 
which happens to be the only way to actually get it to be good enough for my use case
@KendallFrey that one programmable controller is expensive though
one of them costs 32 deciders, 32 ariths, 24 consts and 48 elec boards
 
huh?
are you talking about a mod?
 
which is a total of 2k basic electronic components
 
I was thinking you meant a gamepad controller.. :D
 
12:04 PM
which is peanuts
 
yea, the program thingy I used to build my logic
 
@Wietlol Your brain? :D
 
well... considering I havent even done blue science yet... and my ore patches are depleted and I am living on the remaining buffer I have left... its quite annoying
@New_2_Code my brain isnt a program
 
what mod is this?
 
@Wietlol Don't mind me, I just came off of lunch and am in a good mood. Side affects may include silliness. :D
 
12:06 PM
I've spent almost 100 hours on my current factory and I haven't automated red science yet
 
@KendallFrey Programmable Controller Unit?
that one
red science is like... not even to automate
you automatically automate it
you cant non-automate it
 
@Wietlol Looks like a microcontroller
@Wietlol I haven't produced any red science with it yet ¯\_(ツ)_/¯
 
its an opcode machine
 
like all computers?
 
the general feature I so deperately needed was the guarantee that it ran in a single tick
 
12:10 PM
I don't know too much about PLCs but I don't think they're coded like that
 
making its operation run and its output would ensure that none of the other machines on the network would be causing issues with it
I dont know about PLCs either
but I am definitely sure that this mod gives you an opcode machine
(with very limited opcodes though)
it doesnt have jumping so you cant make stuff like functions... or loops
its entirely unreadable... but it gets the job done
 
a plc that does opcode? I know that it is a mod but a plc does not do opcode
 
@New_2_Code It's worth 20 bucks easily
At least for a programmer
 
ohhh shit no jumping?
dealbreaker
I'm tempted to make a mod that just lets you write Lua scripts directly in your factory
probably already exists tbh
 
My wife would probably tear her hair out
 
12:14 PM
@Neil It does look pretty cool. Not sure I wanna spend my free time working out logic though... I prefer to switch off when I game. (Something like Diablo 3 comes to mind.)
 
@KarelG im not sure which term is incorrect in my explanation but according to wikipedia, the plc mod actually gives a plc
maybe I understand something different under opcodes than you do
 
that aspect of optimizing gameplay really appeals to me
I think someone read my mind when they made factorio
 
It was like that for me with Ultima Online. But I was really passionate about that game
 
@KendallFrey gotta try that one out though
 
Wrote quite a few macros back in the day. My crowning achievement was my mining macro. Site I hosted it on has gone down though. (Was a few years back.)
 
12:16 PM
I used to play guild wars, and it was like that
 
i might automate everything then
 
You could have a primary and secondary profession, letting you mix and match strategies
 
I played guild wars 2, was a ton of fun up until you get to end game content. All weapons had the same damage towards then end. Then you just playing for cosmetics... meh
 
it was very simple idea if you think about it, but it was done so well
 
If you like mixing professions you should check out Titan Quest or Grim Dawn. Both made by same Devs. Both very very good.
 
12:18 PM
@Wietlol opcodes (operation codes) uses a table internally that executes a pre-embedded task (like movement of data from one registry to another registry. eg. the mov command in assembler is an instruction that is linked to some opcodes to toggle the transistors in the other registry module.
a plc only performs logic based task, based on the inputs (and, or, xor, ...) to give a 1 or 0 as output
 
and why cant you configure its tasks with opcodes?
for example a greater than is:
opcode: GT
left operand: Var1
right operand: Var2
output: Var3
which is written in the PLC mod as:
GT Var1 Var2 Var3
 
opcodes are used to simplify the operator chain
 
the PLC from factorio can do GT, GTE, LT, GTE, ADD, SUB, IF, ELSE, ENDIF
 
@Wietlol Because once you do it's no longer a PLC, but something more advanced
 
considering all codes that it knows are logic based... doesnt that make it a PLC?
 
12:24 PM
No
PLC is something specific
 
there is a lot behind the GT thing :P
AFAIK it does a subtract first
then a set of operators to give the 1 or 0
I need to look up that
 
isnt that dependent on the machine it runs on?
 
how would you solve it? :P
with only logic operators. To make yourself easier, I allow you to use the base mathematical operators ( + , - , * and / )
those 4 contains lots of logic operators
I think that it is similar on all devices
but need to lookup how it is done.
 
@KarelG solve what?
I don't think you can do logic with arithmetic
 
GT
eg 5 GT 3
 
12:32 PM
I'd do that with logic gates
 
that is what I am asking to wietlol
 
possibly a dedicated "compare" circuit in an ALU
Not with arithmetic
arithmetic doesn't do boolean logic
 
I would subtract it because that is how I did back then
 
and then what?
 
check the signed bit
 
12:33 PM
you cant really do logic with arith
you will get overflows and underflows
 
@KarelG You can't do that with arithmetic, that's my point
 
for example, the value difference between 2 signed 32-bit ints must be provided as an unsigned 32-bit int
if not, you risk overflows and underflows
 
you risk it either way
 
not really
 
yes really
 
12:36 PM
diff between 2 signed (or unsigned) ints can always be represented in an unsigned int of the same size
 
multiplication is something else
 
what is int.MaxValue - int.MinValue? It's more than int.MaxValue.
hence, overflow
 
true
but its not more than uint.MaxValue
it actually is uint.MaxValue (i think)
 
oh
ok then
int.MinValue - int.MaxValue
underflow
 
12:39 PM
i said difference
not subtraction
 
that is difference
wat
"absolute difference" is not an arithmetic operation
 
subtracting can give you negative results
differences cannot
@KendallFrey I never said that
actually
that is what I did say
you cant do logic with arithmetics
same as rounding
you never ever try to round a value by applying some meth
 
x - x % 1
I think I just proved you wrong
oh wait that's trunc
(x + 0.5) - (x + 0.5) % 1
 
yea...
!! cap?
damnit
@ssube unban me!
@ssube other people tried to make cap forget stuff as well
and now you prevent me from telling Kendall that his stuff doesnt work
@KendallFrey also... that only covers a very specific rounding
a round with ties towards positive inifinity
(not that its quite common... but still)
people forget that most of the operations from the Math class are supposed to be put into interfaces for many more reasons than I can tell
 
 round = dup (flip (-) . (`mod'`1)) . (+0.5) where dup f x = f x x
yummy
 
12:52 PM
stahp
 
HAMMAHTIME!
 
naive dependency q but i still want to know: suppose i have package A in my package.json that depends on package B, which is not in package.json. we are using package B explicitly in our code (import packageB from 'packageB'). if package A is removed, then all lines that use package B will break, on the next npm install, correct?
 
yes because that package is not described in your json file. It comes as a dep from A
but why are you using a dependency of a package you are using? that is not how you should work
exception exists (eg being not available as standalone)
 
@KarelG no you're right, we should just have it in package.json, we are being dumb in this case xD thanks
 
how can I filter array [".5","12","2",".4","0.45",".7" ] whole numbers and fractions.
into two array
 
1:08 PM
> If you were looking at a supernova the same distance from you as our Sun, your retinas would receive light equivalent to a billion hydrogen bombs detonated directly on your eyeball.
Mind blown
 
more like eye blown, no?
 
Eye see what you did there
 
@MukulSharma loop through array, check what it is and add to the appropriate array?
 
that's what Eye call a comeback
 
@Neil are supernovas not much bigger than our sun?
that they would be so close of our planet (our sun will swallow earth during that phase)
 
1:12 PM
@KarelG I assume you're not engulfed by the supernova at the same distance
 
@KarelG ok thanks
 
otherwise that fact would be a little dumb
like asking how wet you can be if you're underwater
 
IT IS SDUPIT
 
1:28 PM
kek, MS has probably lots of money to acquire github ...
7.5 ish billion...
 
enough even to hire towc?
 
@Neil Bridgekeeper: What... is the air-speed velocity of an unladen swallow? :D
 
I'm not calibrating my microphone volume.
 
1:44 PM
@New_2_Code I think everyone knows the correct response to that ;)
 
@KendallFrey Hmm, you just gave me an idea for a online form. ;D
 

« first day (2789 days earlier)      last day (2158 days later) »