« first day (727 days earlier)      last day (3283 days later) » 

1:00 PM
@SimonAndréForsberg Can you configure the firewall on such a thing? Or turn it off?
 
I keep getting install issues for the most common of programs: sudo apt-get install nodejs errors with "Unable to locate package nodejs". Could this be related to being a live CD and not an actual installation?
 
Would incoming connection limit likely differ from outgoing connection limit?
 
aha, success! Open-source software is excluded from apt-get by default
 
@JeroenVannevel - that strikes me as odd..... apt-get is likely ubuntu, or are you using debian directly?
 
@rolfl Using ubuntu
 
1:04 PM
@JeroenVannevel My Ubuntu had no problem installing nodejs like that
 
^^^ that
 
In this screen, I only had the first and third checkboxes ticked
9
A: "Unable to locate package" while trying to install packages by apt

minerz029First, check if the package actually exists: Go to packages.ubuntu.com with a web browser. Scroll down to "Search package directories" Enter the package which you're trying to install into the "Keyword" field. Enable "Only show exact matches:" Change the "Distribution" to which version of Ub...

Maybe it's a livecd vs installation difference? Either way: that was the default
 
Ahh, OK, universe needs happening.
 
Ubuntu has the apropos command
apropos nodejs might have given you the correct package
 
apropos .... ? really, I recommend aptitude ;-O
 
1:06 PM
Ah, no, it's called node
not nodejs
 
node is different.
 
come to think about it, I think I didn't install nodejs over apt
This
 
node is a transitional package to the ax25-node package, which is something that is not used by many people for much, any more
 
So, basically you have to add nodejs to the apt list before apt can find it
@rolfl That's not what the description says though
m@work:~$ sudo apropos node
node (1) - Server-side JavaScript
 
ughhhh no space left on device
 
1:14 PM
@SimonAndréForsberg Bonus points for running your server on something different than a PC?
 
@Mast what is your ubuntu - cat /etc/issue?
> Ubuntu 14.04.2 LTS \n \l
 
14.04 LTS
 
rolf@rolfl:~$ sudo apropos node
ares_getnameinfo (3) - Address-to-nodename translation in protocol-independent manner
cpuset (7)           - confine processes to processor and memory node subsets
ecryptfs-find (1)    - use inode numbers to match encrypted/decrypted filenames
getcpu (2)           - determine CPU and NUMA node on which the calling thread is running
getipnodebyaddr (3)  - get network hostnames and addresses
getipnodebyname (3)  - get network hostnames and addresses
iwspy (8)            - Get wireless statistics from specific nodes
 
Ubuntu 14.04.2 LTS \n \l
node (1) - Server-side JavaScript
cpuset (7) - confine processes to processor and memory node subsets
getcpu (2) - determine CPU and NUMA node on which the calling threa...
getipnodebyaddr (3) - get network hostnames and addresses
getipnodebyname (3) - get network hostnames and addresses
iwspy (8) - Get wireless statistics from specific nodes
lh_node_stats (3ssl) - LHASH statistics
lh_node_stats_bio (3ssl) - LHASH statistics
lh_node_usage_stats (3ssl) - LHASH statistics
list is shorter on my private laptop, but the first line is identical
 
288
A: Can not install packages using node package manager in Ubuntu

vboTL;DR: sudo apt-get install nodejs-legacy First of all let me clarify the situation a bit. In summer 2012 Debian maintainers decided to rename Node.js executable to prevent some kind of namespace collision with another package. It was very hard decision for Debian Technical Committee, becaus...

 
1:26 PM
You shouldn't need to install legacy packages though, 0.12 is current
 
lol
The Ubuntu installer crashed while I was installing it on an older laptop
Feeling so good about Linux right now
It wasn't even doing anything -- I was in the setup screen filling in information
 
I'm sorry to hear your first experience with Ubuntu in years is going like this
 
27 mins ago, by Jeroen Vannevel
ughhhh no space left on device
new install and that ^^^^
 
It's a different laptop
And now it's an actual installation -- not a Live boot
 
Ahhh... OK.
 
1:41 PM
My current install takes 10.6G
Which is probably less than a full Win8 install alone
 
Crashed again at the same screen.. Guess I'll take a look at the win installation and see if it's a space issue
I'd expect it to format the existing partition first and then copy its own files to it
 
@JeroenVannevel - crashes are, believe it or not, very unusual.
there's probably something off with the machine.... a loose memory dimm?
 
In a laptop?
 
Alternatively, it could be something systematic...... like UEFI bios, or something.
 
@Mast knowing Apple, I don't expect that to be possible.
 
1:46 PM
Uptime:
15:46:10 up 2 days, 4:59, 9 users
Not a sweat
 
If you have the option, do you install a minimal install, or are you going for the full desktop install?
 
@SimonAndréForsberg Neither do I, but I've heard people brick them a lot
 
nah, this laptop is a HP Pavilion dv6000. It's about 7 years old, no UEFI
 
@nhgrif there's a big difference between incoming and outgoing connection limits. On many computers, no incoming connections are allowed at all (because of firewalls and stuff)
 
Mar 20 at 16:31, by rolfl
@Unihedro - I have just rebooted the server, after 181 days of uptime.
 
1:47 PM
I don't recall an explicit choice between the two.
 
@rolfl That ^^
My reboot was because of kernel updates I think
 
rolf@rolf-vma ~ $ uptime
 09:47:54 up 48 days, 23:29,  1 user,  load average: 0.00, 0.01, 0.05
panabox:~> uptime
 09:48:23 up 39 days, 23:13,  4 users,  load average: 1.93, 1.72, 1.70
 
@Mast This is CR, not PPCG. There is no "winner". Everyone who participate wins.
 
silent@silent:~$ uptime
 09:49:16 up 20 days, 14:41,  2 users,  load average: 0.08, 0.03, 0.05
 
@SimonAndréForsberg I know, that's not what I meant, although I admit it says so
Does it make it a better post if I provide background information in terms of the hardware and environment it's running on?
 
1:50 PM
@Mast the point is, we don't give points to the community-challenge entries.
 
solarium:~> uptime
 09:50:19 up 17 days, 16:55, 12 users,  load average: 1.73, 1.79, 1.85
 
@Mast probably yes
 
That's the current poll of my @home linux boxen
 
@SimonAndréForsberg Good. That's all that matters.
 
@JeroenVannevel You get an option about on which partition to install Linux on? You should have the possibility there to create partitions. A partition for / and a partition for swap.
 
1:52 PM
root@eddy1:~# uptime
13:48:58 up 2 days, 39 min, load average: 0.16, 0.08, 0.09
 
I selected the "overwrite all data on current disk" option. I didn't have to do partition work there myself
 
Did it format as ext4?
 
Right now I'm re-burning my USB and setting a higher amount of space for.. I don't know what anymore
 
It would have.
 
1:53 PM
Good
 
My Windows installation on that laptop doesn't boot anymore so I suppose it had an effect
 
Oops, did Grub crash your MBR?
 
"You shouldn't put your globals in main.m, you should put them in..." -- wrong answer... You should spend a lot of time convincingly you definitely need the globals before anyone tells you were to put them.
Adding a lot of methods to AppDelegate is somehow better than adding a lot of stuff to main? I don't think asker is writing an iOS app... Just the most rudimentary ObjC console app and just has a main.m file... This is how I started learning Objective-C... — nhgrif 2 mins ago
 
@nhgrif 3.5 hours to go?
 
Give or take.
 
2:03 PM
@JeroenVannevel something is not adding up here... and I would expect better from Ubuntu.... but, what you have now is not unreaosnable.
 
Most SOers who follow iOS type tags have probably never even thought to write an Objective-C console app.
 
After you start the install, the Ubuntu pops up a message box: from this point on, you are committed and cannot recover your data type message
 
@rolfl It seems to be installing now
 
At that point Ubuntu rewrites the partition table, and your previous data is essentially completely wiped.
So, windows will not be able to load after that.
 
I suppose that change I made to the USB Installer did it. You had the option to enlarge some sort of data storage, perhaps that was used to swap/extract files?
 
2:04 PM
@rolfl If the entire drive is taken, then it's a logical assumption Windows is no longer around
 
@Mast - FYI, most people never, ever, mess with the MBR/partition tables, and, generally, have no reason to. Linux people do it all the time, though, so have already learned these things, and take it for granted.
 
Battlestation royale
 
Even "power" users of Windows, and macs, etc. never have reason to do it. New drives are installed with MBR's, etc.
@JeroenVannevel Nice to see that the 2nd monitor is the first monitor ;-)
2
 
2:19 PM
How do you consider the middle one to be the "first"?
 
@rolfl I know. I didn't mess with it either before going Linux. Never had a need to.
 
the universe & multiverse options are now checked. It must have been a live USB thing
 
0
Q: Is there a place for automated code reviews?

svick What I'd wish for is that I wouldn't have to be a human lint tool. — Pimgd There are questions on CR where running the code through lint or a similar tool could give useful tips to the poster, especially for beginners who don't know about static analysis tools. Posting an output from an e...

 
Automated...?
 
2:29 PM
@nhgrif 3th - 1st - 2nd
 
pep8, jslint, etc.
 
@nhgrif Many people prefer their middle screen to be their 'main' screen
 
2:40 PM
More suggestions are still welcome:
4
Q: May 2015 Community Challenge

MastLast month's community-challenge spawned a lot of Calculators. April is history and the success of last month definitely asks for a new challenge. What should we do this time? Feel free to resubmit non-winning ideas from previous rounds, although new ideas are usually more successful. Post an ...

 
> npm ERR! weird error 127
> npm ERR! not ok code 0
Weird error huh
that's a good summary of my linux experience so far
 
0
Q: Find Largest Block in Matrix

FabZeros(Largest block) Given a square matrix with the elements 0 or 1, write a program to find a maximum square submatrix whose elements are all 1s. Your program should prompt the user to enter the number of rows in the matrix. The program then displays the location of the first element in the maximum s...

 
Well look at that. I suggest you take your working code over to Code Review for a peer review, there are a number of issues and redundancies in this code - addressing them would make the code cleaner, easier to maintain and more efficient. Code review can help you get rid of these GoTo jumps! :) — Mat's Mug 19 secs ago
 
0
A: May 2015 Community Challenge

EdwardWrite an automated code reviewer Long time reviewers of code here often see the same problems and make the same comments on code in various different languages. Write a program to create a review for code in and for the language of your choice. For example, you might want to write a Python scr...

 
2:54 PM
I think codereview.stackexchange.com would be more appropriate to: I don't like my approachWashington Guedes 14 secs ago
 
Sweet, my Thad Castle poster will ship in 48 hours
They're only 1.5 years late
 
@Duga .... you let @Mat's answer questions on SO.... traitor!!!!
googles Thad Castle ..... hmmmm I'm confused.
 
I recently got a call from the local game store. The game I pre-ordered came in.
Like, 2 years after pre-order
 
@rolfl Never watched Blue Mountain State?
 
It wasn't a paid pre-order, so I told them they could have it...
 
3:01 PM
That's what you get for ordering Duke Nukem...... Forever....
@JeroenVannevel Nope
 
@rolfl It's a hilarious show, though it requires a certain sense of sophistication
You should give it a shot
 
> It portrays certain aspects of American university life, including football, sex, binge drinking, drugs, wild partying, and hazing.
^^^^ Only one thing in there I can relate to.
.... and even that, not so much a spectator sport.
 
That is quite literally 99% of the show
And I'm having trouble finding what the other 1% is
Dissuading parents from sending their kids to college?
 
@rolfl it's not @Duga's fault. It's the ticker in the VBA chatroom ;)
 
@JeroenVannevel For what part do you need the sense of sophistication?
 
3:06 PM
You don't, I'm just messing around
 
@Mat'sMug Ahh... I see... ;-)
Fun Fun Fun.......
 
3:18 PM
0
Q: python numerate every item in dict. help optimize please

Sergii ArteleI have .json file with complex structure: dict in a dict, it has no constant structure and is dynamically changed. The goal is: to make new dict where the keys are numbers of hierarchy and values must be strings that are composed of all previous steps like 2 drinks 2.1 drinks coffee 2.1.1 drinks...

 
@JeroenVannevel Damn, you claimed the attic at home?
I don't see how you manage to get 5 people in that space though
 
We used to have some stable outside, demolished it and connected it to the main house with a living room. I now have the entire upper floor as my room
it's bigger than it looks
uno momento
 
But there's 5 screens, so 5 people, right?
Oh wait, I forgot something...
It's weekend!!!!!!!!
 
5 normal people or 1 developer, yes
 
I wish I had a room like that
 
3:24 PM
I don't see the espresso machine. <panic!>
 
@skiwi I do, I'm lacking the monitors and video outputs to make such an installation though.
@skiwi rendering the amount of space available kind of useless
 
Pyrrhus victory: I can crash .NET console apps in Linux!
3
 
That's a pity
 
@JeroenVannevel nice woofer
 
@Edward his idea is currently winning the next community-challenge vote
 
3:29 PM
@bazola Thanks, it's pretty sweet. Bought it.. 4 years ago or so and still working perfectly. Lovely company too, Teufel
I had a problem with the first woofer they sent me and before I even sent it back, I already had a replacement in my room
 
Hmm. Yes, so far. Pretty much any of the ideas would be fun.
 
What do your folks downstairs think of it .... ;-) ?
 
its huge! like 2 foot tall or more
 
@rolfl Said as a parent or as a music enthusiast?
 
@rolfl They've grown accustomed to it. It used to be worse but they mostly sit in the first living room which is quite far from where I am
 
3:30 PM
1
Q: What static analysis tools exist that can help pick up points for answering CR questions?

Mat's MugFollowing up on a comment posted on Is there a place for automated code reviews? Would a list of static analysis tools help jumpstart this? – h.j.k. 34 mins ago Let's list a few tools that can help reviewers gather "easy" points to mention on CR questions... and reviewees address "easy" it...

 
And I can close some doors between them and me
 
@StackExchange Wow, that was fast, Stack.
 
a new record!
 
@JeroenVannevel Closed doors between a woofer and the parents should not matter, not if it is a decent woofer ;-)
 
@rolfl @Mat'sMug We all know Stack is on a cron thingy right?
 
3:33 PM
I believe it is, but the timing varies for some reason.
 
@nhgrif that was my fear... should I remove the list of implemented inspections?
 
0
Q: Data item prototype in a Javascript data structure where object instance functions see own data

user568458I'm working on a complex Javascript application which includes its own data structure. The previous version's data structure was rather chaotic, and I'm looking to replace it with something where: Every data item is an object which is (effectively) an instance of a class, which imposes a common...

 
It was sort of a joke... I upvotes your post...
 
@Captain That's not a bad question, but definitely needs some editing to make it readable.
 
> Bloombug: A bug that accidentally generates money.
I like those, but not these:
> Common Law Feature: A bug in the application that has existed so long that it is now part of the expected functionality, and user support is required to actually fix it.
 
3:45 PM
user image
2
I DID IT
 
@Hosch250 I once encountered one of those. The original IBM PC BIOS had an error in the int 14h handler -- when I was writing BIOS for another company, I had to duplicate the bug to ensure compatibility!
 
@rolfl I'm not allowed to pretty much use my bass on the woofer :|
 
@Edward Wow.
 
@JeroenVannevel Gratz!
 
@JeroenVannevel Yo ASP.net!
 
3:46 PM
Actual .NET imports is part 2?
 
There are Yeoman scaffolds for several solution types so you can make them very easily
 
Today when using a Python library I figured out that that library only works on Linux :|
 
@Mast What do you mean?
 
@JeroenVannevel Congrats.... question, though, why did you need to import those certificates?
 
@rolfl It's part of sudo apt-get install mono-develop
 
3:47 PM
Most of them look like they should have been there anyway.....
Oh, interesting.
 
Yes, there are different OS things you have to do sometimes to make Python work.
 
Very tricky actually: when you follow the standard guidelines they just tell you to use sudo apt-get install mono-complete
 
A good developer would have added the if or whatever it needs...
 
but this install Mono 3.2.8
 
@JeroenVannevel Well, the folder is ASP.NET. But you don't need .NET for a Hello World application :)
 
3:47 PM
And Omnisharp support requires Mono 3.10+
And I got typeload exceptions when using Mono 3.2
 
Looking forward to the real deal, that's the part I never figured out on Ubuntu
 
The only way I've found to actually update it, is by installing mono-develop
that overwrites it with mono 4.1 which is released yesterday
 
There are ways to force specific versions...
52
A: How to install specific Ubuntu packages, with exact version?

faderYou can use apt-get to install a specific version of the package a long as it is in an archive that apt knows about. From the apt-get manpage: A specific version of a package can be selected for installation by following the package name with an equals and the version of the package to sele...

 
@Mast I'm not sure what you mean. I'm using DNX which is the .NET execution environment but I named that folder
How would you not need .NET for Hello World?
You have to compile it somehow
 
@Hosch250 Python should be OS-independent, if the developers do it correctly
 
3:51 PM
@sᴉɔuɐɹɥԀ Rubberduck has an inspection that warns you when Option Explicit isn't specified ;)
 
@rolfl Considering my laptop was busy for 5 minutes unpacking and installing stuff, I think it's safe to assume that I would've never gotten all the dependencies right
 
@Mat'sMug lol nice.
 
Time to start writing that blogpost
 
@JeroenVannevel Fair point.... out of interest, you should keep track of how many times you are asked to reboot after installing stuff in ubuntu
 
@skiwi It can be, but there are times you have to use OS dependent libraries that aren't part of Python or something.
 
3:52 PM
@JeroenVannevel There is such a thing as C# without .NET right? I mean, you can actually print to the stdout without .NET.
 
@rolfl Yeah, I am impressed with that so far. At most I had to start a new terminal to get access to a new command
 
@rolfl Isn't rebooting specific to Windows only?
 
@Mast yes, but reading "C#.NET" hurts my eyes
 
@Mast You can't just execute code if it has no environment to be executed upon. .NET uses JIT which means it compiles on the system of the user: you need something that can do that
 
@skiwi Linux will recommend a reboot if you upgrade the kernel, but you don't have to, if you don't want to.
 
3:54 PM
This is the .NET runtime or Mono runtime, depending on what you use
 
There are ways to replace the kernel without a reboot too.
 
And you don't upgrade kernels every day
 
@JeroenVannevel C# can also be compiled, removing JIT afaik
 
@skiwi My main machine is running 3.13.0-46-generic but the next reboot will be 3.13.0-48-generic
 
Oh well, what do I know about C#
I wouldn't touch it with a stick
My aversion for C# is almost as bad as my aversion for JS
 
3:56 PM
@Mast I'm not entirely sure about that. Either way, you'll always need a .NET compatible runtime I believe
 
(which is what I'm currently writing...)
@JeroenVannevel I'll believe you if you say you don't, must be my misconception
 
Can someone please handle this before I accidentally boot the guy off CR?
2
Q: PyDOS Version 3.0

Mrfunny744This is a follow up to the questions: PyDOS shell simulation and PyDOS: Version 2.0 Introducing PyDOS 3.0! With brand new features and improved code, this will blow your mind! Updated - 01/05/15 or 05/01/15 Depending where you are. Whats New? Code updated About app now added. PyWrite under c...

He just merged most of my answer into his question...
 
@Hosch250 That about right?
 
Sure.
 
Awesome @rolfl
TTGH!
 
4:27 PM
> 10 answers | 15 views
 
4:43 PM
1 answer per tool, or 1 answer per language .... not sure.
 
@rolfl I think 1-per-language makes the most sense
 
I know there's no lint tool for Swift - it is apparently not possible to write anything but perfectly in that.
2
 
0
Q: how to run 2 Linq query EF6 using async-await?

user3277743I have method to run 2 Linq queries EF6 using async-await? what I am trying to do is instated have two methods one search using text string and other by first and last name I combine them into one method selectSearchByFirstNameLastNameAndArea and use async-await? just want to ask did I implemen...

 
What is up?
 
The ISS
 
4:45 PM
@CaptainObvious Um... no.
 
What does the ISS have to do with answers?
 
Well, the ISS is up, and you wanted to know that, right?
get your "Understand silly jokes" thinking cap on.....
 
No, I wanted to know what you guys were talking about :)
 
Well, then you should have asked ;-)
 
I figured that was a joke, though ;)
I did. I said, "What is up?"
 
4:47 PM
Busy day on meta.... that's what's mostly happening as far as I am concerned: meta.codereview.stackexchange.com/questions
 
Oh.
Runs off to meta
 
I even had to handle a flag on meta ...... shakes head.....
Stats for meta:
> 163 flags, average handling time 1 days 14 hours 56 minutes 0 seconds
Stats for main site:
> 9.6k flags, average handling time 0 days 3 hours 46 minutes 0 seconds
 
Hmm, my flags are usually handled in seconds.
 
Main-site stats since jamal started.....
hmmmm.... can only do the last quarter.....
> 1.4k flags, average handling time 0 days 0 hours 15 minutes 0 seconds
And, @Jamal is in the house..... ;-) Hi Jamal.
 
4:56 PM
^^^ self deleted.
 
Getting started with a DNX-powered Console app on Linux: http://www.vannevel.net/2015/05/01/hello-linux/
 
@JeroenVannevel About this:
> Afterwards create your own directory where we store our project. I did this in /Documents/code/yo-aspnet.
Do you mean ~/Documents/.... or /home/myname/Documents ...?
 
euh
let me check
 
~ is a shortcut for $HOME which is your user's home directory.
 
his screen cap had ~/Documents
 
5:00 PM
/home/jeroen/Documents
Isn't that the same thing then?
 
yes
 
That's the equivalent of C:\\USERS\jeroen\MyDocuments ......
which is not C:\\MyDocuments
It's a minor technicality, that's all.... most people will know what you are saying.
 
I'm debating whether to post the Stack Egg proposal again.
 
So to be technically correct, I change it into /home/jeroen/Documents/code/yo-aspnet?
 
amusingly, later versions of powershell added a similar ~\ shortcut
 
5:02 PM
For convenience, I would make it without your username in there, and make it $HOME/Documents/code/yo-aspnet
 
gotcha
I've updated it
 
If you echo $HOME it will respond /home/jeroen
On Linux, the home directory is the "social equivalent" of the C:\USERS\UserName directory.
As a regular user, you will only ever be able to modify content in that directory, and a few specific other places.
for anything else, you need sudo/root privileges.
similar to windows admin rights.
 
What do you all think of a CC Stack Egg proposal again?
 
@Hosch250 Why are you asking here.... put it up as a suggestion, and see which way people vote....
 
Well, I don't want to be pushy.
I proposed it last time, and it was thoroughly whupped.
 
5:11 PM
@Hosch250 What is "CC Stack Egg"?
 
Community Challenge.
Like the calculator last month.
 
0
Q: "Cannot start Omnisharp because Mono version >=3.10.0 is required"

Jeroen VannevelI just installed Visual Studio Code and when I started it, it gives me this error. When I try to execute my example application, it gives me TypeLoadExceptions. Cannot start Omnisharp because Mono version >=3.10.0 is required

Q&A style!
 
@JeroenVannevel Have +1's for the sheer ballsiness of linking to your blog too.
 
Gotta do something to become world famous
I'm my own biggest visitor. As in: I've visited myself more than all others combined
3
 
5:18 PM
Apr 11 at 17:14, by Jeroen Vannevel
There's no context when it comes to the starwall
 
0
Q: Gravity model for a simulator

RK1I am designing a planetary system simulator. The coordinates used are standard for JPanel (0,0 in the upper left corner). My model is based on a class Body: public class Body { private double x, y; // position private double w, h; // dimensions for drawing private double vx = 0, vy ...

 
@rolfl So people's minds do really change on Friday
 
People's minds chage every moment... Fridays have lots of those.
 
Imagine that your minds change whenever you think about a banana
 
5:27 PM
@CaptainObvious Very nice first question from new user!
 
That'd be really awful as a monkey
 
@skiwi It's why so few monkeys are programmers.
4
 
I've changed my mind.
4
 
5:31 PM
Code Monkey like fritos?
Meh
 
Who are you going to believe? Some singer-songwriter or a baboon?
 
Does anyone remember when the Stack Egg got the Flag option?
Was that right away, or was it public beta?
 
This was the exception today where I quit
> NodeServiceError at /

Error at /django_webpack/services/WebpackService: Error: Cannot find module 'c:python34libsite-packagesdjango_reactservices
ode_modules
esolve'
Note the missing slashes, and first letters of sentences are more wtf
 
0
A: May 2015 Community Challenge

Hosch250Resurrect the Stack Eggs! If you missed them: User must make a selection each round before a 20 second timer finishes The site has three stages: private beta, public beta, and launched Private beta has the options to Ask and Answer Public beta has the options to Ask, Answer, Upvote, and Down...

I modified it somewhat.
 
"Code Review -- now 100% eel free!"
@Hosch250 Psst -- I think you mean "feel free". :)
 
5:47 PM
@Edward Thanks.
user image
2
 
OK, 99% eel free.
2
 
Gotta learn about MS Azure so I can write about 700 words for my essay.
See you later.
 
@Hosch250 see ya
 
essay in haiku format: Microsoft Azure, another cloud provider, silly marketspeak
4
 
"come for the code, stay for the haiku..."
3
 
6:09 PM
I don't understand how this user has 14k rep on SO...
Singletons are the answer to everything :-) — gnasher729 1 hour ago
 
That has to be sarcasm......
 
I can only hope.
 
6:31 PM
Haiku form: "Singletons always, the answer to everything, unless they are not"
 
0
A: Objective-C creating and accessing mutable array

nhgrifDISCLAIMER: The fact that you are writing code in main.m suggests that you've start a console app project in Xcode and aren't trying to write a Cocoa or Cocoa Touch app. If you are trying to write a Cocoa or Cocoa Touch application for OS X or iOS, your main.m file should look about like this:...

 
Never have I downvoted so many answers on a single question.
@SimonAndréForsberg How would I declare a static array variable in Java (want to be sure I get syntax right)
array of type Object
public static Object[] myArray;
??
 
Remonking @SimonAndréForsberg
 
@nhgrif correct
 
6:38 PM
@nhgrif private static final Object[] myArray;
 
though that is public, which is ugly
 
@nhgrif yup, that's it. Can't really recommend having it public though.
 
I know... but see my answer.
on SO
0
A: Objective-C creating and accessing mutable array

nhgrifDISCLAIMER: The fact that you are writing code in main.m suggests that you've start a console app project in Xcode and aren't trying to write a Cocoa or Cocoa Touch app. If you are trying to write a Cocoa or Cocoa Touch application for OS X or iOS, your main.m file should look about like this:...

User is asking how to do it. I am providing Java-to-Objective-C comparison and telling him doing it like this is bad.
And hopefully, if he knows Java, he knows that my Java snippet is bad, so can see why the Objective-C one I showed is equally bad.
And then will read the bottom of my answer with the recommendation against doing it that way.
@rolfl Only because ... that's all.
Also... I downvoted this answer, but wish I could downvote it again. The answer tells the asker that...
> [until you have some familiarity with iOS development], you cannot even ask useful questions.
 
@nhgrif not very friendly, but a grain of truth in it
 
No... there's not.
You can use Objective-C to write OS X applications.
Why do I have to know iOS development to ask a useful Objective-C question?
 
6:46 PM
I'm going to make this question Community Wiki, so that we can have one answer per language. Any objections?
6
Q: What static analysis tools exist that can help pick up points for answering CR questions?

Mat's MugFollowing up on a comment posted on Is there a place for automated code reviews? Would a list of static analysis tools help jumpstart this? – h.j.k. 34 mins ago Let's list a few tools that can help reviewers gather "easy" points to mention on CR questions... and reviewees address "easy" it...

 
You can use Objective-C to write terminal applications with no user interface. Why do I have to know iOS development to ask a useful Objective-C question?
 
@nhgrif Ah, I misread. I thought they were saying that one had to have some knowledge of Objective-C to ask useful questions about Objective-C.
 
Even if they were, I can't agree with that statement.
But even if you wanted to make that statement... it's not an answer. It's a comment and maybe a vote-to-close reason(ish).
 
@nhgrif On that we agree.
In any case, it violates the "Be nice" rule.
 
All three of the posted answers (other than mine) make the assumption that if you're writing Objective-C, it can only be for a Cocoa or Cocoa Touch application.
And yet nothing in the question would suggest that.
If you are writing a Cocoa or Cocoa Touch application, main.m is a little difficult to find (because you should almost never modify it).
 
6:54 PM
In fact, one can even write Objective-C console applications that run on a Linux box.
I've only done so to teach myself about the language some years ago, but still...
 
@200_success I think one answer per language is a good idea.
 

« first day (727 days earlier)      last day (3283 days later) »