(Ruby 2.5.1) Windows Fix – “Cannot Load Such File – Sqlite3/Sqlite3_native (LoadError)”

If you use Windows, you must appreciate that there are several gems which require external libraries in order to be “built” properly.

These external libraries are generally not present on your system and are required to be installed (and referenced) to get them working. This is why the likes of the MYSQL2 and RMagick gems are seen as “difficult” to install.

If you’re using SQLite3, things are slightly different.

This gem has several “builds” which are meant to provide functionality across a number of platforms (Windows included). Whilst this works in earlier versions of Ruby, it doesn’t work for Ruby 2.5.1+ – hence the error you’re seeing…

cannot load such file — sqlite3/sqlite3_native (LoadError)

The error is caused by the installation & attempted usage of the “mingw32” version of the gem. This version of the gem is pre-compiled with the SQLite core files, but has issues when being used with the later versions of Ruby.

The solution is to install the gem for the “ruby” platform (which still works fine in Windows):

gem install sqlite3 –platform=ruby

This will install the “native” version of the gem with all the appropriate files etc – but won’t use any of the platform-specific functionality that comes with the likes of the mingw32 version.

This will work 100% out of the box.

However, there’s another problem. If you use “bundler”, it will often override the native gem installation in favour of a platform-specific one. This means that if you run bundle update / bundle install, it will likely install the sqlite3 gem with mingw32 platform.

In this instance, you need to uninstall *any* references to the latter by using “gem uninstall”. Here’s what typically happens (for us):

bundle update [installs sqlite3]
gem uninstall sqlite3 [shows selection]
remove “mingw32” variant
rails s [should work 100%]

This will get the system working with the gem.

The big problem is that whenever you use the “mingw32” version of the gem, it will have a set of references/calls which are designed specifically to call particular elements of the gem.

In Ruby 2.5.1+ – for whatever reason – these calls are not entirely used to ensure that the system is able to make the most progress, hence the error you’re seeing. To fix this, you need to be able to essentially “force” your system to only use the “ruby” variant of the gem.

Gambling Vs Your Brain: Who Wins?

Disputes about whether gambling has a positive or destructive influence on your brain has been going on for a while among both ordinary people and scientists. The latter have done a bunch of studies showing some unexpected results. Gambling is not always a thing that will cause problems for people, it may be even useful for your brain, and life. In this short article, we’ll tell you how games of chance influence your brain.

Gambling as a Cure
Muhammad Ali, Robin Williams, and even Pope John Paul II had one common feature – all of them were diagnosed with Parkinson’s disease. Most of the sufferers showed signs of slowness of movement, shaking, difficulty walking, and thinking problems. So how does Parkinson’s work? It literally destroys dopamine neurons in the brain that control body movement. Dopamine has another property – it’s one of the elements responsible for pleasure. From the point of view of gambling, the gaming process imitates the impact of the drug on your brain. In a nutshell, a person feels better, at least for a while. Of course, there are drugs which may help reduce the effect of the disease, but you need to increase doses every time you take the pill. And in the end, drugs becomes useless.

A Way to Keep Your Mind Young
Youth is something we wish to get rid of at first and then we desire to get it back. We can’t always be young, but at least we can slow down aging by using various innovational methods. As for the human brain, it also gets older with time. And if you want to be clever and witty in your 60s, then you should take care of your mind. The best way to look fresher than your peers is simple – just think and develop ideas.

Studies showed that those who keep their mind busy are much more likely to retain their mental capabilities than those who don’t have any brainstorm activities in their daily routine. Of course, there are plenty of exercises that can help you be a “clever guy” but all of them seem dull and mundane. And finally we’ve reached the major point – what about combining pleasure with utility? Gambling is at your service. And if you think that the previous sentence is nonsense, don’t rush to conclusions.

Almost all table games (Blackjack, Hold’em, etc.) require the use of short term memory. While you’re playing, you have to memorize and count cards. Besides that, keeping a conversation with gamblers, and making up a couple of witty jokes could never do any harm. Summarizing this paragraph, we can firmly say that gambling is a way to look bright in old age. By the way, choosing a proper place to play at is also a big deal. Most of the cool land-based casinos can be found only in certain cities and the ones you have in your hometown may not provide you with the necessary pleasure. Thankfully, nowadays, we can play at online gambling venues. But even when it comes to online casinos, it may be tough to choose the best option, since there are thousands of them. One of the best portals that review casinos and give you a reliable and informative opinion is HolyMolyCasinos. Those guys stand out from the crowd – the information is given in both funny and enlightening ways.

Addiction
Despite the facts listed above, gambling can’t be regarded as a totally harmless pastime, just as medicines can’t always be considered a cure. Games of chance may potentially become as addictive as physical substances. People who are heavily into betting feel an overwhelming desire to play more and more, until they win. And when players hit the right combination, the idea to win even more overcomes them. It seems to be a vicious circle.

The integral part of online casinos is a Self-exclusion program. Players can request this option, which will ban them from the access to a casino. So, if you’re afraid of getting carried away by playing online games, you can always force yourself to stop by reaching out to support agents.

Closing thoughts
We’ve reached the final point – it’s time to sum up everything that’s been said here. We have demolished a myth that gambling is always a “bad guy” and it’s better to stay away from games of chance and luck. Now you know that diseases like Parkinson can be prevented (or even temporarity remedied) by spinning slots, or playing table games. Another advantage is that not only is gambling a good way to spend your leisure time, but also you can retain your mental abilities for the rest of your life. But keep in mind that games of chance and luck may be addictive, and may cause some problems to players as well as their family.

Online Training & Certification Courses for Analytics

‘Analytics’ is probably the new word being used when discussing hot topics in business. Data or business analytics is all about the collection, processing, analysis and interpretation of data in order to derive insights. Data is collected from various sources and is processed in specified ways. Various questions are developed on the information and answers are found. The data analyst position offers a handsome salary and requires a skilled candidate who can work with the increasingly complex data.

THE EVER INCREASING SCOPE OF ANALYTICS

There is an ever increasing amount of raw information. Almost every field we examine incorporates huge quantities of data with which the companies need to work. Everything from retail shops to hospitals, schools, hotels, small scale factories to big production houses, educational institutes, sports and entertainment incorporates a huge quantity of unprocessed information which needs to be processed and interpreted in order to arrive at a meaningful result. An upward trajectory has been seen in recorded number of jobs available for the job profile of data scientist. Candidates for data scientist positions need to have deep knowledge of how to deal with raw facts and figures and should be either certified or trained by a well-known, reputable institute. Knowledge of appropriate analytic tools and software are not enough. Candidates should choose a particular sector or field and should have deep knowledge of analytics associated with their chosen sector.

THE REVOLUTION BROUGHT BY E-CLASSES

With the advent of computers and the internet there is nothing to hinder a student from learning. The best application the internet ever had is in the education system. There are thousands of online courses which are reaching individuals in far off places. E-classes have brought about a real revolution in the educational field. Online courses and training programs from well-known companies have increased the number of students dramatically. There are many pros to online certification courses such as you determining what time of day you take the class. You can be comfortable in your home learning what you want.

The best thing about online certification courses and training is that there is a highly trained faculty. You can actually choose whose lectures you wish to attend online. There are more than a thousand students enrolled for such e-courses and training, so special emphasis and effort is made to provide the best faculty. There are a certain number of lectures covering all what you need to know. These e-learning and training programs have fees which are comparatively much lower than that charged by ordinary schools and universities for offline classes.

With the ever increasing scope of analytics, there are many e-learning sites which are popping up almost every day to educate and train today’s youth to do the jobs in this field. Many of them have attractive offers to get students to enroll such as deep discounts, extra classes, free trials, free papers, etc. They provide certification which is more than sufficient to fetch a decent job in this field.

8 Things We Can Actually Learn From Machiavelli’s “The Prince”

1. You can’t please everyone. (The need to avoid contempt and hatred).

Machiavelli constantly noted that it is impossible for a Prince to satisfy both his subjects and his nobles at the same time. The prince would have to sacrifice the needs of one for the other.

Stating clear examples from history, Machiavelli also used the Romans as a case study. He stated that aside from the subjects and nobles, Roman emperors still had soldiers to deal with.

In a modern world view, people wrestle with the notion that they can try to make everyone happy. With some accepting that they would have to displease one in order to please the other, others still hang on to the illusion that they can satisfy everyone. As noted by Machiavelli, trying to please everyone ultimately leads to disaster.

2. Being generous all the time is being stupid all the time. (Generosity and Parsimony)

It’s no rare thing to find fundamentally good people. People who display extraordinary attributes of altruism that surpass even the likes of religious clerics, which is a good thing. But giving away more than you have can be self defeating.

According to Machiavelli, in people’s efforts to become generous, they lose the ability to do so. That simply means that you can only be generous until you lose everything you can be generous with.

He emphasized that the people considered extremely generous in history only did so with what didn’t belong to them in the first place. He cited figures such as Alexander the great, Cyrus and Julius Caesar who were more liberal with what wasn’t their own.

There’s nothing bad in being generous. If you have enough to give, then by all means, do so. But if don’t, do not risk your well-being and that of your family’s for someone else.

It is important to also note that Machiavelli noticed how quickly people can turn on you if you tell them “no”. You become either poor or despised, “seeking to escape poverty”.

3. People cannot be trusted (Cruelty and Compassion)

This is harsh but true. Machiavelli strongly objected to promises made with just words. They could be easily broken.

His words were: “Men are ungrateful, fickle, liars and deceiver. They shun danger and are greedy for profit. While you treat them well, they are yours… But when you are in danger, they turn you away” those words deeply and quite aggressively reflected his views on humanity. But his stance on trust was somewhat accurate.

You should not depend entirely on trust. If you do, be ready to get your heart broken.

4. Education is important (How a prince should organize his militia)

Machiavelli’s idea of education was taking military exercises in the art of war during and after wartime.

He stated how important it is for a prince to know more about war and historical events based on war.

Similarly, in our generation, education is equally important. Knowledge has become more powerful than ever. And what is the best way of acquiring knowledge than education?

You don’t need to know about the art of war, it’s execution and implementation. But learning how to read and write is of equal importance.

5. Always expect the unexpected. (How a prince should organize his militia)

Philopoemen, as cited by Machiavelli, was praised for thinking of war during peacetime. He casually engaged in conversations about military strategy amongst friends.

You have to expect an unexpected change in your life at an unexpected point, one you could not have foreseen. It is always wise to prepare for them.

Setting aside money for an unforeseeable financial problem in the future would be the modern day equivalent to expecting the unexpected. Just like Philopomen.

6. You cannot be all good (and it’s okay). (The things for which men, and especially princes are praised or blamed)

In an era where black is white and white is black and it’s near impossible to tell one from the other, we are often faced with moral ambiguity.

Should I do the “right” thing and hurt someone else in the process? What exactly is the right thing in the first place?. Well Machiavelli says it’s okay. No one is all good.

He enumerated qualities such as faithfulness, courageousness, frivolousness and religiousness. It is laudable for a prince to have them, but due to the “conditions of the world”, princes cannot have those qualities and observe them completely.

Real life is complex and it is not without his drawbacks.

7. Decisiveness and Conviction. (how a prince must win honour)

According to Machiavelli, there’s danger in neutrality and being completely at someone else’s mercy.

Delaying a problem doesn’t actually help you in any way. Indecision equals failure. That’s not ruling out patience completely which is instrumental in solving the problem. But there’s a fine line between patience and delay.

A problem is better solved when confronted.

8. Having a reputation for cruelty is hazardous (The need to avoid contempt and hatred)

Most people do not make it their life’s mission to be known as cruel. They might consider themselves as being strict or forward, but others might see them as bad, wicked and cruel.

Knowingly or not, being cruel is bad in any century. Machiavelli knew this and discuss the topic at length.

A prince, according to him, must always try to avoid being hated and despised by his subjects. Otherwise he risks a rebellion or an uprising.

“Cruelty” is a word that probably comes to mind when discussing Machiavelli and as evidenced in his works about how morality can be altered, it’s not so surprising. But he also noted how cruelty has incited revolutions and brought down empire s. The lesson here is, always try to be kind..

How to Find Your Soul Mate – Get Your House in Order (7 Tips for Women)

Are you ready to receive God’s best? He doesn’t send the supreme to a disorderly house. With that said, shift your focus. Instead of concentrating on finding a soul mate, concentrate on getting yourself prepared. By the way, as previously stated in another article, a woman doesn’t find the man; he finds her. This article discusses seven things to consider as you work to get yourself in order.

7 Tips

1. Know thyself.

Conduct a self-examination. Possessing a keen awareness of yourself is the first rule in any endeavor. With that said, what do you value? What do you respect in others? Where do you draw the line? What’s your communication style? What strengths do you bring to a relationship.

2. Love yourself.

Next to knowing yourself is loving yourself. Otherwise, how can you expect someone else to love you? Love yourself with a man. Love yourself without a man. Most important, know that Jesus loves you.

3. Keep first things first.

What takes precedence now? Some things are more important than others. A friend, for example, made raising her son the primary focus. As a single mother, she did not parade every Tom, Dick, or Harry in front of him or disrupt their home by moving someone in. Now after he went away to college, she let her hair down. Today, he is a well-adjusted, respectful and responsible man. If you’re a single parent, what matters most?

Likewise, how’s your financial health? Focus on eliminating debt and improving your credit. Your mate doesn’t want to inherit a financial wreck.

Even if your family or finances are in tack, other things supersede finding a mate. Pause for a moment or two to assess your present state. Where are you in disarray?

4. Discover your purpose

In short, uncovering your purpose is a pressing matter. Whether you have a mate or not does not exempt you from fulfilling your call (vocation).

5. Pursue your dream(s).

After you uncover the mission, get moving. Your skills and talents are the missing pieces to someone’s puzzle. Moreover, the right place is where your blessings flow.

6. Unload the baggage.

Imagine travelling from place to place with your luggage. You add more items than you remove and before long it’s difficult to carry. Aside from slowing you down, it’s heavy and awkward.

Similarly, when you jump from relationship to relationship emotional baggage accumulates. Instead of taking time to regroup or allow the dust settle, you drag the junk in your trunk (anger, confusion, bitterness, etc.). Eventually, you unload it on the next person. Stop the madness!

7. No stinking thinking.

As women, we’ve been gifted with strong intuition. Yet, we proceed full steam ahead and ignore early warning signs; I’m guilty too. At length, stinking thinking creeps in. Our track records, consequently, hold us hostage with negative views of men, relationships, and marriage. I call it stinking thinking, and it sours everything.

Therefore, change your mindset. Trust God to not only position you for your soul mate but to exceed your expectations. He doesn’t make mistakes.