« first day (1058 days earlier)      last day (2952 days later) » 
00:00 - 06:0006:00 - 00:00

12:00 AM
Alright, thanks for the tip. I've updated the OP with a fully working implementation now! — PseudoPsyche 25 mins ago
 
RELOAD! There are 2003 unanswered questions (93.8765% answered)
5
 
ooh it went down
 
@Pimgd again, btw
it's easter
@Quill 2 left
 
0
Q: c++ tic tac toe array validator works inconsistently

Nathansalthough I'm still missing the win checker, I'm close to finishing this program. The issue is I can't seem to get the nested do while loop to validate properly, it will inconsistently replaces other "x's" and "o's" and never lets me place a x or o on row 2, column 3. I don't see any obvious mista...

0
Q: How to do it in 1 function?

adamI have classify raster that was converted to theInputArray. Few function was used to execute different conditions for this rastr, but I want to cover them in 1 function and apply this function 4 times for different conditions: And make more efficient way to calculate it faster. # First ...

 
hey guys
 
12:07 AM
hey
 
hey there
 
@CaptainObvious Let your function take more arguments.
 
@Mast do you know who you are talking to?
 
lol
ofcoursehedoes
 
i thought so
i'm just confused
i've seen him around here quite a bit
 
12:12 AM
Me? No, I'm an illusion.
 
well yeah, with 27000 messages in here....
 
Can confirm that Mast is just a highly advanced hologram
 
A persistent illusion.
 
oh that is something that really irks me
 
@CaptainObvious This is broken code
 
12:13 AM
@quartata and you're just cellular automata
 
I knew the Dutch weren't real
 
lol
 
most people don't know what a hologram even is
 
Real enough to invade that pitiful country you call Belgium...
@MotokoKusanagi Bunch of photons kept together by a force-field.
Unless you mean the 3D stamps they put on billiets.
 
0
Q: Questions about two differently designed but similar PHP classes

wwrI'm trying to improve my limited knowledge in PHP (7) and I wrote these two simple classes as a proof of concept. They both have just one (private) property ->email and they run validation before setting a value for it (unless it's null). They are both supposed to run at business-tier GtokenA...

 
12:14 AM
why do you have ruin the magic @Mast
 
@Quill Don't blame me, I'm just a hologram.
 
Holography is the science and practice of making holograms. Typically, a hologram is a photographic recording of a light field, rather than of an image formed by a lens, and it is used to display a fully three-dimensional image of the holographed subject, which is seen without the aid of special glasses or other intermediate optics. The hologram itself is not an image and it is usually unintelligible when viewed under diffuse ambient light. It is an encoding of the light field as an interference pattern of seemingly random variations in the opacity, density, or surface profile of the photographic...
i think that stuff is quite interesting
 
@EBrown did someone say ?
 
possible answer invalidation by Smac89 on question by Smac89: codereview.stackexchange.com/posts/123701/revisions
 
12:16 AM
@Duga Rolled back.
 
wut. @Mast you are at exactly 4k?
 
user image
2
:28538504 There.
 
fascinating
 
6 months, 2k extra.
I've seen @rolfl do that in 10 days.
I should stop smoking my electronics and start posting code.
 
^that
 
12:22 AM
i'm searching for a project on github written in a language i can read; so i can read some good code and maybe contribute
any ideas?
 
lots of ideas
but since I don't know what languages you can read
no ideas
such is life
 
java, c, python, some c++
 
> good code
> java
lol
 
You could poke @syb0rg and see whether Khronos is still alive.
Take a swing at Cardshifter, or debug Duga.
 
@MotokoKusanagi soo... [java].... github.com/Vogel612/TranslationHelper
 
12:25 AM
thanks!
 
@Mast Duga is written with a portion of Groovy
 
@Vogel612 Your backlog is empty.
@Vogel612 AKA fancy Java.
 
Let's see. If I posted an answer every time I ran my tests...
 
@Mast I know..
there's some issues though
 
I need to get on SO and start picking questions and figuring out the answers.
 
12:30 AM
Don't bother trying to participate on SO.
To be blunt it's kinda garbage nowadays
 
Aye.
 
OK.
Well, I wonder what @nhgrif says?
At the least, I'd be competing with Jon Skeet, Eric Lippert, et al.
 
hey friends
 
@quartata I disagree
 
so, there's something i totally forgot about when i posted my event scheduler for review. i don't actually free() anywhere.. is this an issue? i assume so. and better yet im actually confused on how i would even do it considering i have an array of struct's. iterate through and free each one? maybe someone wants to respond to my question and yell at me for not freeing :P
 
12:37 AM
There is Security.StackExchange where these questions are suitable- though this would probably be closed as a duplicate. It actually sounds more like a code review so try there — Jeremy Thompson 54 secs ago
 
@SimonForsberg I got Duga to work.
For some reason, I didn't get the ping when I first connected her, but I just got the commit.
 
@Insane I haven't seen your implementation, but you may run into memory leakage.
 
12:56 AM
@Mast Hmm. Do you mind taking a peak? I'm having trouble freeing every element in the struct array list[]. I guess this is how you would do it (index being size of list[] i.e. how many allocated elements there are):
I wish free() gave you back some indication if it worked or not lol
 
@CTR12 If we tell you to jump in a river, would you do it? On-topic pages for Stack Overflow, Security and Code Review are available, as they are for every site. Look what you can and can't ask before posting. — Mast 15 secs ago
 
> We are sorry for the inconvenience caused. I have accessed the website and it is loading within 10 seconds. Please verify it once from your end.
lol wat
WEBSITE LOADS IN 10 SECONDS. ALL FINE.
4
 
WITHIN 10 SECONDS
 
@JeroenVannevel Seems legit.
@Insane You could do that by wrapping it. But if you start doing that, you might as well pick-up Python.
Garbage collector does everything for you :-)
 
@Mast Can't wait till I start using Java (again)!
@Mast Although I think that snippet I posted works the way it should.
 
12:59 AM
@Insane You don't want to remove/free items while iterating over the array.
That's bad practice.
 
Is it?
 
you can remove items when iterating in reverse...
 
Yes, you're modifying the array you're iterating over during the iteration.
Reverse iteration is less bad.
 
9
A: Freeing memory which has been allocated to an array of char pointers (strings). Do I have to free each string or just the "main" pointer?

Péter Török won't that just free the actual pointers and not the memory each string itself was using? Yes, indeed. How do I completely free the memory By looping through the array and freeing each string one by one before freeing up the array itself. E.g. for (i = 0; i < SOMETHING; i++) { fr...

How's it different than the top answer there?
(I'm not trying to argue, just curious)
 
@Insane Yes you are.
 
1:01 AM
@Mast Eh, I guess we'll disagree there and leave it at that.
"You need to iterate over list and call free() on every array member. Then free the array."
How else would I do it is what I really want to know, if I shouldn't do X then show me a Y alternative
 
well first to last iteration makes code more complicated than necessary if i am modifying the array while iterating through it, last to first makes for short and sweet because removing items doesn't effect iteration, finally, modifying the array after iterating through it is usually most readable
 
@MotokoKusanagi So basically do the same thing but in reverse
 
Are you using smart pointers?
 
@MotokoKusanagi Mast said that it's "less bad" implying there's still a better way to do it
 
just remember: KISS
 
1:04 AM
What are smart pointers? Probably not
Code is in my review thread
 
774
Q: What is a smart pointer and when should I use one?

Alex ReynoldsWhat is a smart pointer and when should I use one?

 
I'm not using C++
I'm using C
 
then you'll need to handle memory yourself
 
Yup.
 
Isn't that what I'm doing? I allocate when I need to, and now I'm trying to free every element I've allocated
 
1:06 AM
That's the joy of C.
 
but iterating over be it forwards or backwards is apparently bad
 
@Hosch250 what?
 
They said SO wasn't worth contributing to. I didn't think you thought so.
 
i think the idea that is being misunderstood is all three mentioned ways of modifying an array are possible, but some are less desirable than others, especially considering readability
 
@Hosch250 @nhgrif is the MetovaStackOverflowAmbassador, so he's biased :P
@MotokoKusanagi In all fairness, in C there's one thing most important above all else: it should work without side-effects.
 
1:09 AM
 
No memory-leaking, no off-by-one errors, no stackoverflows, no madness.
 
@MotokoKusanagi right, alright. again why is this better? maybe I'm just not grasping why going backwards helps readability.
 
C being high level is relative to what was available at the time (assembly), currently it is seen as one of the lower level languages — ratchet freak Nov 6 '13 at 9:01
 
going backwards is usually better because the actaual iteration counter doesn't need additional modification
 
^^
When you remove the first element of an array, the second element has become the first.
Which is awful.
 
1:11 AM
yep
 
If you go backwards and you remove the last element of an array, the last still is the last.
The first still is the first.
 
now that makes sense
 
No madness.
 
but now the question is.. does free() 'remove' an element, or just deallocate the space?
wouldn't list[4] still be 4?
things wouldn't really shift would they?
 
free will only deallocate memory
 
1:12 AM
As a C programmer, you should learn to read the specification. It's important with low-level languages.
 
@MotokoKusanagi right. so nothing is changing. how can the 2nd become the 1st as explained
 
you'll need to additionally modify your pointer storage
that's where linked lists are handy
 
So where you've thought you did two things at once, you only did one.
Increasing the risk of bugs.
 
hence my mention of KISS
KISS is an acronym for "Keep it simple, stupid" as a design principle noted by the U.S. Navy in 1960. The KISS principle states that most systems work best if they are kept simple rather than made complicated; therefore simplicity should be a key goal in design and unnecessary complexity should be avoided. The phrase has been associated with aircraft engineer Kelly Johnson (1910–1990). The term "KISS principle" was in popular use by 1970. Variations on the phrase include "Keep it Simple, Silly", "keep it short and simple", "keep it simple and straightforward" and "keep it small and simple". �...
 
And why I moved to C++ the moment I could, vector is awesome.
 
1:16 AM
well maybe i'm just stupid, but, i'm still not grasping the whole forward iteration is bad because the 2nd becomes the 1st when the only thing free does is deallocate. does this mean i should be using backwards iterations everywhere basically?
 
one reason to stick with c is you'll have a greater understanding of how things work "under the hood" before considering a higher level language imho
 
You should write your code as straightforward as possible with the least amount of surprising scenarios.
 
what are we even talking about?
 
@MotokoKusanagi Agreed. I'm a big fan of learning C before C++.
@nhgrif memory dereferencing
 
we are talking about modifying a list during or after iterating through it
 
1:17 AM
What year is it? Why not write in a language that takes care of it for you?
 
@nhgrif I have a struct bla list[] and when im finished i want to free correctly so i assume i just iterate over. i was told the top loop here is bad and the bottom loop is good because the top loop is a forward iteraiton
and because i don't have a choice
 
i think the what language is better debate is a dark road
@Insane just modify the list after iterating through it. easy to read, easy to debug, does the same thing as other options
 
@MotokoKusanagi what do you mean by modify the list after iterating through it?
 
@nhgrif Do they have Embedded engineers at Metova? If so, find one of those.
 
1:20 AM
No, we don't hire barbarians.
;)
 
what your doing there is not even what i had in mind
 
@nhgrif vents steam from both ears
 
Heh, I think we have two C programmers.
 
if all you are doing is freeing the elements, first to last is perfectly fine
 
And we have a few C++ developers.
 
1:21 AM
Some programs in some microcontrollers are better off being written in C than in C++ and as optimized as possible.
 
what i had in mind is you are modifying the actual array of pointers to memory
 
@MotokoKusanagi thank you LOL
I've been trying to get that across -- I was so confused
yes, all I am doing is freeing the elements
 
I made a PR to Roslyn! #10133
 
Still, it's a good habit to learn how your memory actually works and what you can and can't safely do.
 
1:22 AM
glad we got that cleared up
 
@Hosch250 Will it speed up the tests?
 
No.
It will actually slow them down. :P
 
Now who's the barbarian...
 
So, @Mat'sMug I've not got a tool at work... by the time I'm done with my work day on Monday, it will be impossible to have any Jedi Swift in any of our code bases. By the end of the week, people's code will simply stop compiling.
(I'm going to allow them a one week notice to fix.)
 
@nhgrif Order 66 in full effect.
 
1:23 AM
Indeed.
I actually said almost that exact thing in work chat on Friday.
 
possible answer invalidation by Jamal on question by Joe: codereview.stackexchange.com/posts/123976/revisions
 
What does the as! do anyway, and why do they allow it if it is so bad?
 
so... there are three ways to cast: as, as!, and as?
The first is only allowed if you're casting upward and it's guaranteed not to fail.
for example, given class Child: Parent {}, you can do this:
 
And as? is a safe cast?
 
let castValue = Child() as Parent
 
1:27 AM
So, as! is a force cast that will potentially throw?
 
as! and as? are used when casting downward
let castValue = Parent() as! Child
That will crash in this specific case.
If the cast actually could be made, for example:
let value = Child() as Parent
let castValue = value as! Child
Now castValue is of type Child, while value is of type Parent (but is really a Child).
But again, it's an unrecoverable fatal error if the cast fails (you can't catch it... Swift doesn't work like that).
The right way is to use as?, but it results in an optional
let value = Child() as Parent
let castValue = value as? Child
That will never crash, but castValue's type is now Child? (or Optional<Child>) and must be unwrapped before being used (if the cast were to fail, it's nil)
 
@nhgrif Oh wow.
 
@nhgrif Yup, I'm familiar with that.
That is like C#'s Nullable.
 
There are three types of force though.
This is just force cast.
 
1:31 AM
So, does Swift have a Null or Nullable types?
 
There's also force unwrapping (what Jedi's do on Christmas)
2
Swift has this:
enum Optional<T> {
    case Some(T)
    case None
}
Force unwrapping is when you unsafely unwrap an optional
 
Sounds scary. And you can't catch that either?
 
correct.
 
Why did they make it so you can't catch it?
 
The only thing you can catch in Swift is when the ErrorType is thrown.
@Hosch250 Because you're not supposed to catch idiot programming.
You're supposed to fix the bad code.
 
1:34 AM
Or a better question would be, why did they make it so you can force stuff that potentially crashes and can't be caught?
 
You can't catch errors that can be prevented by the programmer at compile time.
 
Oh, it tells you?
 
what tells who what?
 
@JeroenVannevel Doesn't load in 10 seconds here.
 
The compiler tells you when you can cast?
 
1:35 AM
Yes, the compiler knows when you can't use as (a guaranteed cast) and instead need to use either as! or as?
as! says "If this cast fails, the program should crash."
 
OK. I sometimes know in C#, but not always.
 
as? says "Give me an optionally-wrapped value that has a value if the cast succeeded or nil if it failed."
 
So basically, as! is as with silence compiler warnings.
 
Yes.
Except... with swiftlint it'll be in error in Metova code bases starting this coming week.
Force casting, force unwrapping, force try will all be errors.
Along with several other things. Most of the other things are style issues (and some can be autocorrected by swiftlint).
 
What's the point in try if you can't catch?
 
1:37 AM
You can catch things that you try.
 
If Jedi programming is disallowed, trying should be disallowed as well.
 
But you MUST try things that are marked as throw and the language will allow you to force try a method that throws which just crashes if it throws.
You've got that backwards, @Mast.
 
For the Jedi, there is no try. Do, or do not. For the non-Jedi, you must try.
We are not Jedi.
Order 66.
We must try.
 
lol
 
1:39 AM
But there's also a do.
enum FizzBuzz: ErrorType {
    case Fizz, Buzz, FizzBuzz
}

func fizzBuzzThrower(value: Int) throws -> Int {
    switch (value % 3, value % 5) {
    case (0,0): throw FizzBuzz.FizzBuzz
    case (0,_): throw FizzBuzz.Fizz
    case (_,0): throw FizzBuzz.Buzz
    default: return value
    }
}

for value in 1...100 {
    do {
        try fizzBuzzThrower(value)
        print(value)
    }
    catch FizzBuzz.FizzBuzz {
        print("FizzBuzz")
    }
    catch FizzBuzz.Fizz {
        print("Fizz")
    }
That's what do-try-catch looks like in Swift.
 
Seems sensible enough.
 
FizzBuzz in try/catch?
 
You can write FizzBuzz in anything.
 
Some FizzBuzz'es aren't as good as others.
The build on my Roslyn PR passed.
 
For what it's worth... there's no a performance hit in using try-catch for control flow in Swift.
I still don't recommend it, generally speaking, but nonetheless... FizzBuzz in swift probably does deserver a star...
But here's the cool thing about Swift. You can try in Swift in a few different ways.
Let's say you don't care about specific error cases, you just need to know whether or not it succeeded:
    let two = try? fizzBuzzThrower(2)
    print(two)
notice try?
fizzBuzzThrower is defined as returning Int (and marks as throws), but the expression try? fizzBuzzThrower(2) returns an Int?. An optional.
If there was no throw, the value two gets a value, otherwise it gets nil, but it's type is Int? and must be unwrapped to be used (some things, like print accept optionals)
But you can also do this...
let two = try! fizzBuzzThrower(2)
Similar to above, this let's us use methods that throw without the do-catch blocks, and this would return an Int. It wouldn't force us into an Int?.
But if an exception is thrown here, it is a fatal error and the program crashes.
but, with the swiftlint tool... try! is a compile time error.
 
1:55 AM
Interesting stuff.
 
So is as!, as well as any force unwrapping.
As to the question of why the language even allows it? I don't know.
Honestly, the unsafe way does tend to save a line or two of code here and there, but it's unquestionably not worth it.
 
0
Q: C# Try/Parse Skips Nested If/Else Statement

Rex LinderIm working on a project for school and I cannot solve this bug. When the first IF statement returns false, it doesnt continue on with the else statement but skips it and goes straight to my exception. Here's my code: private void btnSave_Click(object sender, EventArgs e) { // Declare...

 
If it were up to me, I'd not put them in.
Like, even if you run across a scenario when your app legitimately should crash if it can do what it's trying to do the safe way
You can make it crash in a more helpful way...
guard let myUnwrappedValue = someFooBarFunctionThatTechnicallyCanReturnNilButIfItReturnsNilTheProjectIsSeriouslyBroken() else {
    fatalError("Failed to do the thing that means an asset disappeared from your project last time you compiled.")
}
like...
guard let someImage = UIImage(named:assetName) else {
    fatalError("Failed to load \(assetName).")
}
I have lots of similar things to that in my code base, where we're trying to load some sort of asset that is bundled in the project at build time. If that constructor returned nil, it means the asset didn't get bundled in some how, and it should definitely crash... but I want it to crash in a way that it tells me what asset is missing... not just "Fatal Error: unexpectedly found nil while unwrapping an optional value" (which is what you get with force unwrapping)
 
Put it in a Code Review question.
 
@DanPantry @PinCrash
 
2:11 AM
huh?
Put what in a CR question? Try-catch FizzBuzz?
 
@nhgrif You have something about NSUserDefaults?
http://codereview.stackexchange.com/questions/123701/xctestcasewaitfalseexpectationuntiltimeout-implementation
 
@nhgrif Whatever know-how you feel like sharing.
Make them canonical-like.
@Quill Somebody was bored, that's nuts.
 
91 pull requests
 
five.async(function(err, five) {
    // five === 5
});
 
I wonder why they chose 5.
 
2:19 AM
hang on give me an hour
 
I was going to do a pull request for days and months, but seeing the massive amount of PRs....
@mixin link-formatting($color, $percent){
    color: $color;
    text-decoration: none;
    &:visited {
        color: darken($color, $percent);
    }
}
a:not(.navbar) {
    @include link-formatting($brand-color, 5%);
}
sass is cool
 
@Quill wtf is that Five thing
 
> A library to overcomplicate 5.
A javascript troll
 
lol
 
2:41 AM
0
Q: I need to make a checkers game with Java

Koumori NeoGuys im new at Java and I need to make this to get accepted into the school but I have no idea :( please help me

 
@CaptainObvious burn it
 
@CaptainObvious Don't go to that school.
 
I don't know how, but somehow, FileZilla managed to move my entire website in a subfolder o_O
 
0
Q: Simple address book C++ (Revised)

chris360After posting my original address book program I took the responses and edited my code. I have used every suggestion given, the code works great, and now I am looking for further review and suggestions from the Code Review community. Parent Class:(Person) //parent class #ifndef PERSON #define P...

 
@CaptainObvious That's not a simple address book. That's an OO address book. A simple address book is only a couple of lines.
 
2:52 AM
I'm not sure this is the kind of answer that goes on CR
0
A: Simple responsive page

CKH4This looks pretty good. px is the pixels relative to pixel density. The pixel density can affect the size of a pixel with <meta name="viewport" content="width=device-width, initial-scale=1"> where initial scale is the amount that the pixel density affects the size of a pixel. meta tags go i...

It's an explanation of CSS concepts
there's no review besides "this looks pretty good"
The question shouldn't be asking for explanation of concepts (even though it is)
> How do I make proper use of units like px, em, rem and %?
That shouldn't really be in the question, I'm gonna edit it out
 
I don't think you should. The OP is basically asking if their use of the units is good.
 
okay
 
Perhaps it would be best to leave a comment for the OP.
 
^^
It's not really reviewing the code either... other than saying "looks pretty good"
 
Unfortunately that qualifies as an answer IIRC.
 
2:58 AM
fair enough
 
Yes, but just "It's good" is not an answer.
The rest is not an answer at all; it's just some sort of reference.
 
I see a few weird things in the CSS
 
-1
Q: Can someone help me with a c++ linkedlist generic template implementation

user2976636When I compile the code I get the following errors (see below for the error messages). I tried everything that I can think of, but since I am new at C++ I am kind of lost. Thank you very much in advance for your help. My main.cpp #include <iostream> #include <cstdlib> #include "unorderedLin...

 
I don't think line-height is intended to style the size of a font
 
No, it's not
 
3:02 AM
@Smac89 It's not about NSUserDefaults.
It's about the fact that you're trying to unit test by programmatically tapping a button.
First of all, the fact that the only way to test it is by tapping the button speaks to bad design of the app in the first place (it's not properly modularize and reusable and not well-suited for testing).
 
@Quill This is like saying "it's a car because it has wheels, so it can stay in the garage (CR)" when in fact "it's a plane and it belongs in the hangar (SO)"
planes also have wheels
 
But you shouldn't be programmatically tapping buttons during unit tests. If you need to test something that requires tapping a button, it should be in a functional test using a library like KIF, or Apple's built-in UI testing framework.
 
I understand this. We have some UI tests in place, but our prof is insisting on testing all code which is why I am trying to test even the view controllers and the only way I know how is to programmatically press a button
 
Your "prof"? Is this for a class?
 
Yup
 
3:06 AM
And you can't refactor the view controller?
 
I'm just a tester. The devs are just piling code into the code base without any thought about testing
 
"the devs" = other students?
 
They have numerous view controllers and do not follow mvc pattern, so everything is kinda everywhere
yes
 
How was the determination made for who is a tester and who is not?
And what's the dynamic here? Are their teams? What's your grade based on (individually)?
 
Hey @PinCrash, you around?
 
3:09 AM
We all kinda picked straws on that one. I wanted to test because I haven't done it before
The grades are based on contributions in giithub
And other factors...the prof has a list
But mostly focused on how much you have done and what your teammates think of your contributions
 
-1
Q: How to count The number of locations with a score of4?

AdamsThere is a raster where each pixel has score from 0 to 4: - resArraySum. I need to calculate number of locations with a score of 4 in numpy Python. When I use function it gives 0.0: def computeFinalCondition(myArray,resArraySum): print "Executing Final Condition:" myArrayFinal...

 
If I were you, I wouldn't unit test things that shouldn't be unit tested. I would write a functional test for what you're trying to test here. And then I'd also prod your teammates into refactoring their code into more unit-testable code.
And importantly, I'd document that prodding by way of comments in github on the specific areas that need to be refactored for the sake of being easier to unit test.
 
I am doing this already and will continue, but I think most of them are getting tired already with all the bugs we are finding and the due data coming closer
 
> most of them are getting tired already with all the bugs we are finding
 
Thanks for the input, this will be an interesting 2 weeks
 
3:13 AM
This is 1000000% the exact reason why you write your code in a testable manner and keep it all well tested from the get go.
 
It still happens:
seriously, your name is rolf, not rofl??? what a dissapointment!! — vtd-xml-author 3 hours ago
2
 
Believe me, we all had good intentions to have this thing well tested, but the pressure of learning swift and the fact that we started with spike prototypes led to things being kinda rushed and people just trying to get something working
 
0
Q: Area calculator in python

ArchitektI'm pretty new with programming in general. Using python 2 right now as it seems most of the courses are teaching python 2 and not 3. I built this area calculator that will calculate square, rectangle, triangle, circle or trapezoid. I'm a little concerned about how I used the functions as well...

0
Q: Applying SOM + k-means clustering

sobhanCould you help me by suggesting how to apply Self Organizing Map (SOM) with k-means clustering algorithm on a dataset having categorical attributes?

 
@Quill Off and on, what's up?
 
I just updated my blog design, and I'd love some comments if you've got a few seconds and a spare eye
 
3:25 AM
That yellow background for quote blocks I find really tacky personally
 
yeah, the quote blocks are horrible, I need to update the code syntax formatting
 
And I think italicizing the font in code blocks makes it hard to read
(inside quote blocks)
 
Meh, it scores a +20 bonus for being called The 418 Status
 
This could use some CVs.
 
Yellow blocks are no great, but not enough to offset the name
 
3:31 AM
@Quill consider the "Contact Me" menu at the top, you may want to copy your Twitter (and possibly Github?) up in there instead of going straight to a mailto link, I personally expect that a link to a mailto (since it often fires another program / web site for mail) will either be an email address or something that says "Email Me"
 
okay
 
Other than that I think it's quite good
 
I'd hope you'd be okay with this as a mailto: button
 
Yes of course
 
Does anyone have something to say to this? I don't know whose side I'm on.
 
3:52 AM
0
A: iOS SDK object to represent a place

nhgrifYou're trying to solve a solved problem. Just use CLPlacemark out of Core Location. It has already solved all the problems you've brought up in your question: how to handle international addresses, what all the necessary fields are, how to handle missing fields, and how to interop with Swift. ...

 
4:04 AM
Mar 23 at 16:07, by Mat's Mug
♪ let it go ♪
2
 
0
Q: Emacs vs Vim, which is better? (SOLVED)

tacWhich is better - Emacs or Vim? Let's decide once and for all which is better: Emacs or Vim. You ready? USING: formatting http.client kernel math.order math.parser regexp sequences splitting strings urls.encoding ; IN: google-fight ! a word for googling things and getting the number of resu...

0
Q: Cyther: The Cross Platform Cython/Python Compiler (Take 2)

nickpandolfiI recently posted an earlier version of this code on Code Review, and now with the given suggestions and many other improvements, I am back. I included the description of exactly what Cyther is supposed to do inside of my source code. My objective is to make sure that this code is as cross-platf...

0
Q: Having trouble implementing OFB using DES from openssl

user101314I am trying to implement an OFB block cipher using DES, and it is not working. #include <stdio.h> #include <stdlib.h> #include <openssl/des.h> #include <openssl/rand.h> // With DES, the same function encrypts and decrypts, so this is all that's needed for DES // using the OFB method void desofb...

 
4:38 AM
 
0
Q: Password randomizer

NebularMy code only randomizes the length of the password, I need it to randomize characters within the string. I can't seem to use substring effectively. The exercise I'm using uses charAt for a tip, but this singles out only one character, I need 13 of them. The main: public class Program { public s...

 
5:18 AM
0
Q: Counting the occurence of each element from an array

vasanthTo solve the problem, I sorted the array first and calculated the number of occurences of each element from an array. But I am getting exception while it tries to calculate and print the last index element. It prints the previous in fine manner. Could someone help figure out why am I getting that...

 
5:45 AM
I just ripped out Bootstrap's nav code so I can use it without the rest of it
800 LoC for a nav bar ;-;
6 people in the room...
 
00:00 - 06:0006:00 - 00:00

« first day (1058 days earlier)      last day (2952 days later) »