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

SEARCH KEYWORD -- Check-in



  Facebook hires all Pieceable employees

Facebook recently hired all employees from Pieceable, a web service provider which lets iOS app publishers deliver their apps to the browser and preview their apps in the browser. Facebook claimed that they didn't acquire Pieceable, they just hired their employees. Now Pieceable service is shut down. Currently there are around 800000 app demos on Pieceable, developers can try and show off their iPhone or iPad applications by putting their apps on Pieceable's web service. What Facebook did disapp...

   Facebook,Pieceable,Hire,Mobile     2012-06-12 05:13:56

  Exit main thread and keep other threads running in C

In C programming, if using return in main function, the whole process will terminate. To only let main thread gone, and keep other threads live, you can use thrd_exit in main function. Check following code: #include #include #include int print_thread(void *s) { thrd_detach(thrd_current()); for (size_t i = 0; i < 5; i++) { sleep(1); printf("i=%zu\n", i); } thrd_exit(0); } int main(void) { ...

   C LANGUAGE,MULITHREAD,MAIN THREAD     2020-08-14 21:20:04

  WeChat 5.0 is coming soon

WeChat 5.01 now is available on App Store, but on Android, you still need to wait for some more time. If you want to experiment with new features of WeChat 5.0 now and you are using Android, you can request a beta version of WeChat 5.0 through here .Let's check out the new features first. WeChat 5.0 adopts the popular flat design, it focus on game platform. Main features are: You can play games with friends in game center Add bank account to pay with WeChat New bookmark function, you can bookm...

   WeChat 5.0,New fetuares     2013-08-04 22:42:45

  Remove duplicated elements in JavaScript array

During interviews, one frequent question asked would be something like how to remove duplicated elements in a JavaScript array and how many different ways you can think of. The interviewee would also be asked to write the code down. In real applications, normally front end would not need to handle this case since normally it would be done by backend, but still it's necessary for front end developers to know different ways of doing this. This post will share some of the common ways to remove dupl...

   JAVASCRIPT,ARRAY,DUPLICATED ELEMENT     2018-09-21 22:32:10

  A simple example of git bisect command

git bisect is a very powerful command for finding out which commit is a bad commit when bug occurs.  The rationale behind this command is that it pin locates the bad commit by divide and conquer. It divides the commit history into two equal parts, then determines whether the bad commit is at the first half or at the other half. This process will continue until the bad commit is located. Here is a really good example created by bradleyboy, this is a simple git repository which demonstr...

   GITHUB,GIT,GIT BISECT     2019-07-12 10:31:51

  Output control functions in PHP

The Output Control functions in PHP allow you to control when output is sent from the script. This can be useful in several different situations, especially if you need to send headers to the browser after your script has began outputting data. The Output Control functions do not affect headers sent using header() or setcookie(), only functions such as echo and data between blocks of PHP code. These output control functions include ob_start(0, ob_clean(),ob_get_contents(), etc. To be honest, I a...

   PHP,output buffer,relationship,ob     2012-06-15 10:11:58

  How to secure an Ubuntu Apache web server

Securing server software is not a straightforward task. Not all of our operating environments are the same, leading to a variety of potential security vulnerabilities. However, using a few basic configuration and security options, you can stay a little ahead of where you want to be. 1. Fail2ban Fail2ban is a Python-based intrusion prevention software that detects and blocks malicious IP addresses from multiple unsuccessful attempts at software logins. In other words, if someone is attempt...

   Unix server security,Log,.htaccess,Cache     2011-12-27 09:25:32

  Dos and Don’ts in Test automation in your project

Test automation is a vital step for any digital solution. With time, its architecture gets more complex, new features are added, and it acquires more users. Thus, your QA team needs to spend more time and effort to ensure the application usability and smooth user experience with no bugs and defects. So here are the things you need to consider before the start of the automation initiative: Define Success Metrics It’s hard to measure success until you haven’t set up clear goals from t...

   TESTING,TEST AUTOMATION     2021-01-12 05:57:45

  Looking for a Job? Learn Ruby, Python and be a Team Player!

What makes a great software engineer and perhaps more importantly, what skills will most likely land you a sweet job?  Mixtent and KISSMetrics analyzed LinkedIn data and surveyed users on perceptions of candidate skill levels based on their profiles and purported skill sets. The key findings? Python engineers are perceived as better engineersEngineers with teamwork, dedication and a solid work ethic are perceived as better engineers.  Creativity and communication skills are...

   Job seeking,Skills,Python,Ruby,Teamwork     2011-12-06 09:03:29

  Best practices of front end optimization

1. Use DocumentFragment or innerHTML to replace complex elements insertion DOM operation on browser is expensive. Although browser performance is improved much, multiple DOM elements insertion is still expensive and will affect the page load speed. Assume we have an ul element on our page, we now want to retrieve a JSON list using AJAX and then update the ul using JavaScript. Usually we may write it as : var list = document.querySelector('ul'); ajaxResult.items.forEach(function(item) { // ...

   JavaScript,Front end,Optimization,Tips     2013-07-06 11:26:27