« first day (1585 days earlier)      last day (3580 days later) » 

03:29
It's pretty dead in here
03:41
hmm
Hey Ita :D
hmmm
04:03
Hey gem!
How z the job hunt going on?
@uni what exactly are you trying to create in the project. I read about Streams and everything else, but confused as to what to do with all the information.
I'm trying to clean my laptop, because a faint burning smell is coming out of where the fan is located. I'm using one of those compressed air cans, however, pressing it too hard releases some sort of moisture thing. Would that be bad? I'm basically inserting the straw between the grill (the cover for the fans) and pressing hard on the compressed air can to blow some air. But I feel if that stuff comes out, even though it goes away by itself, it will mess up stuff.
Lol.. that is the weirdest question i have come across in the room..
04:18
what's weird about it?
Well why don't you unbox your laptop?
I don't have the screwdrivers in the right sizes for it.
Buy some. They are really cheap. It will be better than screwing your laptop forever.
Guess @gem went for nap
@ItachiUchiha: Good grief, is that even a question? What are you asking?
I'm here
04:32
@fge a question that might interest you stackoverflow.com/questions/28688047/…
@uni oh yeah! That is a question. I wanted to know what exactly are you trying to create out of http/2 specs.
@ItachiUchiha so far we've applied for 5 jobs and the search continues. We're more or less waiting for a response from those 5 now
hope you get a response soon
Me too. It's frustrating to not even get a "no thank you"
05:23
@Gemtastic because you are not the only one applying.. I have sent resumes too .. never got a reply .. because they receive hundreds of applications in a day ..
@Sword: Are you living in the same place?
No
But probably is the same case everywhere..
@Sword The jobs my partner is applying for don't get hundreds of applications sadly, some just never bother to get back. It's especially annoying when he's been to an interview and they just never even send an email to tell him he didn't get it.
We just assume he didn't get it until we heard otherwise
Which so far, we haven't
yes that is frustrating.. Usually they do reply back..
Carelessness on their part..
05:30
Not here. It's more common that they not. And when they do, it's usually wayy past the date of hire
hmmm that is bad.. its better to inform asap so that ppl dont have to wait and continue with something else
05:58
Exactly. Well, it's not like we apply for one job at a time and sit around and wait until we hear from it before we find a new one to apply for... But it's still frustrating to not hear from them
I am stuck between wether I should change my current job or not. Current employer provides appraisal/increments every six months and increments are very handsome. But, sometimes workload is just too much.
I am confused between money and good life
Well, what do you need more? A good life or money?
right now, money. But I also am starting out a freelancing career, which is paying quite well...so...
I think once I have that on run, I'll leave the job
Sounds like a fair plan
I'd probably go with money now while I still have my loan and have to rebuild my savings, if I had the choice I mean.
My partner and I are in such dire need of money we do almost any job for any pay.
yup, pretty much same conditions here, which is why I haven't changed the job
06:03
As long as the pay is more than 0
s/0/minimum wage/
There's no such thing as minimum wage here
Technically it's legal to hire someone for 1$/h, but only if the union isn't involved.
@Unihedro people here work for free, just to get experience to get a better job. I know some guys, who even paid the company for getting training initially and then after two months, company hired them
competition
meanwhile, default tableview for iOS swift: done. Now starting with custom one
06:19
@DroidDev Where do you live?
06:39
Guys. WAS 6 to WAS 8.5 migration. Have anyone done it ?
hello world!
hello program!
I need help :"")
Good morning, Java!
gm
who is free to talk here
06:48
@OlegKuznetsov Morning!
@Gemtastic India
@DroidDev bro?
@SuroorAhmmad yes?
@Arun It is a nightmare
@SuroorAhmmad Woah! Shoot
bro I hav a problem
I am doing a final year project
I will post my code wait
1
Q: TCP Socket connection gets closed even though it is running in Android Service

Suroor AhmmadAs I am creating a Remote PC application where android is the client and Java is the server. In the below code I am getting screenshots from the Java and displaying it in ImageView of android program. Here Socket connection is running in the background that is Service and I am getting the Socket ...

here is my service code pastebin.com/3U5BEsJy
@DroidDev can u pls look at this
@ItachiUchiha here it is
07:05
@SuroorAhmmad I have not an android dev
@fge: Is it suitable to do this in Java 8 or should I use a lower compliance level?
07:42
@SuroorAhmmad sorry for replying late, but your pastebin link is showing me "paste removed"
Any Android devs here or someone can help me with Gradle & Libraries?
wait bro
@DroidDev I will post it again bro
@DroidDev here it is pastebin.com/twyGk2kp
08:00
@SuroorAhmmad sorry man, not able to find the problematic code.
though, if your only task is to download images from java server, I don't think you need a service
@DroidDev even though the socket connectin is active the program says socket is closed
no bro I am not just download images...
its a 2 way comm.
itz a Remote PC control
I want to send my touch location, soft keypress to server
hmm, so you are making a streaming connection
and to get screenahot every now and then to client
08:05
sorry, but right now, I don't have much time to go into details of this
if you are available later, I'll see what I can do
ok bto.. its ok
thank u bro
fge
fge
08:43
@Unihedro what are you referring to?
@fge http/2 impl
fge
fge
@Unihedro I believe Java 8 would be a better target
For people who still haven't migrated from 6, and there are a lot, they likely will choose to go for Java 8 directly instead of 7; and HTTP/2 adoption will take time as well
So, targeting 7 is imho a waste
Golden rule of cheating: Don't get caught.
:|
@fge Gotcha, tks!
08:58
Java 7 comes in handy if you are developing apps for android..
You mean Java 6?
7
1.7
7u75
7u76
Also, I highly doubt anyone would use an http implementation in Android instead of using the sdk
etc
fge
fge
09:09
@Sword Java 7? Android still has no support for Java 7 AFAIK
It doesn't support nio in java 7
and few other things
Morning
fge
fge
Morning @Vogel612
Morning
09:27
@fge it has no support for 6
android studio and sdk tools req:
Linux

GNOME or KDE desktop
GNU C Library (glibc) 2.15 or later
2 GB RAM minimum, 4 GB RAM recommended
400 MB hard disk space
At least 1 GB for Android SDK, emulator system images, and caches
1280 x 800 minimum screen resolution
Oracle® Java Development Kit (JDK) 7
fge
fge
@Sword I'm sorry but that's the reality
ehh?
fge
fge
@Sword do you realize that Android's VM is not a JVM?
Dalvik doesn't use JVM bytecode
While programming for Android "feels like" Java, it only really feels like Java 6
For instance you still cannot use try-with-resources with Android
nope.. dont have any idea.. i was watching those tutorials and that guy installed java 7
really?
fge
fge
Running Androind Studio and running an Android app are not the same thing
Java 7 is required because Android Studio requires it
But that's all
09:34
@Sword Android doesn't support all the features of Java 7. You should be amazed that it doesn't support some very important changes that were brought to Java 7
40
A: Does Android support JDK 6 or 7

Muhammad AnnaqeebOriginally Android development tools supported only jdk 6 features. But that was changed, first by Android Studio 0.3.2 in October 2013 see: http://tools.android.com/recent/androidstudio032released Support for language features like the diamond operator, multi-catch, try-with-resources, strin...

fge
fge
Agreed, especially since Java 7 has been out since 2011
ohhh
so which is the best one to opt for?
as far as the various tutorials i've referred to , Java 7 was installed by them..
fge
fge
Again, this is what Android Studio requires to run
does Android support invokedynamic?
fge
fge
09:37
@Vogel612 unless the Dalvik VM has an equivalent opcode the answer would be no
Stricto sensu it will never support it
which means, that in the near future there will be no java-flavored lambdas in Android?
that's kinda sad, considering there's often a lot of listeners around in Android code..
fge
fge
Not sure about that, I have heard about some efforts underway
Anyway, that's about all I can tell since I don't do Android
Note: DVM has been replaced with ART
09:40
ART = Android Run Time?
yeah
It replaces JIT with AOT
AOT?
ahead of time?
damn these TLAs are making my head spin already.
yeah, they make your head spin
@fge Dalvik is dead
oops, old news
@Vogel612 C'mon, AOT should be familiar: J9 JVM uses AOT
There is no J9 yet.
also I don't work all that much with IBM tech.
09:50
@Vogel612 They are working on it
yet ;)
fge
fge
@OlegKuznetsov OK, thanks for the information
Hi guys!
I'm not very used to work in Java. I need to do a simple GUI, any library suggestions would be appreciated :)
fge
fge
09:56
Define "GUI"
Desktop app?
fge
fge
Then JavaFX
Hi! Can anyone help me out?
fge
fge
Don't ask to ask, just ask
@fge It looks very nice. I will try it, thanks!
10:00
Though this question was asked in a interview for C though! Q.A stream of integers is coming. Find median of numbers received till now?
Approaches - 1.Insertion Sort (Time complexity is more)
i tell you the scenario of my project please suggest me which is the right way to do that. We have different types of user roles and based on the user role the menu level should vary so what i did was i created user_role field in DB then i fetched and stored that field in one jsp and stored that user_role in session. In other jsp's i process that session variable and based on that variable i will display the menu. since this session gets destroyed the User_role variable becomes NULL .
I'm not sure how to do it! Can anyone elaborate on that?
fge
fge
@psychoCoder and how large are those integers?
you don't know you have a function getnext() which returns the next integer
fge
fge
Uh, great
10:02
you have to arrange so that you can find the median
@Mano and what's the question?
fge
fge
Well, provided there's no possible overflow, just keep two variables, one for the total and one for the number of integers received
0
Q: Session variable gets destroyed before its session timeout n jsp

Mano <session-timeout>60</session-timeout> This above web.xml config code should kill the session variables when the Web Application is idle for exactly 60 minutes. But in my project the session variables are destroyed before 60 minutes. For example i stored one session variable in one jsp and it i...

okay..
I have to find median not mean?
fge
fge
Ah
10:04
@Mano boris is correct
Self Balancing BST(okay)
now my doubt is someone told me you can use two heaps
one max heap on the left and one right heap on the right
a 60 minute session is too long, you'll run dry on memory extremely fast like that
@Vogel612 can you please tell me clearly about that
It shouldn't be so hard to grab the user_role from database in the jsp
there's no real need to store it in session
Hiya @Madurai
@Mano alternatively you might just store stuff like this in a @SessionScoped Bean
10:07
@Vogel612 what is that @session scoped bean
You do know about Beans and EJB?
i know about Beans @Vogel612
Beans can be scoped depending on how long you need them
that's what defines their lifetime
the shortest lifetime of a bean is @RequestScoped
that bean will be created when the request is started and destroyed when the request was handled
In our case since the app will be used by single person no need to end the session in a short time
10:10
hmm.. that makes sense then..
why is there even a user_role then?
@Vogel612 Now i tend to know about it @Vogel612 now i understand what wrongly i did, i agree ur ans bro
@Vogel612 Later we will have different kinds of users but at present only one user is handling the app
then you should program for many users from the start
it's hard to change things like that later on
@Vogel612 okay @Vogel612 kindly guide me how should i go with?
I'm running a Glassfish server which is authenticating against an AD Server. In the web-fragment.xml of my application I have declared a role "ITSupport". In glassfish-web.xml I have the AD group "DL - IT Support" mapped to the role "ITSupport".
Also in the web-fragment.xml I have security-constraints on some folders of the application, using the declared role "ITSupport"
Now when I try to login, it works fine
But when I try to get the SessionContext via @Resource and ask it, isCallerInRole, it tells me false
it isn't *
any idea's?
hits the "i'm bored" button
10:20
So when I try SessionContext.isCallerInRole("ITSupport") it tells me false
fge
fge
@Unihedro you shouldn't have the time to be bored
That's what I thought as well.
Anyway, I'll take a nap.
altough only the role "ITSupport" is the only role allowed to access the folder
are you there @Vogel612
@Mano Please don't badger the chat users. If they are in the mood to respond, they will.
10:23
@Unihedro oops sorry
i am using struts framework . In struts config file if i store the scope of a bean to be session and is it possible to handle the request scope besides
lol :D
@SecondRikudo you are a cat???
obiously so.
@Configuration
@EnableAutoConfiguration
@ComponentScan
public class HelloApp {
    public static void main(String[] args) {
        SpringApplication.run(HelloApp.class, args);
    }
}
I think this is the most magical thing I've seen all year.
2
11:04
well the year's not that old yet
Eh, spring.
WTF do I do from here? XD
but you definitely seem to suffer developer sclerosis
How do I call stuff?
fge
fge
Argh, @Annotation @Abuse @Spotted
11:06
@fge @You @Dont @Say
I mean seriously
fge
fge
@SecondRikudo my condolences; I do hope though that you realize you are dealing with Spring; may that make you hate Spring and not Java :p
There' documentation on how to change the freaking banner
But no documentation on how to run things!
MagicApplication.doApp(Magic.class, args);
Wow, really?!
fge
fge
Sorry, I can't help at all :/
But that is a reason why I hate frameworks (and maven, too)
I don't mind getting a DiC, but this is way over the top
too much deep dark magic, eh?
fge
fge
11:13
@SecondRikudo what part do you have a problem with exactly?
If you say "Spring", I can understand; my condolences. But more specifically?
@fge The class I posted is literally my main class.
I have no idea how to call other methods or other classes (aside from newing them)
fge
fge
Well, it appears that you need the run() method to be implemented
Tried that, nothing.
Ah, wait. No that works :|
Now I'm confused -_-
Okay, so I implemented run, and I get my hello world
Now to figure out how to call an external service
fge
fge
thinks about how to redo his JSR 203 tutorials once he's done with his lib refactoring
11:31
@SecondRikudo You don't new them when you use Spring. That is the whole point of using it :P
@ItachiUchiha Doh
Enters Dependency Injection (Entrance Music Plays)
Spring uses a lot ( and I mean a lot ) of Reflection
I don't get it. Is that a song?
fge
fge
Too much of it
Way too much
And reflection sucks. :p
At least use indy code.
fge
fge
11:34
@SecondRikudo you can always just scrap anything Spring after you have ensured that your .run() is invoked and do things your way
I think I got it
I'm learning to use Mockito by testing some trash code.
@ComponentScan should include basePackage as well
to instantiate the objects of the classes present in the package
fge
fge
@Unihedro wasn't the TDD session enough?
I give many examples of using it in there
@ComponentScan(basePackages = { "com.companyname.packagename" })
11:45
@Unihedro My general approach when doing a new things is:
Is there a way that I can see the authenticated user's roles in glassfish?
Write an example so it works (I heard that was called "spike")
Save that example to the side
Figure out what you want to do
Write tests
Write code for those tests
Run tests until they pass
Test manually to ensure what you want is what happens.
Next unit of work please.
It's hard to TD a concept you've never met before, and you know close to nothing about
@fge except... I finally have a mockito manual now :p
This is the thing I'm writing a test for.
It's mostly just me reading from the manual and then muttering nonsense and then finally finishing a test method by myself, so I won't broadcast it because it's pretty boring. :p
@SecondRikudo follows TDD as well. Woah!
@ItachiUchiha TDD brings you a very high level of confidence in your code
It's also very satisfying doing a short manual testing, then running your test suite with 1000 tests, and seeing all green.
11:56
@Vogel612 IIRC, IBM's JVM was faster in math tests (from SPEC's benchmark suit). But it was it's only advantage, Hotspot was better in all other tests [and Harmony crashed in most tests. RIP, Harmony :'( ]
@SecondRikudo I agree. A lot of devs do manually testing instead of designing a test suite, eventually something slips and everything goes haywire.
@OlegKuznetsov harmony sucks
@Unihedro I spend ± half of my code time in writing tests
And my features are released faster than most devs I know.
It's a long running project, over a year or so in codebase in the making
Also, it makes me almost exclusively work on new features and not on bug fixes
I've had very few bugfixes in production aside from undefined behavior
I have to agree.
fge
fge
@Unihedro oh? Did you receive the book?

« first day (1585 days earlier)      last day (3580 days later) »