« first day (705 days earlier)      last day (3319 days later) » 

12:00 AM
There are 1303 unanswered questions
 
@Duga Even higher...
 
I tried hard today.... (yesterday).
 
Down 2.
yesterday, by Duga
There are 1305 unanswered questions
 
I was really hoping that "Tom Smith" question would not get over here after all; I admit I feel a bit guilty that I thought that may be OK here, originally. I had not taken the "example code" that much into consideration. Lesson learned, for sure.
 
0
Q: Python Flask Peewee Website

Charlie ThomasI have been learning Flask and Peewee and I have built my own website. It features user authentication from Flask-Login as well as a blog and portfolio. I would appreciate if any would take the time to review and give me any feedback. The github repo is: https://github.com/Ottermad/my_website and...

 
12:09 AM
@CaptainObvious That title would read really weird to a non-coder...
3
 
@sᴉɔuɐɹɥԀ lol
 
0
Q: Why can't I set my JLabel's text to a String?

user3117051I am trying to build a custom clock in java but when i try to set my JLabel's text to the variable "time" of type String, which i have created in a thread, Java can't recognize it. The methods in my JLabel can't seem to access the variable. Any ideas? "time" is on line 44 on my IDE. Apologies if ...

 
12:26 AM
@CaptainObvious Broken
 
12:38 AM
0
Q: A thread-safe stop watch utility class

Martin TuskeviciusI am writing a stop watch utility class in Java that I want to be thread-safe (concurrent). Here is what I have right now: public class Stopwatch { private volatile long beginTime; private final AtomicLong lastLap = new AtomicLong(); private final AtomicReference<List<Long>> laps =...

 
Very well organized (and interesting) question.
5
Q: Torus Maze Generator

Evan BechtolHi Code Review Community! I have been working on a project to randomly generate a torus made through the use of an adjacency list and disjoint set structure (to be extended to solve the maze later), made from scratch. I think that I have optimized my code pretty well, but may have over-looked so...

 
@CaptainObvious More random capitalizations. I guess we're gonna need to replace another keyboard. ;-)
 
@Jamal How's school going?
 
@Hosch250 It's going okay. Operating systems is still making me nervous, though. That might just be irrational fear at this point, though.
 
Interested in writing a JS program with me and another person?
What kind of operating systems? What are you doing?
 
12:49 AM
I'm not too familiar with JS. I have three simultaneous programming projects going on anyway.
 
I had a class on Operating System Internals/OS design systems.
@Jamal Oh, but you wouldn't have to do anything but post it. It is for a PPCG challenge.
 
It's about OSs in general, not a specific one. Though, another class (an easier one) targets Unix.
 
Hmm, so was mine.
Hope you do good.
 
My web server project is actually not too bad so far. Just two more assignments scheduled.
Thanks
I'd like to post some of my Unix class code, but I have to first make sure that that instructor won't be assigning them in future semesters.
 
Posting your code (and the requirements) might be a good fit for the Code Review site: codereview.stackexchange.comBlob 12 secs ago
 
12:54 AM
Yeah.
Well, I posted some of my Java code here.
 
He's on SE, actually. But I'm sure he's too busy to spend even a little time here, even if he was interested.
 
The one you found on SO a while ago?
 
Ever heard of process cost accounting?
It is kind of interesting.
 
I haven't
 
12:56 AM
If I could ever conjure the time up, I think I'd write a fully computerized accounting system.
 
@Jamal seems to be a typo in his profile "Spend much time of the JVM"
 
I still need to finish my Bejeweled game sometime. Last time I was working on it, I was still using raw pointers.
 
1:07 AM
@DanPantry: registering/logging in totally works though registering through facebook will be done manually from the UI. I haven't tested that yet
 
@JeroenVannevel Are you writing/have you written a log in for your app?
 
login should be finished now, yes
 
Cool.
 
the above call is the login call
 
I need to do a log in for my app soon too.
 
I'm going to rent some server space and let my users take quizzes.
 
I fell in love with ASP.NET Identity because of it
 
It works with Windows Store apps?
 
Very likely, yes
 
OK.
 
1:10 AM
You just add it as a reference, change two lines of code in your DbContext and you have an entire user system
 
What about security?
Wow, great.
 
passwords are hashed and all that
 
Better than redeveloping the wheel
I bookmarked them.
Will definitely do this.
 
I'm going to pass out in bed
Later
 
See you.
 
1:19 AM
Good night Jeroen!
I've contacted a podcaster who is looking to re-do their website, to trade web re-design for advertising for my media company. Hope I have not made a mistake.
Just inquiring now though, asking for a Skype/phone call to discuss details.
 
Why don't they just pay you?
 
Pretty outdated stuff I see
 
Paying is outdated?
 
  <center>
  <table width=75%>
  <tr>
  <td colspan="3">
  <center>
  <p>
  Welcome to *****.net, an unofficial ***** site. Click on a menu item above.
  </p>
  </td>
  </tr>
 
Oh.
That.
Bah, I could probably do better.
 
1:26 AM
Well, I'm trying to get our media company off the ground, and offered a possible redesign in exchange for free advertising for a certain amount of time
 
What if they don't advertise you?
 
@Hosch250 Well, anybody could do better than that, it was designed like 10 years ago
@Hosch250 Then I don't deliver. But realistically, the podcaster already emailed me back showing interest
 
So, you redesign it and show it to them.
They advertise you.
 
When they are done advertising, then you give it to them.
OK.
 
1:30 AM
Depending on what he wants I will gauge how long the free advertising would be to be fair
Could just upgrade his design, or start from scratch, or even remake it with Wordpress...
 
1:50 AM
@RubberDuck i've created a monster ideone.com/q2Avyl
 
This is better asked at codereview.stackexchange.comCindyH 1 min ago
@JK - Slowly. Honestly I'm not too sure which SE this would be better off on - Here, (Obviously not, given the feedback), Programmers or Code Review - and even then I'm not too sure of the reception it will receive on any of the other pages either. — Ben 24 secs ago
The best practice in this case would be to begin building it, ask questions here if you run into any specific problems along the way, and then submit it to Code Review after you've finished up. — Elliot Bonneville 1 min ago
 
2:08 AM
0
Q: TPL inside Windows Service C#

WRACKI need to perform few tasks inside a Windows Service I am writing in parallel. I am using VS2013, .NET 4.5 and this thread http://stackoverflow.com/questions/27383996/basic-design-pattern-for-using-tpl-inside-windows-service-for-c-sharp shows that TPL is the way to go. Below is my implementation...

 
@Ben it's not suitable for Code Review -- there's no code to review. — mjolka 1 min ago
 
This takes "too broad" to a whole new level. — DripDrop 54 mins ago
Wow @ question ^^
One day... one day, I'll be able to VTC on SO...
 
@sᴉɔuɐɹɥԀ I hope you flagged it.
 
Certainly did!
 
Me too.
 
2:24 AM
This would not be on-topic for any Stack Exchange site that I know of. Perhaps consider checking MSDN first... — Phrancis 5 mins ago
^^ Copy-paste his question title in Google. LMGTFY.
 
0
Q: Database Plugin for CKFinder users

Eko Junaidi SalamI have written a small plugin library for CKFinder that I would like some critiques on. The library is located here. If you are looking for where to start, check out plugin.php and hook function in here in the assets/ckfinder/core/connector/php/php5/CommandHandler/ folder I would really love t...

 
2:50 AM
How did you get 600 rep and still not know what type of questions are allowed? — JK. 1 hour ago
 
@Lyle'sMug IKR
 
"Slowly". at least he's got a sense of humour
 
@sᴉɔuɐɹɥԀ some people on SO really make me wonder how the human race has progressed this far...
@mjolka agreed, at least we hope he was kidding there, right?
 
member for 4 years, 11 months
 
4 years!?
 
2:55 AM
sorry, wrong profile
i clicked on JK's, which reads
"If I down voted or voted to close your question..... then I'm not coming back even if you think you've fixed it. Hint: going by past history, you probably haven't. You shouldn't have asked such a rubbish question in the first place."
 
> 1 year, 4 months
 
@mjolka I think I read that one before....lol;
TTGTB me thinks...after an Episode of Star Trek on the Tele
 
yeah, i was pretty surprised to read that on what i thought was ben's profile
 
On a more light-hearted note... from 2006:
> Kassen has run into a "feature" of chuck that needs some
explanation. The apparent strange behavior of division of integers
is common among most computer languages that support integers.
Note: Integer division in ChucK still features above-referenced feature.
> Example: 2/3 == 0 (integer divides integer results in exact integer),
BUT 2.0 / 3 == .66666667 (integer divides float results in non-exact
float)
or
2/3.0 == .666666667 (float divides integer results in non-exact float)

or float(a) / 3 should result in a float, not an integer.
 
@rolfl @sigh :) can't type, can't read, can't click today
 
3:03 AM
try @si ....
And you can't reach through the net and slap @sᴉɔuɐɹɥԀ for changing his name ...
 
@rolfl Here, have a star ;)
 
@sᴉɔuɐɹɥԀ you'll find similar behaviour in e.g. java and c#
float x = 2 / 3;
float y = 2.0f / 3;
System.out.println(x);
System.out.println(y);
prints 0.0, 0.6666667
 
actually..... it prints:
0
0.66666667
not 0.0
oh, and apparently I am wrong.
ignore me, I am just rambling.
 
Not terribly sure how I feel about implicit number "type" conversions. But I guess I better get used to it, since it appears to be present in every language.
 
and x is a float.
implicit number type conversions are al over.
Java, at least, uses double as the default float type.
 
3:06 AM
If only there was a standard, though...
 
some (all) other languages use float.
 
3:25 AM
I hate this error
> Must declare the scalar variable "@int2".
declare @int2 int;
declare @int3 int;
declare @dec2 decimal(10,9);
declare @dec3 decimal(10,9);

set
  @int2 = 2
, @int3 = 3
, @dec2 = 2
, @dec3 = 3;

insert into foo( id )
  select "int/int div", @int2 / @int3 union
  select "int/dec div", @int2 / @dec3 union
  select "dec/int div", @dec2 / @int3 union
  select "dec/dec div", @dec2 / @dec3;
go

  select * from foo;
Seems straightforward enough... ...
(I did just now notice the error in my insert statement, fixed but getting same problem)
 
3:40 AM
@TheAlex: I don't think I can do a code review in a comment, but wrt pushing buffer states, you should definitely not be either trying to open a file (???) or setting yytext. (Or calling BEGIN(INITIAL), since you don't use start conditions.) What you need to do to push a string onto the buffer stack is: yypush_buffer_state(YY_CURRENT_BUFFER); yy_scan_string(alias_value);. When you hit an <<EOF>>, yypop_buffer_state();. The first sequence is slightly non-obvious; it is required because yy_scan_string calls yy_switch_to_buffer. — rici 1 min ago
 
Must be something with SqlFiddle... even this gives the error...
declare @one int = 1;
select @one;
Meh, using variables works so much better in non-SQL languages.
 
missing as ?
declare @monthsago as DATETIME =  ....
 
3:55 AM
No luck. I got it to work on MySQL though. Converts everything to decimal/float...
I'll go back to making weird sounds though. Much more interesting than tables :)
2 => int int2;
3 => int int3;
2.0 => float dec2;
3.0 => float dec3;

<<< "int/int = ", int2/int3 >>>;
<<< "int/dec = ", int2/dec3 >>>;
<<< "dec/int = ", dec2/int3 >>>;
<<< "dec/dec = ", dec2/dec3 >>>;
> int/int = 0
int/dec = 0.666667
dec/int = 0.666667
dec/dec = 0.666667
The more you know, I guess. Anything not int vs. int appears to apply implicit conversion to floating point
 
4:11 AM
@sᴉɔuɐɹɥԀ hahaha.. I need to write your name from the end to bring up the suggestion
wanted to see if you're still liking it :D
I've been really busy with the Electronics these days and didn't have time to come and enjoy 2nd monitor :")
 
Do you mind joining me in the 2nd monitor chat room? — rolfl ♦ 9 secs ago
 
@Mehrad I am actually still kind of liking it. I did keep the non-upside-down version outside of CR, so people on SO don't think I'm that much of a weirdo (they are wrong)
 
@rolfl maybe add <!-- language: lang-none --> above your output in the answer
 
@sᴉɔuɐɹɥԀ hahaha... Nice
 
@mjolka done
Hey @maaartinus ; -)
were you meaning O(n**2) as in n-squared?
 
4:32 AM
0
Q: Change numbers in url - chrome extension

user2295265I am trying to make my own chrome extension but I have only basic knowledge of html and js is gibberish to me. So I am begging for help. I have this kind of url: http://www.website.com/blabla/number1/number2/blabla/number3_orig.extension http://www.website.com/blabla/11912/57294/blabla/001_ori...

 
hey @rolfl sorry just saw your post on CR question.
 
Hi @rolfl. Sure, it's 1+1+...+10 + 1+1+ ... + 20 + 1+1+ ... + 30 + ....
 
I think we have a different view of the problem.
Lets switch to base 10
and just select 2 digits.
If you say lets have the combination of 2 and 3
then you can permutate that into 23 and 32
 
correct, and the two sums are 5 and 5.
and the count is 2
 
... and the sum is quadratic then. While ArrayList does something like
1 +2 + 1 + 1 + 2 + 1 +1 + 1 +1 + 4 +.... (eigth ones and then one eigth) + ...
 
4:40 AM
read the first line of the OP question.
we are constructing numbers
 
@Rossco What problem are you talking about?
 
'6 digited base-49 numbers'
 
> This code finds expectation and standard deviation of sum(x) of 6 digited base-49 numbers with all digits distinct.
1
Q: Expected value (and distribution) of sum of six balls labeled 1-49, no replacement

ADGThis code finds expectation and standard deviation of sum(x) of 6 digited base-49 numbers with all digits distinct. The expectation is: \$\mu={\rm E[X]}=\frac1n\sum_{k=0}^{n}x_i=\frac{x_1+x_2+\ldots+x_n}{n}\$ whereas standard deviation is: \${\rm \sigma[X]}=\sqrt{{\rm E[(X-\mu)^2]}}=\sqrt{\f...

 
hang on
I think I have it wrong
shoot it may be much easier than I thought.
 
See, the thing is that I think your solution should give the same resut as mine, I just do 1/720th the work ;-)
Although I suspect there's an even simpler way still
but I was happy with 6 hours to 2 seconds....
... and getting the expected answer
 
4:44 AM
No I'm getting thrown by the use of 'base'
 
is it the same problem as this? stat.berkeley.edu/~stark/SticiGui/Text/…
 
@mjolka Yes, except you have to calculate the standard deviation too ;-)
 
So I was thinking that you are actually constructing a number and adding it to a set.
Not summing the digits.
 
the set 1,2,3,4,5,6 sums to 1 + 2 + 3 + 4 + 5 + 6
at least, that's how I read it.
which will be the same sum as 2,1,3,4,5,6
 
yeah I see what you mean and I mean take 1 to 6 and construct a number using all digits.
 
4:46 AM
@Rossco The word base stroke me too, but I'd bet it's just a lottery rephrased by some wild poet next generations will learn about.
 
0
Q: Game engine ObjectFactory class

MikeI've developed as part of a game engine a template class for a factory which manages objects of one specific type. The factory handles initialization, destruction, and accessing previously created objects by string identifier. It allows forwarding parameters to object constructors with variadic a...

 
Frankly, the question peeved me too due to the lack of clarity, but I had to ead it and understand the problem in order to understand waht was wrong with it.
at that point, I figure I may as well solve it myself, and check...
especially if he's blaming the errors on Java's Random class.
so, I proved the OP wrong on that, and the performance.
I was content to leave it there.
 
all good. He accepted the answer so you must have been on the right track. I might remove my one then.
 
Don't rush in to doing that.
 
@rolfl The mean is obviously n + (min+max) / 2 and I'd bet the formula for the deviation is not much longer. But I can't see it.
 
4:50 AM
I basically can't figure a way to check each digit one at a time to calculate the Std dev
 
If you feel you got something out of it, consider writing it up as an alternate question instread....?
 
@Rossco The fact that the OP accepted doesn't mean much, I'm afraid.
 
Also, your answer has some upvote-worthy things too.
 
I'll add a comment to say we've talked and agreed that I misunderstood the question.
 
@maaartinus - I am aware that I brute-forced the answer.
That's probably a good compromise
 
4:53 AM
@Rossco Now you can comment on posts. ;)
@rolfl I love smart bruteforcing. More than math.
 
@rolfl Use the force, Luke Rolf.
 
Use the Brute, Monkey
 
Brute force isn't bad if the run time is reasonable. as 2 secs
is
 
> Computers can brute-force numbers really fast;
Humans can make computers brute-force numbers;
Therefore, numbers will be brute-forced.
 
It can be more readable than a 'magic calculation'
lol
 
4:58 AM
Use the Brute, guys. Have fun and bye.
 
I am pleased he only went for 6/49 and not 7/49 ;-)
For base 49 with 1 balls in 0.000s, mean is 25.000 (sd 14.142) counts are
For base 49 with 2 balls in 0.000s, mean is 50.000 (sd 19.791) counts are
For base 49 with 3 balls in 0.002s, mean is 75.000 (sd 23.979) counts are
For base 49 with 4 balls in 0.029s, mean is 100.000 (sd 27.386) counts are
For base 49 with 5 balls in 0.264s, mean is 125.000 (sd 30.277) counts are
For base 49 with 6 balls in 1.933s, mean is 150.000 (sd 32.787) counts are
 
Bye @maaartinus
How long should one be expected to spend extracting a fairly simple function, given no IDE magic is available?
 
 Ctrl-A -> Del
function extracted.
1 second?
 
 
5:05 AM
OK, I mean; extracted out of another function, into its own thing :p
 
Ctrl-V?
 
Guess I better start writing code that can be more easily copypasta'd lol.
 
@sᴉɔuɐɹɥԀ - typically (for real here...).
You have a large cunk of code. You identify that some inner portion should be extracted.
You Ctrl-X the code you want out....
you go to where you want the code to be, you Ctrl-V it there.
Then you wrap it in the method signature... and guess the return types/parameters you will need based on what the code you cut does/uses
Use the variable names in your code block as the names of the parameters.
then you go to where you pulled the code from, and add a call to your function instead.
then you compile->fix->compile->.... until there's no errors.
 
Now that, my friends, is a sensible answer ;D
 
10 minutes or so for a reaonable function.
 
5:12 AM
Do I get a bit of leeway for being so terribly easily distracted a beginner?
 
yes
+500% -90%
 
@rolfl ergh, just realised the title of that question doesn't match the description. i was focussed on the base-49 part (i.e. 0-48), but the title says labelled 1-49
 
Tough love right there, @rolfl ;)
 
26 mins ago, by rolfl
Frankly, the question peeved me too due to the lack of clarity, but I had to ead it and understand the problem in order to understand waht was wrong with it.
@mjolka That ^^^^
 
now i understand why the expected value is 25, not 24
amen rolfl
 
5:14 AM
ead it?
 
01:14
 
^Fair enough
 
Apr 1 at 14:24, by rolfl
@Mat'sMug I keep telling people that my spelling is fine, my typing is the problem.
 
I understand waht you mean.
 
At least my name is the right way up
4
 
5:17 AM
i'm just going to assume the rest of your answer is correct, and give my brain a rest. enjoy the upvote :)
 
I'll accept that graciously... ta.
 
I wrote a little calculation to go up or down half-steps extremely precisely; the way I was using it was only going up one half-step at a time. I thought something like that could really be useful if I could give it an input frequency and unsigned number of half-steps, very reusable
 
It needs more comments, and an instruction manual. It makes a lot more sense when you debug it.
 
So I've been working on extracting it and turning it into a totes legit function. Just, first time around so it has taken a while... adding checks and balances and stuff, like checking for NaN and such
 
robust is good
 
5:24 AM
It's just the LoC's are multiplying every time I look at the thing I extracted ;D
in any case, TTGTB.. night all!
 
 
1 hour later…
6:39 AM
0
Q: Maintain state of custom button in UITableview cell when scrolls

BhavinI know this question is very similar to other questions, but i doesn't resolve the problem using that approach.i follow most of the available solution but it doesn't work for me.. I know that when tableview scrolls it reuse cell but i doesn't know the approach of maintaining the button state . i'...

 
7:01 AM
0
Q: Summation of Combination

user3201264I need To Find The Summation Of the Below Series: (n+1-1)C1+(n+2-1)C2+.........+(n+k-1)CK(Hint:(n+k-1)Ck=(n+k-1)C(K)+(n+k-1)C(k-1)) The ans should be printed as Modulo m Here n=Len and k=N and m=1000003 #include #define M 1000003 int main(){ int t=0; long long int sum=0,L,R,N,init=0,i=0,Len...

 
7:18 AM
Post in codereview or design review . — Amit 27 secs ago
 
7:40 AM
@JeroenVannevel that looks really good, and eyah thats' definnitely JWT. Just let me know where you'd like me to get started :)
 
I believe the Code Review website of Stack Exchange will be the right place for this question. codereview.stackexchange.comRahul Desai 1 min ago
This might be a better fit for codereview.stackexchange.comreto 5 secs ago
There are few options I'm aware of. For example you can write a script that will create a tree view by using pure WinAPI (take it as a proof of concept before a code review; working with Unicode Inno Setup). But your question is still too broad. If you would like to have all what the TTreeView class offers, then it would be a lot of work. Hence I'm asking what you're expecting from that tree view. — TLama 1 min ago
 
8:16 AM
0
Q: finding the DNA Sequence with number of match and miss match

Dont Knowdef DNAsequences (DNAsample1,DNAsample2): stringuses=0 #Variable to work on index=0 #Variable for modification firstDNA=list(DNAsample1); secondDNA=list(DNAsample2); option="DNA Blood sample" while(option!="q"): print() option=input("Enter a command:" "\na(add indel)...

0
Q: Javascript password validator

andreasA JavaScript program is required to request, via a dialogue box, a password from a user. The input, which can be of any length, must be validated such that it is only valid if it has no spaces. Any character, other than a space, is permissible. As soon as a space is detected, the program should t...

 
8:51 AM
0
Q: Changing algorithm to avoid looping with iterrows

ArianeI am quite new to Python. I wrote a code that works but the algorithm is obviously not efficient at all. However I am stuck in the loop on iterrows and I do not see how to get rid of it. In the code below: Function f1, which is inside f, creates a vector I want to find the roots of. This vecto...

 
This question probably belongs to codereview.stackexchange.comArtyom Neustroev 1 min ago
 
9:10 AM
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.com — Colin 't Hart 1 min ago
 
@Duga migration unviable.
 
@Vogel612 no surprise there, a few bad suggestions from SO today :(
 
@DanPantry the suggestion isn't wrong per se...
but the already existing answers aren't a good fit..
 
Ah. I hadn't seen the actual question so I misinterpeted
 
@BenjaminGruenbaum I suggested Code Review based on the actual questions asked by the OP. Please correct me if I am wrong. — Rahul Desai 1 min ago
You are wrong. Code Review only reviews complete code samples. It does not review example code or snippets. The questions asked by the OP might make it seem like it's a good fit for Code Review, but it is off-topic there. — Dan Pantry 1 min ago
 
9:20 AM
Monking
 
monking
 
0
Q: Getting distinct array of objects

filurI would like to get a distinct array of objects. The code below is the first thing that came to mind. Do you see any room for improvements? function distinct(objectArray){ var distinctResult = []; $.each(objectArray, function(i, currentObject){ if(!exists(distinctResult, curr...

 
9:39 AM
0
Q: Repeated string concatenation

wvxvwI've been looking for a way to have a predicate that establishes that all elements of a list are substrings delimited by a given string. Analogues in other languages include: 'delimiter'.join(list) in Python, (mapconcat function sequence delimiter) in Emacs Lisp, array.join('delimiter') in JavaSc...

 
10:14 AM
@DanPantry: any time you feel like working on it! I'll work on some actual game logic today
But the login/registration procedure should be available
 
@JeroenVannevel May I ask what you use for your blog? Like platform, setup, etc.
 
@skiwi WordPress, that's it
I host it at iPage and they have a module that can install WordPress
You just click it, configure it, wait for the indian tech support to fix the weird issues and you're live
 
Is there enough choice for fancy designs? And can you customize some stuff, say I want to add an image with a link on every single page of mine?
Note: I'm not a good designer :D
 
10:30 AM
1
Q: Gray codes addition — Take 2

MorwennFor a while, I have tried to find ways (known or new) to do stuff with Gray codes. As some of you know I already tried to implement an algorithm to add two Gray codes without having to convert them to a regular binary representation, perform a regular addition and convert the result back to a Gra...

 
@Morwenn - really? You made + a recursive operator ...? ;-)
3
 
@skiwi Yes, lots of choice. And sure, I think you can customize a lot
 
@rolfl Yeah right, totally.
 
I am trying to think of if I have ever seen that before... I don't think so.
mind you, it is not the sort of thing that sticks out
 
Ah yisssss... my answer is no longer grayed.
@skiwi Consider, that I use WordPress for my blog as well. It looks a bit different from @JeroenVannevel's blog, eh?
 
10:39 AM
@rolfl I think I have seen something like this on PPCG in a challenge where user couldn't use +, -, * or / and had to perform a multiplication. Someone redefined the operations on integers with the notion of 0 and successor. So... everything was recursive.
 
@nhgrif Yeah... I probably just need to get my hands dirty
 
@JeroenVannevel no, I mean, let me know what you need done :P
 
Oooh @Morwenn fancy math formulas!
 
But I got to use some nice MathJax so the question was worth it.
 
Cross-posted to Code Review (where it has been closed): codereview.stackexchange.com/questions/86330/…Simon André Forsberg 13 secs ago
 
10:40 AM
@skiwi you have to remember that all of the css in wordpress is customizable IIRC so you can really make it look however you want
 
Yes.
I have two weeks to make job decision.
@sᴉɔuɐɹɥԀ If you can go up or down, why would the number of steps be unsigned?
 
The sun, outside, it hurts!
 
Okay, @Dracula
 
@DanPantry I think a working login/registration system would be the first task at hand right now
I'll put some details somewhere about how/which endpoints to call from the frontend
 
@JeroenVannevel Sure. I assume you want both the option to login with oauth and username and password, and that for a registration system you would want the user to be able to register with a username & password or oauth as well
 
10:48 AM
0
Q: A trivial command line utility for trimming whitespace from lines in C - follow-up 2

coderoddeThe previous iteration at A trivial command line utility for trimming whitespace from lines in C - follow-up Now my code looks like: #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define HELP_FLAG "-h" #define VERSION_FLAG "-v" #define FLAG_DESC...

 
Registration with username/password, facebook or google. When they register through facebook/google they should be prompted for a username -- a local account is created for them then
logging in is possible through username/pw, facebook and google
Oh no wait
The username is for the high scores
scratch that, they need a username
 
do they?
You can use their oauth name instead
ify ou wanted
 
That would make a big difference between the username/pw and the oauth people though
 
What are you guys making?
 
BigTittyBuster420 vs Jack Johnson
 
10:54 AM
@JeroenVannevel Well, no.
 
12 hours ago, by Jeroen Vannevel
the API endpoint gives you a bunch of gameIds every 5 minutes. I plan on taking those and presenting the user with the team setup. Then the user guesses who will win. If they're right, they rise on the global leaderboard
 
I mean, it might look different, but there's no technical issue
if the user has oauth, then it shows their oauth real life name
otherwise it shows their username (or name they registered with)
 
oooh I see
Yeah, they get the chance to choose either
 
Also
OAuth connect, which most oauth users use, contain an id_token by standard
this may contain information about the user
and all of the providersy ou use will most certainly have the ability to allow you to see at least the user's registered name with them
the way to go about that is to define the 'user account' and 'profile' as separate things
so the profile contains information on the user such as their name, and the user account is just a username and password combo that may also have an oauth account id
which 'has-a' profile
if you're using nosql it gets even easier but if you're doing the whole .net stuff i doubt you are :p
 
Well, the positive thing is that I don't have to define squat about the user profiles
 
10:59 AM
You've earned the "interview-questions" tag badge. (bronze)
Monking
 
@JeroenVannevel yeah you can just have high scores
 
That's all done behind the scenes by ASP.NET Identity
 
monking @SimonAndréForsberg
@JeroenVannevel asp.net identity supports oauth?
 

« first day (705 days earlier)      last day (3319 days later) »