« first day (1452 days earlier)      last day (3493 days later) » 

9:02 AM
@Unihedron hi
 
/* (str) */ {
  Matcher matcher = Pattern.compile("\\\\(\\d{2,4})\\h").matcher(str);
  while (matcher.find())
    matcher.reset(matcher.replaceFirst(Character.toString((char) Integer.parseInt(matcher.group(1)))));
}
Move the pattern to its class level if you want to reuse it to save resources.
 
@Unihedron for syntax int[] i = new int[]{1,2}; it is class [LI that handles taking the intialized values {1,2} and store as part of the object, am i correct?
 
@overexchange no. it's runtime
 
ok
@Unihedron what about in case of String str = "abc";?
Is it String class that takes care?
 
That's a string literal. Nothing happens in terms of construction, as strings are handled differently in java.
 
9:07 AM
so this is also runtime specific operation?
 
It's defined within bytecodes ( 01 - "abc") and then gets added to the literal pool when the JVM is created ("abc", other strings...), and when it needs to be used it magically appears in the heap (new String(char[]{'a', 'b', 'c'}))
You can read more about it online if you want.
 
ok
it is under the hood operation
 
Most things in Java are under the hood. Insanity is the glue that keeps Java running.
The upside is that you get to be lazy and ignore most of it, while still having a functional, self-optimizing program that works most of the time.
Actually, replace Character.toString((char) Integer.parseInt(matcher.group(1))) with Character.toChars(Integer.parseInt(matcher.group(1)))), and you can now un-ratelimit the integer value count, so the code becomes:
nvm not really
 
10:11 AM
guys, I'm not sure where to ask this (i asked on programmers and the question got closed). But, can anyone recommend me something to read/ links to go on, on improving my programming? I mean, when I'm given a task, I just do it, I don't following like coding conventions etc
 
@Eggy That question doesn't belong anywhere on Stack Exchange. :P
 
welllllllll
 
It really depends on what language you're targeting. For example, nowhere will you get decent help on Scala.
 
java :)
Like, I don't know when to use objects etc
 
hi
any one help me in CAS call back url after successfully authentication?
 
10:19 AM
@Unihedron Yeah, I ended up doing something similar, but I didn't know about matcher.reset
 
@Eggy If you want to learn, then you'll certainly need to spend time following some tutorials. There's really no way around it unless you already have experience with another language.
 
@Unihedron lol
Nice
 
You didn't show ESCAPED_PATTERN, so there's no way for me to tell if you've done the right thing anyway.
 
private static final String ESCAPED_PATTERN = "(\\\\([0-9a-fA-F]{1,6}) )";
I know I can drop the outer (), but it's out convention, go figure.
 
10:25 AM
Why didn't you cache the pattern instead of the regexp?
You're still compiling it every time you need to use it, so caching the regexp is not that productive. :P
 
Also true
 
You're also iterating through the final matches and performing another literal regex replacement onto every matched group from the list, so that's double computation
It's not that bad really, it will probably self-optimize by the time it runs ~50 times or so.
 
how to get javafx side table cell value of one table cell??
how to get side table cell value of one table cell in javafx tableView??
 
This proposal is now in commitment! Lifehacks ^_^
3
 
@hossein Can you be a little more specific? TableView has an instance method items which returns an ObservableList
 
10:47 AM
Need sanity check:
Is new Integer [cars.length - 3] () even valid syntax? — Unihedron 7 mins ago
 
@Unihedron No parenthesis
new Integer [cars.length - 3]
 
Yeah, I thought so too. Look at the answer.
 
I removed the syntax error from your code. If you feel I changed too much revert. — Second Rikudo 10 secs ago
 
@uni
 
@Sethu WHAT?! random ping is random
 
10:54 AM
Hey man!! How yo??
long back see u
how yo??
 
hiya
 
how is ur health?
 
I'm building the triangle gem, I still have to finish my code soon
 
wow cool buddy
u need any help ?
form me
which language r u preffered??
 
You can help close / nuke questions if you have the privilege unlocked
 
10:57 AM
@Unihedron 320
 
aww
@Sethu What languages do you do?
I'm going to help out with / join the DevDoodle team when I finish my ongoing projects, so..
 
oh ok
 
i know this site
 
> DevDoodle is a programmers' network where you can do tutorials, ask questions, and create and share your own programs!
 
10:59 AM
nd try to get code from bitbucket
wow superb!!
coll
source forge.net
 
@Sethu Bitbucket is good if you want free private repositories, but I can afford paying for private repos on github, so.
 
@Unihedron I never got this
Even if you can affort GitHub
 
hmmm ok ok @uni
 
Why use it when BitBucket has it for free? :P
Unless it's for a large organization, in which case I don't know which pays off more.
 
@SecondRikudo Support the guys building github?
 
11:01 AM
@Unihedron They're a commercial company like any other, but sure, I get your point.
 
Github isn't too bad.
 
hmm ok
 
@Unihedron Never said they were.
 
Personally I prefer github. If I was working on a large scale private project then I would just set up my own git server.
 
But they aren't different from Atlassian in that sense.
 
11:02 AM
i ll try to use tat one and i ll tell u the feedback @uni
 
@Sethu Cool thanks! It's not 100% complete though.
@SecondRikudo Yeah, probably.
I personally use Bitbucket when it's a repository no-one else needs access to.
It's not that hard setting up multiple remotes when you need to checkout back to github anyway.
 
I'm a DIYer. No sense in paying for git hosting on large projects when more often than not there's already a VPS/Dedi available for the project.
 
I see, bitbucket is the way to go then!
 
That's...not even close to what I was saying. Lol :p
 
Oh. :P
 
11:08 AM
@Justin And if your server goes down, not only does your app go down but all the source code with it, right? :D
 
Home from school @Unihedron?
 
Yes @Gem! Nice avatar
 
@SecondRikudo If your project can't afford a reliable host with RAID, then it can't afford private repo hosting on github or bitbucket :p

And anyways, the source code isn't lost. Every developer has it already. Just have them repush to the new repo and done.
 
the thing is: do you want to spend time on configuring a VPS/git?
Do you want to maintain it? (yes = more time)
What if it went down? (yes = more time)
 
@Unihedron Thanks. I could finally make a new one now :')
 
11:12 AM
Some people just don't want to deal with this kind of sysadmin stuff so they rather outsource it for x money per y time.
 
Did you have time to throw an eye at my thing?
 
@HamZa It's negligible in a project that size. It takes maybe an hour max to set up a git server, web server and build server.
 
@Gemtastic depends what "thing" means in this context
 
@HamZa it was directed to Uni
 
I use GitHub for OS, and BitBucket for private repo hosting
 
11:13 AM
And by thing I mean my code.
 
@Justin an hour for you, but what about if you got fired and there was a newbie taking your place?
 
@HamZa True, your right. Alot of people don't want to deal with it. Or simply don't have the experience.
 
@HamZa yes/no on a "what if" question? +1
@Gemtastic Oop, got sidetracked.
 
That's ok XD
I'm just curious to your thoughts to it
 
@HamZa In either case, the cost of large private repository hosting on Github or Bitbucket can easily outweigh the cost of a decent admin.
If you don't have a VPS or Dedi available though then it kind of defeats the whole purpose. But in my experience, the boxes are available for use.
 
11:16 AM
@Justin Either way, I would be happy. In my last 2 internships, we didn't have any form of VCS
 
@HamZa Then the people would realize you're an invaluable asset and want you back!
 
Ewww! lol
 
@HamZa We are currently moving from SVN to Git
 
@Unihedron I quit my last job purely because I was undervalued and yes, my boss realized pretty quickly that he needed me.
 
That said, I still can't think of a worthy project for my github portfolio...
 
11:17 AM
@HamZa Make something groundbreaking that will change at least one industry.
 
At least he did realize he needed you. It sucks when you quit and the bosses never know the chaos left behind
 
A new forum software, a new automated webservice, ???, Profit!
@Justin I like that moment when I get revenge for my time being a man in the shadows. :D
 
@Unihedron obviously!
 
I actually have an idea for a "more graphical" version of Reddit, just never got the time to R&D it. :P
 
Well, I was pulling double duty doing administration and development. The administration in that case was non-trivial. I was managing about 80 dedicated servers.
 
11:20 AM
And professional infrastructure?
 
"More graphical" sounds naughty
 
@Justin you want to be a "devops"?
 
Define "professional" infrastructure :p It was about as professional as it could be by the time I set everything up.
 
I just hate how many devs out there gets under-credited for amazing things they do.
 
@HamZa I actually want to get into network security and/or systems administration. So yea, somewhat :p
 
11:22 AM
@Justin I have a table with two columns with headers "name" and "age". I want to when click a value in name column , it print age value of that name
 
Mandatory XKCD:
(Yep, still no Java talk, please stay tuned while rants commence)
I want a pizza and a million dollars. — DodgerThud 2 hours ago
 
@Unihedron hehe deja vu but still golden
 
I want a top level domain and 20k rep.
 
@Unihedron 20k rep is easy
 
@HamZa Oh yeah? You don't even have 10k after all this time :P
 
11:23 AM
@Justin so you're interested in pentest?
@Unihedron Sorry, I don't repfarm. Also like I said, lost interest.
 
@Gem my emotion after reading your ThaiFood.java class:
 
@hossein See Selection Model and you'll have to add a listener to the TableView somewhere, dig through docs :p
@HamZa mmm pentesting.
 
ಠ_ಠ
   \     /
:o -----
   /     \
 
@HamZa I don't know know any more about security than a systems admin would need to know. Would love to get more into that field though.
 
@Justin thanks , but can you give me an example ? I'm new to javafx
 
11:26 AM
If you're interested, I would recommend a lot of sites but for starters, bookmark http://www.securitytube.net/
The primers are really fascinating and full of juicy info. He starts with the basics and slowly advances into the material.
Some or actually most primers (video) are free to watch/download.
 
1
Q: JavaFx 2 - TableView , return selected item

Alberto acepsutI would like to get the selected item as String from a TableView, but it returns the whole path. In the picture above, when I click to select the cell, I would like to get Indicator selected is: = Shannon Entropy; while I get Indicator selected is: taindicators.indicatorsmaingui.Indicator...

 
I signed up for an Informatics Olympiad contest at school earlier, whoops. It's in C++. I should take a crash course to C++.
 
@Unihedron lyndaaaaa!
 
@HamZa Cool, thanks I might take a look at that.
 
@HamZa NO (grumpy cat)
 
11:29 AM
 
@HamZa I have some experience with packet injection and cracking WEP encryption but that's about it.
super simple stuff.
 
151
HackOverflow

Proposed Q&A site for beginners who want to learn pure hacking.

Currently in definition.

 
@Justin I see. Well (IT) security is one of the fields I find really interesting. It's also one of the most exciting feelings I get when I accomplish something. If you get better at it, you might participate in CTF's, which is also fun
 
@Unihedron I saw that but it seems like security.se is a bit more in-depth.
 
also if you're really good at it, you can earn big money. But that's just a side bonus
have to go...
 
11:31 AM
You'll do it better if you do it for enthusiasm, not money.
Bye @Ham!
 
Yea, pretty cool stuff. I'd love to travel a bit and check out some of those security conferences.
Cya @HamZa
 
/me wants to call @HamZa hammy
 
My new router should be here in a couple hours. :D
 
Woohoo! Is it a good one?
 
@Unihedron you didn't like it?
 
11:34 AM
Nah. Cheapy. I didn't even bother getting a gigabit router because everything here is ancient and still uses 100mbps ports
 
@Gemtastic No, it's not that. There's just... Surprising code.
Like... System.out.println(""); could really be System.out.println();.
 
This is what I ended up getting :p newegg.com/Product/Product.aspx?Item=N82E16833166072
I don't have any ridiculous requirements. Just wanted my NAS on a wired connection.
 
@Justin thanks . you are very good :-)
 
@hossein Cheers :)
 
blank?..
 
11:38 AM
What's blank?
 
Browser problems.
 
Indeed. Link is correct.
 
@Unihedron Surprising good or bad? I wasn't sure if it needed the "" or not, so I just threw it in there because sout+tab writes that automatically. :P
The things I want to know about though are: 1. I s it readable? 2. How's my object usage? 3. How's the structure of the classes?
 
It's certainly readable, and very linear...
 
Is linear good or bad?
 
11:41 AM
It's not really too bad, does take an overhaul to make it dynamic though.
 
How so?
Do keep in mind though that main is supposed to be readable as a recipe in the source-code not just in printing.
 
Oh. :P
Cool program!
 
@Unihedron I suggested she should use Groovy to allow for dynamic loading of recipes ^_^
 
29
A: The use of gender-specific pronouns on Stack Overflow

Tim PostI wouldn't say that it's difficult to avoid using gender-specific pronouns, but it does require conscious effort. Interestingly, I find that I write better when I'm consciously trying to avoid them than I would otherwise, most likely because I'm paying sentence structure and communicating my idea...

 
Which pronoun should I have used in this case? 'it'? I'm fairly certain that I have never used a gender specific pronoun in SE questions/answers. Chat is a little different :p I have to refer to someone as 'he' 'she' or 'it'. I can't use collective pronouns when referring to a single entity. I don't think anything else fits. Unless I'm just having a brain fart.
 
11:48 AM
Morning...
 
@Joe'sMorgue Good morning!
 
in Tavern on the Meta on Meta Stack Exchange Chat, yesterday, by Unihedron
"Them" and "they" are the ones I use !
 
I like "it"
 
@Unihedron Care to reformulate my sentence in a way that using a collective pronoun makes sense? My english skills leave a bit to be desired.
 
I suggested they should use Groovy to allow for dynamic loading of recipes ^_^
 
11:53 AM
That's proper?
 
No idea. I'm not a native english speaker.
 
It implies multiple people.
 
Singular they is the use of they, or its inflected or derivative forms, such as them, their, or themselves, to refer to a single person or an antecedent that is grammatically singular. It typically occurs with an antecedent of indeterminate gender, as in sentences such as: "Everyone returned to their seats." "Somebody left their umbrella in the office. Would they please collect it?" "The patient should be told at the outset how much they will be required to pay." "But a journalist should not be forced to reveal their sources." A reason for its use is that English has no dedicated singular personal...
 
IT can refer to ONE...
 
It just doesn't work in this case, as far as I can tell.
 
11:55 AM
I suggested them to use Groovy to allow for dynamic loading of recipes ^_^
 
Lol
 
"I suggested to use Groovy to allow for dynamic loading of recipes ^_^
 
I suppose in this case I could've dropped the pronoun completed.
"I suggested Groovy should be used to allow for dynamic loading of recipes ^_^"
@Joe'sMorgue Fail!
 
passive voice ftw
 
How is that fail?
 
11:57 AM
I'm not sure.
Also @Unihedron THIS
A gender-specific pronoun is a pronoun associated with a particular gender, such as a pronoun denoting female or male. Examples include the English third-person personal pronouns he and she. A gender-neutral pronoun, by contrast, is a pronoun that is not associated with a particular gender, and that does not imply male or female. Many English pronouns are gender-neutral, including they, which can be substituted in a singular use (he/she/they). Many of the world's languages do not have gender-specific pronouns. Others, however – particularly those which have a pervasive system of grammatical gender...
Specifically the section on "Generic He"
 
Too many words, my eyes are bleeding
 
"The use of he to refer to a person of unknown gender was prescribed by manuals of style and school textbooks from the early 18th century until around the 1960s"
 
What is wrong with using gender specific. I'm PRETTY SURE that everybody in this room HAS a gender, and probably seen a different gender, and probably talked to one of another gender...
Then again, I may be wrong...
 
11:59 AM
@Joe'sMorgue My bot doesn't.
 
"While the use, in formal English, of he, him or his as a gender-neutral pronoun has traditionally been considered grammatically correct,[13] such use can also be considered to be a violation of gender agreement, as well as being prejudicial and, sometimes, confusing or absurd.[14] For instance,

I believe it's strictly a matter between the patient and his doctor. — Sen. Hayakawa, on the subject of abortion
To redress the perceived imbalance resulting from use of generic he, some authors now adopt a generic she instead, or alternate between she and he. This and some other ways of dealing wi
@Joe'sMorgue her bot doesn't.
:o
 
I'll let you score, but Gem's a she. ok? :P
 
Haha
I want my points!
 
/concluded
/end-of-story-goodbye-the-end
 
I have that problem.
@Unihedron So, when are you going to give me suggestions on my project? :o
 
12:02 PM
@Justin Where?
Wait, you write code?
 
Nuclear fission?
 
I haven't quite perfected it yet. But yes.
 
Nuclear Fusion?
 
I'm also working on teleporting.
I think it almost worked the last time I tried.
 
12:04 PM
Ford Fusion?
 
Eww ford
 
Sorry, Generic Motors does not build a Chevy Fusion....
 
I drive a Prius
 
What?! Prius!
 
Lol
 
12:06 PM
brb
 
Mine is an 2007 with 97,700 miles on it. This summer, I took all the chrome off the front of the Prius.
 
@ItachiUchiha you here ? :)
 
@Joe'sMorgue Wait, you drive a Prius?
 
Yes sir. My best tank was 60.4 MPG!
 
Lol! I was making a Prius joke. I don't really drive a Prius. But, good for you! :p
 
12:09 PM
I traded in a Dodge Ram 3500 with a V10 and a 10-speed manual transmission for my Prius.
 
Don't worry, I'll let you alpha test my transportation device.
I'll just need you to sign a few waivers first.
 
Use it to send them.
 
12:21 PM
there should be a song you could sing to get @ita attention:)
 
@miniHessel He's here, just busy.
 
I know :)
making a break up song for Java
Just gonna stand there and watch me burn
But that's alright because I like the way it hurts
Just gonna stand there and hear me cry
But that's alright because I love the way you lie
I love the way you lie
I can't tell you what it really is
I can only tell you what it feels like
And right now there's an ObservableArrayList in my windpipe
 
I'm sorry, but we're revoking your singing license.
 
whyyy?
The audience love me, can't you see them cheering in the chat?
 
12:36 PM
You're parodying an explicit song. :P
 
(you got to disable the anti_clap filter)
I got to make my own?
it's a tribute!
 
But you're tributing an explicit song!
 
@miniHessel haha, EMINEM will kick your butt, if he reads this :P
 
Me and Emmy are best friends
 
Are you serious or trolling?
XD
 
12:44 PM
@ItachiUchiha I need your help like the people drowning in baywatch!
 
It seems I have missed a lot of fun @uni @Justin @Gem @mini :)
 
Lol
 
You have, I had a cool concert!
 
I never wanted to attend it in the first place :P
 
Meh, 1/5 too short of a concert
Gotta finish the code before I overload myself with pending tasks :) Ping if need help!
 
12:45 PM
Same here, got loads of work!
 
You missed Uni giving me his two cents about my code :P @ItachiUchiha
 
:'( crying
 
Poor us @Ita :) Good luck!
 
@ita You have time for a mini question? It's real tiny :)
 
@miniHessel I might be able to help
 
12:49 PM
You know JavaFX ? :)
 
Yup.
 
What's the problem? 0_o
 
I have this easyBind method to get data from my ObservableList in to my two dimensional visualisations. For example PieChart, or BarChart.. The PieChart works great. But when I use it on a bar chart or line chart, I only get a label at the last data point, not on any of the previous ones.
here's a print screen showing the problem
 
interesting
 
12:53 PM
agree, makes no sense to me
 
You should use gist, little more dev friendly gist.github.com/B2OJustin/fbbf0554accf69e65609
 
@Justin It's because @ita always wants a pastie, so it's a habit now :)
 
Did you try debugging and checking the values of nameColumn and name?
 
ye, it's correct, but only the last one gets added
 
@Ita got some time to review this? stackoverflow.com/review/suggested-edits/5994016
 
12:56 PM
I believe it's overwriting
 

« first day (1452 days earlier)      last day (3493 days later) »