Posts

How to block User creation in QuickBlox Android API -

i making app quickblox. want manage users signup through own server. plan use existing user base , server makes rest calls quickblox create corresponding users in database. on app side, i'll provision these users along "passwords" on air each of users through own apis. see if modifies client app (using reverse engineering or copying quickblox auth key/secret app), can call users.signup api , keep creating number of users , throw off scheme. possible block user creation android app? to exclude "signup" method quickblox android sdk recommend use following service: http://proguard.sourceforge.net/

Google Developers Console - datastore dashboard inaccessible - Backend Error -

in new google developers console , when trying access: storage -> cloud datastore -> dashboard / query / settings error saying: error: backend error the old developers console functions fine, exception of trying access: data->datastore admin , displays message: error: not found my project created using old console. disabling , enabling datastore api did not help related issues: google console - cloud datastore query returning "backend error" google datastore returning "503 backend error"

Ruby check if variable exists in a file -

i have text file of 1 word per line. i want check if ruby variable exists on lines in file. @username = john and in bannedwords.txt: alex adam mary john james so true. best function use in ruby this? just read in file , convert set can use test inclusion: require 'set' banned = set.new(file.readlines('bannedwords.txt').collect(&:chomp)) banned.include?('john') # => true banned.include?('papa smurf') # => false

windows 7 x64 - Plastic SCM FIPS error -

Image
during configuration of plastic scm client - server connection on several machines receive error: this implementation not part of windows platform fips validated cryptographic algorithms this on windows 7 enterprise sp1 64 bit fips support added plastic scm bl700 in oct 2015 can find here

Why does batch processing with unusal usage of command SET hang on running in console emulator Cmder? -

i have made small batch script generate md5 sum of file. works great when remove line @echo off , hangs on execution in console emulator cmder version 1.1.4.1 when leave line. @echo off if [%1]==[] goto usage /f "delims=" %%i in ('certutil -hashfile %1 md5 ^| find /v "certutil" ^| find /v "md5"') set output=%%i set /p =%output: =%<nul >%1.md5 goto :eof :usage @echo usage: %0 filename exit /b 1 if replace line set /p =%output: =%<nul >%1.md5 echo %output: =% >%1.md5 , batch file executed in cmder , not cmd.exe of windows works, outputs additional newline don't want. what going on? edit : line doesn't hang on batch processing in cmder : set /p ="hello" <nul this line hangs on batch processing in cmder : set /p ="hello" <nul >out both lines work in batch file executed windows command processor in command prompt window.

php - Symfony2 : send a HTTP Request -

i trying make http request 1 of controller contact url, goal being contact url, , print html answer in page. tried : $r = new request(); $r->create('http://www.google.com', 'get'); return $this->render(...mytemplate..., array('name' => $r->getcontent()); template printing variable "name". when that, nothing returned. seems me request never sent, why nothing returned. my question : how send request , content of response? thanks in advance. edit : made gremobuzzbundle buzz browser. it's similar sensiobuzzbundle has nice configuration options. i suggest use buzz browser , dependency injection. buzz wrapper around curl or file_get_contents. edit deps file adding these lines: [buzz] git=https://github.com/kriswallsmith/buzz.git target=/buzz then install vendors download library: php bin/vendors install then add two services ( src/yourcompany/yourbundle/resources/config/services.yml ): # curl ...

android - AWS Device Farm - Failed upload when using the CLI -

i trying upload apk device farm using bash script, have used create-upload endpoint pre-signed url put request, , using curl put apk end point. response=$(aws devicefarm create-upload --project-arn %devicefarmprojectarn% --name platforms/android/build/outputs/apk/android-release-unsigned.apk --type android_app --content-type application/octet-stream) apk_arn=$(echo "$response" | grep arn:aws:devicefarm | gawk 'match($0, "(arn:aws:devicefarm(.*))\"", ary) {print ary[1]}') apk_put_url=$(echo "$response" | gawk 'match($0, "\"url\": \"(.*)\"", ary) {print ary[1]}') echo "$apk_arn" >> apkarn.txt curl $apk_put_url -x put --upload-file platforms/android/build/outputs/apk/android-release-unsigned.apk -h "content-type:application/octet-stream" the file upload seems work, when check status using returned arn status failed, , reason "invalid application uploaded" "...