zfc-rbac module exception [closed] - zend-framework2

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I integrated the module zfcrbac in my application, apparently there's a problem! when I execute I get the following exception:
Fatal error: Uncaught exception 'Zend \ ServiceManager \ Exception \ ServiceNotCreatedException' with message 'While Attempting to create zfcrbacguards (alias: ZfcRbac \ Guards) WAS an invalid factory registered for this instance types.' in C: \ wamp \ www \ SSO \ vendor \ ZF2 \ library \ Zend \ ServiceManager \ ServiceManager.php on line 1031
I added nothing! just put the module in the vendor directory!

There was a namespaces problem in ini_autoloader.php , i added namespace of zfc-rbac module and it works

Related

Update XCode from command-line [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Is it possible to update XCode to a newer version without using the XCode GUI? So far I can only find the solution for the Xcode-CLI-tools, but not the actual XCode itself.
Run this:
curl -Ls https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/index-3905972D-B609-49CE-8D06-51ADC78E07BC.dvtdownloadableindex | plutil -convert json -o - - | python -mjson.tool | less
Replace the URL in this simple shell script and run it:
#!/bin/sh
OSX_VERS=$(sw_vers -productVersion | awk -F "." '{print $2}')
# Get Xcode CLI tools
# https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/index-3905972D-B609-49CE-8D06-51ADC78E07BC.dvtdownloadableindex
TOOLS=clitools.dmg
if [ ! -f "$TOOLS" ]; then
if [ "$OSX_VERS" -eq 7 ]; then
DMGURL=http://devimages.apple.com/downloads/xcode/command_line_tools_for_xcode_os_x_lion_april_2013.dmg
elif [ "$OSX_VERS" -eq 8 ]; then
DMGURL=http://devimages.apple.com/downloads/xcode/command_line_tools_for_xcode_os_x_mountain_lion_april_2013.dmg
elif [ "$OSX_VERS" -eq 9 ]; then
DMGURL=http://adcdownload.apple.com/Developer_Tools/command_line_tools_os_x_mavericks_for_xcode__late_october_2013/command_line_tools_os_x_mavericks_for_xcode__late_october_2013.dmg
fi
curl "$DMGURL" -o "$TOOLS"
fi
TMPMOUNT=`/usr/bin/mktemp -d /tmp/clitools.XXXX`
hdiutil attach "$TOOLS" -mountpoint "$TMPMOUNT"
installer -pkg "$(find $TMPMOUNT -name '*.mpkg')" -target /
hdiutil detach "$TMPMOUNT"
rm -rf "$TMPMOUNT"
rm "$TOOLS"
exit
You may be interested to ask why would anyone want to do that, but I have an use case where we have 10+ Mac Minis to manage in our build farm and we would prefer not to update one-by-one on the GUI.

How to run sqlplus centOS? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
I am install Oracle Instant Client: Basic, SDK and SQL*Plus packages v 12.1.0.1 for gem "ruby-oci8" than i realize that i need use Oracle Instant Client v 10.2.0.5. I remove ver. 12 first (rpm -e) than i dowload zip file 10.2.0.5 and unzip the packages as follows:
mkdir /opt
mkdir /opt/oracle
cd /opt/oracle
unzip path/to/instantclient-basic-OS-VERSION.zip
unzip path/to/instantclient-sdk-OS-VERSION.zip
unzip path/to/instantclient-sqlplus-OS-VERSION.zip
after that i set:
export LD_LIBRARY_PATH="/opt/oracle/instantclient_10_2/"
export SQLPATH="/opt/oracle/instantclient_10_2/"
export NLS_LANG="AMERICAN_AMERICA.CL8MSWIN1251"
export ORACLE_BASE=/opt/oracle/
export ORACLE_HOME=$ORACLE_BASE/instantclient_10_2/
my env:
HOSTNAME=srvwe041
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
NLS_LANG=AMERICAN_AMERICA.CL8MSWIN1251
SSH_CLIENT=10.14.64.103 49242 22
OLDPWD=/opt/oracle/instantclient_10_2/instantclient_10_2
SSH_TTY=/dev/pts/0
http_proxy=http://user:password#proxy.rccf.ru:8080
USER=schechaev
LD_LIBRARY_PATH=/opt/oracle/instantclient_10_2
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
ORACLE_SID=ORCL
PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/oracle/instantclient_10_2/
MAIL=/var/spool/mail/schechaev
PWD=/opt/oracle/instantclient_10_2
LANG=en_US.UTF-8
SQLPATH=/opt/oracle/instantclient_10_2
KRB5CCNAME=FILE:/tmp/krb5cc_1252_VhmQZQ
HISTCONTROL=ignoredups
HOME=/root
SHLVL=2
LOGNAME=schechaev
CVS_RSH=ssh
SSH_CONNECTION=10.14.64.103 49242 10.15.159.233 22
LESSOPEN=|/usr/bin/lesspipe.sh %s
ORACLE_HOME=/opt/oracle/instantclient_10_2/
G_BROKEN_FILENAMES=1
_=/bin/env
It is my /opt/oracle/instantclient_10_2/ ls:
BASIC_README libclntsh.so.10.1 libsqlplus.so orai18n.jar
classes12.jar libheteroxa10.so libsqora.so.10.1 sdk
genezi libnnz10.so ODBC_IC_Readme_Unix.html sqlplus
glogin.sql libocci.so.10.1 ODBCRelnotesJA.htm SQLPLUS_README
instantclient_10_2 libociei.so ODBCRelnotesUS.htm
JDBC_README libocijdbc10.so odbc_update_ini.sh
libclntsh.so libsqlplusic.so ojdbc14.jar
But whan i type sqlplus i have error:
Error 6 initializing SQL*Plus
Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
How to resols this isue?
After reboot centOS reboot now sqlplus is work ))):
[root#srvwe041 instantclient_10_2]#./sqlplus
SQL*Plus: Release 10.2.0.5.0 - Production on Thu Oct 31 11:44:44 2013
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Enter user-name:
It Is miracle!
But before it i set vim ~/bash_profile
export ORACLE_BASE=/opt/oracle/
export ORACLE_HOME=$ORACLE_BASE/instantclient_10_2/
export LD_LIBRARY_PATH="/opt/oracle/instantclient_10_2/"
export SQLPATH="/opt/oracle/instantclient_10_2/"
export NLS_LANG="AMERICAN_AMERICA.CL8MSWIN1251"

how to append a line to all files under a directory? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I have a directory contains 50 files, what I need to do is append a new text to echo file, such as 'thelastline`, I don't know how to do it in mac os
sed -i '$athelastline' /path/*.file
if you are using bsd sed, the -i option would be -i ''
sed -i '' '$athelastline' /path/*.file
Find all files in current directory and below and append lastline to each:
$ find . -type f -exec sed -i '$a lastline' {} \;
Under OSX this is probably easiest with sed, but you seem to be asking about how to do this with awk, so here is a nawk compatible way of doing it (assuming you do not have strange characters in your filenames):
for f in *; do
awk '1; END { print "thelastline" }' "$f" > /tmp/tmpfile
mv /tmp/tmpfile "$f"
done
In case you are using zsh, there is a nice idiom for appending something to all files in the current directory:
<<<"thelastline" >>*
Note that multios needs to be enabled.

How to convert .aiff to .caf through converter or programmatically? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Any one knows how I can convert my .aiff audio file to .caf audio file?
Any Converter any link will be helpful.
Thanks in advance.
This is how to do it in terminal:
afconvert -f caff -d aacl#22050 -c 1 sound.aiff sound.caf
All files in directory script:
for f in *; do
if [ "$f" != "converttocaf.sh" ]
then
/usr/bin/afconvert -f caff -d 'aac ' -c 1 -l Mono $f
echo "$f converted"
fi
done
I have directly converted a wav file in caf file by using this command:
afconvert -f caff -d LEI16 -c 1 trampoline.wav trampoline.caf
you can also find some useful commands about the best practices to convert the file extentions on the fillowing link:
http://gamua.com/blog/2010/06/sound-on-ios-best-practices/

xargs: zcat: terminated by signal 13 [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have used a script like below
zgrep -i xxxx FileA|grep -o "RID=[0-9|A-Z]*"|uniq|cut -d "=" -f2|xargs -0 -I string zcat FileB| requestID="RequestID=" stringone=$requestID$string grep stringone FileB
Before the point of xargs being used my o/p is
01982893213982312 - RID 1
32103213213213213 - RID 2
32103213213213343 - RID 3
32103213213251261 - RID 4
For every RID present here, there is a corresponding line in File B. I am planning to do like the below after the:
zgrep -i xxxx FileA | grep -o "RID=[0-9|A-Z]*" | uniq | cut -d "=" -f2 | xargs|
{grep RID1 in file B, grep RID2 in file B,grep RID3 in file B, grep RID4 in file B}
Now if I do this I am getting an error
xargs: zcat: terminated by signal 13
Please help me guys

Resources