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

SEARCH KEYWORD -- Show



  Start to work with rollup.js to pack JS files

rollup.js is a module bundler for JavaScript. It compiles small piece of JavaScript modules spreading in different files into a single larger standardized ES code file. This post will show some entry level usage for this library. Introduction Normally a bundler tool would compile a few small JavaScript files into a single JavaScript so that web browser can read, parse and render it properly. A bundler tool may be needed because of a few reasons: Some early stage browsers don't understand module...

   ROLLUP.JS,COMMONJS,ES MODULE,BUNDLE,WEBPACK     2022-06-12 00:00:14

  The roots of Lisp

(I wrote this article to help myself understand exactly what McCarthy discovered. You don't need to know this stuff to program in Lisp, but it should be helpful to anyone who wants to understand the essence of Lisp-- both in the sense of its origins and its semantic core. The fact that it has such a core is one of Lisp's distinguishing features, and the reason why, unlike other languages, Lisp has dialects.)In 1960, John McCarthy published a remarkable paper in which he did for programming somet...

   Lips,Root,McCarthy,AI,Artificial Intelligence     2011-10-25 10:35:13

  Steve Jobs attacks Android just for show?

Steve Jobs has a famous statement which says Android is a stolen product. What does Google CEO Larry Page think about this statement? Recently, Page said in an interview with Bloomberg Businessweek that Apple hates Android just for show. He believes people should not look only to the competitions, but should focus on the potential cooperation opportunities to make the world better.The following is overview of the interview:Q: When you took over as CEO, one of your goals was to take the cle...

   Steve Jobs,Android,Larry Page     2012-04-08 08:30:33

  Google's new pirate penalty doesn't affect YouTube

Google has just announced a new policy: sites with high numbers of removal notices may appear lower in our results. However, this new policy may not affect the company's video site YouTube. In fact, they themselves clearly know that there are copyright protected contents on YouTube.According to a report published by Search Engine Land, through the "Removing Content From Google" page, users can remove content from the Google services with valid reasons, the services including Google Play, Google+...

   Google,Privacy,YouTube,Rank     2012-08-12 12:35:29

  jsonSerialize() in extended class

Since PHP 5.4.0, there is a convenient interface JsonSerializable which can be used to indicate that a PHP object can be serialized to JSON object. It has only one method which should be implemented by any class which implements this interface. The method is named jsonSerialize(). It's really easy to serialize an object to JSON object. Here is one example: <?php class ArrayValue implements JsonSerializable { public function __construct(array $array) { $this->array = $array; ...

   JSON,jsonSerialize,Inheritance,extends     2014-07-26 05:54:00

  How to enable developer mode on Huawei

As a developer, there might be some need to fake locations when developing and testing mobile apps for different countries. Lots of the times some fake GPS apps will be used and they will ask to enable mock location access on the device before allowing you to fake GPS. To achieve this, we first need to have developer mode enabled. In this post, we will show how the developer mode can be enabled and disabled on Huawei devices. Go to Settings, find About phone and open it. You should be able to se...

   ANDROID,HUAWEI,DEVELOPER MODE,DEVELOPER OPTIONS     2020-08-15 21:22:29

  Resolve stylesheet_link_tag fails to work in Ruby on Rails

When developing Ruby On Rails application, developers sometimes will see an unexpected behavior where the application cannot be loaded due to "TypeError: Object doesn't support this property or method" when invoking stylesheet_link_tag. The symptom looks like  And the Rails log will show something similar to below The error occurs because there is some problem finding the correct assets which are located in app/assets. To resolve the issue, you can following below steps. Add gem 'coffee-...

   RUBY ON RAILS,STYLESHEET_LINK_TAG,JAVASCRIPT_INCLUDE_TAG,TYPEERROR     2016-10-14 03:59:11

  Landing page optimization : Less is more

There is a question on Quora : Why doesn't Quora show interesting questions/answers on their landing page? Why is it this? not this? Quora's product manage gives his answer to this question, it's agreed by many users in this community. Here is his answer: The logged out homepage is pretty sparse now mostly because it hasn't been given much treatment since the initial product launch. But we have plans on redesigning it and testing different variations (some with less info on the page, some with...

   Landing page,Optimization,Principle     2012-11-03 01:50:07

  Amazon unveils 8.9" Kindle Fire HD

Amazon today unveiled 7 products of Kindle family, including the $69 new Kindle; Kindle Paperwhite WiFi/3G, priced at $119 / $179; 7-inch Kindle Fire regular edition/HD version, $159/$ 199; 8.9inch Kindle Fire HD with WiFi/4G Edition at $299 /$499. However, the Amazon phone did not show up. The 8.9-inch Kindle Fire HD is today's highlight, because it looks real similar to iPad. Kindle Fire HD has the following features: 1920 x 1200 resolution, 254PPI Texas Instruments OMAP 4470 proce...

   Amazon,Kindle Fire HD,tablet     2012-09-06 19:12:05

  mysql – connection example

Mysql is a database, and to gain access to the data within C++ you will need to be able to “talk” to the database via queries (just like on the mysql command line interface e.g. select * from tablename), the connection process is very similar to the command line interface you will need to supply connection details as in hostname (localhost normally), username, password, database to use and also there are other details that you can pass e.g port number more information can be gained f...

   C++,Database,MySQL,Connection,Example     2011-10-29 00:42:10