BigBastis Blog

BigBastis Blog

About Me & my Digital Lifestyle


Navigation
Featured

JavaScript

Handling too long scrollspy menus

Posted on Juni 10th, 2015.

When you’ve used twitter bootstrap to kickstart your html, you surely have visited the bootstrap homepage at some point. When you did you should have noticed the side menu which is always displaying your current position on the (very long) page. This menu is powered by the scrollspy and affix plugin also offered by twitter bootstrap. It’s fairly easy to integrate this menu in your own project, which I did lately. The problem At some point my menu got too long and that caused two problems for the user: first, the currently highlighted menu item was not visible anymore and second, it was not possible for the user to scroll […]

Featured

Java

Java: Create ZIP archive

Posted on März 23rd, 2015.

Introduction On a website project at work i had to implement a feature that allowed the user to download one or more messages as a zip file. When i started, i really was shocked how complicated it is to zip or unzip a String in java. If you glance over to csharp the whole zip-thing looks easy as pie: Those wrapper classes from System.IO make it really easy to create and read archives. After a bit of trial and error i was able to create some easy to use java methods which do the same. So for you (and for me as a future reference), here’s the code. Zipping / […]

Featured

.NET

Using Google Open Auth Login in Asp.Net MVC Applications

Posted on Februar 26th, 2015.

Introduction Open Auth is everywhere, maybe you even read my article on how to retrieve calendar events from your google calendar using open auth. In this article i would like to show you a simple way to create an open auth login for your asp.net mvc website. Basically you can just open up visual studio and create a new asp.net mvc project and select individual user as the authentication template. Visual studio will now create a new project template for you with working examples for Google, Facebook and Microsoft open auth login. But as you’ll quickly notice this is a very complex example which is only good for authentication, so […]

Featured

Allgemein

Amazon: One step closer to the everything store

Posted on November 5th, 2014.

Amazon has achieved a new milestone on its journey to take over the world. Free 2-day delivery for Prime members is now available outside of the Amazon webstore. AllSaints is the first partner to offer Prime delivery to its customers. Amazon doesn’t take a cut of sales in this deal but instead earns every time a customer follows a link to the AllSaints Shop through Amazon. Amazon will be listing the products of AllSaints in their own search results on amazon.com but the actual transaction will happen in the AllSaints shop. So even when Amazon will loose money on the deal (as it usually does on prime) because of the […]

Featured

.NET

Retrieving calendar events using Google Calendar API

Posted on Oktober 30th, 2014.

Introduction Calendars are fun and every big player on the market (Google, Microsoft, Yahoo, you name it) provides its own implementation of one, usually for free. And it’s even more fun to integrate those calendars into your own apps and services. Lucky for us, all major calendar providers offer pretty good support and well documented APIs for us to use in our apps. In this post you will see how easy it is to set up a simple application that uses the google calendar API to access calendar events. API Setup Whenever you want to use a third party API ,you need to register your application as a client in […]

Featured

Allgemein

Nice2Know: Search and replace with value from search

Posted on Juli 7th, 2014.

Sometimes you want to achieve a simple task like searching for something and replace something else but want the replaced text to contain the found text – sounds complicated, let me show you an example: I have the input (on the left) and want to transform it to the format on the right: Now imagine you have 90.000 of those entries, so copy & paste is not something you want to do. Regular Expressions to the rescue You can easily achieve this using very simple regular expressions, all you need is an editor which supports this functionality like Notepad++ (which I’m using in this example). Select Search -> Replace… in […]

Featured

Allgemein

How big download portals earn money with your software

Posted on März 17th, 2014.

I offer a free tool for download on my homepage called “Get My Keys Back” – which helps you recovering your Windows or Office CD Key. I get lots of offers for bundling it with some installers for some $$ for every download. Since these Installers are pure evil I never signed up for this but now I was curious to see if there are also websites which don’t ask for my permission and bundle it with their installer. I went to Google. First thing I noticed was that my own homepage was on the third place in the results overview – I just suck at SEO, I guess. But […]

Featured

Allgemein

Facebook buys WhatsApp for freakin $19 billions

Posted on Februar 20th, 2014.

If you ask me there’s one main reason why WhatsApp is so successful. Sure, they were one of the first messaging apps out there but thats not it. They are successful because they put the user first. We wanted to spend our time building a service people wanted to use because it worked and saved them money and made their lives better in a small way. […] We knew we could do what most people aim to do every day: avoid ads. No one wakes up excited to see more advertising, no one goes to sleep thinking about the ads they’ll see tomorrow. We know people go to sleep excited about […]

Featured

Java

Spring Security with custom AuthoritiesPopulator over LDAP

Posted on Januar 30th, 2014.

Spring offers you a lot of possibilities when it comes to configuration. But sometimes this billions of possibilities can be a real pita! Reacently i had to connect a Spring MVC application to a LDAP authentication server and since the webapp allready run on spring security i decided to keep it that way an use the LdapAuthenticationProvider offered by spring. When your project is simple enough so you can use the default configurations offered by spring the complete working LDAP configuration can be as simple as this: It’s as simple as that. Unfortunately our webapp doesn’t get the roles from the LDAP, it’s only used to authenticate the user, the roles […]

Featured

Allgemein

Java: Validierung und strukturelle Pruefung einer IBAN

Posted on September 6th, 2013.

Als ich vor einer Weile die Anforderung bekam eine Prüfung für IBANs zu implementieren habe ich gedacht ich bin im 10 Minuten fertig, das Internet ist groß, stimmts? Google ist nur einen Klick entfernt, oder? Nun ja, nach den ersten Suchvorgängen habe ich den einen oder anderen Beitrag gefunden der einen mehr oder weniger brauchbaren IBAN Validator verlinkt. Doch die Validierung einer IBAN ist im Grunde der einfache Teil, das etwas schwierigere Vorhaben ist aber die Strukturelle Prüfung einer IBAN. Dazu kann man zwar einige Web-Tools finden, die das bei bedarf erledigen, aber eine ordentliche Library sucht man dafür vergeblich. (Zumindest habe ich nichts gefunden was mir wirklich gefallen hat). […]