Posts

php - Uncaught SyntaxError: Unexpected token on some hosting providers -

when vin number added in admin , button pressed data, in hosting providers i'm getting error , spinning loading wheel of death, while other providers , in localhost info correctly. why not consistent , can make work time? the error on google chrome console is: uncaught syntaxerror: unexpected token and if click on arrow expand error show [object][object]. here code: <?php add_action('wp_ajax_rw_api_data', 'rw_api_data'); function rw_api_data(){ if ( isset($_post["vin"]) && strlen($_post["vin"]) === 17 ){ $api_key = get_option('edmund_api'); $vin = $_post["vin"]; // basic details $url = sprintf( "https://api.edmunds.com/api/vehicle/v2/vins/%s?&fmt=json&api_key=%s" , $vin , $api_key ); $get_response = wp_remote_get($url); if( !is_wp_error( $get_response ) ) : $basic_data = json_decode( $get_response["body"], true); $style_id = i...

java - Android Studio LibGDX Game problems -

i'm finishing writing game, however, when run game, android studio complains following errors: error:(103, 8) gradle: error: illegal start of expressionerror:(103, 15) gradle: error: illegal start of expressionerror:(103, 26) gradle: error: ';' expectederror:(103, 43) gradle: error: ';' expected . here's code gamescreen class: package com.circlecrashavoider; import com.badlogic.gdx.gdx; import com.badlogic.gdx.graphics.gl20; import com.badlogic.gdx.graphics.texture; import com.badlogic.gdx.math.mathutils; import com.badlogic.gdx.math.vector2; import com.badlogic.gdx.physics.box2d.contact; import com.badlogic.gdx.physics.box2d.contactimpulse; import com.badlogic.gdx.physics.box2d.contactlistener; import com.badlogic.gdx.physics.box2d.manifold; import com.badlogic.gdx.physics.box2d.world; import com.badlogic.gdx.scenes.scene2d.stage; import com.badlogic.gdx.u...

php - How to change URLs in a Site developed using Laravel? -

i have website being developed using laravel 4 freelance dev. while developer has developed site standard url's each page, want able change words in url suite each of target markets. example, developer made url of 1 page: www.site.com/public/city/vehicles later, want able change www.site.com/rome/cars or www.site.com/sydney/bikes however developer says wont possible later on change urls limitation in laravel. can please shed light on , how this? why not possible ?? url can me made dynamic if want . using route route::get('/city/{slug}/{slug}',array('as'=>'city.vehciles','uses'=>'yourcontroller@yourmethod')); this output : www.site.com/city/rome/cars //if public folder removed url . //here `rome` , `cars` dynamic , value comes per slug value database. in above route slug thing can me made dynamic . keep place add slug while adding vehicle in dashboard add vehicles. also, if want explore more pleas...

c# - DataGrid Sorting By Any Column Only Sorts by First Column Criteria -

Image
i have been scratching head @ 1 quite while. xceed datagrid sorts acqid , nothing else, when select other columns strings, date, , numeric. see image of date sorting below. my object pretty complex, have no clue modify work. have less complex object list seems work fine sorting. seen before? for else stumbles on this... setting autocreateitemproperties="false" in collectionviewsource cause behavior.

How to select columns that are from different tables SQL -

i have table named items , table named orders. orders table need select artists column , orders table need select order_date , ship_date; how can this? in selecting columns in different tables can use join, left join, or right join connect 2 tables. in doing need 1 same column in both of tables. join select table1.colmun_name, table2.column_name table1_name table1 join table2_name table2 on table1.primarykey = table2.table1_primarykey for example: select items.artists, order.order_date, order.ship_date items items left join orders order on item.item_id=order.item_id item_id common column in table1 , table2 2 tables can connect each other. edit: changed table name as ^ need elaborate question clear want because can put changed table name in query.

how to set this animation for the android banner anybody can know -

Image
this banner know viewpager.setpagetransformer(boolean reversedrawingorder, pagetransformer transformer) ; but pagetransformer don't how set yes myself call ontransform(view view, float position) set view.settranslationx(position < 0 ? 0 : -view.getwidth() * position/2); ok

reflection - How to hook into an auto-generated Java method? -

edit: started low-priority question make work easier has become interesting exercise in java witchcraft. input, everyone! i'm working auto-generated java code (specifically, code generated anylogic) produces method called onchange() . i'd call own method when onchange() called. there way "hook into" onchange() via reflection or other standard java mechanism? one solution suggest using proxy objects. here tutorial might of you.