Posts

Showing posts from January, 2014

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 co...

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 ...

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 cha...

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 wa...

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 voi...

CSS Side Borders for a HTML5 Game

Image
It's time to created a HTML game with a more efficient background. As it stands I have already created an effective way to display my icy landscape with the actual game load on top of the canvas. Making it so I don't have to clear the whole canvas to create animations.This is a great improvement verse what I had before,  it was a much bigger image and had everything inside it. So moving from there I separated the side borders and split them into two images. Using a Div around my canvas tag I set the left image as the background and the second image on the canvas tag itself. This was not enough I now wanted to see if I could use a single image flipped horizontally for the other side. The Setup < div id = "game" > < canvas id = "window" > Sorry but Canvas is not Supported </ canvas > </ div > First Attempt Doing some research I found a way to flip background image. The problem was the flip effecting both images and trying...

Integrating Orchard CMS with an Existing MVC Apps

I have created multiple modules within the Orchard CMS framework and even setup complete systems that have helped maintain internal data but after all that I still had a question for myself. Can I use Orchard for a project where Orchard was not the focus of the application and integrated with existing applications. So in other words Orchard was an extension or a sub application. Resources Orchard Project - Integrate Orchard with existing asp.net web forms site asp.net mvc - How do I integrate Orchard CMS with a current MVC2 application? - Stack Overflow .net - Integrate existing ASP.NET MVC application with Orchard CMS - Stack Overflow Orchard Project - Integrating Orchard into existing MVC site Orchard Project - Can I integrate nopCommerce with Orchard Theory Using MVC's Area concept you might be able to create a MVC application and have Orchard rest inside the created area and if you wanted also have your database on a single or separate instance from the Orchard solut...

Google App Engine: Ignoring Files/Folders on a Windows PC

This is a short article but important for my case since I have a lot of files that I do not want to release with the final production of my app. My assumption at first was that if your "app.yaml" file does not contain a handler for the specified a file or folder it would by simply ignore it but  does not seem to be the case. Resources Google App Engine App.yaml config for skip-files to ignore Mercurial files - Stack Overflow Create/rename a file/folder that begins with a dot in Windows? - Super User Summary Just put a dot in front as well as at the back of a folder/file's name.

Popular posts from this blog

Aspetcore: NLog with Postgresql

Mongodb Cheatsheet

Installing Windows on Acer chromebook 15 cb3-532