FlashChartHelper for OpenFlashChart2 in CakePHP: blank charts - linux

So I have recently started playing with Ubuntu, PHP, and CakePHP and have been pretty happy with the LAMP stack. Except now I'm trying to build a simple web page that can display collected data in a graph. Apparently OpenFlashChart2 with the FlashChartHelper plugin is pretty good, but I cannot get it to actually display a graph. I got the "hello world" sample described in the OpenFlashChart2 documentation to work, but when I try the FlashChartHelper samples I just get a blank spot where my graph is supposed to be. There is no error message, just... nothing. I verified that all the files are installed as listed on the page, and I made sure to define $helpers in my controller
var $helpers = array('Html', 'Form', 'Flash','FlashChart');
Could it be a pathing issue? My webroot is /var/www/, but I unzipped cake into /var/www/www2/ . The rest of my site, including entering data, works just fine.
Has anyone else seen this before? What did you do to resolve the issue? Failing that, can you recommend another graphing library? Specifically, I need to render a scatter graph. I have a collection of data points that are collected at irregular intervals. Either suggestions on fixing FlashChartHelper or another library would be appreciated

I would perhaps take a look at this resource:
[http://www.littlehart.net/atthekeyboard/2006/09/26/tutorial-integrating-phpswf-charts-with-cakephp/][1]
It seems to have everything you need?

Related

Why won't Azure OCR code loop through media?

I'm trying to get a project going where I can extract text from JPGs, PNGs, and PDFs. I found this article where someone made something similar
I tried following this person's guide and tried tying it to my Azure instance, but when I run the code (basically copied exactly what he did), I get an error of KeyError: 'regions'
Any idea what the issue may be? I have the error screenshot below, as well as the code (with my API key and endpoint removed.
So turns out I was just using the wrong end point in the code. I was copying what was given to me in Azure and not what the guy had in his video. Ooops

adding search capability to my map

Can someone please explain to me how I can get the search functionality from this:
https://developers.google.com/maps/articles/phpsqlsearch_v3
to work with your map when you have followed this tutorial:
https://developers.google.com/maps/articles/phpsqlajax_v3
I've basically done both tutorials, just learning and I can make them work flawlessly seperately, however i want to port across the searching options from the first tutorial when having a map created via the first one.
I have the following:
sql database with all my info
XML output working perfectly
all markers working nicely with custom icons from the sql xml output
searchbox + all textbox/buttons in place.
Now i just need to make it work lol, no code in place for it at the moment. I just want it to search and display certain locations within a certain radisu
Any help is greatly appreciated, thanks alot :)

View. Show values as Links. Strange behaviour

Xpage (listPostits.xsp) has a "View" container control, where one of the column is set "show values in this column as links".
Now, here comes "Strange behaviour".
When i work with this application on my own (developer) PC (Win XP, Chrome or IE), the Domino generate the link, which can't be really processed:
/servername/db/postit/postit.nsf/listPostits.xsp/onePostit.xsp?documentId=many_numbers&action=editDocument
Namely, the Bold-marked portion shouldn't be there ! This portion is the name of the XPage, where the View control is in.
When i work with the application from other PC (Mac, Firefox) then i get the correct link (the same as above but without the XPage name inbetween):
/servername/db/postit/postit.nsf/onePostit.xsp?documentId=many_numbers&action=editDocument
update: let us leave for the moment the differencies in generated links between two machines. The first question is - why the extra portion is inserted into automatically generated link?
After playing around i think i might have found the reason for this strange behaviour. Namely, the "Substitution" Rules on the server side. One of them is to substitute "*/postit/all" with "/db/postit/postit.nsf/listPostits.xsp"
If i switch it off, then the Links are generated properly. Still, it's pretty strange to me that these settings influence the way Domino generates the links. I thought it works on the fly with them and those settings have nothing to do with the way how Links are generated inside the application.
So, the help now is needed regarding Web Site Rule Topic, but for that, i guess, i have to create another topic. But in case somebody has some good Info on this, please share it with me. I'm a bit confused at the moment :)
Final Update: Spent some more hours of testing and the results confirmed the initial idea.
If i open the page with the standart URL, i.e.
http://servername/db/postit/postit.nsf/listPostits.xsp then everything is fine, links are generated properly. When i however open the same page with short URL http://servername/postit/all , then server adds the substitute URL (db/postit/postit.nsf/listPostits.xsp) to every single link he generates automatically to be used as the link to open/edit the underlying document.
Is it bug or feature ? Don't know.
As a workaround (because i want to keep simple URL's for the application) i have to manually generate links.

Mono4Android Can't Find axml Resource

I'm trying to do the very basic tutorial on setting up multiple views on the Mono4Android Documentation.
I've had this error for about 3 hours now, and can't seem to figure it out.
I've looked through all the build settings ect but nothing...
Mono keeps coming up with the error : ".Resource.Layout Does not contain a definition for 'Second'"
I have even copied an pasted the whole tutorial, and yet I'm still idle from this pathetic error.
I can dam right tell Mono that there is a definition of Second in the layout resource Folder!
Why doesn't anything want to play ball?
Make sure the build action on the file is set to AndroidResource.

Mediawiki / Excel: Hyperlink from Excel to a non-existant wiki page gives a 404 - how can I fix or work around this?

I suspect this could be something faulty with Excel (although I keep an open mind), but I wondered if anyone knew how I could get around this apparent bug:
I wish to create Excel spreadsheets which link to pages in a local wiki (running MW 1.14.0, full details below) where those pages don't yet all exist.
The idea is that over time we will fill in details of the pages, but we would like to create the links now (because copies of the Excel files will get sent out to various internal users and it will not be feasible to go track them down and add links later once the pages are created)
The problem is that when I create such a hyperlink in Excel and then go to follow the hyperlink, I get a message back indicating that the page does not exist. The full text of the message is:
"Unable to open http://. The Internet site reports that the item you requested could not be found. (HTTP/1.0 404)"
This happens on our site or in fact if you link to a non-existant page on wikipedia (e.g. http://en.wikipedia/wiki/Swed53rf). Whereas if you put such a link into a browser you get the correct response (which is to be taken to a page indicating that there is no such page but that you can create it by following the usual link)
Is there some setting on Apache that I might need to configure / override to make sure it returns a valid server response to Excel?
Creating links to existing pages works fine. I appreciate that in theory we could go around creating all the pages that are required, but some of the people involved in the project (creating the initial Excel files) do not / cannot use our wiki and it would be better if this just worked as it would appear it should rather than having to try to add steps to work around it in this way.
I also wondered if it were anything to do with the short URL reformatting. Our wiki, like wikipedia has short URLs, eg:
http://server/w/index.php?title=User:Joe_Blogs/Sandbox
can be reached from
http://server/wiki/User:Joe_Blogs/Sandbox
but including hyperlinks to the full name versions of the pages does not resolve the issue.
The version of Excel being used is Excel 2003 (SP3)
I have discovered that this also happens with Word 2003 (I imagine they are using the same code). However the desired behaviour occurs with Lotus Notes (a miracle, as it's rubbish in so many other ways! )
I have not done any significant development on Apache, but I could consider some form of custom page that re-directs to the non-existent wiki page if Mediawiki changes were deemed to complex/tricky. (although I'm not particularly sure where I'd start with this idea, I'm guessing some sort of URL parameter to accept the destination pagename might be a possible approach)
Any helpful suggestions gratefully received!!
[FYI: I have posted a question on MWUsers forum (www.mwusers.com) too after Googling this to no avail! I'll update the forum response there if I get an answer here or vice versa]
Many thanks,
Neil
Running on Ubuntu Server 8.10
Product Version:
MediaWiki 1.14.0
PHP 5.2.4-2ubuntu5.6 (apache2handler)
MySQL 5.0.51a-3ubuntu5.4
Installed extensions:
CategoryTree (Version r44056)
Renameuser
CategoryTree (Version r44056)
ImageMap (Version r35980)
ParserFunctions (Version 1.1.1)
StringFunctions (Version 2.0.2)
Not sure how to get Excel to let you go to a page which turns out to be a 404, but as a temporary workaround, you can hack out MediaWiki's 404 reporting on missing pages...
In MediaWiki 1.14 or 1.15 releases this will be in Article::view() in includes/Article.php:
if( $return404 ) {
$wgRequest->response()->header( "HTTP/1.x 404 Not Found" );
}
Note that the latest dev code is a little different, but you can find it where it sends the same header in the same file. :)
Wikipedia returns a 404 with a redirect which gets you to the page you want; my guess would be that Excel's rendering engine is not following the redirect.
You could try capturing the conversation in Wireshark, both with a browser and with Excel. That might show you what's happening differently.
Surely once you roll out the new pages, the links would start working, though?

Resources