Need help to get system information using php - size

is this possible to get screen/monitor size of user,who visited my website???
I am using php as frontend...
Thanks in advance.

you can do it by using javascript:
window.screen.availHeight
window.screen.availWidth

Related

Apache pig: How to use the ignoreBadFiles tag with the load function?

I see there's a tag called ignoreBadFiles for the load function of Apache pig. I am wondering if someone can show me an example how to use it.
Here's the link for the jira tickets:
https://issues.apache.org/jira/browse/PIG-3404
It discusses the use cases for this tag but does not have an example.
For something like:
LOAD '$inpath' USING AvroStorage();
It would be great if someone can show me how to use this tag with the load function. Thanks a lot for your help!
In addition to getting your AvroStorage('ignore_bad_files') working, you may want to look at setting mapreduce.map.failures.maxpercent. This would give similar results by allowing the job continue with certain % of mappers (readers) failing.

Prtg api filter all devices with certain tag

I would like to filter all devices with certain tag. I'm unable to find right API call.
Could you please help me out?
Thank you
The right answer is
/api/table.json?content=sensors&columns=device,senors,tags, status,message&filter_tags=#tag(tagname)

How to use wigle.net API

I have to make a query to the Wigle's API, but I didn't find the API documentation (https://wigle.net/wiki/index.cgi?HomePage).
I have a list of Access Point's SSID and I have to interrogate Wigle in order to know the location of all the SSIDs.
Now I'm able to do this:
http://WiGLE.net/gpsopen/gps/GPSDB/confirmquery?longrange1=12.4952&longrange2=12.5434&latrange1=41.8973&latrange2=41.9136&simple=true
that return all the APs of an area.
If I want to know the location of an SSID without give a bounding box (lat,lon) what kind of query I have to do?
Thank you in advance.
I found this python class https://code.activestate.com/recipes/578637-wigle-wifi-geolocation/ and I solved the problem.
Check out the official WiGLE api at https://api.wigle.net for starters.
There's interactive Swagger documentation at https://api.wigle.net/swagger to help you get started.

yii: serve a file when logged in

I have pdf files in a htaccess-protected directory that I want to show to some users in Yii application.
How is best to solve that? I understand it should be done inside Yii, not with a separate script as it needs to check if a valid user is logged in.
Access control filters
You would do your appropriate security checking (user is in group, or has permission or whatever) and then you would use readfile or something similar.
Do you have code already that isn't working? Or did you just need help with what approach to take?
Thanks!
I got some idea from this link:
http://harrybailey.com/2011/07/yii-rewrite-files-or-images-for-download-or-display/
In short: made a new actionfunction into controller and in that function sending headers and readfile.

Best way to download data from Wordpress website

I want to write an iOS app that must download data from a website using Wordpress as content managment system. What' s the best way to do this? thanks!
What kind of data ?
If this is post, page , comment you should use XML-RPC : http://codex.wordpress.org/XML-RPC_wp
Uhm, one solution is to use the wordpress export function (wp-admin/export.php). It gives to you an XML file that you can parse.
After you are logged into the account, you can issue a simple get. Or, you can download your posts/pages via XML-RPC, as already noted!http://codex.wordpress.org/XML-RPC_wp