Wednesday, October 17, 2018

Use Ractive.JS for your web pages

Ractive.JS consists of a UI library that works with templates. Ractive JS library transforms style, logic to highly interactive apps.

It has out of the box support for,

Powerful and extensible components,
two-way binding,
scoped CSS,
SVG support and
animations.

There are also plugins if the above are not sufficient.

It does not have a very steep learning curve like other frameworks.

It's origins are in the News media company, the Guardian. Originally used for producing News related applications where the demands and interactivity are very high.

Nice thing is,  you are not locked to it like other frameworks.

Here is the script reference to Ractive.JS



Continued here:

Monday, October 15, 2018

On converting a picture file to PDF

Some sites do not accept image files and they suggest a PDF format as acceptable.

There are more ways than one to do this.

1. There is an online tool here that you can use:

https://png2pdf.com/

While using this site, do not simply click the big green buttons but use this image as guide. Click Upload and Download buttons that are highlighted in the image below.



2. You can use Adobe Acrobat to Convert your Image. You can use the free trial of Acrobat

3. I just paste the image in a Word [Version 1808 Build 10730.20127] document and save the Word document with a .pdf extension. You can paste multiple images + any text you like and create a single PDF.

Friday, October 12, 2018

Reading a SPSS file using R

SPSS files are created using the SPSS software from IBM. You could read these files using R provided you can install the 'haven' library from one of the CRAN sites.


Rlib_Haven.png


Install 'haven'
--------------
> install.packages("haven")
Warning in install.packages("haven") :
  'lib = "C:/Program Files/Microsoft/R Client/R_SERVER/library"' is not writable
also installing the dependencies ‘assertthat’, ‘lazyeval’, ‘Rcpp’, ‘readr’, ‘hms’, ‘tibble’, ‘BH’

trying URL 'https://mran.revolutionanalytics.com/snapshot/2016-11-01/bin/windows/contrib/3.3/assertthat_0.1.zip'
Content type 'application/zip' length 44884 bytes (43 KB)
downloaded 43 KB

trying URL 'https://mran.revolutionanalytics.com/snapshot/2016-11-01/bin/windows/contrib/3.3/lazyeval_0.2.0.zip'
Content type 'application/zip' length 137793 bytes (134 KB)
downloaded 134 KB

trying URL 'https://mran.revolutionanalytics.com/snapshot/2016-11-01/bin/windows/contrib/3.3/Rcpp_0.12.7.zip'
Content type 'application/zip' length 3265183 bytes (3.1 MB)
downloaded 3.1 MB

trying URL 'https://mran.revolutionanalytics.com/snapshot/2016-11-01/bin/windows/contrib/3.3/readr_1.0.0.zip'
Content type 'application/zip' length 1167814 bytes (1.1 MB)
downloaded 1.1 MB

trying URL 'https://mran.revolutionanalytics.com/snapshot/2016-11-01/bin/windows/contrib/3.3/hms_0.2.zip'
Content type 'application/zip' length 20730 bytes (20 KB)
downloaded 20 KB

trying URL 'https://mran.revolutionanalytics.com/snapshot/2016-11-01/bin/windows/contrib/3.3/tibble_1.2.zip'
Content type 'application/zip' length 614069 bytes (599 KB)
downloaded 599 KB

trying URL 'https://mran.revolutionanalytics.com/snapshot/2016-11-01/bin/windows/contrib/3.3/BH_1.60.0-2.zip'
Content type 'application/zip' length 15529292 bytes (14.8 MB)
downloaded 14.8 MB

trying URL 'https://mran.revolutionanalytics.com/snapshot/2016-11-01/bin/windows/contrib/3.3/haven_1.0.0.zip'
Content type 'application/zip' length 800532 bytes (781 KB)
downloaded 781 KB

package ‘assertthat’ successfully unpacked and MD5 sums checked
package ‘lazyeval’ successfully unpacked and MD5 sums checked
package ‘Rcpp’ successfully unpacked and MD5 sums checked
package ‘readr’ successfully unpacked and MD5 sums checked
package ‘hms’ successfully unpacked and MD5 sums checked
package ‘tibble’ successfully unpacked and MD5 sums checked
package ‘BH’ successfully unpacked and MD5 sums checked
package ‘haven’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
        C:\Users\TEMP.HODENTEK9.000.001.002\AppData\Local\Temp\Rtmp84xjOn\downloaded_p

-----
Load the library
> library(haven)
-------------
I will try to read a file called 'employees.sav' which I downloaded to my laptop from internet here :

(https://www.spss-tutorials.com/spss-opening-data-with-syntax/).

Now I run this statment in R (Microsoft Client R.GUI)


Rlib_Haven_1

That's all folks!

Thursday, October 11, 2018

Problem and Fix: The app did'nt start(HRESULT:0x8027025B)

 The fix was to use the right combination of Target min version.

I faced quite a bit of downtime due to the wrong choice of the target version working with UWP Projects. Web search to find a cure sent me searching for answers I could not find.

I am using Microsoft Visual Studio Community 2017 Version 15.8.1. The Dell Laptop is running Evaluation copy of Build 17733.rs5_release(18083-1525). [This OS has a problem in that when you shutdown and restart the OS, it will reinstall the OS afresh wiping out some of the folders; saved passwords; saved items in Microsoft Edge. Visual Studio also gets reset.].

Now coming back to the right Target version for working with UWP projects, there are three options for the Target version shown in this image.

RightTargetVersion_0

Of the three options only one of them allows the Design editor in Visual Studio come up without this error - The app did'nt start(HRESULT:0x8027025B). This is the only one that works:

Windows 10 Creators Update (10.0; Build 15063).

Regarding the choices for the Min Version, Build 15086 and Build 15063 works without any changes, just the Solution refreshes.
RightTargetVersion_2

However, if you were to choose Build 14393.0 you need to install the required SDK.
RightTargetVersion_1

These findings are summarized in the next image.


RightTargetVersion_3
DMCA.com Protection Status