Asset Management

Some things to look at:

There was also:

https://bluetallyapp.com/article/it-asset-management-best-practices

https://www.capterra.co.uk/directory/30077/it-asset-management/software

PRior to that:

Then:
https://www.reddit.com/r/sysadmin/comments/p9expo/which_asset_management_management_software_do_you/

Not use SnipeIT for a large enterprise.

Lansweeper for Asset Inventory



* Integrations needed – that will be used

NetBox (OpenSource, great for IT) and ITEXIA

Asset Panda

Freshservice
OCS-Inventory!

+1 for snipeit it’s an amazing tool but it has 1 huge asterisk. GARBAGE IN GARBAGE OUT, if you are not 100% diligent on ensuring all your input data is accurate and matches up things will get ugly fast.

Are agents needed, or would they be allowed to run?

https://www.reftab.com/

https://msftstudentcert.cloudreadyskills.com/

https://microsoftedu.eventbuilder.com/event/40434/recording

https://sill.etalab.gouv.fr/software?name=GLPI

Posted in Uncategorized | Leave a comment

Day 8

The plan outlined yesterday was as follows:

Plan for Day 8:

Try to get some simple code from the https://github.com/openfoodfacts/openfoodfacts-java and the sample app: https://github.com/openfoodfacts/openfoodfacts-java-demo

For this we may need java 11 – and I suspect that the new code for v6 of SPIA will need the same – per the pom.xml file that was last reviewed.

So – a couple of things on this:

To get the java version, I used the sdkman that was outlined in this excellent post – https://stackoverflow.com/questions/52524112/how-do-i-install-java-on-mac-osx-allowing-version-switching

To get the demo version of the OpenFoodFacts code working – after a bit of effort to figure out why the manifest was causing an error – and am now using a very simple Java application configuration, designed to just run the demo class – which is ‘Application.java’.

I had to add facets to the code ( or make it a Maven project) and eventually it was runnable. Too rusty on Java stuff that was not well understood in the first instance, I suspect.

Added it as a project (008) and Run – Java Application now runs from within Eclipse.

Still using 006b as the project to learn from. Continuing from p51 in SPIA v5.


A number that passes the Credit card Luhn Check is: 123456789007


Got as far as page 66 – and note that:

 H2 console available at ‘/h2-console’. Database available at ‘jdbc:h2:mem:tacocloud’

Posted in Uncategorized | Leave a comment

Day 7 Working through to page 51

This was reasonably well defined and scoped effort. Continuing though the book to make progress and learn a little bit along the way.

Thankfully, the code is compiling at the moment, and small changes to the class names still seem to work – so the link between the template and the object needs to be better understood by me.
Note that Ingredients, ProcessTaco and other things seem to be renamed in the new code – for better, I guess.

Working the app:

http://localhost:8080/

http://localhost:8080/design

http://localhost:8080/orders/current

good links:

Calculate the Luhn codes: https://www.dcode.fr/luhn-algorithm

Helped solve problems:

Lombok:

This helped with some basic elements: https://stackoverflow.com/questions/45461777/lombok-problems-with-eclipse-oxygen


However, installing with the latest version of Java – needed this to solved it:

https://github.com/projectlombok/lombok/issues/2882 – i.e. add the following:

The ‘eclipse.ini’ now looks like: – Access it via the ‘Applications’ – Eclipse – Show Package contents

-vmargs
--illegal-access=warn
--add-opens java.base/java.lang=ALL-UNNAMED
-Dosgi.requiredJavaVersion=11
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-Dsun.java.command=Eclipse


Note that I put the jar into the eclipse Application – Contents – as follows – to ensure that it can be found. Need to remember this if eclipse gets re-installed.

Also:

Added some of the code from this file to the pom.xml – just for explicit reference to it as there were some issue initially.
This is taken from: https://objectcomputing.com/resources/publications/sett/january-2010-reducing-boilerplate-code-with-project-lombok

<dependencies>
    <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <version>0.9.2</version>
    </dependency>
</dependencies>
<repositories>
    <repository>
        <id>projectlombok.org</id>
        <url>http://projectlombok.org/mavenrepo</url>
    </repository>
</repositories>

Currently taking all of the code from: https://github.com/habuma/spring-in-action-6-samples.
Adding it slowly and understanding it – as well as commenting actively will help in the long run.

Earlier useful stuff:

How to install MYSQL on a Mac – https://geeksww.com/tutorials/database_management_systems/mysql/installation/how_to_download_and_install_mysql_on_mac_os_x.php

https://dev.mysql.com/downloads/mysql/

Might come back to: https://www.freecodecamp.org/news/spring-boot-tutorial/

Git Stuff

https://www.vogella.com/tutorials/EclipseGit/article.html#installegit

Set up gitignore: https://christosmonogios.com/2016/11/28/How-To-Create-A-Gitignore-File-For-Your-Visual-Studio-Projects-In-Mac/

https://raw.githubusercontent.com/github/gitignore/master/VisualStudio.gitignore

https://stackoverflow.com/questions/51792830/what-files-in-a-maven-project-should-be-committed-to-git

https://www.geo.uzh.ch/microsite/reproducible_research/post/rr-eclipse-git/

May need to come back to:

Java on mac – https://stackoverflow.com/questions/18144660/what-is-path-of-jdk-on-mac

Plan for Day 8:

Try to get some simple code from the https://github.com/openfoodfacts/openfoodfacts-java and the sample app: https://github.com/openfoodfacts/openfoodfacts-java-demo

For this we may need java 11 – and I suspect that the new code for v6 of SPIA will need the same – per the pom.xml file that was last reviewed.

Posted in Uncategorized | Leave a comment

Day 6

A little bit too much time trying to get Lombok to work.
Then discovered that 2.0.4-release and 2.4.0 had wildly different results.

Decided to take the code from the next version of the book, and things soon seemed clearer.

Need to write up the individual elements, as they will be forgotten too quickly – vm arguments to get Lombok installed !

Anyway – got to page 35 – and have started the project again from scratch in a way.
Need to check out the version of the Spring initializr that is being used as the version of java that is installed on the mac – and figure out how to setup the mac appropriately.

Posted in Uncategorized | Leave a comment

Day 5

The plan was:
* Consuming a rest api – https://spring.io/guides/gs/consuming-rest/Start on the Spring in Action book to pull a web-site together (got to page 17 in background reading)

  • Pull the information from the API
  • Create a simple household inventory of what is in the fridge/pantry at the moment
  • Determine from the receipts – what the prices are – where purchased – and perhaps check later if there was a better place to purchase and what the savings might have been.

The reality was that I started looking at:

However in trying to get the STS tooling setup, a lot of time was wasted – and this was with code that was obtained from the GitHub page of Craig Walls – https://github.com/habuma/spring-in-action-5-samples

This was unproductive, so we may end up sacrificing some of the productivity of STS from the practical element that we have Eclipse working at the moment.

Two things:
a) Open terminal and run ./mvnw clean package – to run the tests

b) Open terminal and run ./mvnw spring-boot:run – in order to deploy it to tomcat as envisaged.

It should be possible to set this up within Eclipse – however I don’t think that I am at the optimisation stage yet – still at the learning phase and want to get to a point where we string some basic elements.

Code is under 005/ch01/tacos

Finished up on page 26 of the book, and will end up reading 1.4 tomorrow.



Revisting this:
* Narrowing the scope initially to put data in and out – may be to have the electricity bill tracking project up and running. It might be a better defined UI to get something working.

Posted in Uncategorized | Leave a comment

Day 4

Well, in this case there was more learned by reading around than the details on the day itself:

Some other research elements

Plan for Day 5:

  • Have a look at a basic web-page: https://spring.io/guides/gs/serving-web-content/
  • In the future – testing: https://spring.io/guides/gs/testing-web/
  • Consuming a rest api – https://spring.io/guides/gs/consuming-rest/
  • Start on the Spring in Action book to pull a web-site together (got to page 17 in background reading)
  • Create a simple flow – scan the barcode – check if in database already – pull the information from the API
  • Create a simple household inventory of what is in the fridge/pantry at the moment
  • Determine from the receipts – what the prices are – where purchased – and perhaps check later if there was a better place to purchase and what the savings might have been.

Posted in Uncategorized | Leave a comment

Day 3

Not a lot done today, though the plan was:

  • Use a simple guide to accessing data using REST and a database https://spring.io/guides/gs/accessing-data-rest/Look at Craig Walls – Spring in Action as a structured way to do more learning.Research MySQL with a view to implementing – https://spring.io/guides/gs/accessing-data-mysql/ on day 4Check out Docker if it is an alternative (account created on it) – https://www.docker.com/get-started and https://hub.docker.com/ – may need to download the client to make this work.See if DynamoDB configured as a local database may be an alternative as well – not sure if there is a longer term benefit to this – but best to know that it exists: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html
  • So – downloaded the book (Spring in Action)

    Implemented the accessing-data-rest as the 3rd project in GitHub.
    Because I downloaded the files, but did not save, and was running the commands from the tutorial on the command line rather than from the IDE (Eclipse), it took time to notice that there was a problem.

    The URL returned ‘profile’ rather than ‘people’ and this continued even after setting up the correct code – so need to investigate that later.

    Need to use GitHub desktop to check in the code – so need to look at that as well.

    For day 4 – MySQL is needed, which needs an Oracle account – so resetting the password on that at the moment, and it is not an instantaneous response to the ‘forgot password’ prompt..so it may be tomorrow before it gets downloaded.
    Noticed that https://www.baeldung.com/spring-data-rest-intro has good tutorials on this topic as well.

    Disappointing progress, but need to spend the requisite hour on this to make it possible.

    Posted in Uncategorized | Leave a comment

    Day 2

    So, the plan from yesterday was:

    • Organise the development environment
    • Setup something in GitHub to store the code/demos
    • Pick a tutorial from – https://spring.io/guides. (there are a lot of them)
    • Try to outline a simple path for things to do in the future.

    So, what happened?

    The development environment is setup at little bit at the moment.
    For the GitHub – there is a new repository – ‘scanner_2021’
    That is setup remotely at the moment.

    Locally on my development environment, we now have Eclipse as an IDE, and the GitHub Desktop downloaded as well.
    The demo code (001) for yesterday and the code from today is in a folder named (002).

    The idea is to create a folder for each project, (numbered sequentially), and then push that into the repository. They are each independent projects within the repository.

    So the tutorial today was to try to do a little JPA – and was done based on this tutorial – https://spring.io/guides/gs/accessing-data-jpa/
    Things learned:

    • In memory database is simple and seamless to configure
    • Very simple example – just runs an executable JAR
    • The links for how to create a WAR – which could be deployed as sadly missing – it started with bringing you to here: https://spring.io/guides/gs/convert-jar-to-war/ however that leads to a starting page on the Maven link. The other two links work…so a rename of a section seems to have happened somewhere along the way.





    What will day 3 look like:

    Other things:

    Figuring out how to deploy things in the future: https://boxfuse.com/blog/spring-boot-ec2.html
    seems to show how to take a jar or war- and use boxfuse to deploy it pretty seemlessly to AWS.
    This was found on a reference here: https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#deployment.cloud.aws and https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#deployment.cloud.aws.beanstalk

    MKYong has a tutorial on WAR here – https://mkyong.com/spring-boot/spring-boot-deploy-war-file-to-tomcat/

    Posted in Uncategorized | Leave a comment

    Starting to create a little something again – a challenge

    So, I’ve an idea for a small project to be created – scan an image, read the text, populate a database, and then go and have it available via a mobile application.

    All of this is a mix of ideas that are out there, and seeing as I’ve not written some code in a while, it will be like dusting off the cobwebs and learning things that I’ve not known before.

    So – the intention is to just use Java, and some tutorials in Spring to learn how to do some of the basics, and to try to get a simple version of the idea up and running, and to learn a little bit more every day.

    So – day one

    Plan for day 2:

    • Organise the development environment
    • Setup something in GitHub to store the code/demos
    • Pick a simple tutorial from – https://spring.io/guides. (there are a lot of them)
    • Try to outline a simple path for things to do in the future.

    Other things on the list:

    • Setup my AWS account
    • See what mkyong.com tutorials may be relevant
    • Figure out what is good on the free tier from AWS that may be useful – e.g. https://aws.amazon.com/dynamodb/ is free for 25Gb, so may be useful in the beginning
    • Need to see how to send an image to AWS Rekognition and to get the text back
    • Figure out how to read a barcode in a mobile app – may be an easy framework
    • Send the barcode to do a lookup on the values
    • Try to do a simple end to end prototype

    What would a prototype (product lookup) look like

    • Scan a barcode – and look it up in a database
    • Have details of the product and the size/cost/nutrition etc – similar to myFitnessPal

    • Scan a receipt
    • Send to rekognition
    • Get the product details back
    • Store and match purchases and track prices over time
    • Match and track the receipts to credit and debit cards in order to determine if there are issues/fraud occurring.
    • Do a mini price-watch on it
    • Overall household spending and finance tracking would be impossible, but worth seeing what could be learned by attempting to build something small as a mini project.

    • Pull all health data back from existing systems and put into a personalised database.
    Posted in Uncategorized | Leave a comment

    Session Storage in IE not working

    A note to myself:

    If you are getting an “Unspecified Error” in Windows 10 when testing out sessionStorage in HTML5 from a local file – the answer may be that sessionStorage in IE only works under http, and not from a file on the local filesystem.

    It will work in Chrome and Firefox, but not IE.

    So – test in a different browser  – or host the file on a server and test it again.

    https://stackoverflow.com/questions/16212347/session-storage-not-working-in-ie

    Posted in Javascript | Tagged , , | Leave a comment