Skip to content

Tag: macos

OS X UDP send error: 55 No buffer space available

While I was implementing RUDP in python3.3 on OSX10.9.1 I noticed that the following code actually does not do what it does on linux: (it doesn’t matter which language, same behavior for C, Java and C#/Mono) This code just keep writing a lot udp packets to 8.8.8.8, those packets get dropped after 4 hops…

How to undo rm -rf? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …

Why Maven uses JDK 1.6 but my java -version is 1.7

I have setup maven in my terminal, and when getting the version settings (using mvn -v) it seems it uses JDK 1.6, while I have JDK 1.7 installed. Is there anything wrong? The commands I enter are these: Answer add the following to your ~/.mavenrc: Second Solution: echo export “JAVA_HOME=$(/usr/libexec/j…

Easy way to fill in an Excel file with Python

Let us say I have an excel file called test.xlsx, which is a workbook with three sheets, where sheet1 is called hello1, sheet2 two is called hello2, and sheet3 is called bye. Now, I’d like to read the file, and then re-write the same file but ONLY change the values in (column B, row 11) of the sheet nam…

Create a hard link from a file handle on Unix?

If I’ve got a handle to an open file, is it possible to create a hard link to that file after all references to it have been removed from the filesystem? For example, something like this: Specifically, I’d like to do this so that I can safely write to large data files, then move them into place at…

connecting to amazon aws linux server by ssh on mac

I created a new keypair and downloaded it to my mac, then set up a new Amazon Linux AMI server with that keypair and my security group. Now I need to put the keypair .pem file that I downloaded in a .ssh file in my users folder? I am unable to create a folder called “.ssh” however because of the

Bash terminal and color output [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 10 years ago. Improve this question I have a shell with colors enabled: somefile contains escape characters for coloring. Now I want t…