|
Hello! Brace yourself to build a crawler from scratch. you feed the crawler with parameters [search parameters]and it does the rest.For you to dothis you will need to program in Perl, Python and know lots of PHP and MySQL. The core of the search is the crawler; make a good one! All the best.
---------------------------
Both optimists and pessimists are important in technology. The optimist invented the aeroplane; the pessimist invented the parachute.
Regards,
Hesbon Ongira
Nairobi, Kenya.
|
|
|
|
|
I am sorry to say that if you are asking this question you do not have the requisite skills to make a search engine website.
|
|
|
|
|
I have a web site based that I redirect subdomins to user files with this code:
Dim sUrl As String
sUrl = Page.Request.Url.ToString()
If InStr(sUrl, "chris") Then
Response.Redirect("1/chris/0/default.html")
ElseIf InStr(sUrl, "traci") Then
Response.Redirect("1/traci/0/default.html")
End If
If somone types in chris.mydomain.com it get redirected to an html page.
I would like to change this over to looking up in a database to get the "username" and the redirect string. But I worry it will take more time then parsing a file.
This file contains about 100 people with redirect statements in them.
Any suggestions?
Thanks
Chris
www.pluginforsuccess.com
|
|
|
|
|
Hi Guys,
Is it possible to call the exe file from ASP.Net page in the same server where the asp.net pages are located?
How can it be done?
Thanks
hifiger2004
|
|
|
|
|
try This
System.Diagnostics.Process.Start("c:\...\MyFile.exe")
umesh
|
|
|
|
|
Yes, it works. And I just added a command WaitforExit()
hifiger2004
|
|
|
|
|
Hello, there,
I have a question about Master page of web application in SharePoint _layout folder. I can create a web application in the layout folder and have access to SharePoint Object Model. However I cannot use Master page for my web application. I tried to copy SharePoint default.master to my working folder and put the content of my page into content holder. When I load the page, I got a SharePoint error. Also I tried to use a most simple master page and content page,I still got the same error.
My question is how I can use Master page for the web application in the layout folder? Anything that I need to modify?
Also how can I use the most recent default.Master in my web application to keep my web application always has the same style as other pages in the SharePoint.
Any suggestion will be greatly appreciated.
Best regards,
Bin
|
|
|
|
|
it only could set directory,but could not upload files,what is wrong?
|
|
|
|
|
1) What is the error you are getting?
2) Do you have Write Permission on the folders that you are writing at?
|
|
|
|
|
[右] 已连接到 yiyi.00bp.com
[右] 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
[右] 220-You are user number 5 of 50 allowed.
[右] 220-Local time is now 12:44. Server port: 21.
[右] 220-This is a private system - No anonymous login
[右] 220-IPv6 connections are also welcome on this server.
[右] 220 You will be disconnected after 15 minutes of inactivity.
[右] USER yiyi
[右] 331 User yiyi OK. Password required
[右] PASS (hidden)
[右] 230-User yiyi has group access to: vhosts
[右] 230-OK. Current restricted directory is /
[右] 230 0 Kbytes used (0%) - authorized: 5120000 Kb
[右] SYST
[右] 215 UNIX Type: L8
[右] FEAT
[右] 211-Extensions supported:
[右] EPRT
[右] IDLE
[右] MDTM
[右] SIZE
[右] REST STREAM
[右] MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
[右] MLSD
[右] TVFS
[右] ESTP
[右] PASV
[右] EPSV
[右] SPSV
[右] ESTA
[右] AUTH TLS
[右] PBSZ
[右] PROT
[右] 211 End.
[右] CWD /
[右] 250 OK. Current directory is /
[右] PWD
[右] 257 "/" is your current location
[右] 列表 (已缓存)
|
|
|
|
|
Hello!
I got a page where a user can view meeting attendance / per year
The user can select to view multiple years at the time, etc 2006,2007
The problem is that the calculation for total attendance % is wrong if any of the meetings has 0 attendance on the meeting.
heres the code that displays the information.
dim lastmonth, currentmonth, samemonth, ackumulated_sum_dict, att_percent, tempPercent, ackumulated_mem_dict, tempMems
currentmonth = ""
lastmonth = "test"
samemonth = false
for each mon in monthArray
currentmonth = mon
if(currentmonth = lastmonth) then
samemonth = true
else
samemonth = false
end if
%>
<%=meetingsArray.Item(mon)%> <%
dim meetArray, meet_date, meet_id
for each yearItem in yearArray
meetArray = getMeetRS(samemonth, yearItem, mon, instID)
if not ubound(meetArray) < 1 then
meet_date = meetArray(0,0)
meet_id = meetArray(1,0)
%>
<%=meet_date%> <%
attendees = getAttendeesAtMeeting( meet_id , instId)
tempMems = ackumulated_mem_dict.Item(yearItem)
ackumulated_mem_dict.Item(yearItem) = tempMems + attendees
Response.Write attendees
%>
<%
memInInst = getNumOfMembers(instId,meet_date)
Response.Write memInInst
%>
<%
att_percent = (attendees / memInInst) * 100
tempPercent = ackumulated_sum_dict(yearItem)
tempPercent = tempPercent + att_percent
ackumulated_sum_dict.Item(yearItem)=tempPercent
%>
<%= round(att_percent,2)%> <%
else
%>
<%
end if
next
%>
<%
lastmonth = currentmonth
next
%>
Totalt <%
for each yearItem in yearArray
%>
<%=ackumulated_mem_dict(yearItem)%> <%=round(ackumulated_sum_dict(yearItem)/ (ubound(monthArray)+1),2) %>
<%
next
%>
<%
anyone got any ideas how to fix the calculations on this ?
thx!
|
|
|
|
|
Wrong in what way? What result do you get, and what did you expect?
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
The problem is here
<%=round(ackumulated_sum_dict(yearItem)/ (ubound(monthArray)+1),2) %>what it does is for example :
100 / 15
where 15 is the total meetings and 100 is the total attendings
even if any of th meetings has 0 attendings it takes that meeting into the calculation .. i dont want that to happen.
|
|
|
|
|
Hi All
I need to know how i can to have the all id controls (HTML Controls) in the Page by using javascript
how can help me
thanks for any body help me
Thaer
|
|
|
|
|
The following code will produce an array (ids) containing the IDs for every control on the page that has an id:
function m(a, f)
{
var ret = [];
for (var i=0; i<a.length; ++i)
{
var val = f(a[i]);
if ( val != null )
ret.push(val);
}
return ret;
}
var els = document.getElementsByTagName("*");
var ids = m(els, function(el) { return el.id?el.id:null; });
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- C hris L osinger, Online Poker Players?
|
|
|
|
|
Thanks Mr Shog9
but idon't konw the variabel el what it is doing
pleas give the work for it
thanks mr
Thaer
Thaer
|
|
|
|
|
same code, commented:
function m(a, f)
{
var ret = [];
for (var i=0; i<a.length; ++i)
{
var val = f(a[i]);
if ( val != null )
ret.push(val);
}
return ret;
}
var els = document.getElementsByTagName("*");
var ids = m(els, function(el)
{
return el.id?el.id:null;
});
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- C hris L osinger, Online Poker Players?
|
|
|
|
|
iam very thnks mr Shog9
but your code is note work as my need
the code
var els = document.getElementsByTagName("*");
is return the object
i do the follwing
alert(els)// the retuern of this alert is object
and then replace it with
alert(els.id)//this convert return undefind value what is the problem with this
and then
when calling the function m(a,f)
id do this code
function m(a, f)
{
var ret = [];
alert(a.length)//its return the wrong number of element in my page
for (var i=0; i<a.length; ++i)
="" {
="" var="" val="f(a[i]);
" alert(a[i])="" this="" alert="" return="" undefind="" what="" is="" nr="" shong
="" if="" (="" !="null" )
="" ret.push(val);
="" }
="" ret;
}
and="" the="" code=""
var="" ids="m(els," function(el)=""
="" {=""
alert(el);="" itis=""
="" id="" it="" exists,="" otherwise="" null="" to="" exclude="" element.
="" el.id?el.id:null;
="" });
mr="" shon="" pls="" you="" have="" any="" as="" sampel="" and="" can="" give="" me=""
pls="" send=""
thnks="" your="" hellp=""
<div="" class="ForumSig">Thaer
|
|
|
|
|
Thaer Hamael wrote: i do the follwing
alert(els)// the retuern of this alert is object
and then replace it with
alert(els.id)//this convert return undefind value what is the problem with this
els is an array of elements. Some - but not all - of those elements have id attributes. The array itself is not an element, nor does it have an id attribute.
Thaer Hamael wrote: alert(a.length)//its return the wrong number of element in my page
That's a bold assertion. Do you have an example that demonstrates this? If so, you should send it on to the company responsible for the browser you're testing in, as you've likely found a bug with their implementation of getElementsByTagName() .
Thaer Hamael wrote: alert(a[i])//this alert return undefind
Again, do you have a concrete example of this?
Thaer Hamael wrote: Mr Shon pls if you have any code as sampel and if you can give me it
I did. I've posted it twice now. If it doesn't work for you, then you need to come up with a reason why.
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- C hris L osinger, Online Poker Players?
|
|
|
|
|
Hi,
I'm using AJAX.
I have a textbox and a button inside an updatepanel.
I have textboxtext changed event for the textbox and a click event for the button.
When I input a text inside the textbox without removing the cursor inside it
then click the button, and perform debug, only the textchange event gets executed,
while it doesn't execute code inside click event.
Please help. I can't simply force call click event inside textchange event of my textbox.
Thank you.
Gerri
|
|
|
|
|
CandyMe wrote: I'm using AJAX.
You're using ASP.NET AJAX - so you might get better answers by posting in the ASP.NET forum (no guarantees though...)
CandyMe wrote: I have a textbox and a button inside an updatepanel.
The focus change (and thus, the textchange event) happens before the click, so that's what you'll get first. You might want to re-think your strategy a bit - why would you need a text change event when there's a perfectly good button to let you know when the user's done?
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- C hris L osinger, Online Poker Players?
|
|
|
|
|
It's because I have a customvalidation. I would like to prompt the user of invalid input without having to click the button yet. I have other controls in the form as well.
Thank you.
Gerri
|
|
|
|
|
I have Password and Re-type Password fields.
If the user inputs a password that is less than 6 characters, the user is prompted with a RegExValidator "Minimum of 6 characters."
And if the user inputs a password in Re-Type password that DOESN'T MATCH WITH INVALID PASSWORD, the user is prompted with a CompareValidator "Passwords don't match."
Can I disable the "Passwords don't match" comparevalidator and only prompt it if the user has already ENTERED A VALID PASSWORD in Password field?
Thank you.
-- modified at 9:45 Thursday 25th October, 2007
Gerri
|
|
|
|
|
I'm not sure what is wrong with your current setup. If the user inputs different values in the 2 password input boxes, surely it is correct to notify them that the passwords don't match? This logic still applies if the user enters an invalid password in the first box and a valid password in the second box. The passwords don't match, so it is OK to flag this up.
Paul Marfleet
|
|
|
|
|