|
1) Sneak into Microsoft offices
2) Hack into MS source control system
3) Alter code for IE browser
4) Go home, and reap the rewards
(all of which is my obnoxious way of saying that it cannot be done).
my blog
|
|
|
|
|
I'm looking for ideas on how to handle managing a database of images for a website. Basically, users will be able to post pictures in multiple formats for a variety of reasons. I assume I will assign an id to each image and probably rename the file to that id. For increased speed, I've heard the best thing to do is store the files in multiple directories in the filesystem, such as directories 1-9 and sort the files into their directories based on id. Then in the database I would store the id, timestamp, user that submitted the pic, id of what part of the site it belongs to, and maybe a text description. What would be the best way to generate these ids, prevent collisions, etc.
I feel like I'm on the right track, but I'd like to hear from anyone who has done something like this before or anyone else that has some ideas.
Thanks.
|
|
|
|
|
I would follow the KISS principle, i.e. keep it simple. If you plan on having thousands of images, then by all means you should work out some directory structure that makes efficient use of system IO capabilities. Otherwise, why bother.
As for Ids, I have found GUIDs to be good. They:
* are unique
* can be combined with a file name, e.g. {FFE3-...-A1}StevesPhoto.jpg, to allow human-readable directories.
* can be used to split into folders, e.g. create an FF folder for those Guids that start with FF.
Guids can be generated by the database, or by code.
my blog
|
|
|
|
|
I have an ASP application that was hosted on an webserver (Intranet) that is used for many other applications. So, that server is maintained by some administrators. I'm an administrator on that server. I don't want them being able to view my application's source code.
I've heart that there is way to protect ASP application using encoding method. The question is how to do that. Could you please help me on this matter.
Thanks in advance.
|
|
|
|
|
Perhaps you could use NTFS permissions to lock everyone but the ASP process from viewing the files. Otherwise, you could try a tool like Stunnix Obfuscator.
my blog
|
|
|
|
|
Apologies if this has already been covered but I am keen to get this implemented.
We have several sites that send email on behalf of visitors including but not limited to 'email a friend' type services. I am trying to ensure that all our websites comply with the guidelines of SPF (Sender Policy Framework) when it comes to web generated emails (http://spf.pobox.com/webgenerated.html). I am unsure though how this can be implemented within a CDO generated email. Does anyone now how to change the return-path or reply-to settings within a cdo.configuration object or otherwise?
I am currently left approaching it in the same way as (http://www.gossamer-threads.com/lists/spf/srs/8766) where I set the from address to the third party and the sender address as info@ourdomain.com. This seems to work but may not be good enough for SPF compliance.
Any ideas?
Thanks in advance
Adam
|
|
|
|
|
Ok, I've worked it out myself reading loads of incorrect information all over the place!
Finally coming up with this, which is of course very simple and probably obvious to some -
Set objMail = Server.CreateObject("CDO.Message")
with objMail
.To = "foo@bar.com"
.From = "name@3rdparty.com"
.Fields("urn:schemas:mailheader:return-path").Value = "info@ourdomain.com"
.Fields.Update()
.Sender = "info@ourdomain.com"
.HTMLBody = strMailBody
.Subject = strSubject
.Send
end with
Set objMail = Nothing
Tried for ages using a cdo configuration object, but you don't actually need one.
This sets both sender and return-path to an SPF valid address and the from to the person sending the email a friend (or whatever).
I hope this is of some use to others.
Cheers
Adam
|
|
|
|
|
Why might be the reason that IIS is running aspx files perfectly, but not asp ones? Any file I write using .NET runs fine, anything that was created with VS6.0 or just a plain text will not load. I'm getting a HTTP 500 Internal Server Error message. Any ideas?
Thanks
|
|
|
|
|
Hi there. One thing I would check is to see if the asp.dll extension is mapped on your site. Go to Administrative Tools -> Internet Information Services Manager, right click the web site and choose "Properties". Then click the "Home Directory" tab and click the "Configuration" button. From the Application Configuration window, look on the "App Mappings" tab and see if ".asp" is mapped to a dll like "C:\WINNT\System32\inetsrv\asp.dll".
If that's not it, you may want to check out this document: http://www.aspfaq.com/show.asp?id=2109[^]
|
|
|
|
|
Your advice was pretty good, unfortunately it didn't help one bit. My boss and I have spent the majority of today toying with as many IIS settings as we possibly could in hopes of making this work again, to no avail I'm hoping to avoid rebuilding this machine, because that's the point where we are at. Thanks for the help!
|
|
|
|
|
Mmmm. If I add a "BlogThis!" button to my IE links toolbar, it won't work - perhaps because I have upgraded to SP2. The button uses the following URL:
javascript:popw='';Q='';x=document;y=window;if(x.selection) {Q=x.selection.createRange().text;} else if (y.getSelection) {Q=y.getSelection();} else if (x.getSelection) {Q=x.getSelection();}popw = y.open('http://www.blogger.com/blog_this.pyra?t=' + escape(Q) + '&u=' + escape(location.href) + '&n=' + escape(document.title),'bloggerForm','scrollbars=no,width=475,height=300,top=175,left=75,status=yes,resizable=yes');if (!document.all) T = setTimeout('popw.focus()',50);void(0);
OK, I know I can install the Google Toolbar for a "BlogThis!" button, but I am intrigued as to why the above doesn't work.
Anyone have any clues?
"May the seed of your loin be fruitful in the belly of your woman"
|
|
|
|
|
I am having a specific problem , our application is a local intranet application, we have different types of printouts printing from our application.
I want to send if pint type is "A" send the output to Printer "Epson Dot matrix Pritner" . If output type is B send the output to Printer "Laser Pritner" . I want to do all this from my webpage.
Can you tell how to control the printer from the webpage. Or send output to particular printer.
Otherwise please help me how to execute Local .VBS file from a webpage. In which case i can write .vbs file that will receive a parameter and based on the parameter i can set the printer locally.
I hope your guys understood my problem.
|
|
|
|
|
Try
<br />
<IMG SRC="Images/AddNew.gif" BORDER="0" ALIGN="middle">New<br />
--G
|
|
|
|
|
|
I can not figure out how to align the text to the middle of a image. Here is what I have in the same cell inside an Anchor but the text sits at the bottom of the cell even when I set the cell valign to middle.
<IMG src="Images/AddNew.gif" border="0">New
How do i get these to valign in the middle?
Thanks
|
|
|
|
|
Is there a way to either/or change the blink rate for the I-Bar or change the cursor to a block cursor.
|
|
|
|
|
I'm pretty sure thats the caret...not cursor...and no...not easily anyways.
However if your determined...you could maybe...
keep track of where the caret is and use a timer to select and deselect the character in which the caret resides...but you'll still see the default caret i'm sure
This would emulate the only DOS style caret/cursor.
Cheers
How do I print my voice mail?
|
|
|
|
|
How to create Project for JScript ? - in Visual Studio 7 or 6
or else studio with the purpose to
see function in navigation bar ?
To be able call debugger with attech to some process that is using
Windows Scripting Host for that JScript component (.wsc)
How to better and suitable debug ? Can you recommend some methodology ?
thanks you.
|
|
|
|
|
Hi
ASP 3.0 has the Server.MapPath function..
what is there a function in PHP 4.0 that does the same ?
|
|
|
|
|
It might help if you explained...what does this function do exactly???
How do I print my voice mail?
|
|
|
|
|
Hi
Assume I have C:\wwwRoot\mysite hosts the site : www.MySite.com
I want to:
-get the real path from a virtual path.
(Get the real path of the file : www.MySite.com/index.htm should be C:\wwwRoot\mysite\index.htm)
-reverse the perevious operation : (get the URL of C:\wwwRoot\mysite\index.htm assuming no virtual directories are used.
thank you in advance.
|
|
|
|
|
I hope this is the correct CP place to ask a CSS question -- apologies if not.
I am trying to only use TABLEs for true data presentaions, not for layout. Therefore, when I had to create a FORM that requests information (Name, Address, etc.) I looked around and thought a definition list might be the thing to use. The code below works great in Netscape (although I'm not sure why the DD section starts inside the DT section (see borders -- only for troubleshooting)) but looks not so good in IE. Actually, the DD section that contains only a text input field is the only one that doesn't line up.
Any help would be appreciated.
###---- Begin Code Sample ----
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>Test DD Style</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<STYLE TYPE="TEXT/CSS">
DL
{
clear:both;
width:100%;
margin:10px 0px;
}
DT
{
display:inline;
float:left;
width:100px;
height:21px;
border:1px solid #00f;
}
DD
{
text-align:left;
border:1px solid #f00;
display:block;
padding-left:0px;
height:21px;
left:40px;
}
P
{
background-color:c0c0c0;
font-size:14px;
width:100%;
border:thin dashed #000;
padding:10px;
background-color:#CCCCCC;
}
</STYLE>
</HEAD>
<BODY>
<P>DL Example</P>
<DL>
<DT>Plain Text:</DT><DD>Lines up fine.</DD>
<DT>Text and Input:</DT><DD>Text <INPUT TYPE="TEXT"></DD>
<DT>Just Input:</DT><DD><INPUT TYPE="TEXT"></DD>
</DL>
</BODY>
</HTML>
###----- End Code Sample -----
|
|
|
|
|
You should actually be using fieldset, legend and label for this.
DT/DL is for defining things and lists.
regards,
Paul Watson
Bluegrass
South Africa
Jörgen Sigvardsson wrote:
"Gassho rei, Watson-san!"
Crikey! ain't life grand?
|
|
|
|
|
Thanks. I'll dig into those now.
--G
|
|
|
|
|
Paul: Thanks for the pointer. Not only am I making the form more "correct", but the client loves the look the fieldset element adds to the page.
Thanks again.
--G
|
|
|
|