-
Relative div is passing over fixed div while scrolling page
Relative div is passing over fixed div while scrolling page To solve this problem we should use property name z-index. So now , HTML =”navcontainer”>This is navigation =”movable_relative”> =”text”>text </div> CSS #navcontainer { position:fixed; z-index:3; } .movable_relative { position:relative; z-index:2; } I hope your problem will now be solved.
-
Adding time at which tweet or any text created in rails
Adding time at which tweet or any text created in rails So, for adding time use the above code if tweet or text was added before 24 hours then it will display as 2 hours ago or 4 hours ago and if more than a day time then it will display date. <% if…
-
Link_to tag color change
LINK _TO tag color Working on rails is quite different. The link_to tag is used to give links to texts on rails. To change its color, just add a line style: ” color: color_name” refer the image above for more clearity.
-
RAILS adding image through .scss file
RAILS adding image through home.scss file or any .scss file For working on .scss file we have to take care of how to add an image though this file. So first of all we have to use simple background-image tag background-image: url(‘your image url’); now add these lines , -webkit-background-size: cover; -moz-background-size: cover; -o-background-size:…
-
NameError in Devise::RegistrationController#create
NameError in Devise::RegistrationController#create If you get this kind of error while using Devise in your rails project, you have landed to right place. Let us first know why we got this error. This error indicates that you have not correctly fixed the permissions on devise. IS THE USER MARKED CONFIRMABLE???? Now we directly jump to…
-
SHOWING OFF ASSETS
“Sometimes glass glitters more than diamonds because it has more to prove.” SHOWING OFF TREND These days the status is being more important to people than anything. The trend of showing off in lifestyle, marriages are so common. DOGS – Dogs have attracted the society towards them. Some people say they are the best baby…
-
ADDING IMAGES IN RUBY html( .ERB) FILE
HTML .ERB FILE (adding image using tags) First of all we have to know the syntax of adding images in html file which is <img src=”image.jpg”/> Now using this syntax will not give us image in output To use this image first of all create a folder ( public )where app file (app.rb) is present…
-
Biometrics Fingerprint Technology
Why Biometrics? Biometrics is a security solution based on something you know, have, and are: Know Password, PIN Have Key, Smart Card Are Fingerprint, Face, Iris Passwords are not reliable. –Too many –Can be stolen –Forgotten Protect Sensitive Information –Banking –Medical
-
Asymptotic Notations
The following 3 asymptotic notations are mostly used to represent time complexity of algorithms. 1) Θ Notation: The theta notation bounds a functions from above and below, so it defines exact asymptotic behavior. A simple way to get Theta notation of an expression is to drop low order terms and ignore leading constants. For a…