Today's Question:  What does your personal desk look like?        GIVE A SHOUT

SEARCH KEYWORD -- Transform



  File upload in PHP

File is a special kind of form data, when being uploaded to the server through HTTP POST request, PHP will create a $_FILES global array, the relevant file information will be stored in this global array. We will illustrate file upload with some code snippets using PHP and look into the internal work mechanism. Lastly will talk about file upload security. File upload In order for users to upload files in client side, we have to provide a form on the user interface. Since the uploaded file is a s...

   File upload,PHP     2012-11-30 22:01:28

  How small should a function be?

"The well-designed functions are often relatively small, large function design is often a mess or there is a lot of room for optimization."Maybe you think there is no need to discuss the size of functions, because the nature of the function design is cohesive, its size is only its manifestations. But it is necessary to discuss about the size of function because the statement above .First let's understand the concept of minimum code processing unit : a basic operation (assignment, comparison, etc...

   Function size,Optimization     2012-12-18 13:58:07

  My favorite quotes from "The design and evolution of C++"

"The design and evolution of C++" is a book written by the inventor of C++  Bjarne stroustrup. In this book, Bjarne stroustrup presents the definitive insider's guide to the design and development of the C++ programming language. Without ommitting critical details or getting bogged down in technicalities, Stroustrup presents his unique insights into the decisions that shaped C++. In this book, some statements are very impressive. They are concise but convey much information. Here I summariz...

   C++,statements,type system,compatibility     2012-07-16 10:58:10

  Using an Image Submit Button within an HTML Web Page Form

If you're using an HTML form on your web site and would like to use an image submit button instead of the boring standard submit button, this HTML code is for you.In order for your form's input box and your image submit button to line up properly, you will need to place it within an HTML table. In addition, unless your image has a transparent background, you will need to set the table background color to the same color as the image background so that it will seamlessly b...

   Submit button,Image,Html     2011-10-02 12:17:01

  Fun With Numbers

Yesterday the NPD Group issued a report on U.S. tablet sales in the U.S., from January through October of 2011. Worth noting up front is that the numbers in this report are about sales — actual tablets sold to actual customers — not “shipments” from the factory to stores and warehouses.Much-reported on is that second-place went to HP, after its fire sale on the discontinued TouchPad. What hasn’t gotten much commentary is the extraordinarily contort...

   Tablet,iPad,TouchPad,HP,Market share,2011     2011-11-24 09:12:58

  Using Fabric to deploy web app

Many people may use FTP and rsync to synchronize codes to server, this way is fine but it may be troublesome when you need to deploy many times a day, actually there is a simple way if you can spend time on finding the fast way. We introduce Fabric today for deploying web app to remote server. Fabric is a deployment tool written with Python, the biggest feature if it is you no need to login to remote server, you can execute remote commands locally. Here is s simple deployment script written with...

   Fabric, Web deployment,SSH,Python     2012-12-08 03:16:00

  Will IBM fall?

IBM has over 100 year's history and it faced many tough challenges along the way but every time it came back successfully. This time its revenue dropped 6 quarters consecutively, with the popularity of cloud computing and big data, IBM seems lag behind and is heavily hit by the storm. Its current technologies are only suitable for serving traditional companies 15 years ago but not companies now. Can IBM go though this challenge and come back again? It seems IBM doesn't want to be left out. Th...

   IBM,transformation,Watson     2014-01-27 08:01:41

  E-commerce "Whampoa Military Academy" in Guangdong

There are five projects being initiated this year in Guangdong Province to help the young graduates to find jobs or become entrepreneurs, such as providing more internship opportunities to university graduates and setting up total 200 million amount loans to help starting their own business. Among all the announced plans, the “Youth E-Business Elite Plan” attracts the most attention. This plan relies on Taobao University of Guangdong Youth College to train various e-commerce talents...

   e-commerce,Guangdong     2013-04-01 06:49:32

  HTML above flash (transparency + z-index)

We have faced this problem many of the times. When we want to display some message on top of all layers on a page or use some feature like jQuery light boxes. Normally the flash file continues to shine through the page. No matter what you do with layering the dom elements using z-index.See the layering flash content problem definition here.Before this, people used to dodge this issue with some fixes like hiding the flash area completely and then showing a static image of...

   HTML,Flash,Above,z-index,wmode,transpare     2011-05-01 15:46:34

  Python Performance Tips, Part 1

To read the Zen of Python, type import this in your Python interpreter. A sharp reader new to Python will notice the word “interpreter”, and realize that Python is another scripting language. “It must be slow!” No question about it: Python program does not run as fast or efficiently as compiled languages. Even Python advocates will tell you performance is the area that Python is not good for. However, YouTube has proven Python is capable of serving 40 million videos...

   Python,Performance,Efficiency,Tips     2012-02-14 10:50:22