|
Sorenson Squeeze for reducing .flv files
|
|
27.06.2009 22:32:09
- Filed under :
Asp.net
|
Misc
|
|
|
For starters, Sorenson Media has been the global leader in video encoding and compression technology for nearly a decade and a half.
What does that mean? It means that every day thousands of people rely on Sorenson Media for all their video encoding, publishing and delivery needs. So then the question becomes: Why wouldn't you?
When quality counts, turn to the company you can trust, turn to Sorenson Media.
Raw, uncompressed video is a huge beast. Traditionally, getting it online meant sending any large, foreboding video to the unknown server in the sky so they can encode and deliver to you when they got around to it. This takes up resources, bandwidth and most importantly time. Oh yeah, and it can cost a lot of money.
Utilizing Sorenson's desktop and web-based applications you can compress that video down to a manageable size, upload it to the web and publish to your site in a matter of minutes.
This is my experience steps for reducing size of flv file :
- Get .flv file with "Import File" - Select "Format Sort" in "Audience presents" - Select "Adobe Flash Video (.flv)" at line third - You can choose "F8_256K" to best performance (according to my experience) - Click "Apply" button to apply filter - Click "Squeeze it!" at right bottom side of screen to start conversion. - You can access converted file at directory that original file already located.
Keywords : Reducing .flv video file without loss of quality. Sorenson Squeeze v5.0
|
with 0 comments
|
|
|
Configuring Awstats for Mulitple web sites
|
|
26.06.2009 14:44:33
- Filed under :
Asp.net
|
|
|
I explained something about installation Awstats log analyzer tool before. I list all required steps to implement much more web site to use Awstats report. Here we go :
1. Configure W3SVC log format in IIS (in Website tab)
You should delete all previos log file in Log files directory (ex: C:\WINDOWS\system32\LogFiles\W3SVC129507843) If you can not delete anything in that folder, please try to stop website and delete it again. Then set these properties to enable.
- Date (date) - Time (time) - Client IP Address (c-ip) - Username (cs-username) - Method (cs-method) - URI Stem (cs-uri-stem) - URI Query (cs-uri-query) - Protocol Status (sc-status) - Bytes Sent (sc-bytes) - Protocol Version (cs-version) - User Agent (cs(User-Agent)) - Referrer (cs(Referrer))
2. Access to web site with Internet explorer/firefox to create sample log file in server's LogFiles directory.
3. Create configuration file in "C:\perl\wwwroot\cgi-bin" (ex : awstats.www.sampledomain.com.tr.conf)
4. Update 3 parameters according to new site.
- LogFile="C:\WINDOWS\system32\LogFiles\W3SVC129507843\ex%YY-24%MM-24%DD-24.log" - SiteDomain="www.sampledomain.com.tr" - HostAliases="sampledomain.com.tr www.sampledomain.com.tr"
5. Copy icon folder in "C:\perl\wwwroot\icon" to your root website directory (ex: C:\Inetpub\wwwroot\sampledomain\sampledomain)
6. Create stats folder in web root to publish report (ex : C:\Inetpub\wwwroot\sampledomain\sampledomain\stats)
7. Right click on the stats folder in IIS and select properties, then click documents tab and add default html page name (ex : awstats.www.sampledomain.com.tr.html) Then, move it to first line.
6. Create batch file with following lines (ex : AwstatsService.bat) C:\Perl\wwwroot\cgi-bin\awstats.pl -config=www.sampledomain.com.tr –update C:\Perl\tools\awstats_buildstaticpages.pl -config=www.sampledomain.com.tr -update -lang=en -dir="C:\Inetpub\wwwroot\sampledomain\sampledomain\stats" -awstatsprog="C:\Perl\wwwroot\cgi-bin\awstats.pl"
Hint : This batch file use previous day log records. see 9th line below if you want to see current traffic.
7. Create scheduled task in Control Panel for batch file (AwstatsService.bat) to run it in anytime.
8. You can access report by http://www.sampledomain.com.tr/stats/
9. Use this batch file (ex : AwstatsCurrent.bat) if you want to see current usage in traffic report. C:\Perl\wwwroot\cgi-bin\awstats.pl –config=www.sampledomain.com.tr –update –logfile="C:\WINDOWS\system32\LogFiles\sampledomain\W3SVC1370046439\ex090620.log" C:\Perl\tools\awstats_buildstaticpages.pl -config=www.sampledomain.com.tr -update -lang=en -dir="C:\Inetpub\wwwroot\sampledomain\sampledomain\stats" -awstatsprog="C:\Perl\wwwroot\cgi-bin\awstats.pl"
Because AwstatsService.bat (in 6th item) use previous day log records. Note : You should change logfile name that end of first line everyday. (ex090620.log)
10. Note : Don't run batch file (ex : AwstatsCurrent.bat) in 2 minutes again.
Keywords : Awstats configuration for multiple web sites.
|
with 0 comments
|
|
|
Flash Player Detection Kit
|
|
25.06.2009 10:51:57
- Filed under :
Asp.net
|
|
|
The Flash Player Detection Kit helps developers implement robust player detection for a variety of deployment environments by providing a set of templates and techniques to successfully detect the version of Flash Player installed on a user’s computer, and, if needed, to then install the latest version of Flash Player. The kit also includes a detailed explanation and sample files for implementing the new, player-based Flash Player Express Install experience. The scripts in the Flash Player Detection Kit are also incorporated into Flash Professional 8.
Please click here to download Client-side/Javascript Detection samples.
More detail : http://www.adobe.com/products/flashplayer/download/detection_kit/
Keywords : Flash version detection, javascript
|
with 0 comments
|
|
|
The remote certificate is invalid
|
|
24.06.2009 22:54:49
- Filed under :
C#
|
Asp.net
|
|
|
If I enable EnableSsl for smtpclient am getting an exception: "The remote certificate is invalid according to the validation procedure."
It means the server certificate isn't valid by regular validation rules. You can simply use this snippet to by-pass it:
public static bool AcceptAllCertificatePolicy(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; } public static void SendMail(string body, string to, string subject, string attachFilename) { MailMessage message = new MailMessage(); message.Priority = MailPriority.Normal; message.To.Add(new MailAddress(to)); message.Subject = subject; message.IsBodyHtml = true; message.BodyEncoding = System.Text.Encoding.GetEncoding("ISO-8859-9"); message.Body = body;
if (attachFilename != string.Empty) { message.Attachments.Add(new Attachment(attachFilename)); }
ServicePointManager.ServerCertificateValidationCallback = AcceptAllCertificatePolicy; SmtpClient client = new SmtpClient(); client.EnableSsl = true; client.Send(message); }
Keywords : Smtpclient, asp.net, system.net.mail, EnableSSL, validation.
|
with 0 comments
|
|
|
ASP.NET GridView Paging Style
|
|
23.06.2009 10:05:07
- Filed under :
Asp.net
|
CSS
|
|
|
Tip 1: Change the style of the selected page or highlight the current page in the GridView Pager control A simple way is to use CSS as shown below. The <PagerStyle> is set to a css class which modifies the style of the pager: <head runat="server"> <title></title> <style type="text/css"> .cssPager span { background-color:#4f6b72; font-size:18px;} </style> </head> <asp:GridView ID="GridView1" runat="server" AllowPaging="true" AutoGenerateColumns="false" DataKeyNames="ProductID" DataSourceID="SqlDataSource1"> <PagerStyle CssClass="cssPager" /> ... The output is as shown below, with the style set for the current page.

Tip 2: How to increase the spacing between the ASP.NET GridView Pager Numbers One simple way is to use CSS again. Observe how we have set a cssClass to the PagerStyle, similar to what we saw in Tip 1, and are increasing the padding for the <td>: <head runat="server"> <title></title> <style type="text/css"> .cssPager td { padding-left: 4px; padding-right: 4px; } </style> </head> <asp:GridView ID="GridView1" runat="server" AllowPaging="true" AutoGenerateColumns="false" DataKeyNames="ProductID" DataSourceID="SqlDataSource1"> <PagerStyle CssClass="cssPager" /> ... The output looks similar to the following with the increased space between the page number display.

Keywords : Some Tips and Tricks while Using ASP.NET GridView Paging
|
with 0 comments
|
|
Previous
|
Next
Current Page: 1
|