20 de septiembre de 2012

Mover cache de archivos sin conexión en windows 7

UNA MANERA:
I have found a way to move the offline cache in W7, but it means you have to reset your existing offline files, give the new location, and resync the folders in the new location.

Here is what to do (if you haven't synchronised any offline files yet, for exemple after a clean install, you can start directly in step 3):

0) Make sure your existing offline files are synchronised with the server, as you are going to lose ALL the offline copies and you don't want to lose any new/modified files. Make a backup if you're not sure and if the files are important.

1.Open an elevated command prompt window, and run the following command to reset and delete the content of existing Offline Files cache:
REG ADD "HKLM\System\CurrentControlSet\Services\CSC\Parameters" /v FormatDatabase /t REG_DWORD /d 1 /f

2) Reboot, the added key will be detected, all the content of the cache will be deleted, as well as the key itself (it only resets once).

3) Run Registry Editor (RegEdit). Navigate to the following registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\CSC
Right-click CSC, point to New, and then click Key, and named the new registry key as Parameters.
Right-click Parameters, point to New, and then click String Value, and name the new registry value as CacheLocation.
Right-click CacheLocation, and then click Modify.
In the Value data box, type the name of the new folder (make sure the folder is created) in which user wants to create the cache, in the following format:
\??\drive:\folder
   For example, \??\d:\csc
   Will assign new Offline Files cache saving location at D:\CSC folder.

4) Create the folder in the new location.

5) Reboot (not sure if it's necessary, but better safe than sorry).

6) Re-enable offline synchronization for the shared files and folders on the network. All new shared folders on the network which made to available offline will be synced and saved to the new location.

7) If you want to, you can delete the old cache location in c:\windows\csc doing this:
From an elevated command prompt type the following: Takeown /r /f C:\Windows\CSC
Then type: rd /s c:\windows\csc
and the old CSC folder is deleted.

NOTE: if you sync a lot of files and get a lot of errors, try to reset your offline files again following the above procedure (steps 1-2), disable offline files, reboot, enable offline files, reboot, and resync your files. Again, it worked for me...
 OTRA MANERA: crea un link caliente.
  1. Create a folder for your offline file cache. Something like D:\Offline.
  2. From an elevated command prompt type the following: Takeown /r /f C:\Windows\CSC
  3. Open the Sync Center and go to Manage Offline Files.
  4. Click Disable Offline Files and restart the machine.
  5. From an elevated command prompt issue the following commands.
    rd /s C:\Windows\CSC
    mklink /J C:\Windows\CSC "D:\Offline" (or whatever you folder name is, but be sure to use the quotations if you have a space in the name)
  6. Reopen the Manage Offline Files window and Enable Offline Files.
  7. Restart the machine
All files/folders that are made available offline should now be redirected to whichever folder you specified.


EN WINDOWS VISTA:

Para mover la carpeta de caché CSC a otra ubicación en Windows Vista, siga estos pasos:
  1. Abra un símbolo del sistema elevado. Para ello, haga clic en Inicio
    botón Inicio
    , haga clic en Todos los programas y en Accesorios, haga clic con el botón secundario en Símbolo del sistema y, después, haga clic en Ejecutar como administrador.

    Permiso de Control de cuentas de usuario
    Si se le pide la contraseña del administrador o que confirme la acción, escriba la contraseña o haga clic en Permitir.
  2. Escriba el comando siguiente y presione ENTRAR:
    REG ADD "HKLM\System\CurrentControlSet\Services\CSC\Parameters" /v MigrationParameters /t REG_DWORD /d 1 /f
  3. Escriba el comando siguiente y presione ENTRAR:
    c:\windows\system32\migwiz\migwiz.exe
    Nota: quizás tenga que sustituir una letra de unidad diferente, según su situación.
  4. En el Asistente de Windows Easy Transfer, seleccione las opciones siguientes:
    1. Haga clic en Iniciar una nueva transferencia.
    2. Haga clic en Mi equipo antiguo.
    3. Haga clic en Usar un CD, DVD u otro medio extraíble.
    4. Haga clic en Disco duro externo o ubicación de red.
    5. Escriba una ruta de acceso donde desea guardar el archivo Savedata.mig y haga clic en Siguiente.
    6. Haga clic en Opciones avanzadas.
    7. En el cuadro de diálogo Seleccione las cuentas de usuario, los archivos y las configuraciones que desea transferir, haga lo siguiente:
      1. Desactive todas las casillas.
      2. En Configuración del sistema y de programas (todos los usuarios), expanda Configuración de Windows, expanda Red e Internet y haga clic para activar la casilla Archivos sin conexión.
      3. Repita el paso anterior para cada usuario que aparezca en la página.
      4. Haga clic en Siguiente para comenzar el proceso de transferencia.

Cambiar la configuración del Registro

Advertencia: pueden producirse problemas graves si modifica incorrectamente el Registro mediante el Editor del Registro o con cualquier otro método. Estos problemas pueden requerir que reinstale el sistema operativo. Microsoft no puede garantizar la solución de esos problemas. Modifique el Registro bajo su responsabilidad.

Compruebe el tamaño de caché que se utiliza en el equipo. Para ello, siga estos pasos:
  1. En el Panel de control, haga clic en Red e Internet y, a continuación, haga clic en Archivos sin conexión.
  2. Haga clic en la ficha Uso del disco en el cuadro Archivos sin conexión.
Si el tamaño de caché es cero, sólo debe cambiar la configuración del Registro según se indica en la lista siguiente. O bien, si el tamaño de caché se establece en algún valor, siga todos los pasos.
  1. Haga clic en Inicio, escriba regedit en el cuadro Buscar y presione ENTRAR.
  2. Busque la siguiente subclave del Registro y haga clic en ella con el botón secundario:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\CSC
  3. Haga clic con el botón secundario en CSC, seleccione Nuevo y haga clic en Clave.
  4. Escriba Parameters en el cuadro de nombre.
  5. Haga clic en Parameters, seleccione Nuevo y haga clic en Valor de cadena.
  6. Para asignar nombre al nuevo valor, escriba CacheLocation y presione ENTRAR.
  7. Haga clic con el botón secundario en CacheLocation y, a continuación, haga clic en Modificar.
  8. En el cuadro Información del valor, escriba el nombre de la nueva carpeta en la que desea crear la memoria caché.

    Nota: utilice el formato de Microsoft Windows NT para el nombre de la carpeta. Por ejemplo, si desea que la ubicación de la memoria caché sea d:\csc, escriba lo siguiente:
    \??\d:\csc
  9. Cierre el Editor del Registro y reinicie el equipo.

Continuar con el proceso de transferencia

  1. En el símbolo del sistema elevado, escriba el comando siguiente y presione ENTRAR:
    c:\windows\system32\migwiz\migwiz.exe
  2. En el Asistente de Windows Easy Transfer, seleccione las opciones siguientes:
    1. Haga clic en Continuar una transferencia en curso.
    2. Haga clic en No, ya copié los archivos y configuraciones a un CD, DVD u otro medio extraíble.
    3. Haga clic en En un disco duro externo o una ubicación de red.
    4. Escriba la ruta de acceso del archivo Savedata.mig que se creó en el paso 4e del procedimiento de la sección "Cómo mover la carpeta CSC en Windows Vista".
    5. Asigne la cuenta de usuario del equipo antiguo a la cuenta de usuario correspondiente en el nuevo equipo.
    6. Haga clic en Siguiente y, a continuación, haga clic en Transferir.
    7. Reinicie el equipo.

Eliminar la memoria caché anterior

Cuando se hayan movido todos los archivos, elimine la memoria caché anterior de una compilación Candidato para versión comercial 1 (RC1) de Windows Vista. Para ello, siga estos pasos:
  1. En el símbolo del sistema elevado, escriba el comando siguiente y presione ENTRAR:
    takeown /r /f c:\windows\csc
  2. En el símbolo del sistema elevado, escriba el comando siguiente y presione ENTRAR:
    rd /s c:\windows\csc
Nota: la limitación de este método para eliminar la memoria caché anterior es que Takeown.exe sólo puede procesar rutas de acceso que no superen el valor de MAX_PATH (longitud máxima de una ruta de acceso). La longitud máxima de una ruta de acceso es de 260 caracteres. Si esta longitud de ruta de acceso supera el valor de MAX_PATH, se producirá un error en el comando takeown.

3 de septiembre de 2012

JOOMLA: ENGRANDECER PANTALLA DEL DOCLINK EN EL EDITOR

Index: components/com_docman/assets/css/doclink.css
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- components/com_docman/assets/css/doclink.css (revision 2a61a685c476f7a9c5780fa1aad1fae07892c1e5)
+++ components/com_docman/assets/css/doclink.css (revision )
@@ -9,7 +9,7 @@
  */
 
 html, body {
- width: 630; height: 500;
+ width: 760px; height: 700px;
    margin: 0px; padding: 0px;
    font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
@@ -69,9 +69,9 @@
 }
 
 /* force width to allow oveflow: auto */
-#tableContainer { overflow: auto; height: 120px; width: 540px; }
-#tableHead { width: 540px; }
-#tableBody { width: 520px; }
+#tableContainer { overflow: auto; height: 320px; width: 700px; }
+#tableHead { width: 680px; }
+#tableBody { width: 680px; }
 
 /* -- sortable table ----------------------------- */
 
Index: components/com_docman/includes/doclink.html.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- components/com_docman/includes/doclink.html.php (revision 2a61a685c476f7a9c5780fa1aad1fae07892c1e5)
+++ components/com_docman/includes/doclink.html.php (revision )
@@ -44,7 +44,7 @@
                     <button class="button" type="button" "name="updir" onclick="javascript:changeListCtrl('up');"><img src="<?php echo JURI::root(0)?>/components/com_docman/assets/images/btnFolderUp.gif" alt="<?php echo _DML_DCL_UP ?>" /></button>
                     </div>
                     <div id="browser">
- <iframe src="<?php echo JURI::base()?>index.php?option=com_docman&amp;task=doclink-listview" id="listview" name="listview" width="545" height="150" marginwidth="0" marginheight="0" align="top" scrolling="no" frameborder="0" hspace="0" vspace="0"></iframe>
+ <iframe src="<?php echo JURI::base()?>index.php?option=com_docman&amp;task=doclink-listview" id="listview" name="listview" width="700" height="375" marginwidth="0" marginheight="0" align="top" scrolling="no" frameborder="0" hspace="0" vspace="0"></iframe>
                     </div>
                 </td></tr>
             </tbody>
\ No newline at end of file
Index: plugins/editors-xtd/doclink/doclink.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- plugins/editors-xtd/doclink/doclink.php (revision 2a61a685c476f7a9c5780fa1aad1fae07892c1e5)
+++ plugins/editors-xtd/doclink/doclink.php (revision )
@@ -54,7 +54,7 @@
         $button->set('text', JText::_('DOClink'));
         $button->set('name', 'doclink');
         $button->set('link', 'index.php?option=com_docman&amp;task=doclink&amp;e_name='.$name.'&amp;format=raw');
- $button->set('options', "{handler: 'iframe', size: {x: 570, y: 510}}");
+ $button->set('options', "{handler: 'iframe', size: {x: 770, y: 710}}");
 
         return $button;
     }
\ No newline at end of file