I know this is not a programming question, but I couldn't think of where else to ask. Does google or anybody else have a feature to let you see the list of sites pointing to a given link?
Hi, I've got two scripts: 1.php and 1.php. Here they are:
1.php
<?php
header('Pragma: no-cache');
header('Cache-Control: max-age=1; no-cache');
header('Expires: Tue, 1 May 1985 01:10:00 GMT');
header('ETag: "'.md5(rand(1, 1000)).'"');
print date('H:i:s');
?>
<a href="2.php">pay</a>
2.php
<a href="javascript:history.back()">back</a>
Visitor lands on 1.php and then goes to 2.php. I want browser to re-request 1.php after vistor's click on "back" link. On current state it doesn't work. How it can be managed?
I want to implement a code that loops inside an array that its size is set by the user that means that the size isn't constant.
for example:
A=[1,2,3,4,5]
then I want the output to be like this:
[1],[2],[3],[4],[5]
[1,2],[1,3],[1,4],[1,5]
[2,3],[2,4],[2,5]
[3,4],[3,5]
[4,5]
[1,2,3],[1,2,4],[1,2,5]
[1,3,4],[1,3,5]
and so on
[1,2,3,4],[1,2,3,5]
[2,3,4,5]
[1,2,3,4,5]
Can you help me implement this code?
I've been struggling this for a while and I simply can't figure this out. Here is my code:
<?php
foreach($list as $id =>$name) {
echo("<td style=\"vertical-align:middle;\">
<a href=\"item=$id#confirm\" role=\"button\" data-toggle=\"modal\">
Buy</a></td></tr>");
}?>
<html>
<div class="modal small hide fade" id="confirm" tabindex="-1"
role="dialog" aria- labelledby="myModalLabel" aria-hidden="true">
<a href="redeem.php?item=<?php echo $id; ?>"><button class="btn btn-danger">
Buy</button></a></div>
The main issue here is that the $id from the foreeach is not the same as the $id in the div class link. Instead the link is the end value of the foreach list.
Hi,
I'm using joomla and acesef as a plugin and I need to get the full querystring as is. The problem is when I use $_SERVEr['QUERY_STRING'] it contains the joomla QS isntead of my custom parameters.
A javascript or PHP solution would do. thanks
We have a images folder which has about a million images in it.
We need to write a program which would fetch the image based upon a keyword that is entered by the user.
We need to match the file names while searching to find the right image.
Looking for any suggestions.
Thanks
N
I'm trying to log URLs that access broken images, using an HTTP module to catch those images when accessed.
How do you retrieve the URL where that image sits on? is there a way to do it the other way round too? That is, loop through images served in a URL and decide which ones are broken.
This is all in ASP.NET with C#.
I have searched high and low for this but whatever i do this simply does not seem to work. I have a google chrome extension which send an XHR request using a background.js file. Now my requirement is that i need to show a small loading icon while the xhr request is proceeding. Are there any tutorials out there which explains how to do this. I have tried an iframe but it looks ugly when it expands as the entire popup.html expands. Is jquery my only option here because that would mean adding a lot of size to my current project just for a simple animation.
I have this simple form:
<form method="post" action".">
<input type="text" name="title">
<input type="submit" name"send">
</form>
I want that when a user click on submit, then will be open another window of browser with the results. Is it possible ?
I would like to only work with UTF8. The problem is I don't know the charset of every webpage. How can I detect it and convert to UTF8?
<?php
$url = "http://vkontakte.ru";
$ch = curl_init($url);
$options = array(
CURLOPT_RETURNTRANSFER => true,
);
curl_setopt_array($ch, $options);
$data = curl_exec($ch);
// $data = magic($data);
print $data;
See this at: http://paulisageek.com/tmp/curl-utf8
What is magic()?
I am implementing a FakeDataSet class by implementing IDbSet interface. As part of implementing this interface, I have to implement Find method. All my entity classes has an Guid type Id column. I am trying to implement Find method for this FakeDbSet class but having hard time to write it in a generic way. Below is my attempts for writing this method but since it does not know about Id been Guid type, I am getting compilation error on m.Id call. Any ideas on how this could be accomplished?
public class FakeDataSet<T> : IDbSet<T> where T: class, new()
{
// Other methods for implementing IDbSet interface
public T Find(params object[] keyValues)
{
var keyValue = (Guid)keyValues.FirstOrDefault();
return this.SingleOrDefault(m => m.Id == keyValue); // How can I write this
}
}
Howdy, folks!
First time here -- thought I'd field a question on behalf of a coworker.
Somebody in my lab is doing a content analysis (e.g. reading an article or transcript line by line and identifying relevant themes) of the web presences of various privatized neuroimaging centers (e.g. http://www.canmagnetic.com/). She's been c/ping entire site maps by hand, and I know I could slap something together with Python to follow links and dump full text (with line numbers) for her, but I've never actually done anything quite like this. Any ideas for how I'd get started?
Cheers,
-alex
I want to create a url like www.facebook.com/username just like Facebook does it. Can we use mod_rewrite to do it. Username is name of the user in a table. It is not a sub directory. Please advise.
public static IQueryable<Institution> WithFunds(this IQueryable<Institution> query, IEnumerable<Fund> allowedFunds)
{
return query.
}
I want to get the query to return all Institutions having any of the Fund given in 'allowedFunds' list in Institution.Funds. Please help.
My class hierarchy goes like this.
public partial class Institution
{
public int Id { get; set; }
public virtual ICollection<Fund> Funds { get; set; }
}
public partial class Fund
{
public int Id { get; set; }
public virtual Institution Institution { get; set; }
}
I have a shared site in sharepoint and have some RSS feed webpart in it so now everytime my site opens up it shows this popup.
I know I can remove the popup by going to IE options and stuff but my question is if there is any way that i can remove it permanently because I can't tell my users to follow this process but I have lot of complaints because of this popup.
Any suggestions?
I have a largish array of string that I want to use as a lookup.
I a using in_array(), but I suspect its doing a simple loop through - does anyone know whether the in_array() algo uses a bsearch algo?
hello members i have 1 site : http://www.magentocommerceexperts.com/ it is not showing cache in google toolabr also i am not getiing result properly also other pages has been cached and it showing and the site genrated in wordpress so will u show me whats a problem. all seo stuff done completd and i am facing problem since 2 months
hi there.
I'm trying to fill-out a form automatically and press a button on that form and wait for a response. How do I go about doing this?
To be more particular, I have a a --HUGE-- collection DNA strains which I need to compare to each-other. Luckily, there's a website that does exactly what I need.
Basically, I type-in 2 different sequences of DNA and click the "Align Sequences" button and get a result (the calculation of the score is not relevant).
Is there a way to make a Java program that will automatically insert the input, "click" the button and read the response from this website?
Thanks!
Currently I sell a program, that accesses my webpage. The program is HWID (Hard Ware ID) locked, and the only reason I use the program to access the webpage instead of direct access via a webbrowser, is so that I can use HWID authentication.
However, I've just been told I can code a script to get computer information, such as hardware ID etc.
Is this actually possible completely server-side? If so, can I do it with PHP? If not, what language would this be, and what functions would I have to look into for this?
Thanks for any help
I have a web application, and the submit uses the PostBackUrl to display data if the form is valid.
I need to use different (server side) validation groups, depending on what radiobutton is selected. That is, manually call
Page.Validate('ValidationGroupA').
The validation itself is working fine, in terms of Page.IsValid correctly assigned true or false.
however, if the page is not valid, the page redirects to the page specified by PostBackUrl on the submit button, where the page is found not to be valid, and the client redirected back with:
if (!PreviousPage.IsValid){Response.Redirect("DataEntryPage.aspx");})
However, by getting to here and back again, all form data is lost, and the relevant validation controls and summaries are not displayed.
is there an equivalent of javascripts evt.preventDefault() or some other way, once it is detected validation has failed after a manual call to Page.Validate to post the form back with appropriate validation errors displayed? Thank you.
Hi,
i have two models:
class Category
has many :jobs
end
class Job
belongs_to :category
end
So for sure i'm able to do
c = Category.first
c.jobs
My question is: how can i find just categories that has at least one job?
I have the web service and generated class for it. I can use this generated class in windows application as it described in Help. The question is: how can I use this generated class in the web project? (the analogous actions - creating object and use its functions -, as it was in windows app, are not worked)