« first day (813 days earlier)      last day (3502 days later) » 

18:00
Thou shalt honor thy languages conventions covers formatting I think
oh nice
@nhgrif That line needs an apostrophe.
Thou shalt honour thy language's conventions regarding apostrophe placement for possessives. ;-)
Im on a phone
Use a better keyboard layout for your phone. ;-)
Also only have one hand available
18:04
^ apostrophe built in
Holding tacos
Make it voice controlled ^^
@Mast My wife tested out Google voice typing last night. The words that came out were hilarious.
@nhgrif Speaking of one-handed typing, I should try to bug a friend in the Google Keyboard team to add one-handed Dvorak layouts. ;-)
@Mast yes! opens up snipping tool, prepares DYAC upload
not really
18:07
@ChrisJester-Young I used some suites a couple of years back which were kind of decent.
The trick is you need to make the system learn your voice.
When that's done, the accuracy gets way better.
and then you make it learn technical terms?
@Malachi it's CW
I am painting a building. So not at a computer...lol
Thanks. I couldn't get into the edit history from the app either...
@Malachi In the app, there's a "..." option that allows you to open the question in your browser.
@Mast For Android? Or some other platform?
18:18
@ChrisJester-Young Windows
One of them was called Dragon Naturally Speaking I think
@Mast Yep, that's a very well-known one. I'll check to see if it's available for OS X or Android (which are the platforms my wife uses).
0
Q: IoC Registration: Convention over Configuration

Mat's MugThe rubberduck project has reached a turning point. The core features are implemented (except the SmartIndenter embedding - we're keeping that for 2.0), the next few releases will probably just build on the architecture in place. One of the biggest architectural issues, is tight coupling, with d...

@CaptainObvious woah, that was fast!!!
@Mat'sMug Do you want me to explain it or was it loose statement?
@Mast ?
I mean, I clicked the orange button and then went straight here, and @Captain was already on top of it!
how often does that happen?!
18:28
not a lot
Captain is on a timer.
It hits every so many seconds.
makes sense
Captain is drunk.
who's running that thing?
So the chance it takes exactly 5 seconds for Captain to pick it up is the same as the chance it takes exactly 40 seconds.
@janos It's a re-named SE feed.
18:34
@Mast yes, but that's if you're posting your first question. when it's your 111th question, the feed has taken roughly an average of 7.5 minutes to post in chat, so 5 seconds is surprising ;-)
@nhgrif My phone does apostrophes.
@Hosch250 with a taco in the right hand?
Sure.
@Mat'sMug Uh, what?
That's not how statistics work IIRC.
assuming the timer is 15 minutes
18:36
Sounds about right.
any given post has equal chances of being posted anywhere within that 15-minute span, right?
Yes.
so, if you take enough posts in your sample, the average will be somewhere near the mean, no?
Assuming you don't know when CO has last triggered, ofc.
The average is irrelevant for the chance.
it is, but it's totally relevant to the perception of speed or sluggishness ;-)
18:38
I'm on my phone typing with my left hand.
Perception is a bitch.
There's the apostrophe.
@Hosch250 there should be a badge for that
Windows Phone badge?
It auto-inserts it :)
I was just using my swipe keyboard, or whatever they call it.
I see you have the IoC going up?
yep. looks like it's going to work.
I can get the IInspection classes their dependencies through their constructor now
18:42
Cool.
Any idea why Promise C in this example doesn't work as expected? codereview.stackexchange.com/questions/98149/…ThomasReggi 8 secs ago
@Duga The CR post has a part of it that is broken, but the rest works (as claimed by the OP).
-1
Q: Different ways of writing a promise

ThomasReggiBelow are two promises the first does a bit of nesting and the second is all anon then calls that return one function in them. Which do you prefer? Any improvements? Promise A: fsRedux.ensureLink = function(srcPath, dstPath){ dstPath = fsRedux.predictDir(srcPath, dstPath) var dstDir = path....

Hmm, IceDragon was updated since I last used it.
18:54
Coffee time.
4
It has a new GUI now.
I like it.
A final note: when your sample code will compile successfully, I suggest that you post it to the Code Review community. They may help a lot — Mario Zannone 9 secs ago
19:09
0
Q: Resumable HTTP download class - Follow-up

ExpenzorSuggestions to improve the updated code. Question: Is there a better way to calculate the download speed than what I'm currently doing now? Pure version: using System; using System.Diagnostics; using System.IO; using System.Net; using System.Threading; namespace Downloader { public inter...

Any delete votes so I don't have to see this any more?
-3
Q: How to get the values from nested JSON - Objective C

ManoI am trying to get some keys and values from below nested JSON response. Below I have mentioned my JSON response structure, I need to get all the keys (RED, GREEN) and key values (Color and color_id) from the response and load into an array for placement in TableView cell values. I have tried ...

Oh thanks for that never knew about the Code Review community, also I have updated my code when checking the array but still get the error :/ — JKSDEV 39 secs ago
@nhgrif I'd love to help you with that one, but I can't.
0
Q: Is there a better architecture for a code with a lot of unit function?

guillaumevincentI start coding a simple application: I transform mardown files in folders into a documentation. My architecture is very flat. My code looks like a series of unit function called one after the other. My pseudo code looks like this : def main(): config = get_user_config(os.getcwd()) sour...

found a bug
19:20
lol
hmm maybe not
@nhgrif What's the bug?
the badge icon
It's a CR badge but it shows up with the SFF badge icon on their site
That's weird indeed.
Oh, that's interesting. You should submit a report.
19:27
0
Q: Badge icons -- is this a bug?

nhgrifWhen looking at the recent achievements drop downs, the icon for badges appears with the graphic for whatever site you're currently on, rather than the graphic for the site you've earned the badge for. For instance, in this screenshot, I'm on the Science Fi & Fantasy site, and the badge in the d...

There is a site for code reviews: codereview.stackexchange.com. This site is for specific programming questions — fdsa 25 secs ago
@nhgrif Would be appropriate?
I don't know.
I'm not a master of meta meta
Neither am I.
There's a tag that will probably get applied to my question by a moderator.
19:36
We'll see. At least it's documented then.
Heh... so I didn't actually realize that MacBook Pro retina screens work exactly the same as iPad/iPhone...
19:55
0
Q: Implement an algorithm to find the kth to last element of a singly linked list using python

saikat123I am new in python .. I tried to write code by myself ... Not sure, this coding is industry standard or not ..could anyone please review it and let me know if anything improvement requirement or not .. Thanks for your help .. class Node(object): def __init__(self,data,next): self.data...

@CaptainObvious Cross-posted with Stack Overflow.
Now also posted on Code Review. Please remove this one. — Mast 36 secs ago
20:11
1
Q: Running Lights - Embedded "Hello World"

RubberDuckI'm getting my feet wet in embedded development, and like all those before me, my first task was to make an LED blink. I went a bit further than that and made a "runner" that lights up each led from 0 to 7 in sequence. The sequence begins as soon as the board is powered on. You can see it in acti...

@RubberDuck I assume that 0b11111111 is the same as 0xFF?
@nhgrif Yes.
0b is binary where 0x is hexadecimal.
> @CaptainObvious It's my first ever , so please be brutal.
lol
What @mast said @nhgrif. 8 bit binary number, so, it's a very literal representation of the port.
I'm voting to close this question as off-topic because it belongs to CodeReview. — Andreas Niedermair 14 secs ago
@AndreasNiedermair Are you sure about that? Have you read A Guide to Code Review for Stack Overflow users? I personally think this question is better off on Stack Overflow than on Code Review. — Simon André Forsberg 15 secs ago
20:30
@Duga Simon is lurking.
for (uint8_t lights = 1; lights != 0; lights <<= 1)
;)
No, Simon would never lurk in the Code Review chat room. — Simon André Forsberg 47 secs ago
4
@SimonAndréForsberg I wasn't aware of the Please do not vote to close with a custom reason that "it belongs on Code Review".-mantra - thanks for that, I'll retract my vote. For the other points in the table, I am half/half - My intention was: let the community decide... — Andreas Niedermair 57 secs ago
@Duga Thanks for your cooperation!
for (uint8_t lights = 1; /*no exit*/; lights <<= 1) {
    setLights(lights);
    // delay
}
@nhgrif Feel like writing an answer?
20:34
@EthanBierlein curr_node[1] is not better than curr_node.next
Oh, you already did.
That last loop wouldn't work actually
As soon as it got back around to 0, it'd be stuck at 0.
You could reset it within the while
I was recommending eliminating the while.
But I don't think you can.
@jacwah I think I disagree with all of your points except maybe the first one.
sleep is evil in
20:38
@SimonAndréForsberg I wasn't aware of the Please do not vote to close with a custom reason that "it belongs on Code Review".-mantra - thanks for that, I'll retract my vote. For the other points in the table, I am half/half - My intention was: let the community decide... Especially the doesn't seem as natural and any better way indicates quite a range of suggestions (even if the title is a bit off then ...) which would be perfectly suited for CR. — Andreas Niedermair 41 secs ago
Is it?
My bad then
Why?
Well actually, I don't know about the point about delay
It halts the processor.
I don't know enough about that point.
For how to wait correctly in C.
@Mast What else should the CPU be doing?
20:38
@Duga you like deleting your comments and re-posting them, don't you?
@RubberDuck Do you not understand what lights <<= 1 does or do you think my answer would be better with the explanation? (I want to try explaining here first)
@Mast Halts like in sudo halt now or halt like wait?
> You're running a busy loop to delay the process. This prevents the OS from scheduling other tasks instead of using resources for no-ops. See What are trade offs for “busy wait” vs “sleep”?. I recommend using sleep instead - this is the ordinary way to wait.
@jacwah I don't there there's an OS around in this case ^^
@skiwi In this case, nothing.
@skiwi I don't know!
20:41
But the next step would be implementing buttons.
In which case button input would no longer be handled either.
Unless it's on an interrupt ofc.
Gimme moar points :(
Jokes aside, if the blog stuff eventually comes out, are there still people willing to write posts?
Have the potential topics changed?
@Morwenn From the looks of it, that blog stuff is not happening anytime soon.
What blog stuff, that 30k privilege stuff they've been talking about for ages now?
@SimonAndréForsberg Well, yeah, but being up-to-date about the idea for when it eventually comes out is rather important :p
20:51
As I write more and more articles, the opportunities to link to my blog in CR answers grows & grows....
17
Q: Code Review Blog - Phase 1 - Raise the idea on the meta site

Morwenn On Hold SE Community Devs: The short of it is, it's kinda on us to make something that works, and we don't really do that. There isn't any real proper integration between the systems and the authors suffer as a result of it. Ultimately leading to fairly ill fates to most all of the blogs....

I'm up to writing posts
@SimonAndréForsberg That's a tag I don't see often,
@Mast not many meta questions needs it.
@SimonAndréForsberg @rolfl GitHub!
21:01
@nhgrif I think I've got it now. It shifts left instead of incrementing. What I haven't quite gotten is how the loop ends.
What happens after the 8th shift?
What does 0x10000000 shift into for an unsigned 8-bit integer?
Oh!!! Oh. Just clicked.
I think you mean 0b10000000
Not 0x
Thanks.
21:03
@SimonAndréForsberg Use GitHub as a blog.
@Mast yes
@Mast hmm... that could maybe work.
and the forever loop is actually required, otherwise it would run once and just stop. Embedded has to keep itself running.
@Mast I like this idea.
Yeah. I was trying to come up with a way to make it a forever loop without using two loops.
21:07
Ahhhh. Gotchya.
Don't sweat that though, next I want to add an on/off button.
Well, you can of course remove the conditional statement from a for loop
for (uint8_t lights = 1; ; lights <<= 1) { /* ... */ }
But once that gets to 0, it stays on 0
And even if we if (!lights) { lights = 1 }, then we get infinite loop, but we never hit 1 after the first time
I have made several edits to my answer by the way
@Mast There's no MathJax on GitHub. Otherwise I would use it as a blog :(
Why would you #define something you could declare as a constant with a type? — nhgrif 36 secs ago
21:24
0
Q: Method that returns an integer chosen by user

Serg Z. static string _warning = "Please, enter a number from 1 to 4!"; static int oneToFour() { int oneFour = 0; bool isError = true; while (isError) { try { oneFour = Convert.ToInt32(Console.ReadLine()); ...

21:40
Consider converting this question to a series of question posted on the Excel forum at Code Review. — Jeeped 22 secs ago
containing methods is not a requirement for a class to be useful
that.
it's a useful abstraction of compound data with many elements
so that's settled then :)
lol. I'll still keep it in as an alternate option
21:45
you see, curr_node.next is meaningful, even if I quote out of context, whereas curr_node[1] is meaningless
Use Wordpress as a free blog. We have to submit our posts somewhere for a select group of users to triage and post as appropriate.
... @jacwah Are you in here?
@nhgrif In this case it might be better, but I use macros out of habit. The thing is that in C doesn't have constants in the sense they exist in other languages. A const qualified variable is not a compile time constant, but rather an unmutable variable, and can not be used in an integer constant expression, for instance as the lvalue of a variable initialization, the size of a (non-VLA) array etc. The only options in this case are macros and enum elements, which should probably be preferred. I'll edit my answer. — jacwah 4 mins ago
@nhgrif Yes
I don't think I understand that.
ttgtb, have a nice evening guys
21:47
What part of it is unclear?
s/lvalue/rvalue
Can you show some cases where a constant integer wouldn't work but a #define would?
@nhgrif In a switch case.
Okay, I'll buy that one.
And I know for array sizes.
21:51
@Morwenn Git accepts everyone. Write your blog in PDF for all I care.
I just checked - I was wrong about initialisation of variables
@Mast Yeah, but markdown or rst do not accept math.
But there are other cases as Chris mentioned
This blogpost has some info on it @nhgrif
Anyways TTGTB
0
Q: Compile-time data structure generator

EdwardIn response to another recent question I mentioned that one mechanism to avoid runtime overhead for creating a data structure was to create it at compile time and use it directly. Since there was some interest in that concept, I thought I would write code to show how that might be done and submi...

@CaptainObvious I'm not sure what is doing on that question, but I guess he has a good reason for it.
22:03
> so if it's an embedded system and especially if the data structure is large and complex, the burden for building the structure is shifted to compile time
Yea, I'm not sure why you'd so that though. But that must be me.
Don't mind me.
Do what?
When you need a date and/or time, you usually use a lightweight OS which handles that stuff.
buildroot/yocto if you got a modern platform, perhaps a homebrew RTOS of sorts.
There's probably a very good use for it which I haven't seen yet
oh
This question is too broad. You're asking us to solve several problems all at once. Start by breaking your problem down into smaller problems. You need two solve at least two different problems. 1. Determine the device's actual orientation. 2. Draw an arrow at an orientation. Which of these two distinct problems should answers to this question solve (either question is probably a duplicate anyway). — nhgrif 32 secs ago
@nhgrif Elephant.
22:07
yep.
The elephant article... I can't really link in answers so much... but I can link every time I vote to close something as too broad...
Much like the "does not work" article I recently wrote. Can't really link it in answers, but I can link it every time I close as "unclear what you're asking".
(and other close reasons)
@nhgrif I link it in CR answers.
"does not work" in CR answers?
Uh, perhaps another one.
I meant the one about readable code and comments
Oh yeah
Crap.
22:10
I link that all the time in CR answers also.
I used all the memory allowed for console apps up.
2
The best part is...
you wat
The Stack Overflow close vote queue is like... heaven for finding posts to link to my blog on...
u wot m8?
@Hosch250 How??!!
22:12
> dude, wtf
I'm profiling calculating all the primes from 2 to int.MaxValue.
You should totally drop that and use Python instead.
4
The Q uses an IEnumerable.
22:13
It will run the GC if you try that to remove old values.
And NO LINQ.
@Hosch250 Blasphemy!
@Mast I'm disappointed.
So, I'm going to tell them to use LINQ and a List (so we don't need to iterate the enumerable a zillion times).
"oh oh" was said... and your next line wasn't "it's magic, you know..."
22:14
I tried to profile it with a list and an IEnumerable in one shot - no good.
is missing the reference
@Mast do a clean/rebuild. works?
@Mat'sMug That's a bad pointer joke.
is wondering if it's the pointer that's bad
not really
> (Specifically, a toggle turns off things on and on things off.)
That's exactly what that method does actually.
No it doesn't.
It turns everything off but 1
regardless of their previous state
If you have 8 lights and 1 is turned on
if you toggle the lights, now you have 7 on and 1 off
1 min ago, by RubberDuck
> (Specifically, a toggle turns off things on and on things off.)
It's the difference between someBool = false and someBool = !someBool
bool in C ^^
22:23
Or someInt = 0 or someInt = ~someInt
With someInt = 0, after the assignment, someInt is 0 no matter what it was before.
Meanwhile, with someInt = ~someInt, if someInt was 0b11010011 before, after it will be 0b00101100
or 0b00000001 -> 0b11111110
I was referred back here, because replacing sys.exit() with return wasn't exactly the behavior I was seeking. However, now I'm entering an infinite loop when I enter "manual"... it's never "rainy" and, hence, I'm just given the quote again and again. When I exit the function, I see this error: — mmrtre18 45 secs ago
hahaha
> "The brain is a wonderful organ; it starts working the moment you get up in the morning and does not stop until you get into the office." -Robert Frost
2
Who said that?
some Robert Frost
it's in the SO question @Duga just linked to
Why did he say his name at the end of the sentence?
;)
22:31
lol
J G
J G
hi does anybody program the ti-84 here?
...
Haven't done so for a long time, why?
J G
J G
i'm trying to find which room people might program it in
i'm trying to write some programs and am a little stuck
0
Q: Python exception-raising generator function

Neil GI want my generator function to raise as soon as it can. If I make it yield the elements directly, then the KeyError won't happen until iteration begins. Is the following code the best I can do? def cluster_terminals(self, key): """ Deals with forwarding. Typically each cluster_map en...

22:34
Stack Overflow.
Not here.
there was this guy that made a BF interpreter in ti-BASIC once...
J G
J G
i tried stack overflow as well but cannot find
be patient, I guess not zillions of people roam SO with a calculator in hand
J G
J G
hahaah
I mean, you asked on SO right?
J G
J G
22:36
maybe not in the right room
i don't know SO too well
@JG Stuck in what sense?
Have you posted a question to SO with your problem...?
J G
J G
i'm not sure how to find an appropriate chat room in SO
or how to appropriately post about TI in SO
SO people are very intimidating sometimes and i didn't want to get minus points
Well, this isn't the SO chat help line. :/
@Mat'sMug Do you know what yield break; does?
When you come to a yield sign, your car breaks.
22:40
250
Q: What does "yield break;" do in C#?

skbI have seen this syntax in MSDN, but I don't know what it does. Does anyone know?

It's in the source code for some of GM's cars.
@JG word your problem in a consise way, be to-the-point, and include only the relevant code - take the time it takes to make a good question, and you shouldn't get downvoted. Good luck!
@Hosch250 like a normal return; exits the function.
@EthanBierlein Thanks.
J G
J G
22:41
thanks!
@SimonAndréForsberg I have a use case.
for an example I mean
I'm not sure I care for the yield keyword.
Or, I'm answering a question with a use case.
22:42
When I did C#, the yield keyword was one of my favorites.
@nhgrif yield is awesome
I like what it does.
I don't like how it does it.
Swift's defer is better.
lol, but of course <-- with an English accent
22:43
Is there a meme yet?
there was. but I think it's dead now.
mwahaha
huh?
This might be more appropriate for Code Review, although the Code Review people will yell at me for saying so. A "board" is just that, a board. It doesn't know what's being played on it. A chess board might... or you might have a class that has a board and knows what moves are able to be made based on a piece's move capabilities, or the rules might be encapsulated elsewhere since there are variations of chess that alter those capabilities. There are a lot of options. — Dave Newton 10 secs ago
Which is better, number * number, or Math.Pow(number, 2)?
Look at the disassembly.
22:44
Any particular reason?
I'd say, because the disassembly will show the difference
you got dotPeek?
Yeah.
22:50
make a small console app with 2 methods TestMultiply and TestMathPow
0
Q: In C return scanf values from function

DeeTeeI am trying to write a subfunction in my calculator program to verify the operands. What I'd like the function to do is return the scanf inputs to the main() function. Here is the code I have used for the sub function: void checkOperand(float f1, float f2) { printf("Please enter two numbers ...

then dotPeek-it
I think you could use a full review of your code. Include all the code of the relevant classes and let the people of Code Review do their magic! — Simon André Forsberg 28 secs ago
no wait, dotPeek isn't it. try ILSpy.
Stack Overflow really wants me to work remotely. That's all they advertise to me.

« first day (813 days earlier)      last day (3502 days later) »