Tuesday, April 14, 2009

Entity Framework

Entity framework is designed to separate the usage of the data layer elements like table names columns types, database type, and some added functionalities like super-set and subset.

It is good in the aspects mentioned above. But as Microsoft says, it is not a OR mapper. So, you cant get the benefits of the OR mapper like caching and database column validation, custom load, foreign keys values, and some like that.

All you have is the designer that you can do many things in it. and you have to edit this file for further subclassing conditions value - it saves the hexadecimal value and you have to change it manually, hope it will be solved at the final release- also, you can manage whether this table can be accessed via stored procedure or by generated query - if you select a stored procedure for one function like delete, you have to supply *sp for the rest update, insert :S - It is not complete now. Hope that it will be fixed in the final release. I made a comparison between Entity framework and .net Tier, and I found this



















































Entity Framework
.net Tier

one file contains entities and relations
contains many projects and files to represent the entities and its relations
No. of files generated
you can subclass entities based on condition easily from designer
you have to create the subclass file and modify the super-class manually
Super-class and subclass
entity object references not accessible outside domain [web service, WCF]
entity object accessible anywhere
entity object accessibility
queries accessible via linq and e-sql
accessible via defined functions
data retrieved
select query generated from linq and e-sql
select query defined in sp
select query
using the facade generated class for update and delete and insert, no e-sql
using the sp for all the operations
DML functions

This is all as far as I used the Entity framework. it is good but not as good as hibernate.


*sp: stored procedure
Reblog this post [with Zemanta]

Sunday, March 1, 2009

Javascript Good Stuff

I was reading many blogs, and surfing and I found this video and it is awesome.

It is about the Good parts and Bad parts of the Javascript language. I was shocked for some of the bad parts like 0.1 + 0.2 <> 0.3. check the video for more.


the video url is here
Reblog this post [with Zemanta]

Tuesday, January 27, 2009

Visual Studio Add-on

From alot of projects I figured out that Microsoft is missing a vital addon for its Solution Explorer Pane! that is expand/collapse feature.

This feature is vital when you are working in solutions each one consisting of more than 15 projects each project has folders and sometimes these folders contain folders :(

the problem when you want to reach a file you will manually collapse all those nodes then find your item. the worst thing when you are debugging and opened a file from outside the solution to read something then close it ......................... Visual studio behavior is miserable, it will open all the projects tree nodes, then you want to collapse all of them to focus on the selected node only.

I searched about this add-on and found one http://www.paraesthesia.com/archive/2004/06/25/solvent---power-toys-for-visual-studio-.net.aspx but it is for Visual Studio 2003.

hmmmm, Ok no deal I created one for VS 2005 ta.da.

the link is here
Reblog this post [with Zemanta]

Tuesday, December 16, 2008

Asp.net Update Panel and File upload

Got stuck when using this control in the update panel. and you got a work around by making a pop up window to download the file through it.

This is not the case here, now you can use the ordinary file upload in the update panel! the only thing you have to do is making the button that "submit" to be postback from updatepanel triggers.

< update panel>
< content template>
< /content template>
< triggers>
< ! -- here is your ascync trigger -- >
< / triggers>
< /update panel>


Note: make sure that the control in the triggers tags is visible, if you want to hide it try style="display:none;" attribute.

if you are using a master page that contains an update panel and you want to do it. you can add this line to the page load event:

ScriptManager.GetCurrent(Page).RegisterPostBackControl(Button1);

now it is fine and working properly :)
Reblog this post [with Zemanta]

Monday, December 1, 2008

what is Future of Gaming?

Twice entries per day, I rock :D

Now what? the question I got into my head about the gaming industry. Now we have WARP in windows 7, and intel i7, and DirectX 10, besides the GPU. They are all maximizing the power of the games rendering and blending. Which will open the gates for a new games that have richer interface and much more bump mapping textures.

You know what? all that means in simple statement that the game will use the GPU and CPU for game processing. which leed to GPU+CPU(cores). It may seem like running the game upon maultiple processors on your computer. interesting.

It is a thread world after all. The more you use thread the better code it will be. and this can be done from the IDE itself!!!

After all, lets cruse the new threading world.


Reblog this post [with Zemanta]

Does your website contain a malware, infection?

Too long for not writing anything in the blog. But it seems I missed it a lot.

one question in the subject, are you sure your web content is safe? if you are sure from the content you type. Then may be the users that write reviews or commenting had something else.

in the article below you will find 3 online tools to discover if your website contains malware, unauthorized content, your bad neighbors.

Trust me it is useful to check your site from time to another. to check its content.

check the site for more info.
http://www.labnol.org/internet/detect-webpages-that-serve-malware/5597/

Reblog this post [with Zemanta]

Thursday, August 21, 2008

Web 2.0 and Indentity

From a long time, discovering passwords and the secret questions were hard to get and almost uses the technical expertise sniffing on ports, and hacking the target computer by applications or even using brute force attack, and getting some information about the domain you would like to hack, and all these stuff. The hardest part was to crack someone's identity over the web. It has to be through the relationship between you and the person you would like to hack. So, you sneak around him/her and watch the different activities he/she does to guess what he/she likes - like pets, furniture, trees, flowers...etc - it was the hardest part. It turns that you are a spy on him/her.


A tag cloud with terms related to Web 2.Web 2.0 has been coming. This sentence has changed the world. Many many people will be writing their stories and experience. The content will be from the users not from the companies. There were a punch of tools like blogging and wiki and other tools that make Web 2.0 more powerful. Yet we have a huge source of information getting from the people themselves and the companies. Pretty Cool huh !!!!



Now it is getting clear enough that Web 2.0 drives the identity to be public and more than that readable by hackers and crackers. I read this article How I Stole Someone's Identity, and I got shocked, not that shock when you touch electricity, but yeah your identity and my identity are public now. Anyone can read it and download it, and spend a day discovering my hobbies and my interests and begin trying to access my e-mail that i gave him. and then trying to access my visa number that I talked about it once in my blog, but not this blog :), and then ta da. I got busted and then I will receive a letter from the bank that I make my balance zero :( :( :( .

I guess from now, secrets should be kept in your mind only. Do not talk about yourself loudly, or you got busted by many hackers...