« first day (949 days earlier)      last day (3069 days later) » 

12:00 AM
@nhgrif Like Xamarin kinda thing?
 
It kinda is
 
RELOAD! There are 1648 unanswered questions (94.4024% answered)
 
@IsmaelMiguel How so?
 
If you miss a pointer, your entire RAM is a leak.
 
@Quill Yes.
 
12:00 AM
@IsmaelMiguel Well, kinda...
 
Don't miss pointers. Also, we're not looking for C programmers. We're looking for Objective-C.
 
It's a bit more complex than that
@nhgrif We?
 
@syb0rg The company
 
Ohhh
Cool!
 
12:03 AM
I've gotta join the SO JS team one of these days
 
@nhgrif The website is made with Wordpress?
 
@nhgrif which language is better to learn first, or should Obj-C be learnt first to support learning Swift?
 
@IsmaelMiguel I believe there is an on-going project to completely redo metova.com
@Quill It doesn't really matter, but do definitely learn both.
 
To what level?
To really understand them from start to finish, it could literally take a lifetime.
 
I just remember while doing Swift having to reference NSClasses that you probably wouldn't learn about doing basic Swift
 
12:06 AM
@nhgrif Weird. The whole site is stored on metova.wpengine.netdna-cdn.com ?
 
To my level. We have a project that we're having trouble staffing...
@IsmaelMiguel I don't know
 
In other words, be one of the best guys on the internet at them?
@IsmaelMiguel That's the CDN.
 
@Hosch250 Yes, but the CDN can serve the HTML content too, right?
 
Actually, you don't really have to know it to my level... but realistically, you probably need to have published at least one non-trivial iOS app to the app store.
 
Talking about CDN's, I wonder if chat loads the logo for me now.
@IsmaelMiguel Dunno.
 
12:07 AM
@IsmaelMiguel it's not supposed to
 
It works now.
 
@Quill metova is
 
dinner time
 
See you.
 
If you click that link, it opents the content of metova.com
 
12:08 AM
I suppose it depends on whether you run the CDN
like if you used amazon CDN, you wouldn't want to serve the HTML from there
 
If you are hiring for C#/WPF when I'm done with college, I'll take a look.
 
@Hosch250, you should learn Xamarin
 
I'm running Windows.
 
it's hard to find good Xamarin developers these days
 
Isn't that an iOS technology?
 
12:10 AM
@Hosch250 No, it's like cordova
 
Xamarin is a firm making a cross-compiler
 
OK.
 
@Quill maxcdn.com/?ref=netdna netdna CDN, which now is MaxCDN.
 
It's not a technology
 
code in C#, deploy to android/windows phone/ios
 
12:10 AM
On the other hand, you won't need Xamarin anymore pretty soon, IIUC.
 
@IsmaelMiguel they are redoing it
 
It can be used for C#, F# and surely more, with target code for Window, Android, ios, OSX, and surely more
 
VS lets you develop for iOS now too, I think.
 
@Hosch250 well it's good for the resume/salary, so... I'd suggest taking a look
 
So, you have it all right there.
@Quill OK.
 
12:11 AM
@Hosch250 Lets you do their version of Objective-C
 
@Hosch250 In which regard do you mean one don't need Xamarin any more?
 
but it's not really 'developing for iOS'
1 min ago, by Hosch250
VS lets you develop for iOS now too, I think.
Microsoft are bending over backwards for Apple
 
Question: Is it ok to ask a review on speed improvements on my code, showing from where it came from and where it is now, and my goals (like, making it take 200ms instead of 1700ms)?
 
Main thingy: Is it working?!
 
@IsmaelMiguel Yeah
 
12:13 AM
@holroy It works, slowly
@Quill Alright, I might have a question in 20m
 
@IsmaelMiguel As long as all of them are working.
 
Additionally, aren't Oracle suing Google for abusing Java
 
Companies will be companies. They always sue one or another.
 
@holroy also these days tablets are computers, so generic c++ compiles to basically all major platforms
 
@Mast They are. One works, the other works faster. Both look awful
 
12:15 AM
@Mast yes, but Oracle v. Google is a tad different, because Android uses Java, which you think Oracle would like
 
Meh. Oracle probably wants it their way.
 
@Quill I'm not very fond of C++, to say the least, so I wouldn't use that for developing for Android and/or Ios. (Or if I can, for anything at all... :-)
 
But it's a bastardized Java, which means they can't control it.
 
Why learn Swift when I can write for iOS with C#?
 
12:16 AM
C# all over again.
Same story right?
 
Which list was that? Visual Studio?
 
Yeah.
 
@200_success yeah, Google should've just come up with their own blend of C like Microsoft and Apple
@Hosch250 because swift is pretty :-)
 
@Quill Because we totally don't have enough different languages already.
 
@Quill If we're going that route, C# is prettier.
 
12:17 AM
Says the one who posted a question in
 
Oracle would prefer Google to pay licensing fees, I'm sure.
 
@Quill tribute
 
@200_success licensing fees < court settlements
    var banana : String {
    	let shortName = String(characters.dropFirst(1))
    	return "\(self) \(self) Bo B\(shortName) Banana Fana Fo F\(shortName)"
    }
 
Unity3D does WebGL now. Moar platforms.
 
MOAR ALL THE THINGZ
 
12:22 AM
@Phrancis Ever get around to working on your C# again?
 
Music projects got me pretty busy right now, and work too (it's always urgent)
 
That reminds me of a joke I saw once, about a programmer having a wife and a mistress.
 
I'd love to work on C# (and also other coding) soon though
 
When he wasn't home, they would both think he was with the other, and he would actually be in the lab.
 
I had started on a Java e-book trial, but it expired, I'll need to buy it soon because it looked really good
 
12:24 AM
@Phrancis e-book trials? That's a thing?
I didn't know you could make PDFs et al expire.
 
Yep
 
@Mast yeah, Apple/Movie vendors have been doing it with rent films for a while
 
Well, not PDF, they're Kindle
 
Proprietary stuff, right.
 
12:44 AM
@Hosch250 Because Swift is a better language. And also because you can't write truly native iOS apps in C#.
@Hosch250 No.
 
This may be a better fit over at codereview.stackexchange.com Unless you have a specific question at the moment? — squint 1 min ago
 
You shouldn't be "programmatically faking a button press". And you shouldn't be manually calling life cycle events. You have fundamentally approached this problem completely wrong in so many ways. — nhgrif 2 mins ago
:(
 
Welcome to Stack Overflow! Please read a Guide to Code Review for Stack Overflow usersholroy 40 secs ago
 
Wow, computer was acting weird
30-day free trial
In USA at least, AFAICT
 
Unless you have some specific problem with your code (like something is not working), the question might be more suitable for codereview.stackexchange.com. Please make sure you read their rules before posting. — vesan 10 secs ago
 
12:56 AM
are you doing secret santa @Phrancis and @nhgrif? (sorry if I've already asked you)
 
@Quill I am, just sent the email in this morning
 
No.
I mean... it's a secret.
2
So I can't tell you.
 
okeydokey
 
SEEKRIT
3
 
Keep it secret--keep it safe.
 
1:02 AM
Good morning everyone!
 
Hey @CrazyNinja
 
hey there
 
0
Q: JavaScript for a game: “Math.floor” & “Math.random” & “function” & “if / else”

pourrait puet-etreI started to learn programming just a few days ago. And I've written code for a simple original game for practice, using the knowledge of JavaScript that I have gained so far. Is the following code properly written? I'm especially concerned about the use of "Math.floor", "Math.random", "function...

0
Q: find all palindromes in a string array

devdropper87// Given an array of strings, return the factorial of how many are palindromes. // Example: palindromeFactorial(['mom', 'race car', 'dad', 'blah']); // 6 // The first 3 are palindromes and 3! === 6 Is there any way to do this in less than o(n^2)? I wrote the following function and I believe it i...

 
@CaptainObvious yes we know those key words
if (MetalKingABC === 1) {
    MetalKingABC = "Metal King A";
}
else if (MetalKingABC === 2) {
    MetalKingABC = "Metal King B";
}
else {
    MetalKingABC = "Metal King C";
}
 
why not switch
 
1:06 AM
Why not a declared array accessed by index?
 
why not array
 
What is MetalKingABC and why are we comparing to literals rather than defined constants?
And why are we using literal strings for the assignment?
 
it's a Math.random variable between 1 and 3
 
Why is MetalKingABC both an integer and a string?
 
Why the chat reviews?
 
1:10 AM
because javascript doesn't have variable types, so you can assign it whatever and it doesnt care
 
can and should aren't the same thing--this is a review.
 
@nhgrif No, this is the chat room related to reviews.
 
In Objective-C, I can swizzle my methods. Should I?
 
0
Q: MD5 implementation

CaseyMy pitiful attempt at coding Wikipedia's pseudocode MD5 algorithm has failed. The output generated does not match Wikipedia's sample output and I do not see what I am doing wrong: std::string MD5(bool encode, std::string message) { std::string hash; if(encode) { MD5_encode(messa...

 
1:18 AM
I had a legit usecase for using a variable that is assigned strings and ints
no matter what @DanPantry says about it
 
1:28 AM
Dynamic typing should be fun
 
Isn't it?
 
Sure is, if that's your thing!
 
I actually like both styles
 
1:43 AM
Dynamic typing is nice and flexible, for better or worse :)
 
Exactly
Do you know anything about PHP/Javascript?
 
Not a whole lot. Wrote small amounts of vanilla JS, and seen my share of PHP questions, but never anything real serious
 
It's just that I will need some help to implement a language I've wrote the specification for
But I haven't been implementing it because it is hard :/
 
@Phrancis bronze badge in the latter
 
@Quill I only got the PHP badge because of all the MySQL questions ;-)
 
1:49 AM
sure sure :P
0
A: Metal King: A JavaScript Game

QuillFirst, your game doesn't have a name! (Which is why I renamed the question like that...) A few direct things to focus on: if (MetalKingABC === 1) { MetalKingABC = "Metal King A"; } else if (MetalKingABC === 2) { MetalKingABC = "Metal King B"; } else { MetalKingABC = "Metal King C";...

that was fun alt-tabbing every thirty seconds when someone walks past :P
 
@Quill no snippet? :(
 
there
 
@Quill 'metalKingTypes' is undefined
Probably var metalKingTypes = ['A', 'B', 'C']; should be this.metalKingTypes = ['A', 'B', 'C'];
 
that shouldn't be an issue...
got it... thanks
 
2:05 AM
It works!
4
 
No, it won't. Because in that case you just run off the end of the array and get Undefined Behaviour. Chances are that if you don't crash, you might just be lucky and have a zero on the stack following your array. If I saw someone doing this kind of thing in a code review, I'd have them removed from my team. — paddy 59 secs ago
 
@Duga harsh
@IsmaelMiguel somebody starrd that? wtf
 
@Quill Yup. Who might it be?
Probably it was Duga
 
Malachi isn't around, don't have a clue
No, it was Captain Obvious
 
CaptainObvious isn't a user
 
2:14 AM
@IsmaelMiguel whistles
 
Maybe it was Jeronimo?
 
2:44 AM
hey @200_success :)
 
0
Q: Multi-function clock GUI

Eric RochI was sitting in my bedroom, looking at my Powers of 2 clock sitting next to my radio, under my analog clock on the wall, and wondered to myself: "Why have all these different clocks when I can have just one?" So I decided to make my own. This program contains four different display modes: true...

 
I wasn't too sure about the applicability of on that post, but I agree with it being there - it was only missing because I deemed getdate() as the only pure datetime bit in that T-SQL; most columns involved are int, felt like "meta".. but I agree with it being there
I think I'll edit the tag wiki
 
@janos, Could you please update this query to include tags if possible: data.stackexchange.com/codereview/query/265223/…
 
@holroy fork it yourself
 
2:51 AM
It is a query related to finding zombies, but it doesn't show the tags related to the question, which I would find useful.
 
39 secs ago, by Quill
@holroy fork it yourself
 
@Quill That could be done, if I new how to extend it (besides the obvious action of hitting the fork button (wherever that is located))
 
@holroy the fork button takes you to an edit screen where you're working on your own copy of the query. make your changes, and when you run it you'll see that version in the edit history - SEDE's interface isn't super-polished, but it works; feel free to poke around, you can't break anything! =)
 
And if I knew how to join columns in that query thingy...
 
2:56 AM
I have stars again!
2
 
a.Tags returned nothing...
 
> a.Tags AS [Tags]
nothing...
 
@NᴏᴠɪᴄᴇIɴDɪsɢᴜɪsᴇ And they will run away in a few minutes
 
0
Q: stack is not showing

ines cardona#include <stdio.h> #include "STD_LIB_FACILITIES.h" #define MAXSIZE 10 int tos = -1; class Stack { private: int stack[MAXSIZE]; //integer array for your stack int tos; //array index to top of stack bool isEmpty() { if (tos == -1) return true; return false; } bool isFull() { if (to...

0
Q: Print the Twelve Days of Christmas without loops or conditionals

nimssonFor my AP Computer Science class, I am required to write a program that prints the Twelve Days of Christmas without loops or conditionals using static methods. The code goes like this: public class TwelveDaysOfChristmas { public static final String[] lines = new String[] { "A partr...

 
2:59 AM
@CaptainObvious I don't want to be racist or anything, but I'm 200% sure that that user is Brazillian
 
Not very busy right now
lol, just got the Outspoken badge for the site
Been here all of three days
 
JOIN PostTags t ON t.PostId = a.Id -> Cleared out the result pane....
 
that's a?
Posts?
 
yeah...
> FROM Posts a
 
SELECT q.Title, t.TagNameOrWhateverThatFieldIsCalled
FROM Posts q
    INNER JOIN PostTags pt ON pt.PostId = q.Id
    INNER JOIN Tags t ON t.Id = pt.TagId
 
3:04 AM
 
ah
 
@CaptainObvious If you can't use loops, then use ... recursion!
:O
try {
    //Divide by verse. If the verse is zero, then an ArithmeticException is thrown.
    //I am not using a conditional here!!!
    int i = 1 / verse;
}
catch(ArithmeticException ex) {
    //Stop the recursion
    return verse(verse);
}
I don't think that counts.
 
Using a.Tags failed, whilst q.Tags worked (at least when added into the sub select).
 
3:07 AM
It's not a data problem, it's a code (i.e. aliases) problem, AFAIK
lmao...
 
@Phrancis Happy Birthday!
2
 
IKR
 
♪ Haaaaappy ..nah ;-)
@Phrancis it's your fête?
 
3:09 AM
@Phrancis お誕生日おめでとう
 
Can anyone review my review before I post it?
 
I'm voting to close this question as off-topic because it belongs on code review. — thelatemail 23 secs ago
2
 
@IsmaelMiguel yo dawg heard you like reviews
 
lol
 
@Quill So, I've put a review for review, so you can review while reviewing a review.
 
3:11 AM
Someone is causing star inflation.
3
Waits for stars
2
 
@IsmaelMiguel reviewception
3
 
@Mat'sMug Oh, yeah. I saw that movie. Lots of review everywhere!
 
> UPDATE failures (time, severity) VALUES ('now', 'seppuku')
2
 
@Mat'sMug Yeh. Also, I just missed a star fest
3
 
@Phrancis No you didn't
2
 
3:12 AM
Well lets have another!
2
 
Same wall, more people
2
 
BTW.Starwall
5
 
Wow, I've used almost half my stars!
 
@NᴏᴠɪᴄᴇIɴDɪsɢᴜɪsᴇ Yup, 9 stars. But that's because I can't star myself
 
3:15 AM
Well, according to the pessimist they are half gone, to the optimist you still have half, and to an engineer you had twice too many . . .
2
So make the engineer wrong
 
According to the scientist, it is always full, even if it just has air
 
Oh noes! I'm outta stars again!
2
 
And I've used over half my stars
 
> You've earned the "Notable Question" badge (Question with 2,500 views) for "Hooked on Windows"
2
 
while (count(stars) > 0)
begin
  update The2ndMonitor
  set Starred = 1
  order by newid()
end
 
I suck at puns
 
eh, my last good one was "Go on, mock my IDE"
post was about, well, mocking pretty much the whole VBE API
 
That was pretty clever
 
I can't come up with a pun when I want to
 
@Mat'sMug Haha, your IDE is for VBA (evil moking)
 
3:20 AM
lol
 
tries to decide if moking means moping or mocking
2
 
(or monking)
 
Why not both?
 
3:21 AM
Now, getting back to track
Anyone read the link?
I'm going to post that, but don't want it closed as off-topic
 
@IsmaelMiguel it works (mostly at least). it's fine
 
> This code has aditional checks removed, since they aren't needed for this review.
why? / why not?
 
Because it would require ~15kb of bloat
Besides, I want to review the function itself, not the bloat
 
isn't the fact that your actual code has ~15kb of bloat somewhat of a sign of something?
 
It is
I'm splitting it up
 
3:24 AM
@Mat'sMug that it's a huge library
 
But honestly, what I care most about is a review on some 15 lines
 
It would be nice if you could just split up code evenly, like in Tupperware bowls
 
It would
Sadly, I need the bloat
It contains a very massive array with lots of used things in Javascript
It is used as a dictionary
 
just link it as a dependency external JS file to the question
 
3:25 AM
^
 
I've added a github link
 
post that extra to github or something and raw link it
yeah
 
I even added 2 jsfiddles
Where the code can be seen in action
 
I think the "setup" part could be skipped
 
The checks I've removed are to check the encoder, it's version and if it is compatible or not
@Mat'sMug I only added it because of the performance issue
So people don't say "You should use a more powerfull CPU with faster RAM"
I should have included the browsers and versions
 
3:29 AM
I think it's your code you should be describing, not the computer that runs it...
 
@Mat'sMug What else should I say?
 
Aug 5 at 19:50, by Mast
@IsmaelMiguel Code Review is not about what you need. It's about what you get.
8
A: How Broad is "Too Broad"?

MastI've said this before and I'll say it again: Code Review is not about what you need. It's about what you get. Even better, it's not about what you think you need. If there's a major design flaw in one's program let's hope somebody points it out. If the code is riddled with bad practices, p...

 
@Mat'sMug And because it is about what I get, I give all the code instead of only the bit I need
If it was what I need/want, it would be only this:
	var data = Array.prototype.slice.call(imgdata.data, 8);
	var output = [];
	//Stores these for performance reasons. Shaves 100ms!!!
	var push = output.push;
	var splice = data.splice;
	var removed = 0;

	while(data.length && (removed < length))
	{
		push.apply(output, splice.call(data, 0, 3));
		data.shift();
		removed += 3;
	}

	//Removes unnecessary data
	output.length = length;
 
-1
Q: Implementing the Nelder Mead Algorithm in R

ABCDWhat is wrong with my function for implementing the Nelder-Mead Algorithm? The instructions specifically are: Implement the Nelder-Mead Algorithm for optimization in two dimensions. Optimize the following function two-dimensional function. f(x1, x2) = ((x_1 - x_2)^2 + (x_1 - 2)^2 + (x_2 - 3)^4)...

0
Q: Optimisations for C prime number generator?

Anonymous ShadowI have created this prime number generator. I want it to be as fast as possible, but I am wondering if there is a faster way (there must be). #include <stdio.h> #include <stdbool.h> #include <limits.h> bool is_prime(const unsigned long long); int main( void) { puts("2\n3"); for (u...

 
For those of you who would like a brain-teaser: ideone.com/SAte6Z
I don't want to put it as an answer, though....
 
@rolfl Why not?
 
This answer of mine is probably not that great, but I guess it's a start. I don't feel like looking up more specific examples.
 
@rolfl nice!!
isn't RuntimeException a bit vague though?
an IndexOutOfBoundsException would make the logic "pop" more :)
 
Not another Fi-- oh.
 
3:58 AM
hey @Jamal
 
hi
 
running out of prime number generator titles are we?
 
@syb0rg It's not a review, and the code is not asking for a review, it's asking for code golf.
 
@rolfl pretty code
 

« first day (949 days earlier)      last day (3069 days later) »