Stretching background image to full size
I want to make this image as the background image of my webpage. However ,
the problem is that the image doesn't cover the whole of the page, as you
may see in this preview , and it gets repeated at the rightmost end . Is
there a way so that the image covers the whole page (be it any way ,
stretching , re-sizing , or something new).
My Code:
<!DOCTYPE HTML>
<html>
<head>
<title>Angry Birds Star Wars</title>
<script src =
"http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src = "http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<style>
body {
background:
url('http://www.androidtapp.com/wp-content/uploads/2012/11/Angry-Birds-Star-Wars-Menu.png');
}
</style>
</head>
<body>
</body>
</html>
Thanks.
Busta
Sunday, 1 September 2013
Saturday, 31 August 2013
Multiple Inheritance in C
Multiple Inheritance in C
I am stuck with a classical Multiple Inheritance problem in C.
I have created source files Stack.c and Queue.c. Both of them #include a
file Node.c (which containing functions to allocate and deallocate
memory). Now, I am trying to implement another program in a single file,
for which I need to include both Stack.c and Queue.c. I tried to #include
both the files, but the compiler is throwing a conflicting type error.
What is the most correct way to do so?
Thanks in advance!!
I am stuck with a classical Multiple Inheritance problem in C.
I have created source files Stack.c and Queue.c. Both of them #include a
file Node.c (which containing functions to allocate and deallocate
memory). Now, I am trying to implement another program in a single file,
for which I need to include both Stack.c and Queue.c. I tried to #include
both the files, but the compiler is throwing a conflicting type error.
What is the most correct way to do so?
Thanks in advance!!
how to set seed in multiple imputation in Amelia?
how to set seed in multiple imputation in Amelia?
Every time the "Amelia" package is run, some new sets of datasets are
produced. Is there a way (such as setting seed, as is done in random
number generation) so that the produced datasets can be replicated?
Thanks.
Every time the "Amelia" package is run, some new sets of datasets are
produced. Is there a way (such as setting seed, as is done in random
number generation) so that the produced datasets can be replicated?
Thanks.
setBackGroundRGB not accepting string
setBackGroundRGB not accepting string
The class setBackgroundRGB() works if I pass it a literal
setBackgroundRGB(255,255,255);
but if I pass it a variable instead, it fails:
_Color = "255, 255, 255";
setBackgroundRGB(_Color);
Does not work and returns an error
`Cannot find method setBackgroundRGB(string)`
Do i need to do some kind of conversion here that I am not aware of?
The class setBackgroundRGB() works if I pass it a literal
setBackgroundRGB(255,255,255);
but if I pass it a variable instead, it fails:
_Color = "255, 255, 255";
setBackgroundRGB(_Color);
Does not work and returns an error
`Cannot find method setBackgroundRGB(string)`
Do i need to do some kind of conversion here that I am not aware of?
MySQL really unexpected error. BIGINT out of range
MySQL really unexpected error. BIGINT out of range
I have this kinda complicated query that is well explained in this
question. I haven't changed anything in the query or anything relating to
this system , however I suddenly started getting this error
BIGINT UNSIGNED value is out of range in '(_db.ads.impressions_total -
(cast(((curdate()) - cast(_db.ads.start as date)) as unsigned) *
_db.ads.impressions_perday))'
I'm really confused, I guess something is not caching right but what can I
do? I really need help..
I have this kinda complicated query that is well explained in this
question. I haven't changed anything in the query or anything relating to
this system , however I suddenly started getting this error
BIGINT UNSIGNED value is out of range in '(_db.ads.impressions_total -
(cast(((curdate()) - cast(_db.ads.start as date)) as unsigned) *
_db.ads.impressions_perday))'
I'm really confused, I guess something is not caching right but what can I
do? I really need help..
Asp.net and ListView Control
Asp.net and ListView Control
I am printing data using List View control. I used LinkButton in
itemtemplate. I want that column name should not be printed. What changes
i have to make?
I am printing data using List View control. I used LinkButton in
itemtemplate. I want that column name should not be printed. What changes
i have to make?
Receive an array via $resource get method
Receive an array via $resource get method
I can see the received array and params in the console.log, but I can't
echo that array to the view...
That online JSON service returns {"key": "value"}
How to make this {{some_item.key}} to work? Thanks!!
<!DOCTYPE html>
<html ng-app="Simple">
<body>
<script type="text/javascript"
src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<script type="text/javascript"
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular-resource.min.js"></script>
<div ng-controller="SimpleController"></div>
{{some_item.key}}
<script>
angular.module('Simple', ['ngResource']);
function SimpleController($scope, $resource) {
$scope.simple = $resource('http://echo.jsontest.com/key/value',
{callback:'JSON_CALLBACK'},
{get:{method:'JSONP'}}
);
$scope.some_item = $scope.simple.get();
console.log($scope.some_item); // gives a response array
console.log($scope.some_item.key); // undefined
}
</script>
</body>
</html>
I can see the received array and params in the console.log, but I can't
echo that array to the view...
That online JSON service returns {"key": "value"}
How to make this {{some_item.key}} to work? Thanks!!
<!DOCTYPE html>
<html ng-app="Simple">
<body>
<script type="text/javascript"
src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<script type="text/javascript"
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular-resource.min.js"></script>
<div ng-controller="SimpleController"></div>
{{some_item.key}}
<script>
angular.module('Simple', ['ngResource']);
function SimpleController($scope, $resource) {
$scope.simple = $resource('http://echo.jsontest.com/key/value',
{callback:'JSON_CALLBACK'},
{get:{method:'JSONP'}}
);
$scope.some_item = $scope.simple.get();
console.log($scope.some_item); // gives a response array
console.log($scope.some_item.key); // undefined
}
</script>
</body>
</html>
Subscribe to:
Posts (Atom)