Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
D

Daniel Lo Nigro

@Daniel Lo Nigro
About
Posts
13
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How old were you when you first wrote a line of code ?
    D Daniel Lo Nigro

    8 or 9 years old, with Visual Basic (actually VBA in Excel). An uncle taught me about programming and we built a Tamagotchi-like thing together. I'm 23 now :)

    The Lounge question

  • Image.FromFile and exceptions
    D Daniel Lo Nigro

    Yeah, I'm validating that an uploaded image is actually a valid image. I was just ranting about the framework using an OutOfMemoryException to signal an exception that doesn't relate to memory at all :)

    .NET (Core and Framework) csharp dotnet winforms com graphics

  • Image.FromFile and exceptions
    D Daniel Lo Nigro

    In the .NET Framework, what exception would you expect Image.FromFile to throw if the image is invalid? Something like an "InvalidImageFormatException" or similar? Nope. It throws an OutOfMemoryException. MSDN says:

    OutOfMemoryException
    The file does not have a valid image format.
    -or-
    GDI+ does not support the pixel format of the file.

    Really? I doubt the system is actually running out of memory as it returns quickly.

    .NET (Core and Framework) csharp dotnet winforms com graphics

  • Create a new programming language?
    D Daniel Lo Nigro

    A guy on a forum I frequently browse is building his own programming language mainly for web development as an experiment. It doesn't fit your "without using an existing programming language" criteria (as it is written in Java and will run on top of the Java Virtual Machine), but still an interesting topic. http://webdevrefinery.com/forums/topic/9856-tangle/

    The Lounge game-dev tutorial question

  • Ugliest website candidate?
    D Daniel Lo Nigro

    That's not that ugly! It's definitely usable and looks quite handy. Now, this is ugly: http://yvettesbridalformal.com/

    The Lounge com design question

  • IE9 --- Thumbs down after 60 seconds
    D Daniel Lo Nigro

    I'm glad to see there's other Opera users on here - There doesn't seem to be many of us :( I've been using it since around when version 6 or 7 came out. :)

    The Lounge collaboration

  • FreePascal and Delphi
    D Daniel Lo Nigro

    Pascal (using FreePascal) was the first language I learnt at university, a few years ago. It was great fun, seemed to be easily cross-platform.

    DonaldDuvall wrote:

    The only downsides I have noticed about the usage of FreePascal Compiler is that at times it seems unstable and FreePascal Compiler applications are a bit larger than Delphi ones.

    The compiler seems unstable? I've never experienced issues with it. Lazarus seemed a bit buggy at times back when I tried it, but I never had issues with the compiler. There are some optimisation switches you can use when compiling your app. Perhaps try some of those, they should make the EXE a little bit smaller. Still big compared to C++, but that's mainly because everything is statically compiled - As far as I know, you don't need any runtime library at all to use a FreePascal application, it's all in the EXE.

    Delphi delphi c++ php visual-studio sysadmin

  • FreePascal and Delphi
    D Daniel Lo Nigro

    Delphi apps are pretty large too, though!

    Delphi delphi c++ php visual-studio sysadmin

  • Which Antivirus?
    D Daniel Lo Nigro

    I've been using NOD32 for many years now, it seems pretty good :)

    The Lounge question discussion announcement

  • 10 Commandments
    D Daniel Lo Nigro

    From the Microsoft one: "Do not use a prefix for member variables (_, m_, s_, etc.). If you want to distinguish between local and member variables you should use “this.” in C# and “Me.” in VB.NET" What? I thought the .NET guidelines said to use an underscore? :wtf:

    The Lounge delphi code-review

  • 10 Commandments
    D Daniel Lo Nigro

    Does that matter? Tabs should be used for indentation, spaces should be used for lining things up. The size of indentation does not matter at all. That's one of the advantages of tabs - The user can set their preferred tab size.

    The Lounge delphi code-review

  • Who does not use jQuery these days?
    D Daniel Lo Nigro

    I don't use jQuery; I use MooTools. http://jqueryvsmootools.com/ is a pretty good overview and says a lot of the reasons why I like MooTools better :) jQuery is just focused on the DOM (and some AJAX), it's not useful for anything else. MooTools focuses on making JavaScript in general nice.

    The Lounge javascript question

  • Silverlight deployment
    D Daniel Lo Nigro

    That's inefficient though - The cache won't be used at all. So, even if you don't change the file, it'll still be loaded from your server. A better idea is to put

    myfile.swf?v=1

    And then just increment the number every time you make a change :) If you have a deployment script and are using a version control system (like SVN), you could add something to that to insert the SVN revision when you deploy. :) Daniel15 :)

    The Lounge com sysadmin tools question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups