« first day (1671 days earlier)      last day (3269 days later) » 
00:00 - 15:0015:00 - 22:00

12:00 AM
You might be able to get him to cover the cost of some books, if he knows that's in the interest of improving the company's software stack.
It sounds like there's tons ways the company can improve its infrastructure. You could certainly learn a lot by spearheading an effort to do so.
 
morning
 
Hey there @deadlydragon00
 
Hiya @Michael
 
@ShotgunNinja Don't wait for your boss's permission to try new stuff (as long as you're not breaking any production systems or anything).
I wish I understood this when I was younger. >.<
 
Lol i've looked through countless docs and dont understand
 
12:12 AM
@0x2B You shouldn't need to add any headers to the POST request.
 
@0x2B what part your dont understand?
 
Also, you are retrieving the response body twice. I don't think you can do that.
 
@0x2B is this an INSTAGRAM OFFICIAL API or you just inspect it from the web?
 
/javadocs LoginRequest
 
@Michael Sorry, I never heard of that class. :(
 
12:14 AM
And what is "LoginRequest"? Something smells fishy there.
 
Ok ok
So basically I'm trying to login Instagram using HTTPClient by Apache. Everytime I try it returns Forbidden 403 error and when I print out HTML it says enable cookies which I thought I did. This isnt Instagram API and LoginRequest is the class its in
 
Basically Instragram do not allow you to access via your solution.
 
@0x2B Are you sure "username" and "password" are the names of the form fields on the HTML page?
 
Uhhh im pretty sure it is o;
wait
 
actually there might be missing parameter
 
12:17 AM
Are there any hidden fields?
 
<input type="hidden" name="csrfmiddlewaretoken" value="48fc0e2241177fee8e16e667d7c94375">
 
Ah ha.
 
So thats the problem?
 
0x2B its a TOKEN and You cannot use that all the time
 
It looks like that hidden variable changes every time the login page is loaded.
You'll probably have to do a GET request on the login page first to get that token, then make the POST request.
 
12:19 AM
hmm I see
So here stackoverflow.com/questions/14026230/… the guy did it in C#
ah I see
   string p = "<input type=\"hidden\" name=\"csrfmiddlewaretoken\" value=\"(.*)\"/>"; I do that?
 
You can use a regular expression to extract the token, yes.
 
Thanks Michael and deadlydragon, imma give that a try :3
 
np
 
also for NameValuePair
the way im using it is correct? the name of the input field
I believe new BasicNameValuePair("username", username)); is supposed to be "name" and "value"
 
That's correct.
@ShotgunNinja And as long as you don't fall too far behind in your normal workload.
 
12:38 AM
How would I make it return the found pattern
as a string
nvm dumb qustion :3
 
String html = EntityUtils.toString(entity);
 
no didnt mean that , meant this result = new String((m.group(1)));
 
Why are you creating a copy of a string?
 
Okkk last question sorry about this guys been trying to do this for a while
u knw ur right Michael lol sorry im tired
 
-_-
 
12:46 AM
:P
fixed
    String postData = String.format("csrfmiddlewaretoken={0}", getToken());
    nvps.add(new BasicNameValuePair("csrfmiddlewaretoken", postData));
does that look right bud c: ?
 
Nope.
 
=/
 
Tell me this: what value are you assigning the "csrfmiddlewaretoken" parameter?
 
the value it gets (the token) ?
 
What are you assigning to the "postData" variable?
 
12:51 AM
tbh I have no idea. I just tried coverting the one from c# :P
 
Well, I'll tell you this: it's not the token
 
Yeah I can see that :P
 
What does String.format do?
 
So I'm supposed to put the token inside the curly bracketys?
Thats the part Im not sure about
 
You're doing too much
 
12:52 AM
x.x
 
You already know how to add a parameter to a POST request.
 
ohh
    nvps.add(new BasicNameValuePair("csrfmiddlewaretoken", getToken()));
 
There ya go.
 
haha thanks man :P
 
np
 
12:53 AM
wow cant believe I didnt think of that
Also you mentioned the headers arent necessary ?
 
:)
 
They shouldn't be. The library you are using will add the appropriate headers automatically. Including the "Cookie" header.
Hey there @SteveG
 
hey hey
 
ah ok, never worked with Http access before and hey Steve
 
1:05 AM
this isnt returning a match String p = "<input type=\"hidden\" name=\"csrfmiddlewaretoken\" value=\"(.*)\"/>";
even tho it should?
 
Last I checked, the String class wasn't named Pattern.
 
nooo
    Pattern r = Pattern.compile(p);
 
Umm, ok?
 
1:24 AM
I dont get what you mean?
 
Last I checked, creating a Pattern object doesn't execute a regex.
 
Pattern r = Pattern.compile("<input type=\"hidden\" name=\"csrfmiddlewaretoken\" value=\"(.*)\"/>");

// Now create matcher object.
Matcher m = r.matcher(html);
 
And then?
 
 return (m.group(1));
 
Wrong.
 
1:35 AM
o: what then?
 
/javadoc Matcher#find
 
Which one do you mean? (type the number)
1. java.util.regex.Matcher#find()
2. java.util.regex.Matcher#find(int)
 
1
 
@Michael boolean find(): Attempts to find the next subsequence of the input sequence that matches the pattern. (1/3)
 
oh i removed that
didnt knw if it was necessary
 
1:42 AM
It sure is.
 
;p it works but still error cookies arent enaable
eh i give up
thanks tho ;p
 
np
 
 
3 hours later…
4:54 AM
@pebble225 ?
 
5:12 AM
o/
 
fge
Moo
 
5:46 AM
Hi Friends
i need some help about IBM RAD 8.5 development
 
@Tanveer shoot
 
I am new to java, i have some experience in android app development in eclipse
i have to develop a webservice and website site in RAD 8.5
i need some guideline that from where i should start
i could not find any good tutorial about RAD 8.5
all tutorial are about 7 , 7.5 or below
and project types in RAD 8.5 are different than others
like i could not find Dynamic Project in RAD 8.5
 
6:01 AM
RAD is almost similar to eclipse, just with few extra features
 
I thought RAD is a methodology :D
 
IBM Rational Application Developer 8.5
yes it is similar to eclipse but with some exceptions
 
fge
RAD also means Rapid Application Development, yes
But anyway, webservice development is IDE independent; IDEs have tools to help, that's all
 
yes you are right, but i want to become familiar with environment
also environment matters alot for beginners because if it is written in tutorial that select this option and that option is not available in environment then it creates confusions
 
6:28 AM
Good Morning !
 
ASR
good morning
 
reading Kathy Sierra's book for 3rd time... still lot to grab
 
ASR
good :) its java
 
prefect example for some books will never die
 
ASR
6:31 AM
its true.
 
@CrazyNinja The Head First series?
 
@ItachiUchiha SCJP java 6 exam guide book
though it's too old, but still valid
 
any android developer who can solve my problem
1
Q: Android Google Login Button and Facebook sdk 4+ Button Layout

TufanI Am developing an application which use google and facebook integration ...i want to fix height and width of those button...and i want to set Button Text Manualy... i had tried so far <com.facebook.login.widget.LoginButton xmlns:fb="http://schemas.android.com/apk/res-auto" andro...

 
@Tufan Please go through the rooms description
> Room dedicated to the Java programming language. And no, Android is not Java (does not use the Java VM; runtime environment and base SDKs differ; et cetera)
 
6:42 AM
okay @ItachiUchiha ..i dosent my soln on android group so i told all of you ...may b android is different but it have similarities with java
 
@tufan your error means you did not create <string> resource in xml that represents the name
for your width use layout_width="wrap_content"
> Sorry the question is off-topic for this room :(
 
its okay but you have knowledge abt @deadlydragon00 ...i wanna tell you something that is fb_login_text is default it provided by facebook sdk.....and if you see that pics width dosent matter ..width is correct but look at height that totaly different
 
add padding
 
okay @deadlydragon00..i will try
nd thx nd bbbyyy
 
crl
7:16 AM
@ItachiUchiha which plugin? Papyrus?
 
@ItachiUchiha I thought Android was an operating system that utilised non-standard Java for app development
 
morning
 
morng
 
7:37 AM
Morning
 
just arrived at the office and I'm playing Tank
:D
 
World on Tank?
 
nope. Tank the character from Matrix. My gf is stuck on the trains (not working well today) and I'm trying to find an exit for her checking the status of the network online
"Tank, I need an exit"
 
7:54 AM
oh... the Operator.
the one guy that can make sense of the falling kanji, apart from NEO
 
no, that's not Tank
Tank is the mixed-race guy
 
fge
"Tank" for me is a tune by Yoko Kanno (in Cowboy Bebop)
 
Cowboybebop is still alive?
 
@Tavo isn't that the same?
Or was the guy who could make sense of the kanji the jerk who wanted to land with trinity by killing her friends?
 
the second one
^_^
 
8:04 AM
I'm home!
Had to REISUB my computer. :(
 
hiya uni
 
Hiya @deadlydragon00! ^^
 
okaeri Unihedro-kun
 
morning
 
morning
 
8:13 AM
morning
 
morning
 
Sam
morning
 
C-C-C-C-COMBO BREAKER
 
konnichiha vogel-sama :P
 
lol B-)
 
8:22 AM
@Unihedron boku sama yoberu hito janai kedo...
 
osu, osu :P
 
yoku oboenassai ne ;)
 
9:10 AM
morning^^
 
9:43 AM
OMG I have a brilliant idea
 
9:56 AM
grats, explain?
wow... just... wow
 
anybody a taste of madness?
Somewhere at line 1.3k in a JSP here I have following statements..
value: ${object[propertyIdentifier]}
<input id="${propertyIdentifier}_project" type="hidden" name="project.${propertyIdentifier}"
    value="${object[propertyIdentifier]}" />
and the output is:
 
@Vogel612 Library: Multistreams
 
value: -9000.00
<input id="..." type="hidden" name="..." value="0,00" />
 
Implementation: class Multistream { static <T> Stream<Stream<T>> wrap(Stream<T>... streams) {return Arrays.stream(streams);}}
 
10:03 AM
@Unihedron wat...
why would you ever need that?
 
idk
Multistream<T>.forEach(stream -> stream.forEach(consumer)), I guess
 
eeek
why not directly pass in the consumer??
 
Hey guys, couldn't find the proper chat but i'm doing test assignment at school right now and i'm having trouble with sql. How can i compare if one character is alphabetically in higher position than other?
for example i have character A and character B
A is first in alphabet, so it should be higher
 
there is no such thing as characters..
 
well if it's a string?
 
10:06 AM
@shawwy a string is lots of numbers alongside each other ending at a super special number
and these numbers are assigned a "character" by means of an encoding
 
so comparing A < B will return true?
 
yes
and a < B probably won't
 
fge
That depends on the collation order
 
kk thx
 
10:24 AM
Hello, Java
 
0
Q: Merging branch code into master?

Mohammad GouseHi I have a branch and I want to merge the code of the branch into master. There are no changes made by others. can any one please tell me what is the command i want to use to merge my branch code into master. I want to merge the code into master from a branch.

Troll?
 
they have such an idle history
probably the kind of user who doesn't get it; cv'd
 
12:07 PM
wow.. just frigging wow
inputting some numbers.. they are validated against 2 regexes. if either one matches, they're good to go...
regEx1 = '^[0-9]+(,[0-9]{1})?$';
regEx2 = '^[0-9]+(,[0-9]{2})?$';
~tactical weapons grade facepalm
oh yea right, did I mention they're supposed to allow negative values sometimes?
 
...
let me guess, some incompetent programmers stole a regex from SO?
 
I have no idea
directly below there's regex 3 and 4 though...
care to guess the astonishing difference?
the , is replaced by a .
and it's not even ESCAPED!!!
 
12:23 PM
clear case of "I have no idea what I'm doing"
 
rofl
 
@Tavo meh.. more like "omfg regex, isn't that this black magic thing. I better don't touch it"
 
Öla
 
Hola
 
12:41 PM
@Vogel you have to admit that regex has some black magic component in it
 
@Tavo actually... no
it's just a low-complexity language with a quirky syntax
 
yeah, but one mistake in that syntax and the next thing you know is that you have summoned Cthulhu and it is whispering the fhtagn chant in your ear
(I had to google how to spell fhtagn)
 
dafuq?
~goes to google what fhtagn is
 
@Tavo Regex stands for regular expressions and nothing about it is black or magical.
 
reminds me that I have an e-book about the lovecraft myths...
 
12:45 PM
rofl
 
guys, just google "regex is black magic". It's an joke that's been going on for years now
too many captains literal...
 
@Tavo It's not a joke that I know of until now, nor one that's funny, so I'll be surprised if it actually did go on for more than five seconds.
Then again, people are stupid.
 
I don't know regex by hearth, but a quick move to regex101.com and i'm knowledgeable again :p
 
^^ that, mostly.
 
lol
@Unihedron be surprised then
 
12:49 PM
I mean, srsly: Quantifiers, greedy vs. lazy, capturing groups and character classes are standard...
 
/me grabs popcorn
 
If you can't do that much by heart, you should probably invest some more time into your regex skills
 
@Vogel612 Today i had to explain POO to a dude who's been doing java for 2 years; you tell me
 
... "It's the stuff that comes out of your backside"...
not that hard ;)
@Mekap java or JAVA?
 
@Vogel612 Personally i've never used regex that much to bother to learn them accurately.
 
12:51 PM
that stuff's not even close to accurate
it's the basics of the basics..
try effectively using linux without this
it's goddamn impossible
 
@Vogel612 At this point i don't even know :D
@Vogel612 Yeah i agree on this one ; either be a linux guy or even a sysadmin, or letalone build a parser, you have to know thoses.
 
1:14 PM
@Tavo Probably the best thing ever
 
@Dustiny regarding...?
 
Making me laugh first thing in the morning
 
oh, that's good. I but was wondering what are you referring to
oh, I just saw. It was out of my screen by half an inch :D
 
@Tavo there's an arrow next to messages which are replies
click it
 
yep, just saw I could click on it
 
1:22 PM
~off-topic: how do I compare two js objects for equality?
 
@Vogel612 a == b; reference equality
a === b; identity
 
eh there is a difference?
 
!!> var a = [], b = []; (a == b) + " " + (a === b)
 
@Unihedron "false false"
 
oh come on
 
1:25 PM
that's arrays btw.
 
@Unihedron "false false"
 
var a = { 34567: { foo: "bar", herp:"derp"}, asdf:"bla", bcde:"alb"};
var b = { 34567: {herp: "derp", foo:"bar"}, bcde:"alb", asdf: "bla"};
^ how can I make js give me back true for these two..
 
The elements are in different orders, so you can't go with an iteration.
 
why that?
!!>var a = { 34567: { foo: "bar", herp:"derp"}, asdf:"bla", bcde:"alb"}; for each (el in a) { console.log(el); };
 
@Vogel612 "SyntaxError: yield is a reserved identifier"
 
1:30 PM
well thanks..
 
@Vogel612 "TypeError: a[Symbol.iterator] is not a function"
@Vogel612 "SyntaxError: missing ( after for"
 
wow... great
 
for (var each in iterable) { "use strict"; let currentElement = iterable[each]; }
^ @Vog
!!>Object.keys({ foo: "bar", herp:"derp" })
 
@Unihedron ["foo","herp"]
 
fge
Uuh, I feel very stupid
 
1:46 PM
Hi guys, i am having a horrible time solving the problem in the question :
http://stackoverflow.com/questions/30354333/server-random-crash-java-net-socketexception-permission-denied

Its been a week now and its disastrous, any help is appreciated
 
!!>Object.is({foo:"bar", herp:"derp"},{foo:"bar", herp:"derp"});
 
@Vogel612 false
 
Solution to your Windows problems: uninstall windows and install a functional OS. I recommend Ubuntu. — Unihedron 20 hours ago
 
cmon cap
!!>Object.is({foo:"bar", herp:"derp"},{foo:"bar", herp:"derp"});
 
@Vogel612 false
 
1:47 PM
grmbl
 
fge
It still takes some time for me to get to grip with a stream based solutions sometimes...
 
2:06 PM
@Unihedron it is not feasible at the current moment
 
2:28 PM
Ubuntu is an ancient word that means "I can't be arsed to install Debian"
 
@Tavo Finally you get the joke behind why I'm suggesting Ubuntu!
kudos
 
hey, I do use Ubuntu in a few of my machines
can't really be arsed sometimes
I just ignore the constant stream of updates
 
At least Ubuntu software updates works better than Windows updates. hehehe
 
fge
~sonarqube--
 
Windows updates works as well a Ubuntu's. They constantly spam you at more or less the same rate
 
2:32 PM
@fge at this rate the value will go underflow quite soon...
 
but I like Ubuntu's little shake :D
 
fge
@Tavo except for the fact that having to reboot with Ubuntu is pretty rare
 
What about the Jumping MAC?
 
@fge can't argue with that
 
@ItachiUchiha makes me rage every time.
 
2:35 PM
@fge I'm very grateful to Ubuntu. It's made both my parents and my gf migrate to linux
one less headache for me
 
Yeah, Ubuntu really did what other linux platforms were not able to do for so long..
 
sup folks
 
Music is here
 
^ agreed about Ubuntu, it's the only Linux OS I've used for an extended period of time.
 
@ItachiUchiha yes more music :D
 
2:39 PM
~curses loudly
solution to the original problem I had: remove that one call happening on page-load
gg wp, codebase
 
...
 
@Vogel612 My project had a problem with large files >2GB
 
If I didn't have an installation later today, I'd just go grab a strong alcoholic beverage now...
 
and it was going on for weeks
Today I found that it was because of request.getContentLength()
which returns an int
and the file size isn't enough to fit in an int
 
well then it usually returns Integer.MAX_VALUE
 
2:42 PM
Solution : Long.parseLong(request.getHeader("Content-Length"));
@Vogel612 it was returning -1
 
beware, this won't work for files larger than.... umm... 3ExaB or sth.
;)
 
The method sucks :P
I was stuck because of it for weeks ..
 
"nobody will ever need more than 500KB of Hard drive space"
 
^^ Pfftttt, windows :P
 
Hey all
 
2:47 PM
hiya
 
Hi.
 
I need to find the SQL chatroom. One of the other developers is doing something stupid and I can't find why it works. To wit: str_to_date(<date>). I'm hoping that sql is just going "its already a date, I'll ignore that command"
 
@Mourdos It's frozen.
The chat room, that is.
 
Also, I'm starting to feel like a web developer. Take me back to server side java, no more of this html and javascript!
I guessed :-) Thanks though
 
@Mourdos hehe
 
3Rz
2:56 PM
hello
 
Hi.
 
Yo
 
crl
ComplexObject co = new ComplexObject()
			.a(1)
			.b("foo")
			.c(2.0);
Is this a real builder pattern?
 
no, that's just method chaining.
 
00:00 - 15:0015:00 - 22:00

« first day (1671 days earlier)      last day (3269 days later) »