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

 ALL


  Different ways to pass query parameters in EmberJS

In EmberJS, one could pass query parameters when retrieving resources with store.query() method. But what if there is a requirement that one wants to pass query parameters when calling store.findRecord()? Or there is a requirement that one wants to pass query parameters to a relationship when calling model.get('hasManyAttribute') in a RESTful style? In this post, we will explain how these can be achieved.In the store.query() case, one could easily pass the query parameters by passing a hash to the query method. An example looks like:store.query('someResource', { include: 'someDepend...

9,112 0       RELATIONSHIP QUERY PARAMETERS EMBERJS


  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 am always mess up these ob_xxx() functions, some of them have similar functions and some of them can ...

6,417 0       PHP RELATIONSHIP OUTPUT BUFFER OB


  Do scientists really need a PhD?

Young scientists at a Chinese genomics institute are foregoing conventional postgraduate training for the chance to be part of major scientific initiatives. Is this the way of the future?The approach to extended postgraduate training varies from country to country. The United States and Europe, for example, have long believed that students need to finish a multiyear programme of postgraduate work before they can fully participate in the front rank of research, whether in industry or academia.In Asia, scientific communities instead tend to value directed, practical research. In Japan, for examp...

2,433 0       CAREER RELATIONSHIP PHD SCIENTIST BGI


  Investment Banking in China — What I’ve Learned & Unlearned

Anyone seeking to succeed in investment banking in China should live by one rule alone: it’s not who you know, but how well you know them. In China, more than any other country where I’ve worked, the professional is also the personal. Comradeship, if not friendship, is always a necessary precondition to doing business together. If you haven’t shared a meal – and more importantly, shared a few hundred laughs – you will never share a business deal. Competence, experience, education and reputation all matter, of course. But, they all play supporting roles.The st...

1,986 0       ADVICE BUSINESS CHINA RELATIONSHIP COOPERATION


  What matters in life (and what doesn’t)

I’m probably too young to be writing on this topic but observing countless souls distressed by daily life made me think hard on what is that really matters in life. Undoubtedly, there are happy and sad phases and that’s part-and-parcel of life. But what I’m really bothered about is general, daily bitching about how miserable one’s life has become. You find people complaining about work, commute, relationships, other people’s attitudes & personalities, neighbor’s barking dog, lack of parking space, and, heck, some people also feel stressed...

2,119 0       EXPERIENCE RELATIONSHIP LIFE MATATER MATERIAL POSSESSION EGO


  DESIGNERS NEED ENGINEERS

Like so many of you, I’ve been indulging in the amateur analyses all over the web about why Steve Jobs, p.b.o.h., was so great. The recurring message is pithily summarized by Mathew Ingram: “Technology is the least important thing about Apple products”.Bullshit. The reason why Apple manages to build such magnificent products is because design and usability drive the engineering, yet the technology behind their products is by no means trivial. Apple cares a lot about engineering, more than Dell and Samsung and RIM.It takes one designer to decide that ...

2,659 0       ENGINEER DESIGNER RELATIONSHIP