Sorry

This feed does not validate.

In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: http://blog.our-files.com/feed/atom/

  1. <?xml version="1.0" encoding="UTF-8"?><feed
  2. xmlns="http://www.w3.org/2005/Atom"
  3. xmlns:thr="http://purl.org/syndication/thread/1.0"
  4. xml:lang="en-US"
  5. xml:base="http://blog.our-files.com/wp-atom.php"
  6. >
  7. <title type="text">Our-files.com &#8211; Nathans&#039; Rants</title>
  8. <subtitle type="text">Rants and Randomness, Mishaps and Misconceptions, and other wierd things</subtitle>
  9.  
  10. <updated>2018-01-01T22:30:09Z</updated>
  11.  
  12. <link rel="alternate" type="text/html" href="http://blog.our-files.com" />
  13. <id>http://blog.our-files.com/feed/atom/</id>
  14. <link rel="self" type="application/atom+xml" href="http://blog.our-files.com/feed/atom/" />
  15.  
  16. <generator uri="https://wordpress.org/" version="5.8.2">WordPress</generator>
  17. <entry>
  18. <author>
  19. <name>Internat</name>
  20. <uri>http://</uri>
  21. </author>
  22.  
  23. <title type="html"><![CDATA[SQL Server &#8211; Find characters in fields]]></title>
  24. <link rel="alternate" type="text/html" href="http://blog.our-files.com/2018/01/sql-server-find-characters-in-fields/" />
  25.  
  26. <id>http://blog.our-files.com/?p=39</id>
  27. <updated>2018-01-01T22:30:09Z</updated>
  28. <published>2018-01-01T22:03:01Z</published>
  29. <category scheme="http://blog.our-files.com" term="SQL" /><category scheme="http://blog.our-files.com" term="SQL Server" />
  30. <summary type="html"><![CDATA[Credit to Source]]></summary>
  31.  
  32. <content type="html" xml:base="http://blog.our-files.com/2018/01/sql-server-find-characters-in-fields/"><![CDATA[<pre class="brush: sql; title: ; notranslate">
  33. DECLARE @counter int = 1;
  34. DECLARE @colString varchar(10) = 'AA%#&amp;    ';
  35.  
  36. WHILE @counter &lt;= DATALENGTH(@colString)
  37.   BEGIN
  38.   SELECT CHAR(ASCII(SUBSTRING(@colString, @counter, 1))) as [Character],
  39.   ASCII(SUBSTRING(@colString, @counter, 1)) as [ASCIIValue]
  40.    
  41.   SET @counter = @counter + 1
  42.   END
  43. GO
  44. </pre>
  45. <p>Credit to <a href="http://www.sqlservercurry.com/2009/09/how-to-find-ascii-value-of-each.html">Source</a></p>
  46. ]]></content>
  47. <link rel="replies" type="text/html" href="http://blog.our-files.com/2018/01/sql-server-find-characters-in-fields/#comments" thr:count="1" />
  48. <link rel="replies" type="application/atom+xml" href="http://blog.our-files.com/2018/01/sql-server-find-characters-in-fields/feed/atom/" thr:count="1" />
  49. <thr:total>1</thr:total>
  50. </entry>
  51. <entry>
  52. <author>
  53. <name>Internat</name>
  54. <uri>http://</uri>
  55. </author>
  56.  
  57. <title type="html"><![CDATA[NFSv4 and IDMAP caching]]></title>
  58. <link rel="alternate" type="text/html" href="http://blog.our-files.com/2014/05/nfsv4-and-idmap-caching/" />
  59.  
  60. <id>http://blog.our-files.com/?p=35</id>
  61. <updated>2014-05-26T21:02:49Z</updated>
  62. <published>2014-05-26T21:02:49Z</published>
  63. <category scheme="http://blog.our-files.com" term="Uncategorized" />
  64. <summary type="html"><![CDATA[NFSV4 does id comparisions, eg user and uid must be the same across hosts or it will automaticly map the file to owner nobody. This can be changed through configuration files and the like. Easy win is to make sure both boxes are part of the same DNS domain in /etc/idmapd.conf you want domain = [&#8230;]]]></summary>
  65.  
  66. <content type="html" xml:base="http://blog.our-files.com/2014/05/nfsv4-and-idmap-caching/"><![CDATA[<p>NFSV4 does id comparisions, eg user and uid must be the same across hosts or it will automaticly map the file to owner nobody. This can be changed through configuration files and the like.</p>
  67. <p>Easy win is to make sure both boxes are part of the same DNS domain in /etc/idmapd.conf you want domain = domain.com if dns resolution is flaky.</p>
  68. <p>But i found a big pain was that i fixed the mismatched UID&#8217;s and i could not get it to accept the update.</p>
  69. <p>I restarted NFS countless times, remounted the mount countless times and so on. </p>
  70. <p>Of course nfs does some form of caching that isnt cleared by a restart</p>
  71. <p>To clear the cache<br />
  72. <code>nfsidmap -c</code></p>
  73. ]]></content>
  74. <link rel="replies" type="text/html" href="http://blog.our-files.com/2014/05/nfsv4-and-idmap-caching/#comments" thr:count="2" />
  75. <link rel="replies" type="application/atom+xml" href="http://blog.our-files.com/2014/05/nfsv4-and-idmap-caching/feed/atom/" thr:count="2" />
  76. <thr:total>2</thr:total>
  77. </entry>
  78. <entry>
  79. <author>
  80. <name>Internat</name>
  81. <uri>http://</uri>
  82. </author>
  83.  
  84. <title type="html"><![CDATA[GAWK script for some work funkyness]]></title>
  85. <link rel="alternate" type="text/html" href="http://blog.our-files.com/2014/05/gawk-script-for-some-work-funkyness/" />
  86.  
  87. <id>http://blog.our-files.com/?p=25</id>
  88. <updated>2014-05-26T21:00:29Z</updated>
  89. <published>2014-05-26T21:00:29Z</published>
  90. <category scheme="http://blog.our-files.com" term="Bash" /><category scheme="http://blog.our-files.com" term="Uncategorized" />
  91. <summary type="html"><![CDATA[gawk &#8216;{if(~ /\.tar/){lasttar=}; if(~ /^filenamehere\.jpg$/){print lasttar; exit;}}&#8217; < internat.txt]]></summary>
  92.  
  93. <content type="html" xml:base="http://blog.our-files.com/2014/05/gawk-script-for-some-work-funkyness/"><![CDATA[<p>gawk &#8216;{if(~ /\.tar/){lasttar=}; if(~ /^filenamehere\.jpg$/){print lasttar; exit;}}&#8217; < internat.txt
  94. </p>
  95. ]]></content>
  96. <link rel="replies" type="text/html" href="http://blog.our-files.com/2014/05/gawk-script-for-some-work-funkyness/#comments" thr:count="2" />
  97. <link rel="replies" type="application/atom+xml" href="http://blog.our-files.com/2014/05/gawk-script-for-some-work-funkyness/feed/atom/" thr:count="2" />
  98. <thr:total>2</thr:total>
  99. </entry>
  100. <entry>
  101. <author>
  102. <name>Internat</name>
  103. <uri>http://</uri>
  104. </author>
  105.  
  106. <title type="html"><![CDATA[solar monitoring stuff]]></title>
  107. <link rel="alternate" type="text/html" href="http://blog.our-files.com/2012/10/solar-monitoring-stuff/" />
  108.  
  109. <id>http://blog.our-files.com/?p=29</id>
  110. <updated>2012-10-23T07:18:50Z</updated>
  111. <published>2012-10-23T07:15:36Z</published>
  112. <category scheme="http://blog.our-files.com" term="Bash" /><category scheme="http://blog.our-files.com" term="Debian" /><category scheme="http://blog.our-files.com" term="Linux" />
  113. <summary type="html"><![CDATA[I cant take any credit for this script, I took the orginal from the solar.js.cx page and changed it to meet my requirements. Here is my version]]></summary>
  114.  
  115. <content type="html" xml:base="http://blog.our-files.com/2012/10/solar-monitoring-stuff/"><![CDATA[<p>I cant take any credit for this script, I took the orginal from the solar.js.cx page and changed it to meet my requirements.<br />
  116. Here is my version</p>
  117. <pre class="brush: bash; title: ; notranslate">
  118. #!/usr/bin/perl
  119. ############################################
  120. ## This software is licensed under the LGPL.
  121. ## Visit http://solar.js.cx for more info.
  122. ############################################
  123. use Device::SerialPort;
  124. use LWP::UserAgent;
  125. use Time::Local;
  126. use HTTP::Status qw(:constants :is status_message);
  127. $debug = 0;
  128. $submit = 1;
  129. $serial_port = &quot;/dev/ttyr00&quot;;
  130. $pvoutput_api =&quot;&lt;apikeyhere&gt;&quot;;
  131. $pvoutport_systemid = &quot;&lt;systemkeyhere&gt;&quot;;
  132.  
  133. $serial_lock = &quot;/tmp/ttyr00.lock&quot;;
  134.  
  135. ## Wait until unlocked
  136. while (-e $serial_lock)
  137. {
  138.  sleep (1);
  139. }
  140. $serial_port = new Device::SerialPort ($serial_port, &quot;&quot;, $serial_lock);
  141.  
  142. $serial_port-&gt;baudrate(9600) || die &quot;failed setting baudrate&quot;;
  143. $serial_port-&gt;parity(&quot;none&quot;) || die &quot;failed setting parity&quot;;
  144. $serial_port-&gt;databits(8) || die &quot;failed setting databits&quot;;
  145. $serial_port-&gt;handshake(&quot;none&quot;) || die &quot;failed setting handshake&quot;;
  146. $serial_port-&gt;write_settings || die &quot;no settings&quot;;
  147.  
  148. ## Might need to tweak this if data is truncated.
  149. $serial_port-&gt;read_const_time(40);
  150.  
  151. $serial_port-&gt;write(&quot;INV?\r&quot;);
  152. ($count, $xantrex_status) = $serial_port-&gt;read(255);
  153. $serial_port-&gt;write(&quot;KWHTODAY?\r&quot;);
  154. ($count, $xantrex_kwhtoday) = $serial_port-&gt;read(255);
  155. $serial_port-&gt;write(&quot;TIME?\r&quot;);
  156. ($count, $xantrex_time) = $serial_port-&gt;read(255);
  157. $serial_port-&gt;write(&quot;POUT?\r&quot;);
  158. ($count, $xantrex_pout) = $serial_port-&gt;read(255);
  159.  
  160. $serial_port-&gt;close || warn &quot;close failed&quot;;
  161.  
  162. $xantrex_wtoday =  $xantrex_kwhtoday * 1000;
  163. #$time = timelocal($sec,$min,$hour,$mday,$mon,$year);
  164. my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
  165. $year += 1900;
  166. $mon += 1;
  167. $date = sprintf &quot;%04d%02d%02d&quot;, $year,$mon,$mday;
  168. $ptime = sprintf &quot;%02d:%02d&quot;, $hour, $min;
  169.  
  170. if ($debug == 1) {
  171. print &quot;Current date/time is: $date - $ptime\n&quot;;
  172. print &quot;Current inverter status is: $xantrex_status\n&quot;;
  173. print &quot;Total KWH today is: $xantrex_kwhtoday\n&quot;;
  174. print &quot;Total WH today is: $xantrex_wtoday\n&quot;;
  175. print &quot;Current output is: $xantrex_pout\n&quot;;
  176. }
  177. chomp($xantrex_status);
  178. my $length = length($xantrex_status);
  179. $length -=1;
  180. $status = substr $xantrex_status, 0, $length;
  181. if (($submit == 1)  &amp;&amp; ($status eq &quot;ON&quot;)) {
  182. if ($debug == 1) {
  183. print  &quot;Submitting data\n&quot;;
  184. }
  185. my $ua = new LWP::UserAgent;
  186. $ua-&gt;default_header( 'X-Pvoutput-Apikey' =&gt; $pvoutput_api, 'X-Pvoutput-SystemId' =&gt; $pvoutport_systemid );
  187.  
  188.  
  189. my $response
  190. = $ua-&gt;post('http://pvoutput.org/service/r2/addstatus.jsp',
  191. { 'v2' =&gt; $xantrex_pout,
  192. 'v1' =&gt; $xantrex_wtoday,
  193. 'd' =&gt; $date,
  194. 't' =&gt; $ptime
  195.  
  196. });
  197. my $content = $response-&gt;content;
  198. if ($debug == 1) {
  199. print &quot;$content\n&quot;;
  200. }
  201. if ($response-&gt;is_error) {
  202. print &quot;Error updating pvoutput.org $content\r\n&quot;;
  203. }
  204. }
  205. </pre>
  206. ]]></content>
  207. <link rel="replies" type="text/html" href="http://blog.our-files.com/2012/10/solar-monitoring-stuff/#comments" thr:count="0" />
  208. <link rel="replies" type="application/atom+xml" href="http://blog.our-files.com/2012/10/solar-monitoring-stuff/feed/atom/" thr:count="0" />
  209. <thr:total>0</thr:total>
  210. </entry>
  211. <entry>
  212. <author>
  213. <name>Internat</name>
  214. <uri>http://</uri>
  215. </author>
  216.  
  217. <title type="html"><![CDATA[format_mp3.so building for Asterisk 1.8.11 using packages.asterisk.org]]></title>
  218. <link rel="alternate" type="text/html" href="http://blog.our-files.com/2012/07/format_mp3-so-building-for-asterisk-1-8-11-using-packages-asterisk-org/" />
  219.  
  220. <id>http://blog.our-files.com/?p=26</id>
  221. <updated>2012-07-18T09:02:48Z</updated>
  222. <published>2012-07-18T08:51:23Z</published>
  223. <category scheme="http://blog.our-files.com" term="Asterisk" /><category scheme="http://blog.our-files.com" term="Debian" /><category scheme="http://blog.our-files.com" term="Linux" />
  224. <summary type="html"><![CDATA[At $WORK2$ we had the express need to migrate from Asterisk 1.6 to 1.8. We are running Debian squeeze which only provides 1.6.9 as its stable version,which is fine, but when you have a bug that requires vendor support you get forced to upgrade. I didnt really want to rebuild packages from source (i hate [&#8230;]]]></summary>
  225.  
  226. <content type="html" xml:base="http://blog.our-files.com/2012/07/format_mp3-so-building-for-asterisk-1-8-11-using-packages-asterisk-org/"><![CDATA[<p>At $WORK2$ we had the express need to migrate from Asterisk 1.6 to 1.8. We are running Debian squeeze which only provides 1.6.9 as its stable version,which is fine, but when you have a bug that requires vendor support you get forced to upgrade. I didnt really want to rebuild packages from source (i hate building from source on a package managed system).</p>
  227. <p>I discovered that asterisk provides its own debian/ubuntu repository for its packages which is awesome, so on our test box we quickly deployed it. And then during testing we ran into a snag. Namely that its next to impossible to find instructions on how to get the format_mp3.so module for mp3 support. In Debian its packaged with it, but due to some licensing who-ah asterisk doesnt ship them. i tried copying an older copy, and one out of the Debian squeeze repository but it wouldn&#8217;t load cause it was built with different compile time options.</p>
  228. <p>After much reading and playing arround, i worked out how to build that module.. ANd since it took me the better part of a night to work it out, heres how i did it  <img src="https://s.w.org/images/core/emoji/13.1.0/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
  229. <p>Grab everything required to build the source for asterisk, some other libraries, the build tools, the actual source, and then configure it for our system.<br />
  230. <code><br />
  231. apt-get install build-essential<br />
  232. apt-get build-dep asterisk<br />
  233. apt-get install libncurses5-dev libncursesw5-dev libxml2-dev<br />
  234. cd /usr/src<br />
  235. apt-get source asterisk<br />
  236. cd asterisk-1.8.11.1<br />
  237. ./configure<br />
  238. make menuselect<br />
  239. </code><br />
  240. In the make menu select, go into addons, and tick off format_mp3 (i think x was save and exit)<br />
  241. <code><br />
  242. contrib/scripts/get_mp3_source.sh<br />
  243. </code><br />
  244. This goes and grabs out of SVN the latest mp3 stuff, this is done for the packaging stuff as mentioned above<br />
  245. <code><br />
  246. make addons<br />
  247. </code><br />
  248. Assuming your make addons ran without errors, its built the module.. to install it run:<br />
  249. <code>make addons-install</code><br />
  250. Now to restart asterisk<br />
  251. <code>/etc/init.d/asterisk restart</code><br />
  252. and finally to confirm it actually loaded<br />
  253. <code>asterisk -rx 'core show file formats'</code></p>
  254. <p>as long as mp3 is in your list, your golden!</p>
  255. ]]></content>
  256. <link rel="replies" type="text/html" href="http://blog.our-files.com/2012/07/format_mp3-so-building-for-asterisk-1-8-11-using-packages-asterisk-org/#comments" thr:count="0" />
  257. <link rel="replies" type="application/atom+xml" href="http://blog.our-files.com/2012/07/format_mp3-so-building-for-asterisk-1-8-11-using-packages-asterisk-org/feed/atom/" thr:count="0" />
  258. <thr:total>0</thr:total>
  259. </entry>
  260. <entry>
  261. <author>
  262. <name>Internat</name>
  263. <uri>http://</uri>
  264. </author>
  265.  
  266. <title type="html"><![CDATA[SQL server log shipping over the interwebs with workgroup servers]]></title>
  267. <link rel="alternate" type="text/html" href="http://blog.our-files.com/2012/02/sql-server-log-shipping-over-the-interwebs-with-workgroup-servers/" />
  268.  
  269. <id>http://blog.our-files.com/?p=23</id>
  270. <updated>2012-02-11T08:13:38Z</updated>
  271. <published>2012-02-11T08:13:38Z</published>
  272. <category scheme="http://blog.our-files.com" term="Microsoft" /><category scheme="http://blog.our-files.com" term="SQL Server" />
  273. <summary type="html"><![CDATA[Notes from when i set up log shipping over the internet.. to be padded out with real deatil later. Create vpn between servers (use remote access and routing, and create the other server as a peristant dial on demand route) Make user say &#8220;sqlserver_agent&#8221; on both servers, with same username and same password. Make directory [&#8230;]]]></summary>
  274.  
  275. <content type="html" xml:base="http://blog.our-files.com/2012/02/sql-server-log-shipping-over-the-interwebs-with-workgroup-servers/"><![CDATA[<p>Notes from when i set up log shipping over the internet.. to be padded out with real deatil later.</p>
  276. <p>Create vpn between servers (use remote access and routing, and create the other server as a peristant dial on demand route)</p>
  277. <p>Make user say &#8220;sqlserver_agent&#8221; on both servers, with same username and same password.<br />
  278. Make directory on primary server eg c:\database_logs<br />
  279. grant access to both &#8220;sqlserver_agent&#8221; and &#8220;network service&#8221;<br />
  280. share path on primary server. </p>
  281. <p>create log destination folder on secondary server eg &#8220;c:\database_restore_logs&#8221; make sure both &#8220;network service&#8221; and &#8220;sqlserver_agent&#8221; can read/write to it</p>
  282. <p>make sql server agent on both run servers with the same account as above.</p>
  283. <p>make sure database on primary server is in full mode.<br />
  284. back up database to share, and manually copy it across. manually restore it on the other site, but leave it in standby mode (had to do the manual copy since sqlserver.exe isnt running as the service account, and therefor couldnt access the network share where it was living on. only the agent could)</p>
  285. <p>use the wizard to create the jobs on both servers that do the restore.</p>
  286. <p>my wizard for some reason created the job with the wrong hostname and the sqllogship.exe command couldnt talk tot he server, so had to edit it from the wierd windows hostname that it had and change it to the ip of the host. using the correct hostname probably would have worked as we..</p>
  287. <p>the user &#8220;network service&#8221; has no access over the network to do fuck all. dont use it for trying to communicate to other hosts.. i tried enabling guest, adding network service to all the shares, enabling everyone, and a whole lot of other things.. just create a service account on both servers with the same details and that will work just fine!!</p>
  288. <p>used these sites for info<br />
  289. http://www.mssqltips.com/sqlservertip/2562/sql-server-log-shipping-to-a-different-domain-or-workgroup/<br />
  290. http://omaralzabir.com/how_to_setup_sql_server_2005_transaction_log_ship_on_large_database_that_really_works/</p>
  291. ]]></content>
  292. <link rel="replies" type="text/html" href="http://blog.our-files.com/2012/02/sql-server-log-shipping-over-the-interwebs-with-workgroup-servers/#comments" thr:count="4" />
  293. <link rel="replies" type="application/atom+xml" href="http://blog.our-files.com/2012/02/sql-server-log-shipping-over-the-interwebs-with-workgroup-servers/feed/atom/" thr:count="4" />
  294. <thr:total>4</thr:total>
  295. </entry>
  296. <entry>
  297. <author>
  298. <name>Internat</name>
  299. <uri>http://</uri>
  300. </author>
  301.  
  302. <title type="html"><![CDATA[Encrypted FlatFile Volume]]></title>
  303. <link rel="alternate" type="text/html" href="http://blog.our-files.com/2011/10/encrypted-flatfile-volume/" />
  304.  
  305. <id>http://blog.our-files.com/?p=19</id>
  306. <updated>2011-10-27T05:22:35Z</updated>
  307. <published>2011-10-27T05:22:35Z</published>
  308. <category scheme="http://blog.our-files.com" term="Bash" /><category scheme="http://blog.our-files.com" term="Debian" /><category scheme="http://blog.our-files.com" term="Linux" />
  309. <summary type="html"><![CDATA[I used to have an encrypted volume on my file server, for storing sensitive things, but after an upgrade to the newest version of Debian, that stopped working. So after some mucking around and getting the old module for cryptoloop put back into my current kernel, I figured i might as well migrate over to [&#8230;]]]></summary>
  310.  
  311. <content type="html" xml:base="http://blog.our-files.com/2011/10/encrypted-flatfile-volume/"><![CDATA[<p>I used to have an encrypted volume on my file server, for storing sensitive things, but after an upgrade to the newest version of Debian, that stopped working. So after some mucking around and getting the old module for cryptoloop put back into my current kernel, I figured i might as well migrate over to the newer version, which uses cryptsetup, losetup, and luks.</p>
  312. <p>Ive shamelessly stolen these commands (although ive changed some of them)from <a href="http://wiki.centos.org/HowTos/EncryptedFilesystem">elsewhere</a>.. </p>
  313. <p>Create the file system and restricted access.<br />
  314. <code><br />
  315. dd of=/path/to/secretfs bs=1G count=0 seek=8<br />
  316. chmod 600 /path/to/secretfs<br />
  317. </code></p>
  318. <p>Create a loopback device for the file<br />
  319. <code>losetup /dev/loop0 /path/to/secretfs</code><br />
  320. Creates the volume, asks you for the key, and then creatss the DM mapping<br />
  321. <code>cryptsetup -y luksFormat /dev/loop0<br />
  322. cryptsetup luksOpen /dev/loop0 secretfs</code></p>
  323. <p>Pad the file so it generates its random data<br />
  324. <code>dd if=/dev/zero of=/dev/mapper/secretfs</code></p>
  325. <p>Create the filesystem<br />
  326. <code>mkfs.ext3 dev/mapper/secretfs<br />
  327. </code></p>
  328. <p># Mount the new filesystem in a convenient location<br />
  329. <code>mkdir /mnt/cryptofs/secretfs<br />
  330. mount /dev/mapper/secretfs /mnt/cryptofs/secretfs</code></p>
  331. <p>And an encrypted volume is setup.</p>
  332. <p>Now how to unmount:<br />
  333. <code><br />
  334. umount /mnt/cryptofs/secretfs<br />
  335. cryptsetup luksClose secretfs<br />
  336. losetup -d /dev/loop0</code></p>
  337. <p>Remount:<br />
  338. <code><br />
  339. losetup /dev/loop0 /path/to/secretfs<br />
  340. cryptsetup luksOpen /dev/loop0 secretfs<br />
  341. (enter password when prompted)<br />
  342. mount /dev/mapper/secretfs /mnt/cryptofs/secretfs</code></p>
  343. <p>Now stuff that i can never remember how to do is grow the volume.</p>
  344. <p>Make sure the volume is closed, unmounted etc.<br />
  345. <code>umount /mnt/cryptofs/secretfs<br />
  346. cryptsetup luksClose secretfs<br />
  347. losetup -d /dev/loop0<br />
  348. </code></p>
  349. <p>Add 20gig to the file<br />
  350. <code>dd if=/dev/zero bs=1G count=20 >> /dev/mapper/secretfs<br />
  351. </code></p>
  352. <p>Remount and reopen part of it</p>
  353. <p><code>losetup /dev/loop0 /path/to/secretfs<br />
  354. cryptsetup lucksOpen /dev/loop5 EncryptedFS<br />
  355. </code></p>
  356. <p>check the FS first<br />
  357. <code>e2fsck -f /dev/mapper/EncryptedFS<br />
  358. </code><br />
  359. once thats done grow it<br />
  360. <code>resize2fs /dev/mapper/EncryptedFS</code><br />
  361. and your done. You can now open the volume for use</p>
  362. ]]></content>
  363. <link rel="replies" type="text/html" href="http://blog.our-files.com/2011/10/encrypted-flatfile-volume/#comments" thr:count="0" />
  364. <link rel="replies" type="application/atom+xml" href="http://blog.our-files.com/2011/10/encrypted-flatfile-volume/feed/atom/" thr:count="0" />
  365. <thr:total>0</thr:total>
  366. </entry>
  367. <entry>
  368. <author>
  369. <name>Internat</name>
  370. <uri>http://</uri>
  371. </author>
  372.  
  373. <title type="html"><![CDATA[Reattaching database and fixing users]]></title>
  374. <link rel="alternate" type="text/html" href="http://blog.our-files.com/2010/06/reattaching-database-and-fixing-users/" />
  375.  
  376. <id>http://blog.our-files.com/?p=17</id>
  377. <updated>2010-06-11T02:27:18Z</updated>
  378. <published>2010-06-11T02:24:37Z</published>
  379. <category scheme="http://blog.our-files.com" term="SQL" /><category scheme="http://blog.our-files.com" term="SQL Server" />
  380. <summary type="html"><![CDATA[Backed up and restored a database the other day, but of course the network users arent setup properly cause there actually stored in the master database.. So i recreate the user on the instance which is fine , and then try and regrant it permissions on the database but it fails because its already there&#8230; [&#8230;]]]></summary>
  381.  
  382. <content type="html" xml:base="http://blog.our-files.com/2010/06/reattaching-database-and-fixing-users/"><![CDATA[<p>Backed up and restored a database the other day, but of course the network users arent setup properly cause there actually stored in the master database..</p>
  383. <p>So i recreate the user on the instance which is fine , and then try and regrant it permissions on the database but it fails because its already there&#8230;</p>
  384. <p>To fix&#8230;</p>
  385. <pre name="code" class="sql">
  386. User DATABASE
  387. EXEC sp_change_users_login 'update_one', 'usernamehere', 'usernamehere''
  388. </pre>
  389. <p><a href="http://msdn.microsoft.com/en-us/library/ms174378.aspx">http://msdn.microsoft.com/en-us/library/ms174378.aspx</a></p>
  390. ]]></content>
  391. <link rel="replies" type="text/html" href="http://blog.our-files.com/2010/06/reattaching-database-and-fixing-users/#comments" thr:count="0" />
  392. <link rel="replies" type="application/atom+xml" href="http://blog.our-files.com/2010/06/reattaching-database-and-fixing-users/feed/atom/" thr:count="0" />
  393. <thr:total>0</thr:total>
  394. </entry>
  395. <entry>
  396. <author>
  397. <name>Internat</name>
  398. <uri>http://</uri>
  399. </author>
  400.  
  401. <title type="html"><![CDATA[Pulling iphone backups apart]]></title>
  402. <link rel="alternate" type="text/html" href="http://blog.our-files.com/2010/04/pulling-iphone-backups-apart/" />
  403.  
  404. <id>http://blog.our-files.com/?p=15</id>
  405. <updated>2010-04-26T10:56:13Z</updated>
  406. <published>2010-04-26T10:49:05Z</published>
  407. <category scheme="http://blog.our-files.com" term="Uncategorized" />
  408. <summary type="html"><![CDATA[I wanted to pull my iphone backups apart because i accidentally deleted some stuff but didn&#8217;t want to restore it all and play with it that way. So heres the tools and what i needed to do it: Backups are stored at: ~/Library/Application Support/MobileSync/Backup) or on a PC (c:\Documents and Settings\Application Data\Apple Computer\MobileSync\Backup). Iphone backup [&#8230;]]]></summary>
  409.  
  410. <content type="html" xml:base="http://blog.our-files.com/2010/04/pulling-iphone-backups-apart/"><![CDATA[<p>I wanted to pull my iphone backups apart because i accidentally deleted some stuff but didn&#8217;t want to restore it all and play with it that way.</p>
  411. <p>So heres the tools and what i needed to do it:<br />
  412. Backups are stored at: ~/Library/Application Support/MobileSync/Backup) or on a PC (c:\Documents and Settings\<username>Application Data\Apple Computer\MobileSync\Backup).</p>
  413. <p><a href="http://www.supercrazyawesome.com/">Iphone backup extractor for OSX</a><br />
  414. <a href="http://menoob.com/2008/12/04/how-to-save-and-read-your-iphone-text-messages-on-your-computer/">how-to-save-and-read-your-iphone-text-messages-on-your-computer</a><br />
  415. <a href="http://menoob.com/2008/12/02/how-to-recover-your-iphone-files-photos-contacts-notes-sms-call-history-etc/">how-to-recover-your-iphone-files-photos-contacts-notes-sms-call-history-etc</a></p>
  416. <p>Couldnt work out how to pull up previous backups though.. only the latest one.. which is a pain.. </p>
  417. ]]></content>
  418. <link rel="replies" type="text/html" href="http://blog.our-files.com/2010/04/pulling-iphone-backups-apart/#comments" thr:count="0" />
  419. <link rel="replies" type="application/atom+xml" href="http://blog.our-files.com/2010/04/pulling-iphone-backups-apart/feed/atom/" thr:count="0" />
  420. <thr:total>0</thr:total>
  421. </entry>
  422. <entry>
  423. <author>
  424. <name>Internat</name>
  425. <uri>http://</uri>
  426. </author>
  427.  
  428. <title type="html"><![CDATA[Manage your email better.]]></title>
  429. <link rel="alternate" type="text/html" href="http://blog.our-files.com/2010/03/manage-your-email-better/" />
  430.  
  431. <id>http://blog.our-files.com/2010/03/manage-your-email-better/</id>
  432. <updated>2010-04-26T11:38:42Z</updated>
  433. <published>2010-03-28T09:31:43Z</published>
  434. <category scheme="http://blog.our-files.com" term="Uncategorized" />
  435. <summary type="html"><![CDATA[Shorter emails are better.. apparently]]></summary>
  436.  
  437. <content type="html" xml:base="http://blog.our-files.com/2010/03/manage-your-email-better/"><![CDATA[<p><img loading="lazy" alt="" src="http://howtogetfocused.com/wp-content/uploads/2010/03/Email-Flowchart.png" title="Manage email better" class="alignnone" width="645" height="1099" /></p>
  438. <p><a href="http://www.jonathanfields.com/blog/short-replies/?utm_source=feedburner&#038;utm_medium=feed&#038;utm_campaign=Feed%3A+JonathanFields+%28Jonathan+Fields+|+Awake+At+The+Wheel%29&#038;utm_content=Twitter">Shorter emails are better.. apparently</a></p>
  439. ]]></content>
  440. <link rel="replies" type="text/html" href="http://blog.our-files.com/2010/03/manage-your-email-better/#comments" thr:count="0" />
  441. <link rel="replies" type="application/atom+xml" href="http://blog.our-files.com/2010/03/manage-your-email-better/feed/atom/" thr:count="0" />
  442. <thr:total>0</thr:total>
  443. </entry>
  444. </feed>
  445.  
Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda