« first day (1429 days earlier)      last day (3511 days later) » 
00:00 - 22:0023:00 - 00:00

12:00 AM
Did you know that coding, fits a definition of hacking?
 
@Karl yes
 
MOST people don't seem to...
 
6 mins ago, by HamZa
@Karl it has different meanings depending on the context. So "REAL" is subjective and many would argue about it.
 
Yes…You are the exception...
You seem to have a good attitude for programming...
 
Well, maybe and maybe not
 
12:33 AM
Good night
 
Night
 
 
3 hours later…
4:06 AM
@Uni heya
 
Morning! :) @Ita
 
any ideas on parsing the question ? :-P
 
Ah, I was looking into an issue... sidetracked :)
 
Whats regex101 ?
 
It's a web service that provides a regex engine for testing without having to download an application, like regexbuddy.
 
4:14 AM
do you think parsing the question and checking whether the first 4 words exist is a good idea ?
 
I think you could store a hashmap mapping token - value entries. From there the question would check if the last word is a valid token. If it is then extract all the tokens and collect the respective values, then add them together. If the last word isn't the token then it's rather difficult to recognize it as a reasonable question.
Also, new tag badge!
 
ahh much better thab what i originally thut..
gZ !
do i have a bronze java/javafx badge ?
ahh yes i do.. ;-)
 
Yes :) I have bronze java regex and string
 
 
1 hour later…
5:57 AM
Javavava
System.err.println("ERROR, JAVA IS TO AWESOME");
 
6:09 AM
@Uni i parsed the string from the end and stored in a stack.. now what do you think about parsing the repeatation thats allowed and only some are roman literals are allowed before others ?? do you think writing a method for it wud be ok or regex can handle it ?
 
@ItachiUchiha ???
 
did you go through the link ? :-P
 
I'm not sure what you mean by handling it with regex. :P
 
lolz.. the video is hilarious
i thut repeatation and character sequences can be handled using regex..
 
Yeah, definitely.
You can convert a character sequence into tokens using regex, but you can't convert roman literals into an int.
 
6:19 AM
i dont wanna convert roman literals into string.. i just wanna count the number of sequences.. like X is allowed not more than thrice repeatedly. XXXX is not allowed but XXXIX is allowed
 
Gotcha.
 
and I is allowed only b4 X and V... so IX and IV is allowed but IM is not
 
I forgot how roman literals are ordered though. Can you list the specifications? I'll write the regex.
 
its there in the link
can you check ?
 
The link is gone from the transcript, so I'm trying to find it from my web history.
You mean the link in that article? It's broken.
 
6:24 AM
wait.. lemme find..
 
Never mind, I found it.
 
22:17pm
i guess
 
Test cases for roman literals?
Try it out here: regex101.com/r/xO2eF5/1
 
Hi All,
I need a help
 
ask
 
6:35 AM
I just now installed java 8 on my mac, but I am trying to add latest JRE on eclipse, not getting what path I should specify
For JRE7, it is showing the path /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
 
Mac? I'm sorry, I have no idea. :/
 
hey rakesh
 
Hi there
 
for support of jre8, u need atleast eclipse kepler
 
I am using STS(Spring tool suite)
So, do I need to upgrade the IDE?
 
6:42 AM
STS is build on some older version(though i am not sure)
if it is older than 4.3 then you need to upgrade..
 
ok, let me try
 
4.3 >> kepler
@Uni regex101 is not supported on mobile browser :-( :-(
 
:(
well it's ^(?!.*?(?:([IXCM])\1{3}|([DLV])\2|I[^VM]|X[^LCI]|C[^DXI]|([VLD])(?!$|\3))).*
 
user3991417
7:02 AM
Hi
 
user3991417
Can anyone help me with super keyword in generics ?
 
@ket shoot
 
user3991417
I don't understand purpose of using it
 
user3991417
?
 
What don't you understand about it? There's an entire documentation page about it.
 
user3991417
7:05 AM
The puprose of using such construction <? super T> .
 
user3991417
For instance defaul method public static <T> void copy(List<? super T> dest, List<? extends T> src) .
 
user3991417
Using keyword extends we know that we can get element from this set and it will hava all methods of T class. It is clearly. So we can call any method of T class and it doesn't matter what type of class are in array , but it always will have methods of T class
 
user3991417
But what is the purpose of using <? super T> ?
 
63
A: java generics super keyword

polygenelubricantsThe bounded wildcard in List<? super Number> can capture Number and any of its supertypes. Since Number extends Object implements Serializable, this means that the only types that are currently capture-convertible by List<? super Number> are: List<Number> List<Object> List<Serializable> Note ...

 
user3991417
I have just read this, but didn't get it ((
 
user3991417
7:10 AM
I have read a lot of books , but cannot understand the purpose
 
When Vehicle is an abstract class that has no supertype, extends Vehicle will allow types of Car, Ship, and AirCraft. But super Vehicle would only allow Object.
 
user3991417
where this can be helpful ?
 
Type safety.
 
user3991417
why not to decare such method public static <T> void copy(List<T> dest, List<? extends T> src)
 
@ItachiUchiha : It worked, thanks a lot for helping!!
 
7:11 AM
Methods can use the supertype generic to protect itself from wrong objects from being used in a method, based on the class.
Be right back.
@ketazafor You can read this, it gives a demonstrative example: stackoverflow.com/a/3847173/3622940
 
@Rakesh WC
@uni how do i use this site. I am on a web browser now
 
user3991417
I have also read this answer
 
user3991417
7:30 AM
I understand that we can add to list anything subtype of T, but we can just restrict this using public static <T> void copy(List<T> dest, List<? extends T> src) . dest list will have only elements type of T. But if we have public static <T> void copy(List<? super T> dest, List<? extends T> src). We can also put object, so what is preveligies of using this ? We can put object in so what ?
 
7:52 AM
@ItachiUchiha Write stuff in the test string part.
If the test string is valid according to regex, it will light up. If not, it won't.
@ketazafor Then type safety is erased because object is volatile for ? super T collections.
 
@Unihedron XXXIX is invaid :(
 
@ItachiUchiha updated, try : regex101.com/r/xO2eF5/2
 
TEST STRING
XXXIX

Your pattern does not match the subject string.
 
XXXIX isn't valid though?
 
8:26 AM
it is
X cant be repeated more than thrice in succession
but it can be again repeated if there is another element in between
 
Oh, found the problem!
 
DL is invalid
 
lemme know when you start getting irritated :P
 
Should DL be valid or invalid?
 
8:38 AM
it should be valid
DL >> 550
 
yes, I fixed it in revision 4, try it out
 
cool
I am getting hold of this thing
@Unihedron this will excite you regex101.com/r/nW5tU1/1
 
ha?
 
try it out :P
 
Use character classes [ ] over alternations |. They don't backtrack and matches faster. :P
In Java:
// declare in class
private static final Pattern PATTERN = Pattern.compile("^M{0,3}(C[DM]|D?C{0,3})(X[LC]|L?X{0,3})(I[VX]|V?I{0,3})$");
 
8:46 AM
this regex even divides the whole thing into valid substrings
ahh
go on..
 
// use in method
// declare matcher
Matcher matcher = PATTERN.matcher(your_string);
if (matcher.matches()) {
    System.out.println(matcher.group());
    System.out.println(matcher.group(1));
    System.out.println(matcher.group(2));
    System.out.println(matcher.group(3));
}
you can use those .group() and .group(int) values. Try it out. I'll make you an ideone demo.
you can wrap M{0,3} in a capturing group too, if you want.
 
lemme try and get back to you
 
 
2 hours later…
10:48 AM
Hi
 
Hiya
 
What's goin on?
 
11:22 AM
@Unihedron der ?
 
@ItachiUchiha I am here, but I'm somewhat busy as well. :)
 
just one li'l thing
MMMDCCCLXXXVIII
returns me
MMMDCCCLXXXVIII
DCCC
LXXX
VIII
is there a way I can get the MMM as well from matcher ?
 
11:40 AM
3 hours ago, by Unihedron
you can wrap M{0,3} in a capturing group too, if you want.
^(M{0,3})(C[DM]|
 ^^^^^^^^
 
12:26 PM
Hello
 
Hello, hello
Be right back!
 
Dead chat
 
Livelihood is overrated.
 
12:42 PM
True
A single person makes for VERY predictable conversation...
 
Hello
 
Hi Ben
 
Got a problem, I need to show a splash screen, before the program's frame loads. But it always ending up loading at same time, or the program will load 1 sec right away after the splash. How can I really detect when the program frame has fully loaded, and then I could simply sett its visiblity to true and dispose the splash screen frame?
 
Is it a Swing app ?
 
1:03 PM
Yeah
 
2:01 PM
Good morning, Java!
@BenBeri Are you making the splash screen visible before the program's frame in the code?
 
yeah already sorted out with WindowListener, thanks though
 
Ah, ok. :)
 
I dont get how my swing app which is not anything advanced uses 70mb ram, while photoshop is so big, and only uses 200mb
Is Swing memory hungry?
 
I guess so. Not sure.
Swing isn't exactly known to be the best client-side GUI framework, though it has improved over the years.
 
Hi all! I am developing an app that does quite a lot of real-time video processing (with OpenCV). I've got pretty far with Python, but of course I have a performance problem. I've never touched Java but I've read quite a lot about it, and C++ scares the hell out of me, so I wanted to know if Java would be up to the task in your opinion?
 
@Raoul The JVM has made remarkable performance improvements over the years.
 
How do I remove a Frame from frames list @ Frame.getFrames()?
 
Its performance is close to that of C++.
 
@Michael Yes, that's what I read and it's the main reason that makes me consider java
 
@BenBeri Try calling "dispose()" on the frame you want removed.
 
2:31 PM
Thank you for your time :-) Another simple question: there are a lot of java UI frameworks out there... is there a definite best UI framework solution for a desktop-only app with a lot of graphical components (video player, real-time plotting...)?
 
hey
 
hiya
 
@Raoul I think you need to look them all over, There isn't just one
hey
how's the java going
 
Still running on virtual machines. You?
 
?
 
2:39 PM
Haha, lost you on the joke. That sucks. I'm fine, how was your day?
 
I'm back!
 
me?
 
No your chair.
Heya @Karl!
 
ooooooh
he says hi
 
@Raoul You might want to try SWT. This is a framework that makes use of the native windowing system to improve performance.
 
2:42 PM
@Michael thanks, I'm going to look into it
 
making a language in java before moving onto neural networks... because java
anyone used apache commons Genetic Algorithms before
 
@Michael Already tried man, the index is still there (in the frames list)
 
Did anyone here do the last Ludumdare
 
I did, with a team though, @vog
 
ok
what game
 
2:48 PM
But you'll probably have better luck asking the guys at Game Development chat :P
 
thanks
@Unihedron what game
 
It's just another pixel game. :P
 
Can't be as bad as my "effort"
 
hehe, I did the sounds encoding and rendering, was able to stay away from most of the codework
 
i decided to learn unity the day before LD so yeah...
 
2:51 PM
ha? well done :P
 
well...
my last one (in LWJGL) did better
 
Hehe, I just don't think I'm going to participate in LD again, gamedev is a rough recipe for me :)
 
i love it
 
I'm more of the person who hacks code together and make things happen. :p
 
ok
what do u do then
 
2:58 PM
@BenBeri The Javadocs for that method seem to imply that it holds all the Frames that were ever created by the application. Even frames that have been disposed.
 
I develop a minecraft server, but ever since MS bought it, I'm more actively contributing to open-sourced projects! Like Sam's bot.
 
cool
what server
and what is Sam's bot
 
You can probably look up my profile... And the bot is Phamhilator by Sam fighting quality for posts around SE network:
 
3:17 PM
@Unihedron Microsoft should focus on improving the performance of the game. They should leave the gameplay to Mojang.
 
@Michael I wholeheartedly agree, but after Microsoft bought the game, all the founders of Mojang left.
Obviously there's an inside deal there.
 
@Unihedron Did Jeb leave?
 
Jeb is the dev Mojang's been hiring. Notch was the last person out of the four founders who (finally) left, with an awe-inspiring blog post. http://notch.net/2014/09/im-leaving-mojang/
 
3:34 PM
brb
 
@Unihedron Ugh. Notch is rich and famous. He doesn't realize that this changes the way people see you.
It's like he's trying to teach us a lesson or something. Just accept that you're rich.
 
Mojang isn't really good at multiuser stuff.
@Unihedron Wow, thanks for the link to that blog-post. Talk about internet-suicide. But I totally get him. Especially the part about "trying to create something big again". I've worked for startups almost my entire career, and met so many "CEO's/CTO's" that made great stuff in the past, and think they "know how it works".
They tend to forget all the hard work they put in last time. How long it actually took last time. How much extreme luck played in last time. And they think they have the perfect insight into "how it is done". And they all fail.
 
3:49 PM
anyone good with memory here? like fixing memory leaks
 
hmm .. are we still in the Java chat?
 
@BenBeri I am good with bickering over abstract content without being good in that field and still entertain the chat users, just ask!
 
After using HtmlUnit page load, my char[] started to use from 4mb to 14mb and doesnt go down when I stop htmlunit and clear all pages.
 
(gyazo .. wow that is cool tech)
So, is the memory issue causing an issue? Looks like a matter of GC.
can you force a GC somewhere just to .. check?
 
Yeah I do force GC after each page execyte
doesn't help
 
3:54 PM
what kind of technology do you have on the server-side of this ? Where are the char[]
i mean, how are they stored on the server?
 
I dont remember of meusing char[] tbh..
 
oh, so it is some sort of buffered char stream in the works here then?
 
I use streams, but not directly using char[]
 
but not in YOUR code, right?
 
3:56 PM
can we assume .. that you are really closing the streams when you are done?
 
If that tells anything..
 
@BenBeri Well, Strings use char arrays internally.
 
Thinking .. when i look at it .. that StringBuilder .. are you using that for something specific?
 
I don't use string builder myself, maybe the HtmlUnit library does.
 
Hmm ..
w8
 
3:58 PM
Does endless thread looping (when theres no action) increase memory though?
 
I'm not familiar with the output you show .. looks like profiler data of sorts.
BUT
 
	@Override
	public void run() {
		for (;;)
			while (running) {
				bot.execute();
				System.gc();
			}
	}
running is false, and my app still increasing memory a bit
Without me changing anything...
 
tell me you are not getting this from HtmlUnit .. it is the server-side of things right. HtmlUnit is supposed to be the one making the requests.. so if that buffers a lot of shit, that's not really important, is it?
 
HtmlUnit is a huge library, I use getByXPath which probably uses stringbuilders i am not sure
 
Hmm, yeah.
but is it of any relevance to you if HtmlUnit doesn't collect the garbage?
 
4:03 PM
Isn't that a unit testing library? Why are you so concerned about performance?
 
i mean .. it's just a test framework. I would be worried if that was YOUR code, but it obviously isn't then?
 
true but I dont use it for test xD
 
uh?
 
Anyway
if its the HtmlUnit let's say
 
so HtmlUnit is part of your piece of code then. You use it for something relevant for your code, as in .. as a "library" doing something that you want?
 
4:04 PM
why wouldnt GC work on htmlunit?, When I set my htmlunit client instance to null, made it lose reference, my memory didnt change aswell
 
well, you have to see GC for what it really is .. a "suggestion" to the JVM that it "may if it seems applicable clean up stuff".
but it doesn't mean that it actually will.
to my knowledge, you can't force a GC.
unless you have a custom made JVM.
 
now I understand why many people prefer C++ by saying you can control the memory hehe, didn't get it before, I was happy with GC
 
I once went to training on how to deal with GC in a application servers. It was the architect for WebLogic talking about how to do it .. in the HP application server (don't remember the name of that one anymore).
HP had the best application server that ever existed, and then cancelled it :-(
 
lel
anyway
gotta go out with my dog
Cya later guyz & ty for the time
 
good luck
So, the morale of this: Never use software outside of it's intended use or expressed goal. It might not perform according to your specs.
 
4:13 PM
p.s does JavaFX use less memory than Swing, in general? Now see you in like 30 mins C:
 
@BenBeri Let me make an educated guess.. a LOT more memory.
 
4:43 PM
@BenBeri I'm pretty sure that's illegal in most countries.
 
@Michael What is illegal?
 
@BenBeri Having relations with pets.
@BenBeri I'm just kidding. xD
 
4:59 PM
o
 
"Go out" is slang for "to date somebody".
i.e. to have romantic relations with.
Anyway, gtg to lunch. Bye!
 
AH gotcha loll
 
5:25 PM
why java doesn't allow to define a method outside the class like C++?
 
5:42 PM
coz Java is a pure OOP language
and C++ is not
 
Because Java is cooler
 
@meet why such a question ?
@Ben all languages are cool in their own way..
 
i agree with @Ben
java is cooler
 
6:04 PM
i have a better question.
Why java doesnt have direct access to memory & manage it like C++ does?
 
shoot
 
@BenBeri because C++ proved that most programmers can't deal with it anyway. And the ones that can, don't have a boy/girlfriend. But since you are dating your dog, I guess that question is fair coming from you :-P
 
o i see
 
@gurun lolz
 
well JVM better listen to me when I use System.GC
 
6:07 PM
Since when did Oracle listen to anyone?
 
fuck knows lel
 
@Ben coz memory management z a crucial task and cannot be done by all programmers, so java didnt leave it on programmers to handle
 
Yeah but what I mean is
Not only GC but also ability to do it urself in some cases
and have GC in the back-hand
Isn't it a badass idea?
inb4 it's out in Java 9
 
Well, here is a real tip, from that WebLogic guy I mentioned earlier.
 
that wud start more confusion
 
6:09 PM
and is memory management that hard though?
 
Turn down your memory and call GC when you need it. This was in the context of high-performance web-requests pipelines, so it might actually fit whatever you are doing.
 
between jvm n programmer
 
It's like .. turn your JVM into a goldfish.
I think this captures the strategy; _The simplest and most reliable way to achieve short garbage collection times over the lifetime of a production server is to use a fixed heap size with the default collector and the parallel young generation collector, restricting the new generation size to at most one third of the overall heap.
_
italic test sorry
 
bold test sorry
 
6:28 PM
And .. i believe it is possible to remote-connect to the JVM and do some GC in a more forces style. Used by profilers if I remeber it correctly.
 
7:01 PM
hi any1 online
 
7:14 PM
hello everyone.
I have a dual OS on my system, windows 8 and linux ubuntu, I am starting to learn Android progammming , can anyone plz tell me which is better OS to install android SDK.
 
7:56 PM
@Aamir both are good
 
8:17 PM
The emulator is just terribly slow...
but I guess that's another story
 
8:44 PM
Hi
 
What's going on?
 
Watching Office Space
 
No idea what I'm watching
Wife and daughter were watching something when I walked in...
 
8:53 PM
enjoy..
 
lol
 
Still don't know...
I saw a character named Mr. Beullerton.
It was funny because it was played bye Ferris Beuller
I can't even catch typos today...
 
typos ?
 
I typed bye instead of by
 
9:09 PM
:P
 
I hate when I have "typos" like that in my code, ESPECIALLY when I can't find them
 
haha
 
I'd be coding, and can't figure out why it's not giving me the results I expected. I'd show it to @kiheru, and ONE second later, he'd be telling me wtf I did wrong!
 
you can show it to me..
 
Past at point...
It runs…Now, I have to make it run on Android.
Maybe I should work on Desktop Wars, but I'd want to put animation on the Windows 8 screen [between the live tiles]
 
00:00 - 22:0023:00 - 00:00

« first day (1429 days earlier)      last day (3511 days later) »