banner_jpg
Username/Email: Password:
Forums

Random Questions "Attempt II"

Pages (198) [ First ... 164 165 166 Last ] Next
You must be registered to post!
From User
Message Body
Post #499860 - Reply to (#499820) by lynira
user avatar
Member

9:08 am, Oct 7 2011
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.

Post #499873
user avatar
Mome Basher
Member

12:46 pm, Oct 7 2011
Posts: 3380


1. Open up Photoshop
2. Use the slice tool and slice up the image into as many parts as you want and Save for Web (Alt + Shift + Crtl + S)
3. ? ? ? ?
4. PROFIT!!!


________________
User Posted Image
Everyday I'm tumblin'
user avatar
jail bait
Member

3:25 am, Oct 8 2011
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 biggrin

________________
oh please do click this!
The sweeter the apple, the higher the branch. The quieter the fart, the nastier the smell.
GUESS WHO??
Post #500045
user avatar
Member

4:03 pm, Oct 8 2011
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
1. Open up Photoshop
2. 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.

________________
Manga Cover Database
Post #500068 - Reply to (#500045) by lynira
user avatar
Mome Basher
Member

5:35 pm, Oct 8 2011
Posts: 3380


Quote from lynira
Quote from Scyfon
1. Open up Photoshop
2. 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.

________________
User Posted Image
Everyday I'm tumblin'
Post #500081 - Reply to (#500068) by Scyfon
user avatar
Member

7:01 pm, Oct 8 2011
Posts: 437


Quote from Scyfon
Quote from lynira
Quote from Scyfon
1. Open up Photoshop
2. 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.

Last edited by lynira at 11:02 am, Oct 9 2011

________________
Manga Cover Database
Post #500091 - Reply to (#500045) by lynira
user avatar
Member

9:07 pm, Oct 8 2011
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.

Quote
It doesn't save the parts automatically, but I can deal with that

You can script gimp too, sample script


Post #500192
user avatar
Member

11:01 am, Oct 9 2011
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. smile

Last edited by lynira at 11:28 am, Oct 9 2011

________________
Manga Cover Database
Post #500308
user avatar
hmm~
Member

6:49 pm, Oct 9 2011
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 ~
Post #500311 - Reply to (#500308) by MewMan
user avatar
Mishy
Member

7:07 pm, Oct 9 2011
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.

Last edited by chineserider at 7:13 pm, Oct 9 2011

________________
Nulla in mundo pax sincera
"Always go too far, because that's where you'll find the truth." - Albert Camus
Post #500317
user avatar
hmm~
Member

7:36 pm, Oct 9 2011
Posts: 989


^omg lol i forgot that x^(-1/3)= 1/x^(1/3) thus f'(0) does not exist laugh

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 ~
Post #500320 - Reply to (#500317) by MewMan
user avatar
Member

7:48 pm, Oct 9 2011
Posts: 636


Quote from MewMan
^omg lol i forgot that x^(-1/3)= 1/x^(1/3) thus f'(0) does not exist laugh

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."
Post #500322 - Reply to (#500320) by mattai
user avatar
hmm~
Member

8:01 pm, Oct 9 2011
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 ~
Post #500333
user avatar
Member

9:31 pm, Oct 9 2011
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."
Post #500336 - Reply to (#500333) by mattai
user avatar
Mishy
Member

9:38 pm, Oct 9 2011
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.

Last edited by chineserider at 9:46 pm, Oct 9 2011

________________
Nulla in mundo pax sincera
"Always go too far, because that's where you'll find the truth." - Albert Camus
Pages (198) [ First ... 164 165 166 Last ] Next
You must be registered to post!