Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

February 29, 2012

[SOLVED] Install PIL on Win x64

Goto http://www.lfd.uci.edu/~gohlke/pythonlibs/ and install e.g. PIL-1.1.7.win-amd64-py2.7.‌exe (=2.7 version of your python)

After you Install the PIL you can check if everything went right (you will need some image to do it)

Open console

C:\Python27>python
Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import Image
>>> im = Image.open('test.png')
>>> im.show()
>>>

If you have no errors everything went right

March 20, 2011

[SOLVED] Windows: This file does not have a program associated with it for performing this action

I messed up with my regestry under Windows 7 and now a getting an error while I am trying to launch explorer.exe.

"This file does not have a program associated with it for performing this action"

or in german
"Der Datei ist kein Programm zum Ausführen dieser Aktion zugeordnet. Installieren Sie ein entsprechendes Programm, oder erstellen Sie in der Systemsteuerung unter "Standardprogramme" eine Zuordnung, wenn bereits ein Programm installiert ist."
Here is the solution:
copy this lines below into a txt file then rename it to *.reg and double click to add this information to your registry

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\opennewprocess\command]
"DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"

[HKEY_CLASSES_ROOT\Folder\shell\opennewwindow\command]
"DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"

[HKEY_CLASSES_ROOT\opensearchfilefolderresult\shell\open\command]
@=""
"DelegateExecute"="{99969a8f-27e6-4adf-ab9f-b5b5e90d4733}"

[HKEY_CLASSES_ROOT\Folder\shell\explore\command]
"DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"

[HKEY_CLASSES_ROOT\WMP11.AssocFile.m3u\shell\Enqueue\command]
"DelegateExecute"="{45597c98-80f6-4549-84ff-752cf55e2d29}"

Source: sevenforums.com

September 12, 2010

[SOLVED] Use github repository under windows with tortoisegit


Generate public and private ssh keys:

Just open "putty key generator" and generate (1) your key by moving your mouse on the surface.
Than wite some comment(2) and secure it with random passphrase (3).
Than save public and private key part on your file system.

Copy ssh-rsa key from "Public key for parsing into OpenSSH authorised_keys file:"- text field (you will need it for the next step)



Adding the key to your GitHub account:

Use this  tutorial http://help.github.com/msysgit-key-setup/

Use Pageant for auto authorisation:

If you dont want to put every time your ssh key password use Pageant. Just start it and add your private key



Get GitHub repository url:

Goto to desired project and copy git url from it:
For example: on http://github.com/stuttgart-gtug/help-me it will be "git@github.com:stuttgart-gtug/help-me.git"



Clone aka "Check Out" the repository:

Now create a folder on your PC and hit right mouse button on it - choose "Git Clone..."



In next dialog put the URL of git repository and choose path to your private github key you generated before.



Now push "OK" and enjoy the ride



Voilà ;)

July 1, 2010

[SOLVED] Fix default protocol (http...) association in WIndows


Setting default browser manually


You can manually set the default browser by selecting it as the the default program for individual file types and protocols, as follows:




  • Windows XP and earlier: Open the Control Panel from the Windows Start menu.

    • In Windows 2000 and earlier, or if Windows XP is using the Control Panel "Classic View": Click on "Folder Options -> File Types".

    • In Windows XP, if using the Control Panel "Category View": Click on "Performance and Maintenance". Then, click on "File Types" in the left column under the heading "See Also".



  • Windows 7 and Vista: Click the Start button, open "Default Programs" and then click "Associate a file type or protocol with a program". For detailed instructions, see the Microsoft article here for Vista or here for Windows 7. Note: On Windows Vista (or above), you may be unable to associate the HTTP HTTPS or FTP protocols with SeaMonkey because it does not appear as an available option. See this forum topic for additional information.


Assign the following protocols and file types to the browser you wish to set as default:




  • URL:HyperText Transfer Protocol (HTTP protocol)

  • URL:HyperText Transfer Protocol with Privacy (HTTPS protocol)

  • URL:File Transfer Protocol {FTP protocol)

  • HTML File

  • HTM File (optional)


In Windows XP and earlier, you can find the URL protocols listed above in File Types, under extension "N/A" or "(NONE)".




Source: Default browser - MozillaZine Knowledge Base.

November 3, 2009

[SOLVED]In dem Ordner in dem die Anwendung heruntergeladen wurde können keine neuen Dateien erstellt oder gespeichert werden.

Anleitung:

1. DLMWin7HP64DE.exe (oder vergleichbare .exe-Datei) herunterladen, jedoch nicht ausführen.

2. DLMWin7HP64DE.exe » Eigenschaften » Reiter Kompabilität » Checkbox Programm als ein Administrator ausführen

3. DLMWin7HP64DE.exe » Als Administrator ausführen und warten, bis alle Dateien heruntergeladen worden sind

4. Win7-HP-Retail-de-de-x64.exe (oder vergleichbare .exe-Datei) » Als Administrator ausführen

5. Trotz fehlerhaftem Entpacken der Dateien (siehe o.g. Fehlermeldung) fortfahren

6. Oscdimg herunterladen, die .zip-Datei entpacken und deren Inhalt nach C:/Windows/System32 kopieren

7. Den durch 4. erstellten Ordner expandedSetup nach C:/ kopieren

8. Start » cmd » Als Administrator ausführen

9. Eingabe: Oscdimg.exe -u2 -b"C:\expandedSetup\boot\etfsboot.com" -h "C:\expandedSetup" C:\7.iso

10. Windows 7 USB/DVD Download Tool herunterladen und installieren

11. Windows 7 USB/DVD Download Tool ausführen, den Anweisungen folgen und unter Schritt 3 die auf C: liegende 7.iso-Datei einbinden

Sollte diese Methode bei jemandem Erfolg haben, insbesondere auf Hinsicht auf die Funktion der Product Keys, würde ich mich freuen, wenn er dies hier preisbigt.

social.answers.microsoft.com

August 25, 2009

[cmd]Batch - Filename Parameter Extensions

"When a parameter is used to supply a filename then the following extended syntax can be applied:



we are using the variable %1 (but this works for any parameter)



%~f1 - expands %1 to a Fully qualified path name - C:\utils\MyFile.txt



%~d1 - expands %1 to a Drive letter only - C:



%~p1 - expands %1 to a Path only - \utils\



%~n1 - expands %1 to a file Name, or if only a path is present - the last folder in that path



%~x1 - expands %1 to a file eXtension only - .txt



%~s1 - changes the meaning of f, n and x to reference the Short name (see note below)



%~1 - expand %1 removing any surrounding quotes (")



%~a1 - display the file attributes of %1



%~t1 - display the date/time of %1



%~z1 - display the file size of %1



%~$PATH:1 - search the PATH environment variable and expand %1 to the fully qualified name of the first match found.



The modifiers above can be combined:



%~dp1 - expands %1 to a drive letter and path only



%~nx2 - expands %2 to a file name and extension only" ss64.com

May 18, 2009

How do I pass parameters to a batch file?

"A. When you call a batch file, you can enter data after the command that the batch file refers to as %1, %2, etc. For example, in the batch file hello.bat, the following command
@echo hello %1 boy

would output
hello john boy

if you called it as
hello john

The following table outlines how you can modify the passed parameter.
Parameter Description
%1 The normal parameter.
%~f1 Expands %1 to a fully qualified pathname. If you passed only a filename from the current directory, this parameter would also expand to the drive or directory.
%~d1 Extracts the drive letter from %1.
%~p1 Extracts the path from %1.
%~n1 Extracts the filename from %1, without the extension.
%~x1 Extracts the file extension from %1.
%~s1 Changes the n and x options’ meanings to reference the short name. You would therefore use %~sn1 for the short filename and %~sx1 for the short extension.

The following table shows how you can combine some of the parameters.
Parameter Description
%~dp1 Expands %1 to a drive letter and path only.
%~sp1 For short path.
%~nx1 Expands %1 to a filename and extension only.

To see all the parameters in action, put them into the batch file testing.bat, as follows.
@echo off
echo fully qualified name %~f1
echo drive %~d1
echo path %~p1
echo filename %~n1
echo file extension %~x1
echo short filename %~sn1
echo short file extension %~sx1
echo drive and directory %~dp1
echo filename and extension %~nx1

Then, run the file with a long filename. For example, the batch file run on the file c:\temp\longfilename.long would produce the following output.
fully qualified name c:\TEMP\longfilename.long
drive c:
path \TEMP\
filename longfilename
file extension .long
short filename LONGFI~1
short file extension .LON
drive and directory c:\TEMP\
filename and extension longfilename.long

This method also works on the second and subsequent parameters. You simply substitute the parameter for 1 (e.g., %~f2 for the second parameter’s fully qualified path name).

The %0 parameter in a batch file holds information about the file when it runs and indicates which command extensions you can use with the file (e.g., %~dp0 gives the batch file’s drive and path)." windowsitpro.com

March 18, 2009

Launchy: The Open Source Keystroke Launcher

"Launchy is a free windows and linux utility designed to help you forget about your start menu, the icons on your desktop, and even your file manager.

Launchy indexes the programs in your start menu and can launch your documents, project files, folders, and bookmarks with just a few keystrokes!" launchy.net

March 15, 2009

HOWTO: Combining multiple Word documents into a single document.

"In Word 2000, do the following:

1. Open the first document

2. Move cursor to end of that document (or the next page after the end)

3. Go to "Insert" on the top menu, and from the dropdown list select "File", and browse to the next document.

Repeat steps 2 and 3 until all documents (chapters) have been added." computing.net

January 27, 2009

What to do when Word crashes?

"Such is the nature of the beast that sooner or later Word will crash. When you restart, Word may try and recover the document you were working on, but this is a bit hit and miss, so don't rely on it. Configure Word to create a backup file - and save often. It is good practice to drill CTRL+S into your brain and apply it every time you pause for thought. Then when the wheel comes off, you don't lose too much work." gmayor.com

December 2, 2008

How To Change the Windows XP Product Key Code


  1. "Click on Start and then Run.

  2. In the text box in the Run window, type regedit and click OK. This will open the Registry Editor program.

  3. Locate the HKEY_LOCAL_MACHINE folder under My Computer and click on the (+) sign next the folder name to expand the folder.

  4. Continue to expand folders until you reach the HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\Current Version\WPAEvents registry key.

  5. Click on the WPAEvents folder.

  6. In the results that appear in the window on the right, locate OOBETimer.

  7. Right-click on the OOBETimer entry and choose Modify from the resulting menu.

  8. Change at least one digit in the Value data text box and click OK. This will deactivate Windows XP.

  9. Click on Start and then Run.

  10. In the text box in the Run window, type the following command and click OK.

  11. %systemroot%\system32\oobe\msoobe.exe /a

  12. When the Windows Product Activation window appears, choose Yes, I want to telephone a customer service representative to activate Windows and then click Next.

  13. Click Change Product Key.

  14. Type your new, valid Windows XP product key in the New key text boxes and then click Update. " pcsupport.about.com

October 29, 2008

SOLVED: tortoise(svn) + putty(ssh) + pageant = no password input needed

"Lets do this step by step:

- login to your server
- type: ssh-keygen -b 1024 -t dsa -N passphrase -f mykey
- change "passphrase" to a secret keyword only you know
- type: ls -l mykey*

We just created a SSH2 DSA key with 1024 bit keyphrase. You will see two files. One named "mykey" and one named "mykey.pub". As you might guess, the .pub file is the public key file, the other is the private one. Next create a user on the server with a home directory:

- type: useradd -m myuser

You will have a directory under /home with the name "myuser", create a new directory in "myuser" called ".ssh":

- type: cd /home/myuser
- type: mkdir .ssh

Then go to the directory where you created your keys and copy the public key to the .ssh userfolder with the following command:

- type: cp mykey.pub /home/myuser/.ssh/authorized_keys

or if you already have some keys in place

- type: cat mykey.pub >> /home/myuser/.ssh/authorized_keys

Please pay attention to the filename, it really must be "authorized_keys". In some old OpenSSH implementations, it was "authorized_keys2". Now download the private key file to your client computer. Remember, the file was "mykey"

------------------------------------------------------------
SSH key generation and connection check (client)
------------------------------------------------------------
Grab the tools we need for doing SSH on windows on this site:
http://www.chiark.greenend.org.uk/~sgtatham/putty/

Just go to the download section and get "Putty", "Plink", "Pageant" and "Puttygen"

In order to use the private key we get from the server, we have to convert it to a putty format. This is because the private key file format is not specified by some standard body. To do this we simple open "puttygen" and open the "conversions" menu and chose "Import Key". Then browse to your file "mykey" which you got from the server enter your provided passphrase upon creation of the key. Finally click "Save private key" and save the file as "mykey.PPK" somewhere on disk.

Now we are ready to use this key for the first time to test the connection. In order to do this, we open the program "putty" and create a new session like this:

Session->HostName: Hostname or IP Adress of your server
Session->Protocol: SSH
Session->Saved Sessions: MyConnection
SSH->Prefered SSH Protocol version: 2
SSH->Auth->Private Key file for auth: $PATH$\mykey.PKK (replace $PATH$ with real path to the mykey.PKK file)

Then go back to Session tab and hit "save" button. You will see "MyConnection" in the list of available connections." tortoisesvn.net

October 7, 2008

ZendStudio For Eclipse v6_1_0

"http://downloads.zend.com/studio-eclipse/6.1.0/ZendStudioForEclipse-6_1_0.exe"

September 13, 2008

Start XP remode desktop via command prompt



Send invitation

start-> run-> rcimlby.exe -LaunchRA


Start remote client
start-> run-> mstsc /console

May 20, 2008

До чего техника дошла! - определитель настроения ;)

 Если вы вдруг забыли какого вы пола и какое у вас настроение то поможет маленькая программа от Фраунхофер университет ;)



из каринтки видно - это представитель мужского пола который в данный момент удевлен примерно на 25% ;)

Прогу можно скачать сдесь: http://www.iis.fraunhofer.de/bf/bv/kognitiv/biom/dd.jsp

April 10, 2008

Virtual PC Hard Disk Image for testing websites on IE on Windows XP SP2

Вот понимашь искал образы для Virtual PC (VPC) от мелкософта, что-бы одну прогу потестить. На работе лежал образ для VMWare на 10Gb(!) так этот гад не хотел через сеть работать, а свободного места локально как обычно нет...

Вот нашел на том-же мелкософте образы для тестов страничек ;)... ...написано... 1.5Гб в заархивированном виде ~400ГБ... ...ща попробуем ;)

A VPC hard disk image containing a pre-activated Windows XP SP2 or Windows Vista, and IE6, IE7 or IE8.

Линк на мелкософт

The Administrator and IETester passwords are P2ssw0rd

March 27, 2008

Cold Boot Attacks on Encryption Keys

Как получить доступ к выключенному комютеру? Охладить мемори!







http://citp.princeton.edu/memory/