If you are trying to download the latest/most current file on a linux machine onto a windows machine, THEN move said file to another linux machine using psftp and Windows Task Scheduler you may run into a few roadblocks.
First, psft provides limited linux commands and Task Scheduler does not process any “variables” you may want to access from “included” scripts. SO, what we need to do is define the “variables”, in our case, the most current date along with commands and echo them onto a dynamically created script which we then call once we connect via fstp.
Windows Shell Script Dates: If we want to print out 20150225 (YYYYMMDD):
Year: %date:~-4% is equal to 2015
Month: %date:~4,2% is equal to 02
Day: %date:~7,2% is equal to 25
with our final string looking like: %date:~-4%%date:~4,2%%date:~7,2%
Below is an example of grabbing the latest log file using date variables:
echo mget myLogFile%date:~-4%%date:~4,2%%date:~7,2%* > C:\myFolder\scripts\filetoget.scr
echo mput myLogFile%date:~-4%%date:~4,2%%date:~7,2%* > C:\myFolder\scripts\filetoput.scr
psftp -P [port] userName1@myhost1.com -pw myPassword1 -b C:\myFolder\scripts\filetoget.scr
psftp userName2@myhost2.com -pw myPassword2 -i c:\myFolder\putty\myPuttyKey.ppk -b C:\myFolder\scripts\filetoput.scr
del * /F /Q
I noticed that LinkedIn began placing an “Influencer” icon/badge next to a person’s name on the news feed. I think it’s a great idea, but the design could use a little improvement–it looks like it was created using MS Paint. The icon/badge suffers from poor alignment and the use of a font that neither matches the icon nor the pages typography. Here’s my take on improving the icon/badge–below is a side-by-side composite showing current badge versus my design. Thoughts?
Below is my solution to templates, using only JQuery.
I’ve never been much of a blog reader (or writer) but when I became inspired to read more business blogs by @ErikBison‘s post on business podcasts I decided to try and keep up with a few blogs. I wondered how best to “subscribe” to a blog from a central location. Being an avid Flipboard reader and curator I wondered if I could use Flipboad for gathering blog feeds. Turns out, there is an easy way but it appears to be a somewhat “secret” and behind the scenes.
Here are a few simple steps to follow and subscribe to a blog:
If you have a blog you’d like to subscribe to, simply grab it’s Blog Feed URL. You can get a blog’s feed url by simply tacking on a “/feed” to the blog ur, usually something like http://okdork.com/blog/feed/
Can’t find the feed url? It may also be under “wp-rss2.php” or “/?feed=rss2”
Once you have a blog’s url, simply copy-paste it onto the Flipboard App’s search texbox and hit search
The result should be the blog’s feed, simply tap “Follow” once you’ve opened it.
A few tips on the share links:
- For the Facebook share link, make sure to get a Facebook App Id by registering an app w/ https://developers.facebook.com/ and add your site’s url to get an app_id for use in the share link.
- Escape # (%23), @ (%40) and other special characters contained within value pairs of the share link (see links below)
The image we’ll be sharing: (This could be your logo or marketing graphic)
Working Example: (Click on links below)
The share link url’s from the working example:
http://twitter.com/home/?status=A Simple Social Media Share %23Example %40yesi79 http://yesi79.com/?p=561
https://www.facebook.com/dialog/feed?app_id=235356709923469&link=http://yesi79.com/?p=561&picture=http://yesi79.com/wp-content/uploads/2014/07/simpleshare.png&redirect_uri=http://yesi79.com/?p=561&name=A Simple Social Media Share %23Example&caption=My %23Caption&description=My %23Description
http://pinterest.com/pin/create/button/?media=http://yesi79.com/wp-content/uploads/2014/07/simpleshare.png&url=http://yesi79.com/?p=561&description=A Simple Social Media Share %23Example http://yesi79.com/?p=561
Twitter Cards: (If anyone shares your url)
If you would like an image to show up when user’s share your url within the tweet, make sure you have the proper twitter card meta tags on your page. You can use twitter’s neat twitter card validator to create the proper meta tags you’ll need and request to have your site registered (add your meta tags to your page, then test and validate your url, during the test process a link will show up asking if you’d like to register your site for twitter cards). To see a twitter photo card in action, click on the tweet link above and share this page; then view your tweet within the twitter iphone app.
Here are the meta tags you’ll need:
<meta name=”twitter:card” content=”photo”>
<meta name=”twitter:site” content=”yesi79″>
<meta name=”twitter:creator” content=”yesi79″>
<meta name=”twitter:title” content=”A Simple Social Media Share #Example @yesi79 http://yesi79.com/?p=561″>
<meta name=”twitter:image:src” content=”http://yesi79.com/wp-content/uploads/2014/07/simpleshare.png”>
<meta name=”twitter:domain” content=”http://yesi79.com/?p=561″>
<!– Optional –>
<meta name=”twitter:app:name:iphone” content=””>
<meta name=”twitter:app:name:ipad” content=””>
<meta name=”twitter:app:name:googleplay” content=””>
<meta name=”twitter:app:url:iphone” content=””>
<meta name=”twitter:app:url:ipad” content=””>
<meta name=”twitter:app:url:googleplay” content=””>
<meta name=”twitter:app:id:iphone” content=””>
<meta name=”twitter:app:id:ipad” content=””>
<meta name=”twitter:app:id:googleplay” content=””>
Quick Start Options
I haven’t used this option yet, but starting a trial now. So far, it’s easy to start a free trial.
Great tool, excellent metrics, multiple list and campaigns BUT be careful sending out email with MailChimp as they are a little too strict. If you get too high of a bounce-back rate or if even a few users complain (user’s can unsubscribe and specify flag your email as spam), Mailchimp will close your account (you can try to appeal). Mailchimp does offer a great trail period to get started however. You can create emails from templates or paste in an entire HTML document.
With a limited trial period, Marketo is a pricey option. However, the sending capabilities are great. The UI for managing emails and templates is a bit confusing. You can create emails from templates or paste in an entire HTML document.
For the tech savvy
I haven’t tried this option but here’s some info from Amazon:
The cloud based email service integrates with other AWS services, making it easy to send emails from applications being hosted on services such as Amazon EC2. With Amazon SES there is no long-term commitment, minimum spend or negotiation required – businesses can utilize a free usage tier and after that enjoy low fees for the number of emails sent plus data transfer fees.
Great app for sending emails within your application.
I haven’t tried this option but here’s some info from Sendy:
Sendy is a self hosted email newsletter application that lets you send trackable emails via Amazon Simple Email Service (SES). This makes it possible for you to send authenticated bulk emails at an insanely low price without sacrificing deliverability.
After installing Windows 7 via an ISO and then installing Windows 8 onto a MacBook Pro, I noticed that the resolution on the virtual instance of windows was not being set to the max resolution of my display. After several attempts in trying to fix, I noticed one small post on VMWare’s site about the issue. Turns out, it’s a quick fix. Simply launch your VMWare Fusion and resume your virtual windows instance. If your instance is running as a window, then simply go to the top VMWare menu under Virtual Machine > Install VMWare Tools. If you’re running your instance on full screen, scroll your mouse to the top of the screen and wait for the top Menu to show up (see attached screenshot above). Once you select “Install VMWare Tools” simply wait for the app to install on your windows instances. Before the installation is started you may get prompt asking what to do with the CD/ISO, simply click run/open to launch the installation.