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
Z

ziggyfish

@ziggyfish
About
Posts
17
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • I have a trouble about query_insert().
    Z ziggyfish

    replace

    mysql_query($query_insert);

    with

    mysql_query($query_insert) or die('Error occured: ' . mysql_error());

    Than reply with the output.

    Linux, Apache, MySQL, PHP php html database help question

  • On the surface
    Z ziggyfish

    Microsoft Surface has been around since 2008 ? (http://en.wikipedia.org/wiki/Microsoft_PixelSense[^]) Oh, you mean the new product of the same name, I don't see why its so good either, it took over 6 months for the IPad to be a solid product for the general non-technical consumer. Maybe they are on a winner, however I don't really think so.

    The Lounge wpf csharp mobile com hardware

  • fyi: accidental find: using JavaScript DOM in browser to parse a URL
    Z ziggyfish

    I only worry about the performance of this method.

    JavaScript csharp c++ javascript html com

  • bitwise operator question
    Z ziggyfish

    << means bitshift left >> is bitshift right ^ is XOR. and a <operator>= b is the same as: a = a <operator> b

    JavaScript question help

  • File Upload in IE
    Z ziggyfish

    Hi, In firefox, and chrome, I have a progress bar when someone uploads a file, however the same code doesn't work in IE (surprise surprise), it fails on:

    var file = this.files[0];

    My question is how do I do the equivalent for IE? Pointing me to the documentation would best. code is:

    function uploadImage(){
    $('#percent').progressbar({
    value: 0
    });
    $( "#dialog" ).dialog({
    resizable: false,
    height:150,
    modal: true,
    buttons: {
    Cancel: function() {
    if (xhr){
    xhr.abort();
    xhr = null;
    }
    $( this ).dialog( "close" );
    }
    }
    });
    document.getElementById('photo').addEventListener('change', function(e) {
    var file = this.files[0];
    var formdata = new FormData();
    formdata.append('file', file);
    xhr = new XMLHttpRequest();
    xhr.file = file;
    xhr.addEventListener('progress', function(e) {
    var done = e.position || e.loaded, total = e.totalSize || e.total;
    $('#percent').progressbar('value', (Math.floor(done/total*1000)/10));
    }, false);
    if ( xhr.upload ) {
    xhr.upload.onprogress = function(e) {
    var done = e.position || e.loaded, total = e.totalSize || e.total;
    $('#percent').progressbar('value', (Math.floor(done/total*1000)/10));

    				};
    			}
    			xhr.onreadystatechange = function(e) {
    				if ( 4 == this.readyState ) {
    					console.log(this);
    					$('#src').val(this.responseText);
    					$('#dialog').dialog('close');
    					xhr = null;
    				}
    			};
    			xhr.open('post', '/index/fileupload', true);
    			xhr.send(formdata);
    		}, false);
    	}
    
    JavaScript question database

  • .NET is Hell (subtitle: Microsoft warning!)
    Z ziggyfish

    Agreed. However teaching people what that error message actually means, and what he needs to do to avoid those errors benefits all of us. XSS is possible in this site as well (example is this), so its not a common problem that every developer knows about.

    The Lounge csharp dotnet com security testing

  • sub domain regular expression
    Z ziggyfish

    You want us to do your work? This isn't a complex expression, so RTFM.

    ASP.NET com regex

  • How can I change a 8-bit bitmap into a 4-bit/1-bit bitmap?
    Z ziggyfish

    Here is how: - Load the bitmap using System.Drawing.Bitmap, - Crease a bitmap using Bitmap(Int32, Int32, Int32, PixelFormat, IntPtr) constructor - Save newly created bitmap to file.

    Java question graphics

  • .NET is Hell (subtitle: Microsoft warning!)
    Z ziggyfish

    Also they actually call this type of testing, Pen[etration] testing, never heard of Red-Siren testing.

    The Lounge csharp dotnet com security testing

  • .NET is Hell (subtitle: Microsoft warning!)
    Z ziggyfish

    Its not .NET's fault, its actually a XSS attack, that the tool is testing for. What the tool is saying, is that you should validate the input before that URL has a chance to be generated. You can cause a lot of problem for your users if you have XSS vulnerabilities, its what virus writers use to spread the virus over the internet. You should raise this as a serious bug with the original developers.

    The Lounge csharp dotnet com security testing

  • Windows Phone - market share projection?
    Z ziggyfish

    Well the fact that you don't want to use the tools made for that platform, says a lot. I use what ever language that does the job, whether it be .NET, Java, PHP, XSLT, JavaScript, Shell Scripting, AWK, ActionScript or any other language. USE THE TOOLS THAT THE PLATFORM PROVIDES AND DON'T EXPECT TOOLS WRITTEN FOR OTHER PLATFORMS TO WORK WELL!!!!!!!!! That is all I am suggesting.

    The Lounge csharp java android ios com

  • Windows Phone - market share projection?
    Z ziggyfish

    Need I say more?

    The Lounge csharp java android ios com

  • So I installed Ubuntu this morning.
    Z ziggyfish

    JimmyRopes wrote:

    ziggyfish wrote:

    I am doing some investigation on how good ASP.NET actually is

    Look into MVC (RAZOR view engine). I like it better than WinForms.

    So the ASP.NET's MVC isn't that good? I use the Zend Framework in a lot of my work which is a MVC. ZF has some really cool features that I really like. For example forms display, validation and CRUD are very elegant in ZF. Also Magento is based of ZF as well, which made it very easy to learn Magento.

    JimmyRopes wrote:

    ziggyfish wrote:

    I have been a PHP developer for 8 years

    I used to be a PHP developer but have been doing ASP.NET for the past 4 years, a long term contract. I want to look into Ruby On Rails (MVC) for any Apache imnplementations I do in the future.

    I've worked with Rails for a while as well, its a nice framework to work with although I not really a fan of the Ruby language . A lot of ZF has been inspired by Rails.

    The Lounge linux

  • So I installed Ubuntu this morning.
    Z ziggyfish

    I absolutely understand. I did it when I was running Windows XP. What I ended up doing was running the applications that I would run in Ubuntu (back then it was Ubuntu 6.06) on Windows XP. As I got use to them there was a point in time, where I was using more of these tools. So I moved from that to running Ubuntu in a virtual machine. I learned from that how the file system works, and also how to do basic networking. I then started using the Ubuntu virtual machine so much that I decided to switch the equation, so that Ubuntu was the host and Windows XP was the guest. Over time I found myself using XP less and less. I now use the XP VM just for testing websites in IE and my current ASP.NET investigations. I also had a lot of problems like you, when doing the final switch from XP to Ubuntu, except I also had a strange problem where if I set my startup display in the BIOS to the graphics card (ATI Radieon 9200SE), Xorg would not start correctly, however if I had my on board graphics card set. and my Monitor connected to the Radieon, it would work perfectly. BTW I have been a PHP developer for 8 years, and I am doing some investigation on how good ASP.NET actually is. I am so use to everything being so simple and dynamic in PHP. Simple applications that requires authentication, simple form validation and output (for example is the email supplied a valid email address) seems so complicated for what it actually is. All I am trying to do is a simple CMS that has search engine friendly URLs. In PHP it takes about all of 30 mins. However I seem to be fighting VS2010 more than I am actually writing code and I have spent more than 3 days and got nowhere. So your not alone!!! However I am sure its just because I am use to the PHP ways of doing it, and I will get use to it.

    The Lounge linux

  • So I installed Ubuntu this morning.
    Z ziggyfish

    Good to hear, I hope you love Ubuntu as much as I do.

    The Lounge linux

  • Windows Phone - market share projection?
    Z ziggyfish

    IDC has always been a pro-Microsoft, so I would take those articles with a grain of salt. To answer your question about building apps on Android and IOS using C#. Can I ask this simple question, why? Programming languages are easy to learn, once you know one language you should know how to code in other languages that have the same programming paradigms. Once you know where the documentation is and how to read it, you should be able to code in that language. C# has strongly been influenced by Java and C++ so you should know how to read Java anyway. the only issue is finding the documentation, and Google should help you with that ;). This is the same for Objective C as well. You should be writing your applications so that your presentation logic is separated from your business logic, so translation becomes fairly easy. Alternatively failing proper code structure, read this[^] or this [^]

    The Lounge csharp java android ios com

  • So I installed Ubuntu this morning.
    Z ziggyfish

    Well me being a Ubuntu user and have set up a DSL connection before. I have a couple of question so we can solve the issues at hand. First what type of modem do you have. You may need to install the driver correctly. Secondly how is it connected to the computer, if it is connected using USB, run the following command in a terminal and post the output:

    lsusb

    If its a PCI modem use:

    lspci -k

    I am specificly looking for the Device IDs.

    The Lounge linux
  • Login

  • Don't have an account? Register

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