|
-
Apr 17th, 2006, 06:27 PM
#1
Thread Starter
Hyperactive Member
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 {}
}
-
Apr 17th, 2006, 06:28 PM
#2
Re: VBF extension
Moved to the "Test" forum
-
Apr 17th, 2006, 06:29 PM
#3
Thread Starter
Hyperactive Member
Re: VBF extension
.... but this is the CC forum...
-
Apr 17th, 2006, 06:39 PM
#4
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?
-
Apr 18th, 2006, 02:52 AM
#5
Re: VBF extension
Because the extension is so PRETTY...
-
Apr 18th, 2006, 02:55 AM
#6
Re: VBF extension
It's so pretty that I had to go into the C# forum to let people know about it!!
-
Apr 18th, 2006, 05:31 AM
#7
Re: VBF extension
Thanks a lot...we have about 300 users on 6-7 different forums now.
-
Apr 18th, 2006, 09:26 AM
#8
Re: VBF extension
 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.
-
Apr 18th, 2006, 03:47 PM
#9
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...
-
Apr 18th, 2006, 03:48 PM
#10
-
Apr 19th, 2006, 05:51 AM
#11
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!!)
-
Apr 19th, 2006, 07:40 AM
#12
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...
- ØØ -
-
Apr 19th, 2006, 07:50 AM
#13
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.
-
Apr 19th, 2006, 08:10 AM
#14
-
Apr 19th, 2006, 08:51 AM
#15
Re: VBF extension
I really have no clue. It should write without any issues since it writes only to the current users profile directory.
-
Apr 19th, 2006, 09:17 AM
#16
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!
-
Apr 19th, 2006, 09:42 AM
#17
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
-
Apr 19th, 2006, 11:13 AM
#18
-
Apr 19th, 2006, 11:40 AM
#19
Re: VBF extension
 Originally Posted by NoteMe
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
-
Apr 19th, 2006, 11:46 AM
#20
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".
-
Apr 20th, 2006, 02:48 AM
#21
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|