« first day (1857 days earlier)      last day (3086 days later) » 

8:05 AM
Greetings, fellow Javas
 
 
2 hours later…
9:51 AM
morn
 
Hey Tavster
 
yo @wond
what's up?
 
A lot! It starts bad, I got to go to the dentist today :(
 
gosh, how come?
guys, don't forget to vote today
 
10:04 AM
yeah, me too. Just a reminder ^_^
 
@Tavo I'd rather not talk about it, let's just say there's a lot to do
 
btw, what does a "delivery manager" do?
@wonderb0lt ok, good luck with that then
 
But hey, someone I really like comes over to my new flat on Wednesday, so at least I got something to look forward to
And it's a great motivation to clean up ;)
 
@wonderb0lt no man cleans faster than one expecting a lady
 
I didn't say the visitor would be female.
 
10:13 AM
MOrning
 
@wonderb0lt implied
 
@Tavo meh. that's just you projecting
 
@Vogel612 I've been unsingle for 3 years now. I barely remember that sort of things nowadays
 
hello, am developing small app which reads every incoming sms of the phone, and picking up specific sender numbers, suppose +252898, this number sends same sms but it has some difference. the whole message is like this. "

[- ZAAD SERVICES -]
Ref: 878786868687. confirmed $1 Received from Joe Die(1234567899) on 11/11/2015 1:09:55 AM "

the Ref and amount of $1 and number of are varies they changes every new message
so i need to extract the this string and put every one a variable
does it possible
 
everything's possible, you just have to write code..
and the amount differs by problem
 
10:18 AM
ok thanks, would i show you my code so far i wrote
 
you could. if you can boil it down properly you could even ask a proper SO question... right now I don't know what exactly you need.
also please don't just dump the code in here, use a pasting service (pastie, hastebin or gists)
that said I'm off for a lecture :)
 
SmsMessage currentMessage = SmsMessage.createFromPdu((byte[]) pdusObj[i]);
String phoneNumber = currentMessage.getDisplayOriginatingAddress();

String senderNum = phoneNumber;
String message = currentMessage.getDisplayMessageBody();

Log.i("SmsReceiver", "senderNum: "+ senderNum + "; message: " + message);
in the variable message will have the above mentioned text
so i need to extract it ant pick the ref amount and the number (123245..99)
 
Android is not Java. In addition, have a look at Regexes
 
sow how do i try in Android
 
 
2 hours later…
12:16 PM
pleh. I asked for a RCA to 3,5mm adapter and I got the mono version not the RCA >_>
 
12:49 PM
hi
everyone
 
fge
@Gemtastic asked whom?
 
Need some help with respect to logging
 
@technocrat Just ask
 
@wonderb0lt ok
I already have logging implemented in my project.. info debug etc..
 
fge
twitter.com/nieveg/status/668548313231282176 <-- hilarious if you speak French
 
12:54 PM
Now I want to introduce a new logger which should create a file and log some fields to a file..
 
@Tavo Ow ow ow.
 
@fge The clerk in the store
They didn't have those adapters in the actual store but in the back so I didn't get to pick it out myself
 
Thee are already debug logs in this class
now I want to just extract some fields and use fileAppender to log them into file
 
It "works" but it's adapted to mono sound now not stereo
 
1:13 PM
@wonderb0lt any idea how to go about this ?
 
1:30 PM
Why not use something like Log4J?
 
2:17 PM
 
wavey wave
 
2:39 PM
howdy folks
 
3:01 PM
The word "folks" will probably always remind me of obama saying "Yeah... we tortured some folks"
 
 
2 hours later…
5:09 PM
 
5:45 PM
@Hans1984 I actually heard a story about this happening to my friend's uncle's cat lol, except I think it was shrooms
 
:D
 
6:04 PM
thats it for today
bye bye!
 
hello, does someone knows a provider for DSA encription algorithm ? bouncy castle doesn't seem to provide it because I get NoSuchAlgorithmException, I verified by printing Security.getProviders() and seeing "BC version 1.53"
 
6:34 PM
http://www.commitstrip.com/en/2015/11/23/the-childhood-of-a-coder-clipart/
CommitStrip
The childhood of a coder: ClipArt
CommitStrip
1448303260
 
7:27 PM
@niceman no clue
 
8:23 PM
Having issues figuring out where to set job parameters in Spring Batch.
I know where to set the variable to be read within the proper bean... but have no idea where I can set that value (using XML based configuration).
can I set it within the <job> config in any way?
 
I'm not that familiar with Spring Batch, or xml-based spring config in the first place (I prefer annotations)
 
Adz
8:44 PM
hey guys
quick question, which members of your team provide user training to the client after you've created some software?
 
@ShotgunNinja yeah... I'm not the biggest fan of the xml ether, but unfortunately, I have to work with what I'm given.
and the timeline doesn't allow me to refactor it in something different.
 
@Adz My company has people that specialize in providing training as needed
 
@Adz we're a small company and it so happens that it will be whoever knows more of the software - which ends up being the project lead.
or, it will be passed on to someone more junior if it can be "pawned" off.
 
Adz
ok cool thanks guys. So I'm guessing it's situational. Company size etc.
 
from my experience, very much so yes.
 
Adz
8:50 PM
thank's a lot guys. @blo0p3r @ShotgunNinja
 
vic
9:43 PM
I'm new to the chat so hi everyone!
 
fge
Hello @vic
 
Scrolling through the transcript after not being in the room for a while isn't rewarding at all anymore.
It's still september, I guess.
 
fge
How can it be rewarding at all?
And no, this is the end of November, and December is looming
 
vic
How can it not be rewarding if you've got kittens?
 
assert(kittens)
 
fge
9:55 PM
Kittens become cats; enough said
 
ahaha
 
fge
But then I love cats, so...
 
10:21 PM
i know that using character stream in java is better than using byte stream but what about using buffer stream and character stream which one is more prefered ?
 
fge
@Kob_24 no, using a character stream is not better than using a byte stream
This depends on your use
 
i get confused now
can you please explain how to use each+
?
 
fge
Well, it's simple enough
What you store on the disk is bytes
And bytes are read using byte streams
 
For most applications, I/O with character streams is no more complicated than I/O with byte streams. Input and output done with stream classes automatically translates to and from the local character set. A program that uses character streams in place of byte streams automatically adapts to the local character set and is ready for internationalization — all without extra effort by the programmer.
 
fge
Character streams wrap over byte streams and apply an encoding process, so that a given sequence of bytes yield a given sequence of chars
 
10:26 PM
yeah, true and thats what made me think that using character streams is more efficient
 
fge
No it isn't
 
isn't?
ok ok
 
fge
It is different
You will not use a character stream to read a PNG image for instance
 
true
i got the point
what about buffer?
 
fge
Oracle's page fails to highlight the role of character decoding/encoding process when using readers/writers vs inputstreams/outputstreams
Do you mean readahead?
 
10:30 PM
i mean BufferedReader
 
fge
Well, there's also BufferedInputStream
To be honest I have not tested; but it is my opinion that you do not get enough performance benefits by using a Buffered version of any binary stream
As to character streams, well, just look at the Files API
 
yeah true
 
fge
You always Files.newBuffered{Writer,Reader}
 
thx bro
its just confusing to get the difference between each
uuusch!
 
fge
And then BufferedReader extends Reader so you can use a BufferedReader as a plain Reader (same on the Writer side)
 
10:35 PM
thx man
 
vic
10:56 PM
Did anyone had experience with Quartz scheduler?
 
fge
11:08 PM
What part of it?
 
vic
Persistent triggers
 
fge
Then it won't be me
 
vic
Worry not about it
 
fge
11:26 PM
hesitates to write a new library to help people invoke external commands correctly
 
11:57 PM
@fge Just...doooo iiiit. xD
 
fge
@Michael I don't have a clear API in mind yet... And not very much time to dedicate to it
 
JUST DO IT!
 
Guys, we have to be more entertaining for @Uni. I suggest more pictures of cats.
 
never
 
fge
My funny cat picture of the moment is not understandable for people who don't speak French
So... No
 
11:59 PM
Dang.
 

« first day (1857 days earlier)      last day (3086 days later) »