phpflickr : photos_search doesn't find photos just after upload - phpflickr

I use the phpflickr api for a project and I have a weird problem : when I upload a photo (with sync_upload), and that I use a photo_search just after the upload, the function doesn't find the photo. I I use photo_search 5 to 10 seconds after the upload, it works, like if there was an indexing time in flickr.
I use machine_tags to find the photo, I don't know if it could be the source of the problem.
Someone have an idea to solve the problem ?
Thanks a lot !
Sandrino

After searching and testing, I think my method using photo_search was not the right one.
My purpose was retrieving my photos only and it seems to be more relevant to use the function photos_getInfo with the id of the photo in parameter.
The original question of the delay problem of the photo_search function is not yet resolved, so I will leave this question open for few days in case someone would informations about this problem.
Thank you.

Related

I'm trying to use Data Validation in Google Sheets to only accept a hex color – any help appreciated

I think the title says it all. I have a shared google sheet which I'd like to limit several columns to make sure the information is correctly added as a hexcode.
I've been searching and I just can't seem to find anything, but this code I found for EXCEL may be a starting point:
=AND(LEN(A2)<13,ISERROR(HEX2DEC(A2))=FALSE)
It does not seem to work for Sheets...
try:
=ISNUMBER(HEX2DEC(REGEXEXTRACT(A1, "#(.*)")))*(LEN(A1)<8)

is there a specific way to write xpaths into rapidminer for web crawling

I have tried so many options, over many days to try and extract data. I don't know where I am going wrong.
for example, I am on the website reviewcentre.com and am looking at car selling site reviews.
I am struggling badly to retrieve information, most of my xpaths appear incorrect.
Where can I best learn how to do this properly, I have spent days at this.
https://www.reviewcentre.com/car_dealers/we_buy_any_car_-_wwwwebuyanycarcom-review_14068020
I know how to copy xpaths, but when it comes to rapidminer, I can't extract the data.
I know I am doing it wrong, but I don't know what's right unfortunately.
examples include
//*[#id="ReviewTitle-14068020"]
h:html/h:head/h:title/text()
this one works!
//*[#id="ReviewBox-14068020"]/div[1]/div[2]/p[2]/span
I have no problem it appears retrieving the xpath from the website, but using it for extracting data on rapidminer is not working at all..Would really appreciate if anyone can point me in the right direction.
Obviously, you don't want to use unique IDs in your xpaths.
Make sure you have understood the concept of xml namespaces, too.

Internationalization-packages for Scene-Builder?

I saw the possibility to change the Internationalization of Scene Builder. But I did not find somewhere suitable language packages. May somebody of you have been faced by same kind of intention? For any hints in this matter I would be grateful.
With best regards
Peter
I checked by the way the possibility to change the language of the scene-builder-menu with use of google. The result of my investigation is: It is not possible to be done by a standard kind of user. Sorry, I did not expect this result. Anyway, I learned by. Thank you very much for the time an efforts you spend to bring me onto the right way to get an answer in regard to the question i did publish in before. Thank you.

Rename image to random

I'm working on an image uploader and if a user uploads a image I want to change the image name to something unique.
Imgur also does this for example "11Z6nlI.jpg"
So how can I generate a unique combination? I was thinking of using a timestamp since but that will also causes problems when more users upload at the same second.
I hope you guys can help me, I'm working in PHP
Although sometimes clunky, GUIDs are a good way to generate unique strings. See here for a way to generate GUIDs within PHP.

Temporary image upload script?

Hey guys! i just want to know if you know any free image upload script where you upload your images temporary. I need the image files to be deleted over time.
There is no such a way/method/script. Write a code which delete image files once they are no longer needed.
Automatic?
No way, you can aways use like this simple example:
$id=(int)$_GET['id'];
$sql = "DELETE FROM imagens WHERE img_id=".$id;
$exe=mysql_query($sql, $conect);
if($exe) unlink($_GET['arq']);
mysql_close ($conect);
look, in a effective system, you need moore checks for a secure code :)

Resources