topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Monday November 10, 2025, 11:09 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 12 13 14 15 16 [17] 18 19 20 21 22 ... 32next
401
General Software Discussion / Re: How to: Pimp your Ubuntu!
« Last post by Gothi[c] on November 28, 2007, 03:38 AM »
I find it funny and ironic that the Linux folk spend so much time and energy trying to look like Windows :)

The transparent windows and 3d effects etc were around on GNU/Linux before vista came along...
402
C / C++ / Re: Exploring C++
« Last post by Gothi[c] on November 27, 2007, 07:13 AM »
Notice that OpenGL isn't 100% cross-platform - you need some per-platform init code, and to do anything interesting you need extensions, which also requires a bit of platform specific code to use.

Unless you use it through SDL like I mentioned, which seems to be the easiest way to get (complete) cross-platform openGL applications to compile without editing anything on about any platform

(SDL supports:
"Linux, Windows, BeOS, MacOS, MacOS X, FreeBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX.
The code contains support for Windows CE, AmigaOS, Dreamcast, Atari, NetBSD, AIX, OSF/Tru64, RISC OS, and SymbianOS, but these are not yet officially supported. ")
403
General Software Discussion / Re: Why the Windows Registry Exists
« Last post by Gothi[c] on November 26, 2007, 02:45 PM »
And again: how does Linux or OS X manage configuration settings?  Leave it up to each program?

On GNU/Linux, system-wide configuration files are in /etc
Applications will typically put their configuration in ~/.appname/config or ~/.appname
Works for me.

But when I sit down to consider what we'd replace it with, I draw a blank.  A collection of .XML files?  How would that be better, aside from being able to edit them with notepad or index them with Desktop Search?

It would be more portable, for one. And having windows crash to hell, requiring a reinstall, wouldn't mean loosing all your settings, for two...

404
General Software Discussion / Re: Why the Windows Registry Exists
« Last post by Gothi[c] on November 26, 2007, 01:25 PM »
Can we move to .XML or custom .CFG files now?
Or just read/write your own ini's without the windows api, as mentioned before...

This article is funny.
So basically, Microsoft implemented something in a very horrible way (ini api), then came up with a very horrible alternative (registry), while the rest of the world implemented their own way of dealing with ini files, which is actually not broken like the original api, microsoft is now still pushing their broken registry.

INI files don't support Unicode.
Not in the windows api perhaps, but it's trivial to implement an unicode-compatible ini-reader/writer as many have done before.

INI file security is not granular enough. Since it's just a file, any permissions you set are at the file level, not the key level. You can't say, "Anybody can modify this section, but that section can be modified only by administrators.
Oh, so you're saying that file permissions at the file level are not secure? Bad news for Vista I guess. It's not like registry keys are secure... I'm assuming he's referring to ancient single-user windows. These days it's easy enough to set file permissions so a file can be accessed by only one user, or administrator, just as with registry settings.

Multiple writers to an INI file can result in data loss. Consider two threads that are trying to update an INI file. If they are running simultaneously
I guess they don't use mutexes over at microsoft. No wonder their OS crashes all the time ;)

INI files contain only strings. If you wanted to store binary data, you had to encode it somehow as a string.
As addressed before, it's easy enough to store binary data in an ini...

Parsing an INI file is comparatively slow. Each time you read or write a value in an INI file, the file has to be loaded into memory and parsed.
Again, this is windows API ineffectiveness. Most programs using ini files will read the file, parse ALL strings they need, or if they need to write multiple values, it's easy enough to do so in one write operation.

What's more, many programs that parsed INI files were buggy, so in practice you couldn't store a string longer than about 70 characters in an INI file or you'd cause some other program to crash.
Wait... programs using ini files buggy? Didn't you just say you guys created an API with only a 32KB buffer? Oh yeah, and 640K memory is all you'll ever need, right? Maybe look at your own code first,...

The default location for INI files was the Windows directory! This definitely was bad for Windows NT since only administrators have write permission there.
I haven't seen an app that writes ini files into the windows directory in years,... Most of them are stored in the application's folder or one of it's sub-folders... Which is actually pretty cool. Copy your application folder to an usb-key, and you can use it anywhere with the same settings. Lets see you do that with the registry...
INI files contain only two levels of structure. An INI file consists of sections, and each section consists of strings. You can't put sections inside other sections.
I guess technically you could make an ini with more hierarchy, but it would make more sense to use XML here.

[Added 9am] Central administration of INI files is difficult. Since they can be anywhere in the system, a network administrator can't write a script that asks, "Is everybody using the latest version of Firefox?" They also can't deploy scripts that say "Set everybody's Firefox settings to XYZ and deny write access so they can't change them."
You can do that with the registry? Wow! Isn't firefox always going to be firefox.exe in the same friggin' folder regardless of version? But i guess that's not the point he was making. 100 different apps might use 100 different registry key names for where they store the location to firefox... I guess you could search on the actual filename, and get lots of false positives... but wait, isn't that the same as doing a file search for *.ini containing firefox.exe?

405
C / C++ / Re: Exploring C++
« Last post by Gothi[c] on November 26, 2007, 12:55 PM »
As for cool C++ graphics and winamp visualisations, get comfortable with C++ and you IDE first...

Golden advice.
However, once you're comfortable enough with C++, your IDE, and not to forget your debugger, you could use a few methods to achieve those effects.
1) using DirectX (DirectDraw and/or Direct3D)  (windows only)
2) using SDL (cross platform library for 2d graphics or 3d graphics through an opengl cross-platform wrapper)
3) using pure OpenGL (cross platform) good tutorials here(see tutorials menu on the left).
4) for the actual sound response you can use DirectSound (windows only), Audiere (cross platform), SDL(cross-platform) again (see here), or IRRKlang(also cross platform). (there's others too of course, if you google long enough ;))
406
C / C++ / Re: Exploring C++
« Last post by Gothi[c] on November 22, 2007, 05:55 AM »
Things like detecting memory, cpu usage etc, are very platform specific. Basically, you have to ask the operating system for that info. On windows those will be win32 API calls, on GNU/Linux you can query the files in /proc

Here's an example + source code for windows: http://www.codeproje...stem_information.asp

If you want to make it cross-platform, you can detect the operating system with #ifdef statements and have a block of code for each OS you want to implement.

Yes, this can also be done in C++ builder. C++ builder is fully compatible with C++, but then it will be windows-only of course.

There are functions to get the current time in the C time library which comes with most if not all C++ compilers by default. Info here: http://www.cplusplus...ence/clibrary/ctime/ Example here: http://www.informit....usplus&seqNum=65

When coding C++, the standard template library is your friend. Reference: http://www.cppreference.com/cppstl.html

Also, lots of things have been done before, and exist in libraries. And since pure C++ is cross-platform, I recommend you stick to cross-platform libraries for your programs if you're not using C++ Builder, in case your users ever want to use your application on a different operating system. (wxWidgets is a good cross-platform library (mainly for GUI, but has increasingly lots of other handy stuff like filesystem access, time, locales, etc,...)

407
Living Room / Re: Tower Defense games collection
« Last post by Gothi[c] on November 22, 2007, 03:07 AM »
Wicked Defense...
http://www.wicked-defense.com/
...is by far the best tower defense style game I've ever played.  Check it out.

Ticcer

Welcome, Ticcer :)

That game looks cool :) Nice particle effects.
408
Hm.. maybe that's an idea.. we could set up a couple of "special funds" like for reviews, new software, new web services, etc, and let donors choose where to put their money.


That's a nice idea, but I only see one problem with it: fragmentation.

The more additional special funds there are, the less likely you are to reach the goal for either one of them; the donations are spread across all of them, and not focused towards a single goal. It will take some figuring out as to how many (and which) special funds you could have to avoid this problem.

409
GOE 2007 Challenge Downloads / Excalibur - GOE Challenge 2007 Entry Idea
« Last post by Gothi[c] on November 20, 2007, 12:06 AM »
I am currently working on a scriptable alerting/monitoring application which I will try to finish (be)for(e) the contest. I'm writing this to monitor servers, but you could use if to alert or monitor about anything, the weather, a meeting, etc,...

All objects (alerts, sensors, GUI objects,...) will be scriptable in python.

A (very early) screenshot below,... not too much to be seen on there, most stuff I worked on sofar is backend:
410
Living Room / Re: Laptop or Desktop — which are you?
« Last post by Gothi[c] on November 17, 2007, 12:28 AM »
... I think desktops are just better for 'everyday' use since you can:
  • Use bigger screens on them (a laptop becomes less 'portable' the bigger the display gets,...)
  • It is way more comfortable to use a REAL mouse and a REAL keyboard! Than those tiny keys on laptops, and mini-trackballs and mini-touchpads they come with
  • Desktops are more friendly to upgrade, easier to fix and mess around in hardware-wise.
  • Desktops are cheaper! More performance bang for your buck.
(granted, you can attach an external keyboard,mouse,screen to a laptop,... but is it still a LAPtop then?)

IMO laptops only make sense when you have the need to be mobile with your work.  Some people like the fact they can work(or watch movies) from the couch or even bed, I tried that with a laptop for a while, and even though it sounds comfortable, it gets waaay more uncomfortable than a real desk after a while.

I know you asked for comments of people who prefer laptops over desktops, so most of the stuff i pointed out is probably obvious, but I wanted to point it out anyway ;)
411
General Software Discussion / (*nix) Amazingly feature-rich email checking dockapp
« Last post by Gothi[c] on November 12, 2007, 02:47 PM »
wmpop3lb.png


If you're not familiar with the concept of dockapps (from the wikipedia entry):

Dockapps, or docked applications are computer programs which appear to reside inside an icon rather than a window in graphical computer systems. Their display is constantly-updated just like a windowed application, but appears inside a small (64x64 pixel) icon.

This makes dockapps particularly suitable for monitoring things in the background

Dockapps were heavily used in the NextStep Operating system, which was later cloned into WindowMaker(still actively developed), which became a popular window manager (before Gnome and KDE stole the spotlight.) Many window managers support dockapps in some way or another these days, including KDE, which has a special dockapp toolbar you can add (rightclick on your panel, add new panel, dock application bar) and Gnome, in which dockapps can be used in the gnome-swallow-applet. Fluxbox, supports dockapps through it's 'slit' bar, etc,...

There is an amazing amount of information and gui interface you can squeeze into such a little icon, and it's great that all these window managers have their own way of handling/displaying and interacting with these dockapps, so using them makes them truly integrated into your window manager/desktop.

I particularly enjoy this little dockapp, because next to just displaying information (latest emails you received, etc), it can also be interactively used to delete messages from the server, or launch any application depending on the message/pop3 server. This allows you to play a different sound or append different parameters to your email application, or run any creative command you can come up with.

If you take a look on it's website, you'll notice it is VERY customizable, and an amazing amount of functionality is hiding behind such a little interface!

I use it together with wmnetmon which allows me to monitor different services (eg: pop3, http, smtp, etc,...) on different servers, and also lets me run a custom command/program when a problem occurs with one of the servers.

The commands to run when a new mail has arrived allow you to pass about all information about the received email(s) to any command/program. This makes it very easy to make a little proxy program or script which will read the parameters, do something with them, and then pass it to your mail program. You could write your own personal/advanced spam filtering or email sorting/alerting program/script extremely easy this way.
412
Announce Your Software/Service/Product / Re: Tolipo - todo list for programmers
« Last post by Gothi[c] on November 08, 2007, 01:01 AM »
I made all changes you requested, new download (version 2.0) available from the website.

Cool It would also be good if you were asked for the todo and changelog files on creation of a project instead of having to do this yourself.

When creating a new project, under text file paths, click either of the browse buttons for changelog or todo text files. They no longer have to be existing files, you can now enter a new file.

The resulting files are xml is there an easy way to get a plain text changelog out of it? :)

They should be plain text. If you added the todo/changelog textfile filenames correctly for your project(s), these files should be filled with something along the lines of:

==== Todo list for test project ====
[ test task -] test task description
[ another task -] another todo

You are probably looking at the internal todo.xml file, which is used by tolipo internally to store it's hierarchy. This is NOT the actual todo/changelog list output! To generate this, rightclick the todo listbox, and click 'Write todo/changelog files' and any files you defined in the projects changelog/todo textfiles will be written. Also remember that if you create a sub-project, you should select the checkbox to append the changes to the files of it's parent project.

413
Announce Your Software/Service/Product / Re: Tolipo - todo list for programmers
« Last post by Gothi[c] on November 07, 2007, 09:59 AM »
Great ideas! It shall be done. :)
(just be patient ;) )

Is this still being developed? I'd like to be able to drag and drop tasks between projects in the list, and use the delete key on the keyboard to delete a task, F2 to rename it. I'm using Tolipo at the moment to have a "next 3 tasks" list of my todolist which is held on a FogBugz database. This way when I'm lost i can easy between 3 priority projects and add new ones from the bigger pool. This keeps me productive without drowning in tasks.
414
Don't feel alone nudone,

I feel exactly the same way, I refuse to use any wireless mice. Not only have I experienced the battery drama with them, but I also have had one which received interference from other devices... Actually my wacom tablet is the same. If I put my joystick close to my wacom tablet, my mouse starts to move by itself!

I'll stick with cables. The cable is never in my way either, you just have to make sure it's long enough and that you have it laid out well :)
415
Developer's Corner / Re: secure automated backup on *nix.
« Last post by Gothi[c] on October 22, 2007, 07:06 PM »
It has a home now: http://www.linkerror.com/autobackup.cgi
It can also encrypt backups now, and backup to email (for small stuff?)
416
Distribute yes,
But if you make a derived work, that work must also be under the GPL license, and you must either include the source code or include a notice that the source code is available on request.

> The question is: Is it legal to distribute files covered by the GPL in
> a self-extracting archive or installer, if the stub is not GPL'ed?

It would be allowed if the installer is GPL'ed.
417
General Software Discussion / Re: VirtualBox - An Open Source Virtual Machine
« Last post by Gothi[c] on September 07, 2007, 09:57 PM »
Awesome! thanks for sharing this, I didn't know about this one :)
418
Developer's Corner / Re: Sun Releases Darkstar Under GPL v2
« Last post by Gothi[c] on September 07, 2007, 01:03 AM »
... bad news for others :)
419
Developer's Corner / Re: O'Reilly Article -- Mono: A Progress Report
« Last post by Gothi[c] on August 24, 2007, 08:39 AM »
I was hoping to read more details about what specific things need yet to be ported.
420
General Software Discussion / Re: Computer "virus"...
« Last post by Gothi[c] on August 23, 2007, 05:54 PM »
Joke program, not virus ;)

A virus is self replicating.

Spead the word. :D
421
Living Room / Re: a wet tv remote control problem
« Last post by Gothi[c] on August 22, 2007, 06:21 AM »
Like app said, open up, dry each part seperatly. Remotes are very simple devices usually, and it isn't all too complicated to (dis)assemble them.

What you have to worry about is corrosion. Parts of the pcb circuitry may have corroded and thus lost it's connectivity. If it's not working after drying, visually inspect the pcb for circuit lanes that 'don't look right', and repair them.

You can repair them by either soldering new wires onto the pcb, bridging the broken parts, or a more elegant solution: this little gizmo.
It lets you 'draw' conductive circuit lanes right onto a pcb, or any other surface. GREAT for repairing corroded or otherwise broken circuitry.

There is very little chance that your remote is broken because of a short circuit from the liquid, since these things work on very low voltages and carry very little current. The IC's involved aren't too sensitive usually either. (Unless you have some fancy hi-tech remote)




422
I think it's strange that none of you think freedom is important.

MacOSX is still a proprietary closed system, while there are (a few) truely Free GNU/Linux distributions out there that do not ship with DRM, closed source drivers, and free software that you can share and edit without worrying about lawyers, or backdoors in mysterious binaries.

That freedom is worth more than me than any feature or ease of use or application/driver availability.

423
Developer's Corner / Re: C++ Development: win32 or .NET?
« Last post by Gothi[c] on August 06, 2007, 01:14 PM »
Use wxWidgets. Not only is it a very nice and complete API to work with, it will also allow your programs to be compiled on different platforms other than windows.
424
Living Room / Re: DC get together in Western Europe?! July 2007?
« Last post by Gothi[c] on August 01, 2007, 06:41 AM »
You should be careful of how you threaten Cody for he always has his eye on you. Just before you left, he snapped these pictures:

425
after we met mouser first, now everyone knows he is harmless and is meeting him too!  :P
Pages: prev1 ... 12 13 14 15 16 [17] 18 19 20 21 22 ... 32next