Incorrect address on geocoding - geocoding

When converting Swedish addresses using here geocoding I get poor results. For example sending "Uppsala universitet", the oldest university in Sweden and well known throughout the world, into the engine it returns an address in Russia and not Sweden.. we have not seen this problem using Google geocoding. Please follow up with recommendations such as best practices.
Thanks
This is the request:
Request: https://geocode.search.hereapi.com/v1/geocode?q=Uppsala%2Buniversitet&apiKey=eee
Array
(
[items] => Array
(
[0] => Array
(
[title] => Университет СНТ, Кировский район, Северо-Западный федеральный округ, Россия
[id] => here:cm:namedplace:27706428
[resultType] => locality
[localityType] => district
[address] => Array
(
[label] => Университет СНТ, Кировский район, Северо-Западный федеральный округ, Россия
[countryCode] => RUS
[countryName] => Россия
[state] => Северо-Западный федеральный округ
[county] => Ленинградская область
[city] => Кировский район
[district] => Университет СНТ
[postalCode] => 187300
)
[position] => Array
(
[lat] => 59.76567
[lng] => 31.13737
)
[mapView] => Array
(
[west] => 31.13587
[south] => 59.76438
[east] => 31.13924
[north] => 59.76792
)
[scoring] => Array
(
[queryScore] => 0.61
[fieldScore] => Array
(
[district] => 0.79
)
)
)
[1] => Array
(
[title] => Университет СНТ, Калининский район, Центральный федеральный округ, Россия
[id] => here:cm:namedplace:26899860
[resultType] => locality
[localityType] => district
[address] => Array
(
[label] => Университет СНТ, Калининский район, Центральный федеральный округ, Россия
[countryCode] => RUS
[countryName] => Россия
[state] => Центральный федеральный округ
[county] => Тверская область
[city] => Калининский район
[district] => Университет СНТ
)
[position] => Array
(
[lat] => 56.88779
[lng] => 35.99222
)
[mapView] => Array
(
[west] => 35.98932
[south] => 56.8874
[east] => 35.996
[north] => 56.89119
)
[scoring] => Array
(
[queryScore] => 0.61
[fieldScore] => Array
(
[district] => 0.79
)
)
)
[2] => Array
(
[title] => Университет СНТ, Тосненский район, Северо-Западный федеральный округ, Россия
[id] => here:cm:namedplace:27706271
[resultType] => locality
[localityType] => district
[address] => Array
(
[label] => Университет СНТ, Тосненский район, Северо-Западный федеральный округ, Россия
[countryCode] => RUS
[countryName] => Россия
[state] => Северо-Западный федеральный округ
[county] => Ленинградская область
[city] => Тосненский район
[district] => Университет СНТ
[postalCode] => 187070
)
[position] => Array
(
[lat] => 59.19322
[lng] => 31.44631
)
[mapView] => Array
(
[west] => 31.43226
[south] => 59.19163
[east] => 31.45757
[north] => 59.19642
)
[scoring] => Array
(
[queryScore] => 0.61
[fieldScore] => Array
(
[district] => 0.79
)
)
)
[3] => Array
(
[title] => Университет-1 СНТ, Екатеринбург, Уральский федеральный округ, Россия
[id] => here:cm:namedplace:28294892
[resultType] => locality
[localityType] => district
[address] => Array
(
[label] => Университет-1 СНТ, Екатеринбург, Уральский федеральный округ, Россия
[countryCode] => RUS
[countryName] => Россия
[state] => Уральский федеральный округ
[county] => Свердловская область
[city] => Екатеринбург
[district] => Университет-1 СНТ
[postalCode] => 620000
)
[position] => Array
(
[lat] => 56.82014
[lng] => 60.4917
)
[mapView] => Array
(
[west] => 60.48843
[south] => 56.81566
[east] => 60.49345
[north] => 56.82024
)
[scoring] => Array
(
[queryScore] => 0.61
[fieldScore] => Array
(
[district] => 0.73
)
)
)
[4] => Array
(
[title] => Университет-2 СНТ, Элиста, Южный федеральный округ, Россия
[id] => here:cm:namedplace:26973643
[resultType] => locality
[localityType] => district
[address] => Array
(
[label] => Университет-2 СНТ, Элиста, Южный федеральный округ, Россия
[countryCode] => RUS
[countryName] => Россия
[state] => Южный федеральный округ
[county] => Республика Калмыкия
[city] => Элиста
[district] => Университет-2 СНТ
)
[position] => Array
(
[lat] => 46.32128
[lng] => 44.16565
)
[mapView] => Array
(
[west] => 44.15992
[south] => 46.32018
[east] => 44.17171
[north] => 46.32328
)
[scoring] => Array
(
[queryScore] => 0.61
[fieldScore] => Array
(
[district] => 0.73
)
)
)
[5] => Array
(
[title] => Uppsala, Uppsala län, Sverige
[id] => here:cm:namedplace:20298642
[resultType] => locality
[localityType] => city
[address] => Array
(
[label] => Uppsala, Uppsala län, Sverige
[countryCode] => SWE
[countryName] => Sverige
[state] => Uppsala län
[county] => Uppsala
[city] => Uppsala
[postalCode] => SE-753 41
)
[position] => Array
(
[lat] => 59.85862
[lng] => 17.64373
)
[mapView] => Array
(
[west] => 17.07893
[south] => 59.73083
[east] => 18.47498
[north] => 60.18991
)
[scoring] => Array
(
[queryScore] => 0.39
[fieldScore] => Array
(
[city] => 1
)
)
)
)
)

Related

find a pattern and replace it with same pattern on a new line

Have this:
Array ( [0] => Tiger [first_name] => Tiger [1] => Nixon [last_name] => Nixon [2] => Accountant [position] => Accountant [3] => Tokyo [office] => Tokyo [4] => 2016-11-08 [start_date] => 2016-11-08 [5] => 320800 [salary] => 320800 ) Array ( [0] => Garrett [first_name] => Garrett [1] => Winters [last_name] => Winters [2] => Accountant2 [position] => Accountant2 [3] => Tokyo [office] => Tokyo [4] => 2016-11-08 [start_date] => 2016-11-08 [5] => 170750 [salary] => 170750 ) Array ( [0] => Ashton [first_name] => Ashton [1] => Cox [last_name] => Cox [2] => Accountant3 [position] => Accountant3 [3] => Tokyo [office] => Tokyo [4] => 2016-11-08 [start_date] => 2016-11-08 [5] => 86000 [salary] => 86000 ) Array ( [0] => Cedric [first_name] => Cedric [1] => Kelly [last_name] => Kelly [2] => Accountant4 [position] => Accountant4 [3] => Tokyo [office] => Tokyo [4] => 2016-11-08 [start_date] => 2016-11-08 [5] => 433060 [salary] => 433060 )
Want it to look like this:
Array (
[0] => Tiger [first_name] => Tiger
[1] => Nixon [last_name] => Nixon
[2] => Accountant [position] => Accountant
[3] => Tokyo [office] =>
...
In notepad++ usng regex
Find this:
\[(\d)\]
And replace with this
\n\[$1\]
\[(\d)\] - this finds this pattern [0] or [1] ...
(\d) - this captures the value inside the squar brackets: 0 or 1 ...
\n\[$1\] - this puts a new line before the open square bracket, $1 is what was captured in the brackets () in the find above and replaced here, and then finished with a ] square bracket.
NOTE note the \ escaping on the square brackets e.g. \[
The other answer plus:
Find What: " Array"
Replace With: "\nArray"
To also have each of your Array on new line.

OMNET++ 5.0 and Qt

I am writing a simple Qt5 application inside OMNET++ environment. I linked the program with Qt5Widgets, Qt5Gui, Qt5Core and pthread. The code is compiled and built successfully but I can not run it using opp_run. I am creating a shared library libVENTOS.so from my project and ldd output shows that all shared libraries are available on my machine. So I guess opp_run can not load some of the Qt5 libraries. How can I solve this problem ?
$ ldd ./libVENTOS.so
linux-vdso.so.1 => (0x00007ffc968ad000)
libboost_system.so.1.54.0 => /usr/lib/x86_64-linux-gnu/libboost_system.so.1.54.0 (0x00007f2580f48000)
libboost_filesystem.so.1.54.0 => /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.54.0 (0x00007f2580d32000)
libboost_serialization.so.1.54.0 => /usr/lib/x86_64-linux-gnu/libboost_serialization.so.1.54.0 (0x00007f2580ac7000)
libpcap.so.0.8 => /usr/lib/x86_64-linux-gnu/libpcap.so.0.8 (0x00007f2580889000)
libusb-1.0.so.0 => /usr/local/lib/libusb-1.0.so.0 (0x00007f2580671000)
libbluetooth.so.3 => /usr/lib/x86_64-linux-gnu/libbluetooth.so.3 (0x00007f258044f000)
libsnmp++.so.33 => /usr/local/lib/libsnmp++.so.33 (0x00007f25801e1000)
libcurl-gnutls.so.4 => /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4 (0x00007f257ff7f000)
libshark_debug.so.0 => /usr/local/lib/libshark_debug.so.0 (0x00007f257f42e000)
liblapack_atlas.so.3 => /usr/lib/liblapack_atlas.so.3 (0x00007f257f1d4000)
libssh.so.4 => /usr/lib/x86_64-linux-gnu/libssh.so.4 (0x00007f257ef8e000)
libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007f257e765000)
libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f257e118000)
libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f257da72000)
liboppenvird.so => /home/mani/Desktop/omnetpp-5.0/lib/liboppenvird.so (0x00007f257d6e6000)
liboppsimd.so => /home/mani/Desktop/omnetpp-5.0/lib/liboppsimd.so (0x00007f257d0d5000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f257ced1000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f257cbcd000)
libosg.so.99 => /usr/lib/libosg.so.99 (0x00007f257c6fd000)
libosgGA.so.99 => /usr/lib/libosgGA.so.99 (0x00007f257c483000)
libosgViewer.so.99 => /usr/lib/libosgViewer.so.99 (0x00007f257c1b1000)
libosgQt.so.99 => /usr/lib/libosgQt.so.99 (0x00007f257bf91000)
libOpenThreads.so.14 => /usr/lib/libOpenThreads.so.14 (0x00007f257bd89000)
libosgEarth.so.2 => /usr/lib/libosgEarth.so.2 (0x00007f257b956000)
libosgEarthUtil.so.2 => /usr/lib/libosgEarthUtil.so.2 (0x00007f257b53d000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f257b237000)
libgomp.so.1 => /usr/lib/x86_64-linux-gnu/libgomp.so.1 (0x00007f257b028000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f257ae12000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f257abf4000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f257a82f000)
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007f257a61e000)
libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f257a242000)
libidn.so.11 => /usr/lib/x86_64-linux-gnu/libidn.so.11 (0x00007f257a00f000)
librtmp.so.0 => /usr/lib/x86_64-linux-gnu/librtmp.so.0 (0x00007f2579df5000)
libgcrypt.so.11 => /lib/x86_64-linux-gnu/libgcrypt.so.11 (0x00007f2579b75000)
libgnutls.so.26 => /usr/lib/x86_64-linux-gnu/libgnutls.so.26 (0x00007f25798b7000)
libgssapi_krb5.so.2 => /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f2579670000)
liblber-2.4.so.2 => /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2 (0x00007f2579461000)
libldap_r-2.4.so.2 => /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2 (0x00007f2579210000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f2578ff7000)
liblapack.so.3 => /usr/lib/liblapack.so.3 (0x00007f257885b000)
libcblas.so.3 => /usr/lib/libcblas.so.3 (0x00007f257863a000)
libf77blas.so.3 => /usr/lib/libf77blas.so.3 (0x00007f257841a000)
libatlas.so.3 => /usr/lib/libatlas.so.3 (0x00007f2577e87000)
libgfortran.so.3 => /usr/lib/x86_64-linux-gnu/libgfortran.so.3 (0x00007f2577b6d000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f2577965000)
/lib64/ld-linux-x86-64.so.2 (0x00007f2581df3000)
libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f2577714000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f257740c000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f25770d7000)
libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f2576eb1000)
libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f2576c5c000)
libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007f25769f6000)
libicui18n.so.52 => /usr/lib/x86_64-linux-gnu/libicui18n.so.52 (0x00007f25765ef000)
libicuuc.so.52 => /usr/lib/x86_64-linux-gnu/libicuuc.so.52 (0x00007f2576276000)
liboppnedxmld.so => /home/mani/Desktop/omnetpp-5.0/lib/liboppnedxmld.so (0x00007f2575f12000)
liboppcommond.so => /home/mani/Desktop/omnetpp-5.0/lib/liboppcommond.so (0x00007f2575c7e000)
libmpi_cxx.so.1 => /usr/lib/libmpi_cxx.so.1 (0x00007f2575a64000)
libmpi.so.1 => /usr/lib/libmpi.so.1 (0x00007f25756e3000)
libosgDB.so.99 => /usr/lib/libosgDB.so.99 (0x00007f25753e6000)
libosgUtil.so.99 => /usr/lib/libosgUtil.so.99 (0x00007f2575023000)
libosgText.so.99 => /usr/lib/libosgText.so.99 (0x00007f2574dca000)
libQtCore.so.4 => /usr/lib/x86_64-linux-gnu/libQtCore.so.4 (0x00007f25748e5000)
libQtGui.so.4 => /usr/lib/x86_64-linux-gnu/libQtGui.so.4 (0x00007f2573c32000)
libQtOpenGL.so.4 => /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4 (0x00007f2573934000)
libosgTerrain.so.99 => /usr/lib/libosgTerrain.so.99 (0x00007f25736fc000)
libosgShadow.so.99 => /usr/lib/libosgShadow.so.99 (0x00007f2573466000)
libgdal.so.1 => /usr/lib/libgdal.so.1 (0x00007f257270f000)
libosgManipulator.so.99 => /usr/lib/libosgManipulator.so.99 (0x00007f25724c9000)
libosgEarthFeatures.so.2 => /usr/lib/libosgEarthFeatures.so.2 (0x00007f2572212000)
libosgEarthSymbology.so.2 => /usr/lib/libosgEarthSymbology.so.2 (0x00007f2571f5f000)
libosgEarthAnnotation.so.2 => /usr/lib/libosgEarthAnnotation.so.2 (0x00007f2571cc6000)
libosgSim.so.99 => /usr/lib/libosgSim.so.99 (0x00007f2571a31000)
libcgmanager.so.0 => /lib/x86_64-linux-gnu/libcgmanager.so.0 (0x00007f2571816000)
libnih.so.1 => /lib/x86_64-linux-gnu/libnih.so.1 (0x00007f25715fe000)
libnih-dbus.so.1 => /lib/x86_64-linux-gnu/libnih-dbus.so.1 (0x00007f25713f4000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f25711af000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f2570faa000)
libtasn1.so.6 => /usr/lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f2570d96000)
libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f2570b54000)
libkrb5.so.3 => /usr/lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f2570889000)
libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f257065a000)
libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f2570456000)
libkrb5support.so.0 => /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f257024b000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f2570030000)
libsasl2.so.2 => /usr/lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007f256fe15000)
libgssapi.so.3 => /usr/lib/x86_64-linux-gnu/libgssapi.so.3 (0x00007f256fbd7000)
libblas.so.3 => /usr/lib/libblas.so.3 (0x00007f256f60b000)
libquadmath.so.0 => /usr/lib/x86_64-linux-gnu/libquadmath.so.0 (0x00007f256f3cf000)
libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f256f1c7000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f256ef89000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f256ed6a000)
libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f256eac7000)
libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f256e8a1000)
libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007f256e67a000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f256e468000)
libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f256e265000)
libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f256e05f000)
libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f256de5d000)
libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f256dc46000)
libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f256da41000)
libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007f256d83e000)
libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007f256d63b000)
libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f256d435000)
libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007f256d233000)
libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f256d02d000)
libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f256ce20000)
libicudata.so.52 => /usr/lib/x86_64-linux-gnu/libicudata.so.52 (0x00007f256b5b3000)
libxml2.so.2 => /usr/lib/x86_64-linux-gnu/libxml2.so.2 (0x00007f256b24c000)
libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f256b049000)
libhwloc.so.5 => /usr/lib/x86_64-linux-gnu/libhwloc.so.5 (0x00007f256ae09000)
libltdl.so.7 => /usr/lib/x86_64-linux-gnu/libltdl.so.7 (0x00007f256abff000)
libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f256a9c3000)
libaudio.so.2 => /usr/lib/x86_64-linux-gnu/libaudio.so.2 (0x00007f256a7ab000)
libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007f256a5a3000)
libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007f256a387000)
libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007f256a177000)
libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f2569f6d000)
libarmadillo.so.4 => /usr/lib/libarmadillo.so.4 (0x00007f2569d66000)
libproj.so.0 => /usr/lib/libproj.so.0 (0x00007f2569b14000)
libpoppler.so.44 => /usr/lib/x86_64-linux-gnu/libpoppler.so.44 (0x00007f25696b8000)
libfreexl.so.1 => /usr/lib/x86_64-linux-gnu/libfreexl.so.1 (0x00007f25694ae000)
libgeos_c.so.1 => /usr/lib/libgeos_c.so.1 (0x00007f256928a000)
libwebp.so.5 => /usr/lib/x86_64-linux-gnu/libwebp.so.5 (0x00007f2569032000)
libepsilon.so.1 => /usr/lib/x86_64-linux-gnu/libepsilon.so.1 (0x00007f2568e1a000)
libodbc.so.1 => /usr/lib/x86_64-linux-gnu/libodbc.so.1 (0x00007f2568bb3000)
libodbcinst.so.1 => /usr/lib/x86_64-linux-gnu/libodbcinst.so.1 (0x00007f25689a1000)
libkmldom.so.0 => /usr/lib/x86_64-linux-gnu/libkmldom.so.0 (0x00007f25686f8000)
libkmlbase.so.0 => /usr/lib/x86_64-linux-gnu/libkmlbase.so.0 (0x00007f25684e2000)
libkmlengine.so.0 => /usr/lib/x86_64-linux-gnu/libkmlengine.so.0 (0x00007f25682ae000)
libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f2568084000)
libxerces-c-3.1.so => /usr/lib/x86_64-linux-gnu/libxerces-c-3.1.so (0x00007f2567afc000)
libjasper.so.1 => /usr/lib/x86_64-linux-gnu/libjasper.so.1 (0x00007f25678a5000)
libnetcdf.so.7 => /usr/lib/libnetcdf.so.7 (0x00007f2567568000)
libhdf5.so.7 => /usr/lib/x86_64-linux-gnu/libhdf5.so.7 (0x00007f25670cc000)
libmfhdfalt.so.0 => /usr/lib/libmfhdfalt.so.0 (0x00007f2566e9b000)
libdfalt.so.0 => /usr/lib/libdfalt.so.0 (0x00007f2566bb5000)
libogdi.so.3.2 => /usr/lib/libogdi.so.3.2 (0x00007f2566994000)
libgif.so.4 => /usr/lib/x86_64-linux-gnu/libgif.so.4 (0x00007f256678b000)
libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f2566536000)
libpq.so.5 => /usr/lib/libpq.so.5 (0x00007f2566307000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f25660e5000)
libdapclient.so.3 => /usr/lib/x86_64-linux-gnu/libdapclient.so.3 (0x00007f2565eae000)
libdap.so.11 => /usr/lib/x86_64-linux-gnu/libdap.so.11 (0x00007f2565bc8000)
libspatialite.so.5 => /usr/lib/x86_64-linux-gnu/libspatialite.so.5 (0x00007f25655cc000)
libmysqlclient.so.18 => /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18 (0x00007f2565094000)
libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f2564e90000)
libheimntlm.so.0 => /usr/lib/x86_64-linux-gnu/libheimntlm.so.0 (0x00007f2564c87000)
libkrb5.so.26 => /usr/lib/x86_64-linux-gnu/libkrb5.so.26 (0x00007f25649ff000)
libasn1.so.8 => /usr/lib/x86_64-linux-gnu/libasn1.so.8 (0x00007f256475e000)
libhcrypto.so.4 => /usr/lib/x86_64-linux-gnu/libhcrypto.so.4 (0x00007f256452b000)
libroken.so.18 => /usr/lib/x86_64-linux-gnu/libroken.so.18 (0x00007f2564316000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f2564112000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f2563f0c000)
libnuma.so.1 => /usr/lib/x86_64-linux-gnu/libnuma.so.1 (0x00007f2563d01000)
libXt.so.6 => /usr/lib/x86_64-linux-gnu/libXt.so.6 (0x00007f2563a9b000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f2563896000)
libarpack.so.2 => /usr/lib/libarpack.so.2 (0x00007f2563648000)
liblcms2.so.2 => /usr/lib/x86_64-linux-gnu/liblcms2.so.2 (0x00007f25633f3000)
libtiff.so.5 => /usr/lib/x86_64-linux-gnu/libtiff.so.5 (0x00007f2563181000)
libgeos-3.4.2.so => /usr/lib/libgeos-3.4.2.so (0x00007f2562dfd000)
liburiparser.so.1 => /usr/lib/liburiparser.so.1 (0x00007f2562be3000)
libminizip.so.0 => /usr/lib/x86_64-linux-gnu/libminizip.so.0 (0x00007f25629db000)
libhdf5_hl.so.7 => /usr/lib/x86_64-linux-gnu/libhdf5_hl.so.7 (0x00007f25627ab000)
libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f256254c000)
libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f2562293000)
libwind.so.0 => /usr/lib/x86_64-linux-gnu/libwind.so.0 (0x00007f256206a000)
libheimbase.so.1 => /usr/lib/x86_64-linux-gnu/libheimbase.so.1 (0x00007f2561e5c000)
libhx509.so.5 => /usr/lib/x86_64-linux-gnu/libhx509.so.5 (0x00007f2561c13000)
libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f25619da000)
libjbig.so.0 => /usr/lib/x86_64-linux-gnu/libjbig.so.0 (0x00007f25617cc000)
Update: Reverting back my code to use Qt4 solved the problem and I can run my application flawlessly. So I guess the error was due to mixing Qt4 and Qt5 libraries. Omnet++ is using Qt4 and my C++ code is using Qt5. Is there any way to use Qt5 library in OMNET 5?
Go to the directory where your omnetpp.ini is located and type:
opp_run -l ../src/VENTOS
where ../src/ is relative path to the directory which contains libVENTOS.so.

How to resize Root Disk with runInstance in PHP

$cmd = 'runInstances';
$result = $client->$cmd(array(
'ImageId' => selectAMI($_POST['dc'], $_POST['os']),
'MinCount' => 1,
'MaxCount' => 1,
'InstanceType' => $_POST['itype'],
'KeyName' => $_POST['key'],
'SecurityGroups' => array($securityGroupName),
'BlockDeviceMappings' => array(
'DeviceName' => '/dev/sda1',
array(
'Ebs' => array(
'SnapshotId' => 'snap-2337bd2a',
'VolumeSize' => $disksize,
'DeleteOnTermination' => true,
'VolumeType' => 'gp2',
'Encrypted' => false
)
)
)
));
What is wrong with this, it does not work and I get no error?
Your BlockDeviceMappings part is not structured correctly.
You have DeviceName outside the second array structure, where it should be inside.
Try this:
$cmd = 'runInstances';
$result = $client->$cmd(array(
'ImageId' => selectAMI($_POST['dc'], $_POST['os']),
'MinCount' => 1,
'MaxCount' => 1,
'InstanceType' => $_POST['itype'],
'KeyName' => $_POST['key'],
'SecurityGroups' => array($securityGroupName),
'BlockDeviceMappings' => array(
array(
'DeviceName' => '/dev/sda1',
'Ebs' => array(
'SnapshotId' => 'snap-2337bd2a',
'VolumeSize' => $disksize,
'DeleteOnTermination' => true,
'VolumeType' => 'gp2',
'Encrypted' => false
)
)
)
));

WSDL Soap Exception in webservices

Does anyone know what this error means? I've read that it could be PHP version issue. Could it also be due to permissions? Or say.. like a firewall?
SoapFault Object ( [message:protected] => SOAP-ERROR: Parsing Schema: can't import schema from
'http://www.w3.org/2005/05/xmlmime' [string:Exception:private] => [code:protected] => 0 [file:
protected] => /person/ok/my_library/Zend/Soap/aplace.php [line:protected] => 51 [trace
:Exception:private] => Array ( [0] => Array ( [file] => /person/ok/my_library/Zend/Soap/Client
/aplace.php [line] => 51 [function] => SoapClient [class] => SoapClient [type] => -> [args] =>
Array ( [0] => http://myWSDL:7001/web/10/Intw?WSDL [1] => Array ( [encoding]
=> UTF-8 [soap_version] => 2 [trace] => 1 ) ) ) [1] => Array ( [file] => /person/ok/my_library/
Zend/Soap/Client.php [line] => 1024 [function] => __construct [class] => Zend_Soap_Client_aplace
[type] => -> [args] => Array ( [0] => Array ( [0] => Zend_Soap_Client Object ( [_encoding:protected]
=> UTF-8 [_classmap:protected] => [_faultExceptions:protected] => Array ( ) [_soapVersion:protected]
=> 2 [_uri:protected] => [_location:protected] => [_style:protected] => [_use:protected] =>
[_login:protected] => [_password:protected] => [_proxy_host:protected] => [_proxy_port:protected]
=> [_proxy_login:protected] => [_proxy_password:protected] => [_local_cert:protected] =>
[_passphrase:protected] => [_compression:protected] => [_connection_timeout:protected] =>
[_stream_context:protected] => [_features:protected] => [_cache_wsdl:protected] =>
[_user_agent:protected] => [_wsdl:protected] => http://myWSDL:7001/web/101/Intw?WSDL
[_soapClient:protected] => [_lastMethod:protected] => [_soapInputHeaders:protected] => Array ( )
[_permanentSoapInputHeaders:protected] => Array ( ) [_soapOutputHeaders:protected] => Array ( ) )
[1] => _doRequest ) [1] => http://myWSDL:7001/web/101/Intw?WSDL [2] =>
Array ( [encoding] => UTF-8 [soap_version] => 2 [trace] => 1 ) ) ) [2] =>
Array ( [file] => /my_library/place.php [line] =>
1180 [function] => _initSoapClientObject [class] => Zend_Soap_Client
[type] => -> [args] => Array ( ) ) [3] => Array ( [file] => /my_library/place.php
[line] => 1104 [function] => getSoapClient [class] => Zend_Soap_Client [type] => -> [args] => Array ( ) ) [4] =>
Array ( [file] => /some/path/to/my/file.php [line] =>
149 [function] => __call [class] => Zend_Soap_Client [type] => -> [args] => Array ( [0] => command [1] =>
Array ( [0] => Array ( [arg0] => Array ( [Username] => myUsername:) [Password] =>
myPassword:) [InputField] => Summary [ItemId] => 9999999 ) ) ) ) ) [5] =>
Array ( [file] => /some/path/to/my/file.php
[line] => 149 [function] => command [class] => Zend_Soap_Client [type] => -> [args] =>
Array ( [0] => Array ( [arg0] => Array ( [Username] => myUsername:) [Password] => myPassword:) [InputField] =>
Summary [ItemId] => 9999999 ) ) ) ) [6] => Array ( [file] => /some/path/to/my/file.php
[line] => 256 [function] => getPickFieldValue [class] => Code_Tracker_PriNvcProcessController [type] => -> [args] =>
Array ( [0] => Dev Task Component ) ) [7] => Array ( [file] => /person/ok/my_library/Zend/Controller/Action.php [line] => 513 [function] =>
mksFormAction [class] => Code_Tracker_PriNvcProcessController [type] => -> [args] => Array ( ) ) [8] =>
Array ( [file] => /some/other/path/to/another/file.php [line] => 289 [function] =>
dispatch [class] => Zend_Controller_Action [type] => -> [args] => Array ( [0] => mksFormAction ) ) [9] =>
Array ( [file] => /person/ok/my_library/Zend/Controller/Front.php [line] => 954 [function] => dispatch [class] =>
Zend_Controller_Dispatcher_Standard [type] => -> [args] => Array ( [0] => Zend_Controller_Request_Http Object ( [_paramSources:protected] =>
Array ( [0] => _GET [1] => _POST ) [_requestUri:protected] => /yet/another/path/to/a/js/form?code_id=706 [_baseUrl:protected] =>
[_basePath:protected] => [_pathInfo:protected] => /yet/another/path/to/a/js/form [_params:protected] => Array ( [module] =>
code_tracker [controller] => pri-nvc-process [action] => mks-form ) [_rawBody:protected] => [_aliases:protected] => Array ( )
[_dispatched:protected] => 1 [_module:protected] => code_tracker [_moduleKey:protected] => module [_controller:protected] =>
pri-nvc-process [_controllerKey:protected] => controller [_action:protected] => mks-form [_actionKey:protected] => action ) [1] =>
Zend_Controller_Response_Http Object ( [_body:protected] => Array ( ) [_exceptions:protected] => Array ( ) [_headers:protected] => Array ( )
[_headersRaw:protected] => Array ( ) [_httpResponseCode:protected] => 200 [_isRedirect:protected] => [_renderExceptions:protected] =>
[headersSentThrowsException] => 1 ) ) ) [10] => Array ( [file] => /again/another/path/to/initialize.php [line] => 67 [function] =>
dispatch [class] => Zend_Controller_Front [type] => -> [args] => Array ( ) ) [11] => Array ( [file] => /again/another/path/to/initialize.php
[line] => 43 [function] => dispatch [class] => application_Init [type] => :: [args] => Array ( ) ) [12] => Array ( [file] =>
/again/another/path/to/initialize.php [line] => 55 [function] => init [class] => application_Init [type] => :: [args] =>
Array ( ) ) [13] => Array ( [file] => /another/path/but/to/html/index.php [line] => 20 [function] => start [class] =>
application_Init [type] => :: [args] => Array ( ) ) ) [previous:Exception:private] => [faultstring] => SOAP-ERROR:
Parsing Schema: can't import schema from 'http://www.w3.org/2005/05/xmlmime' [faultcode] => WSDL )
There could still be proxy (preventing access to schema from your application) but your browser might already be preconfigured for it.
Within your php application, can print log output for the HTTP code returned for that schema location? Haven't use PHP before but perhaps using HttpClient - something like this: http://scripts.incutio.com/httpclient/examples.php

Facebook-PHP-SDK: api('/me') not working, very strange

Here is my code:
$session = $facebook->getSession();
var_dump($session);/*it says session is perfectly established*/
try {
$uid = $facebook->getUser();
echo '<br>';
var_dump($uid);/*User id is found*/
$fb_user = $me = $facebook->api('/me');/*PHP execution doesn't go forward, here it breaks*/
echo '<br>';
var_dump($fb_user);/*PHP execution doesn't come up to here*/
EDITED:
I have print_r the $exception in the catch section and got the following long message:
FacebookApiException Object
(
[result:protected] => Array
(
[error_code] => 6
[error] => Array
(
[message] => name lookup timed out
[type] => CurlException
)
)
[message:protected] => name lookup timed out
[string:private] =>
[code:protected] => 6
[file:protected] => /home/abusadat/public_html/.../facebook.php
[line:protected] => 614
[trace:private] => Array
(
[0] => Array
(
[file] => /home/abusadat/public_html/.../facebook.php
[line] => 575
[function] => makeRequest
[class] => Facebook
[type] => ->
[args] => Array
(
[0] => https://graph.facebook.com/me
[1] => Array
(
[method] => GET
[access_token] => ******...******
)
)
)
[1] => Array
(
[file] => /home/abusadat/public_html/.../facebook.php
[line] => 539
[function] => _oauthRequest
[class] => Facebook
[type] => ->
[args] => Array
(
[0] => https://graph.facebook.com/me
[1] => Array
(
[method] => GET
)
)
)
[2] => Array
(
[file] => /home/abusadat/public_html/.../facebook.php
[line] => 492
[function] => _graph
[class] => Facebook
[type] => ->
[args] => Array
(
[0] => /me
)
)
[3] => Array
(
[file] => /home/abusadat/public_html/.../fb-connect.php
[line] => 31
[function] => api
[class] => Facebook
[type] => ->
[args] => Array
(
[0] => Array
(
[0] => Facebook Object
(
[appId:protected] => ******...******
[session:protected] => Array
(
[access_token] => ******...******
[base_domain] => abusadat.com
[expires] => 1312567200
[secret] => ******...******
[session_key] => ******...******
[sig] => ******...******
[uid] => ******...******
)
[signedRequest:protected] =>
[sessionLoaded:protected] => 1
[cookieSupport:protected] => 1
[baseDomain:protected] =>
[fileUploadSupport:protected] =>
)
[1] => _graph
)
[1] => Array
(
[0] => /me
)
)
)
[4] => Array
(
[file] => /home/abusadat/public_html/.../index.php
[line] => 29
[args] => Array
(
[0] => /home/abusadat/public_html/.../fb-connect.php
)
[function] => include_once
)
)
)
I am using SDK version 2.1.2. I have some restriction to use SDK 3 or greater.
My guess is that an exception is being thrown and that you don't see it because your PHP error reporting settings are not tuned properly.
Add this to the top of your PHP file:
ini_set('display_errors', 1);
error_reporting(E_ALL);
You should then see a PHP error when visiting the page.