Download Blackberry SDK with resume support

Blackberry SDK 1 Comment »

If you are living out side of fancy fast internet It will be really pain downloading blackberry sdk. Because they are stream file with authentication and no resume support and you can’t use Download Manager at all.

I found a solution for this with WGET for tryout this you have to have

  1. Linux or Unix server with faster internet access
  2. Shell Assess for that account
  3. Firefox latest version

the good news is most of the *nix web servers has ssh enabled.

 

ok here is how to do it

  1. install “Cookie Exporter 1.5″ or later version
  2. remove all the cookies using (firefox Menu -> Option -> Privacy -> Clear your recent History)
  3. the goto developer center url and log into the site
  4. click on BlackBerry Java Plugin for Eclipse v1.3 MR (Windows)
  5. then click download button
  6. after download start cancel the download copy url of it
  7. now time to export cookies if you are using firefox 4 click tab button to open the menu Tools -> Export cookies the default name cookies.txt will be good
  8. now start the ssh info your *nix server copy cookies.txt into location you want to download the file
  9. now paste wget –tries=inf –server-response –continue –load-cookies cookies.txt https://swdownloads.blackberry.com/Downloads/developerdownload.do;jsessionid=EB3158B62DBAF167FECFD596AFD08CC6.node1 into ssh and enter it will magically start the download
  10. after download finish rename file to something end with .exe
  11. now you can enjoy downloading file with your favorite Download Manager if you are not using one I’d like to recommend you to free download manager called Orbit Download Manager
Share

Import Colombo Stock Exchange (CSE) EOD Data to MetaStock

MetaStock 18 Comments »

According to the Wikipedia Colombo Stock Exchange (CSE) is the best performing stock market. But when we coming to the technical analysis still there are no cheep data provider to use with MetaStock. So I decided to write a program that read Colombo stock exchange EOD Excel data feed and automatically insert into MetaStocks Data files.

Some Technical Info you need to know

  • Since this program completely write using Microsoft .net you need to install .net framework 3.5 before install this software. you can find download link bellow.
  • Download Metastock data file from the link bellow and replace it with current meta stock data folder. (please note this program not work if you don’t do this step)
  • if your MetaStock Data file not in default location (C:\MetaStock Data\Sample) you need to change Data file location setting “MSData” from MSImporter.exe.config file where you can find it from installed location. (this only need to change If your data folder not in default location)
  • before click import button please make sure market status of the cse website state as close.
  • Currently this software support only import same day data so please import your data before Mid Night :P

 

  • Here is link do download version 1.1.0.1 (Download)
  • Microsoft .NET framework 3.5 (Download)
  • Here is link do collection of data from 2009 to 2011 Mar 31 (Download) Thanks goes to Sami

Please add comment if you found any bug or feature request.

Share

Social Engine 4 Add Tom as a friend

Social Engine 4 13 Comments »

Do you know Tom Anderson (Tom) ? If you have myspace account then you probably knows about tom. He is default friend of myspace. If you are running small social engine community you probably what this fetcher. I found some ready-made mod to have this on social network but according to the comments under those mod those having 1000 of bugs. So I decided to build one. This mod is 100% working on the social engine 4.

To do this you need to get your hands dirty (need some core mods)

Open file name: /application/modules/User/controllers/SignupController.php after line #90 add following code

 

//add Tom as a default friend
//$viewer = $this->_helper->api()->user()->getViewer();
$user2 = $this->_helper->api()->user()->getUser(1);

//send request to rob
//$user2->membership()->setUserApproved($viewer);
$user2->membership()->addMember($viewer)->setUserApproved($viewer);

// Add activity
Engine_Api::_()->getDbtable('actions', 'activity')->addActivity($user2, $viewer, 'friends', '{item:$object} is now friends with {item:$subject}.');
Engine_Api::_()->getDbtable('actions', 'activity')->addActivity($viewer, $user2, 'friends', '{item:$object} is now friends with {item:$subject}.');

// Add notification
Engine_Api::_()->getDbtable('notifications', 'activity')->addNotification($user2, $viewer, $user2, 'friend_accepted');
$message = Zend_Registry::get('Zend_Translate')->_("You are now friends with this member.");

$viewer->membership()->setUserApproved($user2);

// Add activity
Engine_Api::_()->getDbtable('actions', 'activity')->addActivity($viewer, $user2, 'friends', '{item:$object} is now friends with {item:$subject}.');
Engine_Api::_()->getDbtable('actions', 'activity')->addActivity($user2, $viewer, 'friends', '{item:$object} is now friends with {item:$subject}.');

// Add notification
Engine_Api::_()->getDbtable('notifications', 'activity')->addNotification($viewer, $user2, $viewer, 'friend_accepted');

// Set the request as handled
$notification = Engine_Api::_()->getDbtable('notifications', 'activity')->getNotificationBySubjectAndType(
$user2, $viewer, 'friend_request');
if( $notification )
{
$notification->mitigated = true;
$notification->read = 1;
$notification->save();
}

// Increment friends counter
// @todo make sure this works fine for following
Engine_Api::_()->getDbtable('statistics', 'core')->increment('user.friendships');

 

when you adding code you only need to change $user2 = $this->_helper->api()->user()->getUser(1); user id 1 to your tom’s user id

 

that’s it now mod ready to go.

Share

Did you ever visited your torrent peer home ?

Torrent No Comments »

last week my utorrent client prompt me to update to new version 2.2. I’ve notice they have re-do the UI and they have introduce cool new utorrent apps store like any other does.(chrome, Android, iPhone and iPad)

There is cool app and called uMap. I decided to explore this app more. (by assuming i can visit torrent peers home Smile with tongue out)

world_view

(peers on world Map)

sat-view

(Zooming it more)

Home

(Street View)

* anyway downloading files from P2P networks including torrents not anonymous. because you are downloading file directly from peers your ip directly submit to all the peers you are connected to. (using geo location service anyone can get physical address of you Ex: www.ip2location.com ) there may be peers collect your information also.

Share
WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in