Saturday, April 30, 2011

Companies that suck 0002



Short Note #0002:

"A company in which innovation is NOT welcomed is a Company That Sucks"



Comments are very welcomed :) 

0 comments:

Ubuntu 11.04 Unity Tips and Tricks

Hello!
i've recently downloaded and installed ubuntu 11.04 on my PC.
Although i wasn't shocked when i first saw ubuntu with the taste of Unity instead of the great Gnome, i was shocked when i tried to play with unity.
I don't like the limitation that unity puts to me which is going to the leftmost edge of the screen or pointing over the top left area of the screen to show the unity left menu/dock/etc

But i tried to cope with it and discovered some cool things.

  1. You can activate unity search by pressing the windows button
  2. You can select which dock item to open by keeping the windows button clicked and then selecting the number written on the icon of the item you want
  3. You can control when to show unity menu ,  via launcher & menus
  4. You can download Avant Window Navigator and have a very nice dock App :)
  5. If you totally hate unity , log out and when selecting user at login window select Ubuntu Classic option @ the bottom then login. You'll find the Great Gnome when you login :)
Regards,
Bassem Elhawary

11 comments:

Friday, April 29, 2011

Companies that suck 0001

This is the beginning of a blog entries series called "Companies That Suck".
In this series i will post micro blog entries about how a "Company That Sucks" is.

Things written here will purely be my thoughts, opinions and view of how a "Company That Sucks" is. Mostly i'll not put scientific or statistical data. It will be more about common sense and specially My Sense, Maybe i'll be wrong sometimes.
Discussion is very welcomed in comments to let me and you gain better understanding.



----------------------------------------------------------------------------------------------------------------
Here We Go
----------------------------------------------------------------------------------------------------------------



Short Note #0001:

" A company without a vision* is a Company That Sucks "

* Vision does NOT equal seeking for more money


0 comments:

Tuesday, April 26, 2011

أى كلام فى بوست

حبيبها .. لست وحدك حبيبها .. فهناك مُرسى حبيبها .. و هناك مُسعد حبيبها .. و هناك رُشدى عشيقها .. هى واحدة واطية من الآخر :) ـ

لو كانت نوكيا رجلاً لقتلته

إنت عارف إيه العبقرى فى أبل و جوجل , إنهم عايشين من أجل الفلوس فقط .. كدبة إبريق

المترو .. لو فاتك أغانى كتييير أوى بنقدملك خدمة الميكس العجيب .. شعبى مع مودرن مع أجنبى مع دينى .. برعاية مجموعة أطباء الأذن و الأمراض العصبية

لما تركب المترو فى الزحمة افتكر نغمة إعلان -تييييت- (عشان مايحاسبونيش على إنها إعلان .. أنا مش لاقى آكُل أصلاً) .. قالوا معقول حد يفكر الدنيا فيها أكتر .. طب ليه و هيركبوا فين ؟ .. قالوا معقول حد يخلّى عربية تاخد 100 تستحمل 650؟!ـ

قالوا الناس مصريين .. و بقينا 15 مليون فى المترو راكبييييييين


أ : شوفتى خطيبى بعتلى إيه
ب: مش عايزة أعرف
أ: ﻷ لازم تعرفى
ب: يا ستى مش عايزة أعرف
أ: وحياة خالد
ب: باعتلك إيه؟
أ: الإم إم يو
ب: إتفو

تنبيه تنبيه : عزيزى راكب المترو اللى راكب مع الموزّة* .. المترو مش أوضة نوم يلا .. على رأى المثل اللى اختشوا كانوا (بعيد عنك ) ناس بتحِس


ـ * تعريف الموزّة : فتاة (أو هكذا تبدو) .. ترتدى بنطلون (أو هكذا يبدو) ضيق جداً و بووووت و بدى كارينا مقطوع و يرى عليها أثر السفر (أو هكذا يبدو) من الطبقات الغبارية و عوامل التعرية التى أثرت على بشرتها .. أحياناً ترتدى نظارة شمسية تخفى ملامحها الرقيقة (من الرقاق) و نظراتها الحادة (من الحِدّاية) .. و سبحان الله دايماً حساسة و فى نفس ذات الوقت تعانى من عدم اتزان و أحياناً ضعف فى البصر .. لذلك تجدها دائماً ممسكة بعضلة الباى عند عم الكُتكُوت (هذا طبعا ﻷنها لا ترى المقابض البلاستيكية أو المواسير الحديدية .. أو أنها تراهم و لكنها تعانى من تخلف عقلى ) .. أنا تعبت من الكتابة .. للمزيد عن كائن الموزّة شاهد ناشونال جيوجرافيك أم زحلف .. فى سلسلة مملكة المترو

بالنسبة بقى لإتحاد الدكتاتوريين العرب : من أنتم .. سوف تندمون يوم لا ينفع الندم .. إن الله يترك
الطاغية يبطش حتى إذا أمسكه لم يفلته .. و إن شاء الله سنشهد ذلكم و لو بعد حين

السلامُ عليكم

2 comments:

Sunday, April 24, 2011

Unkonwn length of MP3 Files in ubuntu

Do you have Ubuntu and when playing mp3 files you can't control the seek bar cause the file length is unknown ?
If yes, then this post is for you.

To solve this you have to install the package called:
ubuntu-restricted-extras
1.Go to System > Administration > Synaptic Package Manager
2.In the search area search for "ubuntu restricted".
3.Select the package named ubuntu restricted extras and install it.
4.Congratulations!

this worked with me on Totem Movie Player.
Regards,
Bassem Elhawary

0 comments:

Thursday, April 21, 2011

Calling a function in your App Delegate from a viewcontroller ?



That's how you can reference your app delegate from anywhere inside your application and call its functions



#import "YourAppDelegateClass.h" 

YourAppDelegateClass* instance1 = [[UIApplication sharedApplication] delegate];

[instance1 doSomeThing];







Hoping this is useful.

0 comments:

Sunday, April 10, 2011

Detecting screen size of iOS devices programmatically

Today i needed to write some code that will run on iPhone/iPhone4/iPad.
To go well with such fragmentation you must make some Interface elements change position dynamically based on the device screen size.

To get the screen size you do the following:



That's it!
Hoping it is a useful piece of info

--
Bassem Elhawary

1 comments:

Saturday, April 09, 2011

Converting iPhone Views to iPad ones


if you wanna create an iPad version of your iPhone app without suffering making new Nib files and connecting interface items in the view files to their and items in your code then the best way i know till now is the following:

You'll need Xcode 3.2.x. i'm using Xcode 3.2.5. Unfourunately the feature i'm using isn't available in XCode 4 and i don't know why did apple remove it from XCode 4 !

1.Use the Auto resizing mask facility given to you by interface builder wisely.






2.Open the iPhone interface file in interface builder
3.From Interface builder menus choose File then Create iPad version using Autosizing masks

4.Save the new file that will be generated for you. It will ask if you want to add it to the project, add it if you want.

you'll need to do some modifications on the UI but at least you have your UI items connected to your Code. It is big headache to redo all the connections if you started iPad interface files from scratch.

i know this way isn't the best cause iPad UX should be different than iPhone one.
But this is the solution if you wanted to create iPad version ASAP and as a bonus to the customer  :))


Good Luck,
Bassem Elhawary

0 comments: