Computing desk | ||
---|---|---|
< July 18 | << Jun | July | Aug >> | July 20 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
Hey, I'm running GNU Octave 3.2.4 in Windows 7 and I was able to get these commands to plot correctly before (when broken up):
x=linspace(-10,10,100); y=2*abs((0.5*x))/(0.5*x)*(abs(5*(2*abs((1/5*0.5*(0.5*x)-0.5)-2*floor((1/5*0.5*(0.5*x)-0.5)/2)-1)-1)*abs((5-abs((0.5*x))%(2*5)))) -abs((5*(2*abs((1/5*0.5*(0.5*x)-0.5)-2*floor((1/5*0.5*(0.5*x)-0.5)/2)-1)-1)*abs((5-abs((0.5*x))%(2*5)))))*(5*floor(abs((0.5*x))%(2*5)/5))*2/5)/((abs(5/2)/(5/2)*(abs(5*(2*abs((1/5*0.5*5/2-0.5)-2*floor((1/5*0.5*5/2-0.5)/2)-1)-1)*abs((5-abs(5/2)%(2*5)))) -abs((5*(2*abs((1/5*0.5*5/2-0.5)-2*floor((1/5*0.5*5/2-0.5)/2)-1)-1)*abs((5-abs(5/2)%(2*5)))))*(5*floor(abs(5/2)%(2*5)/5))*2/5))/(5/2)); plot(x, y);
now, I get "syntax error" and then "plot(x, y);" with a caret below the "t" in "plot(x, y);". -- Melab±1 ☎ 03:50, 19 July 2010 (UTC)
%
,
which is a single-line comment. Perhaps you meant to use
the Modulo function. As a result of these comments, you have mismatched parentheses. In addition, unless you have customized your Octave workspace, you probably need line-continuation characters: ...
otherwise code that wraps more than one line will not be interpreted properly. You can find some
information on this feature/requirement, motivated by compatibility with
compatibility with MATLAB.
Nimur (
talk) 16:17, 19 July 2010 (UTC)
Here is what I put on frame 64 of scene 3 of my game, on the 'main' layer:
stop(); box1.onPress = function(){ startDrag(this); } box1.onRelease = function(){ this.stopDrag(); } box3.onPress = function(){ startDrag(this); } box3.onRelease = function(){ this.stopDrag(); } box4.onPress = function(){ startDrag(this); } box4.onRelease = function(){ this.stopDrag(); } box6.onPress = function(){ startDrag(this); } box6.onRelease = function(){ this.stopDrag(); }
The only problem: stopDrag doesn't work: I'm still dragging when I release the button. I've double-checked everything, including cases and spelling. I'm using flash 8. Kayau Voting IS evil 08:41, 19 July 2010 (UTC)
As I said, I was using Flash 8, so it's AS2, not AS3. I have four buttons, box1, box3, box4 and box5. (That's their actual names not library names. :P) I want the player to be able to drag them in the right places, and when they hit done, they would win under the circumstance that the _x property of the boxes are right. But that's unrelated. Now when I run the thing, I can press a box and drag it, but I can't stop dragging when I release. What is the problem? Kayau Voting IS evil 03:02, 20 July 2010 (UTC) ...wait, did you say movie clip? I made them buttons! Let me convert them to movie clips... Kayau Voting IS evil 03:03, 20 July 2010 (UTC) Converted the buttons to movie clips, and they work perfectly. Thanks a million! Kayau Voting IS evil 03:08, 20 July 2010 (UTC)
I've got a pen-drive with some marketing material and it has one folder which cannot be deleted. Somehow, they made this folder read-only, althought the rest of the pen-drive is accessible. It wouldn't be a big deal, if it had not also an autorun script, which means that every time I try to use the pen-drive, I have to see the marketing material. I tried to change the permission of the read-only folder with chmod, but it didn't work. What can I do? -- Mr.K. (talk) 10:48, 19 July 2010 (UTC)
Judging by what you are saying, I believe your drive is running U3 software. You should be able to remove the partition by finding the "Uninstall U3 Launchpad" option in the settings/in the Launchpad. A p3rson ‽ 02:11, 22 July 2010 (UTC)
Where's a Python compiler that I can download as a zip file? The one from http://python.org requires installation. -- 138.110.206.101 ( talk) 15:02, 19 July 2010 (UTC)
I have a (Chinese?) MP4 Player as shown
.When I plug it in to computer, the computer does recognise it, but shows it as blank (on "H: drive"), though all the files are there (you can play them). What to do ? Kindly help. Thanks. Jon Ascton (talk) 18:20, 19 July 2010 (UTC)
you deserve it for buying an iPod knock-off. Why don't you reward companies that innovate and not thieves and robbers. Would you let your children be babysat by a rapist if he will do it for a bit cheaper? —Preceding unsigned comment added by 84.153.179.98 ( talk) 15:36, 21 July 2010 (UTC)
Computing desk | ||
---|---|---|
< July 18 | << Jun | July | Aug >> | July 20 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
Hey, I'm running GNU Octave 3.2.4 in Windows 7 and I was able to get these commands to plot correctly before (when broken up):
x=linspace(-10,10,100); y=2*abs((0.5*x))/(0.5*x)*(abs(5*(2*abs((1/5*0.5*(0.5*x)-0.5)-2*floor((1/5*0.5*(0.5*x)-0.5)/2)-1)-1)*abs((5-abs((0.5*x))%(2*5)))) -abs((5*(2*abs((1/5*0.5*(0.5*x)-0.5)-2*floor((1/5*0.5*(0.5*x)-0.5)/2)-1)-1)*abs((5-abs((0.5*x))%(2*5)))))*(5*floor(abs((0.5*x))%(2*5)/5))*2/5)/((abs(5/2)/(5/2)*(abs(5*(2*abs((1/5*0.5*5/2-0.5)-2*floor((1/5*0.5*5/2-0.5)/2)-1)-1)*abs((5-abs(5/2)%(2*5)))) -abs((5*(2*abs((1/5*0.5*5/2-0.5)-2*floor((1/5*0.5*5/2-0.5)/2)-1)-1)*abs((5-abs(5/2)%(2*5)))))*(5*floor(abs(5/2)%(2*5)/5))*2/5))/(5/2)); plot(x, y);
now, I get "syntax error" and then "plot(x, y);" with a caret below the "t" in "plot(x, y);". -- Melab±1 ☎ 03:50, 19 July 2010 (UTC)
%
,
which is a single-line comment. Perhaps you meant to use
the Modulo function. As a result of these comments, you have mismatched parentheses. In addition, unless you have customized your Octave workspace, you probably need line-continuation characters: ...
otherwise code that wraps more than one line will not be interpreted properly. You can find some
information on this feature/requirement, motivated by compatibility with
compatibility with MATLAB.
Nimur (
talk) 16:17, 19 July 2010 (UTC)
Here is what I put on frame 64 of scene 3 of my game, on the 'main' layer:
stop(); box1.onPress = function(){ startDrag(this); } box1.onRelease = function(){ this.stopDrag(); } box3.onPress = function(){ startDrag(this); } box3.onRelease = function(){ this.stopDrag(); } box4.onPress = function(){ startDrag(this); } box4.onRelease = function(){ this.stopDrag(); } box6.onPress = function(){ startDrag(this); } box6.onRelease = function(){ this.stopDrag(); }
The only problem: stopDrag doesn't work: I'm still dragging when I release the button. I've double-checked everything, including cases and spelling. I'm using flash 8. Kayau Voting IS evil 08:41, 19 July 2010 (UTC)
As I said, I was using Flash 8, so it's AS2, not AS3. I have four buttons, box1, box3, box4 and box5. (That's their actual names not library names. :P) I want the player to be able to drag them in the right places, and when they hit done, they would win under the circumstance that the _x property of the boxes are right. But that's unrelated. Now when I run the thing, I can press a box and drag it, but I can't stop dragging when I release. What is the problem? Kayau Voting IS evil 03:02, 20 July 2010 (UTC) ...wait, did you say movie clip? I made them buttons! Let me convert them to movie clips... Kayau Voting IS evil 03:03, 20 July 2010 (UTC) Converted the buttons to movie clips, and they work perfectly. Thanks a million! Kayau Voting IS evil 03:08, 20 July 2010 (UTC)
I've got a pen-drive with some marketing material and it has one folder which cannot be deleted. Somehow, they made this folder read-only, althought the rest of the pen-drive is accessible. It wouldn't be a big deal, if it had not also an autorun script, which means that every time I try to use the pen-drive, I have to see the marketing material. I tried to change the permission of the read-only folder with chmod, but it didn't work. What can I do? -- Mr.K. (talk) 10:48, 19 July 2010 (UTC)
Judging by what you are saying, I believe your drive is running U3 software. You should be able to remove the partition by finding the "Uninstall U3 Launchpad" option in the settings/in the Launchpad. A p3rson ‽ 02:11, 22 July 2010 (UTC)
Where's a Python compiler that I can download as a zip file? The one from http://python.org requires installation. -- 138.110.206.101 ( talk) 15:02, 19 July 2010 (UTC)
I have a (Chinese?) MP4 Player as shown
.When I plug it in to computer, the computer does recognise it, but shows it as blank (on "H: drive"), though all the files are there (you can play them). What to do ? Kindly help. Thanks. Jon Ascton (talk) 18:20, 19 July 2010 (UTC)
you deserve it for buying an iPod knock-off. Why don't you reward companies that innovate and not thieves and robbers. Would you let your children be babysat by a rapist if he will do it for a bit cheaper? —Preceding unsigned comment added by 84.153.179.98 ( talk) 15:36, 21 July 2010 (UTC)