teleren/devto huggingface dataset:
How to Implement Facebook Social Login
Tags: facebook, sociallogin
Published: 2020-10-05 10:48:15

---
title: How to Implement Facebook Social Login
published: true
date: 2015-02-24 00:00:00 UTC
tags: Facebook,SocialLogin
canonical_url: 
---

In this post I will show you how easy it is to implement Facebook social login to a web page using Facebook’s JavaScript SDK. The nice thing about Facebook social login is the great documentation and instructions already provided at  https://developers.facebook.com/docs/facebook…

   
[Read On](https://www.loginradius.com/engineering/blog/implement-facebook-social-login/)
GUID Query Through Mongo Shell
Tags: engineering, guid, mongodb
Published: 2020-10-05 10:45:09

---
title: GUID Query Through Mongo Shell
published: true
date: 2015-02-23 00:00:00 UTC
tags: Engineering,GUID,Mongo
canonical_url: 
---

If you have stored a GUID through the C# driver to mongoDB and now you want to run a query by GUID, you can't query directly because mongoDB doesn't recognize GUID so when we query through mongo shell no result will be returned. To use the power of mongo shell for querying data…

   
[Read On](https://www.loginradius.com/engineering/blog/guid-query-mongo-shell/)
New website is now live
Tags: development, website, es6, koa
Published: 2015-02-21 14:52:00

---
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/y9hxcwi5y92j6zfcxbjx.jpg
title: New website is now live
slug: new-website-is-now-live
date: 2015-02-21 14:52
tags:
 - development
 - website
 - es6
 - koa
---
Finally, the new website is now live. There are still some features to complete, such as searching, commenting, responsiveness, blog archive and more, but we're close enough to go live.

Since the fateful event of August 2014 when partner turned off all the power before a holiday and somehow destroyed the previous server and therein the old website, this site had been kept running barely by Ghost.

Well, that's a thing of the past now. Ghost is...well, a ghost. A [codebase arises](https://github.com/adamkdean/adamkdean-co-uk).

I'll be actively adding features and finishing off the edges over the next few months.

Oh, and as a bonus, backlinks from my old website now work too.
Source Code for Game of Life
Tags: java, development, life, sourcecode
Published: 2015-02-21 09:00:05

---
title: Source Code for Game of Life
published: true
date: 2015-02-21 09:00:05 UTC
canonical_url: https://www.funkysi1701.com/posts/source-code-for-game-of-life-2eo3
description: Source Code for Game of Life
tags: Java,Development,Life,SourceCode
//cover_image: https://direct_url_to_image.jpg
---

Last week I blogged about the Game of Life.

Well it took some searching through dead hard drives and old USB storage but I found the program I wrote, and better than that I have figured out how to turn it back into source code.

The file date is November 2004 and the source code has no comments so I don’t know what was going through my head when I wrote it, or even what some of it does.

To view the source code download Life.src, to download the finished program download Life.

Life

I am actually surprised I was expected the code to be much worse than it was, I am not saying it is good, but I can see more than one method and I can’t see any code that obviously is repeated. I can see some terrible variable names. Note to future self don’t use tmp676_674!

Assuming that I wrote this in 2004 what would  I have been doing then? It was before I started working in IT. (Hard to imagine I know!) It may even have been before I started living with Keith, before he recruited me for my first IT role. I think I was probably working as an administrator for Defra at this point.

If we put 2004 in technical terms, it was before I joined facebook, Office 2003 and XP would have been installed on my PC, and probably felt brand new.
Cloud Computing
Published: 2022-09-25 18:56:23

---
title: Cloud Computing
published: true
date: 2015-02-19 20:00:45 UTC
tags: 
canonical_url: https://www.funkysi1701.com/posts/2015/cloud-computing/
---

I work for a company that provides a cloud computing website, but what is Cloud Computing?

[Wikipedia](https://en.wikipedia.org/wiki/Cloud_computing) defines it as “Cloud computing involves deploying groups of remote servers and software networks that allow centralized data storage and online access to computer services or resources.”

Erm. What does that mean? Well in simple terms it means storing you data on a remote server. Any time you submit information onto a website, you are submitting your information to the “Cloud”

But there is more that the Cloud can do for you. The search giant Google, which also develops the android mobile phone operating system, have developed a range of cloud computing products. The Google Drive product allows you to upload and even create files, these files are saved into the Cloud, once in the cloud they can be accessed from any device that has an internet connection. No longer do you run the risk of your favourite file being on a computer that won’t turn on or being on a dead hard drive, save it to the cloud and you will always have access to it.

Google isn’t the only one that does this, Microsoft have OneDrive which they are incorporating into the heart of their operating system, Apple and many other companies have released similar products.

This age of cloud computing allows a clearer separation between your data and your device. It won’t be long before whatever device you are using your files will be there to be worked on. You are in the office working on a spreadsheet, you save it to the Cloud, you can then continue working on it with your tablet while on the road. Just before bed you want to check if you added something to that doc, so you quickly check your phone. How cool is this!

But if I put my system administer hat on, Cloud computing goes far further than that. Microsoft Azure allows many of the services you would typically have running on your server, saved into the cloud. This has many advantages and allows you to concentrate on other problems while leaving the cloud to look after these services.
Choosing a Blog Theme
Published: 2022-04-05 18:51:29

---
title: Choosing a Blog Theme
published: true
date: 2015-02-15 20:00:45 UTC
tags: 
canonical_url: https://www.funkysi1701.com/posts/2015/blog-theme/
---

You may have noticed that my blog has a new home. It can now be found on its own domain [http://www.funkysi1701.com](http://www.funkysi1701.com). This change not only gives me more flexibility to make any change I like, it also feels good to have a website again. If you had followed my blog, do keep following it at the new location.

I have also been playing about with giving the site a new look, hope you all like it. I have gone for a more image focussed front page. No doubt in a few weeks I will be bored and change the look again.

I have recently been reading about blogging and one suggestion is to have a clear theme, or idea of what the blog is about. I am not sure my blog has a clear theme.

When I started blogging I was more interested in blogging than thinking about what I was blogging about. The vague theme I worked off was to talk about what I do, to answer the question, “What do you do?”

I think this is a fairly good theme, but it could probably do with some refinement. The best themed blogs are specialist or about something specific. As I am generally learning about development, rather than doing development I think this should be part of what I concentrate my blogs about. A minority of my blogs can continue to be about the other things I spend my time doing, as it’s always good to have a break from the main “meat” of the blog every now and then.

The people who read my blogs are split between technical people and non-technical people, so I would like to continue to explain what I do in non-technical terms. This is an essential skill for a developer (or SysAdmin) as you will always need to explain what you are doing, or discuss requirements. It is not an easy skill and like development itself, the more I do it the better at it I will become.

So watch this space for the blogs to come. I know I will be working with Azure over the next few weeks so maybe some blogs about that, maybe some more SQL blogs or maybe about what I learn next.
Too many open files
Tags: tech, python, linux, ulimit
Published: 2023-02-01 02:39:00

---
title: Too many open files
published: true
date: 2015-01-28 09:02:00 UTC
tags: Tech,python,linux,ulimit
canonical_url: https://tyrel.dev/blog/2015/01/too-many-open-files.html
---

When I worked at Propel Marketing, we used to outsource static websites to a third party vendor, and then host them on our server. It was our job as developers to pull down the finished website zip file from the vendor, check it to make sure they used the proper domain name, (they didn’t a lot of the time,) and make sure it actually looks nice. If these few criteria were met, we could launch the site.

Part of this process was SCPing the directory to our sites server. The sites server was where we had Apache running with every custom static site as a vhost. We would put the website in <tt>/var/www/vhosts/domain.name.here/</tt> and then create the proper files in sites-available and sites-enabled (more on this in another entry). After that the next step was to run a checkconfig and restart Apache.

Here’s where it all went wrong one day. If I can recall correctly, my boss was on vacation so he had me doing a bit of extra work and launching a few more sites than I usually do. Not only that, but we also had a deadline of the end of the month which was either the next day, or the day after. I figure I’ll just setup all mine for two days, and then have some extra time the next day for other things to work on. So I started launching my sites. After each one, I would add the domain it was supposed to be at into my <tt>/etc/hosts</tt> file and make sure it worked.

I was probably half way done with my sites, and suddenly I ran into one that didn’t work. I checked another one to see if maybe it was just my network being stupid and not liking my hosts file, but no, that wasn’t the problem. Suddenly, EVERY SITE stopped working on this server. Panicking, I delete the symlink in sites-enabled and restart Apache. Everything works again. I then proceed to put that site aside, maybe something in the php files breaks the server, who knows, but I have other sites I can launch.

I setup the next site and the same thing happens again, no sites work. Okay, now it’s time to freak out and call our sysadmin. He didn’t answer his phone, so I call my boss JB. I tell him the problem and he says he will reach out to the sysadmin and see what the problem is, all the while I’m telling JB “It’s not broken broken, it just doesn’t work, it’s not my fault” etc etc. A couple hours later, our sysadmin emails us back and says he was able to fix the problem.

It turns out, there’s a hard limit to the number of files your system can have open per user, and this was set to 1000 for the www-data user. The site I launched was coincidentally the 500th site on that server, each of them having an access.log and an error.log. These two files apparently constantly open on each site for apache to log to. He was able to change www-data’s ulimit to a lot higher, (I don’t recall now what it was) and that gave a lot more leeway in how many sites the sites server could host.
Ten Forward Episode #135 – Anti Firbob is Back or Simon’s Desert Island Trek
Published: 2022-04-04 08:41:05

---
title: Ten Forward Episode #135 – Anti Firbob is Back or Simon’s Desert Island Trek
published: true
date: 2015-02-13 20:00:45 UTC
tags: 
canonical_url: https://www.funkysi1701.com/posts/2015/ten-forward-episode-135-anti-firbob-is-back-or-simons-desert-island-trek/
---

The podcast I recorded the other week has been released, why not have a listen by heading over to [trekmate.org.uk](http://www.trekmate.org.uk/ten-forward-episode-135-anti-firbob-is-back-or-simons-desert-island-trek/) and comment on their [forums](http://forum.trekmatefamily.com/2015/02/ten-forward-135-antifirbob-is-back-or-simons-desert-island-trek/)

This week Sina, Chris and Paul welcome Simon Foster, Trek Mate’s News Editor, to do discuss his Desert Island Trek choices. Paul becomes Firbob, or AntiFirbob, or…something like that. Boo hiss Firbob. Every one listen and decide – Simon or Firbob?

You can reach Simon here:

[@funkysi1701](https://twitter.com/funkysi1701)

Complaints to @firbob1

You can reach the rest of the gang here:

[@queenkatblue](https://twitter.com/queenkatblue), [@chriscantfly](https://twitter.com/chriscantfly), or [facebook.com/TenForwardPod](https://www.facebook.com/TenForwardPod)
Game of Life
Published: 2022-04-01 08:28:16

---
title: Game of Life
published: true
date: 2015-02-11 09:00:45 UTC
tags: 
canonical_url: https://www.funkysi1701.com/posts/2015/game-of-life/
---

Many, many years ago I tried to learn Java. I didn’t get very far but one of the things I built was The Game of Life.

Unfortunately I can not find the code I wrote, probably a good things as it is probably amusingly bad.

Now you are probably asking what is the [Game of Life](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life)? The game of life, sometimes called cellular automation, is a simulation of cells being born and dying. It is sometimes called Conway’s Game of Life after the British mathematician who devised it in 1970.

![](https://upload.wikimedia.org/wikipedia/commons/e/e5/Gospers_glider_gun.gif)

The game has several rules:

1. Any cell with less than three neighbours will die on the next turn
2. Any cell with three neighbours lives on to the next turn
3. Any cell with more than three neighbours will die on the next turn
4. Any dead cell with three live neighbours will be born on the next turn

Now I had not thought about this game until the other day when I came across a [blog](https://chaosnil.wordpress.com/2015/02/09/new-project-conways-game-of-life-in-every-language/) and a [github page](https://github.com/chaomodus/gameoflife) which sparked my interest again. This version is written in javascript, but the blog mentions a desire to build this program in many different languages. I want to build this with visual studio in C# as it should provide a good training exercise.

There are several problems I need to overcome to achieve this, I am currently trying to work out how to “draw” the cells. My current thinking is that maybe I can code it using characters to display the cells and then replace with pixels once I have the logic correct. Well lots for me to learn!
Integrating Twitter Social Login
Tags: twitter, sociallogin, php
Published: 2020-10-05 10:45:19

---
title: Integrating Twitter Social Login
published: true
date: 2015-02-11 00:00:00 UTC
tags: Twitter,SocialLogin,PHP
canonical_url: 
---

Implementing login using Twitter directly through their provided API endpoints can be tedious and require knowledge of external systems like the OAuth protocol. There are some useful libraries that can help you to quickly and easily implement a "Login using Twitter" button and…

   
[Read On](https://www.loginradius.com/engineering/blog/integrating-twitter-social-login/)
Integrating LinkedIn Social Login on a Website
Tags: linkedin, sociallogin, javascript
Published: 2020-10-05 10:45:01

---
title: Integrating LinkedIn Social Login on a Website
published: true
date: 2015-02-11 00:00:00 UTC
tags: LinkedIn,SocialLogin,JavaScript
canonical_url: 
---

It is important nowadays to allow your user to sign into your website with their social network account, it provides better experience for your user and also lets you obtain more information about your user. The most welcomed social platforms are Facebook, Twitter, LinkedIn and…

   
[Read On](https://www.loginradius.com/engineering/blog/integrate-linkedin-social-login-website/)
Social Provider Social Sharing Troubleshooting Resources
Tags: engineering, socialsharing, facebook, google
Published: 2020-10-05 10:45:27

---
title: Social Provider Social Sharing Troubleshooting Resources
published: true
date: 2015-02-09 00:00:00 UTC
tags: Engineering,SocialSharing,Facebook,Google
canonical_url: 
---

Social Sharing is an extremely powerful tool to expand your user base and product recognition, customizing and implementing this to be efficient on your site can be quiet difficult. Most of the most relevant Social Providers have setup testing and troubleshooting tools that can…

   
[Read On](https://www.loginradius.com/engineering/blog/social-provider-social-sharing-troubleshooting-resources/)
Great British Code Off
Published: 2022-03-31 18:50:13

---
title: Great British Code Off
published: true
date: 2015-02-07 20:00:45 UTC
tags: 
canonical_url: https://www.funkysi1701.com/posts/2015/great-british-code-off/
---

![Great British Code Off](https://storageaccountblog9f5d.blob.core.windows.net/blazor/wp-content/uploads/2015/02/logo.jpg)

The Great British Bake Off and The Great British Sewing Bee are very popular TV shows. Each week the contestants take part in a baking or sewing challenge and the judges choose the best and the worst, with the worst having to leave. This is very entertaining as you watch the drama between the contestants and the reactions as the judges tell them they are rubbish.

Could this simple format be applied to computer programming? I think it could.

The only developers I know argue about the best way of tackling different problems, despite being friends. I am going to assume that this is typical behaviour and not unique to them. So for this TV show, we will split the contestants into pairs, that way we would get the added drama of how well they work together.

I am still undecided if the pairs stick together each week with one pair leaving or if we randomize the pairs with one person leaves. The second option would cause there to be a group of three every other week, not sure if this would be a benefit or a curse for that group.

My friends who are experienced programmers have agreed to be the judges, they both have experience of hiring and firing people, know what to look for in good code, and never agree so should be entertaining enough.

On the bake off the contestants don’t really know how well they have done until the judges cut into their cake and take a bite. For the code off we could not compile the code until the judges run it, would make coding extra difficult as if the contestants are anything like me, I run my code every five minutes to see what affect that change has made.

So what challenges can we come up with?

- Web Design week
- Stored Procedure week
- Mobile App week
- Loops
- Logic problems
- Bugs weeks
- Performance issues

I think we are onto a winner here. What does everyone else think?
🛠 Build something for yourself
Tags: softwareprocess, webdev
Published: 2020-07-27 19:49:38

---
title: 🛠 Build something for yourself
published: true
date: 2014-08-07 22:16:00 UTC
tags: softwareprocess, webdev
canonical_url: https://shaun.church/words/build-something-for-yourself
---
_Originally published in 2014_

There’s something in this idea of building things for yourself. I’ve never felt more motivated to work on a project, and I’ve never had a clearer perspective on the user experience of a [product](https://play.google.com/store/apps/details?id=com.shaunchurch.songwriter.app).

I know exactly what the problems are because I’ve experienced them myself. It highlights how blind I am when building something without truly understanding. The importance of involving end users in prototyping and testing ideas couldn’t be greater. It’s not easy to emulate truly needing to use something if you _don’t_.

I love building things. I savour the challenge, relish the satisfaction that comes from solving a problem and from making something new exist. Working with a talented team on products that are the sum of everyone’s contribution is an experience that brings many rewards.

But building something that you need yourself that is also useful for others—even on a tiny scale—is something quite special.

If we don’t use the things we build how can we know if they work as well as they could? We have to ask a person who does.

So build something for yourself.

Be the critic and the creator.
Social Media Colors in Hex
Tags: socialmedia, facebook, google, color
Published: 2020-10-05 10:46:10

---
title: Social Media Colors in Hex
published: true
date: 2015-02-06 00:00:00 UTC
tags: SocialMedia,Facebook,Google,Color
canonical_url: "https://www.loginradius.com/engineering/blog/need-validate-site-w3c/"
---

Are you tired of eye dropping (or worse… guessing) the colors of every social network you like? Fear not my friend, I have searched the webs to find our beloved social media colors and listed it out in hex form. Facebook #3b5998 Google Plus #F90101 Linkedin #007bb6 Twitter…

   
[Read On](https://www.loginradius.com/engineering/blog/social-media-colors-hex/)
Laziness
Tags: powershell, itadmin, rdp
Published: 2022-03-07 20:05:52

---
title: Laziness
published: true
date: 2015-02-04 20:00:45 UTC
tags: PowerShell, ITAdmin, RDP
canonical_url: https://www.funkysi1701.com/posts/2015/laziness/
---

I am lazy, I won’t try and deny that. When my alarm goes off in the morning, I will snooze it for twenty minutes or so before getting out of bed.

![](https://storageaccountblog9f5d.blob.core.windows.net/blazor/wp-content/uploads/2015/02/bill-gates-quote.jpg)

In my work my laziness continues. Remote Desktop (or RDP) is probably my number one laziness tool. For those that don’t know RDP allows you to connect to another computer and access it like you were sat in front of it. So I can be sat at my desk and RDP into any other computer in the office including any server. However this laziness tool does sometimes require a bit of effort sometimes, powering on the target computer, logging on locally, making sure the user account you are using is allowed to use RDP.

Writing a script is another example of a laziness tool. I often get asked to do tedious and long-winded task, because I am lazy I will go out of my way to learn how to write a script to do this, so that I can run this script and do this long-winded task in a matter of seconds. There are loads of different types of scripts from database SQL scripts, to PowerShell scripts that can do almost anything on your server.

PowerShell is something Microsoft are really pushing at the moment, you can even write scripts to create new user accounts, so no longer will you have to remember to tick that tickbox for every new user account. And because PowerShell is part of almost all MS technologies you can link Exchange to Active Directory and you don’t even have to remember the right syntax as PowerShell has a built-in help command to tell you how to run that useful command.

As I am now moving into a more developer role can I continue to be lazy? I sure can. Code should be written once and reused as often as possible and this is one of the features of OOP (Object Oriented Programming).

It can be as simple as creating a master page so you don’t need to recreate the same code on every one of your webpages. Or every time you find yourself rewriting the same code again, you plug it into a method so it can be called again and again.

But of course the ultimate way to be lazy is of course get yourself some staff and spend all day getting them to do everything. If you are lucky they may even try and adopt some of these lazy ideas.