I got a programm in haskell outputting utf-8 using the package utf8-string and using only the output functions of this package.
I set the encoding of each file I write to this way :
hSetEncoding myFile utf8
{- myFile may be stdout -}
but when I try to output :
alpha = [toEnum 0x03B1] {- α -}
instead of the nice alpha letter I got ...
Hello,
I'm trying to make a Terminal Unix command with XCode, and I'm having a little trouble...
What I've been doing is creating a "Standard Tool" written in C in XCode, then copying the produced executable to Developer/Tools/.
What am I doing wrong?
Thanks for any help in advance.
...
I'd like to have a smart auto-completition of currently staged file names when using git diff.
Example:
modified: DIR1/LongCamelCaseFileName.h
modified: DIR1/AnotherLongCamelCaseFileName.m
modified: DIR1/AndThereAreALotOfThemInDir1.m
modified: DIR2/file4.m
and here, using bash tab-auto-complete functionality I'd like to use ...
We are a bit lost here. We need to make our app installable on a network with +80 Citrix servers. Although our app is 100% valid and working .NET, we've experienced some (for us weird) behavior:
You cannot use any "Documents and settings" folders for storing data or settings. Apparently these folders are virtualized and are located in ...
I'm still pretty new to Android and programming in general, and I can't seem to get the command line tools packaged with the Android SDK to work. I'm running Mac OSX and each time I try to run layoutopt, for example, the terminal returns, *-bash: cmd: command not found
*
Also, is it okay to have my SDK located in the Developer directory...
Hole thing is happening on the mac os x.
Let's assume that I've opened an program by clicking on an .app icon. It's a python program with GUI which has a separate process that waits for a user input. But as I've opened it by clickin .app icon I dont have access to it's input as I would have if I opened it in Terminal.
And the question ...
Short Question
What's the right way to handle a Ctrl-C event sent over Telnet on the server side?
Long Question
After calling recv() on a socket, I'd like to handle some situations appropriately. One of them is to return a certain error code when Ctrl-C was received. What's the correct way to detect this? The following works, but it ju...
So I've got dozens of servers I connect to and want a simple Ruby script that provides me with a list of those servers. Picking one will start up SSH with the proper connection details and let me start using it. That's it!
But, I don't want/need Ruby to keep running. If I did I could use Net::SSH and capture all output and send it back ...
I'm trying to install Image Magick on MAMP. And I'm seriously out of my depth.
I've installed MacPorts, and opened the terminal. I've typed in sudo port -v selfupdate per the instructions on http://www.macports.org/install.php#pkg
But the response I get from the Terminal is Unrecognized action "sudo"
I've googled and googled, but can'...
When I enter in python in Terminal it loads up Python 2.6.2. However there are folders by the name of Python 2.6 in different places on my drive. I'm not sure if that's because Python 2.6 has been installed in different places or because Python just likes to have lots of folers in different places.
If there are multiple installations, I...
I'm writing a command-line tool for Mac OS X that processes a bunch of files. I would like to show the user the current file being processed, but do not want a bazillion files polluting the terminal window.
Instead I would like to use a single line to output the file path, then reuse that line for the next file. Is there a character (or...
I have some proxy settings that I only occasionally want to turn on, so I don't want to put them in my ~/.bash_profile. I tried putting them directly in ~/bin/set_proxy_env.sh, adding ~/bin to my PATH, and chmod +xing the script but though the script runs, the variables don't stick in my shell. Does anyone know how to get them to stick a...
Once when I got my hand on openbsd I was really happy to have black and white terminal, I, somehow, orienting much more with b/w colors..
Anyway I know just one option to do it.
export TERM="linux-m"
and openbsd used something else like "vt8.." i don't remember.
Now I have freebsd on my dedicated server, I want to have black and w...
I am new to JavaScriptMVC I downloaded it and trying out my first "hello world" commands. The problem is all the examples are for PC's.
I am stuck at the first point. How do i write the commands in the terminal console.
In the documentation the first thing to do is to C:\workspace\Cookbook>js jmvc\update
How do i write this in the ter...
I am aware of the clear command in a Terminal that will clear off the screen and return you to just (in my case): harrisbookpro: ~harris$ and I just wanted to see if it was possible to do the same in my program (which runs through the terminal).
...
I'm using 20 identical simulators (text base GUI like vi, refreshed quickly), and I need to control them in very similar way. e.g. input some command string to start/stop/config the simulator. The display is important, and I need them to flow on the terminal. Currently I can automatically start each one in a separate terminal.
But afte...
Hello,
I need to add java to my PATH on one of my Linux servers, to do this I edited the bashrc and added,
PATH=/usr/local/jdk1.6.0/bin
export PATH
Since then I have not been able to use simple bash commands like ls nano locate cp is there any way I can fix this? The OS of the server is CentOS 5 with Plesk 9 (64-bit), can anyone help...
Looking for a solution to quickly navigate to long paths in a shell (particularly Max OS X Terminal.app).
Say my path is ~/This/Is/A/Really/Long/Path/That/I/Would/Rather/Not/Type/Frequently
Instead of cd ~/This/Is/A/....
I would like to be able to store favorites/bookmark directories so I could do "cd myPath"
Are there any binaries o...
I'm messing around with Tamir.SharpSsh and wanted to see if it was possible to use it to implement a console SSH client fully in C#. I do not mean something like putty where it's actually running in it's own GUI, but something you could run directly from the windows cmd console.
The library is pretty great, except that it doesn't handl...
I'm creating a snippet to be used in my Mac OS X terminal (bash) which will allow me to do the following in one step:
Log in to my server via ssh
Create a mysqldump backup of my Wordpress database
Download the backup file to my local harddrive
Replace my local Mamp Pro mysql database
The idea is to create a local version of my curren...