Quick Note on fuelphp transfer.


Yesterday I blogged about the need to change the underlying framework from codeigniter to fuel. This I have discovered was a lapse in judgement due to the desire for certain pre-built functionality that is not wholly necessary for version 1. I went through fuel and come to the following conclusions.

1. Fuel (fuelphp) is a great framework. It has functionality that is incredibly desirable such as a database interaction through object relation mapping and a authentication frame (not authentication but more a model in which to build upon).

2. My current framework codeigniter, while suitable for small fast prototyping, does not have all the tools that I need to create exactly what I feel that I need they way that i want it.

3. This is the most important thing. What I desire is not what i am trying to do immediately.

My project, for those who haven’t read about what I am trying to do, is create a custom content management system, along with a set of tools, for developing large back end systems for specific clients.

Right now I am working on a prototype system. This is more of an idea implementation as it is a releasable project.

Conclusion:
For now I am going to stick with codeigniter for version 1 of my project and learn the details of fuel during the next few months for a transfer to fuel for version 2 (maybe 3 not sure yet).

Despite this I will still be post lots about my discoveries of fuel, mainly because it is new and it strikes me as the next big thing in php frameworks.

Quick Tip – Connecting to Another Machine (Linux to Linux)


In todays quick tip I will discuss methods of connecting to another computer. There are many different methods of doing this, even more if you want to mix and match between Windows, Mac OSX and Linux. Today I will just be looking at a Linux to Linux connection.

First off, for today I am going to be connecting to a system that I built for my parents (details of the build to come) to grab a few photographs that my dad took on his latest holiday. They have a central Linux system with a file server through port forwarding on port number 400.

The first method to connect is via a simple ssh shell command

ssh dad@X.X.X.X -p 400

Where dad is my dads username, X.X.X.X is his IPv4 address and -p 400 says that i want to connect on port 400 which will tell the router at my dads house that I actually want to talk to the file server. What I have now is a connection to file server and access to everything on that local machine, with the input output information sent to my machine.

So what can i do with this. Funnily enough, this simple command is powerful if you want to use the remote computer. You can run an update, run any command line program (cat /etc/passwd :P) or execute shell scripts to achieve tasks like backup or batch file manipulation. To copy files between computers we are going to need another command.

At this point we have three different options, two command line choices and one GUI, (the GUI only needs your computer to have the GUI not the remote computer.

scp dad@X.X.X.X:400/home/dad/image.jpg /home/me/image.jpg

or

sftp dad@X.X.X.X:400
get /home/dad/image.jpg

or

Places -> connect to server -> Fill out needed information -> connect
enter password -> navigate through window to file -> drag and drop to desired location

The first option is my favorite and the most simple command if you know exactly what you want and where you want to put it. The first part logs onto the ssh server and locates the file for copying, and the second part says where the file should be put. While it is simple, it has no margin of error, it either works or doesn’t, and can do some squiggly things.

The second option is the best for looking for and finding files without a GUI. You must first login to the ssh server in ftp mode and then find and “get” (download) the file. I don’t really use this option often, but it’s handy to know.

The third option is great if you want a graphical way of interacting file on an external server. This is very simple once you have seen what to do. Hopefully I will be able to do a quick video to show how to do this, which I will link at a later stage.

This outlines the way that you can connect to different Linux boxes on either you own subnet, or even over the internet. Stay tunned for more posts related to connecting computers, in particular mac and windows to linux connection.

Quick Tip – Man Pages


Linux Man pages are one of the most useful resources a Linux user has in his arsenal when it comes to learning about a command line functionality or just about anything you could need to know about Linux. For example, today I want to transfer some log files from my server to my main computer analysis but a small script I had written, I decided do this via ftp (just cause I could). So the first thing that I did was check the man page to ensure I used the correct commands, by using man ftp.

man ftp

This shows an interactive document. You can scroll down to read more, press q to exit.

There are many different sections to the man program, each containing a different subset of commands and programs. This allows for different documentation of similar or the same named programs. For example, the apt program has to expansions – annotation processing tool and advanced packaging tool. Usually typing in a command into man produces the output you want, sometimes though you have to go searching.

man apt

This gives the man page for annotation processing tool.

man 8 apt

This gives the man page for advanced packaging tool.

If you come across the someone else referencing a man page, or you yourself want to reference a man page you would write it man program(section) eg for advanced packaging tool you would use man apt(8)

Quick Tip – Fixing a Failed Apt-Get Update – Ubuntu


Woke up this morning, and as usually I had new software to download and install through updater on Ubuntu 10.04. So I click install updates and about halfway through updating it stops. No apparent reason, but the windows is frozen and cannot be closed.

After a quick search on the Ubuntu forums and a look at man apt-get, there appears to be a fix. (more…)

%d bloggers like this: