Monday, December 19, 2011

Text editors


Text editors are programs that can do just that, edit text. Some of the most common examples of text editors are word processors, programs such as Microsoft Office Word and Libreoffice Writer. These programs use XML, not raw text, to create the document. This effectively corrupts the text so that it cannot be used for programs unless copy+pasted. Therefore, the use of a pure text editing program is required. This is my list of favorite text editors.



1 - Gedit
Gedit is the Gnome text editor for the Gnu/Linux Operating System. It is simple in nature and does not come with many features, but can be turned into anything you wish because of it's free nature and the ability to customize it with addons.  Gedit comes with features out of the box that Windows Notepad doesn't have by default, most notably Syntax highlighting for many programming languages. Gedit isn't fit for massive programming projects or handling massive amount of text, but it is perfect for a quick fix to a configuration file or a small edit to a README.


2 - Kate -Kate is an acronym for K advanced text editor. And it is exactly that, advanced. Similar to Gedit it has support for syntax highlighting for many programming languages and can still edit any text file with automatic spell check. Kate has many built in features along with the ability to be modified using addons. The only issue with KATE is that users not used KDE may experience a lot of dependencies along with it. This is a must-have for anyone that has access to it. Hello.


3 - Emacs  Electronic MACros
Emacs is probably the most talked about text editor in the programmer/hacker community as it was created by Richard Stallman himself, the original president of the Free software foundation as well as the creator of the GNU Operating System, which is normally paired with the Linux kernel to run what many people simply call "Linux". The text editor is, in my opinion, the absolute best text editor for programming. It is capable of editing text, sending email, playing games, and all while being done by fully changeable keyboard shortcuts as long as 6 keys. This text editor has the option of compiling the project you are currently working on right from it's own dialog. In addition to all of this it can be run in graphics mode and from the command line, whomping VI (in my opinion) as well as KATE and Gedit, however even Emacs has it's limitations.


Emacs seems to be prone to crashes from my experience with it, and some of the features designed to help it's users may be found obstructive to some, such as the parenthesis patching. Emacs is an invaluable tool for program, but for straight text editing it is too powerful. Using emacs for editing text is like using a tank to sqash a gnat.








There are other text editing programs for other operating systems like Notepad (which I mentioned earlier, it is probably the worst of all of them. It's basically a giant text area that can be saved) Notepad+++ is the best option if you want to use WIndows to edit programs.

Saturday, December 10, 2011

The masked internet

I have long considered writing a post about the un-indexed web and the deep web (that can be accessed through tor). Whenever I started writing the post, something in my mind was telling me "STOP". That is because of the dark stigma related to the deepweb. I will start explaining exactly what these hidden internets are with an analogy.

Imagine the normal internet as being Boston. You live far away from New York City and are sometimes influenced by it, however, without prior knowledge you do not know that it is there. Boston is big, but further out there is a much larger city waiting to be discovered. You hop a ride on a special device called a car (a tor analogy) and ride into the large city, amazed at it's size. That is what this masked internet is like.

There is a difference between the unindexed internet and what people refer to as the "deep web". The unindexed internet is simply not cataloged by search engines due to being under password protection. For a safe example of what the unindexed web is like, go to www.strange.com. It is illegal to break into the servers, so what information is hidden is not legally accessible.

The "deepweb", on the other hand, is perfectly legal to view despite it housing content that is illegal in most countries. To access this internet, I would recommend downloading the tor browser bundle from www.torproject.org. You need some version of tor, but the browser bundle contains everything someone new to using it will need to keep safe. In addition to using tor setting up a proxy may be a good move to further protect yourself.

WARNING: Before you go any further make sure that you have cleared your internet history in all of your browsers and closed all processes relating to them.

ANOTHER WARNING: Some of the content located in the deep web is illegal to view. You can legally visit the deep web as long as you do not seek out this content.

Once you have the tor browser bundle, have closed all necessary processes, have a proxy set up to work with tor (optional), you are prepared to take your first step into the deep web. Start off with a popular starting point: kpvz7ki2v5agwt35.onion

As you can see that address has a new extension and an odd location. Copy and paste it into your tor browser as-is. Tor is slow, so be patient while you wait for it to load. A white screen should pop up with a link to the hidden wiki. The hidden wiki is a collection of links to useful services, like search engines for the deep web, email services, forums, hosting services, etc. I have never actually traveled beyond the articles on the hidden wiki since I do not want to stumble upon anything that could give me a criminal record or attempt to infect my computer with a virus (which I have no worries for, since I am a Linux user, but for those Windows users out there, I warned you.)

Here are some neat facts about the masked internets

The hidden internets make up about 99% of all of the interenet. The surface web with sites like facebook, twitter, google, etc. make up only a small 1%.

Much of that content is raw information that is poorly organized, but searchable.

A hidden operating system used to be available for download. The broken link still remains on the hidden wiki.

Several operating systems are dedicated to private browsing and/or the deep web, using default settings that protect your privacy even further than a normal OS.

So I have taught AND warned you about this internet. What you do with the information is your choice. I have never been any further than the hidden wiki, but just from some of the links that I have read there I can see that some of the content is dangerous (assassin markets and drug trade, just to name a few). So if you just wish to stick your head it like me, I wouldn't venture any further out than the hidden wiki.

Sunday, November 6, 2011

Debian 6 - Squeeze

         Ubuntu is one of, if not the, most popular Linux distribution; but it didn't just rise from the abyss. Ubuntu is actually a fork of another distribution called Debian, which takes to calling itself the "Universal Operating System". The reason for the fork was to create a familiar environment that is just updated more frequently than Debian was, and it seems to have stuck. Ubuntu is not the only fork of Debian, other distributions such as Linux Mint and Gnewsense are based off of Debian.

      I was fearful of trying Debian at first, since I hadn't yet stepped out of the "user friendly distributions". When I first installed it a few months ago my fears were confirmed, and nothing seemed to be going my way. First of all, network drivers for my wireless card (Ralink) were not installed during the installation like other distributions have done. At first I blamed Debian for being a poor distribution, but it turns out it was done for a reason: my drivers were proprietary, but I did not yet know that. Next I ran into issues with composting, since Gnome 2 doesn't have a composting manager by default.

    With all the trouble I was having with Debian I retreated back to Ubuntu, discouraged by everything that went wrong. 3 months past, and I was more eager than before to move away from Ubuntu. I searched around for what the root of my network problem could be until I found that it was caused by a proprietary driver not installed by default. I tracked down the exact driver I needed here, downloaded it from a computer with internet, and installed it on Debian with the command "sudo dpkg -i (filepath to the .deb). Now that I had internet, I was a happy camper since I would be able to search around on how to fix problems on the OS that was causing them.

   After some work on it, I had it finetuned exactly to my liking, and all was good... until I managed to break it to the point that reinstalling would be the easiest thing to do. After a reinstallation I lost interest in Debian since I would have to reinstall all of the software I had lost and reset all of the keyboard shortcuts, settings, etc. 

   Overall I found Debian 6 to be an amazing Operating System once you get everything on it working. One of the greatest tricks is editing '/etc/apt/sources.list' to add, change, or remove repositories. The repositories for Debian 6 were somewhat outdated, even to the point where it still used Gnome 2, so adding a few new ones for more recent software is a good idea.

  My recommendation to anyone considering trying Debian would be to not go with the stable release, but unstable or even the experimental one. 

    

Tuesday, September 6, 2011

My robot status update

I figured I would go ahead and give a status report on my chatbot program. I have made large advances and changes in the way that it works. Since the code cannot yet function the source code is NOT publically available at this time. Let's run down the first development version with this one.
Before
⊕ No class files other than main.
⊕ Files were copied, saved, and added with the extra line.
⊕ A LOT of file, scanner, and printwriter classes.

Now
⊕ Separate class with 1 method and 1 more planned. Think and learn.
⊕ New tactics for detecting if input matches.(file.toString.contains(input)
⊕ Still many scanners, files, and printwriters.

Before the next update
⊕ Think method completion. Next would be learn.
⊕ Better handling of category completion booleans.
⊕ User-friendly mass editing program for the robot's learning file.