« first day (2075 days earlier)      last day (2876 days later) » 

8:00 PM
and with a slim container, you can actually get a few thousand req/sec
 
@ssube ok, thanks
a few reqs/sec is more than what I need
I'm talking about development servers, not production
(production servers are obviously more beefy)
 
lemme go figure out what server I'm using for integration tests
@FlorianMargaine bear in mind, this is all for jersey webapp containers, which follow a particular spec and can be swapped out independent of the server. A truly embedded server will be even lighter.
 
I see
@ssube I'm thinking of the usual java developer who wants to write a webapp
 
If you want to let your consumers use the standard interfaces and servlet API, though, you need Glassfish or Jetty.
@FlorianMargaine yeah, so servlets.
 
8:05 PM
We've had good luck with Glassfish and Sonatype uses embedded Jetty for the central Maven repo.
either one can, if you're careful, run in 64-128MB
 
@ssube this one uses -Xms96m on a 300MB VPS... so there's 200MB of stack allocated for java?
(well, I mean, java uses ~200MB for its stack?)
 
-Xmx96m -Xms96m means the heap will always sit at 96m, not counting metadata and the VM itself.'
-XX:PermSize=24m -XX:MaxPermSize=24m means another 24m for the code cache.
 
yeah, I guess my question is "do you know how much metadata and the VM can take, usually?"
 
the worst case I remember seeing is +50%
our datadog might have some info, sec
 
@ssube usual case. If some customers go in swap because they have bad apps, nothing we can do.
 
8:09 PM
right now, on one of our Akka/Spray servers in prod, I'm seeing 286m overhead (non-heap memory, so code + metadata + vm) for ~1.4g heap (with 2k threads, for curiosity)
oh, that 286m is actually constant across all envs, regardless of heap size
 
oh, 2k threads is a lot of stack space
ok, that sounds fair
oh..
 
yeah, we're forcing ~2k threads regardless of load, looks like
just a constant-size pool
but I'd say 1/6 of heap on the low end, 1/3 on the high end
 
ok. I'm originally looking if that's something we can offer, but now I'm more interested because I want to know how Java itself works, eh
 
user1596138
Anyone using react-router?
 
@FlorianMargaine questionably is how
 
8:12 PM
@ssube wait... forcing 2k threads.... you have 2k threads sitting in a thread pool and never creating/deleting any?
 
the biggest gotcha is that Java 7 and before split the code cache (permgen) and heap
@FlorianMargaine ehh scala ehh akka ehh pools ehh our developers might be idiots
they insist on having like 100 connections in the DB pool instead of just caching things in memcached or something reasonable
 
so those are pretty bad examples and it's still 1:6
ooh, let me check the TeamCity server
 
@ssube I laughed way too much at this
 
that's a huge, long-running server
 
8:17 PM
@ssube data?
 
also it's Jetbrains, so it's not well optimized
the graph is what the JVM thinks, high-level, and then top output
 
yeah but, what's "data"?
stack?
metadata?
 
no, it's one of the generations, I think
 
I find myself showing the user "diffs" quite often.. it's useful. I do need to improve my UI, though
 
Writing resume Question #2: Are you bilingual? Answers yes Question #2B: What languages do you speak? Answers English, Java, Python, PHP, C, and C++
 
8:20 PM
quick proof of concept I throw together using a JS deep-diff tool:
 
@Luggage nice
a visual diff might be better yeah, like showing just the field and red/green for old/new
 
it could use a lot of little niceties (replacing the JS names with friendly names, etc)
 
colors would be good
 
yea.. visual diff would be nice, but I couldn't work it into the existing UI on such short notice
 
at least green/red for added/removed
like, your internalComments would make sense as a new field
 
8:22 PM
yea.. that should be simple enough
yea.. i think it treats null -> something as EDIT and undefined -> something as NEW. I can fix that.
 
Does anyone here know how to use the TinyMCE API?
 
@TrentonMaki Welcome to the JavaScript chat! Please review the room 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.
 
@TrentonMaki you'll have more success asking a specific question about it, but I don't hear it talked about here too often.
 
but.. depends what your problem is
before I invest too much time turning that deep-diff output into something pretty, I should make sure I want to stay with it..
 
8:27 PM
@FlorianMargaine what exactly are you trying to do, besides adding servlet support? Do you just not support JVM languages at all right now?
 
@ssube latter, yeah
 
also, for your use case with many small apps, you might consider using the servlet container APIs directly and adding/removing your own classloaders
you can implement hotswap to make one large servlet container act like a real container host
 
@ssube no, each application gets its own lxc container with constrained resources
 
you just have to be careful to keep the classloaders separate
 
and we try very hard to separate every customer's assets
 
8:28 PM
Alright, I'll just ask it then. I have a bunch of html like this:
```
<div><span class="bold-button">B</span> <textarea class="mce"></textarea></div>

<div><span class="bold-button">B</span> <textarea class="mce"></textarea></div>
```
And I'd really like to be able to do something like this: $(".bold-button").siblings(".mce").getEditorInstance()
 
@FlorianMargaine probably worth wasting the VM overhead, then.
 
But I've been looking for the last half hour, and I can't find anyway to do that in the docs
 
Done right, you can get hotswap working well by hanging onto the top class loader for the app.
 
(like, we could reuse things across customers projects when we know the exact same hash exists, but we explicitly don't do it)
 
@TrentonMaki is mce a jQuery plugin?
 
8:30 PM
I don't think so,
but I'm just as happy doing: tinymce.getInstance($(".bold-button").siblings(".mce").get(0))
I just can't find a way to get an editor without supplying the textarea's ID
 
I'd stick with that. Though that only returns one instance, of course.
your end result is to get an array of all instances?
 
@TrentonMaki hmm, no traces in the DOM you could write a selector against?
 
@FilipDupanović I'm not sure what you mean by traces in the dom?
 
ignore him, he likes to spout random words.
sometimes they are insightful. sometimes.
 
@Luggage the problem is that there isn't a getInstance method as above, all I can seem to find is get(textareaID) https://www.tinymce.com/docs/api/class/tinymce/#get
 
8:33 PM
well.. you could create a jquery "plugin" that would give you that method, but it'll really just be wrapping the tinymce.getInstance() so.. meh..
 
............ I'm an idiot sometimes. tinymce.get($(".bold-button").siblings(".mce").get(0).id)
Is what I need
AGGGHHHH
Sorry for bothering you all
Have a nice day!
 
ohh, I misunderstood the problem. you needed the id to get an instance..
 
Yeah
There isn't a getInstance method
 
@TrentonMaki hey, looks like there's an object tracking all the editor instances tinymce.com/docs/api/class/tinymce.editormanager
 
It just doesn't exist as far as I can tell
@FilipDupanović I saw that, but I didn't see anything that allowed me to get the instance attached to a certain element, kind of like you can do with lots of jquery plugins
 
8:37 PM
are you sure the editor ID is the element's DOM ID?
 
Yes, I'm pretty sure
Either way, I'll find out soon when I test it!
 
looks like you can do Object.keys(manager.editors), you can get the ID from editor.id, the element from editor.dom
 
Ahh, editor.dom is exaclty what I need, in reverse.
But it's OK!
 
Pricing: Call us. F you, TinyMCE.
 
I've already got a perfectly fine solution, if I'd stopped and thought for 10 seconds before messaging you all
 
8:41 PM
buy a rubber duck
 
I will
 
I'm so lost with JSON parsing :'( can someone help me understand how I got about solving this? jsfiddle.net/1e0hkdma
 
what if someone catches you talking to a rubber duck?
 
its mad simple just no idea how to start
 
@ssube I did that for my troops. Bought them all rubber ducks, told them to talk their problems out there before they come to me.
Of course, I just talk to myself, so I used to get all sorts of looks.
 
8:42 PM
did they come back, saying that the duck solves 90% of their problems?
 
so. I decided to search newegg.com for rubber ducks, assuming they wouldn't have any
When did newegg turn into an Amazon wanna-be?
 
in jquery I have a stored var $gMaps can't I do ($gMaps + 'li') or is there something else I have to use?
 
@Luggage few years back. They started with a woot thing, then merged it into the main site.
about the same time I switched to Amazon because their prices were better...
 
Ugh. I liked newegg for their specialization.
 
their comparison was better, had actual specs
 
newegg's or amazon's was better?
 
man, I was at best buy yesterday to get a laptop (cause the surface 2 isn't cutting it anymore) and every god damned tag had different specs than the laptop it was by
 
@Raja L8, sourceArray.replace()?
 
@Luggage newegg had better data tables, amazon had better prices
 
ok, right
 
8:45 PM
@Tarson $16? wat
 
@Tarson do ducks even eat donuts?
 
I have a MicroCenter near me now. It's nice. Lots of selection.
 
@ssube For Sure but they might die after
 
Like whole isles for hard drives, motherboards, video cards, etc.
 
@Luggage especially for arduino bits
 
@ndugger cute.
 
But they had a macbook air and a previous generation side-by-side for $100 difference. the old one had half the ram, non-retina screen, spinny disk. I hope no one is dumb enough to buy it.
 
!!afk I have to fart so bad, then I'm going home
 
> Is junk! The head seam did not hot hold. The valves do not fit and the vinyl is really thin.
 
8:47 PM
I picked up a Yoga yesterday and it's pretty great
 
No, I have a 2 year old macbook pro that I am happy with.. just looking because I wanted to try the newer trackpads.
 
Yoga is awesome
 
how sturdy is the hinge on that?
 
8:49 PM
it uses an array of interleaved rolling cylinders, so it's pretty good
 
the ASUS ones were a little bit more solid, but the Yoga had an SSD
I didn't want to tempt fate with a 1TB platter in a laptop
 
@ssube Just get a Surface Book that's what I use you can also play GTA V on high settings too!
 
ohh, it just bends all the way around. I was thinking that it flipped.
 
@Tarson I have a Surface Pro 2 that I use for stuff, but wanted something with more memory and an actual GPU.
 
8:50 PM
Gonna keep the pro 2, since it's a cintiq digitizer
@Luggage those were dope, but super breaky
 
@ssube Surface Book has Nvidia GPU and 16gb of ram
 
@Tarson eh heh, and how much does it cost?
this was left-over money from my car-fixing budget
 
$3000 + tax
 
@Tarson overpriced
 
@Tarson yeah no, I spent $800 for slightly lower specs
 
8:52 PM
It has face regonization, touch screen, detachable to tablet, and Metal keyboard its amazing
The CPU alone with the GPU turned off can play GTA Low settings 1080p
 
the only thing I'd like is a dock
 
wait, there's a different series of Yogas, apparently shop.lenovo.com/us/en/laptops/yoga/900-series/yoga-900-13
 
yoga doesn't dock like me w530 does
 
@ssube Get a Asus Zenbook
 
all our lenovo docks wore out.
I'm more in favor of a apple-style single-cable to a monitor that acts as a dock configuration, now.
 
8:54 PM
@Tarson didn't want to spend that much
this is for playing casual games and coding stuff in bed
 
though.. apple doesn't have any reasonable monitors anymore.
 
@Luggage huh, what's that? some proprietary protocol?
 
the desktop is in the basement which is just too far away :(
 
display port.
 
@Luggage nah, they dropped all their decent monitors.
 
8:55 PM
or.. no.. thunder-whatever
so.. not proprietary, but not common.
basically one thunderbolt cable to the display, which was a usb hub.
 
are Dell XPS expensive?
 
depends on the model.
 
I'd rather buy a cable, than a dock that I may not be able to use with the next device
 
@FilipDupanović you should see the surface pro docks
they are great
 
yea, the single cable is appealing, but I'm not sure it really took off. There are other thunderbolt displays, but the selection is weaker than the alternatives.
 
8:57 PM
you set the tablet in, close the wings, and they just plug into all the normal ports
 
yeah, it looks beautiful and very handy
 
@FilipDupanović see "docking station" apple.com/displays
 
the Surface hardware is great. I think they just paid ASUS to make cases for them.
@Luggage yknow, my ultrasharp has almost all of those ports
 
did I say I just bought a Chromebook?
Asus c300
 
DisplayPort supports chaining all on its own and USB on the side
 
9:00 PM
is it high-dpi? i'm not set on an apple display, but I want a nice high-dpi one.
i only have thunderbolt doprts, but they might be displayport also.. or something.. do I have that confused?
well, and hdmi, of course.
 
1080p on a 15.6" display is pretty good
 
i have that
i think :|
 
nah. i want 4k minimum.
 
* measures *
 
4k 24" or 5k larger.
 
9:01 PM
@Luggage I compared the two very closely yesterday and couldn't tell
 
hell, I can barely see the pixels on a 1080 anymore
 
@Josiah I could see you doing this.
 
bullshit. I'm staring at 4k 15" right now and I'll know if it downgrade to 1080p
 
yes my laptop is 15.6"
 
9:03 PM
@Megaplex is it Friday, are we free?
 
@FilipDupanović That's not me, I pulled it off Imgur.
 
heat and water in the same place seems bad
 
@Megaplex Who pisst in the pool
 
@ssube getting old?
 
@towc been sitting 3' from a monitor for 15 years...
 
9:07 PM
@Tarson ...that's what happens with plastic pools when you don't treat them. It's scum growing along the bottom.
 
to flow or not to flow...
 
@ssube doesn't make you not old
 
@Megaplex eww that shit had to be untreated for weeks lol. Need to throw some shock in that bitch
 
@Tarson Again. Not. My. Pool.
 
@towc I'm not that much older than you, m8
actually wait, maybe I am
 
9:08 PM
@Megaplex lol ik
 
I get that often :P
 
I could probably physically be your dad
if I'd been getting it on real early
 
are you not? D:
my parents made my sister when they were 24... and I thought that was normal in western europe...
turns out I was wrong :P
 
@towc no. If you were my kid, you'd be getting more fucked up then you do now, but you'd be doing it right.
 
meth?
 
9:10 PM
You might black out, but you'd wake up with a dime.
 
@towc what is then?
 
@ssube Remember that time he dad?
 
@ssube something you wanna tell us buddy?
 
@towc nah, I've told that story.
 
@FilipDupanović 30-40 apparently
 
9:11 PM
Told it like the Monday after it happened.
 
@ssube transcript or didn't happen
 
@towc 30 is pretty average
@towc just look up "fortune cookie"
 
30-40 is pushing "too late"
 
mine were 38 and I hate them for it
 
9:12 PM
I'm thinking 28-30 is about when I'm going to pursue/abandon this whole kids thing.
Gives me another 5 years of partying before I have to do boring shit.
 
hah
have em young!
get it done and over with
 
Unless you're @Loktar, then you'll have a basketball team before you're 22.
 
or don't
 
@Loktar but then they end up all fucked up
 
9:13 PM
nah
mine are pretty good imo
 
I don't know a single person whose parents were <25 who can handle money in any way
 
I feel I can relate a bit better too
 
like, every person with teen parents I've ever met just threw money away
 
@ssube still clueless..
 
well that's just dumb
 
9:14 PM
@ssube Fuck, my parents are 51 and 47. Those mother fuckers are still awful with their money.
 
but don't the teen parents have mature adults as parents?
 
my parents were awful with theirs as well
 
my parents were pretty young, and i've got quite a bit of money put away for later
 
that's where I learned what not to do lol
 
my parents weren't great with theirs, but I don't have that problem
 
9:14 PM
> You can let your bills sit for 2 months before people will start turning things off
thanks for the advice dad :/
 
if our parents were wonderful, Fox News wouldn't edxist
 
@FilipDupanović the average age of pregnancy for my classmates in elementary was 40 :P
 
@Loktar fun fact: not with my landlords.
 
@Loktar And your credit score will tank because you're 30 days past due.
 
well, for the parents of my classmates
 
9:15 PM
@Megaplex my dads credit score was sub 400 for a while
 
Water company sent them a bogus notice the other day and they gave me one day to pay it and send them the receipt.
 
we took him out looking for cars, POS's mind you and they would all look at me to cosign for him
 
I'd already paid it last week, so it wasn't a big deal
 
was so weird "Can your son cosign for you?"
 
@towc so your kid is 20 and you're falling apart :(
 
9:15 PM
hell no.
@ssube LOL wtf?
 
my credit score has always been good, but I fucked up and forgot about somthign recently and went over 30 days :(
 
@Loktar so, water is quarterly, not monthly. It's stupid.
 
I can survive, though. I already have a house and shit.. so who needs credit.
 
I unsurprisingly forget it for like 2 weeks
 
wow that is weird
 
9:16 PM
no big deal
 
I don't even have a water bill anymore! Well water ftw.. or not :P
 
but the city sent me and the landlord a letter reminding me to pay it
 
lol weird
 
again, not a big deal, so I did
 
what would the landlord do?
 
9:16 PM
if we don't have utilities, evict us
 
if you didn't pay I mean, can you be evicted?
ah crazy
 
it's in the lease that we have to have power, water, and trash
 
I guess that makes sense though
 
it's so we can "maintain a sanitary house" and "not die during the winter" and stuff
 
yea..
 
9:17 PM
which is kinda nice, evicting people for living in a pile of garbage
means people at least have to try
 
9:28 PM
the credit card system isn't so widely used here
i'm not a fan of it
 
@KarelG how do you pay for drinks at the bar, then?
 
cash ?
 
debit cards
 
carry hundreds of rubles?
 
debit cards if i need to spend large expenses
 
9:30 PM
I like just having an open tab when I go to the bar
pay at the end of the night
 
sadly @KarelG, I don't think you're right on the account of credit cards
 
@FilipDupanović last time I was in europe they were not widely used
 
Filip, can you elaborate ?
 
err
what's the difference between a credit card and a debit card?
 
most Europeans don't maintain a budget, aren't aware of their expenditures and receive salaries on credit cards that give them a allowance to go into a negative balance
 
9:32 PM
@FlorianMargaine CC is tied to a line of credit, DC is tied to a bank account.
 
debit takes moneh directly from your checking account
 
debit card is linked with your bank account. Like a digitalized version of a checkbook
 
CC counts up to a credit limit, DC counts down to a 0 balance
 
people use mostly DC in France
 
9:32 PM
credit card offers you a credit (loan money) which you can spend
 
when you hit your limit (high or low), any other transactions will be declined
however, CCs over here tend to have "rewards" of some sort
 
I don't think CC exist, in fact
 
it exists here in europe, only rarely used
 
my primary one gives you 1% of whatever you spend in "points" that can be used for gift cards or against your balance
good ones are 2-3%
sort of a loyalty rewards system
 
you can get that at carrefour
 
9:34 PM
so I bought an xbox
 
I originally got a CC so I could build a credit history and buy nice cars
and then I succeeded
 
and got this game with it
called quantum break
 
so flowjs sure gives my cooling fan a workout..
 
and I think they've taken the whole cinematic gaming a bit too far
there's actually a TV show embedded in the game
 
> Quantum Bake: Do the brownies have weed in them? No way to tell until you eat them...
 
9:35 PM
@FilipDupanović when using credit cards, you aren't aware of your expidentures either
 
@Mosho gross
 
and it has B+ listers
like littlefinger
and the black guy from the wire
 
@FlorianMargaine they do, they're part of your regulations on bank accounts
 
and that guy from x-men
and you get to make decisions which change the episodes you see
they even refer to the (25 minute) episodes as "the show"
oh and they have pipin
from LOTR/lost
 
@KarelG here is your average adult: earns 1.0, buys car on a lease for 0.20; isn't aware that with maintenance it ramps up to 0.4; lives in some shithole paying 0.25; whey they receive a paycheck, their balance goes from -1 to 0; has no idea where the rest of it went; Mom, halp, moonies xoxo
 
9:42 PM
!!afk Burning down the house of the sun.
 
10:01 PM
Hey guys
hi
ssube do you know Java as well?
filip?
 
first time i see an adult using "xoxo"
 
10:17 PM
xoxo
 
10:29 PM
anyone know a JS library that is made specifically for easily hiding/showing form inputs based on the values of other form inputs
 
@bsapaka Welcome to the JavaScript chat! Please review the room 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.
 
10:45 PM
yay, flowtype finally works with es6.
 
10:55 PM
I have followed all guidelines this time
0
Q: Encryption & Encoding(AES, UTF-8 and base64)code conversion from JAVA to node.js giving different results

Gandalf the WhiteJava Code public String encrypt(String key,String inputString) { try { SecretKeySpec secretKeySpec = new SecretKeySpec(key.getBytes(), "AES"); Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding"); cipher.init(1, secretKeySpec); byte[] aBytes = cipher.doFinal(inputString.getByt...

Please let me know where am I lacking before downvoting
Thanks.
 
user1596138
@Megaplex That's badass
 
@Josiah Megaplex is afk: Burning down the house of the sun.
 
user1596138
Too bad it's not the house of the rising sun
 

« first day (2075 days earlier)      last day (2876 days later) »