Results 1 to 21 of 21

Thread: VBF extension

  1. #1

    Thread Starter
    Hyperactive Member francisstokes's Avatar
    Join Date
    May 2005
    Location
    Kent, England
    Posts
    272

    VBF extension

    Code:
    
    		private void btnGo_Click(object sender, System.EventArgs e)
    		{
    			tbxPass.Text = "";
    			Random rnd = new Random();
    
    			try
    				  {
    			int no = Convert.ToInt32(nud.Text) + 1;
    
    			for (int i = 1; i < no; i++)
    			{
    			   tbxPass.Text += chars[rnd.Next(0, 61)];
    			}
    				  }
    			catch  {}
    
    
    		 }

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VBF extension

    Moved to the "Test" forum

  3. #3

    Thread Starter
    Hyperactive Member francisstokes's Avatar
    Join Date
    May 2005
    Location
    Kent, England
    Posts
    272

    Re: VBF extension

    .... but this is the CC forum...

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VBF extension

    No it isn't - look above the first post (or below the quick-reply box).

    Is there any reason that you want this in CC?

  5. #5
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: VBF extension

    Because the extension is so PRETTY...

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VBF extension

    It's so pretty that I had to go into the C# forum to let people know about it!!

  7. #7
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: VBF extension

    Thanks a lot...we have about 300 users on 6-7 different forums now.

  8. #8
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: VBF extension

    Quote Originally Posted by NoteMe
    Thanks a lot...we have about 300 users on 6-7 different forums now.
    We do? Wow. Maybe I will get back into working on it again.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  9. #9
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: VBF extension

    Nahh..not 100% yet....but not far away either. It is hard to say though. Since the only way I can messure it right now is to see how many hits we have on the .rdf file. And since by default Fx is checking for new versions of an extension every 24h. It can be calculated more or less. But then again, people can change this value up or down, and on an other hand it is not sure that people are using that machine every day. But I would guess we getting close to 300 users now.


    It is easy for me these days to count boards though. Since we moved all the smilies to my server. It is just to check what pages I get hits, but not page views from. Then go to those pages and look for our smilies.. But of course moste of these are probably VBF users taken the extension with them to other forums like codeguru, but then again. I guess people on other forums are are installing it too, since it has started to spread faster the last 2-3 months...

  10. #10
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

  11. #11
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VBF extension

    ok... as I have your attention guys

    I have added a "code snippet" (actually it was "please mark this thread resolved"), but if I try to use it or edit it I get errors.. can I just remove it somehow?


    (oh, and the drop-down list in the editor is only 2 pixels high!!)

  12. #12
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: VBF extension

    It was cander that made that stuff.. It looks a bit different with different themes.

    Are you root/admin on the computer you are using now? If not then I guess it is writing to a place that you are not allowed to.



    Edit...or maybe I am wrong. Looks like Cander is testing on that:

    Code:
    
    		function platformPath()
    		{
    
    
    			try 
    			{
    				netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
    			} 
    			catch (e) 
    			{
    				alert("Permission to save file was denied.");
    			}
    
    			const DIR_SERVICE = new Components.Constructor("@mozilla.org/file/directory_service;1","nsIProperties");
    			try 
    			{ 
    				path=(new DIR_SERVICE()).get("ProfD", Components.interfaces.nsIFile).path; 
    			} 
    			catch (e) 
    			{
    				alert(e);
    			}
    
    			// findout if linux or windows to determine path
    			if (path.search(/\\/) != -1) 
    			{
    				return "\\";
    			} 
    			else 
    			{
    				
    				return "/";
    			}
    
    
    		}


    I'll see if Cander can give you an answer first, if not, I'll digg into his code a bit deeper...


    - ØØ -

  13. #13
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VBF extension

    Are you root/admin on the computer you are using now?
    Nope, I'm intentionally a "nobody"!

    Oh, and I'm using WinXP Pro.

  14. #14
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: VBF extension

    Yes I know you are a nobody, but what right do you have on your computer... I really need some fresh air now.


    Let see if Cander knows without looking at it what is wrong. If he doesn't, i'll see if I get time to find a WIndows XP machine around here later on tonight.



    -ØØ -

  15. #15
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: VBF extension

    I really have no clue. It should write without any issues since it writes only to the current users profile directory.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  16. #16
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VBF extension

    It only happens for a certain one, which has a : in the name.

    Looking in the profiles directory I can see that the bit before the colon is there as a file, but not surprisingly the rest of the filename isn't.


    Time for me to remove it from "snippets.vbf", and re-add it with a legal file name!

  17. #17
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: VBF extension

    Ahh.That would do it.

    Will have to do a check for illegal characters next time I get around to making updates
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  18. #18
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: VBF extension

    We forgot to think this through before we started coding.

    Todo list:
    - Make code fool proof.
    - Rewerite all code with this on our mind: "Our users is idiots"


    :D:

  19. #19
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: VBF extension

    Quote Originally Posted by NoteMe
    We forgot to think this through before we started coding.

    Todo list:
    - Make code fool proof.
    - Rewerite all code with this on our mind: "Our users is idiots"


    :D:
    lol. I originally wrote this with VBF users in mind. And since they are developers I didn't think they could possibly do something stupid.

    Just kiding guys. No love lost
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  20. #20
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: VBF extension



    If I'd known before that it was a file per snippet I would have been ok... but as Note said, "Our users is idiots".

  21. #21
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: VBF extension

    I give up...ARE, are are are. plural is always ARE..


    "our users are idiots"...



    - ØØ -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width