hi . i want build a photography app with effects . e.g. old images with brown or black and white filter , how can i process UIImageView to change color , brightness and ....
thank you .
Hi,
I'm creating a custom WinForms TextBox control, like this:
class MyTest : TextBox
{
protected override void OnEnter(EventArgs e)
{
this.BackColor = Color.Yellow;
}
protected override void OnLeave(EventArgs e)
{
this.BackColor = Color.White;
}
}
When I build the project, I cannot see the control. Can anyone explain why not?
Thanks in advance.
Hello,
I'm looking for a good way to antialias a bitmap i'm generating with actionscript3. My goal would be to achieve this processing from scratch.
I read a lot on the subject but the most common algorithm are looking too loud to work properly within my swf, because i'm using a scale2x algorithm to smooth the edges of my shape. It doesn't have to be colorfull, since my shape is black and white !
Any hint would be appreciated, thanks :)
I download menu from http://apycom.com/menus/1-white-smoke.html. When include this menu in my ASP.NET MVC aplication in home page (site.master) menu.js generated link to http://apycom.com. How I remove this link from page?
I have a number between 0.0 and 1.0, I would like to convert it to a grayscale color.
White = 0
Black = 1
You can show me how in any understandable language (I prefer actionscript 3)
Please, don't just give a name of a function that a language have to do this, I want to know how it does.
Hi,
I am scheduled to have an onsite interview so I am preparing few basic questions. According to the company profile, they are big on string manipulation questions. So far i am manually coded these functions:
1) String length, copy, concat, remove white space
2) Reverse
3) Anagrams
4) Palindrome
Please can some can give me a list of more classic string questions which i can practice before going there.
I've read through the discussion here...
http://stackoverflow.com/questions/273516/how-do-you-implement-a-good-profanity-filter
I've decided to implement a bad word filter using the badlist referenced in that thread.
However I'm thinking about the scunthorpe problem. (see wikipedia I can't post the link, I'm a new user)
Is there a white list of words like scunthorpe and manuscript that I can use to override a black list?
(not interested in discussions about sensorship etc)
Many tutorials focus mainly (or exclusively) on 'how to do XYZ'. There are questions persuading pear SO user share good resources in that category.
I invite you to share good founds that explain 'whys' brilliantly. You know, that very article, white paper, podcast, executive summary, ... that led you to a Aha! moment and you finally saw the woods not just the trees.
I get a string from a db, then I remove all the HTML tags, carriage returns and newlines, before I put it in a csv. Only thing is I cant remove the excess white space from between the strings, any ideas?
Thanks,
Joe
i have the following url in a html page-
/delete/Release 1
But when i am trying to print it it comes in following manner-
/delete/Release%201
Can anyone suggest how to convert this hex value of %20 into a white space in PHP.
I have a file 'matrix.dat':
1 2 3 4 5
5 - 3 4 5
- 4 5 B -
1 B 2 B 3
- 3 2 - 3
I want to plot numbers using palette, '-' using white color and 'B' using black color.
In gnuplot, I use this palette (blue - cyan - green - orange - red):
set palette model HSV functions 0.666*(1-gray), 1, 1
And set '-' as missing data:
set datafile missing "-"
plot 'matrix.dat' matrix with image
Now I can only plot numbers and '-' in correct colors.
Regular expressions and I aren't quite good friends.
So here's the really basic operation i'm trying to do using javascript (jQuery framwork that is).
My calculation function return a number, unformated, and i'd like to separate thousands and hundreds by a white space ' '.
I'm sure it's pretty easy for a regexp regular user... but for me...
Thanks for the help.
Is there any way of telling istream to keep going until it hits \n instead of normal white space and with out the use of getline and also keeping any format options in the stream?
Thanks.
for this site:
http://yoursdproperty.com/
do you see how there some extra white space all the way at the top?
how would i expand that image to get rid of that space?
The weird thing is that the flash file that runs the header images has already been changed by me to be the width of the page. Something in the CSS though makes it the old size of 940 wide.
please note that im only interested in making adjustments to the css or html, not flash or javascript
I'm having a lot of problems in adapting a design with ActionBarSherlock.
And I can not find much information.
I share a couple of screenshots of the original design and the result I get.
How I can increase the size of ActionBarSherlock?
How I can add a logo centered and custom size?
And, why the "logo Transparent" appears with white background??
regards and thanks,
Screenshots example:
http://i.stack.imgur.com/jJNmc.png
http://i.stack.imgur.com/evb42.png
Hi.I am new to android.Can we change the color of the Menu item from default white to something else.Can you please send me a sample code.
Thanks in advance
I have trouble figuring out how do I load the rest of the data in html. Here is my code:
<?php
$con = mysql_connect("localhost","root","nitoryolai123$%^");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("school", $con);
$result = mysql_query("SELECT * FROM student WHERE IDNO='$_GET['id']'");
?>
<?php while ( $row = mysql_fetch_array($result) ) { ?>
<table class="a" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D3D3D3">
<tr>
<form name="formcheck" method="post" action="updateact.php" onsubmit="return formCheck(this);">
<td>
<table border="0" cellpadding="3" cellspacing="1" bgcolor="">
<tr>
<td colspan="16" height="25" style="background:#5C915C; color:white; border:white 1px solid; text-align: left"><strong><font size="2">Update Students</td>
<tr>
<td width="30" height="35"><font size="2">*I D Number:</td>
<td width="30"><input name="idnum" onkeypress="return isNumberKey(event)" type="text" maxlength="5" id='numbers'/ value="<?php echo $_GET['id']; ?>"></td>
</tr>
<tr>
<td width="30" height="35"><font size="2">*Year:</td>
<td width="30"><input name="yr" onkeypress="return isNumberKey(event)" type="text" maxlength="5" id='numbers'/ value="<?php echo $row["YEAR"]; ?>"></td>
this is the part where I am getting the error:
mysql_select_db("school", $con);
$result = mysql_query("SELECT * FROM student WHERE IDNO='$_GET['id']'");
?
What do you recommend that I could do so that I can also load the ID Numbers corresponding data into the other forms?
in my portal i call a pdf file, path looks like
http://www.mysite.com/filespath/books/online_bliss_in_five_simple_steps_1339668056/live/online_dating_bliss_in_five_simple_steps_1339668056.php
for user acceptance i need to reduce this url. then i add a code in .htaccess file. after adding this line only a white page is displaying when i call my portal
the code is
RewriteEngine On
RewriteRule ^book/([A-Za-z0-9-]+_.)/?$ /live/$1.php [NC,L]
please help me
I am trying to animate the color the the text on a UILabel to pulse from: [Black] to [White] to [Black] and repeat.
- (void)timerFlash:(NSTimer *)timer {
[[self navTitle] setTextColor:[[UIColor whiteColor] colorWithAlphaComponent:0.0]];
[UIView animateWithDuration:1
delay:0
options:UIViewAnimationOptionAllowUserInteraction
animations:^{[[self navTitle] setTextColor:[[UIColor whiteColor] colorWithAlphaComponent:1.0]];}
completion:nil];
}
.
[self setFadeTimer:[NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(timerFlash:) userInfo:nil repeats:YES]];
Firstly I am not sure of my method, my plan (as you can see above) was to set up a animation block and call it using a repeating NSTimer until canceled.
My second problem (as you can see above) is that I am animating from black (alpha 0) to white (alpha 1) but I don't know how to animate back to black again so the animation loops seamlessly
Essentially what I want is the text color to pulse on a UILabel until the user presses a button to continue.
EDIT_001:
I was getting into trouble because you can't animate [UILabel setColor:] you can however animated [UILabel setAlpha:] so I am going to give that a go.
EDIT_002:
- (void)timerFlash:(NSTimer *)timer {
[[self navTitle] setAlpha:0.5];
[UIView animateWithDuration:2
delay:0
options:UIViewAnimationOptionAllowUserInteraction
animations:^{[[self navTitle] setAlpha:0.9];}
completion:nil];
}
This works (BTW: I do want it to stop which is why I hooked it up to a NSTimer so I can cancel that) the only thing is that this animates from midGray to nearWhite and then pops back. Does anyone know how I would animate back from nearWhite to midGray so I get a nice smooth cycle?
EDIT_003: (Solution)
The code suggested by dave DeLong (see below) does indeed work when modified to use the CALayer opacity style attribute:
UILabel *navTitle;
@property(nonatomic, retain) UILabel *navTitle;
.
// ADD ANIMATION
CABasicAnimation *anim = [CABasicAnimation animationWithKeyPath:@"opacity"];
[anim setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
[anim setFromValue:[NSNumber numberWithFloat:0.5]];
[anim setToValue:[NSNumber numberWithFloat:1.0]];
[anim setAutoreverses:YES];
[anim setDuration:0.5];
[[[self navTitle] layer] addAnimation:anim forKey:@"flash"];
.
// REMOVE ANIMATION
[[[self navTitle] layer] removeAnimationForKey:@"flash__"];
Hi.
i'm running the following:
png(filename="figure.png", width=900, bg="white")
barplot(c(1.1, 0.8, 0.7), horiz=TRUE, border="blue", axes=FALSE, col="darkblue")
axis(2, at=1:3, lab=c("elephant", "hippo", "snorkel"), las=1, cex.axis=1.3)
dev.off()
and the labels on the left are appearing off the page. I can't seem to figure out how to fix it. Any ideas?
Thanks.
Hi,
We are developing a social networking project, in this project we are adding content , e.g. images , video,audio,link(html).
Currently we are using shadowbox.js to show it.But for better and effectiveness we want to use some other better plugin, or want to make own window for showing images and link.
Please help , what is the best solution for this project.
I want to know this is the white board quesion means programmer.stackexchange question or stackoverflow quesion?
Thanks
Hi guys,
Maybe I'm googling for the wrong thing but I can't find anything on this.
How can I change the line height of a Label element in Flex?
I have two labels in a VBox and there is quite a lot of white space between them which I would like to reduce. There's no line height property and setting the height property causes overlap.
Thanks in advance for any help!
Cheers,
Chris
Hey guys, I'm new to javascript and I'm doing a project for my final in class. I need to make it so this game engine I manipulated causes the generation button to go for an infinite loop.
I also need to stop it using (Reset==1). Any help? Here's the code I have so far if that helps:
function generation()
{
for(y2=0; y2<2500; y2++)
{
tempmapactual[y2]=mapactual[y2];
}
for (g=0;g<2500;g++)
{
neighbours=0;
for (h=0;h<8;h++)
{
if (g+coords[h]>0 && g+coords[h]<2499 && mapactual[g+coords[h]]=="white.gif")
{neighbours=neighbours+1;}
}
if (neighbours>=4 || neighbours==1 || neighbours==0)
{tempmapactual[g]="black.gif";}
if (neighbours==3) {tempmapactual[g]="white.gif";}
}
for(y3=0; y3<2500; ++y3)
{
if (mapactual[y3]!=tempmapactual[y3])
{
mapactual[y3]=tempmapactual[y3];
document.images[y3+offset].src=mapactual[y3];
}
}
}
</script>
<script>
function doIt()
{
for (i=0; i<X; i++)
{
// This is where I have trouble. What part of generation() do I call?
}
if (Reset==1) break; // This will kill the loop instantly.
}
}
</script>
<script>
window.onload(doIt($(X).value)));
</script>
<form>
<input type="button" value="generate" onClick="generation();">
</form>
<form>
<input type="text">
</form>
<form>
<input type="button" value="Infinite Loop!" onclick="doIt();">
</form>
<form>
<input type="button" value="Reset" onclick="doIt();">
</form>
Hi all
What I am trying to achieve might be trivial, however I am loading a PNG mask which does not have a transparent background, but rather a black background, with the shape defined on top in white (the actual mask which needs to be applied). Apparently Flex expects me to provide a mask with a transparent background for it to work, or am I missing something?
If that's the case, could I transform the bitmapData which I am loading so that it treats black color as transparent?
thanks in advance.