using "add fetch request" in Xcodes UI - swift

It seems that there is a convenient way to use fetch controllers using the UI of xcdatamodel. I tried to use it but could not figure out how you actually implement the fetch once I have created it. anyone have some experience with this? A link? And most of all, is it possible to comfortably add this to a fetchResultsController?
Thanks!
EDIT: the answer here core data simple fetch request template in swift helped me use the tool but I feel like it is not a full answer. (Thank you shallowThought)

Related

Create a Block with data from database in Sulu

I need to build a block with data from (Symfony) Entity.
For example a carousel with last 3 item/record from database.
This block can appear in more than just a page.
I know that I can use a custom controller but is that the best technical choice ?
Do i need "Smart content" ? Read the doc but it's not clear
How i can do that ?
Thanks in advance.
Using a twig extension or a controller would definitely be the easiest way, because no sulu knowledge is required for that.
But the sulu way of solving that problem would be a custom SmartContentDataProvider. There are two main advantages of this method:
The content editor can further filter the result (in your case probably sorting and limiting)
The result is also displayed in the admin interface (Otherwise it would just be shown in the preview)
Our community is usually using our Slack channel or GitHub Discussions for support questions. Your questions will probably be answered a lot faster there, because there we can better track them.

What's the simplest way to login to a website in swift 4

I have found other answers to this question on this site, but they seem to be either outdated or not especially descriptive. I am rather unexperienced in website access using swift so code would be greatly appreciated.
If I already have the username and password, how do I log into a website, for example this one, using swift code.
This other SA question seems to solve the problem well: How to log into web site using uiwebview with swift?
The way I am trying to solve this issue is by creating a new View Controller and adding a Web View on to it with access to the website. There's a post here Get HTML from WKWebview in Swift that could help as you are using Swift, but without any detailing of your code this issue can't be solved completely. My solution is a bit unorthodox and frankly "bad coding", but it should in theory function well and I have seen other responses which do it similarly. Also, I would revise your question and try to make it more formal/informative so everyone could have a better chance at helping you out.
Good Luck!
Edit: Reviewing a different response
The easiest way to do this as mentioned by one of your comments would be to see if the Website you are using has an API. I used a course on Udemy which explained their functionalities if you need one. I would recommend looking at the Cocoa Pod Alamofire and seeing if it could help you (perhaps in conjunction with SwiftyJSON).
Side note:
The reason why I am not using Alamofire for my project (one similar to yours) is because I could not find an accessible API.

Using overlayButtons on FusionCharts with javascript links

I would like to use a javascript function link such as 'link:j-myJS-data' for drill down type charts. I have everything working great to drill down but cannot figure out how to incorporate the overlayButton through the configureLink when drilling down. At present, I can drill down but cannot go back. Can anyone provide a basic example of how I may go about this? Is it even possible?
I thought I could add my own "Back" button to hande this as one option. I do not want to use a jsonURL as there is a lot of data and many paramertes need to be passed resutling in a long links and a lot of extra data in the JSON.
Thanks in advance.
There are multiple options available to create a drill-down chart with FusionCharts XT. Here is a table which explains all of them, with each one's syntax.
The method that you've used is the JavaScript function link. Using this one, you won't get an overlay button to go back to the parent chart.
The overlay button is available only when a LinkedChart is created.
So there are 2 ways that you could go about:
You could change all your charts to use the LinkedCharts technique. Here is a blog post detailing how LinkedCharts can be created using PHP + MySQL. If you aren't using PHP, the general idea shown still applies to any server-side environment.
You could create a separate button sitting near the chart, and this button would re-create the parent chart for you.
The button (which we call "overlay-button") can be made automatically visible using LinkedCharts alone.
However the overlay-button can be internally invoked using the charts' private API. Since these APIs are private, it may change between implementations and may not work as desired under certain circumstances. I would not recommend you to use this. If you are still interested in knowing more on this API, put in a comment and I will update this post.

GWT - area selection/imagemap

So, I'm starting to use GWT and I am having a little problem.
I have to retrieve some information about a building and I want to show to the user a floorplan for him to choose from where does he want information to be shown.
So, I tried an imagemap, but Iit is not working. Do someone has any suggestion or example of that?
Thank you,
Mauricio
I'm sure there are a couple ways of going about this. You might want to try some extension of the an already existing class as was done here with ComplexPanel http://www.koders.com/java/fid1ACE81656C6F49C2E81126751E938A61215D6A6F.aspx?s=mdef%3ainsert

Advice on how to simplify things for user

I'm making a very simple cms for a client. I am working on adding/editing articles and i wanted advice on how to make it as simple as possible for him to add images to an article. I was thinking of using some sort of bbcode [img] [/img] Any suggestions ?
*I'm using codeigniter as a framework
what are you coding in? I have used FreeTextBox.com and it has a built in image manager that is quite simple to use.