cse

How to bring down a II 7 Web Site (Ok not really)

by ScottGeek 17. November 2009 20:08

 Yeap, everything came down and stopped working... sharepoint, blog, web site landing... everything. What the Hell! The short of it.... the advance web log app (that you can get from MS's Web Install Platform)... simply breaks the application pools that govern the WPprocess stack... yeah, ok.. that's geek for... it just plain does not work. At first I though it was webdav for IIS 7... but no, it was the advance logging tool.

 So, ScottGeek is back up and on-line...after a few well, gee I hope I didn't loose all of my wife's sharepoint files (that would be a bad thing)... speaking of which... maybe I should now image the server... or at least back it up? Arrrgggg!

~cse

Tags:

Moss | Twitter

More Twitter Stuff

by ScottGeek 16. August 2009 20:51

Feed Me RSS Feed

How about some Java?

 


import sun.misc.BASE64Encoder;

import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.OutputStreamWriter;
import java.net.URLConnection;
import java.net.URL;
import java.net.URLEncoder;

public class Twitter {
public static void main(String[] args) throws Exception {
if (args.length < 3) {
System.out.println("Twitter <userid> <password> <message>");
System.exit(-1);
}

URL url = new URL("https://twitter.com/statuses/update.xml");
URLConnection connection = url.openConnection();

connection.setDoInput(true);
connection.setDoOutput(true);
connection.setUseCaches(false);

String authorization = args[0] + ":" + args[1];
BASE64Encoder encoder = new BASE64Encoder();
String encoded = new String
(encoder.encodeBuffer(authorization.getBytes())).trim();
connection.setRequestProperty("Authorization", "Basic " + encoded);

OutputStreamWriter out = new OutputStreamWriter(
connection.getOutputStream());
out.write("status=" + URLEncoder.encode(args[2], "UTF-8"));
out.close();

BufferedReader in = new BufferedReader(
new InputStreamReader(
connection.getInputStream()));
String response;
while ((response = in.readLine()) != null) {
System.out.println(response);
}
in.close();

}
}

Some nice stuff….

 

~cse

Tags:

Twitter | Techo

Share on Twitter

by ScottGeek 16. August 2009 20:45

Interesting piece of code. I haven’t gotten into Twitter’s API yet… but he’s some sample code that will pop into Twitter with a check out kind of message:

<a href=”http://twitter.com/home?status=Currently reading http://www.test.com/post-url
title=”Click to share this post on Twitter>Share on Twitter</a>

-or-

<a href=”http://twitter.com/home?status=Currently reading &lt;?php the_permalink(); ?>
title=”Click to share this post on Twitter”>Share on Twitter</a>

Twitter bird

~cse

Tags:

Techo | Twitter

Powered by BlogEngine.NET - Modified by cse 1.5.0.7
Theme by Extensive SEO Modified by cse
Content on these pages are my thoughts and ideas and are by statement under US Copyright(C) CSE. If you borrow my words, Give Credit! Under no condition whatsoever do my Words, Thoughts, Opinions, Comments, or Statements reflect those of any Person, Company, Nation, or Living Creature upon this Planet or any other Planet in the known Universe or any Parallel Universe whether currently in existent or not. As such, I do not make warrenty as to anything written in the content of these pages. Use at your own risk!

Head Liner

Welcome to the new Blog upgrade... brought to a local Internet by me ScottGeek.