You can create a multiplatform app with Phonegap. At https://build.phonegap.com you can also compile the app and generate ipa/apk files. If you want, of course, to publish it on iTunes/Google Play you have to use a certificate. Here, how to create&use an iOS certificate.
My goal was to create a base64 string representing the pdf, then send it to my mobile app and show it to the user (here for more info).
The following code is written using the Select.HtmlToPdf.NetCore package.
In my app, I need to download a pdf file from my api (base64 encoded, here how to create it), convert it and finally open it. Here how I made it.
Here a fast snippet
update my_table set path = replace(path, 'oldstring', 'newstring')
If useful, you can also set a where condition.
I need all values to rounded to 8 decimal places. So, for example, 1.2 should round to 1.20000000, but Math.Round(value, 8) rounds to 1.2.
I’m using a C# class to populate and then serialise to xml. One of the values is a double. If I assign a ‘1.2’ to the value this gets serialised to ‘1.2’ when I actually need ‘1.20000000’.
I found this fast way to do this without converting the number to string:
foo = doubleValue + 0.00M;
And that makes the value 1.20000000 instead of just 1.2. This was better then doing a ToString and then parsing it back.
Another fast snippet: how to group by the date.day from a date/datetime column.
select sum(amount) as total, dateadd(DAY,0, datediff(day,0, created)) as created from sales group by dateadd(DAY,0, datediff(day,0, created))
Here a very fast but useful snippet:
List<int?> nullList = myIntList.ConvertAll<int?>(x => x);
I needed to create a simple FAQ page for my Phonegapp app. I found a lot of sample, but all of them were too complicated, I was searching for a simple one.