Fixing Error of Metronic Theme PagedList component


Metronic Theme have PagedList component which provide users prepare paged list quickly. However, it have a issue: When user clicks the number of active page link number page thwors error. Because link of active page misdefined. To fix this I’ve prepared a jquery patch.


$(document).ready(function () {

    //fixing pagedlist bug-patch s.atan

    $(".pagination > .active > a").mouseover(function () {

        var href = $(this).attr("href");

        console.log(href);

        $(this).attr('href', 'javascript:');

        $(this).attr('style', 'color:green; font-weight:bold');

    });

});
Reklamlar

Human Friendly ASP.MVC Serie


As a veteran Python programmer, I am used to coding in the clear and lazy way because Python has not red tape and fantastic overwhelming details. Nowadays I have to code with ASP.MVC 5 with Razor, however.  Gradually, I am coding and learning.  First and foremost attribute of I’ve noticed is ASP.MVC requires a lot of red tape. Especially for type conversations makes me angry. Therefore, I decided to post my experiences as a Python Programmer in ASP.MVC on the “human friendly” way. I branded it “Human Friendly ASP.MVC”.  I will share the codes and advices clearly. I am hating the tradition of sharing plethora of code lines. That is makes readers confused. I will use clear-cut style of python. Do not try to execute, dare to learn…

Here is first:

image

Enjoy

Connect to Java Libraries and call native Java functions from R


R provides very interesting and useful properties for its users. Sometimes you couldn’t find the required library in R libraries like me. For “Natural Language Processing” library in Turkish there is no library in R. Yet I have found a Java Library to be able to do my task. Initially, I have confused then if found a connector library in R for calling any class from native Java.

Here is how:

https://gist.github.com/suatatan/f3e457901939a1d1f9ce.js