how to change this behaviour that appears on newsfeeds
[FacebookUser] likes a link on [AppName]
to read this way:
[FacebookUser] likes an offer on [AppName] ?
You will need to create an offer object on the Open Graph for the built-in like action. Read about defining custom objects here.
Related
How can I use a button object in Qlik sense the same way it is in Qlikview? Qlik Sense has no button object in the default objects as it is in Qlikview.
Thanks in advance!
Ziad
This is not currently within QlikSense, however extensions can be used to add more functionality.
How to add extensions
https://community.qlik.com/docs/DOC-7033
Where to find extensions
http://branch.qlik.com/
This extension may be what you are looking for
http://branch.qlik.com/#/project/570663af9a200590510ae281
there is a link for extension which enables you the option of downloading the extensions for qliksense. There by u can create the buttons like qlik view. Follow the steps as the link tells you.
http://branch.qlik.com/?&_ga=1.205648019.1497078496.1393695932#!/project/56728f52d1e497241ae698a0
have a look at https://github.com/stefanwalther/sense-navigation
This solution not only allows you to add a button to your sheet, but also to selection from a variety of actions like:
gotoNextSheet
gotoPrevSheet
Set variable value
open website
...
Although the question is quite old, it is worth noting that buttons are now part of standard Qlik Sense charts.
I have a cocoa app that allows the user to enter a query. I'm using an NSWebView with a TextArea HTML object. The problem is, as soon as I type anything into the textarea, my document gets marked as updated. Does anyone know of a way to prevent this?
I've verified that using a NSTextField does not reproduce this behaviour, but I specifically want to go with the HTML/TextArea for styling.
So basically: Can I make it so an NSDocument does not get marked as edited unless I manually call:
[document updateChangeCount: NSChangeDone];
This post on the Apple mailing list seems to match your problem exactly.
The solution suggested is to set a custom undo manager to the webview (sounds like hard work), however a quick-and-dirty hack looks to me like subclassing updateChangeCount and perverting things to your way of thinking.
How to show Quick Help for the methods which we wrote ...?
Like for inbuilt function when we right click on it & Click Quick Help then we get all info about that method like that I want to do for user defined methods so that any one come to know that method takes which parameter and each parameter for which purpose?
For more explanation, see these two images:
Here is a solution for that. Also check apple documentation. You might have to create document set and install it in Xcode.
Edit: Here is another similar post, How do you populate the Xcode 4 "Option+Click" popover?
There is an open source tool called appledoc which helps with this. You can provide your own documentation in the header files and then run the appledoc script which will (depending on your settings) generate the docsets, install them into Xcode, create a HTML for the documentation as well as rss feeds so that changes to the documentation can be published.
I would like to create a filter bar like the one in the Mail app:
Do you have any suggestions on how I could do?
My application is targeted only at OS X 10.7+, so I'd really like to use the most modern method available.
Thanks.
MGScopeBar is an open source component that will mostly do what you want. The appearance is not exactly the same, but you could easily change that.
That is called FavoritesBarView in the Mail application. it looks like its source code exists in webkit source code.
I followed this nice article
http://www.lunatech-research.com/playframework-file-upload-blob
and have a perfectly working image upload solution
My questions is, if the user doesn't select any image, how do I assign a default image during save (probably stored in the server)?
if (!user.photo)
user.photo= ?;
user.save();
The one-hack that I can think of is upload the default image and see which UID "Play" stores in the /tmp directory and assign that above. Is there an elegant named* solution to this?
when I say named, I mean I want the code to look like (which means I know what I'm doing and I can also write elegant automated code if there are more than one picture)
user.photo= "images/default/male.jpg"
rather than (which means I'm just hacking and I can't extend it elegantly for a list of pictures)
user.photo= "c0109891-8c9f-4b8e-a533-62341e713a21"
Thanks in advance
The approach I have always taken is to not change the model for empty images, but instead do something in the view to show a default image, if the image does not exist. This I think is a better approach because your are corrupting your model for display purposes, which is bad practice (as you may want to be able to see all those who have not selected an image, for example).
To achieve this, in your view you can simply use the exists() method on the Blob field. The code would look like
#{if user.photo.exists()}
<img src="#{userPhoto(user.id)}">
#{/if}
#{else}
<img src="#{'public/images/defaultUserImage.jpg'}">
#{/else}
I have assumed in the above code that you are rendering the image using the action userPhoto as described in the Lunatech article.
I'd assume you can store the default image somewhere in your applications source folder and use
user.photo.set(new FileInputStream(photo), MimeTypes.getContentType(photo.getName()));
to save the data. Photo is just a File object, so you can get the reference of your default image and use it.