Holy Qur'an
In the name of Allah, Most Gracious, Most Merciful |
Thursday, November 18, 2010
Thursday, November 11, 2010
الله نور السموات و الأرض ...
اللَّـهُ نُورُ السَّمَاوَاتِ وَالْأَرْضِ ۚ مَثَلُ نُورِهِ كَمِشْكَاةٍ فِيهَا مِصْبَاحٌ ۖالْمِصْبَاحُ فِي زُجَاجَةٍ ۖ الزُّجَاجَةُ كَأَنَّهَا كَوْكَبٌ دُرِّيٌّ يُوقَدُ مِن شَجَرَةٍ مُّبَارَكَةٍ زَيْتُونَةٍ لَّا شَرْقِيَّةٍ وَلَا غَرْبِيَّةٍ يَكَادُ زَيْتُهَا يُضِيءُ وَلَوْ لَمْ تَمْسَسْهُ نَارٌ ۚ نُّورٌ عَلَىٰ نُورٍ ۗ يَهْدِي اللَّـهُ لِنُورِهِ مَن يَشَاءُ ۚوَيَضْرِبُ اللَّـهُ الْأَمْثَالَ لِلنَّاسِ ۗ وَاللَّـهُ بِكُلِّ شَيْءٍ عَلِيمٌ
... اللهم ارزقنا لذة النظر إلى وجهك الكريم ...
Thursday, September 30, 2010
Shortcuts.
one of the best things I love when using different programs -Especially those I use daily- is discovering and using their hidden shortcuts .. once you get used to their shortcuts you will be super fast at whatever you're doing ...
So now I'll be talking about two programs and I will try to give you the best shortcuts I know for them .. :
P S : Sometimes shortcuts doesn't feel that good/useful at first , but after some time of
"enforcing" yourself to use them, they make quite a good difference and you'll wonder how did you survive without them :) ..
1]Google Chrome :
1]Google Chrome :
Actually most of it's shortcuts are about dealing with tabs ..
- Ctrl+Tab : go to the next tab. -Use it all the time-
- Ctrl+Shift+Tab : reverse the circulation direction. -I'm still new to it so I don't use it that much-
- Ctrl+(Pgdn || Pgup) : go to the next , previous tab respectively. -always use it to get the previous tabs- "I Prefer this one the most because it also works in Eclipse :)".
- Ctrl+Shift+(Pgdn || Pgup) : change the order of the current tab and moves it to right or left -Pretty handy and sweet actually -
- Ctrl+(0|1|2|3...|9) : will directly switch you to the tab of that index.
- Most of the time I just use Ctrl+Tab .. and If I wanted a previous tab I just cycle until I hit it.
#####################################################
- Ctrl+t : open a new tab -Love it :) -
- Ctrl + "Click a link" : open the link in a new tab.
- Ctrl+w : close the current tab.-Use it all the time-
- Ctrl+f : open find -it's so useful btw-
#####################################################
- Alt + (Right Arrow || Left Arrow) : previous page and next page -Don't know if it works on windows-
#####################################################
- F5 : refresh the page .. No kidding :D !! ..
- F6 : make you edit the address of the current tab.
#####################################################
- Ctrl+j : open the Download page.
- Ctrl+h : open the history page.
The next program will be Eclipse .. and I'll try to reveal the best shortcuts I've found hiding in there isAllah !! :) :) ..
Thursday, September 23, 2010
Regular Expressions.
Continuing talking about java tips and tricks .. here's one of my favorite tricks :) ..
Regular Expressions :
- So what are Regular Expressions ? Do you know The Command Line in Windows or Terminal in linux .. There're always some sort of commands that are built into it in order to do specific tasks. E.x. in Linux : "ls" lists all the files in the current directory ,"pwd" Prints the current directory,"cd" Change the directory to the folder specified after calling it .. and so on ..
- Regular Expressions are just the same .. but in the split method contained in the String Class !! .. Let's start taking examples so you get to know what I'm talking about ..
String stn = "My Name is Ahmed";
String[] array = stn.split(" ");
- What this does is that it breaks the sentence on the spaces .. This is actually very common and nothing is special here.
- What if we wanted to break the sentence using more than one character ? ..
String stn = "My,Name.is!Ahmed";
String[] array = stn.split("[,.!]");
- What this will do is simply break the sentence on the characters BETWEEN the [] .. the [] is just used to tell the method what characters that will be used .. try use it without the [] ,it won't work ..
- Lets take another problem what if multiple of those characters found consecutive in the sentence ? .. using the previous way it will result in an empty Strings in the String array , what we want to do is tell the method to deal with those consecutive characters as a whole chunk and break the sentence around it.
String stn = "My,Name. !?!is!Ahmed";
String[] array = stn.split("[ ,.!?]+");
- We just add + after the [] to till the method that those characters can come in a consecutive way ..
- Now another problem , what if we wanted to break the sentence using a wide range of characters ? .. E.x. we want to break on the Numbers from zero to nine ?
String stn = "My1Name6is9Ahmed";
String[] array = stn.split("[1234567890]");
OR .. String[] array = stn.split("[0-9]");
- The - means from to .. from 0 -> 9 ..
- Now I'll introduce you to a new Expression which is "^" .. what this does is invert the set of characters given .. What I mean is what if I wanted to only keep the Numbers and delete everything else ? ..
String stn = "My1Name6is9Ahmed";
String[] array = stn.split("[^0-9]");
- There're still a wide range of Expressions .. I will show some of them to you and let you figure out what they do :) ..
String stn = "My1Name6is9Ahmed";
String[] array = stn.split("(Name|Ahmed)");
String stn = "My1Name111is11111Ahmed";
String[] array = stn.split("1{2,4}");
###################################################################
Here's an interesting article about it on TC ..
if you have found an interesting Expression don't hesitate to share it here :) :) ..
Tuesday, August 10, 2010
Software Freedom Day (SFD) 2010
We are pleased to announce you Software Freedom day 2010@ Alexandria Unversity . Software Freedom Day (SFD) is a worldwide celebration of Free and Open Source Software (FOSS). The goal in this celebration is to educate the worldwide public about the benefits of using high quality FOSS in education, in government, at home, and in business -- in short, everywhere!
The event will start from 24th August to 26thAugust 2010 in Bibliotheca Alexandria. Costs is Free and there will be a givways.
The event will start from 24th August to 26thAugust 2010 in Bibliotheca Alexandria. Costs is Free and there will be a givways.
Seats are limited so register ASAP, you can find Registration Form: here
For More Info, check those two sites :
SFD Site
OSUM Site
You can find SFD Facebook event group : here
If you have any question about the event, please contact us :
Ahmed Emara : ahmedemara0@gmail.com
Ahmed Salama : ahmedsalama183@gmail.com
Thanks,
Sunday, August 8, 2010
Loading textures into JOGL.
Thursday, August 5, 2010
JOGL - Java OpenGL -
Wednesday, August 4, 2010
Color Cycling - AKA Palette Shifting -
Color Cycling is a technique used in computer graphics in which colors are changed in order to give the impression of animation. This technique was mainly used in early computer games .
Actually it's a terrific Idea and you wouldn't believe how cool it's till you actually see one !
[Hint : Click on Show Option >> to actually see what is happening in the color palette].
The animation itself is simply nothing other than group of colors cycling their own colors between them !! .. so as you can see the animation looks very awesome ! and it doesn't need lots of memory to play it "The other solution was to save every frame as an independent image and keep cycling between those images which would kill small memory chips used at those days :S :S ".
Sunday, August 1, 2010
Java Tips.
1] Java Enhanced For Loop ::http://www.java-tips.org/java-se-tips/ja
String[] array = {"Ahmed","Mohamed","Salama"};
: would restrict the Stack to Integer only .. now you don't need to cast the result of s.pop() every time you pop an element .. on the other hand, the compiler should through an error if y s than Integers ..
ou tried to push other data type
http://www.java-tips.org/java-se-tips/ja va.lang/the-enhanced-for-loop.html
[Sample Code]
String[] array = {"Ahmed","Mohamed","Salama"};
for(String i:array){
System.out.println(i);
}
output :: Ahmed Mohamed Salama
2] Using Generics ::
Use it if you needed to restrict your collection to a specific type.
[Sample Code]
Stack s = new Stack();
s.push(10);
int temp = s.pop();
More tips to follow isAllah :) ...
Monday, July 5, 2010
الشيخ/ محمد صلاح نافع
اظن الفيديو قديم نسبيا .. بس مين ممكن يمل من تلاوة زي ديه :) :) ..
سورة الاعراف ::
سورة مريم ::
#####################################################
Tuesday, June 29, 2010
Monday, June 28, 2010
اللهم دبر لي فإني لا أحسن التدبير
ما أجمل أن يلجأ العبد الي الله ليستخيره في أمور دينه ودنياه ويطلب منه المشوره والرأي ، فهو عالم الغيب ومن بيده مقاليد الأمور .. وإن نظرة العبد القاصرة لا تستطيع أن تقطع في أي أمر بالخير أو الشر.
يقول المولي تبارك وتعالي علي لسان نبيه
قل لا أملك لنفسي نفعا ولا ضرا إلا ما شاء الله ولو كنت أعلم الغيب لاستكثرت من الخير ومامسني السوء إن أنا إلا نذير و بشير لقوم يؤمنون
"الأعراف188
ولكن الأجمل من ذلك أن يستسلم العبد تماماً إلي مولاه وخالقه ويفوض أمره اليه ويوكله في تدبير شئونه ويقف بين يديه وقفة العبد الضعيف الذليل وهو يقول
" يارب ..فوضت أمري اليك ، يا حي يا قيوم يا من بيده مقاليد الأمور دبر لي فإني لا أحسن التدبير "
اتركها لله ... وقل " فوضت أمري الي الله "
فلقد فوضت أمرك الي المهيمن
Friday, June 25, 2010
Macro Recording in NetBeans.
The whole idea of macro recording is to record some actions (e.x. selecting line or writing a specific code) and then assign a shortcut for it so that when that shortcut is called it do whatever was recorded.
I can find it already useful if I write a certain code so many times .. instead I can record it once and then assign a shortcut to it (Ctrl+L or whatever) so that I just do it instead writing this code over and over again ..
Other use I can see is to define your one tricks .. mmm .. What I mean is that there's some tricks that are really small but pretty neat .. e.x. : clicking ctrl while moving with the arrows will make you skip words as a whole not just letters..
So for example you can define Ctrl+L as a command to select the whole line .. just hit record and then select to the end of the line then hit end recording .. name it .. assign shortcut to it .. and use it later on to speed up your workflow :) ..
That's all for it .. I hope that you find it a useful tool :) :) ..
Friday, June 18, 2010
More Updates..
So .. not so much news because of the exams.
First :: E7llah I've started sketching/Drawing again :) .. I just open PS and make a new PSD 1280*800 pic and start sketching everywhere and the result ..
I'm still not so good with the pen tablet but isAllah I'll keep practice and practice :) ...
I will be posting a Sketch every 2~3 days isAllah :)
TopCoder :
Today in the morning I solved 3 problems 250~350 point each and I did will E7llah :) ..
and then I Took a 4'th one but it was Awful :S :D ...
That's all .. :) ...
Enjoy :) ..
Sunday, June 13, 2010
Python and Blender
So I'm going to talk a little bit more about the projects I'm going to work on this summer isAllah.
First let me introduce you to some new apps.
Blender :
It's a famous 3D application package.The main reason behind it's fame is that it is open-sourced ..
You can actually download it's source code from the following repository:
svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/blender
You can use any SubVersion Client, SmartSVN is the one I'm using.
I'm going to use Blender because it offers an ability to develop more plugins/features to it using Python.
Python:
So what is Python? it's a programming language.I heard about it because LOTs of 3d packages offer it as the programming language to develop plugins for them e.x. : RealFlow , Houdini , Blender , etc..
I don't know why specifically they are choosing Python, But I hope I found the reason while learning it.
So, what I'm doing now is that I'm learning Python "Syntax,for,while,conditions,etc.." and in the same time going through the Blender API to learn how to write Scripts/Plugins for it.
Here's my start :
This is a simple program to loop on the Cube vertices and print the coordinates "x,y,z" of each point.
[Little Hint about the code]
Pretty simple isn't it ?
Hope you enjoyed reading the post and wish me Goodluck guys ! :D.
First let me introduce you to some new apps.
Blender :
It's a famous 3D application package.The main reason behind it's fame is that it is open-sourced ..
You can actually download it's source code from the following repository:
svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/blender
You can use any SubVersion Client, SmartSVN is the one I'm using.
I'm going to use Blender because it offers an ability to develop more plugins/features to it using Python.
Python:
So what is Python? it's a programming language.I heard about it because LOTs of 3d packages offer it as the programming language to develop plugins for them e.x. : RealFlow , Houdini , Blender , etc..
I don't know why specifically they are choosing Python, But I hope I found the reason while learning it.
So, what I'm doing now is that I'm learning Python "Syntax,for,while,conditions,etc.." and in the same time going through the Blender API to learn how to write Scripts/Plugins for it.
Here's my start :
This is a simple program to loop on the Cube vertices and print the coordinates "x,y,z" of each point.
[Little Hint about the code]
bpy.data.objects["Cube"] :: Get the Object named "Cube" from the scene.
.data.verts[i] :: The cube has an array storing all the vertices.
.verts[i].co.x :: Get the x coordinate of the vertex i.
Pretty simple isn't it ?
Hope you enjoyed reading the post and wish me Goodluck guys ! :D.
Friday, June 11, 2010
OpenGL in C
Today I started working with OpenGL in C hoping to achieve "Something" in this summer holiday when I have more time to read more about it.
So it's just a simple start .. just read few tutorials about the basics of the subject and started with a simple piece of code.
The problem is that our study is in Java .. and I'm new to C .. so there are two ways to go now ..
1] JOGL "Java-OGL" :: but I'm still having problems setting everything up and running the code.
2] Spend more time reading about C and how to make simple windows/GUI's with it .. but I don't think that I'm going to go in this way because there're already tons of things in my To-Do list for this summer.. and something like that can take lots of time if I wanted to do it right.
So it's just a simple start .. just read few tutorials about the basics of the subject and started with a simple piece of code.
The problem is that our study is in Java .. and I'm new to C .. so there are two ways to go now ..
1] JOGL "Java-OGL" :: but I'm still having problems setting everything up and running the code.
2] Spend more time reading about C and how to make simple windows/GUI's with it .. but I don't think that I'm going to go in this way because there're already tons of things in my To-Do list for this summer.. and something like that can take lots of time if I wanted to do it right.
Subscribe to:
Posts (Atom)