Can You Guess ?
icon1 acmACIS | icon2 Problem | icon4 06 26th, 2009|
Can you guess the next letter in this series? and why? C Y G T N L I T ….?




Cola ! [Answered]
icon1 acmACIS | icon2 Solution | icon4 06 25th, 2009|
I think it is a very easy problem though we have not big number of winners the correct answer is 229 simply , by repeated division by 3 The Winners The First 5olio The Second Sara Ebrahim The Third TeCNoYoTTa Then marmoor1989 Rana shohanda





well..

that took me some time to create the launcher D

first i’m running on Ubuntu 9.04, all what i wanted is a launcher to start the Arena without the need to digg into folders for it

so i made the icon, put it in the Application launcher and added the command wich was “javaws %ArenaPath%/ContestAppletProd.jnlp”

and when i click it, nothing happens

and when running that command in a terminal it outputs:

Jun 23, 2009 5:26:20 PM com.sun.corba.se.impl.ior.IORImpl getProfile
WARNING: "IOP00511201: (INV_OBJREF) IOR must have at least one IIOP profile"
org.omg.CORBA.INV_OBJREF:   vmcid: SUN  minor code: 1201  completed: No
 at com.sun.corba.se.impl.logging.IORSystemException.iorMustHaveIiopProfile(IORSystemException.java:473)
 at com.sun.corba.se.impl.logging.IORSystemException.iorMustHaveIiopProfile(IORSystemException.java:495)
 at com.sun.corba.se.impl.ior.IORImpl.getProfile(IORImpl.java:334)
 at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_Object(CDRInputStream_1_0.java:787)
 at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_Object(CDRInputStream_1_0.java:761)
 at com.sun.corba.se.impl.encoding.CDRInputStream.read_Object(CDRInputStream.java:231)
 at com.sun.corba.se.impl.resolver.INSURLOperationImpl.getIORFromString(INSURLOperationImpl.java:120)
 at com.sun.corba.se.impl.resolver.INSURLOperationImpl.operate(INSURLOperationImpl.java:130)
 at com.sun.corba.se.impl.orb.ORBImpl.string_to_object(ORBImpl.java:836)
 at org.GNOME.Accessibility.AccessUtil.getRegistryObject(AccessUtil.java:143)
 at org.GNOME.Accessibility.JavaBridge.registerApplication(JavaBridge.java:1099)
 at org.GNOME.Accessibility.JavaBridge.<init>(JavaBridge.java:364)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
 at java.lang.Class.newInstance0(Class.java:372)
 at java.lang.Class.newInstance(Class.java:325)
 at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:786)
 at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:875)
 at javax.swing.ImageIcon.<init>(ImageIcon.java:136)
 at javax.swing.ImageIcon.<init>(ImageIcon.java:155)
 at net.sourceforge.jnlp.runtime.JNLPRuntime.loadWindowIcon(JNLPRuntime.java:469)
 at net.sourceforge.jnlp.runtime.JNLPRuntime.getDefaultBaseDir(JNLPRuntime.java:259)
 at net.sourceforge.jnlp.runtime.Boot.getBaseDir(Boot.java:405)
 at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:169)
 at java.security.AccessController.doPrivileged(Native Method)
 at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:160)
netx: Invalid XML document syntax.

after some searching i found that this was because of the version of JAVA i use, the default 1.6 but “OpenJDK”

so when i used the command

“/usr/lib/jvm/java-6-sun/bin/javaws   %ArenaPath%/ContestAppletProd.jnlp”

it ran correctly

and i added the “-Xnosplash” to the command before the Arena path to disable the JAVA web start splash screen D

i hope that helps some body like me )

Tagged: Arena, error, JAVA, jnlp, OpenJDK, TopCoder, Ubuntu




Cola !
icon1 acmACIS | icon2 Problem | icon4 06 19th, 2009|
You see the following special offer by the convenience store: ” A bottle of Choco Cola for every 3 empty bottles returned “ Now you decide to buy some (say N) bottles of cola from the store. You would like to know how you can get the most cola from them. The figure below shows the case where [...]




Police Officers !! [Answered]
icon1 acmACIS | icon2 Solution | icon4 06 18th, 2009|
Police Officers should be placed at B , G & H the winners The First TeCNoYoTTa The Second ManS The Third Kholoud and The Fourth Aya Magdy Check All Answers here




My first publicly-tested recipe
icon1 Haytham Alaa | icon2 Uncategorized | icon4 06 17th, 2009|

Alsalam alikom wa ra7mat Allah wa barakatoh..

so yes, I do cook!

Yesterday, we have held a potluck (Dish Party) in our office, people from all nations were invited to serve any dish they are famous for… and I’ve to tell you, these guys really know how to cook!.

I didn’t have much time to cook, had to wake up in the morning, buy supplies, come back home, cook and then go to work at 9ish… Cooking under pressure :D…

What recipe did I pick, Stuffed Grape Leaves (محشى ورق عنب)… I don’t have a good picture for it :( but here is a picture for the gr8 chiefs,

IMG_1620

IMG_1619
Here we were discussing what kobeba (كبيبة) is :D

Will post my recipe later! In Shaa Allah


Salam.










this is a kind of exception that happens normally when u r coding with opengl, whether using Tao framework for C# or native opengl
when u run the opengl program and u find it just crashes with no reason
then one of the main reason is the function “glutInit()
this function initializes the GLUT which should be initialized only ONCE per program run
and if this function fails to initialize -for many reasons- but with me mainly because it’s called more than a time, it crashes the program and just closes it
so just make sure u call this function only once..

Tagged: close, crash, glut, glutinit, opengl, programing




UVa Online Judge
icon1 Tasniem Seliem | icon2 Online Judges | icon4 06 15th, 2009|
أحد أشهر مواقع ال Online Judge ... ويحتوى على عدد كبير جدا من المسائل "Problems" ... وهو أكثر المواقع ارتباطا بال ACM حيث أن أغلب ال ACM Contests التى تقام وخاصة ال Worled Final ينصح منظموها بالتدريب على هذا ال Site, هذا بخلاف الكتب التى تشرح أنواع المسائل المختلفة مثل كتاب Programming Challenge, وهذا الكتاب يشرح ال Algorithm ويعطى كود مكتوب بال C ويترك لك بعض المسائل للتدريب, تلك المسائل




PKU Online Judge
icon1 Tasniem Seliem | icon2 Online Judges | icon4 06 14th, 2009|
فى الموضوع ده هنتناول كيفية التعامل مع واحد من أجمد ال Online Judges على الأطلاق وهو PKU Online Judge




Online Judges — Part 2
icon1 Tasniem Seliem | icon2 Online Judges | icon4 06 14th, 2009|
تناولنا فى Online Judges --- Part 1 مقدمة عن تلك المواقع وانواع المسائل بها بصورة مختصرة. فى هذا الجزء سوف نتناول باذن الله الاتى : كيف يحدد ال Judge اذا كان الحل صحيحا أم لا ؟نتائج ال Submissions كثيرة أفضلها Accepted .الملاحظات التى يجب أخدها فى الاعتبار عند كتابة الكود بال ++C.بعض الأخطاء الشائعة.نصائح العامة.




Online Judges — Part 1
icon1 Tasniem Seliem | icon2 Online Judges | icon4 06 14th, 2009|
ما هى ال Online Judges ؟؟ مواقع تحتوى على مشاكل أو مسائل "Problems" تتطلب حلّها برمجيا ومن ثم تقدم الكود للموقع "Submit ", وبعد ذلك يحدد الموقع هل حلك صحيح أم خطأ.




Police Officers !!
icon1 acmACIS | icon2 Problem | icon4 06 13th, 2009|
Back to the Challenge The map below shows the street locations of a city. Position the minimum number of police officers so that any point on any street can be seen by at least one officer.




Belady Belady (8)
icon1 Alaa Shaker | icon2 Art & Design, Caricature, Egypt, Personal | icon4 06 8th, 2009|

WaleedTaher

It’s been a while, I know. I’ve held to this caricature for a long time, and I thought it was time to let it out.

Let’s all sing our national anthem. I guess we’ll sing it along with that poor guy …

This caricature belongs to my dear friend, great caricaturist and talented artist, Waleed Taher. It was published in Al-Dostour Newspaper a long time ago, I just gave it some quick coloring.

Posted in Art & Design, Personal Tagged: Caricature, Egypt





Al Salamu 3alykom Wa Ra7matULLAH

after the first note which was on facebook about the fourth year depts which was made last year for my class, i think it was very helpfull

so i thought of doing the same this year for FCIS’10 class would be nice

and because there are some non-Facebook-users, i thought it would be better to have this post here not on facebook

please answer Those questions if u r/were in FCIS

1. enta f anhy kesm?
2. leh da5alt el kesm da?
3. eh ra2yak f Information Systems?
4. eh ra2yak f Computer Science?
5. eh ra2yak f Computer Systems?
6. eh ra2yak f Scientific Computing?
7. tensa7 meen yod5ol eh?

Thanx.

http://www.facebook.com/home.php#/notes.php?id=553900754&start=50&hash=0e1c2265e2ada9e21c4d1d2534716375