Welcome to Nigeria Oil & Gas Forum. Feel free in using the Forum, Reply to Posts, Participate in Discussions, Make your Requests, Ask your Questions,

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - osofem

Pages: 1 [2]
Vote for our own  Akin Abo in the Storm Model Management Competition. He is now in the Semi finals. One love Naija!

Musicians and promiscuity

Games & Lifestyle / Need for speed theme for windows
« on: May 07, 2013, 03:05:48 PM »
Get the latest theme of NFS for your windows from this torrent ...Need for speed theme

Hello sir,

It looks like I'm having some problems with this express files guy ooo.

When I attempt to start a new download, it will just remain stuck at  "finding nearest servers".

I hope I'm not the only one having this same problem since last Saturday?

Try downloading using another item from the list... There might be zero seeders on that torrent...  :'(

Have you ever wondered that having to remember and type the URL of your webpage over and again might be frustrating for some users of your website? That was why the internet shortcut was created to help out.

The Internet Shortcut / URL file (*.URL) is a windows file which can however be used on other OS or better stated by browsers on other OS other than Windows. This is used extensively in IE to store bookmarks and favorites but can also be used to create a double clickable file (shortcut) similar to a file shortcut rather pointing to an internet resource and recognized by all major browser.

The file format
The file format is similar to an INI file and has the .URL extension (note .url doesn’t seem to work for some people but .URL works in all cases)

Code: [Select]

There are still some other field but the most important are the URL, and ShowCommand field

URL: This is self-explanatory. It is the url of the internet resource. Note this is not limited to the http protocol, it can be http, https, ftp or some other supported protocols

ShowCommand: This the state the browser should be when the URL is opened. 0 or not setting this means normal, 3 means maximized, while 7 means minimized.

IconFile: This is the location of the file containing the icon that should be displayed for this file. This can be a .ico, .dll, .exe, or any file which can contain an icon file. Note that this is not limited to ffiles on the local machine of the user, it can be on your webserver e.g. IconFile=http://www.example.com/myicon.ico 

IconIndex: the index of the icon to use in the file specified in IconFile.

Benefits for generating this on the server side
Being able to generate this on the fly on the server side and letting the user download it their computer will be of great benefit in that

1. The user can save the file on their desktop like a file shortcut but pointing to your website
2. Your website is one click away from the user
3. The user don’t have to remember your url to visit your site
4. The file can be shared with friends and is OS independent compared to the Mac OS / Safari .webloc counterpart

Generating on file from the server
The code below shows our to set the URL field (which is the only necessary and most important field to set) from the server side, preparing the file and shipping it to the user for download

Code: [Select]
    if (!empty(
$_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443)
$protocol "https://";
$shortText "[InternetShortcut]\nURL={$protocol}$_SERVER['SERVER_NAME'];
// We'll be outputting an internet shortcut file
header('Content-type: application/internet-shortcut');
// It will be called myShortCut.URL
header('Content-Disposition: attachment; filename="myShortCut.URL"');
//output URL file
echo $shortText;

The mime (content-type) could be any of wwwserver/redirection, application/internet-shortcut, application/x-url, message/external-body, text/url, text/x-url but application/internet-shortcut works fine.

Saw a joke about an error occurring while trying to display an error message a while ago. Well, an error has probably never occurred like that, so can't help to think why programming can't just be like that (where no errors occur)

General Discussion / Re: 10 types of people in this world!
« on: May 02, 2013, 07:00:34 PM »
Those that understands binary  :P

If you are a great downloader like me, then you will know what torrent files are. You should also have knowledge of torrent sites like thepiratebay and isohunt; and torrent client like Bittorent and µtorrent.

With the software piracy wars, takedown of illegal torrent sites (thepiratebay is now blocked in Turkey, Finland, and many other countries), witch hunting of torrent seeders and uploaders by the big boys in shining suit with big wigs, you might want to reconsider your frequent visit to those sites and also avoid seeding.

Sweat no more! There is a software that do just these and more, Express – Files! Express – Files is a download manager (you can pause and resume downloads) that helps find and download files from the internet be it torrent-based or whatsoever without seeding nor do you have to download the torrent or magnetic links first.

The publisher says it …get any file in a single click! No setting, no complication, unimaginable speed, with minimum effort (I personally verified that using Tune Up Utilities 2013), and maximum simplicity!

How to get your hand on this wonderful tool
  • Go to express-files.com and download the software.
  • Install
  • Launch the program and type in what you want to download
  • Pick your desired item from the result list
  • A prompt may ask if you want “unsecure download” or “secure download”, choose “unsecure download”. You have to pay for secure download and all it does is just to prevent servers from tracking records of your downloads (who cares if they do?  :P)
  • Choose where to download the item
  • Happy express files downloading

Note you can search and download unlimited files at the same time. The latest edition also come with a wonderful feature called “Express Files” (it is situated between the "search" button and “my downloads” tab). If you don’t know what you are looking for, just click the “Express Files” tab and it display various categories of items like movies, movies of 2012, comedy, thrillers, pc games, music, xbox, ebooks, and lots of others. All you have to do is click on the category of your interest and it shows you items under that category available for download.

Check the attachment for snapshots. Happy Express Files downloading!!!

Games & Lifestyle / Guns 4 Hire
« on: May 02, 2013, 04:56:02 PM »
Have be'n playing this all day long! guns 4 Hire on my windows 8! Great game

General Discussion / 10 types of people in this world!
« on: May 02, 2013, 04:51:15 PM »
There are 10 types of people in this world! Those that understand binary and those that don't!

General Discussion / The problem of being a programmer
« on: May 02, 2013, 02:01:26 PM »
Mum told me
Go to the market and get me a bottle of jam.
If they have eggs get six
I came back with six bottles of jam and she was like "WTF? Why did you buy six bottles of jam"
My responds "They have eggs!"

I am currently working on a forum site which surely has numbers in various places representing different things. Being a slightly tidy guy , I strive to make the numbers look trimmed by formatting them with number_format ("putting the integers into comma"). But taking a step further, I decided to add a mouse-over effect to spell out the numbers (i.e., when you point on "12, 345 user online" the title attribute reads "Twelve Thousand, Three Hundred and Forty Five users online"). What I came up with can convert any positive integer up to (1x1064)-1 to it word equivalent though the number has to be entered as a string if it is greater than PHP_INT_MAX to prevent PHP from exponenting it (i.e. changing 2000 to 2e3).

Continue here on Codeproject

Pages: 1 [2]

Sponsored Ads

Quick Links

About Us
Contact us
Privacy Policy

Contact Info

Nigeria Oil & Gas Forum

Email Address
Contact Form
Business Hours
9.00am - 5.00pm (Mon - Sat)

Would you like to partner with us on this forum?

Then you can contact us here

Nairaland     Oil Prices     UK Gas Forum     Ghana Gas Forum     Russian Oil & Gas Forum     Israel Oil Forum     Agric Forum      freeslots.la

Powered by EzPortal