Millionaire City Statistics

Millionaire City Statistics  (Houses, Commerce, Decorations and Wonders)

Millionaire City on Facebook is the only game that I play on the regular. In Millionaire City you have to strategically place your buildings including houses, commerce, decoration and wonders to maximize the return on your investment of land, time and money. If you play the game, you know that it can be hard finding certain statistics, let alone comparing and contrasting buildings statistics.

For those of you looking for Millionaire City statistics, here is a Excel file, followed by screenshots of all MC buildings statistics:

 

Download: millionaire_city_statistics.xls (There are multiple sheets in the spreadsheet)

Changing “upload_max_filesize” in php.ini on GoDaddy Shared Hosting

Changing upload_max_filesize on GoDaddy

Are you running your website on a GoDaddy shared hosting plan? Are trying to upload a file using a PHP script and you can’t get it to upload files larger than 8 MB? Do you want to change the maximum allowed file size for uploads? If this is the case, I have a solution for you. Place the following code in your php.ini file in the script directory (If there is no php.ini file, create one.)

 

rg_emulation = off
allow_url_fopen = on
memory_limit = 25000M
post_max_size = 9000M
file_uploads = On
max_execution_time = 3000000000
max_input_time = 30000000000
upload_max_filesize = 9000M

 

Please note that it may take a few hours for the changes to take affect.

Let me know if these settings worked for you.

Get File MD5 Hash Using VB6

To get a file’s MD5 Hash using Visual Basic 6, download and add the following clsMD5 class to your VB project.

Download: clsMD5.zip

 

Add a command button (Command1), a text box (Text1) and use the following code:

Private Function GetFileMD5(ByVal FileName As String) As String
    Dim MD5 As New clsMD5, FF As Integer, Buff() As Byte
    Const BuffSize As Long = 2 ^ 16 ' (64 KBytes)

'    On Error GoTo ErrExit
    FF = FreeFile
    Open FileName For Binary Access Read As FF
        MD5.MD5Init

        Do Until Loc(FF) >= LOF(FF)
            If Loc(FF) + BuffSize > LOF(FF) Then
                ReDim Buff(LOF(FF) - Loc(FF) - 1)
            Else
                ReDim Buff(BuffSize - 1)
            End If

            Get FF, , Buff
            MD5.MD5Update UBound(Buff) + 1, Buff
        Loop

        MD5.MD5Final
        GetFileMD5 = MD5.GetValues
    Close FF

    Exit Function
ErrExit:
    Err.Clear
    GetFileMD5 = ""
End Function

Private Sub Command1_Click()
Text1.Text = GetFileMD5("c:\example.exe")
End Sub

Remove Link Underlines Using CSS

To remove underlining of hyperlinks you can use the following style code in the link’s A tag:

STYLE="text-decoration: none"

For example:

If you use

This is a link

you’ll get a link that looks like this ► This is a link

But if you use

This is a link

you’ll get a link that looks like this ► This is a link (No underlining)

Mr. Speaker: Debating Business Issues in Less than 200 Words

The second of three debates that I wrote for a business class a few years ago. The purpose of the assignment was to debate a business issue in less 200 words. I hope some Business Administration students will find this helpful.

Debate 2: Should the House Stabilize Gas Prices

Mr. Speaker, we are here today to debate the resolution that the House should stabilize gas prices. As side government, we support this resolution and believe strongly that it must stand.

The laws of supply and demand still determine the price of oil on the world market, and the laws of the free market prevail. The government is powerless to regulate them.

But in much the same way the government harmonizes taxes for initiatives in the public interest, it should regulate – or stabilize – the prices consumers pay for refined petroleum products: gasoline, diesel fuel, motor oil, home heating oil, and the full array of petro-chemicals sold for industrial and manufacturing purposes. Specifically, the government should tie consumer prices to the wholesale price of oil in much the same way home mortgage rates are tied to banks’ prime rate; and it should cap oil companies’ profits at a fixed percentage of the difference between the wholesale price of oil and the retail prices of petroleum products.

Government stabilization of petroleum prices has at least three objectives: first, keeping essential fuels affordable for Canadian consumers; second, eliminating the risk of oil companies’ gouging consumers at the pumps; and, third, gradually weaning the nation of its dependence on imported fossil fuels. Stabilizing consumer prices for petroleum products, the government simultaneously keeps the country moving and generates revenue for sustainable energy projects.

Side government, Mr. Speaker, would like to thank the House for its time and, for the reasons stated, reiterate that we believe strongly this resolution must stand.

Thank you, Mr. Speaker.

References:

Ajuzie, I. S. , & Ike, R. M. (2009). Oil Speculation: The Impact On Prices, Inflation, Interest Rates And The Economy. Journal of Business & Economics Research, 7(10). Retrieved from http://proxy.library.brocku.ca/login?url=/docview/194914223

Mehra, Y. P., & Petersen, J. D. (2005). Oil Prices and Consumer Spending. Economic Quarterly – Federal Reserve Bank of Richmond, 91(3). Retrieved from http://proxy.library.brocku.ca/login?url=/docview/204877310

Risk, H. (2009). Commodity crackdown. Risk, 22(9). Retrieved from http://proxy.library.brocku.ca/login?url=/docview/201339289

Sonique Player

I have to admit it, I fell in love with Sonique Media Player when I first saw it back in 1999. It was love at first sight. Back in 1999 you rarely saw a beautifully designed application with graphical effects, smooth navigation, a bundle of features all put in an application that run on all versions of windows with no problems. Some of the feaures I love about Sonique Player:

  • Beautifully designed interface that has three modes small, medium and large.
  • Animated buttons and menus.
  • Playlist creator and manager.
  • Supports many audio formats such as MP3, MP2, Ogg Vorbis, WAV, MOD, XM, IT, S3M, Audio CD and Windows Media Audio.
  • Keyboard play/pause and volume buttons work on it perfectly.
  • Ability to install new skins and visual effects.
  • A powerful equalizer. Pitch, balance, and amplification adjustment controls.

Download: sonique-1.96.exe

Clear Browser Cache Using HTML or PHP

To clear the browser cached page or to force the browser to re-download the content of a page, you can place the following HTML code in the header tags (<head>) of the page. This code will ask the broswer to ignore any saved copies of the page, and to re-download page content.

HTML Code:





 

If you prefer working with PHP, you can do the exact same using this PHP code:

PHP Code:

header ("Expires: ".gmdate("D, d M Y H:i:s", time())." GMT");  
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");  
header ("Cache-Control: no-cache, must-revalidate");  
header ("Pragma: no-cache");

Open PHP as a Text File Using .htacess

Place this code in the .htaccess file to disable processing of PHP files in a folder. This will remove the PHP handlers in Apache forcing the browser to load the PHP file as a text file. You can use this to secure folders where upload is allowed to prevent executing uploaded PHP files.

RemoveHandler .php .phtml .php3
RemoveType .php .phtml .php3