A TEXT POST

Starting out with Appcelerator’s Titanium

Oya folks,

You might have heard about the new framework that compiles phone applications to different phone OSes without a single code modification.

Yea that’s right its Appcelerator’s Titanium :

One of the most important features of Titanium is HTML5 support, it supports it nativly, Even after you package it and run it on the mobile, the application will NOT work under a browser object, it will work under its own interpreter.

Using Titanium is fairely simple, Sign Up, download Titanium Studio, and install the Phone SDKs (Blackberry, Android and iOS if you are on Mac)

Working with it however is even easier, if you have some knowledge with Javascript you’ll be able to catch up with its codes very quickly, otherwise there is an awesome Documentation for everything you need, tutorials in the internet are countless too !

One thing is that many Windows 7 users (especially 64bit) have problems with the software detecting JDK paths, Android Paths, and anything Paths, You’ll need to modify environment variable in order to work with the Studio.

I have managed to fix everything, BUT the android issue, the studio is not yet able to detect that I have android-8 Platform API installed :(

how sad I can’t work much more without testing things,however it seems that the linux version is way better detecting everything on its own (isn’t that obvious ? :D ) and I’ll try it as soon as I finish configuring my new HDD.

Best Regards.

A TEXT POST

use direct file editing rather than FTP in wordpress

Hi all,

so I’ve merged to Cloud and VPS hosting for a while now, and I’ve been doing a lot of changes in my web life with it, one of the most important things I’ve changed is FTP usage, no more FTP ! but more on that later ;)

so when you try to update a plugin via the dashboard, wordpress will ask for ftp information to connect to the server and update it, well for security measures I don’t have FTP and I won’t.

The alternative for updating plugins without FTP pain is to give Apache user permissions to edit wordpress files,

simply

chmod 777 ./wp-content

your wordpress directory, followed by changing the group of the directory to Apache’s using the following command

chown -R apache:apache

in debian servers you have to use www-data:www-data instead, and in opensuse it is httpd:httpd

if you have another distro running in your server you may want to try looking for the usergroup apache is using before touching anything using 

lsof -l

and looking for apache2 in the first row, the third row should contain the usergroup name, use it !

Warning : Shared hosting people shouldn’t use this method, as it expose them to risks of getting hacked if the server is compromised 

Best Regards !

A PHOTO

Blurrrrrrrrrrrrrrrrrrrrrr

A TEXT POST

Move all files and directories from the current folder to the upper folder

Thanks to the Answer found in SuperUser By Stephan202 : 

The command you are looking for is

mv * .* ..

Explanation: the mv command moves files and directories. The last argument to mv is the target (in this case the directory one step “up” in the tree, ..). The arguments before that are the source files and directories. The asterisk (*) is a wildcard which matches all files which do not start with a dot. Files that start with a dot (dotfiles) are “hidden”. They are matched using the pattern .*.

See the manpage which I linked for more information on mv.

Edit: as Chris Johnsen correctly points out: the pattern .* also matches . and ... Since you don’t want to (and cannot) move those, it’s better to use a pattern which matches any filename starting with a dot except those two. The pattern .[^.]* does just that: it matches any filename (1) starting with a dot (2) followed by a character which is not a dot (3) followed by zero or more arbitrary characters.

Edit 2: As Paggas points out, we’d also have to add the pattern .??* in order to match files starting with two dots. See his answer for an alternative solution using find.

Edit 3: Arjan’s answer mentions shopt in order to avoid all those issues with dotfiles. But then there is still the problem with files starting with a dash. And it requires three commands. Still, I like the idea. I propose to use it like this:

(shopt -s dotglob; mv -- * ..)

This executes shopt in a subshell (thus no second call to shopt required) and uses -- so that files starting with a dash will not be interpreted as arguments to mv.

A TEXT POST

The Stinson Challenge

Challenge Accepted !

Are the words I’ve told to a friend of mine (someone I’ll reveal after he loses the challenge) after he agreed on ‘The Stinson Challenge’

Stinson is Barney Stinson (Neil Patrick Harris) From ‘How I met your mother’ series, He is a pick up artist and he is Awesome !

The Stinson Challenge is to hook up with 50 20 Girl (8 9+/10) Within the next month (duration ends by the scholar year ending) And list each one’s first letter from her name, of course it has some few rules to follow;

1.You can not count old girlfriends

2.You can not hook up with the same girl I hooked up with

3.You can not wear anything but suites during approach

4.You can not ask friends for girls (Must Approach)

5.You must ‘ALWAYS’ look like Barney Stinson, Although must change haircut each week !

6.You must inform your environment that you are doing this

And Obviously I am following the rules; The challenge starts by tomorrow’s morning and ends after a month and a half.

WHEN(/IF) my friend loses the bet, I’ll reveal his identity and He will post some embarrassing pictures of him

IF I lose the bet, I am going to wear a cos-play of Aladdin and go to some major event

Enjoy !

P.S : I am soon going to write some technical stuff again, be ready

A TEXT POST

note to self

Version control is the most retarded thing I have ever seen

A TEXT POST

Cic-Cac-Coe 1.1 : AI Bundled !

Hi there,

I’ve been silent for a long time now huh ?

Well I have my own life too, so deal with it…(haters gonna hate).

I’ve always thought about making my own game, I even tried to start working on a big one (Agnoizer anyone ?), But obviously, you can’t achieve the success you want without experience (I got this from my experience with Web Applications Development ;)).

Everyone needs a first step to start his track, so I started with Cic-Cac-Coe.

The first version contained nothing but a regular Human VS Human Tic-Tac-Toe game with almost 0 complexity in code, and Bugs !

This 0.1 addition contains Bug eliminating, AI (don’t get excited, hes retarded as chipmunk), better coding (still sucky on some parts to be honest), and Draw Detection !

I am glad I’ve done all this without help from anyone but my experience, derp why lying ?

I want to thank Amin for his help improving the game, and suggesting new license that I should use…

finally you can  find the Source Code in the Cic-Cac-Coe GitHub Repository.

I haven’t Pushed the new update yet because I’ve just installed Mandriva and I don’t have Git installed on it, But I’ll push it later today for sure. Updates are now available in the Repository, You can also find the new license (New BSD license).

What’s Next ?

I think its time to move from console gaming and make a Graphical Front-end for the game with SDL or something similar (openGL maybe ?), and this will be introduced in 2.0 Inchaa Allah !

Best Regards everyone.. 

A TEXT POST

Advanced Electron Forum 1.1 Almost there !

Being while since my last post, am sorry, studies, Projects, and other issues…

But I must tell you that we are so near from releasing 1.1 Version of AEF !

Stay Tuned !