So I made my first iphone application; I want to test for memory leaks and the general feel and design of the user interface, so how do I put it on my iphone?
Why isn't there a designer for native api forms in Visual Studio? Similar to Delphi?
If there exist some programs, tools etc, please advice.
What is the best approach to design complex windows in pure API?
The second course in the series, "Introduction to Subversion for Developers" will take place on Wednesday, May 5, 2010 at 9AM PDT. Subversion's architecture and design principles will be covered and attendees will be introduced to using Subversion for software development.
http://wandisco.com/webinar/subversion/training/intro_for_devs
Hi guys,
I'm trying to work out an app design in my head and I would like the user to be able to click there destination address on the map of there area.
If I know the user is in Liverpool is it possible to pop up the map over liverpool and then allow the user to select on the map where they wanna go, and the google map/api return the street or the name of the area?
I've never used googlemap/api yet so just wondering if this kind of thing is possible on the iphone yet.
Many Thanks
-Code
I am having a hard time to find out which font is used by the Win 7 File Explorer in the tree view on the left hand side. Better, of course, would be if I can programmatically find out which the right font is (C#).
I searched the Windows 7 design guidelines but this particular scenario is not listed (at least I couldn't find it).
So anyone good with fonts?
Ok so I am very new to html and the web. Right now I am trying to generate list items on the fly and then have them post back to the web server so I know what the person is trying to obtain.
Here is the code for generating the list items:
foreach (var item in dataList) {
MyDataList.InnerHtml += "<li><a runat='server' onclick='li_Click' id='" + item.Name + "-button'></a></li>";
}
Further down I have my click event.
protected void li_Click(object sender, EventArgs e) {
//How do I determine here which item was actually clicked?
}
My question is how do I determine which list item was clicked?
Btw, the code running behind is C#.
EDIT 1
LinkButton link = new LinkButton();
link.ID = "all-button";
link.Text = "All";
link.Click += new EventHandler(link_Click);
MyDataList.Controls.Add(link);
Then below I have my link_Click event that never seems to hit a breakpoint.
void link_Click(object sender, EventArgs e) {
if (sender != null) {
if (sender.GetType() == typeof(LinkButton)) {
LinkButton button = (LinkButton)sender;
if (button.ID == "all-button") {
}
}
}
}
I know this has to be possible I just cant figure out what I am missing.
Edit 2
Ok ok I think I know what the problem is. I was trying to add a second list inside of another list. This was causing the whole thing to have problems. It is working now.
I need to test a class library project in VS. This project, itself, does not have a web.config file, but the classes do on the web server to which it's deployed. I access these like this:
ConfigurationManager.ConnectionStrings["stringname"].ConnectionString;
Can I adjust these strings while running unit tests in VS? Should I have considered a different design method to avoid this problem?
As far as I can tell, when a script is run outside of Magento, observers are not invoked when an event is fired. Why? How do I fix it?
Below is the original issue that lead me to this question. The issue is that the observer that would apply the catalog rule is never called. The event fires, but the observer doesn't pick it up.
I'm running an external script that loads up a Magento session.
Within that script, I'm loading products and grabbing a bunch of properties. The one issue is that getFinalPrice() does not apply the catalog rules that apply to the product.
I'm doing everything I know to set the session, even a bunch of stuff that I think is superfluous. Nothing seems to get these rules applied.
Here's a test script:
require_once "app/Mage.php";
umask(0);
$app = Mage::app("default");
$app->getTranslator()->init('frontend'); //Probably not needed
Mage::getSingleton('core/session', array('name'=>'frontend'));
$session = Mage::getSingleton("customer/session");
$session->start(); //Probably not needed
$session->loginById(122);
$product = Mage::getModel('catalog/product')->load(1429);
echo $product->getFinalPrice();
Any insight is appreciated.
I have a csv file that is being loaded in my programme. It contains citys and areas and some other stuff (not important here). Once the csv is selected I load the data into several comboboxes.
1 Thing is not working, I have a combobox containing all the citys and now I need to list all the areas for that country based on selection from the combobox.
Here is the event:
private void cboProvinciesItemStateChanged(java.awt.event.ItemEvent evt) {
//System.out.println(Arrays.asList(gemeentesPerProvincie(gemeentes)));
invullenListProvincie(gemeentes);
}
Here is the method:
private void invullenListProvincie(ArrayList<Gemeentes> gemeentes) {
Gemeentes gf = (Gemeentes) cboProvincies.getSelectedItem();
DefaultListModel model = new DefaultListModel();
JList list = new JList(model);
for (Gemeentes gemeente : gemeentesPerProvincie(gemeentes)) {
model.addElement(gemeente);
}
lstGemeentes.setModel(model);
}
and this is the method to filter all the areas that equal the selection from the combobox:
private ArrayList<Gemeentes> gemeentesPerProvincie(ArrayList<Gemeentes> gemeentes) {
String GemPerProv = (String) cboProvincies.getSelectedItem();
ArrayList<Gemeentes> selectie = new ArrayList<Gemeentes>();
for (Gemeentes gemeente : gemeentes) {
if (gemeente.getsProvincie().equals(GemPerProv)) {
selectie.add(gemeente);
}
}
return selectie;
}
I am convinced the error is the way I am trying to add items to the jList gemeentesPerProvincie(), I have tried so many things already. I really hope someone can see what i am clearly missing...
I'm joining a start up and there's a debate on which platform we should choose for our development; Mac, Linux or Windows?
We're gonna use mainly open source tools and languages like, ruby, rails, PHP and mysql and photoshop (or something equivalent on Linux) for design.
I suggested mac but they challenged me to be more persuasive. what's your idea?
Help me with your persuasive arguments please.
Can someone suggest ASP.Net source editor which I can integrate into my web site
expected features:
Highlight ASP.Net source code, including server code / javascript code / html / css
Intelligent suggesting when typing the code. (this is optional)
"Design View" is not required. I just need the code view, please suggest,
thank you
I want to a Java ME application that transfers any SMS received to a PC using bluetooth. The PC can then direct the Java ME application via bluetooth to send a response SMS. Is there library available for this architecture or I have to design it myself?
Is this approach correct or a better one exists? I want to use bluetooth as then I will not have dependency on the cable.
Hi to all,
When i click on button,one div is showing..whenever i click on the body,that div will be hide.
How can we achieve this functionality .. i write one code is as below.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script language="javascript">
function HideSubMenus(e)
{
var targ;
if (!e) var e = window.event;
if (e.target) targ = e.target;
else if (e.srcElement) targ = e.srcElement;
if (targ.nodeType == 3) // defeat Safari bug
targ = targ.parentNode;
for (var i=0; i!=5; i++) {
if (!targ) {
break;
} else if (targ.className=="divclass") {
return;
}
targ = targ.parentNode;
}
if(document.getElementById("showdivid"))
{
document.getElementById("showdivid").style.display='';
}
}
</script>
</head>
<body onclick="HideSubMenus(event);">
<input type="button" name="button" value="Click ME" onclick="document.getElementById('showdivid').style.display='';" />
<div id="showdivid" class="divclass" style="display:none;">
TeSt DIV
</div>
</body>
</html>
regards
raj
I have been trying to move a UIView by following a users touch. I have almost got it to work except for one thing, the UIView keeps flicking between two places.
Here's the code I have been using:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
NSLog(@"touchDown");
UITouch *touch = [touches anyObject];
firstTouch = [touch locationInView:self.view];
lastTouch = [touch locationInView:self.view];
[self.view setNeedsDisplay];
}
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
InSightViewController *contentView = [[InSightViewController alloc] initWithNibName:@"SubView" bundle:[NSBundle mainBundle]];
[contentView loadView];
UITouch *touch = [touches anyObject];
currentTouch = [touch locationInView:self.view];
if (CGRectContainsPoint(contentView.view.bounds, firstTouch)) {
NSLog(@"touch in subView/contentView");
sub.frame = CGRectMake(currentTouch.x - 50.0, currentTouch.y, 130.0, 21.0);
}
NSLog(@"touch moved");
lastTouch = currentTouch;
[self.view setNeedsDisplay];
}
And here's what's been happening: http://cl.ly/Sjx
I'm wondering if you have one, or u know any developer/programmer online portofolio. I know many web developers have one (and in many cases very well designed), but not any C++ developer (for example). On the net there are only some good blogs about some programming language, but in many cases these are extremely poor from a design point of view and i'd say very "nerdy".
Hi fellows,
it's my flight simulation application again. I am leaving the mere prototyping phase now and start fleshing out the software design now. At least I try..
Each of the aircraft in the simulation have got a flight plan associated to them, the exact nature of which is of no interest for this question. Sufficient to say that the operator way edit the flight plan while the simulation is running. The aircraft model most of the time only needs to read-acess the flight plan object which at first thought calls for simply passing a const reference. But ocassionally the aircraft will need to call AdvanceActiveWayPoint() to indicate a way point has been reached. This will affect the Iterator returned by function ActiveWayPoint(). This implies that the aircraft model indeed needs a non-const reference which in turn would also expose functions like AppendWayPoint() to the aircraft model. I would like to avoid this because I would like to enforce the useage rule described above at compile time.
Note that class WayPointIter is equivalent to a STL const iterator, that is the way point can not be mutated by the iterator.
class FlightPlan
{
public:
void AppendWayPoint(const WayPointIter& at, WayPoint new_wp);
void ReplaceWayPoint(const WayPointIter& ar, WayPoint new_wp);
void RemoveWayPoint(WayPointIter at);
(...)
WayPointIter First() const;
WayPointIter Last() const;
WayPointIter Active() const;
void AdvanceActiveWayPoint() const;
(...)
};
My idea to overcome the issue is this: define an abstract interface class for each usage role and inherit FlightPlan from both. Each user then only gets passed a reference of the appropriate useage role.
class IFlightPlanActiveWayPoint
{
public:
WayPointIter Active() const =0;
void AdvanceActiveWayPoint() const =0;
};
class IFlightPlanEditable
{
public:
void AppendWayPoint(const WayPointIter& at, WayPoint new_wp);
void ReplaceWayPoint(const WayPointIter& ar, WayPoint new_wp);
void RemoveWayPoint(WayPointIter at);
(...)
};
Thus the declaration of FlightPlan would only need to be changed to:
class FlightPlan : public IFlightPlanActiveWayPoint, IFlightPlanEditable
{
(...)
};
What do you think? Are there any cavecats I might be missing? Is this design clear or should I come up with somethink different for the sake of clarity?
Alternatively I could also define a special ActiveWayPoint class which would contain the function AdvanceActiveWayPoint() but feel that this might be unnecessary.
Thanks in advance!
I recently joined TopCoder and have been solving a few problems on the site. Now, I want to publicly post my solutions onto my blog and have others go over it, suggest improvements, better design, etc. wherever applicable. Would this be ethical?
I'm trying to get several informations from google calendar's API in JAVA. While trying to access to informations about the time of an event I got a problem. I do the following:
CalendarService myService = new CalendarService("project_name");
myService.setUserCredentials("user", "pwd");
URL feedUrl = new URL("http://www.google.com/calendar/feeds/default/private/full");
CalendarQuery q = new CalendarQuery(feedUrl);
CalendarEventFeed resultFeed = myService.query(q, CalendarEventFeed.class);
for (int i = 0; i < resultFeed.getEntries().size(); i++) {
CalendarEventEntry g = resultFeed.getEntries().get(i);
List<When> t = g.getTimes();
//other operations
}
The list t obtained with getTimes() on a CalendarEventEntry is always empty and I can't figure out why. This seems strange to me since for a calendar event it should always exist a description of when it should happen... what am I missing??
Well i got this job offer and they expect alot i say. i know most of this but, i would like to know what type of pay i should expect. I dont well to sell short you know.
with Web Designer: Dreamweaver, HTML, JavaScript, Graphic Design/Manipulation, Templates, Layouts, Navigation, Flash/Multimedia Objects. Programmer: PHP, Web Application Development, MVC, Joomla, AJAX, JQuery, My SQL (SQL, Database).
This is driving me crazy. All I'm trying to do is to pass in a Id to a ActionMethod which is working and have an Object be returned to the javascript. Then in javascript, I want to be able to say something like..Objec.Property, ie/ Student.Name, or Student.GPA.
Any help is appreciated. I tried json but couldn't get that to work either.
ActionResult:
[AcceptVerbs(HttpVerbs.Get)]
public Epic GetEpicPropertyDetails(int id)
{
var Epictemplist = epicRepository.Select().Where(x => x.Id.Equals(id));
return Epictemplist.SingleOrDefault();
}
javascript:
<script type="text/javascript">
$(document).ready(function () {
$(".ListBoxClass").click(function (event) {
var selectedid = $(this).find("option:selected").val();
event.preventDefault();
$.get("/Estimate/GetEpicPropertyDetails", { id: selectedid }, function (result) {
$(".TimeClass").val(result);
});
});
});
</script>
result.Name is obviously wrong I just dont know how to call this the right way.
Hi,
The current situation encourages the design of the system to split object fields to seperate objects in order to reduce the chance of the JDOCanRetryException to be thrown.
If we could have the fields that were changed by the other client who changed the object in the exception content itself we could deside whether to re-retrieve the object or ignore...
I don't want to use Mac or Windows at work but I have a lot of work in Photoshop when I have to create an HTML page from a Photoshop design.
What is the best way to use Photoshop CS3 in Linux, Wine, virtualization, ... ???
I have a Python-driven web interface powered by Apache 2.2 with mod_python and Python 2.4. I need to make an asynchronous process appear synchronous to users of this web interface.
When users access one module on this website:
An external SOAP interface will be contacted with a unique identifier and will respond with a number N
The external interface will respond asynchronously by contacting a SOAP server on my machine between 1 and 10 times (the number N tells us how many responses we will receive)
I need to somehow aggregate these responses and pass them to the original module which will display the information back to the user. The goal is to make the process appear synchronous to the user.
What is the best way to handle this synchronization issue? Is this something Twisted would be well-suited for?
I am not restricting myself to Python for the solution, though it is preferred because everything else on the server is in Python. I prefer a solution that is both scalable and will take a minimal amount of programming time (though I understand that these attributes are somewhat at odds).
I'm trying to write multithreading code and facing some synchronization questions. I know there are lots of posts here but I couldn't find anything that fits.
I have a System.Timers.Timer that elapsed every 30 seconds it goes to the db and checks if there are any new jobs. If he finds one, he executes the job on the current thread (timer open new thread for every elapsed). While the job is running I need to notify the main thread (where the timer is) about the progress.
Notes:
I don't have UI so I can't do beginInvoke (or use background thread) as I usually do in winforms.
I thought to implement ISynchronizeInvoke on my main class but that looks a little bit overkill (maybe I'm wrong here).
I have an event in my job class and the main class register to it and I invoke the event whenever I need but I'm worrying it might cause blocking.
Each job can take up to 20 minutes.
I can have up to 20 jobs running concurrently.
My question is:
What is the right way to notify my main thread about any progress in my job thread?
Thanks for any help.