marcelpetrick
QtGui.framework/Headers/qitemdelegate.h:124:40: error: macro “check” passed 3 arguments, but takes just 1
After adding some needed includes the following error can be shown by GCC:
1 |
QtGui.framework/Headers/qitemdelegate.h:124:40: error: macro "check" passed 3 arguments, but takes just 1 |
But you did not intend to deal neither with ‘QItemDelegate’ nor ‘check’. So what is the reason?
Have a look at the erroneous file: does it use an include like
1 |
#include <QtGui/QtGui> |
where someone was lazy as sh*t?
Replace this by the specialised includes. Recompile, fixed.
Some other workaround is the extensive use of
1 |
#undef check |
but I don’t really recommend this.
ps. ‘check’ is special. Did you try once to name your variable ‘string’?
Combine several images to a GIF-animation
- convert all JPG from the current directory to a looping GIF with 0.2 s delay and resize them to 600 px for the width:
1 |
convert -loop 0 -delay 20 -resize 600 img*.jpg out600.gif |
- GIF-animation was never easier! This is the result from combining 36 E6-photos (taken with a delay of roundabout 1 s).
git commit –amend (or: work-around the issue with changing merge-commit-message a posteriori with SmartGit)
SmartGit does not allow to modify auto-generated messages of merge-commits. If you follow a certain policy, then the auto-format does not fit to your style. So it has to be changed:
1 2 3 4 5 6 7 8 9 10 |
* go to your current repository * grab first the last message System:project marcelpetrick$ git shortlog -1 Marcel Petrick (1): Merge remote-tracking branch 'origin/master' into Ticket1234 * fix it, by prepending a certain prefix System:project marcelpetrick$ git commit --amend -m "Ticket1234: update to the current HEAD@master.\nMerge remote-tracking branch 'origin/master' into Ticket1234" [Ticket1234 4223666] Ticket1234: update to the current HEAD@master.\nMerge remote-tracking branch 'origin/master' into Ticket1234 Date: Sun Jan 18 14:26:37 2015 +0100 System:project marcelpetrick$ Merge remote-tracking branch 'origin/master' into Ticket1234 |
Left-click multiplier (or: ‘avoid carpal tunnel syndrome’)
A small helper-script to prevent fatigue. The task itself could not be automated, but the amount of emitted clicks could be.
So here is a small AutoIt to trigger the needed clicks at the current mouse-position.
Some “exit the script”-sugar could be added, but I did not do.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
HotKeySet("+c", "captureB") ; brief: if caps+c is pressed, then emit 18 LMB-clicks at the current position Func captureB() ; for tracking ConsoleWrite("captureB called" & @CRLF) ; send ten left clicks For $i = 0 To 17 Step 1 ;18 is half the max amount MouseClick("left") ConsoleWrite($i & @CRLF) Sleep(10) Next EndFunc ; body While 1 Sleep(200) WEnd |
Stitch two pictures together
* install imagemagick
1 |
$ convert <file0> <file1> +append <outfilename> |
* note: + appends horizontally; – vertically