I'm trying to mash all my changes since I last pushed to the svn server into one big patch that I can email to my coworker for review. Can I do this with git format-patch ?
Image tag inside email message:
<img src="http://www.mydomain.com/image.php?lastest=1">
Part of image.php script:
case 'image/gif': header('Content-type: image/gif');$img=@imagecreatefromgif($image['src']);if($img) {imagegif($img);imagedestroy($img);}
break;
But how i can do the same with this image?
http://www.anotherdomain.com/image.gif
Thanks.
Extreme Android developer newbie here...well, new to Android development, not development in general.
I want to write an application that gets notified when emails come into the device, and takes various actions based on data in the email (subject, sender, to, etc). I think what I have to do is create a BroadcastReceiver with an IntentFilter. The problem I'm having is figuring out what Intent(s) I need to "listen" for. Can anyone point me in the right direction? Thanks.
Hi,
I am working on an iphone application in which I am consuming a webservice.
So i am parsing the XML file data. any idea about how to parse self closing tag
like: State/ and how to read data of self tag like: Contact Email="[email protected]" Name="PhD" Phone="123-521-3388" Source="location"/
I am parsing xml file using NSXMLPARSER class methods and library
Thanks,
Magento database name convention is not trivial. How to get these fields below for last 7 days?
Last Name
First Name
Address
City
State
Zip
Phone
Email
Amount
Order #
Item #
I'm using the Tapestry5 tapx template library to send an html email, as per this example.
When I run the example I get the following error:
Caused by: java.lang.RuntimeException: No service implements the interface org.springframework.context.ApplicationContext.
at org.apache.tapestry5.ioc.internal.RegistryImpl.getService(RegistryImpl.java:560)
at org.apache.tapestry5.ioc.internal.ObjectLocatorImpl.getService(ObjectLocatorImpl.java:44)
All the tapestry-* jars, including tapestry-spring-5.1.05.jar are in my classpath.
Any clues as to what I'm missing?
The server hosting market is separated into single, double, qual, etc., processors, where each processor has several cores, or CPUs.
My company will offer a Linux-based web application that relies on an Apache web server and a middle tier for business logic. The middle tier is used to crunch math, and return result to a client. Many clients may access the application simultaneously. The company will start with one processor having 4 cores. I'm trying to understand how the app uses the cores and then how to scale the application as business grows, in terms of servers/processors/cores.
For example, I'd assume initially one core would be used for Apache, and the other 3 used to process client's requests for math crunching...
Question 1: does that mean, with the 3 cores available, I can handle 3 separate client requests simultaneously (e.g. 1 for each of 3 cores)? I mean, except for the shared RAM, is this effectively like having 3 individual machines (from pt of view or processing client requests simulaneously)? Or, only one client's request may be processed at any one time, but that client's request is divided up into up to 3 cores depending on the type of process running that does the math crunching and whether or not it can take advantage of multi threading (so the # of cores impacts how fast any one client request completes)? I'm confused about what the cores mean to the application here.
Question 2: As the business grows and more client requests need to be processed, should the server be upgraded to (A) a new machine with more cores, (B) a new machine with two processors, 4 cores each, or (C) keep the original server and add another server with a single processor? Which route provides the most efficient way to scale the application, in terms of processing more client requests per time interval? Is the choice, for example, limited by RAM (when you need more RAM than box can handle it's time to add another server), or something else?
Question 3: Is the total number of client requests processed simultaneously equal to the number of cores times the number of servers (minus the one core for Apache)?
Hi there,
I need to create a .Net windows service to monitor a mailbox and process attachments (if found) on the emails and then delete the email from the server.
I have two questions I'd like your thoughts on:
POP3 or IMAP to connect to the mail server?
Which POP3/IMAP library should I use. At this stage we're just doing a proof of concept, so a free one would be my preference.
Cheers!
The alerts that I setup for source code changes isn't being triggered. I suspect that the email server settings are wrong, but where would I configure them?
I'm trying to run some of the google applications like calendar, market, and email but the google login service doesn't work. The various errors (like NoClassDefFoundError) make it seem like the pieces aren't even installed. Any ideas?
Hi,
I'd like the ability to list the category name alongside the product in the New Order transactional email like shown in the screenshot below.
Any help would be appreciated.
Thanks.
Inherited properties and MetadataType does not seem to work with client side validation in ASP.NET MVC 2.
The validation of our MetadataTypes work as expected on the server but for some reason it does not generate the appropriate client scripts for it. Client side validation kicks in as expected for properties with the DataAnnotations attributes set on the PersonView so I know that client side validation is active and that it works. Does anyone know if or how it can be fixed?
Here's what we have:
public abstract class PersonView
{
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
[Required] public string PhoneNumber { get; set; }
public string AddressLine1 { get; set; }
public string AddressLine2 { get; set; }
public string AddressZipCode { get; set; }
public string AddressCity { get; set; }
public string AddressCountry { get; set; }
}
[MetadataType(typeof(CustomerViewMetaData))]
public class CustomerView : PersonView {}
[MetadataType(typeof(GuestViewMetaData))]
public class GuestView : PersonView {}
public class GuestViewMetaData
{
[Required(ErrorMessage = "The guests firstname is required")] public string FirstName { get; set; }
[Required(ErrorMessage = "The guests lastname is required")] public string LastName { get; set; }
}
public class CustomerViewMetaData
{
[Required(ErrorMessage = "The customers firstname is required")] public string FirstName { get; set; }
[Required(ErrorMessage = "The customers lastname is required")] public string LastName { get; set; }
[Required(ErrorMessage = "The customers emails is required")] public string Email { get; set; }
}
As you can see, it's nothing fancy or strange in there... Can it be fixed? Is it a bug in ASP.NET MVC 2?
Hello,
In your experience, what is the best web programming language used to handle sorting and comparison of very large lists (ie tens of thousands of email addresses)?
I am most familiar with PHP. I think that it could get the job done, but I'm unsure of other languages and if there might be a bettor suitor.
Thanks!
asp.net mvc's Html.BeginForm() seems to work with jquery validation plugin but the validation plugin doesn't seem to work with a form which i ve added to a page....
This works,
<% using (Html.BeginForm("Login", "Registration", FormMethod.Post, new { id = "Loginform" })) {%>
<fieldset>
<legend>Login</legend>
<p>
<label for="EmailId">EmailId:</label>
<%= Html.TextBox("EmailId", null, new { @class = "text_box_height_14_width_150" })%>
</p>
<div class="status"></div>
<p>
<label for="Password">Password:</label>
<%= Html.Password("Password",null, new { @class = "text_box_height_14_width_150" }) %>
</p>
<div class="status"></div>
<p>
<input type="submit" value="Login" id="login" />
</p>
</fieldset>
<% } %>
But this doesn't work,
<form id="Loginform" method="post" action="Registration/Login">
<table cellpadding="0" cellspacing="0" width="100%" style="border:none;">
<tr>
<td width="12%">Email Id : </td><td width="15%">
<input id="EmailId" type="text" class="text_box_height_14_width_150
name="EmailId" /></td><td width="20%" class="status"></td>
<td width="12%">Password : <td width="15%"><input id="Password"
type="password" class="text_box_height_14_width_150 name="Password" /></td>
<td width="20%" class="status"></td>
<td width="5%"><input type="submit" value="Login" id="BtnLogin" /></td>
</tr>
</table>
</form>
and my jquery function has this,
$(document).ready(function() {
var validator = $("#Loginform").validate({
rules: {
EmailId: "required",
Password: {
required: true,
minlength: 6
}
},
messages: {
EmailId: "Enter your EMail ID",
Password: {
required: "Please Provide a password",
rangelength: jQuery.format("Enter at least {0} characters")
}
},
// the errorPlacement has to take the table layout into account
errorPlacement: function(error, element) {
error.appendTo(element.parent().next());
},
// set this class to error-labels to indicate valid fields
success: function(label) {
// set as text for IE
label.html(" ").addClass("checked");
}
});
});
Any suggestion... Am i missing something?
How do I include the 'autofocus' attribute on an HTML5 form using the text_field form helper in ruby?
e.g. <%= f.text_field :email %
Where does autofocus go?
Thanks
I would like to write a query like the following
select
username,
(select state from addresses where addresses.username = users.username) email
from users
This works in Oracle (assuming the result from the inner query is unique). However, is there a performance penalty associated with this style of writing query?
I have setup a cron job to run a php file every 30 minutes,
lynx -source public_html/scripts/file.php
the result comes through to an email but seems to get this error
Can't Access
`file://localhost/home/username/public_html/scripts/file.php'
Alert!: Unable to access document.
lynx: Can't access startfile
any advice would be much appreciated
My application stores lots of its users friends' phone numbers. I'd like to allow users to associate names with these phone numbers, but I don't want to make users manually type in names (obviously).
I'm curious what the best overall approach is here, as well as the best way to implement it
Overall approach-wise, I imagine using Gmail / Yahoo / Windows Live contacts is best (the Facebook API doesn't let you access phone numbers), though the gems I've found for interacting with these contacts APIs (this and this) only give you access to the names and email addresses of each contact.
i want to find out the websites that are people are coming from when they come on my website. so lets say someone comes from google.com or yahoo.com or someone came through email or somewhere else. how can i do this?
My client wants to dogfood my android app. They don't have eclipse and don't want to install it. It there a more convenient way to send my apk to them? Can I send it via email and let them open the attachment in mobile device? Will it start installing itself automatically?
I'm using Elmah with ASP.NET and wondering how I would add custom data, such as a session variable, to an unhandled exception email.
I've tried several handlers in the Global.asax file but can't seem to find the right one.
Right now on my (beta) site i have a table called user data which stores name, hash(password), ipaddr, sessionkey, email and message number. Now i would like the user to have a profile description, signature, location (optional) and maybe other things. Should i have this in a separate mysql table? or should i share the table? and why?
Is it possible to refresh only the part of the page? How?
the part:
if (checkExpiry($member->expires)==true) {
print timeLeft($leftts);
} else {
print "expired";
}
I have table which is showing name, email, time until membership ends and I need to refresh 'time until membership ends' every second.
I am using the robots api. I have a wave id and wavelet id, and my app's email is added to the wave. How can I simply get the wave (or wavelet's) contents using the python api?
Hi !
I am working on a website to sell PDF's online, where user can get the download link by email after paying through paypal.
What could be the possible paypal payment status values for the above scenario ?
I can only think of Complete & InComplete. Do using Processing makes sense here ?