tag:blogger.com,1999:blog-87590201025885351352024-02-20T10:29:01.900+01:00Henning's development blogAnonymoushttp://www.blogger.com/profile/11611761586739437441noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-8759020102588535135.post-41882141278080564612013-10-11T08:58:00.000+02:002016-10-21T10:34:02.242+02:00Upgrade ASP .NET MVC 5 default layout to bootstrap 3If you have started developing web applications with ASP .NET MVC 5 you might have noticed that it comes with bootstrap version 2 and the latest version 3. In order to upgrade the default template for version 3, you can use these files as a reference.<br />
<br />
<br />
Right click solution -> Manage NuGet packages
Updates -> Update bootstrap to version 3<br />
<br />
***<br />
Views/Shared/_Layout.cshtml<br />
***
<br />
<pre class="brush: html">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
<div class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse"
data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
@Html.ActionLink("Application name", "Index", "Home", null,
new { @class = "navbar-brand" })
</div>
@Html.Partial("_LoginPartial")
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active">
@Html.ActionLink("Home", "Index", "Home")
</li>
<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("Contact", "Contact", "Home")</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Dropdown <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li class="dropdown-header">Nav header</li>
<li><a href="#">Separated link</a></li>
<li><a href="#">One more separated link</a></li>
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<div class="container">
@RenderBody()
<hr />
<footer>
<p>&copy; @DateTime.Now.Year - My ASP.NET Application</p>
</footer>
</div>
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootstrap")
@RenderSection("scripts", required: false)
</body>
</html>
</pre>
***<br />
Views/Shared/_LoginPartial.cshtml<br />
***
<br />
<br />
<pre class="prettyprint">
@using Microsoft.AspNet.Identity
@if (Request.IsAuthenticated)
{
using (Html.BeginForm("LogOff", "Account", FormMethod.Post,
new { id = "logoutForm", @class = "navbar-form pull-right" }))
{
@Html.AntiForgeryToken()
<ul class="nav navbar-nav navbar-right">
<li>
@Html.ActionLink("Hello " + User.Identity.GetUserName() + "!",
"Manage", "Account", routeValues: null,
htmlAttributes: new { title = "Manage" })
</li>
<li><a href="javascript:document.getElementById('logoutForm').submit()">
Log off</a></li>
</ul>
}
}
else
{
<ul class="nav navbar-nav navbar-right">
<li>@Html.ActionLink("Register", "Register", "Account", routeValues: null,
htmlAttributes: new { id = "registerLink" })</li>
<li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null,
htmlAttributes: new { id = "loginLink" })</li>
</ul>
}
</pre>
***
Content/Site.css
***
Remove padding-top from bodyAnonymoushttp://www.blogger.com/profile/11611761586739437441noreply@blogger.com2tag:blogger.com,1999:blog-8759020102588535135.post-88090537524969587262013-02-04T10:31:00.000+01:002013-05-28T16:39:43.905+02:00Add Twitter Bootstrap to MVC4Unzip bootstrap files into the <project -dir="">/Content directory.<br /><br />Add the following lines to App_Start/BundleConfig.cs <br /><br /><code><br />bundles.Add(new StyleBundle("~/Content/bootstrap/css/bundle")<br /> .Include("~/Content/bootstrap/css/bootstrap.css"));<br />bundles.Add(new ScriptBundle("~/Content/bootstrap/js/bundle")<br /> .Include("~/Content/bootstrap/js/bootstrap.js"));</code><br /><br />Add the following lines to View/Shared/_Layout.cshtml<br /><code><br />@Styles.Render("~/Content/bootstrap/css/bundle") <br />@Scripts.Render("~/Content/bootstrap/js/bundle") </code><br />Note that jQuery must be included before the Bootstrap js-bundle. <br /></project>Anonymoushttp://www.blogger.com/profile/11611761586739437441noreply@blogger.com0tag:blogger.com,1999:blog-8759020102588535135.post-29508885502767970682012-04-19T12:46:00.000+02:002013-05-28T11:27:05.561+02:00Using Thunderbird in Linux with Office 365My company is using <a href="http://www.office365.com">Office 365</a>, but as a software developer with a passion for *nix I really can't live inside a windows environment. So for email use Thunderbird and the splendid Lightning addon together with a calendar provider for office 2010. It works great!<br/><br/>Thunderbird Lightning Calendar Office 2010<br/>http://www.1st-setup.nl/wordpress/?page_id=133<br/><br/>Using calendars from Office 365<br/>http://www.1st-setup.nl/wordpress/?wp_super_faq=add-a-microsoft-office-365-calendarAnonymoushttp://www.blogger.com/profile/11611761586739437441noreply@blogger.com0tag:blogger.com,1999:blog-8759020102588535135.post-10575106577244212462011-11-15T20:21:00.000+01:002013-05-28T11:27:05.555+02:00Gimp slice filter - error: python-fu-slice integer argument expected
got float<code>integer argument expected got float</code>Anonymoushttp://www.blogger.com/profile/11611761586739437441noreply@blogger.com0tag:blogger.com,1999:blog-8759020102588535135.post-45987121577703700582011-04-27T15:14:00.000+02:002013-05-28T11:27:05.563+02:00Installing rmagick on ubuntu 10.04I just installed ruby and rmagick on an ubuntu 10.4 server. Got some errors during the installation and thought i should summarize the procedure here: <br/><br/>Install ruby<br/><pre lang="bash"><br/>sudo apt-get install ruby1.9.1 rubygems1.9.1<br/></pre><br/><br/>Install imagemagick<br/><br/><pre lang="bash"><br/>sudo apt-get install imagemagick<br/></pre><br/><br/>Tried to install rmagick<br/><pre lang="bash"><br/>sudo gem install rmagick<br/></pre><br/><br/>Got this error:<br/><pre lang="bash"><br/>ERROR: Error installing rmagick:<br/> ERROR: Failed to build gem native extension.<br/><br/>/usr/bin/ruby1.9.1 extconf.rb<br/>extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)<br/> from extconf.rb:1:in `<main>'<br/></main></pre><br/><br/>Found <a href="http://mentalized.net/journal/2006/01/24/no_such_file_to_load_mkmf/">this page</a>, which pointed med to install ruby1.9.1-dev package.<br/><br/><pre lang="bash"><br/>sudo apt-get install ruby1.9.1-dev<br/></pre><br/><br/>Ok, trying again to install rmagick<br/><pre lang="bash"><br/>sudo gem install rmagick<br/></pre><br/><br/>Got this error:<br/><pre lang="bash"><br/>ERROR: Error installing rmagick:<br/> ERROR: Failed to build gem native extension.<br/><br/>/usr/bin/ruby1.9.1 extconf.rb<br/>checking for Ruby version >= 1.8.5... yes<br/>checking for gcc... yes<br/>checking for Magick-config... no<br/>Can't install RMagick 2.13.1. Can't find Magick-config in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin<br/><br/>*** extconf.rb failed ***<br/>Could not create Makefile due to some reason, probably lack of<br/>necessary libraries and/or headers. Check the mkmf.log file for more<br/>details. You may need configuration options.<br/></pre><br/><br/>Found <a href="http://superuser.com/questions/163818/how-to-install-rmagick-on-ubuntu-10-04">this question on superuser.com</a> which pointed me to install the libmagickwand-dev-package.<br/><pre lang="bash"><br/>sudo apt-get install libmagickwand-dev<br/></pre><br/><br/>Finally, another attempt to install rmagick<br/><pre lang="bash"><br/>sudo gem install rmagick<br/></pre><br/><br/><br/><pre lang="bash"><br/>Building native extensions. This could take a while...<br/>Successfully installed rmagick-2.13.1<br/>1 gem installed<br/>Installing ri documentation for rmagick-2.13.1...<br/>Updating class cache with 0 classes...<br/>Installing RDoc documentation for rmagick-2.13.1...<br/></pre><br/><br/><b>Success!</b>Anonymoushttp://www.blogger.com/profile/11611761586739437441noreply@blogger.com3tag:blogger.com,1999:blog-8759020102588535135.post-71096636426982162832011-04-07T11:14:00.000+02:002013-05-28T11:27:05.571+02:00DavMail and microsoft online exchangeDavMail<br/><br/>URL: https://red002.mail.emea.microsoftonline.com/EWS/Exchange.asmx<br/>Enable EWS - check<br/><br/>IMAP<br/>Server name: localhost<br/>Port: 1143<br/>User name: username@domain.com<br/><br/>SMTP<br/>Server name: localhost<br/>Port: 1035<br/>Connection security: none<br/>Authentication method: Password, transmitted insecurely<br/>User Name: username@domain.com<br/><br/>LDAP<br/>Hostname: localhost<br/>Base DN: ou=people<br/>Port number: 1389<br/>Bind DN: username@domain.comAnonymoushttp://www.blogger.com/profile/11611761586739437441noreply@blogger.com0tag:blogger.com,1999:blog-8759020102588535135.post-6181038758767661552011-02-23T01:19:00.000+01:002013-05-28T11:27:05.566+02:00Wireless streaming from Spotify to PS3<a href="http://www.spotify.com"><img src="http://henning.fjas.no/blog/wp-content/uploads/2011/02/spotify-logo-96x96-pos-tagline.png" alt="" title="Spotify" width="96" height="112" class="alignright size-full wp-image-276" /></a><br/>After many hours trying to get wireless streaming from Spotify to Playstation 3, I finally found a working solution on Linux (ubuntu).<br/><br/>My setup:<br/><ul><br/><li><a href="http://www.ubuntu.com">Machine with Ubuntu Linux</a></li><br/><li><a href="http://us.playstation.com/">PS3</a></li><br/><li><a href="http://www.spotify.com/int/download/previews/">Spotify for Linux</a></li><br/><li><a href="http://code.google.com/p/ps3mediaserver/">PS3 Media Server</a></li><br/><li><a href="http://www.icecast.org">Icecast</a></li><br/></ul> <br/><br/>I used the solution described in <a href="http://www.actionshrimp.com/2010/08/streaming-spotify-to-a-ps3-from-ubuntu/">this blog</a>. <br/><br/>But I failed miserable with only streaming the echoes of silence...<br/><br/>Then I found <a href="http://tormod.landet.net/2009/06/19/streaming-audio-from-spotify-on-linux-to-squeezebox/">another Spotify streaming blog post</a>, only this time for squeezebox. <br/><br/>This inspired me to try the same trick creating a PulseAudio null-sink.<br/><pre lang="bash"><br/>pactl load-module module-null-sink sink_name=spotify<br/></pre><br/><br/>Setting the sound output to the new sink:<br/><br/><img src="http://henning.fjas.no/blog/wp-content/uploads/2011/02/sound-prefs.png" alt="" title="spotify-streaming-sound-prefs" width="614" height="479" class="alignnone size-full wp-image-270" /><br/><br/>install the lame encoding library to be able to stream mp3:<br/><br/><pre lang="bash"><br/>sudo aptitude install gstreamer10.0-plugins-ugly-multiverse<br/></pre><br/><br/>make sure icecast is running <br/><pre lang="bash"><br/>/etc/init.d/icecast2 start<br/></pre><br/><br/>and then fire up a mp3 stream:<br/><pre lang="bash"><br/>gst-launch-0.10 pulsesrc device=spotify.monitor ! audioconvert ! lame bitrate=320 mode=stereo ! shout2send ip=localhost port=8000 password=PASSWORD mount=spotify.mp3<br/></pre><br/><br/>I then added the following line to my <strong>WEB.conf</strong> in the ps3mediaserver root folder: <br/><pre lang="bash"><br/>audiostream.Web=Spotify,http://localhost:8000/spotify.mp3<br/></pre><br/><br/>Now start up your PS3 and PS3 Media Server. On your PS3 go to the 'Audio' section, select 'PS3 Media Server', Web-folder and Spotify. Be patient it takes a couple of seconds before it starts.Anonymoushttp://www.blogger.com/profile/11611761586739437441noreply@blogger.com3tag:blogger.com,1999:blog-8759020102588535135.post-67314507224380986342010-03-25T23:54:00.000+01:002013-05-28T11:27:05.568+02:00Basic authentication - CXF Tips and Tricks Part 1I'm starting a new blog post series with <a href="http://cxf.apache.org">Apache CXF</a> tips and tricks. In this first post I'll show you how to do communicate with a Web Service together with HTTP Basic authentication. <br/><br/>Below is an example of HTTP Basic authentication with username 'johnsmith' and password 'sesame99'.<br/><br/><pre lang="java"><br/>URL wsdl = getClass().getResource("myservice.wsdl.xml");<br/>MyService service = new MyService(wsdl).getMyServicePort();<br/>BindingProvider bp = (BindingProvider)service;<br/>bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "johnsmith");<br/>bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "sesame99");<br/></pre>Anonymoushttp://www.blogger.com/profile/11611761586739437441noreply@blogger.com3tag:blogger.com,1999:blog-8759020102588535135.post-11840837038826199052009-05-23T15:19:00.000+02:002013-05-28T11:27:05.559+02:00The Silver Bullet for PS3 Streaming and transcodingA while ago I bought a <a href="http://www.playstation.com">Sony Playstation 3 (PS3)</a> to use it as a gaming and media box. But finding a decent video streaming solution on the linux platform turned to be quite a hassle. After a lot of time searching for the ultimate solution supporting all kinds of codecs and transcoding to the ps3, I landed on <a href="http://henning.fjas.no/blog/2008/09/22/ps3-streaming-and-transcoding-xvid-on-the-fly-with-fuppes-on-linux/">Fuppes</a>. It wasn't the perfect solution but it solved most of my media issues. <br/><br/>But then I found the <a href="http://code.google.com/p/ps3mediaserver/">ps3mediaserver-project</a>. The feature list is huge, it supports all kinds of codecs through a ton of libraries. Runs on Java, and therefore platform-independent, Yeay!<br/><br/>Current features (from <a href="http://code.google.com/p/ps3mediaserver/">http://code.google.com/p/ps3mediaserver/</a>)<br/><br/> * Ready to launch and play. No codec packs to install. No folder configuration and pre-parsing or this kind of annoying thing. All your folders are directly browsed by the PS3, there's an automatic refresh also.<br/> * Real-time video transcoding of MKV/FLV/OGM/AVI, etc.<br/> * Direct streaming of DTS / DTS-HD core to the receiver<br/> * Remux H264/MPEG2 video and all audio tracks to AC3/DTS/LPCM in real time with tsMuxer when H264 is PS3/Level4.1 compliant<br/> * Full seeking support when transcoding<br/> * DVD ISOs images / VIDEO_TS Folder transcoder<br/> * OGG/FLAC/MPC/APE audio transcoding<br/> * Thumbnail generation for Videos<br/> * You can choose with a virtual folder system your audio/subtitle language on the PS3!<br/> * Simple streaming of formats PS3 natively supports: MP3/JPG/PNG/GIF/TIFF, all kind of videos (AVI, MP4, TS, M2TS, MPEG)<br/> * Display camera RAWs thumbnails (Canon / Nikon, etc.)<br/> * ZIP/RAR files as browsable folders<br/> * Support for pictures based feeds, such as Flickr and Picasaweb<br/> * Internet TV / Web Radio support with VLC, MEncoder or MPlayer<br/> * Podcasts audio/ Video feeds support<br/> * Basic Xbox360 support<br/> * FLAC 96kHz/24bits/5.1 support<br/> * Windows Only: DVR-MS remuxer and AviSynth alternative transcoder support <br/><br/>Go <a href="http://code.google.com/p/ps3mediaserver/downloads/list">get it</a> now!Anonymoushttp://www.blogger.com/profile/11611761586739437441noreply@blogger.com4tag:blogger.com,1999:blog-8759020102588535135.post-18602777266112708502009-03-03T00:42:00.000+01:002013-05-28T11:27:05.560+02:00Optimize git-svn workflow with bash auto complete and Hack&Ship scriptsI've just started using <a href="http://git-scm.com/">Git</a> at work. We have a large and old subversion repository at work, so git-svn comes to the rescue. Git-svn provides a connection between a central subversion repository and your local git repository. This enables you to get most of the benefits git provides, while still adhering to company standards and commit code to a subversion repository. <br/><br/>I recommend reading <a href="http://andy.delcambre.com/2008/03/04/git-svn-workflow.html">Git SVN Workflow</a> to get started with git-svn. <br/><br/>I had some trouble installing Git properly on my computer running Ubuntu 8.10. When executing git svn rebase I got the following message:<br/><pre lang="bash"><br/>Can't locate SVN/Core.pm<br/></pre><br/>After a lot of debugging I figured i was missing a perl library. Installing libsvn-perl did the trick:<br/><pre lang="bash"><br/> sudo aptitude install libsvn-perl<br/></pre><br/><br/>To get the most out of git-svn I'm using git bash completion and two small <a href="http://reinh.com/blog/2008/08/27/hack-and-and-ship.html">Hack && Ship</a> scripts to automate the workflow. <br/><br/><strong>Bash autocompletion</strong><br/><br/>Download and install <a href="http://repo.or.cz/w/git.git?a=blob_plain;f=contrib/completion/git-completion.bash;hb=master">git-completion.sh</a><br/><br/>Modify your PS1 variable in ~/.bashrc to show the current branch when inside a directory in a git repository:<br/><pre lang="bash"><br/>PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '<br/></pre><br/><br/>Your prompt will look something like this:<br/><pre lang="bash"><br/>neo@zion:~/dev/emp (trunk)$<br/></pre><br/><br/><strong>Automating the workflow</strong><br/><br/>The recommended git workflow is to create a branch for every new feature you work on. For your branches to be up to date you have to switch to your master branch, rebase with the svn repository, switch back to your branch and then rebase your branch with the master. This is 4 commands that can be automated. <br/><br/><strong>hack.sh</strong><br/><pre lang="bash"><br/>#!/bin/bash <br/>CURRENT=`git branch | grep '\*' | awk '{print $2}'`<br/>status=`git checkout master | awk '{print $1}'`<br/>if [[ ! "${status}" =~ error ]]; then<br/> git svn rebase <br/> git checkout ${CURRENT}<br/> git rebase master<br/>fi<br/></pre> <br/><br/>After making sure your branch is up to date you'll want to merge your branch with the master and then push your changes to the central repository (the subversion repository):<br/><br/><strong>ship.sh</strong><br/><pre lang="bash"><br/>#!/bin/bash<br/>CURRENT=`git branch | grep '\*' | awk '{print $2}'`<br/>git rebase -i master<br/>status=`git checkout master | awk '{print $1}'`<br/>if [[ ! "${status}" =~ error ]]; then<br/> git merge ${CURRENT}<br/> git svn dcommit<br/>fi<br/></pre>Anonymoushttp://www.blogger.com/profile/11611761586739437441noreply@blogger.com0tag:blogger.com,1999:blog-8759020102588535135.post-60026500491131538602009-02-26T00:01:00.000+01:002013-05-28T11:27:05.565+02:00CXF - How to set a custom endpoint addressFor some reason it is rarely straight forward how to configure a Java Web Service framework to use a custom endpoint address (one that is not in the WSDL). Anyway, here is how you do it in <a href="http://cxf.apache.org">CXF</a>:<br/><br/><pre lang="java"><br/>URL wsdl = getClass().getResource("myservice.wsdl.xml");<br/>MyService service = new MyService(wsdl).getMyServicePort();<br/>BindingProvider bp = (BindingProvider)service;<br/>bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, URL);<br/></pre>Anonymoushttp://www.blogger.com/profile/11611761586739437441noreply@blogger.com0tag:blogger.com,1999:blog-8759020102588535135.post-70143549174596340062009-02-19T23:16:00.000+01:002013-05-28T11:27:05.570+02:00Linux one liner: When did I come to work today?I'm usually quite tired when I get up in the morning. Beeing a consultant with flexible hours, it is often easy to forget exactly when I got to the office in the morning. So I figured i had to write a script to check when I started my computer. What it does is checking the syslog for the first occurence of todays date. I'm running Ubuntu linux and the syslog file is rotated a while after my computer has started. This is why I'm checking syslog.0.<br/><br/>The magic one liner:<br/><pre lang="BASH"><br/>date "+%b %d" | xargs -i grep -m1 -i {} /var/log/syslog.0 <br/> |awk '{ print "Today I got to work at " $3 }'<br/></pre><br/>(Syntax plugin didn't handle long lines properly. Remove the and put the entire thing on one line.)Anonymoushttp://www.blogger.com/profile/11611761586739437441noreply@blogger.com9tag:blogger.com,1999:blog-8759020102588535135.post-53837072347452981232008-09-23T00:46:00.000+02:002013-05-28T11:36:21.502+02:00PS3 - Streaming and transcoding xvid on the fly with fuppes on linuxI recently bought myself an PS3 and I'm very happy with it. Except for one thing, the built in support for streaming video is not the best. Currently it only seem to support some types of mpeg or wma files. This is not satisfactory since I've ripped most of my dvds into xvid. <br />
<br />
Finding a upnp streaming server for linux wasn't easy. After trying many different upnp streaming servers with DLNA support (ushare and mediatomb among others), I finally found <a href="http://fuppes.ulrich-voelkel.de/">fuppes</a>. It supports streaming and transcoding of media files on the fly. And it works great with PS3 :) <br />
<br />
<a href="http://ubuntuforums.org/showthread.php?t=597650">This thread</a> will get you started. But it is filled with xbox 360 questions and other issues: <br />
<br />
My setup: <br />
PS3 - firmware 2.43<br />
Ubuntu 7.10 Server (gutsy)<br />
fuppes - svn revision 578<br />
<br />
To make it short I did the following to get it to work:<br />
<em>Note that the apt-get install line has been escaped with slashes '\'. Remove them and put everything on one line if you encounter any problems.</em><br />
<pre lang="bash">
sudo apt-get install ffmpeg build-essential libavutil-dev libavformat-dev libavcodec-dev
\ subversion libtool automake autoconf libsqlite3-dev libpcre3-dev libxml2-dev
\ liblame-dev pkg-config
wget http://heanet.dl.sourceforge.net/sourceforge/fuppes/fuppes-SVN-578.tar.gz
tar xvzf fuppes-SVN-578.tar.gz
cd fuppes-SVN-578
autoreconf -vfi
./configure --enable-video-transcoding
make
sudo make install
sudo ldconfig</pre>
<br />
<br />
<a href="http://henning.fjas.no/blog/wp-content/uploads/fuppes.cfg">Download my fuppes.cfg</a> and put it in <strong>~/.fuppes/fuppes.cfg</strong><br />
<br />
If you wish to use init.d to control your startup take a look at <a href="http://fuppes.ulrich-voelkel.de/wiki/index.php?title=Startup_with_Init.d">this howto</a>.<br />
<br />
<strong>UPDATE - 23. May 2009:</strong> <a href="http://hj-dev.blogspot.no/2009/05/the-silver-bullet-for-ps3-streaming-and.html">Check out my silver bullet post about the ps3mediaserver-project</a>Anonymoushttp://www.blogger.com/profile/11611761586739437441noreply@blogger.com2tag:blogger.com,1999:blog-8759020102588535135.post-69694155366934459172007-03-22T11:17:00.000+01:002013-05-28T11:28:44.974+02:00Remove .svn directories from a project<img src="http://henning.fjas.no/blog/wp-content/uploads/2007/03/subversion_logo.png" alt="Subversion" style="float: left"/>Sometimes when you work on a project or checkout the source from an existing project you get stuck with a lot of .svn directories. This is quite a hassle to remove if you want to hook the source up to another subversion repository. Removing the files manually is quite tedious since every single directory that is under version control has its own .svn directory. This quick one-liner can help you: <br/><br/><pre><code>find . -type d -name .svn | xargs rm -rf</code></pre><br/><br/>(this is no magic really, just writing it for myself to remember.)Anonymoushttp://www.blogger.com/profile/11611761586739437441noreply@blogger.com0