« first day (301 days earlier)      last day (3710 days later) » 
00:00 - 22:0022:00 - 00:00

12:00 AM
@nhgrif: Someone actually upvoted that question...
Reload!
 
Which?
Oh, I see.
lol.
There have been 3 in a row questions that are very, very rudimentary questions "please read the official documentation"
 
Yeah, the one you've linked. I suppose it was a sympathy upvote.
 
And then a few questions where the user makes no effort whatsoever.
 
I think it was to give the OP reputation so you could watch it disolve?
 
Today, I came across an interesting bug with FTP stuff.
We create folders and such dynamically, based on information from the database.
The app could potentially try creating a folder that ends with a period, but windows doesn't allow this.
 
12:12 AM
No, it does not.
 
And the interesting thing is, when we create the folder, it has no problem. It just drops the period.
 
There is a flag, and a way to do it.
 
But then when we try uploading to that file path, the period is still in the path... and it has an ftp error.
 
This is well-known (for people in the know).
2
A: How to create a filename with a trailing period in Windows?

AntimonyI figured out how to do this. Apparently, passing a normal filename will strip the period even when calling the Win API directly from C. In order to create the weird filenames, you must use the \\?\ prefix (this also disables relative paths and slash conversion). open('\\\\?\\C:\\whatever\\test...

 
Would this work when creating the path over ftp?
I know very little about ftp...
For now, I've fixed it by simply replacing all instances of ./ with /
 
12:20 AM
You may be right that the FTP server is not correctly implementing the right processes to create files/folders. Consider contacting the FTP Server developers
 
Well... the thing is... this is an app interacting with an FTP.
And the FTP can very easily be different from client to client.
It's not reasonable for us to make sure everyone's FTP works right... so we'll just replace ./ with / when we go to create the path
 
That is a fair point, but consider filing a bug with the FTP providers you KNOW that fail, because otherwise things will never be fixed.
 
That's fine. But I'm not sure if there's something special I have to do to get the FTP to do this or not.
Should it just be doing this automatically?
 
I would expect an FTP server to save the file I want it to save, and to either respond with an error code, or to do the job. If it does the job, then I expect the file to have the name I gave it. Anything else is a bug.
 
Hmm, let me be more clear.
I have a path that looks like this:
\\somepath\pathpart\
I want to save a file to: \\somepath\pathpart\somefolder.\somefile.ext
The first thing I do is create the folder
The ftp create the folder, but it creates \\somepath\pathpart\somefolder\, dropping the period
Then tries to save to the path \\somepath\pathpart\somefolder.\somefile.ext (with the period). It returns an error.
It doesn't not save and not return an error.
 
12:31 AM
Off-topic:
0
Q: Project Unavailable in Visual Studio 2010 Solution

jp2codeDoes anyone have experience with building Visual Studio 2010 Solutions with multiple projects? I've got one that had been working for a while, but I did not have a backup of the tool. I made some changes so that different versions of our code from source control would fall under different Proje...

 
> The ftp create the folder, but it creates \\somepath\pathpart\somefolder\, dropping the period

^^^Bug^^^ How about if I asked windows to `mkdir Documents` and it does `mkdir Temp`
 
And once again, I hear the "I have code, so it must belong on this site" argument.
 
lol
But the question I'm asking, since I don't know much about FTP, is whether there's something special I need to do to get it to add the period. The SO question you posted clearly indicated you do need to do something special to do it in python, etc.
 
The bug is actually in Windows, but, because MS is a big place with some muscle, they expect everyone else to work around their problems.
if the FTP server is not doing what you asked it to do, but saying it did it anyway, then there is a bug in the FTP server.
There is nothing in the FTP protocol that will allow you to change this.
 
Maybe I need to tell the FTP the path with the \\? at the front
 
12:35 AM
There may be configuration values for the actual server that allow you to configure this, but I don't know what server it is.
 
I don't know either, and it will be different from client to client anyway.
 
@nhgrif - then you need to know that the servr is running on Windows.
which you won't
 
Yeah, can't guarantee this to always be the case either.
 
This is another case of where 'people who run critical servers on Windows should be shot'.
 
-1
Q: Project Unavailable in Visual Studio 2010 Solution

jp2codeDoes anyone have experience with building Visual Studio 2010 Solutions with multiple projects? I've got one that had been working for a while, but I did not have a backup of the tool. I made some changes so that different versions of our code from source control would fall under different Proje...

 
12:39 AM
-6
Q: If anyone could help me with this, that would be awesome. Due tonight

user3367018Write a function, called replaceValues(diceList, indexList), that takes as arguments two lists. The first list is a list of numbers that represent 5 dice values, and the second list contains elements that are either equal to 0 or 1. A 1 indicates that the die in that index needs to be replaced,...

 
Yea, I saw that.
I was about to comment on that.
Here's the part I find annoying: You must use either a “for loop” or a “while loop” in this function.
Why? I didn't read the rest of the assignment, but why is this part of the assignment?
Either the assignment will require a loop to accomplish the task, in which case... you should be able to figure out that you need to use a loop... or you shouldn't pass the assignment...
OR... it could potentially be done without a loop, in which case, the student should decide what the best approach would be and be graded on how good their approach was....
 
0
Q: Better way to avoid my "SIGNATURE_BREAKER"?

Jeff GohlkeI got really tired of having this code in all of my classes and methods: public class SomeClass { private static final Logger LOGGER = Logger.getLogger(SomeClass.class); //... public int someMethod() { final String methodName = "someMethod()"; LOGGER.debug("Enteri...

 
Another in the long string of bad ObjC questions tonight: stackoverflow.com/questions/22108538/…
 
12:55 AM
@nhgrif: You could go ahead and rollback this question. It would be a minor edit for me.
1
Q: (CLOSED) GIT cannot delete local branch

ShaneI was trying to track a remote branch with: $ git checkout -b --track global/master and git created a branch that is actually called '--track'+ Now when I type: $ git branch -D --track It won't delete the branch (I think git is assuming it is a flag/option not a branch name) I also tried ...

 
Really? It makes the code a lot more readable to me it looks like..
 
I mean to remove the "(CLOSED)" from the title.
 
oh
someone else got it
 
Good to see more people are paying attention tonight.
 
1:54 AM
 
2:13 AM
I'm not sure of a better title for this:
0
Q: How can I simplify my code - LINQ - C# - MVC4

blgrnboyI have a few if, else-if, else clauses. The only different thing in the context of these clauses is my LINQ query, one clause has StartsWith, one clause has Contains, and the other does a simple match. Is there a way to have all of this in one clause and somehow create a variable that can chang...

 
yeah I was trying to come up with a good title but damn this is hard
 
The OP doesn't even explain what the code does.
 
I'm not a C# guy to say like you could name it : Dynamic LINQ query or something like that.
 
0
Q: How can I simplify my code - LINQ - C# - MVC4

blgrnboyI have a few if, else-if, else clauses. The only different thing in the context of these clauses is my LINQ query, one clause has StartsWith, one clause has Contains, and the other does a simple match. Is there a way to have all of this in one clause and somehow create a variable that can chang...

0
Q: A generic MemoryCache class

MeNoTalkI want to have a caching class to cache different types, I want each type to be cached in a different MemoryCache but in a generic way, here is my implementation: internal static class RecordsCache { private static Dictionary<string, ObjectCache> cacheStore; static private CacheItemPolic...

 
hi!
 
2:16 AM
@StackExchange Duh! We're already discussing a good title :P
 
hi
 
have you seen this question?
91
Q: How to intentionally get denied entry to the US, without getting into trouble?

user11743I have a multiple entry visitors visa for five years. I went to USA last year and lived there for one year with my husband (6 months entry and other 6 months of extension). I left USA legally. Now my family wants me to go back and live with my stupid in-laws and husband in USA. I don't want to g...

 
Hi Mat!
 
This is the most serious question I have ever seen on Stack Exchange. I feel slightly ashamed for initially thinking otherwise, when I had only read the title. — gerrit yesterday
^^ that
 
Yeah, I have seen that. Interesting.
 
2:25 AM
I've subscribed the OP's RSS feed.
> Comment by user11743 on How to intentionally get denied entry to the US, without getting into trouble?20:16 2014-02-28, user11743, User user11743 - Travel Stack Exchange
I can't thank you guys enough for your support. I'm so motivated and encouraged, I'm never gonna give up :) My husband booked my ticket :( I will be travelling to US this week, I don't have enough time to contact associations. So I have two options now. I'm gonna hide a spoon in my clothes and I will explain things to airport authorities and tell them to help me. And if it doesn't work I'm gonna talk to an immigration off
 
2:38 AM
I hope nobody in her family finds this post. For her own security the question might need to be deleted. @Jamal can you know if anyone from SE has contacted that user? It could be a matter of life and death.
 
Yeah, I can always ask around, but I imagine those site mods are already aware of it.
 
37K views in 2 days.
 
DAMN
 
It was tweeted yesterday at 4:37AM UTC.
I feel like creating an account there just to flag the post to raise the ...flag.
yes it brings traffic to the site, that's good.
but...
they must not find it
 
Go ahead. You may even stick around. :-) When I want to edit a post on a site where I'm not registered, I just edit as an anonymous user.
 
2:45 AM
<<<^^ hey look I'm >10K on SE!
 
0
Q: Is it advisable to integrate sql statements in the JSP pages that are not displayed to the user but handled at the back?

Saumil SoniI have a signup form in which the user has to enter the email address and after some quick asynchronous processing at the backend I have to tell the user that whether the email address is already registered or not. Below is a sample example of the JSP page that I have created, <input type="emai...

 
look who's edit I just approved:
 
Even he cannot think of a better title. :-(
 
@Jamal signed in, and flagged.
at least site mods will debate whether or not to delete this question.
I've also suggested to make a general/anonymized version of the post.
so yeah. moving on.
@jsanc623 hi!
 
3:23 AM
 
playing and looking at code review is not a good idea!
 
playing what?
I can play minesweeper and look at code review ;)
or tic-tac-toe..
 
ahahah I'm playing at wow :P
 
hmm right.
 
Is this question off-topic ... I feel like the OP is asking for code to be written but he have something working.... but it isn't really a code review I guees codereview.stackexchange.com/questions/43115/…
 
3:31 AM
I gotta keep reading that design patterns book. I've only read about Abstract Factory and Builder patterns so far - the "Creational Patterns" chapter. Might phone-stalk later, if not ..good night @all!
 
Nigth @Mat'sMug !
 
good book, @Mat'sMug ?
 
@Marc-Andre have you seen the South Park / WoW episode?
 
@Mat'sMug at least three time :P
 
haha good!
bye @monkey! :)
it's excellent!
 
3:33 AM
Aaaaaand since you mention it I might re-watch it later!
 
(read "good night, @Mat'sMug")
 
Goodnight!
 
Goodnight all!
 
Cya @Marc-Andre
 
@syb0rg: Regarding C, is my response for this comment adequate?
Why is the while loop better than the recursive strategy? Sure, you use fewer functions, but I think it's clearer code. Does the general C consensus contradict me on this? — dysruption 57 mins ago
 
3:47 AM
0
Q: finding out what the code does

Dam UnderscoreI am doing a contest on cryptic code. A code which is hard for others to understand. For that, I developed a code. I want someone to be able to hack my code. Also include suggestions for me. Thank you :) #include <iostream> #include <list> #define false true #define true !false //#define string...

 
@Jamal Yep. Nice link too.
 
I shamefully don't quite understand the recursion there. Well, I'm weak with recursion in general.
 
You were right about only needing one function. Recursion here isn't too bad, but is still usable. Depending on the situation, I think either would be acceptable.
 
I've never seen it in recursion before, until I saw that code.
 
I have seen freeing structures using recursion with linked lists, which is the circumstance here. But I don't see many gains from using it.
I would stick with iteration, as you suggested, in this circumstance.
 
4:06 AM
hello, I need help with this, if you can take a look pls stackoverflow.com/questions/22108080/…
 
Hmm, @rolfl may be able to help you with that @EmilioGort
 
thanks, if good idea ping him in a comment in the question?
 
I already pinged him with my chat message. He'll come about soon enough.
You can have my upvote on it in the meantime.
 
thanks, I cant go to bed thinking about the ssrs
 
4:27 AM
@EmilioGort rolfl may not be able to answer the questions since he isn't a PHP guru. Our current PHP guru, Corbin, isn't available right now.
 
ok..
i'm googling to see if I can find something
thanks
 
 
1 hour later…
5:35 AM
0
Q: Plotting Frequency of Vowels in a Paragraph

InquestI wanted to play around with the following idea: Give a paragraph, I wanted to find out the relative frequency of usage of each of the five vowels. I wanted to plot a pie chart depicting this. Here is my code: from sys import stdin from re import sub import pylab DataToRead = stdin.rea...

 
 
2 hours later…
7:19 AM
0
Q: PHP Pagination code is not working

MohanIn my csv file ("food.csv"), the data is stored in the order of "ITEM,DESC,QTY,RATE,TYPE" and total 30 rows and 5 columns. To get the output with matched query and pagination, I prepared one external pagination file "pagination.php" which is working fine and the main page is showing error. I have...

 
8:01 AM
0
Q: Making archives with a size limit

Leinad177This code generates images and stores them in archives of 100MBs each until it's done. Feel free to insult it, tear it to pieces and suggest ways to improve it. limit = 104857600 gen = imgen() zips = 0 total = 0 running = True while running: with ZipFile(str(zips) +'.zip', 'w') as f: ...

 
8:27 AM
Good morning.
 
Morning!
 
9:08 AM
0
Q: Model spatial representation

uros calakovicEarlier I posted a question about model simulation, now I have code for model 'spatial' representation. My model consists of moving parts that can perform actions and each part occupies space within the model. I would like to use a graph to to represent relationships between model parts. ISpace ...

 
9:49 AM
Morning
 
 
1 hour later…
10:59 AM
morning
 
11:58 AM
@EmilioGort Just woke up.... and PHP is not my thing. The SQL Server side fo things looks fine. (Otherwise it would not work at all). You need PHP assistance
 
morning @rolfl
 
Hey @skiwi
 
how are you?
I feel I'll soon become the person saying Java 8 is awesome everywhere... but really on this question:
0
Q: Selection Sort of the shoes stored in the Array based on the Shoe Id in ascending order

user1282256I am trying to use selection sort to sort shoes in the array based on the shoeId. The sort is in ascending order. I am wring selection sort recursive way. The one problem I am facing is in sortShoesRecurse method. IT looks like it doesn't like that compareTo method I am using there but I shoed us...

It can't get any simpler than shoes.sort(Comparator.comparingInt(Shoe::getShoeId));
 
No +1 for you ... ;-)
 
:p
had any interesting things last week on your Watson work?
 
12:10 PM
Yeah, actually.
Discovered an interesting bug, not fixed yet. Also discovered that Lucene (which is used by Watson)... has no real performance benefits in the more recent versions...
An optimizatin has been made (not by me), which made a huge improvement.
 
interesting bugs are always... interesting
 
I'm peeved, because I could have done that....
and I would have founf it in about 2 days.
 
aw, that stuff happens
I just realised that in my 3D game it matters if I draw transparent objects first or last
What is your opinion/experience about writing blogs about creating (closed-source, if relevant) products?
 
^^Public knowledge^^^
I am having a fair amount of fun with pre-release Power8 systems
I don't write or follow any blogs.
 
I'll read that one in a bit, title seems interesting
The thing with blogs is that I'm not an established programmer, if I ever will, so will have no audience... Only way to get audience pretty much is to link my blog on SE profile
 
12:18 PM
Just, well, I tend to get information overloa with what I do, and I am reading a lot of papers, disclosures, etc.
I tend to do targetted reading, not general reading
Google is my friend for that
The things I do know are often not the sort of things I can blog about for legal reasons...
 
yeah then it gets harder to write blogs I see
 
And, it is too complicated to filter things through Legal to make sure what I can write is sanitized
 
The JVM bug from yesterday really inspired me to write a blog about creating a 3D game and the hurdles you will meet
 
I Maintain the JDOM project. There's been some interesting things from that. But, I am happy to be the behind-the-scenes guy
 
okay
My goal is to make a real realistic 3D game, whic will be a very long challenge I bet
still student, experienced with programming, however barely any 3D experience nor work experience
I don't know what IDE you use @rolfl , but do you know of a way in Java to not allow imports from specific packages?
 
12:39 PM
Morning monkey @rolfl
 
ah appereantly it's here: blogs.oracle.com/geertjan/entry/…
finally! no more erratic accidental includes from other packages that are named similarly
 
0
Q: how to use phpfastcache?

MinAthis is my main query in index.php file and i try cache this query with phpfastcache ( http://www.phpfastcache.com/ ) $shorting = $conn->prepare("SELECT text,time FROM small WHERE active='0' ORDER BY time DESC LIMIT 10"); $shorting->execute(); while($obj = $shorting->fetch(PDO::FETCH_OBJ)){ <d...

0
Q: C++ vector implementation review

JosephI previously attempted to make a C++ vector here, yet it was not very successful. Now I have made a basic reimplementation of it, so I'm checking that it is fine, and that I will not have to re make it again. Note: I also implemented an allocator class, but it works the same as the std:: equival...

 
12:54 PM
Hey @SimonAndréForsberg
 
1:10 PM
Hi all!
 
Hey @Marc-Andre
 
I really like this site know. Since I rejoin here my time on SO have drop near to 0, and I'm feeling addicted now to answer here!
3
The site is really becoming to take it's true shape!
 
I can't get much interest in CR, in contrary to @Marc-Andre then :p
 
1:26 PM
That's the spirit, @Marc-Andre
 
1:51 PM
0
Q: Why is the performance of my mergesort poor?

EralpBDo you see any inefficient parts with the following code? On internet I see 30 ms for 100.000 integers but I can sort 100.000 integers in 300ms. The data is random. I am using late 2013 macbook pro so I don't expect a 10x slowdown from CPU, but who knows. void mergesort2(int* list, int begin, in...

 
2:44 PM
another one year old zombie down
0
A: suggestion to improve http get and post code

Vogel612I personally haven't used anything HTTP-related in Java yet, and thus can't talk about your performance. What I can see though is the following code: if(protocol.startsWith("https"){ securedConnection = true; } else { securedConnection = false; } I will assume you have securedConnectio...

 
@rolfl thanks, i post in the php chat on stackoverflow, but nobody there have worked with that sdk
 
Sure, I know SQL OK, but PHP is someone else's problem (apparently yours).
 
yes, the problem is I have no idea how to debug that.
 
3:10 PM
0
Q: Tail implementation in C

Ionut Grt. Write the program tail, which prints the last n lines of its input. By default, n is 10, let us say, but it can be changed by an optional argument, si that tail -n prints the last n lines. The program should behave rationally no matter how unresonable the input or the value n. Write th...

 
3:41 PM
0
Q: Can access to HKCU in registry be blocked in any case?

JensIn my application I use the registry to store some information. It is stored with the command Microsoft.Win32.Registry.SetValue("HKEY_CURRENT_USER\SOFTWARE\MyAppName", "My_Key", "Information") I read back the data by using value = CStr(Microsoft.Win32.Registry.GetValue("HKEY_CURRENT_USER\SOFT...

 
4:05 PM
0
Q: A* implementaion on eight puzzle (random) games in android

user3072884this for a very important project. I already have the puzzle but I can't implement the solver using A* algorithm. Please help me.

 
4:48 PM
1
Q: Workaround for have 2 column with pseudo AUTO INCREMENT

geomoThis is the situation : the table order has a column with ID AUTO INCREMENT but (there is always a but) i can't use it because i don't want the number order like 1234567 after 5 years but i want 1/2014 , 1/2015 etc etc. For doing this i write this code before the query for insert a new order: $...

0
Q: Is there any memory issue with the way I handled this?

Leslie FaulknerI am writing a wrapper to Eigen QR for my personal use and I am wondering if there is any memory leak or undocumented behavior in my implementation especially in the function void get_QR(double* A, int m, int n, double*& Q, double*& R). The answer is as expected. This is related to my previous qu...

 
What is the satisfaction with killing zombies?
Most satisfaction I personally get by upvotes of answer, but really a load more if someone accepts my answer
And how will zombies accept answers? I mean they ain't even alive.
 
It's fun
And there is no time pressure
 
5:05 PM
+1 nice.
 
@skiwi Some zombie answers have actually "awaken the dead", and the one who asked the question has come back and either accepted or at least commented on the answer
 
0
Q: ı want to java program with this decision tables without if-else or switch-case

user2999726 hi, ı want to java program with this decision tables without if-else or switch-case conditions.ı already did with conditions but it took lots of statements. could you help me ?

 
You can check their last login time on profile. It's worth to check profiles for Stack Overflow and other sites too. (Anyway, you can only get 25 rep from the OP but your answer might help others as well.)
 
More than anything, at the moment, is that revival requires just two upvotes....
and is the leader on CR in terms of bronze badges
@skiwi congratulations ... you have altered the course of history!
Blog about it, and become famous
 
5:37 PM
How has @skiwi altered the course of history?
 
Single-handedly delayed the release of Java8: bugs.openjdk.java.net/browse/JDK-8036100
2
 
hey
ah I was just about to ask why the comment
 
Well, what can I say? Well done, @skiwi
It's a dirty job but someone's got to do it.
And I hope people will thank you rather than blame you for causing the delay.
 
Well... what's so dirty about it? ;)
If anyone would've said yesterday morning that I would cause some stress in the Java 8 team, I would've called them crazy
4
 
0
Q: JQuery Plugin Efficiency

Rich PeckI have recently adapted the popular leanmodal plugin (have permission) Being "intermediate" with JS (need to learn more), I was wondering if anyone would like to review my code for efficiency? Specifics JQuery & JS - bad practice? Functions - structured correctly? Repetition - When using l...

 
5:48 PM
asked yesterday
viewed 666 times
active today
and about the CR killing zombies thing, I agree that getting the badges is actually satisfying, so would be a good reason after all
 
Please, @all, feel free to call me right or wrong here....:
the code work when the user click on submit button, not before and bring ofcourse the last ID. No way to have the same ID value. — geomo 26 mins ago
Thanks Simanta!
 
Simanta?
That's my new nickname?
 
Simon Santa
 
6:04 PM
Simanta sounds a bit like a female name. Kinda nice name though.
 
0
Q: Optimize Python script for memory which opens and reads multiple times the same files

owwoow14I have a code that works perfectly, but it uses too much memory. Essentially this code takes an input file (lets call it an index, that is 2 column tab-separated) that searches in a second input file (lets call it data, that is 4-column tab separated) for a corresponding term in the 1st column w...

 
sounds too female for a male
 
I still take it as a compliment
 
:)
hmm, there's just been 5 P1 bugs ever in JDK 8? Or am I searching wrongly, bugs.openjdk.java.net/issues/…
 
@skiwi aren't those only open bugs you're listing?
 
6:18 PM
ah
closed is not equal to resolved appereantly
 
ciao all :)
 
with closed a bunch more pop up
 
6:37 PM
hmm it's near impossible to find a tool that creates an UML diagram from java code, without using eclipse
 
@skiwi Have you tried asking on the Software Recommendations SE Beta site?
 
that's definately worth a try
and nice site, didn't know about it
forreal?!
They over there have a "gratis" tag that reads that it should be used for people looking for free software... "gratis" is dutch for "free"
and it's allowed as a tag
or am I going crazy now... because the tag is really used over there
oh what... so it is actually english
 
6:53 PM
"gratis" is Swedish also for "free"
 
I can't get my head around that we were always learned to know the english translation, without us ever telling it means the same 1:1 translated
 
That site has only been in public beta for about 24 days btw
 
Ah ok
And another hour wasted with looking on SO/CR :) When I'm supposed to do other things...
 
7:42 PM
0
Q: Simple node chat app

Jonathan ToddI used this tutorial to build a simple chat app. Everything looks good, but the console shows a prompt from socket.io: Socket.IO's 'listen()' method expects an http.Server instance as its first parameter. Are you migrating from Express 2.x to 3.x? If so, check out the Socket.IO compatibi...

 
Damn, I thought this WebSockets thingy were supposed to be easy
 
I got up at 1 PM. :-/
Oh, and hi! :-)
 
Morning!
My cousin also got up at 1 PM today, he told me.
 
lol
2
Well, it was a tiring week, although next week will be even more tiring.
 
More studies and exams and tests?
 
7:58 PM
Midterms. Three of them. :-(
 
ouch 3 mids
A week holiday here :D
with homework :(
durr
what is the best way to leave a note to moderators on SO? I accidentally flagged a post as offensive, abuse or hate speech
while it in reality is just a mildly offtopic question :(
 
8:18 PM
@skiwi flag with the "this post has invalid flags" reason, or explain your mistake as a custom flag message.
 
@skiwi I would just comment on the post saying that you accidentaly flagged it.
@amon As he doesn't have moderator privileges on SO, "this posts has invalid flags" is not possible.
 
hmm well it got declined (obviously)
I'm not sure if I can actually post any note to the moderator anymore in this case, I think commenting on a question si pretty poor like that
 
Yeah, I would guess so. I don't think there's any harm done.
 
I'v enow set a custom flag that embeds an offtopic one + my apologies
guess it is fine now :p
that was an awesome fail though -.-
 
8:37 PM
0
Q: Implementation of HeapSort

user37872The following code is my implementation of heapsort on an array. It works correctly in O(nlogn) time for inputs up to size 1,000 but anything above that, and I get an error in my removeMax method. I'm having a hard time figuring out what the issue is. public static void heapSort(int[] inputArray...

 
Hey @Jamal .... looking for a study break?
21
A: Reverse a String in Java

rolflReversing a string, accurately and efficiently. You are doing it accurately, yes. But, not very efficiently (although there are worse ways to do things). NOTE:: Palacsint is right that you are not handling null input and surrogate-pairs in the input data. Your solution is not completely accura...

an you explain to me why the above answer did not score a [badge:enlightened] for me?
 
Yes I can. Although the "yesterday" timestamps are inaccurate, you should also compare the answer URLs for each answer. The corresponding numbers are in order of when they were posted. So, if you do this, you'll notice that this answer was posted first:
8
A: Reverse a String in Java

Richard MiskinThe code appears to be functionally correct, although you could simply choose to use a StringBuffer.reverse(). There is some discussion of this here. If you do need to roll your own reversing method, you can avoid using StringBuffer/StringBuilder at all and simply do new String(array) instead. ...

And then yours and palacsint's.
 
Ahh, but then why does it not sort 'in order' when I sort oldest?
Because accept comes before oldest always?
 
If you mean on the question page, then yes. Accepted answers are always at the top, then the following are based on score.
Well, if you sort it by score, I mean.
 
right.
OK, thanks
 
8:44 PM
And I've just noticed that you can sort answers differently on questions. I thought this was only possible on profile pages. Derp. :-P
 
@rolfl Hover on the "yesterday" text to see the exact time stamp
 
I know that ;-)
 
Then you should also know why you didn't get Enlightened
 
I just 'assumed' that when you sort the answers 'oldest first', that it would sorth them 'oldest first'
 
That's a good point :)
I think I've seen a couple of cases though where the accepted answer was not at the top
 
8:48 PM
I also didn't know that. But eh, the answer URLs are easier for me. The timestamps have a little too many numbers for me.
 
The more numbers the merrier :)
 
I'm taking two math classes this semester. I'd prefer to not see as many numbers here. ;-)
 
Numbers ain't bad at all in math... It's the letters man, the letters.
2
 
Meh, the letters are OK, it's the symbols, sigmas, integrals, etc....
2
 
To be fair, there are a lot more letters in these class, especially in calc III...
 
8:50 PM
And then all kind of weird symbols... And you end up being in a mental hospital...
 
@rolfl I'm working on integrating both regular sockets and websockets into the same Java application. I just managed to setup a proper connection with websockets. Damn that was a pain. I'm hoping to add some multiplayer support to my UTTT implementation - and also provide a server for others to connect to.
 
T, B, N, tau... so confusing.
 
@SimonAndréForsberg I need to learn what web-sockets are...
 
@rolfl Short description: A HTTP request by a client that gets a HTTP response from a server that ends up becoming a full-duplex connection using only one socket.
 
That's what wiki is telling me ;-)
 
8:54 PM
That's all there is to it actually :)
JavaScript doesn't provide any regular sockets, it's just WebSockets there. And since I've only used regular sockets before, I needed to learn a bit...
In a way I would like to combine WebSockets, Sockets, and Servlets into the same Java Application. But that might be a bit too much for now :) Although I'm starting to realize how that could potentially be done. I doubt it would work with only one port though, it probably needs at least two different ports :)
 
You should be able to set up different handlers for each protocol
Identify what the request is, and go from there....
 
Sounds like that should be possible, but I'm not sure how to integrate it into Spring-MVC and stuff...
But that's a problem for later.
For today, I'm just glad I managed to get a websocket connection working at all.
 
9:24 PM
And early tomorrow morning I'll drive my mother to the airport. So goodnight with y'all
 
Anonymous
 
:o
 
LOL
 
Anonymous
9:42 PM
 
0
Q: display account disabled message only when using correct credentials

Jrags87I'm using the code below to prompt the user when their account is disabled, but it is not working correctly. How can this be changed so that it will only display the account disabled message if the correct password is entered? Protected Sub LoginUser_LoginError(ByVal sender As Object, ByVal e A...

 
Only about 150 rep away from becoming our first 20K user!
2
 
:o
that is quite a whole load
btw how come that some starred questions are like always ther eon the right bar
 
I'm not sure. I guess part of it has to do when the messages were posted.
 
Those are 'pinned' messages....
 
9:54 PM
Oh, the pinned ones you mean.
 
@skiwi you are talking about ones like the chat message I just pinned?
 
0
Q: How can I SIMPLIFY this?

user3298793Hello people simple questio can this be made any shorter? if a < 1: print "you are cool" if b < 0: print "you are not cool"

 
yeah
I am @rolfl Appereantly
I was wondering that as I saw 2 4-stars (pinned and mine) ;)
 
A bunch of us are room 'owners'... you can see them all here: chat.stackexchange.com/rooms/info/8595/the-2nd-monitor <-- bottom left
We have the privilige of pinning messages we think should stick around
 
who's Quentin? I've seen the others all recently
 
9:58 PM
That above question was just deleted. Looked like some kind of garbage question.
 
That's a quick delete... Maybe by the author?
 
@rolfl Found you again...
user image
7
 
00:00 - 22:0022:00 - 00:00

« first day (301 days earlier)      last day (3710 days later) »