I need to make an app into which we can load pics or a folder containing pics. The pics should load into a kind of list which shows the pic according to the selected item. I should be able to rate the image from 1 to 10 and add a description to it.
Finally the app should be able to save both these data to file or database which loads the rating and description on next startup.
Related
I have coded this app that onClicklistener fetch data from the database and store them in fragments that are displayed in a frame layout on the main activity, Now I want the data to be stored in a device permanently in order to be not fetched every time the button with onclicklistener is clicked.
Sorry I am new to this.
You can do
localStorage.setItem('keyname', itemtostore)
But this is to simple. We need to know that type of data you want store, to do the right treatment
Is there a way to get two blob files from the database to display in one view.
Example:
Image 1
Image 2
[BLOB - 88.2 KiB]
[BLOB - 88.2 KiB]
This is the database table where there are two columns of images. Im trying to display it like this on my view:
-imagefile1.jpg
-imagefile2.jpg
Note that I don;t want it to be posted as an img. I want to retrieve it from the database as a blob, convert it, then post it in view as a filename that can be clicked and downloaded.
Is this possible? If so, how can I do it? If not, how can I do the alternative?
Question about Marketing Cloud Connect - In case of Individual Email Result in Salesforce, an email preview is sent from MC to SF object along with a thumbnail preview of the email template (as base64 encoded image). This thumbnail has two problems.
a. isn’t clear enough for the sales agent to see what was sent to customer
b. can’t find what offer percentage was given to customer as the preview has ampscript value instead of actual value.
There is no way to change the default configs of MCC to increase the thumbnail size. To solve this and improve the image resolution, I’ve thought of below solutions. Is there any other possible way that you’ve done?
From customer send log, take ‘view_email_url’ and get the html using a visual force page and remove all the ‘https://click…xx.com/’ links to ensure click/ open counts aren’t impacted. Downside - # of api calls to make are higher
For every email, create a jpg preview of the email template and store it in MC and store this in SF in a custom object as ‘EmailName vs EmailPreviewUrl’. And, whenever a marketer creates a new email, they have to ensure that they create a jpg copy in MC and update associated record in Saleforce custom object. Downside - sales agent will not know what % of offer is given to customer (ps - % of offer is decided in MC automation based on raw order information we’ve about this customer). To manage this downside, we can send the offer details of each customer to SF using updateSingleSalesforceObject method everytime an email is sent. To do this, all the campaigns should be standardized to some extend.
Any other thoughts? is there any configs that I can flip to increase the image size?
To answer this question, we ended up creating a cloudpage code resource (similar to API) that returns the complete HTML of 'view_email_url' (aka view as web page) for a given email + Subscriber + datesent + BU. We used SSJS to query sendLog DE using these inputs to figure out the view_email_url value. To avoid counting view_email_url opens to tracking opens, we wrapped the open counter pixel inside a context variable - something like below.
%%[
IF _messagecontext != 'VAWP' THEN
]%%
<custom name="opencounter" type="tracking" />
%%[ ENDIF ]%%
I want to build the database which gets the url from user in one cell and returns some texts to the other cells. The Url is from www.imdb.com. I saw it was possible on Google Spreadsheet. I am wondering if it's possible for MS Excel.
Like when I input a movie Url, it gets ratings,title, casts from IMDB page.
You can get pretty close using a IQY file to define the web query and the parameters a user should input. The only difference is that, rather than defining the movie id in a cell, your user will be prompted when they create or refresh a query.
To do this, you need to:
create a plain text iqy file. Call it "imdb-movie.iqy" or something.
Put this text in it:
WEB
1
http://www.imdb.com/title/["Movie ID"]/
Selection=3
Formatting=None
PreFormattedTextToColumns=True
ConsecutiveDelimitersAsOne=True
SingleBlockTextImport=False
DisableDateRecognition=False
DisableRedirections=False
In the "Get External Data pane of the Excel Data ribbon click "Existing Connections" and find your IQY file. It will ask you where to put the data and prompt you for the movie id. By right clicking, you can see lots of settings about formatting and such.
The "selection=3" entry in the IQY file determines what table to pull the data in from. It sounds like you may want a number of them.
To make your own IQY file, you can choose the "get external data/from web" and select which table to use. Then choose "save" from the dialog and you have the file. You can paramaterize it with the ["parameter name","prompt"] syntax.
Here is the link to where the data can be found. Scrolling down to Surface Data : Daily and selecting the Global and U. S. Web Page Icon. On the next page, Select the radio button Country and press continue. From the next page's drop down menu, select any state and then press the radio button for entire state (I need more than 100 stations per day).
The next page allows you to select the date range.
I am dumping these data files into excel and sorting (which is a pain, since it could obviously be
automated).
Is there a way I can access the most current data via a script (VBA or otherwise)?
My main problem is that I can't send the server a simple request to obtain the data. Also, there is an FTP site but only allows .gz files to be downloaded, each over a gig, so its not reasonable for my situation.
Any help would be appreciated!
There National Climatic Data Center has several data APIs available for this.