Поиск по блогу

пятница, 20 марта 2015 г.

"Brackets" и ссылки для установки новых универсальных текстовых редакторов

Пробуя поиск с nbViewer набрел на документацию "Python for Vision Research", а там классная подборка редакторов кода. Вот "редакторы нового типа": SublimeText, Zed, Atom, Brackets, LightTable Я их посмотрел "между делом"... и что-то даже установил. Очевидно, что их (бесплатные) нужно будет пробовать.
Здесь я пытался переустановить "Brackets", пробовал sudo apt-get -fy install, но не могу сейчас тратить время на исправление ошибки Brackets can't run on Debian 7 (Wheezy) #4816
Вернусь к этой теме позже.

Редакторы в разделе "Editing Python scripts"

Python scripts are just text files. If you want, you can open them using any text editor, even Notepad. However, it is best to use specialized text editors for the task because they help you to code. Although in this tutorial we rely exclusively on IPython to write and run our scripts, in real life people usually use other text editors or integrated developments environments (IDEs) to create and run their scripts. Here is a list of some of our favorites:

Установка из локального пакета

Is there a way to install packages store on your HD with apt-get, like a "apt-get install ./package.deb ? If not how to handle the dependencies in a very very easy way.

In [ ]:
# usually I do 

dpkg -i <deb file>

# it'll fail saying it needs dependencies. After that when you do an apt-get update 
# it'll say at the end something like #"dependencies are ready to install" 
# I think it then advises to use 

apt-get install -f.

# Once that's done, I use 

dpkg -i again.

# Worked fine for me last few years.

# edit: looking a bit further, apparently a tool called gdebi can do this as gdebi [deb file]
In [ ]:
#Sirex has it more or less correct, but his answer isn't clear. I just solved this, so here's what I did:
sudo dpkg -i /path/to/filename.deb

#If this fails with a message about the package depending on something that isn't installed, you can probably fix it if you run
sudo apt-get -f install

This will install the dependencies (assuming they're available in the repos your system knows about) AND the package you were originally requesting to install ('f' is the 'fix' option and
'y' is the 'assume yes to prompts' or 'don't ask me if it's ok,
just install it already'
option -- very useful for scripted silent installs).
On the system I was on, there was no need to run dpkg again (Ubuntu lucid 10.04).
I found it interesting that if you leave off the -f when you run sudo apt-get install, it will list your package as not being configured due to an unresolved dependency as well as helpfully suggesting: Unmet dependencies.
Try 'apt-get -f install' with no packages (or specify a solution).

In [ ]:
# Edit:
# If you want install without having to answer 'y' to all of the questions, you can add the y modifier as I originally included: 

sudo apt-get -fy install

# However, a commenter pointed out that apt will sometimes suggest that you uninstall your entire desktop environment. 
# I was doing this work in a VM and didn't have that concern, but this post has been updated to reflect being a bit more careful.
In [ ]:
root@kali:/home/kiss/Downloads# dpkg -i Brackets.Release.1.2.32-bit.deb
Selecting previously unselected package brackets.
(Reading database ... 385929 files and directories currently installed.)
Unpacking brackets (from Brackets.Release.1.2.32-bit.deb) ...
Setting up brackets (1.2.0-15697) ...
Processing triggers for menu ...
Processing triggers for hicolor-icon-theme ...
root@kali:/home/kiss/Downloads# 


Посты чуть ниже также могут вас заинтересовать

Комментариев нет:

Отправить комментарий