Important notice

Please note that this blog is discontinued here. All the posts are also coppied to my new blog at http://boris.gomiunik.net.
Important: Due to large amount of comment spam further commenting has been disabled here. If you wish to send me a comment, plase look up the same post on my new blog and leave comment there. Thanks!

2/26/2007

SharePoint list view filtered by ID

For some time now I was experimenting with the SharePoint Blog template. Did you notice, how when viewing the post under permalink you also have the related comments?

Being curious I continued to research, found that there are no web part connections. But when editing the web part current view, I've discovered a beautiful thing!

Now there is besides [Today] and [Me] that you can use for filter value, also [ID]. Perfect for making display forms and related contents. So now in new SharePoint you can filter also by ID passed in URL parameter.

Let me run that through again: First when setting up a list view, set up the filter with the following value: ID is equal to [ID]

When the list view is set, now you can use the ID parameter in the listview:

And the list view is going to display the item with that ID.

2/24/2007

Protect your email from spammers

If you've suddenly started to receive a lot of spam, check if you've written your email address somewhere on the Web. This can be dangerous, a published email address on the Internet can be harvested by special bots. There are ways to protect yourself and still publish the email so anyone can write you without a hassle.

If you're a FrontPage user, you can use a good plugin - Jimco Spam Spoiler. (There are other useful plugins for FP there also)

Other solutions for encrypting your email from harvest bots are:

http://www.wbwip.com/wbw/emailencoder.html
http://w2.syronex.com/jmr/safemailto/
http://automaticlabs.com/products/enkoderform
http://www.seoconsultants.com/tools/email/ 
http://www.ohlone.cc.ca.us/org/webcenter/emailencoder.html

Thanks Jose for sending me the links above.

2/20/2007

SharePoint Designer watches over our code?

Today I was making some custom scripting for one of our customers. And after finishing the code, I saved it and tried to preview... And nothing happened. Double-, triple- checked the code and all should be in order... Then at the end I've discovered some interesting feature or bug which tries to fix the code.

In the video below pay special attention to what happens to the </script> tag after I save the document.

The video is a bit fuzzy because of resizing, but Yes! The </script> tag automatically disappears even though it should be there. Probably calling the dvt_1.body template between confused the designer.

Anyone know a fix or how to turn this feature off? Right now I opened the site in FrontPage and there it doesn't care. :)

2/15/2007

Blog easier

Even though all of the blog providers enable very easy posting to blog, I still prefer to do it offline. One option is already presented - with Word 2007, which really simplifies the posting and work with pictures.

Another good program for blogging is Windows Live Writer. And I'm using this one. Why this one? Because it has some really neat features, a lot of plugins available, etc. A nice thing is that it can also ping the servers for you, so you don't have to do it manually. Below is a list of ping servers I've found. In writer you enter those under Tools --> Preferences --> Ping servers:

http://1470.net/api/ping
http://api.feedster.com/ping
http://api.feedster.com/ping.php
http://api.moreover.com/ping
http://api.moreover.com/RPC2
http://api.my.yahoo.com/RPC2
http://api.my.yahoo.com/rss/ping
http://bblog.com/ping.php
http://bitacoras.net/ping
http://blogdb.jp/xmlrpc
http://blog.goo.ne.jp/XMLRPC
http://blogmatcher.com/u.php
http://bulkfeeds.net/rpc
http://coreblog.org/ping/
http://mod-pubsub.org/kn_apps/blogchatt
http://ping.amagle.com/
http://ping.bitacoras.com
http://ping.bloggers.jp/rpc/
http://ping.blogmura.jp/rpc/
http://ping.blo.gs/
http://ping.cocolog-nifty.com/xmlrpc
http://pinger.blogflux.com/rpc/
http://ping.exblog.jp/xmlrpc
http://ping.feedburner.com
http://ping.myblog.jp
http://pingqueue.com/rpc/
http://ping.blogg.de/
http://ping.rootblog.com/rpc.php
http://ping.syndic8.com/xmlrpc.php
http://ping.weblogalot.com/rpc.php
http://ping.weblogs.se/
http://rcs.datashed.net/RPC2/
http://rpc.blogbuzzmachine.com/RPC2
http://rpc.blogrolling.com/pinger/
http://rpc.britblog.com/
http://rpc.icerocket.com:10080/
http://rpc.newsgator.com/
http://rpc.pingomatic.com/
http://rpc.tailrank.com/feedburner/RPC2
http://rpc.technorati.com/rpc/ping
http://rpc.weblogs.com/RPC2
http://rpc.wpkeys.com/
http://services.newsgator.com/ngws/xmlrpcping.aspx
http://signup.alerts.msn.com/alerts-PREP/submitPingExtended.doz
http://topicexchange.com/RPC2
http://trackback.bakeinu.jp/bakeping.php
http://www.a2b.cc/setloc/bp.a2b
http://www.bitacoles.net/ping.php
http://www.blogdigger.com/RPC2
http://www.blogoole.com/ping/
http://www.blogoon.net/ping/
http://www.blogpeople.net/servlet/weblogUpdates
http://www.blogroots.com/tb_populi.blog?id=1
http://www.blogshares.com/rpc.php
http://www.blogsnow.com/ping
http://www.blogstreet.com/xrbin/xmlrpc.cgi
http://www.holycowdude.com/rpc/ping/
http://www.lasermemory.com/lsrpc/
http://www.imblogs.net/ping/
http://www.mod-pubsub.org/kn_apps/blogchatter/ping.php
http://www.newsisfree.com/RPCCloud
http://www.newsisfree.com/xmlrpctest.php
http://www.popdex.com/addsite.php
http://www.snipsnap.org/RPC2
http://www.weblogues.com/RPC/
http://xmlrpc.blogg.de
http://xping.pubsub.com/ping/

What would be also very neat is that it would be able to post to SharePoint (so I could use it also for my other blog). Other thing is that it could have those neat effects for pictures and save pictures also to SharePoint Library.

On the other hand Word is missing the auto ping functionality, editing the code, etc. So: Word team and Writer team: please get together and exchange knowlege :)

Technorati tags: , ,

2/06/2007

Create comics online

Lately I'm noticing lots of sites passing information in a new way - with the aid of comic books! I like the Idea! Below you have some samples:

The Meatrix

The Enchanted Office

Genuine Fact Files

Creating (static) comics is no problem for mac users, While there also exists some programs for Windows I've found a very nice online service that lets you create simple comics - online. You can even create comics anonymous. But registration brings benefits, like strip blogging, Here is a simple example that I've created in minutes.

2/02/2007

SharePoint Document Library showing only folders and top-level items...

Today I was moving the videos for our e-learning portal Piflar to the new Windows SharePoint Services. And after moving videos for couple of hours - all one by one, not to break the links in data views, I start on working on the data view to display the videos. And I get terrified! The data view is showing only the folders I've created and videos that were in the main folder. So after first shock I've discovered what to do:

1. After inserting the data source click on the name of the data source in the Data Source Details pane to open the properties dialog.

  1. After inserting the data source click on the name of the data source in the Data Source Details pane to open the properties dialog.


  2. In the Item and folder scope dropdown select value RecursiveAll.

 

And all my data is back! Happy SharePointing :)

2/01/2007

Embed videos in your page

Google Video, SoapBox, YouTube and some others nowadays offer you a grrrreat way to publish your videos online and embed them in your site. But each embedded video has the logo of the service provider. You can also embed your own streaming video with all the free tools.

Step 1. Record and edit the video. For editing you can Windows Movie Maker is a super tool. Here you can learn a lot about Movie Maker.

Step 2. Encode your video into flv. For encoding I've discovered a great free tool: Riva flv encoder. With this tool it's really simple to encode the flw so if you can't afford Flash with video encoder, this is a super alternative.

Step 3. Upload your .flv. Use your website space to upload the flv video.

Step 4. Embed a free video player. Jose found a very nice looking online flv embedable player on Advanced Flash Components. We're also using the commercial version on www.prazniki.net. Here's a link to the free embedable flv player. There you also find the instructions on how to embed the player into your website.

Below is a sample for one of the videos that I've edited on the fly some time ago for B4Learning - now is Piflar's Web.

Technorati tags: , , , , ,

Turn off the lights

Don't forget today to turn off the lights. Read more about it here. Also if you can please help me spread the word about the survey of how much you saved by sending e-cards.

Maybe some of us will also turn off servers ;-).

Technorati tags: ,

1/29/2007

New Paint.NET available

Today I've received an auto-update of Paint.NET to version 3.0. Super. Just at a first glance, here are some features:

  • Multi-document interface
  • Gradients integrated into the Tools pane
  • User defined color paletes
  • New effects

And the thing I love the most (being also a PhotoShop user) - now you can switch primary and secondary color with just pressing key X. Small but I missed that a lot :) Thumbs up!

So if you don't have auto-update turned on, or you don't have this program yet, click here to download the latest version of paint.net

1/28/2007

IE 6 can support transparent png

Even though the new IE doesn't have problems with semi-transparency in png images we would believe that we still have to be careful - a lot of people is still using Internet Explorer 6. In my previous posts I've already shown that one solution is to use additional CSS for ie6 and older.

I've found that with the help of a simple JavaScript fix also the old IE can display transparent pngs properly.

Read about how to enable transparent png-s in Internet Explorer 6 and older here.

We still need a separate CSS for other incompatibilities :)

1/20/2007

Some good resources from Adobe

Probably you've noticed that the topic of the month for me is the cross-browser compatibility. So here's an additional resource from Adobe. Community based portal where you can get a lot of experience from others, facing certain problems with CSS. And it's well categorized also.

The site is called CSS Advisor. Already in my bookmarks. Thanks, Jose for the tip.

My new blog

Hurray for SharePoint. Using it I've managed to establish my new blog quite easily. Though it's also easy to create blogs in services like blogger, MSN spaces, etc. I'm happy that I have a blog in SharePoint.

Anyway, what is it about? It will be my attempt to say something about environment and ecology. So please visit my new eco blog - Eco wwway.

And as a starting point, I've created a short survey on how many e-cards you've sent instead of regular cards. So please help me spread the word and get as many answers to the survey!

Thanks in advance and happy blogging!

1/15/2007

CSS for different output (handhelds, print,...)

Thanks, Jose, for a good question. I've done some more digging and as a mater of fact we can make specific CSS according to the device the page is intended for. We can define CSS for different outputs, like handhelds, printing, screen, even projectors, etc. using the media type. Below's an example for first inserting the CSS for all output and then additionally adding the separate CSS for printing.

<head>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="printing.css" media="print">
</head>
<body>
...
Another method is in the CSS itself. Below is an example of writing specific styles for handheld devices and printing inside of the CSS file.

<style type="text/css">
@media = print, handheld {
h1 { font-family: Arial; font-size: 0.8em; }
}

As seen in the example above, the Heading 1 is going to be with font Arial and size 0.8em. 

Which options you have for output (most common used in bold):

  • all - for all media type devices
  • aural - for speech and sound synthesizers
  • braille - for braille tactile feedback devices
  • embossed - for paged braille printers
  • handheld - for small or handheld devices
  • print - for printers
  • projection - for projected presentations, like slides
  • screen - for computer screens
  • tty - for media using a fixed-pitch character grid, like teletypes and terminals
  • tv - for television-type devices

(source for above: W3Schools)

Even though there is a way to distinguish CSS for IE and other browsers, detecting them is a whole another story.

Technorati tags: , ,

1/14/2007

Having IE6 and IE7 at the same time

Continuing with the topic of my previous post. If you'd like to have compatible website you need to see it running in Internet Explorer 6 and Internet Explorer 7. This is tough though, because IE7 updates the IE6. If you don't want to have a separate computer just for IE6, click here to see how to have both IE-s running on the same computer.

I've installed the IE6 standalone and it works beautiful! Below is a screenshot from my start menu.

1/13/2007

CSS compatibility IE6, IE7, Firefox and others

How cool! The new Internet Explorer 7 now supports semi-transparent PNGs. So web design got a bit easier. Or did it? According to w3schools web statistics there is still a BIG amount of users of IE6. So how to adapt that web site will use advanced features on browsers that support them?

You can use some CSS hacks. Here's what you can do:

If you want to distinguish CSS for Internet Explorer (IE) and other browsers (so CSS display problems occur in IE), create a separate CSS file (many web designers call it iehacks.css). Next in the website after linking your original CSS for all the browsers add the following code:

<!--[if IE]>

<link rel="stylesheet" type="text/css" href="iehacks.css" />

<![endif]-->

And enter all the corrections for Internet Explorer in the iehacks.css file.

If you want to make specific css only for older versions of IE, then you have to use <!--[if lt IE7]--> instead of <!--[if IE]>.

Below is an example if you want to use semi-transparent .png as background in IE7, Firefox, Opera and others, but .jpg as background in IE6 and older. You can also use !important to seperate CSS for other browsers and IE.

HTML page:

<head>
<title>my css hacked page</title>
<link rel="stylesheet" type="text/css" href="styles.css" />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="iehacks.css">
<![endif]-->
<body>
  <div class="watermark">....</div>...

styles.css

/* styles for all browsers excluding IE7. Things not for IE7 will be left out with !important */
body {
    background-color: black;
    background-image: url('images/gradient.jpg');

    background-position: left top;
    background-repeat: repeat-x;
}   /* black background with gradient on top. */

div.watermark {
    background-image: url('images/watermark.png'); /* transparent */
    background-position: left top !important; /* for all but IE */
    background-position: right top; /* for IE */
    background-repeat: no-repeat;
}

iehacks.css

/* for IE6 and older */
div.watermark {
    background-image: url('images/watermark.gif'); /* here is a transparent that will be displayed better in IE6 and older */
}

Ofcourse above is just an example using semi-transparent png for all browsers but IE6 and older. Like that you'll be able to make your website more compatible. 

1/05/2007

50 coolest websites

Time.com announced 50 coolest websites. So if you're up for becoming the candidate for the next year, check and compare yourself to them. It's a good starting point :).

12/29/2006

Update to previous post - offline active content

If you'll be making the offline version of a website and you're thinking to include the active content like Flash or JavaScript (or both) you can surely use the Mark of the Web, which I've described in the previous post.

There is a catch though. You can't make the mark of the web for pictures. So if you'll be linking from your web pages directly to some images it won't work! The Internet Explorer security will block it.

The only way I could link "directly" to the image was to put the image into an empty page, equip the page with "mark of the web" comment and then link to that page.

If anyone knows a better way to resolve this, I'd be more than happy to read about it. You can let me know in the comments.

12/28/2006

Active content blocked when having page offline

Another issue when making offline web pages is the Windows XP service pack 2 issue, which blocks active content like javascript or flash animations.

When viewing offline page that contains flash animation or JavaScript with Internet explorer you can run into a problem. A yellow security bar or a notification about blocking active content.

Microsoft has an official workaround for this, named "Mark of the Web comment". Here's also description of it in Adobe's site.

To make it short. If you don't want your users to be troubled with this, just add the following to the top of your html code:

<!-- saved from url=(0013)about:internet -->

or

<!-- saved from url=(0022)http://www. yoururl .com -->

(the number in brackets represents the length of your URL - including http://)

This tells Internet Explorer to treat the page like Internet zone for which usually has the permissions for active content.

Verify all hyperlinks on your website

I had to do an offline version of a website recently and ofcourse once you have the site on a CD it's too late to make changes to it. That's why you have to absolutely sure that all of the links work.

SharePoint Designer and FrontPage have a great tool for checking this. First if you're using SharePoint Designer, you have to verify that it's using metadata to manage content on your website. To do this select the Site Settings command in Site menu. On the General tab make sure the Manage the Web site using hidden metadata files is checked. 

 

Next click the Web site tab and below select the Reports view. Under Problems category select Hyperlinks.

FrontPage or SharePoint Designer will display all the links in the website and check if they're broken. If you have a broken link you don't even need to open the page. Just right click the broken hyperlink and select Edit hyperlink.

And when you fix the link, just click the button Replace.

A very nice feature that can save you couple of hours of clicking through and checking bad links.

Technorati tags:

12/19/2006

New Screen Hunter

Remember my post about screen capturing software? Well There is a new version of screen hunter available. Now with even nicer interface, better options for capturing, etc. And still free for personal or business use. Great work, guys!

Click here to review and download it.