The Wikipedia write-up has a chart with an arrow leading from Design to Implementation then to Maintenance then to Planning then to Analysis and then back to Design in a circular pattern. It's a would-be play for keeping things clean.
Sunday, November 30, 2014
Thursday, November 27, 2014
faking type safety in dynamic languages?
Happy Thanksgiving everyone! I was thinking today in doing laundry of a conversation I had with a coworker about the challenge of exposing a .js script to the public and dealing with the public's capacity to hand in anything for variables. I don't know what my coworker did to try to fake the type safety he needed in his situation. I guess if it were me and it were JavaScript, I'd pass the object through a bunch of truthy/falsey interrogations wrapped inside a try/catch and ultimately set a flag for whether or not the visitor was tall enough to ride the rollercoaster ride ahead.
Monday, November 24, 2014
I start a six day break confused as to how to use the web services in Java.
Right-click on the applicable folder in NetBeans IDE 8.0.1 and pick "Web Service..." from the submenu under the "New" option in the menu which appears and you will be able to make a web service like so:
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package foo.bar.baz.qux;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
/**
*
* @author tjaeschke
*/
@WebService(serviceName = "AjaxWebService")
public class AjaxWebService {
/**
* This is a sample web service operation
*/
@WebMethod(operationName = "hello")
public String hello(@WebParam(name = "name") String txt) {
return "Hello " + txt + " !";
}
}
It's gonna look like this, and you'll have to click over to the "Source" tab to actually see the code:
Under your project in the "Projects" pane there will be a "Web Services" folder and therein you may right-click on your web service and pick "Test Web Service" to test the web service. It will bring up a form at a url such as http://localhost:8080/Java/AjaxWebService?Tester which will post to itself while passing, in the case of the example above, two fields PARAMhello0 and action with action passing "hello" for its value. { PARAMhello0: "World", action: "hello" } may be passed as an object to a jQuery .ajax POST against http://localhost:8080/Java/AjaxWebService?Tester to also get back the test results which are more than just what I'd expect for the usual results. The question is, how do I only get back the usual results. That I have yet to figure out.
You shouldn't have to restart IIS to see a change you just made in the Web.config.
A change to Web.config should restart the web application or web site, even an extraneous space. There should not be any sort of Web.config caching.
Who sings this?
Shazam and SoundHound are tools which will let you identify what song is playing in the restaurant you are catching lunch at from you smartphone. Your phone will "listen" to the ambient audio and tell you what it is. I went to Swift's Attic for lunch with some coworkers today for the very first time and ate goat for the first time as well. They play some pretty good music in Swift's Attic and thus Shazam and SoundHound creeped into our conversation.
Coworkers were talking today about whether it is OK to test old versions of IE using the emulator in Edge or if VMs needed to be spun up with older versions.
One of my coworkers felt that the VM overhead was really the best way to go. We have seen discrepancies between the real thing and emulations. I think the example I am thinking of had to do with DevExpress control wackiness. Naturally this challenge begs the question: "How do I even install old versions of IE?" Well, a different coworker pointed out that if you install Windows 7 and just don't upgrade IE that you'll have IE8. But how can one have IE9 or IE10 without upgrading all the way to IE11? Well, the coworker who suggested the VM trick found http://www.microsoft.com/en-us/download/internet-explorer-9-details.aspx for IE9 and I don't know what to do about IE10. I kind of just use the emulator myself, but then my title is developer and not tester.
search Skype history
- select a conversation
- open up the history as far back as is appropriate
- press Ctrl-F