App Inventor 2 special character for adding a "space" character when joining text - app-inventor

I'm mocking up an android app, using App Inventor 2. I utilize two textboxes where user inputs e.g. username and password. I store those two text inputs in a TinyDB tag, combined using join text.
From a listview, user picks a "nickname" that is stored in a TinyDB tag. What I can't achieve succesfully, is sending user an SMS, by having these TinyDB tags combined in a string seperated with a "space" text character. Something like that: "tag1" space "tag2".
I have already tried to use "replace all text" block with no success, as I'm geting the SMS in one string without any spaces. It would very helpful if somebody could direct me to the right path, to get this app running, or sharing a code snippet or special characters usage in App Inventor 2.

use the join block to join the following 3 elements:
tag1
a text block, which contains a space and
tag2
see also the documentation http://ai2.appinventor.mit.edu/reference/blocks/text.html#join
see also how the mutators work http://appinventor.mit.edu/explore/ai2/support/concepts/mutators
A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook http://www.appinventor.org/book2 ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles
How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .
Also do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

Related

Add Tripadvisor Review as Rich Snippet

I've read a bit about rich snippets and I'm interested in the reviews part.
Is there a way to add the TripAdvisor aggregate reviews dynamically as a rich snippet without "hard-coding" the number of stars and a review?
From what I've read rich snippets are not dynamic, so I can't add a link or a tag for example, that would automatically just load my star ratings and the text of the latest review (just like a widget would do).
Is there?
The site is created in Joomla and I've installed J4Schema to add rich snippets.
Figured it out eventually.
Rich snippets are currently a "manual thing". Meaning that you will insert them by hand in your code, and you can reference TripAdvisor externally, but this will not create a link to the TripAdvisor account.
Google, at some point (in my case, after 6-8 months) will process these rich snippets, and will show them for the search result in question.
Also, a periodic update of these snippets is to be maintained to insure relevance.

reCAPTCHA is accepting random values

I'm using Greg Gilbert's reCAPTCHA validator for Laravel 4 (https://github.com/greggilbert/recaptcha).
I know that reCAPTCHA only needs one word on two to validate forms but my problem is different. I actually have a single word displayed on my reCAPTCHA, the second one is missing. And unfortunately, the displayed word is the "pictured-word", you know, the word for which you can write whatever you like and it will be accepted.
So if it shows number 109, I can write "108" and my form will be accepted.
How to fix that please ?
After some tests, I've found that if I use Firefox's "Private navigation" window, my reCAPTCHA is displaying 2 words instead of 1 as I described here.
It means that if you are connected to your Google account on your web browser, reCAPTCHA "trusts" you a little bit more than a not-connected user and shows you only one word/number.

What is the way to show small part of an article and make it open with read more link in codeigniter?

I am a newbie coder. I have learned a lot in the few weeks. Now I am making my blog site.
What I want is , show the limited part of 6 or 8 articles in the content div and make a read more link to show the article.
Can you tell me a way to do it?
Load the string helper and use the word_limiter, character_limiter (google for docs)
Or, contain a paragraph called "Summary" (varchar(255)) different to your main "Content" field (TEXT).
Initially load string helper and do as follows
word_limiter("data",limit);
You can check it here

Open Graph ticker localization

My app adds lines like this to the ticker "[User] read [article] on [app]". I'd like to have that translated into Danish for users that use Facebook in Danish, so I've added this to the meta tags:
<meta property="og:locale" content="da_DK" />
The name of the object is "read", and the action is "article".
Unfortunately, the ticker line isn't shown in Danish, just English. How do I make it do that? I've already read https://developers.facebook.com/docs/internationalization/, but I can't get it to work. Is it possible that the action/object just haven't been translated into Danish by whomever translates Facebook? If so, how do I confirm that?
https://developers.facebook.com/tools/debug returns no error for the page, and the language tag seems to be correctly parsed.
Yeah, this kind of translation is done in the Facebook Translations app.
Go into your app settings, click edit, and on the left there will be a link to "Translate your App" - in this tool, you'll be able to specify the non-English structure of News Feed and Ticker stories.
The object itself (title etc) in Danish will be picked up from your object URL.
Talking about the Translations Admin Panel, tab Browse Phrases, column Status, reachable under:
https://www.facebook.com/translations/admin/dashboard.php?app={APP_ID}&aloc={LOCALE_YOU_TRANSLATE_TO}
What should then be the right value for this column? I have I approved at the moment and translations are not visible in the OpenGraph messages appearing in the Ticker or on the Timeline.

Web page summary with Ruby

Can anyone recommend a Ruby library for creating a summary of a given URL? What I have in mind is the sort of one- or two-sentence summary as seen in search engine results.
You could you just scrape the web page for either description meta tag or if that's not available the first few sentences from the first <p> element on the page. The description meta tag looks like this:
<meta name="description" content="Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser with XPath and CSS selector support." />
There's several Ruby libraries for parsing HTML. I hear that Nokogiri is good for this sort of stuff, but I have no experience with it personally.
Spidering a site and scraping pages is easy. Summarizing a page is difficult.
The metatags can help a little, as there is supposed to be a direct correlation between the summary and the content.
Unfortunately, not all pages have them, and many that do are inaccurate. That leaves us with having to scape text, hoping that it's pertinent to the content and context. Page layouts vary and there is no standard saying where on a page the main content actually lies and, because of CSS and Ajax, it might not be where we'd expect it, in the first couple lines of text. There might not be <p> tags, as a <div> or <span> with the appropriate CSS can replace the look.
I've written many spiders that did contextual analysis of the pages, trying to summarize, and it's ugly and not bullet-proof, especially when dealing with the English language because of homonyms, synonyms, and other "nyms" that get in the way.
If you can locate text to summarize, there are decent tools to reduce several paragraphs, or a paper, into a short sentence. Mac OS comes with a summarizer, and has for years. "Summarize Text Using Mac OSX Summarize Or Microsoft Word AutoSummarize" talks about enabling it if you want to experiment. "Mac 101: Shorten text using the Summarize Service" is about using it on the Mac. There's a driver or app for it that can be called from the CLI. See "How to use Mac OS X's Summary Service on the command line?" for more info.
And, as a demo, here's Lincoln's Gettysburg address summarized to one line:
It is rather for us to be here dedicated to the great task remaining before us—that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion—that we here highly resolve that these dead shall not have died in vain—that this nation, under God, shall have a new birth of freedom—and that government of the people, by the people, for the people, shall not perish from the earth.

Resources