Appcelerator Module titanium.py - module

I'm a new Mac user and i don't anderstand the way to create the titanium.py
http://docs.appcelerator.com/titanium/3.0/#!/guide/Legacy_Command-Line_Interface-section-29004835_LegacyCommand-LineInterface-OSX
how can i create a bash_profil, and where must i set up those links ?
alias titanium.py="/Library/Application\ Support/Titanium/mobilesdk/osx//titanium.py"
alias ios_builder="/Library/Application\ Support/Titanium/mobilesdk/osx//iphone/builder.py"
Can anybody teach me step by step :/ ?
Thx !

The problem was in the module configuration path to titanium.py have to add $HOME before /library and it works...

this is my .bash_profile :
titanium.py
alias titanium.py='~/Library/Application\ Support/Titanium/mobilesdk/osx/3.5.1.GA/titanium.py'
ios_builder
alias ios_builder='~/Library/Application\ Support/Titanium/mobilesdk/osx/3.5.1.GA/iphone/builder.py'

Related

How to ask for permissions for a lib that doesn't provide any RequestPermission helper function?

I've read the new Expo docs regarding asking permissions ... And It's not clear if you're facing a lib that doesn't provide an helper for permissions !
The only thing I've noticed is in this sentence :
Most permissions are added automatically by libraries that you use in your app either with config plugins or with a package-level AndroidManifest.xml, so you won't often need to use android.permissions to add additional permissions.
Does this mean that we could still use the PermissionAndroid for some custom plugins that doesn't provide a specific requestPermissionFunction() as exo-location does ( Location.requestForegroundPermissionsAsync(); ) ?
Despite the warning in the front page of react native website ? ....
I'm trying to use the react-native-wifi-p2p lib and it need those permissions :
"android.permission.ACCESS_COARSE_LOCATION",
"android.permission.ACCESS_WIFI_STATE",
"android.permission.CHANGE_WIFI_STATE",
"android.permission.WRITE_EXTERNAL_STORAGE",
"android.permission.READ_EXTERNAL_STORAGE",
Is it even possible to use this lib with expo ?
Any help would be appreciated !
#Wodin from the expo team helped me on this one
The answer is : YES, we can use the PermissionAndroid from react native.
And add all the permissions in the app.json file at expo.android.permissions = [...] also.
Link to the original answer

add `shell.prefix()` in snakemake profile?

For using conda activate myenv inside a script rule, I should add
shell.prefix("source /usr/local/genome/Anaconda3/etc/profile.d/conda.sh;")
at the beginning of the Snakefile.
I would like to add this option in my profile. For example in config.yaml or in sge-submit.py.
I tried to add it in sge-jobscript.sh, but it doesn't seem to work.
Is there a solution for this ? Do you have the same problem ?
Thanks in advance
I think you should be able to add a prefix variable to your config.yaml:
prefix: "source /usr/local/genome/Anaconda3/etc/profile.d/conda.sh;"
and then in your snakefile:
shell.prefix(config["prefix"])

adb.exe does not exist react native

while runing react native giving error
File 'C:\Users\inbox\AppData\Local\Android\platform-tools\adb.exe'
specified for property 'adbExe' does not exist. while adb.exe exist
in path C:\Users\inbox\AppData\Local\Android\Sdk\platform-tools
what is the solution for above problem?
I hit this same issue...
Notice that these two paths actually are not the same:
C:\Users\inbox\AppData\Local\Android\platform-tools\adb.exe
C:\Users\inbox\AppData\Local\Android\Sdk\platform-tools\adb.exe
To fix this, I just created a new folder "platform-tools" at 'C:\Users\inbox\AppData\Local\Android\' and then moved the files adb.exe, AdbWinApi.dll, Adb.WinUsbApi.dll into that folder.
Hope this helps.
May be you forgot to add path of adb in SystemsVariable so add adb path
Here is the guide for How to Add Adb path

IntelliJ System.out.println() - Cannot resolve method println(java.lang.String)

I am using IntelliJ IDEA, learning Java. All went well until yesterday, when the mentioned error occurred.
I didn't make any changes. I was looking for the solution the following ways:
reboot the pc
restart IntelliJ.
delete the project directory and use another one (both on desktop)
nothing helps. buy running simple hello world method. It keeps showing this error:
Is there someone able to help me?
ok, is solved.
file -> invalidated caches / Restart
One reason for this to happen is if you have print statement somewhere on the body of the class, and not inside a method.
Here is an example:
But if the print is inside a method, it should work fine.
Here is an example:
I think if you have tried the method above, maybe you can consider where you use System.out.println() because this method should only used in main(String args[]){},the latest version of the Idea is OK. I wish what said can help you.
If you have orcale sdk configured as your project sdk there is no way System.out.println can't be found - besides you are using another System.out.
So my guess is that you don't have a proper project sdk configured.
Goto to Project Settings or press Ctrl+Alt+Shift+S, go to Project Settings -> Project and check if your sdk is setup correctly.
In my case my project was set up to Java 6th and I had installed jre1.8.0_131 which I assume was causing the problem. After changing Java to level 8 problem have been solved.
Press Ctrl+Alt+Shift+s or go to File -> Project Structure -> Project, and set Project Language Level to yours.
case 1: if all sdk setup is complete and perfect
then
file -> invalidated caches / Restart
this could work
case 2 : if something missing in sdk setup of intelij
then goto
1.file->project structure->libraries
2.click on + button
3. add location of lib folder of tomcat directory
C:\xampp\tomcat\lib
to add lib directory to tomcat
import static java.lang.System.out;
Or do you possibly have more than one class named System?
Or possibly this link could be of use to you.
Just make sure that your SDK in the setting of INTELIJI is set up have a look here
I had that problem because I pulled the repository from work where we have java 8, but on my private computer, I have 17..

loading sqlsrv driver in php.ini

i got php5.4.4
and i've downloaded sqlsrv driver for working with microsoft SQL
putted the dll in the ext folder of php and in the php.ini
;;;;;;;;;;;;;;;;;;;;;;;;
; Microsoft SQL Server ;
;;;;;;;;;;;;;;;;;;;;;;;;
extension=php_sqlsrv_54_nts.dll
sqlsrv.LogSubsystems=-1
sqlsrv.LogSeverity=-1
sqlsev.WarningsReturnAsErrors=0
but when loading
phpinfo()
the extension doesn't show up .
am i doing something wrong here?!
thanks in advance.
extension=php_sqlsrv_54_nts.dll should be in [ExtensionList] section, the rest of the parameters should be in [sqlsrv]:
(...)
[ExtensionList]
(...)
extension=php_sqlsrv_54_nts.dll
(...)
[sqlsrv]
sqlsrv.LogSubsystems=-1
sqlsrv.LogSeverity=-1
sqlsev.WarningsReturnAsErrors=0
(...)
You only need to set extension to the filename without extension these days (php 8.1):
extension=php_sqlsrv
The other 3 values are only needed if you don't want the defaults.
Most important is the extension_dir setting. It is recommended to use absolute path:
extension_dir = "C:\Program Files\php\ext"