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?
First, 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
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
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
TL;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...
@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)
@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.
"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... — nhgrif2 mins ago
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?
@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.
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...
Last 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 ...
(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 Mug19 secs ago
Write 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...
I 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...
Following 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...
I'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...
> 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.
@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!
You 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...
@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
@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
This 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...
I 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...
I 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
I 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 ...
Resurrect 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...
DISCLAIMER: 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:...
DISCLAIMER: 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.
Following 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?
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).