News for hackers. Stuff that matters.

Poyeyo

I can only use my own color palette, because it is designed to separate features by hue.

In my case, comments are gray, constants are yellow, strings are purple, markup like HTML is green, some parts inside the markup are blue, and the hot colors are for code, red-orange for keywords, orange-salmon for variable names, etc.

No matter the language, I can rely on my theme to identify sections of the code, and it feels safe and familiar.

All the other color palettes seem, to me, a random assortment of colors that completely ignore function, and that makes them unusable, no matter how pretty they may appear.

I don't think anyone else uses my color palette, besides me =)

It can be seen and downloaded from here: https://colorsublime.github.io/themes/Poyeyo/

Re:Is Dark Mode Such a Good Idea? on Friday June 12, 2020 @06:14PM (#23504447)
> the color schemes for syntax highlight are subjectively less pleasing

I fixed that particular issue by making my own color schemes.

I am probably the only user, but this is OK.

Re:You can’t let a broken CRT monitor stand in your way on Wednesday March 30, 2016 @02:14PM (#11391619)
In my case I had a very dark CRT monitor.

Likely burned out after many years of use.

This is the tool I made to make it brighter:

https://github.com/macondobits/gamma

It resides in the system tray, remembers profiles, and it could be useful for someone else.

I will upload the gamma.exe file to github one of these days, or sooner, if anyone wants it.

The great and unexpected thing, it even works in Wine and changes the gamma ramp in Ubuntu. I use xgamma in the command line instead of my own tool, but I'm glad it works.

It's so hard it will probably be replaced by an AI in 50 years.

Welcome, overlords, etc.

Re:Ask HN: Is it possible to find remote job on C/C++? on Wednesday November 25, 2015 @11:09AM (#10627836)
C++ seems very niche for web development, but it is actually very popular for game development.

Try asking in the /r/gamedev and the /r/gameDevClassifieds subreddits. I'm sure someone is wondering how to contact a C++ developer.

Re:A story about <input> on Friday October 23, 2015 @12:08PM (#10439489)
There's a way to detect the system decimal separator using JavaScript, but it only works in IE and Firefox, and it doesn't work in Chrome because it is marked as 'optional' in the standard.
Bitcoin seems a viable alternative. However its value goes up and down constantly.
What you describe as awkward I find much more interesting.
Re:New Windows 10 Devices From Microsoft on Wednesday October 07, 2015 @07:23PM (#10349855)
I think I agree with you on all fronts, simply because the online cmake documentation is not as good as it should be.

For BLAS, it has a

    find_package ( BLAS )
script, which you can use. The same for CUDA. They define cmake variables you can use later for the include and link search paths.

https://cmake.org/cmake/help/v3.0/module/FindBLAS.html

https://cmake.org/cmake/help/v3.0/module/FindCUDA.html

I haven't used C11 or Fortran95, only C++11, and I had to add a cmake script for it, you can find it as CheckCXXCompilerFlag somewhere in the web.

I have to use Visual Studio instead of mingw because I'm using some winSDK libs, and VS has no (gnu)make, and what VS offers for the command line is not cross-platform, making it a poor investment of my time to learn about it.

After climbing just a section of the the steep cmake learning curve, I have deleted the solution and project files from my repository, and now I use cmake to compile and run the project in the command line with both VS2008 in Win7 (the PC) and VS2012 in Win8.1 (the laptop), without any path dependency. Previously the solution files depended on both my username and the path, and just moving the folder was cumbersome and required a lot of fiddling with those files.

Another thing I really like is the concept of an out of source build, and that's very easy to set up and use with cmake.

I now can write

    git clone somewhere:my_project.git
    cd my_project
    mkdir build && cd build
    cmake -DCMAKE_INSTALL_PREFIX:PATH=../install ..
    cmake --build . --target install && cmake --build . --target run
in both Ubuntu and Windows and see my program running, which means I will not go back to make, or nmake or gmake anytime soon.
Re:New Windows 10 Devices From Microsoft on Tuesday October 06, 2015 @03:27PM (#10341647)
Compiling what? May be some of us can help you.

If it's C++, I did learn cmake, and now I use the same script for Ubuntu and for Win7/VS2008 and Win8.1/VS2012, and so far I just don't care about compilation issues anymore. Sadly the VS site only has VS2015 now.

But yes, the first time you have to check the VS version and add all the proper env vars for the cmake scripts to find the libraries.

But anyway, it is much better than when I used mingw and made makefiles by hand.

I used to suffer from various small pains, even a Quake2 induced pain in the dorsal side of the hand, and they stopped when I started to use a bike and lift weights.
About office, someone there have made WPS Office, and that's what I'm using in Ubuntu right now.
Re:C++ Core Guidelines on Wednesday September 23, 2015 @11:24AM (#10265563)
I think D is a better C++, and just for my bias confirmation, some things I read in the C++ guidelines are clearly influenced by D, or easier to do in D.

It doesn't compile to C++, but directly to machine code.

Totally indisputable in the year 2000.

But less and less true everyday.

Today, we have Steam, the Indie Bundles, etc.

Re:Ubuntu 13.04 Raring Ringtail Released on Friday April 26, 2013 @11:56AM (#5613598)
I have noticed that Ubuntu haters are not Linux haters at all, they are previous Ubuntu users, or simply fans of other distributions.

P.S.: RedHat is selling server versions and support for millions of dollars. Ubuntu still is not profitable despite all they have done for the community. It's unfair to me.

Re:Ubuntu 13.04 Raring Ringtail Released on Friday April 26, 2013 @11:53AM (#5613579)
Actually, they should try.

They are not obligated, but it is in their best interests to build a reputation of not breaking things.

I do think that Linux lacks a reputation of not breaking existing programs as much as it lacked a reputation of ease of use before Ubuntu.

Now, ease of use, and not breaking things? I bet that kind of reputation is worth millions of dollars.

Even Linus agrees about it, when it comes to the kernel breaking userland programs. The kernel developers have no control over userland programs. Nonetheless, the kernel developers try very hard not to break userland programs.

Re:Ubuntu 13.04 Raring Ringtail Released on Thursday April 25, 2013 @10:07PM (#5611107)
VMware tools will also not install.
Re:The secret to a higher salary is to ask for nothing at all on Wednesday April 24, 2013 @09:58AM (#5601447)
Or, psychologically speaking, it puts you in a strong position.

Think about poker. Do you really know the other player knows all your cards when he/she bluffs?

Re:“Right click and save as” needs to go away on Tuesday April 23, 2013 @09:27AM (#5594947)
I think Opera already does that.
Re:Frameworks Round 3 on Monday April 22, 2013 @04:37PM (#5591631)
I want to see a Wt (witty) benchmark.

C++ is welcome here too.

Re:Why I'll never work on First-Person Shooters again on Monday April 22, 2013 @03:45PM (#5591375)
Actually, that level of detail makes the moral dilemma simpler.
Re:Why I'll never work on First-Person Shooters again on Monday April 22, 2013 @03:43PM (#5591370)
Why I don't think parents know how to parent anymore.

For those parents, the problem is videogames, or Marilyn Manson's music, or bicycles, or movies, or obscene writing but never, never, it is something remotely related with their parenting skills.

However, when years later their kids now grown to adulthood have to go to a psychologist, what's what they talk about? Videogames? Music? Obscene books?

No. They talk with the psychologist about their parents and their awful lack of parenting skills.

1) I remember AltaVista to be clearly dominant in the search engine space. Yahoo was not the dominant player in search, and never has been, they were a curated directory of sites.
Re:Physicist proposes new way to think about intelligence on Saturday April 20, 2013 @12:06PM (#5581789)
I think Rodolfo Llinás would somehow agree with this.
Re:Obscure C++ Features on Friday April 19, 2013 @03:25PM (#5578276)
And the next week, and six months after that, again.
Re:15 Things You Didn't Know About 'Game of Thrones' on Friday April 19, 2013 @11:46AM (#5577237)
There are subreddits for that kind of stuff.

In fact, this is the only answer I could thought of that would not potentially spoil you if you have not read the books.

And this is what I was expecting:

http://www.gizmag.com/baidu-eye-google-glass-clone/26909/

I really hope they run Ubuntu as the comments suggest :)

Re:What happened to Japan's electronic giants? on Wednesday April 17, 2013 @01:02PM (#5565576)
Sony is being killed by Sony's content division, that is, the movie studio and the music label.
Re:The beauty of Git in Dropbox on Tuesday April 16, 2013 @04:33PM (#5560708)
Sounds quite an interesting idea... make a git client that acts like dropbox.
In that case, I would wait for Ubuntu glasses.

Google has to make money or kill the project. They are not afraid of killing projects.

However, I would wait for Ubuntu glasses BECAUSE people can also sell good apps there.

You sound like RMS, and that's not rational anymore.

Older »