- served since Sept, 2008!
Web Development Resources
Browser and length independent CSV download code 17-09-2015 Downloading a csv string as a file on browser can be troublesome. Some techniques don't work for very long CSV strings and some techniques only work on some browsers. Below code is tested on Internet Explorer 11, Firefox 27.0.1, and ... How to: Exclude Projects from a Build How to exclude a project from your visual studio solution. Source: How to: Exclude Projects from a Build quote The combination of the word “SORRY” and POLITENESS creates an amazing potion which can dissolve lots of anger in milliseconds. - Cassian Menol Razeek Always on top web browser 9-9-2015 Today I wanted to watch an online video while working on other windows but couldn't get my browser to do it. After failing with recommended solutions such as browser extensions I thought to quickly bring together a little browser using... Oracle Trunc Function 2008-11-24 Among various helpful functions provided by Oracle, Trunc function took my attention today because I had to fix a defect where some one has misunderstood and misused this function. As the name itself suggests, the trunc function is capab... html css it is not possible to have inline styles for different aspects of an element like hover, and visited You cannot specify css styles for different aspects of an HTML element. e.g. I wanted to do something like this. But you CAN NOT do this. <a href="www.unicef.org" style="hover(color:00AEFD);active(co... ILT - How to Programmatically Get Version Information of a Visual Studio Solution 03-10-2012 How to get major, minor, build and revision version figures for a visual studio solution (using c#)? // Step 1: Create a <a href="http://msdn.microsoft.com/en-us/library/system.version.aspx">... How To Use OpenFileDialog In WPF WPF has it's own encapsulated version of OpenFileDialog. You can find this under Microsoft.Win32 namespace. Sample code: Microsoft.Win32.OpenFileDialog _ofd = new Microsoft.Win32.OpenFileDialog(); _ofd.ShowDialog(); ... Details Car insurance Policy Number: EL INT 9491328CW075/R25 Breakdown cover - National Plus Cover Breakdown call numbers: 01206 714346, 0333 320 1984, 0800 458 9283, 0044 1206 714 346 Motor legal protection: 0333 220 2039 Key care: 0345 305 8144 quote Love is all about sacrificing! If you are not ready for it then don’t go for it. - Cassian Menol Razeek How To Exit or End a C Sharp (C#) Application 12-06-2012 To exit a c# program simply use following command: Environment.Exit(int Status); Status is the integer you return to tell the environment how your program concludes. If it executed according as expected or if it encountered any errors. ... What is a Trojan Horse and How does it Attack Computers? 2008-12-08 A Little History Trojan War is considered as the most significant conflicts in Greek mythology. This is where Trojan horse comes into play for the first time. The great warrior Odysseus brought this strategy to find a way into the city of ... Is Order Of OleDbCommand.Parameters Important 01-08-2012 The order of the parameters collection of an OleDbCommand must match the order to which those parameters appear in the SQL statement. Otherwise the .net framework will try to fill the parameters in your SQL statement according to the ord... Dogs learnt kindness from humans thousands of years ago, then humans evolved. - Cassian Menol Razeek quote We humans run so fast to achieve everything prior to the average age; when complete we use all saved years of life to worry about the past. - Cassian Menol Razeek
“Some people are more certain of everything than I am of anything.”
― Robert E. Rubin
Ego is evil. – Cassian Menol Razeek
These are the books I have read (or listened to their audio counterparts) since the beginning of 2016.
I am not going to write my opinion about each of these books, instead I hope you too trust the majority of the people from around the world who have recommended these great books, like I did before choosing each of these books.
2016/01/05 ~ 2016/01/13
Oversubscribed: How to Get People Lining Up to Do Business with You Paperback
by Daniel Priestley
2016/01/14 ~ 2016/01/21
Dreams from My Father: A Story of Race and Inheritance
by U.S. President Barack Obama
2016/01/21 ~ 2016/01/26
Stop Talking Start Doing
by Shaa Wasmund, and Richard Newton
2016/01/26 ~ 2016/02/05
Do less and get more
by Shaa Wasmund, and Richard Newton
2016/02/05 ~ 2016/02/10
by Seth Godin
2016/02/10 ~ 2016/03/02
Quiet: The Power of Introverts in a World That Can’t Stop Talking
by Susan Cain
2016/02/23 ~ 2016/02/29
Ghost in the Wires: My Adventures as the World’s Most Wanted Hacker
by Kevin D. Mitnick
2016/03/02 ~ 2016/03/10
The Art of Deception: Controlling the Human Element of Security
by Kevin D. Mitnick
2016/03/10 ~ 2016/03/14
The 21 Success Secrets of Self-Made Millionaires
by Brian Tracy
Nudge: Improving Decisions About Health, Wealth, and Happiness
by Richard H. Thaler, and Cass R. Sunstein
One night I allowed my Nexus 5 to upgrade to the latest Android version (Marshmallow) but from next morning my phone was behaving very strangely.
It kept restarting randomly and became almost useless and completely unreliable.
The problem seemed to be related to battery calibration information. Upgrading to Marshmallow somehow corrupted or changed this information making the phone unaware of its accurate battery state.
Following these steps cured my phone.
- Use your phone until it drains the battery and shuts down.
- Keep starting the phone to make sure you drain all of the remaining battery charge. You don’t need to worry about the amount of charge that the phone tries to preserve. Just do your best as a regular user to drain the battery. Don’t try advanced stuff.
- When the phone is off connect your charger (A/C adapter is recommended over USB) and let the phone charge to full amount without starting the phone.
You can check this by checking the charging indicator that is shown when you briefly press the power button. DO NOT start the phone.
- When the battery indicator shows a full battery, start the phone.
- When started check the battery status on the top of the screen. If it is NOT very close to 100% (97% ~ 99% should be fine) then turn off the phone and connect to the charger (step 3).
- Keep repeating steps 3~5 until you are happy the phone is charged to its maximum capacity. This may be less than 100% depending the quality of the battery.
- Then unplug the charger and keep using the phone until it’s fully drained. Do not charge the phone before the battery is fully drained.
Continue above steps several times over a few days and this will solve the problem. It worked like charm for my phone.
This article looks at how and why modern software projects easily become messy and extremely convoluted. This article should not be understood as against new concepts but as a promoter of software engineering education, skills, and experience that allows engineers to make rational decisions to choose when a concept should be practiced.
Software development (programming) was always a sub category of software engineering. However, over the last decade, software development was pretty much forcefully divorced from software engineering.
It is human nature to make things easy for everyone. In addition to this a lot of money was invested into software related projects making everyone wanting to become a software developer.
But everyone didn’t want to go through the hard work of serious education and then starting from the bottom of the ladder to gain experience. it was not fun.
So software development technologies became very simple and the need to have proper education in IT was taken down as a compulsory qualification to become involved in serious software engineering projects.
This created a massive boom in numbers of software engineers which also resulted in a large boom in supporting services for this large crowd.
While many companies stepped forward to provide educational and other services for this crowd, more experienced already established Software Engineers became technical writers. The concept of blog and blogging was boosted by potential advertising revenue.
Soon there was a great competition among these service companies and bloggers who basically had to bring in new and unique articles (resources) to keep their businesses, websites, and blogs popular.
The Crown went to Cool from Practical
For many years software engineering (like any other engineering discipline) was practiced with main focus on providing practical and reliable solutions.
This obviously required a lot of background knowledge and experience and there was not a lot of money to be made for the booming “developer support” industry.
So the supporting industry started creating new libraries and tools to make developers life easy. The most talked about topic in the industry became “the next helpful library or tool” that would reduce developer workload.
* mushrooms just pop up randomly Reliability, stability, and logic are not concerns for mushrooms. They just pop up overnight.
The critical issue was that in addition to specific tools and libraries, some experienced bloggers and companies started creating their own flavors of established concepts.
As of now, you can see many new concepts arriving at the Internet every night.
Basically, everything that an experienced developer do to implement a known concept would be written on their blogs as if it’s a new concept and will be called cooler than the original concept it inherits.
The next morning all blindly following developers will read about this new thing and do their best to implement it on their projects because it is the cool thing to do.
While the more experienced and educated engineers had the skill set to understand and decide when to use these new branched “cool” concepts, the large potion of “software developers” do not have that critical knowledge or relevant experience to make such decisions.
Every Pie is a Mushroom Pie
So the unfortunate result we see is that eventually this coolness took over. All semi-skilled developers blindly follow whatever they read on the Internet.
Then they put pressure on the management to bring all of these cool stuff into the projects they are working on.
This is why most of the projects you see today look nothing better than the inside of a badly made mushroom pie.
This article is for anyone who already knows how to use sqlpackage.exe. Visit the Microsoft link at the bottom to learn about sqlpackage.exe usage.
Where I work we use sqlpackage.exe to deploy our database snapshots (DACPACs) to various locations.
Since I have started to use this I faced several problems as the script was trying to make changes to the target database.
There were two main problems I faced:
- The main reason was that the script would not (by default) ignore data loses. It will normally break and error when it detects a data loss.
- The script does not (by default) rollback everything when it aborts the script (e.g. when it detects data losses).
I had real bad situations when the script failed half-way through and left a lot of changes it made till it decided to abort.
I had to restore the db from a backup and go through the whole thing again.
So I found these settings/switches you can use to instruct sqlpackage.exe to get around above issues.
- Ignore data losses and continue
Specifies whether the publish episode is terminated if the publish operation might cause data loss.
Set this to to ‘true’ and the resulting script will not abort when it detects data losses
Specifies whether to use transactional statements wherever possible when you publish to a database.
Set this flag to true and sqlpackage.exe will do its best to use transactions as much as possible.
This will make sure that you will not end-up with a mess when the script fails.
There are many other useful properties provided by this tool.
for example, you can use /p:GenerateSmartDefaults=True to get sqlpackage.exe to generate default values for new columns that don’t allow nulls.
Read the below link for the full set of options you can use.
See the good and go for the best – Cassian Menol Razeek
In software designing crosscutting concerns are concerns (requirements) that span over many layers (tiers) of your application.
Generally, the majority of the application functionality will be arranged in tiers and there will be some functionalities (examples below) that would span across those layers. these are crosscutting concerns.
- Exception handling
It is important to consider how crosscutting concerns are facilitated at the design stage to avoid untidy and unreadable solutions.
This Microsoft article explains the topic further and also explains methods to handle common crosscutting concerns.
If you wanted to open or edit IIS 7+ config files on a 64bit computer and if you try to use an editor like 32bit notepad++ then you would get a random error from windows.
The error I received was “The operation could not be completed. Unspecified error”.
Well, it turns out the reason behind this not very helpful error is that you cannot open these files using 32bit editor.
Simply use windows notepad or any other 64bit text editor.