« first day (510 days earlier)      last day (3508 days later) » 

4:00 PM
PHP uses wtf_Case
5
@rolfl (yeah I'm spamming) How would you cope with FindBugs if you need to have a public variable in a class for some specific use cases? I do not want to disable that rule as a whole, as in general public variables are bad... except when 3rd party libraries require them
 
@RubberDuck why didn't you answer, or are you working on an answer to that question? codereview.stackexchange.com/a/63959/18427
 
Thanks @Heslacher!
 
@RubberDuck fixed it
 
In my case I'm probably going to use camelCase, as this will eventually connect to a Postgres DB and all column/table names are snake_case, I could see that getting confusing really fast (and potentially causing bugs)...
 
why doesn't it have a return statement?
who voted and then unvoted?
 
4:08 PM
Greetings, Programs.
 
@RubberDucky I fixed it
 
0
Q: Wrap one module with another one

NakilonThere is a module Some_module_that_I_want_to_wrap that was developed some time ago. And now I want to wrap (you can say I am logging it in this way) it in some kind of XML using gem builder. require "builder" module Wrapper_that_builds_XML attr_accessor :cursor def some_method_to_make_...

 
I should make the last statement of all my VB answers, Where are all the Curly Braces and Semi-Colons?
2
I almost did it.....
 
Don't need no steenkin' semi-colons.
2
 
lol
be back later I have to put some code into TFS
 
4:16 PM
I have that grief about most people that write MS SQL too. END YOUR FUDGING STATEMENTS!
 
0
Q: Searching for something at a location

PhasyI'm using Searchkick in a situation where a user might write the location they are searching for, or the thing they are searching for, or both. I've been working on the below code for most of the day. As you can tell, I'm quite the beginner. Ideally, what I want is something like this: @portf...

 
4:41 PM
Hmmm... doing some research on Malaria.......
 
4:53 PM
0
Q: Round division to two decimal places?

TechandmusicI'm working on a revision of my electrical calculator. I used string formatting to round the answers it gives to two decimal places. On the operations that require multiplication (voltage, wattage) this works just fine. On the operations requiring division though its not rounding to two places. H...

 
@Malachi I just posted it.
5
Q: Updating Pivot Tables in Excel

DermotI'm writing some code for someone to update a pivot table field based on the contents entered in a particular cell. I am unfamiliar with VBA and programming for excel but I followed some tutorials and would like if someone here could look over what I've done just to see if everything looks ok be...

 
@rolfl ...and?
 
Wait... Shite. He's passing strings as variables... Wtf. It's broken.
Ugh.

> I don't have access to their excel worksheet.

Should have been a tip off... Damn it.
 
Is VBA also used on its own, or only when working together with a sheet?
 
@skiwi It could also be Powerpoint, Word, Access, etc.
 
5:04 PM
Wait... Powerpoint?! The horror
 
But it's VB for Applications, so always in conjunction with one of the office apps.
I KNOW!
 
Thanks, Netbeans.
 
Ugh.. I don't like Netbeans. I ended up using eclipse back when I thought I wanted to learn JAVA.
 
You know, the class you are using is deprecated. Did you read that the class you are using is deprecated? Well, I didn't think you heard it, but the class you are using is deprecated!
2
 
Is it deprecated?
 
5:07 PM
@RubberDuck Eclipse and I don't get along. My employer bought me a pro license for IntelliJ IDEA.
 
Nice.
 
@Donald.McLean Have you used it yet? Is it any good?
 
@skiwi I've been using it for something like 11 years. I love it.
 
@skiwi My dad has it ... ;-) But should be OK.... not in ICU, which means it's good in terms of prognosis
 
@RubberDuck better than my answer?
 
5:14 PM
@Donald.McLean That's quite some time... I've been considering switching form Netbeans, but I need a fair share of time to test it
@rolfl Ah ok... At least it's not Ebola, I've heard quite some people who didn't have Ebola get diagnosed with Malaria
 
@Malachi Just more thorough.
 
@skiwi There's a free "community edition", which lacks some of the features of the pro version.
 
Not better.... stupid code is broken anyway. I didn't notice until after I posted my answer.
 
@Donald.McLean Any stuff you could tell me about why it is cool? ;)
 
@RubberDuck lol I was messing with you. your answers on VBA questions are far better than mine could be at this point, I don't know how to run them or have use for them so I don't know much VBA
 
5:17 PM
100 point bounty on this zombie expires in 24 hours.
6
Q: Using Delegates and BeginInvoke with .NET 2.0 WebServices

Ryan KinalI'm attempting to implement a simple long-polling/comet/reverse AJAX solution, and came across the concept of delegates, specifically with the BeginInvoke and EndInvoke methods. I've built a Web Service that uses these concepts, but, having never used these, they make me a little nervous, and I h...

@Malachi You don't do too bad for not knowing all the intricacies.
 
@skiwi It has to do with thought and work processes. I don't get along with Eclipse because my brain just doesn't work that way and I find myself constantly fighting with the program. On the other hand, IDEA just feels like an extension of my own brain and the code just sort of flows. But that's me, and your experience may be different.
 
@rolfl On what validation level do you have set FindBugs? Does it report every single thing that can be wrong, or only major flaws?
 
I ran it with defaults
 
@RubberDuck thank you
 
@Donald.McLean Well, I neither like Eclipse, but that aside, the problem I see with Netbeans is that their development is unbelievable slow, their open issue queues is in the range of thousands and on non-blocking bugs/features/enhancements no progress is being made
In the current way I feel like the IDE will die down one day
 
5:21 PM
-1
Q: Chrome and IE compatibility

Rusty ShacklefordI wrote a program using HTML/JavaScript to read an xml file and output the data on that file to a table. It runs fine on Google Chrome, but nothing pops up on IE. I try checking for errors giving me "access is denied when it comes across xhttp.open("GET",dname,false); . How can I fix this!! Thanks.

 
@rolfl Okay, I think I made my FindBugs a little bit too excited
> Found reliance on default encoding in new com.cardshifter.core.Events(InputStream): new java.io.InputStreamReader(InputStream) ["com.cardshifter.core.Events"] At Events.java:[lines 29-80]
Found reliance on default encoding in net.zomis.cardshifter.ecs.main.ConsoleControllerECS.main(String[]): new java.util.Scanner(InputStream) ["net.zomis.cardshifter.ecs.main.ConsoleControllerECS"] At ConsoleControllerECS.java:[lines 26-158]
This seems to be a mid-level "bug", but these are ones that seem to be reasonable
 
@skiwi I use IDEA because it works, both for Java and they have a really good Scala plugin too. It's interesting the breadth of tools that JetBrains have created.
 
How good is it in autocompleting things?
In Netbeans it kind of works, but it is via a hack that triggers autocomplete not only on Ctrl + Space, but also on every single identifier for a variable or on a dot, which sometimes behaves wonky
 
Hello @all
 
Hey @syb0rg
 
5:26 PM
Hey @syb0rg
 
@skiwi Mostly very good, depending on how crowded the name space is. It has partial camel-hump auto complete. If you have a class DoThisThing and type DTT, it will find it.
 
@RubberDuck that question should maybe be closed after the bounty is given....that code looks really messy to me.....
 
@Donald.McLean That sounds good
I'm still considering as Netbeans is not too bad at all... but IntelliJ seems very interesting
What notable features would I miss out on the community edition?
 
@skiwi I'm not really sure, since I've never checked it out (there was no community edition until recently). I think that there's a boatload of jEE support in the pro version though. Things like create run profiles for Jetty web apps?
 
I'm not too concerned about all those 3rd party frameworks
Ugh, this is annoying... The Netbeans plugin for FindBugs seems to report every single rule violation, while the Maven build plugin is set to default (as I want it)
I'm also doubting whether I should add FindBugs in the regular build process, it does seem to take a second or two to process everything
Though that's maybe only in clean builds
@rolfl There's actually a second bug :)
	public int[] getTargets() {
		return targets;
	}
This returns a mutable array
 
5:41 PM
I changed some other settings too.
there are about 10 dignificant bugs
 
good evening
 
Hey janos
 
@rolfl Does that include the omission of specified charset?
Monkning @janos
 
hey rolfl, skiwi
 
5:43 PM
I am not so familiar with Asynchronous programming, but that code doesn't look right to me. Second opinions?
0
A: Using Delegates and BeginInvoke with .NET 2.0 WebServices

MalachiIn your function you are using threadId before it is assigned, is this intentional? I am pretty sure that this will give you an error, especially if it doesn't give you an error when you try to use it, it will pass garbage to whatever method you are trying to call here. The only .BeginInvoke ...

 
@skiwi Nope.... there's a few, including unused variables, etc.
 
I'm going to be smart and fix something in this code and then see it all burn down. (hopefully not)
Is array.clone() a reasonable way to return an array of primitives?
 
No.
clone is a method of last resort.
 
To return a defensive copy, I meant
 
I think that's fine
 
5:46 PM
Use Arrays.copyOf(array, array.length);
 
That seems better
Such a waste for a nice clone() method :(
 
@Malachi ZOMBIE DOWN.
If no one posts a better answer, you get the bounty. But I'm gonna go ahead and wait.
 
@RubberDuck isn't that an oxymoron?
 
Is using hidden variable names in methods bad? Because Netbeans warns for it by default, but Eclipse does not care about that
 
or a contradictory statement (if that is not what Oxymoron means)
 
5:53 PM
Ummmmm no. If no one posts a better answer, you get the bounty. But I'm going to wait to see if anyone does. I doubt it, but still.
 
@Mat'sMug has his eye on it @RubberDuck
I was talking about the " I'm gonna go ahead and wait"
 
@Malachi My condolences. Lol
 
lol IKR
 
Ohhhhhhhhhhhhhhhh...... yeah. I sound like the guy from Office Space.
 
I'm gonna need you to move your office to the basement
I think I should just keep pinging @Mat'sMug so that he can't finish his answer, so that I get the bounty
but @Mat'sMug has had his eye on that one for almost a year already
You've never used an event handler? EventHandler is just a delegate with a (Object, EventArgs) signature and no return value. You know delegates more than you think you do. — Mat's Mug Nov 22 '13 at 2:48
 
6:00 PM
@skiwi yes they are bad
 
@janos Not even FindBugs seems to care about it though...
Which is all in all strange
 
@skiwi eclipse has the warning turned off by default
but it has the warning
 
@Malachi I put a bounty on that one last year IIRC ;)
 
@rolfl Yea, I figured it would have it, but I think it is strange that both Eclipse and FindBugs do not have that warning on the "high profile" warnings
 
@Mat'sMug if I am the only one to answer this, then I should get both bounties....lol JK what do you think of my answer?
 
6:03 PM
too short ;)
 
lol
I got a revival badge already
 
0
Q: custom vector class

Vincentmy first bigger c++ project: a vector class. Puprpose: personal use, statictical computation; #include <iostream> #include <vector> #include <algorithm> #include <cmath> template<class T> class vect { std::vector<T> m; size_t s; public: // default constructor vect(): m(0), s(0)...

 
user image
10
 
lol
8
 
I'll be out of stars soon like this.
 
6:07 PM
@skiwi Most IDE's make these things more obvious.... especially w/r/t colouring class variables on class fields....
 
0
A: Using Delegates and BeginInvoke with .NET 2.0 WebServices

Mat's MugThis Stack Overflow answer to the question "Is there a VB.NET equivalent of C# out parameters" is pretty clear: No, there is no equivalent construct that allows a non-initialised variable to be passed to a method without a warning [...] However specifying the <Out()> attribute, despite bein...

@Malachi sorry!
 
We seriously need a better Friday meme.
14
 
^^ pinned ;)
(although I don't keep my hopes very high on this)
 
I'm a serious fan of this, we could adapt it for more fridayness:
 
lol
 
6:17 PM
0
Q: SPOJ 726. Promotion Problem code: PRO Wrong Answer?

Akash Ranalink to question : http://www.spoj.com/problems/PRO/ What I have done The question asks you to select the minimum and maximum element from the list and add it to the total, It used heapq module in python to solve the question, although it passed the provided test case, but gives a Wrong Answer ...

 
Finally, the project passes FindBugs
 
Awesome!
 
0
Q: Am I doing this right? (OOP PHP)

Script47I was hoping if anyone could tell me if I'm doing this correctly, I know there are other questions like this but everyone codes different and I just feel that I'm not doing this right. I'm trying to make a modular OOP site so all the files will be called through the one index file which will then...

 
done right?
2
 
6:30 PM
@capt just what we need, another one of those.
Think we should report this feature bug where the bot name doesn't auto-complete?
2
 
yeah, it kinda kills a bit of fun
 
@Phrancis Yes!
It seems to be related with him not having been in the channel for a while
 
Where would I do that?
 
I'm pretty sure the tabbing now orders based on input characters + last seen of specified user
 
I think SE pushed an update to chat recently, affecting @ pings
 
6:32 PM
And if someone hasn't been seen in chat for a while, then he disappears from the list
 
@Donald.McLean Friday sounds like Fry-day. Of course, now there's a choice between Stephen Fry Day, Deep Fry Day, and Futurama Fry Day.
Image Search is a wonderful thing
 
Well, anything with Futurama is automatically a bad choice.
 
Don't bash on my favorite cartoon ;p
 
One more vote for the new user here?
 
6:36 PM
I saw those other answers shoot out, too. It's like SO's Fastest Gun, except there's no one correct answer (unless the longest answer is considered instead).
 
oh, sorry I missed that part of the post @Jamal; thanks for the edit!
 
Hm. It's the first time in a long time that CR doesn't have a Hot Network Question.
 
And now I have the shortest answer. :-P At least I "toppled" janos' sum() suggestion.
 
and yet we're nearing 30K visits/day
 
Loki looks like he really knows his stuff
 
6:39 PM
(but I was in a hurry anyway)
 
nicely done @Jamal
 
@200_success I see 2
 
nice teamwork here
 
:-)
 
the code is so bad, 4 people could say a lot of different things with very little overlap
I miss C++, I'm happy to learn std::accumulate
 
6:41 PM
It's my bread and butter. :-)
 
loki's post is just growing and growing
 
DAMN that got hot. I foresee multiple Nice Answers.
 
Today was a quite good day for C# questions
 
@TopinFrassi well.. isn't Func<T,TResult> a delegate?
 
Hey guys. Am I way off base about this? OP seems to think so.
0
A: Handling Parent-Child Relationship using MVP within a WinForms Application

RubberDuckI'm no expert in design patterns, but I fail to see the benefit in having a completely empty interface. public interface IParentView { } Interfaces do two things for us. They enforce a contract. Anything implementing this interface must have this specific public api. Which allows for... ...

 
6:52 PM
22
A: Are empty interfaces code smell?

UrbanEscAlthough it seems there exists a design pattern (a lot have mentioned "marker interface" now) for that use case, i believe that the usage of such a practice is an indication of a code smell (most of the time at least). As @V4Vendetta posted, there is a static analysis rule that targets this: htt...

marker interfaces are a code smell, your answer is worthy of my upvote @RubberDuck
 
Okay. Thanks @Mat'sMug. He had me questioning myself.
 
@Mat'sMug Yeah, I wanted to be specific to the delegate keyword :p
 
Maybe it's just me being newb at but I really don't see anything wrong/dirty with $this=>question;
 
well the title was bad :)
 
7:07 PM
is_int($ID) == TRUE is silly
 
Argh, I hate SO and their voting (or lack of it).
5
 
@rolfl Yeah, whenever I post answers/questions on SO I feel like it is pointless and no one cares about it.
 
@200_success We need some linked lists
 
lmftfy.....
 
7:11 PM
I don't know how to make a tag D:
 
[tag:i-dont-know-how-to-make-a-tag]
 
no spaces....
no question-mark either... ;-)
 
Mat's not here. Only his mug is.
4
 
and you can edit your posts (up-arrow).
 
you got it! ;-)
 
Forgot about the edit
 
@monkey is there a SEDE query to find top users for a tag?
 
yes.....
 
@Phrancis there's actually a page for that: codereview.stackexchange.com/tags/c%23/topusers
@TopinFrassi welcome!
 
7:16 PM
Oh duh yeah I forgot about that. Merci!
 
0
Q: Finding the largest averaged array

konijnSometimes the best way to teach is show what you feel is a shiny approach instead of letting a student muddle through coding and potentially loose a future brilliant coder. This is what I would show for 'Determine the largest averaged array`. Please review any and all aspects. 'use strict'; /...

 
@Mat'sMug you suck!
@Phrancis lol
 
I started to notice that having real-world experience with programming is actually not a good thing when you're doing a Computer Science bachelor
Monking @SimonAndréForsberg!
 
@Malachi Has anyone reminded you what day it is today?
Monking
 
@Simon ... that took a long time for the b-day hangover to clear ... ;)
 
7:19 PM
@Mat'sMug at least give me some more votes, he is using a 3.0 thing in a 2.0 framework, it should be closed...lol
1 hour ago, by Phrancis
user image
 
@rolfl Not really, I've been working a bit recently
 
On university I start to get agitated by all the "useless" assignments I need to do that have no connection with the real world :(
 
@Phrancis Awesome!! :D
@Donald.McLean I think I'll have a Wednesday meme from now on. POI!!!! (yes, I can't see it until Wednesdays, I know it's airing in the U.S. Tuesday nights)
 
@SimonAndréForsberg Well... real addicts watch it in the middle of the night!
 
@Mat'sMug can you link me to the MSDN on that "Delegate.BeginInvoke" I haven't found it yet....
 
@Mat'sMug that still doesn't allow 4 parameters
 
it takes a params object[].. which is any number of parameters...
 
@skiwi Real humans need to sleep!
 
@SimonAndréForsberg Sleep is optional
(Though recommended)
 
7:25 PM
@Jamal I can't finish watching that.....
@Mat'sMug Dim result As IAsyncResult = caller.BeginInvoke(3000, threadId, Nothing, Nothing)
that doesn't look like it takes a delegate and an array object....
am I reading it wrong?
 
@Malachi tl; dr: something about a gang fight and un-thawed chicken that they're about to eat.
2
 
@Jamal I got half way through it,
 
my friend is bombed....lol
 
@Malachi you are. params object[] allows passing any number of parameters, separated by a comma
the method receives them as an array
 
7:28 PM
And I'm approaching 4K profile views.
 
@Donald.McLean I think I might start using IDEA a bit more in the future...
 
@Malachi the invocation matches the delegate's signature; the first parameter is an int
 
I didn't see the one-lined delegate at the bottom.....
@Mat'sMug I found it....my bad
 
@SimonAndréForsberg If you have any questions, I might be able to help.
 
@Donald.McLean Ctrl + Shift + A also seems to be a big help ;)
 
7:31 PM
but why the "nothing, nothing, after the 2 parameters?
is that the Async dostuff calling the things.doStuff?
 
^^ 1000 words :)
 
Dark template FTW
2
 
@Marc-Andre Watches screen, it's all white here!
 
@skiwi I was referring to the Visual Studio of @Mat'sMug ! I miss that dark template so much!
 
@Marc-Andre I know, but I don't much it that much... White looks better, as long as you can survive looking at it
 
7:39 PM
Dark is so hackery. White is clean. Proper. Good code comes from white.
 
@skiwi yeah I don't much it much much either
5
 
I can't survive it! Dark theme keep my sanity from looking at those bright screen for days!
@JeroenVannevel You should see the code I'm working on. Even on white, it does not look clean at all!
 
@JeroenVannevel I slipped into the dark side one night I was coding while my wife was watching a movie (so surrounding lights were turned off) - never looked back :)
 
@Mat'sMug rofl... I just read what I said
@JeroenVannevel Blacking is hacking
 
@Mat'sMug good cover story
had that open this whole time......oh wait no I didn't
 
7:43 PM
I really need some inbuilt Git commit confirmation in Netbeans asking me if I have also actually tested the changes I've made.
 
I am the Dark Knight!
 
IDEA has a color scheme they call "Darkula" but I never liked it.
 
@Donald.McLean Yeah, sounds like it sucks
See, that was funny because of the drakula sucking blood wordplay
I'll go back to my show
 
Sometimes, if you ignore a bad pun, it's like it never even existed.
7
 
Time to quit have a nice week end everyone!
 
7:50 PM
You too!
 
how not to be a nice reviewer:
0
A: Is this Repository Design Pattern Valid and efficient?

Chris MarisicThis code is terrible. Do not ever write this code again. This is by far the most repeated failure of design I've seen. I'll also be the first admit in the past I used the EXACT same code when I was a junior developer. What is fundamentally wrong is abstract class Repository. You are forcing i...

 
@Marc-Andre The weekend just begun, why should we quite having a nice weekend now?
 
enjoy the weekend @Marc-Andre
 
<?php
	// do magic
print "<html>\n<head></head>\n<body>\n";
print "The solution to Euler Project is <strong>$sumOfMultiples</strong>
	and the individual numbers are:\n<br /><br />\n";
print "\t<pre>\n";
print_r($multiplesOfDivisors);
print "\t</pre>\n";
print "</body>\n</html>";
?>
^^ is this stupid?
i.e. should I put the HTML headers and footers all outside the PHP script?
 
I got in a late answer:
0
A: Custom integer class for calculating crypto algorithms

Jamal You should also be using <cstdint> instead of <stdint.h>. Stick to just the C++ equivalent libraries that are all incorporated in the std namespace. The class name integer should be capitalized to Integer. In general, class names, being the name of a type, should be named differently from func...

 
7:57 PM
@Phrancis That's usually more common, yes, to put them outside
 
I figured as much thanks!
 
2 Bottles of beer on the wall @Mat'sMug.
1
Q: Glob-Like Search in VBA

ptwalesThe Dir() function in VB and VBA can accept wildcard characters (* and ?) but only in the basename of the path. Dir("path\*.txt") is a valid request but. Dir("path\*\*.txt") will return Error 52 "Bad File Name or Number", because * is an invalid folder or file name. I created the abilit...

 
YES!!
undelete yours and then it's down to ONE!
no wait..
there's a couple of off-topic ones still alive
 
2
Q: Glob-Like Search in VBA

ptwalesThe Dir() function in VB and VBA can accept wildcard characters (* and ?) but only in the basename of the path. Dir("path\*.txt") is a valid request but. Dir("path\*\*.txt") will return Error 52 "Bad File Name or Number", because * is an invalid folder or file name. I created the abilit...

 
@Phrancis why are you using "print" and not "echo"?
@Phrancis and you should concatenate into a single string and print/echo once
@Phrancis The HTML tag yes, and depending on if you are doing anything PHP in the head tags yes/no
 
8:09 PM
@Mat'sMug I have a TypedList Class and a Tree Class that are pending.
 
Does the comment under my answer deserve to stay?
6
A: Is this Repository Design Pattern Valid and efficient?

TopinFrassiI think your abstract class should "implement" the IRepository interface, because otherwise you will always have to put both the interface and the base class in your inheritance list. Also, I think you should name your Repository -> SqlRepository, since all the code in the base class is coupled t...

 
@ptwales bring 'em :)
 
@Mat'sMug The TypedList will have to come first because Tree composes it with a type Tree.
 
did I get cheated?
 
@Mat'sMug Mine would be off topic. It's not quite working.
 
8:14 PM
I don't think so, the math is a bit off though....
 
this is a great answer:
2
A: Finding the largest averaged array

Alexis KingFirst of all, a minor complaint, but be careful when using 'use strict'; at a file level—when concatenating JavaScript files for minification, this can have adverse affects. Whenever possible, use it at the top of a function instead. Anyway, on to the actual code. Your arrayAverage function is f...

 
@Malachi is there a functional difference between print and echo?
 
let me check
 
@Phrancis of all the nice languages out there, why oh why learn php and not something else?
 
reading this right now
132
A: How are echo and print different in PHP?

dl__The first and foremost difference would be.. The print is not a language construct whereas an echo statement is ! From: http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40 Speed. There is a difference between the two, but speed-wise it should be irrelevant which one you use. echo is...

 
8:16 PM
CR will run javascript code snippets?
 
yep
Yay Stack Snippets! — Mat's Mug 2 mins ago
 
@janos there are a couple of reasons:
1) With my enjoying reviewing SQL I frequently run into PHP-MySQL questions, where I can only address the SQL, normally a small part of the script. So if I get good at PHP I can review everything.
2) I feel it's such a popular language (#5 top number of questions on CR, for example) it would be useful and I can even use it for my own projects.
3) There's 81 PHP zombies needing an answer ;)
 
plenty more zombies in the #1-#4 top languages
it's up to you, of course, I'm just saying for your own sake
 
Maybe I should add: 4) Maybe I like pain like @Mat'sMug and @RubberDuck ;-)
 
you can cure yourself out of that
 
8:24 PM
@Phrancis At least you didn't decide you wanted to learn VBScript or Powershell.....
But then again, Powershell is useful.
 
PowerShell is awesomeness incarnate
haven't used it in over two years, but it's awesome.
 
TBH: I started to look into Java but it seemed so foreign to me, + you need a compiler which means I can't do it from work when I'm bored. My other alternative would be Access/VBA which I really don't care to learn much. For obvious reasons.
 
says the mug who likes pain
what about Python?
 
@janos No snakes.
 
What about Python?
 
8:28 PM
you don't need a compiler for that
 
@RubberDuck I have almost 70 views on that post already and one comment.
 
#4 popular here, mountain of zombies
 
@Phrancis Shouldn't you be working at work? ;)
 
@skiwi yes but work snapped
 
I work fast, get caught quickly
 
8:29 PM
for anyone else that want's to read my retort on Eric Lippert's post from yesterday.
 
and you won't have to ask things like "what's the difference between echo and print"
 
Is there a Python fiddle?
This look a little more PHP-like?
echo "The solution to Euler Project is <strong>$sumOfMultiples</strong>
	and the individual numbers are:\n<br /><br />\n\t<pre>\n";
print_r($multiplesOfDivisors);
echo "\t</pre>\n";
?>
</body>
</html>
 
There is also codepad
 
Bah, Python fiddle doesn't work in my browser
 
0
Q: How to simplfy building an adjacency array in PHP starting from a flat structure?

gremoPurpose: to make an adjacency PHP array with parent_id, name, level and root_id (the id of the root category) starting from a "flat" table-like structure. This is the starting array where name1, name2 and name3 represents the category name and nesting level: $categories = [ ['id' => 1, 'nam...

 
8:41 PM
Just make it more simpl.
 
Huh that's neat.
 
39 page views came from Eric's blog....lol
I need to write some more blogs about code!
 
@Phrancis looks better, but it's still PHP
6
 
8:51 PM
Python works on Mac too I'm assuming?
 
@Phrancis Python either works everywhere, or nowhere. For me, it's way too often nowhere.
 
python is pre-installed on MAC
i mean OSX
but you should get the latest version of Python with Homebrew as OSX does not update Python AFAIK
 

« first day (510 days earlier)      last day (3508 days later) »