Posts

wcf REST Ping timeout -

i have set iis authentification = basic, , create account windows login = pda , password = xxx. but when client acces service, got message timeout public stream pingserver() { //string leurl = "http://localhost:81/code/wcfservice_rest_suivicolis/wcfservice_rest_suivicolis/service1.svc"; string leurl = "http://xxx.yyy.zzz/fa85/service1.svc/"; string result = "",errpb=""; try { var myrequest = (httpwebrequest)webrequest.create(leurl); myrequest.credentials = new system.net.networkcredential("pda", "xxx"); myrequest.method = "put"; myrequest.contentlength = 0; var response = (httpwebresponse)myrequest.getresponse(); if (response.statuscode == httpstatuscode.ok) { // si le serveur ok result =...

php - Group by portion not appears in codeigniter datatable query -

i trying use group in datatable query per below: but group portion not appears in query printed. datatable query: $this->datatables->select('banks_users.id,users.created_at,username'); $this->datatables->from('banks_users'); $this->datatables->join('users', 'banks_users.users_id = users.id', 'left outer'); $this->datatables->join('banks', 'banks.id = banks_users.banks_id', 'left outer'); $this->datatables->join('branches_agents', 'branches_agents.users_id = users.id'); $this->datatables->join('branches', 'branches.id = branches_agents.branches_id'); $this->datatables->join('banks_countries', 'banks_countries.banks_id = banks_users.banks_id', 'left outer'); $this->datatables->join('countries', 'countries.id = banks_countries.countries_id', 'left outer'); $this->datatables->where(...

android - Error:Execution failed for task ':Application:transformClassesWithJarMergingForDebug' -

this question has answer here: transformexception duplicate entry common.annotations.beta 3 answers while running android application in android studio, got following error: error: execution failed task':app:transformclasseswithjarmergingfordebug'. com.android.build.api.transform.transformexception: java.util.zip.zipexception: duplicate entry: android/support/annotation/layoutres.class where error come / how resolve issue? you have added com.android.support:support-annotations: 2 times. surely, not directly, 1 of dependencies depends on it. run console (inside project folder): gradlew app:dependencies , see depends on support annotations library. then, exclude dependencies

Checking Android app for OpenSSL vulnerability -

i used terminal command unzip -p app.apk | strings | grep "openssl" suggested here i following result in terminal: gmscore_openssl +com.android.org.conscrypt.opensslsocketimpl 7org.apache.harmony.xnet.provider.jsse.opensslsocketimpl openssl 1.0.2h 3 may 2016 %s(%d): openssl internal error, assertion failed: %s openssl dh method openssl x9.42 dh method openssl pkcs#3 dh method openssl cmac method openssl hmac method openssl ec algorithm openssl rsa method openssl dsa method openssl ecdsa method openssl ecdh method need read openssl faq, http://www.openssl.org/support/faq.html openssl default openssl default user interface openssl 'dlfcn' shared library method tlsv1 part of openssl 1.0.2h 3 may 2016 sslv3 part of openssl 1.0.2h 3 may 2016 dtlsv1 part of openssl 1.0.2h 3 may 2016 md5 part of openssl 1.0.2h 3 may 2016 sha1 part of openssl 1.0.2h 3 may 2016 sha-256 part of openssl 1.0.2h 3 may 2016 sha-512 part of openssl 1.0.2h 3 may 2016 big number part o...

android - Remote testing with Google sign in -

Image
my app built use google play services api , relies on google sign in. i've decided add instrumented tests project. i'm able run them locally on emulator or real device, i've faced problem on remote emulator within ci server (i'm using travis ci). when app launches first time, user prompted google account , following screen appears. when happens locally i'm able enter password , keep tests alive, on remote server can nothing , tests fail. so here question: how can add google account device (emulator) command line/espresso code/via travis ci tools? possible using adb/avd command line tools?

javascript - TypeError: Upload.upload is not a function -

i have function, , throw exception: $scope.uploadavatar = function(avatar, user) { upload.upload({ url: 'api/v1/user' + user.id + '/', avatar: avatar, method: 'put' }) }; typeerror: upload.upload not function my scripts includes: <script src="/static/js/main.js"></script> <script src="/static/js/bootstrap.min.js"></script> <script src="/static/js/posts_controller.js"></script> <script src="/static/js/jquery.equalheights.min.js"></script> <script src="/static/js/video.js/video.js"></script> <script src="/static/js/swiper.jquery.min.js"></script> <script src="/static/ng-file-upload/fileapi.js"></script> <script src="/static/ng-file-upload/ng-file-upload.js"></script> <script src="/static/ng-file-upload...

ios - How to share text or custom url to facebook using uiactivityviewcontroller? -

i want share custom url not start 'https/http' , 'puzzle://', 'puzzle' url scheme. sharing string instead of url. able share link/text via twitter & email using uiactivityviewcontroller. somehow, facebook dialog box shows nothing. tell me if should share text or link. thanks.. facebook validates url shared valid url not fake string in url , valid url loaded in sharing box otherwise it's not valid . example of valid url : http://google.com good luck!