I recently had to setup all my new blogs on GoDaddy this past weekend and it was a pain! Let me tell you what, I would hope that others find this post so they don't have to go through the same thing. I found a old post with not up to date information on setting it up. So here is the up to date version as of 3/12/08 and GoDaddy Hosting Control Center V2.5.0.
1. Go to http://www.dotnetblogengine.net and go download the entire source located here.
2. Remove the following line from web.config. This is due to Godaddy has medium trust set on the site.
<!--<trust level="Medium" />-->
3. Publish the site using any sort of FTP upload client or even Visual Studio. I would not compile the website. Let the website compile it self on GoDaddy.
4. Open up GoDaddy and the Site Configuration manager.
5. Go to the File Manager.
6. Check Mark the App_Data folder and then click the permissions button as circled below.
7. Set the access to Read, Write and Reset all children to inherit. This will allow all files under it to inherit the above settings. This allows you to move files in and out of App_Data folder and not having to keep updating the permissions in GoDaddy.
8. Click okay and then move on over to IIS Settings.
9. Create a Folder called App_Data. Before you complete the next step, let me advise you that BlogEngine did not say to do this, but I found it to be the only way to get BlogEngine to work. So now Click on the Advance button. Click the Classic Settings. From here it will take a few hours to set up and if the admin's are really good, it will be done in about 30 minutes.
10. Happy Blogging!
Since Linq came out people have been working hard on the application. I found a great application that supports linq queries pretty well. I am happy to see development come out of new microsoft technology. The application is called Linqpad and I just wanted to point that out. I thought these things need to be pointed out when new technologies came about.
I just viewed a video today CNN put out, which has Chinese hackers being interviewed. Let me know if this is old news, but the hackers are from an island off of China. The hackers own a couple of hacking sites as seen in the video on CNN. The links are hard to find but are noticeable with the video supplied if you look close. The sites are www.hack4.com and www.hackbase.com noticeable through the screen shots taken by the dark visitor.
The two sites here are shown in links of the video.
These sites proclaim they have close to 10,000 members and over 50,000 page loads a day. While the members of this community claim to have hacked into the pentagon and other various organizations throughout the world. The US government states that hackers have come from China and are paid for by the Chinese government. Though China does ask the US to prove the allegations, but they know due to the top secret content produced at the pentagon, China will never be supplied with proof.
Hackers use such approaches as XSS, SQL Injection, Google Hacking, Security Engineering and Microsoft Live Search Hacking(Live Search hacking is dead). The question is, can ASP.NET be hacked. Yes without a doubt.
SQL Injection - These attacks work when user input is used to create a SQL statement in the code behind file. Lets say we have a query:
1: select * from customers where customerID = 'sdfa'
The vulnerable query would be
1: select * from customers where customerID = 'asdf'
3: SELECT table
4: FROM INFORMATION_SCHEMA.TABLES --'
This kind of injection happens in a user entered textbox or field which is then used to complete some kind of SQL Statement. So lets say I was filling out a form that had the customer ID number on it. I would inject the SQL by writing
1: ' union
2: SELECT table
3: FROM INFORMATION_SCHEMA.TABLES --
This kind of injection works and could even be used to delete entire tables of information. But why delete the User table and credit card numbers when you can gain access to the and get them to be displayed and copied. To Prevent this kind of attack, you will need to start using Stored Procedures, OR a new way of querying databases using LINQ. LINQ is Microsoft's new technology and looks to be the end all be all of Stored procedures which makes the headaches and problems with coding allot easier to manage.
Microsoft does have preventive measures put in place for this kind of attack, but you have to be sure to use them. Stored procedures in SQL Server are one and the other is Request validation used in ASP.net applications.
I hoped you enjoyed the information supplied to you. I had a good time writing it with a bit of research that had to be done. Thanks for visiting.
I read this article today "Windows Hosting Rates are killing developers and students... Is Microsoft aware?" while searching through DZone for things to read. I read over the article and I am going to definitely have to agree with this man. I am just a mild professional developer not making the big bucks, but working on small projects for low pay like Indialantic Fire department. This site is dressed up just like a blog and only the template is static, everything else is what a user can enter in an editor window. I thought it was a nifty idea I thought of before the blog idea came to my head. Getting back on track, I am also hurt by Microsoft's ability to look at Windows Hosting Rates. On Go Daddy alone, it cost more than $50.00 a year for a small time web site and when you own a few domains and don't care for Domain forwarding, well it can add up. It is definitely killing my pocket income. I want to develop and put content out there, but these prices are difficult. I know its $50.00 a year, not much right? well when you have other things to pay for, I wish it was just cheaper. I do know that Go Daddy is one of the cheapest domain hosting companies out there, but my pocket is still being hurt. I love developing, I take pride in my work, I just hope it would be cheaper.
The costs of serving these sites is the only reason why I put ads up on my sites. I would have no need for them, but its how I pay for the service. I just started blogging too, so I am not making any money at all. I'm not complaining, but this is a luxury and luxuries always go first when you get strapped for cash. I just hope I don't give up this luxury.
On a side note: Go Daddy does offer free hosting with banners on top of the page. I have a couple of domains like that, but I have never seen a banner up on the top as of yet. (maybe I shouldn't have said that)
As for Microsoft, I might have to pose this question to them. I don't see why I can't ask this question at the Devconnections conference I am going to this April. On the article itself, they were discussing switching over to a new open source provider just despite the costs. Is anyone else interested in switching to a new framework because of the prices? I love ASP.NET. It would be hard to give up.
I found a pretty good web site a while back and I just thought I would share it with you. It does curvy Corners on the fly for DIV elements. I know its a short post, but I hope you like. Curvy Corners
Alright ladies and gents. Two weeks ago, I sent a memo to my boss. I told him all about Devconnections and how much impact it would have on the team of developers I work with(currently 4 total and the other three are Cold Fusion dev's) and our next up and coming projects include a HUGE project we just landed. If you know who I work for, then you would know what I was talking about. I am excited with this project. It excites me. There is allot of data capturing and this type of project is on the bleeding edge of development and ideas. Wow and I am excited for both my company and I now get to go to Devconnections. I currently reside in Melbourne, FL so it is an easy drive to Orlando which the company will pay for everything including but not limited to food, transportation, hotel etc... I also get to go to the Heroes Happen Launch of Microsoft 2008 Products on company time. The launch event is sold out for Orlando, FL which every attendee also gets a version of Windows Server 2008, Visual Studio 2008 and SQL Server 2008 for FREE. This is a heck of a bargain that I just cant say no. I am pretty sure these versions are complete full versions. Can someone Verify?
I think this will also be an amazing event which opens the Friday after Devconnections. What do I need help with? Well let me tell you after looking through the brochure, there are allot of courses and sessions to look over. I then went ahead and narrowed it down to 19 sessions I want to go to. I still have to decide on only 13 sessions with the hope they don't overlap. I need feedback so please help me on this.
- I don't want a course that I can learn through an ASP.NET tutorial on the web EASILY. I pick up things quick, so I want sessions that I can't pick up unless its shown to me.
- I have only been coding for 1.5 years now with a total of 8 years web design experience, so I still consider my self new to the C# world. I want to learn things, the average person wouldn't pick up in that year.
- I want things that will benefit my company and me. Sorry, I can't give you name of the company, but they have been in the news allot as of lately.
- I want to take Carl Franklins session. I have heard him plenty of times on .Net Rocks and know he is a master programmer and presenter!
Those are the requirements, now since I still consider my self a newby in the C# world, please help me pick. I will listen to all replies with earnest.
AMS304: INTRODUCTION TO THE NEW ASP.NET MODEL VIEW CONTROLLER (MVC) FRAMEWORK MICROSOFT
One of the benefits of using a MVC methodology is that it helps enforce a clean separation of concerns between the models, views and controllers within an application. In the near future, ASP.NET will include support for developing Web applications using an MVC-based architecture. The MVC pattern can also help enable red/green test-driven development (TDD)—where you implement automated unit tests, which define and verify the requirements of new code, first before you actually write the code itself. Join us for a dive into the new MVC Framework.
ADX210: BUILDING A LINQ-BASED BUSINESS LAYER FOR ASP.NET APPLICATIONS RICK STRAHL
With LINQ and LINQ to SQL, there are many new opportunities for creating a more flexible, business object layer using the enhanced database connectivity and language enhancements that LINQ offers. Rather than focus on the new features of the LINQ engine, this session puts LINQ into the perspective of a business-object framework and how you can leverage LINQ as part of this high-level application layer. I’ll start by examining how LINQ to SQL interacts with the database and see how this model fits for data access, both directly in the user interface layer and in a more formal, multitier-type business layer. I’ll then dive in and examine different ways you can use LINQ to SQL in combination with a traditional business layer and highlight the fact that DLINQ, on its own, does not necessarily replace a flexible data access layer in an ASP.NET application. The focus of the session is on ASP.NET business-application development, which is used for examples and special considerations for data retrieval.
AMS204: DISPLAYING DATA WITH THE NEW LISTVIEW AND DATAPAGER CONTROLS IN THE .NET FRAMEWORK 3.5 MICROSOFT
Get complete control over how your data is displayed using the new ListView and DataPager controls. Take a deep dive into using these controls to easily and efficiently display and update your data. Learn how you can control every detail of how data is presented to the users of your site.
ADX211: BUILDING N-TIER APPLICATIONS WITH LINQ DAN WAHLIN
Creating a modular and maintainable application architecture is always a key part of the application development life cycle. In this session, you’ll learn how to build N-Tier/N-Layer applications that leverage Language Integrated Query (LINQ) to minimize development time while still maintaining module design practices. Topics covered include using the Visual Studio 2008 LINQ to SQL designer, using data context objects, and performing different types of LINQ queries.
AGN311: DEVELOPING A PROVIDERBASED FEATURE FOR ASP.NET 2.0 MIGUEL CASTRO
You’ve used ASP.NET 2.0’s Membership system, right? You’ve even developed your own custom Membership Providers. But did you know that you can use that same Provider Model for any feature of your application you wish? I’ll show you how by creating a “credit card processing and returns“ sub-system that takes advantage of ASP.NET 2.0’s Provider Model, allowing you to create different credit card processors any time you want without changing your site code. Many ASP.NET developers don’t know you can even do this; come be a part of the few.
AGN310: URL REWRITING: WHAT, WHY, AND HOW MIGUEL CASTRO
You may have noticed sites out there with URLs like“.../2007/10/8.aspx“. Obviously this signifies a date, but can there really be a page for every day of the year on this site? The answer is definitely not. This is a technique known as URL rewriting, which allows for friendlier URLs that may not necessarily correspond to the site’s physical page structure. More importantly, this technique is crucial for search engine optimization, since typically search engines ignore query strings in the URL. In this session, I’ll show you the basics of URL rewriting, teach you how to centralize it using HTTP Modules, and even get you going on a reusable URL rewriting engine component.
AAR101: USING THE ASP.NET MVC FRAMEWORK DAVE SUSSMAN
The ASP.NET postback model was a radical step for Web applications when it was released and is now commonplace. However, applications are becoming more complex and provide some challenges to testing. The new ASP.NET Model View Controller (MVC) framework provides a clear separation between the aspects of ASP.NET pages, allowing for cleaner code, easier and faster testing, and powerful and flexible URL mapping. This session.com April 20-23, 2008 Orlando, Florida will examine the MVC framework, showing how it differs from the postback architecture, and how you can integrate it into existing applications.
APF310: ASP.NET PERFORMANCE AND SCALE TIPS AND TRICKS ROB HOWARD
This presentation takes a look at some tips and tricks for getting great performance out of your ASP.NET solution. It will start with some of the common physical design options, examine the choices to make when writing ASP.NET and .NET code, and finally look at some of the tools used for tracking and measuring changes in your ASP.NET application’s performance. You’ll leave this session with some actionable tips & tricks that you can take home and apply immediately.
ARP250: PROGRAMMING SQL SERVER REPORTING SERVICES PAUL LITWIN
In this session, you’ll learn how to programmatically manipulate SQL Server 2005 Reporting Services (SSRS) and integrate SSRS into your ASP.NET applications by employing URL Access, Report Viewer controls, and the Reporting Services Web Services. A major issue with SSRS is that you can normally only display reports using Internet Explorer, but in this session you’ll discover how to integrate SSRS into your applications using any modern browser, including Firefox, Netscape, and Safari. You’ll also learn how to extend reporting services by calling custom .NET assemblies from your SSRS reports. Finally, the session will touch on improvements to SRRS promised for the upcoming SQL Server 2008 release.
APG315: ASP.NET INTERNALS ROB HOWARD
This presentation is a deep-dive into the inner-workings of ASP.NET. In it you’ll learn exactly how ASP.NET communicates with the outside world, such as with IIS. The session will also peel open ASP.NET’s HttpRuntime for a deeper look at the internals of the request/response processing architecture. Then the session will wrap up with a discussion of the ASP.NET Page and how it is parsed and compiled. If you want to learn how to write better ASP.NET applications, knowing exactly how ASP.NET works is critical.
ACS311: BUILDING CUSTOM ASP.NET AJAX CONTROLS DAN WAHLIN
By creating custom ASP.NET AJAX controls you can encapsulate frequently used functionality and promote better code re-use in applications. In this session, you’ll learn how to create client-side ASP.NET AJAX controls that extend classes in the ASP.NET AJAX script library. You’ll also see how you can encapsulate client-side controls in ASP.NET AJAX server-side controls. Topics covered include defining client-side control constructors and fields, using the prototype design pattern to define control properties and methods, disposing of resources, and creating server-side controls that implement the IScriptControl interface.
A LAP AROUND VISUAL STUDIO TEAM SYSTEM 2008 MICROSOFT
In this demo-intensive session, you will be exposed to many of the new features in Visual Studio Team System 2008. This session cover everything from Team Foundation Server for project management, work item tracking, version control and build support, to integration with Microsoft Project and Excel, unit testing, code coverage and code metrics, database projects, to Web testing with AJAX support and the new user-pace load testing. You will leave with an understanding of how Visual Studio Team System 2008 can be your organization’s Application Lifecycle Management (ALM) solution, and enable you and your team to collaborate and communicate to ensure software quality and provide visibility into the development process.
IMPROVING TEAM DEVELOPMENT MICROSOFT
Do you build software alone? In today’s world, software development is done by increasingly larger teams made of people with different skill sets, including project planning, functional definition, development, and testing. As teams grow larger there is a greater need for tools to enable the communication and collaboration that is necessary to deliver high quality software effectively. In this session, you will learn how to function as a collaborative team using Visual Studio Team System 2008, including process templates, work item tracking, version control, and reporting. Whether you are on a team that values Agile process, one that prefers CMMI, or any other process, this session will apply to you.
VISUAL STUDIO 2008: LINQ DEEP DIVE AND BEST PRACTICES AMANDA SILVER
LINQ (Language Integrated Query) is a key platform innovation introduced with Visual Studio 2008 which brings SQL-style query expressions into VB and C# enabling you to describe what data to reason about instead of how to access the data. In this session, by taking a much closer look at the language features that enable LINQ-enabled frameworks, we’ll uncover tips, tricks, and best practices for writing queries that will help you write robust, high-performing, maintainable business applications more quickly. In addition to gaining a solid understanding of LINQ for data access, you’ll also leave this session with a clear understanding of how query and the individual language features can be leveraged in other parts of your application to write less code.
BUILDING SERVICE ORIENTED APPLICATIONS WITH WCF AND VISUAL STUDIO 2008 JOHN STALLO
Windows Communication Foundation (WCF) is one of the core platform technologies introduced in .NET 3.0 and Visual Studio 2008 includes tool support for building and consuming WCF services. In this demo-focused session, we’ll start from the basics of creating and consuming a WCF service and quickly move into the advanced techniques and support related to service hosting, service configuration, etc. This session assumes you are familiar with the basic concepts of WCF and will focus on the end-to-end experience within Visual Studio 2008 for building and consuming WCF services.
VVS310: FUN WITH PROGRAMMING CARL FRANKLIN
Looking for something fun and inspirational? Let Carl Franklin show you some of the fun you can have with Visual Studio .NET and a few cool ideas, from artificial intelligence to practical joke software.
VPF305: FUNDAMENTALS OF WINDOWS PRESENTATION FOUNDATION: BEYOND THE BLING KATHLEEN DOLLARD
Have you seen Windows Presentation Foundation (WPF) portrayed as a way to spin photos on cubes and wondered what this had to do with you? Windows Presentation Foundation does take us into a new realm full of graphic possibilities, but it also offers a radical new UI model that’s well worth exploring. This session focuses on how you can use WPF to make business user interfaces. You’ll focus on the underlying model and separation of UI into discrete pieces that can be expressed in different ways. You’ll build UIs with grids and stack panels for layout and explore databinding, templates, and triggers. You’ll see how to create an application that’s logically organized and you can customize both in look and feel on a global basis—either to customize for individual clients or to keep your application looking fresh through future UI fashion changes.
I hope that narrows it down for you so you can give me pointers on where to take this.
Here is my first thought on things.
The current Twitter application on codeplex like I said only does the updates without any times, dates or user names. I decided to upgrade the application to include how long ago the message was sent and a link to the message on twitter. This took a few hours actually to dive into the old code and produce the new stuff. I hope you like it.
Twitter.cs (8.22 kb)
BlogEngine.NET 1.3 (1.2 ?)
1. Download source code. Put the Twitter.cs file in App_Code/Controls folder of your BlogEngine.NET site.
1. Télécharger le code source. Copier le fichier Twitter.cs dans le dossier App_Code/Controls de votre site BlogEngine.NET.
2. Add the following line in the page where the control should appear.
2. Ajouter la ligne suivante dans la page où le contrôle doit s'afficher.
<blog:Twitter ID="Twitter" runat="server" Username="julesss" Password="mypassword" />
- Username (required) : username of your Twitter account
- Password (required) : password of your Twitter account
- Timeline (optionnal) : updates type to display from Twitter : User, Friends or Public (default : User)
- NumberOfStatuses (optionnal) : number of updates to display (default : 20, which is the maximum recommended by Twitter)
The lines I personally edited is around line 141.
The old code was:
1: string innerText = status["text"].InnerText;
The New code I inserted is:
1: string innerText = "\"" + status["text"].InnerText + "\"" + "<br />"
+ "<a href='http://twitter.com/" + status["user"]["screen_name"].InnerText + "/statuses/"
+ status["id"].InnerText + "/'>";
2: string TwitterTime = status["created_at"].InnerText;
3: string TimeValues = TwitterTime.Split(' ');
4: TwitterTime = TimeValues + " " + TimeValues + " "
+ TimeValues + " " + TimeValues + " GMT";
5: DateTime dt = Convert.ToDateTime(TwitterTime);
6: innerText += GetRelativeDate(dt);
7: innerText += "</a>";
I also inserted a new method that allows for the relative time to be found.
1: /// <summary>
2: /// gets the relevant time of the current twitter user.
3: /// </summary>
4: /// <param name="date"></param>
5: /// <returns></returns>
6: private String GetRelativeDate(DateTime date)
8: DateTime now = DateTime.Now;
9: TimeSpan span = now - date;
10: if (span <= TimeSpan.FromSeconds(60))
12: return span.Seconds + " seconds ago";
14: else if (span <= TimeSpan.FromMinutes(60))
16: if (span.Minutes > 1)
18: return "about " + span.Minutes + " minutes ago";
22: return "about a minute ago";
25: else if (span <= TimeSpan.FromHours(24))
27: if (span.Hours > 1)
29: return "about " + span.Hours + " hours ago";
33: return "about an hour ago";
38: if (span.Days > 1)
40: return "about " + span.Days + "days ago";
44: return "about a day ago";
I hope you like it as much as I do. By the way, did I tell you its written all in ASP.NET and C#. There's another fine example of a GREAT language!
Ladies and gents, after 10 or 15 hours setting up blogs for my girlfriend and me, I am finally ready to write in the Blogging world.
To start it off, I am out of Melbourne, FL. Please remember, this blog is not a representation of my employers views.
Other than that, I am a Full time .net developer with a personal blog at scottpio.com, I do imagine, I will be writing more on this one than my personal blog. I am happy to see a good language come out right when I am getting started in the coding world. I have been building web apps for about 8 years now, but moved to full time on Jan 15 2007.
I hope that you like the future of this blog. I will try to put GOOD content in it as my personal promise to the readers. haha. Its at zero currently.