LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Blogs > rainbowsally
User Name
Password

Notices

Rate this Entry

Computer Mad Science Continues To Baffle The Experts...

Posted 06-01-2013 at 09:24 AM by rainbowsally
Updated 08-06-2014 at 08:26 AM by rainbowsally (new dl site)

[UPDATE: (2013-06-10) The uitool link has been updated below. Better version, tested, has no mc2 lib deps.]

Been busy elsewhere for a while, but now I'm back, I think.

Today's Features:
  • A ui tool for creating code skeletons.
  • A cool Sudoku puzzle solver (with save/restore file funcs).
  • A qt graphics lib with mc2-generated makefiles (qwt).
  • Notes about why mc2 kicks &ss.
  • Notes about kregeditor.
  • And the make-based installer fixups for root system installations.

-------------------

Sudoku Solver
Do you or anyone you know like Sudoku? This might interest you. (QT4 code and makefile).

Screenshot http://rainbowsally.org/rainbowsally/pub/sudoku.png
Sources http://rainbowsally.org/rainbowsally...core-rs.tar.gz

-------------

qwt graphics lib with 3d

Here's a nifty graphics lib we'll be working into the next lq-mc2 version.

from an example in the share/lqwt folders
screemshot http://rainbowsally.org/rainbowsally/pub/lq/shell.png

created with the designer plugin (which has a few probs)
http://rainbowsally.org/rainbowsally...t-toolkit.jpeg

WARNING: This version of the rpm has only been lightly tested.

Here's the lib before we mess with it beyond conversion to mc2-compatibility. It has quite a few examples, a designer plugin, and... a few bugs.

http://rainbowsally.org/rainbowsally...6.1-1.i586.rpm

Note: rpmerizor (and the make-based system) were creating directories with the wrong ownerships. This rpm apparently has that bug fixed, however, not having tested it beyond a cursory check, you might have to change ownerships to root for any directories under (and including) '/usr' that may have been changed.

This finds recently modified folders.
Code:
find /usr/* -cmin -10 -type d
... where cmin is some time before you installed (in minutes).

The ownerships for all of these directories should be root:root with mode bits = 0755.

Here's some shell code to get the ownership of a file or folder easily.
Code:
_getown() # <filename> - returns owner name
{
  local filename=$1
  echo $(stat $filename) | cut -f2 -d')' | sed 's|.* ||'
}
Use this rpm at your own risk, but do be aware that this includes the 3d stuff such as the screenshot above. Optionally you can unpack the rpm with file roller or rpm2cpio and manually put it into your sandbox folders, but then the designer plugin and man docs won't work.

It's up to you. And if you wait a bit, we may have this kind of stuff in the lq-mc2 libraries pretty soon too.

The qwt lib is available at sourceforge, but I'm not sure where I dug up the 3d stuff. Tried to also get polar plotting to work, but that code seems to be locked up in a jam between two versions of the main qwt libs and can't be made to work without a great deal of effort... so maybe later.

-------------
SAFE AGAIN :-)

uitool for working with designer files and qt4

This is the ui tool that will be in the next lq-mc2 version. It does quite a lot, builds a skeleton fileset from a ui file, generates slot declarations and functions you can fill in, finds and reorders slots in the ui files, and more.

http://rainbowsally.org/rainbowsally/pub/lq/uitool.xz

You'll love this tiny app! 32K. Make it and then symlink it into your ~/bin folder so it's ready to go after you make it.

NOTE: That version probably has lq-qt/mc2 dependencies. Here's one that's tested, has new features, and zero lq-qt/mc2 deps.

http://www.linuxquestions.org/questi...3-06-10-35568/


Use new.symlink if you have it, or something like this should work to install it.
Code:
HERE=$PWD
(cd ~/bin && ln -s $HERE/uitool .)
If you don't have a utility to unpack xz files, try 'tar -xaf uitool.xz'.


-------------
mc2 news

mc2 is the makefile creator we evolved right here at linuxquestions.org blogs.

We've made quite a few changes in mc2, and the latest are not ready for release yet, but older versions will most likely be fine for any mc2.def files you find an any of these codes.

Now, you might be wondering, why not just use qt's pro files for generating makefiles.

And the answer is simple. Because mc2 automatically generates the mc2 version of a pro file called an mc2.def file. And because with the mc2 -fetch switch you can load makefiles for any purpose, generating incremental linked applications (great for large projects with minor edits) and even recursive projects. The directory system itself is the 'organization' of the project.

Nearly all of the qt apps I've built, including those in the qt4 examples were buildable with the stock qt4 template (mc2 -fetch). Much unnecessary linkage can be identified and removed when it's easier to change your makefiles.

Here's the most recent mc2 system available so far.

http://www.linuxquestions.org/questi...eration-34648/

But it's up to you.

-------------

regex editor for kdevelop (kde3 version is best -- still!)

BTW, I found the cool graphical regex editor for kdevelop3 (my all time fav ide). It's called kregexeditor and it's in kdelibs3extra.rpm

This is the regex editor and some other stuff:
* kdeutils3-extra-3.4.2-6.i586.rpm

And this is (apparently) the version of kdevelop I like best.
* kdevelop3-3.2.2-5.i586.rpm

They install (mostly) into /opt/kde3 so you're unlikely to get any conflicts but you can force the install even with missing pieces and it may very well work! That's what I've done and I have had no problems.

------------------

Another hot item

The make-based installer/uninstaller is coming along still too. It's been great for sandbox installations but now has under test in the root file system and appears to be working properly there as well.

http://www.linuxquestions.org/questi...staller-34641/

-------------------

With any luck we can resume the mad science in a safe and sane manner and discover lots of new tricks and create new tools to handle recurring tasks.

For real, the uitool d/load is the kind of thing we're talking about here, and it will for real knock your socks off.

Yeah, it's a commandline tool, but of course, that's what gui front ends are supposed to handle. Now were are the front ends? SORRY! No tools!!

So let's start simple.
Posted in Uncategorized
Views 417 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 04:22 PM.

Main Menu
Advertisement

Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration