Hi,
I have this page.
login: [email protected]
password: m
As you can see in IE7 there isn't any border below 'Alcorcon', 'Madrid', etc. In FF yes.
Why?
Regards
Javi
char *a = "apple";
printf("%s\n", a); \\ fine
printf("%s\n", a[1]); \\ compiler complains an int is being passed
Why does indexing a string pointer give me an int? I was expecting it to just print the string starting at position one (which is actually what happens when i use &a[1] instead). why do i need to get the address?
Hi,
i have this page.
login: [email protected]
password: m
I've gave a width to "td.select_edad label" but it doesnt work..
I know it's deprecated, so what is your advice?
Another question: why "height" (also deprecated) is working ok for the fields of the filter?
Regards
Javi
if ($_SESSION['user_email']!=$_SESSION['ship_user_email'])
{
$to= $_SESSION['ship_user_email'];
mail($to,$subject,$mail_html,$headers);
}
there is problem in comparing values of both session. value is different but code not working.
I download the *.ics file successfully from the mail attachment by using
intent-filter.
I need to give an alert at the time of downloading the ics file. How to do this? Please help me to solve.This I am new to android.
Lets say you have decided to join company A. During interview you got feedback on what technology you would be working on(C# win app) and other details( sketchy).Now you have decided to join the company. Is it ok to ask via mail for further information and also ask to specify certain topics to brush up so that one can be better prepared for next job? Of course i know this question is not programming related.
I have an app that so far consists of two Activities:
The Main Menu Activity.
The Game Activity
The Main Menu Activity contains a button that starts the Game Activity with the following code:
public void onClick(View clickedButton)
{
switch(clickedButton.getId())
{
case R.id.buttonPlay:
Intent i = new Intent("apple.banana.BouncingBallActivity");
startActivity(i);
break;
}
When the user is done with the Game Activity, he presses the back button. This calls the onPause() method first, which pauses the animation thread of the game. It then calls the onStop() which calls finish() on the activity altogether. The user is returned to the Main Menu activity. The code is outlined below:
public class BouncingBallActivity extends Activity{
private BouncingBallView bouncingBallView;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
bouncingBallView = new BouncingBallView(this);
bouncingBallView.resume();
setContentView(bouncingBallView);
}
@Override
protected void onPause()
{
super.onPause();
bouncingBallView.pause();
}
@Override
protected void onResume()
{
super.onResume();
bouncingBallView.resume();
}
@Override
protected void onStop()
{
super.onStop();
this.finish();
}
}
The problem is that this only works if I launch the application from Eclipse.
When I click on the app icon, the game starts from the Game Activity. The main menu activity does not appear.
I am not clear about why this happens. It could be something to do with the manifest. I've pasted the relevant portions below:
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".BouncingBallActivity"
android:label="@string/app_name"
android:screenOrientation="landscape" >
<intent-filter>
<action android:name="apple.banana.BouncingBallActivity" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".MainMenu"
android:label="@string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
I'd really appreciate any help with this. Thanks.
Hi,
I have a big problem.
I have downloed a certificate from apple site.
When I put it into xCode have a warning : "A valid signing identity matching this profile could not be found in your keychain" and can't build the app.
Thanks and sorry for my English XP
iphone dev has this rule for iphone developers
Be certain that the items you offer for purchase do not contain, or relate to, pornography, hate speech, defamation, or gambling (simulated gambling is acceptable).
But how come there are apps in the app store such as iBetMate, which, in fact, allows users to gamble? Is there a clause or something that I missed in Apple's rules?
I have a byte[] which is a file, and I would like to send it as an attachment using System.Net.Mail.
I noticed the attachment class has 1 overload which accepts a stream.
Attachment att = new Attachment(Stream contentStream,string name);
Is it possible to pass the byte[] through this overload?
Hi all,
Basic array question:
$string = "The quick brown cat";
$check1 = "apple";
$check2 = "ball";
$check3 = "cat";
if ( (stripos($string, $check1) === false) ||
(stripos($string, $check2) === false) ||
(stripos($string, $check3) === false)
) {
echo "Fail";
}
How do I condense the above using an array ($check[])?
Thanks!
I have configure my sendmail for multiple domains by creating username like
[email protected][email protected][email protected]
in passwd file
Now I added entry in file /etc/mail/virtusetable like
[email protected] sales\@domain1.com
[email protected] sales\@domain2.com
[email protected] sales\@domain3.com
So when configuring the email client you provide your username as
[email protected],[email protected] etc.
I tested with webmail and outlook it works.
Is this the best way to do it ?.Do i need to put the entry in any there file like genericstable or alias table?
In the apple documentation, they show a notification where there's no view button, just an "OK" button.
How could I do this in my app.
does this have to be implemented in the payload code, or in the local app?
any help is appreciated, thanks!
i want to send request on Https so do i need to install the SSL certificate as the steps are given for apple push notification
please help me i am new and i have never worked on OpenSSL
Apple says:
Tip: For best performance, make sure
that you set the smallest possible
clipping area for the objects in the
transparency layer prior to calling
CGContextBeginTransparencyLayer.
Sounds good, but how would I set that clipping area to the thing which I want to draw transparent?
Our mail server is receiving a regular email addressed to a non-existing recipient at our domain, so it is being rejected.
Is there a way to see the contents of the email?
Hi there,
I'm developing an application which has a Settings pane, following the
AppPrefs sample by Apple.
If my application is named AppPrefs, this is the exact name/prompt/
title the Settings application will provide.
Is there anyway to make this change? Can my executable somehow be
named (for example) Application1 and my Settings named "Settings for
App1"?
Thanks!
hi,
i tried the following one from iphone cook book .i displayed HTML content through accessing private API of UITextview like
@interface UITextView (extended)
- (void)setContentToHTMLString:(NSString *) contentText;
@end
it works FINE.but Apple wont allow accessing private API.any solution pls?
d = {'apple':9,'oranges':3,'grapes':22}
How do I return the largest key/value?
Edit: How do I make a list that has this sorted by largest to lowest value?
Hi ,
could you please tell me that if i want to remove the meeting from caledar by sending the mail how can i do it. i am sending the meetig request to outlook through the c# its working fine but i want the cacncellatiion also.
is it possible ?
waiting for your reply please help me out !!
Thanks
yogi !!
Greetings,
I will certainly hope someone will be able to provide some enlightenment to my problem.
Currently, I have 2 joomla sites, layout and menus are a replicate of the other.
I noticed that on both Joomla, I will occasionally encounter "Unable to send mail" after a form submission.
Is this the fault of my server, or the fault of Joomla's PHP Mailer ? I will certainly love to approach my hosting company for a solution but I do not want to place a false accusation on them.
Like many other developers I have been very excited at the new Swift language from Apple. Apple has boasted its speed is faster than Objective C and can be used to write operating system. And from what I learned so far, it's a very type-safe language and able to have precisely control over the exact data type (like integer length). So it does look like having good potential handling performance critical tasks, like image processing, right?
That's what I thought before I carried out a quick test. The result really surprised me.
Here is a much simplified image alpha blending code snippet in C:
test.c:
#include <stdio.h>
#include <stdint.h>
#include <string.h>
uint8_t pixels[640*480];
uint8_t alpha[640*480];
uint8_t blended[640*480];
void blend(uint8_t* px, uint8_t* al, uint8_t* result, int size)
{
for(int i=0; i<size; i++) {
result[i] = (uint8_t)(((uint16_t)px[i]) *al[i] /255);
}
}
int main(void)
{
memset(pixels, 128, 640*480);
memset(alpha, 128, 640*480);
memset(blended, 255, 640*480);
// Test 10 frames
for(int i=0; i<10; i++) {
blend(pixels, alpha, blended, 640*480);
}
return 0;
}
I compiled it on my Macbook Air 2011 with the following command:
gcc -O3 test.c -o test
The 10 frame processing time is about 0.01s. In other words, it takes the C code 1ms to process one frame:
$ time ./test
real 0m0.010s
user 0m0.006s
sys 0m0.003s
Then I have a Swift version of the same code:
test.swift:
let pixels = UInt8[](count: 640*480, repeatedValue: 128)
let alpha = UInt8[](count: 640*480, repeatedValue: 128)
let blended = UInt8[](count: 640*480, repeatedValue: 255)
func blend(px: UInt8[], al: UInt8[], result: UInt8[], size: Int)
{
for(var i=0; i<size; i++) {
var b = (UInt16)(px[i]) * (UInt16)(al[i])
result[i] = (UInt8)(b/255)
}
}
for i in 0..10 {
blend(pixels, alpha, blended, 640*480)
}
The build command line is:
xcrun swift -O3 test.swift -o test
Here I use the same O3 level optimization flag to make the comparison hopefully fair. However, the resulting speed is 100 time slower:
$ time ./test
real 0m1.172s
user 0m1.146s
sys 0m0.006s
In other words, it takes Swift ~120ms to processing one frame which takes C just 1 ms. I also verified the memory initialization time in both test code are very small compared to the blend processing function time.
What happened?
Are there any protocols, systems, etc. experimental or otherwise designed for allowing normal (as normal as can be) network operations (E-mail, DNS, HTML, etc.) over very high latency links? I'm thinking of minutes to an hour, or maybe two. Think light speed lag at a solar system scale.