Olympic Digits
icon1 acmACIS | icon2 Problem | icon4 01 30th, 2009|
Place the digits from 1 to 9 in each closed area so that the sum of the digits in each complete circle is the same. 1 has already been placed.       





hi,

here are the steps to configure your free hotmail account on evolution mail client as a POP3 mail in ubuntu

well.. open a terminal and copy & paste those commands or write them ..as u like D

first make sure that your system is up to date

sudo apt-get update
sudo apt-get install inetutils-inetd
sudo apt-get install hotway hotsmtp
sudo gedit /etc/inetd.conf

the last command will open u a file “inetd.conf”

append this line to it

2500		stream	tcp	nowait	nobody	/usr/sbin/tcpd /usr/bin/hotsmtp

then save and exit and write this line

sudo /etc/init.d/inetutils-inetd restart

then startup evolution or the mail client u use and edit the configuration as the following

Receive Server type: POP
Server: 127.0.0.1
Username: xxx@hotmail.com (same as above)
Security: No encryption
Authentication type: Password
(Remember password checkbox is up to you)

Send Server type: SMTP
Server: 127.0.0.1:2500
[X] Server requires authentication (check this box)
Use Secure Connection: No encryption
Authentication Type: PLAIN
Username: xxx@hotmail.com (same as above)
(Optional Remember password checkbox)

well.. after i have did all those  evolution could send but didn’t recieve mail getting this error

-ERR Unable to find folder inbox on remote server

so i used another program to recieve my mail D

just write this commad in the terminal

sudo apt-get install freepops

and edit in the mail client the server ip:port as follows

Receive Server type: POP
Server: 127.0.0.1:2000
Username: xxx@hotmail.com (same as above)
Security: No encryption
Authentication type: Password
(Remember password checkbox is up to you)

and then voila !! )

have a nice hotmail D

Refrences:

for the hotwayd http://ubuntuforums.org/showthread.php?t=200408

for the freepops http://ubuntuforums.org/showthread.php?t=968821

Reblog this post [with Zemanta]
   Tagged: E-mail client, Email, Evolution, Folder inbox, freepops, Hotmail, hotwayd, Password, Post Office Protocol, Servers, Simple Mail Transfer Protocol, Sudo, Ubuntu, Ubuntu Interpid Ibex   




A nice permutations problem
icon1 Asmaa Magdi | icon2 Permutations | icon4 01 29th, 2009|
Hello all,
It has been a while since I wrote in this blog. I'm back now with a nice permutation problem that I just solved correctly today. Given a string with size <= 20 and an index i (0-based) return the ith permutation of the string characters. This link is for the problem statement on TopCoder. You can view my code in the practice room as I've having problems with the "less than" signs here.

So, my idea is based on the fact that, having a string of n different chars, the number of permutations that begin with any given char is equal to Factorial(n-1). The proof is so simple, I will keep the first char in its place while trying to get all possible permutations of the remaining n-1 chars which is, as we learned in school, equal to Factorial(n-1);

When the string has some repeated chars it's a little bit different but still very simple. You count the frequencies of each char in the string excluding the first one. This is because you will leave it as it is, so it doesn't matter whether it is repeated or not. Then, for each obtained frequency of chars, divide Factorial(n-1) by Factorial(frequency[i]);

If index is not less than p, then you should try another char as the first char of the string, decrement your index by p and try again. The reason why you have to decrement index by p is because you are now beginning with a different char, which means that you counted p different permutations before getting to begin with that char. You should also note that, when selecting another char to begin with, you should select the one that comes after the current char in alphabetical order.

After selecting this char, put it at the beginning of the string and sort the remaining chars. So, if the current string is "abcd" and index is greater than or equal to p, select 'b', replace it with 'a' and sort the remaining chars to get "bacd". In this example, after replacing 'a' and 'b' yielded an order substring "acd", but it's not always the case, so sorting is required after replacing the first char with a new one.

One more thing to say, the boolean calcFreq vector is used to ensure that you count the frequency of a given char only once. If you have a string "aabc", at the first iteration of i you will get the frequency of the first 'a' charecter which is 2. At the second iteration you will calculate the frequency of second 'a' char which is again 2. But you shouldn't do that because this way you will divide by Fact(2) twice while you should only do it once.

Note:
The "<=20" constraint is required to solve the problem in this way. The maximum Factorial that can fit in a long long is Factorial(19) and since you don't have to calculate Factorial(n), just Factorial(n-1) then 20 is the maximum size of the string allowable.




Find the Ghost [Answered]
icon1 acmACIS | icon2 Uncategorized | icon4 01 29th, 2009|
well.. here are the winners The First: Haytham The Second: Abu-Bakr Taha The Third: TeCNoYoTTa Then Ahmad Farid profahmedsaad Shreif Hassan Sara Ebrahim Proud To Be Muslim 5olio Ahd ZiKaS menna siam Tasniem Seliem Noran El-Kafrawy Simo check the answers here       





bye bye MS !!

i said those words one day that i started to install Linux

i had a fear that i go back to windows a day or more after i install it, but now i dont think that i’m going back to windows D

i can feel that my computer feels democracy D

every time i look on the requirments for a software , game or windows i look on the minimum requirments section to see if my PC will handle it or not as i know that the recommended requirments will be not in my PC D

with linux i saw the minimum , recommended and searched for any other requirments to see

this is the recomended requirments published on Ubuntu official website

  • 700 MHz x86 processor
  • 384 MB of system memory (RAM)
  • 8 GB of disk space
  • Graphics card capable of 1024×768 resolution
  • Sound card

  • A network or Internet connection

lol, i feel that i can run this OS on a gameboy and it will run smoothly

let’s see some features that i found in Ubuntu

1-Disk Space

i’ve been working on Ubuntu for 2 weeks now with alot of programs installed

1557 installed program as the software manager says

i’ve made the root drive ( C:/ ) 19 GB for it

now i have 12 GB Free D

on windows i get Low Dosk space after 1 week

2-Synaptic Package Manager

i doubt that one day there will be something like this in windows

this manager is configured on repositories eg a store on the Internet where software package sources exist

u just search for the program or what the program does and it will get u some for u

u just check and install

i remember i once used something like it on windows from the add/remove programs but the repository was on a local network

nothing was online

in addition to synaptic gets u all the programs open source, free or non free according to the repositories

3-compiz D

in the posts i wrote about vista i said i liked the effects, now i can’t say that vista had effects at all D

in Ubuntu i enabled the effects to see what they have and i found all those effects

note: this is not my video i found it on youtube but all those effects are working very smoothly in my PC

go and check for other videos there

4-Booting and shutting down

when i shut down my computer thats because i want to leave the computer D

so when i press shutdown i don’t want to wait 1 or 2 minuets watching windows dying D

in ubuntu it shuts down in less that 30 seconds

and loads in the same time or less also

in Vista i used to wait for more than 1 minuit to hibernate the PC

now ubuntu also hibernates in the 30 seconds

5-The Community

every single problem i faced with the drivers,software packages , themes or even  the desktop wall papers i found them on the ubuntu forums www.ubuntuforums.org

and even there is an unsolvable bug in the OS u’ll find someone posting a workasound there

6-No Virus can affect me (almost)

i donot have to care about using antivirus as viruses can not affect my OS

but also i insert the USB disks in my PC and delete the viruses manualy ( Torturing them D )

so why don’t u try it

here are some motivations that affected me

1-Ubuntu Interpid Ibex can deal with NTFS file system so u wont lose or have to move ur data or format ur disk

2-if u r coding C# u can install “monodevelop” project and program C# , ASP.Net , till now they support up to framework 2 and Linq

3-there are programs that are exe and u want to run them on linux ( as linux doesn’t run exe files )

there is a software named “wine” that runs EXEs on linux

it even runs games as warcraft and programs as photoshop

4-there are a variety of software packages which can be installed that does very cool things

5-openoffice 3.0 can open and edit all what Microsoft office does

and the most important thing that u’ll feel ur PC’s Powers D

to be honest the only problem i faced here till now is the mail client

i used to use Windows live mail to manage all my mails including my hotmail mail

where my account is free one and to manage it as POP3 i have to pay some

but windows live mail manages it as HTTP mail

i found some solutions but they are not working effectively

i hope i find a solution soon )

and i’m sure i will isA

Reblog this post [with Zemanta]
   Tagged: Compiz, Computers, Linux, Microsoft, Microsoft Office, Microsoft Windows, NTFS, Open Office, Open source, Speed, Ubuntu, Ubuntu Interpid Ibex, Vista, Windows Live Mail   




SC Rocks
icon1 jaqoup | icon2 Personal | icon4 01 24th, 2009|

Just blogging from inside the HPC exam hall D

where the exam is open “anything u can” and u have to get ur mind to work

i have half an hour for the time to end

c u soon D

      




Find the Ghost
icon1 acmACIS | icon2 Problem | icon4 01 23rd, 2009|
You are an expert on paranormal activity and have been hired to locate a ghost in an old resort hotel. Strong signs indicate that the ghost lies behind one of four doors. The inscriptions on each door read as follows: Door A: It’s behind B or C Door B: It’s behind A or D Door C: It’s in [...]




here is the solution The First Winner is Mostafa Then Mohamed Samy Then TeCNoYoTTa Then Shreif Hassan Mohammed Saudi Abu-Bakr Taha 5olio       





hi..

long time since i last wrote here

frankly alot of things have changed

the most obvious change that happened is my Operating System D

yes the “Vista” after three months

actually it didn’t crash but it almost crashed more than a time and recovered which was a nice feature there “more stable than XP” thats what i feel

but D

my poor laptop was sweating from vista anyway

and my disk was alarming every while “Low Disk Space”

and many times -not often- the computer just freezes…

i’ve attended a session lately which was talking about somethings of the new features in vista like the ready boost, super fetch and some other things

well..

the ready boost acts as a cache between the RAM and The Disk as i understood

but i have a 1.5 GB of RAM.. i just feel that its wasted :S

so i get a USB 2 flash to increase my computer’s performance

something like hanging a vitamins bag beside my computer’s bed to survive D

i never accepted that ready boost idea or even tried it

and about the “Super Fetch”

it’s basically that the OS keeps watching what are you doing when when u open your computer and see what is the most used apps so it preloads it in the memory when the windows is starting (assuming that windows loads in a short time so we can sacrifice some and i have alot of un-needed memory D )

so i didn’t like it any way

and one of the most important thing that made me remove it was that many of my friends made fun of my computer when it was operated by Vista D

actually i was one of the people making fun of my computer

sry.. i had to

when i used my computer to be a server for an ACM-ICPC contest ( any computer can be a server )

we use a software called PC^2 to communicate during the contest

about 30+ PC was logged in to this program

and during the contest the computer just got frozen

and the solution was to unplug it and reopen it but in safe mode

but thanx to Allah the contest passed normally

so i had to move

i didn’t like the idea to get back to XP

so i moved further D

moved to ‘The OSOS
yes.. that far D

and i’m compleeetly happy with this move and i’m gonna write about it soon isA

c u soon MS )

Reblog this post [with Zemanta]
   Tagged: Microsoft, Microsoft Windows, Operating system, Random-access memory, ReadyBoost, Vista, Vista Problems, Windows Vista, Windows XP   




Let’s Play with Matches
icon1 acmACIS | icon2 Problem | icon4 01 16th, 2009|
move one stick to form a square !! how that can be done ?       




Watching a new homegrown language grow up and generate its first dynamic Web page. Seeing the result of months of work. It feels good, الحمد لله.

If you know Lisp, you probably can understand how the code works in the (simplistic) example below. Click on the picture for better viewing.

I hope I'll be able, soon إن شاء الله, to announce more details about the language and a bit about its history.
To the team members who contributed valuable code to this project*, if you're reading this, thank you :)

[*] Haytham Alaa, Mosapha Ateya Sakr, Mostapha M. El-Maasarawy, Mohamed M. Moussa, Mohamed Abdul-Aziz El-Morsy & Kamal El-Din Mohammed.






Vacation Time [Answered]
icon1 acmACIS | icon2 Solution | icon4 01 15th, 2009|
Only 4 winners this week The First TeCNoYoTTa The Second Profahmedsaad The Third Ahmad Farid and The Fourth Noran El-Kafrawy Click here for the answers       




لم يعرف الخوازمي- العالم المسلم مؤسس علم الجبر- المتغيرات الرياضية بالصورة التي نعرفها.
في كتابه" الجبر و المقابلة" تجده يتحدث عن "الجذر" و "المال" في معادلاته. فيعرف الجذر بأنه "كل شيء مضروب في نفسه" و المال بأنه "كل ما اجتمع من الجذر المضروب في نفسه".
يقول المؤرخون أن الجذر في هذا الكتاب يرمز إلى المجهول و المال هو مربع المجهول . و لكن لماذا كانت الأمور بهذه الطريقة؟ و لماذا كلمة "مال" بالذات؟

أخمّن أنا رأيا آخر, و لا أعلم إن كان رأيي صحيحا أم لا (وليس معي الكتاب الآن لأراجع الحقائق, للأسف!).
المهم..تخميني هو أن العلماء في ذلك الزمن لم يكونوا يستخدمون الأسس بل كانوا يستخدمون الجذور. فبينما نحن نقول:

كانو يفكرون هم في:

فالمجهول الأصلي بالنسبة لهم هو مربع المجهول بالنسبة لنا.

و لكن عموما مشكلتهم كانت أكبر من ذلك, لم يكن لديهم أصلاً فكرة حرف مثل x يعبّر عن قيمة عددية. فماذا يفعل الخوارزمي؟
بدلا من المتغير كان يتكلم عن الشيء الحقيقي المراد معرفة قيمته, و لما كان كتابه يهدف لمساعدة الناس في حسابات التجارة و المواريث ففي كثير من الأحيان يكون المطلوب معرفته هو مقدار من المال. وهذه هي نظريتي في سبب التسمية.

و نتيجة لهذه التسميات فأنه لو نظرت في كتاب الجبر و المقابلة تجد أنه حيث نقول نحن:

كان يقول هو:
"مال وخمسة أجذار يعدل 24 درهماً".

ثم تطورت الأمور فبعد أن صارت كلمة "مال" تعني الرقم مضروبا في نفسه بشكل عام, صار مثلا "مال المال" هو نتيجة رفع العدد للأس أربعة, و بدأت اصطلاحات جديدة تظهر. بالمناسبة قام الدكتور مصطفى مشرفه وعالم مصري آخر سنة 1937 بتأليف شرح كتاب الجبر و المقابلة. شرح النص الأصلي كان في الهامش متضمنا "ترجمة" للمعادلات من الصياغة القديمة إلى المعادلات بالصورة التي نعرفها.

لك طبعا أن تتخيل الجهد العقلي الجبار الذي كان الخوارزمي و أمثاله يبذلونه في وضع القوانين. هذا الرجل اخترع علم الجبر بدون أن يكون لديه رموز رياضية و لا حتى متغيرات! رحم الله اساتذتنا علماء المسلمين.

كيف إذن ظهرت المتغيرات بالطريقة التي نعرفها؟ البقية في الجزء الثاني.




Vacation Time
icon1 acmACIS | icon2 Problem | icon4 01 9th, 2009|
It was vacation time -(In fact, it was a time of examinations )- , and so I decided to visit my cousin’s home. What a free time we had! In the mornings, we both would go for a jog. The evenings were spent on the tennis court. Tiring as these activities were, we [...]




Gaza strip, the untold story
icon1 Roaa Mohammed | icon2 Uncategorized | icon4 01 8th, 2009|
The least we can do is prayers & trying to spread what Israel is truly doing in Gaza..
Sameh, a Palestinian 23 years old blogging from inside Gaza.. 

Allah be with them.. 




Just a Number Again [Answered]
icon1 acmACIS | icon2 Solution | icon4 01 8th, 2009|
In this problem we have a collection of  differnet answers , this is  great check all answers here and here is The best solution from my point of view assume the number we want is X(5 digit number) to add 7 at the left add 700000 to X , then the right [...]




Just a Number Again
icon1 acmACIS | icon2 Problem | icon4 01 2nd, 2009|
Can you find a five digit number which when you append a 7 at the beginning -(left most position)- it generates a new number which is five times larger than when you append a 7 at the end-(right most position)-?       




Ball in a Hole [Answered]
icon1 acmACIS | icon2 Solution | icon4 01 1st, 2009|
We have winners this week more than last week The First Mostafa The Second TeCNoYoTTa The Third Tasniem Seliem and Ahmad Farid Shreif Hassan Mohamed gawish Enas michael gamal Roaa Mohammed kawaguchi Click here to see the  solution waiting all of u in the next problem :)  salam