Recent content on lennybacon.com
- Generator
- Hugo -- gohugo.io
- Public lists
-
HWC DUS
CAPCHA with Flickr
I just stumbled over roy’s post and i think it would make sense to use smth like that as a capcha solution.
Two weeks left for your registration - .NET Summit NRW
Eine Community-Konferenz für Entwickler veranstalten die beiden INETA User Groups “VfL-Niederrhein - Verein für Longhorn” und die “Net UG Düsseldorf” am 28. Juli in Neuss. Der vierstündige Event mit dem Titel “.NET Summit NRW” bietet ein halbes Dutzend Vorträge und ist kostenlos. Ein Event von der Community für die Community. http://www.event-team.com/events/netsummitnrw/Registrierung.aspx Uhrzeit Track 1 Track 2 17:00 - 17:45 Assembly 17:45 - 18:00 Keynote 18:00 - 18:45 Team System Daniel Fisher(lennybacon) [newtelligence] Mit Visual Studio Team System wird bisher die umfangreichste Zusammenstellung der Entwicklerwerkzeuge zur Zusammenarbeit in Projektteams bereitgestellt.
Free Microsoft E-Learning SqlServer 2005
The following e-learning courses are available for SQL Server 2005: 2939: Programming Microsoft SQL Server 2005 2940: Building Services and Notifications Using Microsoft SQL Server 2005 2941: Creating the Data Access Tier Using Microsoft SQL Server 2005
Re: Windows Impersonation in ASP.NET
Pierre posted an entry bout impersonation in ASP.NET szenarios. There are several scenario where you have to use the impersonation in ASP.NET. Consider, for example, you have to save and load files from a network share (file server). In that case, if the web site accept anonymous authentications, you have to impersonate a windows user who has enought privileges to access to that resource. You have three choices (I guess):
.NET Summit NRW 2005
After quite an amount of time, work and effort, that it had cost to realize my ideas I’m proud to present together with Stephan Oetzel to you an extra large community event: Nach einer ganzen Menge Zeit, Arbeit und Anstrengung die es gekostet hat meine Idee zu realisieren bin ich nun stolz zusammen mit Stephan Oetzel eine Community Event der Superlative zu präsentieren: And here is the lineup: Christian Weyerthinktecture], Michael Willers newtelligence, Jörg M.
SQL Sever 2005 (YUKON) Review in short, #2
Ok, here is another one: I add a login to my database server: EXEC sp_addlogin @Username, @Password, @Database; This works fine! I add a user, to a database by using the stored prcedure sp_adduser: Use [MyDB]; EXEC sp_adduser @Username; This also works fine! I want to remove the user from the database. Therefore I use the stored procedure sp_dropuser: EXEC sp_dropuser @Username; This removes the user BUT what you’ll see while digging deeper is that sp_adduser has created an SCHEMA and sp_dropuser don’t cares a s%#t about that - it’s still there after calling sp_dropuser :-(
SQL Sever 2005 (YUKON) Review in short, #1
First of all … wow, yeah, the IDE of SQL Server 2005 is pretty nice with all those grafics and animations but It’s more than anoying that i can not paste multiline text into a column of a table opened via right-click | Open Table NOTE: It is possible to add multi-line-texts via an insert/update script - but hey, that takes me 10-30 seconds longer … raise your hands if ya wanna pay me for that.
Indicate if the current web is running in debug mode...
public static bool IsWebInDebugMode{ get { bool _isDebug = false; if(HttpContext.Current.Cache["IsDebug"] == null) { XmlDocument _doc = new XmlDocument(); string _cfgfile = HttpContext.Current.Server.MapPath("~/Web.Config"); _doc.Load(_cfgfile); XmlNode _node = _doc.SelectSingleNode("configuration/system.web/compilation"); if(_node==null || _node.Attributes["debug"]==null || _node.Attributes["debug"].Value.ToLower()!="true") { _isDebug = false; } else { _isDebug = true; } HttpContext.Current.Cache.Insert("IsDebug", _isDebug, new System.Web.Caching.CacheDependency(_cfgfile), DateTime.Now.AddDays(1), TimeSpan.Zero); } else { _isDebug = bool.Parse(HttpContext.Current.Cache["IsDebug"].ToString()); } return _isDebug; } }
Next to XSS is SSS - Same Site Scripting
Via Willem Odendaal I opend the following web site http://www.squarefree.com/bookmarklets/forms.html#frmget. It holds an interesting collection of bookmarklets (Javascript commands that can be saved as bookmarks so they can be applied to every page that is opend in your browser). For example: “remove MaxLength” … shows how important it is to use ASP.NET Validation Controls in your Web Applications.
Back on the road
It’s happening again. Michael and I are back on tour for TornadoCamp Xpress, the .NET 2.0 event of newtelligence. Today we started. We meet Michal K. of Microsoft, he’s a nice and smart guy, our local contact and I’m doing this post right in the middle of our C# 2.0 HOL. I miss my familiy @ home - love ya! cu soon. Cheers to the rest out there.
.NET 2.0 Only 99.9% backwards compatible?
While re-writing a few WebServices for .NET 2.0 i ran across following: ... public static void WaitProc(object state, bool timedOut) { MyAsyncResult myAsyncResult = (MyAsyncResult)state; myAsyncResult.OriginalCallback.Invoke(myAsyncResult); } ... This compiles without any problems in Visual Studio .NET 2003 but makes the compiler scream (Invoke cannot be called directly on a delegate) untill you change the lines to the following: ... public static void WaitProc(object state, bool timedOut) { MyAsyncResult myAsyncResult = (MyAsyncResult)state; myAsyncResult.
Uninstalling Previous Versions of Visual Studio 2005
If you have installed previous versions of Visual Studio 2005, such as Beta 1 or Community Technical Preview (CTP) builds of Visual Studio Team Suite, Visual Studio Standard or Visual Studio Professional, then you must uninstall the pre-Beta2 components in the exact order below before beginning to install any version of Visual Studio 2005 Beta 2. Go to the Control Panel and launch Add/Remove Programs Remove “Microsoft Visual Studio 2005 Professional” or other related IDE installs such as (Visual Studio Professional/Standard/Enterprise Architect/Team Suite, etc.
You shall not click on the "favicons" link
Mozilla Suite and Firefox “favicons” LINK Code Execution Exploit […]a user clicks on a link, this code will create and launch the file c:\trojan.bat (on Windows). On Linux and Mac OS X this code will create the file ~/trojan or /trojan[…]
Microsoft Enterprise Library Logging Block compared to Log4net
Loren Halvorson: Microsoft recently released 1.0 of the Enterprise Library. I was curious how the Logging block stacked up to Log4net… Via Peter
Using IFused with the FCKEditor
Miroslaw Maslyk has sent this small tutorial on how to use iFused with the FCKEditor. Thank you very much Miro ;-) Rename file FCKeditor\editor\dialog\fck_image.html to fck_image.aspx. On the top this file (fck_image.aspx) add this code: <%@ Page Language="C#" %> <%@ Register TagPrefix="Uploader" namespace="StaticDust.Web.UI.Controls" assembly="StaticDust.Web.UI.Controls.UploadDialog" %> <script runat="server"> protected void Page_Load(Object source, EventArgs e) { StaticDust.Web.UI.Controls.UploadDialogButton _u = new StaticDust.Web.UI.Controls.UploadDialogButton(); _u.UploadDirectory = "~/images"; _u.ReturnFunction = "SetUrl()"; btnBrowse.Attributes["OnClick"] = "javascript:" + _u.JavascriptLink; } </script> Find btnBrowse input html tag , add runat=“server” attribute and close tag (/>)
MSDN Connection in Germany
http://www.microsoft.com/germany/msdn/connection/
Pedition gegen Klingeltonwerbung
Unter der URL http://www.cell5.com/ kann man an einer Unterschriften-aktion gegen sweety, Jamba und Co. teilnehmen - tolle sache :-D
@BASTA! #1
Yesterday I arrived in Frankfurt with a delay of 2 hours (thanks to the Deutsche Bahn). Monday is Workshop day and so I just sat arround and did the same stuff that I would normally do in the office. I’m currently working on an ASP.NET project that uses v. 1.1 but will be converted to 2.0 with it’s “Go-Live”. So I need to make sure that I don’t do things that will stand in the way in the next version.
newtelligenced Part two
I joined newtelligence® AG last year for a practical course, Clemens and I mentioned that in our blogs before. I had a wonderful time so far (and I’m sure it’ll continue), nice collegues (I’ll link only the bloggers Clemens, Joerg and Michael), new challenges and interesting task, talks and times. Today it’s official: From today on i’m a “Software Engineer” for newtelligence® AG.
What ASP.NET Developers Should Always Do
[Dino Esposito] …Introduced with ASP.NET 1.1, ViewStateUserKey is a string property on the Page class that only few developers admit to be familiar with. Why? Let’s read what the documentation has to say about it. void Page_Init (object sender, EventArgs e) { ViewStateUserKey = Session.SessionID; } There will be a few more that are familiar with that now :-)
Thoemmi und die blogs
Thomas Freudenberg, a friend of mine and member of my usergroup, has started a interesting discussion about .Text (a blogengine) and it’s future. He had a lot of feedback on that and posted another entry to clear up things a bit. It came out that he is not the only one asking ‘Where’s .Text going to?’. All I can tell you is: if you are not satisfied - use dasBlog ;-)
The UploadDialogControl v. 2.3.1.10088 and beyond
I currently working again on iFused (Internet File Upload Select and image Editing Dialog). Yesterday i released the version 2.3.1.10088: support for “~” as palceholder for the application path code optimization performance optimization I have a lot of things to do on based on the wishlist and loads of mail in my inbox. This is what i plan to catch until 1st. of february: Use physical path outside of the application root as UploadDirectory Database as source for files and directorys
Code of the Week
Stephan posted “Tool der Woche” (tool of the week) - T.YogaRamanan has posted some code that allows undelete in NTFS on codeproject.com
CSS Attribut selector to style different types of INPUT
I found this: input[type="button"] { color: red; } over here and like other guys (see feedback) i’ve never gooled for it - thx.
German bloggers, Chris and Me MainFeed
DotNerGerman (my blog is also hosted there) offers a MainFeed of german Bloggers (Dirk Primbs, Dieter Föttinger, Alexander Zeitler, Damir Tomičić, Stephan Troxler, Thomas Bandt, Uwe Bauman, Bernd Spuida, Roman Pittroff, Jens Meyer, …) and german bloggers blogging in english for example Christoph Wille and me, Daniel Fisher(lennybacon). So have a look!
My Nerd Score
Wohl mehr GAGA als GIGA...
GIGA Homepage Award 2004 - Die Entscheidung ist gefallen … Und da Gab es auch einen ASP.NET Award … quasi … http://www.der-ebner.de/ Die einzige professionelle Site. Wurde mit ContentXXL erstellt. Nett. Gratulation. Aber keine Angst. Es gibt auch noch lustiges sonst wär mir das auch keinen Blogeitrag wert: So z.B.: skripte4u […] komplett in ASP.NET entwickelte Site überzeugte uns vor allem mit ihrer technischen Funktionalität […] Mein lieblingsfeature ist ein Klick auf “Chat” worauf die Navigation verschwindet und der nicht formatierte Text “z.
MSDN blogged
Mike Hall likes ASCII Art … http://blogs.msdn.com/mikehall/archive/2004/12/28/341038.aspx
C# Image 2 ASCII
What i really like about the days between x-mas and new year is that you have time for things that you usually don’t have time for. The stroy: I love my girlfriend. I likle C# and I like asciiart. So it happend that she showed me some ascii’s. I asked myself if somebody has written some image to ascii in C#. I googled but found nothing. I did some image manipulation stuff for the company before x-mas and so I builded a basic image to ascii conversion library in C#.