How to add flex project to rails project? - ruby-on-rails

I'm starting to learn in flex and ruby on rails.
I see some projects there is a flex folder under rails_project/app which
contains controller,
models, views. I think it's not mannually to add these folders to rails
project.
How to do that?

Since you didn't specify an IDE this is tough to answer.
In Flash Builder, you may be able to right click on the project and "Add/Change Product Type" which would add a Flash Builder 'nature' to the project.
If all you need is access to the code; You could also add mapped directories to your rails project that point to your Flex source code located outside of the project root. This wouldn't give you 'advanced' Flash Builder features such as compiling the project when you save Flex code, but it would make the code accessible from that project.

If you don't know it yet, you might wanna look into http://flexonrails.com/
where they offer a bunch of example applications and you can see the full source codes of both flex and rails side...

Related

Can't access Xilinix SDK 2019.1 application templates

Title explains most of it. When I create a new application project in Xilinx SDK 2019.1 and get to the templates window, the only two available options are 'Empty Application' and 'Opencv Example Application'.
When I look in the /tools/Xilinx/SDK/2019.1/data/embeddedsw directory (which is the default SDK installation repository listed ) I can find many more templates under lib/sw_apps. Directories such as hello_world, and in particular zynq_fsbl which I am looking to use, are in there.
I would like to know how I can actually use these templates and why they are not showing up when creating a new application project.
Apparently the Target Software language of the application project must be C to access these templates. I was trying to use C++.

ReSharper I18n features don't work

I have an Asp MVC app that was developed with no I18N in mind. Now I need to move all hardcoded strings from Razor views and from C# code to a resource file.
I thought I can use ReShaper to help me with that as described here:
https://www.jetbrains.com/resharper/features/internationalization.html#Move_Strings_to_Resource_Files
However, it doesn't highlight/underline hardcoded strings in any of my project files (views, classes, ...).
Do I need to enable this somehow? I'm running VS2015 + ReSharper9
You need to create a resource file in your project before any features show up. Go to the project properties, select the resources tab, and click on the link to create a file.

Developing Umbraco with Visual Studio - best practices

I have two environments that use Umbraco: Live and Dev.
As I have in research, Umbraco will be create a physical file when a user creates a new partial view, macro, etc. so, I have two questions:
1. What is the best way to know which files were created on Live and how to migrate them to Dev environment for the purpose of creating new features?
I have tried to Google and found "Hybrid Framework" but it is not up to date and I want to maintain code by myself.
2. I want to extend Umbraco with my own code. What is the best practice for this? (I do not want to change any code in the original Umbraco Source, just create my own new code)
As I know, I can create a package for extending code but I just want to know the other ways.
Partial Views, Macros , Templates are .cshtml files, these will not affect your source code. Same is case with css and js files; these will not harm any source code.
Just copy paste these files in respective folders and reload the nodes in backend. It will work properly.
Other way is you can create a package zip file from developer section where you can export datatypes, content and files, and install it in other environment.

Why does this project appear to have links to files in another project?

This is the TaskyPro solution, available here: https://github.com/xamarin/mobile-samples/tree/master/TaskyPro/
If you look at the solution structure on GitHub it doesn't have anything odd about it, but when I load the solution in Visual Studio it appears as follows:
The Tasky.Android project contains the same folders as the Tasky.Core project, and it appears to have links to the files in Tasky.Core. However, when I view the folders in Windows Explorer they are empty. If I view the properties of the links, the Full Path property points to the actual file stored in the Tasky.Core project.
Why are these links here? Can I remove them?
File linking is a way to share the same files across multiple projects without having to maintain multiple copies of each file by hand. In this case, it allows you to compile the same source files for both .NET and Android. Xamarin has a lot of documentation on this, including this article which describes how Tasky is architected and implemented. I also recommend reading this guide on Sharing Code Options.

Should I put my flex project within my rails project?

I have a project with a RESTful Rails back-end and a Flex front-end, first time for me with this combo and I debating whether to put the flex source somewhere inside the Rails folder hierarchy or making it a separate project. If I do so which folder would be most suitable /lib?
Also be doing one click deployment with Vlad which can also compile the flex app and dump it in the public folder.
Or does anyone have any good reasons why the flex project shouldn't reside within the Rails folder hierarchy?
Cheers
From personal experience, it's fine in the Rails folder structure. We have a "/flexsrc" folder a the rails project level in git, and when we build, the swf and related files are dumped to the /public area. It's been this way for a while, and there's no apparent drawback.
I think it would be more of a hassle to have two source depots.
(disclaimer, I've only used Flex with PHP and Java, I'm not terribly familiar with Rails so I can only really address the last part of the question).
My general experience is that it is best to keep both Flex and its hosting server components in the same source tree and svn project. Unless you have reason to believe that you are going to need a different server at some point, I can't really imagine any reason why you wouldn't want to:
Keeping them in the same project makes it easier to automate builds (in Java definitely, and it sounds the same in Rails).
If they are in the same tree, then it is easier for other developers to work on the same code without using SVN externals.
Placing them as separate projects can complicate compiler arguments for RemoteObjects and the like
This is the way I do it:
AppRepo
FlexAppFolder/
RailsAppFolder/
I like the Glenn's approach, but as ChrisInCambo said he's using a RESTful Rails back-end, which means that Rails has a bunch of services to expose and which means that the services could be consumed from different clients (front-ends), maybe not now, but in a future.
Another approach could be
RailsAppRepo
FlexAppRepo
and if you're using git you can do:
git submodule add backend git://your_backend_repo
or an svn external
Any ideas?

Resources