In my last post , I forgot to point you to Inno Setup ; go get the Inno Setup QuickStart Pack to get going. I showed how to copy a directory full of data, like tutorials or sample data, that might change depending on the customer. That means the files are not known when the installer is compiled. Here's what it looked like: Source: {src}\data\*; DestDir: C:\MyCompany\data; Flags: external recursesubdirs skipifsourcedoesntexist onlyifdoesntexist uninsneveruninstall; Permissions: users-modify This time, I 'm going to show how to let the user choose where this directory is located, and whether to install the contents of the directory at all. First, let's show an obvious choice: Source: {src}\data\*; DestDir: {userdocs} \MyCompany\data; Flags: [as above.... ] That new constant will put the data in a subdirectory of My Documents, for the user that installs the program. This might be fine for you, if each user of your program is going to install it themselves
A very useful tool in Emacs is the keyboard macro. Every so often I need to perform a repetitive task that is slightly different each time. This time, I was changing casts again, in C++. I had a series of casts, that looked like this: (MeasureLine *)(annot->newCopy()); and I needed to replace them with this: dynamic_cast<MeasureLine *>(annot->newCopy()); So I defined a keyboard macro, where I first selected 'MeasureLine *', and the macro would cut that text, type in 'dynamic_cast<', paste, then type '>' The keyboard macro is started by the keystroke 'Ctrl-x (', and ended with 'Ctrl-x )'. It is run by 'Ctrl-x e' When I found another spot in my code that looked like this: (ConstraintPlane*)(annot->newCopy()); I could drag over 'ConstraintPlane*' with my mouse, and hit 'Ctrl-x e', and it turned into: dynamic_cast<'ConstraintPlane*>(annot->newCopy()); Done. Another trick is that 'Ctrl-u
I'm attempting to install a modern embedded linux OS on a 3.5" single-board computer (SBC), made by Advantech, the PCM-9375. It uses an AMD Geode processor, and has lots of connectors, but the main one we need is the PC/104 connector, because we have a PC/104 board for a laser rangefinder we use. After some investigation, I found that Cliff Blake at BEC systems has successfully used OpenEmbedded and the Anstrom distribution on this SBC. I'm going to attempt the same thing myself, then go beg for help. :) First, I upgraded my box to Ubuntu Hardy Heron, 8.04 Next, follow the Anstrom build page : Get bitbake and OpenEmbedded I look at the GettingStarted wiki page , and it points to OE and your Distro , which says make sure Dash is not /bin/sh. It was on my system, so I did: " sudo dpkg-reconfigure dash " and select No when it asks you to install dash as /bin/sh. as instructed. Next install a bunch of stuff. I checked these off in System .. Administration .. Synaptic
Comments