HNHacker News
TopNewBestAskShowJobs

CaiGengYang

20 karma · joined June 17, 2014

submissionscomments
CaiGengYang··on [dead]
What's up ?
CaiGengYang··on The Python Paradox
Ok , so I created a folder called "Weiqi" in my home directory. (named after the game I am best at!)

Then I typed the command $ cd Weiqi in the "Terminal"

CaiGengYangs-MacBook-Pro:~ CaiGengYang$ cd Weiqi --- input

and got this output :

CaiGengYangs-MacBook-Pro:Weiqi CaiGengYang$ --- output

Then I ran the following command in the Terminal : $ django-admin startproject mysite.

This created a mysite folder which appeared inside the original Weiqi folder in my home directory.

When I clicked on the mysite folder, there is a manage.py file and another mysite folder inside the original mysite folder.

When I click on the mysite folder, there are 4 files in it : __init__.py , settings.py , urls.py and wsgi.py.

The next chapter of the tutorial says this :

"Where should this code live?

If your background is in plain old PHP (with no use of modern frameworks), you’re probably used to putting code under the Web server’s document root (in a place such as /var/www). With Django, you don’t do that. It’s not a good idea to put any of this Python code within your Web server’s document root, because it risks the possibility that people may be able to view your code over the Web. That’s not good for security.

Put your code in some directory outside of the document root, such as /home/mycode."

I am a little confused about the last paragraph : What exactly is a "directory outside of the document root, such as /home/mycode." and how do you "Put your code in this directory" ?

CaiGengYang··on A Photo/Video/Sharing App in Python
Just started learning how to program and only gone through the Python course on CodeAcademy.

Is there a good video tutorial online that shows step-by-step how to create a basic webpage in Python ?

CaiGengYang··on Personal Site
http://www.caigengyang.com
CaiGengYang··on What are you working on?
Artificial Intelligence : http://caigengyang.com.caigengyang.com
CaiGengYang··on Personal Site
http://caigengyang.com.caigengyang.com
CaiGengYang··on Personal Site
My offer to buy my own domain name was just rejected and my money refunded. This is weird, I sent a reply email asking why was my offer canceled and waiting for reply ...
CaiGengYang··on Personal Site
What error message do you get when you click on it ?

As for the design of the website , I wasn't responsible for that ... I wouldn't say the design is fantastic, but it's functional, it serves its purpose for it's users ...

CaiGengYang··on Personal Site
Searched for my name on Namecheap and found that it was available. Then I made a payment of $29.95 USD to DomainAgents Platform Inc and made an offer of $199 USD to buy the domain name CaiGengyang.com. Now I am just waiting for the owner to either accept,counter or decline my offer ...

https://mail.google.com/mail/u/0/#inbox/14fa6d1d9c5dc28d --- Payment receipt for $29.95 USD

https://mail.google.com/mail/u/0/#inbox/14fa6d727d33c815 --- Offer to buy CaiGengyang.com for $199 USD

CaiGengYang··on Personal Site
Which is the best value-for-money site to register a domain name https://www.google.com.sg/#q=domain+name ? Any recommendations?
CaiGengYang··on How to Start Hacking?
Input : print "Weiqi And Artificial Intelligence"

Output :

/System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 /Users/CaiGengYang/PycharmProjects/helloworld/hello.py Weiqi And Artificial Intelligence

Process finished with exit code 0

CaiGengYang··on How to Start Hacking?
Input : print "Weiqi And Artificial Intelligence"

Output : /System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 /Users/CaiGengYang/PycharmProjects/helloworld/hello.py Weiqi And Artificial Intelligence

Process finished with exit code 0

CaiGengYang··on How to Start Hacking?
I like playing Weiqi and am a fairly strong player when I concentrate ...

I wanna make a Go playing AI Program ...

CaiGengYang··on Why Startups Condense in America
The part about firing people sounds really true to me ... Due to the culture of filial piety, its incredibly hard to get anyone fired in Singapore except for a few hedge fund managers.

Most of the wealthy people here get rich through family monopolies in industries like real estate and shipping where basically the entire family monopolises a certain industry and it's incredibly difficult (if possible) to even get somebody fired.

CaiGengYang··on Denied a Visa
I studied at Northwestern University for several years but lost interest towards the end and dropped out of school 3 times. The last time I reapplied back about 3 years ago I got denied a visa and was told to only reapply back when my personal circumstances have improved a lot. Once i got denied a visa, I am no longer eligible to travel there under the visa waiver program if remember correctly. So unless I build some really great company that USA really needs or become really really rich and invest tons of money in America to become US citizen through the investor immigrant program , I am fucked !!
CaiGengYang··on Denied a Visa
http://www.paulgraham.com/america.html
CaiGengYang··on Denied a Visa
Plus in singapore, there is compulsory conscription ... and I don't know how to program and no friends in this field ...
CaiGengYang··on Vietnam's startup queen
Cool ... how is this different as a social networking working compared to FaceBook ?
CaiGengYang··on Nobel winner Stiglitz: “American Dream is a myth”
Why did I get negative 4 points for making this comment ?
CaiGengYang··on Nobel winner Stiglitz: “American Dream is a myth”
I'm genuinely surprised that USA has such a high incarceration rate, and even so much higher than China which I consider still a police state.

But in terms of science, technology and programming , civil liberties ... can any other country compete with America ? Google, Apple, Microsoft, FaceBook, Yahoo ... all the most innovative companies are made in America ... . You can express political dissent in America without getting jailed (as far as I know). You can't do that in China or Singapore

CaiGengYang··on Nobel winner Stiglitz: “American Dream is a myth”
Hmm ... I disagree. America still seems to be the place with the greatest civil liberties, technological and scientific advancements
CaiGengYang··on Vietnam's startup queen
Is this the Tappy app ? --- http://tappy.co

So from what I see , what it does is help the user make games from themes.

I signed up for access, still waiting for confirmation

Looks like a pretty cool concept ... a lot of users like to play mobile games while waiting for their friends or travelling ... I mean, its not on the level of Starcraft or Diablo , but its a pretty neat concept ...

CaiGengYang··on Vietnam's startup queen
Why do you say so ?

7 figure sum acquisition by a large company like Google, Apple or Microsoft doesn't seem that surprising to me ...

CaiGengYang··on Show HN: Algebra.js – Build, display, and solve algebraic equations
Hi does anyone know how to download Algebra.js ?

I clicked the "Download .min.js" tab on the Algebra.js.org page but was given this error message :

http://algebra.js.org/javascripts/algebra.min.js

CaiGengYang··on The Anatomy of Determination
I got this idea from the YCombinator RFS list :

http://old.ycombinator.com/ideas.html

There's also a new updated list : http://www.ycombinator.com/rfs/

I am just fishing for ideas and suggestions because I want to get to work on one of these ideas by building a prototype and getting users to test it.

Just wanted to post these ideas here to get some feedback and discussion so I can settle down on 1 idea to work on ...

I suffer from chronic indecisiveness and find it hard to decide alone, so I am posting these ideas here to get some feedback and discussion on what might be the best one to work on that can potentially get many users to love it ...

CaiGengYang··on The Anatomy of Determination
Exactly, high intelligence isn't neccessarily a crucial ingredient in starting a successful startup. As Paul Graham mentioned : "There are plenty of people as smart as Bill Gates who achieve nothing."

He also mentioned that : "Indeed, if you want to create the most wealth, the way to do it is to focus more on their needs than your interests, and make up the difference with determination."

After reading this particular paragraph, I scratched my head to think of something I could build that users would love and came upon this idea : I realised that alot of people like to share pictures,videos and images with their friends and family.

Thus I want to create a well-designed image/video/picture sharing app that users would love. How do you suggest I go about doing this and what technologies would be best to create such a site ?

Thanks alot !

GengYang

CaiGengYang··on Deleting your browser history could land you in prison
This is really weird! So lets say if a person once made some stupid remarks on a blog or somewhere else, and wants to erase his or her internet presence so that future employers can't see it, it is a crime too ?
CaiGengYang··on Ask HN: I have a startup idea, I don't how to move forward?
Most important thing is to build something that a core group of users love , once you build a product that a small group of dedicated users love, it will be much easier to get funding from VC's or angel investors ..
CaiGengYang··on On the History and Future of Cosmic Planet Formation
This is a related article on alien life by Nasa

http://www.space.com/29041-alien-life-evidence-by-2025-nasa....

I would love to be able to help build cheap spaceships that can travel to Europa , drill into the ocean underneath it and fish for life in there. There could very well be life in there, and to find it would be an amazing hack ...

CaiGengYang··on The largest n-tuple in Lisp
Yup, It is just a function that multiplies a value by a fixed number.

I just named it n-tuple because it rhymes : quadruple, centuple, but perhaps it was the wrong way to name it.

I was just surprised to realise that there is no limit to the value of n for this type of function that multiplies a value by a fixed number, so I put this on Hackernews.

It was a surprising result, at least to me ...

← PreviousPage 2 of 4Next →