What’s a .sh file?

What is a file with extension .sh? It is a Bourne shell script. They are used in many variations of UNIX-like operating systems. They have no “language” and are interpreted by your shell (interpreter of terminal commands) or if the first line is in the form #!/path/to/interpreter they will use that particular interpreter. Your file … Read more

React: useState or useRef?

The main difference between both is : useState causes re-render, useRef does not. The common between them is, both useState and useRef can remember their data after re-renders. So if your variable is something that decides a view layer render, go with useState. Else use useRef I would suggest reading this article.

Showing Thumbnail for link in WhatsApp || og:image meta-tag doesn’t work

I belive you need to add itemprop to the og:image meta tag, have the image size set to 256×256 and also it would not harm to add the site_name, type and updated_time properties either 🙂 <meta property=”og:site_name” content=”San Roque 2014 Pollos”> <meta property=”og:title” content=”San Roque 2014 Pollos” /> <meta property=”og:description” content=”Programa de fiestas” /> <meta … Read more

Git Diff with Beyond Compare

I don’t use extra wrapper .sh files. My environment is Windows XP, git 1.7.1 on cygwin, and Beyond Compare 3. Following is my .git/config file. [diff] tool = bc3 [difftool] prompt = false [difftool “bc3”] #use cygpath to transform cygwin path $LOCAL (something like /tmp/U5VvP1_abc) to windows path, because bc3 is a windows software cmd … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)