Tag Archives: Windows

Apple Wireless Keyboard en Windows 7 [resuelto]

Hace días adquirí un teclado Wireless Keyboard de Apple (bluetooth) y quiero utilizarlo tanto en mi PC como en el MAC. Es el modelo bluetooth de DOS pilas.

Para que funcione correctamente en PC:

- Debes contar con bluetooth en tu PC. Si es un portátil, seguramente lo tendrá. Sino, tendrás que adquirir un dongle bluetooth. En mi caso, compré este en amazon

- Vamos a añadir funcionalidades con AppleWirelessKeyboard tool (en codeplex). En concreto, éstas:

    F3: PrintScreen
    F4: Task Manager
    F7-F9: iTunes control
    F10-F12: System volume Control
    Eject button toggles Fkeys/Functions.
    Fn + F key triggers function (useful when in F keys mode)
    Fn + Backspace = Delete
    Fn+ Eject: Eject CD

Descargamos el programa de su nueva página web y lo ejecutamos (como administrador). Probamos las nuevas funcionalidades y vemos que funcionan.

Por ejemplo, al pulsar F10 el sonido se apagará. Si queremos la funcionalidad habitual de la tecla F10 (lo habitual en windows), pulsaremos ctrl+F10. Podemos alternar entre un modo (MAC o Windows) y otro pulsando la tecla Eject.

En mi caso, sin embargo, se perdían con cada reinicio.

Por tanto, añadí este programa para que se ejecute automáticamente cada vez que Windows se inicia. En mi caso, copié el acceso directo al path C:\Users\miguel\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.

- Windows 7 lo detecta (teclado español internacional). Comprobemos:

En esta situación, “mayor que” y “menor que” no están donde deberían, sino encima del tabulador izquierdo. Al pulsar las teclas < ó > aparecen los símbolos ª y º.

Vamos a arreglar este problema con SharpKeys (hay otros programas similares, como KeyTweak ó The Microsoft Keyboard Layout Creator), pero SharpKeys es muy sencillo de usar (y solo hay que ejecutarlo una vez, escribir los cambios en el registro, y se puede borrar).

Primero abrimos el programa, y a continuación hacemos click en el botón “Add”. Se abre una ventana en la que encontramos dos listas, la de la izquierda con las teclas de origen y la de la derecha con las teclas de destino. La tecla de origen es la tecla que queremos cambiar, y la de destino representa la nueva función que le queremos dar.

Podemos asignar las teclas seleccionandolas directamente de la lista pero algunas apareceran al final de la lista como desconocidas (“unknown”). Para encontrarlas facilmente podemos usar el botón “Type key”, que nos permite presionar la tecla que queremos editar. Una vez hecho elegimos la nueva función en la lista de la derecha y Pulsamos OK para aceptar, y repetimos el proceso para las demás teclas.

Haré DOS cambios. El primero, pulsar sobre el “type here izquierdo”, la tecla ºª, “type here derecho” y tecla <>. El segundo, “type here izquierdo”, tecla <>, “type here derecho”, tecla ºª.

Deberá quedar algo asi:

Cuando las tengamos todas sólo hay que pulsar el botón Write to Registry, cerrar el programa y reniciar la sesión en Windows, o reiniciar el ordenador.

El teclado Apple Wireless Keyboard funcionará ahora perfectamente con Windows 7.

Symfony: Yui CSS compression with Assetic on Windows (WAMP) systems [SOLVED]

When I read about Symfony’s Assetic’s filters I felt quite excited and decided to try yui_css filter. When it comes to linux, everything worked just fine out of the box with the last Symfony release. But when I tried it in my Windows machine, it kept complaining ([exception] 500 | Internal Server Error | RuntimeException | blah-blah) and it has not an easy task to make yui work.

Just in case anyone can use this, here are the steps I followed to fix it:

0. Install JAVA JRE (in c:\Program Files (x86)\Java\jre6\), set the classpath and so on…

1. Prepare your templates for the use of filter='yui_css'. For instance (notice line 6):

1
2
3
4
5
6
7
8
9
{% stylesheets
	'@cursoe5Bundle/Resources/public/css/layout/mainStyle.css'
	'@cursoe5Bundle/Resources/public/css/layout/reset.css'
	'@cursoe5Bundle/Resources/public/css/layout/colors.css'
			output = 'css/compiled/styles.css'
			filter = 'yui_css'
%}
<link href="{{ asset_url }}" type="text/css" rel="stylesheet" media="screen" />
{% endstylesheets %}

2. Edit www-wamp-dir\Symmfony\config\config.yml and set the java path and the yui_css path. Here is my Assetic Configuration in config.yml (edit lines 5 and 11!)

1
2
3
4
5
6
7
8
9
10
11
# Assetic Configuration (www-wamp-dir\Symmfony\config\config.yml)
assetic:
    debug:          %kernel.debug%
    use_controller: false
    java: c:\\Program Files (x86)\\Java\\jre6\\bin\\java.exe
    filters:
        cssrewrite: ~
        yui_css: 
            jar: %kernel.root_dir%\Resources\java\yuicompressor-2.4.7.jar
        # closure:
        #     jar: %kernel.root_dir%/java/compiler.jar

3. Download the last yui compressor jar (yuicompressor-2.4.7) and extract its contents.
Move the jar (usually located in the ‘build’ folder) to the Symfony %kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar (%kernel.root_dir% is the one called ‘app’, which contains cache, config, logs, … folders. You should mkdir Resources and java folders inside).

3. If you get errors like “Runtime exception ...” (as this guy does) download the last Assetic stable release from assetic github and extract its contents.
Rename the extracted folder -originally called something like ‘kriswallsmith-assetic-b25d1fd‘)- to ‘assetic‘ and move it to wamp-www-dir\Symfony\vendor\ (will replace the old version! make sure you backup the old stuff before doing this!)

4. Assetic relies on Process Module. Previous version of Assetic had the code of Process module directly copied into Assetic (and had some bugs, like the PHP_WINDOWS_VERSION_MAJOR issue), but the last one just relies on the Symfony’s Process Module. [I recommend using Composer to make your life easier]

If you test your site and the CSS is broken, it is likely to be because of this. Check for something like “Fatal error: Class 'Symfony\Component\Process\ProcessBuilder' not found in src/Assetic/Filter“.
This means you have not installed ProcessBuilder, so download the last Process Module, which includes ProcessBuilder.
Extract the folder (originally called something like ‘symfony-Process-2e4da8c‘), rename it to ‘Process‘ and move it to wamp-www-dir\Synfony\vendor\symfony\src\Symfony\Component (will replace the old version! make sure you backup the old stuff before doing this!)

5. If you followed the steps, everything should be working by now. If you find some annoying messages like something was not found, or command not valid, or so, please make sure you have your cache cleared and your assets dumped:

php app/console --env=dev cache:clear
php app/console --env=dev cache:clear --no-debug
php app/console --env=dev assets:install web --no-debug
php app/console --env=dev assetic:dump --no-debug

Good luck! :)

Active directory: Delete protected OU (Windows SERVER 2008) [SOLVED]

In Windows 2008 Active Directory Users and Computers Microsoft activated new feature “Protect Container from accidential deletion”
During OU (organizational unit) creation you have the ability to mark OU as protected from accidental deletion , and if you try to delete OU you will receive the following error “You do not have sufficient privileges to delete “OU Name” , or this object is protected from accidential deletion

To unlock OU from accidential deleting protection do the following actions
* Open Active Directory Users and Computers
* Go to View
* Mark with “V” ” Advanced Features”
* Right click protected OU
* Go to Properties
* Navigate to “Object” Tab
* Remove the “V” from “Protect object from accidental deletion “

You could also achieve this by not protecting the OU’s in the moment of creation.

Via: kreslavsky.com