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

SEARCH KEYWORD -- Strange



  strange thing in PHP session variable and local variable

A few minutes ago, I noticed one strange thing when I did my PHP web application development.The situation is described below:I want to display a user's profile using a query parameter user=user_id as the parameter. And also the session variable when user logs in  is $_SESSION["user"].So before displaying the user's profile, I need to either get the query string parameter user and create a local variable called $user and assign value to it as $user=$_REQUEST["user"].Here comes the strange t...

   PHP,session,variable name,change automat     2011-06-13 12:23:59

  A strange behavior of printing struct with nested struct in GoLang

Normally when trying to print a struct , we would use %v to show all data of the struct. It will print the default format for each field in the struct. %v the value in a default format when printing structs, the plus flag (%+v) adds field names But recently we observed a strange behavior when printing a struct with nested struct which has a String() string implemented, the %v format prints an 'unexpected' output per our understanding.   Let's see the example snippet first. pa...

   PROGRAMMING,GOLANG     2018-10-29 09:59:49

  Why 102 years for Alibaba

In many occasions, Alibaba Group Founder Jack Ma expresses the idea that he wanted Alibaba to be live for 102 years(a strange number). But why 102 years, but not 100 years or some other years?  In an interview conducted by Stanford University, the interviewer, Yahoo Founder Jerry Yang, asked this question why Jack Ma wanted Alibaba to live 102 years. Jack Ma gave his answer to this question. "In China, everybody wanted to make a company last over 100 years. This becomes a slogan, nobody ta...

   JACK MA,ALIBABA,STANFORD UNIVERSITY,JERRY YANG     2016-02-24 09:46:47

  A Programming Idiom You've Never Heard Of

Here are some sequences of events: Take the rake out of the shed, use it to pile up the leaves in the backyard, then put the rake back in the shed. Fly to Seattle, see the sights, then fly home. Put the key in the door, open it, then take the key out of the door. Wake-up your phone, check the time, then put it back to sleep. See the pattern? You do something, then do something else, then you undo the first thing. Or more accurately, the last step is the inverse of the first. Once you're aware ...

   Programming,Idiom,Strange     2012-01-04 08:12:25

  What's wrong with us in Mobile Era?

Every day when I surf the Internet, I find much news about new smartphones and Android, iOS apps. Also I can find many people use iPhones and other smartphones with Android OS. Apparently we are now in Mobile era. People can find tons of news that says how Mobile has changed our life, made our life simpler and how easy we can know the world with mobile technology. Yes, it's true, now we only need to press a button, we can know what happens in USA which is thousands kilometres away from us. We ca...

   Mobile,Cold,Stay away,Smartphone     2012-01-07 12:10:35

  Get Bluetooth back on my ASUS Zenbook UX31A

A strange thing occurred to me a few days ago after I installed some routine Windows updates on my ASUS Zenbook UX31A, my Bluetooth was gone and I could not have my Bluetooth speaker connected to my PC and listen  my favorite music. It's just like a ghost, everything disappears all of a sudden. Everything was tried to find where my Bluetooth went but no luck. Below is what my device manager shows: No Bluetooth is found, usually if there is some issue with the Bluetooth driver, the device m...

   Bluetooth,Windows 8.1,ASUS Zenbook, Bluetooth driver     2014-12-11 09:17:11

  Substitute of Right Click Computer to Open Manage

I believe some of us may encounter some strange problems when we expect something normal to happen when we operate on our computer. On Windows 7, we may sometimes want to manage our service or applications by opening service manager.But somehow we may find that we cannot open it by clicking on Start->Right click on Computer->Manage.It may prompt some error message to tell us we cannot open the service manager. Then what to do? Here is a way to open it,goto Start->Run,then type "com...

   Computer Management,Win 7,compmgmt.msc,S     2011-03-31 01:09:44

  JavaScript JVM runs Java

The world of software is made slightly crazy because of the huge flexibility within any computer language. Once you have absorbed the idea of a compiler written in the language it compiles what else is there left to gawp at? But... a Java Virtual Machine JVM written in JavaScript seems like another level of insanity.In fact it is a quite reasonable idea which is only made mad by the usual positions that Java, the top dog, and JavaScript the underling, usually occupy. Java is compiled not to mach...

   JavaScript,JVM,BicaVM,Cross platform,JavaScript written JVM     2011-11-22 02:51:38

  Ask Bill Gates Anything: Being a Billionaire is Strange, Microsoft Co-Founder Tells Students

How’s the life of a billionaire? “Quite strange,” says Bill Gates, who fielded questions from University of Washington students on Thursday evening as part of a lecture on the future of computing.Gates’ talk, at a packed hall in the UW’s computer science building, focused on some areas where he thinks cheap, powerful computing will have a major impact on society, including education, disease, and robotics.Gates recalled spending time on the UW camp...

   Bill Gate,Billionare,Rich,Advice,UW,Computing     2011-10-28 10:38:34

  The magic of go:linkname

When writing Go program, there is frequent need on using time.Sleep() function to pause the logic for some time. And if jumping to the definition of this function, can see below definition: // Sleep pauses the current goroutine for at least the duration d. // A negative or zero duration causes Sleep to return immediately. func Sleep(d Duration) I's strange that there is no function body defined here. What happened? The actual definition of the function body is residing at runtime/time.go&nb...

   TRICKS,GO:LINKNAME,GOLANG     2022-04-10 08:39:00