« first day (1784 days earlier)      last day (3381 days later) » 

05:16
Morning
06:04
Hola!
06:22
Anyone experienced with WebRTC?
06:52
Hi, is anyone here familiar with using Java Processes to execute BASH commands in linux?
Well, I'm neither
fge
fge
@cp101020304 processes are processes, whether bash or not; now it depends on what you want to do
0
Q: piping output into middle of bash command

cp101020304Somewhat related to this question: Convert audio files to mp3 using ffmpeg I want to execute a command in one line using piping in BASH. What I am trying to do is this: echo "Hello" | somecommand | ffmpeg -i _____ -f mp2 output.mp3 Where the _____ is the output of somecommand. Is there any...

Gotten a couple of answers, going to try that out
07:43
Morning
Morning
07:58
morn
08:09
I'm totally stuck on the murmaider song
did you hear CR is now officially undergoing design-independent graduation?
Good morning. 6 more days.
good morning.
what do you think of the latest @tagesschau campaign on twitter?
... english module is still loading..
@Vogel612 Neat!
I'm from "fuck this" to "meh" now..
I'll celebrate when the design is out and I get some swag
but if that goes on in the current speed I might just reach 20k before the privileges are raised...
08:16
@Vogel612 What campaign? oO
they got the pictures of employees and their statements about #Fluechtlingskrise
and tweeted them
god the responses that twitter shows are 90% nazi-garbage
"Don't make so much Propaganda"...
and that's one of the better ones...
Same old same old
yea....
why the carp is LEFLOID actually having adverts on Spotify???
It's a touchy subject.
it's a dead simple subject, IMO.
08:23
Yeah. Refuge is a human right. But still. Not everyone who's afraid is necessarily a nazi or malignant.
Maybe touchy was the wrong word
08:36
In other news, someone ran me over with their car yesterday. :<
wat.
Wat
Are you alright?
09:20
@wonderb0lt I hope it was a Chinese car and not a German one
you ok?
yup
I had a very lucky fall to the ground
@Tavo It was an Opel, so...
@wonderb0lt ouch
where was the guy looking at?
People on the left side of the entrance, he slowed down, they stopped, he drove on without looking right
09:23
clearly
maybe he was British and he looked left
No he was Bosnian and probably didn't know that bikes have way of right on a bike road
All in all I think I just need a new front wheel and I'm golden
I'm glad it didn't go worse
You don't need much speed to get severely injured
Having right of way isn't much comfort when you're in a coma...
09:40
Hi, I need to store just a couple (around 10) of two related Objects for future reference. Say Object1 and Object2 and if I do not need all of Object2 I need Object1 to look up Object2. So my guess is I need HashMap<Object1, Object2> for this. Is this correct?
@Gemtastic Yeah. I got lucky.
And I was wearing my helmet \o/
@MennoGouw sounds about right
@Tavo great, thanks!
shrugs
And what about I already have a List<Object1> and further on I create List<Object2> while iterating over the first list. How reliable would the index position be for looking up Object2?
09:47
@MennoGouw that depends on how you store the objects, but there's no natural relation between one list and another. Also, why would you create two object if you already have one that gives you the relationship you want?
you can also iterate over a map, so...
@Tavo Deciding if I wanna go for a HashMap or the two lists. The two lists seem hacky though, like you said no relation...
@MennoGouw I wouldn't say hacky. I would say reinventing the wheel
Since I already have the List with Object1, further on in my code I create Object2 now I come to the conclusion that I need Object2 linked to Object1.
@MennoGouw The HashMap is the better idea. If there's not a 1:1 mapping there's other ways to handle this with a HashMap Map-like type
8
Q: Google Guava "zip" two lists

Steve KuoUsing Google Guava (Google Commons), is there a way to merge two equally sized lists into one list, with the new list containing composite objects of the two input lists? Example: public class Person { public final String name; public final int age; public Person(String name, int a...

another option might be to add a reference to Object2 inside Object1
now that's hacky :P
hacky dance: (ˇ_ˇ”) ƪ(˘⌣˘)┐ ƪ(˘⌣˘)ʃ ┌(˘⌣˘)ʃ
09:53
@Tavo Might not correct in the domain model...
@wonderb0lt hence the dance
it's like when you get back home, open the fridge and grab a bite of whatever's there. Happy unnecessary food dance
I can't be the only one...
hi
 
1 hour later…
11:14
Dead chat...
Or it's just lunch?
Lunch?!?!?!...I just got up
:P
How are you today?
there is lunch
11:30
I got up 7h ago :P
There was, but it wasn't free
I got up 7 hours ago...2 minutes later, I went back to sleeps
12:08
hello my friends \o/
I've just joined the ominous 500 club
wtf is it (congratulations anyway)?
hehe
500 rep
i was just fooling around
;)
Congrats
Good to hear that, I thought you got a style make over and looking ominous now :)
thx
hahah thats a good one @MennoGouw
12:29
What you will do with your rep in future?
Something's wrong...
I'm learning bash scripts and docker way too easily...
squints eyes
Hi everyone
Javamates
12:44
Does anyone give a hint? I want to read every digit of a string like this: 00123454554404545
Right hand side?
only with int variable
I tried char, but char is another story!
@user1364513 why?
what do you mean?
@degr you mean with char?
@user1364513 the answer is several times in SO
@Tavo link please?
@user1364513 I'm not Google
12:49
I was curious about the function which does the ASCII mapping so I looked for it
4
A: how to add all integer values of string using java?

kai Change type of result to int. Parse the char to an integer. If you only cast the char to an integer, you add the ascii value of this character to your result. String something = "123e45,j, _122"; int length = something.length(); int result = 0; for (int i = 0; i < length; i++) { Character c...

@user1364513 Integer.parseInt(str)
@Unihedron what if it's bigger than Integer.MAX_VALUE?
@Tavo it's exception
@Tavo then you get Integer.MAX_VALUE
try it out
@Unihedron you know what I mean
12:51
You're assuming it matters, because the example string isn't.
@Unihedron he said "like this"
/javadoc String
@Michael What's up with the bot?
I thought he wanted to get every single digit
lol
12:53
@wonderb0lt yeah. But out of an int you can always use module. I assume that would be the approach Uni is suggesting
@Tavo What I want to do is: I have to identify odd and even nums and sum of all nums
@wonderb0lt he don't?
@user1364513 Then have a look at the answer I posted here: chat.stackoverflow.com/transcript/message/25646068#25646068
This should give you everything you need to write your own program
@wonderb0lt else, I'm sure the solution is online somewhere
that sounds like a pretty basic uni exercise
@wonderb0lt Yes, thanks man! I got it, but it is not what I looked
12:55
lol
@user1364513 Well you can be happy I was curious too and searched it for you ;)
@Tavo Yeah pretty basic Uni exercise. Get to it, @Unihedron
??
Can I use streams?
@Tavo it is very basic I know, but I;m not expert like you guys!
@user1364513 none of us are experts
@Unihedron You can use everything you want, darling.
12:56
@wonderb0lt I think you need to write the code for him, write a bunch of unit tests and then hand it over with his name to his teacher :P
@wonderb0lt ok then I'll use this language:
@Unihedron ook or nothing
@Unihedron Stream is exception!
@user1364513 Streams are not exceptions.
@user1364513 I'm going to print that out in a piece of paper and hang it on the wall
12:57
@Unihedron I mean in the condition!
@user1364513 But you never stated the condition.
...of his school exercise I think ;)
This program takes several digits from input. It then finds the odd numbers, even numbers, and computes its sum. These values are printed to the output.
^ solution in English
@user1364513 the only way to learn is to do it yourself. @wonderb0lt has given you something that will help you sort it out. If you just want a quick solution without knowing what you need to do, just go to Google (or DuckDuckGo) and the solution will be there in at least 10 different languages
google sucks
12:59
Well, I'm not asking you guys solve my problem. I just asked a hint!
@user1364513 you've been given one
@user1364513 iterate through each index of the string with charOf, or convert it with toCharArray and use an enhanced for loop
work with that
I got know what should I do!
Thanks to all of you!
Exercise more...
Jogging is good for you
watching so many games go at once is awesome lichess.org/games
13:01
games of?
chess
@Unihedron you like chess?
that's a given :)
@Unihedron The most brain storming one I like it!
@wonderb0lt Yikes, glad your okay dude
13:09
Did it hurt?
^When I fell from heaven? Yeah a little bit
Thanks for asking
... nice try
anybody want to do something more material than programming?
Want to buy welding machine
and do something cool
@Dustiny get a new line, mate
but don't know what to buy at first
welding machine or something for microcontrollers
want to make something like smart house by hands
hey
coders
13:26
hey
@degr
nobody want to do something more interesting than code?
what is?
@degr Wanna buy personal robot :)
roomba
I want do personal robot
13:30
roomba is not personal
it is. You buy it, it's yours
@Tavo what is it? Cleaner?
@degr yup
lol, I know one issue with such kind of robots
13:31
it's useless and expensive, but it seems that cats love to get on top of them
@degr Make a really personal robot
One that touches you in personal places
@degr if you wanna do, why we can't try? :) me interested too
@Dustiny robotic fleshlight? that must exist already
I think the japanese invented it
hahah
if you have animal, and it will make some liquid shit on your floor, this robot will smear it by all room
13:32
@Dustiny not surprised
@degr Get into wood working or something lol
Building robots isn't actually that much fun
I've built three and each of them was more of a chore than anything
@Tavo lmao nope. I think they are trying to integrate it with the oculus rift next for the whole experience
I need welding machine for some other purposes, but hope it will usefull for me in future
@Dustiny I'll buy three, please and thank you
You are not trying to use a welder on Java, I hope
now I want do device, that will be able to turn light in my room from my laptop
13:34
@Tavo Each one with a different texture?
it is already invented n the cost is couple dallars
Actualy have no idea where to start, think need to learn some about microcontrollers programming
@degr Just buy an arduino
The coding is in C, it's super easy
They are what I used to make my robots
start by programming in arduiono
you guys know there's a remote control for lights for like £20, right?
13:35
arduino*
is much more fun and easy to learn
@Tavo Arduino's cost around the same price! And the possibilities are endless
@Tavo may be, but if I will do it by self, it will open some more opportunities for me
@Dustiny yeah. It normally ends up in a drawer after a couple of weeks, never to be used again :P
@Tavo lmfao exactly! So many possibilities to do nothing with it
I think a disk washing robot would be cool
(insert joke about them already existing as washing machines)
Oh wait, nvm I already have a woman in my life
BOOM
runs away
think I need buy arduino
13:39
I need to buy something that generates money.
hmm a money press?
perhaps an ATM machine that you can lend out to a bar
or a vending machine (if they even make money still)
o, there is a arduino shop in my city, that contain wires, controllers, weels and gears
A printer can make money, just don't get caught! :P
:25647452, :25647444 guys there is new world
13:46
I have a presentation in 10 minutes.. so brain dead
I wonder how much coffee I'll need to even function properly during this
Maybe I'll just do a combo of coffee + anamanaguchi
that should wake me up
@user1364513 I want to refer to you and Dustiny
anamanaguchi?
anamnaguchi is a new world by Dustiny ;)
think it's cool if you are junky
a piece of shit
13:59
I don't know wtf you guys are even talking about!
guys
does anyone know of a hourglass timer implementation in Java?
@Unihedron no. You need gui?
no, library
I can't understand
think like a library with a custom object / function
that does an hourglass timer countdown / reset
in Teenage Programmers Chatroom, just now, by Unihedron
countdown from 5 min -> calling invert() 2 mins later -> countdown from 2 min
14:10
That sounds like something fun to implement
Yep! I'm going to do it, since I can't find one
14:28
I'm kinda cheating, but I have 4 of my game shapes running on my phone...
15:18
An hourglass library? sandGrains.get(76538).fall()
That would take forever!
15:51
@Michael yeah something like that
16:11
0
A: Create Provider failed

UnihedronRegister it. // This block of code is a demonstration of // how you register the service manager in your API. ServicesManager sm = getServer().getServicesManager(); GameAPI service = getMyGameAPI(); sm.register(GameAPI.class, service, this, priority);

I haven't spoonfed anyone in a while, feeling generous today
Anonymous
Are org.json and JSONLib the same thing?
@FrancescoMenzani no
Anonymous
Well, I'm concerned about this answer. First it says org.json, then the link is about JSONLib, then the XML code is about org.json again. Look at the revision history for older versions.
This is org.json: https://github.com/douglascrockford/JSON-java
This is JSONLib: http://sourceforge.net/projects/json-lib/
JSONLib has the artifact name of "json".
Anonymous
@Unihedron Now I get it.
16:22
Saying "the org.json library" is synonymous to saying "the library by org.json".
which, frankly to say, there's nothing wrong with the answer
Anonymous
Should this be rolled back?
Too lazy to. Just leave it like that.
Anonymous
@Unihedron What? Why? If org.json and JSONLib are NOT the same thing, the only thing that is wrong was that, because the XML code is ok (since the artifact name is "json").
@FrancescoMenzani ... that's not just XML, it's a maven dependency declaration
the answer is fine before and after your edit
Anonymous
@Unihedron I don't know Maven, but I know that it's inside a .xml file. Anyway, thanks.
16:29
you're welcome
Anonymous
10
Q: Sizes of frame icons used in Swing

Andrew ThompsonWe can use a list to initialise the window icons using Window.setIconImages(List<? extends Image>). What are the different sizes of icons typically used for in a JFrame? Code This code turns 64 different sized images (from 16x16, incrementing by 2) into icons for the list. import java.awt.*; i...

17:04
I think kids and young adults are gonna start going outside again:
Aww, it says "via 9gag.com" to the left. That totally killed the joke.
:(
It's true though
@Gemtastic That would be cool
I heard about this on facebook last night
Hopefully i find a wild magikarp
17:23
Argumented reality. I've been waiting for them to make pokémon happen since I first heard of it
Argumented reality? hahaha
Can't tell if you meant Augmented or if there is a different type of reality im missing
But same here! I was the first kid I knew with pokemon cards, I found them bad boys in China town (in chinese) at least 2 years before anyone else had em
Totally mean Argumented reality. Never tried Schizophrenia?
lmfao
I can't say that I have multiple personalities arguing with eachother
18:12
You can, but it's a different disorder
I think I could, but I don't and can't. Is that right?
Maybe, because green don't pants
Do green pants though?
I just said it don't
Damn I meant do pants green
18:25
Yes, pants do green because flippers are hands
So do call phones because wings are feet?
No! Phone do hiking because dwellers are lite.
brain implodes
Ever see the movie ex machina?
Ah it's so good
I'm debating watching it for the fourth time this weekend lol
18:48
I'm a once time only kinda movie watcher
I usually am too
With the exceptions of movies like Ex Machina
and for some reason Dodgeball
 
1 hour later…
20:04
jCurses is kinda neat =)
Is it kind of like harry potter curses?
21:03
Any android people in this room?
21:13
@Joe'sMorgue Sorry I'm a human person
2
I like it....
:)
Used your own humour against you
I did leave myself open for that one...
Yeah man, you're slacking
I just want to know if there's a LOW limit to the number of apps that can be running in a typical Android environment. My phone only allows 9 apps to be running. Is that the phone maker, or the Android OS?
I'm tired
21:26
Could even go as far as the processor perhaps?
Limit the number depending on the processor, but I think phone makes typically have the same processor right?
Like all Galaxy S1's have the same processor?
Question mark?
HTC Desire 510: Quad core, 1200 MHz, Cortex-A53, 64-bit
I thinks it's a step up from the S1...
What do the new iPhones have?
no idea
You're no help...
21:48
@Tunaki is sitting there quietly, worried he'd get attacked next....
22:01
@Joe That limit probably stems from the amount of memory your phone has.
That's my guess anyway.
It does only have one Gig of RAM
@Michael Sorry to disappoint, I can't attack after a reply like that...
Perhaps it is just a hard-coded limit that was set in an effort to improve overall performance of the device.
@Joe Do you knoe how to get to the screen that shows all of the apps that are currently running?
I got to it once, but I forget how. xD
22:23
On some devices, there is a [soft] button, on my old Galaxy S2, I held the home button. If I have 9 open, the screen is full, I know there were more apps that I opened, but when I closed one, it only showed 8 as running, so it must close the oldest instead of having 10...
Can't you, like, "swipe left" to see another page?
And holding the home button loads some sort of Google app for me. :(
Double tapping just loads the Home screen.
There is no swipe left/right. What other buttons are there?
22:43
Back and 3 lines.
Sorry, left pointing arrow and three lines.
Did you try holding one or the other?

« first day (1784 days earlier)      last day (3381 days later) »