VJia - Software Development

Blog, Code, Life

使用带有TAB功能的superPutty代替putty

| Comments

设置中SuperPutty是依赖于putty的,需要设置Putty.exe的路径。

官网: http://code.google.com/p/superputty/

下载地址:link

官方说明:

Introduction

SuperPutty is a Windows GUI Application that allows the PuTTY SSH Client to be opened in Tabs. Additionally there is support for SCP to transfer files.

SuperPutty is written in C# and runs on any Windows platform supporting the .NET Framework 2.0 or newer.

Features

Docking user interface allows personalized workspace and managing multiple PuTTY sessions easy
Export/Import session configuration
Upload files securely using the scp or sftp protocols
Layouts
Supports PuTTY session configurations including Private Keys
Supports SSH, RLogin, Telnet and RAW protocols
Supports local shell via MinTTY or puttycyg
Supports KiTTY 

Project Status

SuperPutty is stable and usable. Please report and bugs in the issue tracker

来自softpedia.com的评论:

SoftPedia.com

Softpedia Editor’s Review for SuperPuTTY

EDITOR’S RATING: 4.5/5

**Accessible and user-friendly PuTTY interface that features support for KiTTY, SSH, RLogin, RAW protocols, Telnet and local shell

Written by Mihaela Citea on November 28th, 2013

SuperPuTTY aims to enhance the capabilities of the PuTTY SSH and Telnet client by allowing you to launch it in multiple tabs. It offers you the possibility to easily manage multiple sessions of PuTTY using a single, comprehensive working environment.

Aside from this significantly important advantage, the application comes with all the advantages and tools that PuTTY brings. It features support for multiple connection types and protocols, including Raw, Telnet, SCP, Rlogin, SSH, Serial, KiTTY and local shell via Cygterm and Mintty.

The tab-based interface enables you to personalize your workspace and organize all the running PuTTY sessions. You can easily create a new session and opt for the desired profile to load. The xterm terminal emulator is intended for advanced users, while the comprehensive configuration panel of PuTTY enables you to change the connection options.

Various general settings are available for customization and the application enables you to configure line discipline and remote-controlled printing. Also, you can set keyboard controls, notifications and alarms, as well as tweak the behavior of the terminal screen, TCP connections, login and terminal details, environment variables, proxy settings and a few settings specific to each protocol type.

Sessions can be imported and exported and layouts can be saved for later use. The main window of SuperPuTTY allows quick switching between used protocols, hosts and sessions, as well as one-click configuration selection and command sending.

SuperPuTTY enables you to link your machine to multiple computers and control all the workstations using one single interface. Aside from running multiple sessions, it tries to enhance the power of PuTTY even more, with advanced support for data encryption, reliable command-line SCP and SFTP clients for file uploading, port forwarding and private key-based authentication.

解锁Oracle账号

| Comments

错误信息:

ORA-28000 Error: ORA-28000: the account is locked

Cause: The user has entered wrong password consequently for maximum number of times specified by the user’s profile parameter FAILED_LOGIN_ATTEMPTS, or the database administrator has locked the account.

Action: Wait for PASSWORD_LOCK_TIME or contact the database administrator

解决办法:

To unlock an user manually: ALTER USER username ACCOUNT UNLOCK;

to change his password: alter user username identified by new_password;

创建Solr UI应用

| Comments

~$ git clone git://github.com/imathis/octopress.git hellosummer_blog

git push origin branchName git remote add -t master -f origin https://github.com/hellosummer/hellosummer.github.com.git $git remote add origin git@github:YourGithubID/work.git

git checkout -b feature_x git push origin

不同情况的提交:

1.checkout新项目,修改,提交 //在当前目录下建立solrLearning目录,并克隆成功solrLearning项目 $ git clone git://github.com/icersummer/solrLearning.git solrLearning //如下命令checkin成功 $ git push https://github.com/icersummer/solrLearning.git master Username for ‘https://github.com’: Password for ‘https://icersummer@github.com’: To https://github.com/icersummer/solrLearning.git dcfaaac..16d9c7e master –> master

2.已存在的checkout的项目,拉取最新,修改,提交 git pull

3.建立分支,修改,提交

4.已存在分支,拉取最新,修改,提交

5.合并其他分支到Master分支 git merge

6.回滚本地未提交改动 git checkout —

7.覆盖本地所有改动与提交 git fetch origin

实用小贴士

内建的图形化 git: gitk 彩色的 git 输出: git config color.ui true 显示历史记录时,每个提交的信息只显示一行: git config format.pretty oneline 交互式添加文件到暂存区: git add -i

导入、导出Oracle数据

| Comments

导出数据: exp myadmin/myadmin@myinstace (data store on c:\backup.dmp)

导入数据: sqlplus / as sysdba; (问题TBD: 为什么有的命令行可以运行并登录sqlplus / as sysdba; 而有的机器却报错,而且只能通过输入用户名密码的方式登录如:sqlplus system/password as sysdba; 区别和设置在哪里。) create user vjtest identified by vjtest; grant dba to vjtest;

imp fromuser myadmin touser vjtest file=c:\backup.dmp (在提问中输入用户名、密码:vjtest, vjtest)

同一用户的话使用:imp fromuser myadmin touser myadmin file=c:\backup.dmp

added in Apr.16th

执行报错:

1
2
3
4
5
6
7
8
9
10
D:\Users\vjia>imp system/syspwd fromuser=itadmin touser=testdb file=c:\data_dmp.dmp full=y

Import: Release 11.2.0.1.0 - Production on Wed Apr 16 12:33:35 2014

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.


IMP-00058: ORACLE error 12560 encountered
ORA-12560: TNS:protocol adapter error
IMP-00000: Import terminated unsuccessfully

错误原因在于:

(参考这里)[http://www.orafaq.com/forum/t/175836/]

1
2
3
4
5
ORA-12560: TNS:protocol adapter error
The database is local to the machine you try to execute this command and your ORACLE_SID is not set.
ORA-12154: TNS:could not resolve the connect identifier specified
The database is remote from the machine you try to execute this command and your tnsname.ora does not know the entry you gave (orclimpl)
In first case, set ORACLE_SID; in latter one, add the entry in your tnsnames.ora (and check there is a listener on database server).

解决方法就是:设置Oracle SID后再试

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
D:\Users\vjia>set ORACLE_SID=scottfeb

D:\Users\vjia>imp system/syspwd fromuser=itadmin touser=testdb file=c:\data_dmp.dmp full=y

Import: Release 11.2.0.1.0 - Production on Wed Apr 16 13:30:10 2014

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.


Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

Export file created by EXPORT:V11.02.00 via conventional path

Warning: the objects were exported by ITADMIN, not by you

import done in WE8MSWIN1252 character set and UTF8 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
. importing ITADMIN's objects into TESTDB
. . importing table                         "TEAM"       2789 rows imported
. . importing table                      "TEAMD"          0 rows imported
About to enable constraints...
Import terminated successfully with warnings.

How to Find the Lost Chrome Bookmarks

| Comments

how to find the lost Chrome bookmarks


I don’t know why, but one day when I open my Chrome, all the bookmarks gone. I’m still signed in with my gmail account. I believe these bookmarks are stored locally. The last bak file I can find is 5 month ago.

I find a way to find a possible backup via Google search;

I found the backup version of my bookmark but it is 15 days old. Atleast I found a place there Google Chrome keeps a backup copy but it is located in some obscure folder directory. C:\Users\NAME\AppData\Local\Google\Chrome\User Data\Default There is a file called: Bookmarks.bak. The sad part that i can not simply rename this file to Bookmarks aand for chrome to be back in business. One has to locate a JSON parser to parse through this JSON file into a html file for Chrome to ingest the html bookmark. I am looking around for a JSON parser into HTML then ingest this new html file into my PC chrome browser.

Folder in my local is D:\Users\$name\AppData\Local\Google\Chrome\User Data\Default

You can find the file Bookmarks.bak with JSON format.

Test and Come on Post

| Comments

The relationship of ExtJS, GWT and SenCha. The detail information info can be found at Wiki page.

On 15 June 2010, the merge of Ext JS with JQTouch and Rapha?l was announced[7] forming a new organisation called Sencha Inc. Ext JS continues to be available as a main product on the new Sencha website[8] together with Sencha Touch, Sencha GWT (now Sencha GXT), Sencha Architect, Sencha Animator and Ext core.

A First Blog in Octopress

| Comments

Merge pull request #1400 from axiac/fixed-titlecase-usage

November 17, 2013

?

plugins

Merge pull request #1397 from IQAndreas/cleanup-date

November 18, 2013

?

sass

vj commit

November 22, 2013

?

source

vj commit

November 22, 2013

?

.editorconfig

Add EditorConfig file for Ruby files

February 26, 2012

?

.gitattributes

Added .gitattributes file to keep CRLF’s out of the codebase.

March 05, 2013

?

.gitignore

added node_modules to gitignore

September 27, 2011

?

.powrc

Adding .powrc to allow RVM to work when POW is updated to version 0.4¡­

June 08, 2012

?

.slugignore

added slugignore to help with heroku deployment

[Ubuntu] 怎样修改计算机名字

| Comments

按下 Ctrl – Alt – T 组合键,打开终端。 当终端打开,输入下列命令,使用gedit编辑hostname文件

sudo gedit /etc/hostname

接下来,无论旧的计算机名字是什么,换一个新的吧。例如,如果你想要你的计算机名字为“RDOMNU”,先删除文件内容,输入 RDOMNU,然后保存文件。

然后,再输入下列命令来打开hosts文件

sudo gedit /etc/hosts

更改第二行箭头标记位置的值,使它与你刚才输入的计算机名字相符,完成后保存文件。

Ubunbu hosts

重启,显示新的名字。

$ sudo reboot -h 0

参考链接: