Posts

amazon web services - Aws public ip in runing instance -

when ifconfig in ec2 instance private ip. adding sites-available in apache need public ip. is there way can public ip in running instance. there "magic ip" on amazon ec2 instaces can curl metadata instance. to public ip of current instance can do: curl http://169.254.169.254/latest/meta-data/public-ipv4 you can read full documentation here .

jsf 2 - IceFaces Window scope not working properly on some browsers -

i running weird problems when using window scope in icefaces 3.3. when put debug statements on constructor , destroy method (using pre-destroy annotation), seeing same bean being created , destroyed , re-created when single user navigates between pages. checked access logs on tomcat server , shows user using compatible browser ie8 , not opening new tabs other navigating between pages. what lifecycle of window scoped bean. triggers window scope bean destroyed? this behavior not happen consistently on same browsers. happens users using ie8 while not others. of cases bean re-created seem cases user behind kind of proxy. proxy causing such behavior? again users session remains valid i.e. session keep tracks name of user etc., stays same between pages. how can behavior solved. window scope unreliable? yes, it's unreliable , perhaps doesn't serve purpose of window scoping. need implement own custom scope , not icefaces predefined #{window} . class org.icefaces.appl...

How can I clean Eclipse installation? -

how handle old/corrupted plugins in eclipse? what ways clean current installation of eclipse? (juno, kepler) are there 3rd party software that? thanks. you can uninstall plugins have installed. can done using about eclipse -> installation details -> uninstall selected plugins

xml - Amazon API JSON Response -

i using amazon awsecommerceservice api getting info amazon site , use them page/site.i sending rest request , response getting in xml format. there way in response in json format.have googled lot unable find exact solution.rather looking xml json parsers looking inbuilt methods/parameters can give , response accordingly. rest url looks this: http://ecs.amazonaws.com/onca/xml?awsaccesskeyid=akiaid6rve3pnxnosvwa&associatetag=8329-3607-2382&itempage=1&keywords=famous&operation=itemsearch&responsegroup=salesrank&searchindex=books&service=awsecommerceservice&sort=salesrank&timestamp=2014-03-06t06%3a19%3a33z&version=2014-02-10&signature=m8ygf4numuganuuwi44dub80oxdmemugaunkzwemoys%3d. the above url wont work signature expired. getting response format of url when running in application. needs dying implement same last 2 days. there python module called boto3 using response comes in json format. more info see boto3 documnentation ...

− not getting reflected in html -

the minus sign not getting reflected in html file when dynamically pass java file − same when pass − gets decoded in html file. can how make &minus work? try using & '&' , - '-' refer documentation ascii html codes. might work.

c++ - Unhandled exception at std::length_error at memory location 0x002ff5dc -

im new in opencv code #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> #include <fstream> #include <vector> #include <string> #include <complex> #include <cmath> #include <algorithm> #include "wavelet2d.h" #include "opencv/cv.h" #include "opencv/highgui.h" #include "opencv/cxcore.h" using namespace std; using namespace cv; void* maxval(vector<vector<double> > &arr, double &max){ max = 0; (unsigned int =0; < arr.size(); i++) { (unsigned int j =0; j < arr[0].size(); j++) { if (max <= arr[i][j]){ max = arr[i][j]; } } } return 0; } void* maxval1(vector<double> &arr, double &max){ max = 0; (unsigned int =0; < arr.size(); i++) { if (max <= arr[i]){ max = arr[i]; } } return...

android Supporting Multiple Screens Calculation -

i had doubt i put 40px * 40 px images in drawable folder. and put 40px * 40 px images in drawable [hdpi] again . then tabhost set picture [hdpi] exists , not exist size 2 pictures displayed on screen not same , why? they same 40px * 40px why? different folder result in different calculation methods it? ps:[my phone pre-select [hdpi] folder] i think need create drawable folder in res folder , add images in drawable folder. in android there different resolutions screens , every resolution have fix limitation retrieving images on specific folders - hdpi, ldpi ,mdpi etc. when create drawable folder in res if different resolution screens occurred pic image drawable folder.