Downloading Youtube videos in Ubuntu

Leave a comment

After the flash version 10 as I can remember, the old method of going to the temp folder /tmp/ and copying the video from there is not working, you will not find it there, It is put there then deleted from disk and treated as a file in memory so this is how to get it.

Using the terminal:

 pgrep -f flashplayer 

this will display the process IDs using flash player, assume the process ID was 3660, then navigate to the process data

 cd /proc/3660/fd 

and list the files there

 ls -l 

you might find a file written at the end of its line ” /tmp/FlashXX3HWsv1 (deleted)”

Screenshot from 2013-06-29 08:54:29

this is the video, copy it to wherever you want but use that number as the file name

 cp 30 /wherever/vid.flv 
Advertisements

Cons & Pros [NTPSoftware]

2 Comments

NTPSoftware

I love it!

For me right now it is the best place to work in in Egypt, gives you a good degree of freedom and no need to care for transportation…

Except that I am having some overloaded situation I wouldn’t have left it.

So, continuing the Cons & Pros series..

More

…احب ما تعلمت من

1 Comment

.ابى: قبل ان تسأل عن حال شخص او شئ, ضع نفسك مكانه

.ابى: اللى هياكل على  ضرسه هينفع نفسه

.امى: ان كنت لا تفعل خطأا  فلا تهتم بآراء الناس و سيعلمون من انت

.امى: كن بسيطا

.مروان:  ما دمت مقتنع بما تعمل تحدث بثقه و سيقتنع الناس فى نهايه المطاف

.استاذ مصطفى العلايلى: فكر فيما تقرأ و تذاكر فمن كتبوه غير منزهين عن الخطأ

.مصطفى الفولى: ان اصلى فى اى مكان و ان كان على رصيف فى الطريق

.احمد مدحت: كن ذا مبدأ

.زوجتى: ان ابتسم فى وجه المتسول و اعامله برفق حتى و ان ظننت انه غير محتاج

.دكتور محمد سامى: لا تتحيز لآله او وسيله معينه, ابحث عن الاصلح اينما كان

.دكتور رشدى عامر: تعلم للعلم و ابحث عنه

.حجاج: ليس كل ذا لحيهٍ داعيه, ولا تتبع سوى الدليل

.فؤاد: ان كان مديرك يحب تعديل “كل” ما تصنعه, لا تنسى ان تضع له البطه

…. و ما زال فى الطريق بقيه إن شاء الله

 

A year and a half of cycling

7 Comments

Well..
That has been a good time since I got my first professional -somehow- bike and my third life time one.
Gotta say.. I really enjoy cycling, long distances are what I enjoy the most, and get exhausted the most as well 😀
But that’s awesome when you are able to be doing something healthy, specially for devs who work for a week on desk staring in a monitor and the longest distance they move is the maximum length of the mouse wire, yeah it’s a curse having touchpad! 😀
Anyway, just wanted to share some experience I had with bikes, where and how to buy, maintenance, accessories and so..

More

Adding new COM Interface version

Leave a comment

Just for my self and other people like me who forget interestingly fast, and do not wish to get E_NOINTERFACE from C++ QueryInterface method after they add new COM interface version for maintaining backward compatibility for the COM object.

4 places to add the new version info..

1-In the idl file used for the description of the interface, Add the new interface and make sure you put a new UUID for it, make sure it inherits the old interface


[
 object,
 uuid(69BBF687-D8AE-4f7c-8E61-96DD47FA12C8),
 dual,
 helpstring("OldInterface Interface"),
 pointer_default(unique)
 ]
 interface IOldInterface : IDispatch
 {

//Some old functions

};

[
 object,
 uuid(9BFB8CD2-C090-4e37-A9AB-AE001B9EB4DC), //new UUID
 dual,
 helpstring("INewInterface Interface"),
 pointer_default(unique)
 ]
 interface INewInterface : IOldInterface
 {
//Some new functions

};

More

So it’s FCIS third year, ha?!!

5 Comments

Ok, let me see..
First, FCIS third year is not hard at all, it is very interesting and you’ll learn so much from it if you wish just try to really free yourself from anything except your studies to enjoy it.

Second, the best thing to learn from during this year in some subjects will be the projects you do, so try to start in those projects as early as possible to give each project enough time and innovate..

Third, what I am going to write next depends mostly on my knowledge and experience that might be outdated as I was in this place may be three years a go and it depends on my way of thinking and opinions.

So, lets see the subjects you do have in it

More

Happy 2 Ubuntu years..

2 Comments

Hello,

Nearly two years have  passed since my move to Ubuntu

gotta say, It’s an interesting BSOD-less experience 😛

Of course I won’t claim it’s perfectly stable but for me it’s way more stable than windows.

kind of I had some problems most are solved, others needed workarounds, but mostly what i need to do is done at the end thanks to ALLAH

The continues problem was that my surrounding colleagues are not Ubuntu familiar/users and I’m working on that problem right now ;D

Anyway, I’ll list now the apps I found useful during those 2 years and I use them frequently.

First, for archiving purposes, this is my current desktop screenshot

More

Older Entries