GeekFreak

Dedicated to all Geeks out there…

Feedback please on Mobile IDE concept

Hello I was wondering if I could get some peoples opinion on a open source concept I just opened over at source forge?

Here is the link: https://sourceforge.net/projects/mindcontrol

Name: Mind Control
Platform Target: Mobile OS and Tablet Platforms
Type: Interface Development Environment ( IDE )
Language: C ( so far )
Database: Undecided
Connection: Over the Air
Info:
This is a ‘Tablet & Mobile OS’ IDE concept that allows for quicker processing by using application servers for the heavy work and allowing total development integration.

Mobile technology application have a need to reduce processing directives and file sizes. With these concepts at the core of of Mind Controls fundamentals; total development integration concepts like version controls, compiling, resource handling, library integration, debug system, JIT support and more can be achieved.

Why a mobile IDE? This program is intending for developers who move. Need to make changes to existing code bases on the fly but have no computer access? Have an idea but you’re at the beach? Want to practice coding in your down time at the airport? It may not replace your desktop; it sure will try to.

Need help with an animation project

I am having some difficulty with this project. It is supposed to be an animation of falling leaves. I am very new to arrays and JavaScript, so right off the bat I know that the arrays I have are not right, or are missing something else in order for it to function. Basically all I have for this project is a still picture of the leaves and that is it. If there is someone out there with some JavaScript expertise, could you tell me what I am doing wrong?
Here is the code so far, I think it is too long.

Code:

<script type="text/javascript">
/* <![CDATA[ */
grphcs=new Array(6)
Image0=new Image();
Image0.src=grphcs[0]="images/leaf1.gif";
Image1=new Image();
Image1.src=grphcs[1]="images/leaf2.gif";
Image2=new Image();
Image2.src=grphcs[2]="images/leaf3.gif";
Image3=new Image();
Image3.src=grphcs[3]="images/leaf4.gif";
Image4=new Image();
Image4.src=grphcs[4]="images/leaf5.gif";
Image5=new Image();
Image5.src=grphcs[5]="images/leaf6.gif";

var minSpeed = 5;
var maxSpeed = 30;
var randomSpeed = 5;
var randomSpeed2 = 10;
var randomSpeed3 = 15;
var randomSpeed4 = 20;
var randomSpeed5 = 25;
var randomSpeed6 = 30;
var minHorizontal = 200;
var maxHorizontal = screen.availWidth - 300;
var leftPosition = Math.floor(Math.random() * (maxHorizontal -

(minHorizontal + 1)) + minHorizontal);
var leftPosition2 = Math.floor(Math.random() * (maxHorizontal -

(minHorizontal + 1)) + minHorizontal);
var leftPosition3 = Math.floor(Math.random() * (maxHorizontal -

minHorizontal +1)) + minHorizontal);
var leftPosition4 = Math.floor(Math.random() * (maxHorizontal -

minHorizontal + 1)) + minHorizontal);
var leftPosition5 = Math.floor(Math.random() * (maxHorizontal -

minHorizontal + 1)) + minHorizontal);
var leftPosition6 = Math.floor(Math.random() * (maxHorizontal -

minHorizontal + 1)) + minHorizontal);
var minVertical = 50;
var maxVertical = screen.availHeight - 300;
var topPosition = Math.floor(Math.random() * (maxVertical -

(minVertical + 1)) + minVertical);
var topPosition2 = Math.floor(Math.random() * (maxVertical -

(minVertical + 1)) + minVertical);
var topPosition3 = Math.floor(Math.random() * (maxVertical -

(minVertical + 1)) + minVertical);
var topPosition4 = Math.floor(Math.random() * (maxVertical -

(minVertical + 1)) + minVertical);
var topPosition5 = Math.floor(Math.random() * (maxVertical -

(minVertical + 1)) + minVertical);
var topPosition6 = Math.floor(Math.rnadom() * (maxVertical -

(minVertical + 1)) + minVertical);

function matchLeaf() {
      if (navigator.appName == "Microsoft Internet Explorer") {
          widthMax = document.documentElement.clientWidth;
          heightMax = document.documentElement.clientHeight;
      }
      else {
          widthMax = window.innerwidth - 14;
          heightMax = window.innerHeight;
      }
      autumnFall();
}

function autumnFall();
      var fallingLeaf1 = document.getElementById("leaf1");
      fallingLeaf1.style.left = leftPosition + "px";
      fallingLeaf1.style.top = topPosition + "px";
      fallingLeaf1.style.visibility = "visible";
      topPosition += parseInt(randomspeed);
      leftPosition += 0;
      if (topPosition >= screen.availHeight - 300) {
      topPosition = Math.floor(Math.random() * (maxVertical -

(minVertical + 1)) + minVertical);
      leftPosition = Math.floor(Math.random() * (maxHorizontal -

(minHorizontal + 1)) + minHorizontal);
      leaf1.src = "images/leaf" + Math.floor(Math.random() * 6 +

".gif";
      randomSpeed = Math.floor(Math.random() * maxSpeed -

(minSpeed + 1)) + minSpeed);
      }

      var fallingLeaf2 = document.getElementById("leaf2");
      fallingLeaf2.style.left = leftPosition2 + "px";
      fallingLeaf2.style.top = topPosition2 + "px";
      fallingLeaf2.style.visibility = "visible";
      topPosition2 += parseInt(randomSpeed3);
      leftPosition2 += 0;
      if (topPosition2 >= screenavailHeight - 300) {
      topPosition2 = Math.floor(Math.random() * (maxVertical -

(minVertical + 1)) + minVertical);
      leftPosition2 = Math.floor(Math.random() * (maxHorizontal

- (minHorizontal + 1)) + minHorizontal);
      leaf2.src = "images/leaf" + Math.floor(Math.random() * 6)

+ "gif";
      randomSpeed2 = Math.floor(Math.random() * (maxSpeed -

(minSpeed + 1)) + minSpeed);
      }

      var fallingLeaf3 = document.getElementById("leaf3");
      fallingLeaf3.style.left = leftPosition3 + "px";
      fallingLeaf3.style.top = topPosition3 + "px";
      fallingLeaf3.stye.visibility = "visible";
      topPosition3 += parseInt(randomSpeed3);
      leftPosition3 += 0;
      if (topPosition3 >= screen.availHeight - 300) {
      topPosition3 = Math.floor(Math.random() * (maxVertical -

(minVertical + 1)) + minVertical);
      leftPosition3 = Math.floor(Math.random() * (maxHorizontal

- (minHorizontal + 1)) + minHorizontal);
      leaf3.src = "images/leaf" + Math.floor(Math.random() * 6

+ "gif";
      randomSpeed3 = Math.floor(Math.random() * (maxSpeed -

(minSpeed + 1)) + minSpeed);
      }

      var fallingLeaf4 = document.getElementById("leaf4");
      fallingLeaf4.style.left = leftPosition4 + "px";
      fallingLeaf4.style.top = topPosition4 + "px";
      fallingLeaf4.style.visibility = "visible";
      topPosition4 += parseInt(randomSpeed4);
      leftPosition4 += 0;
      if (topPosition4 >= screen.availHeight - 300) {
      topPosition4 = Math.floor(Math.random() * (maxVertical -

(minVertical + 1)) + minVertical);
      leftPosition4 = Math.floor(Math.random() * (maxHorizontal

- (minHorizontal + 1)) + minHorizontal);
      leaf4.src = "images/leaf" + Math.floor(Math.random() * 6

+ "gif";
      randomSpeed4 = Math.floor(Math.random() * (maxSpeed -

(minSpeed + 1)) + minSpeed);
      }

      var fallingLeaf5 = document.getElementById("leaf5");
      fallingLeaf5.style.left = leftPosition5 + "px";
      fallingLeaf5.style.top = topPosition5 + "px";
      fallingLeaf5.style.visibility = "visible";
      topPosition5= parseInt(randomSpeed5);
      leftPosition5 += 0;
      if (topPosition5 >= screen.availHeight - 300) {
      topPosition5 = Math.floor(Math.random() * (maxVertical -

(minVertical + 1)) + minVertical);
      leftPosition5 = Math.floor(Math.random() * (maxHorizontal

- (minHorizontal + 1)) + minHorizontal);
      leaf5.src = "images/leaf + Math.floor(Math.random() * 6 +

"gif";
      randomSpeed5 = Math.floor(Math.random() * (maxSpeed -

(minSpeed + 1)) + minSpeed);
      }

      var fallingLeaf6 = document.getElementById("leaf6");
      fallingLeaf6.style.left = leftPosition6 + "px";
      fallingLeaf6.style.top = topPosition6 + "px";
      fallingLeaf6.style.visibility = "visible";
      topPosition6 = parseInt(randomSpeed6);
      leftPosition6 += 0;
      if (topPosition6 >= screen.availHeight - 300) {
      topPosition6 = Math.floor(Math.random() * (maxVertical -

(minVertical + 1)) + minVertical);
      leftPosition6 = Math.floor(Math.random() * (maxHorizontal

- (minHorizontal + 1)) + minHorizontal);
      leaf6.src = "images/leaf + Math.floor(Math.random() * 6 +

"gif";
      randomSpeed6 = Math.floor(math.random() * (maxSpeed -

(minSpeed + 1)) + minSpeed);
      }
}
/* ]]> */
</script>
</head>

<body onload="setInterval('matchLeaf()', 100);">

    <img id="leaf1" src="images/leaf1.gif" alt="leafone"

style="position:absolute; left:100px; top:100px;" />
    <img id="leaf2" src="images/leaf2.gif" alt="leaftwo"

style="position:absolute; left:100px; top:100px;" />
    <img id ="leaf3" src="images/leaf3.gif" alt="leafthree"

style="position:absolute; left:100px; top:100px;" />
    <img id="leaf4" src="images/leaf4.gif" alt="leaffour"

style="position:absolute; left:100px; top:100px;" />
    <img id="leaf5" src="images/leaf5.gif" alt="leaffive"

style="position:absolute; left:100px; top:100px;" />
    <img id="leaf6" src="images/leaf6.gif" alt="leafsix"

style="position:absolute; left:100px; top:100px;" />


Need help with this .JS, begging for just 2 features

See attached zip file.
Note if anyone doesnt know how to write applets, please disregard anything mentioned about applets and focus on javascript code.

Begging for 2 features to be implemented (i) make images lock-in to thumbnail tables (ii) if drag n drop image(s) onto other image(s) in any row, a new image(s) will replace the original image(s) that was drag n dropped over.

Currently I just want the script(s) to work off a html page on my USB Flash Drive, using W98, Firefox, with Javascripts enabled.

I do have the latest version of Java installed also in the case someone with some time on their hands creates an applet for me which would be an example of one of the premium options available for me.

Note see ZIP attachment, referring to my 2 sample html pages 1.2 & 1.3, if you use a Browser Zoom function, the thumbnails lose their position and are no longer aligned in the table.
Must design a script where thumbnails slot into each table row and therefore making the thumbnails snap-fit lock-in to the table thumbholder and if for example use Browser Zoom, the images dont lose positions in table.
The script must have a codename ID or something for each table row and for each table thumbnail slot (ie. rows and columns).

Note that the script must work (back and forth) between at least 2 different tables (ie. 2 separate rows of thumbnails).
Or is it better (for the script to work more efficiently), to create a large table which has a large portion in the middle that is empty, giving the visual impression that its 2 separate tables, and have the script working within just the 1 large table that has many rows but only some rows (eg. top row and bottom row) are being used for script?

Once a thumbnail image is drag n dropped onto another thumbnail slot (note that the thumbnail image can be dragged onto any and all other thumbnail slots that are interactive) that within the script, I will have pre-set / pre-determined in the script which new image will replace that thumbnail slot. Is that even possible with javascript or only with a java applet?

For example if I drag n drop the Green-thumbnail-image onto Red-thumbnail-image, the new value of the thumbnail slot where Red was positioned, will now be Yellow-thumbnail-image.
Is it possible in javascript or some similar dynamic code where a replacement thumbnail can load up if the user drags and drops another thumbnail image ontop of an interactive thumbnail?

Or must an applet be developed or can both options be developed but the applet is more robust and can perform more features.
I would prefer both options developed for me as I still want a javascript version despite applet being more dynamic.
Definitely want a javascript version exhausted to its fullest capabilities the language can offer.

Note that other scripts such as jigsaw javascripts could aid in developing this hybrid-combination script that i want.
For inspiration please see:
http://www.netzgesta.de/snapfit/
Note regarding the snapfit script there should be a settings for my hybrid script to allow the mouseover silhouette color changes turned on or off, depending on what I want at the time.

Also note that some thumbnails cannot be dragged/interactive and are fixed (permanently locked-in to the slot) therefore the script must allow for this function.
I must have the ability to set if the thumbnail slot is fixed/static or interactive (or some sort of code that allows me to adjust the setting for fixed/static).

eg.

values for fixed/static

0 = off
1 = on

Note that the number of columns (thumbnails) for each rows may vary therefore must be compatible/adjustable in the script.

With the feature (ii) to be implemented, whatever the new image value will be, in the script code it is pre-determined.
For example if you drag Row2-Image2 over and drop it on Row1-Image6 the new value will not be chased up through some A.I but through pre-determined code because we have already determined if this move is made what the new value will be.
Note that I would like to know if the script could be flexible enough for more images drag n dropped over eg. Row1-Image6 again, changing the value once again and so on.

This mean some sort of javascript code would have to be written. Below is not the code, rather explanatory equations of some possible scenarios.
if {r2i02(bbb.jpg) DnD onto r1i06(www.jpg)} = xxx.jpg
if {r2i04(ddd.jpg) DnD onto r1i06(www.jpg)} = yyy.jpg
So if either of those DnD moves are made we get 2 new different values.
However if both those moves are made then we would have to create a new {if} equation which accommodates for eg. {r2i04(ddd.jpg) being moved first and {r2i02(bbb.jpg) being moved last or vise verse.
if {r2i02(bbb.jpg) DnD onto r1i06(www.jpg)} = xxx.jpg
if {r2i04(ddd.jpg) DnD onto r1i06(xxx.jpg)} = zzz.jpg
and so on

The more I think about it the more I suspect this code can only be achieved with an applet.
Can anyone verify this?

Please check my 2 sample html pages 1.2 & 1.3

1.2
You will notice that currently the drag-able thumbnails are just floating ontop of thumbnail images found in 2 tables.
It is just an illusion that the drag-able images appear to be in tables.

1.3
I have attempted to move the code for the first row of drag-able images into the first table, replacing the old code for the first table. My test/theory was unsuccessful.

I leave it in your hands to play around with.

If by extensive research anyone discovers that javascript alone will not allow the new value of a thumbnail image to replace an older thumbnail image in a thumbnail slot, please dont drop the project altogether.
I will still accept just being able to move the interactive thumbnail images around which lock-in to interactive thumbnail slots (columns).

Please Help. Thanks for your attention.

Attached Files
File Type: zip drag_n_drop.zip (6.8 KB)

Background sizes?

I had no idea what thread to use for this question as I don’t know how to do it so I put it here. Hope that is okay.

I want to know how a website knows what screen resolution a computer is using to adjust its parameters. If this is code that is quite intensive all I really want is background sizes to begin with.

Another thing of what I really want is to know how certain sites seem to have multiple background images. No I am not talking about a repeat layer, but when the background image is quite different on top then on the bottom.

hope that makes sense.

FTP client with unzip ability

Is there an FTP client that has an unzip ability?

i.e. something that will allow me to upload a zip file and then allow me to unzip that file by right clicking or something

I’m sure purists would claim that ‘unzipping’ is not part of FTP functionality
Yes – but it wouldn’t take a genius to add some sort of extra web functionality and make it become a ‘hybrid’ program

I like using Filezilla – but then this doesn’t have the unzip functionality
I am forced to use my Cpanel file explorer – this sucks! I hate the clunky ancient interface

Thanks

OM

Gasoline-powered diesel-like engine could boost fuel economy by 50 percent

With both gasoline and diesel engines having their own particular advantages and disadvantages, automotive component manufacturer Delphi is looking for a best-of-both-worlds solution with a gasoline-powered engine that uses diesel engine-like technology for increased fuel efficiency. According to MIT’s Technology Review, such an engine has the potential to increase the fuel economy of gasoline-powered cars by 50 percent and give hybrid vehicles a run for their money in the fuel economy stakes…
Continue Reading Gasoline-powered diesel-like engine could boost fuel economy by 50 percent

Section: Automotive

Tags: ,
,
,
,
,

Related Articles:


SpaceX delays launch to ISS

The SpaceX Falcon 9 rocket on its pad at Cape Canaveral, Florida (Photo: SpaceX/Roger Gilb...

SpaceX has suffered another hitch in its quest to become the first commercial company to send a spacecraft to the International Space Station (ISS). The launch scheduled for May 19 from Cape Canaveral was cancelled due to a potential problem with one of the engines aboard the Falcon 9 launch vehicle, but all systems should be go on May 22…
Continue Reading SpaceX delays launch to ISS

Section: Aero Gizmo

Related Articles: