How can I Deny access to all files (and in subdirectories) except index.php and phpinfo.php (in root) and images and documentation (folders)
Using .htacces?
A project that involves image processing, i.e. to calculate the angular shift of the same image when shifted by a medium of certain Refractive Index. We have to build an app that correlates the 2 images (phase/2D correlation?) and then plot using Chaco and Mayavi (2 libraries in Python).
Is there any other existing template software (FOSS) that we can base our app on, or use it as a reference?
Is it possible to request data from an other controller in cakePHP?
For example, i created 2 folders in pages called search and update (both with a index.ctp) and a controller and model in the correct folders.
Both pages are using a different db source, and i wnat to display some data from the search controller into the view of the update page..
Is this possble?
Regards,
Swen
I have compiled sphinx 0.9.9 for debian x64.
When I try to index using unpack_mysqlcompress, I get this error:
"WARNING: failed to unpack column 'page_text', error=-5"
The 'page_text' field is around 5Kb, and unpack_mysqlcompress_maxsize is set to 64M,
yet the zlib manual says error -5 indicates Z_BUF_ERROR.
Also if mysql does the decompression using UNCOMPRESS(), it works fine.
Any ideas why sphinx is generating this error?
I'd like to create a simple webservice in scala similar to:
http://www.artima.com/lejava/articles/threeminutes.html
Is there an easy way to do this?
EDIT: I found a tutorial for lift http://wiki.liftweb.net/index.php/HowTo_do_Web_Services. However this seems to be way too complicated for what I'm looking for.
I have a problem with "pairing" arrays into one (by index). Here is an example:
INPUT:
inputArray = [ [0, 1, 2, 3, 4], [2, 3, 5, 7, 8], [9, 6, 1] ]
OUTPUT:
outputArray = [
[0,2,9],
[1,3,6],
[2,5,1],
[3,7,chooseRandom()],
[4,8,chooseRandom()]]
Questions:
1) How to avoid out of range problem
2) How to write chooseRandom() to choose N neighbour
I'm using python but feel free to share your thoughts in any language.
Hi there!
I have this drupal website that revolves around a document database. By design you can only find these documents by searching the site. But I want all the results to be indexed by Googlebot and other crawlers, so I was thinking, what if I make a page that lists all the documents, and then tell the robots to visit the page to index all my documents..?
Is this possible, or is there a better way to do it?
hi,
I cannot click on the links (tags) on top of the page in IE7.
I tried to change z-index of the elements but it doesn't work.
Could you tell me what's wrong with it ? http://www.sanstitre.ch/drupal/portfolio?tid[0]=38
The mouse click is handled by jQuery function .click()
I'm sure javascript works because" Hide - Alphabetical Order menus" work
thanks
I need to random some elements from an array. I'm doing that by randomizing the index $array[int(rand(100))]. I want some of the elements to appear more often. How do I do it?
I thought of a stupid solution of having those elements duplicated several times in the array, but I'm sure you guys can do better.
I'm looking for a way to rewrite URLs only if the path doesn't exist. This isn't to handle 404s, but to redirect page URLs to a shared PHP file (ie: '/contact-us/' - '/show_page.php?page=contact-us').
The basic redirect is easy enough to achieve, however I want to be able to override the default page by adding '/contact-us/index.php' in the site root.
Is this achievable with mod_rewrite or would I have to do something else?
so I have array like ParamsArray
{a,b,a,a,...b} (so i have 2 kinds of parameters in this array - a and b) (here I have N strings)
and another array - DataArray
{data1,data2,...dataN} (different strings) (here I have N strings)
Now I created 2 new arrays ArrayA and ArrayB and I wanta want to feel arra ArrayA with all data (strings) from DataArray which correspond (by index in array) to a param in ParamsArray. and so strings that correspond to param B should appear in ArrayB.
How to do such thing in actionscript? (Please - I need a code example)
Hi,
So I'm using jquerymobile for an app I'm creating. I have a link that if all the validation passes I'd like to go through, but if something fails I'd like to redirect.
In the jquery something like this. Since it is jquerymobile the link will be a new div on the same index.html page - if that helps.
$(#link).click(function(){
if(validation_fails) link_elsewhere;
else return true;
}
There is a page with drop-down menu "Products" overlapped by next content in IE.
It works fine under Gecko or Webkit browsers.
http://orbitscripts.com/easily-manage-advertising-across-all-of-your-websites.html
z-index property makes no sence.
I have no solutions yet.
Thanx in advance
I have a user control called adminMenu and I use it in my index.aspx and all is fine, but I need to access a MenuItem in adminMenu and need to change NavigateUrl on the MenuItem. Tried this code with no luck:
MenuItem MaintenanceReports = this.adminMenu.FindItem("MaintenanceReports");
Not sure if I should be accessing adminMenu properties from controls code behind, but when I try from controls code behind was not able to access it either, any ideas would be appreciated.
I have such code:
function allValid() {
$('input').each(function(index) {
if(something) {
return false;
}
});
return true;
}
which always returns true as return false; affects anonymous inner function. Is there an easy way to call outer function's return?
I would like to know if what I want to is possible.
First, here is my hardware configuration :
MB : Gigabyte H77-DS3H
Intel Core i5 3330 (3.00GHz)
MSI Nvidia GTX 760
8 Gb RAM 1333 MHz
What I want to do is to have a linux (probably ArchLinux) as a main and unique OS on my computer (I don't want a dualboot). And virtualizing Windows under Linux. I've read about VT-d (supported by my CPU) and PCIBackHide.
I'd like to know if I can initialize Linux with the Integrated Graphics and Virtualize Windows to use the GTX 760.
If I can do it, where do I have to plug my two screens ? On the MainBoard or the GTX 760 ?
How do I achive that idea ?
I am new to iphone development.i want to check whether the image is loaded in the image view and if the image view is nil then load the image.i want to implement this in cell for row at index path so that i can increase the scrolling performance of the table , How can i do that ? please help me out.Thanks.
http://ratingscorner.com/product_rating.php?alias=Peoples-Education-Society-Institute-of-Technology-%28PESIT%29-100-feet-Ring-Road-Bangalore&product=Colleges
in IE the slideshow which is there is not showing up at all. i have no clue about this. any help on this.
I found out the problem. The Z-index is causing problem. but how do i solve the issue is not clear to me.
Possible Duplicate:
Prevent mail being marked as spam
I have an Ubuntu server that I want to be able to send out several thousand emails each containing a generic header and an unique pdf attachment containing an invoice. What I want to know is what would be the best way to accomplish this? Also, are there any other programs I need to install such as anti-virus / verification tools? I would like to be able to know what the procedures for this normally are as I would prefer that the emails are not send to the junk folder of the clients receiving the emails.
Any tips would be appreciated.
Thanks
How can i acces an Array Element in Smarty with a second variable as index?
Imagine i have an array of language
[99] = Array
(
[language] = English
)
I tryed this :
$memberLanguage.id is 99
so logicaly you would acces it this way
{$language.$memberLanguage.id.language} but this doesnt work.
in PHP i would do it this way
$language[$memberLanguage['id']]['language']
How can i access the Array Element Dynamicaly?
Hello pros out there,
I have this problem with background in IE PC, all other browsers including Mac Safari work excellent.... please help...i almost get fired...
link is:
http://www.imageoneads.com/missiongallery/index.htm
Thanks so much
tran006
I want to be able to edit and delete resources myself, but not allow users of the application to do so.
Is there an easy way of doing this in Rails?
An incomplete solution would be just to remove the "delete" and "edit" buttons from the index view, but that doesn't disable their ability to do so via direct HTTP requests.
Running Rails 2.2.2 and ruby 1.8.7
I'm looking for a way to define and send a JSON object array. I've figured out how to define a single JSON object, turn it into a string and send it, but what about an array of this type? Probably something simple I'm overlooking...
var myColumnSetting = { "ColumnName": name,
"ColumnIndex": index
}
convert it to a string
var myJSONText = JSON.stringify(myColumnSetting, false);
Let's assume you have a big complex index page, that shows news articles and stuff. It's not going to change very often. Can you cache it somehow on the serverside, so requests don't force to server to dynamically generate the entire page every time someone visits it? Or does ASP.NET do this automatically?
If so, how does it know if something has changed?