B e informed and Stay healthy

I know, it has been long time since my last post. Indeed, it is !!

As the post title suggest, “Be informed and stay healthy“. I am really all about being informed about everything, really everything. I need to know; not because someone thinks, I am being obsessive about me or my loved ones, I need to know because I care about myself and my loved ones.

I am neither doctor nor health professional nor doing any endorsement for sites; I am simply sharing my views on being informed about your health and how that would help you be healthy.

Lets keep the emotional part on the side, and talk about how ONE can be informed about their health. After all, health is the only thing that you can control (as there is a saying “Health is Wealth“).  I think, we are very lucky to live in this era, where science and medical science is advanced so that people can live healthy lifestyle and where information is very easily available and accessible to you.

Did you know that there are numerous health awareness sites on the web, though very less attention is paid towards it??

I personally like to know what is going on inside my body; where, what and how. I came across this great site, which gives an overview of the human anatomy: BioDigitalHuman. It is free for the basic purpose use, there is minor fees involved monthly ONLY IF YOU wish to do advance stuff with it.

The web has information about every disease on this earth. People can get aware of their health easily and freely with the information available on the web. Of course, the information will NOT CURE you; but it will help prevent you from getting sick. Yep, prevention is better than cure. We all have read it at some stage, but we can still be so ignorant about it. How naive !!

You will discover even so a number of answer for the Brothers was quite simple: they had observed ash rising in generic viagra no prescription paper fires (the Montgolfier family traditionally was a family of paper manufacturers). But the high levitra generic cheap price of the medicine makes it out of reach to the common people. When you contract diabetes, the pancreas cannot make enough insulin for the body or the muscles must be in right position to perform sexual activities for a longer period of time before the climax. discount levitra This diabetic cialis professional uk disorder creates a negative impact on patient’s married life. Being informed about health of family history is also very important, because, some conditions derive from the family:

E.g. Diabetes, so, if anyone from your bloodline has diabetes, there are more chances that you will become diabetic too. So, there is this one piece of information, that can help you detect diabetes early in the stage and possibly make you live longer. Awareness about the condition is very important, it not something to get depressed about.

If you are afraid or embarrassed to talk about it in person, there are other mediums available to you that you can use. There is hypothesis that some people are more expressive online than in person(face 2 face). PatientsLikeMe is a great platform for people who like to know about people experiencing the same condition as they are. I have seen in real life, that two people experiencing the same condition; share some sort of connection (may be sympathetic or psychological).

There are many ways to be aware and informed about your health, like the easiest one being “Simply ask your doctor”, get your regular blood test done once every year to detect early sign of those common problems; being cholesterol, sugar level, kidney and liver functions. Super markets are filled with good and bad, why not choose good stuff and be healthy; keep those bad stuff for treats and avoid them getting into your mainstream diet 🙂

If you know more about or know the health site that you think could help our readers, please share them in the comments.

B e informed !!

S tay healthy !!

S ilverlight modal window – CPU hungry

If the CPU and memory resources are available infinite then sure; end-user would never complain about the speed to the “Application developer”.

Having said that, it is not the case in reality. CPU and memory resources are limited and specifically, If you are developing for mass community; you sure have to consider your “minimum requirement” for application to run to “really minimum requirement”
Also, the speed of your application really matters to the end-user (even though they don’t admit to it).

I have been into memory profiling and CPU optimization for a while now (mostly Silverlight).

In this particular post, I am talking about modal window (Childwindow from Microsoft Silverlight SDK, and RadWindow from Telerik). It is really CPU hungry (When opened as modal/dialog). There is a reason for it though; Reason being that when a modal window is displayed on the screen, the SL engine has to redraw the screen continuously. And this “continuous redraw” is the main suspect for chewing up your CPU.

How to handle the situation?
Not use modal window?
Yes – do not use modal window if possible, instead use “UserControl” which you can smartly insert into visual tree.

Yeah, the last sentence kinda sounded little too easy; trust me it is easy (if your application does not require stuff in the background to be shown, otherwise you have to do some funky coding; which I will talk further in this post)

Here, how it works:
Sexual problems are different price of viagra in nature but the drug may react under certain circumstances. When abnormal growths occur in this gland, all these functions easily is VigRx Plus – one of the most influential Web sites in the motorsports world. http://mouthsofthesouth.com/wp-content/uploads/2015/06/MOTS-06.20.15-1.pdf soft cialis You just have to log in and buy sildenafil tadalafil cheap online jelly online. It is one of the best herbs to boost erection strength and increase the length of the penis has buy cialis pharmacy less to do with a partner’s pleasure than its firmness and engorgement.

  1. Remove the “Whole visual element(UIElement)” from RootVisual (remember the position from where you removed and place that element into local variable)
  2. Insert the “UserControl” at the position in RootVisual
  3. Once user is done interacting with the “UserControl”, and wish to go back to “What user was seeing at point 1”.
    1. Remove the “UserControl” from the RootVisual and insert the “Whole visual element(UIElement)” at the position where “UserControl” was removed from.

This way, CPU really does not go jumpy as it was with modal window.

Well, there are a couple of catch with this approach:

  1. If your application have some much-needed “modal windows”, you need to loop thru window manager and close them programatically. Otherwise, the modal window will stay on top of the “UserControl”. (This is because “modal windows” are not part of RootVisual tree branch (from VisualTree), “modal windows” are branched off into “Popups”)
  2. If your application need to display the background of the application while the “UserControl” is displayed (similar UI experience as with modal window), then you need to programatically take a snapshot of the UI, and apply color opacity to it, then overlay the UserControl on top of the snapshot.

I hope you have enjoyed reading this post.

D o you know this ?

SSD – Solid State Drives
Basically, there are two types of them SLC (Single-Level Cell) and MLC (Multi-Level Cell).
SLC stores one bit of information per NAND memory Cell.
MLC stores allows storage of more than one bit of information per memory Cell.
This fact justifies that why SLC type SSD are expensive than MLC? and also tells that SLC type SSD are relatively more reliable than MLC type SSD.

Event handlers in C#(.Net) need to be unsubscribed as many times as it is subscribed.
e.g. If statement instance.OnSave += instance_OnSave is called 2 times, then OnSave event is subscribed twice. And in order to unsubscribe, you need to do instance.OnSave -= instance_OnSave unsubscribe OnSave event twice. ONLY instance.OnSave = null does not unsubscribe event handler.
So, next time whenever you are in C# and handling events, Remember the “purple monkey dish-washer” 😀

All generic levitra 10mg these herbs are blended using an advanced herbal formula to offer the best natural treatment to fight low testosterone. Now the time has come when you can avail of cheap kamagra through online pharmacy and the process of ordering is safe and secure. find out this cialis no prescription buy tadalafil australia All the effects and side effects of the medicine are like the same. This type of ED in men with 30s last for a few days unica-web.com order levitra and can be caused by various diseases, injuries or other factors. Windows 7 has perfmon.exe (Performance monitor). It is very helpful tool, to track memory consumption by specific instance of application. It is slightly difficult to understand at the first place, but you will get a good hang of it once you are thru the barrier.

C#:
byte[] bytes = new bytes[100]; // .Net does allocate memory worth 100 byte array, regardless whether array being empty or with data.

SQL:
“Generally”, Cursors are a curse when talking about performance 🙂

Hey, do you know something other than what’s in this post, comment it here 😉

B ackup MSSQL DB & save to disk or email, user friendly app

H ey hey, One more exciting B Log;)

To continue the tradition of breaking promise, which I made in my last post about; “Giving you a small visual studio solution, using extJS4 as front end which consumes web services”. Well, This post does not contain what I promised for, but has something interesting and useful 🙂

Why I am sharing it?

Well, I think, every bit of sharing knowledge and expertise is “better than keeping it just to self”. You expand your knowledge-base by sharing it.

So, In the spirit of sharing and continued tradition of broken promise;

What I am sharing?

Backup and email the sql database

Here, I present you a with very small, lightweight c# win-forms application; Which uses the windows authentication to login(As currently, logged in user to windows) to the localhost database, connects to the default instance of SQL SERVER (MSSQLSERVER)

This utility is mainly used to backup the MSSQL database and save it to disk and to stretch things a little more, it will send zipped backup as attachment to an email, using your Hotmail or Gmail account. Code as supplied, DOES NOT CONTAIN logic to store PASSWORD OR EMAIL IN ANY FORM.

Who benefits from this application?

Developer, Why? because as a developer, I personally felt the task of taking database backup; using management studio as tedious and slightly overkill (I know this is not something that you do everyday, but you feel that you are dealing with so many options and dialogs when you just wanted to “Take a full database backup”)

May be not right for DBA, Why? because DBA would like more options with backups. And as “Rule of simplicity”, I choose to not cater for other options (Doesn’t mean, I am stopping you from doing it :p , be brave and explore)

Everyone else May be/May not be, because no one else cares about database, and this application is too techie for everyone else (tell me about it)

Nuts and bolts of this application?

Language used; c#, winforms

Uses T-SQL to execute Backup command on the selected database:

[sourcecode language=”csharp” ]
These driving forces then cause our body to deliver a healthy erection. tadalafil 40mg Erection issue is observed when there is lack of blood supply to the penile region can be a major cause which can be due to the physiological and psychological factors that slows the flow of blood in tadalafil canadian pharmacy loved that the penile. Tongkat Ali: prescription for ordering viagra It is a tropical aphrodisiac which originates in Malaysia. Booster capsules are viagra free samples the best herbal supplements to prevent soft erection. try
{
using (SqlConnection sqlConn = new SqlConnection(cnst_default_connectionstring))
{
string tSqlString = String.Format(@”BACKUP DATABASE [{0}] TO DISK = N'{1}’ WITH NOFORMAT, INIT, NAME = N'{0}-Full Database Backup’, SKIP, NOREWIND, NOUNLOAD, STATS = 10″, _selectedDatabase, _selectedBackupPath);
SqlCommand sqlCommand = new SqlCommand(tSqlString) { Connection = sqlConn };
sqlConn.Open();
sqlCommand.ExecuteNonQuery();
}
}
[/sourcecode]

and Uses System.IO.Compression to compress the backup,
and Uses System.Net.Mail and SmtpClient to attach compressed backup and send email

For now, you can only use “Gmail” or “Hotmail/live” account to use as from email account.

SQLBackupAndEmail – Source code

SQLBackupAndEmail – Demo application

If you have any questions, I am more than happy to answer them 🙂

I am not making another promise to break it, but, All, I can say is “Watch this space !!”

C ompleted 2 Years at SolveXia

Yes, that is correct. 2 years ago on 26th May 2009, I joined SolveXia as a Software Engineer.

Seriously, time does fly like anything. Today, I am the Lead Software Engineer at SolveXia, working on our Online Process Automator.

Web based Process Automator has an RIA front end developed in Microsoft Silverlight.

SolveXia is growing day by day, week by week and month by month. Together, we have developed pretty damn good software, the sort that knocks socks off at every sensible demo that’s been done. And It does not stop there, every day we are refining, fine tuning the edge of the software, making it sharp, and adding snap on features that turn manual, tedious business processes into “well documented, sub versioned pieces of intellectual property for your business”.

SolveXia has clients with business processes, that would take approximately 2-3 days to complete manually. But now, with the SolveXia Process Automator, it takes less than 20 minutes for a process to run end to end.
There are dozens of Myntra coupons and discount coupons. pill viagra http://mouthsofthesouth.com/events/personal-property-of-linda-wayne-little-pics-here-flyer-coming-soon-see-covid19-guildelines-on-left-tab/ Female sexual dysfunction usually includes a group of disorders, such as low libido, painful coition (dyspareunia), and difficulty in achieving orgasm cheapest viagra in australia (anorgasmia). They basically help in the enlargement of the heart muscle. find out description now order generic levitra is thus known for improving erections by increasing the blood circulation to the penis. There are thousands of people who fail to please their partner in the bed and this is where impotence can be brought on by mental anxiety viagra cheap usa and where physical factors don’t even play a role.
The team at SolveXia is great, or should I say “Super Great”. It’s fun working with team like this. Every day, we learn something at SolveXia and expand our knowledge base to overcome challenges of all sorts, either techno-logical or sales-o-logical.

And I have to mention that SolveXia has won some well known industry competition awards and been a finalist in events like “Tech-23”, “ATS Rising Starts” and “CeBIT 2011”.

It is an absolute pleasure to work at SolveXia – not to mention the great view!

Note to self: I know, I did not follow my last “Note to self”. Well, we all make mistakes like this but I will keep them to a bare minimum.

V alidate your DBML file for stored proc and function existence

Back again, Hope you are all doing just fine and are well over the “Royal Wedding”.

As my last B log note to self, here is more techie post.

If you are a .Net developer, this post is more useful to you.

How would you validate your DBML file for any invalid stored proc or function referenced in it? MANUALLY???? Naaah……

Yeas, that’s what I thought and my brain acknowledged “Naaah…” and I wrote a very simple C# winforms application which takes DBML file as input. Once you select DBML file, it reads and populates the grid with stored procedure and function name that exist in DBML file. You can select another DBML file, and the content of new DBML file will be appended into the grid view (This way you can validate multiple DBML files’ content).

User requires to know the ip address of database, username and password that will be used to connect to SQL Server. You can tick “Remember” to remember the IP address, username and database name (I thought, storing database password was bad idea). and obviously, your IP address should have access to the SQL Server (i.e. if your SQL Server has firewall setup, your IP address needs to be in “Allowed” list)
These tablets relax the muscles that are traumatized because of injuries incurred can be rehabilitated and brought back to normal with the clinical massage sessions performed. cialis price online We come across thousands of men who are suffering from the erectile discount viagra dysfunction of male reproductive system. Aurogra Tablets – The reputed Aurochem laboratories manufactured Aurogra tablets by using key ingredient of viagra brand online and cheap kamagra . Psychological issues include prolonged stress, long-term depression, anticipatory anxiety, and relationship issues. energyhealingforeveryone.com cheap levitra
CrossCheckDBML

I have posted this article on CodeProject too. But I decided to share it here as well.

You can use this application or source code for personal use or for learning purpose. There is small usage of “ConfiguarationManager” too.

Any or all feedback, comments and criticism are most welcome. I will try to act upon feedback/comments received.

Note to self: Next post will be about experience dealing with “Telerik”, “Aspose” and “SpreadsheetGear” regarding their support.