Mika A.

Blog Simple :)

Category: Non classé Page 1 of 2

Integrate GraphQL with WordPress

GraphQL is a very powerful query language that minimizes calls from a client to a server. Since WordPress is one of the most used publications tools, it can be interesting to use it with GraphQL.

Read More

Easy docker container managment with Kitematic

Docker is one of today’s best developer tools because of it’s power and popularity. We are used to manage our containers through the console commands and we have the docker hub to search through accessible repositories.

To make using docker even easier, they are now working on a GUI to manage docker containers. It becomes really trivial to find a container, download, configure and launch or stop it through the UI.

It’s named Kitematic and it’s in beta state as I write this post. I have tried Kitematic for a few days now and I find it really helpful. It provides an easy way to browse docker hub and download the containers I am looking for.

After download, I can set configurations for the container like ports, volume folders. I can also set environment variables for each container.

Launching a mongo or redis instance become as easy as pressing a “Play” button. The interface is really clean and intuitive so user from any level can use it.

The log of each container is also displayed so it is easy to identify problems and debug them.

Capture d’écran 2015-11-10 à 15.00.03

I would recommend this software to all developpers. It became one of the tools I use on a daily basis on different projects.  To get it, just go to https://kitematic.com. Here is a quick overview of the tool :

 

SharePoint – Build a CAML query, the easy way with U2U CAML Query Builder

I am currently building a SharePoint application for one of our client to collect data from their site and create a dashboard.

Unlike “traditionnal” web applications, SharePoint apps don’t access data using SQL (or NoSQL..). Instead, they use CAML language to build a query  and get data from SharePoint. This language uses markups based on the XML format. Here is a quick example of  a CAML query:

<Query>
   <Where>
      <And>
         <Eq>
            <FieldRef Name='ContentType' />
            <Value Type='Computed'>Custom Type</Value>
         </Eq>
         <Or>
            <IsNull>
               <FieldRef Name='Etat' />
            </IsNull>
            <Eq>
               <FieldRef Name='Etat' />
               <Value Type='Choice'>Nouveau</Value>
            </Eq>
         </Or>
      </And>
   </Where>
</Query>

We can see tags like Where, Eq, IsNull, etc… that describe the data we want and the conditions to get them.

Anyway, it can become really hard to build a query from scratch when conditions and request become complex and I looked for a tool to help me. I found U2U CAML Query Builder was really helpful and easy to use.

After downloading and installing the software, I am prompted to login to a SharePoint site when I launch the application.

u2u3

After that, U2U CAML Query Builder will load all the lists from the SharePoint site and I can select the one where I want to build my query. After this, I can select my query components and execute the query to check it’s correct. All attributes from lists items are already loaded and I can select any of them like title, creation date, content type, etc…

u2u1

And when my query is ready, I can just copy it in CAML format or grab the CSOM or server snippet that execute the query. This tool is a real time-saver!!

Comments are really welcomed if you know any similar tool.

Page 1 of 2

Powered by WordPress & Theme by Anders Norén