How I solved it:
Later i the process I came to know that I had the name for an Action was “View” that you can see in the picture below.
I renamed it to View1 and it worked again. Hope this helps somebody. Thanks!
MongoDB is a NoSQL DataBase whose main features include document-oriented storage, full index support, replication and high availability, auto-sharding, querying, fast in-place updates, Map/Reduce, and GridFS.
MongoDB addresses volume, variety, and velocity of data that organizations increasingly have to deal with in the following ways:
- Massive Data Volumes: MongoDB is designed to scale horizontally on commodity hardware, making it easy to add nodes to a cluster as data volumes and velocities increase.
- Real-time demands: As well as supporting the fundamental querying that you’d expect from an operational database, MongoDB’s native Map/Reduce and aggregation framework support real-time analytics and insights.
- Rapid evolution: An organization’s needs should change as it responds to the information gained from all the data it has access to. MongoDB’s dynamic document schema enables applications to evolve as the needs of the business evolve.
- Document-Oriented Storage: MongoDB is a document database, meaning that it stores data in semi-structured, JSON-style documents in collections, rather than storing data in tables that consist of rows and columns, as is done with relational databases such as MySQL. MongoDB collections are similar to tables in relational databases, although collections are a lot less rigid.
|Image Courtesy: wikipedia.org|
- Presents a platform that enables the mixing (or mash-up) of technologies and data
- Enables services to be consumed that are beyond the boundary of the application
- Harnesses collective intelligence by enabling the following:
- Aggregation of relevant content from heterogeneous sources
- User contributed content
- User moderation of content via tagging and rating
- Uses state-of-the-art technologies that take interactivity on the Web to the next level by use of popular technologies like Ajax, Flash, and Silverlight.
In this article I'll explain what a Parallax is? What does it mean? How to create one from scratch? There're so many JS libraries out there that I used to the effect in action but I never thought of getting into the basics of its What & How. Trust me, it's that simple. Let's move ahead and explore what's in there. This article is useful for all Beginners in Web Design & Development.
What is Parallax?
Definition: The effect whereby the position or direction of an object appears to differ when viewed from different positions.
Well, that's a bit tough to understand what exactly a Parallax mean. Putting it simple, Imagine you're in a forest. You know how when you move sideways and look at the trees, the ones at the distance seem to move at a different rate (slower) than the ones near you?
Another easy way to understand this is to hold your index finger about 6 inches from your face. Look at it with just your right eye, then just your left eye, and notice how its position changes with respect to the
Or, when you play old side-scrolling video games, the backgrounds will have three layers that move at different speeds to make it look like you're moving?
That moving of different layers at different speeds effect is parallax. I hope now you understand what does that heavy word mean? Okay, let's move now and see what composes a parallax.
What is takes to create a Parallax?
Demo: How we do it?
I will take two layers for demo purposes (you may include as many as you want as I explained earlier).
Here you can see I've two divs having class "background" for background layer and "contents" for the layer on top.
I'm going to include more contents to "contents" div so that we can have the space to scroll. Below is the CSS which does all the magic of creating the layers from the two Divs above:
So, to reveal the secret behind, we fix the layers in background using CSS and later increase/decrease the at a desired rate on scroll. That's all a parallax has to do with it.
Here I've a function named "parallax" which updates the "top" CSS property for fixed layer which is in background as per the scrolling has been done. Later I bind this function to "onscroll" event of window object so that it does the magic.
I've used lorempixem.com for sample images that you see appearing in background.
Here's the complete code:
background: url('https://lorempixum.com/1024/768') repeat;
height: 300%; /* adjust the height according to the length of contents */
var scrolled = $(window).scrollTop();
I always keep trying latest applications of my interest in market from internet and often came across this scary word and for many softwares that I downloaded without knowing whether it’s a fully working or pre-release or anything else, had this title as “Nightly Build” version of X software. Probably I was frightened of any ghost thinking of that it may get’s build at mid night or only at nights and not during day time so I just kept ignoring the term and using the softwares. But so far in the journey, I got the courage (lol.. after so long time) to explore what really it means. Hence my this post is for the “Geeks” like me who never try to search for the such keywords just avoiding any unfortunate consequence.
What is a “Nightly Build” version of any software?
Nightly builds are automated Alpha builds from the latest development code in Testing. By nature, these builds are experimental, unstable, untested, hence – may contain Bugs and Errors and may be harmful to your machine. It’s the build before release of any Beta version or a Release Candidate (RC).
Nightly Build = An automatic build from a codebase
In software development, a neutral build is a build that reflects the current state of the source code checked into the source code version control system by the developers, but without any developer-specific changes.
A nightly build is a neutral build that takes place automatically. These typically take place when no one is likely to be working in the office so that there are no changes to the source code during the build.
Obviously, it may or may not be usable, depending on what stage of development it’s at, what the release strategy for that project is, etc. What you are testing is a snapshot of unfinished software at one moment in time.
Many times I use Sublime Text as my GoTo text editing tool for not so serious scripting and want it to html files in Google Chrome on build. Here I’m sharing the steps how I made it work. You first need to create a “Build System” called by Sublime Text in order to achieve this purpose. Build Systems are JSON files having extension name as “.sublime-build“. It allows you to run external programs from within the editor.
As the Sublime Text Unofficial Documentation –“Build systems let you run your files through external programs like make, tidy, interpreters, etc.”
Coming to the actual point of this post, to create a build system to run your HTML files in Google Chrome on build: follow the steps below:
I’m using Sublime Text 3 and running Windows 7 OS.
1. Start Sublime Text > Goto Tools > Build System > New Build System:
2. It will open a file named “untitled.sublime-build” looking like picture below:
3. Find “Google Chrome” Programs > Right click on Properties > Copy the full path of the application, it will look like this:
“YourUserName” is your user account name under which you’re working in Win 7 OS.
4. Modify the contents of new sublime build file as below and save as “Chrome.sublime-build”. By default it shows the build directory that should be:
“C:UsersYourUserNameAppDataRoamingSublime Text 3PackagesUser”
If you see any other folder, please ensure and change it to the folder above otherwise Sublime Text will not be able to see and use this build system.
And Yes, don’t forget to escape the backslash in the path! (highlighted in violet in picture below)
5. Now as you have saved he build system as “Chrome.sublime-build” in Build Systems directory, it will now show up in “Build System”, select it:
You’re all done now. Just open any html file or write and save new file as html and press “CTRL+B” or Goto Tools>Build and it will open the HTML file in Google Chrome.
Thanks for reading! Hope you enjoyed this article.
String path = HttpContext.Current.Server.MapPath(“~/myFolder/myFile.txt”);
You can use the way mentioned above but ASP.NET MVC 4 has another way to map files on server and that is using HostingEnvironment class. Actually Server.MapPath() also internally calls HostingEnvironment.MapPath() to map the file paths on server. It belongs to the System.Web.Hosting namespace. SO you can use it like this:
String path = HostingEnvironment.MapPath(“~/myFolder/myFile.txt”);
It is more recommended because its static and not dependent on current context unless you want it to use.
- First one is Absolute lengths, i.e.: the ‘cm’, ‘mm’, ‘in’, ‘pt’, ‘pc’, ‘px’ units
- Second one is Relative lengths having two sub categories:
- Font-Relative lengths: “em”,”ex”,”ch”,”rem” units &
- Viewport-percentage lengths: the ‘vw’, ‘vh’, ‘vmin’, ‘vmax’ units