no response when execute .sh file by double click on fedora20 - intellij-idea

Today,I installed fedora20 on my computer and then downloaded the Intellij idea13, but when I execute the file by double clicking, there is no response. But it works well in a terminal with ./idea.sh.
Thanks, I need your help!

I'm not a fedora user but the following may help you to understand the problem.
When you double-click an item from the file manager, the default application for that type of file is loaded.
That depends on the configuration for the specific MIME type (which is application/x-sh).
There's a big chance that the default application for .sh files is set to gedit or kwrite depending on the desktop environment. The Intellij Idea installer is binary file and maybe the application is failing to load.
Have you tried right-clicking the file and select the option 'Open in Terminal'? The context menu may also show something like Execute or Launch.

Related

Photoshop - simple Open File action on MAC

Could anyone send the ATN file with only one action -> opening PSD file on Mac?
I've made an action with a lot of steps, it's working good but only on Windows. There is no relative paths in PS actions, and i have no friend that has Mac. Could anyone prepare ATN file (so i will be able to copy "open psd file" step)?
Regards,
Luke
Short answer: this won't work. Even though Photoshop has "shortcuts" paths that are similar for both OSX and Windown (like ~/Desktop is a shortcut for desktop folder no matter of OS and username), Actions don't seem to recognize them. Furthermore, if you record an Open Action on Windows or Mac and open it in a different OS, you'll get a File or folder not found message for this step:
Here're two examples. In bot cases the top Action was made in Windows and the bottom one on Mac. This is a Mac screenshot:
and Windows:
Notice how Action1 on the Mac screenshot has File or folder not found message and on Windows there's the same message for Action2 from fromMac set.
Here's what you can do though.
insert Open as a Menu Item. This way user will be asked for a file you need every time a user calls the Action.
give the file you need to open as a pattern file (.pat) and ask a user to install it. This way you can fill a document with it using the Fill command.
most powerful: use a script. You can convert your action to a script file using the xtools: there's a script within it called ActionToJavascript: this will give you a .jsx file that you can use in Photoshop and that will work exactly as your action. And in this script you can specify a path for your action. Like here I'm specifying a file on my Desktop:
And this script will work on Mac.

How to run Luke(Lucene tool)?

I had downloaded 'Lukeall-3.5.0' on http://code.google.com/p/luke/downloads/list It's a JAR file , but i don't know how let it work? Can somebody show me the detailed steps to run Luke? Thank you!
You can run eg. from command line issuing java -jar lukeall-3.5.0.jar command
If you want the .jar to run on double click then you have to make an association between .jar files and the program that needs to open them, javaw.exe. You can do this manually by following the steps below, or see this site for an automatic tool called Jarfix.
Right click the .jar and go to "Properties"
Click "Change"
Click "Browse..."
Navigate to your Java install folder
In the "bin" folder you should see "javaw"
Select "javaw" and click "Open"
Click "OK"
Click "Apply"
Tried everything including jarfix , javaW commandline but was not running.
Then I downloaded the jar from this link https://code.google.com/archive/p/luke/downloads. there are many .jar and .tgz file. I tried the latest one with "type-executable" label on it. And once it was downloaded somehow the extension got changed to .zip.
1) changed the extension back to .jar
2) right click open with -> Java(this was installed before)
Bingo! Luke opened up!
At first, you need to download and install Java Runtime to your PC.
Then open command prompt: press Windows Key + R, type cmd in the textbox and hit Ok.
Change directory to your jar file locating folder (using cd command), type java -jar .\yourFileName.jar and hit enter.
Hope this will work.

Associate a different program for opening my output file in IntelliJ

I just started using linux (Ubuntu) and switched to IntelliJ as my new IDE. I just finished setting up my first project, but I can't find where to change the default program for opening my .swf output file.
Right now it keeps opening my file with 'Movie Player' which doesen't even recognize .swf files.
Is this a linux setting I have to change (default program for filetype) Or a setting in IntelliJ?
Usually it's possible to override the application in the Run/Debug configuration. For Flash the setting is Launch with, for Haxe it would be Alternative executable.
You can set it up here:Settings > IDE SETTINGS > File Types. This will change the view mode for different file types. As on my windows machine, .swf is not in the list. This may indicate that you have to change this file's default program in your OS (Ubuntu).

How to resolve Notepad++ "Writing error summary to C:\Program Files(x86)\ ...\HTMLTIDY.ERR" on Vista?

How to resolve Notepad++ "Writing error summary to C:\Program Files(x86)\ ...\HTMLTIDY.ERR" on Vista pc?
I have the latest version of notepad++ (just updated it two days ago).
When I try to run TextFX htmltidy, I get the above error reported by windows vista.
I've set permissions on the file htmltidy.err to allow everyone to modify/read/write/etc.
I do not understand file permissions in Win Visa.
2nd issue: I also have to click 'Allow' whenever I click to launch notepad++ even though I granted the program exe admin rights. UAC says it is an unidentified program.
Do I need to reboot to make these changes effective? What am I missing?
This is not an error, simply a message:
Any errors found in the HTML codes are being written to this file.
For example:
line 1 column 1 - Warning: missing declaration
This is a Windows 7 restriction. Programs should not write into Program Files folder. Instead it should use a temporary folder like %TEMP% or/and %APPDATA%.
Another possible solution is to install Notepad++ outside Program Files folder, in that way you can hanle file and folder permissions by yourself.

Build and Debug application outside the default package

If I try to build an application with the application class outside the default package, so the application file path is /app/AppClass.mxml instead of /AppClass.mxml (as would normally be the case), Flash builder cannot launch the application for debugging because it is looking for the SWF in debug/app/AppClass.swf and the SWF is being output to debug/AppClass.swf instead. Changing the output folder to debug/app makes it put the swf in debug/app, but then it puts the application configuration file "AppClass-app.xml" in /debug/app/app and then that can't be found.
Is there a way to change only the SWF output folder, or the location of the xml configuration file in the run-configuration?
You may use symbolic link to created swf file - http://en.wikipedia.org/wiki/Symbolic_link
for example for Windows :
cd project/path/bin-debug/package/path/
MKLINK ClassName.swf project/path/bin-debug/ClassName.swf
and it's work
or you can use symbolic link for folder:
cd project/path/bin-debug/package/
MKLINK path project/path/bin-debug/ /D
I think I remember this worked for me. But it was long time ago. And, yes, it is a known problem, I also recall Adobe people mentioning it as a limitation of FB.
In my Ant script, you'll need to do the adjustments to reflect your actual file names and directory structure. Also note that it will make it more cumbersome to debug it from FB. You'll need to use the debugging target in Ant, and then connect the debugger to the running application (so that some info, especially on the startup) will be lost. The only way you would be able to debug it, though I've never tried it, is with the commandline tools (I'm not sure of adl syntax for breakpoints / printing / stack frames, so idk how to do it.
Also, for the released application you will probably want to change the signing mechanism.