Posts

Orchard: Filter out Content Types From Restricted Users.

I want to be very clear I did not write this code but it was provided to me and I was given permission by a colleague of mine to submit it.. To respect his privacy I will not be able to provide his name but on his behalf I did submit the code to help improve the orchard project. To explain it a little bit what the purpose of this code edit, it is to filter out content that is editable but the user does not have the permissions to create them. Normal what Orchard would do is display all creatable content and if a user clicks on a particular content type that is restricted it simply replies to the user that they do not have access to it. However with a lot of CMS projects I have developed it is sometimes better to simply hide what the user can not or should not be able to do. Less questions come up and even less problems are seen from the user's perspective. This is what I consider to be a best practice to provide the user with a good experience. The Location : \ orchard

Jquery Ajax with BlockUI Plugin

    I love making Ajax calls and if a user is interacting with a page and doesn't need to refresh or be redirected to another page than an Ajax call is the best thing to use in my opinion. With my best efforts I try to give my users an experience where every action has a result. This means everything even if the reaction is simple or does nothing more than alert the user. I like to let the user know that all is fine and meant to be the way it is. If an error happens they should be alerted as well. Which I should also try to prevent and recover from, but what about with an ajax call that takes a while to process? Well I have been using a really cool process with my code where I can display to my users that the process is going through. With "Please wait..." message users can see it is order is being processed and controls will returned to them when it has completed.     You can see an example here  and to go a step further then this I thought this would be a cool place t

Recover Deleted Posts in Blogger

Image
    This article is to share what I think is the easiest and fastest way to recover delete blog post on blogger. Which I really needed to know for myself with one of my previous articles First off do not delete your browser history! If you have you will not be able to do it the way I'm about to explain but hopefully can still try other means defined in the resources. I also believe you can't have it be a post that you published but I did not confirm this. Thankfully the actual data isn't deleted and lucky for us it's just hiding on the servers waiting for us to find it. In Chrome     I could show you how to do this in every browser but the concept is very much the same in all of them, we are just trying to go back to the specific view where we can edit the post. If you're like me and jump around a lot between drafts you'll have a lot to search through. Still this is better than completely starting over. URL Example : ~/blogger.g?blogID= yourId #editor/targ

Fiddler Tutorial/Notes

    I after using Fiddler for a few years now, I wanted to jot some notes down for myself so I don't forget. I really like using fiddler and most of the time I prefer using it over the developer tools inside chrome just because I can use it across different browsers at the same time. This Saves me a lot hassle in opening the developer tool everytime but you might ask what is fiddler? "Its a web Proxy", where you can debug traffic calls, test the network performance and tons more stuff.  Fiddler is a .net application and will not run on other platforms however you can point clients to a host machine that is able to run fiddler and debug from there. Notes Traffic Import- Seeing a client's web experience. FiddlerCap  - lightweight version of fiddler more for client users, to allow you to see specific http request and responses even if you not on that network. Example problems that you can use this for: DNS corruption Poison DNS or other known as DNS spoofin

An Introduction to Cryengine

    This is an introduction to the Cryengine  3.0 which I started using a while back for a side project to began exploring the possibilities to develop future projects with. My hope is to some day create a "triple A game" or at least one that is console based. Infact that was what I loved about developing on the XNA framework. Thankfully the Cryengine comes with tons of documents and even a demo game for me to play with.  The sdk itself ran pretty smoothly on my machine but I did have difficulties getting pass a few bugs which never repeated after my first attempt. Also it seemed to me some of the configurations were being set to my machine rather than to the Cryengine solution itself which I didn't like. Questions Just a list of things I asked myself as I was starting out. How do I start it? Inside the 64 or 32 bit version bin folders select either the Sandbox or the Cryengine program. How do I compile it? The game comes precompiled and it updated on changes in th

Coursera: Introduction to Databases Part 1

     I ntroduction to Databa ses is  taught by Jennifer Widom and hosted by Coursera as a self paced class.  As someone  who  mainly does front-end developing I feel this class should be very helpful for me to add some new set of skill to my array. I also think this class will help better   prepare me  later down the road  for my plans to take the  SQL certifications . This is article is part of a series of other articles that will be on the class , but this article  particularly  is about XML, DTD and Json.     When I first started this article it was a single  entity  but as I got through more of the class the article was a little more  too  much for me to maintain as well as keep track of since I went out of order with what the had class. I think the topic that most interested me for this class was learning about triggers. However so far this article is about nothing new but I felt it was important to document.  XML  -  e X tensible  M arkup  L anguage An alternative to str

Unauthorized Ajax Handler for Asp.net MVC

Image
Requirements      I need respond to users that they are unauthorized, and I need it to not return a redirect to them from a ajax call which Asp.net MVC does by default. A even better solution would be that I also do not force users to refresh page they are currently on and instead give them the ability to re-login via ajax on that current screen. This would allow users to save any  information they are currently working on. I should warn the user that it they are no longer logged in and if possible prompt them and within that same prompt allow them a way to login back in all without refreshing or a redirect. For now I'm going to just focus on the first problem which is suppressing Asp.Net's default behavior with unauthorized calls and do this just for Ajax calls. An Example I can see while using Blogger Solution - Thanks to Joe Harrison for missing pieces!  //C# code override an Authorization Attribute create a customized one. protected virtual void HandleUnautho

Popular posts from this blog

UI-Bootstrap Collapsible Sticky Footer

Installing Windows on Acer chromebook 15 cb3-532

Aspetcore: NLog with Postgresql