Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×

Comment Scope usage (Score 3, Insightful) 215

I'm the author of Teensyduino, software for an Arduino compatible board.

I sometimes use my Agilent scope when developing or porting Arduino libraries. Sometimes I just want to check the relative timing of stuff, so I'll set a pin high or low at some point in the code, then capture with the scope to see if the code is taking a long time. Often it's surprising how fast, or how slow certain code can be, and pretty often it's relatively easy to discover and fix performance problems. You can do quite a lot by normal software debugging processes, but pretty much all those approaches involve running the code much slower. When you're debugging real-time code, like libraries that synthesize waveforms by bit-bashing or tricks with timers or DMA channels, there's really no substitute for a good scope.

But admittedly, this is a pretty narrow fringe. Most people probably don't do this sort of low-level coding.

Comment Re:Too bad it's a C++ library... (Score 1) 147

Really, you've written GUI programs using GTK's C-only API and liked it?

Did you really enjoy all that type casting of pointers? That's a lot of unnecessary trouble, when clearly some dialog box must be able to use the more generic window style setting functions. If only the compiler somehow could know your reference to the dialog box is compatible with all that other stuff the dialog box is built upon.... if only....

Comment Re:But what does it really mean in practice? (Score 4, Interesting) 147

I've build programs with wxWidgets 2.8. It does automatically handle those platform specific style issues!

I used wxMenuBar, populated with a heirarchy of wxMenu and wxMenuItem objects. I just pass a point to the main wxMenuBar object to SetMenuBar, which is from the top-level frame of the GUI.

On Mac OS-X, it automatically appear at the top of the screen. One Linux and Windows, it automatically appears on the top of my program's window.

Likewise for toolbars, I simply used with wxWidgets objects as documented, without any specific style stuff. They automatically adapt to fit the style of each system.

That's the magic of wxWidgets. That work you mentioned, adapting things to fit the stylistic expectation of each system, is exactly what wxWidgets does so very well. It's vastly superior to other toolkits which attempt draw their own widgets, because the wxWidgets developers have gone to tremendous effort to actually use the native widgets from each platform. You just use the rather generic API for wxWidgets and you end up with really good native GUIs on all 3 platforms. Best yet, when the user customizes fonts, colors and whatever else, your program adapts like other truly native applications. Other cross platform toolkits fall down in that respect to the customized style, because they aren't really using the platform's native GUI.

Comment Re:But what does it really mean in practice? (Score 5, Informative) 147

I use wxWidgets. Most of my experience is with version 2.8.

If you care deeply about making a native applcation that truly has a native GUI on Windows, Mac and Linux, wxWidgets is great. Nothing else even comes close. Java, QT, XUL, FLTK, TCL/KT and others all produce programs that aren't quite right on some plaforms.

If you don't care about cross platform native GUI applications, or you target browsers with javascript+node+[insert newest buzz], then wxWidgets is not for you. If you really only want to produce a program for Windows but maybe someday have the option to easily port to Mac and Linux, while wxWidgets can give you that, if you don't truly care are doing all 3 from the beginning, I believe you'll find wxWidgets it simply too much trouble.

The truth is wxWidgets is pretty much its own system, an SDK in itself. It has a tremendous amount of somewhat complex design, like sizers, which means you have to go to some extra effort. Of course, for making things work well on all platforms... not simply just work, and not work well on Windows but end up sub-standard on Mac or Linux, but work truly well on all 3, the extra effort to use wxWidgets is definitely worthwhile.

But the truth is you do have to put in extra effort. wxWidgets has great documentation to help, but the other truth is everything is heavily steeped in C++ class heirarchy. If you're good with C++, it'll feel pretty natural. If not, well, you'll get much better with C++ in the process, if you persevere. In the end, if your goal was a native application that truly works natively on all 3 platforms, the sort of thing users take for granted and never notice, you'll be rewarded.

But if you don't really, truly, earnestly care about targeting all 3, if only Windows has to be high quality and the others are afterthoughts, or if you just want to get things done as quickly as possible with minimal learning, you'll probably find wxWidgets to be far too much trouble.

Comment Re:Is it still relevant? (Score 4, Informative) 147

I use wxWidgets. I've mostly used verson 2.8 with ansi strings.

As far as I know, wxWidgets is the only cross platform toolkit that compiles to program that use the native GUI widgets on Windows, Mac and Linux.

You can usually spot Java and QT programs. They work, but things look a little out of place. Firefox does a better job, but things start going wrong if the user customizes or "themes" their desktop. Emulating the look of native GUI controls just isn't ever as good as actually using the native ones.

wxWidgets isn't perfect. I've hit a good number of bugs. It has a pretty steep learning curve. It also doesn't seem like "new" technology. But it works. If you want to write a native application that truly looks and feels and actually is native on each platform, short of writing the code 3 times, wxWidgets is pretty much the only toolkit.

Comment Re:IMO, it is not going to work (Score 1) 166

For network gaming, physics engines get rewritten with deterministic results. This can include very base-level things like re-writing platform code, as the platforms handle floating point calculations differently.

It takes a lot to get your physics simulation to be deterministic, but every game out there with multiplayer has to do it. Really, it's the player inputs that cause problems.

Comment Crashplan would be fine (Score 1) 285

If you don't have an intermediary server, you'll only be able to backup when the receptacle is running. This isn't unique to crashplan, but rather is the nature of direct computer to computer communications. Honestly, Crashplan is the easiest I've worked with.

Alternatively, you can setup an FTP server on their network reasonably easily, and backup to it regularly. This could be a special piece of hardware, like a $200 Synology Diskstation, or a Raspberry Pi with an attached USB drive. Or it could just be a regular computer, though crashplan might be a better option in that case.

You could also do something cheeky if your friend is within wifi range, like giving them a USB drive attached to a router that connects to YOUR Wifi network. Then back up to it as if it were local to your house. But, of course, you're not as protected in that circumstance.

Comment Re:And nothing of value was lost... (Score 1) 330

Requiring a particular piece of hardware for your software, while free alternatives remain, is not good ecosystem. Will people give Microsoft $50 to replace their hardware in order to stay in the Skype ecosystem? A system that came into dominance from being free?

My guess is that switching from Skype to any other a/v chat medium is almost trivial at this point, and certainly not worth replacing your hardware to avoid.

Comment Re:Pardon my ignorance but... (Score 5, Informative) 273

I have read the entire spec, except a few parts about the physical molding/construction of cables and some parts of the last chapter about hubs. I've read many of the change notices that come in the zip file with the main PDF. I've also read the entire HID, Mass Storage class specs, most of the CDC class spec, substantial parts of many of the others, and a good portion of the OHCI spec. I've also read the datasheets for numerous chips, API documentation for Mac, Windows and Linux (at least libusb on Linux), and numerous other related documents.

Yes, there's a lot of documentation. No, I haven't gouged my brain out.

I have implemented 2 USB device-side stacks on microcontrollers (a.k.a. "bare metal") from scratch. Both are commercially successful and in widespread use on Teensy 2.0 and 3.0 and numerous projects and products people have designed and incorporated my code.

While you've done neither, I most certainly have done both: read the specs and implement portions of USB. I would disagree with your opinion that summarizes USB as "horrible".

It's actually a pretty well though out system.

Comment Much more than 1 week old (Score 4, Informative) 91

My site uses vBulletin.

This vulnerability is MUCH older than the 1 week mentioned in Slashdot's summary.

Several weeks ago the vBulletin folks sent an email advisory to all registered users (eg, people who actually paid for the software) . In fact, they sent 2 messages. The first warned of this vulnerability and suggested immediately deleting the install folder, if it wasn't already deleted as recommeded. The 2nd message, only a couple days later announced a new version which fixed this bug, even if the install folder was not deleted.

vBulletin has a web-based admin control interface, separate from the main forum. Even in the old, vulnerable versions, the admin section will not work if the install folder still exists. It just displays a message saying you must deleted the install folder before you're allowed admin access to your own forum. Any sites that were vulnerable to this bot must have been set up by just unpacking the zip file and then running the wizard to set up the database. It specifically tells you to delete the install folder at the end of that process. So anyone who got hit not only ignored that instruction, but also never even used the admin section of their forum, because it's intentionally disabled to force people to properly delete the install folder.

Sure, there may be 30-some thousand forums out there with this problem, but every single one of them was set up so poorly that the forum owner never even accessed their admin interface.

Comment Re:Lots of little boards (Score 3, Interesting) 130

Well, there is an Arduino with 84 MHz clock, called Arduino Due. It's 32 bit ARM, not 8 bit AVR. It sells for $49.

My little company makes an Arduino compatible board called Teensy 3.0, which is technically spec'd 48 MHz but overclocks to 96 MHz without any trouble. It sells for $19.

There are also other less compatible alternative boards, like ChipKit, Maple and Fubarino, with clocks speeds in the 50 to 80 MHz range, and attractive prices. Their compatibility isn't as good, which might be a factor if you're using libraries or code from websites. If you're wring all your project's code, that's less of a concern.

These boards also tend to have more RAM and other built-in resources.

Slashdot Top Deals

Neutrinos have bad breadth.

Working...