LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Simple C - mix pixel data, integer math (fixed point), data clamping...

Posted 06-06-2013 at 06:15 PM by rainbowsally

Simple C to mix pixel data, integer math (fixed point), data clamping

Today's Features
  • Simple program to add two pixels clamping each byte to 0xFF, but adding all four bytes in parallel for speed. There are no branches in the algorithm.
  • Another simple program to mix two colors defining a gradient using a fraction from 0 to 1. We compare floating point to fixed point math versions.


Surprisingly, the long version compiles about the same code as the short one with...
Member
Posted in Uncategorized
Views 1092 Comments 0 rainbowsally is offline
Old

Computer Mad Science Continues To Baffle The Experts...

Posted 06-01-2013 at 08:24 AM by rainbowsally
Updated 08-06-2014 at 07: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.
...
Member
Posted in Uncategorized
Views 1050 Comments 0 rainbowsally is offline
Old

qt4 - sudoku solver and closable toolbar examples

Posted 05-25-2013 at 10:54 AM by rainbowsally
Updated 08-06-2014 at 07:28 AM by rainbowsally
Tags mc2, qt4, simple c

Qt4 examples.

SudokuResolver (qt4, only 180K)

screenshot http://rainbowsally.org/pub/sudoku.png

I got this at http://setup.weeb.ch, I believe. I reworked the make system using mc2 and made a few very minor changes, such as centering the window on showEvent() and addding save/restore to/from files.

There are several interesting features in the code from grid setup to BigList STL templates
and multi core processing code.
...
Member
Posted in Uncategorized
Views 1092 Comments 0 rainbowsally is offline
Old

Sockets -- A Chat Server with a non-blocking 'select' (i.e., GUI ready)

Posted 01-27-2013 at 06:47 AM by rainbowsally
Updated 08-06-2014 at 07:29 AM by rainbowsally (fix bad edit)

Sockets -- A Chat Server with a non-blocking 'select' (i.e., GUI ready)

[GUI-ready but no GUI in this version. Terminal only.]

Today's feature is
  • A chat server.
  • Non blocking 'select' (which we need for importing into an lqMiniTerm).
  • A web link to more generic sockets code that I wish I had found earlier.
  • Tarred up example code with makefile for all the code examples at bgnet.

Here's a chat-server you can use to communicate between folks on your computer...
Member
Posted in Uncategorized
Views 1883 Comments 0 rainbowsally is offline
Old

lqNetDog Addon For Experimenters

Posted 01-24-2013 at 03:14 PM by rainbowsally
Updated 01-24-2013 at 03:18 PM by rainbowsally

lqNetDog Addon For Experimenters

Today's feature is
  • An addon for netdog-v1.2 to get and set connection properties.
  • Setting the blocking timout for the receiver (ans).

Remember, 'ans' (accept) needs to be online to receive the 'orig'inating connection, just like with a phone. Someone has to be there to accept the call or you'll never 'connect'.

We're currently simplifying sockets by combining two or three related functions in a single call using a common...
Member
Posted in Uncategorized
Views 834 Comments 0 rainbowsally is offline

  



All times are GMT -5. The time now is 11:41 AM.

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
Open Source Consulting | Domain Registration