Burak Ozdemir 's Blog
Computer Science & Softwares - Latest Technology


Where people meet new technology !


Men vs Women

Fun No Comments »

menvswomen

Is it a war? Maybe it is true maybe not. Who cares? Complexity may be a disadvantage or a power to rule, or simplicity rules? Who cares? Is it a war or just mutualist way of living? Who is the boss ? Look to the picture and you decide but remember men are easy to shut down.

Technorati Tags: , ,

C# and Inline Assembly

Programming 1 Comment »

Inline assembly was a technique to use I386 assembly language directives in a C++ code. Programmers often use this technique to gain speed at intense calculations. However C# is far away from this concept, being lack of such a need, C# stands as a limited programming language against C++. According to some gossip, they are considering to add this in Whidbey.

However you may not want to wait for Whidbey, yes it is said to be there exist some solutions, (I heard this from one my programmer friend). Surprisingly the idea seems very interesting to me. The point is that you call assembly functions from a DLL, so the only thing that differs is coding, you just call some functions to make your calculations in machine language, and as a result. you acquire the indispensable augmentation in performance.

Never tried this method, but I will definitely try, in the following posts I may expose it with some code samples. Another important point that you may use this method in VB.NET also, as you can use the DLL in a same manner. Goodbye until to next post!

Technorati Tags: , , , , , , ,

.NET & MySQL – F(r)iends?

Programming No Comments »

Hi, in my previous post I discussed and compared IIS and ASP against PHP and Apache. In this post I’ll be discussing diffuculties about communicating with a MySQL database in ASP.NET on a shared hosting. As you know if you have a direct access to your web server, nothing is impossible but in most cases you can not.

For example, I am using GoDaddy’s shared hosting plans and I’m really happy with.However I am discovering the limits lately, and I am understanding what are you capable of to do with shared hosting using ASP.NET.Chances are that if you are using PHP, you have greater freedom and everything becomes possible.

Yesterday I was trying to connect to a MySQL database with .NET, I accomplished this on Windows very smoothly without having any problems.(I used ByteFX .NET library to connect MySQL).On the other hand, on Web, this is nearly impossible, you can not use external dlls on many of the shared hostings (security issue).I tried to use ODBC to connect MySQL, I didn’t use any DLLs and again I couldn’t connect to MySQL database (By the way this MySQL database is not on my shared hosting, on a completely different host), because thanks to GoDaddy, they have blocked outgoing connections to other database hosts.So I was only able to connect an inner MySQL database.You may ask why MySQL? Because you may not find free database hosts that give MSSql (there are lots of hosts that provides free MySQL databases), and also you may not have any other options other than MySQL, so in such a case your all hands are tied.

Briefly I am really considering to use PHP rather ASP.NET, day by day I discover something that is possible in all the way with PHP and not possible with ASP.NET.
This is really driving me nuts.As you see PHP gains another +1 against ASP.NET.See you next time…

Technorati Tags: , , , , , , , , ,

ASP.NET Url Rewrite – ASP.NET/IIS VS PHP/Apache

Programming 1 Comment »

Have you ever realized how difficult url rewrite can be in ASP.NET which is hosted in IIS?
If you are coding php and hosting it on an apache server, your job is pretty easy. You may just write appropriate
matchings for your urls ( this is typically done by regular expressions ) in htaccess file. However this is not just that easy on IIS. You may ask, why the subject contains “ASP.NET”, this is because IIS is just used to host ASP.NET in usual. You may host ASP.NET on your apache, but the hosting firms in the market do not use apache servers for ASP.NET. They use IIS.

Url rewriting can be made in few ways, with ISAPI modules, or you may configure IIS to direct .html or anyother extensions to ASP.NET dll. However you need to access your IIS server.If you are using a shared hosting like me :) , you may be disappointed but you should accept that you can only do url rewrites which ends in .aspx extension, because IIS directs .aspx extensions to asp.net dll, and your custom rewrites in your global.asax will run before IIS gives an “404 Not Found Error”.

Yes I hate .aspx/.php or any other extensions different than .html. Not only me prefer .html , but also Google prefers .html extensions, and most likely to index that pages.Briefly the same situation can happen if you host php on IIS (which is pretty a dumb action to do), as a result this is not related but .NET, but again If we consider php/apache bros. they gain +1 against asp.net/IIS .

Technorati Tags: , , , ,

Copyright Protected ©2007 http://www.buraak.com
Contact info : <burak [at] buraak [dot] com>
Entries RSS Comments RSS Log in
eXTReMe Tracker

Privacy Policy