Posts

osx - Prompt_git_and_status error -

something strange happened git , terminal. terminal shows command not found error after every execution of commands under root. user's terminals ok. sh: prompt_git_and_status: command not found i running mac os x 10.10.3, git version 2.4.3 kernel: darwin 14.3.0 darwin kernel version 14.3.0: mon mar 23 11:59:05 pdt 2015; root:xnu-2782.20.48~5/release_x86_64 x86_64 where can problem? in advance.

Ansible git clone as root -

i'm using following role ansible in order clone project in vagrant setup: - name: clone repository git: repo: https://login:pwd@bitbucket.org/team/repo.git dest: /home/vagrant/workspace/ accept_hostkey: true the cloning working expected, main issue directory workspace , it's content owned root: drwxr-xr-x 7 root root 4096 jun 10 12:35 workspace i thinking command executed 'vagrant' user defined in playbook: - hosts: vagrant sudo: yes remote_user: vagrant roles: - git can guys me issue? thank you. remote_user: vagrant means ssh host user vagrant . sudo: yes means before executing each task sudo , default root. need remove sudo: yes .

Webpack: silence output -

Image
i know if there's configuration option tell webpack log "important information" terminal. pretty errors , warnings, not of this: there's output! love suppress common stuff , have webpack output warnings/errors. solution webpack , webpack-dev-server , , karma-webpack . note : tried noinfo: true , quiet: true didn't seem trick. edit: i'm thinking may not possible, i've created issue on github: https://github.com/webpack/webpack/issues/1191 in webpack config, doing reduced incremental build time 8 seconds , silenced output. main 1 chunks: false play fit needs module.exports = { devserver: { stats: { colors: true, hash: false, version: false, timings: false, assets: false, chunks: false, modules: false, reasons: false, children: false, source: false, errors: false, errordetails: false, warnings: false, publicpath: false } } }

regex - Remove simple HTML-Tags from String in Oracle via RegExp, Explanation needed -

i not understand, why columns reg1 , reg2 remove "bbb" string, , reg3 works expected. with t (select 'aaa <b>bbb</b> ccc' teststring dual) select teststring, regexp_replace(teststring, '<.+>') reg1, regexp_replace(teststring, '<.*>') reg2, regexp_replace(teststring, '<.*?>') reg3 t teststring reg1 reg2 reg3 aaa <b>bbb</b> ccc aaa ccc aaa ccc aaa bbb ccc thanks lot! because regex greedy default. i.e. expressions .* or .+ try take many characters possible. therefore <.+> span first < last > . make lazy using lazy operator ? : regexp_replace(teststring, '<.+?>') or regexp_replace(teststring, '<.*?>') now, search > stop @ first > encountered. note . includes > well, therefore greedy variant (without ? ) swallows > last.

php - Fatal error: Call to undefined function json_encode() -

i using php 5.1.6 , wamp5 version 1.6.5 . not support json getting error: fatal error: call undefined function json_encode() in c:\wamp\www\myproject\application\controllers\auth\auth.php on line 142 how can solve please me out. you have use library if check php.net page see function not available until v5.2. json_encode (php 5 >= 5.2.0, pecl json >= 1.2.0, php 7) http://php.net/manual/en/function.json-encode.php

How to show text area when check box is checked in android -

is there way show text-area when check-box checked in android. appreciated. the below code <label><input type="checkbox" value="2d animation"> the text area can added layout xml , hidden until needed android:visibility="gone" once checkbox checked, can check state , show text area checkbox checkbox = (checkbox) findviewbyid(r.id.checkboxid); if(checkbox.ischecked()){ textarea.setvisiblity(view.visible); } you can load of onclicklistener action fires when box checked/unchecked.

ios - Crashlytics : stuck on "Verifying Installation..." step -

Image
i want use crashlytics on application. followed every step i'm stuck on "verifying installation..." step. what problem ? setdebugmode = yes set below code before [fabric with:@[ twitterkit ]]; if applied twitter kit. or can past below code in didfinishlaunchingwithoptions. // swift crashlytics().debugmode = true fabric.with([crashlytics.self()]) // objective-c [[crashlytics sharedinstance] setdebugmode:yes]; [fabric with:@[[crashlytics class]]]; now build , run app , check fabric ui window, move ahead complete screen.