« first day (1412 days earlier)      last day (3535 days later) » 

12:46 AM
BW!
Welcome back
 
Hey :)
 
How you?
 
You said
My avatar is pink white but name is BW
 
I did. I went for the laugh...
 
I was cry :)
Ovv what a sadly day
But i am changing
 
12:48 AM
What happened?
 
Nothing
Just i am real BW now
 
Did I offend you with that comment?
 
translating...
No no :) just kidding
If you (or somebody) are confused i am not happy :)
 
OK. Good!
What is your native language?
 
What time is it in your counrty ?
 
12:54 AM
8:54 PM (20:54)
 
translating...
Ah Turkish ofcourse
03:55 AM (03:00) here :)
World is spinning
Anyway @Karl if i am good in English we can doing many chat about all :( Sometimes i hate language difference between countries :)
 
OK
How old are you?
 
Actually 28 but with this english about 11-12 :)
 
Are you married?
 
Translaters not enough translate sentences between Turkish and English
Grammer suctures very different i think
 
1:05 AM
Do you have wife?
 
Not yet are you ?
 
Yes.
4 children
 
Uh really
 
Yes. One is married.
 
You must old 30 above ?
 
1:06 AM
45
 
elder brother right word for me ?
 
I am older brother?
 
How will i appeal to you ?
 
Friend
 
hmm
I am stuck sorry because "Ağabey" is translating to "Elder Brother"
 
1:10 AM
Agebey?
 
If my friend older than me, i must appeal to him "Ağabey" in Turkish
adjective i mean
 
Just talk to me as an equal
 
Cultures many different :)
 
Just because I was born first doesn't change why I am here. We are both here for the same reason. You could be the better programmer
 
Eh you are right. Programming language is common :)
actually it is English :))
 
1:16 AM
We are here as programmers, not older/younger people
 
Exactly you are right technically.
 
COOL!
ONE IN A ROW! A NEW RECORD!!!
 
I imagine: Whole world speak one language
 
Java? C#? Assembler?
 
Binary :)
1110001010000011111
We can directly speaking with machines :)))
 
1:23 AM
Maybe….
 
@Karl nice to meet you. See you later i am going to sleep
 
Sleep well
It is nice meeting you
 
 
4 hours later…
5:07 AM
anyone here ?
 
5:33 AM
@Black @Karl you both are android begineers, you should learn together. It will help you botg..
 
5:59 AM
hi
 
heya
 
 
2 hours later…
8:22 AM
morning
I am going to install 2 versions of jdk 1.6_18 and jdk 1.6_27, my question do I stay the same JRE for both JDK just I make one folder jre6 for all jdk 1.6_xx ?
 
may i ask why to install two versions of jdk ?
+ which are so close to each other..
 
8:38 AM
@ItachiUchiha because I have some version of an application solution for example SO1 need jdk1.6_18 and Jboss 6.1 and SO2 need jdk 1.6_27 and jboss 6.2 ...
 
all of them can't work on 1.6_27 ?
 
why is it so ?
was there some majore changes in the JDK from 1.6_18 to 1.6_21 ?
 
8:57 AM
ok freind no problem ;) @ItachiUchiha
 
that was a question
 
if sun make a new version means there are some change otherwise why they make a new version @ItachiUchiha
like it's name indicate 1.6 <b>update</b> 18
 
yeah but then all java versions is forward compliance
i.e. an application which runs on 1.6.0 should work on 1.6.x
unless there is some major removal from the jdk
 
yes this is the responsability of JRE
 
9:31 AM
Vendors sometimes specify exact versions to avoid responsibility when they have tested the software with only one specific jre. As a rule of thumb, software that actually does not work with later versions is buggy garbage.
If you need different dot versions, I'd keep them at different directories just to be sure the versions really do not get mixed
 
@kiheru I am amazed that he is talking about Jboss :O
 
I don't know anything at all about JBoss, so I don't know how to read that comment :-D
 
AFAIK It is not possible that JBOSS 6.1 needs jdk1.6_18 and wont work with x_27
lolz
ok
JBoss is an application server from RedHat
 
It would surprise me if RH didn't avoid messing with the internals (sun.* etc). They're quite used to people using different java runtimes
 
@kiheru true ! I have used Jboss myself and all of them are forward compatible
 
9:39 AM
In fact, Fedora does not even have any java 1.6 versions available by default. Users are expected to run it on either openjdk 7 or 8
 
I didn' told JBoss 1.6 require jdk 1.6 and not jdk 7 for example
is our application solution
require that
 
@fahdijbeli The point I am trying to make here is I don't think you would need different versions of JDK at all
 
Ick. My comment about software that does not work with later versions still applies
 
 
1 hour later…
11:04 AM
have you an idea how to use this maven command :
mvn clean install
I want to specify my url of my project which contains the pom.xml
for example mvn clean install -option url
I m looking fir option do that
did u understand me ?
 
11:28 AM
Morning
@fahdijbeli, Not sure. I use Maven heavily, but not to install.
I'm guessing this might help you.
But I have a feeling you're using Maven incorrectly
You don't point to pom.xml by a URL.
 
11:44 AM
@fahdijbeli mvn clean install will remove everything from target, compile your project and then create a jar/war/ear depending on the project declaration
 
Install installs to the local repository
I hope that is intended
 
ofcourse ;)
@spoulson ssup ?
 
@ItachiUchiha, Just getting started. How are you?
 
Good !
 
Have you ever worked with a junior developer that just didn't "get it"?
I've been working with this guy in a remote office for a couple months now to write a command line tool to do a fairly simple job. But I get a code smell from every line of code.
Dynamic SQL with values injected with string concat instead of parameter placeholders.
 
12:01 PM
Yeah, I know it sometimes suck !
 
As an amateur, I reserve the right to insert code smell to every line for myself.
 
Though I have never worked someone who was at remote location
@kiheru lolz
 
Large code blocks with no comments
Inconsistent indentation. Mixed tabs/spaces.
 
This is bad !
 
I gave this guy lots of direction, yet freedom to make his own choices in design. But I have to handhold every step of the way or he gives up.
 
12:04 PM
I used to code this way when I was at school !
 
I did, too.
By today's standards I was a LOUSY coder.
 
but then those days, I used to use TEXTPAD.Since, I started using IDE, it flushed away !
 
I hope I've improved since then.
Textpad? pfftt
My old dev toolset was a text editor (e.g. Boxer) and 1.bat and 2.bat. 1 to build, 2 to link.
DOS days... didn't have a make command.
 
DOS days.. When I was 5, I still remember I used to play Dangerous Dave and POP
 
12:23 PM
Might be older :P
 
12:47 PM
Has anyone build a DMG out of a JAR ?@spoulson @kiheru
 
I haven't
 
Well the JAR runs fine, dont know what happens to the DMG/APP file
 
Hi ... any apache devs here ?
 
@user3197452 looking for some specific individual ?
 
@ItachiUchiha Hey :) Nope .... I wanted to contribute to apache lucene / solr ! well apache seems to maintain 2 copies of source ( or thats what I presume ) one maintained via svn with jira as its issue tracker another maintained via git hosted at github ! So my question is ... which one do I contribute to, If I am gonna contribute a patch etc ...
 
1:00 PM
@user3197452 If both of them are active, you can contribute anywhere. Its better to drop a mail to them or ask them about it their group !
 
Hmm ... thanks !
sup?
 
@ItachiUchiha @spoulson thanks
 
was trying to create a DMG from my jar
using ANT
but didnt work out
 
1:52 PM
hi
gd evn
 
2:13 PM
I don't even know what a DMG is.
 
2:27 PM
@spoul its for mac, just like msi is for windows
are you aware of .app files ?
.app:mac :: .exe :windows
 
oh. ok, I barely use my mac
I should've known that, though
 
2:43 PM
hmm... my ant build create msi which works
but the dmg doesnt
and i have no idea how to debug the error
if any
 
I have query regarding working of wait() method. How does a thread wakes up the another thread which is in wait()?
:/
 
2:59 PM
you can join both the threads.
pss.. i am confused between join and yield
just go thru the docs once, either one has the answer
 
3:35 PM
I will be very happy if i got some suggestions here codereview.stackexchange.com/questions/61944/…!
 
4:25 PM
Hail Java
 
5:02 PM
heya
 
5:24 PM
Whatsup @ItachiUchiha
 
nm
how z android ?
 
I read document every day :)
I need target actullay
 
test
 
echo return 5 ms.
 
5ms is slow, I hoped to get reply in less than 3 ms
 
5:32 PM
Network releated issue
Please speak with your ISP.
:)
 
Ok does anybody here knw abt json formatting
 
never experienced sorry for me.
 
@crawler jz ask
@black good
 
6:28 PM
I'm BACK!
 
6:43 PM
welcome back
 
Miss me?
 
yeah missed ya a lot
;-)
 
With every bullet, huh?
 
bullet ?
 
A bullet is a projectile propelled by a firearm, sling, slingshot, or air gun. Bullets do not normally contain explosives, but damage the intended target by impact and penetration. The word "bullet" is sometimes colloquially used to refer to ammunition in general, or to a cartridge, which is a combination of the bullet, case/shell, powder, and primer. This use of 'bullet', when 'cartridge' is intended, leads to confusion when the components of a cartridge are discussed or intended. See the reference section for more detail. Bullets fired from slings, slingshots, and many airguns (including BB guns...
 
7:01 PM
Heya
 
 
1 hour later…
8:23 PM
I'm back
 
Anyone have sometime to talk about the swing EDT and swingworker?
 
Wow, I just love how SO chats inline everything... Wiki, Images, Tweets... That's just cool :D
 
Hi all
Quick question
When is super(); without any arg. used?
I see it a lot in Swing programs but I'm not sure why there is no arguments?
 
to call the default constructor of the super clas
 
Can you explain in more details?
 
8:32 PM
within the default it probably initializes all of the private feilds to somethign so the object can be used
 
So basically super(); grabs all private fields in that super class?
 
Say if you subclass StringBuilder and call super() (I am not sure) but I think it would probably initalize a input and output stream to write strings to and with
even though it doesnt have anythign to do with it yet
it is so the user can do
 
hmm okay
 
stuff right after the object is instantiated
Try to find some source code for a class you are subclassing
and see what the constructor does
 
I guess that's what I should do.
Thanks :)
 
8:36 PM
i have 2 lists of hotel rooms, i want to merge the 2 lists into one. if 2 rooms are equal, i want to only add the cheapest room. how do i do this?
 
All constructors must call the super class constructor. The compiler will insert a no parameter super() call automatically to constructors without parameters (unless you add an explicit call). If the constructor has parameters, it must call super() explicitly, and that can quite often be a no parameter version.
 
anyone any idea?
 
@heyya99 if(room1.id == room2.id) addRoom( min(room1.price, room2.price)
thats pseudo code of course
 
would that mean an outer loop of list1, and an inner loop of list 2?
and check each room?
 
I'd use a Map<Room, Price>
 
8:42 PM
first merge the two list ignoring any restrictions
sort it by price
start at the lowest priced room and add rooms
only if the room id has not been added yet
or is not found in the final list
(a dictionairy would be nice for this)
 
let me have a think about that..
for (PricedRoom cohPricedRoom : cohRooms) {
for (PricedRoom cePricedRoom : ceRooms) {

if (pricedRoomComparator.compare(cohPricedRoom, cePricedRoom) == 0) {
PricedRoom chosenRoom = dupeRoom(cohPricedRoom, cePricedRoom);
// add either coh or ce room to list
depupedRooms.add(chosenRoom);
} else {
// add the ce room to list
depupedRooms.add(cePricedRoom);
}
}
}
dedupeRoom takes 2 equal rooms and returns the cheapest
 
what does the comparator compore based on?
price?
or does it just determine if they are "the same"?
 
description
so if 2 rooms are called standard room, they equal. You then select the cheapest
 
Ok so the problem comes when you have two rooms in the same list, that are "the same" but differ in price. you will add both of them because they are never compared to each other, only to the rooms in the other list of rooms.
I dont think you can do nested loops like this unless you can guarentess that the list doesnt not have two of the same room in themselves
 
i see
 
8:50 PM
I think you have to go with what i suggested
just put all the rooms into a single list
then sort it based on price
and then add them lowest prices first into a dictionairy
thats way all rooms that have the same id will alredy have the lowest priced item put into the dictionairy under that description
 
can be done without sorting, if inserting to the Map is dependent on price
 
Then traverse the dictionairy to get the final list
I think it would take a lot of iterations
without sorting
 
uh, no. just one
 
you have to compare each item to all other items
without sorting
 
nope. you compare only to max one previous similar room
 
8:53 PM
can you elaborate @kiheru
 
basically, take a Map<key, Price>, here the key is the description I think
add all rooms from the first list to it (I think they're all non-equal?)
 
None of my keys have descriptions… OK, my van's key has a logo on it, but none of the other ones do.
 
when adding the second list do:
 
I think they're all non-equal? - yes
 
    for (room : list) {
         Integer price = map.get(rook.description);
          if (price == null || room.price < price) {
              map.put(room.description, room.price);
          }
     }
(pseudocode)
which should be a mapping of the cheapest unique rooms. If you want that as a list, you can do new ArrayList<Room>(map.keySet())
 
9:00 PM
@heyya99 He does know what he's talking about. He's helped me quite a bit, he's quick and knowledgeable!
@heyya99 Don't tell him I said that, I will deny it...
 
for (room : list) {
is this the 2 lists merged?
 
that was assuming you have room objects, that have a description field (which is used to decide the uniqueness), and a price field that can be used for comparisons
 
thats correct
rooms have desc and price
 
that part is only needed for the second list. the first list can do for (Room room : firstList) map.put(room.description, room.price)
as you said they already have unique descriptions
uh, I correct a bit. the mapping needs to be Map<String, Room>, and the price comparison adjusted accordingly. And then making alist becomes new ArrayList<Room>(map.values()). The version above would forget the rooms and only keep their descriptions and prices
(so inserting becomes map.put(room.description, room))
 
ah yes
i had wondered
 
9:10 PM
hard to write code on chat :-P
 
:)
is this part revised then?
        Integer price = map.get(rook.description);
        if (price == null || room.price < price) {
            map.put(room.description, room);
        }
the map.get(rook.description) will return a room object
 
becomes:
Room oldRoom = map.get(room.description);
if (oldRoom == null || room.price < oldRoom.price) {
    map.put(room.description, room);
}
 
so if you find a duplicate room, of cheaper price, the more expensive one is replaced?
 
yes, that's the room.price < oldRoom.price part. the null check is for adding any new types for rooms
obviously, the code needs testing after being written. it's past midnight and I may well make more stupid mistakes
 
im writing it out now..
ony 1025 here :)
if further down the line, i wanted to compare rooms on desc and occupancy, would i have to create a composite key?
like a RoomKey obect?
class RoomKey{
string desc
int occupancy;
}
and use Map<RoomKey, Room>?
 
9:29 PM
If that would be the uniqueness criterion, then that approach would work - but assuming using HashMap, RoomKey needs to implement hashCode() and equals()
 
@Kiheru I have a question about the Roomkey
Nevermind
 
ok, I won't mind
 
I was going to ask if it was one of those plastic cards like a credit card, or a real key made of metal, but you are in the mid of an important condo so I won't.
 
(a TreeMap would get just implementing Comparable, and would result in a nice sorted set)
 
a treemap has no duplicates?
 
9:44 PM
Assuming the comparator compares duplicates to 0
anyway, the sorting is not a big thing - there are multiple possible ways to sort, and description might not be the one you want to use
 
man, i really appreciate your help
I'm so tired i can hardly keep awake so thansk for the hand
you too @BumSkeeter
night all
 
10:14 PM
indeed
 
 
1 hour later…
11:38 PM
Aye
ANyone here?
 

« first day (1412 days earlier)      last day (3535 days later) »