Random Questions "Attempt II"

14 years ago
Posts: 510
Quote from lynira
If you know of a program like this, please tell me. I'd appreciate it very much.
How good are you at programming/cmd line stuff?
You could do this in python using PIL fairly straightforwardly if you know your bounding boxes (which you could get using paint). You could also probably batch it using ImageMagick, which also requires knowing the geometry.

14 years ago
Posts: 3380
- Open up Photoshop
- Use the slice tool and slice up the image into as many parts as you want and Save for Web (Alt + Shift + Crtl + S)
- ? ? ? ?
- PROFIT!!!

14 years ago
Posts: 1444
okay so.. i saw this disney channel music video and i need some clips for this project that we made and the things is i dont remeber the title of the song. all i can remember is there where a bunch of friends, they were all guys, and there were whicked away to this medieval-ish land.. and one of them became king, the others became knights and one of them a jester (?) and one of them stole the sword from a boy who managed to pull it from the stone.. guys.. i really need this!~! help please 😀
oh please do click this!
The sweeter the apple, the higher the branch. The quieter the fart, the nastier the smell.
GUESS WHO??

14 years ago
Posts: 437
Quote from story645
You could do this in python using PIL fairly straightforwardly if you know your bounding boxes (which you could get using paint). You could also probably batch it using ImageMagick, which also requires knowing the geometry. I've never used Python or ImageMagick before, but I'm pretty sure I could write a script for it in AutoIt if I had to... but if there was a program already available, that would be much easier.
Quote from Scyfon
- Open up Photoshop
- Use the slice tool and slice up the image into as many parts as you want and Save for Web (Alt + Shift + Crtl + S) But Photoshop is expensive and I don't need any of its other features, so it's not worth buying.

14 years ago
Posts: 3380
Quote from lynira
Quote from Scyfon
- Open up Photoshop
- Use the slice tool and slice up the image into as many parts as you want and Save for Web (Alt + Shift + Crtl + S) But Photoshop is expensive and I don't need any of its other features, so it's not worth buying.
Well if it's only a one-time thing that you're working on, you could just get the trial.

14 years ago
Posts: 437
Quote from Scyfon
Quote from lynira
Quote from Scyfon
- Open up Photoshop
- Use the slice tool and slice up the image into as many parts as you want and Save for Web (Alt + Shift + Crtl + S) But Photoshop is expensive and I don't need any of its other features, so it's not worth buying.
Well if it's only a one-time thing that you're working on, you could just get the trial. Ah, yeah, I remember seeing a trial option on their website... it's not a one time thing though, so the trial won't be enough. Thanks for the suggestion though.
But, somebody just told me that Gimp has a feature called guillotine that will do it for you, so I downloaded that program today. It doesn't save the parts automatically, but I can deal with that. The only problem is that Gimp's user interface is terrible for me and I hate using it. I can deal with Gimp for now, but if there are any other programs that can split images into unequal parts, I'd still like to know.

14 years ago
Posts: 510
Quote from lynira
I've never used Python or ImageMagick before, but I'm pretty sure I could write a script for it in AutoIt if I had t.
So script may be making it sound scarier than it is, 'cause for python it's something like:
pastebin sample so I can preserve tabs, which I whipped up using the docs
And imagemagick is basically the same->one line per slice and you can probably save it out in that line.
It doesn't save the parts automatically, but I can deal with that
You can script gimp too, sample script

14 years ago
Posts: 437
Woah, that code for Python is really short... I was thinking it'd have to be a lot more complicated for some reason. I'm unfamiliar with Python though and I'm only a beginner at programming, so I'd have to study Python for a bit before I could use it. I'll probably do that sometime in the future.
Anyway, the script for Gimp works wonderfully! Although it's in Gimp with its stupid floating toolbox that I can't dock or delete so it's always in the way (so irritating! >:/), this script is so nice that I think I can live with Gimp, since slicing is the only thing I'm going to use it for. Thank you for telling me about it. 🙂

14 years ago
Posts: 989
can someone tell me why mean value theorem does not apply in this case:
f(x) = x^(2/3) on [-1, 1]
its cold down here fam ~

14 years ago
Posts: 1737
Quote from MewMan
can someone tell me why mean value theorem does not apply in this case:
f(x) = x^(2/3) on [-1, 1]
f(x) is not differentiable on the interval (a,b), therefore, the Mean Value Theorem fails to apply in this case. There is a corner at x=0.
Nulla in mundo pax sincera
"Always go too far, because that's where you'll find the truth." - Albert Camus

14 years ago
Posts: 989
^omg lol i forgot that x^(-1/3)= 1/x^(1/3) thus f'(0) does not exist 🤣
another question. this one definitely (maybe) does not spawn from my stupidity.
i use a Casio fx-570MS for calculating. for some weird reason when i input -1^(2/3), the result is -1.
i change it to (-1)^(2/3), and it's a math error.
can someone explain the cause of this?
its cold down here fam ~

14 years ago
Posts: 636
Quote from MewMan
^omg lol i forgot that x^(-1/3)= 1/x^(1/3) thus f'(0) does not exist 🤣
another question. this one definitely (maybe) does not spawn from my stupidity.
i use a Casio fx-570MS for calculating. for some weird reason when i input -1^(2/3), the result is -1.
i change it to (-1)^(2/3), and it's a math error.
can someone explain the cause of this?
(-1)^(2/3) = an imaginary number (something with i in it).
-1^(2/3) = - (1^(2/3)) = -1
Essentially, the - sign is either attached to the 1, or attached to the final result depending on whether or not you used parenthesis
"It is those who know little, and not those who know much, who so positively assert that this or that problem will never be solved by science."

14 years ago
Posts: 989
Quote from mattai
(-1)^(2/3) = an imaginary number (something with i in it).
...
actually, i'm not that bright so it would be great if you can explain how (-1)^(2/3) is a imaginary number
its cold down here fam ~

14 years ago
Posts: 636
Trying to remember all this math hurts my brain. Let's see...
If you had the equation simplified to 1^(1/3), there would be one easy answer for your calculator -> 1
But, since you've started from (-1)^(2/3), there are three possible roots, one real(1), and two solutions with imaginary parts.
The calculator probably tried to find one of the complex roots. Since it couldn't handle the imaginary numbers, it gave an error.
"It is those who know little, and not those who know much, who so positively assert that this or that problem will never be solved by science."

14 years ago
Posts: 1737
Quote from mattai
Trying to remember all this math hurts my brain. Let's see...
If you had the equation simplified to 1^(1/3), there would be one easy answer for your calculator -> 1
But, since you've started from (-1)^(2/3), there are three possible roots, one real(1), and two solutions with imaginary parts.
The calculator probably tried to find one of the complex roots. Since it couldn't handle the imaginary numbers, it gave an error.
Actually, (-1)^(2/3)=1. I have just confirmed it with my calculator. The reason that it is not an imaginary answer is because (-1) is first cube-rooted, then squared. If it were squared-rooted first, then cubed, then the answer would contain an imaginery number. The cube root of (-1) is (-1), and the square of it is 1.
@MewMan, you may have just punched in the wrong numbers, because when I did the same thing my calculator gave me 1. Hope this helps.
Nulla in mundo pax sincera
"Always go too far, because that's where you'll find the truth." - Albert Camus