Domain: man.cx
Stories and comments across the archive that link to man.cx.
Comments · 7
-
Re:Wacom :(
No problem at all, hope it works out for you. The wacom driver itself should just work out of the box, plug in and it'll get detected. If you need configuration, the major desktop environments, like GNOME and KDE, should also have some GUI configuration options somewhere in their control panel-esque equivalents, though they're usually optional components, so you may have to choose to install from the package manager for them to show up. If the basic options they give you aren't enough, there's also the command-line xsetwacom tool, which gives you everything, and as a bonus can be called from scripts for even more advanced behaviour, like bulk-reassigning the tablet buttons for different applications.
Like I said, though, the weak part of using Linux for tablets is lack of the big-name applications unless you can get them working in wine. It's not as dire as it used to be, though, back when the only option was gimp. Gimp's still around, and still works for photo editing, but I think the stand-out now is Krita, which is a truly excellent piece of art software even stacked against non-free products. If you need vector, I think inkscape's still the best option, and for animation there's Synfig Studio, Krita has some support for it, and possibly other options. Plus, while not specifically made for it, Blender can be used for non-3d video and animation editing in addition to 3d rendering and animation. (Speaking of Blender, there's a UI mod called Sensei Format that I've heard is supposed to make Blender more approachable.)
There's also a fair bit of proprietary software that does support Linux, but it seems to be largely in 3d, animation, and CAD with less of a presence for illustration and photo editing. (Off the top of my head, I know Maya, Houdini, and Lightworks maintain Linux versions.)
And, finally, a random note about desktop environments: most distributions ship with GNOME, but you should consider giving KDE a try if you don't find a bunch of configuration knobs daunting. You have a lot more control over KDE's appearance and behaviour, so you may be able to make it act more like you want instead of the GNOME-like way of having to change your workflow to match what GNOME devs want.
Anyway, good luck with it. Wacom's hardware lasts forever and I agree it's a shame to have to stop using it because of the software.
-
Re:Powershell
So to allocate a string you have to multiply sizeof with strlen and add 1 for the null terminator?
Since you specifically mentioned strlen, I can tell that you are doing the wrong thing. It is guaranteed that sizeof(char) == 1, so you can skip the sizeof. And then instead of allocating strlen(x)+1, you could use the standard function strdup .
Aside from this particular example, what is your beef with sizeof? Do you know an alternative for compile-time size calculations?
-
Re:PThreads is better
You are talking mostly bollocks, probably because you don't program using the Windows API
Anyway, PThreads is better. The reason is that Win32 gives you a fixed set of synchronization primitives. If you can solve your problem with those primitives. they work great. If you can't, you are completely stuck.
And PThreads also gives you a fixed set of primitives. In some respects they are more powerful, in others they are weaker. This is a bullshit strawman.
For example, it used to be that a socket handle was not a synchronization object, so you couldn't integrate select() calls with other synchronization primitives.
WTF?
- select() has nothing to do with synchronization. Although it does have something to do with scheduling.
- select() can't wait on "synchronization primitives" under *nix. Really. Try man select . It works with FDs, only.
- select() is not a core function of the Windows API. It is part of Winsock, which uses lower level scheduling primitives.
- Finally, if you want to do asynchronous development with Windows you use Async IO, not select. Async IO is built on top of Events, which are synchronization primitives.
That brings me to the next point: in Unix there is no wait to wait on multiple synchronization primitives (as opposed to FDs) at once, and only a few primitives support a timed wait. In Windows you have WaitForMultipleObjectsEx. Look it up.
Let me be clear on the difference: in Windows the scheduler API for waiting on IO and synchronization primitives is fully integrated - you can wait on any combination of IO and sync objects in the same Wait call. You must of course be using Windows Async IO which uses Events rather than FDs as the waitable object. Under *nix you can wait for multiple condition variables, or multiple file descriptors, or a single mutex / thread / process. There is no way to link an FD to a condition variable.
PThreads gives you condition variables. They are harder to program, but once you understand them, you can use them to synchronize on absolutely anything. You aren't dependent on the OS to have foreseen your special needs and provided special synchronization primitives to meet them.
In Windows you have Mutexes, Events and Semaphores. Events alone are sufficient to provide almost identical functionality to condition variables. You may have missed that memo.
I say "almost identical" because the underlying scheduler behaviour is slightly different, which makes it very difficult to perfectly emulate Pthreads on Win32. Read Strategies for Implementing POSIX Condition Variables on Win32.
If you really want the Win32 model, it is easy enough to build it on top of PThreads, but there is no way to build PThreads on top of Win32.
Cough. Bullshit. Cough. Read Porting of Win32 API WaitFor to Solaris Platform to get a clue. It is possible to build Pthreads on top of Win32, and vice versa. Neither emulation is particularly efficient though.
The complaint about lost signals in PThreads means that the author is using them incorrectly.
The complaint about weakness in the Win32 scheduling API means that the author is using it incorrectly.
-
THINK ABOUT YOUR BREATHING! Breathe Manually Pleas
Umm... Excuse me, but is Goatse down or what? I can connect to Trollse, Analse and Man without any problems. Did they actually take it down, those damn nazi santas.
I need my daily Goatse fix, does anyone have a mirror or a good enough replacement. No scat please, I just read the guide on Dolphinsex.
Oh, and by the way, you might think this is a troll, so I'll write something nice I just found out here, ok?:
You can see your user id in the random textstring in the top of the page!:
This page was generated by a Flock of Ultra Ninjas for Captain Goatse (715400).
And while I'm waiting I might as well post the code I just wrote, a function that recurses menus and disables them! Yes, it's for Windows only :| No, the obfuscation is no good either.
void RecurseMenu(HMENU hMenu){int count,i,uid,j;
MENUITEMINFO mii;mii.cbSize=sizeof(MENUITEMINFO) ;mii.fMask=MIIM_STATE;mii.fState=MFS_DISABLED;if (hMenu==NULL){return;}count=GetMenuItemCount(
hMe nu);for(i=0;i<count;i++){uid=GetMenuItemID(
hMenu ,i);if(uid==-1){RecurseMenu(GetSubMenu(hMenu ,i));}EnableMenuItem(hMenu, uid, MFS_DISABLED);
SetMenuItemInfo(hMenu,uid,FALSE,&m ii);}}
OH, AND IS GOATSE.CX UP FOR REGISTRATION NOW? I MIGHT AS WELL STEAL IT AND REDIRECT IT TO SLASHDOT.ORG! -
Re:I think its OK!
No way, don't divorce her. Cause her psychological pain by doing stuff you've watched in movies until she takes her life. That way she will get the most suffering in the afterlife, if there is such a thing.
Or, just secretly have affairs with her boyfriend ;)
HINT: Go to HELLO.JPG for information about this kind of stuff... j/k, there's nothing but entertainment there.
Oh, and BTW, I totally agree with the OPs argument that the number of guns is related to your penis size. I have no guns, and my penis is huge.
That is why I don't dare buying anything though...
Does anyone have any information about how many guns per month you can buy in America? I heard that they lowered it by 5 guns or so a while ago.
What could it be, 12? That's not very much, how are you going to be able to survive? -
He just got dressed up!
-
Re:[Q] Cygwin on WinCE?
Does Cygwin run in Goatse(warning, non-nude Goatse ripoff)'s ass?
No I didn't think so, stupid question, NEXT!