News for hackers. Stuff that matters.

ii

Re:Superformula on Friday July 22, 2016 @03:05PM (#12145908)
If I made a formula that is more generalized, patents still apply?

Here it is in complex numbers:

    p = (r1*cos(ph1 + th) + 1.0*I*r2*sin(ph2 + th))*
   (Abs(cos(m*th/4)/a)**n2 + Abs(sin(m*th/4)/b)**n3)**(-1/n1)
This can produce a number of interesting shapes that original Gielis transforms can't.
Re:How to Fold a Julia Fractal on Monday June 16, 2014 @05:41PM (#7901630)
To fold Julia fractal you only need to treat it like something simple and two-dimensional, project it onto a square grid, transform that grid, and then interpolate every cell using simple affine transformations.

EDIT: Removed unneeded emotional junk

EDIT 2: Affine transformations are just simple arithmetic operations between complex and dual numbers but nevertherless matrices are simpler!

Re:Why is the mouse cursor slightly tilted and not straight? on Monday February 17, 2014 @12:49PM (#7253264)
When an average right-handed person points at something his hand has a very similar shape. Imaging a large screen with some kind of a presentation and you are explaining something to the public and pointing at some object on the screen. The shape of your hand in this moment is the most natural thing for a pointer, immediately understandable by anyone.
Re:Why do credit card forms ask for Visa, Mastercard, etc.? on Saturday February 01, 2014 @08:19PM (#7164339)
All developers I know of, including myself, do have this unawareness of simple things, but I prefer to call it for what it is: simple human laziness.
Re:Microsoft backs off on Metro on Saturday February 01, 2014 @08:10PM (#7164308)
Flat is inevitable. Flat is practical. But, yeah, you can not make money on it yet, because you know people love what they used to look at. They don't like change.

Kazimir Malevich 100 years ago tried to tell the world about it but the world is slow.

Re:How in-app purchases have destroyed the game industry on Saturday February 01, 2014 @07:23PM (#7164134)
Sorry, I haven't read your reply and replied with almost the same thought. It is not hard to do and many developers already do this, Triple Town by Spry Fox is doing exactly that for example.
Re:How in-app purchases have destroyed the game industry on Saturday February 01, 2014 @07:17PM (#7164107)
Solution: make a game free with a small number of free levels and sell unlimited levels for a fee as a one-time in-app purchase.
Re:How in-app purchases have destroyed the game industry on Saturday February 01, 2014 @07:13PM (#7164097)
There still is a sane solution: make a game free with a small number of free levels and sell unlimited levels for a fee as a one-time in-app purchase.
Re:Why do credit card forms ask for Visa, Mastercard, etc.? on Friday January 31, 2014 @04:29PM (#7159308)
Is it really hard for anyone in 2014 to get the type of a card from the first 2 digits of a card number and add a field to an INSERT query?
Re:JavaScript – The monkeys in 2013 on Friday January 24, 2014 @06:22PM (#7118910)
All that is needed is a standalone "interpreter" with a REPL that can do some basic OS tasks and a pretty good way of starting simple web servers. Yes, small web services that can interop with larger systems, nothing more.
Can it be used to resurrect Aldus/Macromedia/Adobe FreeHand? I still can't use anything but it and I keep a windows VM on my Mac almost only for it.
Our PM is really into crypto-currencies and when we talk about dogecoins it always makes me smile and feel better. I don't own any dogecoin yet but they surely make me healthier and more productive!
Re:JavaScript – The monkeys in 2013 on Friday January 24, 2014 @12:36PM (#7116139)
We really need a monkey version of nodejs and node-webkit. Mozilla's engine looks more solid for universal use, there are more interesting features and experimentation. The only problem is that it's harder to embed in another software, but it looks that it is changing and I really hope it will change.
Re:Chrome Is The New C Runtime on Friday January 17, 2014 @07:43PM (#7079486)
"optimized for use in browsers" means that collection of C++ cross-platform libraries can segfault a production server simply because it was not enough tested in other environments.
Re:Chrome Is The New C Runtime on Friday January 17, 2014 @06:47PM (#7079289)
Chromium, Gecko and Webkit codebases are huge, they are hard to compile. They are optimised for use in the browsers and nothing else. They are not universal runtimes yet! I like that idea but please don't make it sound like chromium runtime is ready for everybody to use for their projects.
You know you can't get in jail for twitter jokes in Russia, whatever they are. In fact you can do almost whatever you want here. I'm so tired of that negative image of Russia in the Western media...
Re:Oracle kills Virtual Iron. Is MySQL next? on Wednesday June 24, 2009 @12:41AM (#671587)
Oracle will kill MySQL, but the code behind it under the different name will kill Oracle sometime in the future. You can't fight the weather, working open source is unkillable.
Re:Study separates Russian flat tax myth and fact on Thursday June 18, 2009 @11:24AM (#663602)
Most big companies I know just hire a right person who knows a few FSB generals and create their very own "defense" departments to solve these problems. They pay only salaries to people who know what to do. No bribes or "taxes" whatsoever.
Re:Study separates Russian flat tax myth and fact on Wednesday June 17, 2009 @09:49AM (#661801)
Criminal "protection" "taxes" were common 15 years ago and even then it was nothing like "20%" for everybody, it varied greatly from place to place and from business to business and depended on who you know and where are you from.

Small-to-medium businesses are free from anything like that by now AFAIK.

To conduct a "serious" business in most fields you still have to know the right people though, if you don't want it to be taken from you.

Re:Study separates Russian flat tax myth and fact on Wednesday June 17, 2009 @09:25AM (#661761)
> That was 6 years ago

Things have changed. Such encounters were very common 10 years ago, less so 6 years ago, there's nothing like this now, I think that the most of those OMON guys are either dead or in prison.

The level of corruption is still very high, but things are getting better. Slowly. Because those who care do something to change the status quo. The problems like those can't be solved quickly.

Re:Study separates Russian flat tax myth and fact on Wednesday June 17, 2009 @04:59AM (#661568)
> Evil, mean bastards every one.

I know few guys who are not like that and who actually fight crime. But they are overshadowed by overly corrupted minority (I know other guys among them who sell drugs for example).

Things in Russia are not that simple and you exaggerate the problems. In general, you just have to know the right people to conduct business there. C'est la vie.

Re:Guy #3 on Wednesday June 10, 2009 @07:47AM (#650842)
I'd say it was a girl who moved closer to the dancing guys just after guy #3 showed up.
Re:Curing Python's Neglect on Sunday May 31, 2009 @07:29AM (#634626)
You can monkey-patch your interactive interpreter BTW:

  >>> type(exit).__repr__ = lambda self: exit()
It will exit then the way you want :)

Nobody do it for the sake of overall consistency. Yet you are free to change it with the one line of code.

I find Ruby + C combination the most enjoyable for non-web things.

But for web I prefer Python/Django.

Re:Curing Python's Neglect on Saturday May 30, 2009 @06:15AM (#633487)

  >>> class ExitFunc:
  ...   def __call__(self): __builtins__.exit()
  ...   def __repr__(self): return "That's how!"
  ...
  >>> exit = ExitFunc()
  >>> exit
  That's how!
  >>> exit()
Re:Curing Python's Neglect on Saturday May 30, 2009 @02:17AM (#633331)
> The only way to then exit is Ctrl-D

Nope.

  >>> __builtins__.exit()
Re:Curing Python's Neglect on Friday May 29, 2009 @06:30PM (#632960)
Just to be even more pedantic, "orthogonal" means more than perpendicular.

It means at least:

1. having a zero inner product

2. (a square matrix) that is the inverse of its transpose

3. linear transformation that preserves angles

4. statistically independent

Interesting. A good example that illustrates why C is the top language is _why's shoes -- it's written mostly in C, but still belongs to Ruby-land.

Older »