Saturday, December 4, 2010

Limit apt-get download speed

I wanted to limit apt-get download.
The solution is this:

$ sudo apt-get -o Acquire::http::Dl-Limit=25 upgrade

Thursday, September 2, 2010

how to fix osCommerce and php 5.3.* problem

The problem is php 5.3.* deprecated some functions.
so when you run osCommerce on php 5.3.* it gives warnings.

you can find deprecated functions here:
http://php.net/manual/en/migration53.deprecated.php

there is two ways to fix this.
1. replace all the deprecated functions with
equivalent alternative one (the hard way)
exmp:
replace eregi("[regex]", $str) with preg_match("/[regex]/i", $str)

2. disable deprecated warning from php.ini file.
set error reporting value to this: error_reporting = E_ALL & ~E_DEPRECATED

3. use php 5.2.*

Wednesday, August 11, 2010

QTableWidget bug

to remove rows from QTableWidget you have to
run the loop in reverse order. like this:

in python do this:

for x in reversed(range(self.tableWidget.rowCount())):
self.tableWidget.removeRow(x)

for c++ do this:

for (int i=view->rowCount()-1; i >= 0; --i)
removeRow(i);
for (int i=view->columnCount()-1; i>=0; --i)
removeColumn(i);

Wednesday, July 7, 2010

Dolphin Complete Setup Guide

source: http://forums.dolphin-emu.com/thread-3533.html

Ripping your games is not discussed in this topic, this is ONLY the setup of dolphin itself. Warez is not supported on this forum, so don't ask where to get them, you'll be banned.

First... Things you need:

- A fast computer. (preferably Core 2 Duo or better, or high Athlon 64 X2(5200+ or better)
- The internet
- Roms to use with Dolphin (gamecube or wii)
- Time
- Two hands (it's possible to do with just one, but much easier with two)
- A Brain (This is very important.)

Now then, assuming you have all of the above, you'll be playing in no time, just follow these easy steps.

1.) Download Dolphin from your favorite builder. If you don't know where to get them, they are in the General Discussion sub-forum of the Dolphin-emu SVN Builds forum. Located here: http://forums.dolphin-emu.com/forum-6.html If you're unsure, just click the link in my signature, I update my builds quite often.

2.) Most people use 7zip to compress their releases, some use .zip or .rar, for those you can use Winzip or WinRAR, 7-Zip will work with them all, I suggest you download and install 7-zip from http://www.7-zip.org/

3.) Now, extract the downloaded compressed file to a new folder, make sure you know where this folder is.

4.) When you extract it, you will get several files and folders. Most releases have both the regular Dolphin as well as DolphinIL. the IL build is slightly faster than the original, however, it's also more unstable. You can use either one you want. So double click and open Dolphin or DolphinIL.

5.) You will get the main interface pop up. You could simply load the game from here, but chances are you will want to configure everything, like controls, graphics, sound, hacks and such.

6.) Click the options menu and click Configure. There are a lot of options. For the best settings for specific games, see the individual game posts in the Game Discussion forum.
For most games The best config is as follows:
- ON: Dual Core, Idle Skipping, HLE the BIOS all the time, Enable the JIT dynarec, Lock Threads to cores, Optimize Quantizers, LLE DSP on Thread, Confirm on Stop.
- OFF: Use Panic Handlers.
- You will also want to set your framelimiter to the desired framerate of the game you're playing, most of the time this will be 60, but for PAL games most is 50, some games are 30.

7.) In the second tab, This is all your own preference, you can set your language, controller types, and paths to memory cards. For most, the defaults will suffice.

8.) The next tab over is the Wii tab, Most Wii games prefer Progressive Scan on, but some do not, if you're having difficulties playing some wii games, you might want to disable this. You can also set sensor bar location, screen saver, aspect ratio and language. These are all you own preference options, the other option is called Enable EuRGB60 Mode (PAL6) Use this if playing PAL games, best to leave off if you don't play PAL games.

9.) The next tab is the Paths Tab. Here you'll want to add the paths to your roms, you might also want to set it to use subfolders depending on how you have your folders setup with your roms. Simply click Add, and browse to the location of your roms and click OK.

10.) The next and final tab is the Plugins tab, here you can select different plugins for Dolphin to use, Currently there are two video plugins for Dolphin, OpenGL or Direct3D. Direct3D currently runs faster than OpenGL, however has more graphical problems, if you're looking more for quality/compatibility use OpenGL, if the game seems to work with Direct3D without problems, you might be better off with it. Next is the DSP plugin, and you have 2 choices here, HLE and LLE. Unless you're just testing things on LLE, you're better off using HLE for the DSP plugin. (this is mostly for audio) The Pad plugin is for your controller or Keyboard setup, best to use nJoy 0.3, but you can play with the others and see which ones work best for your controller/keyboard. Last is the WiiMote plugin, there is only one as of this time.

11.) Click OK on this and click Options and select Graphics. Here you have options to setup resolution, aspect ratio, filtering, vsync, rendering to main window, post processing shaders, etc. Most of these are going to be your own preferences, If you are setting your own resolution and not using the native one, you should turn on Auto Scale. The rest of the settings are pretty much up to you to set. I'm not sure what games need Real XFB, but if a game isn't working you might try enabling that.

12.) In the other tab of the Graphics configuration, here's where the game discussion forum will come in handy, most people have documented the best settings for certain games.
- The top portion is informational, most of these you'll just leave off, I like to have FPS displayed so I turn that on.
- The Rendering portion is where you can disable certain features depending on the game, they require different settings. EFB Copy for the most part should be set to Copy EFB to system RAM. But again some games require this to be different.
- Below these is the Utilities, most of the time you'll just leave these disabled. Free look is kind of fun, but not useful to playing the game.
- Below that we have the hacks. Here's some of the hacks that help games to work better or work at all. Unless the game you're playing needs the hack, it's best to set this to none. Safe Texture cache is mainly for the Metroid Prime series, this should be off unless you're playing those games.

13.) Now click Close on that window, From here click OPtions and go to DSP Settings. Here you can set the volume and Audio and DSP settings, most games will use HLE Audio, DTK Music and Other Audio, enabled. RE0 fix is just a fix for Resident Evil game. should be disabled unless you are playing that game. Audio backend should be set to DSound, OpenAL works, but it's buggy.

14.) Click OK on that screen. Now all you have to do is set up your controller settings. (Options -> Pad Settings or Wiimote Settings for Wiimote) Those screens are pretty self explanatory just click the button you want to setup and press the button on your controller or keyboard you want to set it to.

And that's it, you're all setup to play, your games should be listed in the window and you can open them by just double clicking them.

Tuesday, July 6, 2010

Display Any Web Page's Keyboard Shortcuts

If you want to see keyboard shortcuts of your webpages
then do the flowing.

create userContent.css file in this location
if you have your own profile then make file there
or use default firefox profile.

win:
hit Start -> Run and type %appdata%\Mozilla\Firefox\Profiles

mac:
~/Library/Application Support/Firefox

then open that file using any text editor and pest this code:

a[accesskey]:after,
button[accesskey]:after,
input[accesskey]:after,
label[accesskey]:after,
legend[accesskey]:after,
textarea[accesskey]:after
{
margin-left: 0.3em;
content: "[" attr(accesskey) "]";
}

reload firefox enjoy :)

Friday, June 11, 2010

একটা দেশ ও তার ডিজিটাল বাজেট।

একটা দেশ বাংলাদেশ, তার একটা নতুন শখ হইসে, শখটা হইলো সে কিনা ডিজিটাল
বিপ্লব মানে আইটি ইন্ডাস্ট্রিতে উন্নতি করবে। ভালো কথা, কিন্তু, তাদের
ডিজিটাল কর্মকান্ডের নমুনা ব্যাপক 'INNOVATIVE'। যেমন, ফেসবুক বন্ধ করা,
নাগরিক ব্লগ বন্ধ করা এবং মোস্তফা জব্বারকে আইটি গুরু বানানো। এগুলো
দারুণ আশার কথা!!! দেখে পরান জুরায়!!!!
নতুন সংযোজন হইলো পাওয়ারপয়েন্টে বাজেট উপস্থাপন। পাওয়ারপয়েন্টে বাজেট
উপস্থাপন দোষের না, বরং ভালো। কিন্তু, একে ডিজিটাল বিপ্লবের ফল বলা ও
প্রচার বোকামি। পাওয়ারপয়েন্ট প্রেজেন্টেশনের সাথে ডিজিটাল বাংলাদেশের
কোনো সম্পর্ক নাই। আমার ভাইগ্না গত সপ্তায় পাওয়ারপয়েন্ট প্রেজেন্টেশন
দিলো, ওর বয়স ৫। আজ ব্যাপারটাকে এইভাবে প্রচারিত হইতে দেইখা 'বাঙালী'
হিসাবে লজ্জা হইতেসে।

Monday, June 7, 2010

.pbp to .iso

Some people upload playstation games in .pbp format and
its not work with epsxe emulator.
but there is a work around :) here is the process.

you need two software:
1. psx2psp
2. ultraISO

feed .pbp file to psx2psp to make .img file
then feed .img file to ultraISO to make .iso file

now you can run your playstation game in epsxe.

Friday, May 28, 2010

MAC OS X pgup, pgdn, home and end

In MBP keyboard there is no pgup, pgdn, home and end key.
but there is an alternative to do that.

pgdn in shell -> fn+shift+down arrow
pgup in shell -> fn+shift+up arrow
home in shell -> fn+shift+left arrow
end in shell -> fn+shift+right arrow

pgdn gui -> command+down arrow
pgup gui -> command+up arrow
home gui -> command+left arrow
home gui ->command+right arrow

Sunday, May 23, 2010

Man Made Life

I used to told my friends that "HUMAN IS GOD" and as usual they don't accept it because they cant, now its time to rethink ha ha ha :)

Craig Venter and his team have built the genome of a bacterium from scratch and incorporated it into a cell to make what they call the world's first synthetic life form.

find out more here.

Tuesday, May 18, 2010

how to uninstall Xcode

to uninstall xcode from mac run this command in terminal:

$sudo /Developer/Library/uninstall-devtools --mode=all

Thursday, May 13, 2010

mac 'ls' color output

ls command output is not colored in mac os x by default
to color it fellow this simple steps:

1. there is a file in home folder named .profile
2. open it using nano or pico
3. append this line : alias ls="ls -G"
4. restart terminal and its done :)

Friday, May 7, 2010

installing solaiman lipi in ubuntu

$gksu nautilus /usr/share/fonts/truetype
paste the downloaded font in that folder.
$sudo fc-cache -f -v
press enter.
done :)

Thursday, May 6, 2010

join splited *.001 ... file using 7zip

7zio cant iterate automatically through files
so use this simple bash script to get job done.

$for i in $(ls *.001); do (7z e $i) done;

this method can be used with rar,gz,tar.gz,tar.bz2 etc

Friday, March 26, 2010

What is a CAM, TS, R5, DVDscr, XviD etc.

originally posted on tehparadox

CAM
A cam is a theater rip usually done with a digital video camera. A mini tripod is sometimes used, but a lot of the time this wont be possible, so the camera make shake. Also seating placement isn't always idle, and it might be filmed from an angle. If cropped properly, this is hard to tell unless there's text on the screen, but a lot of times these are left with triangular borders on the top and bottom of the screen. Sound is taken from the onboard microphone of the camera, and especially in comedies, laughter can often be heard during the film. Due to these factors picture and sound quality are usually quite poor, but sometimes we're lucky, and the theater will be fairly empty and a fairly clear signal will be heard.


TELESYNC (TS)
A telesync is the same spec as a CAM except it uses an external audio source (most likely an audio jack in the chair for hard of hearing people). A direct audio source does not ensure a good quality audio source, as a lot of background noise can interfere. A lot of the times a telesync is filmed in an empty cinema or from the projection booth with a professional camera, giving a better picture quality. Quality ranges drastically, check the sample before downloading the full release. A high percentage of Telesyncs are CAMs that have been mislabeled.


TELECINE (TC)
A telecine machine copies the film digitally from the reels. Sound and picture should be very good, but due to the equipment involved and cost telecines are fairly uncommon. Generally the film will be in correct aspect ratio, although 4:3 telecines have existed. A great example is the JURASSIC PARK 3 TC done last year. TC should not be confused with TimeCode , which is a visible counter on screen throughout the film.


SCREENER (SCR)
A pre VHS tape, sent to rental stores, and various other places for promotional use. A screener is supplied on a VHS tape, and is usually in a 4:3 (full screen) a/r, although letterboxed screeners are sometimes found. The main draw back is a "ticker" (a message that scrolls past at the bottom of the screen, with the copyright and anti-copy telephone number). Also, if the tape contains any serial numbers, or any other markings that could lead to the source of the tape, these will have to be blocked, usually with a black mark over the section. This is sometimes only for a few seconds, but unfortunately on some copies this will last for the entire film, and some can be quite big. Depending on the equipment used, screener quality can range from excellent if done from a MASTER copy, to very poor if done on an old VHS recorder thru poor capture equipment on a copied tape. Most screeners are transferred to VCD, but a few attempts at SVCD have occurred, some looking better than others.


DVD-SCREENER (DVDscr)
Same premise as a screener, but transferred off a DVD. Usually letterbox , but without the extras that a DVD retail would contain. The ticker is not usually in the black bars, and will disrupt the viewing. If the ripper has any skill, a DVDscr should be very good. Usually transferred to SVCD or DivX/XviD.


DVDRip
A copy of the final released DVD. If possible this is released PRE retail (for example, Star Wars episode 2) again, should be excellent quality. DVDrips are released in SVCD and DivX/XviD.


VHSRip
Transferred off a retail VHS, mainly skating/sports videos and XXX releases.


(HD)TVRip
TV episode that is either from Network (capped using digital cable/satellite boxes are preferable) or PRE-AIR from satellite feeds sending the program around to networks a few days earlier (do not contain "dogs" but sometimes have flickers etc) Some programs such as WWF Raw Is War contain extra parts, and the "dark matches" and camera/commentary tests are included on the rips. PDTV is capped from a digital TV PCI card, generally giving the best results, and groups tend to release in SVCD for these. VCD/SVCD/DivX/XviD rips are all supported by the TV scene.

TVRip (analog), DSRip (Digital Satellite), PDTV (Pure Digital), HDTV (High Definition), HR.HDTV (High Resolution High Definition), 720p HDTV (High Definition - 1280x720 resolution)

DDC
Digital Distribution Copy is a version of a movie that has been obtained from a Downloadable movie site such as Netflix and others.

PPV
Pay Per View, this is where the movie is capped(captured with Digital Recording Equipment) from Hotels and other Organisations which provide a PPV television service.


WORKPRINT (WP)
A workprint is a copy of the film that has not been finished. It can be missing scenes, music, and quality can range from excellent to very poor. Some WPs are very different from the final print (Men In Black is missing all the aliens, and has actors in their places) and others can contain extra scenes (Jay and Silent Bob) . WPs can be nice additions to the collection once a good quality final has been obtained.


DivX Re-Enc
A DivX re-enc is a film that has been taken from its original VCD source, and re-encoded into a small DivX file. Most commonly found on file sharers, these are usually labeled something like Film.Name.Group(1of2) etc. Common groups are SMR and TND. These aren't really worth downloading, unless you're that unsure about a film u only want a 200mb copy of it. Generally avoid.


Watermarks
A lot of films come from Asian Silvers/PDVD (see below) and these are tagged by the people responsible. Usually with a letter/initials or a little logo, generally in one of the corners. Most famous are the "Z" "A" and "Globe" watermarks.


Asian Silvers / PDVD
These are films put out by eastern bootleggers, and these are usually bought by some groups to put out as their own. Silvers are very cheap and easily available.


R5
R5 refers to a specific format of DVD released in DVD Region 5, the former Soviet Union, and bootlegged copies of these releases that are distributed on the Internet. In an effort to compete with movie piracy, the movie industry chose to create a new format for DVD releases that could be produced more quickly and less expensively than traditional DVD releases. R5 releases differ from normal releases in that they are a direct Telecine transfer of the film without any of the image processing common on DVD releases, and without any special features. This allows the film to be released for sale at the same time that DVD Screeners are released. Since DVD Screeners are the chief source of high-quality pirated movies, this allows the movie studios to beat the pirates to market. In some cases, R5 DVDs may be released without an English audio track, requiring pirates to use the direct line audio from the film's theatrical release. In this case, the pirated release is tagged with ".LINE" to distinguish it from a release with a DVD audio track.

The image quality of an R5 release is generally comparable to a DVD Screener release, except without the added scrolling text and black and white scenes that serve to distinguish screeners from commercial DVD releases. The quality is better than Telecine transfers produced by movie pirates because the transfer is performed usingprofessional-grade film scanning equipment.

Because there is no scene release standard for pirated R5 releases, they were variably tagged as Telecines, DVD Screeners, or even DVD rips. In late 2006, several release groups such as DREAMLiGHT, mVs, and PUKKA began tagging R5 releases with ".R5" or r5 line (the line meaning it has direct english line audio) and suggesting that other groups do the same.


Formats


VCD
VCD is an mpeg1 based format, with a constant bitrate of 1150kbit at a resolution of 352x240 (NTCS). VCDs are generally used for lower quality transfers (CAM/TS/TC/Screener(VHS)/TVrip(analogue) in order to make smaller file sizes, and fit as much on a single disc as possible. Both VCDs and SVCDs are timed in minutes, rather than MB, so when looking at an mpeg, it may appear larger than the disc capacity, and in reality u can fit 74min on a CDR74.


SVCD
SVCD is an mpeg2 based (same as DVD) which allows variable bit-rates of up to 2500kbits at a resolution of 480x480 (NTSC) which is then decompressed into a 4:3 aspect ratio when played back. Due to the variable bit-rate, the length you can fit on a single CDR is not fixed, but generally between 35-60 Mins are the most common. To get a better SVCD encode using variable bit-rates, it is important to use multiple "passes". this takes a lot longer, but the results are far clearer.


XVCD/XSVCD
These are basically VCD/SVCD that don't obey the "rules". They are both capable of much higher resolutions and bit-rates, but it all depends on the player to whether the disc can be played. X(S)VCD are total non-standards, and are usually for home-ripping by people who don't intend to release them.


DivX / XviD
XviD & DivX are the most commonly used codecs for encoding movies. DivX used to be the most popular, until it went from open source to a corporation that bought the rights & started charging for it (although the crack can easily be obtained for the DivX encoder, most people have switched to XviD, not only because it is open source, but also because it is superior in many ways). In the last year or so, many stand-alone DVD players have been released that are capable of playing DivX/XviD movies (even on CDRs), which has made this the most popular form of encoding. The majority of XviD/DivX rips are taken from DVDs, and are generally in as good quality as possible that can fit on one 700MB CDR disc, which is why most XviD/DivX movies are almost exactly 700MB, so they can be burnt onto a CDR & played in these new DVD players (which can be purchased just about anywhere for as little as $30-$40 USD). Various codecs exist, the most popular at the moment being the new XviD 1.2 codec. DivX encoded movies will definitely play on these new DVD players, & it only takes a little simple tweaking by the ripper to ensure XviDs will play on them as well, but it is therefore not guaranteed. (If you want to learn more about XviD/DivX encoding so you can make your own DVDrips, just visit doom9.org)


x264
x264 is a free software library for encoding H.264/MPEG-4 AVC video streams. (More to come.)


CVD
CVD is a combination of VCD and SVCD formats, and is generally supported by a majority of DVD players. It supports MPEG2 bit-rates of SVCD, but uses a resolution of 352x480(ntsc) as the horizontal resolution is generally less important. Currently no groups release in CVD.


DVDR
Is the recordable DVD solution that seems to be the most popular (out of DVD-RAM, DVD-R and DVD+R). it holds 4.7gb of data per side, and double sided discs are available, so discs can hold nearly 10gb in some circumstances. SVCD mpeg2 images must be converted before they can be burnt to DVD-R and played successfully. DVD>DVDR copies are possible, but sometimes extras/languages have to be removed to stick within the available 4.7gb.


MiniDVD
MiniDVD/cDVD is the same format as DVD but on a standard CDR/CDRW. Because of the high resolution/bit-rates, its only possible to fit about 18-21 mins of footage per disc, and the format is only compatible with a few players.



Scene Tags


PROPER
Due to scene rules, whoever releases the first Telesync has won that race (for example). But if the quality of that release is fairly poor, if another group has another telesync (or the same source in higher quality) then the tag PROPER is added to the folder to avoid being duped. PROPER is the most subjective tag in the scene, and a lot of people will generally argue whether the PROPER is better than the original release. A lot of groups release PROPERS just out of desperation due to losing the race. A reason for the PROPER should always be included in the NFO.


SUBBED
In the case of a VCD, if a release is subbed, it usually means it has hard encoded subtitles burnt throughout the movie. These are generally in malaysian/chinese/thai etc, and sometimes there are two different languages, which can take up quite a large amount of the screen. SVCD supports switch able subtitles, so some DVDRips are released with switch able subs. This will be mentioned in the NFO file if included.


UNSUBBED
When a film has had a subbed release in the past, an Unsubbed release may be released


LIMITED
A limited movie means it has had a limited theater run, generally opening in less than 250 theaters, generally smaller films (such as art house films) are released as limited.


INTERNAL
An internal release is done for several reasons. Classic DVD groups do a lot of .INTERNAL. releases, as they wont be dupe'd on it. Also lower quality theater rips are done INTERNAL so not to lower the reputation of the group, or due to the amount of rips done already. An INTERNAL release is available as normal on the groups affiliate sites, but they can't be traded to other sites without request from the site ops. Some INTERNAL releases still trickle down to IRC/Newsgroups, it usually depends on the title and the popularity. Earlier in the year people referred to Centropy going "internal". This meant the group were only releasing the movies to their members and site ops. This is in a different context to the usual definition.


STV
Straight To Video. Was never released in theaters, and therefore a lot of sites do not allow these.


ASPECT RATIO TAGS
These are *WS* for widescreen (letterbox) and *FS* for Fullscreen.


RECODE
A recode is a previously released version, usually filtered through TMPGenc to remove subtitles, fix color etc. Whilst they can look better, its not looked upon highly as groups are expected to obtain their own sources.


REPACK
If a group releases a bad rip, they will release a Repack which will fix the problems.


NUKED
A film can be nuked for various reasons. Individual sites will nuke for breaking their rules (such as "No Telesyncs") but if the film has something extremely wrong with it (no soundtrack for 20mins, CD2 is incorrect film/game etc) then a global nuke will occur, and people trading it across sites will lose their credits. Nuked films can still reach other sources such as p2p/usenet, but its a good idea to check why it was nuked first in case. If a group realise there is something wrong, they can request a nuke.

NUKE REASONS :: this is a list of common reasons a film can be nuked for (generally DVDRip)

** BAD A/R ** :: bad aspect ratio, ie people appear too fat/thin
** BAD IVTC ** :: bad inverse telecine. process of converting framerates was incorrect.
** INTERLACED ** :: black lines on movement as the field order is incorrect.


DUPE
Dupe is quite simply, if something exists already, then theres no reason for it to exist again without proper reason.

list open ports and unix sockets

To do this I use netstat command to list all open ports: $ sudo netstat -tuplen to list open ports and unix sockets: $ sudo netstat -...