« first day (528 days earlier)      last day (3488 days later) » 

12:13 AM
0
Q: new to html, how would you refactor this to be better and why?

CmderI'm really new to HTML, I'm making a portfolio website right now with visual studio 2013 and asp.net 3.5 because my free hosting only supports 3.5. Are there any bad practices in my code at the moment, What would you change and why? Thanks in advance! $TextColor: #d9d3d2; $LandingColor: #3...

0
Q: How to make this solution for mapping/parsing database table data to output data better using more structured way of presenting the data

ziGiCurrently I have implemented this simple example of a database to output for a REST API to show the way information is being parsed, mapped and serialized starting from database data converting it to JSON. This solution currently works fine, but the problem comes from the fact that it makes use o...

 
Evening, all!
 
Morning!
 
How time flies when you're having fun. :)
 
Fun?
 
I was just working on some code to try to better understand C++ std::locale -- what could be more fun than that?
 
12:25 AM
Food?
 
0
Q: Close reasons and migrations (and stats?)

MichaelTOne of the close reasons that exists is: Questions containing broken code or asking for advice about code not yet written are off-topic, as the code is not ready for review. Such questions may be suitable for Stack Overflow or Programmers. After the question has been edited to contain working...

 
Just ate a lovely dinner.
So working my way on down Maslow's hierarchy of needs, next stop is "working code."
2
 
Hey, Edward. You're good with pthreads, right?
 
Some of my finest suits are made of them.
Whatcha need?
 
I have a project in which I'm computing local arrays and have to have the master thread reduce them (sum operations) into a global array. It does utilize global variables.
 
12:34 AM
... global v'bles all with mutexes I trust.
 
I have already gotten the worker threads to accumulate their local arrays into the global one, but that's not what the assignment asks for.
No, we're not using locks with this one.
 
So if i understand, you have the worker threads doing the accumulation but it's supposed to be done by the master thread. Is that right?
 
Yes, I've just done that in case I don't figure out the intended solution. It still works output-wise, though, but I need to try to change it.
 
Got it. Have you got a general strategy in mind?
 
I came up with two possibilities, which seem nasty: 1.) store all the arrays into a global 2D array and reduce it, which would require more memory allocation, or 2.) try to reduce one local array at a time (but this may not be the objective of reduction).
 
12:44 AM
Or the main thread could spawn each thread and pass each its own array pointer. Once each thread completes, the data can be accumulated and the allocated thread-specific memory freed
 
We're only passing one value to the computing function, which is the rank. All other accesses have to be from global.
 
Ick.
So are the local arrays actually local? Or are they in the global address space?
 
I'm not sure why I'm having so much trouble with this. I always seem to miss the obvious with these projects, so it's probably the same case here.
That part wasn't entirely specific, but I just know that each thread will be modifying global data.
 
You're probably overthinking it.
Sounds like if each thread is modifying it's "own" portion of some large set of global arrays, you can just wait until all threads are joined and then use the spawning thread to accumulate.
Unless I'm missing some vital factor in your assignment.
I'm spoiled now that I use the C++11 std::thread mechanisms mostly. Much easier and more portable.
 
May I suggest a chat in The 2nd Monitor? — rolfl ♦ 34 secs ago
 
user55340
12:52 AM
-4
Q: Rebuilding old website

SkoksI have a very old (1995) and content rich website with a huge amount of various and inconsistent templates that I need to rebuild. What are the tips and tricks for doing that, considering that I don't have any access the backend. Thanks!

 
user55340
-4
Q: Tips for rebuilding old & large websites

SkoksI have a very old (1995) and content rich website with a huge amount of various and inconsistent templates that I need to rebuild. What are the tips and tricks for doing that, considering that I don't have any access the backend. Thanks!

 
-1
Q: With JavaScript is it more efficient to set a variable to true repetitively or check that it's false before setting?

jt0ddI'm writing a CPU intensive JS script and will need to set a variable active to true for each item in a list (hundreds of thousands of times) if it is acted upon to check how many variables had been affected during the course of the script's execution. In order to set each item's status, I'm wo...

 
@MichaelT That's just a daft user who had no recommendation from here to go to SO.
Not in the close reason, nor the comments.
 
@Edward This is coded in C, so badness can happen. :-P Anyway, yes, there is a global input array that the master thread prepares, while each thread (including the master thread) works on a chunk of the array and computes something into their own array.
 
user55340
(trying to find one that I was invoked with on P.SE... not easy... so many close votes...)
 
12:59 AM
@MichaelT - just putting together an SEDE query 'quickly'..... which may help with this.
 
user55340
And I've now gone older than Oct 4th in my searches... which means that if it was here, it was likely deleted.
 
@Jamal In that case you're definitely overthinking. :) Just have each thread compute its chunk and end. And then do the post-processing summation in the master thread when all the worker threads are done.
 
user55340
So... the challenge of going through my P.SE close vote interface: 11,952 Votes Cast
 
user55340
Though there, at least I can find deleted questions.
 
1:05 AM
@Edward I guess what I'm confused about is how the worker threads should store their global data.
 
Only one question in SEDE that is closed in CR, has the same user ask another question after that (within 5 days), that was also closed on Programmers.
 
user55340
When we get a code question on P.SE, we tend to close / down vote (and if bad, delete it quickly too) which doesn't leave too many traces in Data.SE.
 
user55340
Which is why I'm going through my last 2 weeks of close votes to see if I can spot that question again... though, if it was deleted on CodeReview, I wouldn't know.
 
Yeah, I know that, but I thought there would be something.
(something with an answer, or an upvote, anything).
 
user55340
Thats why there's that last bit asking if a SE dev can poke at the query.
 
user55340
1:08 AM
They've done similar things before like finding reposted questions on SO / P.SE.
 
@Jamal Is it required that the threads are only passed one specific value? Or is it the more usual restriction that they can only be passed a value but that value might be a pointer to a struct?
The former is an artificial restriction; the latter is how pthreads are generally defined and used.
 
Yes, they must only be passed the rank (cast to a void* then cast back into a long).
 
@Jamal Can you calculate an address (thread-unique pointer to global structure) from within each thread?
 
@MichaelT OK, so, by my accounting, based on the evidence I can see, there's no posts in the week that ended on Saturday, that caused a problem with the asker cross-posting to programmers. Either thy cross-posted successfully, were migrated, did not cross post at all, or the question was deleted outright (before the 6-day grace window), on either site.
 
1
Q: Generating and calling code on the fly

Mat's MugDelegate This class module defines what I'm calling, in this context, a Delegate - here a function that can take a number of parameters, evaluate a result, and return a value. Close enough to the actual "delegate" thing I find. Example usage Set x = Delegate.Create("(x) => MsgBox(""Hello, "" & x

 
1:14 AM
 
user55340
@rolfl The one that I seem to recall was one where it was a poorly written code that was reposted on P.SE... and the OP was question banned on SO (and those tend to get deleted rather quickly).
 
@rolfl VBA with lambdas now :)
 
@Mat'sMug Clearly that mug is full of foxglove and wolfsbane.
 
@MichaelT We have a resource problem here on CR, we can have only 3 site-specific close reasons. We regularly (like very often) close questions with that reason. Similarly, we use the other two a lot as well.
 
1:15 AM
I'm not sure about that.
Shall we take this to a separate room?
 
user55340
On P.SE, we tend to be quite active in speedy deletes... especially things where there is no way it can be made on topic ('fix this code') because otherwise the OP will continue to edit it again and again trying to get an answer.
 
@Jamal Sure, I'll join you.
 
user55340
Consider putting an abbreviated version of the on topic in the close reason?
 
user55340
> Questions containing broken code or asking for advice about code not yet written are off-topic, as the code is not ready for review. Such questions may be suitable for Stack Overflow (implementation and debugging) or Programmers (design issues). After the question has been edited to contain working code, we will consider reopening it.
 
@MichaelT Limited space (same length as a comment).
That should work, though.
that's very 'abbreviated'.
 
user55340
It will reinforce the close reason we have if we close it again after being reposted...
 
user55340
though again, consider that if the question is one you know is a good design question, migrate it.
 
@rolfl we'll be getting additional close reason spots after the graduation party no?
 
user55340
@Mat'sMug At P.SE, we only have 3.
 
hmm
 
user55340
1:19 AM
Though, realize that you likely won't need the "repost it on P.SE or SO" reason.
 
user55340
15
Q: close reason (and associated expand the close reason count) request

MichaelTI really don't like migrating crappy questions to SO. This is really the only place where its an issue because of the migration path (no, taking away the migration path would mean more suggestions to repost - there are enough of those for the workplace). The past 90 days, we did 206 migrations ...

 
user55340
My request for more close reasons (so we have a "its off topic and crap") has been sitting for over a year.
 
user55340
13
Q: Can the number of custom close reasons on Programmers be expanded?

Thomas OwensRight now, we are limited to three custom "off-topic" close reasons. I wrote a fourth this morning to address a number of recent closures, but it's not possible to even turn it on without turning off one of the other three. This new reason reads: Questions must demonstrate a minimal understa...

 
user55340
And then there's that one from... also over a year.
 
C++ is annoying me
2
 
1:21 AM
@MichaelT Migrations are a different story, and they are just making this discussion more problematic
 
user55340
@rolfl They're my pet meta issue.
 
user55340
76
Q: Add a "don't migrate crap" migration 'path' to all sites

MichaelTDon't Migrate Crap This is the golden rule of migrations. And we do it far too often. I'll even admit to it. Its sometimes difficult to justify to one's self to spend more time drafting a custom off topic reason to say it when it is more work than the OP has spent putting into writing the que...

 
That may be the case, but we rarely migrate to programmers, and, when we do, we coordinate quite carefully with your mods.
 
user55340
@rolfl I'd rather get a migration that gets rejected than a repost that gets closed again.
 
if you want to mix migration in with the same conversation as this close reason, it will be doomed to confusion.
The two discussions are orthogonal.
 
user55340
1:24 AM
If you know a question will get closed on another site as too broad, primarily opinion, or unclear - then close it with that reason rather than an off topic reason.
 
user55340
If its one of those three, it should trump off topic reasons.
 
@MichaelT I don't follow. Why would we close with specific reasons on our site if they are off-topic on another site too?
 
hello
 
user55340
@rolfl If the question is too broad, its too broad everywhere. Using an off topic reason that suggests it might be ok on P.SE or SO means that it will get closed again on another site.
 
No, that's just not true.
Where are we talking about 'too broad' for a start?
 
user55340
1:28 AM
I'm suggesting that if the question is off topic and too broad, or unclear, or primarily opinion - use those other reasons rather than off topic.
 
Secondly, questions posted with broken code here on CR are regularly on-topic on SO, for example.
 
user55340
-3
Q: C++: What would be the preferred naming convention for open source lib

GabiMeI am going to release an open source C++ lib. I use snake_case for all classes and functions but seems CamelCase is more popular amongst open source projects. What notation would be preferred ? Edit: Example of my snake_case code notation: namespace some_ns { class some_class { public: som...

 
user55340
> What notation would be preferred ?
 
user55340
That is primarily opinion.
 
1
Q: Squaring numbers in an array

BighecksI want to know if there is a better way to square numbers in an array. This is what I wrote: #include <iostream> using std::cout; using std::endl; void square(int []); int main() { int array[] = {2,4,6,8,10}; square(array); for(auto i : array) cout << i << " "; } voi...

0
Q: My Python and HTML not working correctly

Johnathan KennedyI am learning how to use HTML in Python. When I open the HTML I get the Ferrari Fiat Ford, which is what I am expecting but then I click on Ferrari and it opens up the new page as , make,model, which is not what I am wanting. I am wanting Ferrari Dino. Could you help me understand what my code i...

 
1:29 AM
@MichaelT SO, it's closed as primaryt opinion... what's the problem?
 
I vtc'd that because it was asking for advice on code not written.
The preferred naming.
 
user55340
@rolfl That one's good... (sorry... getting tired and not reading close reasons fully).
 
Must admit, I am somewhat tired as well.... but, you're really muddying things up here, and have gone from one specific off-topic close reason to including migrations, and then to including too-broad/opinionated/unclear
 
1:42 AM
0
Q: Max path sum algorithm correctness

LemonPiThis is for Project Euler question 18 and I'm looking for feedback on whether my algorithm is incorrect or whether I've just implemented it wrong (which I don't think is the case after some testing). The question is to traverse the maximum path in a triangle 75 95 64 17 47 82 18 35 87 10 20 04 ...

 
1:56 AM
Argh, Should just go to Java....
 
@TheFailure java is pretty easy to deal with
 
^^^ that, and I should just go to bed.
 
Isn't Java for people who are afraid of solder?
 
......
 
:)
 
1:58 AM
i think all programming is for people who are afraid of solder.. otherwise, just learn to fix toilets and electrical circuits and install drywall
 
No, assembly language and C are for people who are too impatient for solder. :)
 
nice :)
 
Why so sad, @TheFailure?
 
Is it ok to #include in a header....?
 
2:15 AM
@TheFailure Sure! Just make sure that it's the minimum necessary.
 
@TheFailure my advice is that if you want to make games, don't start with C++. there is far too much to keep track of to make something that works. there are other programming languages that make it much easier to create something that Just Works, so you can focus on good and interesting gameplay
 
Agreed. C++ is an expert's language and not a very beginner-friendly one.
 
Well, I wanted to try something new.
 
you posted a good question with some pretty clean code, so you should be proud about that
 
2:19 AM
Something new is good. I was teaching myself Scala just the other day...
 
Want to become better however it is hard to work alone :(
 
Yes, but you're not really alone. The C++ snake game you posted had some pretty good review answers that can help you improve.
 
I know, that is what I am doing now.
 
I've been doing this programming thing for many decades and I'm still improving.
4
There's a lot to learn and it changes from month to month!
 
0
Q: Normalized Database Diagram

ChrisSo I am working on my DB design skills, and have tried to create a normalized MySQL database. Here is the diagram: The reason I added the Address table is to break the address fields into separate columns, making the geography more searchable (i.e. search for zipcode). Employer to Post will b...

 
2:26 AM
So as a percentage of all programming knowledge, I probably know less now than I did 30 years ago... :)
@EngieOP: do you happen to know about C++ locales?
I'm trying to write a program to read in Russian text and count word frequencies.
 
sounds pretty challenging @Edward
 
portable version of System("cls")??????? Heaps of \n?????
 
@TheFailure Oh, don't make me slap you!
 
Ummm
 
@bazola Not too tough, except I'm trying to use C++ facets to have the code understand which characters make up a word and which are punctuation or numbers.
 
2:31 AM
Check what system is running it and do a command to suit?
 
@TheFailure Oh, you're serious. Sorry.
One way to do that would be to use a formfeed char.
Which is the equivalent of many \n characters.
 
Okay!
 
Don't use system("cls") however, for many reasons.
It's not portable and not secure!
 
@Edward Nope, sorry. :(
 
@Edward pretty much sounds like the definition of challenging :)
 
2:34 AM
@EngieOP OK, I thought I'd ask.
@bazola If I get something working soon, I'll post it here for others to review. At the moment it's not quite right.
 
googling intensifies
 
i look forward to seeing it @Edward
 
@bazola Me too! :)
 
googles c++ facets "Facets are one of the least understood and most esoteric parts of the C++ standard library" oh good
 
LokiAstari has posted a few good answers here using them. For example, codereview.stackexchange.com/questions/30547/…
 
2:39 AM
loki's such a pro
 
However, what I want to do is to count word frequencies in other languages according to the rules of that language.
@mjolka Aye, that he is. I've learned stuff from his posts.
 
-1
Q: using calculated repeated calling properties dependent properties c#

user3855208I have class which have too many related calculated properties. I have currently kept all properties are read only. some properties need long calculation and it is called again when its related properties are needed. How can create this complex object .Also i want these properties should not ...

 
if i ever get around to learning c++, i might start by reading through some of loki's answers
 
@mjolka I think that LokiAstari and Morwenn are among the most skilled C++ folks here.
Those are the guys I whine to when I need help. :)
 
I'm just glad no one has confused me as a real expert, given my possession of the gold tag badge.
 
2:48 AM
Example?

Something like this?

A text file containing:
атл’ас
б’архат
бл’узка
воротн’ик воротн’ик
etc
 
@EngieOP Yes, but actually I was planning to use the works of Dostoevsky rather than just a word list.
 
I don't have any problems reading in russian words? Am I missing something? I feel stupid... .-.
@Edward
 
3:25 AM
@Эдуард
 
 
1 hour later…
4:36 AM
monking @all
 
monking @chillworld
 
Morning
 
4:54 AM
Monking @all
 
sup @Heslacher
hey @TheFailure just saw on your profile that you're a fellow aussie
 
monking @mjolka @TheFailure and @Heslacher
 
5:09 AM
Cairns
 
well, I didn't welcome you yet, welcome @TheFailure
 
Thanks :)
Wonder what to do with my life.
 
0
Q: Hash function implementation

user2713971I need help implementing a hash function using the multiplication method for an assignment. I know that to implement this function using the multiplication method, I need to multiply the index by the Integer variable s that I've created, then extract the extract the leftmost "p" bits on the righ...

 
5:27 AM
can't figure out the right close reason codereview.stackexchange.com/questions/66602/…
 
I am new so no idea, sorry.
 
np :)
 
> I would like some critique as to whether this function would work before I go any further.
 
Should test it before posting and show you have researched/ tried it.
 
oh how i wish
 
5:32 AM
And it's a homework questions so all the material should be within the course or easily accessible
 
^^
 
Is there a list of close reasons?
 
yeah, try clicking "close" to see the default reasons (it won't submit a close vote until you confirm)
 
I can't do that ;)
 
5:35 AM
0
Q: Enhance a program that finds the nth prime number 1-1,000,000 and must calculate the 1 millionth prime in under 3 minutes

DrakkorNoirMy code is below, and is relatively fast, however I need to make it calculate the 1,000,000 prime in 180 seconds or less. As of now it is taking 430 seconds, although before heavy updating last night it was taking about 20 minutes. I am trying to accomplish this without importing any libraries (...

 
Off topic, not asking for a code review but rather someone to test the code itself?
I don't know, I'll be quiet now
 
I think it's unclear what he's asking.
 
^I can see that :)
Well, he is asking if the code would work. Technically it would run. ;)
I want to try answer this one
If the answer is not good can you delete it?
 
You can delete it yourself
 
Really?
News to me
 
5:45 AM
Yes
 
I must look so stupid ;)
 
@Heslacher HAI
 
Hi @EngieOP
 
OK I am confuzzled
 
@EngieOP: It looks like that user from CO's latest question doesn't like your title. He should be encouraged to write shorter titles.
 
5:51 AM
@Jamal :L
What does CO mean? Correction?
 
@mjolka I just looked at the question again and I have no clue what he is asking as he has given no context to his question nor could I follow the variables in his code to in his question.
 
@EngieOP Captain Obvious
 
Easily
 
@Jamal lol .-.
 
@TheFailure haha yeah. get a random number, multiply the input by that, shift by the random number, add to a list. wat
 
5:55 AM
@TheFailure That is the reason why I have VTC for "Unclear what you are asking"
 
You are not even seeding the random generator so what would be the use of it?
 
i think it's supposed to be more like this homepages.ius.edu/rwisman/C455/html/notes/Chapter11/…
 
You cant hash to the same value again
 
@Heslacher :p
 
5:58 AM
Using phyton, what does j = chk**.5 mean ?
 
square root?
 
@mjolka ? or !
 
! (i just tested it)
(i don't really know python)
 
I don't either (obvious isn't it)
 
>>> 4**.5
2.0
>>> 16**.5
4.0
 
6:00 AM
4.0
 
haha yeah that one
 
@mjolka I know that...
 
@TheFailure i just meant the constructor sets the seed
 
@mjolka I know however the question does not show any seed being passed in
@mjolka I was wondering what a random seed each time a hash function is called would be used for.
 
@TheFailure ah i think i get you now. sorry, crossed wires
 
6:07 AM
@mjolka Yep, was still on that link: codereview.stackexchange.com/questions/66602/…
@mjolka Most creative idea for doing this? GO!
 
@TheFailure for doing what?
i think my reading comprehension skills have died
 
Whys that?
 
cause i have no idea what's going on :) any way, work's over and it's home time, night all!
 
Night!
 
good night
 
6:14 AM
night @mjolka
 
6:39 AM
Monking
 
Monking @skiwi
 
Morning
 
7:03 AM
Monking
Hashing shouldn't be done with random numbers....
because the result should be the same for two runs with the same thing...
 
I know
 
7:28 AM
Monking @Vogel612
 
Monking @Heslacher
 
woop my Super user question went hot
 
dat last answer though...
 
Yeah... it misinterprets my question as a cap on clients.
 
"i don't worry about indenting in here", but you should as we, who review your code, should be able to do this as best as possible. — Heslacher 17 secs ago
 
7:44 AM
@Heslacher Interpretation #1: It looks fine in my IDE, it only looks ugly here.
@Heslacher Interpretation #2: I don't care about indentation, I can fix it later when I'm done and the code works.
 
@Pimgd no... it's definitely #2
 
"in here" leads me to add the possibility of #1
 
Yeah, the next question of this op will receive a refactoring he never forget. All in one line ;-)
4
 
@Heslacher not that you'd get any upvotes here...
 
I don't care about points. I have my share of points to review close votes after graduation ;-)
 
8:30 AM
Of course my server program (chatbot here) breaks when there's no one to monitor the server
And before that it works :)
Heisenservers
 
@Heslacher agreed — Vignesh Paramasivam 1 min ago
No he understands.
 
8:46 AM
Screw logic, I clicked twice on my Windows Start button and it disappeared.
 
9:09 AM
bool supportsWifiProtectedSetupViaPushButtonConfiguration();
Is that too long a function name (for use in a C API)
 
0
Q: Code optimization sugestions required

NeelI have following code snippet which i am thinking of optimization little more. Do you guys have any suggestions? There are 6-7 conditions of the same type, I have just written example for 3 conditions. INT32S min = 1000; INT32S time_left; if(x_interval > 0) { time_left = x_interval - (ref_h...

0
Q: How to write better code when using Array.prototype.filter() and Array.prototype.map()?

GibboKI have the following method, as you seen I need to first filter items for an array of objects {type: 'genre', value: '123'} and after combine in a string content for property value only. Any suggestions how to improve the following code? this.flattenCategories = function () { // flatten in ...

 
I could make it bool supportsWPSViaPBC(); but that assumes some acronyms.
 
@Pimgd I like it, but I'm not a C guy but a Java guy
Unless WPS is the acronym for Wifi protected Setup?
 
Wi-Fi Protected Setup (WPS; originally Wi-Fi Simple Config) is a network security standard that attempts to allow users to easily secure a wireless home network but could fall to brute-force attacks if one or more of the network's access points do not guard against the attack. Created by the Wi-Fi Alliance and introduced in 2006, the goal of the protocol is to allow home users who know little of wireless security and may be intimidated by the available security options to set up Wi-Fi Protected Access, as well as making it easy to add new devices to an existing network without entering long...
 
Ah so it is the actual technical term, then I'd use WPS for sure
 
9:12 AM
... so it's bool supportsWPSViaPushButtonConfiguration();?
 
Unless PBC is a real acronym?
But I doubt that
 
It is not
 
Are there elements that we may not care about in the name?
 
*cough* Push *cough*
 
Well if you can represent the whole concept "Wifi protected setup, button method" in a smaller word...
The pin method is unsafe
and the others are optional to support
maybe the "configuration" can be dropped
 
9:22 AM
I don't think the ...Configuration makes much sense if it returns a bool?
 
@skiwi supports.... is the magic word..
 
enum for requests coming in has these:
 
Yeah supportsWPSViaPushButton() seems to do imo
 
WIFI_SUPPORTS_WPS_PBC, WIFI_SCAN_WPS_PBC, WIFI_CONNECT_WPS_PBC
if you support it then we make a button in applications visible that allows setting it up via pushbutton
which triggers a scan, results are returned, usually one, but in the case there's more than one, user gets to pick
and then it connects
 
How much does the name ultimately matter?
 
9:28 AM
How much does the application ultimately matter?
 
expected users would be < 50, expected consumers 100k+
it's code for developers
aaand most of the time, they're not gonna be the one calling that method
however I'd like my interface to be clear and without namespace conflicts (It's C...)
the easier it is to implement the less hassle it will be to convince manufacturers
and thus more market share, etc.
 
The only way to avoid namespace conflicts in C is to prefix every single function by the name of the application/library.
 
I'd rather suffix them
more friendly for code completion
If you add smurf in front of everything and start typing smurf, then it will show you ALL the functions... alphabetically.
Major pain.
 
That's why many projects try to find small names.
OpenGL went with gl_, wxWidgets uses wx and Qt add Q to the names of their objects.
 
"Practical answer?

I would say, just out of the blue like I'm God's gift to women or whatever (which in fact I am)"
... this answer is silly.
Anyway, disregard my point about namespace collisions, we can prefix suffix the lot of them afterwards pretty easily.
 
10:25 AM
0
Q: Which of these two variants of very simple method are better?

Leonid SemyonovI have to generate random number which differs from the number generated last time. Which of these two variants are better? Or may be you can suggest better implementation. int generateRandom() { int randomNumber; do { randomNumber = random.nextInt(UPPER_BOUND); } while (ran...

 
10:48 AM
guten tag
 
wie geht's, @JeroenVonnevel?
 
gehtst gut!
not really, but it's about all the German I know
 
nein nein nein
I know quite some german actually
 
Had to wake up at 9am to go to a meeting with my groupmembers and the tutors
 
And time to go home
and, was anyone present?
 
10:50 AM
I arrive at school at 11am, turns out we don't have to go today
obviously too late to catch the next bus home, so I just got back at 13:00
 
Excellent start of the day :|
 
4 hours out of my day gone for no reason
 
Pretty much my day, except I had 2 hours of lecture
But hard to pay attention for whatever reason, ended up doing some of my own stuff meanwhile
And now I need to catch my bus!
 
good luck
 

« first day (528 days earlier)      last day (3488 days later) »