Friday, January 18, 2013

SFTP Command

Graphical SFTP clients


Two SFTP clients, CyberDuck
(for Mac OS X) and WinSCP (for Windows), are available for free download.

Graphical SFTP clients simplify file transfers by allowing you to drag and drop icons
from one window to another. Each icon represents a file or directory, and each
window represents a computer's file system. When you open the program, you specify
the name of the remote host to which you want to connect (e.g., www.mysecuredomain.com), and then authenticate with your username and password for
that host.

SPTP is very useful if you have two server in different location and you want to
migrate some data from one server to the other without downloading and then
uploading. In this case you just need to ssh to the source host then sftp to the
remote and you can then copy file from the source host to the remote host.


Command-line SFTP
You can use SFTP from the command line on Unix and Mac OS X computers. To start an
SFTP session, at the command prompt, enter:

sftp username@host
For example, if your username is bigbrother, to connect to your account on the host
iswatchingyou.com, enter:

sftp bigbrother@iswatchingyou.com
Enter your password when prompted.


Some standard commands for command-line SFTP include:

cd Change the directory on the remote computer.
chmod Change the permissions of files on the remote computer.
chown Change the owner of files on the remote computer.
exit (or quit) Close the connection to the remote computer and exit SFTP.
get Copy a file from the remote computer to the local computer.
help (or ?) Get help on the use of SFTP commands.
lcd Change the directory on the local computer.
lls List the contents of the current directory on the local computer.
lmkdir Create a directory on the local computer.
ln (or symlink) Create a symbolic link for a file on the remote computer.
lpwd Show the current directory (present working directory) on the local computer.
ls (or dir) List the contents of the current directory on the remote computer.
lumask Change the local umask value.
mkdir Create a directory on the remote computer.
put Copy a file from the local computer to the remote computer.
pwd Show the current directory (present working directory) on the remote computer.
rename Rename a file on the remote computer.
rm Delete a file on the remote computer.
rmdir Remove a directory on the remote computer (the directory usually has to be
empty).
version Display the SFTP version.
! Exit to the Unix shell prompt, where you can enter commands. To get back to SFTP,
enter exit. If you combine ! with a command (e.g., !pwd), SFTP will execute the
command without dropping you to the Unix prompt.

Thursday, January 10, 2013

Notepad++ For Windows 8 RT ARM

That's it Windows 8 RT ARM based tablet are out there but as many already noticed Windows 8 RT is lacking a lot of useful software available on Windows x86 and Windows 64 platform.

A lack of apps has been one of the big complaints for Windows 8, particularly the RT version, which doesn't run Windows 7 apps. (Full Windows 8 PCs will run any app that works on Windows 7 mode.) No one thought this would be a permanent problem even though Microsoft failed to make its goal of 10,000 apps in the store by launch day.

The most important application is certainly a good Text Editor. Forget about Notepad or Wordpad...

So I decided to build Notepad++ for Windows 8 RT based on source code http://notepad-plus-plus.org/

You can download the 7z archive from http://shop.actimus.com/

Wednesday, October 31, 2012

XML Parser using XmlReader from an XML string in C#

System.Text.UTF8Encoding encoding = new System.Text.UTF8Encoding();
Byte[] pBytes = encoding.GetBytes(strXML);
MemoryStream pMem = new MemoryStream(pBytes, 0, pBytes.Length, true, true);
XmlReader reader = XmlReader.Create(pMem);
string s = Encoding.UTF8.GetString(pMem.GetBuffer(), 0, (int)pMem.Position);
XmlElement element;
XmlDocument xmlDoc = new XmlDocument();
pMem.Seek(0, SeekOrigin.Begin);


while (reader.Read())
{
XmlNode node = null;
switch (reader.NodeType)
{
case XmlNodeType.Element:
bool fEmptyElement = reader.IsEmptyElement;
element = xmlDoc.CreateElement(reader.Prefix, reader.LocalName, reader.NamespaceURI);
//element.IsEmpty = fEmptyElement;
//ReadAttributes(reader, element);
//if (!fEmptyElement) {
//parent.AppendChild(element);
//parent = element;
//continue;
//}
//node = element;
break;

case XmlNodeType.EndElement:
//if (parent.ParentNode == null)
//{
// syntax error in document.
// IXmlLineInfo li = (IXmlLineInfo)reader;
// throw new XmlException(string.Format(SR.UnexpectedToken,"", li.LineNumber, li.LinePosition), null, li.LineNumber, li.LinePosition);
// }
//parent = parent.ParentNode;
continue;

case XmlNodeType.EntityReference:
if (reader.CanResolveEntity)
{
reader.ResolveEntity();
}
continue;

case XmlNodeType.EndEntity:
continue;

case XmlNodeType.Attribute:
//node = LoadAttributeNode(parent);
break;

case XmlNodeType.Text:
node = xmlDoc.CreateTextNode(reader.Value);
break;

case XmlNodeType.SignificantWhitespace:
node = xmlDoc.CreateSignificantWhitespace(reader.Value);
break;

case XmlNodeType.Whitespace:
//if (preserveWhitespace) {
// node = xmlDoc.CreateWhitespace(reader.Value);
// break;
//}
//else {
//continue;
//}
continue;
case XmlNodeType.CDATA:
node = xmlDoc.CreateCDataSection(reader.Value);
break;

case XmlNodeType.XmlDeclaration:
break;

case XmlNodeType.ProcessingInstruction:
node = xmlDoc.CreateProcessingInstruction(reader.Name, reader.Value);
break;

case XmlNodeType.Comment:
node = xmlDoc.CreateComment(reader.Value);
break;

case XmlNodeType.DocumentType:
string pubid = r.GetAttribute("PUBLIC");
string sysid = r.GetAttribute("SYSTEM");
node = xmlDoc.CreateDocumentType(reader.Name, pubid, sysid, reader.Value);
break;

default:
//UnexpectedNodeType(reader.NodeType);
break;
}
}

Windows 8 liveblog

http://www.wired.com/gadgetlab/2012/10/liveblog-microsoft-rolls-out-windows-phone-8/

Wednesday, October 17, 2012

How To Prevent Visual Studio 2012 ALL CAPS Menus!

If you can’t stand the ALL CAPS menus in Visual Studio 2012 there’s a way to switch them to normal casing. open your registry editor and create the following registry key and value HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\General\SuppressUppercaseConversion REG_DWORD value: 1 Go figure why this is set in the registry...
Before


After

Thursday, September 13, 2012

Convert JAVA to C#

When I was looking for ways to convert Java to C# I found some very interesting JAVA to C3 class available from a some folks at Versant. Part of there developement, they converted a bunch of JAVA Class to C# using sharpen The source code of sharpen is available https://source.db4o.com/db4o/trunk/sharpen/ db4o product is now more mature with a Current product version 8.0 and is available at the following location http://www.db4o.com/DownloadNow.aspx Some snapshot of the code is available http://www.koders.com/info.aspx?c=ProjectInfo&pid=6NHM8BDANR31VECB75REWUAC2H http://www.tangiblesoftwaresolutions.com/Demo.htm

Monday, August 06, 2012

IIS Windows 7 Ultimate

Microsoft IIS (Internet Information Services, formerly called Internet Information Server) is a set of Internet-based services for servers created by Microsoft to be used with Microsoft Windows. It is the world's second most popular web server only after the Apache HTTP Server. The servers provide services for File Transfer Protocol, SMTP for e-mail and HTTP/HTTPS for web server.
In this article we will explain you how to install The Microsoft IIS Webserver on your computer. The IIS Server is NOT available for Microsoft Windows 7 Home edition as they say the Home edition was not meant for networking. So you must have the Proffessional edition or the Ultimate edition of Windows 7 installed on your computer for installing the IIS Webserver. You will also be needing the Windows 7 DVD during this install. Now, Follow the steps below:
1. Place the Windows 7 Ultimate or Windows 7 Proffessional DVD into your DVD-Rom Drive.
2. Goto Start > Control Panel > Programs
3. From the dialog box that opens, click on Turn Windows features on or off. You can check this detailed guide on how to add or remove Windows features in Windows 7.
4. This brings another dialog box that contains a list of many Windows related services
5. Check the box for 'Internet Information Services (IIS)' leaving all the default installation settings intact. If you would like to install additional services, then expand each option and select them.
6. Once IIS is installed on your machine you can view your home page in a web browser by typing 'http://localhost' (you can substitute 'localhost' for the name of your computer) into the address bar of your web browser. If you have not placed your web site into the default directory you should now be looking at the IIS documentation.
7. Service and Configuration management for your IIS web server
8. You might like to install IIS Tuner in order to configure your IIS server installation for optimum performance.
9. Now, Install the Web development options for Visual Studio 2012 RC

Wednesday, August 01, 2012

The cost of connectivity

Forget about the Olympics.... USA first city/provider... rank 30 Can't wait for Google Fiber !!! http://oti.newamerica.net/publications/policy/the_cost_of_connectivity

Rank

City

ISP

Download Speed

Upload Speed

Price (USD/PPP)

Network Technology

Data Cap (GB)

1

Riga

Balti-Com

20

5

25.43

Cable

None

2

Seoul

KT

50

50

32.74

Fiber

None

3

Paris

Free

100

50

34.47

Fiber

None

4

Seoul

LGplus

100

100

35.78†

Fiber

None

5

Paris

SFR

25

--

36.67†

ADSL

None

6

Paris

Bouygues Telecom

20

0.512

36.67

ADSL

None

7

Paris

Orange

20

--

37.53

ADSL

None

8

Copenhagen

Telia

20

1

40.36†

DSL

None

9

London

Virgin

30

--

43.03†

Fiber

None

10

Paris

Darty

100

5

43.56†

Fiber

None

11

Amsterdam

T-Mobile

20

1

44.64†

DSL

--

12

Berlin

TeleColumbus

16

1

44.93

Cable

None

13

London

BT

16

--

45.45

DSL

None

14

Riga

Lattelecom

20

20

45.66

Fiber

None

15

Hong Kong

City Telecom Limited

500

20

46.72

Fiber

None

…

…

…

…

…

…

…

…

30

Lafayette

AT&T*

6

1

65.60

DSL

250

32

Chattanooga

AT&T*

6

1

68.44

DSL

250

33

San Francisco

AT&T*

6

1

73.94

DSL

250

34

Los Angeles

Verizon*

7

--

79.99†

DSL

None

38

San Francisco

Comcast

20

4

89.97

Cable

300

39(t)

New York

RCN

25

2

89.99†

Cable

None

39(t)

Washington DC

RCN

25

2

89.99†

Cable

None

41

Washington DC

Verizon*

15

5

89.99†

DSL

None

43

Los Angeles

TimeWarner

10

1

89.99

Cable

None

46

Bristol

BVU

16

3

96.40

Fiber

None

47

Washington DC

Comcast

20

--

99.00

Cable

300

48

Bristol

Charter

15

3

99.97†

Cable

100

49

Chattanooga

Comcast

20

4

99.99

Cable

300

50

Lafayette

LUS

15

15

103.89

Fiber

1024

51

Bristol

CenturyLink*

10

0.7

107.26†

DSL

250

52

New York

Time Warner

15

0.78

112.69

Cable

None

53

San Francisco

Astound

10

1

124.00

Fiber

100

55

Chattanooga

EPB

30

30

129.51

Fiber

None**

56

Lafayette

Cox

15

1.5

133.96

Cable

200

57

New York

Verizon

10

2

154.98†

Fiber

None

Thursday, July 12, 2012

Thursday, June 28, 2012

Google demonstrated streaming AAA video game content like Electronic Arts' Bulletstorm without the need for Flash or Java

http://www.youtube.com/watch?v=JbMF-X08etY&utm_source=Gaikai+Beta+Signup&utm_campaign=3c64c7d0ae-Google+Beta+List&utm_medium=email At Google I/O today in San Francisco, Google demonstrated streaming AAA video game content like Electronic Arts' Bulletstorm, made by Epic Games and People Can Fly, in the Google Native Client on a Samsung Chromebox. By working closely with Google's team, Gaikai will soon allow you to run high end console-quality games instantly from the Cloud in your Chrome browser and Chrome OS without the need for Flash or Java. You can run a complete gaming experience, including using a gamepad and playing full screen. Over the last three years, Gaikai has built the fastest interactive gaming network in the world and is proud to be chosen to demonstrate this new Chrome capability in the Google Keynote today.

Friday, June 08, 2012

NOKIA please bring a 42 mega pixel Windows Phone to US now!

The company is not doing itself any favors as it lumbers within the smartphone business. It missed a rare opportunity to release a version of the Nokia 808 with its 42-megapixel camera. This unit was shown in the big Mobile World Congress earlier in the year with no plans to bring it out in the U.S. Why not? One reason may be because it was running on the old Symbian OS. But why did the company do that in the first place? I’m positive that a Windows Phone from Nokia packing a 42-megapixel sensor would get a lot of attention and subsequent sales. But the company apparently doesn’t think so. http://www.marketwatch.com/story/is-it-time-to-buy-nokia-2012-06-08?link=MW_latest_news

Tuesday, June 05, 2012

Sequoia's "RIP Good Times" Revisited

http://www.businessinsider.com/sequoia-rip-good-times-full-2011-3#

IE10 and FLASH

Finally, there’s Internet Explorer 10, Microsoft’s in-house web browser, which adds a couple of interesting features. First, Microsoft has added a strip of frequently visited and pinned/bookmarked sites that appear when you begin typing in a URL. Potentially more useful, however, is “Flip Ahead,” which adds an arrow (only visible if your mouse is close by) to the right of the screen. The arrow looks at Bing user activity and page data and actually tries to predict the most likely page you want to go to. This would be very handy for, say, articles split among multiple pages — that is, if it actually took you to the next page. In my brief test with a few multi-page articles from Slate, it did nothing of the kind, but perhaps it just needs tweaking (and more user data). Most important, IE10 now has Flash compatibility built in. However, as Microsoft explained to me, this does not mean that every Flash site will render properly. Since IE in Metro uses a customized version of Flash that Microsoft worked directly with Adobe to create, sites need to submit themselves for approval to work with IE10. Microsoft said it’s already taken care of big Flash sites (like YouTube) and more are getting added to the bucket. This seams to be the best way to avoid bogus SWF to mess up your CPU and so forth. This should be the same for Android APP to reduce the ridiculous amount of ADB log draining the battery Please Google implement a turned on or off ADB LOG in the settings of next Android OS. http://mashable.com/2012/05/31/windows-8-release-preview-2/

Microsoft with its unveiling of Xbox SmartGlass

SmartGlass is not a kind of glass. Maybe it's the buzz about the Gorilla Glass featured on the new Samsung Galaxy S III smartphone. Or the fact that touchscreens are a key part of the feature. Or -- you know -- the fact that they called it SmartGlass. But some folks have been confused on that score. The feature is actually an app. It will work with the Windows 8 operating system, which runs on both PCs and mobile devices, to link up tablets and smartphones with the Xbox console and, by extension, a user's TV. So I need a Windows phone or tablet? No, you don't. Obviously, Microsoft would prefer you buy something such as the Nokia Lumia 900 or one of the many tablets expected to be released once a final version of Windows 8 is up and running later this year. But SmartGlass will also work with Apple devices, such as the iPhone and iPad, or mobile devices running Google's Android operating system. As long as you have an Xbox 360 and either a PC running Windows 8, mobile devices running Windows 8 or an iOS or Android device, you're good to go. http://www.cnn.com/2012/06/05/tech/gaming-gadgets/xbox-smartglass-explainer/index.html