<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:lang="en">
<title>Data Discussions</title>
<link rel="alternate" type="text/html" href="http://mblog.lib.umich.edu/DataDiscussions/" />
<modified>2013-05-31T14:23:45Z</modified>
<tagline>All Things Data</tagline>
<id>tag:mblog.lib.umich.edu,2013:/DataDiscussions/8330</id>
<generator url="http://www.movabletype.org/" version="3.17">Movable Type</generator>
<copyright>Copyright (c) 2013, kkwaiser</copyright>
<entry>
<title>Copy and import a mySQL database</title>
<link rel="alternate" type="text/html" href="http://mblog.lib.umich.edu/DataDiscussions/archives/2013/06/copy_and_import.html" />
<modified>2013-05-31T14:23:45Z</modified>
<issued>2013-06-01T21:37:51Z</issued>
<id>tag:mblog.lib.umich.edu,2013:/DataDiscussions/8330.59234</id>
<created>2013-06-01T21:37:51Z</created>
<summary type="text/plain">This is the original source. Createa backup of the database: $ mysqldump --opt -u [user] -p [db] -h [host] &gt; [filename].sql - If dropped -h default to localhost. Create backup with compression: $ mysqldump --opt -u [user] -p [db] -h...</summary>
<author>
<name>kkwaiser</name>
<url>web page</url>
<email>kkwaiser@umich.edu</email>
</author>
<dc:subject>How to...</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://mblog.lib.umich.edu/DataDiscussions/">
<![CDATA[<p>This is the <a href="http://www.rubyrobot.org/article/duplicate-a-mysql-database">original source</a>.</p>

<p><strong>Createa  backup of the database:</strong><br />
$ mysqldump --opt -u [user] -p [db] -h [host] > [filename].sql<br />
- If dropped -h default to localhost.</p>

<p><strong>Create backup with compression:</strong><br />
$ mysqldump --opt -u [user] -p [db] -h [host] | gzip > [filename].sql.gz</p>

<p><strong>Dump and import:</strong><br />
$ mysqldump --opt -u [user] -p [db] -h [host] | mysql -u [user] -p -h [host] [db]<br />
- The first part dumps database 1 and the second part imports the dump into database 2.</p>

<p><strong>Connect to mySQL via command line:</strong></p>

<p>$ mysql -u [dbuser] -h [dbhost] -p</p>

<p>mysql> </p>

<p><strong>Import a database:</strong></p>

<p>$ mysql -u [dbuser] -p -h [dbhost] [dbname] < [db_toimport.sql] </p>

<p><strong>SFTP into a machine through a non-standard port</strong></p>

<p>$ sftp -oPort=[port] [username]@[host]</p>

<p><br />
</p>]]>

</content>
</entry>
<entry>
<title>SAS Log Options</title>
<link rel="alternate" type="text/html" href="http://mblog.lib.umich.edu/DataDiscussions/archives/2013/05/sas_log_options.html" />
<modified>2013-05-31T13:35:37Z</modified>
<issued>2013-05-31T13:33:39Z</issued>
<id>tag:mblog.lib.umich.edu,2013:/DataDiscussions/8330.66446</id>
<created>2013-05-31T13:33:39Z</created>
<summary type="text/plain">3 good tips on how to handle full logs in SAS....</summary>
<author>
<name>kkwaiser</name>
<url>web page</url>
<email>kkwaiser@umich.edu</email>
</author>
<dc:subject>SAS</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://mblog.lib.umich.edu/DataDiscussions/">
<![CDATA[<p><a href="http://support.sas.com/kb/5/888.html">3 good tips</a> on how to handle full logs in SAS.</p>]]>

</content>
</entry>
<entry>
<title>Visual Studio 2008 export to pdf error</title>
<link rel="alternate" type="text/html" href="http://mblog.lib.umich.edu/DataDiscussions/archives/2013/04/visual_studio_2.html" />
<modified>2013-04-19T14:07:22Z</modified>
<issued>2013-04-19T14:04:30Z</issued>
<id>tag:mblog.lib.umich.edu,2013:/DataDiscussions/8330.66334</id>
<created>2013-04-19T14:04:30Z</created>
<summary type="text/plain">I am really beginning to hate this software. I get this error when trying to save a report to PDF. It doesn&apos;t occur when saving to doc. Error occurred during local report processing. An item with the same key has...</summary>
<author>
<name>kkwaiser</name>
<url>web page</url>
<email>kkwaiser@umich.edu</email>
</author>
<dc:subject>How to...</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://mblog.lib.umich.edu/DataDiscussions/">
<![CDATA[<p>I am really beginning to hate this software. </p>

<p>I get this error when trying to save a report to PDF. It doesn't occur when saving to doc.</p>

<blockquote>
Error occurred during local report processing. An item with the same key has already been added.
</blockquote>

<p><a href="http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/54379779-2421-423f-b6f5-f07d151311ec">Someone indicated</a> "This is confirmed to be a known issue, and will be fixed" back in 2010 but, of course, I am still seeing the problem.</p>]]>

</content>
</entry>
<entry>
<title>Visual Studio and blankpages</title>
<link rel="alternate" type="text/html" href="http://mblog.lib.umich.edu/DataDiscussions/archives/2013/04/visual_studio_a.html" />
<modified>2013-04-09T21:24:50Z</modified>
<issued>2013-04-09T21:21:30Z</issued>
<id>tag:mblog.lib.umich.edu,2013:/DataDiscussions/8330.66308</id>
<created>2013-04-09T21:21:30Z</created>
<summary type="text/plain">Using visual studio to generate metadata codebooks probably isn&apos;t the ideal solution but that&apos;s what the last person used. Here are some links related to the removal of blank pages. Stop blank pages after each page by setting the widths...</summary>
<author>
<name>kkwaiser</name>
<url>web page</url>
<email>kkwaiser@umich.edu</email>
</author>
<dc:subject>How to...</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://mblog.lib.umich.edu/DataDiscussions/">
<![CDATA[<p>Using visual studio to generate metadata codebooks probably isn't the ideal solution but that's what the last person used. Here are some links related to the removal of blank pages.</p>

<p>Stop blank pages after each page by <a href="http://stackoverflow.com/questions/362902/how-to-get-rid-of-blank-pages-in-pdf-exported-from-ssrs">setting the widths correctly</a>.</p>

<p>Stop blank page at the <a href="http://www.bidn.com/blogs/dustinryan/ssis/492/blank-page-at-end-of-ssrs-2008-report">end of the document<a>.</p>]]>

</content>
</entry>
<entry>
<title>Query to select universe statements from MQDS database</title>
<link rel="alternate" type="text/html" href="http://mblog.lib.umich.edu/DataDiscussions/archives/2013/03/query_to_select.html" />
<modified>2013-03-04T18:41:35Z</modified>
<issued>2013-03-04T18:27:34Z</issued>
<id>tag:mblog.lib.umich.edu,2013:/DataDiscussions/8330.66150</id>
<created>2013-03-04T18:27:34Z</created>
<summary type="text/plain">The use statement specifies the database context to be used. use MQDSV4 go select a.id, a.varName, c.MachineReadable, c.UniverseSize from dbo.var a join dbo.var_insUniverse b on a.ID = b.varID join dbo.insUniverse c on b.insUniverseID = c.insUniverseID...</summary>
<author>
<name>kkwaiser</name>
<url>web page</url>
<email>kkwaiser@umich.edu</email>
</author>

<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://mblog.lib.umich.edu/DataDiscussions/">
<![CDATA[<p>The use statement specifies the database context to be used.</p>

<blockquote><pre><code>

<p>use MQDSV4<br />
go</p>

<p>select <br />
	a.id,<br />
	a.varName,<br />
	c.MachineReadable,<br />
	c.UniverseSize<br />
	<br />
from dbo.var a<br />
join dbo.var_insUniverse b<br />
on a.ID = b.varID<br />
join dbo.insUniverse c<br />
on b.insUniverseID = c.insUniverseID<br />
</blockquote></pre></code></p>]]>

</content>
</entry>
<entry>
<title>Word of the day: Codeframe</title>
<link rel="alternate" type="text/html" href="http://mblog.lib.umich.edu/DataDiscussions/archives/2013/02/word_of_the_day.html" />
<modified>2013-02-26T19:12:35Z</modified>
<issued>2013-02-26T19:10:38Z</issued>
<id>tag:mblog.lib.umich.edu,2013:/DataDiscussions/8330.66139</id>
<created>2013-02-26T19:10:38Z</created>
<summary type="text/plain">A coding frame, code frame, or codebook shows how verbal or visual data have been converted into numeric data for purposes of analysis. It provides the link between the verbal data and the numeric data and explains what the numeric...</summary>
<author>
<name>kkwaiser</name>
<url>web page</url>
<email>kkwaiser@umich.edu</email>
</author>
<dc:subject>Survey Science</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://mblog.lib.umich.edu/DataDiscussions/">
<![CDATA[<blockquote>A coding frame, code frame, or codebook shows how verbal or visual data have been converted into numeric data for purposes of analysis. It provides the link between the verbal data and the numeric data and explains what the numeric data mean.</blockquote>

<p><a href="srmo.sagepub.com/view/the-sage-encyclopedia-of-social-science-research-methods/n129.xml">SOURCE</a></p>]]>

</content>
</entry>
<entry>
<title>Set SAS to display variable names not labels</title>
<link rel="alternate" type="text/html" href="http://mblog.lib.umich.edu/DataDiscussions/archives/2013/02/set_sas_to_disp.html" />
<modified>2013-02-21T20:29:34Z</modified>
<issued>2013-02-21T20:27:30Z</issued>
<id>tag:mblog.lib.umich.edu,2013:/DataDiscussions/8330.66121</id>
<created>2013-02-21T20:27:30Z</created>
<summary type="text/plain">I don&apos;t understand this default setting but it can be changed. - Click in or on the Explorer pane to highlight the the Explorer window. - Select Tools-&gt;Options-&gt;Explorer in the menus. - Select the Members tab. - Double click on...</summary>
<author>
<name>kkwaiser</name>
<url>web page</url>
<email>kkwaiser@umich.edu</email>
</author>
<dc:subject>SAS</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://mblog.lib.umich.edu/DataDiscussions/">
<![CDATA[<p>I don't understand this default setting but it <a href="http://technologytales.com/2011/09/15/setting-viewtable-to-show-column-names-in-sas/">can be changed</a>.</p>

<p>- Click in or on the Explorer pane to highlight the the Explorer window.<br />
- Select Tools->Options->Explorer in the menus.<br />
- Select the Members tab.<br />
- Double click on the TABLE icon.<br />
- Double click on the &Open action.<br />
- Set the Action command to:  VIEWTABLE %8b.’%s’.DATA COLHEADING=NAMES<br />
- Click on the Set Default button.<br />
- Save changes and close the Explorer Options window</p>]]>

</content>
</entry>
<entry>
<title>PDF to Word conversion particularities</title>
<link rel="alternate" type="text/html" href="http://mblog.lib.umich.edu/DataDiscussions/archives/2013/02/pdf_to_word_con.html" />
<modified>2013-02-18T21:22:55Z</modified>
<issued>2013-02-18T20:46:24Z</issued>
<id>tag:mblog.lib.umich.edu,2013:/DataDiscussions/8330.66110</id>
<created>2013-02-18T20:46:24Z</created>
<summary type="text/plain">I recently needed to convert some fairly complex (i.e. with tables, images) pdfs to word documents. The conversion went OK but a large number of the images held within tables were not visible and the ones that were visible were...</summary>
<author>
<name>kkwaiser</name>
<url>web page</url>
<email>kkwaiser@umich.edu</email>
</author>
<dc:subject>How to...</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://mblog.lib.umich.edu/DataDiscussions/">
<![CDATA[<p>I recently needed to convert some fairly complex (i.e. with tables, images) pdfs to word documents. The conversion went OK but a large number of the images held within tables were not visible and the ones that were visible were not selectable.</p>

<p>Upon doing some research, I found out that the unselectable images (vector images perhaps) could be selected if you went to <a href="http://geekswithblogs.net/TimH/archive/2007/08/30/115064.aspx#402660">home> select > select objects ( Click on the pic )</a>. </p>

<p>From there it was simply a matter of right-click > Format Object > Layout > In Front of text.</p>

<p>In order to avoid having to select all the objects on each page (you can't select across pages) you can <a href="http://help.wugnet.com/office/select-objects-word-document-ftopict1012329.html">select them all</a> by:</p>

<blockquote>You can make use of the Select Multiple Objects command, which opens a dialog box that easily allows you to select objects. In Word 2007, you can add this command to the Quick Access Toolbar. 
</blockquote>]]>

</content>
</entry>
<entry>
<title>Anonymizing medical data</title>
<link rel="alternate" type="text/html" href="http://mblog.lib.umich.edu/DataDiscussions/archives/2013/02/anonymizing_med.html" />
<modified>2013-02-11T15:53:31Z</modified>
<issued>2013-02-11T15:48:24Z</issued>
<id>tag:mblog.lib.umich.edu,2013:/DataDiscussions/8330.66068</id>
<created>2013-02-11T15:48:24Z</created>
<summary type="text/plain">Just a few thoughts copped from a recent email exchange on the Research Dataman list: It&apos;s one thing to be aware of the risks - it&apos;s another to decide how to manage them. Refusing to disclose *any* data except under...</summary>
<author>
<name>kkwaiser</name>
<url>web page</url>
<email>kkwaiser@umich.edu</email>
</author>
<dc:subject>Data Management</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://mblog.lib.umich.edu/DataDiscussions/">
<![CDATA[<p>Just a few thoughts copped from a recent email exchange on the Research Dataman list:<br />
<blockquote><br />
 It's one thing to be aware of the risks - it's another to decide how to<br />
manage them. Refusing to disclose *any* data except under very carefully<br />
controlled circumstances is one approach, and it's probably valid for data<br />
where the reuse potential is likely to be limited to a few instances at most.<br />
For data with greater reuse potential techniques adopted for some government<br />
datasets may be appropriate. These include perturbation of some of the numbers<br />
or suppression of some numbers in cases that might lead to disclosure even in<br />
aggregated data. Both need expert statistical advice to ensure that the<br />
resultant data can still be used to do something useful but isn't disclosive.</p>

<p>Examples of perturbation include varying a subject's age by a few years in<br />
either direction. An example of suppression I am aware of comes from the Schools<br />
Census - in any school where the number of pupils receiving free school meals<br />
is below 5, the exact total is redacted from the published data.</blockquote><br />
<blockquote><br />
Ultimately the only way to prevent identification of individuals by combining datasets (i.e. which include sufficiently sensitive data items to permit identification but not actual confidential=identifiable data) is through the Data Sharing or Re-Use Agreements between data controllers and data processors. </blockquote></p>

<p>Websites that were mentioned:</p>

<p><br />
<a href="http://www.arec.org.uk/">Association of Research Ethics Committees</a></p>

<p><a href="http://www.ethox.org.uk/">The Ethox Centre</a></p>

<p><a href="http://www.data-archive.ac.uk/create-manage/consent-ethics/anonymisation?index=0">Anonymisation of data</a> from UK Data Archive</p>]]>

</content>
</entry>
<entry>
<title>Debugging in SAS</title>
<link rel="alternate" type="text/html" href="http://mblog.lib.umich.edu/DataDiscussions/archives/2013/01/debugging_in_sa.html" />
<modified>2013-01-29T17:32:45Z</modified>
<issued>2013-01-29T16:54:19Z</issued>
<id>tag:mblog.lib.umich.edu,2013:/DataDiscussions/8330.65993</id>
<created>2013-01-29T16:54:19Z</created>
<summary type="text/plain">I&apos;m working through some tutorials and this seems to be an important topic. putlog _all_; *prints the current pdv (working data row) to the log; the _ERROR_ variable increments to one if a syntax error occurs. You can use conditional...</summary>
<author>
<name>kkwaiser</name>
<url>web page</url>
<email>kkwaiser@umich.edu</email>
</author>
<dc:subject>SAS</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://mblog.lib.umich.edu/DataDiscussions/">
<![CDATA[<p>I'm working through some tutorials and this seems to be an important topic.</p>

<p><br />
putlog _all_; *prints the current pdv (working data row) to the log;</p>

<p>the _ERROR_ variable increments to one if a syntax error occurs. You can use conditional logic to output variable information to the log.</p>

<p>putlog 'WARNING: blah blah'; * will colorcode the output</p>

<p><br />
Debugging<br />
data customers /debug; *will enter debug mode;</p>

<p>- doesn't work with SAS Enterprise Guide</p>

<p>Step - goes to nex step<br />
Watch or W [variable] - auto-print variable value when it changes<br />
Deletewatch or DW [variable]<br />
Examine or E [variable] - print a variable value<br />
$ examine varible $quote7. - print variable within quotes and up to 7 characters<br />
List or L [_All_ Files Break INFILES Datasets WATCH] - print all items within the specified option<br />
Set [variable] = [value] - change a variable value</p>

<p>List or L </p>

<p><br />
set [dataset] END=last; * when the data step cycles through the last observation of the dataset 'last' will be set to one. Conditionals can be added to do something special upon reaching the last row;<br />
</p>]]>

</content>
</entry>
<entry>
<title>Variable Lists</title>
<link rel="alternate" type="text/html" href="http://mblog.lib.umich.edu/DataDiscussions/archives/2013/01/variable_lists.html" />
<modified>2013-01-28T21:44:34Z</modified>
<issued>2013-01-28T21:39:38Z</issued>
<id>tag:mblog.lib.umich.edu,2013:/DataDiscussions/8330.65990</id>
<created>2013-01-28T21:39:38Z</created>
<summary type="text/plain">numbered range total = sum(of Qtr1-Qtr4); *will hit Qtr2, Qtr3, etc.; name range specify columns in between those specified total = sum(of Qtr1--fourth); total = sum(of Qtr1-numeric-fourth); *only &apos;numeric&apos; (can use &apos;character&apos; too) between the variables specified; name prefix all...</summary>
<author>
<name>kkwaiser</name>
<url>web page</url>
<email>kkwaiser@umich.edu</email>
</author>
<dc:subject>SAS</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://mblog.lib.umich.edu/DataDiscussions/">
<![CDATA[<p>numbered range <br />
total = sum(of Qtr1-Qtr4); *will hit Qtr2, Qtr3, etc.;</p>

<p>name range<br />
specify columns in between those specified<br />
total = sum(of Qtr1--fourth); <br />
total = sum(of Qtr1-numeric-fourth); *only 'numeric' (can use 'character' too) between the variables specified;</p>

<p>name prefix <br />
all columns beginning with specified string</p>

<p>total = sum(of Tot:);</p>

<p>Others</p>

<p>Total = sum(of _All_); *Can also use _Numeric_ or _Character_;</p>]]>

</content>
</entry>
<entry>
<title>SAS FAQ #31346987234: The DSD Infile option</title>
<link rel="alternate" type="text/html" href="http://mblog.lib.umich.edu/DataDiscussions/archives/2013/01/sas_faq_3134698.html" />
<modified>2013-01-28T18:27:21Z</modified>
<issued>2013-01-28T18:25:17Z</issued>
<id>tag:mblog.lib.umich.edu,2013:/DataDiscussions/8330.65987</id>
<created>2013-01-28T18:25:17Z</created>
<summary type="text/plain">Using the DSD option as part of an infile statement will cause sas to ignore &quot;delimiters&quot; that may be found within a quoted text string. Two consecutive delimiters will lead to a missing value with DSD. A source....</summary>
<author>
<name>kkwaiser</name>
<url>web page</url>
<email>kkwaiser@umich.edu</email>
</author>
<dc:subject>SAS</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://mblog.lib.umich.edu/DataDiscussions/">
<![CDATA[<p>Using the DSD option as part of an infile statement will cause sas to ignore "delimiters" that may be found within a quoted text string.</p>

<p>Two consecutive delimiters will lead to a missing value with DSD.</p>

<p>A <a href="http://statistics.ats.ucla.edu/stat/sas/faq/InfileOptions_ut.htm">source</a>.</p>]]>

</content>
</entry>
<entry>
<title>Read variables or datasets with names containing spaces</title>
<link rel="alternate" type="text/html" href="http://mblog.lib.umich.edu/DataDiscussions/archives/2013/01/read_variables.html" />
<modified>2013-01-25T19:46:04Z</modified>
<issued>2013-01-25T19:43:45Z</issued>
<id>tag:mblog.lib.umich.edu,2013:/DataDiscussions/8330.65979</id>
<created>2013-01-25T19:43:45Z</created>
<summary type="text/plain">SAS hates spaces - which I am fine with - but sometimes a variable or dataset exists with spaces in it&apos;s name. To get around this put the name/variable into quotes followed by an &apos;n&apos;. proc contents data=work.&apos;poorly named dataset&apos;n;...</summary>
<author>
<name>kkwaiser</name>
<url>web page</url>
<email>kkwaiser@umich.edu</email>
</author>
<dc:subject>SAS</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://mblog.lib.umich.edu/DataDiscussions/">
<![CDATA[<p>SAS hates spaces - which I am fine with - but sometimes a variable or dataset exists with spaces in it's name. To get around this put the name/variable into quotes followed by an 'n'.</p>

<p>proc contents data=work.'poorly named dataset'n;<br />
run;</p>

<p>BAM</p>]]>

</content>
</entry>
<entry>
<title>How to install Drush on ITS servers</title>
<link rel="alternate" type="text/html" href="http://mblog.lib.umich.edu/DataDiscussions/archives/2013/01/how_to_install_1.html" />
<modified>2013-01-24T19:22:29Z</modified>
<issued>2013-01-24T19:22:14Z</issued>
<id>tag:mblog.lib.umich.edu,2013:/DataDiscussions/8330.65972</id>
<created>2013-01-24T19:22:14Z</created>
<summary type="text/plain">How to install Drush on ITS servers -------------------- See http://drupal.org/project/drush README.txt -------------------- 1. SSH into ITS servers via the PHP-enabled host $ ssh [uniqname]@[email webmaster@umich.edu for the hostname] 2. Go to your group or personal AFS space to install Drush....</summary>
<author>
<name>kkwaiser</name>
<url>web page</url>
<email>kkwaiser@umich.edu</email>
</author>
<dc:subject>Drupal 7</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://mblog.lib.umich.edu/DataDiscussions/">
<![CDATA[<p>How to install Drush on ITS servers</p>

<p>--------------------<br />
See http://drupal.org/project/drush README.txt<br />
--------------------</p>

<p>1. SSH into ITS servers via the PHP-enabled host<br />
$ ssh [uniqname]@[email webmaster@umich.edu for the hostname]</p>

<p>2. Go to your group or personal AFS space to install Drush. This document uses the personal space.<br />
$ cd /afs/umich.edu/user/[]/[]/[uniqname]/Private</p>

<p>3. Download and unpack the latest, appropriate version of Drush given your Drupal install. Drush5 works for Drupal 6 and Drupal 7<br />
$ wget http://ftp.drupal.org/files/projects/drush-7.x-5.8.tar.gz<br />
$ tar -xzf drush-7.x-5.8.tar.gz<br />
$ ls drush</p>

<p>4. Make the 'drush' command executable<br />
- Note this diverges from the Drush README considerably because the "export PATH=" command is "bash" (Bourne Again SHell) syntax.<br />
and the default shell on the PHP-enable host is the C-shell ("csh").</p>

<p>a) Add this command to you .login file<br />
$ cd ~<br />
$ nano .login<br />
At bottom of file (where is specifies for customizations) add</p>

<p>set path=($path /afs/umich.edu/user/[]/[]/[uniqName]/Private/drush )</p>

<p>This command could also go into your ~/.cshrc file</p>

<p>b) Alternatively, if you already have a "~/bin/" directory, you could use the "ln -s"<br />
command to create a symbolic file link (sym-link) in there for "drush"<br />
with:</p>

<p>ln -s ~/Private/drush/drush ~/bin/drush</p>

<p>5. Test that Drush works</p>

<p>$ cd /path/to/drupal/install<br />
$ drush help</p>]]>

</content>
</entry>
<entry>
<title>Install or Move CKFinder Libraries so sites/all/libraries</title>
<link rel="alternate" type="text/html" href="http://mblog.lib.umich.edu/DataDiscussions/archives/2013/01/_sudo_drush_up.html" />
<modified>2013-01-24T18:54:01Z</modified>
<issued>2013-01-24T15:17:56Z</issued>
<id>tag:mblog.lib.umich.edu,2013:/DataDiscussions/8330.65971</id>
<created>2013-01-24T15:17:56Z</created>
<summary type="text/plain">$ sudo drush up CKeditor is broken. Fix it. 1) How to install CKEditor Library $ cd sites/all $ mkdir libraries $ wget http://download.cksource.com/CKEditor/CKEditor/CKEditor%204.0.1/ckeditor_4.0.1_standard.tar.gz $ sudo tar -xzf ckeditor_4.0.1_standard.tar.gz Probably some other steps here... 2) How to install CKFinder $...</summary>
<author>
<name>kkwaiser</name>
<url>web page</url>
<email>kkwaiser@umich.edu</email>
</author>
<dc:subject>Drupal 7</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en" xml:base="http://mblog.lib.umich.edu/DataDiscussions/">
<![CDATA[<p>$ sudo drush up</p>

<p>CKeditor is broken. Fix it.</p>

<p>1) <a href="http://docs.cksource.com/CKEditor_for_Drupal/Open_Source">How to install</a> CKEditor Library</p>

<p>$ cd sites/all<br />
$ mkdir libraries<br />
$ wget http://download.cksource.com/CKEditor/CKEditor/CKEditor%204.0.1/ckeditor_4.0.1_standard.tar.gz<br />
$ sudo tar -xzf ckeditor_4.0.1_standard.tar.gz </p>

<p>Probably some other steps here...</p>

<p>2) <a href="http://docs.cksource.com/CKEditor_for_Drupal/Open_Source/Drupal_7/CKFinder">How to install</a> CKFinder</p>

<p>$ sudo wget http://download.cksource.com/CKFinder/CKFinder%20for%20PHP/2.3.1/ckfinder_php_2.3.1.tar.gz<br />
$ sudo tar -xzf ckfinder_php_2.3.1.tar.gz </p>

<p><br />
Edit ckfinder/config.php</p>

<p>Comment out the entire "function CheckAuthentication(){ blah}" function</p>

<p>Add this require_once line below the $baseDir variable. Note, I do not know why it goes up so many directories but it works:</p>

<p>$baseDir = resolveUrl($baseUrl);<br />
require_once '../../../../../modules/ckeditor/includes/filemanager.config.php';</p>

<p>Add/remove/modify the directories that will appear in the CKFinder window when users upload. This is found in the $config['ResourceType'][] = Array() arrays.</p>

<p>Edit the CKEditor profiles (admin/config/content/ckeditor)<br />
- CKEditor Global Settings- make sure the paths to CKFinder and CKEditor <a href="http://drupal.org/node/1897912">point to the sites/all/libraries directory</a>.</p>

<p>- For the Editor Profiles, make sure CKFinder is selected for file management options</p>

<p>Edit permissions (admin/people/permissions)<br />
- Make sure the appropriate roles have access to CKEditor and CKFinder <br />
- Note, if CKFinder access does not appear on this page then the library likely has not been located correctly. </p>]]>

</content>
</entry>

</feed>