How can I edit a class File? - .class-file

I am trying to Edit a dot class File for Markus Persson's game MiniCraft to add a Save button to the game. But I can't Figure out how to edit the class files.

.class is a "compiled" Java file. You don't edit that file, you would need the Java source.

Related

Exporting a markdown file with inline PlantUml as a single SVG file

Our orginization uses markdown files with embedded PlantUml. We're trying to export the full markdown file to a single .svg file so we can view it on a third-party application. The plantuml VSCode plugin can export each embedded uml diagram to its own file, but doesn't appear to have an option to export the entire markdown to a new format.
Example
I would like this markdown diagram
## Read
```plantuml
#startuml
ClassA -> ClassB: Read done (location)
#enduml
```
## Write
```plantuml
#startuml
ClassC -> ClassD: Write done (location)
#enduml
```
## Etc...
to be exported to a .svg file that looks something like this:
(This is a screenshot from Visual Studio, so ignore colors/fonts that may be different than a rendered .svg.)
I want the headers to be included as a part of the .svg, not just the class diagrams.
It looks to be related (https://github.com/yzhang-gh/vscode-markdown/issues/684), which embeds PlantUML diagrams in the HTML.
Starting from Markdown All in One v3.0.0, you can export Markdown file to HTML which looks exactly the same as inside VSCode. In your case, just install both extensions (PlantUML and MAIO).

Flash CS6 - What is Best Practices for Where to Put a Document Class?

Suppose you are given a folder with these 5 things in it:
folder: bin
folder: src
folder: lib
folder obj
ProjectName.as3proj
I am right now just creating a .fla called ProjectNameShell.fla that is basically an empty file. I just use it to publish through CS6 and also state which class to start from. Is the standard place to put this fla in this first folder or in src?
I did something similar to this when I got fed up with Flash Builder and switched to coding in Sublime Text 2 and published using Flash CS5.5.
You want to place the ProjectNameShell.fla in the same folder as the main document class that you point to in that file. Also, if there are any external classes that you require in your code make sure to add the class paths to these files using the ActionScript 3.0 Settings in Flash preferences.

Path to layout xml files in magento

I have seen that we can place our layout xml files in
app/design/frontend/default/default/layout
or we can place our customization inside
app/design/frontend/base/default/layout/local.xml
file, but I have read at magebase and at magentocommerce that we can place our layout files under
app/design/frontend/your_interface/your_theme/layout/
or
app/design/frontend/[package]/[theme]/layout
So if we I have package like 'Kaushikamdotcom' in 'app/code/local', should I have to create that same package under 'app/design/frontend/' ? I tried many patterns, but nothing worked out for me.
I am quite sorry that I have made such a blunder asking this question, but I am answering this as lots of people will be making the same mistake. Package means; in the admin side of magento open
System->Configuration->Design
Then change the configuration scope to Main website. Then select Package section, uncheck the default check box and use your package name such as "Test". Then create the following folder structure.
app/design/frontend/Test/default/layout
Place your layout xml files here. If you are using your own themes use that name instead of default.
It depends what layout-xml file you have.
If you want to build up your theme, use the local.xml file in your theme dir.
If you write an extension and want to add a block to use inside this new extension, add a layout-xml file via config.xml and add it under base/default/layout/yourname.xml
When you do it this way, your theme-related changes only appear in the theme and your extension-related changes are theme-independent

How to work with a classpath resource in FXML to stay compatible with SceneBuilder?

When i'm using an image in my FXML code like this...
<Image url="#/de/myprj/assets/icons/arrow.png" />
...everything goes fine until the moment when i want to edit the FXML file in SceneBuilder. How can i use such resources within FXML with SceneBuilder?
It is far safer to set the image using CSS, either in scene builder or preferably in a stylesheet specific to your app.
Checkout: http://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.html#imageview
edit:
Create a css file, load it into the scene's css files when you start your application.
scene.getStylesheets().add(new File("mycss.css").toURI().toString());
In your CSS file add the following:
.the-image {
-fx-image: url("theimage.png");
}
Make sure there is a file called theimage.png in the same directory as your css file. In scenebuilder, click on the ImageView. In the box that is labeled "Style Class" add the string the-image.
Voila.

silverstripe - adding styles to 'styles' drop down menu on editor

from the question above, I thought it would be relatively easy but i can not find any documentation on on how to add styles to the 'styles' drop down menu. can anyone push me in the right direction?
The styles dropdown is automatically populated based on classes found in your theme's typography.css file. To add classes, just ensure that they are defined there. Alternatively, if you want to give the classes friendlier names or to remove some classes from the list, you can explicitly define the styles that you want listed by putting this in your _config.php file.
HtmlEditorConfig::get('cms')->setOption('theme_advanced_styles',
'Name 1=class1;Name 2=class2');
It's a feature provided by TinyMCE, the WYSIWYG editor component, and this line is just setting the theme_advanced_styles setting of TinyMCE when used by the CMS. This thread on the TinyMCE site also discusses it.
Also note Markus' answer below: editor.css needs to be in the theme css folder and include the typography.css.
The answer of #Sam Minnée only works, if the editor.css is also in the theme css folder and includes the typography.css.
Here is a more detailed description of how these two play together.
If you have troubles getting the new styles appear in the editor, try the following:
yoursite.com/admin/?flush=1
Check the file permissions on your mythemes/css/editor.css file. It should be readable by the webserver user.

Resources