terminal

Create a Terminal-Based Bluetooth Monitor in XCode?

谁说我不能喝 提交于 2019-12-08 07:27:05
问题 I want to create a Terminal application that connects to a Bluetooth Device and outputs any commands that are sent out by the bluetooth device. So far, I am able to scan and output a list of available devices. Any direction would be greatly appreciated - is this even possible? What should I be looking at now? I tried to use BluetoothDeviceAddress and IOBluetoothL2CAPChannelGetDevice but haven't had any success yet. Here is my code so far: #include <Foundation/Foundation.h> #include <Cocoa

How to use Qmltermwidget

自作多情 提交于 2019-12-08 07:21:12
问题 I would like to know how to use this qmltermwidget GitHub like how should I use it in a qt program whether I should include something like libs=-qmltermwidget in the .pro file or what should I do??? 回答1: You can check how hawaii-desktop/hawaii-terminal includes qmltermwidget , since it is based on it, as seen in its sources. It involves compiling the qmltermwidget sources through a plugin/qmltermwidget/qmltermwidget.pro file (See QT pro file Configuration Features) Those sources are declared

Specify CLI path for mTurk for Mac

百般思念 提交于 2019-12-08 06:56:48
问题 I am setting up the CLI on a MAC (iOS 10.9) and I believe I've set up the MTURK_CMD_HOME and JAVA_CMD_HOME paths correctly. But, I'm still getting an error that the file can't be found when I run getBalance.sh . My code is as follows: /users/USER/Desktop/aws-mturk-clt-1.3.1/ -bash: /users/USER/Desktop/aws-mturk-clt-1.3.1/: is a directory /System/Library/Frameworks/JavaVM.framework/Home -bash: /System/Library/Frameworks/JavaVM.framework/Home: is a directory export MTURK_CMD_HOME=/users/USER

In Mac OS X Terminal, what are the best colors, fonts, etc. to use?

我的未来我决定 提交于 2019-12-08 06:35:30
问题 What is a Good/Best Terminal setting? I had my terminal (Mac OSX) set on Homebrew but it's kind of boring! What setting do you guys use out there? Are there any i can import? Any that you would recommend? Love to know what colors, fonts, font size you use out there that are easy on the eyes? Thanks in advance ;-) 回答1: I use the Pro settings with minimal changes, and Visor because I really like having instant access to the terminal without alt-tabbing. 回答2: I really love the Solarized color

Terminal on the web browser?

江枫思渺然 提交于 2019-12-08 06:26:15
问题 Is there a way to put the terminal on the web browser instead, so I just fire up localhost:80 and then I'll have a terminal on it that I can use and whatever I execute it will execute on my local web server? And the outputs I want to be displayed on the web browser too, just like a normal Terminal. I'm using Ruby on Mac OS X/Ubuntu. 回答1: You can use shellinabox, here are deb packages. 回答2: There are several packages which allow you to log into a computer using ssh via a web browser, including

Change the escape sequence generated by xterm for key combinations

旧城冷巷雨未停 提交于 2019-12-08 06:24:02
问题 My goal is to set up a terminal in which a command-line interface program would behave as expected for the keyboard inputs (the program is written in xharbour originally for Windows but now I would like to port it to linux). I have chosen xterm to start with as it is simpler, no need for disabling default terminal key combinations. With putty most of the characters work out well and for those that don't I use autohotkey, an ahk script and that does the job. For example, for Ctrl+F1: ^F1:

command works fine through terminal but not shell_exec php

余生颓废 提交于 2019-12-08 05:47:50
问题 Got a weird issue i have installed wav2png on my mac osx with lion now and works fine when using terminal no problem but when i try to run it using shell_exec with php like below $wav2png = shell_exec("cd {$targetDir} && /usr/bin/wav2png --foreground-color=000000ff --background-color=00000000 -o example2.png f86150f88d.wav 2>&1"); echo "<pre>" . $wav2png . "</pre>"; I get the output dyld: Library not loaded: /opt/local/lib/libpng15.15.dylib Referenced from: /usr/bin/wav2png Reason:

Postgres.app setup: getting `which psql` to return desired path

拟墨画扇 提交于 2019-12-08 05:31:52
问题 I just installed Postgres.app, and now which psql returns nothing . I followed the instructions listed on the Postgres site; here's what I did: 1) Dragged my old version of Postgres to the trash. Emptied trash. 2) Downloaded the current version of Postgres.app. Dragged it to Applications folder. 3) Restarted Terminal. The output I'm looking for from which psql is something like: /Applications/Postgres.app/Contents/Versions/9.3/bin/psql When I run brew install postgresql followed by which psql

Why can't I get the cobalt2 zsh theme to work on my iTerm2?

谁说胖子不能爱 提交于 2019-12-08 04:50:39
问题 I want to install this ZSH theme . I downloaded both the iTerm2 and ZSH themes. The iTerm theme was imported through the preferences. The ZSH theme was inserted into ~/.oh-my-zsh/themes along with all the other ZSH themes. When I open my .zshrc and change ZSH_THEME="bobbyrussell" to ZSH_THEME="cobalt2" nothing happens. I restart iTerm but the colors are not changed. Updated with Details: ~ echo $ZSH_THEME cobalt2 ~ echo $PROMPT %/ ~ File: ~/.zshrc # Path to your oh-my-zsh installation. export

Delete nested hidden files with egrep and xargs

大兔子大兔子 提交于 2019-12-08 04:29:56
问题 I'm trying to remove all directories and files that are hidden and recursively remove them. the only hidden directories at current directory level are . and .. but each of several directories has several hidden files (begin with ._ ) within them. ls -aR | egrep '^\.\w+' | will list out all the files I want easy enough, but adding '| xargs 'rm'` gives me the rm error "No such file or directory". I take this to mean that each directory I'm trying to remove needs to be appended with it's parent