Creating shared_ptr seems to cause segfault

I have the following function static node_ptr make_node_ptr() { return node_ptr(new node()); } where using node_ptr = std::shared_ptr<node>; I tried to find my segmentation fault with valgrind and gdb. In both I get more or less the same stack trace. Program received signal SIGSEGV, Segmentation fault. 0x00007fff8f5d7e82 in szone_malloc_should_clear () from /usr/lib/system/libsystem_malloc.dylib (gdb) bt #0 0x00007fff8f5d7e82 in szone_malloc_should_clear () from…
Read more

liferay plugin error create in eclipse

im using liferay 6.2 GA4 with the GA4 sdk and Eclipse Indigo Service Release 2 i try to create a plugin, but it gives me an error, the eclipse console doesnt show one, and it says it created the plugin succesfully… but then it gives me an alert that there was an error, and to check eclipse log file.. i…
Read more

Chrome bookmark virus

I am getting re-directs with ‘webhp’ something like: https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=div+with+arrow+css&start=10 I also notice that my Google Chrome Bookmark star looks differently and when I click on it I get: I guess I can’t post images…It is a strange bookmark pop-up when I click on the star. Is this a virus and how do I get back to my old bookmark star?…
Read more

Getting European Date Format SQL

I have a Database set up with a column for Datetime. In my application a have a date selector. The issue is that the Db uses American Date Format (MM/DD/YYYY) where as the app uses European Date Format (DD/MM/YYYY). Is there a way to set up the column in the database to use European date format? I don’t want to…
Read more

Facebook Graph API – upload photo using JavaScript

Is it possible to upload a file using the Facebook Graph API using javascript, I feel like I’m close. I’m using the following JavaScript var params = {}; params[‘message’] = ‘PicRolled’; params[‘source’] = ‘@’+path; params[‘access_token’] = access_token; params[‘upload file’] = true; function saveImage() { FB.api(‘/me/photos’, ‘post’, params, function(response) { if (!response || response.error) { alert(response); } else { alert(‘Published to…
Read more