Quantcast
Channel: Josef Ottosson
Browsing all 244 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Hur jailbreakar man sin iPhone/iPad?

Först måste vi veta vad jailbreak är för något, varför vill man jailbreaka sin telefon och vad innebär det? Vad är det? Alla appar som du laddar ner till din iPhone måste gå igenom Apples Appstore. Här...

View Article


Episerver 7 Alloy MVC - Kom igång.

Kort guide för att komma igång med Episerver 7 Alloy MVC projektet. Suttit i några timmar och försökt installera exempelprojektet för Episerver 7 Alloy MVC. Har nog stött på alla fel man kan få men har...

View Article


EPiServer 7 - Youtube-block

Satt igår med ett projekt där kunden hade följande önskemål: HD-upplösning skall vara förvalt Dölja related videos i slutet av klippet Ha möjlighet att spela upp Youtube playlists Vi använder Youtubes...

View Article

Image may be NSFW.
Clik here to view.

Bingolotto, kan man gå plus?

Satte ihop en liten "Bingolottosimulator" igår, fick inspiration efter att ha sett Bad Grandpa Ni hittar den här: www.josefottosson.se/Bingo De största utmaningarna var att kolla om någon vunnit...

View Article

Image may be NSFW.
Clik here to view.

How to get a user's Instagram images with PHP

Did a recent project at work where the client wanted to show his Instagram feed on his page. It was a WordPress project (not a big fan of WordPress or PHP...) so Yes, I could've used a plugin to do it,...

View Article


Twitter bot made with Python!

Yesterday I found the following Twitter account and I thought that it was pretty funny so I decided to make my own implementation but instead of using Big Ben I decided to honor my great hometown,...

View Article

Change collation to UTF-8 on all tables with Django(Mysql)

I needed to change collation on 80+ tables so I wrote this simple python script. I placed the file in my Django project folder (same folder as settings.py etc) I also changed the character-set on the...

View Article

Note to self unix commands

Just some different unix commands/paths that I always forgets. Will be updated. Mysql config location MAC /usr/local/opt/mysql/my.cnf Start/stop/restart Mysql MAC sudo...

View Article


Image may be NSFW.
Clik here to view.

Spoof iPhone MAC-address

UPDATE!!! If you use iMessage, DON'T DO THIS 2014-09-03 iMessage stopped working on my iPhone after doing this. It still works on all of my other iDevices but not on my phone. I tried everything, clean...

View Article


Image may be NSFW.
Clik here to view.

EPiServer 7 MVC with Backbone and some Ajax!

Currently I'm working on a really fun and challenging project at work that involves EPiServer 7 and Backbone(with RequireJs and Handlebars). Our client is a very large company, they have an API...

View Article

C# MVC - Concurrent Ajax calls blocks the server until they are done

SessionState(SessionStateBehavior.Disabled) The row above decreased the load time from 30 seconds to 5 seconds. Yes. Let me explain. I've built a standard MVC project that uses Ajax, a lot. When a page...

View Article

How to use Fiddler/Charles when debugging .NET MVC Applications

Add this to the system.net section in your web.config <defaultProxy> <proxy proxyaddress="http://127.0.0.1:8888" /> </defaultProxy> 127.0.0.1:8888 is the default address that...

View Article

Image may be NSFW.
Clik here to view.

EPiServer ContentData to JSON

When working with EPiServer you would normally use standard Razor views to render your frontend code...you will get syntax support in Visual Studio and can use many nice little HtmlHelpers, I love it....

View Article


Image may be NSFW.
Clik here to view.

How to create a custom EPiServer 7 property with Dojo

I've used a lot of custom EPiServer properties at work but I've never built my own. Luckily for me, one client at work gave me a new project to work on. It's somewhat like a blog page, he wants to...

View Article

Image may be NSFW.
Clik here to view.

Validate page URLs in EPiServer

I overheard some colleagues on work today speaking about that they wanted to limit the length of the URLs on the pages in EPiServer. I got curious of how to do that so did some research and hacked...

View Article


Change session lifetime when using WIF(Sts)

Got a bug report at work today from a client where we've implemented the login towards a STS system. The reported error was that when they started working in the CMS(EPiServer) and then after some time...

View Article

Image may be NSFW.
Clik here to view.

C# MVC with Feature Folders, EPiServer example

I just started a new job, they are working with Features folders instead of the more common convention where you have Controllers in one folder, Models in another, Views in another and so on. I've...

View Article


Image may be NSFW.
Clik here to view.

Custom EPiServer key value property with predefined keys support

I've created a custom property with support for predefined keys. You can check out the source code on GitHub and you can install it by simply running Install-Package JOS.PropertyKeyValueList in the...

View Article

Image may be NSFW.
Clik here to view.

Easy way of changing the Episerver login backgrounds/logo

I've created a NuGet package that gives you(the developer) an easy way to change the background images and the logo(Digital Experience Cloud) on the login screen. It's heavily inspired by this blog...

View Article

ASP.net core appsettings transformation with environment variables on unix

TL;DR Replace dots with underscore and colons with double underscores. Consider the following IOptions<MetroSettings> implementation public class MetroSettings { public RealTimeDepartures...

View Article
Browsing all 244 articles
Browse latest View live