Search found 35 matches

by ycc1988
Fri Feb 01, 2013 1:37 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1168: "Tar"
Replies: 158
Views: 44502

Re: 1168: Tar

Is -xkcd a valid group of flags for any semi-well-known *n*x command?
by ycc1988
Tue Sep 11, 2012 10:12 am UTC
Forum: What If?
Topic: What-If 0011: "Droppings"
Replies: 68
Views: 31143

Re: What-If 0011: Droppings

I am now imagining a long, thin strand of bird poop trailing out of everyone's cars. Congratulations, Randall.
by ycc1988
Sat Aug 25, 2012 4:16 pm UTC
Forum: Religious Wars
Topic: Not Equals
Replies: 91
Views: 70990

Re: Not Equals

Let's write all our algorithms in LaTeX and use \gets for assignment. Making the answer to this thread's original question \neq.
by ycc1988
Thu Aug 23, 2012 6:37 pm UTC
Forum: Religious Wars
Topic: Not Equals
Replies: 91
Views: 70990

Re: Not Equals

I'd rather it be let a <- 3 rather than let a = 3 so that all assignment uses the same <- symbol. I would love for ← to be on the keyboard, but unfortunately it isn't. In response to Роберт, I guess since if (x <- 3) makes no sense, there's no real ambiguity in that last case you mentioned. But I ca...
by ycc1988
Thu Aug 23, 2012 7:17 am UTC
Forum: Religious Wars
Topic: Not Equals
Replies: 91
Views: 70990

Re: Not Equals

int x <- 2; if (x = 3) puts("WTF??"); if (x != 3) puts("OK"); if (x <- 3) puts("Why would anyone do this?"); The improbability of typing that last line will eliminate many programming bugs, I presume, as compared to the current C syntax: int x = 2; if (x == 3) puts(&qu...
by ycc1988
Tue Aug 07, 2012 2:32 pm UTC
Forum: Religious Wars
Topic: Not Equals
Replies: 91
Views: 70990

Re: Not Equals

/= is "compound division and assignment" in quite a few languages. I wouldn't want to lose that to the "not equals" operator. <> is probably the easiest to type, but I'm uncomfortable with it because of the use as < and > as brackets in some languages. I'm pretty sure all languag...
by ycc1988
Mon Aug 06, 2012 8:40 pm UTC
Forum: The Help Desk
Topic: What's up with my PC ????
Replies: 20
Views: 4481

Re: What's up with my PC ????

Then get a newer OS. (Not kidding, Windows XP officially dies in 2014.)

IE9 is okay, but IE8 and older and older need to die. No one should ever need to use an <!--[if lte IE 7]> or <!--[if IE 8]> tag ever again.
by ycc1988
Mon Aug 06, 2012 2:52 pm UTC
Forum: The Help Desk
Topic: What's up with my PC ????
Replies: 20
Views: 4481

Re: What's up with my PC ????

While this is not a browser war thread, you really should be using the latest version of IE if you want to use IE at all. Get IE 9.
by ycc1988
Mon Aug 06, 2012 9:00 am UTC
Forum: Religious Wars
Topic: Does anyone use the Vim HJKL cursor keys?
Replies: 77
Views: 108617

Re: Does anyone use the Vim HJKL cursor keys?

Other than posting comments like these, all of my browser shortcuts like C-tab and C-TAB can be typed with one hand. There's no switching to the mouse to be had because my hand is pretty much ALWAYS on the mouse.
by ycc1988
Tue Jul 31, 2012 11:10 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9979
Views: 1977813

Re: Coding: Fleeting Thoughts

What is the difference between

Code: Select all

void foo(int x) {x = x+1;}

and

Code: Select all

void foo(Integer x) {x = x+Integer.valueOf(1);}

if any?
by ycc1988
Thu Jul 26, 2012 5:53 pm UTC
Forum: The Help Desk
Topic: Linux does not boot from my usb
Replies: 15
Views: 7055

Re: Linux does not boot from my usb

I used PenDriveLinux for Windows. Worked like a charm.

I can also affirm to problems with Unetbootin in the past.
by ycc1988
Thu Jul 26, 2012 5:30 pm UTC
Forum: Coding
Topic: How Do I Learn About [n]?
Replies: 183
Views: 381386

Re: How Do I Learn About [n]?

What package manager do you have? What flavor of Linux do you have, for an even simpler question? Personally, I'd scrap over whatever OS is already there and install Ubuntu . They have the largest and most frequently updated software repositories, a nice UI (opinions differ, but you can switch UIs o...
by ycc1988
Wed Jul 25, 2012 8:28 pm UTC
Forum: Coding
Topic: Writing large projects in a functional language?
Replies: 18
Views: 23817

Re: Writing large projects in a functional language?

I always do "using namespace std", and is "this->" really necessary? A nicer-looking version might be #include <vector> #include <algorithm> using namespace std; void myfunction(double m_something_value) { //do something } for_each(m_something.begin(), m_something.end(), myfuncti...
by ycc1988
Wed Jul 25, 2012 6:16 am UTC
Forum: Coding
Topic: Writing large projects in a functional language?
Replies: 18
Views: 23817

Re: Writing large projects in a functional language?

http://common-lisp.net/project/cl-opengl/
Ignore my previous random stab in the dark, it's already been done.
by ycc1988
Tue Jul 24, 2012 12:35 pm UTC
Forum: What If?
Topic: What-If 0004: "A Mole of Moles"
Replies: 89
Views: 91128

Re: What-If 0004: A Mole of Moles

A meat moon. Randall comes up with the weirdest stuff.
by ycc1988
Tue Jul 24, 2012 7:17 am UTC
Forum: The Help Desk
Topic: the great firewall and irc
Replies: 4
Views: 1986

Re: the great firewall and irc

Not necessarily. The Chinese government actively hunts down bridges and blocks them.
by ycc1988
Mon Jul 23, 2012 10:46 am UTC
Forum: News & Articles
Topic: Kim to reform North Korean economy after purge: source
Replies: 4
Views: 1942

Re: Kim to reform North Korean economy after purge: source

So that's why that failed missile launch a few months back was made so spectacularly public: Kim knew the launch would fail and used it as an excuse to fire/kill some generals and seize more power for himself.
by ycc1988
Mon Jul 23, 2012 10:17 am UTC
Forum: Coding
Topic: Writing large projects in a functional language?
Replies: 18
Views: 23817

Re: Writing large projects in a functional language?

I have no idea how 3D graphics is done in the real world, but I came up with this: inv_project: (x,y,view_matrix) -> (x,y,z) or some special value if projected line never hits anything uv_map: (x,y,z) -> (polygon_number,u,v) texture: (polygon_number,u,v) -> (texture_info) render: (x,y,z,texture_info...
by ycc1988
Sat Jul 21, 2012 1:19 pm UTC
Forum: School
Topic: The Foreigners' Guide To Chinese Culture
Replies: 28
Views: 23041

Re: The Foreigners' Guide To Chinese Culture

Eh. Down here, most HKers are a little resentful about rising prices and rents. It seems that every week, there's another local shop forced to make way for some luxury goods mega-chain. As a most extreme example of the excess, along Nathan road you'll often see two branches of the exact same jewelle...
by ycc1988
Fri Jul 20, 2012 3:17 pm UTC
Forum: School
Topic: The Foreigners' Guide To Chinese Culture
Replies: 28
Views: 23041

Re: The Foreigners' Guide To Chinese Culture

DPRK = buffer zone between PRC and major US ally ROK. Of course the CCP wants to maintain good relations with the Kim clan.

Question: what do the mainlanders think of "one country, two systems" and the HKSAR? I'm from there myself.
by ycc1988
Fri Jul 20, 2012 3:13 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1084: "Server Problem"
Replies: 123
Views: 51100

Re: 1084: "Server Problem"

Technical Ben wrote:Is he running an os (Windows or Linux?) with a flash program emulating an android os to run his java server in?! :lol:


Most succinct yet probably accurate description here, except I'd take out the word "Windows". Unless there's another layer of VM the error message is hiding...
by ycc1988
Wed Jul 18, 2012 11:08 am UTC
Forum: The Help Desk
Topic: getting started with C
Replies: 14
Views: 7087

Re: getting started with C

http://www.mingw.org/wiki/Getting_Started/ If you ever advance to using makefiles, note that it's mingw32-make instead of plain make. I don't know what book is best to get started, but one absolutely must own The C Programming Language . It's the C bible. It's also a very short book, C is not a com...
by ycc1988
Sun Jul 15, 2012 4:00 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 1005: "SOPA"
Replies: 128
Views: 66178

Re: 1005: "SOPA"

If anyone doubts how damaging SOPA could be for the infrastructure of the net, just look at the Megaupload situation occuring right now. This is a Hong Kong based server run by New Zealanders, and the US has shut it down without a trial even occurring. Sure, I am certain that it had material that i...
by ycc1988
Sat Jul 14, 2012 4:46 pm UTC
Forum: School
Topic: The Foreigners' Guide To Chinese Culture
Replies: 28
Views: 23041

Re: The Foreigners' Guide To Chinese Culture

Most dissidents are very effectively silenced by the government and are virtually unknown within Chinese borders. Not everyone has the ability or incentive to scale the Great Firewall.
by ycc1988
Sat Jul 14, 2012 4:21 pm UTC
Forum: Movies and TV Shows
Topic: Airbender and Korra - Shyamalan's Masterpiece Animated
Replies: 1713
Views: 364304

Re: Avatar: The Last Hairbender & Legend of Korra

Spoiler:
In the new ComicCon previews Tenzin was seen admonishing Korra for abusing her newfound powers. Looks like even the creators acknowledge that Korra became a full Avatar a little too easily. That and they needed a way to extend the plot for 3 more seasons.
by ycc1988
Thu Jul 12, 2012 6:20 am UTC
Forum: Mathematics
Topic: The percent button on Casio calculators
Replies: 6
Views: 5401

Re: The percent button on Casio calculators

I've always found the % button confusing and useless. Does anyone know the historical reason of why it's there in the first place?
by ycc1988
Thu Jul 05, 2012 8:52 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9979
Views: 1977813

Re: Coding: Fleeting Thoughts

I thought a PHP "array" is a dictionary, only that using the default key values gives array-like behavior?
by ycc1988
Thu Jun 28, 2012 6:50 pm UTC
Forum: Coding
Topic: HTML/CSS question
Replies: 13
Views: 5123

Re: HTML/CSS question

Notepad++ is fine, although you might want to install the TextFX plugin, which provides automatic closing tags among other things. See instructions for installing the feature at http://superuser.com/questions/131542/html-tag-auto-complete-in-notepad.
by ycc1988
Tue Jun 26, 2012 6:20 am UTC
Forum: Religious Wars
Topic: Office
Replies: 25
Views: 29763

Re: Office

I'm perfectly comfortable with the ribbon and enjoy it much more than hunting through a whole tree of menu options. The ribbon isn't terribly customizable, but I never really needed it to be. Here's how I see it: ⋅  Professional-grade layout management: InDesign. ⋅  Everyday use:...
by ycc1988
Mon Jun 25, 2012 5:31 pm UTC
Forum: The Help Desk
Topic: advice for starting a new forum
Replies: 3
Views: 3719

Re: advice for starting a new forum

I have an Invisionfree forum I inherited from the previous admins. Admin controls aren't too bad there, except there's one or two things I can't do as I'm not user #1/root. Skinning is a nightmare though, you'll want to hunt around for some pre-built themes or simply use the default. I hear there ar...
by ycc1988
Sun Jun 24, 2012 6:23 pm UTC
Forum: Coding
Topic: Coding for science
Replies: 13
Views: 3497

Re: Coding for science

I find Fortran 2003 and 2008 allocatable arrays much easier to work on than C++ vectors. Fortran 2008 even has some special functions built in, e.g. gamma and log_gamma. However, Fortran doesn't have everything, 3rd party libraries are generally for F77 which I wouldn't ever try to learn, and GSL is...
by ycc1988
Sun Jun 24, 2012 5:09 pm UTC
Forum: Coding
Topic: HTML/CSS question
Replies: 13
Views: 5123

Re: HTML/CSS question

Under no circumstances should one create a website using Word. If you want to master your HTML, challenge yourself to recreate every page by hand. It looks like you were implementing an ordered list, so actually write (in a plaintext editor): <ol> <li>Item 1</li> <li><a href="link url">CON...
by ycc1988
Sun Jun 24, 2012 3:35 pm UTC
Forum: Science
Topic: Drawing figures for LaTeX
Replies: 9
Views: 4924

Re: Drawing figures for LaTeX

I also use Inkscape. Making the "Render>LaTeX Formula" extension work in Windows was a bit of a hassle, but totally worth the effort. Specifically, I had to install Imagemagick and pstoedit and manually then copy the .dll files from the Imagemagick directory to the pstoedit one. Pretty eas...
by ycc1988
Fri Jun 22, 2012 5:43 am UTC
Forum: Religious Wars
Topic: Editors
Replies: 267
Views: 137644

Re: Editors

emacs for [imath]\mathrm{L^{\!\!A}\TeX}[/imath], Eclipse for Java (which I haven't used lately), Visual C# 2010 (same), Notepad++/gedit for everything else depending on which OS I'm currently on.
by ycc1988
Fri Jun 22, 2012 5:33 am UTC
Forum: Religious Wars
Topic: Named Parameters vs. Positional Parameters
Replies: 5
Views: 8639

Re: Named Parameters vs. Positional Parameters

Named parameters allow for simple use of default values. For example, a plotting function may have default font faces, line styles, etc. MATLAB/Octave doesn't have true named parameters, but gets around this with some clever (i.e. annoying to implement) parsing.

Go to advanced search