« first day (543 days earlier)      last day (3475 days later) » 

12:23 AM
@Pimgd Somehow this video makes me think of you: wimp.com/hummingbirdshower
 
12:38 AM
Wht do birds do in the rain? Get wet... ;-)
 
0
Q: Monoid Instance for `a -> b`

Kevin MeredithI attempted to implement a Monoid instance for a function a -> b. instance Monoid (a -> b) where mempty f = f mappend f g = g . f Please critique it for correctness and style. In addition, I'm curious how mappend should be implemented. Should f or g be applied first?

 
@CaptainObvious Oh how I really don't understand Haskell...
 
12:59 AM
thanks @mjolka for the help. used Contains() to do it.
 
@Mehrad np :)
 
1:37 AM
0
Q: Sockets and networking for a multi-platform game

glampertI'm in the process of adding network support for a little Mac & Windows game I'm writing. Today I've finished the basic sockets plus a few other network helpers and would appreciate having the code reviewed. Networking/Sockets.hpp: #pragma once #ifdef _WIN32 // Windows, any version: #i...

 
2:19 AM
0
Q: whats wrong in my code? (gml)

bobok so im sorry to be asking, however im trying to make it so that when i press z, a portal appears at my Spr_players coordinates, however if one of them already exists, i want it to be erased and im simply wondering what ive done wrong. Again sorry for bothering. (please note that i am a bad prog...

 
whats wrong in my title? (fml)
 
lol
2
 
0
Q: Are the codes overdone with 'program to interface' concept?

furorThis is my first post. I have to take over an old project that was coded in VS 2010 C# 4.0 recently. Interface programming seems to be all over the place and over-applied to me, but I am unsure if it is that way. The purpose is to get input from fellow programmers and seniors alike so that I can...

 
 
1 hour later…
3:41 AM
0
Q: Unix: find-grep-sed for project-wide search & replace

ivanI always forget how to do this efficiently with Vim's arglist. Drawing inspiration from a post over at stackoverflow, I wrote a Bash function to perform a project-wide search & replace. It does the following: find files matching a file-pattern narrow down to those files containing a search-pat...

 
morning peeps. or night if that's your time
 
it's afternoon here. so insulted
 
:O
 
4:33 AM
@Gemtastic Monknight
 
@Phrancis the monk life of a programmer
 
4:43 AM
Do you people have any recommendation for a free anti-virus software?
 
0
Q: Combining IF statements

ZanderwarNot exactly a complete script but still a worthy question Take the following code for example: if ($var == 1 || $var == 2 || $var == 3) { // do if true } Is it possible shorten this, like so: if ($var == (1|2|3)) { // do if true } I'm always looking for ways to speed up development and if ...

0
Q: Find boolean operator logic

srinivasa KankipatiWe get the search string from UI, based on the search parameters we need to create a backend query, this is similar to "Feed Item Query Language(FIQL)". I have wrote the code to find the boolean operators in the search parameters like "||" (or operator) and ";" (And operator). The code is working...

 
5:09 AM
I'll take that as a no :P
 
5:27 AM
@Gemtastic I use software that came with my computer and is exceptionally good at stopping computer viruses. It's called MacOS. :-)
 
Yeah, I want something free, not something super expensive ;P
 
TANSTAFL
 
6:25 AM
Monking @all
 
Monking @Heslacher
 
0
Q: Implementing template map class

William DiuguidI am creating a netflix-type program and I already have a map class with the form template <(class keyType, class valueType)> class Map I need to create a movie class and I think the movie title and keywords(like type of movie and starring actor) need to be added to the map. I'm thinking I need...

 
6:52 AM
0
Q: Run time error in spoj's prime1 solution in python

user2738777I am able to get the correct outputs on my Ubuntu system but getting run time error when i submit the solution.I am using python3.4 for the same.Here is my source code. t=int(input()) i=0 while(i!=t): list=[2] number=3 counter=0 limit1=int(input("")) limit=int(input("")) ...

 
7:14 AM
2
Q: AngularJs - Dynamically load assets (css+images+controllers) on route resolve

emcI wrote a little factory to dynamically load assets in angular resolve. I was wondering if it's well structured and if it can be made prettier? app.factory('loadAssets', function ($q) { var jsPath = "scripts/", cssPath = "css/", imagesPath = "images/", head = documen...

 
7:28 AM
monking @all
 
Monking @janos
 
Monking @Heslacher
 
7:46 AM
Monking
@CaptainObvious Tempted to hit OP in the face, when I see him somewhere...
ermagherd
"Inherently hard to know what's on topic" - Read the frigging help-center.. that's what it's there for
 
Monking @Vogel612
 
Monking
 
8:22 AM
0
Q: Maya Exporting Issue

dissidiaI need someone's expertise on this exporting problem and I am stuck in this for days. Also I am very new to Maya API so to speak, and have been trying to avoid to touch any-API related in the script. How it works: Select a camera (animated or not is optional) >> File >> Export Selection >> File ...

 
8:50 AM
@furor it seems you have misunderstood what we define as a code-review. We do not help you understanding code given to you, so you can refactor it or add new features. There is a proposal: "Code Understanding" that fills exactly this gap. Sure your code is reviewable as a CR question, but I don't think that this question will get answers along the lines of what you expect — Vogel612 10 secs ago
ermph..
 
9:31 AM
0
Q: Should we Drop [ETL]?

RubberDucketl currently has no wiki and three questions. It was mentioned that it may be a rebel tag. For those that don't know, ETL is an acronym for Extract-Trsnsform-Load and is a term heard often in the database world. The problem I foresee is that you could potentially tag 50% or more of the sql ques...

 
Monking
 
Monking @Yann
 
After talking to a colleague for 10 seconds this morning, I think I've solved the problem that I spent all of yesterday on
 
rubberducking yeaaah
 
Not so much: I got the units of a command wrong and the man pages didn't enlighten me
 
But the languages are vastly different. The entire display engine is rewritten. Imagine AWT, swing and JavaFX were built into the language... AS1 = AWT, AS2 = swing, AS3 = JavaFX. And everyone has their imports hardcoded. — Pimgd 10 secs ago
AS1 has no classes.
 
@Pimgd, you're the domain expert here. I was literally just playing devil's advocate for the sake of discussion. I personally think you made a compelling case. — RubberDuck 1 min ago
Monking @all.
 
I'm not saying your argument is bad;
 
Likewise.
 
I'm saying that "these are the circumstances, do you still feel your position to be a valid one in these circumstances?"
 
9:58 AM
Truthfully, I agree with the currently upvoted answer. I just felt it was good to have an opposing view on the meta.
@Ducky is a Gemini. =)
 
It's the only language I know that has that much of a rewrite
the other one could be ColdFusion, but there they have and , which are two different ways of coding. Neither is removed in language version updates, just extended.
 
I guess the question to ask is, "Are the versions different enough to be considered completely different languages. "
 
Yes, because most AS2 code simply doesn't compile in AS3
 
Monking @RubberDuck
 
_root is undefined
and I think attachMovieClip is undefined as well
 
10:02 AM
Well, the Mug makes a pretty compelling argument here too.
16
A: The [java-8] tag, here to stay?

Mat's MugNO, it shouldn't exist, not even be a synonym! c# has major differences between versions, too. And yet, the only C# tag we have is c#. How do we address this? C# 2.0 introduced generics. Enter the generics tag. C# 3.0 introduced linq. Enter the linq tag. C# 4.0 introduced the Task Parallel Li...

 
so all your display code explodes in a horrible ball of fire that can't be rewritten
 
Monking @Heslacher. Thanks for the edit.
Anyway. Gotta go get the kids ready. Ttyl.
 
Monking
:( No rep this night for doing nothing at all
 
poor @skiwi
btw, are we gonna reopen this question or aren't we
 
To reopen or not reopen
 
10:14 AM
Can it have a different title that doesn't involve the phrase "The codes"?
 
@Yann you do have edit privileges, right??
DIY ;)
 
Lol, while looking into an old exam I see it titled as "exam 011110"
 
I'm scared. What if I mess up?
 
I'm thinking, are they giving it binary names? Turns out it's just the date.
 
Monking @skiwi
 
10:19 AM
I did it. Did I do it wrong? :P
 
@Yann it's a good start ;)
 
I'm thinking that I should post more questions to CR
I've been slacking for a while
 
> Overly interfaced or not overly interfaced?
^ current title
 
Nice title ^
 
My stomach is churning so loud it's bothering my co-workers
I have had breakfast
 
10:27 AM
Lol
 
gurgle gurgle
so I ate a 100-150g chocolate chip cookie
It's still kinda gurgly
It sounds like my stomach is starting a rebellion of sorts
and will only be stopped by food
So here's something I've been wondering about for a while
This is a screenshot of the related section of User Experience stack exchange
A question that has been answered has a 3d-ish icon.
can we get that on other SE sites too?
 
10:43 AM
y u no ask on MSE??
 
I will do that
 
It makes sense though
 
apparently, it was implemented and rejected.
 
If they didn't have a slightly better user experience, something would be wrong :P
 
okay so apparently it can be done.
Do we want it on CR?
 
10:46 AM
I'm up for sorta-3d.
 
erm
 
I love 3 dimensions.
It's my 2nd favorite number of dimensions
 
that's Meta Stack Exchange's way of doing it
 
SO doesn't differentiate. I'd never noticed that, that's a bit odd
 
server fault
programmers
So there's plenty of different ways to do it
TBH for Code Review I'm not sure
since there's multiple valid aspects to review.
 
10:58 AM
0
Q: Exception handling class design and usage

Zougen MoriverIt's only simple, but is going to be part of a set of boilerplate files for future web projects, so I'm keen to get some feedback. I should mention that not all exceptions will be left to this handler - this is for any that fall through the gaps during development. E.g. if my router throws a pag...

 
11:16 AM
Guys, imagine you have a library that comes with a set of source files
These source files, you have to fill them in yourselves (like an adapter design pattern)
Would it be bad if there was something like
 
0
Q: addtion in java

deepCreate method named "performAddition()" which takes 3 integer values as input from the user and returns addition of those 3 numbers. {{{{{ I have done till here }}}} plz... help me with this part as i am new to java i didn't understand However, if any of the number is equal to the other one, i...

 
/************************************************************************/
/*Below this line, implementation not required if wifi is not supported.*/
/************************************************************************/
in the source files?
the methods are all stubs with things like return false
Cause the alternative is adding "Implementation is not required if wifi is not supported." to each function
I should add, it's C
 
How big is the file?
 
so I can't just subclass something and give them some enum to pick a value from
 
As in; how easy is it to miss that comment?
 
11:25 AM
183 lines, stub methods with comments
#include "unabtoCameraInterface.h"

/*Get the supported wifi types of the camera. Combine flags with |.*/
uint8_t getSupportedWifiTypes(){
	/*VENDOR-TODO implement.*/

	/*0 means no wifi is supported.*/
	return 0;
	/*Example for supporting all wifi encryptions that have a password:*/
	/*return WIFIENCTYPE_WEP | WIFIENCTYPE_WPA_PSK_AES | WIFIENCTYPE_WPA_PSK_TKIP | WIFIENCTYPE_WPA2_PSK_AES | WIFIENCTYPE_WPA2_PSK_TKIP;*/
}

/*Retrieves whether the camera supports Wifi-protected Setup via push button configuration.
 
Should be okay if it's fairly obvious
 
that's the start of the file
so I think it's pretty hard to miss
 
Do you have anyone nearby who you can get to look at the file who doesn't know much about the project that you can ask what they'd implement if {X}?
where X is a, b, c, AND NOT WIFI SUPPORT
 
the rest of the file contains functions like "startWifiScan" "connectToWifi", "isWifiConnectDone", "testWifiConnection"...
you run into a semantical error if you try to implement them when you don't support wifi.
 
Oh, well, if you're wasting your time implementing those when you don't have wifi then you deserve it :P
 
11:29 AM
@Yann contrast Microsoft's windows api
I recall functions that take 40 NULL arguments
 
0
Q: Ruby code refactoring for Easter calculator

dimitryeuropeI have code for calculating date for orthodox Easter and it makes me cry when I look at "if-else" part. Please give your suggestions on how to make it shine(if possible). I guess I can format day/month to DateTime format but I'm affraid it'll bring just more mess. It works just fine though: htt...

 
12:16 PM
crickets
 
ribbit
 
Monkeyfrog
 
What's the monkey say?
 
@RubberDuck ribbit, naturally.
 
ichy ichy ribbit fetang!
Monking all.
 
12:20 PM
 
wat
 
Please tell me you've seen that at least 10 times before .....?
What's this wat thing?
 
I don't know when the fox thing started
but I think it was during one of those periods I really liked one of my games
I basically get home, boot the game up and play until interruptions
 
Ahh, one of those games.....
 
so when I got back to browsing sites it was like "what does the fox say?" <annoying flashy gif>
and I was unamused
 
12:25 PM
Norwegian high-class TV production
 
Given that I am a monkey, who's half-Norwegian (and also half British, all South African, and fully Canadian), I can understand.
 
similar things have happened to me before including Portal memes (spaaaace) and some internet explorer / firefox advert that had weeeeeeeeeeeee in it or something
If you don't get the reference it just looks silly
 
Huh, the weeeeeeeeeee does not ring a bell.
 
hence flat what
 
just looks silly
 
12:26 PM
I have no idea whether that's the original... not likely
 
0
A: This brittle OData to SQL Server C# code isn't sustainable over time

HeslacherFocusing on GetFODepartmentData() method This method is really hard to read, especially the inner most loop, where you didn't add braces {}. After extracting the creation of the XmlNamespaceManager object to a separate method private XmlNamespaceManager GetXmlNamespaceManager(XmlNameTable...

Now waiting for the wtf from the OP
 
... I bet if you compare game launches with the period that fox meme became popular you could find out what game I was playing
Know your meme says it got released sept 2013...
 
Voting, people, voting..... need more of it.
Seen my feedback SEDE query?
 
huh now I am curious
what did I do around that time
 
Hmmm, @Heslacher has a feedback ratio of >6 that's good.... @Pimgd > 2, not bad.... OK
 
12:34 PM
yaaay top 10
feedback ratio 23.64
 
Ah
I was playing etrian odyssey
no wait, wrong year
@rolfl what's the feedback ratio
 
The number of times you have given feedback in proportion to the number of times you should have given feedback.
The query expects you to:
1. accept an answer on your answered questions
 
Etrian Odyssey IV release date - August 30, 2013
Welp, seems it was Etrian Odyssey in 2013 too
 
2. vote for all answers on your questions (up or down, does not matter)
3. vote for all questions you answer (up or down, does not matter).
 
yeah that last bit I don't do that much
because I'm first on the scene
 
12:40 PM
So, if you have had X opportunities where you are 'expected' to give feedback, and you have voted/accepted Y times, then the feedback ratio is Y/X
 
the rest of the answers rolls in later
at that moment, I'm not there anymore
 
You are not expected to vote on other answers to questions you answer.
just on the question.
 
@rolfl umm... how can there be a ratio > 1 then?
 
You vote on things you're not expected to vote on.
 
aaaah.. makes sense..
 
12:41 PM
(questions you don't answer, answers not related to your questions).
 
confidential voting data..
 
Oh, well then I don't know
 
votes are feedback.... when you go beyond your expectations you have >1 ratio
 
I guess I vote only on questions I read with care
instead of blindly
 
@rolfl Nifty query. What's In/Out +/-?
 
12:43 PM
votes
in is recieved, out is given
 
Yes
 
Ahhhh thanks.
 
two downvotes to my name
mhmmmm
 
+/- is upvote/downvote
 
@Pimgd 4 to mine..
 
12:44 PM
The valueAdd column is interesting too.
 
Lol JavaDeveloper
 
You add value when you upvote, and remove value when you downvote. You also add value when you ask a question, because all positive scores on answers to your question are counted as part of your valueadd.....
if you ask a question, you provide an opportunity for someone else to earn value, votes.
So, people like JavaDeveloper actually add a lot of value. People who vote a lot add value too.
 
Mat'sMug has highest ValueAdd..
 
Look at his voting....
 
it basically is how much upvotes you gave.
 
12:47 PM
okay what the carp... I am number 1 on German Language, where I am rarely doing anything
 
@Pimgd or, how many upvotes were given on answers that are on your questions.
 
That only really applies to those who post a lot of questions.
 
You can add value by voting, or by asking.... yes.
but it is important to realize that we need people to ask questions, so we can give answers that can be voted on.
people who ask questions are actually our most valuable resource.
 
I'm not so sure about that
 
12:49 PM
despite all the ,, and
 
I think you need an interesting question to get an interesting answer
 
Very cool query, and I understand why downvotes take away from "Value Added", but....
 
so really what you're looking for is someone who posts interesting questions.
 
Downvotes add value too. Just a different kind of value. =)
 
KIBIBYTES
 
12:51 PM
0
Q: Display database entries according to selected database entry

kampfkuchenI am populating a dropdown selection with entries from a database table. Now based on that selection I would like to show other information from the database. The database table: TABLE `events` ( `event_id` INT(11) unsigned NOT NULL AUTO_INCREMENT, `event_title` VARCHAR(255) NOT NULL, ...

-1
Q: Curly bracket to the right or under the code block decleration?

SnappawapaI have seen two syntaxes for declaring a code block: function/if/etc { ... } and function/if/etc { ... } Which version of this syntax is more correct or more closely follows convention? Does it even matter to people?

 
sorry, working on SD-card related functions, and writing documentation
 
@CaptainObvious buuuuurn
 
Where would this be valid on Code Review
 
computer science..
 
like what kind of question would you tag with syntax
and not have it closed for being pseudo code?
 
12:53 PM
none?
 
Then burn the tag?
 
yes.
definitely burn
 
Commencing incinerations
tag burned
please head to the reopen queue and decline post reopenings where necessary
 
1
Q: Implement interface type in implementation of another interface without too much casting

kvermeerI have a group of tests that must be run in similar (but different) fashion and they have setups, results, etc. which are also similar but different. Great, I thought, I'll use interfaces to define these tests and setups. However, I can't implement the setups and results as the specific types, ...

 
@CaptainObvious is ?
suddenly
the realization that I forgot to add a function to check if a SD-card is inserted
 
1:03 PM
@CaptainObvious Looks like example code to me.
 
I upvoted it =/
and I'm re-reading it now
I feel derp
 
It's an interesting question if OP replaces it with a concrete implementation and actually shows his interfaces.
 
kibiby
It's like Kirby, but mangled
The best part of writing interfaces
/*VENDOR-TODO implement.*/
AKA "I don't have to code this"
2
 
1:27 PM
I need moar CR rep if I wanna get on the first page, but there's a lack of good questions today
 
1:38 PM
I see that. Yesterday I got lucky, woke up and there were three.
@Mat'sMug Monking!
 
It's all part of my plan to obtain a mug
 
Makes sense.
 
aaaand the sucky parts of writing interfaces
/*TODO define playbackRecording function*/
 
Greetings, Programs.
 
heeyo
 
1:45 PM
Greetings, User
 
@Pimgd I think that the only thing more sucky than writing interfaces is NOT writing them.
 
@Donald.McLean I mean interfaces for other people
like "not-in-my-company-or-project" other people
 
@Pimgd I knew what you meant.
 
So you just enjoy telling others what to do? =D
 
@Pimgd who doesn't??
 
1:50 PM
Me, when I have to do so in great and painful detail
At that point it's not longer bossing around, it's hand holding
You must clear your buffer first... you must return this response code if the buffer is in use... etc etc etc
and eat your veggies and clean up your plate afterwards
3
 
I love how much sarcasm you bring to this room @Pimgd ;)
(Monking)
 
=D morning
 
Monking!
 
and at the bottom of it all "If you don't support xyz, you're free to ignore any function calls to this function"
... there will be mugs when we graduate, right?
 
@Pimgd there better be ;)
 

« first day (543 days earlier)      last day (3475 days later) »