« first day (3000 days earlier)      last day (1102 days later) » 

 
4 hours later…
 
4 hours later…
user15610873
11:44 AM
help me guys to solve this problem
 
@igsavers Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
 
user15610873
You are working in a restaurant and your job is to make Garlic Naan. You have prepared the dough for the Naan and flattened it into a square, plane surface, which is of side, S, cms. Since it is Garlic Naan, you sprinkle a large amount of garlic cloves on the surface of the dough.



When a customer orders a plate of Garlic Naan, you must cut a single, circular portion from the dough to use to cook the Naan. This is done using a dough-cutter. The dough-cutter is shaped in the form of a circle with a diameter of D cm(s).
 
Zoe
> But remember that this room is not a help desk or tutoring service
 
user15610873
thanks Zoe ... but it will be great if you give some hint atleast
 
Zoe
11:48 AM
Just write the code?
 
user15610873
noop i just need idea to how to figure out this question
 
user15610873
rest i will do myself
 
Zoe
8 messages moved from Java
 
user15610873
bro??
 
12:46 PM
that's what she said
 
1 message moved from Android
 
 
2 hours later…
user1986815
3:05 PM
I thought about this :
```
if (localStorage.getItem("logo") === null)
{
// fetch the "png" file and put it in the localstorage
// append it to a ID
}else{
// take it from the localstorage
// and append it to a ID
}

Why is this not a good idea ?
 
1 message moved from JavaScript
 
user1986815
3:29 PM
Is this here working for to fetch a pictureand attrib it to a variable ? And Can it run anytime in the script ?
var logoImage= $("").attr('src', '<?=G::logo200118png;?>').load(function() {

$("#logoId").append(logoImage);

});

or do I need the `$(window).load(function() ` to load it ?
 
1 message moved from JavaScript
 
user1986815
  $(window).load(function(){
    var logoImage= $("").attr('src', '<?=G::logo200118png;?>').load(function() {
      $("#logoId").append(logoImage);
      // When the image has loaded, stick it in a div
    });
  });
 
1 message moved from JavaScript
 
user1986815
3:42 PM
then I go like tis to store the picture in the localstorage

logoImage.addEventListener('load', function () {
var imgCanvas = document.createElement("canvas"),
imgContext = imgCanvas.getContext("2d");
imgCanvas.width = logoImage.width;
imgCanvas.height = logoImage.height;
imgContext.drawImage(logoImage, 0, 0, logoImage.width, logoImage.height);
var imgAsDataURL = imgCanvas.toDataURL("image/png");
localStorage.setItem("logo", imgAsDataURL);
}, false);

for some reason it does not work, there is nothing in the localstoreage
 
1 message moved from JavaScript
 
 
1 hour later…
 
1 hour later…
 
4 hours later…
 
2 hours later…

« first day (3000 days earlier)      last day (1102 days later) »