/log

life.log()

Archive for the ‘php’ tag

Back ..digest

with 10 comments

Al Salam 3lykom :)

This is me again after 5 -or more- months of silence ..

here is the digest as usual:

-Python Course is done ..great course and all course members were as cute as python… python the language :D
-My Acer Lap is out of service .. my LED has gone .. The PHP Course at UTC is done
>This prevented me from presenting from my lap in Hackers Duo.
>My Hackers Duo Session was “Python for PHP programmers”
>sudden foto from my session I gained some weight.
My full session

-Tadabbor work with maher .. we are doing great and I think he is satisfied working with me. special course with a nice bro. Eng.Alaa, Eslam,Ramy and Ahmed AbuHazz.

-Ramadan 22Aug, ” kol sana wenta tayeb ” has 2 meanings …

-Ahmed Nasr 3 websites are finally done in about 1 month… and a suspended Course at his home..same course above.

-I bought my Vodafone USB modem to be able to work anywhere, specially in AlTagdeef Club with Nasr..

-CAT Iftar II .. Ahmed Soliman said that I’m a reference in my career as well as being happy that we are friends .. which is really great thing specially that it was in public.. and here I’m re-announcing that Ahmed Soliman is my real teacher..

-My Laptop is fixed welcome back ya Joe :D and My MacBook Pro 13” is at home :)

-E3tkad MasJed AlSalab, lots of new friends and real friends I guess and Arch. Friends ..

-3akef.com Idea, Dr.Ahmed Saif Visited me at home, and I met dr.Hazem Shouman and updated his mobile with Bakr.

-CAT trials to motivate the community ..

-Resuming courses..Back to study..

-Crash study, thanks to swine flue.

-exams and course simultaneously

-I won’t get the full marks of the XOR problems I invented myself :D ..

-Al WaQfa, Nassar had a cute baby girl and they called her Hana هنا  and a meeting for:
Ahmed Abdullah, Ahmed Soliman, Kamasheto, Nassar, Ahmed Bakr, Metoo, Ayman Taher and me :D in AlTagdef.

-Eid AlAdHa 2nd day we met again without Abdullah but with Safwat and osama and snap and daif and then Sinar and her sisters joined us on Bahgat and Samir.

-Now, I’m thinking about mainly few things:

-Back to Quran and be more strict .. 3akef.com as a semantic, personalized web2.0 Islamic website.

-The fact that the most painful areas in my body are my head and my heart  .. except that my heart pain is always resolve to non-scientific non-deterministic problem
Specially that when I noticed that last year witnessed lots of people losses .. :(

-2010 plans and hopes ..
Specially that 7-12 proved it’s kind of reliable framework and I have lots and lots of ideas to improve it ..:-|

-Losing weight

-My transportation problem and the social acceptance .. buying a CAR.

يا رب وفق

ملحوظة للمتابعين ان كان في لسه متابعين .. انا بكتب جزء كبير من التقنيات والعمل التقني على الهاكرز…
egamal.n.cat-hackers.net

و السلام عليكم و رحمة الله و بركاته

Written by me

November 30th, 2009 at 10:53 am

veryActiveRecord — seven12

with 5 comments

السلام عليكم ورحمة الله وبركاته

7-12 framework now has better scaffolding and is clean urls [URL rewriting]

I’ve been working on it the last days but the very strange thing is .. I’m working shallow issues ..
Mainly, I forgot that seven12 have a MODEL problem .. Major problem .. it’s not yet an active record based one ..
so ..It’s not that handy if you tried to code your application if you didn’t not start from scaffolding then modifying, and in case you scaffolded you table you will still need to understand the fact of each model is a file and a different class which is -now- sounds so illogical to bind them all to a parent “doing a singleton connection–which almost nothing” class ..!
Sooo ..
I decided to code “veryActiveRecord” which will work on the 2-ways
1-it’ll enable you to have the row to object model
2-It’ll have the Object to row model through what I call “inversed scaffold”
Ex.

//normal active records ..
//assuming the table users exist “note the convention of plural table names will be fixed on scaffolding part ..”
//users table contains the four columns / fields id name email which is INT PK auto_increment NOT, varchar(50), varchar(200), respectively
$values=array(id=>NULL,
‘name’=>’Ahmed’,
‘email’=>’ahmed@ahmed.com’);
$user = new User();
$user->add($values);

//this will work exactly like sending the query:
//insert into users values (NULL,’Ahmed’,'ahmed@ahmed.com’);
//user class contain relation parameter “class variable” describing the relation to other tables..
//which will be as high leveled as ROR “Ex. belongs to and has many ..”

Next is the inversed scaffolding ..

//my plan is to have no table sql already designed..
//developer will design how to handle the fields before creation
//inside the users class
$relations=array(‘has many

    users

‘,’belongs to

    groups

‘);
$id = new intField();
$name = new strField(“unique”);
$email = new strField(“searchable”);
//and I’ll copy a feature from DJango calle s=dbsynch you will be able a fully compatible to your code SQL which can be directly or indirectly “copy paste to your console/phpMyAdmin” executed .

Well, It sounds a lot of code to write ..
but It sounds also sooo interesting when it’s done -that way- as it is a challenge for me :)
and I just love challenges ..

NOTE:
I’ll pause working on scaffolding for the moment ..
clean URLs will remain with the same procedure
better mail and better template engine is what I’m planning for ..
and there was a very important thing to talk about which I forgot while writing that topic ..
Make a prayer to remember ..
إن شاء الله ..
7-12-2008 will be a nice release isA :) ;may be the 1.0 release ..!
Salam

Written by me

November 19th, 2008 at 9:49 am

Seven12 framework

with 7 comments

Al Salam 3lykom :)

712-logo

I finished scaffolding in Seven12 “70 %”.
OOP.
themed view
Commented almost everything

and now you can keep track of the progress here :

http://code.google.com/p/seven12/

yes, it’s a google code project :)

I recommend rapid SVN for who are intending to collabrate :) [under linux SVN client]
kamasheto and BinGo are on the top of the list tab3an :) .

Kamasheto, waiting for your comments rating my 7-12
Salams,

Written by me

July 25th, 2008 at 11:56 pm

Me, Kamasheto, Books and Beans ..

with 8 comments

My Dear Friend Kamasheto and I went to books and beans after my depiak session “programming introduction” we spent about 3-4 hours kidding and chatting and MAINLY coding and PHPing arguing with each other ..

NOTE: kamasheto enjoyed the free everything [specially water] till we had to pay 18 LE for very normal drinks :)
Then we went to Zizo … ana bas a5dt 2 kofta w wa7ed mshakel ..

I discussed with him the future of developers and he asked me about the reason I asked about that .
then he talked about who I’m looking forward to be ..

and finally we tried having rules for the kpoint game..
I and Kama used to play a game who can get more points by showing that the other person is wrong :p
or
is saying that he knows and he is actually IMPROVISING without prior knowledge “byefte” :)
AND I REALLY ENJOY THIS GAME :)

[conclusion]
We disagreed on many things and we agreed on many other things but on overall it was a very

1-Useful
2-Funny
3-Emotional sometimes
4-healthy , Except for Zizo part ..

and that what you can really summarize in a friendly hang out ..

Kamasheto is going to be out of the country for the following [Time interval] and We will not be able to see each other

And I’ll miss him :)

Written by me

July 14th, 2008 at 9:16 pm

Get Adobe Flash playerPlugin by wpburn.com wordpress themes