Some say it was about time…

Building a web business and turning a design into a living entity is a quest to make the smart decisions during early stages. Make better use of time building your pages, business and community. Check out my totally safe store first when looking for a book, a movie DVD or the coolest music album ever. I am including links to great eBooks and a wide range of royalty free pictures, ready for your site.

Most likely that you have heard of Software as a Service, the original “as a service” idea, and you are certainly using this type of service on a daily basis either on your smartphone, tablet or by accessing your online bank account.
The “as a service” world has expanded dramatically in the last decade and we are looking now at a plethora of services that reside “in the cloud”, whatever the type, location or reliability of the cloud may we be talking about.
Here is a top of “as a service” I put together that a business these days should not ignore:
I am planning to update this list and provide some insight into the ups and downs of using this and that service. I am personally concentrating on two major cloud solutions out there: Amazon and Windows Azure.
For the iCloud crowd, you have to appreciate the fact that Apple starts with the user and then figures out the technology part. The experience is great!
An Implicitly Typed Local Variable, var, is “new” and it is subject to restrictions:
Beyond the obvious use of var with LINQ, you may also clear the code for readability:
var d = new Dictionary<string, Dictionary<string, List<SomeClass>>>();
The entire debate around using the var is founded on readability.
Another pair of eyes see differently so the code has to self explain. That being said, using the var for just about anything is also an exageration. A method that returns a “hairy” type (like List<string>) would be easier to digest in a var but that would not tell those other pair of eyes anything about the purpose and the intention behind. So you would not know how that specific return was “intended to be used”. Just compare List<string> list = MyMethod():
The second one is actually saying “I am not going to change this, use an index to access list members or modify members.”. It’s quite a lot to say in that few words. But it’s not over because it is also saying “I am going to use this list simply to iterate across it”.
The intention is what you are giving up if you use var. You are not giving anything up where the usage is obvious through the declaration.
var i = 5;
var s = "Hello";
var d = 1.0;
var numbers = new int[] {1, 2, 3};
var orders = new Dictionary<int,Order>();
are equal to
int i = 5;
string s = "Hello";
double d = 1.0;
int[] numbers = new int[] {1, 2, 3};
Dictionary<int,Order> orders = new Dictionary<int,Order>();
I' would write a LINQ query like:
var rows = from DataRow r in parentRow.GetChildRows(myRelation)
where r.Field<bool>("Flag")
orderby r.Field<int>("SortKey")
select r;
But the debate is in the use of var, not in Anonymous Types, Object and Collection Initializers and Query Expressions, but everywhere in your code, for readability.
Here is Eric Lippert’s take on it:
All code is an abstraction. Is what the code is “really” doing is manipulating data? No. Numbers? Bits? No. Voltages? No. Electrons? Yes, but understanding the code at the level of electrons is a bad idea! The art of coding is figuring out what the right level of abstraction is for the audience.
In a high level language there is always this tension between WHAT the code does (semantically) and HOW the code accomplishes it. Maintenance programmers need to understand both the what and the how if they’re going to be successful in making changes. read more ..
Every now and then, someone tries to edit a PDF file and the old Acrobat and Distiller question pops back. What are the roles of those two and why still use Word to edit? Why is Acrobat still important in e-book creation?
First the basics. Adobe Acrobat only reads PDF files. It does not create PDF files, nor can it be used to create content of any kind. It allows setting of certain attributes and anchors, such as creating hyperlinks and setting document security settings.
Distiller is a print driver that outputs PDF files. It is not a reader, nor an application used to create any content.
Adobe Acrobat (not Acrobat Reader) does not edit files, you create your content in a applications like Word, Photoshop.. then print to Distiller (some applications have a “Save as PDF” functionality like Word does in an optional add-on) and save the resulting file as PDF. All word, spreadsheet or image editing or viewing applications should be able to print.
You may open the PDF in Acrobat for fine tuning:
1) create hyperlinks (see Tools/Locate Web Addresses)
2) create title and author (see File/Document Properties)
3) set your desired security level (see File/Document Security)
4) File SAVE AS whatever.pdf. It is important not to just SAVE but to use SAVE AS because this eliminates unused fonts and makes a smaller PDF.
An important decision is to embed fonts in your PDF, or use system fonts. This impacts the size of your PDF but embedding your fonts guarantees that your reader will see the exact page layout you designed. The better system fonts seem to be the small common ones such as Times Roman or Arial. You should know that embedding fonts is a Distiller option (Printer/Preferences/Adobe PDF Settings/General Conversion Settings).
Currently, High speed internet access is becoming the norm and PDF files are generally small. As I was saying in a previous post, content is King.
It's a real possibility that the web server is locked down and secured.
Web application hacking requires the attacker to understand application logic.
A website may be ripped entirely and stored locally. While this does not give out the code behind, it shows how input is passed, what types of error messages are returned, and the types of input that various fields will accept.
Here is a list of vulnerabilities and possible attacks to add to your list. Also check this list that Microsoft put out:
http://msdn.microsoft.com/en-us/library/ms998372.aspx#pagpractices0001_indexofpractices
Check out this article: http://msdn.microsoft.com/en-us/library/ms998375.aspx
Hidden Fields
Hidden fields used for obscuring values are poor coding. The theory is that if end users cannot see it, it is safe from tampering. Many sites use these hidden value fields to store the price of the product that is passed to the web application. An example pulled from a website is shown here:
<INPUT TYPE=HIDDEN NAME="name" VALUE="Mens Ring">
<INPUT TYPE=HIDDEN NAME="price" VALUE="$345.50">
<INPUT TYPE=HIDDEN NAME="sh" VALUE="1">
<INPUT TYPE=HIDDEN NAME="return" VALUE="http://www.vulnerable_site.com/cgi-bin/cart.pl?db=stuff.dat&category=&search=Mens-Rings&method=&begin=&display=&price=&merchant=">
<INPUT TYPE=HIDDEN NAME="add2" VALUE="1">
<INPUT TYPE=HIDDEN NAME="img"
VALUE="http://www.vulnerable_site.com/images/c-14kring.jpg">
Here is an example tampering with a poorly written shopping cart:
Save the page locally and open the source code.
2.
Modify the amount and save the page. As an example, change $345.50 to $5.99:
<INPUT TYPE=HIDDEN NAME="name" VALUE="Mens Ring">
<INPUT TYPE=HIDDEN NAME="price" VALUE="$5.99">
3.
Refresh the local HTML page and then click Add to Cart. If successful, you'll be presented with a checkout page that reflects the new hacked value of $5.99.
This is an extreme example for illustration purposes that an application should never rely on the web browser to set the values for sensitive data. Even without changing the price, an attacker might just try to feed large amounts of data into the field to see how the application responds. Values from hidden fields, check boxes, select lists, and HTTP headers might be manipulated by malicious users and used to make web applications misbehave if the designer did not build in proper validation.
If you think that there is a shortage of sites with these types of vulnerabilities, think again. A quick Google search for type=hidden name=price returns hundreds of hits.
Cookies have a legitimate purpose. Security by obscurity is never a good idea. Cookies used with forms authentication or other remember me functionality might hold passwords or usernames and cookies can be viewed with cookie viewers. Example:
Set-Cookie: UID= bWlrZTptaWtlc3Bhc3N3b3JkDQoNCg; expires=Fri, 06-Jan-2010
The UID value appears to contain random letters, but more than that is there. If you run it through a Base64 decoder, you end up with mike:mikespassword. It's never good practice to store sensitive information, encrypted, in a cookie, a hash should be preferred.
Cross-Site Scripting
Cross-site scripting (XSS) is a computer security exploit that occurs when a web application is used to gather data from a victim. Here is an example of a possible entry in a text field:
<A HREF="http://example.com/comment.aspx?mycomment=<SCRIPT> malicious code</SCRIPT>">
Click here</A>
XSS can be prevented by HtmlEncoding displayed data and the input from a form is validated. Prevention also requires that the users remain leery of embedded links.
Interception, Inspection, Modification
A web proxy allows interception, inspection, and modification the raw contents of the traffic, as explained in the following:
These tools make it possible to perform SQL injection, cookies subversion, buffer overflows, and other types of attacks.
It has been long since my last article but I must tell you, I have been spending my time doing some beautiful programming lately and, while I was away, Microsoft decided to put another browser out in the world.The market is hungry for good readable and easily remembered domain names.
For six months I have been searching to build on the right name and I found the market takes domain names as premium real estate. Many believe that buying the domain now is an unnecessary investment and wait until they develop the site (or product) and are ready to sail the cyber-wave.
According to Ron Jackson, editor and publisher of Domain Name Journal, there is a handful of people (between 1000 and 2000 individuals, most of them remaining anonymous to avoid competition) that make a living out of domain names but these are people spending six figures to snap up domains left and right and build an empire on domains.
I'm writing for the rest of us but if you're bitten by the domaining bug, I suggest waiting for Page Howe's Domain Name Investing: How to Make Money in Internet Real Estate. If that is your business, there is a community out there for you.
I was mostly looking to get the right domain name for my idea. I already had bynapse.com, a domain that gave me much joy to own but, as most of us, I had a name for my idea and found that people out there are looking for someone else's good idea. You may hear that ideas are cheap and abundant .. not when it comes to domain names !
I recently had a customer for which I've built a simple site for a good cause. He's trying to convince people to volunteer to help a school in Nepal. So we're chatting about the idea and he's searching at night for domain names and finds the name he always had in mind is available.
A few days later he contacts me so we can start setting things up just to find that the domain has been registered, is parked and offered for sale. Here is a nice article about some less ethical practices on DomainName News and if this isn't something a domainer usually does, its one more thing you have to consider when shopping.
In the end, he had his way and found both the English and French version of the new domain names I helped him to come up with, but this time, he searched and bought them right away and the site came up pretty fast afterwards. Check it out at VolunteerToNepal.org.
As a note, all searches leave a trace and there are always people on the lookout for a nice idea. Well, in this business, ideas don't come cheap and may end up as consistent checks to bring to the bank.
I recently had to answer to the: “Should we go with AJAX” question and, for a developer, the answer to this question is not obvious. There are many benefits in using AJAX, both from the user or programmer’s perspective but this particular question is not technical. AJAX is not a programming language but a technique and this calls to a cost management conversation as well as the determination of ROI.
Park your domains and make a buck while you think about it? Unless you are in this business, domain monetizing is not going to put a meal on the table, but monetizing is possible and makes enough to make owning the parked domain worth while.
First of all I have to apologise for not writing here for awhile, I was and still am very busy writing code, something else I love to do besides writing my blog. I will be back in here shortly and let you know where my roads take me.This list is published every Friday and values originality. Submit your suggestions for next week as comments.
And don't forget my web templates shop at Bynapse.com - the easy web.
Reciprocal link of the week : TimeBooking
This list is published every Friday and values originality. Submit your suggestions for next week as comments.
And don't forget my web templates shop at Bynapse.com - the easy web.
Reciprocal link of the week : Aloe Living
This list is published every Friday and values originality. Submit your suggestions for next week as comments.
And don't forget my web templates shop at Bynapse.com - the easy web.
Reciprocal link of the week : TimeBooking

Most likely that you have heard of Software as a Service, the original “as a service” idea, and you are certainly using this type of service on a daily basis either on your smartphone, tablet or by accessing your online bank account.
The “as a service” world has expanded dramatically in the last decade and we are looking now at a plethora of services that reside “in the cloud”, whatever the type, location or reliability of the cloud may we be talking about.
Here is a top of “as a service” I put together that a business these days should not ignore:
I am planning to update this list and provide some insight into the ups and downs of using this and that service. I am personally concentrating on two major cloud solutions out there: Amazon and Windows Azure.
For the iCloud crowd, you have to appreciate the fact that Apple starts with the user and then figures out the technology part. The experience is great!
An Implicitly Typed Local Variable, var, is “new” and it is subject to restrictions:
Beyond the obvious use of var with LINQ, you may also clear the code for readability:
var d = new Dictionary<string, Dictionary<string, List<SomeClass>>>();
The entire debate around using the var is founded on readability.
Another pair of eyes see differently so the code has to self explain. That being said, using the var for just about anything is also an exageration. A method that returns a “hairy” type (like List<string>) would be easier to digest in a var but that would not tell those other pair of eyes anything about the purpose and the intention behind. So you would not know how that specific return was “intended to be used”. Just compare List<string> list = MyMethod():
The second one is actually saying “I am not going to change this, use an index to access list members or modify members.”. It’s quite a lot to say in that few words. But it’s not over because it is also saying “I am going to use this list simply to iterate across it”.
The intention is what you are giving up if you use var. You are not giving anything up where the usage is obvious through the declaration.
var i = 5;
var s = "Hello";
var d = 1.0;
var numbers = new int[] {1, 2, 3};
var orders = new Dictionary<int,Order>();
are equal to
int i = 5;
string s = "Hello";
double d = 1.0;
int[] numbers = new int[] {1, 2, 3};
Dictionary<int,Order> orders = new Dictionary<int,Order>();
I' would write a LINQ query like:
var rows = from DataRow r in parentRow.GetChildRows(myRelation)
where r.Field<bool>("Flag")
orderby r.Field<int>("SortKey")
select r;
But the debate is in the use of var, not in Anonymous Types, Object and Collection Initializers and Query Expressions, but everywhere in your code, for readability.
Here is Eric Lippert’s take on it:
All code is an abstraction. Is what the code is “really” doing is manipulating data? No. Numbers? Bits? No. Voltages? No. Electrons? Yes, but understanding the code at the level of electrons is a bad idea! The art of coding is figuring out what the right level of abstraction is for the audience.
In a high level language there is always this tension between WHAT the code does (semantically) and HOW the code accomplishes it. Maintenance programmers need to understand both the what and the how if they’re going to be successful in making changes. read more ..
Every now and then, someone tries to edit a PDF file and the old Acrobat and Distiller question pops back. What are the roles of those two and why still use Word to edit? Why is Acrobat still important in e-book creation?
First the basics. Adobe Acrobat only reads PDF files. It does not create PDF files, nor can it be used to create content of any kind. It allows setting of certain attributes and anchors, such as creating hyperlinks and setting document security settings.
Distiller is a print driver that outputs PDF files. It is not a reader, nor an application used to create any content.
Adobe Acrobat (not Acrobat Reader) does not edit files, you create your content in a applications like Word, Photoshop.. then print to Distiller (some applications have a “Save as PDF” functionality like Word does in an optional add-on) and save the resulting file as PDF. All word, spreadsheet or image editing or viewing applications should be able to print.
You may open the PDF in Acrobat for fine tuning:
1) create hyperlinks (see Tools/Locate Web Addresses)
2) create title and author (see File/Document Properties)
3) set your desired security level (see File/Document Security)
4) File SAVE AS whatever.pdf. It is important not to just SAVE but to use SAVE AS because this eliminates unused fonts and makes a smaller PDF.
An important decision is to embed fonts in your PDF, or use system fonts. This impacts the size of your PDF but embedding your fonts guarantees that your reader will see the exact page layout you designed. The better system fonts seem to be the small common ones such as Times Roman or Arial. You should know that embedding fonts is a Distiller option (Printer/Preferences/Adobe PDF Settings/General Conversion Settings).
Currently, High speed internet access is becoming the norm and PDF files are generally small. As I was saying in a previous post, content is King.
It's a real possibility that the web server is locked down and secured.
Web application hacking requires the attacker to understand application logic.
A website may be ripped entirely and stored locally. While this does not give out the code behind, it shows how input is passed, what types of error messages are returned, and the types of input that various fields will accept.
Here is a list of vulnerabilities and possible attacks to add to your list. Also check this list that Microsoft put out:
http://msdn.microsoft.com/en-us/library/ms998372.aspx#pagpractices0001_indexofpractices
Check out this article: http://msdn.microsoft.com/en-us/library/ms998375.aspx
Hidden Fields
Hidden fields used for obscuring values are poor coding. The theory is that if end users cannot see it, it is safe from tampering. Many sites use these hidden value fields to store the price of the product that is passed to the web application. An example pulled from a website is shown here:
<INPUT TYPE=HIDDEN NAME="name" VALUE="Mens Ring">
<INPUT TYPE=HIDDEN NAME="price" VALUE="$345.50">
<INPUT TYPE=HIDDEN NAME="sh" VALUE="1">
<INPUT TYPE=HIDDEN NAME="return" VALUE="http://www.vulnerable_site.com/cgi-bin/cart.pl?db=stuff.dat&category=&search=Mens-Rings&method=&begin=&display=&price=&merchant=">
<INPUT TYPE=HIDDEN NAME="add2" VALUE="1">
<INPUT TYPE=HIDDEN NAME="img"
VALUE="http://www.vulnerable_site.com/images/c-14kring.jpg">
Here is an example tampering with a poorly written shopping cart:
Save the page locally and open the source code.
2.
Modify the amount and save the page. As an example, change $345.50 to $5.99:
<INPUT TYPE=HIDDEN NAME="name" VALUE="Mens Ring">
<INPUT TYPE=HIDDEN NAME="price" VALUE="$5.99">
3.
Refresh the local HTML page and then click Add to Cart. If successful, you'll be presented with a checkout page that reflects the new hacked value of $5.99.
This is an extreme example for illustration purposes that an application should never rely on the web browser to set the values for sensitive data. Even without changing the price, an attacker might just try to feed large amounts of data into the field to see how the application responds. Values from hidden fields, check boxes, select lists, and HTTP headers might be manipulated by malicious users and used to make web applications misbehave if the designer did not build in proper validation.
If you think that there is a shortage of sites with these types of vulnerabilities, think again. A quick Google search for type=hidden name=price returns hundreds of hits.
Cookies have a legitimate purpose. Security by obscurity is never a good idea. Cookies used with forms authentication or other remember me functionality might hold passwords or usernames and cookies can be viewed with cookie viewers. Example:
Set-Cookie: UID= bWlrZTptaWtlc3Bhc3N3b3JkDQoNCg; expires=Fri, 06-Jan-2010
The UID value appears to contain random letters, but more than that is there. If you run it through a Base64 decoder, you end up with mike:mikespassword. It's never good practice to store sensitive information, encrypted, in a cookie, a hash should be preferred.
Cross-Site Scripting
Cross-site scripting (XSS) is a computer security exploit that occurs when a web application is used to gather data from a victim. Here is an example of a possible entry in a text field:
<A HREF="http://example.com/comment.aspx?mycomment=<SCRIPT> malicious code</SCRIPT>">
Click here</A>
XSS can be prevented by HtmlEncoding displayed data and the input from a form is validated. Prevention also requires that the users remain leery of embedded links.
Interception, Inspection, Modification
A web proxy allows interception, inspection, and modification the raw contents of the traffic, as explained in the following:
These tools make it possible to perform SQL injection, cookies subversion, buffer overflows, and other types of attacks.
It has been long since my last article but I must tell you, I have been spending my time doing some beautiful programming lately and, while I was away, Microsoft decided to put another browser out in the world.The market is hungry for good readable and easily remembered domain names.
For six months I have been searching to build on the right name and I found the market takes domain names as premium real estate. Many believe that buying the domain now is an unnecessary investment and wait until they develop the site (or product) and are ready to sail the cyber-wave.
According to Ron Jackson, editor and publisher of Domain Name Journal, there is a handful of people (between 1000 and 2000 individuals, most of them remaining anonymous to avoid competition) that make a living out of domain names but these are people spending six figures to snap up domains left and right and build an empire on domains.
I'm writing for the rest of us but if you're bitten by the domaining bug, I suggest waiting for Page Howe's Domain Name Investing: How to Make Money in Internet Real Estate. If that is your business, there is a community out there for you.
I was mostly looking to get the right domain name for my idea. I already had bynapse.com, a domain that gave me much joy to own but, as most of us, I had a name for my idea and found that people out there are looking for someone else's good idea. You may hear that ideas are cheap and abundant .. not when it comes to domain names !
I recently had a customer for which I've built a simple site for a good cause. He's trying to convince people to volunteer to help a school in Nepal. So we're chatting about the idea and he's searching at night for domain names and finds the name he always had in mind is available.
A few days later he contacts me so we can start setting things up just to find that the domain has been registered, is parked and offered for sale. Here is a nice article about some less ethical practices on DomainName News and if this isn't something a domainer usually does, its one more thing you have to consider when shopping.
In the end, he had his way and found both the English and French version of the new domain names I helped him to come up with, but this time, he searched and bought them right away and the site came up pretty fast afterwards. Check it out at VolunteerToNepal.org.
As a note, all searches leave a trace and there are always people on the lookout for a nice idea. Well, in this business, ideas don't come cheap and may end up as consistent checks to bring to the bank.
I recently had to answer to the: “Should we go with AJAX” question and, for a developer, the answer to this question is not obvious. There are many benefits in using AJAX, both from the user or programmer’s perspective but this particular question is not technical. AJAX is not a programming language but a technique and this calls to a cost management conversation as well as the determination of ROI.
Park your domains and make a buck while you think about it? Unless you are in this business, domain monetizing is not going to put a meal on the table, but monetizing is possible and makes enough to make owning the parked domain worth while.
First of all I have to apologise for not writing here for awhile, I was and still am very busy writing code, something else I love to do besides writing my blog. I will be back in here shortly and let you know where my roads take me.This list is published every Friday and values originality. Submit your suggestions for next week as comments.
And don't forget my web templates shop at Bynapse.com - the easy web.
Reciprocal link of the week : TimeBooking
This list is published every Friday and values originality. Submit your suggestions for next week as comments.
And don't forget my web templates shop at Bynapse.com - the easy web.
Reciprocal link of the week : Aloe Living
This list is published every Friday and values originality. Submit your suggestions for next week as comments.
And don't forget my web templates shop at Bynapse.com - the easy web.
Reciprocal link of the week : TimeBooking