Showing posts with label Windows7. Show all posts
Showing posts with label Windows7. Show all posts

Monday, September 8, 2014

Monday, September 1, 2014

Cannot run batch file with double click (Windows 8) (*.bat)

All you have to do is open the registry and delete this key:

"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.BAT\UserChoice"

Done.

Taken from here

Saturday, September 1, 2012

Latex: Okular not showing figures in DVI file on Windows

If Okular does not show you the embedded EPS files of your compiled latex document it might be, that ghostscript is missing or is not found.
Install ghostscript (simple google search) and add <ghostscriptinstallpath>/bin to your system or user path.

Next time you open Okular it should display your images within DVI

Tuesday, May 15, 2012

LATEX: Texniccenter and Okular forward and reverse search

Prerequsites:
Proper configured Texniccenter for dvi , dvi > ps and dvi > ps > pdf output.
Kde for Windows with Okular.

Latex->DVI profile,
  • Latex ribbon, Arguments for compiler:
    --src -interaction=nonstopmode "%Wm" -synctex=-1
  • Viewer ribbon:
    Application path > C:\ProgramData\KDE\bin\okular.exe
    Command Line Arguments: '%bm.dvi#src:%l %Dc/%nc' --unique
    Search in output: '%bm.dvi#src:%l %Dc/%nc' --unique
    Do not close
Extension to PS and PDF should be straightforward.

Okular reverse search:
Setting > Configure Okular > Editor:
  • Dropdown box: Custom Text Editor
  • Command:"C:\Program Files (x86)\TeXnicCenter\TEXCNTR.exe" /ddecmd "[goto('%f', '%l')]"
Note that you have to adjust the paths, e.g. "c:\..." to your custom installation.




Tuesday, March 13, 2012

VisualStudio: LINK : fatal error LNK1105: cannot close file

The error:

LINK : fatal error LNK1105: cannot close file 

occurs a lot to me working on Network shares or shared folders in Virtual Machine.
In particular this error came out of nowhere in my VirtualBox Win7 System, running on a Ubuntu 10.04 host.
Fortunately, the solution was easy. Just install the current VirtualBox Addon Tools and after a restart the error was gone.
My Versions now:

Virtual Box: 4.1.8
Addons: 4.18

Of course, this error is obvious. Nevertheless, I do not care if my VirtualBox updates itself or not. I just want it running.

Tuesday, February 14, 2012

Monday, February 13, 2012

Tools: Office 2010 Print to File

It took me some time to actually find this well known Option. If you are in Excel or any other Office program you see this option well down  below the combo-box where you chose the Printer.

However, in Outlook 2010 it is on the initial Print Page.

Monday, February 6, 2012

GIT: DIFF working tree against some revision or branch

git diff  fw7e7f8wef8wef yourfile.c

 

Gives the changes between current working dir and revision  or branch: fw7e7f8wef8wef

Tuesday, January 31, 2012

GIT: Tag particular commit

Simply use git tag as usual but provide a valid commit hash:

 

git tag -a v1.0  cc622186a7322713f0ee4df8d58a1adcfe2ffef6   -m"tag a particular commit"

Thursday, November 10, 2011

VirtualBox: ResizeHD

In general the following should work:

VBoxManage modifyhd MYHD.vdi --resize 20000

 

Were 20000 is more or less 20 GB.

If the command fails several reasons could be the cause.

  • The virtual disk is already larger. Till now you cannot shrink drives that way. Take a close look in the VM whether you already use that space actually. In Windows this information is under Computer Management --> Storage --> Disk Management

  • The virtual disk has the wrong type. Issue the command:


 VBoxManage showhdinfo MYHD.vdi


If the result is not:


Format variant: dynamic default


you have to migrate your disk to that dynamic system. Since this is the default container for newer versions you can simply clone your HD file and then enlarge the new one:


VBoxManage clonehd MYHD.vdi MYNEWHD.vdi




  • I did not encounter other errors, please comment if you have any problem and/or solution




 

 

 

Tuesday, November 8, 2011

WINDOWS: Build Boost for Visual Studio 2010

Source:

http://stackoverflow.com/questions/2629421/how-to-use-boost-in-visual-studio-2010

If you are using headers only libraries, then all you need to do is to unarchive the boost download and set up the environment variables. The instruction below set the environment variables for Visual Studio only, and not across the system as a whole. Note you only have to do it once.

  1. Unarchive the latest version of boost (1.47.0 as of writing) into a directory of your choice (e.g.C:\boost_1_47_0).

  2. Create a new empty project in Visual Studio.

  3. Open the Property Manager and expand one of the configuration for the platform of your choice.

  4. Select & right click Microsoft.Cpp.<Platform>.user, and select Properties to open the Property Page for edit.

  5. Select VC++ Directories on the left.

  6. Edit the Include Directories section to include the path to your boost source files.

  7. Repeat steps 3 - 6 for different platform of your choice if needed.


If you want to use the part of boost that require building, but none of the features that requires external dependencies, then building it is fairly simple.

  1. Unarchive the latest version of boost (1.47.0 as of writing) into a directory of your choice (e.g.C:\boost_1_47_0).

  2. Start the Visual Studio Command Prompt for the platform of your choice and navigate to where boost is.

  3. Run: bootstrap.bat to build b2.exe (previously named bjam).

  4. Run b2: (Win32) b2 --toolset=msvc-10.0 --build-type=complete stage ; (x64) b2 --toolset=msvc-10.0 --build-type=complete architecture=x86 address-model=64 stage. Go for a walk / watch a movie or 2 / ....

  5. Go through steps 2 - 6 from the set of instruction above to set the environment variables.

  6. Edit the Library Directories section to include the path to your boost libraries output. (The default for the example and instructions above would be C:\boost_1_47_0\stage\lib. Rename and move the directory first if you want to have x86 & x64 side by side (such as to<BOOST_PATH>\lib\x86 & <BOOST_PATH>\lib\x64).

  7. Repeat steps 2 - 6 for different platform of your choice if needed.


If you want both x64 & win32 side by side, add "--stagedir=lib/win32" and "--stagedir=lib/x64" to the respective builds

Monday, August 15, 2011

Outlook 2010 HTML break blue citation line

Coming from Outlook 2003 everyone knows that one can break the blue line marking the cited text  by entering a new text or at least with the common reverse indent button. This does no longer work for Outlook 2007 and 2010 as the blue line is now represented in some different way.

You can get around this by Ctrl+Q but  if you check the email at the recipients mailbox, you will see the unbroken blue line again.

If you switch to Rich Text you can actually use Ctrl+Q and it will be that way at the recipients side too.

If you have a real solution to the html problem, please comment!!!!

 

Please refrain from any unfeasible comments about the sense and non-sense of HTML mails. For that a lot of forums are available online to take that garbage!

Thursday, August 11, 2011

OpenCL programming

OpenCL Kernels get compiled at execution time (Just in Time, JIT).
This means that any error inside the kernel is discovered at that time.
The error message I get till now are very silent about what the problem of the kernel is.
So there is just one method of commenting and uncommenting to get a kernel debugged just for compilation.

Intel however recently released it's first beta version of OpenCL with a lot of tools.
As with early Parallel Studio, these tools are only available for Windows (in particular Win Vista + and Server 2008) and not for Linux.
Note, that the runtime for compiling and running OpenCL is available for Linux, Mac and Windows!

Included is the Intel OpenCL Offline Compiler where you can load your kernel and precompile it.
Here the error messages are much more helpfull (of course, helpfull in a way ordinary compiler messages are helpfull :-)).
Nevertheless, a great tool which makes daily programming a lot easier.

LINK: http://www.intel.com/go/opencl/

Monday, July 11, 2011

GIT: Ignore File mode/right changes

If you have files or directories under git control and change the rights of them, git does recognize them as changed.
To force git to ignore these changes just execute the following.

git config core.filemode false

You can reenable that after all files have a new revision because of an actual change and are comitted in the new mode anyway.

Thursday, April 7, 2011

EMACS: Whitespaces

Motivation:
Each and every editor handles whitespaces tabs etc. differently. The first step to get everyting out to the open is so show whitespaces and tabs the way the editor sees them. For me it's emacs and the following lines in your ~/.emacs should give you a good view of whitespaces.
Look at this documentation for all references

Please be patient and drop me a comment if there are any errors or misunderstandings. I'm really no emacs pro!!!

(require 'whitespace)
(global-whitespace-mode t)

Wednesday, December 22, 2010

GIT: Tagging

Tags are nothing else then names for certain revision.
So called annotated tags store the status of the project at a specific point in time for future use.

Create a tag:
git tag -a v1.0 -m"Your comment for version 1.0"

Push tag to repository:
git push --tags

Monday, December 20, 2010

Windows7 / Vista / Server2008 unidentified network

Although a network consisting of a switch and 2 computers would be considered as very private, Win7(aso.) will consider it as unidentifiable and will not allow you to set the network to private.
Here's a howto on solving this issue:

1. Start –> run –> MMC –> press enter

2. In MMC console , from menu file select Add/Remove Snap-in

3. Select Group Policy Object editor –> Press Add –> select Local computer –> press OK –>press OK

4. Open Computer configration –>Windows Settings –>Security Settings –>select Network list manager policies
on the right Side you will see options:
double click –>Unidentified networks

5. Then you can select the option to consider the Unidentified networks as private and if user can change the
location


Source

Wednesday, August 4, 2010

Intel 5300 AGN Wireless Network adapter drops connection in Win7

When connecting to a wireless N-Network my Xt2 drops quite often connection if certain amounts of data are transferred, i.e. mostly when the data rate is quite high > 5 MB/s.
Following different suggestions about disabling powermanagement, N-Network compatibility and even encryption, I tried different settings in the device driver in Win7.
Basically I changed just one entry:
Fat Channel Intolerant
and the disconnects went away.
Intels states to Fat Cannel Intolerant:
Fat Channel Intolerant
This setting communicates to surrounding networks that this Wi-Fi adapter is not tolerant of 40MHz channels in the 2.4GHz band. The default setting is for this to be disabled (turned off) so that the adapter does not send this notification.
Note These settings are available only if the adapter is an Intel® WiMAX/WiFi Link 5350, Intel® WiMAX/WiFi Link 5150, Intel® WiFi Link 5300, Intel® WiFi Link 5100 or Intel® Wireless WiFi Link 4965AGN.

Source:

My opinion is, that the driver did not send this properly, got a wide 40 Mhz Channel and then dropped out.
This often occurs, if the data rate is increasing and quite large in order to ensure maximum bandwidth.
Any comments appreciated that would clear up this behaviour. Even more interesting would be some insights how this behaves in Linux.

/edit

Still the disconnects occur, but not so often.

/edit

With the newest driver from the dell Homepage the problems are gone till now. (27.08.2010)

/edit

It works till now with the current driver 3.15.0 directly from the Intel Homepage

/edit 19.09.2011

Finally I did a reinstall  of Win7 due to some other concerns (Partitioning etc.) and with the default Win7 or Windows Update Driver it works completely flawless since 2 weeks.

Maybe the installs and uninstalls flawed something in the networking, basically, I don't care.