« first day (444 days earlier)      last day (3565 days later) » 

12:12 AM
hey can anyone teach me how to rewrite urls for my url shortener
i want links like: gus.netii.net/.... not gus.netii.net/?l=...
using .htaacess
 
12:31 AM
0
Q: Find all collection properties of an object and get their values

AlexI have a chunk of code that get's all of the ICollection properties of the passed in object and then takes all of their values and adds them to another ICollection. End goal is to see which properties have child objects in them and thus finding out how many dependents the object has. The object i...

 
Let your URL shortener script be named index.php, and have it read $_SERVER['PATH_INFO'] instead of $_GET['l'].
 
did it
try it now
gus.netii.net
 
12:48 AM
Hi again
 
0
Q: Moving the player across an ASCII art "world"

Vladimir PutinWow, this one is definitely going to need some improvement. So, just for fun, I decided to make a program where the player moves across a 2-dimensional ASCII-art map. If the player types something such as down, the on screen representation moves down and "loads" a bit more of the map. from con...

 
hi!
 
@rolfl really good answer on that, I hope he accepts it because it's better than mine :)
Hey Mug! Saw your message saying you had something for me at some point?
 
yeah, I'm running into a weird issue with MySQL
remember "Put it in a bucket"?
that was for orders
now I have a similar problem, with invoices
so I went with your idea
 
It puts the Joe Dirt in a hole.
 
12:55 AM
lol
 
Is it working OK?
 
so I'm selecting substring(sizedInvoiceUnits, [1], 5) as Size1 and so on
it works, but the whole ETL (minus this query) runs in about 3 minutes - that one alone takes 7 minutes
there's ~250K records
and the select is a huge case when
 
@Jamal, it looks like BWG is on the wrong exchange. I thought I was reading a review for a second.
3
A: Passing an object through a constructor?

BWGintArray::intArray(intArray& input){ input.iArray[size] *= 2; input.size *= 2; input.arrUpper *= 2; input.arrLower *= 2; } This is incorrect. Since you prefix everything with input., you are modifying the original which is not what you want. Just copy all the old values, but ...

 
@Mat'sMug thought of writing it into a procedure and run into against a small number of records (to figure out exec plan) then run it on a larger set?
 
^No bueno. It could pick a different plan on a smaller set of data.
 
12:59 AM
that's interesting
anyway the thing is, after 600 seconds (10 minutes) of running the "master" procedure that calls every other...
I get some timeout error in the output pane
 
@ckuhn203 And I was about to review the OP's code. :P I was still a bit nervous to post another answer. I'm quite surprised that I still got an upvote.
 
but the connection is still alive and the query is still running, and it even completes
WTF
"Lost connection during query" or something like that
 
I wonder how many exec plans it could come up with to do substring. Maybe try a temp table for your result set for your case when and make it do the substring on that in a separate step?
 
So wait... It times out, but the query doesn't cancel?
 
@ckuhn203 exactly
 
1:03 AM
Lol @Jamal. I can't even peruse the vba tag on SO anymore. I want to rant about Hungarian notation and proper indentation. It's bad...
 
@Mat'sMug you may check the Monkey's answer maybe you will find something useful?
 
Not review, rant. =)
 
If nothing else upvote his so it shows above mine because it's better lol.
 
@ckuhn203 I could pretty much only pick out the easier questions, and I know that SO's C++ community can be quite tough.
 
@Jamal you put SO and community in the same sentence... that's a syntax error.
4
 
1:05 AM
@Phrancis oops, finger slipped.
 
@Phrancis, there are several communities barrios over at SO. =)
 
compare selfie answer to the code posted in the question, and go WTF:
1
A: Good practice for client code to MVC WebApi service

PEKNow I will answer myself, hopefully someone else has use of this. When it comes to the server side, I'll let it be like it is. Using HttpGet could be useful for caching so that's a good thing. The client code works but it's a bit messy so decided to clean it up with some simple helper classes. ...

 
hello... good morning
 
monking!
 
@Mat'sMug, here ya go. Here's a for ya. My Little Pony language. Someone posted it here last night. docs.google.com/document/d/…
 
1:12 AM
12
A: What's a Zombie? And what are the many other memes of Code Review?

Vogel612Meme: Monking Originator: Morwenn Cultural Height: The 2nd Monitor Background: A morning greeting to the Monkey doing his monkey-business, in other words: monking Examples: A small chat search

@ckuhn203 wut
 
Monking @h.j.k.!
 
hahah monking @Mat'sMug and @ckuhn203
 
Seriously. Someone spec'd out a My Little Pony language.
 
do we have a tag for that?
For every number x from 1 to 100,
I said x!
That’s what I did.
I'm so making a
Dear Princess Celestia: Letter One.
Today I learned how to sing Applejack's Drinking Song.
Did you know that Applejack likes the number 99?
As long as Applejack had more than 1…
I sang Applejack" jugs of cider on the wall, "Applejack" jugs of cider,".
Applejack got one less. (Jug of cider)
When Applejack had more than 1… (Jugs of cider)
I sang "Take one down and pass it around, "Applejack" jugs of cider on the wall.".
Otherwise: If Applejack had 1… (Jug of cider)
I sang "Take one down and pass it around, 1 jug of cider on the wall.
4
 
Someone star that please^
 
1:20 AM
is there an IDE?
 
I'm not sure there's a compiler.
 
@ckuhn203 RSA
 
1:25 AM
@ckuhn203 NO! Why have you shared this!? xD
 
lol
 
Because it's awesomely mind melting @AlexL!
 
@ckuhn203 We could ask the guy? :D
 
No compiler yet. Just specs. =(
 
aw
 
1:27 AM
Nothing on Ideone, either.
 
Dear Princess Celestia Today I am sad.
 
where's the modulo operator?
ah, in the to-do list
 
> If I have no pants and I must scream then: I would scream without pants.
 
It looks like it's going to be JS compiled...
 
..alongside Constructors, Try-Catch and... a compiler :)
> Two propositions for compiled files are already completed, working on interpreters
 
1:31 AM
> Compile to generic JavaScript, runnable by anything that can interpret it
 
the compiler will not be a compiler, it's going to be a sender
> A compiled file should be referred to as a sent letter. Therefore, compiling should be referred to as “sending”.
 
> A .FR file (abbreviation for "Friendship Report") is proprietary FiM++ bytecode and must be read and executed by a virtual machine.
 
You know the worst thing about C? The horrendous Segmentation fault.
I hate those things.
 
forget , C stands for Celestia now!
 
And here's another proposition:
> so I'm just going to work on translating files into Java and C++.
 
1:32 AM
I wonder what Hungarian notation would look like with FiM++...
2
 
I can't wait to see the day CR has its first question!
 
Wait... is it strongly typed or weakly typed?
 
talk about readability!
2
 
wat is fim
 
a better joke than
 
1:34 AM
@Jamal Strongish...
 
Friendship is Magic ++
 
> so "Twilight's number" is bad, but "Twilight's Number" is good.
Twilight being the variable name
 
@AlexL Haha
 
I keep cracking up when I read something like "Mane article" in the docs
 
yeah
 
1:38 AM
I'm afraid that even if someone were to study the docs well enough, no one can properly test it without a compiler sender.
 
I think I found out.... parsing mechanism (?): code.google.com/p/pony-lang/source/browse/…
 
and I thought VB6 was going to be hard to parse...
 
Someone had a lot of time on their hands...
 
Someone is going to say that this is better than PHP.
 
^^ that
 
1:43 AM
 
@Phrancis He's in college
Oh shit! It's a she!
She's 23 y/o
 
@AlexL you know the authors?
 
I know that her birthday is January 28th....
There's an about page
 
Did you know that numbers have many names?
number 1 is “fizz”.
number 2 is “buzz”.
number 3 is “fizzbuzz”.
 
Take that Segmentation fault!
 
1:46 AM
@syb0rg sorry for the zero-support these couple past minutes ;)
 
@Mat'sMug Ehh, I defeated it anyways.
 
This isn't as low-level as C++, right? I'd hate to see how memory-allocation is done.
 
@Jamal I was testing an application where I had to allocate memory for a char**
 
Alright everyone, there actually is an official FIM++ interpreter. It's made with Scala...
2
Who will make the first tag?
 
gets some popcorn
 
1:51 AM
I got a star on this question, yet still no answer: stackoverflow.com/q/24876497/1937270
Everyone probably gave up on it and went for lower hanging fruit.
 
@Phrancis Off-topic according to the help center.
 
Hm. Graphic design SE maybe??
 
@Phrancis I think it's in the right place, I just need to be more patient ;)
 
Probably. I guess whatever is off topic in all other technology SEs eventually rolls downhill to SO lol.
 
1:58 AM
The garbage dump of Stack Exchange: Stack Overflow.
3
 
@syb0rg isn't it more of a "how do I do X?" question?
 
Focus... Beer then finish & post FizzBuzz.
 
@Mat'sMug Somewhat. I did some research on animating SVG's before I posted it to SO, but I honestly couldn't figure it out with what I found.
 
I can visualize the effect you're trying to achieve, it's going to be very nice.. when it works ;)
what do you get with the code you posted on SO?
oh wait, the code is the drawing
 
Yep
 
2:04 AM
is there a way to get ahold of any of these elements?
 
@Mat'sMug From the research I did, I've already started it with the class="electron" label.
Then I can access that from the CSS stylesheet.
But from there I'm clueless
Perhaps @MadaraUchiha or @DaggNabbit would know what to do? stackoverflow.com/q/24876497/1937270
 
first thing that comes to mind, is a callback on scrollbar movement, where you use the scrollbar's Y-position to determine the electron's Y-position; you know where you want to start and where you want to end, have you noted both "d" values somewhere?
the function calculates the X-position with some nice math involving pi :)
or, it's simpler than that.
 
@Mat'sMug Howso?
 
no clue
 
2:10 AM
Actually, this looks more relevant!
 
@AlexL So instead of animating indefinitely, how would I animate with the scroll?
 
@syb0rg A jQuery plugin is needed I'm pretty sure, try keith-wood.name/svg.html
Or perhaps snapsvg.io
 
@AlexL This one looks a lot nicer.
 
Just found this one too documentup.com/wout/svg.js#
I'm looking briefly for an "animate along path" function, but it looks like you may need to tinker a bit
 
2:27 AM
@AlexL Keep in mind that I am trying to do as much of the animation in CSS as possible, since that is going to be more efficient than JS.
 
2:41 AM
0
Q: Repository and Unit of Work asp.net/mvc/tutorials

Abu HamzahI'm so confused after reading so many blogs I'm still not sure which way to go and I need help with Repository/UOF pattern using EF 6 as i was following the example here asp.net/mvc/tutorials and I got stuck in Creating the Unit of Work Class here, why is that author creating repository Departme...

 
0
A: Rational class to handle fractions

nhgrif@interface Rational (privateMethods) -(int) gcd:(int) a: (int) b; -(Rational*) simplifyFraction:(Rational*)fraction; @end This really should be a class extension rather than a private category. A class extension means leaving the parenthesis out, and perhaps more importantly it means if we a...

 
@CaptainObvious tempted to close as a dupe
 
@nhgrif Wow, history!
 
Anyone interested, first time my music work has made it to YouTube... vox and guitar by artist Jacob Resch, everything else I made
 
@rolfl Jamal bumped it earlier with a title edit.
 
2:47 AM
@Phrancis including video?
 
No video is not my work
Some local videographer Jerome McIlvoy, he's good
 
Yeah, it's all good.
 
Artist said they did like 10 takes of this whole song in 10 different shots/areas
I notice a lot of the camera work looks handheld as opposed to fixed, I suspect Jerome chose to do this for effect
 
My cousin is musical/artsy .... it reminds me of him, though he's more in to electric celo
 
"handheld" I'm sure is not the real term but you get my jest
 
2:51 AM
Yeah, I call it blair-witch style
Funny, I discovered my boss has an imdb profile.
 
I'd be curious to hear any of his stuff, this electric-string instrument is sort of a new thing
 
not a profile, but a credit
 
So, future warning...
Don't bump an Objective-C post I haven't answered and then be surprised when I answer it...
3
There are a few I've not answered but looked at multiple times trying to come up with a good answer... but mostly, I just haven't looked at most of the answered questions... and there's probably plenty that lack an actually good answer.
 
0
Q: Couldn't match type Haskell

JuanI get this error when i run this haskell code! It need to return a list of lists, but i get problems when im concatening 2 lists in 1 list like [1,2] with [3,4] = [[1,2],[3,4]] map_of_enemy :: [[Int]] -> [[Int]] map_of_enemy [] = [] map_of_enemy list = (iniciar (0) (0) (list)) iniciar :: Int ->...

 
@CaptainObvious off topic?
 
3:03 AM
Already got it
 
Anyone JS savvy here?
 
@jt0dd Well hello there!
 
0
A: How can I quickly find unique list items?

megawacIf you can assume the collection is going to be large you can use ES6 Set function uniques(array) { var set = new Set(); var result = []; for (var i = 0, len = array.length; i < len; i++) { var val = array[i]; if (!i || !set.has(val)) { set.add(val); ...

 
When was the last time @konjin was on here?
 
This answer suggests an EMCAScript6 solution
Is that valid? Doesn't work in my browser, although I guess Node.JS may support it somehow.
EMCAScript6 (JS 2.0) is brand new, and barely supported anywhere yet. I'm surprised to see it as an answer.. I'm just curious as to whether or not that sort of thing should be suggested as a review at this point. kangax.github.io/compat-table/es6
 
3:12 AM
@jt0dd If you feel the answer is worthy of a downvote, you do have the reputation to do so (though I feel as if that is a bit harsh).
 
@Mat'sMug: Looks like you were right: no reversal. I'm glad to be at 15K. :-) Goals for the end of the year: reach 20K and/or earn the goldie.
 
:)
 
@Mat's knows how to vote
 
don't I
 
@jt0dd - about the ES6, an interesting question
 
 
@jt0dd If his benchmark is valid though, it is the most optimal solution posted (despite not being portable).
 
@Jamal oh shit no
 
Hey @Jamal I got a question, out of curiosity... When I see your name I hear (in pseudo-phonetics) "juh-mal" but when I saw I hear "jam-uh-lie-zed" can you clarify? :)
 
You should probably call it ECMAScript and not EMCAScript ;-)
 
@Mat'sMug Okay... all but C++. :P
 
3:15 AM
@Jamal - Mat's is now a business analyst, by definition he knows everything
3
 
@Phrancis It's the former.
 
^^^^ off to propose a new variant
 
@rolfl lol
 
So @Jamal "juh-mah-lized" is correct then eh?
(ish)
 
@jt0dd - it's interesting because similar things happen in other languages.... like @skiwi is always keen to throw Java8 solutions on to old Java questions, and others throw C++14 answers on to C++ problems that are written in non C++14 compatible ways
 
3:16 AM
Yeah, pretty much. :-)
 
@rolfl 1995 - Brendan Eich reads up on every mistake ever made in designing a programming language, invents a few more, and creates LiveScript. Later, in an effort to cash in on the popularity of Java the language is renamed JavaScript. Later still, in an effort to cash in on the popularity of skin diseases the language is renamed ECMAScript.
 
EczemaScript?
5
(what your dermatologist prescribes).
 
Another milestone reached today: 1K total downvotes.
2
 
I have 86 downvotes to my 5024 upvotes
 
Just hit 100 First Post reviews!
2
 
3:23 AM
@rolfl erm yes, ECMA
 
@Jamal you might have a %contribution to site's total downvotes, ...in the double-digits!
oh
 
Do you guys think we really need the tag?
 
You've earned the tag badge
2
 
@Mat'sMug Wow first one, and only 143 questions asked!
 
yay!
 
3:26 AM
@AlexL I am OK with that.... it's a cross-language concept that currently has 1 follower ;-)
 
Ah, ready for review:
non-working code, off-topic
 
@rolfl What about ?
 
here
Dear Princess Celestia: Letter 1 :

Today I learned about FizzBuzz Game:

    Did you know that That's Fizz likes the number 3?
    Did you know that That's Buzz likes the number 5?
    Did you know that That's FizzBuzz likes the number 15?

    I learned Fizz with Rainbow Dash:

        Did you know that Raindrops made remainder of Rainbow Dash, That's Fizz?
        When Raindrops is equal to zero:

            I sang "Fizz!".

        That's what I did.

    That's about Fizz with Raindrops.
2
 
@jt0dd How long ago did you join Stack Exchange?
 
3:32 AM
Smoking manuals FTW ... .princess!
 
@Mat'sMug Gonna post it for review? ;-)
 
it's itching
on meta? lol
 
@Mat'sMug Did you that ??
 
just did
 
20 bucks that 200 will be able to review it.
3
 
3:33 AM
@Jamal is a decent tag in principal, but it is applied wrong .... the only meaningful use of it is for C's sruct, and it's never been used for that
 
@rolfl Agreed, for other architecture questions, I think is usually a common one
 
@rolfl True. It doesn't seem too different from [data-structures]. I always thought was more of a meta tag.
 
@rolfl structs are too prevalent in C code. It could almost be applied to every question.
Maybe not every, but a lot
 
Well, if you look at the excerpt / wiki, it lays out what it is for, and I would agree with that, but then look at the questions
(except for the overlap)
 
@Mat'sMug
 
3:37 AM
@rolfl Okay. Should we still clean it up? It's not a very large tag.
 
Jamal, I am flip-flopping
 
I'm thinking to synonymize with
 
This is about the only question that is appropriately tagged....: codereview.stackexchange.com/q/33470/31503
 
Which would still fit into
 
The synonym is a bad idea without a clean-up first.
 
3:42 AM
@rolfl I'll get to working on it.
 
At the same time, we can clean up before we burninate it.
 
There is a second question where structure makes sense, also in a context: codereview.stackexchange.com/questions/7912/…
@syb0rg - ^^^ look at that one
 
And should we go ahead and approve <- ?
 
yes
The system deals well with duplicates in the tags, right?
 
I wanna help, what do I need to do? :D
 
3:44 AM
Vote!
Oh, with the clean up?
 
@rolfl It would easily fit into
 
@rolfl Yesss
 
Take this list of 35 questions..... take random ones, and delete the struture tag unless the question is about a data structure, in which case, it may already have that tag, and if it does not, then rename the to .
If the question is 'is my code structured OK', then remove the structure tag.
 
And chuck a few votes at the questions and answers while you are at it ;)
 
@syb0rg Always will, thankfully I ran out of votes about 10 minutes before my refill!
 
3:49 AM
Also, rmove thanks, and other crap in the question if you see it.
@AlexL - helpful hint:
editing just the tags does not count toward editing badges
 
...and I'll perform a check of each edit. ;-)
 
@rolfl Yeah, I know
 
Oh yeah, another important one: answer-invalidations. But if you're unsure of one, let rolfl or I know.
 
Also be aware of the tag when cleaning up the tag.
 
@syb0rg I joined some time this year. Why?
Well, in the past 12 moths
 
3:55 AM
@jt0dd Curiosity, you seem to be very experienced with the use of the system.
Though I am curious as to what happened to your SO account.
Got tired of it?
 
Ah. I focus on systems. And I'm OCD. I asked over 100 SO questions, many of which were not of high quality. Imperfections.. bother me. So I deleted it and created a new one, to ask good questions on this time around.
 
It is unusual to see people with higher meta.se rep than so.rep.
 
@jt0dd And did you discover Code Review recently?
 
@syb0rg a while back, but it wasn't of much use to me until recently, when I grew better with javascript, focusing on code principles such as decoupling, inversion of control, etc
@rolfl I think in my case it was this post that did it:
34
Q: Should Shift + Spacebar create a tab indent in SE?

jt0ddI asked a discussion question about whether or not giving tabs formatting functionality would improve UX, and after trial and error on this solution, would like to present it as a feature request. According to Anna Lear ♦︎, if we get some support for a method of doing this that doesn't screw any...

 

« first day (444 days earlier)      last day (3565 days later) »