« first day (2009 days earlier)      last day (3165 days later) » 

10:00
0
Q: Why Docker resets connection upon pushing an image to a private registry?

Aleksandr BlekhWe have a Docker private registry, listening on a non-default port (specified in our docker run command). However, our attempts to push an image (either pre-built, or built via Jenkins) fail with an error message (see bold below). Help at your earliest convenience will be much appreciated. We si...

Damn the washer just stopped as soon as I walked down 3 flights of stairs and into the laundrymat
@GettingNifty But bourbon's master plays out mercifully if you have a proper ear on the left cusp of it
10:18
I prefer Drambuie and scotch or brandy
Rusty nails and old fashions
Ven
Ven
Rusty on Nails
Okay, I need to write CUDA programs but I also want to use C++11 features that aren't supported in MSVC2013. Maybe clang?
user1804599
@slaphappy I know something about Docker!
@Zoidberg I'm planning to use nginx, an app server, and postgres. Should I use one container for each? Should I use a native nginx? Something else?
user1804599
@slaphappy One container for each is what I do, yes. Then I use docker-compose to start them all at once.
user1804599
10:28
For example:
user1804599
FROM nginx

COPY docker/web_server/nginx.conf /etc/nginx/nginx.conf
Wall of Dockerfile.
user1804599
Yeah I'll move to lpaste, sec.
Pythong's string split method doesn't have an option to skip empty entries :/
''.split('x') should be [], not ['']
:29982045 Ok cool, that's basically what I was going to do. Thanks.
user1804599
user1804599
Here's my nginx.conf: lpaste.net/2949829490747899904
user1804599
YMMV
I love docker. It's crazy simple.
user1804599
Yeah it's great.
user1804599
I also use it for unit testing.
10:32
what problem does docker solve?
for me, setting up servers, isolating components
@JohanLarsson Deployment automation and resource isolation without virtual machine overhead.
ok thanks, hope I will never need it :)
desktop, desktop, desktop
You don't need docker, but it's so much simpler than doing things by hand
10:51
I still have to get a secured credit card but I have to put my front end back on my car after kicking if sideways 3 times going 75 and hitting a concrete barrier.. After credit I can get a mortgage on a house and cut my monthly payment in half
Then buy servers and get a Comcast business account
@R.MartinhoFernandes Is VM overhead really so much? And how can resource isolation be effectively achieved without a VM?
11:39
Does c++ and Java follow order of operations?
Because 10+10x0+10 is 20 but 10 dollars + 10 dollars x 0 tax + 10 dollars is 30
@Puppy Control groups and kernel namespaces.
Ell
Ell
Cgroups recently got namespaces themselves right
Or something
Yeah
To be mainlines in 4.6
@R.MartinhoFernandes .Where(x => x != '')?
12:04
Yeah. I just think it should be the default behavior
In 1885 at age 16, The Donald's grandfather Friedrich Drumpf (later Frederick Trump) left his village for the United States.
Years later Friedrich attempted to return to his German home ... only to be sent away again for not performing his military service.
To recap, this immigrant:
1. Left for America to find a better life.
2. Left America to resume his previous life.
3. Was rejected by his previous life so gave America another shot.
This is a good read - stories about Donald Trump are as entertaining as the troll himself
I dunno
it's obvious to me how to remove them after the fact, but not so obvious how to add them back in if the default is to remove them
Xeo
Xeo
12:33
whee, new tablet arrived
@Puppy argument to split :D
user1804599
> Pythong's string
user1804599
dat pun
@Xeo neato, what model?
Xeo
Xeo
Lenovo Yoga 2-8
I hope it's good enough to play VNs on the go
uh
gulp or grunt ?
thanks
ok, finished 3rd blog entry, 3 more down the pipe
user1804599
@slaphappy GNU Make or Ninja.
user1804599
Also, for client-side code, refrain from npm, Bower, and ES6 modules. Create a vendor directory, put stuff inside there, and commit it. The JS community is bad at versions and module systems.
return 😱 ;
13:53
@StackedCrooked Next stop on this journey: happy doors.
@JerryCoffin I should watch that movie.
you don't need to watch it, the answer is 42
14:10
@StackedCrooked ...and the TV shows. But you should really read the books--the TV shows were the starting point, but I think the books were more polished.
I suppose I should start by rereading the main book.
@JerryCoffin Actually, ...
The Hitchhiker's Guide to the Galaxy is a science fiction comedy radio series written by Douglas Adams (with some material in the first series provided by John Lloyd). It was originally broadcast in the United Kingdom by BBC Radio 4 in 1978, and afterwards the BBC World Service, National Public Radio in the U.S. and CBC Radio in Canada. The series was the first radio comedy programme to be produced in stereo, and was innovative in its use of music and sound effects, winning a number of awards. The series follows the adventures of hapless Englishman Arthur Dent and his friend Ford Prefect, an alien...
@Zoidberg s/ at versions and module systems//
@R.MartinhoFernandes Oops, right--that old TV variant that didn't include any "V" part... :-)
iYawned
user1804599
14:23
.scan((records, record) => {
    const now = moment();
    return [record].concat(records).filter(r => r.time.diff(now) > -60000);
}, [])
user1804599
RxJS is great.
What does [record]. do?
@StackedCrooked It's an array containing record
criminals can be professional workers too, how amazing
user1804599
@StackedCrooked [record] is a single-element array. [record].concat(records) calls the concat method on that array, passing records as an argument.
14:30
So [record] creates an array with record in it?
user1804599
Yes!
user1804599
user1804599
This is the UI. Old records automatically disappear from the list when new records come in (see filter in above code).
user1804599
const records$ =
    Rx.DOM.fromWebSocket('ws://192.168.2.4:9001/feed/', null)
    .map(ev => parseRecord(ev.data))
    .filter(record => ['debug', 'info'].indexOf(record.level) === -1)
    .scan((records, record) => {
        const now = moment();
        return [record].concat(records).filter(r => r.time.diff(now) > -60000);
    }, [])
    .startWith([]);
14:34
So the list could grow really large for a minute and then shrink again. Or is there also a boundary on size?
user1804599
No boundary on size yet.
user1804599
But it's easy to add.
So RAM is the boundary :)
user1804599
If you emit a billion records in a minute then it'll create a billion-size array.
user1804599
And Chrome will kill the page.
14:35
gotta check those records
user1804599
.scan((records, record) => {
    const now = moment();
    const all = [record].concat(records);
    const recent = all.filter(r => r.time.diff(now) > -60000);
    const limit = recent.slice(0, 1000);
    return limit;
}, [])
user1804599
This has a bound of 1000 records.
The names for the chemical elements 104 to 106 were the subject of a major controversy starting in the 1960s, described by some nuclear chemists as the Transfermium Wars because it concerned the elements following fermium (element 100) on the periodic table. This controversy arose due to disputes between American scientists and Soviet scientists as to which had first isolated these elements. The final resolution of this controversy in 1997 also decided the names of elements 107 to 109. == Controversy == By convention, naming rights for newly discovered chemical elements go to their discoverers...
user1804599
@StackedCrooked Chrome already freezes when I generate one record every 10ms.
Strange. 10ms is not outrageous
user1804599
14:40
Maybe it has to do with React diffing.
user1804599
I'll try batching the records.
Freezing probably indicates the event queue is full.
user1804599
There's just a method that does that.
user1804599
Yeah, this reduces the freezing a lot: lpaste.net/13247856689283072
14:44
If I have an infinite loop that writes to stdout. And I run my program like this:
./a.out | head -n 100
What exactly happens after I print 100 lines?
user1804599
It'll close stdout.
user1804599
And writing should fail.
Which quits the program?
user1804599
Depends on how you handle that error.
I don't do error handling.
I only do cout.
user1804599
14:45
Then it'll just continue I think.
user1804599
Also maybe the lag reduces even more if I remove the fade-in CSS animation on records.
nwp
nwp
@StackedCrooked then the fail bit will be set, ignoring all future attempts to print stuff, so you got a glorified infinite loop
So if I write crappy code C++ sets the fail bit.
4
Interesting.
user1804599
The most time is spent in ReactDOMComponent.Mixin._updateDOMProperties.
I know very little about iostream. I should have a look at it.
nwp
nwp
14:50
you can clear the fail bit and try again, but that doesn't really help if the pipe was closed
@Zoidberg Iterating DOM probably is costly.
user1804599
It doesn't iterate the DOM.
@Zoidberg That probably means not enough shouldComponentUpdate going on
user1804599
It diffs two immutable virtual DOMs, then it knows which actual DOMs it has to mutate in-place.
and not enough connecting from store state directly to the leaves of the tree
user1804599
14:52
It's fast enough for my purposes.
@SwiftOnSecurity Please refer to it as Marxist-Leninist Stallmanism as per the terms and conditions of the GNU GPL V3
@Zoidberg how fast are your porpoises
user1804599
Not 10records/ms.
user1804599
Way fewer.
@StackedCrooked The standard refers to it as "the bozo bit", in §177.5.2 ad 1
.scan((records, record) => {
const now = moment();
const all = [record].concat(records);
const recent = all.filter(r => r.time.diff(now) > -60000);
const limit = recent.slice(0, 1000);
return limit;
}, [])
What language is this?
user1804599
14:57
TypeScript.
user1804599
Also JavaScript.
@KarolisMilieška French
@KarolisMilieška ES6
But kinda interesting.
Not sure if useful. But fun :)
huh.
> researchers have also found evidence that people who are deaf or hearing impaired can stutter while using sign language
15:10
If Herb Sutter had a stutter I think I can guess what his nick name would have been.
But he's rather eloquent.
I just wish he would eloquently say better things
user1804599
15:36
> Cypher & Smith (1995) found in user studies that inheritance hierarchies cause difficulty for children.
4
@StackedCrooked It's not interesting unless he actually consumes the steak.
the video doesn't depict anybody cooking steak with lava, merely burning steak with lava.
He should at least have tried a bite.
wouldn't lava melt the steel?
user1804599
It is probably toxic.
> mikuios2 weeks ago
Next epsiode: Making a milk shake with an earthquake.
kek
16:05
> A long trough was setup to further their understanding/ability to cook over and on (yes, on) lava!
Further their understanding
family friends' dog has really loud snorts
I could hear it inside and it's sleeping a few metres away outside
old cutie is going away tomorrow I think
16:43
user image
5
!/cc @Morwenn
my yesterday's accomplishment: all the dishes are clean
@JerryCoffin I've worked with Win SDK for a few years and almost didn't know any of this.
@Borgleader I'm trying to think of one that doesn't have kids by now.
@Borgleader lol she made the bed
@milleniumbug I have one plate, one fork and one knife.
It helps :P
@StackedCrooked I practically never do
like maybe once in every 3 months or so
Can't remember when I last did.
17:02
@Borgleader Too bad, I already read it :p
@orlp I like the atmosphere :)
user1804599
@StackedCrooked I sped up the thing even more by creating a datastructure that indexes records by host automatically: lpaste.net/8533297438088232960
user1804599
Now during rendering it does the following:
user1804599
return this.props.records.byHost.entrySeq()
    .map(([host, records]) => ({host, records}))
    .sortBy(h => h.host)
    .toArray();
user1804599
Which is a lot more efficient than what happened before, which was looping through all records every time.
user1804599
So now it's O(hosts) vs O(records). (Disregarding sorting step, which happens in both cases).
user1804599
17:06
And insertion is O(log32 n) instead of O(n), due to use of Immutable.js instead of arrays.
@Morwenn notice !/cc ;)
user1804599
Was that supposed to be a negation?
17:12
I failed then :(
Anyway, laundry time.
user1804599
17:27
Ven
Ven
yes? that makes sense. when you make v8 deoptimize a function too many, it stops trying at some point.
user1804599
@Puppy overriding shouldComponentUpdate made a huge difference as well.
@Zoidberg looping through how many (~) records each time?
If it's a large array, then surely that's a performance killer.
I speak from experience :S
Wrote some stupid code in the past..
user1804599
17:43
@StackedCrooked 20 times the number of seconds the app is open
17:55
Youre not fooling anyone, you still do :P
user1804599
Eureka !
@Borgleader I know...
:(
lol was playing some sc2 with friends, we beat some other guys (3v3) and one of them was so mad, on top of shittalking at the end of the game as they were losing, he contacted all of us after the game to shittalk even more
lol
SC is supposed to be fun.
And killing humans with hydralisks.
some people forget that games are well... games
user1804599
And killing humans with Hitler's lists.
18:48
my wife for aiur
I mean, life.
So, I bought a new mouse
@Borgleader yeah this happens.
We played with puppy recently
and actually had quite a lof of fun
the mouse has a brilliant sensitivity display
instead of going [X---] -> [-X--] -> [--X-] like my rat does
it has something like [X--] -> [XX-] -> [XXX] -> [-XX] -> [--X]
it also has I think 11 buttons
user1804599
@Zoidberg Yeah, unnecessary component updates is one of the quickest ways to kill performance.
and direct-to-leaf store updates can minimize unnecessary parent updating too.
@StackedCrooked One of the "benefits" of having done a lot of development pre-Internet is that you got to spend a fair amount of time looking things up in books, so if you wanted to be able to do things efficiently at all, you had to learn to do them with minimal help...
user1804599
There's very few parents.
19:00
@BartekBanachewicz I have a mouse like that as well. G418 I think it is.
user1804599
It's like, dashboard > host list > shittons of table rows.
fair enough
user1804599
But direct to-leaf updates require use of state.
user1804599
I want to avoid that unless absolutely necessary.
well, somewhat, yes.
user1804599
19:04
It needs to store an Rx.Disposable and a List<Record>.
yeah, you have to connect the leaf component directly to the store/cache.
user1804599
Well, I guess it isn't a big deal, since the Rx.Observable is passed as a prop, instead of the record list.
yeah
user1804599
Ok let's try that.
19:18
typically, you have one stateful component to hide the current state, chuck a shouldComponentUpdate on that and have that connect to the store.
then the underlying component takes it as a prop as usual.
user1804599
Yaykaces, it works.
@jaggedSpire hey~
19:35
@Borgleader hey! :)
oh wow that's some pretty out of this world math on the sidebar
@Zoidberg Cannot reproduce
welp I've not seen that
19:53
> Faster than usain bolt with half a pound of sausages down his pants, being chased by a starved cheetah riding a dodge tomohawk.
Can warp space and create microscopic black holes under heavy loads. I lost my wife, kids and cat in one of said black holes.....which was an unexpected bonus.
> 2.3 GHz
@sehe lmao
@JohanLarsson x18 cores
Show me an app that runs fast on it.
@Mysticial does your thing scale to 18 cores?
@JohanLarsson found one :)
19:55
:)
@JohanLarsson Neural networks.
I assume it could compile C++ code quickly
@JohanLarsson IE
Damn, those EnChroma glasses. I want to try them.
you're colourblind?
20:01
Slightly.
Can't remember the type.
I guess I also have amnesia :P
red-green iirc
most common
@sehe fast on any hardware right?
Maybe I'm being too gullible today. But lol at this video.
@JohanLarsson WAV2MP3 of multiple files :P
@JohanLarsson But I agree 2.3Ghz does seem kinda meager.
Only for specific types of workloads.
20:14
@StackedCrooked Depends on the workload, memory timings, architecture, caches, etc.
17 cores hanging on one lock :)
lol
Of course I'm biased by the projects I've been working on for the past 3 years.
The only reason why it's clocked so low is because of the power draw. Intel needs some competition before they'll unlock those chips.
Why do they need competition?
20:16
yeah sounds strange
because they need to keep some cards up their sleeves
should be an audience willing to pay premium
yeah
it would be nice if AMD could get out of their rut and kick some Intel ass for a while
Amazon has access to higher clocked version of those because AWS is "authorized" to handle the higher power draw.
20:17
Maybe Zen will... maybe
also developing something now and waiting for competition before selling the real thing feels strange
@Mysticial Can they be overclocked by, erm, enthusiasts?
@StackedCrooked no
how do you know this?
20:19
Insider info
@JohanLarsson Because nobody has been able to OC it.
Multiplier locked.
I once overclocked a Duron 800. So far my experience.
Base clock can only get you like 3%.
oh, I mean how sure are you that intel can trivially unlock them?
Well, they are the boss of CPU.
20:21
@JohanLarsson Intel often sells locked and unlocked versions of their CPUs. I have the locked version of the i7-3770(k) pair.
@JohanLarsson Because that's how the CPU industry has worked for the last two decades.
chips are binned and there's only so much market for high chips, so high-performing chips are often sold as lower-performing ones
that's what the whole overclocking business is about.
The CPU game has not been like that for the last decade imo
@Puppy that makes sense
raw materials are cheap as fuck, it's the design, R&D which is expensive
cheaper to manufacture high volumes of few models
CPU game has really slowed down over the past few years, currently have an i7-4770k OC'd to 4.8 GHz and there's no point for me to upgrade to the newer processors any time soon
20:23
They also don't want the lower-end chips to eat away from the market for the expensive chips.
it's mostly about power efficiency savings in cpus thse days
Moore's Law isn't dead yet but it's slowing down
but the 18 core is hardly targeting lower end
@ArchbishopOfBanterbury Yeah, I have an un-overclocked i7-3770 and I dont either.
and GHz improvement hasn't been performance improvement for 15 years
20:23
isn't dead, it's just rotting away :D
Exponentials can't last forever :P
Moore's Law is something we should stop caring about.
It's true, plus GPUs are taking over a lot of the traditional cpu tasks now
what with parallel processing and all
@Borgleader I care about my computer! And anime. (And youtube.)
although I have 2 GTX-780s and I kind of regret not just getting a single card as not many applications support SLI still
Moore's law has to end someday as we're getting closer to the atomic limit of lithography processes - can only pack so many transistors into a chip
20:27
nah
that's what quantum computing is for.
we just need quantum chips to come before the end of lithography ;p
Well that's still a way off though ;) many hurdles to overcome
true
but it'll also be bitchin'
can we even use quantum computing for anything
...except breaking RSA
yes.
Plus some classical computation tasks will still be faster than qm - qm is for highly parallel tasks
20:28
@milleniumbug capitalism
BQP and P are different complexity classes, some ops are known to have linear quantum algorithms already
and IIRC, quantum CPUs can achieve a sqrt(n) speedup on basically any problem, even NP-Complete ones.
Shor's algorithm can break RSA its true, but by the time we have quantum computation quantum cryptography will be widely used
And many qc processes are practically unbreakable (e.g. BB84 protocol)
so whilst quantum computers may not be great general-purpose processors, they're fucking great at some very, very hard problems.
the parts where we really need better processors.
What's most likely to happen (and a lot of papers say this) is that there will be very few quantum computers in the world but "everyone" will have access to their processing power via a "quantum computing cloud"
@milleniumbug Facebook
20:35
@StackedCrooked Browsing it?
And tweeting too.
@ArchbishopOfBanterbury That's only the first stage
Quantum Computing: "But can it run Crysis?" :p
hmm
quantum crysis
I assume later we could have quantum coprocessors, the way we used to have floating point coprocessors.
20:36
@milleniumbug I was thinking that
Yeah that's likely
and we still have graphical co-processors
what about FPGA coprocessors? I read an article about that recently
don't know if they find any non-specialist uses
20:44
@milleniumbug Yes, it can also do database lookups in constant time.
user1804599
I'm using emoji for icons in my app.
screenie
user1804599
It looks terrible lol.
54 secs ago, by Johan Larsson
screenie

« first day (2009 days earlier)      last day (3165 days later) »