It was not so obvious that it is possible to stack those ballons (If you are wondering how did I take a screenshot on Android, you can find answer in one of previous posts).
Saturday, December 15, 2012
Bad Piggies, When Pigs Fly: solution for level 12
Labels:
android,
bad piggies,
game,
level 12,
rovio,
solution,
when pigs fly
Friday, November 23, 2012
How to run non-elevated process from existing elevated process?
The following set of articles shed light and provide sample source code for the topic.
- Article "How to create a low-integrity process in Visual C++, in Visual C#, and in Visual Basic.NET" - http://support.microsoft.com/kb/2278183
- Article "Designing Applications to Run at a Low Integrity Level" - http://msdn.microsoft.com/en-us/library/bb625960.aspx
- Article "Well-known security identifiers in Windows operating systems" - http://support.microsoft.com/kb/243330
Sample source code how to use CreateRestrictedToken to drop admin can be found here (http://www.autohotkey.com/board/topic/72812-run-as-standard-limited-user/), but it is not in C/C++.
Basically, you have to use the following call to drop admin rights (Vista+):
result = CreateRestrictedToken (hExistingToken, LUA_TOKEN, 0, NULL, NULL, NULL, NULL, NULL, &hNewToken);
If you have any questions, feel free to leave them as comments - I will provide you with answer.
Labels:
C,
C++,
elevated,
non admin,
non-elevated,
non-priveleged
Wednesday, September 19, 2012
How to take screenshot on Android 4.0 without app?
Thursday, August 9, 2012
Error retrieving address of IopRootDeviceNode
!devnode 0 1 produces "Error retrieving
address of IopRootDeviceNode"
This basically means that you have no symbols for your OS version. If you have set to download symbols from msdl.microsoft.com/download/symbols, but still getting error, then most probably you are using non-released version of OS and you have to download package with PDBs manually.
This basically means that you have no symbols for your OS version. If you have set to download symbols from msdl.microsoft.com/download/symbols, but still getting error, then most probably you are using non-released version of OS and you have to download package with PDBs manually.
Tuesday, August 7, 2012
Manual crash dumps on Windows
Microsoft KB http://support.microsoft.com/kb/244139 about generating a memory dump file by using the keyboard was not clear for me in terms of how to generate crash dump using custom key sequence instead of ctrl-scrollock.
For PS/2 (notebook keyboards works too):
REGEDIT4For USB keyboards:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\i8042prt\crashdump]
"Dump1Keys"=dword:00000020
"Dump2Key"=dword:00000021
REGEDIT4Just copy-paste one from above to file with crash.reg, run it, restart the system and you will be able to generate crash dump manually with custom key sequence by pressing Ctrl-D twice.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\kbdhid\crashdump]
"Dump1Keys"=dword:00000020
"Dump2Key"=dword:00000021
Follow me on social networks:
- Generic twitter: http://twitter.com/sahikon
- Photography-related:
- Twitter: http://twitter.com/sahikonphoto
- Instagram: http://instagram.com/sahikon.photo
- Facebook: http://facebook.com/sahikon.photo
- ArtPal Gallery (you can buy prints there): http://www.ArtPal.com/sahikon
Labels:
0x000000E2,
0xE2,
244139,
bugcheck,
crashdump,
Dump1Keys,
Dump2Key,
i8042prt,
kbdhid,
The end-user manually generated the crashdump,
windows
Monday, April 2, 2012
How to convert RGB to CMYK?
My current solution for free RGB to CMYK conversion on Windows.
What you will need:
What you will need:
- GIMP - powerful free tool with photoshop capabilities.
- Download page: http://www.gimp.org/downloads/
- Separate+, plugin for GIMP:
- Plugin page: http://registry.gimp.org/node/471
- Download page: http://cue.yellowmagic.info/softwares/separate-plus/index.html
- Adobe ICC Profiles
- Download page for ICC profiles for Windows: http://www.adobe.com/support/downloads/detail.jsp?ftpID=4075
Steps:
- Download and install ICC profiles
- Extract archive with Adobe ICC profiles. Dig into it and find files with "ICC" extension. Copy them to Windows\System32\Spool\Drivers\Color
- Download and install GIMP
- Follow standard instructions, remember the installation folder. It will be referred as "GIMP-INST" below
- Download and install Separate+ plugin
- Extract archive with Separate+ plugin
- Go to folder bin\win32 or bin\win32+lcms2
- Copy all executables from that folder to GIMP-INST\lib\gimp\2.0\plug-ins\
- Close GIMP if it was started after installation
- Start GIMP
- Open image you want to convert to CMYK
- Follow steps from section "----- How to use" from Separate+ readme file
I was able to convert and save JPEG with embedded ICC profile without any problem.
Feel free to post questions if you have any.
Labels:
cmyk,
gimp,
icc profiles,
jpeg cmyk,
jpeg rgb,
jpeg rgb to cmyk,
jpeg rgb to jpeg cmyk,
jpg rgb cmyk conversion,
jpg rgb to cmyk,
linux,
rgb,
rgb 2 cmyk,
rgb to cmyk,
rgb to cmyk conversion,
rgb2cmyk,
windows
Subscribe to:
Posts (Atom)