« first day (1532 days earlier)      last day (3402 days later) » 

12:48 AM
Hey
nobody here ?
 
just me
 
ah :)
do you have a mac ?
 
Nope
 
sigh Damn, CLion (JetBrains's IntelliJ-based IDE for C++) indexes files really long :(
 
yes oleg
 
12:50 AM
Only apple thing I have is the charger converter that you plug the USB into so you can charge it in the wall. ;P
 
aha xD
@OlegKuznetsov do you have a mac ?
 
helllll X_X
do you know shell script ?
i need some help about it: code.stypi.com/vdjnwnf1
it's a code which runs on mac only, it restart the app with admin privilege but doesn't work
 
Or, may be it's because I've fed it with hundreds of thousands files.. derp
Oh, look! It's java.io.File!
 
?
 
1:25 AM
Anyone any good with bash scripting?
 
 
2 hours later…
2:56 AM
Chat is silent. What's everyone up to?
 
 
1 hour later…
4:02 AM
Hey! I need some inspiration for a programming project. Any ideas?
 
4:12 AM
inspiration?
 
@Progo What level are you at?
 
@Progo the project about what?
what is the best designing tool for java?
 
Designing tool?
 
@Gemtastic I am very skilled and advanced.
 
@JavaFan As in what to make the GUI with or how to design the structure of the code?
 
4:19 AM
like uml ...etc
for extracting html data with eclipse and jsoup library
 
@Progo Then I don't have any ideas either sorry XD
 
@Progo your skill and your experiment is your inspiration
and follow brian tracy
What is the best tool for designing java projects?
 
5:11 AM
Any Ubuntu users here?
 
Wow... this is sooo weird...
 
#ubuntumasterrace
 
I change nothing in the code, it doesn't show up right. I make a code-snippet, and suddenly it works O.o
Dafuq just happened
 
Code Compilation Happened :P
 
No I'm working with html and CSS
I'm building the site
 
5:15 AM
Browser just understood your code :P
 
Yeah, magically after 1 hour
 
hehe
yeah
 
Funny thing is, I took a working snippet, and just changed the name; bork bork bork
 
use CTRL + F5 to refresh
 
But when I typed it again; worked!
 
5:16 AM
it clears the cache
 
@ItachiUchiha Do you honestly think I'm that stupid :C
That I didn't already know that I mean
 
@Gemtastic hehe, nope! I just don't want to leave any loose ends :P
 
Yeah. I have no idea what just happened, but now I can go on coding
 
Are you on the first page?
 
First page?
 
5:19 AM
i mean the homepage
are you still on the home page or designing other stuffs
I am making my hands dirty with BootStrap
 
The design is done, I just gotta put it into code :P
 
show me the design :P
 
Oh that is beautiful! How are you planning to make it resize to different screen sizes?
 
Well, that's the thing; it won't really work on a mobile phone so I'm gonna have to make a separate phone version :/
I haven't really mastered the concept of responsive design :/
 
5:25 AM
I see
 
I don't really know what a web store looks like on a phone anyway...
It kinda feels like "why?"
Is it safe to run payments through a phone?
 
@Gemtastic yes it is
 
Hmm
 
5:58 AM
the room is calm and quite
 
Yeah, I'm coding
 
6:14 AM
I have such weird issues
Now my two divs are on top of each other
 
you want to place one on left and the other on right?
 
No, I want them in a vertical row
 
you must have missed a </div>
 
no
But they are wrapped in the same div
 
Hey everyone!
 
6:18 AM
Refer to my jpg above and you'll see how I want it
 
 
@Appu Happy new year to you too
 
Thank you.
 
@Gemtastic Isn't <div id="top"></div> suppossed to be inside <div id="menuContainer">
 
@Doorknob冰 knocking again. How have you been?
 
6:21 AM
@ItachiUchiha Inside of itself O.o
@ItachiUchiha No, top is supposed to be a div that <div id="menuContainer"> rests ontop of
 
yes, so top should be inside menucontroller
 
No
They are both inside of a div called topContainer
 
well that is not there in the fiddle
 
6:44 AM
@gem jsfiddle is down
 
@ItachiUchiha I made a question about it and noone understands what I'm asking :(
1
Q: Why do my divs appear "inline"?

GemtasticI have two div's: menuContainer and top that are wrapped in another div called 'topContainer'. I want menuContainer and top to be under one another vertically, not on the X angle (and I thought it was standard for divs to appear under one another) but they appear both on top of each other and "i...

 
7:02 AM
hi all
 
heya
 
how can we insert null values or 0 to foriegn key of a table
 
@Ita Well, I know what's wrong, but still not why it matters
 
mine solution is incorrect
don't use it
 
@ItachiUchiha I know
I told you, I made a question about it
And it helped me identify that the problem is caused by the margin of menuContainer
 
7:06 AM
@kondapaka If you can insert the same to the primary key of the other table
 
But I don't know why
 
the problem is with the margin defined for menuContainer
 
7:22 AM
Yes
But why does it give the effect displaying the two sibling divs as in line?
If I put the margin on the parent div, it looks fine
 
7:34 AM
Should I remove the question or make a new one?
 
How to apply Valdations on only one method in struts2 using annotations
??
Can anybody help me.
 
Will I look like a real dick if I answer my own question with the information the others combined have given me, to get a well-written answer? I think the answers are messy and don't make sense to anyone new to HTML and CSS (I'm not new, I've just never gotten down to the behind the scenes of the code)
 
8:08 AM
@Gemtastic If you don't accept your own answer, then you won't
 
@DroidDev And now really, I'm not sure I learned anything at all actually. My code is completely broken now that I tried what they suggest
:')
 
@Gemtastic If others gave you the information in the chat, you must credit them because all contributions in the chat are cc by sa 3.0.
Attribution is required for adapt and share of sharing alike.
 
@Unihedro Not in the chat, it's in the comments, and it's all very messy
@Unihedro This is the question: stackoverflow.com/q/27738281/3763850
 
@Gemtastic Main site is also CC by sa 3.0, even if it's deleted, but as long as you add attribution, use of it is OK.
 
8:17 AM
I think I'll just accept Roko's answer
It's the best one, though it's not exactly the best answer on SO, but it kinda gets the point through.
 
You can still add your own answer after accepting one, just in case a googler comes through, you'd help them!
 
@Unihedro Yeah, that's what I'm doing now. Prepare for wall of text SO!
 
@Gemtastic Eh, at least spice a bit of formatting.
For example, this is super wordy, but the formatting helps probably.
 
I still don't know why the margin triggers the behaviour, but I can answer as to why it's bad code and what happens.
 
Ok!
 
8:21 AM
...and this too, plus, its also a self answer, but I never accepted it. As you can see, its my top voted answer ever. So, its really ok to answer your own question
 
Thanks for the feedback. I hope people will agree my answer is a good and educational one.
 
Usually you would accept the answer which helped you towards solving your problem (or query) the most instead of accepting your own answer.
@DroidDev so many too chatty comments to flag :p
 
@Unihedro and obsolete too :D
 
@Uni how do you add an empty row?
 
@Gemtastic <hr>
Or... ---
Or... ------ any number of dashes over three
 
8:26 AM
thanks
no that's a line separator
I want an empty row
I want the text to look like this:

Headline 1

text text text text text text text text text text text text
text text text text text text text text text text text text
text text text text text text text text text text text text


Headline 2

text text text text text text text text text text text text
text text text text text text text text text text text text
text text text text text text text text text text text text
 
@Unihedro What's that?
 
@Gemtastic please ban and blacklist W3Schools from your bookmarks and favorites (I really mean that). W3schools is a terrible resource, it's not a community driven website, has nothing related to W3C and during the years they've done just harm to the programming community. They also sell fake diplomas :D — Roko C. Buljan 10 mins ago
 
hehe
 
They're right.
 
8:30 AM
Yes indeed and I see that now
@Uni you can create an empty row by typing <br>
It accepts html code
Yay
 
@Gemtastic Or you can use spaces
blah blah blah(space)(space)
bleh bleh
Two or more spaces at the end of the line cuts off sentences.
 
@Unihedro You don't understand what I mean
 
I really don't.
 
I want the text to look like this:

Headline 1

text text text text text text text text text text text text
text text text text text text text text text text text text
text text text text text text text text text text text text


(^That extra space is what I want)
Headline 2

text text text text text text text text text text text text
text text text text text text text text text text text text
text text text text text text text text text text text text
If you press enter, the text editor will ignore an extra enter
 
8:33 AM
how about <br/> ?
I am going to get trashed by @gem
 
6 mins ago, by Gemtastic
@Uni you can create an empty row by typing <br>
@ItachiUchiha I figured it out on my own and I was trying to tell Uni the answer to my query, since he thought I wanted a line separator.
 
Even I don't understand what you are trying to say
 
@ItachiUchiha Yes you did. I wanted a <br/>
 
Then why did you say I figured it out on my own ?
 
@ItachiUchiha Because I did
But you didn't read that
 
8:39 AM
I get it ^^
 
Yes, he did, before I figured it out
 
@ItachiUchiha It was wrong!
 
Scroll up and read ita XD
I feel like I'm the only one who was taught to use an extra row to separate a new headline from the previous paragraph XD
 
extra row?
Is it a table?
 
In java jsoup library I want to System.out.print
for(int i=0;i<trs.size();i++)
{
Element tr = trs.get(i);
System.out.println(tr(i));
}}
I want to print tr element
Oh I solved the problem
it should be System.out.println(tr)
Sorry for annoying
 
8:51 AM
@ItachiUchiha no, just another enter
I don't understand why my explanations don't reach you XD
 
@gem you were taught to use Enter in html code?
 
No, in language class. When you write an essay
 
haha
xD
I need to restart @gem
Restarts Gem for clearing the buffer
Restarting done!
Time to restart @uni
 
@ItachiUchiha hahaha not really
 
8:54 AM
In HTML code what I want to do looks like this:
<h1>Headline 1</h1>
<p>Text text text text text text text text text text text text text text text text text text text text text text text text </p>
<br /> // This extra space is what I want
<h1>Headline 2</h1>
<h1>Headline 1</h1>
<p>Text text text text text text text text text text text text text text text text text text text text text text text text </p>
I think Uni knows what I mean by now
 
@Gemtastic Yeah, I thought you were asking for the markdown.
 
@Gemtastic any what is the problem?
 
I want another \n!
 
@Gemtastic Write yet another <br> then.
 
I should have just asked "How do you make an \n in the SO text editor"
 
8:56 AM
yes^^
 
XD
@Unihedro I already figured it :)
 
The extra space would be normally a property of the heading style (or that of the first paragraph)
 
Ah, namecheap had a new year discount that made .com domains 50% cheaper, but evidently I missed it.
 
Gem figures everything before hand, I am still confused as to what her problem really is
 
Oh well. :P
 
8:58 AM
@kiheru Well, <h1> would have created that space for me if I wrote HTML. But that doesn't work in the editor as far as I know.
maybe it does. I'd be in heaven if it does :D
 
@Gemtastic What editor?
 
The one where you write questions/answers on SO
It does!
\0/
 
Whoo hoo
 
Smaller Subheader
-----------------
 
9:00 AM
Bigger Subheader
==========
 
@ItachiUchiha No, just the normal text.
I'm trying to format my answer so it'll look good and readable
 
Remember, if everything else fails, read the documentation
 
I don't know where to find it :(
 
Look at the "?" at the top right side of the answer box
 
Though regardless of if you write <h1> or ### it doesn't create that extra padding that it does in HTML
And I want that extra padding
 
9:04 AM
Probably a stylesheet issue
 
in Lounge<C++>, 48 secs ago, by Jefffrey
Is Object a glorified void*?
 
@Jefffrey heya
 
Hi
 
Long time! What's up?
 
Nothing
 
9:11 AM
^ uneventful user
 
That's a Maybe a remember?
Or an Optional<T>
 
Well he is a strong promoter Functional Programming :D
 
@ItachiUchiha I am well aware, he made me stay up all night defending Java
:P
 
Seriously, though, is Object still used in Java?
 
@Jefffrey Probably, except Object is a void reference, not a void pointer.
 
9:12 AM
Yes it is!
 
@Jefffrey Yes, in very many cases. When T as a type parameter does not extend anything, it extends Object. When Type inference has no highest common type, it suppresses into Object.
When constructors are not fed or inferred generic types, it is considered Object.
For example: new ArrayList() => new ArrayList<Object>()
 
That was probably for backward compatibility with code that was written before generics were introduced.
 
user1804599
@Unihedro No, it's a completely different thing.
 
user1804599
First of all, Object is really a pointer type in Java; Java has no references. References are a completely different thing.
 
stfu rightfold
 
user1804599
9:22 AM
Second, void* doesn't allow dynamic downcasts, whereas Object does.
 
@rightføld Yeah, you're right.
thinks rightføld is right
 
user1804599
I'm not wrongfold.
 
@rightføld how doesn't it allow dynamic downcast again?
 
user1804599
@Jefffrey void* x = …; dynamic_cast<foo*>(x); is a compile-time error.
 
(foo*) x is not
 
user1804599
9:25 AM
That's a static cast, and not a downcast.
 
so?
 
user1804599
So it's not a dynamic cast?
 
who cares?
you can still downcast just like with Object
 
user1804599
You, apparently. You asked why it wasn't a dynamic downcast.
 
user1804599
No, you can't. It's not a downcast. There's no subtyping relationship between void and foo.
 
9:26 AM
exactly
help me choose a paas
 
user1804599
Heroku.
 
user1804599
Only one I know of. :v
 
The point is that an Object semantically means "anything". The same as void*. @rightføld
 
user1804599
Not int. :P
 
Technically they are two different things, but semantically they are the same.
 
9:34 AM
Looking a bit backwards the discussion, one typical use of Object that's still in use is for more fine grained than instance or class level synchronization.
 
9:48 AM
Hey all
 
Hello
 
now a day our room not not much rush
 
10:03 AM
It's been always like this.
 
Nothing remarkable happened, except I invested a dollar in a random domain to park a test VPN on.
 
10:30 AM
hello
I would to show inc_launcher
in my application don´t appear
I use api 21 andorid
 
PHEW!
@Uni I'm done with my massive answer now XD
0
A: Why do my divs appear "inline"?

GemtasticNow, just for the sake of writing the answer I wanted to read (and hopefully can help other people learn what just happened here) The quick fix Removing the margin from menuContainer and adding it to topContainer will "solve" the problem visually and "look" as you want it to, but it's still bad...

Took me forever to write, but now I fully understand the code and what happened. :)
 
... How is that massive?
4950 characters of markdown, not bad :p
 
Well, massive for me to write XD
Do you think it looks like a good answer?
 
Yeah!
 
Yaay ^^
 
10:41 AM
@Gemtastic ya, lots of text in it, still you can try removing extra white-space above those big headings doesn't look cool :P
 
My longest post is 7303 in length (parsed, 6545 raw markdown), 7 score :p
 
Well, I wanted the extra whitespaces to separate it more properly. Though yeah, I could make the headings smaller
 
But it's nowhere near massive
You haven't seen a massive post until you see the gigantic question - The last paragraph is literally "UPDATE 25"
 
lol UPDATE 25
 
XD
 
10:44 AM
Worthy of bounty
Wink :P
 
To me it feels a bit like "why don't you just write a new one where you plan the content ans tructure straight away". Must look terrible if it's 25 updates XD
 
hola
hi
anyone could help me with one application
android
 
It seems no one is interested. Try your luck in an android room.
 
hai
query on servlet programming
can somebody help me?
 
11:04 AM
@overexchange ask and thou shall find
 
ok
Below is the class that is being used in every servlet class of an enterprise web server application.
    /**
     * This interface provide the functions neccessary to have 6 different list
     * were all lists live a different life span.  The lines between these may blur
     * from one context to another.  The two main contexts that provide this
     * mechanism are:
     *
     *      {@link ApplicationContxt ApplicationContxt} - The
     *      servlet context that provides a wrapper for the 4 main storage lists
     *      provided by the servlet architecture and 2 add ons, global and
     *      sub-application.
this is the one which implements it and being used in every servlet
 /**
         * This class provides the application context for any running in a servlet
         * environment.  This class uses the four main storage mechanisms provided by
         * the servlet architecture.  These storage scopes are:
         *
         *      {@link ApplicationContxt#APPLICATION_SCOPE APPLICATION_SCOPE} -
         *      This scope uses the {@link javax.servlet.ServletContext ServletContext}
         *      object to store both objects and parameters.  This scope lives
         *      for the length that the servlet container, in our case tomcat, is
Being new to servlet programming, I had been through the initial orientation on [JavaServlets](http://www.ntu.edu.sg/home/ehchua/programming/java/JavaServlets.html) but I would require a good understanding with example code(as a beginner) that specifies the significance and usage about Context and Scope.


Can you please help me provide some reference on a java practice application that can give a good insight over the usage about context and scope, as used in above code?
 
GAH!
Use a pastebin or something DX
 
let me use github
 
11:11 AM
gist
@Gemtastic no plans to sleep?
 
@ItachiUchiha When my better half wants to sleep I'll sleep
Up 'til now I've been writing on that answer so I've been busy Xd
 
So you have been awake all night and most of the morning?
must be close to afternoon ova there
 
hello
 
@Bhargav hi
 
@ItachiUchiha Yeah. We got up around 6pm yesterday
and it's 12pm now
 
11:16 AM
@it
 
@Gemtastic :)
 
@ItachiUchiha what tech are you working on?
 
So many hours on this effin CSS menu. Why did I have to make it multi coloured XD
 
@bha you need to type atleast 3 characters to ping me
 
Yes i know that it was sent by mistake @ItachiUchiha
 
11:17 AM
@Bhargav What is the name of the room?
 
:P Java
 
there you go
 
may be you work on something more than java so was just asking
 
what is more than java?
 
11:20 AM
i meant to say any other technology then java
 
I don't get you.
You come to Java room, searching for C# devs?
 
@ItachiUchiha I am a java developer not searching for developers thats why i joined java chat room
 
not searching for developers ?? :O
 
lol :O
:P
 
0
Q: Query on usage of Context & scope in every Java servlet

overexchangeHere is the code with an interface ApplicationContxt and class ServletAppContext that implements it in this link. This class talks about context & scope that is used in every servlet class of an enterprise web server application. Being new to servlet programming, I had been through the initial o...

 
11:34 AM
> Administrative Password is too long (maximum is 20 characters)
Passwords shorter than 20 characters?! You're kidding me!
After much struggling, my first GitLabs is deployed! \o/
 
:)
yo
 
Hi, I am creating a ArrayList of objects in my method and returning it. I am curious to know if the arrayList goes out of scope then the objects stored in arrayList become eligible for garbage collection or not?
 
@Tarun ArrayList stores strong references to the objects it holds.
Therefore, you should be concerned of resource leaks instead.
 
What is exactly meant by out of scope in this case. Something like:
List foo() {
   ...
   return new ArrayList();
}
?
 
@Unihedro I am storing simple value object in my arrayList
I guess once the array list goes out of scope the objects it hold will not become eligible for GC untill arrayList collected by GC, Am i right?
 
2 mins ago, by kiheru
What is exactly meant by out of scope in this case. Something like:
List foo() {
   ...
   return new ArrayList();
}
?
 
12:14 PM
assuming the arraylist is the only place containing references to the object
 
@Tarun no
GC only collects objects which no other object holds any reference to them. Period. Nothing else matters.
 
it's not so much the objects that are unreachable, but the objects that are reachable
 
@kiheru Don't assume unless it's given. :p
 
List foo() {
   ...
   ArrayList<String> strList = new Arraylist();
   String text = "text";
   strList.add (text)
   return strList;
}
I am doing something like that
 
strList.add(text), I presume
 
12:17 PM
Yes
 
in that case, the list is the only object holding references to text
so if nothing hods references to the list, text too is eligible to be collected
 
Eh, you still need a ;, but syntax aside "text" is in the literal pool, it is created without dumping to the heap, and when strList dies and no one kept a reference to strList.get(0), text will be lost from the heap for garbage collection.
 
@kiheru Okay
 
(the list being in the stack counts as being referenced; it's still reachable if the calling site takes a reference to the returned list)
the constant string pool messes things a bit of course, but that's an implementation detail
the reachability is what matters. technical details and implementation make difference on how early something can be determined to be certainly unreachable, but in general the question is: "is this object still reachable?"
in the case of that method, it's reachable via the list, which is reachable as the return value of the method. if that reference is dropped, then the object in the list is no longer reachable
 
@kiheru thanks i understand it now
 
12:29 PM
(Technical issues are what make caches with no expiration policy memory leaks: the object may never be accessed again, but there's no reasonable way the GC can determine that. They look reachable to it, so they can't be freed. The GC won't free things that won't be used, but things that it can prove that can't be used, and it does not have any global understanding of the code)
 
@kiheru Therefore, resource leaks!
 
Yep
 
fge
12:56 PM
Moo
 
Heyo!
 
Heyo!
 

« first day (1532 days earlier)      last day (3402 days later) »