Automating Ftp Uploads With Powershell
Apr 30, 2014
In my last post I have shared hwo you can archive a folder via powershell and Pscx. In my normal backup process I am used to upload zip files using ftp client like filezilla but now I am trying powershell to perform this task.
Please feel free to test following code and let me know your thoughts and improvements.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 #upload file using ftp function FtpUpload ($file, $ftphost, $ftpuser, $ftppass) { $Dir = Split-Path $file -Parent $filename = $file.
... ➦
Continuous Integration & Deployment For .Net Projects
Apr 30, 2014
I have been involved with development of small and large web applications for quite sometime now. While using latest tools and technology for development I always felt my workflow is from ancient times. Recently I got much obsessed with automation, I thought to improve my development workflow. In my mind I knew I need to do something about build process, tests the build, deployment of latest build and notify team members that new code/build is available.
... ➦
Sending Emails With Powershell
Apr 30, 2014
I am managing different servers and each of them have different responsibilities.
I am learning powershell and trying to build lego blocks that will eventually become recipes for automating tasks on different servers. One important block is email report for that if you don’t have smtp configured on server you can use following powershell script with gmail SMTP information.
I will open source on github many of the small powershell scripts that you can make use of to build something cool.
... ➦
Empower your outlook with powershell
Apr 30, 2013
I needed to genrate an email log that contains every email from our clients these normally stored in their seprate folder. One way was to copy and paste email headers and body into a word document. Second was to use powershell and got all the emails using some script.
After playing a little with powershell and google few of its basic I have completed my task with powershell.
{% gist 5944505 %}
... ➦
Fetch public tweets of any user using jQuery
Apr 30, 2013
I have been asked by many friends how to load tweets of any user using jQuery I have put some time and found two ways to do that using jQuery.
Twitter Timeline API following is the code to get public tweets of any user using javascript and twitter timeline api
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 $.
... ➦
MongoDB Setup On Windows 8
Apr 30, 2013
I am very much into learning new tools and burning hours of my life trying to figure them out. To track whats new on development horizon and technology I tend to keep my eyes on sessions, conferences, blogs and screen-casts.
In past few days I wanted to explore no-sql options two in particular RavenDB and MongoDB. I have successfully completed the environment setup for raven but didn’t use it in any project until now.
... ➦
MVC3 Scaffolding Commands
Apr 30, 2013
I had a freelance project that I have decided to do in MVC3 and to found following scaffolding commands very useful to get my Context, repository, controller, controller and views in PM console inside visual studio
1 2 3 4 5 Scaffold DbContext -Project CRS.Domain Service Concrete.CRSContext Scaffold Repository -ModelType Attachment -DbContextType BigApp.Domain.Concrete.BigAppContext -force Scaffold Controller -ModelType BigApp.Domain.Entities.Project -ControllerName Projects -DbContextType BigApp.Domain.Concrete.BigAppContext -Repository -NoChildItems -Force Scaffold Controller -ModelType CRS.Domain.Entities.Service -ControllerName Services -DbContextType CRS.
... ➦
Playing with octopress blogging
Apr 30, 2013
I first came to know about octopress from yayquery episode in which rebbeca murphy mentioned she has moved her blog form wordpress to octopress and she is very happy with that. At that time I didn’t paid any attention to this.
But today I suddenly started to play with it and I liked few things I learn along the way and that kept me going till I have imported all of my posts from wordpress to github pages.
... ➦
Testing jQuery code via YUI Test
Apr 30, 2013
The term TDD is not new to me I heard it quite often but never took time to go into details until last few days. I have been checking stuff from YUI team and liked their YUI test framework for now ,but in future i might switch to qUint (jquery testing framework) as I am big fan of jQuery and using it daily.
There are different version of YUI like 2.
... ➦
Writing .Net Windows Service Made Easy Using Topshelf
Apr 30, 2013
I have first read about topshelf Gregor’s blog and later fond scott hanselman recommendation about it.
public class TownCrier { readonly Timer _timer; public TownCrier() { _timer = new Timer(1000) { AutoReset = true }; _timer.Elapsed += (sender, eventArgs) => Console.WriteLine("It is {0} an all is well", DateTime.Now); } public void Start() { _timer.Start(); } public void Stop() { _timer.Stop(); } } public class Program { public static void Main() { HostFactory.
... ➦