text stringlengths 454 608k | url stringlengths 17 896 | dump stringclasses 91
values | source stringclasses 1
value | word_count int64 101 114k | flesch_reading_ease float64 50 104 |
|---|---|---|---|---|---|
The Font Awesome icon set for python
Project description
Installation
pip install fontawesome
Usage
import fontawesome as fa print(fa.icons['thumbs-up']) >>>
Build
# Run the generate script to download font awesome's character mapping # and generate a python-formatted version of it. Save this file as icons.py # in the fontawesome subdirectory. Note that this pulls the latest revision # on the master branch. You can easily change this by modifying the # generate.py script. ./fontawesome/generate.py > ./fontawesome/icons.py python setup.py build python setup.py install
License
The code in this repository is licensed under Apache 2.0
The character codes included with this package are part of the Font Awesome project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fontawesome-4.7.0.post4.tar.gz (10.7 kB view hashes) | https://pypi.org/project/fontawesome/4.7.0.post4/ | CC-MAIN-2022-40 | refinedweb | 158 | 53.27 |
Opened 4 years ago
Closed 4 years ago
#4346 closed bug (fixed)
Behaviour of INLINABLE depends on whether the modules included are already compiled.
Description
When investigating containers performance, I came across the following problem:
My Data.Map annotates nearly every method as INLINABLE. My main module Main.hs is trivial:
import Data.Map as M main = print $ M.lookup 5 $ foldr (\x -> insert x x) empty [1..100]
Suppose my tree contains only .hs files, no .hi or .o. I can compile either by
- ghc --make -c -O Main.hs, which compiles Data/Map?.hs automatically, or
- ghc --make -c -O Data/Map.hs && ghc --make -c -O Main.hs, which compiles Data/Map?.hs explicitely with the same arguments first.
Expected result of both compilations: Main.o is the same.
Actual result: in the first case, Data.Map.lookup method does not get inlined in Main.o, but in the second case the Data.Map.lookup method gets inlined in Main.o.
If affects both ghc-7.0 and ghc-head branches.
I am not sure this is a bug, but I would definitely expect both of the compilation methods to yield the same file.
The self-contained source tree is attached.
Attachments (1)
Change History (5)
Changed 4 years ago by milan
comment:1 Changed 4 years ago by simonmar
- Milestone set to 7.0.1
- Priority changed from normal to high
comment:2 Changed 4 years ago by simonmar
- Owner set to simonmar
comment:3 Changed 4 years ago by simonmar
- Status changed from new to merge
Fixed - thanks for a great report, and well done for spotting the problem.
Fri Oct 15 10:48:36 BST 2010 Simon Marlow <marlowsd@gmail.com> * Fix #4346 (INLINABLE pragma not behaving consistently) Debugged thanks to lots of help from Simon PJ: we weren't updating the UnfoldingGuidance when the unfolding changed. Also, a bit of refactoring and additinoal comments.
comment:4 Changed 4 years ago by igloo
- Resolution set to fixed
- Status changed from merge to closed
Merged.
That's deeply suspicious. Let's investigate before the release. | https://ghc.haskell.org/trac/ghc/ticket/4346 | CC-MAIN-2014-15 | refinedweb | 350 | 70.29 |
From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2004-11-23 13:00:53
"Doug Gregor" <dgregor_at_[hidden]> wrote in message
news:0BBD3222-3D6E-11D9-9E8D-000A95B0EC64_at_cs.indiana.edu...
> On Nov 23, 2004, at 9:37 AM, Gennadiy Rozental wrote:
> > "Doug Gregor" <dgregor_at_[hidden]> wrote in message
> > 1. It really trivial to implement the restriction on public level:
>
> Ok.
Does this mean that you agree that submitted library does not provide
"more-capable" interface?
> >> Granted, your typed_keyword permits earlier detection of certain
> >> typing
> >> errors. For instance, if I try to write "name = 5", your library will
> >> abort the compilation at that expression but the library under review
> >> will instead remove "f" from the overload set if it is called.
> >> However,
> >> there is a potential price to be paid for this earlier checking: the
> >> name "name" has now been reserved for string parameters and cannot be
> >> reused without introducing a new "name" keyword in some other scope
> >> with a different type.
> >
> > 1. That is not true. Nothing prevent me from introduction of keyword
> > name in
> > different namespace/compilation unit. Actually in most cases I use
> > keywords
> > with namespace qualifiers: sock::name, cla::name, factory::name e.t.c.
>
> Precisely why I wrote "in some other scope", which refers both to
> different namespaces and different translation units :)
My point is why should I reuse? No, even you shouldn't without real reason..
> > 3. IMO It's bad idea to introduce global keywords used by various
> > independent functions for different purposes and different data types.
> > For
> > example:
> >
> > new window( size = make_pair(10,20) );
> > new listbox( size = 10 );
> > new Jeans( size = "36x30" );
> > new Bowl( size = 5.675 );
> >
> > I don't see above as a good practice and library shouldn't encourage
> > it.
> > Instead one should either use difference namespaces (see 1) or
> > different
> > keywords: dimensions, size, cloth_size, volume.
>
> Why is a listbox so important that it gets the short name "size"
> whereas the jeans get the longer name "cloth_size"? The example is
> good, but I don't think it strengthens your position at all. On the
> contrary, we see that "size" means very different things when talking
> about listboxes vs. when talking about jeans, but the word is not
> ambiguous in the context of each line.
I believe my position in regards to parameter type is very simple. In legacy
C++ we write:
void foo( char const* name, int size );
void goo( char const* name, int size );
Function parameter entity has 3 unique "properties":
1. scope. defined by function name
2. name. Well, the name.
3. type. C++ enforce strict type checking.
I believe "named parameters" solution should have the similar
characteristics. Even though above function both have the same type and name
it still two essentially different things. If we convert above functions to
named parameter interface we should introduce scopes f and g (this is an
extreme, but keep reading) and
calls would look like:
foo( foo::name = "abc" );
goo( goo::size = 5 );
Now in practice foo and goo probably belong to some namespaces aaa and bbb.
Accordingly keywords may belong to respective namespaces and calls would
look like:
aaa::foo( aaa::name = "abc" );
or if we have using namespace bbb;
goo( size = 5 );
The only exclusions where we may share the keywords are cases with series of
related function. For example different constructors for the same class or
different access methods within same class e.t.c.
If we have keyword as a standalone entity, separated from function, this
will bring following issues:
1. Where this keyword is defined? So that it could be reused by anybody who
need 'size' parameter?
2. If we both defined keyword 'size' and both are reusable which one should
Joe programmer should use?
3. Each function that uses this keyword need to repeat type checking.
4. Function may have two different size parameters, where should I use
global size keyword and should I introduce my own for second one?
All of that is escalated by what submitted solution propose in regards to
type enforcing:
struct f_keywords : keywords<
named_param<
name_t
, boost::mpl::false_
, boost::is_convertible<boost::mpl::_, std::string>
This interface is way too verbose IMO for the basic, but most widely needed,
type enforcing feature.
> >> My (subjective) expectation is that a library
> >> may start by using typed keywords, but as the library evolves and more
> >> functions gain named parameters I'd expected those typed keywords to
> >> become non-typed keywords. There is no place in the BGL, for instance,
> >> where I would consider using a typed keyword.
> >
> > That Ok. Unfortunately I am not that familiar with library but I do not
> > believe BGL is the best example. BGL is template based library
> > solution. In
> > an end user's code my expectation is that in most cases one would use
> > typed
> > keywords.
>
> The BGL is _an_ example, but clearly not the only one. However, it does
> have the advantage of having had a named parameters mechanism for the
> last several years, so in my mind it carries significant weight
> relative to hypothetical usage scenarios.
The BGL is an example that uses typeless keywords (obviously because it's
highly templated library). In my experience I had numerous other examples
that used typed keywords. My position that for regular (non-template
function) one would prefer typed keyword.
> >> Another subjective difference between the two is in the call to "f".
> >> The library under review supports the syntax:
> >>
> >> f(name = "wibble", value = int);
> >>
> >> whereas, as I understand it, your library supports the syntax:
> >>
> >> f((name = "wibble", value = int));
> >>
> >> I'm not going to weigh in on this issue.
> >
> > Submitted library allow both syntaxes. I would never use first though.
> > In my
> > experience named parameters interface is most valuable facing numerous
> > optional function arguments. Why would I want to provide 10 overloads
> > for
> > the same functions with different number of arguments, where 1
> > suffices?
>
> You are asking the wrong question. The right question is "which syntax
> is better for users?" Step back from the implementation, the language,
> and the limitations of both and determine what syntax you would like to
> use when calling these functions. Implementation details are secondary
> to interface details.
This maybe the case would we were discussing named parameter feature for
inclusion into language support. As it stands now, until we have template
functions with variable length parameters list, the only viable option (IOW
best for the user) IMO is single function interface. In theory I still would
prefer single function interface:
template<typename T[]>
void foo( T[] const& params ) {
std::cout << params[name] << params[value];
}
> Doug
Gennadiy
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk | https://lists.boost.org/Archives/boost/2004/11/76461.php | CC-MAIN-2021-21 | refinedweb | 1,112 | 54.83 |
qiskit.pulse.builder.barrier¶
- barrier(*channels_or_qubits, name=None)[source]¶
Barrier directive for a set of channels and qubits.
This directive prevents the compiler from moving instructions across the barrier. Consider the case where we want to enforce that one pulse happens after another on separate channels, this can be done with:
from qiskit import pulse from qiskit.providers.fake_provider import FakeOpenPulse2Q backend = FakeOpenPulse2Q() d0 = pulse.DriveChannel(0) d1 = pulse.DriveChannel(1) with pulse.build(backend) as barrier_pulse_prog: pulse.play(pulse.Constant(10, 1.0), d0) pulse.barrier(d0, d1) pulse.play(pulse.Constant(10, 1.0), d1)
Of course this could have been accomplished with:
from qiskit.pulse import transforms with pulse.build(backend) as aligned_pulse_prog: with pulse.align_sequential(): pulse.play(pulse.Constant(10, 1.0), d0) pulse.play(pulse.Constant(10, 1.0), d1) barrier_pulse_prog = transforms.target_qobj_transform(barrier_pulse_prog) aligned_pulse_prog = transforms.target_qobj_transform(aligned_pulse_prog) assert barrier_pulse_prog == aligned_pulse_prog
The barrier allows the pulse compiler to take care of more advanced scheduling alignment operations across channels. For example in the case where we are calling an outside circuit or schedule and want to align a pulse at the end of one call:
import math d0 = pulse.DriveChannel(0) with pulse.build(backend) as pulse_prog: with pulse.align_right(): pulse.x(1) # Barrier qubit 1 and d0. pulse.barrier(1, d0) # Due to barrier this will play before the gate on qubit 1. pulse.play(pulse.Constant(10, 1.0), d0) # This will end at the same time as the pulse above due to # the barrier. pulse.x(1)
Note
Requires the active builder context to have a backend set if qubits are barriered on. | https://qiskit.org/documentation/stubs/qiskit.pulse.builder.barrier.html | CC-MAIN-2022-40 | refinedweb | 270 | 53.78 |
All-Star
47680 Points
Jun 21, 2019 02:36 PM|PatriceSc|LINK
Hi,
Avoid asking too many things with not much details and focus rather on a first point before moving to the next. So you are the PostAsJsonAsync extension method ?
You have also ie PostAsXmlAsync. Depending on what you have done on the server side it should be the main if not the only change. Let's try to have an XML POST request to work maybe before moving to the next issue ?
Contributor
4653 Points
Jun 23, 2019 02:44 AM|DA924|LINK
GuhananthHi
I am able to consume json input string in Httpclient.can Httpclient be used to consume xml input string.please provide example for put,post,delete, options,head and merge.
You would have to change the content negotiation that the WebAPI was sending and that the HTTPClient is expecting.
All-Star
40485 Points
Microsoft
Jun 24, 2019 05:42 AM|Fei Han - MSFT|LINK
Hi Guhananth,
You can refer to the following API and example request.
API action
public void Post([FromBody]TestObj value) { //code logic here }
TestObj class
public class TestObj { public string Name { get; set; } public int Age { get; set; } }
Example request
using (var httpClient = new HttpClient()) { var uri = new Uri(""); var XML = "<TestObj><Name>TestUser</Name><Age>25</Age></TestObj>"; var httpContent = new StringContent(XML, Encoding.UTF8, "text/xml"); var response = await httpClient.PostAsync(uri, httpContent); }
Test Result
With Regards,
Fei Han
Participant
840 Points
Jun 24, 2019 07:45 AM|AddWeb Solution|LINK
Hello Guhananth,
Kindly refer the below link , I hope this will help you
It is providing example for put, post, delete etc with description.
Thank you.
4 replies
Last post Jun 24, 2019 07:45 AM by AddWeb Solution | https://forums.asp.net/t/2156947.aspx?Consume+xml+input | CC-MAIN-2020-40 | refinedweb | 292 | 61.26 |
I am new to this C thing and am triny very hard to understand but am having a little problem getting thing to work. I have a project that I have been working on and cannot seem to get it to work.
This is what I have so far and for the life of me can not seem to get it to work. I know I am missing something. When it is compiled it is supposed to ask the question How long would it be on a side? and the user enters a number and then after the number is entered a square would be formed usings asteriks. So, can anyone help me??? Please...:lol:
#include <stdio.h> main() { int length; int width; int count = 0; printf("How long would it be on a side?\n"); scanf("%d*%d",&length,&width); printf("\n"); while (count <= length*width){ printf("*"); count++; } }
"square.c" 27 lines, 313 characters | https://www.daniweb.com/programming/software-development/threads/59128/square-c | CC-MAIN-2017-43 | refinedweb | 155 | 92.02 |
0
Hiya
I don't know what I'm doing wrong that getline() does not work for me. My program is not finished but this is what I got so far:
#include <iostream> #include <vector> #include <string> using namespace std; struct Term { string word; string definition; }; struct Dictionary { vector<Term> term; }; void helpFunction() {; }//end help void infoFunction() { cout << "Welcome to the best Dictionary program ever...EVER! \n" << endl; cout << "Use this program to find a word and its definition. If the word is not in the library, you will be asked to update the library. \n" << endl;; } // info function void programLoop() { //variables to use for program string userInputString = ""; string searchString = "Search"; string helpString = "Help"; string exitString = "Exit"; infoFunction(); do { cin >> userInputString; //get string input if ( userInputString.compare(searchString) == 0 ) { //search for word string userDefinition; string userWord; Dictionary myDictionary; bool matchFound = false; if ( myDictionary.term.size() == 0 ) {//assume no words in dictionary cout << "Input the first word into the dictionary: "; getline (cin,userWord); cout << userWord << " .\n"; } //end find word section if ( userInputString.compare(helpString) == 0 ) //help menu { helpFunction(); } if ( userInputString.compare(exitString) == 0 ) //exit { exit(0); } } while ( userInputString.compare(searchString) == 0 || userInputString.compare(helpString) == 0 || userInputString.compare(exitString) == 0 ); } // program loop void main() { programLoop(); system("pause"); } //end main
My cout of userWord is just to see if getline is working...which is not for some reason :( The funny thing is I know getline should work! I have already wrote a small little program (thats rather useless) to test it out (see below)I'm baffled by this. There must be something I'm not seeing or are not aware off Any help appreciated. :(
This works:
#include <iostream> #include <string> using namespace std; void main() { string str; cout << "Please enter a word: "; getline (cin,str); cout << str << ".\n"; string def; cout << "Please enter the definition: "; getline (cin,def); cout << str << " : " << def << ".\n"; system("pause"); } //end main
Edited by mike_2000_17: Fixed formatting | https://www.daniweb.com/programming/software-development/threads/350872/problems-with-getline | CC-MAIN-2017-26 | refinedweb | 319 | 55.95 |
Building EJB Based JAX-WS Web Services
In this section, we will explain how we can build and consume JAX-WS Web service. The web service will be based on EJB class.
This is a simple Service with one method called sayHello. The method takes one parameter and returns the string “Hello {parameter}!”
From the file menu in eclipse, select to create a new EJB project.
Name the EJB project as HelloEJBWebServices and select to add the project to EAR called HelloEJBWebServicesEAR, then click Next
Select the check box to create and JB client JAR module.--.
Do not select ‘Generate ejb-jar.xml--.
Right click on the EJB project in the project explorer window and select to create a Session Bean class.
Give the bean name “HelloWorldJAXWS” and set to package “com.ejb3.webservice”, click finish, the following code will be generated:
package com.ejb3.webservice; import javax.ejb.LocalBean; import javax.ejb.Stateless; /** * Session Bean implementation class HelloWorldJAXWS */ @Stateless @LocalBean public class HelloWorldJAXWS { /** * Default constructor. */ public HelloWorldJAXWS() { // TODO Auto-generated constructor stub } }
Till now we have an EJB project called HelloEJBWebServices added to EAR HelloEJBWebServicesEAR, and the EJB project has one EJB class called HelloWorldJAXWS.
To expose an EJB class to a web service, all you have to do is to annotate the EJB class with the annotation javax.jws.WebService, the web services will be exposed automatically with all the public methods declared in the class.
Add a new method to the class called sayHello like the below:
package com.ejb3.webservice; import javax.ejb.LocalBean; import javax.ejb.Stateless; import javax.jws.WebService; /** * Session Bean implementation class HelloWorldJAXWS */ @WebService @Stateless @LocalBean public class HelloWorldJAXWS { /** * Default constructor. */ public HelloWorldJAXWS() { // TODO Auto-generated constructor stub } public String sayHello(String name) { return "Hello " + name + "!"; } }
Notice that we added the @WebService annotation to our EJB class. Let’s test our code till now, using eclipse export the EAR and deploy it to JBOSS.
Start JBOSS and take a look at the Console output, look at the following lines:
These lines indicate that JBOSS detected the EJB class and also that the EJB class annotated with @WebSerivce annotation. It should be exposed as web service, and JBOSS handled that and provides you with the URL that can be used to access the web service
We can use the URL to test the web service directly in the browser, copy the URL to the browser and append ?WSDL to the end of it (i.e.)
Now if everything worked fine with you till now, let us move to the next step, testing the web service using Java console application.
Create a new console application in eclipse called HelloJAXWSTestClient, right click on the project icon in the package viewer and select to “Other” from the “New” menu item.
From the New wizard, type in the top text area “web service” then select to create new “Web Service Client”, click next button.
In the service definition text area, type the URL of the web service that was printed by JBOSS server appended by ?WSDL (i.e.) and click finish button. This will create a client that can be used to access our HelloJAXWS web service.
This is what you should have in your package explore windows.
Now in the client project, create a new Java class called Main, with the following code inside.
package com.ejb3.webservice; import java.rmi.RemoteException; import javax.xml.rpc.ServiceException; public class Main { public static void main(String[] args) throws ServiceException, RemoteException { HelloWorldJAXWSServiceLocator l = new HelloWorldJAXWSServiceLocator(); HelloWorldJAXWS port = (HelloWorldJAXWS)l.getPort(HelloWorldJAXWS.class); String res = port.sayHello("Jon"); System.out.println(res); } }
Now run the class as a Java Application, the following output should be displayed in the console windows:
If this is the output you got, then everything is working fine in your environment.
Now if you noticed, when you tried to call the method sayHello, eclipse couldn’t recognized the web service method parameter names, you got only arg0.
If you displayed the WSDL file again () in your browser, you will notice the following lines:
<xs:complexType <xs:sequence> <xs:element </xs:sequence> </xs:complexType>
These lines describe the sayHello method, and as noted the parameter name wasn’t exposed by JBOSS, only arg0 was found, and that’s why eclipse couldn’t detect the correct names for the method parameters.
To fix that, modify the web service code with the following:
package com.ejb3.webservice; import javax.ejb.LocalBean; import javax.ejb.Stateless; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebService; /** * Session Bean implementation class HelloWorldJAXWS */ @WebService @Stateless @LocalBean public class HelloWorldJAXWS { /** * Default constructor. */ public HelloWorldJAXWS() { // TODO Auto-generated constructor stub } @WebMethod public String sayHello(@WebParam(name = "name") String name) { return "Hello " + name + "!"; } }
Notice that we annotated the method with @WebMethod annotation and also the parameter name was annotated with the @WebParam annotation and the annotation attribute name is declared with the value “name”.
Now, redeploy the web service again to JBOSS and check the WSDL file from the browser window, you will get the following lines:
<xs:complexType <xs:sequence> <xs:element </xs:sequence> </xs:complexType>
As noted, the WSDL file now has the correct name of the parameter. Now as the WSDL changed, our generated client must be rebuilt again. Follow the previous steps to generate the client and check the sayHello method in eclipse, you will get the following:
Now eclipse can detect the correct parameter name. | http://www.wideskills.com/ejb/building-ejb-based-jax-ws-web-services | CC-MAIN-2018-09 | refinedweb | 908 | 55.84 |
I am new to Ruby and ran into a small problem. Everything I find on formatting is for strings or such. I am trying to output a hash as a table to the shell. I'm thinking like 5 key and value pairs per line. I would prefer it to increase going down rather than left to right but either would work. The best example I have is the way 'ls' on linux will list the files in a dir. That is an array rather than a hash though.
Here is the function and x is the hash on input
def output(x)
x.sort.map.each do |key, val|
print ' ___ '+key.to_s+' = '+val.to_s
end
puts
end
This displays one long row rather than splitting it up. And putting 'puts' instead makes 1 long column.
I appreciate any help I can get. Every thing I have tried has been helpless.
Radon | http://forums.devshed.com/ruby-programming/789982-formatting-stdout-output-last-post.html | CC-MAIN-2014-41 | refinedweb | 153 | 93.95 |
33742/polling-the-queue-in-amazon-sqs
This the scenario. I want to send a bunch of notification emails to customers. And am planning to use my web app(s) and other applications to "send" emails. The plan is to have a method, that generates a chunk of XML representing the email to be sent and adds them to the Amazon SQS queue. I then need a way of checking the queue and physically sending out the email messages.
But what would be the best way to poll the queue?
One way is you could create a windows service that retrieves any messages from the queue every 10 minutes and then dispatches them. For this, you can try 'postmark' app.
Another way is maybe you can use SES. But it is very inexpensive compared to other similar services or building other systems.
SNS is a distributed publish-subscribe system and the messages are pushed to ...READ MORE
In order to make system more efficient ...READ MORE
Assuming you only have one process adding ...READ MORE
Below is the answer to your question. ...READ MORE
Follow the guide given here in aws ...READ MORE
Check if the FTP ports are enabled ...READ MORE
To connect to EC2 instance using Filezilla, ...READ MORE
AWS ElastiCache APIs don't expose any abstraction ...READ MORE
The code would be something like this:
import ...READ MORE
You can create a cluster using either ...READ MORE
OR
Already have an account? Sign in. | https://www.edureka.co/community/33742/polling-the-queue-in-amazon-sqs | CC-MAIN-2019-47 | refinedweb | 247 | 76.93 |
Issue Links
Activity
Jochen, let me know if there are any issues with patch otherwise I will apply in a few days.
the patch seems to be only allowing for numbers and constants that are ten interpreted as String. Missing are classes and enums (both clear name, the same as for numbers)
ah yes... another part would be to print the annotations only if the "java5" field is true.
Yes, both very good points. I might have to leave those changes and some kind of test to someone else unless I get a good Internet connection in San Fran and get time to look again.
So the one thing that I am still unsure of is whether we need to add back in the default imports which I commented out in genImports a few weeks back - everything else is fully qualified but I don't that is the case with Annotation constants.
If the fully qualified class name would be used, then there is no need for an annotaton. Since there seems to be a class resolving phase I think that it is not needed
For the Resolving Phase to occur before we print out the Java stub annotation info, I moved the stubGenerator visitor from CONVERSION to SEMANTIC_ANALYSIS phase. I still need to create a bunch of tests covering all of the cases.
Paul made some changes in this area, please reopen the issue if it's still not working as expected.
Just tried it with Groovy 1.7.3.
Annotations put on properties are not generated.
"src/main/scripts/com/clearforest/plugins/springbatch/SpringBatchMojo.groovy":
package com.clearforest.plugins.springbatch import org.jfrog.maven.annomojo.annotations.MojoPhase import org.jfrog.maven.annomojo.annotations.MojoGoal import org.codehaus.gmaven.mojo.GroovyMojo import org.jfrog.maven.annomojo.annotations.MojoParameter /** * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Spring Batch invoker * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ @MojoGoal( "run" ) @MojoPhase( "install" ) class SpringBatchMojo extends GroovyMojo { @MojoParameter ( required = true ) String sth void execute () { System.out.println( "[[[[[[[[$sth]]]]]]]]]]]" ); } }
generates the following code at "target/generated-sources/groovy-stubs/main/com/clearforest/plugins/springbatch/SpringBatchMojo.java":
package com.clearforest.plugins.springbatch; import org.jfrog.maven.annomojo.annotations.MojoGoal; import org.codehaus.gmaven.mojo.GroovyMojo; import org.jfrog.maven.annomojo.annotations.MojoParameter; import org.jfrog.maven.annomojo.annotations.MojoPhase; @MojoGoal(value="run") @MojoPhase(value="install") public class SpringBatchMojo extends org.codehaus.gmaven.mojo.GroovyMojo implements groovy.lang.GroovyObject { public SpringBatchMojo () {} public groovy.lang.MetaClass getMetaClass() { return (groovy.lang.MetaClass)null;} public void setMetaClass(groovy.lang.MetaClass mc) { } public java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments) { return null;} public java.lang.Object getProperty(java.lang.String property) { return null;} public void setProperty(java.lang.String property, java.lang.Object value) { } public String getSth() { return (String)null;} public void setSth(String value) { } public void execute() { } protected groovy.lang.MetaClass $getStaticMetaClass() { return (groovy.lang.MetaClass)null;} }
@MojoParameter annotation isn't generated
By the way, note that sth is not a field, but a property.
Yeah, right, I mean properties, sorry
So, how do we handle properties here? Normally the stub generator doesn't print-out the private fields. A property becomes (a private field + getter/setter methods).
In properties case, do we start printing out the code for wrapped private fields also?
Not sure if it will make sense to print the annotation provided on the property on the getter/setter methods.
My use case are Groovy MOJOs and I try to use AnnoMojo () for Java5 annotations.
That's the reason for annotation properties, they become plugin configurations later
Don't know about MOJOs. So, a question.
From your use case point of view, if "String sth" internally becomes "private String sth + public getSth()/setSth()" - will it help for the plugin configuration later if the annotation remained on the private field or moved on to accessor methods?
Not sure whether it's an option for you or not, but a change from
@MojoParameter ( required = true ) String sth
to
@MojoParameter ( required = true ) public String sth
will make sure that you get the following in the output
@org.jfrog.maven.annomojo.annotations.MojoParameter(required=true) public java.lang.String sth;
Yeap! It worked. Thanks a lot
)
Is this requirement for "public" modifier is something that I'll always need to use or it may be relaxed in the following versions?
So, shall we close it back?
Instead of a direct answer, there are a few indirect things there to be told:
1) "String sth" is a property in groovy code that gets changed internally to "private String sth + getSth()/setSth()"
2) "public String sth" is a field in groovy code and it remains unchanged as a field.
3) Stub generators currently generates annotations only for non-private fields and not for properties.
Going forward:
4) The stub generator may start doing something for properties as well - not sure at this point what that will be - whether the annotation will go on to stick to private field or accessors.
5) It is highly unlikely that property "String sth" will later translate to "public String sth" field instead of (private field + accessors).
Ok, I see, thanks for the explanation. In this case the issue can be closed again, I suppose.
I've just updated 3 of our Maven plugins to use AnnoMojo annotations instead of Javadoc ones, we'll see in a couple of days if everything is Ok.
But from what I saw, the generation works Ok now ..
Many thanks again. We were waiting for a long time to make this switch.
You are welcome. Forwarding "many thanks" to Paul for the original implementation
It seems to me annotation properties of array type are still not handled correctly. For example, with Groovy 1.7.3 and 1.7.4 :
// ArrayAnnotation.java public @interface ArrayAnnotation { String[] value() default {}; } // AnnotatedClass.groovy @ArrayAnnotation(["foo", "bar"]) class AnnotatedClass { }
generates the stub :
@ArrayAnnotation(value=null) public class AnnotatedClass extends java.lang.Object implements groovy.lang.GroovyObject { // irrelevent stuff removed }
Yes, there are a few known limitations of the current stub generator - one of them being that we can't easily resolve constant expressions for the general case (at least not without significant overheads) and we handle constant-looking things as best we can by hand-coded "sniffing" of such expressions - and arrays/lists are not in the list of what we currently look for - but could be.
Does the above cause you particular problems? Obviously the real constants will be in the Groovy byte code just not in the stubs which are only short-lived.
In any case, probably worth a new issue to handle arrays/lists as that may not be too hard.
You are right, it turns out I can successfully deactivate stub generation for the offending classes (they are unit tests). Thanks for your insight.
Shall I file a new issue anyway ?
Might be good to add. We can always close it if there is no interest or problems arise in solving it easily.
With some delay, I opened issue
GROOVY-4394
Potential patch | http://jira.codehaus.org/browse/GROOVY-4118?attachmentSortBy=dateTime | CC-MAIN-2013-20 | refinedweb | 1,162 | 50.02 |
I'm trying to go through a text file I'm passing and keep track of the numbers I'm reading in and the frequency they occurs in the 12 number file. But here's the thing, I only want to use pointers. The problem I'm running into is at the frequency part. When I compile and run the code, this is the output:
N: 10 F: 3
N: 10 F: 3
N: 8 F: 1
N: 7 F: 65
N: 5 F: 0
N: 4 F: 63
N: 10 F: 3
Segmentation fault (core dumped)
I had it printing out all the numbers before without it core dumping, but they were still wrong, as it is now (except the first 2). The N (number) is being stored in the hist struct array properly, but the F (frequency) is wrong after the first tens tens. I know the problem is in calcHistogram somewhere in the loops of chaos. Any tips would be greatly appreciated!
My guess would be that I'm going out of the range of the array somewhere, somehow. I simply can't find it though. Thanks in advance.
Code:
Code:
#include <stdio.h>
struct freq {
int number;
int frequency;
};
//function prototypes
void readScores(int* ar, int* count);
void displayScores(int* ar, int* count);
void calcHistogram(int* ar, int* count, struct freq* hist, int* ct);
int main() {
int ar[100];
int count = 0;
int ct = 0;
readScores(ar, &count);
displayScores(ar, &count);
struct freq hist[count];
printf("\n");
calcHistogram(ar, &count, hist, &ct);
}
void readScores(int* ar, int* count) {
for (int i=0; i<11; i++) {
(*count)++;
scanf("%d", (ar+i));
}
}
void displayScores(int* ar, int* count) {
for(int i=0; i<*count; i++) {
printf("score %d: %d\n", i, *(ar+i));
}
}
void calcHistogram(int* ar, int* count, struct freq* hist, int* ct) {
int uniqueNumber;
for(int i=0; i<*count; i++){
uniqueNumber = *(ar+i);
for(int j=0; j<=*ct; j++){
if(uniqueNumber != (*(hist+i)).number){
(*(hist+i)).number = uniqueNumber;
}
if(*(ar+i) == *(ar+j)){
(*(hist+i)).frequency += 1;
*ct++;
}
}
printf("N: %d F: %d\n", (*(hist+i)).number (*(hist+i)).frequency);
}
} | http://cboard.cprogramming.com/c-programming/154148-pointers-arrays-structures-printable-thread.html | CC-MAIN-2015-14 | refinedweb | 356 | 74.93 |
Hello all, sorry for this being my first post.
I have been dealing with this Nqueen program, and I cannot get it to work properly.
I feel like I have been just staring at my computer screen for hours and my brain is starting to hurt.
After entering n, the program just keeps asking for n, and does not procede. I am at a block and really not sure what is going on. I think I almost have this done!
Any insight would really be helpful, and I hope I can get this assignment done asap.
Am I even heading in the right direction? Should I be implementing this in a different way?
Thank you so much in advance.
HERE ARE THE INSTRUCTIONS:
Backtracking: Given: an NxN chessboard, each square described by a pair of coordinates (row,column) where row and column are numbers between 1 and N. A queen in chess can take a piece that is on the same row, column or diagonal. N queens can safely be placed on the board if no pair of queens occupies the same row, column or diagonal.
Write a program to determine the positions in which N queens may be placed on the board.
The input to the program is the number N. The output is a list of N positions. Each queen can be designated by a row number from 1 to N, since they must each be on different rows.
The following pseudocode describes an algorithm you may use. Assume that each queen is placed in a different column, starting with column=1
HERE IS MY CODE SO FAR:
#include <iostream> #include <cmath> #include <stack> #include <vetor> using namespace std; class Queen { public: Queen(); Queen(int row,int col); bool hit(Queen b, int size); int getrow(); int getcol(); int setcol(int x); private: double row; double col; }; Queen::Queen() { this->row=1; this->col=1; } Queen::Queen(int row, int col) { this->row=1; this->col=1; } bool Queen::hit(Queen b, int size) { int r1=row; double r2=b.getrow(); int c1=col; double c2=b.getcol(); int rmod=abs(r2-this->row) int cmod=abs(c2-this->col); //compare row if (row==b.getrow()) {return true;} //compare col if (col==b.getcol()) {return true;} //compare diag if (rmod==cmod) {return true;} else {return false;} } int Queen::getrow() {return this->row;} int Queen::getcol() {return this->col;} int Queen::setcol(int x) { int x; this->col=x; return x; } int main() { int n; int row; int col; cout << "Enter the num of queens: " << endl; cin>>n; Queen one(1,1); stack<Queen> final; final.push(one); for (int 1=0;i<n;i++) { Queen z(i,i); int c=z.getcol(); if (one.hit(z,n)==true) { while(one.hit(z,n)==true) { int b=z.getcol(); z.setcol((z.getcol()+1)); one.hit(z,n); } final.push(z); } else {final.push(z);) } for (int i=1;i<n;i++) { cout << (int)final.size()<<endl; } return 0; } | https://www.daniweb.com/programming/software-development/threads/289183/beginner-nqueen-problem | CC-MAIN-2018-43 | refinedweb | 500 | 73.98 |
XML Parsing
XML documents can be parsed efficiently and more critically because XML is a widely accepted language. It is extremely crucial to programming for the web that XML data be parsed efficiently, especially in cases a where the applications that are required to handle huge volumes of data. When parsing is improper it can increase memory usage and time for processing which directly affects the scalability by decreasing it.
There are many XML parsers that are available. Choosing a right one for your situation might be challenging. There are three XML parsing techniques which are extremely popular and are used for Java and it also guides you to choose the correct make right choice of method based on the application and its requirements.
An Extensive Markup Language parser takes a serialized string which is raw as input and performs a series of operations with it. First and foremost the XML data is checked for syntax errors and how well it formed is, and it also makes sure that the start tags will have end tags that match and that there are no elements which are overlapping with each other. Many parsers implement first validate the Document Type Definition (DTD) or even the XML Schema sometimes to verify if the structure along with the content are correctly specified by you. In the end the output after parsing is provided access to the XML document’s content through the APIs programming modules.
The three XML parsing that are popularly used with techniques for Java is, Document Object Model (DOM), it is w3c provided mature standard, and Simple API for XML (SAX), it was one of the first to be widely adapted form of API for XML in Java and has become the standard, the third one is Streaming API for XML (StAX), which is a new model for parsing in XML but is very efficient and has a promising future. Each one of the mentioned techniques has their advantages and disadvantages.
Parsing with DOM
Data Object Model or the DOM technique that based on the tree structure parsing and it builds an entire parsing tree in the memory. It also lets the DOM have complete access to the entire XML document dynamically.
The data object model is a tree like structure. So the document is considered to be the root from which all the DOM trees take birth, and the root will have one child node at the least, and the root element, which usually catalogues elements keeps it in the sample code. Another node that is created is the Document Type, which is used for the Document Type Data declarations. The elements in the catalog usually have child nodes, and these Child nodes are used as elements.
The DOM program takes the XML filename, and then creates the DOM tree. It uses the function called getElementsByTagName() for finding all the Data Object Model element nodes that can be used as the title elements. After this it finally prints the information in the text that is associated with the title elements. It achieves this by inspecting the list of title elements and then it examines the first child separately. The first child element is usually located between the start and end tags of the element, and it also uses the function getFirstChild() method to achieve this.
The Data object model is a direct model and very straight forward in its functions. XML document can be accessed randomly at any time because the memory stores the entire tree. DOM APIs also modify the nodes like for example appending a child or restructuring and updating or removing or deleting a node. There is a lot of support for navigating the memory tree in the DOM; but simultaneously there are issues related to parsing that have to be considered. It is essential in this system that the entire document has to be parsed at one single shot and the same time, it cannot be parsed partially or in intervals. If the XML document is huge then building the entire tree in the memory will become an extensive and an expensive process. The Data object model tree can actually consume a lot of memory. Though the DOM is very interoperable and interoperability is the biggest positive point it can offer at the same time it is not very good with binding and this proves to be its draw back when it comes to object binding.
There are a lot of applications which are well suited for DOM parsing. If the application needs to have immediate access to the XML document randomly then in such cases the DOM parsing is appropriate. For example an Extensive Style Language processor always has the need to navigate through an entire file and this becomes a repeated process while it is processing templates. Dom is dynamic when it comes to updating or modifying data so this feature is extremely convenient for applications, like the XML editors, which need to frequently modify data.
Parsing with SAX
SAX processing model is entirely based on stream of events and is an event-driven model for the processing of XML documents. Though it is not a standard declared by the W3C, it is still a very famous form of API that many SAX parsers use in without offending compliance or crating issues related to compliance. Unlike the DOM where it builds an entire tree to represent the data, the SAX parser streams a series of events while it reads the document. These events are forwarded to event handlers, which also provide access to the data of the document. There are three basic types of event handlers the DTD Handler which is used for accessing the data of XML DTD’s. The error handlers which are used for creating a low-level access to the errors created while parsing. The last but not the least Content handler which is used for accessing the content in the document
The difference between the DOM and the SAX parser offers a great benefit in terms of performance. It provides a low-level access which is efficient at the same time to the XML documents contents. Whereas the SAX model while having the major advantage of consuming extremely low memory, mainly because the document in its entirety does not have the need to be loaded into the memory slot at one time, and this feature enables a SAX parser to be able to parse a document which is much larger than the system’s own memory component. In addition to this, you don’t have the need to create objects for each and every node, unlike the DOM environment. SAX "push" model finally can be used in a broad context, when it comes to multiple content handlers which can be registered and used to receive events in a parallel way, instead of receiving them one by one in a pipeline in a series.
One of the disadvantages of SAX can be that you will have to implement all the event handlers to handle each and every incoming event. The application code must be maintained in this state of events. The SAX parser is incapable of processing the events when it comes to the DOM’s element supports, and you also have to keep track of the parsers position in the document hierarchy. The application logic gets tougher as the document gets complicated and bigger. It may not be required that the entire document be loaded but a SAX parser still requires to parse the whole document, similar to the DOM.
One of the biggest problems the SAX is facing today is that it lacks a built-in document support for navigation like the one which is provided by XPath. Along with the existing problem the one-pass parsing syndrome also limits the random access support. These kinds of limitations also start affecting the namespaces. These shortcomings make SAX a not so good choice when it comes to manipulating and even modifying a XML document.
Applications that can read the documents content in one single pass can derive huge benefits from SAX parsing. Many Business to Business Portals and applications use XML so that the data can be encapsulated in a format in which it can be received and retrieved using a simple process. This is the only scenario where the SAX might win hands down compared to DOM, purely due to the efficiency of SAX which results in high output. The modern SAX 2.0 also has a built-in filtering mechanism which makes very easy for the documents output to be subset. SAX parsing is also considered very useful when it comes to validating DTDs and the XML schemas.
Parsing with STax
Stax is a brand new parsing technique which is very similar to SAX and also an improvisation to it. The STAX uses a model that is event-driven. The only difference between sax and STAAX here is that the sax uses a push model and the STAX uses a pull model for event processing. And also another notable feature is instead of using call back options the STAX parser returns events which are requested by the applications in use. | https://www.exforsys.com/tutorials/xml/xml-parsing.html | CC-MAIN-2021-21 | refinedweb | 1,533 | 56.18 |
This is a guide for people who want to set up Kubernetes on Ubuntu manually as opposed to template deployment.
Before starting, make sure you have 2 virtual machines with Ubuntu 18.04. or 18.10 installed. Also, be sure to open any ports as needed for this project.
The first thing you should do, is install docker on both of your VMs. You can use the following command to install docker:
sudo apt install docker.io
Select Y once prompted and let the installation finish. To verify if installation was successful, run the following command:
docker --version
If it shows you the version number, it was successful.
Now we need to enable docker on both VMs. You can do this by running the following command on both of your machines:
sudo systemctl enable docker
We need to add the Kubernetes signing key. To do this, run the following command:
curl -s | sudo apt-key add
If you don't have curl installed by default, use the following command:
sudo apt install curl
Once finished, you can rerun the previous command.
We need to install or add the repositories on both VMs. Add the Xenial Kubernetes repository with the following command:
sudo apt-add-repository "deb kubernetes-xenial main"
The final thing we need to install is Kubeadm. Once again, on both VMs issue the following command:
sudo apt install kubeadm
To verify the installation was successful you can use the following command:
kubeadm version
Kubernetes doesn't work correctly if your system is using Swap memory. To turn this off, use the following command on both of your VMs:
sudo swapoff -a
We need to set the hostname on both VMs. Make them different from each other. Use the following command in the Master VM to set its hostname:
sudo hostnamectl set-hostname master-node
In your other VM, set the hostname to slave-node using the following command:
hostnamectl set-hostname slave-node
Use the following command on the master VM:
sudo kubeadm init --pod-network-cidr=10.244.0.0/16
The result should look similar to the picture provided here. You should also make a note of the information output, you'll need it again later.
Use the following commands as a regular user, not root:
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
You can join other VMs by issuing the following on each VM instance as root (Note: = You DO NOT need to run this now. This command will change based on your environment and it's provided in the output you were supposed to make a note of): check all of your nodes running and their current information on your master node by using the following command:
kubectl get nodes
Once you run the above command, it should say the status is NOT ready. This is because we haven't deployed any nodes on the master node yet.
Pod networks are ways that nodes on a network communicate with each other. If you want to use a different one, you are more than welcome to, but I'll be using the following on the slave VM:
sudo kubectl apply -f
Check the network status by issuing the following command on the slave VM:
kubectl get pods --all-namespaces
Next, you can check the status on the Master VM with the following command:
sudo kubectl get nodes
It should show you a ready status now.
On the slave VM, use the following command you generated on the master VM:
sudo reissue the command from earlier and it should show both VMs in use:
Now you have a fully functioning kubernetes set up. Feel free to start deploying containers and services to utilize your Kubernetes functions.
I hope this guide will help you! If I've made any errors or need to adjust anything, please let me know! Thanks!
Thanks, will give this ago. Is the reason for installing it on docker rather than the OS, to allow you to move it more easily?
Hey Strix,
I believe this installation actually installs Kubernetes on the OS. I'm not sure if it's possible to deploy kubernetes on docker as a container. Kubernetes just oversees the resources docker is using, and then deploys or scales back the container resources based on usage and need.
Yay! Now I just need to build some VMs. Yay! | https://community.spiceworks.com/how_to/161897-how-to-manually-install-kubernetes-on-ubuntu-18 | CC-MAIN-2019-51 | refinedweb | 744 | 60.04 |
On 2005-07-18T14:15:53, David Teigland <teigland redhat com>. > Currently, the dlm uses an ioctl on a misc device and ocfs2 uses a > separate kernel module called "ocfs2_nodemanager" that's based on > configfs. > >. Hi Dave, I finally found time to read through this. Yes, I most definetely like where this is going! > +/* TODO: > + - generic addresses (IPV4/6) > + - multiple addresses per node The nodeid, I thought, was relative to a given DLM namespace, no? This concept seems to be missing here, or are you suggesting the nodeid to be global across namespaces? Also, eventually we obviously need to have state for the nodes - up/down et cetera. I think the node manager also ought to track this. How would kernel components use this and be notified about changes to the configuration / membership state? Sincerely, Lars Marowsky-Brée <lmb suse de> -- High Availability & Clustering SUSE Labs, Research and Development SUSE LINUX Products GmbH - A Novell Business -- Charles Darwin "Ignorance more frequently begets confidence than does knowledge" | https://www.redhat.com/archives/linux-cluster/2005-July/msg00175.html | CC-MAIN-2015-14 | refinedweb | 166 | 55.44 |
Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.
public class Arithmetic<T> { public T Add(T input1, T input2) { return intput1 + input2; } }
... public int Add(int input1, int input2) { return input1 + input2; } ...
... public decimal Add(decimal input1, decimal input2) { return input1 + input2; } ...
Arithmetic<int> adder1 = new Arithmetic<int>(); int input1 = 1; int input2 = 2; int result1 = adder1.Add(input1, input2); Arithmetic<decimal> adder2 = new Arithmetic<decimal>(); decimal input3 = 1.0; decimal input4 = 2.0; decimal result2 = adder2.Add(input3, input4);
I'm sure you'd agree that we can use the function defined immediately above because it is designed to take in only ints.That was supposed to say "can not" in my comment.
If you are experiencing a similar issue, please ask a related question
Join the community of 500,000 technology professionals and ask your questions. | https://www.experts-exchange.com/questions/27858760/generics-problemis-to-avoid-type-cast-problem-is-i-correct.html | CC-MAIN-2018-05 | refinedweb | 155 | 51.44 |
It is a privilege for me to help you upgrade your skillset in this post, and you do not need to be a hardcore developer to get this chatbot up and running. You are going to learn how to build a simple chatbot from scratch using flutter and dialogflow.
Let’s begin:
Chatbot Definition A chatbot is a program that can conduct an intelligent conversation. It should be able to convincingly simulate human behavior.
Content details:
Creating our first Dialogflow agent
Setting Up our Flutter app
How to Download JSON from Google Cloud Platform (GCP)
What is Dialogflow?
Dialogflow is a Google-owned developer of human-computer interaction technologies based on natural language conversations. The company is best known for creating the Assistant, a virtual buddy for Android, iOS, and Windows Phone smartphones that perform tasks and answers users’ question in a natural language. To create a dialogflow account, go to dialogflow.com At the top right corner of the site click on “Go to console”.
Finally, You will need to sign in and authorize with Google Account to use Dialogflow.
We are going to create a Dialogflow Agent, and I named my Dialogflow agent to be“Tutorial”
Once you create an agent, Dialogflow will generate a default intents for you. Those Default intents are:
Default Welcome Intent: This intent helps to greet the users.
Default Fallback Intent: This intent is being triggered once the user enters any word your chatbot does not understand.
NOTE: An Intent can be defined as the service that the user wants from the agent. Intent are configured by the developers.
Let's open the Default Welcome Intent, you will some words add to the Training phrases.
Default Response.
Step 2: Setting Up Flutter app
Create your flutter app using Visual Studio, IntelliJ or Android studio, then install the package via this link: flutter_dialogflow
dependencies: flutter_dialogflow: ^0.1.2
Step 3: Download JSON from Google Cloud Platform (GCP)
Create or select an existing GCP project, in Console Google Cloud
From the GCP console, go to APIs and Services and click on credentials.
Click on Create credentials and choose Service account key.
Select your service account from the dropdown, choose JSON and click Create. This will download the JSON file to your computer.
NOTE: keep it secure.
Step 3: How to use the downloaded JSON file in an app
e.g Let's save the file as credentials.json, we should use the same name credentials.json in our pubspec.yaml file.
flutter: uses-material-design: true assets: - assets/credentials.json
NOTE: The path here (in dart code), should be the same in our pubspec.yaml file (“assets/credentials.json”)
Add this code to your main.dart
Run your app on your smartphone or emulator.
Congratulations, we have built our chatbot.
If you found this article helpful and educating, please hit.
I keep getting this error everytime. [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: Unable to load asset: dialogflow-275507-268d419f59b2.json
Please help me in resolving this
My chatbot is not replying? how to solve it please FIX it! HELPPP
Web and hybrid applications developer
Tutorial worked quite easily. Although I had to include HomePageDialogFlow Component in main.dart file like shown below:
import 'homepagedialogflow.dart';
Please update the tutorial code whenever possible
Expert Android Developer || Certified Flutter Developer || Technical Writer || Tech Speaker || Digital Skills Educator
I will do so, thanks for your comment
Expert Android Developer || Certified Flutter Developer || Technical Writer || Tech Speaker || Digital Skills Educator
The code is now updated
CTO Solu.co.id
Hello brother, thank you for the tutorial.
I'm following the steps above, but I got this error
E/flutter ( 5219): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: NoSuchMethodError: The method '[]' was called on null.
CTO Solu.co.id
Hi Thomas, I got the same problem previously, and then I try to create a new credential with this role: Dialogflow -> Dialogflow API Admin Thomas Hasler
I got it working in my emulator but its not working in my mobile device , not getting any reply from bot!! | https://promise.hashnode.dev/build-a-chatbot-in-20-minutes-using-flutter-and-dialogflow-cjy5ge9hr0018z7s10cbmaofi?guid=none&deviceId=15503632-d7d1-46dd-af4f-1c34e1f49bbd | CC-MAIN-2020-34 | refinedweb | 681 | 57.06 |
# # A '#' or ';' character indicates a comment. # ; core variables [core] ; Don't trust file modes filemode = false ; user identity [user] name = "Junio C Hamano" email = "junkio@twinsun.com"
git - the stupid content tracker ….
Pass a configuration parameter to the command. The value given will override values from configuration files. The <name> is expected in the same format as listed by git config (subkeys separated by dots).. This can also be controlled by setting the GIT_DIR environment variable. It can be an absolute path or relative path to current working directory..
Treat the repository as a bare repository. If GIT_DIR environment is not set, it is set to the current working directory.
Do not use replacement refs to replace git objects. See git-replace(1) for more information..
Find by binary search the change that introduced a bug.
List, create, or delete branches.
Move objects and refs by archive.
Apply the changes introduced by some existing commits.
Graphical alternative to git-commit.
Remove untracked files from the working tree.
Clone a repository into a new directory.
Record changes to the repository.
Show the most recent tag that is reachable from a commit..
Show commit logs.
Join two or more development histories together.
Move or rename a file, a directory, or a symlink.
Add or inspect object notes.
Fetch from and merge with another repository or a local branch.
Update remote refs along with associated objects.
Forward-port local commits to the updated upstream head.
Reset current HEAD to the specified state.
Revert some existing commits..
Create, list, delete refs to replace objects.
commands are to interact with foreign SCM and with other people via patch over e-mail.
Import an Arch repository into git.
Export a single commit to a CVS checkout.
Salvage your data out of another SCM people love to hate.
A CVS server emulator for git.
Send a collection of patches from stdin to an IMAP folder.
Applies a quilt patchset onto the current branch.
Generates a summary of pending changes.
Send a collection of patches as emails.
Bidirectional operation between a Subversion repository and git..
Create a new commit object.
Compute object ID and optionally creates a blob from a file.
Build pack index file for an existing packed archive.
Run a three-way file merge.
Run a merge for files needing merging.
Creates a tag object. packed archive index.
List references in a local repository.
(deprecated) Create a tar archive of the files in the named tree object.. (on Windows ";".
Set the git namespace; see gitnamespaces(7) for details. The --namespace command-line option also sets this value..
Only valid setting is "--unified=??" or "-u??" to set the number of context lines shown when a unified diff is created. This takes precedence over any "-U" or "--unified" option value passed on the git diff command line.1>.)..
Report bugs to the Git mailing list <git@vger.kernel.org> where the development and maintenance is primarily done. You do not have to be subscribed to the list to send a message there. | https://www.kernel.org/pub/software/scm/git/docs/v1.7.7.6/git.html | CC-MAIN-2016-50 | refinedweb | 504 | 62.95 |
#include <cafe/mic.h> mic_handle_t MICInit(mic_inst_t instance, mem_res_t* p_res, mic_ringbuffer_t* p_rb, int* perr);
A return value of
MIC_ERROR_NONE (
0) indicates success and
-1 indicates an error.
In the case of an error, perr is set.
MIC_ERROR_INV_ARG is returned when one or more of the arguments are invalid for the context of this API call.
MIC_ERROR_ALREADY_OPEN is returned if an attempt is made to initialize more than once.
MIC_ERROR_NOT_CONNECTED is returned when the DRC and the console have lost connection and are presently not
connected. The preferred way of polling connection status with the DRC via the DRC microphone library is
calling
MICInit and checking for this error value.
Validates the given parameters and then initializes the driver stack. The ring buffer shared between the upper-layer software and the microphone driver is provided with this call and validated.
The DRC microphone system can become uninitialized in three different ways: calling
MICUninit, the
console and DRC become disconnected, and releasing the foreground. The DRC microphone policy is to
leave underlying hardware quiescent and to shut down the driver stack if any of those events occur.
The DRC microphone library will not attempt to re-establish prior state when the DRC is reconnected
or being switched back to foreground. After being uninitialized, the ring buffer will no longer be referenced
by the DRC microphone library and the application can safely free or reuse that memory.
The processing performed in
MICInit is lightweight and calling this function to poll the connection
status can be performed from a timing sensitive thread.
MICUninit
mic_handle_t
mic_ringbuffer_t
Error Codes
2013/05/08 Automated cleanup pass.
2012/08/03 Cleanup Pass.
2011/10/27 Initial version.
CONFIDENTIAL | http://anus.trade/wiiu/personalshit/wiiusdkdocs/fuckyoudontguessmylinks/actuallykillyourself/AA3395599559ASDLG/av/mic/mic_init.html | CC-MAIN-2018-05 | refinedweb | 280 | 54.42 |
Python/C API: #include "Python.h"
People are strange when you are stranger. So stop being stranger and start writing emails. You’d get replies.
I came across this amazing computer vision library for Python - Mahots. It has great support for Image Processing and the most important thing is it has its own C++ bindings. I was awestruck when I first saw the source code and it is efficiently planned and brilliantly executed library. Luis Pedro has produced a bunch of beautiful codes. I have decided to contribute to Mahotas as it’d help me learn Python C++ bindings, create efficient algorithms, and feel powerful again (see previous post for the context: )
I had tried Python/C API once before but couldn’t get the hold of it. It was too confusing. Tried swig, cython and boost, but all in dumpster. Too many complications. But after looking at Mahotas’ bindings and how they are used as extension modules, I am giving it a shot. And so far, it’s been good. To understand basics, I went through the reference manual on Python website but it was all too complicated and direct. So I directly opened one of the C++ bindings of mahotas and started understanding it. But still went through few topics of Python/C API. To summarize,
All function, type and macro definitions are included in Python.h. It must be included.
Nothing should be defined that starts with Py or _Py.
*PyObject ** is is a pointer to a weird data type representing an arbitrary Python object. All Python objects have a “type” and a “reference count” and they live on heap so you don’t screw with them and only pointer variables cab be declared.
Then there is all this stuff about referencing and dereferencing the Python object. Reference count keeps a count of how many different places there are that have a reference to an object. When an object’s reference count is zero, it is deallocated. Reference counts are manipulated manually. Read more about Py_INCREF(), Py_DECREF() here.
More complicated stuff is explained after that. Exceptions, and Exception Handling. I read that, but skipped the implementation. I also skipped Reference Counting, and now I think, I shouldn’t have. Anyway, moving on to embedding Python.
The Header:
Include Python.h header file as it gives you access to the internal Python API. Add other necessary headers.
#include <Python.h> #include <stdio.h>
The C Functions:
Every function returns a Python object. There’s no void here. Return Py_RETURN_NONE to return Python’s None value.
PyObject* foo(PyObject* self, PyObject *args) { //something goes here return Py_RETURN_NONE; }
The Method Mapping Table:
Structure used to describe a method of an extension type. PyMethodDef contains an entry for every function that you are making available to Python.
struct PyMethodDef { char *ml_name; PyCFunction ml_meth; int ml_flags; char *ml_doc; };
ml_name - the name of the function as the Python interpreter will present it. ml_meth -pointer to the C implementation. ml_flags - flag bits indicating how the call should be constructed. Read about flags here. ml_doc - points to the contents of the docstring.
Map the above defined function
PyMethodDef methods[] = { {"foo",(PyCFunction)foo, METH_VARARGS, NULL}, {NULL, NULL,0,NULL}, };
The Initialization Function:
This function is called by the Python interpreter when the module is loaded. It’s required that the function be named initModule, where Module is the name of the module. This is a very crucial part. I forgot about this and wandered on the interent for almost an hour. If you don’t add this, you’ll get an import error in the Python interpreter.
ImportError: dynamic module does not define init function (initfoo)
void initModule(void) { Py_InitModule3(func, module_methods, "docstring..."); }
func: This is the function to be exported. module_methods: This is the mapping table name defined above. docstring: This is the comment you want to give in your extension
Initialize the above given module
void initfoo(void) { Py_InitModule3("foo", methods, "Extension module example!"); }
Now onto the final and most exciting part.
Building and Installing Extensions:
All hail the distutils package
Create a setup.py file.
from distutils.core import setup, Extension setup(name="foo", version="0.1", ext_modules=[Extension("foo",["foo.c"])])
And install. **$ sudo python setup.py install **
Usage:
import foo foo.foo()
Example:
Return the reversed string.
C File:
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <Python.h> PyObject* pyrev(PyObject* self, PyObject* str1) { char* str2; if (!PyArg_ParseTuple(str1, "s", &str2)) { return NULL; } // Yes, I could have used strlen() to get the length. int len; for (len=0; *str2!=NULL; str2++) { len+=1; } str2-=len; char* str3 = (char *)malloc((len+1)*sizeof(char)); str3+=len; *str3 = NULL; str3--; for (;*str2!=NULL; ++str2, str3--) { *str3 = *str2; } str3++; return Py_BuildValue("s", str3); } PyMethodDef methods[] = { {"pyrev",(PyCFunction)pyrev, METH_VARARGS, NULL}, {NULL, NULL,0,NULL}, }; void initpyrev(void) { Py_InitModule3("pyrev", methods, "Reverse the string!"); }
Some of the points that you should note PyArg_ParseTuple() parses the tuple in data types. int PyArg_ParseTuple(PyObject* tuple, char* format,…)
Let’s assume, I’m passing 3 arguments to the function. one int, one double, and one string.
PyObject* bar(PyObject* self, PyObject* args) { int i1; double d1; char* s1; PyArg_ParseTuple(args, "ids", &i1, &d1, &s1); }
In the above code, I’m using PyArg_ParseTuple() to check whether I’m getting string or not and also to assign the string value.
Py_BuildValue: Py_BuildValue are used to get PyObject from string or int or other data types. I’m returning PyObject of str3.
PyObject* Py_BuildValue(char* format,…)
PyString_AsString(): As the documentation says,
The pointer refers to the internal buffer of string, not a copy. The data must not be modified in any way, unless the string was just created using PyString_FromStringAndSize(NULL, size). It must not be deallocated.
Please ensure you do not deallocate this buffer. Refer this.
PyString_AsString returns a pointer to the internal buffer of the python string. If you want to be able to free() it (or indeed have it exist for beyond the lifetime of the associated python string), you need to malloc() memory and strcpy() the data. If the strings contain binary data, you should be using PyString_AsStringAndSize.
Refer this.
This thing got me into a lot of trouble. Only Segmentation faults for hours. Searched everything, tried everything, but couldn’t use it. I still have to study about reference counts and implement them to make code better. No memory problems.
Few helpful links:
-
-
-
I guess this should get you going. I have made a repository for all my Python/C API work and stuff. You can find it on GitHub and fork it. Suggestions and additions are welcome. PyCee.
P.S. May the Open Source embed you.
Playing around with Android UI
Articles focusing on Android UI - playing around with ViewPagers, CoordinatorLayout, meaningful motions and animations, implementing difficult customized views, etc. | https://jayrambhia.com/blog/pythonc-api-1 | CC-MAIN-2022-05 | refinedweb | 1,138 | 68.57 |
.
Before}
When :
If : tuned JSON result from the REST service will look something like this (truncated) :
{
}
}
Now=true
The
Now.
We;
}
);
Line.
To
If you try and run the example on your browser you'll find it probably won'twork. If you look at the browser console (control+shift+I on most browsers) you'll probably see that the error was something like "XMLHttpRequest cannot load..." etc.
For our application to work on a web browser we need to enable CORS in Fusion Applications, we do this by the following steps :
If all is good when you run the application on your browser, or mobile device, you'll now see the application running correctly.
To multipleCloud and Service cloud and provide an API to the client which would be using the more advanced technique of using the JET Common Model/Collection framework..
With the runReport.java file selected press the “Run” button, if all goes well then the code will execute and you should see the XML result of the BI Report displayed on the console.
:
Whilst this approach appears attractive, as it allows the developer a great deal of control of the process, in truth this internal processing should be something that the SaaS application [Oracle ERP Cloud] should manage and provide feedback to the developer when things finish..
There.
String encoded = s.bytes.encodeBase64.toString()
Create a new Project within your favourite IDE (I use JDeveloper11g for Sales Cloud Development, Netbeans for other stuff)
def base64result = adf.webServices.PTSBase64.encodebase64("Angelo Woz! | https://www.orafaq.com/aggregator/sources/187?page=1 | CC-MAIN-2018-34 | refinedweb | 254 | 55.78 |
pbs 0.109
Python subprocess wrapper
======================
PBS will no longer be supported. Please upgrade here:
And migrate your existin code with:
```python
import sh as pbs
```
* * *
PBS is a unique subprocess wrapper that maps your system programs to
Python functions dynamically. PBS helps you write shell scripts in
Python by giving you the good features of Bash (easy command calling, easy
piping) with all the power and flexibility of Python.
```python
from pbs import ifconfig
print ifconfig("eth0")
```
PBS is not a collection of system commands implemented in Python.
# Getting
$> pip install pbs
# Usage
The easiest way to get up and running is to import pbs
directly or import your program from pbs:
```python
import pbs
print pbs.ifconfig("eth0")
from pbs import ifconfig
print ifconfig("eth0")
```
A less common usage pattern is through PBS Command wrapper, which takes a
full path to a command and returns a callable object. This is useful for
programs that have weird characters in their names or programs that aren't in
your $PATH:
```python
import pbs
ffmpeg = pbs.Command("/usr/bin/ffmpeg")
ffmpeg(movie_file)
```
The last usage pattern is for trying PBS through an interactive REPL. By
default, this acts like a star import (so all of your system programs will be
immediately available as functions):
$> python pbs pbs
#")
```
## Piping
Piping has become function composition:
```python
# sort this directory by biggest file
print sort(du(glob("*"), "-sb"), "-rn")
# print the number of folders and files in /etc
print wc(ls("/etc", "-1"), "-l")
```
## Redirection
PBS")
```
PBS pbs
PBS is capable of "baking" arguments into commands. This is similar
to the stdlib functools.partial wrapper. An example can speak volumes:
```python
from pbs pbs import ssh
# calling whoami on the server. this is tedious to do if you're running
# any more than a few commands.:
`` pbs import du
print du("*")
```
You'll get an error to the effect of "cannot access '\*': No such file or directory".
This is because the "\*" needs to be glob expanded:
```python
from pbs
PBS automatically handles underscore-dash conversions. For example, if you want
to call apt-get:
```python
apt_get("install", "mplayer", y=True)
```
PBS, PBS raises an exception
based on that exit code. However, if you have determined that an error code
is normal and want to retrieve the output of the command without PBS raising an
exception, you can use the "_ok_code" special argument to suppress the exception:
```python
output = pbs: pbs-0.109.xml | https://pypi.python.org/pypi/pbs/0.109 | CC-MAIN-2017-26 | refinedweb | 409 | 55.58 |
#include "libavutil/parseutils.h"
#include "libavutil/avstring.h"
#include "avformat.h"
#include "avio_internal.h"
#include "rtpdec.h"
#include "url.h"
#include <unistd.h>
#include <stdarg.h>
#include "internal.h"
#include "network.h"
#include "os_support.h"
#include <fcntl.h>
#include <sys/time.h>
Go to the source code of this file.
Definition in file rtpproto.c.
Definition at line 46 of file rtpproto.c.
Definition at line 45 of file rtpproto.c.
Definition at line 104 of file rtpproto.c.
Referenced by rtp_open().
Definition at line 311 of file rtpproto.c.
Definition at line 345 of file rtpproto.c.
Return the local rtcp port used by the RTP connection.
Definition at line 339 of file rtpproto.c.
Referenced by rtsp_cmd_setup().
Return the local rtp port used by the RTP connection.
Definition at line 327 of file rtpproto.c.
Referenced by rtsp_cmd_setup().
Get the file handle for the RTCP socket.
Definition at line 351 of file rtpproto.c.
url syntax: rtp://host:port[?option=val.
..] option: 'ttl=n' : set the ttl value (for multicast only) 'rtcpport=n' : set the remote rtcp port to n 'localrtpport=n' : set the local rtp port to n 'localrtcpport=n' : set the local rtcp port to n 'pkt_size=n' : set max packet size 'connect=0/1' : do a connect() on the UDP socket deprecated option: 'localport=n' : set the local port to n
if rtcpport isn't set the rtcp port will be the rtp port + 1 if local rtp port isn't set any available port will be used for the local rtp and rtcp ports if the local rtcp port is not set it will be the local rtp port + 1
Definition at line 138 of file rtpproto.c.
Definition at line 221 of file rtpproto.c.
If no filename is given to av_open_input_file because you want to get the local port first, then you must call this function to set the remote server address.
Definition at line 63 of file rtpproto.c.
Definition at line 285 of file rtpproto.c.
add option to url of the form: ".
..
Definition at line 89 of file rtpproto.c.
Referenced by build_udp_url().
Initial value:
{ .name = "rtp", .url_open = rtp_open, .url_read = rtp_read, .url_write = rtp_write, .url_close = rtp_close, .url_get_file_handle = rtp_get_file_handle, }
Definition at line 356 of file rtpproto.c. | http://ffmpeg.org/doxygen/0.7/rtpproto_8c.html | CC-MAIN-2014-35 | refinedweb | 376 | 62.64 |
Hello,
We've been using Cocoon framework for years and are very happy with its
simplicity and RAD features.
Although we use very old version of Cocoon (2.0.5), it still satisfies us.
Unfortunately there are some bugs inside those old framework libs that we
cannot fix as well as some memory leaks
from libraries that are no longer in use. That's why we soon plan to
upgrade to the newest release of Cocoon.
And i have few questions related to that topic:
1. Is C3 stable enough to give it a try in a production ?
2. Is there any equivalent of XSP in C3 ?
The flexibility of XSP is very important to us in terms of introducing many
new/short changes
very fast to our web application. We just make a change and that's all -
cocoon engine recompiles the java-related
class and it is instantly available to us - no recompiling from our dev
team, no deployment, no app server restart no fuss at all!
It allows us for very rapid changes! That's exactly the kind of flexibility
we want to have in our dev environment.
And we were much worried when in next Cocoon releases the support for XSP
was abandoned. As far as i know
XSP became deprecated in C2.1.11 to be totally removed in C2.2.x and i
suppose in C3.
I didn't dig much into all the features of new Cocoon but it seems like in
C2.1/2.2 the best thing to use on the "controller" side
is Flowscript code. We were hesitating to switch from pure Java controller
code to Javascript/Flowscript
code because in my opinion the continuation mechanism is error-prone, yet
the developer must take care of many intricacies
around session/continuation expire times and so on. But the main reason for
us not to go for it was the language -
Javascript - NOT Java. Although if i get it right, you can just instantiate
any Java object and get access to any Java library available
around from Javascript, it is not as much flexible as java was in XSP.
Though it still doesn't require any recompiling!/redeployment phase
from the dev team as i assume.
In C3 you can have Java controllers called and that is Good, but it does
require recompiling the Java
class and redeploy it on the server (and restart app server?). So it will
be much much SLOWER than just dynamic-recompiling by cocoon engine without
any server restart.
So i wonder if there is any mechanism on the controller side available in
C3 that enabled us to still use Java but doesn't require from us
recompiling java code/making redeployment/restarting the application server
?
3. Is Flowscript using some separate javascript engine like V8 ? Is it run
inside JVM as a dynamic language feature ?
Whats is a preferred method to be used as a logic controller in C3 -
Flowscript or Java ?
4. We don't want to go yet with C3 alpha-3 because it still uses old Xerces
and XML-API libs. We found out there are some issues with those old libs
under Tomcat 7 while working with "bloated" XML namespaces or handling some
SAX errors. They had led to some memory leaks in our environment.
I spotted on the changelog that you have just updated C3 beta to the newest
Xerces/XML-APIs. Thank you very much for this. I really appreciate that
important change. Can we have some light on when the beta is released ?
Greetings,
Greg | http://mail-archives.us.apache.org/mod_mbox/cocoon-users/201204.mbox/%3CCAPJaKUoJdg63C=v7GdVJ-mU+gqpKPbcj_LJ+3nCZh4Ajqch9Ag@mail.gmail.com%3E | CC-MAIN-2019-26 | refinedweb | 597 | 72.36 |
Welcome to WebmasterWorld Guest from 54.160.131.20
I was recently hired by a Belgian non-profit organisation that helps people with drug related problems. My main task is to rethink their program to manage clients and billing. Currently we are using an program in ms access for this. As we have cells in different cities every cell uses their version of the program as does administration. You can see that this is far from being ideal.
So I'm thinking of developing a site in php linked at a mysql database on which every cell can log on to. As my budget is close to nothing I'd create a dyndns namespace and use one of our desktops at the main office to host the site.
Since my experience is mainly programming only I was wondering what the hardware requirements are for this. I would use a dual core cpu with 2gb ram and the upload speed is 512 kb/sec. Is this enough? Normally their should be max 10 sessions at a time. And what about safety issues as our clients expect full privacy?
Any response would be greatly appreciated.
[en.wikipedia.org...]
Laws can be different from country to country and I would be sure that you are putting enough resources into locking that down if you have access to personal information. I have seen nonprofits get more info than they should be which can put you in a sticky place if you are housing the server. Just something to think about. | https://www.webmasterworld.com/webmaster/3828701.htm | CC-MAIN-2015-48 | refinedweb | 256 | 73.68 |
I would like to write in TypeScript a npm package and I want that the user will be able to use it in both Angular and node environments.
I saw that this question was asked many times, like here or here, but it’s not exactly what I want. I found a lot of other responses, like this excellent article, but I still have a problem, and I don’t know why. I try to solve it since two days and I think that I will soon become crazy.
Example :
My awesome package :
index.ts
import { hello } from './file-to-import'; export function sayHello() { hello(); }
file-to-import.ts
export function hello() { console.log('Hello'); }
tsconfig.json
{ "compilerOptions": { "module": "commonjs", "moduleResolution": "node", "target": "es5", "declaration": true, // .... } }
Now I compile the library with
tsc, publish it and try to use it in Angular for the frontend and in NodeJs for the backend.
- First try with the combination
commonjs/es5:
All is ok for the backend, but in the frontend, Angular gives a warning :
... depends on 'my-awesome-module'. CommonJS or AMD dependencies can cause optimization bailouts.. I could ask the user to solve this problem by adding my module to
allowedCommonJsDependencies option in
angular.json, but I think that’s not a good idea.
- Second try with the combination
es6/es5or
esnext/es5:
Now, all is ok for Angular, but nodejs says in the backend :
SyntaxError: Cannot use import statement outside a module.
- Third try with the combination
umd/es5:
All is perfect for NodeJs, but Angular throws the same error than in the first try and adds other warnings :
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted.
I think that it’s possible to transpile the module two times, one with a
tsconfig with
esnext/es5 and the other with
commonjs/es5, but I don’t know how to do that and if it’s a good idea.
Any help will be welcome !
Source: Angular Questions | https://angularquestions.com/2021/03/20/how-to-use-typescript-in-my-npm-library-and-make-it-usable-in-both-angular-and-nodejs-environment/ | CC-MAIN-2021-25 | refinedweb | 334 | 64.2 |
hey everybody,
please if somebody can answer my simple questions about loops,cstrings,strings,pointers.......thanx
This is a discussion on introduction to c++ within the C++ Programming forums, part of the General Programming Boards category; hey everybody, please if somebody can answer my simple questions about loops,cstrings,strings,pointers.......thanx...
hey everybody,
please if somebody can answer my simple questions about loops,cstrings,strings,pointers.......thanx
Last edited by ai_bob; 06-09-2007 at 05:48 PM.
Don't ask us such a broad question. Nobody is willing to write a whole tutorial just for you. Either ask a specific question or read tutorials on the internet or your book(s). Simply type 'c++ tutorial' in google.
yes i know, i read the tutorial on this site....
this prime or not prime example, is it right? if yes please explain the for loop...
Code:#include <iostream> using namespace std; void main () { int n,i; char r; do { cout <<"enter n:"; cin>>n; } while(n<0); if(n%2==0 && n!=2) cout<<n<<"it's not a prime number"<<endl; else { for(i=3 ; i<=n/2 ; i=i+2) if(n%i==0) break; if(i>n/2) cout<<n<<"is a prime number"<<endl; else cout <<n<<"is not a prime number"<<endl; } do cout<<"continue (y/n):"; cin>>r; } while(r!='y' && r!='n' && r!='Y' && r!='N') } while (r=='y' || r=='n'); }
Last edited by ai_bob; 06-09-2007 at 05:39 PM.
void main() is evil. Use int main() instead. If you want to know if the code is right well... compile it. Tell us what you expect it to do and what it does instead and if there is an error message post it here. Also, indent your code.
thank you,
i got today a few books , if i have a question i'll post .... | http://cboard.cprogramming.com/cplusplus-programming/90657-introduction-cplusplus.html | CC-MAIN-2014-52 | refinedweb | 313 | 75.61 |
How to configure jshost memory usage ?
jshost has two arguments that acts on the memory usage:
- -m <size_in_MB> is used to set the maximum memory (in megabyte) a script can use. Beyond this limit, the script will crash with an "Out of memory" error. (default setting is no limit)
- -n <size_in_MB> is the number of megabytes a script can allocate before the garbage collector is called. (default setting is no limit)
It is important to note that the value used by -m and -n flags are only related to the memory allocations made internally by SpiderMonkey. If a native class or function wrapped by a JavaScript object allocates memory, this amount of memory it is not taken in account for -m and -n calculation. This can result in a bigger memory usage that you have specified with -m and -n flags.
Note: when SpiderMonkey allocates system memory, it does not necessarily free it instantly. To enhance performances, it will keep it for later use. For example, the following script will allocate a lot of memory without returning it to the system:
var a=[]; for (var i=0; i<1024*1024; i++) a.push([[]]); a=undefined; CollectGarbage();
How to avoid loading a module in the global scope ?
To achieve this, you have to change the current object of LoadModule's call:
var jsstd = {}; LoadModule.call( jsstd, 'jsstd' ); jsstd.Print( jsstd.IdOf(1234), '\n' );
This acts as namespaces.
You are free to define your own LoadModule function. eg.
function MyLoadModule( moduleName ) { var ns = global[moduleName] = {}; return LoadModule.call( ns, moduleName ); }
How to configure jshost to run as FastCGI ?
- Used the last build of mod_fcgi "Version2.1 ( Feb 15th 2007 )" :
- Configured Apache 2.2.4 (httpd.conf) with this:
- for the moment, fcgi.js is quite basic and do not process any script:
- Created a dummy script in .../Apache2.2/cgi-bin, and when you run this script, fcgi.js is executed via jshost.exe and test.txt is filled with consistent data.
- Last, learn this:
... LoadModule fcgid_module modules/mod_fcgid.so ... <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin"> SetHandler fcgid-script Options execCGI AllowOverride None Order allow,deny Allow from all FCGIWrapper "C:\fcgitest\jshost.exe C:\fcgitest\fcgi.js" .js </Directory> ...
LoadModule('jsio'); new File('C:\\fcgitest\\test.txt').content = File.stdin.Read (9999);
| http://code.google.com/p/jslibs/wiki/HOWTO | crawl-001 | refinedweb | 386 | 60.01 |
Using SURF with TBB support: thread leak?
Hi,
I am using Ubuntu 11.04 with OpenCV 2.4.2, compiled with TBB support (TBB version 3.0) with an Intel i5 processor (4 cores). I have tried using the parallelized version of SURF descriptors extraction. Either there is something I did not understand well, or there might be a thread leak.
The idea is that I create a SURF extractor, use it on an image, then continue on in my code. With TBB, 4 threads are created for this extraction, but they are not destroyed even when the extraction is done, ven when the extractor object does not exist anymore.
Here is a piece of code to illustrate this
#include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/features2d/features2d.hpp> #include <opencv2/nonfree/features2d.hpp> #include <iostream> #include <time.h> int main(int argc, char* argv[]) { if (argc != 2) { return 1; } cv::Mat img = cv::imread(argv[1], 0); // Scope where the extractor exists. { cv::SURF extractor; std::vector<cv::KeyPoint> keypoints; std::vector<float> descriptors; std::cout << "Beginning extracting." << std::endl; int counter = 0; // Extract several times to see things happening while (counter < 10) { extractor(img, cv::Mat(), keypoints, descriptors); sleep(1); ++counter; std::cout << "Iteration #" << counter << std::endl; } } // Now the extractor does not exist anymore std::cout << "Finished extracting." << std::endl; // Wait a bit to check the threads. sleep(10); std::cout << "Exiting" << std::endl; return 0;
}
If you run the program (giving an image path as an argument) and check the number of threads used, you can see that the for threads are created, but stay until the end of the program, even when the extracting is done and the extractor object does not exist. This looks to me like a thread leak...
So, do I misuse SURF extraction, is this a normal behavior, or a bug ?
Thanks in advance
Emilie | http://answers.opencv.org/question/1523/using-surf-with-tbb-support-thread-leak/ | CC-MAIN-2019-13 | refinedweb | 318 | 67.65 |
Python client for Elasticsearch
Project description
Elasticsearch DSL is a high-level library whose aim is to help with writing and running queries against Elasticsearch. It is built on top of the official low-level client (elasticsearch-py).
Philosophy
The DSL inroduced in this library is trying to stay close to the terminology and strucutre of the actual JSON DSL used by Elasticsearch; it doesn’t try to invent a new DSL, instead it aims at providing a more convenient way how to write, and manipulate, queries without limiting you to a subset of functionality. Since it uses the same terminology and building blocks no special knowledge, on top of familiarity with the query DSL, should be required.
Example
With the low-level client you would write something like this:
from elasticsearch import Elasticsearch es = Elasticsearch() response = es.search( index="my-index", body={ "query": { "filtered": { "query": { "bool": { "must": [{"match": {"title": "python"}}], "must_not": [{"match": {"description": "beta"}}] } }, "filter": {"term": {"category": "search"}} } }, "aggs" : { "per_tag": { "terms": {"field": "tags"}, "aggs": { "max_lines": {"max": {"field": "lines"}} } } } } ) for hit in response['hits']['hits']: print(hit['_score'], hit['_source']['title'])
Which could be very hard to modify (imagine adding another filter to that query) and is definitely no fun to write. With the python DSL you can write the same query as:
from elasticsearch_dsl import Search, Q s = Search(using=es).index("my-index") \ .filter("term", category="search") \ .query("match", title="python") \ .query(~Q("match", description="beta")) s.aggs.bucket('per_tag', 'terms', field='tags')\ .metric('max_lines', 'max', field='lines') response = s.execute() for hit in response: print(hit._meta.score, hit.title) for b in response.aggregations.per_tag.buckets: print(b.key, b.max_lines.value)
The library will take care of:
- composing queries/filters into compound queries/filters
- creating filtered queries when .filter() has been used
- providing a convenient wrapper around responses
- no curly or square brackets everywhere!
Migration
If you already have existing code using the elasticsearch-py library you can easily start using this DSL without committing to porting your entire application. You can create the Search object from current query dict, work with it and, at the end, serialize it back to dict to send over the wire:
body = {...} # insert complicated query here # convert to search s = Search.from_dict(body) # add some filters, aggregations, queries, ... s.filter("term", tags="python") # optionally convert back to dict to plug back into existing code body = s.to_dict()
Since the DSL is built on top of the low-level client there should be nothing stopping you from using your existing code or just dropping down to the low level API whenever required; for example for all the APIs not (yet) covered by the D. | https://pypi.org/project/elasticsearch-dsl/0.0.2/ | CC-MAIN-2019-13 | refinedweb | 444 | 51.68 |
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Setting Up Mockito7:02 with Chris Ramacciotti
In order to preserve the "unit" in unit testing, often we need to mock, or fake, the functionality of certain objects. There are several popular libraries out there to choose from. We'll be using Mockito, so this video shows you how to get started with Mockito.
Sync Your Code to the Start of this Video
git checkout -f v4
Using Git with this Workshop
See the README on Github for information on how to use Git with this repo to follow along with this workshop.
Alternate Approaches to Setting Up Mockito
Without the MockitoJUnitRunner
If you want to run your unit tests without the
MockitoJUnitRunner, you can delete the
@RunWith annotation from the class. Then, you'll need to tell Mockito to initialize the mocks according to your
@InjectMocks and
@Mock annotations:
public class FavoriteControllerTest { private MockMvc mockMvc; @InjectMocks private FavoriteController controller; @Mock private FavoriteService service; @Before public void setup() { MockitoAnnotations.initMocks(this); // Initialize according to annotations mockMvc = MockMvcBuilders.standaloneSetup(controller).build(); } }
Construct Mocks Yourself
If you'd like to construct and initialize the mocks yourself, you have options. Here is one way to do this:
public class FavoriteControllerTest { private MockMvc mockMvc; private FavoriteController controller; private FavoriteService service; @Before public void setup() { // Construct the service mock service = Mockito.mock(FavoriteService.class); controller = new FavoriteController(service,null,null); mockMvc = MockMvcBuilders.standaloneSetup(controller).build(); } }
Of course, this will require a constructor in the
FavoriteController class. Because we don't want to break Spring's dependency injection, you can mark this constructor as
@Autowired, which means that any parameter values will be injected according to available beans. This is a nice, test-friendly alternative to autowired fields, which require reflection for DI. Here's the relevant part of the
FavoriteController class:
@Controller public class FavoriteController { // @Autowired annotations removed from fields private FavoriteService favoriteService; private PlacesService placesService; private WeatherService weatherService; @Autowired // Added for Spring DI public FavoriteController( FavoriteService favoriteService, PlacesService placesService, WeatherService weatherService) { this.favoriteService = favoriteService; this.placesService = placesService; this.weatherService = weatherService; } }
Overview of Mocking
Wikipedia has a nice explanation of what mock objects are:
Here is a nice supplement to our mocking work, still within the context of Spring:
Popular Mocking Libraries
On to the topic of faking, I mean marking, well same thing really. 0:00 Let's consider what it means to unit test the favorites controller. 0:05 I will open that now, favorite control. 0:08 Let's hone in on testing the index method and that's this first one right here. 0:12 As you can see, 0:17 when this method is executed the service's FindAll method is called. 0:18 If we want these unit tests to focus entirely on the favorite controller 0:23 then testing this method should not rely on a working implementation of 0:27 the favorite service. 0:31 After all we'll write unit tests for that service. 0:33 What we do in this case is mock this favorite service. 0:37 That is, we create a fake implementation of a favorite service and tell that fake 0:41 object what to do when its method, like this FindAll method, is called. 0:46 In the case of testing the index method, we'll mock the service and 0:51 configure what we want the mock object to return when its FindAll method is called. 0:54 Before we do that though let's go get the class set up to use a mocking library 1:00 called mockito. 1:03 Now to create the favorite controller test what you can do is use Ctrl or 1:05 Cmd+Shift+T, to create a new test if one doesn't exist already. 1:09 So I'll just accept the default here and yes I will add it to my get repository. 1:14 Cool, and what you'll see is that IntelliJ will automatically do a static import of 1:22 all those junit assertions whether you use them or not. 1:25 I'll leave that in there for now. 1:30 Just like the weather controller test, we'll need a field for 1:34 the MockMvc object and the controller. 1:36 So let's get those in there. 1:38 So private MockMvc right there. 1:40 MockMvc and let's get a field in there for the favorite controller. 1:44 FavoriteController and I'll name this one simply controller. 1:49 We'll be initializing this in the same way as we did before. 1:54 So let's use public void setup here. 2:00 And let's initialize that mockMvc object using that stand alone set up. 2:03 Remember that comes from the MockMvcBuilders class, 2:08 MockMvcBuilders.standaloneSetup passing it the controller and building it. 2:12 Cool. 2:18 Notice that in this case I didn't initialize the FavoriteController at all, 2:20 so how is it not null? 2:24 Well, right now it will be null, but 2:26 let's have our mapping library take care of that for us. 2:28 Mockito is not the only mocking library out there, 2:32 you'll see lots of developers using EasyMock as well. 2:36 Check the teacher's notes for more info on mocking libraries. 2:39 I'll mention some mocking features as we use them and 2:42 know that each library has its own version of the features you see here. 2:44 To fully leverage the set up capabilities of Mockito we'll 2:49 say that these tests should be run by the MockitoJUnitRunner. 2:51 And to do that, I'll use the RunWith annotation. 2:55 Passing it the Mockito, let's import that there, there we go. 2:58 The mockitojunitrunner.class, cool. 3:02 This will use Mockito's JUnitRunner instead of JUnit's JUnitRunner. 3:08 The nice thing about this is that it gives us the ability to leverage some handy 3:13 annotations. 3:16 For example, the InjectMocks annotation which I will apply to the controller. 3:17 @InjectMocks. 3:23 What this does is, create an instance of a favorite controller, 3:26 using the default constructor of the controller class. 3:31 And then it will inject any field annotated with the mock annotation 3:34 into this favorite controller. 3:38 For example, we want to mock the favorite service. 3:41 So let's create one of those and 3:45 annotate it with the mock annotation private FavoriteService. 3:48 And I'll just call it service. 3:55 So, a mock object will be created by Mockito and stored into the service field, 3:58 and injected into the favorite service field of the favorite controller here. 4:03 Check out the teacher's notes for alternate approaches for 4:09 setting up these mocks and getting them into the appropriate classes, 4:11 that is injecting them. 4:16 Okay. 4:19 Let's now create our test methods and 4:19 look at the general steps we'll need to take in each method. 4:21 First let's test that the favorite controller's index method 4:23 actually includes a list of favorites in the model. 4:26 So let me go down here and create a new test method and we'll call it public void. 4:29 The index method should include the favorites in the model. 4:36 That that throws an exception. 4:45 So essentially what we'll be doing here is we'll be making a request to the mockMvc 4:48 object that will lead to a call to the FavoriteController's index method. 4:52 And what this test method will do is ensure that the proper 4:57 favorite objects were added to the model before the view is rendered. 5:01 Okay, let's stub out another test method. 5:05 So we'll make sure adding a favorite redirects to the new favorite's 5:08 detail page. 5:12 Let's write a test for that. 5:13 public void, and we'll say that the add_ method, ShouldRedirectToNewFavorite. 5:15 I'll declare it as throwing an exception again, as we do with all test methods. 5:22 And finally, how about we test that when trying to access a detail page for 5:28 a favorite that doesn't exist, we get the proper error page. 5:32 So, let's write a test, That ensures 5:35 that the detail_ShouldErrorOnNotFound. 5:41 And though each one of these test methods tests a different kind of functionality, 5:50 the general idea will be the same, that is, we will first arrange the mock 5:55 behavior, And then, 6:00 we'll act, that is, we'll perform the MVC request and we'll assert the result. 6:05 So this is going to be the same for all those methods. 6:14 I'm going to paste those comments in each one of those test methods. 6:18 And you'll notice that the general layout of our test with mocks still 6:22 follows the rule of AAA. 6:24 That is arrange, act, and assert. 6:26 Arranging involves setting up our system under test often abbreviated as UT which 6:30 for us includes setting up the mockMvc object as well as our controller and 6:36 mock service. 6:40 Acting involves performing the actual MVC request and asserting will for us involve 6:42 calling that and expect method that you saw in the weather controller test. 6:48 In the next video we'll fill in all the code for each one of these test methods 6:54 and you'll begin to see some pretty cool stuff that we can do with Mockito. 6:57 | https://teamtreehouse.com/library/setting-up-mockito?t=225 | CC-MAIN-2020-45 | refinedweb | 1,693 | 61.56 |
I'm in the process of making a sidescrolling shooter sort of game in a fantasy setting. One of my player's abilities is to conjure a flame wall anywhere on the terrain. When an enemy walks across flame wall particle system's prefab's box collider, it sets the bool isOnFire == true in that enemy's script. The enemy script also inherits flameWallDuration, flameWallTimer, flameWallDelay and flameWallDamage from another script. All floats. flameWallDuration is set to 2, both flameWallTimer and flameWallDelay are set to 0.5f, and flameWallDamage is set to 20. This particular enemy's health, monsterOneHealth, is equal to 30. The following is the relevant script:
using UnityEngine;
using System.Collections;
public class MonsterTwoScript : AttackScript
{
public GameObject monsterTwo;
private float monsterTwoHealth = 30;
private bool isOnFire = false;
void Start ()
{
this.flameWallDuration = 2;
this.flameWallTimer = 0.5f;
}
// Update is called once per frame
void Update ()
{
if(monsterTwoHealth <= 0)
{
Destroy(gameObject);
}
Destroy(gameObject, 8);
if(isOnFire == true)
{
this.flameWallDuration -= Time.deltaTime;
if(this.flameWallDuration != 0)
{
this.flameWallTimer -= Time.deltaTime;
if(this.flameWallTimer < 0)
this.flameWallTimer = 0;
if(this.flameWallTimer == 0)
{
this.monsterTwoHealth -= (flameWallDamage/4);
this.flameWallTimer += flameWallDelay;
}
}
if(this.flameWallDuration < 0)
this.flameWallDuration = 0;
if(this.flameWallDuration == 0)
this.isOnFire = false;
if(this.transform.childCount > 0 && isOnFire != false)
{
GameObject fireEffect = this.transform.GetChild(0).gameObject;
fireEffect.particleEmitter.emit = true;
}
}
}
void OnTriggerEnter (Collider other)
{
if(other.gameObject.tag == "FlameWall")
{
isOnFire = true;
}
}
}
The problem is, whenever this enemy catches on fire, it will either not take any damage at all or it will continue to take damage well past the end of flame wall's 2 second duration, and it will eventually kill the enemy, which shouldn't happen since it should only take flameWallDamage/4 (5 damage) a total of 4 times (20 damage), and the enemy has 30 health.
I'm new to programming, and I've learned most of what I know by trial and error, but I can't seem to figure this out. Throwing a bunch of "this" tags onto it was my latest effort to get things to work right, but I still cannot figure this out.
Could someone please help me out here?
Try making most of the vars public, so you can see them move. Or else toss in a big Debug.Log("duration="+ ... ); and you'll be able to search through the numbers later.
Debug.Log("duration="+ ... );
I'm also not sure about Destroy(...,8); That should kill you after 8 seconds, no matter what.
Destroy(...,8);
Answer by syclamoth
·
Dec 12, 2011 at 01:23 AM
What you are doing here is a pretty inefficient way of doing things. Thankfully, coroutines are here to save you! Try putting that functionality into a coroutine which gets set off when the monster goes into the fire.
// We use this to make sure the monster doesn't get set on fire twice!
private bool onFire;
// Drag and drop the particle emitter in the inspector. It's much faster.
public ParticleEmitter fireEffect;
IEnumerator DoFireDamage(float damageDuration, int damageCount, float damageAmount)
{
onFire = true;
fireEffect.emit = true;
int currentCount = 0;
while(currentCount < damageCount)
{
monsterTwoHealth -= damageAmount;
yield return new WaitForSeconds(damageDuration);
currentCount++;
}
fireEffect.emit = false;
onFire = false;
}
void Update()
{
if(monsterTwoHealth <= 0)
{
Destroy(gameObject);
}
}
void OnTriggerEnter(Collider other)
{
if(other.gameObject.tag == "FlameWall" && !onFire)
{
StartCoroutine(DoFireDamage(flameWallTimer, 4, flameWallDamage);
}
}
A few other things- you say that you have inherited a lot of 'stats' variables from a parent class. It's object-oriented best practice to avoid doing this when you can- it's better to have a 'stats' class which you attach to ever other class that needs them- this way you don't have to assume (or keep track of) any inherited behaviours from the parent class. So-
[System.Serializable]
public class Stats{
public float HP;
public float damage;
public float flameWallDuration;
public float flameWallDamage;
// and so on...
}
Then, in every class that uses it-
// This will show up in the inspector under a little drop-down arrow
public Stats myStats;
Every time you want one of your monster's stats-
myStats.HP;
myStats.flameWallDamage;
This works perfectly, mathwise! Thanks a ton for showing me an alternative to my ridiculously clunky timers. There is one problem, though. The particle effects aren't emitting. I've unparented the fireEffect particle system from the monster, updated the monster's prefab and dragged the particle system into the spot for it in the editor, and I've even tried reparenting the particle system back onto the moster as well, and the particle system just doesn't want to emit. Suggestions?
Well, I can't really explain that. The fireEffect should definitely still be a transform child of the monster, though. They should be part of the same prefab.
Just wanted to update you on the situation. Apparently, I'm just dumb. I didn't reset the position of the particle system to 0, 0, 0 when I attached them to the game object. It was working perfectly the whole time, the particle system was just way off the visible screen. Thanks again!
@syclamoth Hey there! I know it's been many years, but if you're out there and willing to help, I'd be ultra grateful!
I'm new to Unity and C# and my question is: when you do "public Stats mystats;" and then alter the "myStats.HP" variable, doesn't it change the "HP" variable on the "Stats" class itself? Meaning that if many GameObjects use it, all of them will take damage at once?
Answer by Neuroticaine
·
Dec 12, 2011 at 02:51 AM
Thanks for the response. I'll give it a shot. I know a lot of it's extremely inefficient, but this is a continuation of a project I did at the start of the semester and I simply didn't have the time to start the scripting from scratch to make it more efficient. In retrospect, I would have made a completely separate class like you suggested. In fact, I've been working on this so much lately that when I'm in bed, trying to fall asleep, I start mentally mapping out how to make it more efficient the next time around. =P
This is where great functionality is.
Health bar help
1
Answer
Survival Shooter cant hit the zooooooom bunny
0
Answers
How do I make the object apply damage on trigger?
0
Answers
Damage two objects based on their relativ speed to each other
2
Answers
How do I create a timer.
1
Answer | https://answers.unity.com/questions/194245/damage-over-time-problem.html | CC-MAIN-2019-43 | refinedweb | 1,084 | 57.27 |
It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
Does anybody else get this error when trying to use the getProjectRoleActors and passing in two arguments? Or am I being silly and missing something?
I'm trying to get the users who have each role in each project..
Thanks
That is right. There is no such method. You pass wrong parameters. You should pass
getProjectRoleActors(ProjectRole projectRole, Project project)
I get the same error when I pass two arguments as string representations, ideally I'd be able to get the full list of roles, with the users (actors) too.
I also tried to pass in (projectRoleList[1], "Test") but still get the same error. Any ideas?
You should pass ProjectRole and Project variables. Not Strings, ints, long etc. String is String. String is not ProjectRole or Project.
Hmm, these are Project and Role objects though (I think) that are being passed in..
No, these ara List<ProjectRole> and List<Project>. And List<ProjectRole> does not equal to ProjectRole. Same with Project. You need to iterate over Lists and pass each value to the function.
for (ProjectRole projectrole : projectRoles) {
for (Project project : projectArray) {
def ret = projectRoleManager.getProjectRoleActors(projectRole,project)
}
}
I did not check the code. There are can be typos. But it is the. | https://community.atlassian.com/t5/Jira-questions/Cannot-find-method-error-groovy-getProjectRoleActors/qaq-p/702907 | CC-MAIN-2019-13 | refinedweb | 226 | 69.99 |
Visual Basic 9.0 and C# 3.0 Videos and Info
About The Author
Eugenia Loli
Ex-programmer, ex-editor in chief at OSNews.com, now a visual artist/filmmaker.
Follow me on Twitter @EugeniaLoli
46 Comments
-
2005-09-21 10:53 amMr. Tan
Hows the memory consumption of c# compared to java?
I’ve been doing most of my freelance work in java sinced I can jump from one OS to another without any problem, so if mono and .net framework can cooperate, c# would certainly be a contender.
I’ll just hope Sun can match up with c# with their upcoming release
sun just needs to make sure its the right road and java will succeed no problem
I have to admit, I was skeptical of C# since it’s beginning. I didn’t pay much attention as I thought it would be a Java clone, nothing more. As I always loved C/C++ and never really liked Java, I decided to stick with the good old languages.
Then a couple weeks ago I stepped on my ego, and decided to try C#. I’m hooked since then. What a beautiful, clean language. It really feel good coding with it, and also think I’m much more productive using it than C++, even tho I’m still learning it.
I’ll keep using C/C++ for non-PC devices (PSP homebrew) but on Windows, I’m gonna use C# exclusivelly.
Long story short, Microsoft did a LOT of mistake and made products in their existence, but once in a while they just nail it in short time. C#/.NET is one of those success.
Now I just need to put more time on MONO, to see if I can easily jump from one to the other without much hassles.
2005-09-21 7:21 am
I agree. I took a full year of C# last year in college and right now I’m taking a semester of Java. I like C# much better. It is much cleaner and much more consistant. After learning C#, Java seems like a jumbled mess. Why do I need to have Swing, AWT, JWT, and who knows what other windowing toolkit when I could have one that does everything I need?
-
Those languages are evolving fast. It’s nice to see that they can take good things from “dynamic” languages to make life easier, when you really want. A very good enhacements for productivity.
I wouldn’t complain about Java guys on Sun however it’s been a while that people I know (and that I read of) are satisfied with C# as opposed to Java, though Microsoft will need to tune up a little bit to go in direct competition with Java in Enterprise field.
If Microsoft will be successfull in making WPF technology available to many platforms via plug-ins for browsers, I have no doubts that more Java people will look into C#/VB/.NET.
C# 3.0 seems to be taking a lot of features from Boo. (which is a good thing)
Type inference:
C# 3.0: var i = 5;
Boo: i = 5
Lambda expressions:
C# 3.0: x => X + 1
Boo: { x as int | return x + 1 }
Object initializers:
C# 3.0: var a = new Point { X = 0, Y = 1 }
Boo: a = Point(X: 0, Y: 1)
Query expressions:
C# 3.0: from c in customers where c.City == “London” select c
Boo: c for c in customers if c.City == “London”
There are a few proposed others that will be put in Boo in a little while. (but probably before C# 2.0 comes out of beta)
If you want to at least check out these nice features today, while having a prettier syntax, take a look at Boo.
irc://irc.codehaus.org/#boo
I doubt it; what sucks about Java is this; the Java IDEs suck royally; look at what Microsoft provide and look at what IBM, SUN and BEA provide; its bloody atrocious; I wouldn’t wish those tools on my worst enemy.
As for what SUN also needs to do is simplify the language and make it easy enough for a Visual Basic coder to use but compex enough to allow a master programmer to have access to the powerful features he or she might need.
2005-09-21 10:56 amMr. Tan
Suck in what way? Have you tried the latest netbeans (4.1) with the latest java release? I usually code swing applications in netbeans (freelance) aside from the load time, swing can match up with the speed of native programs (with the exception of some areas). Java IDE’s are one of the best.. please elaborate
-
2005-09-21 12:31 pm
I doubt it; what sucks about Java is this; the Java IDEs suck royally; look at what Microsoft provide and look at what IBM, SUN and BEA provide; its bloody atrocious; I wouldn’t wish those tools on my worst enemy.
Have you used NetBeans 5.0 or Java Studio Creator 2? (OK both still early access so try NetBeans 4.1).
NetBeans 5.0 has a very good form designer (in many ways it handles layouts better than VS.NET 2005).
Eclipse 3.1?
Your comments would have been very true 2 years ago, but a lot has changed – as long as you have enough RAM to run these tools. VS.NET 2005 isn’t exactly light on resources either.
As for what SUN also needs to do is simplify the language and make it easy enough for a Visual Basic coder to use but compex enough to allow a master programmer to have access to the powerful features he or she might need.
Java is already a very simple, clean language (quite the opposite of where C# looks to be heading).
Java already has plenty of features – unless you want non-features such as goto or operator overloading.
2005-09-21 2:45 pm.
Java is already a very simple, clean language
Too simple…
-
-
2005-09-22 6:07 am.
That is why I use Netbeans. I agree about the Eclipse Visual Editor module being slow – in fact it is borderline useless.
The matisse form editor in the upcomping Netbeans 5.0 blows it away. Matisse will even give VS2005 something to think about.
2005-09-21 1:14 pm
>I doubt it; what sucks about Java is this; the Java IDEs
>suck royally; look at what Microsoft provide and look at
>what IBM, SUN and BEA provide; its bloody atrocious; I
>wouldn’t wish those tools on my worst enemy.
I guess if all you are doing is laying out win forms then the Visual Studio Form Designer is servicable.
But as someone who has used both, I can honestly say that for any real work Eclipse is superior to VS in every way imaginable.
How can you live without proper refactoring tools?
All this C#3.0 stuff makes it look more and more like Javascript. I know that that Java Mustang is going to have the Rhino javascript engine built in, which seems like a better idea. Keep your loose typing seperate from your strongly typed objects. Bit more honest.
The querying ELinq or whatever stuff looks good, java has the potential to do this too. The Apache JXPath lets you do XPath queries on Collections, but this seems a bit better.
They’ll end up with C#4.0 being pure Javascript, or Lisp
2005-09-21 11:27 amTBPrince
They’ll end up with C#4.0 being pure Javascript, or Lisp
🙂
Who knows… 😉 However, I think they’re trying to provide enough flexibility for users who want it. “Dynamic” languages are getting popular expecially for simple and/or quick projects (there are many people who are constantly stating that they’re suitable for larger projects… that becomes a matter of taste but I feel more secure with compile-time checkings) so they’re trying to extend C# (and VB.NET) in order to provide some of those benefits.
However, you can just avoid using them and use C# 1.x or 2.x syntax to achieve type safety.
While I won’t use all of those features because I’m more comfortable with type-safety, I think it’s generally good to have choice so many people who right now think that C# or Java (or VB.NET 😉 are very difficult (expecially in Web development where people is accustomed to ASP or PHP) might consider switching because they find support for some of their way of developing.
I really think MS is making a big mistake by introducing layer after layer of new syntactical sugar with each release.
As the syntax becomes more and more obscure the code written to that syntax is going to become more obscure.
Quite frankly, many software engineers can’t write clean, readable code in a language with simple syntax. I can’t imagine the horrors that will be created with implicitly typed local variables, anonymous types, IQL, etc.
You couldn’t pay me enough to support someone else’s C# code.
-
2005-09-21 3:13 pm
>The new “syntactic sugars” makes your code cleaner and
>easier to read.
I would very much debate that.
>No operator overloading
Operator overloading is just an obscure way of defining and invoking a function. I have in the past taken over codebases from other developers who I would not trust within 500 miles of operator overloading. IMHO, the handful of keystrokes saved by operator overloading is more than offset by the confusion of trying to decipher a codebase with poorly defined operator overloads.
>no properties.
The implicit (but not dynamic) typing of C# 3 should go a long ways toward making C# code an unintelligible mess.
-
2005-09-21 4:30 pm
the handful of keystrokes saved by operator overloading is more than offset by the confusion of trying to decipher a codebase with poorly defined operator overloads..
he biggest problem is that the syntax used is identical to the syntax for member access, making it impossible to differentiate between a propery access and a member access without close code scrutiny. This can (and has) led to problem such as infinite loops in untested code.
I created with many code with Delphi and the properties proved far more useful then harmful. Let see this code:
Label.setFontSize(12) or Label.Font.Size=12; The properties are special members: you can handle the getting and setting process. And it can be VERY useful if you know what do you do.
2005-09-21 4:53 pm
.
Once again, I will vigorously debate the “cleaner and easier to read” part. What happens when you take over another developer or team project and they have decided to implement an inconsistent (if not random) set of operator overloads? The code is unreadable. You think this is impossible… belive me it happens.
>Label.setFontSize(12) or Label.Font.Size=12; The
>properties are special members: you can handle the
>getting and setting process. And it can be VERY useful
>if you know what do you do.
What exactly is the advantage? You saved three characters of typing and in exchange misrepresented two function calls as a single assignment.
How can you be sure that Size a property and not a public member? Can you guarantee that all properties will begin with initial caps? What happens if a bonehead developer capitilizes his private members and lowercases his property names? What if he begins some properties with lowercase and others with upper? How about if one member of the team uses lowercase for property names, but another uses caps within the same file?
Surely a competent developer would not make these mistakes? Well, I cannot tell you how many times I’ve seen inconsistent coding standards within a single source file. Classes, member varialbes and methods all beginning w/ varying case. Some member variables beginging with “_”, some beginning with “m_”, some always prefixed with “this”.
Now you tell me on a cursorary code inspection… which is a simple assignment and which is a property accessor.
-
-
-
2005-09-21 9:18 pm
Properties are very useful. They free you from defining getter and setter methods for every single attribute: you can start with public fields and gradually turn them into properties as required, without changing the interface. That removes the need for preventive dumb accessor methods.
How many times have you written methods like this:
int getSomething() {
return something;
}
void setSomething(int value) {
something = value;
}
The property approach is way more interesting.
2005-09-21 9:27 pm
>They free you from defining getter and setter methods
>for every single attribute: you can start with public
>fields and gradually turn them into properties as
>required, without changing the interface. That removes
>the need for preventive dumb accessor methods.
So do you start your public member variables with intial caps to make them look like properties? When you convert to properties, do you rename the members? Does this cause any versioning problems with serialized objects?
>How many times have you written methods like this:
Never. My IDE writes them for me.
>The property approach is way more interesting.
I prefer my approaches to be easily maintainable over “interesting”.
2005-09-21 11:09 pmjayson.knight
This is why consistent naming guidelines need to be laid down and followed by IT departments, and then enforced during the build cycle (or even check-in cycle) by a tool such as FXCop. I disagree with the original poster though in that I think all public fields should always be encapsulated by public properties wrapped around a private field of the same type; it’s cleaner design and allows for easier changes to the field w/o breaking the public interface. Also, intellisense is a _huge_ help for determining what’s a method and what’s a property…but if proper naming guidelines are followed (i.e. properties = nouns, methods = actions such as Get[foo] or Set[foo] which is very much how MS does it w/ the BCL), simply scanning the code should be enough.
2005-09-22 6:04 am
Properties are very useful. They free you from defining getter and setter methods for every single attribute: you can start with public fields and gradually turn them into properties as required, without changing the interface. That removes the need for preventive dumb accessor methods.
Start with public fields? Perhaps you shouldn’t post a suggestion like that publicly, it is a very bad idea?
Besides the syntax for defining get and set for properties in C# isn’t really much different from defining a get and set in Java. Besides Java programmers have been using refactoring to generate getters and setters for years. I believe refactoring is one of the “innovative” new features in VS.NET 2005.
How many times have you written methods like this:
int getSomething() {
return something;
}
void setSomething(int value) {
something = value;
}
The property approach is way more interesting.
It is quite simple really. Highlight the fields you want to encapsulate then select refactor->encapsulate and the IDE will generate these for you.
An interesting side-effect of getters and setters is that it becomes very easy to narrow down code-completion options to get or set properties, by simply typing “get”. When using VS.NET I have to look through everything to find the properties I am looking for and I have to keep checking the icons to see which are properties and which are methods to figure out how I should access them. Rather trivial, but an intersting observation nonetheless.
2005-09-21 4:48 pmg2devi
Java follows the C philosophy which states “Keep the language as simple as possible. If you need features, add it to the library.”.
Java doesn’t need to go the way of C#, C# already exists. What it does need to do is to make sure that it’s library is rich enough to handle anything that the modern environment can throw at it.
The key problem with the “extend the language” approach is that it permanently leaves an artifact in the language that has to interact with other artifacts in unexpected ways. If the language feature becomes obsolete, you’re stuck with a dead language feature and forced to decide if you want to add other features that do basically the same thing. For example “call by name” was a neat feature of ALGOL, but lambda expressions and reference variables are far better and more maintainable ways of expressing this feature.
Also, the more complex the language, the harder it is to maintain code in the language. I learned C++ when it was called “C with Classes” and kept up with it until it got standardized. I consider myself a C++ guru. here are many things to love about the language, but I learned the hard way that most people are not C++ gurus and when you have to work with a lot of “self-taught through on the job experience” C++ programmers (as is common in the working world), C++’s advanced features can cause major problems when these semi-unexperienced programmers try to maintain the code. Things can get much worse if these semi-unexperienced programmers try to actually use these advanced features for the first time in a critical project. IMO, the only way to deal with these issues to restrict yourself to a subset of the language, one that is basically the same as Java.
2005-09-21 10:27 pmjayson.knight
You are correct about the whole “dead artifact” issue; that was one of the initial things most people hated about LINQ back when it was still X#/Xen…it was to be built into the language itself. The features of LINQ have been moved into the System.Query namespace and has it’s own library. The fact that you can use LINQ to query any object that implements IEnumerable<T> will prove more than useful though, I am pretty sure it’s here to stay. Good post though.
.”
Amen.
Platform independence is another nice issue I’m having with both languages. While Microsoft has promoted C#/.net to be platform independent, they only care about Windows PCs wich is ok, since that’s where they make money, however they shouldn’t praise the platform independence while actually not caring about it. Sun on the other hand is at least trying to make Java as platform independent as possible (they could have said Solaris+sparc and nothing else but then again, who would use Java if that was the case).
Still I’m not able to run Java 5.0 stuff on my Powerbook because I don’t use OS X. Ok, this is some odd software/hardware combination but I still belive C is the most platform independence you can get.
2005-09-21 4:39 pm
Ok, this is some odd software/hardware combination but I still belive C is the most platform independence you can get.
The platform independence is a very interesting question. C is very platform independent until you use only the <stdio.h>, <stdlib.h>, etc. But if you want to send a simple message dialog box to your screen you must use platform-specific functions – or any platform-independent class library (like wxWidgets, Qt, Fox, fltk, etc /but this stuffs are C++/). This things are mostly wrappers on top of your OS system libraries, but some functions handled by this libs (drawing special widgets, etc). The java and .NET is very similar, but this tools handled more functions and uses less system libraries (IMHO the .NET uses more system libs, the java uses less). But the .NET also realizable on other platforms: let see mono.
2005-09-22 12:43 amMr. Tan
well in order for .net to gain platform independence you have to go through the task of installing mono and making sure that mono supports your arch/OS. And what if you were developing in .net in windows, how is that compatible with mono. Unlike with java, you just throw in the jre (depending on the arch/os also). and your ready to go, sinced coding in jre in windows is more or less the same in linux and other COMMON arch/os.
I’d like to suggest that the Eiffel approach may represent a compelling alternative.
Any variable that’s effectively public (Eiffel doesn’t really have public/private/protected as they’re commonly known) is read-only externally.
For instance, in the case of arrays, they have a “count” feature which indicates the length of the array. Is this a special function which returns the value of some encapsulated variable? No. It’s the variable itself, but since I can’t modify it from outside of the object, that’s ok.
Perhaps a way of integrating this into a language like C# might be something like:
class MyClass
{
public readonly int Foo;
}
Which would allow:
MyClass bar = new MyClass();
Console.WriteLine(bar.Foo);
But not:
bar.Foo = 42;
I hate arguments against “syntactic sugar”. Foreach is syntactic sugar as are classes, properties and iterators. Hell, “for” is syntactic sugar for “while” but in all cases, the “syntactic” sugar prevents errors by making things more clear and less likely for a programmer to make a mistake.
Noone can seriously think that this:
obj.setValue(obj.GetValue() + obj.GetValue2());
is more clear than:
obj.Value = obj.Value + obj.Value2;
And then there’s iterators. Microsoft is (finally) moving C# into a more functional/declaractive model of programming which is an amazing move. It’ll be as revolutionary as industry wide the move to OOP because of Java. Iterators aren’t new by any benchmark but it’s quite impressive that someone like Microsoft would include them in their language.
How many lines of Java would it take to write this?
public IEnumerable<int> Filter<int>(IEnumerable<int> numbers, Predicate<int> accept)
{
foreach (int x in numbers)
{
if accept(x) yield return x;
}
}
public IEnumerable<int> AllIntegers()
{
for (int i = int.MinValue; i <= int.MaxValue;i++)
{
yield return i;
}
}
// Get even numbers
evenNumbers = Filter(AllIntegers(), x => x % 2 == 0);
// Get odd numbers
evenNumbers = Filter(AllIntegers(), x => x % 2 != 0);
The new LINQ stuff is like list comprehension in steriods. I don’t believe you’ll find anyone in the functional programming community who think that list comprehension is merely “syntactic sugar”.
With regards to properties and fields. I believe if might be a good idea to include a “property” attribute that will automatically hide a field and generate a property for it. That way, fields can be “upgraded” into properties without breaking the public interface.
something like:
[Property]
public int MyProperty;
I believe boo has an intrinsic attribute that can do something similar.
-
2005-09-22 9:14 amtummy
yeah, sure we should just go back to assembly so that everything’s clearer.
declarative programming and functional programming is the way of the future. Syntactic sugar reduces pages of error prone, commonly used patterns of manually written code into a couple of lines of declarative code will almost always a welcome addition imho.
2005-09-22 9:44 am
Syntactic sugar reduces pages of error prone, commonly used patterns of manually written code into a couple of lines of declarative code
In my experience the reduction is usually much smaller. A couple of pages to a couple of lines – two orders of magnitude improvement?
I agree that some syntactic sugar is needed at times for readability, but I just get concerned that too many features are being added too fast.
2005-09-22 10:23 amtummy
In my experience the reduction is usually much smaller. A couple of pages to a couple of lines – two orders of magnitude improvement?
Yes. Sometimes more. Look at my iterator example. Alternatively, try doing any equivalent to logical programming in java and get back to me about how many lines of code it takes…
I agree that some syntactic sugar is needed at times for readability, but I just get concerned that too many features are being added too fast.
Why? Features like iterators (continuations) and indeed, almost any declarative construct dramatically improve clarity in the code as well as reduce the amount of errors and lines you have to write. What’s wrong with that?
VL = Vendor Lockin
Yawn.
I’m wondering what Sun is going to do. They’ve always touted Java as a simple language, but as we know with Jav a 5.0 they’ve been paying attention what Microsoft has been doing with C#.
Sun is at a crossroad in regard to Java. Do they play catchup with C# game again, or do something different? IMHO, Sun should put a feature freeze on Java after Mustang comes out and start with a clean slate.
Now before Java fans get all huffy and puffy, I don’t mean ditch Java. Sun should continue to promote Java, port it to platforms where needed, make it rock-solid (a benefit of feature freeze), and maybe develop some libraries as needed as addons.
But Sun as a company needs to look at the future. Is dumbed down C++ with continually tacked on features really the road to go? Sun needs to leapfrog Microsoft. Sun has Fortress, but that’s more of a Fortran replacement, then a general purpose language.
Sun needs to look at Python, Ruby, Lisp, Haskell, Boo and a bunch of other languages, analyze what the future programming needs are going to be, and most importantly come up with something that developers can get excited about.
Let’s face it. Java is the COBOL of the 21st century. It never made it on the client because of various problems, and it probably never will. | https://www.osnews.com/story/11945/visual-basic-90-and-c-30-videos-and-info/ | CC-MAIN-2021-17 | refinedweb | 4,321 | 63.8 |
Participant
1944 Points
MVP
Feb 23, 2012 08:43 PM|tugberk_ugurlu_|LINK
I am unable to find the UpshotContex htmlhelper extension. In which namespace is it under?
Feb 25, 2012 04:49 AM|RikkiMo|LINK
Upshot is a javascript library, it can be found here:.
There is not much documentation yet, but there is a good example "Bigshelf" can be found here:
Participant
1944 Points
MVP
Feb 25, 2012 07:16 AM|tugberk_ugurlu_|LINK
Html.UpshotContext() is a htmlhelper class that steve sanderson have used on his talk. It is not related to javascript code.
It produces JavaScript code but this is not a javascript code.
Member
28 Points
Feb 27, 2012 10:40 AM|StijnLiesenborghs|LINK
Steven Sanderson explained in his SPA session at Techdays(Netherlands) that the current release of the nuget package didn't support all the code/topics he explained, like the (offline parts)
I suppose the Html.UpshotContext() htmlhelper will be available with the next update of the nuget package of ASP.net MVC 4 Beta (SPA). (Nugetpackage name: SinglePageApplication).
This will be available today or tomorrow.
Feb 27, 2012 01:00 PM|nadellas|LINK
This Link might help you for some inforamtion.
Thanks
Member
30 Points
Mar 15, 2012 09:43 AM|benaw|LINK
Make sure to use run the latest nuget for the SPA that shipped after MVC 4 beta.
Run this after creating the project for the newer scaffolding
Install-Package SinglePageApplication.CSharp or vb ver
You should see this in Index.cshtml
@(Html.UpshotContext(bufferChanges: true) .DataSource<MvcApplication8.Validation.Controllers.TaskController>(x => x.GetTodoItems()) .ClientMapping<TodoItem>("TodoItem"))
Mar 23, 2012 07:52 PM|mgleason|LINK
7 replies
Last post Mar 23, 2012 07:52 PM by mgleason | http://forums.asp.net/p/1773182/4852955.aspx?Re+Where+is+Html+UpshotContext+ | CC-MAIN-2014-42 | refinedweb | 286 | 65.32 |
Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.In order to participate you must be a registered DNNizen
I knew users can upload from editors. But it seems not right because all files are shown in the editor upload interface.
Is there any other upload module? Open source is better.
Thanks
How to deploy this control? where is it? I couldnt find it. that is what I want.
Thanks
You cannot deploy a control. You can use it in a module you have to write. It is called DnnFileUpload in the namespace DotNetNuke.Web.UI.WebControls.
If you are not familiar in programming, you can use the module I mentione above. Even if it is not the "newest" stuff and has not been touched for a while, it still works (but requires Flash).. | http://www.dnnsoftware.com/forums/threadid/534174/scope/posts/is-there-upload-module-for-dnn | CC-MAIN-2018-30 | refinedweb | 144 | 78.25 |
0
I am working thru the Wrox book: [U]Beginning Programming[/U], and need some advice on getting a simple program to compile. I have Vista and use the free Borland C++ compiler. After entering in a simple C++ code, I was not able to get it to compile. When I attempted to compile the code, I received an E2209 error, the compiler was unable to open the include file 'iostream.h' In an attempt to troubleshoot the errors, I made some changes as follows using info from this site:
A. Appended Environment Variables: 1. Opened Control Panel. 2. Navigated to System. 3. Clicked on "Advanced System Settings". 4. Clicked on the "Advanced" tab, to open the "System Properties" window. 5. Clicked on the "Environment Variables" button. 6. Highlighted the "Path" System variable (bottom). 7. Clicked on the "Edit" button. 8. Appended the line with ";C:\BORLAND\BCC55\BIN;". 9. Clicked OK (3 clicks) and exited the System Properties window. B. Set up the configuration files: 1. From the command prompt, I changed directory to "C:\BORLAND\BCC55\BIN" 2. Created the file BCC32.CFG. as follows: a) Typed "[B]edit bcc32.cfg[/B]" [Enter]. b) A blank window opened in the editor. c) Entered the 2 lines below into the blank window. [B]-I"c:\Borland\Bcc55\include" -L"c:\Borland\Bcc55\lib"[/B] d) Created ILINK32.CFG in the same manner as above. [B]-L"c:\Borland\Bcc55\lib"[/B] e) Saved the files and exited the command prompt. f) Restarted Windows. C. From Chapter 7 of Beginning Programming, I entered the following code into a text editor(EditPad Lite):
C++ code template
#include <iostream.h> void main() { //code goes here }
-
D. I saved the file as "Template.cpp" in C:\Progs. E. From the command prompt I entered the following: C:\borland\bcc55\bin\bcc32.exe C\Progs\Template.cpp F. The output was as follows:
Error:
C:\Users\Allen>c:\borland\bcc55\bin\bcc32.exe c:\progs\template.cpp Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland c:\progs\template.cpp: Error E2209 c:\progs\template.cpp 2: Unable to open include file 'iostream.h' *** 1 errors in Compile ***
-
G. I have searched for the error and can't find it. My configuration files are properly located at C:\Borland\BCC55\Bin. I have tried experimenting with the appending in the Environment Variables window. I entered iostream with and without the "h", and get the same result.
Thanks in advance if you can help me out with this.
Allen
Edited by mike_2000_17: Fixed formatting | https://www.daniweb.com/programming/software-development/threads/103648/beginner-s-question-unable-to-open-include-file | CC-MAIN-2017-09 | refinedweb | 432 | 62.64 |
setvbuf - assign buffering to a stream
#include <stdio.h> int setvbuf(FILE *stream, char *buf, int type, size_t size);
The setvbuf() function may be used after the stream pointed to by stream is associated with an open file but before any other operation is performed on the stream. The argument type determines how allocated by setvbuf(). The argument size specifies the size of the array. The contents of the array at any time are indeterminate.
For information about streams, see Standard I/O Streans.
Upon successful completion, setvbuf() returns 0. Otherwise, it returns a non-zero value if an invalid value is given for type or if the request cannot be honoured.
The setvbuf() function may fail if:
- [EBADF]
-.
fopen(), setbuf(), <stdio.h>.
Derived from Issue 1 of the SVID. | http://pubs.opengroup.org/onlinepubs/007908775/xsh/setvbuf.html | crawl-003 | refinedweb | 130 | 68.36 |
Random notes for working on the Net::OSCAR source: (*NOT* for people merely writing programs which *use* Net::OSCAR!) (This stuff is subject to change without notice.) -If an OSCAR/XML/Protocol.parsed-xml file is available, that will be used instead of Protocol.xml. This is a parsed version of the XML file; I generate this when do a Net::OSCAR release by running the xmlcache script. This way, the user doesn't need to have XML::Parser installed, or the whole expat library. So, if you want to play with Protocol.xml, make sure to remove Protocol.parsed-xml :) -We work with TLVs as hashes which treat their keys as numbers. To get one of these magic hashrefs, call tlv to get a blank one or: tlv(1 => "data", 2 => "other data"). encode_tlv($tlv) before sending it out over the wire. -For things that should usually be a number but should be presented to the user as a string, use dualvar(num, "string"). A lot of the things in OSCAR/Common.pm are dualvars. -Things in OSCAR/Common.pm that are easy to forget to update: EXPORT_TAGS Add something to EXPORT_TAGS all if you add a new thing. Things that should be visible to users of Net::OSCAR also go in EXPORT_TAGS standard. Be careful when naming things that will go in standard, since they'll be imported into the namespace of most programs which use Net::OSCAR. CONNTYPE_FOO Add one of these if you add something that requires a new connection type. Also add it to svcmap in OSCAR/Callbacks.pm. OSCAR_TOOLDATA This probably also needs to get updated if you add a new connection type, or maybe even a new family. BUDTYPES If you're using a new type, in the BLInternal sense of the word, put it in this ugly little array, padding it with "unknown N" if necessary. | https://metacpan.org/contributing-to/MATTHEWG/Net-OSCAR-1.925 | CC-MAIN-2019-51 | refinedweb | 314 | 75.1 |
In this tutorial we will learn how to tile an image so it repeats itself both vertically and horizontally the number of times we specify. We will do this using Python, OpenCV and numpy.
Introduction
In this tutorial we will learn how to tile an image so it repeats itself both vertically and horizontally the number of times we specify. We will do this using Python, OpenCV and numpy.
This tutorial was tested on Windows 8.1, using Python version 3.7.2 and OpenCV version 4.1.2.
Tiling a colored image
As usual, we will start by importing the modules we need. We will need numpy and cv2.
import numpy import cv2
After that we will read the image with the imread function from the cv2 module. This image will be returned as a ndarray, like we have seen in previous tutorials.
img = cv2.imread('C:/Users/N/Desktop/Test.jpg')
Once we have our image as a ndarray, we can use the tile function from the numpy module to do a tiling of our image horizontally and vertically.
In short, the tile function allows to construct a new ndarray by repeating the original array across its axes [1]. The function allows us to specify the number of repetitions along each axis [1].
In our case, we have read an image in the BGR format, which means that it has 3 dimensions: the height, the width and the three color channels of the image.
In our case, we want only the repetition to occur in the first and second axes (height and width) and that the third axis remains unchanged.
Note that concatenating an image only vertically or horizontally is a particular case where there is no repetition over one of these axis.
So, the tile function receives as first input the ndarray (our original image) and as second input a tuple where each element corresponds to the number of repetitions along that axis.
Looking into more detail to this second parameter, we have the following tuple format:
(nº of repetitions vertically, nº of repetitions horizontally, 1)
Take in consideration that the value 1 means no repetition, just the original values across that axis.
So, if we want the image to be repeated 2 times vertically and 3 times horizontally, we have the following tuple:
(2,3,1)
Putting all together with the tile function invocation, we have:
tile = numpy.tile(img,(2,3,1));
Note: The tile function can be generically used to work with ndarrays, which means it is not an image processing dedicated function and it can be used outside of this scope.
To finalize, we will display the tiled image in a window.
cv2.imshow('Tile', tile) cv2.waitKey(0) cv2.destroyAllWindows()
The final code can be seen below.
import numpy import cv2 img = cv2.imread('C:/Users/N/Desktop/Test.jpg') tile = numpy.tile(img,(2,3,1)); cv2.imshow('Tile', tile) cv2.waitKey(0) cv2.destroyAllWindows()
To test the code, simply run it in an environment of your choice. In my case I’m running it on IDLE, a Python IDE.
Upon running the code, you should obtain a result similar to figure 1. As can be seen, the original image was tilled both vertically and horizontally, as expected.
Just as a note, if you wanted to tile the image 3 times only horizontally or only vertically, you could use the following:
tileHorizontally = numpy.tile(img,(1,3,1)) tileVertically = numpy.tile(img,(3,1,1))
Tilling a grey scale image
As mentioned in the previous section, since we were working with a BGR image, then we had to specify the repetition over the three axis, even if there was no need to repeat anything in the third dimension.
In case we are working with an image in grey scale, the the corresponding ndarray only has two dimensions. Consequently, when calling the tile function, the second argument (the repetitions tuple) should only have two entries:
(nº of repetitions vertically, nº of repetitions horizontally)
If mistakenly we add the third parameter with the value 1 to the tuple, then a new axis will be prepended to the resulting ndarray [1], which will give wrong results when we try to display it as an image.
Below you can see the full code to do the tiling procedure to a gray scale image:
import numpy import cv2 img = cv2.imread('C:/Users/N/Desktop/Test.jpg') gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) tile = numpy.tile(gray,(2,2)) cv2.imshow('Tile', tile) cv2.waitKey(0) cv2.destroyAllWindows()
If you run the previous code, you should get an output similar to figure 2.
References
[1] | https://techtutorialsx.com/2020/02/23/python-opencv-image-tiling/?shared=email&msg=fail | CC-MAIN-2020-34 | refinedweb | 779 | 53.92 |
In modern application environments we will encounter JSON (JavaScript Object Notation) as the preferred file format for data-interchange. Many APIs and files are delivered in JSON format. Working with JSON format could potentially be challenging, especially if you are new to it. It is easy to get thrown by values that are variable length lists or values that are dictionaries (nested objects). So the three key things I want to cover in this post are:
- The basics of the JSON and how it compares to a Python dictionary
- Dealing with values that are lists (including variable length lists)
- Dealing with nested objects (including where keys differ)
There will potentially be many opportunities to improve the code. Please let me know or comment so that I can learn in the process.
The JSON format is best understood by comparing it to a Python dictionary. Be aware though that the JSON format (rules for data representation in text format) only appears similar to the Python dictionary (a data type that supports add, delete, sort, etc).
Python dictionaries
Dictionaries consist of key: value pairs separated by a comma and enclosed inside braces. The value may be of type string, number, boolean, list or object (dictionary).
string_dict = {"product": "Power BI"} number_dict = {"year": 2015} boolean_dict = {"free": True} array_dict = {"paid": ["pro", "premium"]} object_dict = {"price": {"pro": "$10"} } mydict = {"product": "Power BI", "year": 2015, "free": True, "paid": ["pro", "premium"], "cheapest": {"pro": "$10"}}
To access the values we reference the keys:
Note how the second example combines a key with a list index, and the third example combines the key for the outer object with the key of the nested object.
List of dictionaries
We can also create an array (list) of dictionaries:
dict_array = [ {"product": "Power BI", "year": 2015, "free": True, "versions": ["free", "pro", "premium"], "cheapestpaid": {"pro": "$10"}}, {"product": "Tableau", "year": 2004, "free": False, "versions": ["creator", "explorer", "viewer"], "cheapestpaid": {"creator": "$70"}}, {"product": "QlikSense", "year": 2015, "free": True, "versions": ["cloudbasic", "cloudbusiness", "desktop", "enterprise"], "cheapestpaid": {"cloudbusiness": "$15"}} ]
We can reference a specific array item by its index, then the dictionary key as follows:
Here the list index precedes the dictionary key. Remember that the list index offset is 0.
Creating a JSON file from a dictionary
First we convert the dictionary to a JSON string using the built in json package. The json.dumps function converts a dictionary into JSON encoded format. Add the following to the code above:
import json print(dict_array) json.dumps(dict_array)
Compare the output of the dictionary and the JSON encoded string. The appearance is almost identical. The dictionary displays the key/value pairs in single quotes, while the JSON string displays the key/value pairs in double quotes and the entire string in single quotes.
Now we can write the JSON string to a file. Here we use json.dump (without the s) which allows us to write the file rather than a unicode string.
with open('d:\\data\\json\\data.json', 'w') as outfile: json.dump(dict_array, outfile, indent=4)
The indent=4 parameter produces a pretty json layout i.e. human readable format.
Load the JSON file
In the same manner that we wrote the JSON file, we can read the file using the json.load function. At this point the file content is loaded as a list of dictionaries.
with open('d:\\data\\json\\data.json') as json_file: dict_lst = json.load(json_file)
Adding the dictionary to a dataframe
import pandas df = pandas.DataFrame.from_dict(dict_lst)
From the output we can see that we still need to unpack the list and dictionary columns.
One of the methods provided by Pandas is json_normalize. This works well for nested columns with the same keys … but not so well for our case where the keys differ.
The dictionary you wish you got
Here is a simple example where the keys are the same:
mydict = [{"company": "ABC", "location": {"province": "Gauteng", "city": "Sandton" }}, {"company": "XYZ", "location": {"province": "Western Cape", "city": "Cape Town" }}] import pandas pandas.DataFrame.from_dict(mydict) from pandas.io.json import json_normalize json_normalize(mydict)
Back to the real world
In our example, our keys dont match across dictionaries, so the result is not great.
from pandas.io.json import json_normalize json_normalize(dict_lst)
Because the keys differ they are split across different columns. Also the list column is not handled. Lets use a different technique to handle the list column. Pandas apply allows us to apply operations across dataframes (rows/columns). Here we use Pandas Series to create a column for each list item.
import pandas df = pandas.DataFrame.from_dict(dict_lst) df2 = df['versions'].apply(pandas.Series)
The resulting dataframe can be concatenated with the existing one as follows:
df3 = pandas.concat([df[:], df2[:]], axis=1)
So we still have to deal with the dictionary column. We will use dataframe methods (melt, merge, drop) that were covered in previous posts, along with some new methods. I’ve taken a different approach here by providing all the steps with comments and then a visual that shows the output at each step.
import pandas df = pandas.DataFrame.from_dict(dict_lst) #split the versions list column into individual columns df1 = df['versions'].apply(pandas.Series) #concatenate the original dataframe with the individual version columns df2 = pandas.concat([df[:], df1[:]], axis=1) #split the dictionary column into individual columns df3 = pandas.DataFrame(df2['cheapestpaid'].values.tolist(), index=df2.index) #add the product column (to create a lookup column) df4 = pandas.concat([df['product'], df3[:]], axis=1) #melt (unpivot) the value columns df5 = pandas.melt(df4, id_vars=['product'], value_vars=['cloudbusiness','creator','pro'], var_name='cheapest') #drop NaN values to finalise the lookup table df6 = df5.dropna() #merge with the lookup table df7 = pandas.merge(df2, df6, on='product', how='outer') #drop unwanted columns df8 = df7.drop(['cheapestpaid','versions'], axis=1)
So the result is not the simplest of code, however it is not that complex either. We solved the entire problem using Pandas. What I have not tested is how we would solve this without Python in Power BI (visual Query Editor or M). It would also be interesting to compare solution complexity. In my case, I already had these Python patterns, so it was a matter of script re-use.
In the next post I want to explore methods of traversing and reshaping the data without Pandas and dataframes. It will provide better understanding of the JSON format and expand on the possibilities with Python script.
[…] previous post might have left you feeling that its a bit too complicated and a bit too abstract. Dont worry, the […]
Great article once again. A quick side note: the reason we reference a List item by it’s position e.g. MyList[0] and a Dictionary item by it’s key e.g. myDict[‘Foo’] is that a List is an ordered collection of items (duplicates allowed) and a Dictionary is an unordered collection of items (with no duplicates allowed).
Looking forward to the next round; as always, thanks for sharing.
[…] Loading JSON … it looks simple … Part 1 (@ToufiqAbrahams) […]
[…] select the appropriate techniques to handle the JSON data. Most of these techniques were covered in part 1 and part 2 of this […] | https://dataideas.blog/2018/10/09/loading-json-it-looks-simple-part-1/comment-page-1/ | CC-MAIN-2019-35 | refinedweb | 1,187 | 55.64 |
Dygma Raise Keyboard Reflections Part 1
Introduction
I have been using Microsoft Natural Keyboard 4000 for several years and it has served my programming and writing needs pretty well with my Ubuntu laptop
.Xkeymap configurations (more about that later). But last spring I followed Koodiklinikka Slack’s “nappaimistot” (“keyboards” in English) channel in order to read experiences regarding mechanical keyboards. There I read some experiences regarding the Dygma Raise Keyboard. I ordered the Dygma Raise keyboard while the company was manufacturing the second batch of the keyboard. I ordered the keyboard in May and I got the keyboard a couple of days ago. Now that I have spent a couple of days configuring the keyboard and using it I thought that it might be beneficial for other programmers to write a bit about my experiences regarding the Dygma Raise - because I fell in love with it immediately.
Build Quality
The build quality of the Dygma Raise Keyboard seems to be really good. The chassis is very rigid and sturdy. All keys feel very consistent and there is an overall feeling of premium quality when using the keyboard.
Ergonomics
You can split the keyboard into two halves and place the halves on your table as you wish. I keep some space between the halves and also have a small angle between the halves so that my shoulders and wrists are in a pretty natural position on my table. I also have a large elbow support on my table. All these together provide pretty good ergonomics for my programming. Not to talk about the ergonomics regarding the key presses but more about that in the following chapters. Dygma provides in its website a more detailed description regarding the Dygma Raise Ergonomics.
Led Lights
I haven’t found any real use for the various colors — I do programming. I type with all my ten fingers — I took a typing lesson in the Finnish Elementary school about 40 years ago and has been typing with 10 fingers ever since — so, I don’t look at my keyboard at all when typing. But the colors are kind of nice anyway. Maybe gamers use these colors for some real tasks or they just “look cool”, I don’t know. Anyway, I don’t mind the colors. I did use the Bezecor to categorize certain buttons with consistent colors (see the two pictures below). And it is also kind of nice that the
Shift to 1 button also changes the color in the frame of the halves - a visual aid that we are now in the next layer.
Layout
One of the most important reasons to buy Dygma Raise was that I could order it with the Nordic layout. There are other split keyboards in the market but some of them provided just
ANSI layout, and the rest didn’t provide the kind of programmability of the keyboard like Dygma Raise. The keyboard layout itself is really important to me. There are certain special characters in the Nordic languages (e.g.
Ä and
Ö) and I want those keys to be in their right places so that I can write Finnish text fluently both using the laptop keyboard and my external keyboard and I don’t need to remember that those letters are in different positions in different keyboards. There are many different ANSI and ISO layouts available for the Dygma Raise - consult the Dygma Raise website for the options.
Switches
Dygma Raise is a mechanical keyboard and you can order the kind of mechanical switches you like. Dygma Raise is my first mechanical keyboard for recent years so I ordered rather standard switches not to have too extreme experience to start with:
Cherry MX Brown. Dygma Raise provides a good introduction to the mechanical switches - I really recommend reading it before placing the order for your Dygma Raise. All Dygma Raise switches are swappable so you can change the switches later on if you think that you want to experiment with different switches. I kind of like the “clicky” touch of the
Cherry MX Brown switches but I might next try a bit “lighter” touch (but with a tactile feeling with a clear click sound).
My Linux Keymap
Before understanding how I configured Dygma Raise I need to tell the reader a bit about my Linux key mapping. For a programmer, the
CapsLock key is a totally useless key. In the Nordic layout the various parentheses (
{,
[,
[,
}) are in the first row behind
7,
8,
9 and
0 keys when you press
Alt-Gr key at the same time. The problem is that this
Alt-Gr key is in a really awkward position in the last row behind your right thumb - practically impossible to press this
Alt-Gr and
7,
8,
9 and
0 keys without getting a Carpal Tunnel Syndrome in your wrists after a few years. Therefore many Nordic programmers tend to configure these special parentheses in new positions. My solution was to keep the special character keys where they are but to configure
CapsLock key as
Alt-Gr key since hitting the
CapsLock key with my left little finger and at the same time hitting
7,
8,
9 and
0 keys with my right hand fingers to produce
{,
[,
[,
} was relatively easy. Since I could now configure keys with
CapsLock for special functions, I also configured
I,
J,
K and
L keys to be arrow keys with
CapsLock,
D to be delete with
CapsLock (as
Ctrl+
D is delete in Emacs) etc.
A screenshot regarding some of these configurations (
.Xkeymap file):
Configuring Dygma Raise: The Bazecor Software
Ok, let’s go back to Dygma Raise and how my Linux Keymap works now with Dygma Raise. It turned out that Linux Keymap and Dygma Raise is a match made in heaven.
The configurability of the Dygma Raise keyboard is just superb. This is something that I’m just beginning to realize after configuring the keyboard for a couple of days. You can use your imagination as much as you like and it seems that Dygma does not restrict you in any way.
Every key is programmable. And there are ten layers and in all of those layers, you can program every key or configure the key to be “transparent” — meaning it will function as the key in the previous layer. I have configured two layers using a rule of thumb that I want all special characters to be as near the base row (
ASDF &
JKLÖ) where I keep my fingers while resting.
One very neat feature is also that there are eight “thumb keys” instead of one big spacebar. You really should give some thought on how to use these thumb keys since they can be really powerful. Let’s start with the thumb keys. Below you can see my Layer 0 configuration in the Bazecor application:
I have played classical guitar some 20 years and now that I look at that picture I realize something regarding the hotkeys I tend to use. Like playing the guitar one has different functions for the left hand and for the right hand: left hand fingers press the strings in various positions on the guitar neck, and right hand fingers pick the strings. The same way I tend to use my keyboard: I press some combination of the
Shift,
Ctrl,
Alt and
CapsLock (remember: my
CapsLock is the
Alt-Gr key) with my left hand fingers, and then I click some key on the right side of the keyboard with my right hand fingers. Therefore I configured my new Dygma Raise so that I have all relevant modifiers in the lefthand side four thumb keys:
Alt,
Shift,
Ctrl and
Shift-to-1. Some examples of how I use these combinations may shed some light to the importance of these new left hand side thumb keys. I program Clojure and I use either IntelliJ IDEA with excellent Cursive plugin or Emacs editor with Cider plugin (mostly IDEA/Cursive, though). In Clojure you program quite a lot with REPL and to make the Clojure programming workflow fluent one needs good hotkeys e.g. to reload stuff into the REPL, send namespace to the REPL for evaluation, evaluate certain S-expression in the Clojure code or edit the code, e.g. kill S-expression, slurp/barf, etc. I’m not going to explain the meaning of those manipulations but let’s just say that I do a lot of them when programming Clojure and there needs to be fast hotkeys for them. Some examples of those hotkeys:
- Kill text from cursor position till the end of line (Emacs kill):
Ctrl+
K. Easy, now I don’t stretch my left hand little finger to the
Ctrlkey: I have
Ctrlas a thumb key on both sides.
- Kill S-expression in Clojure code:
Shift+
Ctrl+
K. Adding
Shiftsince it is logical because it´s kind of
killlike the previous one. Now very easy with Dygma Raise: Just press with left hand thumb the lower thumb keys (
Left Shiftand
Left Ctrl- at the same time) and with right hand middle finger press
K. This used to be a bit awkward before Dygma: I had to press the left side
Shiftand
Ctrlkeys with my left hand little finger…
- Send Clojure form for evaluation to REPL:
Alt+
L: Now very easy:
Left Altwith left hand thumb and
Lwith right hand ring finger.
- Move cursor to right:
CapsLock+
L(remember:
CapsLockis
Alt-Grand I have configured
I,
J,
Kand
Las arrow keys).
- Because move the cursor to right is
CapsLock+
Lit is logical that Slurping right is
CapsLock+
Alt+
L: easy, left hand: just press
Altwith thumb and
CapsLockwith little finger.
- Send text to Slack:
Ctrl+
Enter: Now very easy: left hand thumb and right hand thumb in the lower thumb keys.
And so on, and so on… I could write a whole series of blog posts regarding these hotkeys — I have a bunch of them for various IDEs, editors, tools, and terminals, but I guess you got the point. I now realize that I play my keyboard a bit like the guitar: both hands tend to have certain functions: I use modifiers with my left hand and give the actual commands with my right hand. (With some exceptions, like
CapsLock+D for delete, but that´s because it is logical to do so, since
Ctrl+
D is delete in emacs and
CapsLock and
D are so close to each other that it is easy to do so…).
Ok, let’s move on. What’s that Orange
Shift to 1 thumb button in the left upper row? It’s the beauty of Dygma Raise: You can shift to the next layer when pressing this key (you can also configure some key so that you move to the next layer instead of activating it only when this key is pressed, but it is better for my personal workflow to have it as “shift”). Let’s see what´s there in the
Layer 1:
In this layer I have some Media controllers on the left side just to make playing Spotify easier and also to control volume in meetings: I.e. I press the
Shift to 1 with my left hand side thumb and then some media buttons also with my left hand side. This is a bit awkward since I have to use the same hand but as a guitarist, I have pretty flexible fingers and I don’t use these buttons that often. But then the actual beef: Why do I have the numbers on the right hand side in two rows?. The actual reason is not the numbers per se but what’s behind the numbers. The most important row in this layer is the resting position row
J,
K,
L,
Ö =>
8,
9,
0,
+. The reason is that I have mapped the various parentheses behind these numbers, for example:
{ =>
Alt-Gr+
7, and because
Alt-Gr is
Caps-Lock it is
Caps-Lock+
7, and because in
Layer 0 I can shift to the next
Layer 1 with the left hand side button key, and the number
7 is not in the upper row in this layer but in the resting row, it is very easy to get
{ =>
Shift to 1+
CapsLock with my left hand fingers (thumb and little finger, I use this very often so it is very easy for me) +
H (layer 0) (which is
7 in layer 1). Therefore:
{=>
Shift to 1+
CapsLock+
H
[=>
Shift to 1+
CapsLock+
J
]=>
Shift to 1+
CapsLock+
K
}=>
Shift to 1+
CapsLock+
L
\=>
Shift to 1+
CapsLock+
Ö
(=>
Shift to 1+
Shift+
J
)=>
Shift to 1+
Shift+
K
Every programmer knows that various parentheses are very much used in any programming language, and Clojure is no exception. On the contrary, you use parentheses very much in Clojure programming: every S-expression needs to be in parenthesis, all literal vectors are inside brackets, all literal maps are inside curly braces, etc. Now with Dygma, I can write all of these parentheses in my right hand resting position.
How about the upper number row with smaller numbers. The special characters:
!=>
Shift to 1+
Shift+
U
"=>
Shift to 1+
Shift+
I
#=>
Shift to 1+
Shift+
O
%=>
Shift to 1+
Shift+
Å
&=>
Shift to 1+
Shift+
~
@=>
Shift to 1+
CapsLock+
I
So, just the same characters behind those numbers in the Nordic keyboard layout but now just added to the right hand side near the resting row for easier access.
And
Esc is now
Shift to 1+
CapsLock+
Y, what a relief. Since e.g. in IntelliJ IDEA when going to the embedded terminal I haven’t found any other way to return to the editor than clicking
Esc twice and
Esc used to be so far away… not anymore with Dygma.
When I read this article for proof-reading purposes I also realized that I tend to prefer combinations with near the resting positions (like the
Shift to 1+
CapsLock+
Y I told earlier) over just one keypress but farther away (like
Esc in the upper left side of the keyboard). This is personal, of course. Maybe the reason is that I write with all 10 fingers and it is faster to write when you don’t have to stretch your fingers far away.
What Next?
Who knows? Maybe I realize that there is a way to make my new Dygma Keyboard even more ergonomic with some new astounding realization how to configure it using the Bazecor.
One thing that I have been thinking about with the split keyboard is to use a trackpad instead of the mouse — I could use my thumbs with a trackpad positioned between the keyboard halves now that I have space for it there — thanks to Dygma Raise split keyboard.
Conclusions
If you are a programmer and you are looking for a top-quality mechanical keyboard with absolute configurability — look no further: you want Dygma Raise. With Dygma Raise your imagination is your limit on how you can configure your new keyboard. | https://kari-marttila.medium.com/dygma-raise-keyboard-reflections-part-1-2af44134b27?readmore=1&source=---------8---------------------------- | CC-MAIN-2021-21 | refinedweb | 2,507 | 63.43 |
UNKNOWN
A full-featured Python client for the Philips Hue lighting system.
Installation using pip (recommended):
pip install python-hue-client
Installation using easy_install:
easy_install python-hue-client
Documentation can be found at
This library is modelled roughly on concepts borrowed from Django’s ORM. There are some examples available in GitHub, but let’s dive in with an example that list all the available lights:
from pprint import pprint from hueclient.api import hue_api from hueclient.models.light import Light if __name__ == '__main__': hue_api.authenticate_interactive(app_name='List Lights Example') for light in Light.objects.all(): print( "Light {id} is named '{name}' and is {onoff} (brightness: {brightness})".format( id=light.id, name=light.name, onoff='on' if light.state.on else 'off', brightness=light.state.brightness, ) )
Here is an example which blinks a specific light:
from time import sleep from hueclient.api import hue_api from hueclient.models.light import Light # examples/blink_light.py if __name__ == '__main__': # Make sure we are authenticated with the hue bridge. # You will be prompted if no username is found in ~/.python_hue hue_api.authenticate_interactive(app_name='Blink Light Example') # Get light ID 1 light = Light.objects.get(id=1) # Loop forever while True: # Flip the on state from on -> off / off -> on light.state.on = not light.state.on # Save the state back to the bridge # (Note: required in order for your changes to take effect) light.state.save() # Pause here for a couple of seconds to create a slow blink # (Note: It is important to sleep here at least a little to # avoid overloading the bridge with API requests) sleep(2)
For more information see the full documentation.
Developed by Adam Charnock, contributions very welcome!
python-hue-client is packaged using seed.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages. | https://pypi.org/project/python-hue-client/ | CC-MAIN-2017-26 | refinedweb | 305 | 60.11 |
getenv - get value of an environment variable
#include <stdlib.h> char *getenv(const char *name);
The getenv() function searches the environment list for a string of the form "name=value", and returns a pointer to a string containing the value for the specified name. If the specified name cannot be found, a null pointer is returned. The string pointed to must not be modified by the application, but may be overwritten by a subsequent call to getenv() or putenv() but will not be overwritten by a call to any other function in this document.
This interface need not be reentrant.
Upon successful completion, getenv() returns a pointer to a string containing the value for the specified name. If the specified name cannot be found a null pointer is returned.
The return value from getenv() may point to static data which may be overwritten by subsequent calls to getenv() or putenv().
No errors are defined.
None.
None.
None.
exec, putenv(), <stdlib.h>, the XBD specification, Environment Variables .
Derived from Issue 1 of the SVID. | http://pubs.opengroup.org/onlinepubs/7990989775/xsh/getenv.html | CC-MAIN-2015-14 | refinedweb | 173 | 65.62 |
The Anti-Thesaurus: Unwords For Web Searches 148
Nicholas Carroll writes: ."
Sounds Good But... (Score:3, Insightful)
Re:Sounds Good But... (Score:2, Interesting)
On the other hand, any potential customer who find the page as a result of a broader match than warranted by the page might also remeber the site as one that doesn't have what he needs. I don't claim to understand mainstream consumerism, but in my professional capacity, I tend to avoid companies that tries to make a followup sale on a completely unrelated issue.
Re:Sounds Good But... (Score:1)
> to manually decrease the relevance of their pages
> for specific search terms and phrases."
Last time I checked, the problem was stopping XXX BRITNEY NIPSLIP from turning up as the result to "+car +transmission +repair".
Re:Sounds Good But... (Score:4, Interesting)
Re:Sounds Good But... (Score:1)
Re:Sounds Good But... (Score:2, Insightful)
Re:Sounds Good But... (Score:1)
We've got some real winners modding around here as of late... *sigh*
Re:Sounds Good But... (Score:1)
The only thing to do about it is to metamoderate and make sure lame behavior like modding your parent post "Flamebait" get's marked "Unfair"
OT: Re:Sounds Good But... (Score:1)
Maybe this is only an Opera issue?
Re:Sounds Good But... (Score:3, Insightful)
Re:Sounds Good But..... Useful? (Score:1)
Oh you capitalist-thinkers. Spare a thought for Geocities/ Hypermart users who have to start shelling out money if they cross a certain hit threshold.
How about this? (Score:4, Insightful)
Hell, an engine that did that would almost be useful.
Re:How about this? (Score:3, Funny)
You can guess why: Search engine developers buy copies of the same software, learn how to recognize its output, and then demote your site or block it altogether when they spot that pattern in your pages.
no hard "this site was banned" but it seems there are some who do demote/block if they catch you putting garbage in your keyword list.
PS if any porn site puts 'alan turing' in their keywords I would actually want to go there - shows some imagination to say the least, gotta give them props for that...
Re:How about this? (Score:4, Informative)
Disclaimer: I'm in no way associated with Google.
Re:Google Goggles (Score:1)
Their sites would have little initial ratings. As soon as no one links to them from outside, their total rating pool remains low. So, to rise actually high, you have to attract other popular sites. Combined with a shit filter (bad words decrease ratings), this should sort uglies away fairly well.
You know this is going to happen (Score:4, Funny)
Re:You know this is going to happen (Score:2)
You are right. Any system where the webmasters have an impact on search relevance will be beaten. Hey they even found a way to beat google. Just create a fake front end that looks serious with one button "naked pictures". The system he describes works best for altavista (6 months ago) like systems.
Even
Re:You know this is going to happen (Score:1)
important distinction.
sorry (Score:1)
Re:You know this is going to happen (Score:1)
I search for 'slash' and 'dot' and end up *here*?! (Score:3, Interesting)
Google seems to do a good enough job of filtering out irrelevant responses as it is.
Re:I search for 'slash' and 'dot' and end up *here (Score:1)
Proposal won't work: No incentive! (Score:1, Redundant)
Okay, pretend I'm a webmaster. What's my incentive to have my page show up LESS in anyone's search results?!
If someone didn't want my site, why do I care if they get it? And if someone wants my site, I don't want to take any chance with an "anti-thesaurus" that might end up excluding my site!
Re:Proposal won't work: No incentive! (Score:5, Interesting)
From: frankie3327@aol.com
To: staff@cs.here.edu
Subject: help!
i have a lexmark 4590 and it wont print in color.
it only makes streaks. also the paper always
jams. how do i fix it? please reply soon!
The senders never had any connection to the college or the department. We'd reply telling them we had no idea what they were talking about, and that they should seek help elsewhere. It was rather annoying.
We eventually figured it out. The department web site maintains a collection of help documents for users of the systems. One of them talked about how to use the department's printers, what to do if you have trouble, etc. At the bottom it listed staff@cs.here.edu as the contact address for the site.
You've probably guessed it by now. That page came up as one of the top few hits when you searched for "printing" on one of the major search engines (I forget which one). Apparently lusers would find this page, notice that it didn't answer their question, but latch on to the staff email address at the bottom, as if we were an organization dedicated to helping people worldwide with their printers. Furrfu!
I think we reworded the page to emphasize that it only applied to the college, and we haven't received any more emails lately. But if we could have kept search engines from returning it, that would have been even better. Since in our case the page was intended for internal use, we don't care whether anyone can find it from the Internet. Our real users know where to look for it.
So in answer to your question: When a search engine returns a page that doesn't answer the user's question, the user will often complain to the webmaster. That's a clear incentive to the webmaster not to have the page show up where it's not relevant. Also, it's not the goal of every site simply to be read by millions of people; some would rather concentrate on those to whom it's useful.
Re:Proposal won't work: No incentive! (Score:4, Informative) [robotstxt.org]
robots.txt ? (Score:3, Informative)
if more people used robots.txt, a lot of 'only useful to internal users' sites would drop right off the engines, leaving relevant results for the rest of the world...
just a thought......
Re:robots.txt ? (Score:1, Interesting)
Re:robots.txt ? (Score:1)
j
Re:robots.txt ? (Score:2)
And, if the admin had a clue, a simple "WTF did you get my addy?" emailed to joe6paq@aol.com would probably have explained everything.
Re:Proposal won't work: No incentive! (Score:1)
Saving bandwidth, perhaps? For a hobbyist's website hosted cheaply (and thus having a low transfer limit), it might be quite desirable not to attract too many visitors who aren't actually interested in the site's contents. Of course, that's not a very common scenario, good search engines will give such sites a low priority anyway because they're not linked to very often.
Irrelevant visitors are often the best (Score:1, Interesting)
CPM ads pay the same regardless of relevence. CPC ads tend to pay *even more* for visitors who aren't interested in your content, since they're more likely to click on the ad on the way out.
mod_rewrite is your friend (Score:4, Insightful)
Re:mod_rewrite is your friend (Score:2)
Can you point me to a good howto?
Re:mod_rewrite is your friend (Score:1)
Re:mod_rewrite is your friend (Score:1)
Yes, you can somewhat stop people from putting image requests to your server in their pages, but you can't stop people from snarfing your images.
So now they have my images, and put them on their own site, which doesn't cost me any bandwidth. Sounds like a good thing to me.
The reason to stop them linking to images on my server is to save me bandwidth, not to prevent people from stealing my images. (That's what copyright is for.
:-)
mod_rewrite reference, examples (Score:3, Informative)
Well some docs are here [apache.org], and the mod_rewrite reference is here [apache.org].
Here is a goofy example that does a redirect back to their google query, except with the word "porn" appended to it. As an added bonus, it only does it when the clock's seconds are an even number. (Or do the same test to the last digit of their IP address). Replace the plus sign before "porn" with about 100 plus signs and they won't see the addition because each plus sign becomes a space. The "%1" refers to their original query.
Here's another one that checks the user-agent for an URL, and then redirects to it. This keeps most spiders and stuff off your pages since they usually put their URLs in the User-Agent:
Anything you can think of is possible. I think you can even hook it into external scripts.
Re:mod_rewrite reference, examples (Score:1)
This keeps most spiders and stuff off your pages since they usually put their URLs in the User-Agent:
Why not just use robots.txt? Either way you're relying on the spider operator to write their bots in a particular way.
A bit negative? (Score:2, Interesting)
After all, if you describe your site, a good search engines will use this information well (so you shouldn't get too many erroneous hits). However, if you list your non-words, a bad search engines will just see this list and treat them as keywords!
Turning lemons into lemonade (Score:2, Interesting)
Please forgive me for mentioning capitalism on Slashdot, but a website that receives many misdirected hits is perfect for targeted marketing. Think of the possibilities: if your web site is getting mistaken hits for "victor mousetraps," sell banner ads for "Revenge" brand traps and make a killing on the click-throughs. With a little clever Perl scripting, determine which banner ad to show based on which set of "wrong keywords" show up in the referer. Companies will pay a lot of money for accurately targeted advertisements. Selling these ads would undoubtedly pay the whole bandwidth bill and probably make a profit to boot.
So no, unwords are not necessary. Unless you're running a website off a freebie
~wally
Re:Turning lemons into lemonade (Score:1)
At first we just allowed our out-of-the-box search engine package to index our catalog, but the problem we kept running into was the relavance of the results (for example returning VCR stands ahead of an actual VCR when the search was "VCR".)
So to solve this our merchandizers manually added keywords to each group of products that amounted to a thesaurus. We coded the indexing to place a weighted value for these keywords ahead of the title words, and those ahead of body text.
It's actually a bigger problem than most geeks realize (as our CEO pointed out.) We were trying to return not just pages that corresponded to the search string, but to the intent of the user. That takes a little more thought on the part of the search engine coders and the implementers.
Re:Turning lemons into lemonade (Score:1)
Well, speaking personally, I don't want people arriving at my web site unless they're actually looking for the content that's on it. That's because I pay for bandwidth.
I also know plenty of people who have web sites for their friends, but have ended up being pestered by online perverts after they ended up in search engine listings.
Re:Turning lemons into lemonade (Score:2)
Me, definitely.
I have a section of my site related to Steve Albini's bands, including Big Black [petdance.com]. I get tons of hits looking for things like:
and my favorite...
Re:Turning lemons into lemonade (Score:2)
Re:Turning lemons into lemonade (Score:1)
Why would anyone want to pay for their bandwidth if they could easily get commercial sponsors to pay for it?
~wally
Bad planning (Score:5, Funny)
You're going to have to excuse me... (Score:1, Flamebait)
The people whose web pages are being thrusted to the top of the query lists are the people who are polluting the metadata and other tags for the sole purpose of getting their sites higher in the search lists
So lemmy get this straight: you want all good and honest people (who aren't causing the problem in the first place) to opt-out of common searches (which they'd never want to do), and this will thus remove the legitimate entries from the pool of queries, returning an even more polluted list from your search engine.
am I missing something here?
Although there are a few people who would be helped by removing absolutely irrelivant queries, the vast majority would actually suffer if they used this.
Re:You're going to have to excuse me... (Score:2)
The US Gov't Won't Like It (Score:1)
Better Metadata (Score:4, Interesting)
Marking up pages with information about the meaning of the terms on them is the main thrust of the work on semantic web - see [daml.org] (for DAML - the DARPA Agent Markup Language), [semanticweb.org] (One of the main information sources) and finally the new W3C activity on the subject: [w3.org].
How far, how fast it will go is another matter but there's certainly a lot of interest in creating a more "machine readable" web.
Re:Better Metadata (Score:1)
It seems to be a chicken-and-egg situation at the moment -- I'm doing quite a lot of work producing Dublin Core [dublincore.org] metadata in XHTML and RDF format for a content management system, however no search engines yet support the indexing or searching of this metedata.
When they do then a proposal like this might make (some) sense.
Re:Better Metadata (Score:2)
Re:Better Metadata (Score:2)
The real problem is at the other side, when the user fires Google and enters the standard 2-4 query terms "bank australia". There is a lot less information there for a computer to decide that the user is looking for a bank in Australia.
Metadata on the web pages is pretty much useless for understanding what the user wanted.
search issues (Score:2, Interesting)
The main power technique, at least on google, is utilizing quotes and AND/OR to limit search results. Rather than spewing a line of text, enclosing specific "phrases" often gives more accurate results.
Then again, I have been able to simply cut n' paste error messages into the groups.google.com form and immediately receive accurate, useful hits. I think that though the internet and webpages and generally disorganized and uncentralized, an outside entity can impose order given enough bandwidth, time, energy and intelligence. In the future, web services, probably based on CORBA and SOAP, will allow sites to return messages to searchers or indexing services, thus doing away with a lot of the mystery in the current system.
All that said, I have had excellent luck with google finding about 95% of all the information I have searched for in the past couple months, showing that a well-written spider and intelligent classification and rating can circumvent the problem of so much untagged, nebulous information.
The internet is something like the world's largest library where anyone can insert a book and random organizers may (if they wish!) go through and make lists, hashes and indexes of the information for their own card catalogs. Right now, each search service maintains its own separate list! The crawler is like a super-fast librarian who can puruse the book. The coming paradigm will be fewer, more accurate and useful catalogs along with books that "insert themselves" into these schemes intelligently and discretely after a validation of informational content.
Re:search issues (Score:1)
Once you've thrown out the 'click here' and 'this link' junk, this is far more reliable than using meta tags, and often more reliable than looking for keywords within the page itself.
Re:search issues (Score:1)
Search engines should reduce the relevance of pages with huge META sections.
Sounds Good (Score:1)
Re:Sounds Good (Score:1, Funny)
Re:Sounds Good (Score:1)
The Wayback Machine (Score:1)
Isn't that what - is for? (Score:2, Informative)
For example, if I'm looking for info on a Toyota Supra and too many Celica-related pages come up, I'll type:
toyota supra -celica
On a related note, does anyone feel that Google's built-in exclusion list of universal keywords (a,1,of) is really aggravating when Google excludes those words in phrases?
Re:Isn't that what - is for? (Score:2)
The suggestion was intended to tell the search engines what words on your site aren't relevant for search purposes. So a site primarily about Toyota Celicas, but that mention Supra a couple of places might want add Supra to their "nonwords" entry, to avoid confusing people looking for info about Supras.
So if the suggestion were in use by most people, you might not have to add "-celica" to your search, as it would be easier for the search engine to exclude pages that contain the word "Supra" but that isn't relevant for your search.
It's in no way a perfect idea. But if enough people use it it may have some value.
That's not going to help bandwidth (Score:3, Funny)
Re:That's not going to help bandwidth (Score:1)
Mommy, what does "view source" mean, and why is the computer swearing at me?
Re:That's not going to help bandwidth (Score:3, Insightful)
Why not using the refferer heder of HTTP (Score:1)
So I would suggest that he could think about checking the refferer as this site [internet.com] is showing and maybe directs all users that come from a search engine to a page where he offers a search engine that is limited to his site. Since the referrer also includes the whole search string he could maybe even use it to fill out his search form.
I would even prefer this method because it often happens to me that I enter a site via link from a search engine and then I find out that the result page is just a part of a frameset and its missing properties like Javascript variables. If I would redirect search engine users to a defined starting point on my site they would have less troubles (Don't start a disscussion about the sense and use of frames here
:-) )
Of course... (Score:1)
Re:Of course... (Score:1)
I thought of a similar idea and worded it as such: (Score:1)
"Technique to negate words in a document for increased searching. For instance, include files that cause a phrase like 'How we converted to XHTML 1.0' to show up on every page. Only the page with actual information, should show up in search, not every page with the include file."
Re:I thought of a similar idea and worded it as su (Score:1)
Filenames as an unname (Score:1)
Why this is redundant, and overly subjective (Score:2)
Another problem with metadata in general, of which spam is but one symptom, is the fact that creators of content often have no idea of how their content appeals, or fails to appeal, to other people. Did Mahir have any idea that his name would become a top-ranked search term? Does anyone have any idea how his content should be ranked for a given search term (besides number one, of course)?
What is the number one piece of metadata found in spam messages? This is not spam.
Domain names (Score:1, Offtopic)
It's funny how most people thing that common word domains are valuable, but forget that if you have a name that, when typed into a search engine, jumps out as the only result is pretty valuable too. Especially if it sounds like it is spelled.
Maybe not the best example, but since the 4 letter TLD's are practically all gone, I was going to register duxo.com. Unfortunately one of the many domain hogs got it the day I was going for it.
I got an other one though, but it's not up yet so I won't tell what it is!
Re:Domain names (Score:1)
t.
Yup... (Score:2)
My suggestion to anyone is that they develop three good domain names that they would be happy with. But for god's sake, do it *offline*! Don't search for them, don't try them in your browser, and don't tell anyone what they are. *Then* just go register one or all of them. Don't wait, don't search, and don't even breathe until they're yours.
Oh, and don't forget to trademark the language in those URLs (can't be plain English remember). If someone sees your new URL and likes it, they could register the TM if you don't. Then they can sue you for ownership of the domain, since you're clearly infringing on their TM; and they'll probably get the domain in the end.
Hey, I don't make the rules...
And my favorite word today is don't.
This will never work (Score:1)
For just the same reason as the automotive industry has made clean fuel vehicles standard, and the very way our capitalist world operates. For the time (money) it takes to implement this thing to make the world a better place, the costs can not be substantiated. Granted, if a lot of sites did this, there would be more time for everyone to spend playing with their dog rather than dig through irrelevant search results. But Joe webmaster's company is never going to pay him to do it, and he's not going to spend his free time doing it when he could be spending time with his dog.
That's the way the world is working right now, and people who want to change the world to a better place will probably spend their time doing other things rather than putting unwords in their web documents.
A part they left out of the story; (Score:4, Funny)
Re:A part they left out of the story; (Score:1)
I can see it now... (Score:2, Insightful)
This proposal will not make the indexing of sites more reliable. If anything it will add to the common confusion associated with meta keywords. Yes it is quite a nice idea in theory but I can't see anyone wanting to exclude words from being searched. The main point in the proposal was that the author felt guilty about pulling in people who had entered search terms that appeared on his page. One would ask why he is publishing information on the internet if he doesn't want people to look at it. A better solution would be to get people to use search engines properly. As an example I will use the stalking on the internet term. If people put these words into google and come up with his page then prehaps they should have modified their query to something like "stalking on the internet" and they may not have found his page. On the other hand if his page contains the phrase "stalking on the internet" it migh be just what the seaker was looking for.
To this proposal I say nay. or prehaps oink.
The Semantic Web (Score:5, Interesting)
The problem with content on the web today is that while it is perfectly readable by humans, it is incomprenesible to machines. If Tim and Co get their way, and I for one would love to see the Semantic Web catch on, then we can get rid of kluges like the Anti-Thesaurus, HTML meta keywords and the like.
Strings convey no meaning out of context (Score:1)
Take for example a search for the string tar, which will yield documents containing:
tar -zxf update.tgz, or cp update.tar update.old, or roofing tar , or jeg tar en øl nu
Each instance of tar above has a different meaning, but the same spelling. When you get into misspellings, spelling variations, and conjugation, then the actual concept is even harder to associate with a given range of strings.
Even Google searches are for strings and not concepts, but Google's ranking algorithm [google.com] relies on which pages get the most links from pages that also get the most links. However, you'll still get different results for color vs. colour and tyre vs tire. Because the algorithm only reflects how people have chosen their links, it does, from time [theregister.co.uk] to time [theregister.co.uk] give unusual associations.
;)
Re:The Semantic Web (Score:3, Insightful)
Indeed, but how close are they from achieving anything of significance? Ai has been working on a Universal Onthohology for ages and gotten nowhere.
The fact that Berners-Lee agree that it would be a "cool thing to have" does not make it any more likely to happen (by the way, TB-L first proposed the semantic web almost five years ago).
Re:The Semantic Web (Score:1)
The problem with the Semantic Web is that humans, in general, write web pages to be readable by humans, not by machines.
This is not likely to change anytime soon.
Re:The Semantic Web (Score:2, Interesting)
Re:The Semantic Web (Score:1)
No, not at all. It's easy to retro-fit a web site with RDF metadata about the content of that site and requires no human-visible changes to the site. Metadata can be stored in HTML meta tags or perferably in seperate RDF description files. None of this effects the way people surf the Web, and unless they have a good browser they won't even know the additional metadata exists.
In addition, using SW-friendly content in web pages (like strict XHTML, using CSS for all style, use of other XML dialects like SVG, MathML, CML and so on) only lends to machine comprehension while not detracting a single iota from human comprehension.
It's possible to have web content that is both human and machine comprehsible, but it unfortunately takes a little more effort than making content that is just human readable.
Could have done with this years ago (Score:2, Funny)
What about !keyword? (Score:3, Informative)
Presumably the same could be done for <meta name="keywords"> in HTML.
I like the idea (Score:2)
However, you could show some information if people visit with a certain Referrer header, directing them to more useful pages. This works in the majority of cases, and it doesn't need much cooperation from the search engines.
Exclude genealogy pages; nonsearch tag (Score:1)
2. Some sites have menus on each page listing every topic on the site. You search on a word and get every page in the site returned, including those that mention the topic only in the menu. A tag such as this <nonsearchable> </nonsearchable> surrounding the menus might aid in solving this problem.
The Wrong Tree (Score:2)
Just over do it!Re:The Wrong Tree (Score:2)
The more traditional search engines (not google?) have protections against sites that do extreme things to get to 1 in the hitlist. They have protections against repeating 1 word a lot of times. (META="sex, sex,sex"). Repeating your "exwords" in the normal meta tag so many times should trigger the search engine "spam alert" and decrease the search relevance.
Why this won't work (Score:2)
Unmarketing (Score:2)
there should be a metadata standard allowing webmasters to manually decrease the relevance of their pages for specific search terms and phrases."
So, in other words... businesses will want to reduce their exposure on the web? I don't think so.
This is backwards (Score:2, Insightful)
No more meta tags (Score:1)
There were a couple of interesting papers at the ACM's SIGIR [acm.org] this year that use only the anchot text that points to a webpage to get a description of the pointed to page and they could do some cool things like language translations with just that data.
Invisible pages for the pissed-off (Score:1)
I know of at least one web page that has been very carefully constructed so that search engines won't find it, but people who know what they're looking for will find it easily.
With no subject-specific keywords, however, unless you do know what the author is talking about, you won't have any idea what she's so pissed off about.
No, don't ask: I am routinely pissed off for the same reason, and will not post the URL here.
I wouldn't mind if searches for my name brought up my current web page, rather than the one I had in 1995. But that's another matter.
...laura
Re:Invisible pages for the pissed-off (Score:1)
t.
Biblio entries (Score:1)
While I have occasionally found a source I needed from a hit on a bibliographic entry, one of my pet-peeves, even on Google, is long lists of nothing but bibliographic entries. Usually it's a pretty clear sign that there isn't much on the topic available on the Internet, but sometimes I just need to change my search terms slightly.
But I think nonword is a bad idea. If the website's editors decide to keep a word, and Google's page-rank technology shows it to me, I'm willing to check it out.
very useful for single site search engines (Score:1)
Searching for BSML: Bull Shit Markup Language (Score:2)
Appearently, they would prefer that people searching for "BSML [google.com]" did not turn up my web page. I wonder if they've tried to get the Boston School for Modern Languages [bsml.com] to change their name, too?
Now isn't the whole point of properly using XML and namespaces to disambiguate coincidental name clashes like this? If LabBook thinks there's a problem with more than one language named BSML, then they obviously have no understanding of XML, and aren't qualified to be using it to define any kind of a standard.
Maybe LabBook should put some meta-tags on their web pages to decrease their relevence when people are searching for "Bull Shit" or "Modern Language".
-Don
========
From: "Gene Van Slyke" <gene.vanslyke@labbook.com>
To: <don@toad.com>; <dhopkins@maxis.com>
Sent: Monday, November 12, 2001 10:36 AM
Subject: BSML Trademark
Don,
While reviewing the internet for uses of BSML, we noted your use of BSML on [catalog.com].
While we find your use humorous, we have registed the BSML name with the United States Patent and Trademark Office and would appreciate you removing the reference to BSML from your website.
Thanks for your cooperation,
Gene Van Slyke
CFO LabBook
========
Here's the page I published years ago at [catalog.com]:
========
BSML: Bull Shit Markup Language
Bull Shit Markup Language is designed to meet the needs of commerce, advertising, and blatant self promotion on the World Wide Web.
New BSML Markup Tags
CRONKITE Extension
This tag marks authoritative text that the reader should believe without question.
SALE Extension
This tag marks advertisements for products that are on sale. The browser will do everything it can to bring this to the attention of the user.
COLORMAP Extension
This tag allows the html writer complete control over the user's colormap. It supports writing RGB values into the system colormap, plus all the usual crowd pleasers like rotating, flashing, fading and degaussing, as well as changing screen depth and resolution.
BLINK Extension
The blinking text tag has been extended to apply to client side image maps, so image regions as well as individual pixels can now be blinked arbitrarily.
The RAINBOW parameter allow you to specify a sequence of up to 48 colors or image texture maps to apply to the blinking text in sequence.
The FREQ and PHASE parameters allow you to precisely control the frequence and phase of blinking text. Browsers using Apple's QuickBlink technology or MicroSoft's TrueFlicker can support up to 65536 independently blinking items per page.
Java applets can be downloaded into the individual blinkers, to blink text and graphics in arbitrarily programmable patterns.
See the Las Vegas and Times Square home pages for some excellent examples.
BSML prior art? (Score:2)
The wheels of government and commerce would grind to a halt were they not well lubricated with Bull Shit. So I created the Bull Shit Markup Language and published the BSML web page [catalog.com] years ago, putting it on the public domain for the good of mankind. Now somebody has finally taken it seriously, and is trying to monopolise BSML!
He who controls BSML controls the Bull Shit... and he who controls the Bull Shit controls the Universe! [catalog.com]
Does anyone know of any prior art pertaining to Bull Shit and Markup Languages? What about VRML -- Maybe I could get Mark Pesche to testify on my behalf? c(-;
Here's a list of the huge faceless multinational corporations I'm up against: [labbook.com]
"IBM, NetGenics, Apocom, Bristol-Myers Squibb, Wiley and other leaders of the life sciences industry support LabBook's BSML as the standard for biological information".
To paraphrase Pastor Martin Niemöller:
First they patented the Anthrax Vaccine
and I did not speak out
because I did not have Anthrax.
Then they patented the AIDS Drugs
and I did not speak out
because I did not have AIDS.
Then they patented Viagra
and I did not speak out
because I already had an erection.
Then they came for the Bull Shitters
and there was no one left
to speak out for me.
-Don | http://developers.slashdot.org/story/01/11/20/0331231/the-anti-thesaurus-unwords-for-web-searches | CC-MAIN-2015-35 | refinedweb | 5,703 | 70.73 |
In Chrome 74, we've added support for:
- Creating private class fields in JavaScript is now much cleaner.
- You can detect when the user has requested a reduced motion experience experience.
- CSS transition events
- Adds new feature policy APIs to check if features are enabled or not.
And there’s plenty more!
I’m Pete LePage. Let’s dive in and see what’s new for developers in Chrome 74!
Change log
This covers only some of the key highlights, check the links below for additional changes in Chrome 74.
- What's new in Chrome DevTools (74)
- Chrome 74 deprecations & removals
- ChromeStatus.com updates for Chrome 74
- What's new in JavaScript in Chrome 74
- Chromium source repository change list
Private class fields
Class fields simplify class syntax by avoiding the need for constructor functions just to define instance properties. In Chrome 72, we added support for public class fields.
class IncreasingCounter { // Public class field _publicValue = 0; get value() { return this._publicValue; } increment() { this._publicValue++; } }
And I said private class fields were in the works. I’m happy to say that
private class fields have landed in Chrome 74. The new private fields syntax is
similar to public fields, except you mark the field as being private by using a
# (pound sign). Think of the
# as being part of the field name.
class IncreasingCounter { // Private class field #privateValue = 0; get value() { return this.#privateValue; } increment() { this.#privateValue++; } }
Remember,
private fields are just that, private. They’re accessible
inside the class, but not available outside the class body.
class SimpleClass { _iAmPublic = 'shared'; #iAmPrivate = 'secret'; doSomething() { ... } }
To read more about public and private classes, check out Mathias’s post on class fields.
prefers-reduced-motion
Some users have reported getting motion sick when viewing parallax scrolling, zooming, and other motion effects. To address this, many operating systems provide an option to reduce motion whenever possible.
Chrome now provides a media query,
prefers-reduced-motion - part of
Media Queries Level 5 spec, that allows you to detect when this
option is turned on.
@media (prefers-reduced-motion: reduce)
Imagine I have a sign-up button that draws attention to itself with a slight motion. The new query lets me shut off the motion for just the button.
button { animation: vibrate 0.3s linear infinite both; } @media (prefers-reduced-motion: reduce) { button { animation: none; } }
Check out Tom’s article Move Ya! Or maybe, don't, if the user prefers-reduced-motion! for more details.
CSS
transition events
The CSS Transitions specification requires that transition events are sent when a transition is enqueued, starts, ends, or is canceled. These events have been supported in other browsers for a while…
But, until now, they weren’t supported in Chrome. In Chrome 74 you can now listen for:
transitionrun
transitionstart
transitionend
transitioncancel
By listening for these events, its possible to track or change behavior when a transition is run.
Feature policy API updates
Feature policies, allow you to selectively enable, disable, and modify the behavior of APIs and other web features. This is done either through the Feature-Policy header or through the allow attribute on an iframe.
HTTP Header:
Feature-Policy: geolocation 'self'
<iframe ... </iframe>
Chrome 74 introduces a new set of APIs to check which features are enabled:
- You can get a list of features allowed with
document.featurePolicy.allowedFeatures().
- You can check if a specific feature is allowed with
document.featurePolicy.allowsFeature(...).
- And, you can get a list of domains used on the current page that allow a specified feature with
document.featurePolicy.getAllowlistForFeature().
Check out the Introduction to Feature Policy post for more details.
And more!
These are just a few of the changes in Chrome 74 for developers, of course, there’s plenty more. Personally, I’m pretty excited about KV Storage, a super fast, async, key/value storage service, available as an origin trial.
Google I/O is happening soon!
And don’t forget - Google I/O is just a few weeks away (May 7th to 9th) and we’ll have lots of great new stuff for you. If you can't make it, all of the sessions will be live streamed, and will be available on our Chrome Developers YouTube channel afterwards. 75 is released, I’ll be right here to tell you -- what’s new in Chrome!
Feedback
RSS or Atom feed and get the latest updates in your favorite feed reader!Subscribe to our | https://developers-dot-devsite-v2-prod.appspot.com/web/updates/2019/04/nic74 | CC-MAIN-2020-10 | refinedweb | 736 | 57.27 |
.NET!
When I demonstrate .NET My Services (NMS), people frequently ask why they should care about this new technology. After all, many of the available (or planned) services seem to be pretty simple. An example is the .NET Calendar service. Why do we need another calendar, since Exchange, Outlook and other PIM applications provide great calendaring capabilities? While these questions are valid, .NET My Services represents a significant paradigm shift in managing this type of information. Calendar information is traditionally stored in a local database, such as an Outlook data file. More sophisticated applications store this kind of information in more centralized data store, thus allowing co-workers to share their calendar information (this was one of the main reasons I moved to Exchange Server). However, those scenarios are still very limited. Although co-workers can have access to calendar information, this information may not be available to the wide range of applications such as PDA's, cell phones, pagers and even other applications or Web services.
For security reasons, all .NET My Service interaction requires user consent on a very granular level.
Imagine a scenario where you book concert tickets online. A Web site may show you several options for a certain event and, at the same time, present your calendar, your wife's calendar and a friend's calendar. The Web site can then automatically suggest a concert date that coincides with openings in each schedule (this assumes your wife and friend give you access to their calendars). Once you book those tickets, a calendar entry is automatically added to your calendar, your wife's calendar and your friend's calendar. In addition, .NET My Services (NMS) sends an alert to your wife and friend to make sure they are aware of the event and approve of the new calendar item. The .NET Alerts service knows how to contact your friend and your wife, based on data contained in the .NET My Profile service, which contains information such as email addresses, cell phone numbers, pager numbers and instant messaging information. Of course, .NET Alerts are highly configurable to make sure everyone receives alerts when and where they want them.
Once the tickets are booked, the service can send those tickets to you or to all involved parties individually. To do so, the Web site keeps a list of customers in .NET My Contacts. One classic problem with contact information is its likelihood to become outdated quickly. To avoid this problem, contacts stored in .NET My Contacts may be linked to profiles, instead of being stored as "stand-alone." This way, rather than storing your address in their database, a "subscription" to your .NET My Profile information is stored in the Web site's My Contacts repository. When querying contact information, the data looks the same as a stand-alone contact; however, it is automatically synchronized with your profile. Assuming you keep your own profile up to date (and so do your wife and friend), the Web site will be able to send the tickets to the right addresses, no matter how often you move or how many residences you have. The same is true for your magazine subscriptions, bills and birthday cards you receive.
Of course, all of this has security implications. First of all, do you really want other people, organizations and businesses having access to your address information? Well, if you subscribe to a magazine or order tickets, you probably do. However, if "Victoria's Great Web Cam" wants to send you unsolicited information, you are probably less interested. For this reason, NMS requires the user's consent for all interaction with NMS data and services. In other words, if you want the event Web site to access your wife's calendar or profile, your wife must first grant permission to that Web site. All NMS interaction is opt-in only, meaning there is no access granted by default. This effectively puts an end to the possibility of spam via .NET Alerts or other NMS services.
NMS requires all interaction to be authenticated and authorized through Kerberos security tickets and tokens. Those tokens are acquired through .NET Passport authentication (yes, .NET Passport is now Kerberos based, or at least will be when all of this becomes available). This means that virtually all NMS services rely on .NET Passport.
Can You Use This Today?
At this point, you may think that some of this sounds like science fiction. And for most people it is. The production version of .NET My Services is not yet available (with the exception of .NET Passport and .NET Alerts). However, you can download a technology preview version (pre-beta) from Microsoft at.
The technology preview includes what's referred to as ".NET My Services In-A-Box." This preview installs all of its services on your local computer. This effectively takes care of one of the biggest problems with Microsoft's old Passport SDK (arguably Microsoft's first real Web service), which required the developer to sign up for a test account on the Passport test server. This was a cumbersome and manual task. The majority of development time went into configuring your services correctly, involving email communication with Microsoft, which can take a considerable amount of time. This process was discussed in Issue 3/2001 of Component Developer Magazine. With NMS, these problems are a thing of the past. Everything can be developed and tested locally, even if you don't even have a connection to the Internet (which is nice, since you can work on your application on a plane).
For more information on setup and configuration, see the sidebar "Setup Woes."
Basic Interaction with .NET My Services
Interaction with NMS is SOAP based. All requests to NMS are based on XML messages wrapped in SOAP Envelopes. What makes things a little tricky is that the SOAP envelope has to contain security information. In a real-world environment, those security tokens are provided by .NET Passport. For now however, these tokens are based on local system accounts.
All .NET My Services are opt-in by nature, putting an end to unsolicited information or unwanted data access by third parties.
The XML messages embedded in the SOAP package are based on a standard called "HSDL." HSDL is an XML-based language of its own. However, it is based on standards such as XPath, making it easy for people familiar with XML to interact with .NET My Services. The sum of all those XML-based standards is referred to as the XML Messaging Interface or XMI.
The core NSM services are based on the data stored in the NSM respository, as well as the logic and services surrounding that data. The combination of NMS data and logic is referred to as the NMS Service Fabric. Figure 1 provides an overview of the NSM architecture.
Once we are past the details of SOAP interaction (which, can utilize HTTP as well as several other protocols), there are two main building blocks the developer has to be concerned with: the XML schema used by each individual service and the HSDL used to interact with the service. You can imagine each service as a humongous XML document stored on the Web against which you can run queries and commands. For instance, the .NET MyFavoriteWebSites service presents information in the following format:
<myFavoriteWebSites> <favoriteWebSite id="C30C45FB-11DA-4CC0-8EE6-70FDD12858D2"> <title xml:Microsoft<title> <url></url> </favoriteWebSite> <favoriteWebSite id="137E8DD0-DB35-4FDC-8C40-238C41A1CF92"> <title xml:EPS Software</title> <url></url> </favoriteWebSite> </myFavoriteWebSites>
This represents the minimum amount of information stored in the repository. Even simple services, such as .NET MyFavoriteWebSites, are capable of storing much more information, but most of it is optional.
This article will demonstrate using the .NET MyFavoriteWebSites service. Future issues will explore several of the more complex services in detail (see Table 1 for a list of all available services).
Using HSDL, you can run a simple query against the MyFavoriteWebSites service. The following query returns all favorites stored in a user's MyFavoriteWebSites repository:
<queryRequest> <xpQuery select="//myFavoriteWebSites" /> </queryRequest>
The root element indicates to NMS that this is a query request. The xpQuery node ("xp" stands for "XPath") defines the query in the select attribute. Note that whatever is specified here can be any XPath expression (provided it conforms to the MyFavoriteWebSites schema).
This is the basic query structure. One item to note is that the query must also contain information about the appropriate .NET My Services namespaces. NMS uses this information to verify your requests against the HSDL standards and the MyFavoriteWebSites schema. For this reason, a real-world query would look like:
<hs:queryRequest xmlns: <hs:xpQuery </hs:queryRequest>
The main difference with this syntax is the inclusion of the "hs" namespace in the query commands, and an "m" namespace for all information that's directly related to the favorite's data. Note that the "m" namespace is included in the XPath expression stored in the select attribute.
To execute this query, you need to send it to NMS. This can be done a number of different ways. For instance, you could make a SOAP call using the Microsoft SOAP Toolkit, from within a COM-based environment. The easiest way is to use the hspost.exe command line utility provided by the NMS SDK. Before you use that utility (or any other communication mechanism), you have to make sure your server is provisioned appropriately. Provisioning is the process of granting permission to a service. The following code demonstrates granting access to the MyFavoriteWebSites service. This command is run from a command window.
hsprov ?l ?o markus ?s myFavoriteWebSites
This is a one-time event. For more information on server provisioning, see the sidebar.
Now, you are ready to post your query. First, store the query in a file called "request.xml." Then, execute the following command from the Command Line interface (DOS):
hspost ?f query.xml ?u markus ?s myFavoriteWebSites
Make sure that you replace the user name ("markus") with the user you provisioned. This goes for all the examples in this article.
When you run this command, you will be shown a SOAP Response message. Within the body of that message, you will see the NMS response, similar to the response shown in Listing 1. In this example, a single request was sent to the service (each HSDL request can contain multiple queries). The service then returns a queryResponse with a single xpQueryResponse node embedded. Within that response you will see the MyFavoriteWebSites information as presented above, except that this time the namespace information has been added.
Note that the response status is "success." If NMS encountered an error, the status would have been "failure" and the response would contain information about the error encountered. If something goes wrong at this point, you most likely forgot to provision the server (or provisioned it for the wrong user), or you didn't provide the correct namespace information. If you are confident that the problem must be of a different nature, make sure your setup was successful (see sidebar "Setup Woes"). Note that your response might simply be blank, yet successful. By default, there is no data stored in a user's favorites.
Understanding HSDL
All NMS services support six basic commands: insert, update, query, replace, delete and subscriptionResponse. Individual services may support commands beyond these basic commands. For instance, the My Calendar service supports a getFreeBusyData request, among others.
.NET My Services replaces rather common functionality. However, the way it is done represents a major paradigm shift that results in quite a revolutionary user experience.
To utilize the full power of HSDL, you need to understand the schema of each service. In addition to plain schema information, certain nodes within a schema are color coded. There are blue, red and black (or plain) nodes. Blue nodes are main nodes, typically the root node of a schema, or the first level sub-nodes. In the MyFavoriteWebSites example, the myFavoriteWebSites as well as each favoriteWebSite node are considered "blue" nodes. Each blue node represents an entity that can be directly queried, inserted, and deleted.
Red nodes can be used for queries, but they are not stand-alone nodes. For instance, you can query the title of a favorite, but you could not add or delete a title node, without adding or deleting a whole favorite Web site (one of the blue nodes).
Black (plain) nodes are opaque to HSDL queries, meaning that they will be returned, but they cannot be queried directly. This is fine, because most nodes are either red or blue. An example of a black node is the xml:lang node/attribute on a favorite Web site's title. Although this node is part of every result set, and it in fact is a required node when adding a new favorite, you cannot directly query the language information. If you want to retrieve information about Microsoft's German Web site, you'd have to first query all of the Microsoft sites and then pick the appropriate one from the result set.
Now that you understand these basic concepts, you can insert a new favorite in our repository. To do so, create the following HSDL in a file named insert.xml:
<hs:insertRequest <m:favoriteWebSite> <m:title xml:Component Developer Magazine (CoDe)</m:title> <m:url></m:url> </m:favoriteWebSite> </hs:insertRequest>
You can send this request to the server using the following command:
hspost ?f insert.xml ?u markus ?s myFavoriteWebSites
Note the significance of the blue element here. myFavoriteWebSite is a blue element and can therefore be inserted as a sub-element of myFavoriteWebSites (as specified in the select attribute). The title element on the other hand is a red element. We cannot add a title element to the repository by itself.
If the response is a success, you can re-run the previous query (see above) to retrieve the full list of favorites, which should now include a link to CoDe Magazine's Web site. You may notice that the title is a little long. You can replace the current (long) title with a shorter version like so:
<hs:replaceRequest xmlns: <m:favoriteWebSite> <m:title xml:CoDe</m:title> <m:url></m:url> </m:favoriteWebSite></hs:replaceRequest>
Note the select attribute on the replaceRequest node. It uses an XPath expression to select a specific Web site based on its id attribute (all blue tags have id attributes). The id is a GUID (globally unique id). Whenever a new item gets added to the NMS repository, it is assigned such an id. You will have to adjust that id based on the id generated when you inserted the favorite (above).
This brings us to more complex query operations. As mentioned before, the select attribute can contain a full-featured XPath query. For instance, you could query Microsoft's Web site in the following fashion from our repository of favorites:
<hs:queryRequest xmlns: <hs:xpQuery </hs:queryRequest>
This would generate the following result set (namespaces omitted for readability):
<queryResponse> <xpQueryResponse status="success"> <favoriteWebSite id="C30C45FB-11DA-4CC0-8EE6-70FDD12858D2"> <title xml:Microsoft Corp.</title> <url></url> </favoriteWebSite> </xpQueryResponse> </queryResponse>
Note that in this example, no myFavoriteWebSites node was generated. That's because the XPath query specifically requested the favoriteWebSite node to be the top-level node (and there could have been several of those). This is very useful. For instance, you could query a list of all URLs stored in your favorites using the following query:
<hs:queryRequest> <hs:xpQuery </hs:queryRequest>
The result would be as follows:
<queryResponse> <xpQueryResponse status="success"> <url></url> <url></url> </xpQueryResponse> </queryResponse>
You should now understand the basics of the HSDL. If you are confused by this, I recommend reading up on XPath. If you would like additional information on other HSDL commands, refer to the SDK documentation.
So far, all we have done is post requests to NMS using hspost.exe. Of course, this is not how things are done in the real world. Instead, you would directly interact with NMS from within your application or Web site. So let's take a look at how this is done.
Interacting with NMS through SOAP
For the sake of this article, I'm assuming that most Visual Basic developers have moved on to Visual Studio .NET. For this reason, I create my SOAP examples using Visual FoxPro and Visual Basic.
Using Visual FoxPro 7.0, create a new form and drop a Microsoft Web Browser ActiveX control on your form. The browser control is notorious for trying to refresh itself before the VFP form is ready. For this reason, you will have to put the following code in the Refresh event of the browser control:
NODEFAULT
Next, drop a ComboBox and a CommandButton on the same form and arrange them as shown in Figure 2. Add the following code to the Valid() event of the ComboBox:
THISFORM.OleControl1.Navigate2(; THIS.DisplayValue)
Note that "OleControl1" is the name of the Web Browser control.
The idea is to query all the favorites from the repository when the form initializes. The favorites are simply added as list items to the ComboBox. Listing 2 shows the code that goes into the form's Init() event. The code is quite lengthy, but not very complicated. A SOAP Connector is utilized to connect to the NMS server (on the local machine). Although the SOAP message could be created as a regular string, I generate it using the SOAP Serializer, which greatly simplifies the task. Finally, the SOAP message is sent off to the server using the SOAP Reader object. If you are not familiar with this task, refer to the SOAP documentation.
Note that part of the SOAP header is a Passport User ID (PUID). In the real world, the Passport Manager object would provide this. However, since there is no real Passport interaction, NMS In-A-Box generates a temporary, local PUID. You can query that PUID using the hspost.exe command line utility:
hspost.exe ?p
This returns the temporary PUID for the current user name. Remember to replace that PUID in the code in Listing 2 and Listing 3 (stored in the lcUserID variable). Otherwise, NMS will not grant you access.
The real interesting part of the SOAP message starts when adding the queryRequest element. This section adds XML identical to the contents of the query.xml file created above. All the other SOAP code concerns the SOAP envelope, a task that is handled by the hspost.exe utility when using the command line utility.
Towards the end of the listing, the data requested is extracted from the Body element of the returned SOAP message. Now you can use the XMLDOM to parse the result, retrieve all the URLs and add it to the ComboBox object where the user can pick a URL to navigate.
Most of this code remains the same, no matter what action you desire or what service you interact with, with the exception of the utilized namespaces and the actual HSDL command you send. Also, if you intend to insert information into the repository, you need to change the method from "query" to "insert." Listing 3 demonstrates that. The code in Listing 3 goes into the Click() event of the button. It is mostly the same as Listing 2, with the exception of the actual body (HSDL) and the query method ("insert"). Listing 3 is the equivalent of posting insert.xml to NMS using hspost.exe, with the exception that the URL and title get generated based on the selected value of the ComboBox. This gives you the ability to add new items to the favorites. Voila! Your simple .NET MyFavoriteWebSites-aware browser is complete.
Note that Visual FoxPro 7.0 has foundation classes that make it easier to deal with SOAP messages. Also, the IntelliSense Manager can automatically generate SOAP-specific code to access Web services. I didn't use any of those mechanisms for two reasons: first, I wanted to keep my example generic so the example would make sense for non-VFP SOAP programmers. Second, I couldn't get Visual FoxPro to recognize the WSDL (see sidebar) associated with the individual NMS services. I assume this to be a problem with the current beta of NMS and will be fixed before release.
Listing 4 demonstrates how to access .NET MyFavoriteWebSites via SOAP and Visual Basic 6. It is a little simpler than the Visual FoxPro versions, because it doesn't do anything with the returned information, other than displaying it in a message box. However, it should be sufficient to get you started with NMS using VB6 (although I'm sure you are much more eager to try this with Visual Studio .NET).
Using NMS with Managed Code (VS.NET)
When using .NET My Services with managed code (either through C#, Visual Basic .NET, or any other .NET language), the basic principle of accessing the services remains the same. However, Microsoft provides a number of proxy classes that make it easier to use NMS and require very little code. Basically, most of the SOAP and HSDL tasks are reduced to a minimum. However, it is still important to understand these basic building blocks because many of the abstract classes map directly to HSDL request and respond messages.
In the early beta of the .NET My Services SDK, Microsoft provided two helper projects/assemblies to work with NMS: HsSoapExtension and ServiceLocator. The SOAP extensions assembly deals with NMS-specific SOAP tasks, such as encrypting and decrypting SOAP calls. You won't directly deal with this assembly, but it is used by the ServiceLocator assembly, which provides the proxy classes that map to the individual services.
As an example, I'm going to create a simple form that shows all favorites in a Treeview control. To follow along the example, create a new C# Windows application. The first step is to import both the HsSoapExcension and ServiceLocator projects into your solution. Also, add references to both assemblies in your new project. You should now have one solution with three projects and your Windows Application as the startup project, as shown in Figure 3.
Now, add a Web Reference to your project, to reference the .NET MyFavoriteWebSites service. To do so, right-click on your project and click "Add Web Reference...". Browse to, pick the favorites service, and click the "Add Reference" button (see Figure 4). This adds a Web reference named "localhost." You can rename that service if you wish, however, we are going to stick with that name for this example.
Now, open your main Web form for editing. Add a Treeview control, which we will use to display the retrieved favorites. Then, open the code view and add the following references to the very top of the source:
using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using Microsoft.Hs.ServiceLocator; using Microsoft.Hs; using MyServicesTest.localhost;
Remember to replace "MyServicesTest" with the name of your project.
Now add the code from Listing 5 to the form's load event. The code is pretty straightforward. First, the ServiceLocator object instantiates a reference to NMS in general and subsequently to the MyFavoriteWebSites service. The myFav object is the provided wrapper object specific to the MyFavoriteWebSites service.
Then, we create a new queryRequest object as well as an xpQueryType object. We set the select property of the xpQuery object to retrieve favorite Web sites based on an XPath query. Note that this construct maps 1:1 to the HSDL XML structure we would pass through SOAP (which is what happens behind the scenes). We attach the xpQuery object to the queryRequest object (this is a collection and one could attach as many queries as we desired), and fire the query through the myFav proxy object. This generates a queryResponse object. This object has a collection of query responses and each of those has a collection of favorite Web sites. We can now simply access properties on those objects and add corresponding items to the Treeview on your form. The result is shown in Figure 5.
As you can see, the facilities provided in Visual Studio .NET make accessing NMS fairly simple. Developers do not have to worry about any underlying SOAP details. As mentioned above, the proxy objects used in this example are preliminary objects. Microsoft provides very little documentation on these objects and I wouldn't be surprised if these change significantly before release.
Conclusion
.NET My Services is a fascinating new platform. While the services may seem common and ordinary, this is not the real power. The real power comes from the interaction and cooperation of the different services.
This article examined the very basics of .NET My Services, with examples limited to .NET MyFavoriteWebSites. In future issues of Component Developer Magazine, I will examine several of the individual .NET My Services in more detail. Make sure you keep this issue as a reference!
Markus Egger | https://www.codemag.com/article/0205061 | CC-MAIN-2019-13 | refinedweb | 4,177 | 56.86 |
Program to implement t-test
The t test (also called Student’s T Test) compares two averages (means) and tells if they are different from each other. The t-test also tells how significant the differences are. In other words it lets you know if those differences could have happened by chance. t-test can be calculated by using formula :
where,
x̄1 is the mean of first data set
x̄2 is the mean of second data set
S12 is the standard deviation of first data set
S22 is the standard deviation of second data set
N1 is the number of elements in the first data set
N2 is the number of elements in the second data set
Examples :
Input : arr1[] = {10, 20, 30, 40, 50} arr2[] = {1, 29, 46, 78, 99} Output : -1.09789 Input : arr1[] = {5, 20, 40, 80, 100, 120} arr2[] = {1, 29, 46, 78, 99} Output : 0.399518
Explanation :
In example 1, x̄1 = 30, x̄2 = 50.6, S12 = 15.8114, S12 = 38.8626
using the formula, t-test = -1.09789
Below is the implementation of t-test.
C++
Java
Python3
# Python 3 Program to implement t-test.
from math import sqrt
# Function to find mean.
def Mean(arr, n):
sum = 0
for i in range(0, n, 1):
sum = sum + arr[i]
return sum / n
# Function to find standard
# deviation of given array.
def standardDeviation(arr, n):
sum = 0
for i in range(0, n, 1):
sum = (sum + (arr[i] – Mean(arr, n)) *
(arr[i] – Mean(arr, n)))
return sqrt(sum / (n – 1))
# Function to find t-test of
# two set of statistical data.
def tTest(arr1, n, arr2, m):
mean1 = Mean(arr1, n)
mean2 = Mean(arr2, m)
sd1 = standardDeviation(arr1, n)
sd2 = standardDeviation(arr2, m)
# Formula to find t-test
# of two set of data.
t_test = (mean1 – mean2) / sqrt((sd1 * sd1) / n +
(sd2 * sd2) / m)
return t_test
# Driver Code
if __name__ == ‘__main__’:
arr1 = [10, 20, 30, 40, 50]
# Calculate size of first array.
n = len(arr1)
arr2 = [1, 29, 46, 78, 99]
# Calculate size of second array.
m = len(arr2)
# Function call.
print(‘{0:.6}’.format(tTest(arr1, n, arr2, m)))
# This code is contributed by
# Surendra_Gangwar
C#
PHP
Output:
-1.09789
Recommended Posts:
- Program to implement standard error of mean
- Program to implement standard deviation of grouped data
- Implement two stacks in an array
- Program for harmonic mean of numbers
- Program for product of array
- Python program to add two matrices
- Program to find covariance
- Program for Mean Absolute Deviation
- Program for Coefficient of variation
- Program for K Most Recently Used (MRU) Apps
- Program for array rotation
- Program to check if an array is bitonic or not
- Program to calculate Bitonicity of an Array
- Program to find the Hidden Number
-, nitin mittal, SURENDRA_GANGWAR | https://www.geeksforgeeks.org/program-implement-t-test/ | CC-MAIN-2019-22 | refinedweb | 462 | 58.62 |
drupal Form Properties
2008-08-08 15:43
When building the function in your form to build a form definition, the array of keys is used to declare a form of information. The following section lists the commonly used keys. Some keys will be automatically added and built form.
Form properties
The following section of the property-specific form. In other words, you can set $ form ['# programmed'] = TRUE, but if you set $ form ['myfieldset'] ['mytextfield'] [# programmed '] = TRUE then the form will not know your builder want it to do anything.
# Parameters
This property is an array containing the pass drupal_get_form () of the original parameters. By drupal_retrieve_form () can be added to the property.
# Programmed
This is a Boolean property to indicate a form is a way to process such as through drupal_execute () to submit. If you set the property before the form processing # post, you can use drupal_prepare_form () to set the property.
# Build_id
The property is a string (using MD5 hash). In the multi-step form, # build_id used to identify a specific form instance. It as a hidden field on the form, through the use of drupal_prepare_form () to set the form elements, as follows:
$ Form ['form_build_id'] = array (
'# Type' => 'hidden',
'# Value' => $ form ['# build_id'],
'# Id' => $ form ['# build_id'],
'# Name' => 'form_build_id',
);
# Base
This is an optional string attribute which if Drupal decides to call validation, submission, and theme function to use. Will be $ form ['# base'] is set to the prefix you want to use Drupal. For example, if you will be $ form ['# base'] set to 'foo', and calls drupal_get_form ('bar'), in bar_validate () and bar_submit () does not exist in the case, Drupal will use foo_validate () and foo_submit () as the processor. This property is also used to map the theme function. See drupal_render_form () ( ).
# Token
The string (using MD5 hash) is a unique token, each form comes with it, through the token to determine a form Drupal is a true form and not a Drupal malicious user to modify after.
# Id
This property is a form_clean_id ($ form_id) the resulting string, and it is a HTML ID attribute. $ Form_id flip the bracket in any of "][", underscore "_" or a space character''will be replaced in order to generate consistent with the CSS ID.
# Action
The string property is the form tag action attribute. By default, it is request_uri () return value.
# Method
The string attribute refers to the form presented in a way --- usually post. API is based on the post form was constructed, it will not be processed using the GET method to submit the form. See the HTML specification on the part of the distinction between GET and POST. If you need to use the GET method, you may need to use Drupal's menu API, rather than the form API.
# Redirect
This property can be a string or an array. If the strings, then it is in the form is submitted after the user wants to redirect the Drupal path. If it is set to an array, the array will be passed to drupal_goto (), of which the first element of the array should be the target path (which will allow the drupal_goto () to pass additional parameters.)
# Pre_render
This property is an array, which contains previously presented in the form function to call. Each contains the function to call $ form_id parameter and $ form. For example, setting # pre_render = array ('foo', 'bar') will lead to Drupal first call the function foo ($ form_id, $ form), and then call the bar ($ form_id, $ form). When you want to verify the completion of the form after the show before, the use of hooks to modify the form structure is very useful. If you want to modify the form validation before use hook_form_alter ().
Add to all elements and attributes
When the form builder build forms using the form definition, it needs to ensure that each form element should have some default settings. These default values in the includes / form.inc function _element_info () in the set, but can be hook_elements () in the definition of the form elements covered.
# Description
All form elements will add the string property, which defaults to NULL. The theme function through form elements to render it. For example, textfield description appears in the textfield below the input box, as shown in Figure 10-2.
# Required
All form elements will add the Boolean property, which defaults to FALSE. It is set to TRUE, if the form is submitted after the time the field is empty, Drupal built-in form validation will throw an error message. Also, if it is set to TRUE, then the form will set a CSS class element (see includes / form.inc in theme_form_element ())
# Tree
All form elements will add the Boolean property, which defaults to FALSE. If it is set to TRUE, the form is submitted after the $ form_values array will be nested (rather than flat.) This will affect your access to submit data format. (See this chapter "field set (Fieldsets)" section).
The $ _POST array property of the original data, a copy of the form builder it will be added to all form elements. Thus, in the # process and # after_build defined functions can be based on the contents of # post to make intelligent decisions.
# Parents
All form elements will be added to the array property, it defaults to an empty array. It is for internal use form builder to identify the parent tree form, form element node. For more information, see .
# Attributes
All form elements will be added to the array property, it defaults to an empty array, but the theme function will gradually fill the array. Members of the array will be used as HTML attributes. For example, $ form ['# attributes'] = array ('enctype' => 'multipart / form-data').
Common form element attributes
This section explains the properties of all the form elements can be used.
# Type
This declares a string type of form element. For example, # type = 'textfield'. Declaration form must contain the root of # type = 'form'.
# Access
This Boolean property determines whether the form element visible to the user. If the form element has a child form elements, and if the parent form element # access property to FALSE, then the child form elements will not be displayed. For example, if a form element is a set of fields, and if it's # access to FALSE, then the field is set all the fields which are not shown.
# Process
This property is an associative array. Each item in the array, a function name as key, any parameter passed to the function as a value. When building the form element will call these functions, allowing form element in the building to add additional operations. For example, the definition of the checkboxes in the system.module type of form in the building during the call set includes / form.inc inside the function expand_checkboxes ():
$ Type ['checkboxes'] = array (
'# Input' => TRUE,
'# Process' => array ('expand_checkboxes' => array ()),
'# Tree' => TRUE);
See this chapter "to collect all the possible elements of the definition of the form" part of another example. # Process the array when all the functions are called, for each form element to add a # processed attribute.
# After_build
This property is an array. Stored in an array constructed in the form elements you've got to call the function immediately. The function to be called each have two parameters: $ form and $ form_values. For example, if $ form ['# after_build'] = array ('foo', 'bar'), then the Drupal form element in the building after completion, were called foo ($ form, $ form_values) and bar ($ form, $ form_values). Once these functions are called after, Drupal for each form element in the internal add a # after_build_done property.
# Theme
This optional attribute defines a string, when the Drupal theme function for the form elements to find the time to use it. For example, setting # theme = 'foo', will make Drupal calls theme_get_function ('foo', $ element), the function will be in accordance with the sequential search function themename _foo (), themeengine _foo (), and theme_foo (). See earlier in this chapter "for the form to find the theme function" section.
# Prefix
This property is a string rendered in the form elements will be added to the front of the form elements.
# Suffix
This property is a string rendered in the form elements will be added to the back of the form elements.
# Title
The string is the title form elements.
# Weight
The property can be an integer or a fraction. When rendering the form element, it will be sorted according to their weight. Small weight will be put in front of the elements, heavy elements will be placed below the page positions.
# Default_value
The type of the property according to the type of form element. For the input form elements, if the form has not been submitted, then it is the value used in the field. Do it in the form element # value confusion. # Value form element defines the value of an internal form, the user can not see the value, but it is defined in the form and appear in the $ form_values.
Through the study of the official API and the cookbook, I concluded the following reasons: 1. From the API, we understand, Array and Object classes are dynamic, that is, we can dynamically add properties to them. var obj:Object = new Object(); obj.pr The subject a little plain, but easy to talk to understand. If I tell you, we can not guarantee that any code in order to traverse all the elements of an array, you will certainly refute me, because obviously to be used for ah! But
public class YouXuShuzu_QiuGongGongYuansu { public static void main(String[] args) { int[] queue1 = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,19,22};//18 Elements int[] queue2 = {1,5,7,8,9,10,12,13,15,19,22};//11 Elements int[] queue3 = {1,5,7,8,11,13,
#! / Usr / bin / perl use warnings; use strict; use DBI; my @ array = ('a', 'b', 'c', 'a', 'd', 1, 2, 5, 1, 5); my% saw; my @ out = grep (! $ saw {$_}++,array); print "@ out \ n";
Be written
<HTML> <HEAD> <script language="javascript"> function load(){ // You can use subscript can also use the id/name property to get form elements var firstName =document.forms["userForm"]["firstName"].value; var
1. Get back the number of elements in the collection ${fn:length(list)} 2. Interception string "1234567890" ${fn:substring(str,3,6)} Results: "456" 0 Top 0 Tread
1.puts, print, and p (1) puts if the string is not to wrap the end, puts it out of the string to add a line break (2) print out exactly what the output is required, the cursor will stop by end of line input (3) p inspect the output of a string, it ma
YAHOO.util.Dom.getRegion (node) Back to the regional location of the specified element. The element must exist in the DOM tree to have a regional (display: none or not added to the DOM elements returns false). Parameters: el <String | HTMLElement | A
CodeWeblog.com 版权所有 黔ICP备15002463号-1
processed in 0.275 (s). 12 q(s) | http://www.codeweblog.com/drupal-form-property/ | CC-MAIN-2015-27 | refinedweb | 1,820 | 62.38 |
On Fri, Jul 24, 2020 at 9:53 AM Peter Eisentraut <peter@eisentraut.org> wrote: > > Here is some feedback on applying the 2.69b beta on the PostgreSQL > source tree. Basically, everything worked fine. This is great news. Thank you for testing. > One issue we would like to point out is that the new scheme of > automatically checking for the latest version of the C and C++ standards > (deprecating AC_PROG_CC_C99 etc.) is problematic in two ways. > > First, we have set C99 as the project standard. So checking for C11 is > (a) useless, and (b) bad because we don't want developers to > accidentally make use of C11 features and have the compiler accept them > silently. [...] It would be better if there were still a way to set the > preferred level of C and C++ in an official way. I can't promise to make that happen for 2.70 but I will definitely add it to the list of things that would be nice to have if we can find the time to implement them. > Second, the additional tests for C11 and C++11 are slow. This entirely > eliminates all the performance improvements made elsewhere. In > particular, the test > >.) Assuming that's what's wrong, I know what to do about it and we'll make sure that does happen for 2.70. zw --- #include <deque> #include <functional> #include <memory> #include <tuple> #include <array> #include <regex> #include <iostream> namespace cxx11test { typedef std::shared_ptr<std::string> sptr; typedef std::weak_ptr<std::string> wptr; typedef std::tuple<std::string,int,double> tp; typedef std::array<int, 20> int_array; constexpr int get_val() { return 20; } struct testinit { int i; double d; }; class delegate { public: delegate(int n) : n(n) {} delegate(): delegate(2354) {} virtual int getval() { return this->n; }; protected: int n; }; class overridden : public delegate { public: overridden(int n): delegate(n) {} virtual int getval() override final { return this->n * 2; } }; class nocopy { public: nocopy(int i): i(i) {} nocopy() = default; nocopy(const nocopy&) = delete; nocopy & operator=(const nocopy&) = delete; private: int i; }; } int main(void) { { // Test auto and decltype std::deque<int> d; d.push_front(43); d.push_front(484); d.push_front(3); d.push_front(844); int total = 0; for (auto i = d.begin(); i != d.end(); ++i) { total += *i; } auto a1 = 6538; auto a2 = 48573953.4; auto a3 = "String literal"; decltype(a2) a4 = 34895.034; } { // Test constexpr short sa[cxx11test::get_val()] = { 0 }; } { // Test initializer lists cxx11test::testinit il = { 4323, 435234.23544 }; } { // Test range-based for and lambda cxx11test::int_array array = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; for (int &x : array) { x += 23; } std::for_each(array.begin(), array.end(), [](int v1){ std::cout << v1; }); } { using cxx11test::sptr; using cxx11test::wptr; sptr sp(new std::string("ASCII string")); wptr wp(sp); sptr sp2(wp); } { cxx11test::tp tuple("test", 54, 45.53434); double d = std::get<2>(tuple); std::string s; int i; std::tie(s,i,d) = tuple; } { static std::regex filename_regex("^_?([a-z0-9_.]+-)+[a-z0-9]+$"); std::string testmatch("Test if this string matches"); bool match = std::regex_search(testmatch, filename_regex); } { cxx11test::int_array array = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; cxx11test::int_array::size_type size = array.size(); } { // Test constructor delegation cxx11test::delegate d1; cxx11test::delegate d2(); cxx11test::delegate d3(45); } { // Test override and final cxx11test::overridden o1(55464); } { // Test nullptr char *c = nullptr; } { // Test template brackets std::vector<std::pair<int,char*>> v1; } { // Unicode literals char const *utf8 = u8"UTF-8 string \u2500"; char16_t const *utf16 = u"UTF-8 string \u2500"; char32_t const *utf32 = U"UTF-32 string \u2500"; } } | https://lists.gnu.org/archive/html/autoconf/2020-07/msg00011.html | CC-MAIN-2020-40 | refinedweb | 612 | 52.8 |
Hi. My name is Ofek Shilon and I blog mostly about various VC++ tricks I come by. Today I’d like to explicitly introduce a debugging feature we all use daily but seldom refer to it by name – the native expression evaluator (abbreviated EE below).!
As the component name suggests, it is in fact able to parse and evaluate expressions:
s
These expressions can be assignment statements or can otherwise modify variables, too:
And more importantly – the expressions can include function calls!
The EE lives in various IDE contexts—the Watch window, the QuickWatch dialog, the Immediate window, Breakpoint conditions and a bit more – but it is most obvious (and most frequently used) in the various Watch windows. When expertly used this feature can raise debugging interactivity to surprising levels, and in fact comes rather close to being a full C++ interpreted environment (especially alongside Edit and Continue). However, there are several important differences between expression evaluation and real code compilation that you should be aware of.
The EE cannot call inlined functions, as they are not really ‘there’ as code to be called. On the upside, the EE is blind to access privileges and would happily evaluate calls to private methods or file-static functions.
The expressions are being evaluated at the context of the currently selected thread (that is, the one whose stack, registers and local variables are shown in the corresponding IDE windows). In particular, expressions are evaluated in the debuggee’s address space, which could have unexpected consequences if one isn’t careful. For example, suppose you’re trying to evaluate an expression which allocates heap memory – but a different thread is frozen holding the heap lock. The debuggee would be left in an unknown state and the IDE should take measures against hanging by itself! Many similar scenarios might occur: since all debuggee threads are frozen various resources might be in unstable states and one should be careful when messing with them. That line of thought is probably what caused the EE designers to explicitly forbid usage of a large subset of CRT and WIN32 API. The full list of banned APIs is an implementation detail and is subject to change between versions or in updates (and was indeed expanded considerably in VS2010).
However,
(1) In practice, side effects as described are extremely rare, and I’ve been messing interactively with debuggee state for years with no problems.
(2) The tests against this list are shallow, and you can easily bypass them by wrapping API in the list with your own functions (in advance, i.e. at the source itself):
All that being said, such bypasses are undocumented and unsupported – use them at your own risk!
The EE does not include a full-fledged linker, and when you call functions outside the main executable the EE might require help in resolving the call. You can deliver that help with the context operator:
{,,DllName.dll}FunctionName()
(You can also omit the ‘.dll’ in the module name. )
As useful as it is, the EE parsing and symbol resolution will probably never be as robust as the compiler’s – and sometimes some workarounds are in order.
Symbols sometimes need to be ‘resolved manually’ by taking addresses and casting:
Enum types are mostly recognized, but individual enumerators (enum values) are not. Implicit casting to an enum type can fail too. Luckily, you can easily cast the raw integral values yourself:
If symbols reside in namespaces, they must be fully qualified. If functions are template, the template types must be fully (sometimes very verbosely) specified. You may come across other similar behaviors. As a rule of thumb, when things aren’t going as you expected – try to be as explicit as possible.
Finally, here are some examples of real life usage – specifically, enhanced investigation of memory issues in debug builds.
_CrtCheckMemory essentially walks the CRT heap and detects out-of-bound writes by inspecting the padding that CRT inserts at the end of allocated blocks. Now you can pin-point the origin of corruptions without repeatedly spreading _CrtCheckMemory at the source and recompiling. Here’s an evaluation right before a corruption:
And here it is again two lines later (after clicking refresh, to re-evaluate):
If you define a _CrtMemState slot at the source, you can populate and inspect it interactively using the many tools the CRT supplies. First fill it:
Then explore its contents – the CRT APIs ultimately call OutputDebugStringA , which still dumps to the output window:
You can also reserve several _CrtMemoryState’s at the source, populate them at different locations and diff them with _CrtMemDifference. And so forth - you get the idea.
Hopefully that’s enough as an intro to this underappreciated debugging feature. I’d love to hear (via the comments, my blog or just ofekshilon-at-gmail) whether all this works out for you, and of other cool directions you’re taking it to.
My deep thanks goes to Eric Battalio and James McNellis, for making this post happen and then improving it.
Cheers,
-Ofek
Thanks for the great article, Ofek. Readers, if you have an idea for an article that might appeal to the Visual C++ / C++ community, ping me @ ebattali@microsoft.com. I encourage you to ping me even if you think you can't write, the topic might not fit, or you have any other reservations! :)
Since my experience is quite different, I'll just ask directly: what you're showing should also work *exactly as is*, with the same features and limitations, if done via the Immediate window, right?
I've never thought to try calling functions via the Watch window, but several times from the Immediate Window.
And my experience is that it virtually never works. Especially anything C++ (non-POD types, overloaded operators, templates etc) seems to be beyond its capabilities. I've also had very limited luck with simple C code, but that *may* be because of the blacklisted CRT functions you mentioned. (then I'd like to point out that the EE designers have designed a tool which provides the *illusion* that it doesn't work, which might explain why this blog post is necessary, and why no one knows that the tool exists/works. Perhaps they should provide a different error message for those blacklisted functions?)
Seeing it described as nearly "an interpreted C++ environment" is a bit of a surprise. I wish it was, but that's just not my experience. Maybe I'm just doing it wrong though. I will give it another chance.
Until now, I would have said that this is the only feature where GDB is actually miles ahead of the MSVC debugger. Perhaps MSVC simply hides this functionality better. Regardless, it's one feature I'd *really* like to see improved, because yes, when it works, it is amazingly useful.
By the way, forbidding CRT functions from being called in this manner seems completely absurd. Why would anyone prevent developers from (potentially) wrecking their own process' state *during debugging*? When I'm debugging I want the tools at my disposal to do what I ask them to, knowing that I can easily corrupt some state or other. That's no different from when I move the instruction pointer, or when I alter the value of some variable or the contents of memory. I can do all those things, and I can easily wreck my process. I'd expect the expression evaluator to also allow me to call, say, GetCurrentThreadId(), knowing that I'm doing so from a frozen debugged process with all the weird state that entails.
Anyway, thanks for the interesting read.
Hi Ofek, great article.
AFAIK, the debugger does not have a black list of crt functions, and there are many much more common cases where func-eval will trash your process than just heap lock.
For instance, if you func-eval a function that waits on a contested lock, it will deadlock in an unrecoverable state. Similarily, func-evals to that call into cross apartment com objects will also deadlock in an unrecoverable state.
Secondly, there are some functions in the crt for which the debugger will interpret the func-eval instead of actually executing it by default. These are most string comparison functions. However, the developer can force a real func-eval using the module prefix. For instance, msvcr110d.dll!strlen(mystr) will actually call strlen on the string. The full list of func-eval intrinsics can be found here: msdn.microsoft.com/.../y2t7ahxk.aspx
This post is provided “as-is” and confers no warrantees or rights.
Jackson Davis
Visual Studio Debugger
@grumpy: AFAIK the mechanics behind the watch window are identical to those behind the immediate window. Can you give a concrete example of an evaluation that fails for you?
Regarding operators: the VS2012 (vastly improved) documentation gives a potential reason why operator evaluation might fail:
" The debugger does not support overloaded operators with both const and non-const versions. "
While this might be an understandable design decision - the result of any evaluation in the debugger typically isn't assigned to any variable which can be classified as const/non-const - sadly this is a very typical scenario for operators, and could substantially limit their usage in debugger
(msdn.microsoft.com/.../y2t7ahxk.aspx)
@Jackson Davis: Thanks for the inside info! I learn something every time I blog. Can you please shed some light on why ntdll/user32 calls from the debugger typically fail to resolve? Maybe it's because they're forwarded to other dlls? Can you say why calls that were resolved on VS2005 fail to do so on VS2010/12?
Err, that would be kernel32/kernelbase calls. User32 calls are obviously out.
Do you plan to build Roslyn-like for C++ ? When Roslyn for C#/VB will be ready, C++ experience another round of drop in popularity and usage, no doubt.
Tristan there are already C++ interpreters build using LLVM/Clang tech, although I appreciate you may mean a 'fragment' compiler (what Anders refers to as The Compiler As A Service).
Really not sure how you're measuring the drop in popularity. Microsoft is re-embracing native after its decade plus long love affair / grand experiment with managed everywhere. Have you taken a look at what powers WinRT (arguably the future of the Windows client) or for that matter what tech underpins just about every mobile / device platform out there?
Thanks a lot.
The "context operator" part and " _CrtMemState " part are something I would never know if I wouldn't read your post.
Looking forward to see more of these kind of posts!
Another nice trick:
Put "@err" to watch list to see GetLastError() code.
Put "@err, hr" to see GetLastError() code with description.
@Dmitry: That is one of the special psedovariables the debugger supports. There are many others, and all are useful:
msdn.microsoft.com/.../dd252945.aspx
msdn.microsoft.com/.../ms164891.aspx | http://blogs.msdn.com/b/vcblog/archive/2013/03/07/guest-post-the-expression-evaluator.aspx | CC-MAIN-2015-18 | refinedweb | 1,820 | 53.31 |
Provide button press feedback
Hello,
I'm working on a view where I have several buttons and a text above them. Every time the user presses a button a line is saved to a csv file with the button that was pressed and the time. The on top of the screen changes every time a button is pressed, but sometimes the text is so similar to the previous one that it's hard to see the change.
The entire program is working fine; however, it's hard to see whether the button was actually pressed.
I tried to add the following piece of code to the action function to change the color of the button temporarily to gray and back, but it doesn't work:
sender.bg_color = 'gray'
time.delay(0.25)
sender.bg_color = 'green'
It seems that the screen only refreshes after the button has changed back to green.
Is there a way to force a screen refresh after I change the color to gray? or is there a better way to provide a visual cue that the button has been pressed and the action has taken place?
Thank you.
I'm sorry I meant:
time.sleep(0.25)
Perhaps
View.set_needs_display()
@cvp I tried that, but it still doesn't refresh the screen. I don't know if it makes any difference, but I'm working with a subview
Try this
import ui class myview(ui.View): def __init__(self): b = ui.Button(name='button_name') b.frame=(10,10,32,32) b.title = 'test' b.background_color = 'green' b.action = self.button_tapped self.add_subview(b) def button_tapped(self,sender): sender.background_color = 'gray' ui.delay(self.button_tapped_end,1) def button_tapped_end(self): self['button_name'].background_color = 'green' v = myview() v.present()
That did the trick! Thank you.
Also, the original code would have worked with a @ui.in_background decorator. Nothing in a callback shows up until the method ends and control is returned to the ui thread. Though the issue with in_background is that all such calls are queued up on the same thread, so if you tapped the button 20 times in a row, it would take many seconds to toggle through all of these.
In this case it probably does not matter, but in some cases you might want a ui.cancel_all_delays() at the start of button_tapped, o avoid calling the end method 20 times. | https://forum.omz-software.com/topic/3787/provide-button-press-feedback | CC-MAIN-2019-04 | refinedweb | 395 | 74.79 |
17 November 2009 14:54 [Source: ICIS news]
SINGAPORE (ICIS news)--New York-based proxy advisory firm RiskMetrics has advised the shareholders of US fertilizer company CF Industries to accept the final $4.9bn (€3.3bn) take-over offer made by Canadian Agrium.
Agrium announced RiskMetrics’ recommendation on Tuesday on its offer that values CF at an equivalent price of $98.78 per share. The offer will expire Wednesday midnight (New York time).
The publicly-listed Canadian company offered $45/share plus one common share of the company for each CF stock. Agrium closed at $53.78 a share on Monday at the New York Stock Exchange.
The offer represents a 78% premium to CF’s closing price on 24 February 2009, a day before Agrium made its initial proposal to acquire the company, it said.
RiskMetrics criticized CF's board for trying to block the successful conclusion of Agrium/CF deal in order to pursue the acquisition of another fertiliser company - Terra.
"Given the extraordinary nature of the CF board's 'end run' around its own shareholders, we remain concerned about the accountability of the CF board going forward...and here we frankly cannot confirm that due consideration was given to the June tender results by the CF board," Agrium said quoting the RiskMetrics' report.
RiskMetrics cited that a majority of CF shareholders sent a strong message to its own board that they welcome a new business strategy.
"However, over the subsequent five months, it does not appear that the CF board has changed from its pre-referendum strategy in any meaningful way. CF continues to stonewall Agrium and pursue its acquisition of Terra (a transaction on which CF shareholders will have no say)," Agrium said, quoting the advisory firm's report.
Agrium president and CEO Mike Wilson said: "Our offer is CF stockholders' final opportunity to make it clear to the CF board that they want to receive a premium rather than pay one.”
“With support for an Agrium/CF combination from a resounding majority of CF stockholders, we expect the CF board will do the right thing and move forward with Agrium's offer,” he said.
“If CF refuses to act, Agrium will consider all options, including nominating a slate of directors to the CF board and pursuing litigation," ?xml:namespace>
A spokesperson for CF Industries said: "CF Industries continues to believe that Agrium has failed to make a compelling offer."
( | http://www.icis.com/Articles/2009/11/17/9264347/cf-industries-shareholders-advised-to-accept-agrium-offer.html | CC-MAIN-2014-15 | refinedweb | 404 | 50.97 |
My day job involves writing software. Today, actually, it involves porting software from Windows to Linux. Until now, our software has been built with Microsoft Visual C++ but, strangely enough, VC++ doesn’t support targeting Linux, so we’re having to build it with GCC.
The application is command-line-only. It involves no networking, only basic file IO, no console input and minimal console output. For the most part, it is a number-cruncher. How hard can this be?
Very tricky, it turns out. Mostly because the Microsoft C++ compiler, even after all these years, is a buggy heap of shite.
To be fair, some would say that VC++ has always been a buggy heap of shite. The impression that’s put around the industry is that this used to be the case, but now it’s pretty much on a par with other compilers.
Well, I’m here to tell you that it just ain’t so. VC++ is still full of bugs. Most of the ones I’ve come across so far have been bugs of the worst sort for maintainability and portability – the compiler allows things that the language specification says are illegal. So your developers can sit and happily spew out non-conforming code, compile it and run it, never even realising they are writing rubbish that won’t compile anywhere else.
Here’s my top 5 I love to hate:
1. Preprocessor phases are done in the wrong order.
Seriously. The standard specifies exactly what order things happen in. How hard is it to just implement that order? Specifically, the preprocessor is supposed to remove comments before it expands macros. It doesn’t. It means that an enterprising developer can write this piece of genius:
#ifdef INCLUDE_SOME_CODE #define SOME_CODE #else #define SOME_CODE /##/ #endif
That
## in the second definition of the
SOME_CODE macro means, ‘Paste these two things together and put the result in the output.’ Of course it works out to a one-line comment. Someone has found a way to conditionally comment out code – so long as your compiler (specifically the preprocessor) is completely broken.
2. Templates are parsed at the wrong time.
Seriously. The compiler is supposed to parse template definitions as it finds them, then instantiate them when they are used. Microsoft decided that was too easy. When the VC++ compiler finds a template definition, it sticks it’s thumb in the page there to remember where that template is defined. Then, when it finds an instantiation of that template, it goes back and parses the template. This causes grief, mainly because it means that the compiler already knows what the template arguments are when it parses the template. This lets it try to be clever. In the process of being clever, it deviates from the standard in all sorts of ways. For instance:
template<typename T> class A { My compiler is a smelly, buggy heap of shite. }; template<> A<int> { // Actually do something useful in here. }; int main() { A<int> a; return 0; }
This compiles just fine. When the compiler is parsing this file, it doesn’t bother to parse the templated class definitions until it gets to the instantiation in the main function. When it sees
A<int>
it spots that this is an instantiation of the template
A. Of course, it now knows what the template parameter is, so it knows that it only needs to parse the specialisation of the template for
T=int, so that’s exactly what it does. It never bothers to parse the general template class. Hey, what’s the point, anyway? It never gets used.
If you can’t see the problem here, your brain needs looking at (or you don’t write software for a living). Suppose for a minute that the template definition is in a library header file somewhere. Suppose it’s at the bottom of a long chain of template definitions. Suppose that chain of template definitions is rarely used; in fact, it’s not used at all in your library code. Some people who use your library might want to use it in some obscure corner cases, though. Your library compiles fine, but when they use this obscure feature of your library, their code won’t compile any more, and they get several pages of incomprehensible template error messages. Whose code is to blame? It can’t be yours; your library compiles fine! Your poor user will probably spend several days poring over his code before he even realises it could be your fault.
3. Dependent and non-dependent namespaces are combined.
I guess this is a consequence of number 2, but I think it deserves a separate item.
When the compiler is parsing a template, it can come across two different types of name, dependent and non-dependent. Dependent names are ones that depend on the template parameters; non-dependent names don’t depend on the template names. When the compiler is looking for a non-dependent name, it isn’t supposed to search dependent names. This is because, until you know what the template parameters are, you don’t know what is a dependent name and what isn’t.
To demonstrate this, consider this line of code:
A<B> C;
What is this? Is it a declaration of a variable called
C with type
A<B>? Or is it two comparison operations, mean to be equivalent to
( A<B ) > C
? Either would be legal, and without knowing what
A,
B and
C are, you can’t tell. This is why writing a parser for C++ is so hard and why people designing new languages bang on so long and hard about the importance of context-free grammars.
Now, suppose the compiler finds the above line in a template definition and
A,
B and
C are template parameters. If template parsing is done right (according to the standard) then the compiler doesn’t know what
A,
B and
C are and so it can’t tell what the statement is meant to mean. The standard provides a way out, though; if you’re in this situation and you’re trying to declare a variable
C of type
A<B>, you’re supposed to write:
typename A<B> C;
This tells the compiler that you’re naming a type, not constructing an expression. It’s rather an ugly kludge, but it’s what we have in the standard.
But if you do template parsing the Microsoft way, you already know what the template parameters are when you parse the template. You know what
A,
B and
C are. You can tell what is meant by that line of code. What’s the point of issuing an error message, just because the standard says you should?
To drive this home, here’s an example of code with two errors according to the standard but which the Microsoft compiler has no problem with:
#include <vector> template<typename T> class Base { protected: std::vector<T> data; }; template<typename T> class Deriv : public Base<T>{ public: Deriv() { data.push_back(T()); } };
Spotted the problems? No? Who would, without a compiler to tell you they are there? The two errors are both name lookups that should fail. Firstly, std::vector<T> depends on a template parameter. We don’t know what
T is. This could be two comparisons rather than a variable declaration. Secondly, and perhaps a bit more subtly,
data should not be directly available in class
Deriv. The reason is that it is actually called Base<T>::Deriv
- a dependent name! data` looks like a non-dependent name, so the compiler isn’t supposed to check the list of dependent names to find it. To write this code correctly, you’re supposed to say:
#include<vector> template<typename T> class Base { protected: typename std::vector<T> data; }; template<typename T> class Deriv: public Base<T> { protected: using Base<T>::data; public: Deriv() { data.push_back(T()); } };
And, while you’re thinking about how hard it was to spot those bugs in the original version, remember that the compiler might not even be parsing the content of those templates if they’re not instantiated.
4. What is a
static enum, anyway?
I have no idea who thought this was necessary, or a good idea, but someone had written code like this:
class A { static enum B { V1 }; };
It turns out that
static isn’t the only possibility; you can declare your
enums to be
volatile,
register or (if your version of VC++ is pre-C++11)
auto. And various combinations of the above.
5.
const_iterator is for what again?
Don’t try this at home:
template<typename T> void Erase(std::vector<T>& t, std::vector<T>::const_iterator& ci) { t.erase(ci); }
And you thought
const_iterators were harmless… | https://nofurtherquestions.wordpress.com/2014/07/ | CC-MAIN-2017-13 | refinedweb | 1,465 | 63.8 |
Hi I'm pretty knew to programming and I have an assignment which I've been working on but I am stuck
I have to create a 'space invaders' style game, and I've got some basics working. I wanted to add a boss enemy, which appears when all other enemies have been destroyed. It kind of works, only the program spawns a seemingly infinite amount of the boss which then creates a 'wipe' effect across the top of the screen.
Here is my code:
Code :
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.util.List; public class Space extends World { /** * Constructor for objects of class Space. * */ public Space() { // Create a new world with 200x250 cells with a cell size of 3x3 pixels. super(200, 250, 3); //add class with starstreaks addObject(new EmptyBox(),1,1); //add player character addObject(new Player(), 100, 228); //add 4 romulan enemies row 1 for(int i=0; i<4; i++){ addObject(new Romulan(), (25 + 50 * i), 15); } //add 3 klingon enemies row 2 for(int i=0; i<3; i++){ addObject(new Klingon(), (50 + 50 * i), 40); } //add 4 romulan enemies row 3 for(int i=0; i<4; i++){ addObject(new Romulan(), (25 + 50 * i), 65); } //add 3 klingon enemies row 4 for(int i=0; i<3; i++){ addObject(new Klingon(), (50 + 50 * i), 90); } //add 3 shields for(int i=0; i<3; i++){ addObject(new Shield(), (30 + 70 * i), 180); } } [B]public void act(){ List<Enemy> enemies = getObjects(Enemy.class); if(enemies.size()==0 ){ addObject(new Borg(), 100, 30 ); } }[/B] }
I believe the part in bold is the problem, but I dont know why. Klingon and Romulan are subclasses of the Enemy class. The Borg class is it's own seperate class, but with the exact same functions as Enemy. I made it seperate as I figured it would keep respawning if it was a subclass of Enemy.
Any ideas? | http://www.javaprogrammingforums.com/%20whats-wrong-my-code/1283-pretty-new-java-can-someone-help-addobject-problem-printingthethread.html | CC-MAIN-2014-35 | refinedweb | 323 | 55.88 |
Introduction to ASP.NET Core part 17: custom tag helpers
February 24, 2017 5 Comments
Introduction
In the previous post we continued our exploration of the .NET Core tag library. In particular we looked at how to build a form using the library. We also saw some examples on mixing the tag library mark-up and Razor C# syntax. The tag library version of the POST form works in exactly the same way as its Razor equivalent.
The tag library is highly extensible. This implies that we can build our own custom tags. We’ll explore this with several examples in this post.
We’ll be working in our demo application DotNetCoreBookstore.
Custom tag helpers example one: a home address link
In this exercise our goal is to build a link to the home page using a custom “home” HTML element. Add a new folder called TagHelpers to the web project. This folder name is not compulsory, but it gives a good indication of its contents. Custom tag helpers are normal C# classes whose name will be the name of the custom attribute, in our example Home. It is not required but is still a good convention to attach “TagHelper” to the custom tag class name. This helps to differentiate it from other objects in the system that might have the same name.
The most straightforward way to create a tag helper is to derive from the TagHelper class in the Microsoft.AspNetCore.Razor.TagHelpers namespace and override one of its functions.
Add a C# class to the TagHelpers folder called HomeTagHelper:
using Microsoft.AspNetCore.Razor.TagHelpers; namespace DotNetCoreBookstore.TagHelpers { public class HomeTagHelper : TagHelper { public override void Process(TagHelperContext context, TagHelperOutput output) { } } }
The tag doesn’t do anything yet. We first want to register the tag helper in the Views/_ViewImports.cshtml file. We’ll use the same ‘*’ notation to tell MVC to register all tag helpers it can find in our assembly, i.e. DotNetCodeBookstore:
@using DotNetCoreBookstore @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @addTagHelper "*, DotNetCoreBookstore"
This will ensure that all our future tag helpers that are derived from the TagHelper class will be automatically picked up by MVC.
Rebuild the solution and open Books/Index.cshtml. Start typing ‘<ho' right above the FunnyMessage section. If the tag helper was registered correctly, then you should see the "home" element in the list of available elements by IntelliSense:
We’ll just complete the element to begin with:
<home></home>
Set a breakpoint in the overridden Process function, start the application and navigate to /books. Code execution will stop at the breakpoint. This confirms that MVC has correctly found our custom tag and wants to execute its Process method.
Let the code execute and view the source of the index page. Since we haven’t told MVC how to render the home attribute it will simply send…
<home></home>
…to the client, exactly as we declared it in the markup.
We can now add some body to the Process method:
public override void Process(TagHelperContext context, TagHelperOutput output) { output.TagName = "a"; string address = "/books/index"; output.Attributes.SetAttribute("href", address); output.Content.SetContent("Home page"); }
The first line sets the element name to an anchor, i.e. “a”. Then we set the home URL extension to the href attribute of the anchor. The SetContent function defines the text content of the tag, i.e. the text that will be rendered between the opening and closing “a” tags.
Run the application and you’ll see that the home tag was rendered as a link on the index page:
The HTML source also looks good:
<a href="/books/index">Home page</a>
Example two: adding attributes to the custom home tag
We’ll now see how to add custom attributes to our tag. We’ll add an attribute to set the address extension and the text content. Attributes are provided through properties of the implemented tag helper:
using Microsoft.AspNetCore.Razor.TagHelpers; namespace DotNetCoreBookstore.TagHelpers { public class HomeTagHelper : TagHelper { public string BookstoreHomeAddress { get; set; } public string BookstoreHomeLinkContent { get; set; } public override void Process(TagHelperContext context, TagHelperOutput output) { output.TagName = "a"; output.Attributes.SetAttribute("href", BookstoreHomeAddress); output.Content.SetContent(BookstoreHomeLinkContent); } } }
The pascal case properties are exposed as kebab-case attributes in the markup. BookstoreHomeAddress will become bookstore-home-address and BookstoreHomeLinkContent will show up as bookstore-home-link-content. This also gives a hint as how the built-in “asp-” attributes were added. Their property names all start with Asp. Rebuild the project and see what IntelliSense comes up with:
That kind of prefix hint looks familiar from the “asp-” attributes we saw before. Extend the markup in Index.cshtml:
<home bookstore-</home>
The custom attribute was rendered correctly again:
<a href="/books/index">Home rendered by custom tag</a>
Exercise three: asynchronous tag helper
The TagHelper class has a ProcessAsync function that transforms the custom tag asynchronously. Add a new tag helper to the TagHelpers folder called HomeAsyncTagHelper:
using System.Threading.Tasks; using Microsoft.AspNetCore.Razor.TagHelpers; namespace DotNetCoreBookstore.TagHelpers { public class HomeAsyncTagHelper : TagHelper { public string BookstoreHomeAddress { get; set; } public string BookstoreHomeLinkContent { get; set; } public override async Task ProcessAsync(TagHelperContext context, TagHelperOutput output) { output.TagName = "a"; TagHelperContent content = await output.GetChildContentAsync(); string cont = content.GetContent(); output.Attributes.SetAttribute("href", BookstoreHomeAddress); output.Attributes.SetAttribute("greeting", content); output.Content.SetContent(BookstoreHomeLinkContent); } } }
Most of the code is the same as before but we have a couple of new elements:
- ProcessAsync returns a Task which is customary for asynchronous functions in C#
- TagHelperContent is extracted from the TagHelperOutput asynchronously
- TagHelperContent has a GetContent function which reads the text content in between the opening and closing tags
- We set the tag content into a new attribute called “greeting”
Let’s see how this works. Add the following markup to Index.cshtml:
<home-asyncHello world</home-async>
The text content of the home-async tags, i.e. “Hello world” will be extracted by the TagHelperContent.GetContent() method.
If you run the application now and go to /books then you’ll see the new link tag rendered as follows:
<a href="/books/index" greeting="Hello world">Home rendered by custom async tag</a>
Exercise four: reverse tag and attribute
In this exercise we’ll try something moderately funny. The text content of a custom tag called “reverse” will be reversed as the name suggests. The tag will also function as an attribute for other text-related elements like p or h1.
Add a new class called ReverseTextTagHelper to the TagHelpers folder:
using Microsoft.AspNetCore.Razor.TagHelpers; using System.Threading.Tasks; namespace DotNetCoreBookstore.TagHelpers { [HtmlTargetElement("reverse")] [HtmlTargetElement(Attributes = "reverse")] public class ReverseTextTagHelper : TagHelper { public override async Task ProcessAsync(TagHelperContext context, TagHelperOutput output) { output.Attributes.RemoveAll("reverse"); TagHelperContent content = await output.GetChildContentAsync(); char[] charArray = content.GetContent().ToCharArray(); Array.Reverse(charArray); output.Content.SetContent(new string(charArray)); } } }
The HtmlTargetElement attribute is applied twice which results in an OR operation. The tag name must be “reverse” or the attribute must be “reverse” in order for .NET Core to find a match and run the overridden ProcessAsync method. In the method body we extract the text content of the element, reverse it and put the result back as the final content. First, however, we remove the attribute from the markup so that it’s not shown for the client. Not that it hurts anyone to make it visible so it’s really just cosmetics. The attribute doesn’t need to be removed from the markup to make it work.
Here’s the updated books/index.cshtml file with two examples: one where “reverse” is used as an attribute and another where it’s used as an element. Here I only show the relevant changes:
<td>@bookViewModel.Id</td> <td reverse>@bookViewModel.Auhor</td> <td>@bookViewModel.Title</td> . . . <reverse>Hello world</reverse> @section FunnyMessage { <p>This is a very funny message</p> }
Run the application and go to the books page. You’ll see that the authors’ names have been reversed like “htimS nhoJ” and “repooC werdnA”. The Hello World message was also reversed: “dlrow olleH”.
We’ll continue with more examples in the next post.
View the list of MVC and Web API related posts here.
Shouldn’t your ViewImports file at the beginning of this post start with
@using DotNetCoreBookstore.Models
No, not the common Views/ViewImports that is discussed in this post. We added the the @using DotNetCoreBookstore.Models statement in the ViewImports of the Views/Books folder earlier.
I also needed to add [HtmlTargetElement(“home”)] to the HomeTagHelper class.
That definitely shouldn’t be required unless you want to change the naming convention. HomeTagHelper is translated as the “home” element by default, declaring the same with a HtmlTargetElement attribute is unnecessary.
Hi 🙂 I want to replace the built-in intput -> asp-for tag with a custom one for example asp-for2.
My idea is to add some custom classes for all inputs with my attribute name.
The problem is that in the Proccess() method I want to add my classes, replace the asp-for2 attribute with asp-for and call the base processing mechanism for asp-for (which adds several complex attributes depending on the razor model data type and annotations).
Can you please point me to how this can be done? | https://dotnetcodr.com/2017/02/24/introduction-to-asp-net-core-part-17-custom-tag-helpers/ | CC-MAIN-2021-17 | refinedweb | 1,538 | 57.67 |
Created on 2004-07-16 15:09 by dcjim, last changed 2014-11-14 01:56 by ncoghlan. This issue is now closed..
Logged In: YES
user_id=21627
Lowering the priority, as this apparently is not a
high-priority issue.
I think the lowered priority got lost somewhere along the line.
I have a very similar issue (maybe the same?) at the moment.
Assume the follwing package structure:
main.py
package/
__init__.py [empty]
moduleX.py
moduleY.py
main.py says:
from package import moduleX
moduleX.py says:
from . import moduleY
and moduleY.py says:
from . import moduleX
However, this doesn't work:
bronger@wilson:~/temp/packages-test$ python main.py
Traceback (most recent call last):
File "main.py", line 1, in <module>
from package import moduleX
File "/home/bronger/temp/packages-test/package/moduleX.py", line
1, in <module>
from . import moduleY
File "/home/bronger/temp/packages-test/package/moduleY.py", line
1, in <module>
from . import moduleX
ImportError: cannot import name moduleX
If I turn the relative imports to absolutes ones, it works. But I'd
prefer the relative notation for intra-package imports. That's their
purpose after all.
If you split a large module into chunks, cyclic imports are hardly
avoidable (and there's nothing bad about it; it worked fine before PEP 328).
Note that "import absolute.path.to.module as short" doesn't work either.
So currently, in presence of cyclic imports in a package, the only
remedy is to use the full absolute paths everywhere in the source code,
which is really awkward in my opinion..
I dare to make a follow-up although I have no idea at all about the
internal processes in the Python interpreter. But I've experimented
with circular imports a lot recently. Just two points:
First, I think that circular imports don't necessarily exhibit a
sub-opimal programming style. I had a large parser module which I just
wanted to split in order to get handy file sizes. However, the parser
parses human documents, and layout element A defined in module A may
contain element B from module B and vice versa. In a language with
declarations, you just include a big header file but in Python, you end
up with circular imports. Or, you must stay with large files.
So, while I think that this clean error message Nick suggests is a good
provisional solution, it should not make the impression that the
circular import is a flaw by itself.
And secondly, the problem with modules that are not yet populated with
objects is how circular imports have worked in Python anyway. You can
easily cope with it by not referencing the imported module's objects in
the top-level code of the importing module (but only in functions and
methods).
This came up on python-dev again recently:
Good sleuthing Nick! It's clearly the same bug that Fredrik found.
I tried to test if using Brett' importlib has the same problem, but it
can import neither p.a nor p.b, so that's not helpful as to sorting out
the import semantics.
I believe that at some point many of the details of importlib should be
seen as the reference documentation for the darkest corners of import
semantics. But it seems we aren't there yet.
Sorry, never mind about the importlib bug, that was my mistake.
importlib actually behaves exactly the same way as the built-in import.
I conclude that this is probably the best semantics of import that we
can hope for in this corner case.
I propose to close this as "works as intended" -- and perhaps document
it somewhere.
Maybe it's better to leave it open, waiting for someone to pick it up,
even if this is some time in the future?
In my opinion, this is suprising behaviour without an actual rationale,
and a current implementation feature. I'd be a pitty for me to see it
becoming an official part of the language.
What bothers me most is that
from . import moduleX
doesn't work but
import package.moduleX
does work. So the circular import itself works without problems,
however, not with a handy identifier. This is would be an odd
asymmetry, I think.
I just had a thought: we may be able to eliminate this behaviour without
mucking about in the package globals.
What if the import semantics were adjusted so that, as a last gasp
effort before bailing out with an ImportError, the import process
checked sys.modules again with the full module name?
Not a fully fleshed out idea at this point (and possibly symptomatic of
not being fully awake yet), but I'll bring it up in the current
python-dev thread anyway.
I'm sorely tempted to apply the Van Lindberg clause to the last two
responses by Torsten and Nick. If there was an easy solution it
wouldn't have been open for five years. If you don't believe me, post a
fix. I'll even accept a fix for the importlib package, which should
lower the bar quite a bit compared to a fix for import.c.
No argument from me that my suggestion is a mere glimmering of an idea,
rather than a fully worked out definitely viable solution.
It was just an angle of attack I hadn't seen suggested before, so I
figured it was worth mentioning - the fact that a module is allowed to
exist in sys.modules while only half constructed is the reason "import
a.b.c" can work while "from a.b import c" or an explicit relative import
will fail - the first approach gets a hit in sys.modules and succeeds,
while the latter two approaches fail because the a.b package doesn't
have a 'c' attribute yet.
Figuring out a way to set the attribute in the parent package and then
roll it back later if the import fails is still likely to be the more
robust approach.
The key distinction between this and a "bad" circular import is that
this is lazy. You may list the import at the top of your module, but
you never touch it until after you've finished importing yourself (and
they feel the same about you.)
An ugly fix could be done today for module imports by creating a proxy
that triggers the import upon the first attribute access. A more
general solution could be done with a lazyimport statement, triggered
when the target module finishes importing; only problem there is the
confusing error messages and other oddities if you reassign that name.
I have done a lazy importer like you describe, Adam, and it does help
solve this issue. And it does have the problem of import errors being
triggered rather late and in an odd spot.
It'd probably be sufficient if we raised "NameError: lazy import 'foo'
not yet complete". That should require a set of what names this module
is lazy importing, which is checked in the failure paths of module
attribute lookup and global/builtin lookup.
Changed the issue title to state clearly that the core issue is with circular imports that attempt to reference module contents at import time, regardless of the syntactic form used. All of the following module level code can fail due to this problem:
from . import a
from package import submodule
from module import a
import module
module.a
In Torsten's example
from . import moduleX
can be replaced with
moduleX = importlib.import_module('.moduleX', __package__) (*)
or
moduleX = importlib.import_module('package.moduleX')
If that is not pretty enough then perhaps the new syntax
import .moduleX
could be introduced and made equivalent to (*).
The implementation of issue #17636 (making IMPORT_FROM fall back to sys.modules when appropriate) will make "import x.y" and "from x import y" equivalent for resolution purposes during import.
That covers off the subset of circular references that we want to allow, so I'm closing this one in favour of the more precisely defined proposal.
I'm reopening this, since PEP 451 opens up new options for dealing with it (at least for loaders that export the PEP 451 APIs rather than only the legacy loader API, which now includes all the standard loaders other than the ones for builtins and extension modules)
The attached patch doesn't have an automated test and is quite rough around the edges (as the additional check for the parent being in sys.modules confuses a couple of the importlib tests), but it proves the concept by making the following work:
[ncoghlan@lancre py3k]$ cd ../play
[ncoghlan@lancre play]$ mkdir issue992389
[ncoghlan@lancre play]$ cat > issue992389/mod.py
from . import mod
print("Success!")
[ncoghlan@lancre play]$ python3 -c "import issue992389.mod"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "./issue992389/mod.py", line 1, in <module>
from . import mod
ImportError: cannot import name mod
[ncoghlan@lancre play]$ ../py3k/python -c "import issue992389.mod"
Success!
The new patch will have weird results in the case of a parent module that defines an attribute that's later replaced by an import, e.g. if foo/__init__.py defines a variable 'bar' that's a proxy for the foo.bar module. This is especially problematic if this proxy is used during the process of importing foo.bar
At the very least, this code should NOT be deleting the original foo.bar attribute, but rather restoring its previous value.
All in all, I don't think this is a productive route to take. It was discussed on Python-dev previously and IIRC I outlined all the other reasons why back then. The approach in issue17636 is the only one that doesn't change the semantics of any existing, not-currently-broken code.
In contrast, the proposed change here introduces new side-effects and *more* volatile state and temporal coupling. I don't think this should go in, since the other approach *only* affects execution paths that would currently raise ImportError.
Belatedly agreeing with PJE on this one.
If concerns around circular imports continue to be raised in a post Python 3.5 world (with the issue 17636 change), then we can look at revisiting this again, but in the meantime, lets just go with the sys.modules fallback. | http://bugs.python.org/issue992389 | CC-MAIN-2016-36 | refinedweb | 1,717 | 65.62 |
.
Posted
Monday, June 08, 2009 10:42 AM
by
sushilc |
Yes, happen on Nov. 7 2005 in San Francisco. You can find more information about the Launch at
Looking forward to your feedback and comments.
Posted
Friday, October 28, 2005 12:04 PM
by
sushilc |.
Posted
Tuesday, September 27, 2005 9:49 AM
by
sushilc | starts tomorrow, it going to get even better. Imagine that!
This being my first PDC, I am fired up to meet customers and partners. I just wanted to share some of the DataWorks (my team) activities at PDC:
If you need more information, just drop me a line or see you in LA!
Posted
Monday, September 12, 2005 2:27 PM
by
sushilc |
2 Comments
Posted
Wednesday, March 30, 2005 4:22 PM
by
sushilc |!
Posted
Sunday, March 20, 2005 11:49 AM
by
sushilc | SqlDependency object we are creating a listener on the client to track notifications sent by the server. There are two types of protocol options that SqlDependency supports – HTTP and TCP when creating a listener. The HTTP listener uses the HTTP.SYS functionality to create a listener. By default when no protocol option is specified, we try to create an HttpListener; if that for some reason fails, we create a TCPListener. When a change occurs, the server then dispatches notification messages via a .Net Procedure to the client listener. Now, let’s go over some common issues.
There could be many reasons why we could end up with this. Here are some reasons.
Cause: Since the code on the SQL server that dispatches notification messaged to the client is a .Net Procedure, you will have to enable CLR on Server. We are working on not requiring this restriction.:)
Solution: Here is way to do this for now,
EXEC sp_configure 'show advanced options', '1'goRECONFIGUREgoEXEC sp_configure 'clr enabled', 1goRECONFIGURE
Cause: Since this feature uses the SQL Server Service Broker (aka SSB) infrastructure to get notification, the user has to have the permissions on the Notification Service.
Solution: To grant the permission to user ‘Willy’ on the Service and queue use:
GRANT SEND on service::SqlQueryNotificationService to Willy
GRAND RECEIVE on SqlQueryNotificationService_DefaultQueue to Willy
Also the user needs permission to subscribe to notification. To do this use:
GRANT SUBSCRIBE QUERY NOTIFICATIONS TO Willy
Cause: As said above, Notifications are dispatched from the server to the client via listener that sits on the client. With XPSP2 we have firewall enabled by default. Since the firewall will block any message sent to your TCP/HTTP ports, this may not generate Notification event.
Solution: Make sure these are open for the application.
Cause: There are set of requirements that are placed on the queries for which are notifiable . Basically, the restrictions are quite similar to restrictions for Indexed Views in SQL Server 2000. More information on these requirements can be found at
Solution: Queries that pass the above requirements can only be used.
Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights
Posted
Monday, January 31, 2005 9:44 AM
by
sushilc |
3 Comments
I happened to go to one of the class from a mentoring company. It was presented by Bob Beauchemin-Niels Berglund-Dan Sullivan. Boy! they were great! I was just in time for the ADO.Net presentation that Bob made. He talked about top 3 features that he liked in ADO.Net1. Provider Factory - He talked at great lengths about how easy it was to use provider factory to write generic code2. Meta Data/GetSchema - The easy way to get meta data Schema. More information in his article in MSDN - (link)3. Tracing - Yes, we shipped a way for you to get trace output from System.Data internal code. Now this is the feature that was not that well documented in Beta docs, but this article (written by bob, grin) does a very good job explaining the internals and how to get it working.
It was great to see these guys present. They were awesome and great! (Oh, did I already say that :))
Posted
Friday, December 17, 2004 9:44 AM
by
sushilc |
After a brief hiatus, let me start with blogging the new Notification support in SqlClient MP that is introduced in Whidbey. There are scenarios in which an application would store a cache of data obtain from a DB Server and then re-query from the same cache to save round-trips to the server (for better performance). Typically, the app would want some mechanism to be notified when this very cache was changed by some one. In short, this feature allows you to monitor a specified result-set (collection on table rows, as defined by your select statement.) and then notify you when something is changed in the monitored result-set.
In this blog, I will just post a sample illustrating on how easy it is to set a result-set for Notification. In the upcoming blogs, I will get into more details with some gotchas, tips and tricks with Notifications. Lets see how simple its to get this working. Lets say way, create a table test with following TSQL
create table test (i int)goinsert into test values (1)insert into test values (2)insert into test values (3)insert into test values (4)go
The following sample shows how a console application that reads data from the 'test' table into its cache and will get notified if some one has made changes to this cache on the server.
using System;
using System.Data;
using System.Data.SqlClient;
class QuikExe
{
string connectionstring = "Put you connection string here";Changed += new OnChangedEventHandler(TestEvent);
SqlDataReader r = cmd.ExecuteReader();
//Read the data here and close the reader
r.Close();
Console.WriteLine("DataReader Read...");
}
}
void TestEvent(Object o,SqlNotificationEventArgs args)
Console.WriteLine("Event Recd");
Console.WriteLine("Info:" + args.Info );
Console.WriteLine("Source:"+args.Source );
Console.WriteLine("Type:"+args.Type );
public static void Main()
{
QuikExe q = new QuikExe();
q.DoDependency();
Console.WriteLine("Wait for Notification Event...");
Console.Read();
}
Run the above application and you will see the following outputConnection Opened...DataReader Read...Wait for Notification Event...
To verify that we indeed get a notification when the test table is change. Now invalidate the cache that we read using the following T-SQL statement (using any client tools-Workbench or another console Application :))insert into test values (5)
Now, you will see the following Notification message from the above applicationEvent RecdInfo:InsertSource:DataType:Change
Great! All we did here was to create a SqlDependency object and associate the Command to it before executing. SqlDependency dep = new SqlDependency (cmd);
Also, to get notified we added a call-back event. dep.OnChange += new OnChangeEventHandler(TestEvent);
The SqlNotificationEventArgs in turn has three properties which are enums:1. Info - Gives information on what caused the notification. 2. Source - Gives the source of this notification. 3. Type - Type of notification. Since in our case an Insert statement caused a Change in Data. The args properties are set as Info=Insert;Source=Data;Type=Change;
Note: Since the supporting functionality that makes this happen (SSB) is only available in SQL Server 2005 (Yukon), the above code will only work with SQL Server 2005.
So how did all this happen? In SQL Server 2005, we have a SSB service running in the MSDB database (called the SqlQueryNotificationService). When a command associated with a SqlDependency executes; it makes a request to this service for being notified if there occurred any change in the obtained result set. When a change occurs, the SSB service then puts a notification message in a specified Queue. The server then send the message from the queue to the client. The client then calls the call-back Event appropriately.
Tips and tricks to be aware while using SqlDependency is coming soon,Stay posted.
Posted
Tuesday, December 07, 2004 9:47 AM
by
sushilc |
5 Comments.Sql;
public class Repro
public static int Main(string[] args)
SqlDataSourceEnumerator sqldatasourceenumerator1 = SqlDataSourceEnumerator.Instance;
DataTable datatable1 = sqldatasourceenumerator1.GetDataSources();
foreach (DataRow row in datatable1.Rows)
Console.WriteLine("****************************************");.
Posted
Thursday, October 14, 2004 11:56 AM
by
sushilc |
8 Comments
There are situation in real world; when you dont want to write code, dependent on just one of the managed provider. This also helps to easily move from using one provider to another if the code design changes in the future. Pre-Whidbey, the only way to do this was to write your own wrapper classes for the providers. In whidbey this can be done usign ProviderFactories. Here is a sample code:
using System.Data.Common;
namespace DataViewer.Repro
public class Repro
public static int Main(string[] args)
string conString = "ConnectionString here";
string cmdText = "CommandText here";
//Select SQL Client factory - Can change to use any provider later
DbProviderFactory factory = DbProviderFactories.GetFactory("System.Data.SqlClient");
//Create Connection from the factory
DbConnection cn = factory.CreateConnection();
cn.ConnectionString = conString;
cn.Open();
//Create Command from the factory
DbCommand cmd = factory.CreateCommand();
//Execute a command from the conneciton
cmd.Connection = cn;
cmd.CommandText = cmdText;
DbDataReader reader = cmd.ExecuteReader();
while (reader.Read())
{
Console.WriteLine(reader.GetValue(0));
}
return 1;
Caution:1. Generalization might also cause an extra overhead.2. When writing genralized code, you will not be able to use features that are provider specific. You would have to special case them.
Posted
Friday, October 08, 2004 2:24 PM
by
sushilc |
8 Comments
I have been wanting to post for a long time now, and have finally decided to FIGHT my slackness. I will continue with my views on some of the new features in ADO.Net for Whidbey. I will start with talking about a new feature in Whidbey - Provider Enumeration.
Pre-Whidbey there was no way to know if a particular provider is available on your computer. In addition there was no API from ADO.Net that allowed you to choose a provider at execution time (by some cool looking UI) and then run the Application, written in a provider-independent way with the selected provider. There could be scenarios in which getting this list of providers seamlessly from the API could be useful.
In Whidbey, there is a way to enumerate the providers on the computer. Here is a sample program that does just that:
using System.Data;using System.Data.Common;using System;
public class Repro{ public static int Main(string[] args) { DataTable datatable1 = DbProviderFactories.GetFactoryClasses(); // DbProviderFactories foreach (DataRow row in datatable1.Rows) { Console.WriteLine("Provider Name:"+row["Name"]); Console.WriteLine("Provider Description:"+row["Description"]); Console.WriteLine("Provider Invariant Name:"+ row["InvariantName"]); Console.WriteLine("**************************************************************"); } return 1; }}
Output:Provider Name:Odbc Data ProviderProvider Description:.Net Framework Data Provider for OdbcProvider Invariant Name:System.Data.Odbc**************************************************************Provider Name:OleDb Data ProviderProvider Description:.Net Framework Data Provider for OleDbProvider Invariant Name:System.Data.OleDb**************************************************************Provider Name:OracleClient Data ProviderProvider Description:.Net Framework Data Provider for OracleProvider Invariant Name:System.Data.OracleClient**************************************************************Provider Name:SqlClient Data ProviderProvider Description:.Net Framework Data Provider for SqlServerProvider Invariant Name:System.Data.SqlClient**************************************************************
What did I just do? The DbProviderFactories has a static method GetFactoryClasses that enumerates through all the providers that are on my system and returns it as a DataTable. Then I iterate throw all the rows in the DataTable in the foreach statement and print the output. The returned table has 5 columns with the following Column Names
Q: Where is the information about the provider got from?A: All this information about the provider is received from the Configuration file. (This could be any of the config file- machine-level, app-level or user-level)
Q: Why doesn't a third party provider does not feature in the list even when the provider is installed on my machine?A: There is no standard way to know if a 3rd party provider is installed on the system. Since the enumeration shows only the information available in the configuration file, to make it appear in the list the information pertaining to the provider should be mentioned in the config file.
Posted
Thursday, October 07, 2004 12:07 PM
by
sushilc |
3 Comments
Posted
Wednesday, August 04, 2004 1:38 PM
by
sushilc |
In this section we will look at ways ADO.Net v2.0 (Code named 'Whidbey') allows us to insert/delete/update Xml data values in a table containing Xml column in SQL Server 2005 (Code named 'Yukon'). With earlier versions of the .Net Framework (1.0 and 1.1) the System.Data.SqlClient namespace will consume and emit XML as String values.Because of this, it should not be a surprise that they would behave the same way with Whidbey. This was made so as to not break customers using this new datatype of the Server with older versions of the framework. Note: The examples below use the Customer table defined in the Part I of the blog.
Xml Values from DataReader: XML values in SqlDataReader are surfaced like any other type. The GetValue() method will get the Xml Value as String where as the GetSqlValue() method will get the value as an instance of SqlString. The following examples show both of the retrieval methods.
Get Value as XmlReader using (SqlCommand Cmd = Conn.CreateCommand()) { Cmd.CommandText= "SELECT OrderXml FROM Customer WHERE CustomerId = 2"; SqlDataReader Reader = Cmd.ExecuteReader(); if (Reader.Read()) { string XmlValue = (string) Reader.GetValue(0); //Gets the XML value as string } }
Get Value as SqlXml: With ADO.Net 2.0, we have introduced a new class SqlXml. This new class adds SQL-specific feature like null semantics to the XML type. This is consistent with other SqlTypes (like SqlString for VARCHAR, SqlInt16 for Integer). This class allows the user to create an XmlReader (not to be confused with DataReader) on the SqlXml value using the SqlXml.CreateReader method. An example is shown below: using (SqlCommand Cmd = Conn.CreateCommand()) { Cmd.CommandText= "SELECT OrderXml FROM Customer WHERE CustomerId = 2"; SqlDataReader Reader = Cmd.ExecuteReader(); if (Reader.Read()) { SqlXml SqlXmlValue = Reader.GetSqlXml(0); PrintXmlReader(SqlXmlValue.CreateReader()); //Gets the XmlReader from SqlXml object and prints it using a Helper function } }Note:1. In the above examples, SqlClient Managed Provider internally converts the Binary formatted XML that it receives from the server into string representation. 2. To get the XmlReader object for the XML data type, use the SqlXml.CreateReader method.
Parameterized Xml ValuesXML values can also be used in parameters. The value itself can be expressed as a string, an XmlReader-derived type instance or a SqlXml object. Examples below show how to set the parameters for each of these values.
Xml Value as String In this example, the string is directly used to set the Parameter's Value using (SqlConnection Conn = new SqlConnection (ConnectionString)) { Conn.Open(); using (SqlCommand Cmd = Conn.CreateCommand()) { //INSERT VALUES using PARAMS XmlReader XmlValue = new XmlTextReader("Sample.Xml"); Cmd.CommandText = "INSERT INTO Customer VALUES (4,'Chris Andrews',@XmlFile)"; Cmd.Parameters.AddWithValue("@XmlFile", "<order><item><id>20</id><name>Widgets</name><units>3</units></item></order>"); Cmd.ExecuteNonQuery(); } }Xml Value as SqlXmlJust like other types, SQL-specific type for XML can be used to set the Parameter's value for XML. SqlXml ctor() takes XmlReader or a Stream. The following example creates an instance of XmlTextReader and then sets the value of the parameter. An instance of XmlTextReader is created by opening a file with name:"Sample.Xml". using (SqlConnection Conn = new SqlConnection (ConnectionString)) { Conn.Open(); using (SqlCommand Cmd = Conn.CreateCommand()) { //INSERT VALUES using PARAMS Cmd.CommandText = "INSERT INTO Customer VALUES (4,'Chris Andrews',@XmlFile)"; SqlXml SqlXmlValue = new SqlXml( new XmlTextReader ("SampleInfo.Xml")); // This passes the file SampleInfo.Xml as the parameter's value Cmd.Parameters.AddWithValue("@XmlFile", SqlXmlValue); Cmd.ExecuteNonQuery(); } }Note: You have to make sure that the XmlReader that is passed as an argument is on the top most node, else partial results will be inserted in the table, depending on the current position of the XmlReader.
Posted
Tuesday, August 03, 2004 9:39 AM
by
sushilc |
6 Comments
After a long hiatus, let me start with how the new XML data type in SQL Server 2005 is exposed via ADO.Net 2.0. I will discuss this new data type in following parts:
The following is section 1 of the 2 part series:
XML data type in SQL Server 2005 – A brief Introduction
A new scalar data type is introduced in SQL Server 2005 for storage and retrieval of XML data. XML value that is stored in the column is basically an XML fragment like single root, multiple roots, text nodes, empty string, text nodes at the top. Consider you want to create a Customer table with the following Columns:
CustomerId int, CustomerName varchar(40), OrderXml xml
CustomerId int, CustomerName varchar(40), OrderXml xml
Here is an example showing how to create such a table and insert some values as literals using TSQL
INSERT INTO Customer VALUES (1,'Allison Gray', '<order> <item> <id>20</id> <name>Widgets</name> <units>3</units> </item> </order>')go
Fact: If the string character is Unicode then the XML values is always parsed in as UTF-16. Typed XMLThe above XML data type is untyped meaning it is not associated with any schema. If we know that OrderXML adheres to one specific XML Schema, we can associate it to a previously loaded XML schema with the following syntax:-- Consider the Schema/namespace - OrderSchema is defined using the CREATE XML SCHEMA COLLECTION statementCREATE TABLE Customer (CustomerId int, CustomerName varchar(40), OrderXml xml(OrderSchema))go
XML MethodsIn addition to the above, XML data type has some methods. Some of them are:
Since our goal is to see the interaction of XML data type with ADO.Net, the above introduction would suffice. There are other awesome features on XML data type on the server and are not discussed here due to the scope of the article.
Posted
Thursday, July 29, 2004 1:24 PM
by
sushilc |
8 Comments | http://blogs.msdn.com/sushilc/ | crawl-002 | refinedweb | 2,966 | 57.16 |
C.Y.M wrote: > C.Y.M wrote: > >>Michael Krufky via CVS wrote: >> >> >>>CVSROOT: /cvs/linuxtv >>>Module name: dvb-kernel >>>Changes by: mkrufky 20051001 19:01:45 >>> >>>Modified files: >>> linux/drivers/media/common: saa7146_i2c.c >>> linux/drivers/media/dvb/bt8xx: dvb-bt8xx.c >>>Added files: >>> build-2.6 : compat.h >>> >>>Log message: >>>Add compat.h for backwards compatability >> >> >>Should compat.h be added to build-2.6? If we use the ./makelinks build method, >>then compat.h would not be found. >> > > > How about including the header with ifdefs? That way it stays out unless needed? > > #if (LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,13)) > #include "compat.h" > #endif Your suggestion defeats the entire purpose of compat.h... The point is that all the version specific code is in compat.h and only compat.h ... Johannes asked me to do this in a way that makes the least amount of change to the actual source code. Including compat.h where it isn't needed in certain kernel versions doesn't cost anything. Also, your suggestion would also require the inclusion of linux/version.h, which is a no-no. If you take a look at compat.h, you'll see that I am STILL not using anything kernel version specific. Instead, I am testing for whether or not a constant is defined. As time goes by, more files will need to include compat.h ... We can throw all compatability checks inside compat.h, and this will not affect the upstream patching process. Thank you for the suggestion. Cheers, Michael Krufky | http://www.linuxtv.org/pipermail/linux-dvb/2005-October/005171.html | CC-MAIN-2015-32 | refinedweb | 256 | 72.22 |
In the previous chapter we looked at how Python provides the basic facilities needed to implement what looks like a classical approach to objects – that is class and methods. In this chapter we look more closely at how this works. It is slightly more complicated than you might imagine.This extract is from my new book with the subtitle "Something Completely Different".
You don’t have to know how class does its magic generally and to create objects to use object-oriented programming but if you do know how it works there many more possibilities open to you. Python exposes much of the mechanism of objects so that you can modify the way that it works.
This is often called meta-programming but where ordinary programming ends and meta-programming begins is a fairly arbitrary line and in Python you can do meta-programming in Python.
Most of the work of the class is done by a set of magic methods. In this chapter the focus is on those methods that are involved in creating an object without the complication of inheritance – for that see Chapter 11.
We have already met __init__ as a way of creating instance attributes and generally initializing the instance. When you call a class as a function __init__ is run just after another magic method, __new__.
It is confusing at first to have two methods involved in creating an instance but it is perfectly logical.
The __new__ class method is responsible for creating an object of the class. It brings the instance object into existence.
Then __init__ is called to initialize the instance by adding instance attributes and assigning values.
This is all fine but what exactly does it mean that __new__ is used to create an instance of the class?
The class actually creates an instance of its superclass.
We haven’t gone into detail about inheritance in Python, but the basic idea is that every class has a superclass – i.e. the class that it is based on. The class adds attributes and methods to the object that it derives from its superclass. By default every class has the class object as its superclass.
So to construct an instance of the class you need an instance of the superclass, which is by default object.
How do you get an instance of the superclass?
Easy, just explicitly call its __new__ method and you will get an initialized instance.
Consider the class:
class MyClass:
MyAttribute=20
what happens when you write:
obj=MyClass()
The first thing that happens is that __new__ is called and the class definition is essentially:
class MyClass:
def __new__(cls):
return object.__new__(cls)
MyAttribute=20
obj=MyClass()
The usual way of calling __new__ on the superclass is to use the super function which is described in detail in Chapters 11 and 12, but we know in this simple situation that the superclass of MyClass is object.
When you create an instance __new__ is called and this returns an instance of object i.e. a minimal object with no attributes other than a set of magic methods which are standard in all Python objects. Of course this is exactly what you need as the attributes set by MyClass are class methods and not created on the instance. The variable, obj in this case, is then set to reference the new instance.
Recall that at first all of the attributes that an instance seems to have are hosted by its class object.
The parameter that you pass to __new__ has to be a type object which for the moment we can take to be a class or a built-in type. It plays a very minor role in the creation of the instance but you will find that it is stored in the __class__ attribute of the instance. It is used to determine what the instance is an instance of. In most cases you simply pass the default parameter, cls in this case, which is automatically set to the class i.e. MyClass in this case.
If you don’t want to do this you don’t have to.
For example:
class MyClass2:
pass
class MyClass:
def __new__(cls):
return object.__new__(MyClass2)
MyAttribute=20
myObj=MyClass()
print(myObj.__class__)
Notice that now we have passed MyClass2 to the call to __new__ which results in __class__ being set to MyClass2 even though the instance was created by MyClass.
In Python type is a matter of keeping track of what created the instance and it is largely based on an honor system – if you want to break the rules and lie about what created the instance you can. The system does, however, check that the cls you specify is a subtype of the type you are creating. Notice that when you use object.__new__(MyClass) what you get is a new instance of object that claims to be an instance of MyClass. Recall everything is a subtype of object.
The type that is assigned doesn’t actually change very much.
The one thing it does change is whether or not __init__ is called. As long as __new__ returns an object of the indicated type, or subtype, then __init__ is called but if it returns anything else __init__ is not called.
That is, the system only calls __init__ if the __class__ of the instance matches the class used to create it. So in the previous example where object.__new__(MyClass2) was used they don’t match and __init__ isn’t called.
However, in:
class MyClass:
def __new__(cls):
return object.__new__(cls)
def __init__(self):
self.MyAttribute = 20
print("__init__ called")
myObj=MyClass()
You will see the __init__ called and MyAttribute will exist in the instance’s __dict__ and be set to 20.
Finally, both __new__ and __init__ are passed any arguments used when the class is called as a function. This means you have to include the parameters even if you don’t use them.
class MyClass:
def __new__(cls,value):
return object.__new__(cls)
def __init__(self,value):
self.MyAttribute = value
myObj=MyClass(42) | https://www.i-programmer.info/programming/python/12364-programmers-python-inside-class.html | CC-MAIN-2019-13 | refinedweb | 1,012 | 71.85 |
Do I have a different problem in this case?
The sd card and the Ethernet stuff run completely independently and do not affect each other on my Uno.
) { }
Initializing SD card...initialization failed. Things to check:* is a card is inserted?* Is your wiring correct?* did you change the chipSelect pin to match your shield or module?
But on the shield they are supposed to be independent.
I've tried all of the example sketches for the SD card and they all fail to initialize the card.
void setup(){ // Open serial communications and wait for port to open: Serial.begin(9600); while (!Serial) { ; // wait for serial port to connect. Needed for Leonardo only } // disable w5100 SPI pinMode(10,OUTPUT); digitalWrite(10,HIGH); Serial.print("\nInitializing SD card..."); // rest of your setup stuff
Is there any way to debug exactly why the SD card initialization step is failing?
#include <SD.h>#include <SPI.h>Sd2Card card;SdVolume vol;SdFile root;// Chip select pin for SD card.const int sdCsPin = 8;// Replace the -1 with the CS pin number of any shared SPI device.const int sharedCsPin = -1;void setup() { Serial.begin(9600); // Disable any other SPI devices if (sharedCsPin >= 0) { pinMode(sharedCsPin, OUTPUT); digitalWrite(sharedCsPin, HIGH); } // Try to initialize the SD card if (card.init(SPI_HALF_SPEED, sdCsPin)) { Serial.println("card init OK"); } else { Serial.print("errorCode: "); Serial.println(card.errorCode(), HEX); Serial.print("errorData: "); Serial.println(card.errorData(), HEX); return; } // Try to initialize the FAT volume. if (vol.init(&card)) { Serial.println("vol init OK"); } else { Serial.println("vol init failed"); return; } // Try to open root. if (root.openRoot(&vol)) { Serial.println("open root OK"); } else { Serial.println("open root failed"); }}void loop() {}
An alternative is to hack the libraries to not use the SS pin the way it does.the SPI becoming a Slave, the MOSI and SCK pins become inputs.2. The SPIF Flag in SPSR is set, and if the SPI interrupt is enabled, and the I-bit in SREG isset, the interrupt routine will be executed.
If you are using an Uno, the w5100 SPI will be disabled by accident when the SD.begin() call sets the default SPI slave select (D10) to OUTPUT and HIGH.
They should set that w5100 SPI SS pin OUTPUT and HIGH. I know the SPI library does that intentionally | http://forum.arduino.cc/index.php?topic=140401.msg1054835 | CC-MAIN-2014-52 | refinedweb | 388 | 52.05 |
Content-type: text/html
#include <sys/socket.h>
ssize_t send (
int socket,
const void *buffer,
size_t length,
int flags );
[Digital] The following definition of the send() function does not conform to current standards and is supported only for backward compatibility (see standards(5)):
int send (
int socket,
char *message,
int length,
int flags );
Interfaces documented on this reference page conform to industry standards as follows:
send(): XPG4-UNIX
Refer to the standards(5) reference page for more information about industry standards and associated tags.
Specifies the unique name for the socket. Points to the buffer containing the message to send. Specifies the length of the message in bytes. Allows the sender to control the transmission of the message. The flags parameter to send a call is formed by logically ORing the values shown in the following list, defined in the sys/socket.h header file: Sends out-of-band data on sockets that support out-of-band communication. Sends without using routing tables. (Not recommended, for debugging purposes only.)
The send() function sends a message only when the socket is connected. The sendto() and sendmsg() functions can be used with unconnected or connected sockets.
Specify the length of the message with the length parameter. If the message is too long to pass through the underlying protocol, the system returns an error and does not transmit the message.
No indication of failure to deliver is implied in a send() function. A return value of -1 indicates only locally detected errors.
If no space for messages is available at the sending socket to hold the message to be transmitted, the send() function blocks unless the socket is in a nonblocking I/O mode. Use the select() function to determine when it is possible to send more data.
[Digital] The send() function is identical to the sendto() function with a zero-valued dest_len parameter, and to the write() function if no flags are used. For that reason, the send() function is disabled when 4.4BSD behavior is enabled (that is, when the _SOCKADDR_LEN compile-time option is defined).
Upon successful completion, the send() function returns the number of characters sent. Otherwise, a value of -1 is returned and errno is set to indicate the error.
If the send() function fails, errno may be set to one of the following values: The socket parameter is not valid. A connection was forcibly closed by a peer. The socket is not connection-oriented and no peer address is set. The message parameter is not in a readable or writable part of the user address space. A signal interrupted send before any data was transmitted. The message is too large to be sent all at once, as the socket requires. The socket is not connected or otherwise has not had the peer prespecified.() function.
Functions: recv(2), recvfrom(2), recvmsg(2), sendmsg(2), sendto(2), shutdown(2), connect(2), socket(2), getsockopt(2), select(2), setsockopt(2)
Standards: standards(5) delim off | http://backdrift.org/man/tru64/man2/send.2.html | CC-MAIN-2017-04 | refinedweb | 495 | 56.25 |
I have been suffering from the problem that the state is not updated until reloading even if setState is done by react for more than a week.
I want to update the information of this.state.name over time, but this.state.name that is displayed does not change even after the set time elapses, and when I refresh the browser, this.state.name "changes" Will be.
Why is the status not updated?
Below is the code for codes andbox.
Try setting this.state.end a few seconds after the current time. source code
import React from "react"; import dateToFormatString from'./Datefmt'; export default class Human extends React.Component { constructor (props) { super (props); this.state = { name: "Before changing", end: "2020-11-25T23: 01: 00", }; } render () { const date = dateToFormatString (new Date (),'% YYYY%-% MM%-% DD% T% HH%:% mm%:% ss%'); if (this.state.name! == "Weird") { if (this.state.end<date) { this.setState ({name: "Weird"}); } } return ( <> {this.state.name} {date} </> ) } }
- Answer # 1
Related articles
- javascript - state cannot be updated in react function component
- javascript - [react] state is not reflected during asynchronous processing
- javascript - how to update react-redux state
- javascript - react how to write an input check
- javascript - get json data of external api using useeffect of react hooks
- javascript - react django typeerror: cannot read property'map' of null error
- typescript - change react state
- javascript - i would like to know what to do if react native's library name is long but git does not show filename too long
- javascript - how to install react native firebase/messaging
- javascript - how to get prevstate of other state in usestate of react?
- react typescript type error when updating state
- javascript - i want to implement google recaptcha in react
- i intended to update one javascript array, but two are updated
- react native - [hook error] notification of react and expo is set in state
- javascript - alternative method of componentwillmount of react and how to write with hooks
- javascript - when making a web application with react, isn't the advantage of nextjs lost now?
- javascript - i want to do something like an image with react:
- javascript - how to change state of parent component from child component in react
- i want to keep the state of the previous page when i press the back button with javascript (or jquery)
render ()If you write roughly
props,
stateWill be called again when is changed.
But for time comparison
dateIs
render ()It is generated by the processing in
render ()It does not change unless the conditions for executing are met.
In the case where it is completed within this class, it can be realized by the following implementation.
An example of using the entire explanation of this site | https://www.tutorialfor.com/questions-323931.htm | CC-MAIN-2021-25 | refinedweb | 444 | 59.74 |
18 May 2011 14:57 [Source: ICIS news]
(Recasts, clarifying fifth paragraph)
GUANGZHOU (ICIS)--?xml:namespace>
This would be due to new applications in the lighting industry and the lightweight mobility sector, Bayer MaterialScience head for Asia PC Rainer Rettig said on the sidelines of the Chinaplas 2011 plastics and rubber exhibition. The lightweight mobility sector uses lighter materials on modes of transport such as cars, trains and aircraft.
China's PC demand growth will be higher than the global figure of 6%, said Rettig.
"I see no evidence to end the [PC market] growth, which is twice [as fast as] other commodities,” Rettig said.
Bayer MaterialScience plans to build a new 200,000 tonne/year PC facility in
By 2016 the company will have more than doubled its capacity to 500,000 tonnes/year as part of a €1bn investment plan for its integrated production site in Shanghai.
Rettig said that the new capacity will help
PC’s increasing use in the lightweight mobility sector and in the lighting industry will boost the demand growth in China, Rettig said.
Per capita consumption of PC in Asia and
Chinaplas is being held in | http://www.icis.com/Articles/2011/05/18/9460759/china-pc-demand-set-to-grow-8-annually-in-next-five-years.html | CC-MAIN-2014-10 | refinedweb | 193 | 56.59 |
AWS Developer Blog
Asynchronous Amazon Transcribe Streaming SDK for Python (Preview)
We are pleased to announce the first preview release of an asynchronous Amazon Transcribe streaming SDK for Python. Amazon Transcribe streaming transcription enables you to send an audio stream and receive a stream of text in real time. This initial preview release of the SDK provides simple and easy to use interfaces for the Amazon Transcribe streaming APIs in Python. Let’s dive into a code sample.
Example: Transcribing Audio in Real Time from a Local File
Prerequisites
To follow along with this sample code you’ll need to be using a recent version of Python (3.6+), an AWS account, and the following Python libraries:
python -m pip install amazon-transcribe aiofile
The first dependency is the Amazon Transcribe Streaming SDK for Python. The second is aiofile, a library that gives us an asynchronus interface to the filesystem.
Constructing a Client
We’ll begin by constructing an SDK client for Transcribe Streaming in our desired region:
from amazon_transcribe.client import TranscribeStreamingClient # Setup up our client with our chosen AWS region client = TranscribeStreamingClient(region="us-west-2")
Next, we can initiate a transcription stream by calling the
start_stream_transcription API.
# Start transcription to generate our async stream stream = await client.start_stream_transcription( language_code="en-US", media_sample_rate_hz=16000, media_encoding="pcm", )
Now that we have a handle to a transcription stream we can begin to write audio events into it. We’ll define an asynchronous function that writes the contents of the audio file into the stream.
Note: The sample audio file is available in the GitHub repository for the SDK.
import aiofile()
With the input side of the stream handled, let’s move on to the output side. While it’s possible to read the events of the output stream by using it as an asynchronous generator, we’ll implement the provided event handler interface for this stream type which defines callbacks to take care of specific event types.
from amazon_transcribe.handlers import TranscriptResultStreamHandler from amazon_transcribe.model import TranscriptEvent class MyEventHandler(TranscriptResultStreamHandler): async def handle_transcript_event(self, transcript_event: TranscriptEvent): # This handler can be implemented to handle transcriptions as needed. # In this case, we're simply printing all of the returned results results = transcript_event.transcript.results for result in results: for alt in result.alternatives: print(alt.transcript)
Now that both the input and output of the stream are handled we can instantiate our handler class and instruct asyncio to simulatenously execute our read and write handlers.
import asyncio # Instantiate our handler and start processing events handler = MyEventHandler(stream.output_stream) await asyncio.gather(write_chunks(), handler.handle_events())
And that’s all it takes to begin sending audio and receiving transcriptions in real time from Python. For a complete sample file of the code in this example and other example programs see the examples on GitHub.
Feedback
Now that we’ve seen a real example let’s talk about some of the underlying technologies used to make this SDK possible:
The AWS Common Runtime provides Python bindings to an asynchronous HTTP/2 implementation in C, as well as many other interfaces crucial to an SDK such as AWS SigV4 signing, and credential resolution.
This SDK also heavily leverages static typing via mypy which allows for improved IDE autocompletion, documentation, and static type checking.
Last but not least, the provided interfaces are all asynchronous and provided to be used with the standard library asynchronous I/O framework included with Python asyncio.
These inclusions are all firsts for the Python SDK team and we would greatly appreciate any feedback on the technologies, interfaces, documentation, and overall experience we’re providing with this preview SDK. While the SDK is in preview we have the most flexibility to improve the library and we can’t do it without your feedback. Any feedback can be provided via the issue tracker on GitHub.
Conclusion
We hope this short post and example have shown the functionality of this preview Python SDK for Amazon Transcribe Streaming and you’re as excited about the future of the Python SDK as we are. We look forward to hearing your feedback and all the great things being built with this! | https://aws.amazon.com/blogs/developer/transcribe-streaming-sdk-for-python-preview/ | CC-MAIN-2021-10 | refinedweb | 693 | 50.87 |
Com640 weekly downloads
FLAC Frontend
The new, updated front-end for FLAC!1,010 weekly downloads
J7Z
J7Z is an alternative 7-Zip GUI. It was designed by Xavion. 7-Zip is a high-compression file archiver. It was designed by Igor Pavlov.186 weekly downloads
Podi ZLib Data Compression Library
ZLib 1.2.3 wrapper for Delphi language. It works on latest Delphi 2010 too.1 weekly downloads
Renpad Backup
Renpad Backup is a small but powerful backup program. It has been designed with the end user in mind. Specifically targeting ease of use.2
Win Local Arch
Windows unbuffered archive compresion console application1 weekly downloads
Z
A simple library for unzipping Zip Files using C#. This does not presently handle zipping, if you are interested in contributing, contact me. I made this because it was hard to find a completely free unzipping library for C#.1
epo
"epo" is an advanced archiving system on Windows platforms. It tightly integrates into Explorer through its shell namespace extension and offers very easy-to-use archiving features.0 weekly downloads | http://sourceforge.net/directory/security-utilities/storage/archiving/compression/os%3Avista/?sort=name | CC-MAIN-2014-52 | refinedweb | 179 | 61.73 |
.
General Impressions and Tactics
Flex is always a completely different mindset to think in, and even the amount of interactivity present in this limited site was too much to build 100% in Flex. I backed out and built the “game” (ha ha) portion of the site in Flash with AS3 and Tweener, even going so far as to use plenty of timeline animations. Let’s never forget that despite all our powerful coding techniques, hand animation has its place. This part is loaded in a SWFLoader and communicates using event bubbling (hooray!)
In this site I tried to synchronize the state of multiple different parts of the site using a centralized set of states. All of the elements on the site share a common set of states which are stored as static constants of a States class (call it something different yourself, since this interferes with autocompletion when you’re typing an <mx:states> property tag). I always use data binding to connect up to those states: <mx:State. Navigations are sent right to the top (I ended up factoring out the navigator class since the navigations are so straightforward here), and then passed top-down, recursively when necessary. This simple approach to navigation let me break up the site into tiny chunks but still maintain a unified state without using different mechanisms for each part. The technique worked out well — for a tiny site like this.
I rediscovered that relying on states is great because state changes automatically have plenty of events and effects to bind to, and they are a great way to control transitions. I rediscovered that you should always resist the urge to bend a component to your will. Just because you have something that looks like a horizontal slider, you can spend endless hours trying to break into and override the operation of a Flex component, then realize that writing startDrag() isn’t really that hard.
I used resource bundles to easily do the frequent copy changes you know you can expect when a site has to pass legal review. This was a really good choice, and I love resource bundles, though they can be tiring to type and confusing to set up. I’ll cover them in more detail below.
I also rediscovered that flex effects are incredibly hard to do cool things with. However, let’s not forget that they’re super easy to do simple things with. I was groaning at the prospect of adding animated fade rollovers to all this text, then I went out and did it and it took like 5 seconds (much easier than writing all that code for event handlers):
<mx:Text ... <mx:Fade <mx:Fade
More general tips: Use Canvas for everything. Always set horizontalScrollPolicy and verticalScrollPolicy to "off". Use clipContent="false" to your advantage as well. Don’t forget the really powerful horizontalCenter="0" and verticalCenter="0" for aligning things, even inside non-layout-managed containers.
You can use Flash-style display list access. If you start feeling constrained by Flex but you don’t need to build a whole darn SWF for one thing, you can build the clips you like in the places they need to be, and use it as an asset inside an Image tag. Then you can use the content property to “break through” the Flex framework into the Flashy goodness inside. For example, take the red marker that fills up the clue bar as you find clues. Man, such a simple thing, but it’d be pretty annoying to do it right in Flex when it has to look just so! So I have all these clips laid out on stage and put in the right place, and I assign the top level clip a linkage class, export to SWF, and pull it into an Image:
<mx:Image
Then I can just tinker with the red bar inside it:
var fill:DisplayObject = DisplayObject(clueBarClip.content["fill"]); fill.scaleX = progress.numCluesFound / 3;
That was sooo easy. First I got my way into that library instance by accessing the content of the image, then see how I just grabbed the inner clip by its stage instance name “fill”? Use this creatively and don’t forget to mix in Flash when you don’t need Flexiness.
One last tip. Always check to see if someone else has built that thing you’re tearing your hair off to build. Flex components are so much easier to bundle up and reuse than flash components, I’ve found. Beside flexlib, there are several lists of useful components out there, like flexbox.
What do you mean, Flex doesn’t do that?
I kind of assumed that Flex did a few things for you that it does not. Let us not forget:
- Flex does NOT have a video player component! That’s right, all it has is a video display component. You’ll have to build your own scrubber, time display, controls, buffer screen, omg.
- Flex will NOT validate a whole form at once. Each one of the validators only works on its own. If you want to ensure a whole form is valid or not, tough titties. I thought there’d be an easy way to hack a bunch of validators together, but hours of hacking later, I was only frustrated. Thank goodness Paul Rangel came along and solved this problem rather handily. I used his form validator to control the enabled….ness? of my buttons.
- Flex does not seem to have a validator for combo boxes, radio groups, or check boxes. However, I built an exceedingly simple one which makes this a snap. See ComboValidator. This code uses it to validate a combo box (the first value is instructional and won’t be accepted) and a checkbox (which you need to check).
<validators:ComboValidator <validators:ComboValidator
Freaking Gotchas
Freaking Flex! Oh, how I cursed you.
- Preloaders. Flex, you utterly fail! You know nobody paying money for a site is going to allow the default Flex loader. And yes, you can specify your own preloader class with the preloader attribute on the Application, but that has serious issues with using embedded assets. Yes, there are brave people who have figured out how to do this, but without copying their solutions almost verbatim, including some mysterious parts (with the mime-type and casting to a ByteArray, using a Loader? Two classes?) I wasn’t able to get things to work. And even so, I’ve heard reports that while loading my swf, the AVM hangs until the assets gets loaded — sometimes popping the script timeout error. All in all, doing a custom preloader in Flex that uses assets is really essential, and is not very well supported or communicated about. When I use this technique, does the Flex compiler know to put all the assets in my preloader in the first frame? Who knows! I’d like a flex compiler option to specify a SWF or class reference as a preloader, and guarantee that all of that is compiled in frame 1. Yugh. Please fix for Flex 4!
- Scale 9. As I wrote about in Introduction to Flex 2, the big difference between skins and background images is that you can use scale 9 on your skins to let one image work in many different sizes without looking awkward. But for whatever reason, and nobody ever tells you this, you can’t use scale 9 with assets embedded from symbols in SWFs. It just doesn’t work. Regardless of whether you build the guides in Flash yourself, or write them in the embed tag. If you want to use scale 9 in your skins, pull them in as PNGs, and use the all-but-hidden embed “grid” attributes:
Button { up-skin: Embed(source="button/off.png", scaleGridLeft="10", scaleGridTop="7", scaleGridRight="51", scaleGridBottom="13"); over-skin: Embed(source="button/over.png", scaleGridLeft="10", scaleGridTop="7", scaleGridRight="51", scaleGridBottom="13"); down-skin: Embed(source="button/down.png", scaleGridLeft="10", scaleGridTop="7", scaleGridRight="51", scaleGridBottom="13"); disabled-skin: Embed(source="button/disabled.png", scaleGridLeft="10", scaleGridTop="7", scaleGridRight="51", scaleGridBottom="13"); }
Don’t forget that you have to duplicate your skin for all states that might be used, or the Halo skin will show up instead (that kind of sucks). I wasted so much time trying to work around my scale 9 skins not scaling by 9. Sooo much time. But I made ‘em PNGs and suddenly everything is hunky-dory. AUGH.
- Disappearing fonts. Some Flex components make the brilliant move of forcibly applying a font style. So if you keep seeing your fonts disappear, check the type of the component. Buttons and all their subclasses will default to a font-weight of bold, so if you don’t embed the bold version of a font or remember to set font-weight to normal, you might not ever see your buttons’ labels, or they might only appear on your computer, or show up as Times New Roman or some default font on a user’s box. Always remember to test your sites while turning off the fonts that you used to build it!
Speaking of which, I have to endorse font face embedding using SWF fonts. It’s the only way to embed PostScript fonts (at least in Flex 2), you can set the antialiasing settings and the character ranges visually in the IDE, and most importantly, you can share files so easily without trying to get the same font working with multiple developers who might have different versions of the font, be running on different platforms that assign different names to the font, and any amount of other ridiculous fonttomfoolery. Just check in your font swfs, and everyone will be happy.
- Resource Bundles. These are awesome, but took me forever to get working properly. I think the documentation misses some info about how to set up your project for resource bundles. Anyway, if you’re building a site that might require frequent copy changes, or might appear in multiple languages, then you should definitely try out Flex resource bundles. In Flex 3, you can even swap out resource bundles at runtime. Yay!
So what’s a resource bundle? It’s just a collection of values that you stick in a file, and you can link into your program. Instead of writing the strings directly in your code, you can centralize them all for easy translation and changes. If you’ve built a lot of sites in Flash, I wager you’ve done this yourself with XML files at one point. Using the Flex version is great cause you can link directly to strings in MXML with some short syntax, rather than writing code. You can also use property files to store arrays, class references, and images that are localized. Awesome! F.ex.
string1=Hello string2=World
<mx:Label <mx:Label
But I ran into problems getting things working. First, the stuff that made sense:
- You can link to resources either by using the @Resource(key='KeyName', bundle='BundleName') directive in MXML, or using the [ResourceBundle("BundleName")] metadata tag to create a reference to a ResourceBundle in ActionScript.
- You can either specify the bundle name in these methods to specify which property file to reference, or without it, the property file with the same location as the containing class will be used. For example, if you omit the bundle name in com.example.Rectangle, Flex will look for the key in the com/example/Rectangle.properties file. I used a single bundle and always included the bundle name.
- When you use ActionScript to reference a ResourceBundle object, you can use methods on it to retrieve values as other things than strings. I use this to fill in combo boxes:
<mx:ComboBox
But what wasn’t clear to me was how to set them up.
- Typically, you create a path for resources, such as /locale/, in your project root. Then each language gets its own subdirectory under here, with its own copy of all the property files, such as /locale/en_US/Strings.properties, or /locale/en_US/com/example/Rectangle.properties
- Whatever directory is the root of the particular language’s property files (/locale/en_US/) needs to be in the source path when you build the project. Flex Builder doesn’t set this up automatically, even if you add the locale/ dir to the source path and set -locale en_US in the compiler arguments.
- To set things up properly in Flex Builder, make sure the current locale is set in the Flex Compiler options with the -locale option. Then, add the folder locale/{locale} (literally) to the source path. Flex Builder or mxmlc should substitute the correct locale at build time. Only when the property files are in your build path will the bundles be reachable. The compiler doesn’t provide very helpful errors when you do this wrong.
- Multiline controls. Why Flex doesn’t allow you to flow the labels for buttons, checkboxes, radio buttons, and the like to more than one line is just aggravating. I hacked these components to allow it, but I didn’t have time to get the sizing correct, instead hacking in the right amount of padding manually… oh well.
- Where is the root for embeds anyway? Looks like it’s in the root of the source path. So if you have a folder structure with /src/com/example/Application.mxml trying to reach /assets/whatever.gif, you can actually always get to the assets with this odd path: /../assets/whatever.gif.
Specific Techniques
So, like most of my projects, I tried out some fun stuff in this project. This project required some PHP scripting as well. Sending variables in a POST/GET to PHP scripts is easy in AS3, but you know, just not quite easy enough to warrant typing it over and over, so I made a little helper class, FormSubmitter, with the method
public function send(url:String, hash:Object, method:String = URLRequestMethod.POST):IAsynchronousToken
Then I extend it for some services just to make the URLs to the scripts constants:
package com.axevice { import com.yourmajesty.services.XMLFormSubmitter; public class Service extends XMLFormSubmitter { public static const SEND_TO_FRIEND:String = "somesendtofriendscript.php"; public static const SIGNUP:String = "somesignupscript.php"; } }
And then calling them and reacting to them is so nice.
var hash:Object = {yourName: yourName.text, yourEmail: yourEmail.text, theirName: theirName.text, theirEmail: theirEmail.text}; (new Service()).send(Service.SEND_TO_FRIEND, hash).addEventListener(AsynchronousTokenEvent.COMPLETE, onSendComplete);
That’s all for now! In the next installment, I want to cover a class I wrote that uses introspection to automatically bind models to XML.
Hi Roger,
Great commentary. I’m hoping that you’ve filed lots of bug reports and enhancement requests at or made comments on the livedocs version of the documentation where appropriate. There’s definitely elements mentioned here that we already knew we needed to improve, but having details makes it all the easier to address.
[...] sweeps site. Though it’s nothing revolutionary, you can head over to my blog and read about some of the techniques that went into its development. At Your Service. Comments [...]
oh man… that Axe Vice Naughty to Nice is hilarious!
Nice work… I have only dabbled with Flex so far, as a web developer it requires a different mind set with application flow since ( even with Web 2.0 ) you are stuck in the request / response world. Being able to bring large amounts of data client side and have this modified and sync up later requires rewiring heavy old cables inside my brain.
So the book “Flex 2/3 for the Real World” is due out when? :) Three months into Flex 2 and I have learned SO MUCH. I was one who missed the Java boat and wandered aimlessly for a couple years in CRM (very old VB language) then moved to the taboo side of Flash and table based web sites. Now aboard the Flex boat I have a very bright spot light guiding me in the path of a better future… Long live Flex, AS3, and the leaders who are helping the new crew catch up.
…ramblings of a drowned rat…
@GregM, well there’s my book Everything You Always Wanted to Know About Flex :)
Roger, with regards to the resource bundle, you may want to let the user know that the source path of your resource must be relative to the main application source path. It took me a while to realize that it was checking against /src in my AIR project.
you can?t use scale 9 with assets embedded from symbols in SWFs.
That just work fine in flex 3 now. I don’t know for 2 btw?
Great stuff! Flex is a powerful tool that needs some serious polishing. There are so many of these “gotcha’s” that unless you’re serious about Flex, you could throw your hands up in frustration.
This is a great list of Flex’s bugbears. I have to say I did my first major Flex project a few months back and ran into almost every single one of these problems.
You’ve talked a lot about the problems of [Embed]ded assets. I came across a lot of these too and found that using a swc to bring your assets across from Flash is far and away a better option. It has it’s own set of problems (I did a blog post about it a while back) but the benefits are worth it.
I also didn’t find preloaders that much of a chore. Looking back at the code I used it seems to be a class by Jesse Warden, which worked pretty much out of the box.
Hope that helps :)
Of course, I now see that this was written over a year ago. You probably figured those things out by now ;)
[...] > dispatchEvent()™ » Flex 3 Tips, Tricks, and Gotchas (A Series) [...]
Here, here on the lack of word wrap in radio buttons and check boxes. Omission of such a basic and required feature was downright criminal. | http://dispatchevent.org/roger/flex-3-tips-tricks-and-gotchas-a-series/ | crawl-002 | refinedweb | 3,012 | 70.84 |
PageletsPagelets
A Module for the Play Framework to build modular applications in an elegant and concise manner.
Check out the sample project to see a sample application based on Play Pagelets.
IdeaIdea
The idea behind the Pagelets Module is to split a web page into small, composable units. Such a unit is called a pagelet. In terms of the Play Framework a pagelet is just a simple Action[AnyContent]. That means that a pagelet is basically a (small) web page. Pagelets can be arranged in a page tree. So, if a user requests a page, the page is constructed according to it's page tree. It is also possible to serve any part of the tree down to a single pagelet individually. The ordinary pagelet consists of a view, resources (JavaScript, Css), a controller action and a service to fetch data.
Pagelets are particularly useful if you want to serve tailor-made pages to your visitors. For instance you can easily serve a slightly different page to users from different countries (i18n), or perform A/B testing, or fine-tune the page based on the user (logged-in, gender, other preferences, ...).
Pagelets comes in two flavours: Async and Streaming. Async composes the complete page on the server side and sends it back to the client, as soon as all pagelets are complete. Streaming on the other hand, begins to send the page immediately to the client and pagelets appear sequentially as soon as they complete.
TraitsTraits
- composable: multiple pagelets can be composed into a page. A page is just a tree of pagelets. Any part of the pagelet tree can be served to the user.
- resilient: if a pagelet fails, a fallback is served. Other pagelets are not affected by the failure of one or more pagelets.
- simple: to create a pagelet is simple compared to a whole page, because of its limited scope. To compose a page from pagelets is simple.
- modular: any pagelet can be easily swapped with another pagelet, removed or added to a page at runtime.
Pagelets are non invasive and not opinionated: You can stick to your code style and apply the patterns you prefer. Use your favorite dependency injection mechanism and template engine. You don't need to apply the goodness of pagelets everywhere, only employ pagelets where you need them. Pagelets also do not introduce additional dependencies to your project.
UsageUsage
ActivatorActivator
Check out the activator template to get started with a sample project and see a demonstration of Play Pagelets. The project is a small multi-language website, which shows some of the features and typical usage patterns.
Enter
activator new
then select the play-pagelets-seed template by entering:
play-pagelets-seed
then activator creates a new project based on the play pagelets activator template. To see the project in action, navigate to the play-pagelets-seed folder and enter:
activator run
then point your browser to
QuickstartQuickstart
To get the idea how Pagelets look in code, read on and check out the play pagelets seed project afterwards.
The Pagelets Module depends on the Play Framework.
Add the following lines to your build.sbt file:
Play 2.5 (Scala 2.11)Play 2.5 (Scala 2.11)
libraryDependencies += "org.splink" %% "pagelets" % "0.0.3
Play 2.6 (Scala 2.11 | Scala 2.12)Play 2.6 (Scala 2.11 | Scala 2.12)
libraryDependencies += "org.splink" %% "pagelets" % "0.0.8
Play 2.8 (Scala 2.12 | Scala 2.13)Play 2.8 (Scala 2.12 | Scala 2.13)
libraryDependencies += "org.splink" %% "pagelets" % "0.0.9
routesImport += "org.splink.pagelets.Binders._"
If you want to use streaming, you will also need:
TwirlKeys.templateFormats ++= Map("stream" -> "org.splink.pagelets.twirl.HtmlStreamFormat") TwirlKeys.templateImports ++= Vector("org.splink.pagelets.twirl.HtmlStream", "org.splink.pagelets.twirl.HtmlStreamFormat")
this adds streaming capabilities to the Twirl template engine. To use the streaming template format, you must name your templates name.scala.stream instead of name.scala.html
Now add the following line to your application.conf file, to enable the Pagelets module:
play.modules.enabled += org.splink.pagelets.pageletModule
Create a standard Play controller and inject a Pagelets instance. In this example Guice is used as DI framework, but any DI mechanism works.
@Singleton class HomeController @Inject()(pagelets: Pagelets)(implicit m: Materializer, e: Environment) extends InjectedController
Bring pagelets into scope
import pagelets._
To use the Play's Twirl template engine, import TwirlConversions
import org.splink.pagelets.twirl.TwirlCombiners._
To use Streaming, additionally import HtmlStreamOps
import org.splink.pagelets.twirl.HtmlStreamOps._
Now create the main template inside the views folder. Name the file wrapper.scala.html or, if you want to use streaming, name it wrapper.scala.stream
@(resourceRoute: String => Call)(page: org.splink.pagelets.Page) <!DOCTYPE html> <html> <head> <title>@page.head.title</title> <link rel="stylesheet" media="screen" href='@routes.Assets.versioned("stylesheets/main.min.css")'> <link rel="shortcut icon" type="image/png" href="@routes.Assets.versioned("images/favicon.png")"> @page.head.metaTags.map { tag => <meta name="@tag.name" content="@tag.content" /> } @page.head.css.map { css => <link rel='stylesheet' media='screen' href='@{resourceRoute(css.toString).url}'> } <script src="@routes.Assets.versioned("lib/jquery/jquery.min.js")"></script> @page.head.js.map { js => <script src='@{resourceRoute(js.toString).url}'></script> } </head> <body> @Html(page.body) @page.js.map { js => <script src='@{resourceRoute(js.toString).url}'></script> } </body> </html>
The main template receives a resource route which is needed to reference the JavaScript and Css resources for the page. The template is also provided with a Page instance which contains all parts necessary to render the page: HTML body, JavaScript, Css and Meta Tags.
Create a simple pagelet template inside the views folder:
@(name: String) <div>@name</div>
Create a simple pagelet inside the controller:
def pagelet(name: String)() = Action { Ok(views.html.pagelet(name)) }
Define the page composition:
def tree(r: RequestHeader) = { val tree = Tree('root, Seq( Leaf('header, pagelet("header") _).withJavascript(Javascript("header.min.js")).setMandatory(true), Tree('content, Seq( Leaf('carousel, pagelet("carousel") _).withFallback(pagelet("Carousel") _).withCss(Css("carousel.min.css")), Leaf('text, pagelet("text") _).withFallback(pagelet("Text") _) )), Leaf('footer, pagelet("footer") _).withCss(Css("footer.min.css")) )) if(messagesApi.preferred(r).lang.language == "de") tree.skip('carousel) else tree }
There are 2 different kinds of pagelets: Leaf pagelets and Tree pagelets. A Leaf pagelet references an actual Action, while a Tree pagelet combines its children into one. When a request arrives, the tree of pagelets is constructed. All Leaf pagelets are executed in parallel and as soon a the children of a Tree pagelet complete, they are combined. This process continues, until just the root pagelet remains.
Resources and fallbacks can be defined per pagelet. If a pagelet fails to render, its fallback pagelet is rendered. Resources are assembled and combined by type and references are later provided to the main template.
The skip and replace operations are available on instances of Tree. They allow to change the tree at runtime. For instance, the tree can be changed based on the language of an incoming request. Note that the resources for the skipped pagelet are also excluded. If the request language is "de", the carousel pagelet and all its resource dependencies are left out.
In this example the header pagelet is declared as mandatory, so if the header fails, the user is redirected to an (error) page. Note that Tree pagelets can't fail or depend on resources.
The carousel pagelet depends on carousel.min.css and the footer pagelet depends on footer.min.css. If the tree is constructed, both carousel.min.css and footer.min.css are concatenated into one file whose name is the fingerprint of its contents. This sole Css file which consists of carousel and footer styles is then served under its fingerprint.
Now add an index Action to the controller to render the complete page. If you want to use async, add:
def index = PageAction.async(routes.HomeController.errorPage)(_ => "Page Title", tree) { (request, page) => views.html.wrapper(routes.HomeController.resourceFor)(page) }
If you prefer to use streaming, add:
def index = PageAction.stream(_ => "Page Title", tree) { (request, page) => views.html.wrapper(routes.HomeController.resourceFor)(page) }
Both flavours require the page title, the pagelet tree configuration and a function which receives the request and page as arguments. In the async case the function must return a Writeable and in the streaming case a Source[Writeable,_]. A Writeable is just a type class which is capable of transforming the wrapped class eventually to a HTTP response. errorPage is only required in the async case. It is called, if a mandatory pagelet and its fallback fail to render. The streaming case can't redirect to another page in case some mandatory pagelet failed, because at the time, the pagelet fails, parts of the page are already streaming to the client, thus it's too late.
Finally add the route to conf/routes
GET / controllers.HomeController.index GET /resource/:fingerprint controllers.HomeController.resourceFor(fingerprint: String)
DetailsDetails
AdvantagesAdvantages
Resilient: if one part of the page fails, the other pagelets remain unaffected. A fallback can be defined per pagelet. If a fallback fails, the pagelet is simply left out. If a pagelet is declared as mandatory and its fallback also fails, the request is redirected to a configurable error page.
Modular: a pagelet is an isolated and independent unit. Assets like JavaScript and Stylesheets are defined on a per pagelet basis so a pagelet is completely autonomous. A pagelet can be easily reused on any page.
Flexible: a page can be composed with very little code, and the composition can be changed at runtime. Specific pagelets can be replaced with others, removed or new pagelets can be added anywhere in the page with just a line of code. This is quite handy to conduct A/B tests or to serve a different page based on the user properties like locale, user-role, ...
Simple: to create a pagelet is much simpler then to create a complete page, because the scope of a pagelet is small. The composition of a page from pagelets is just a bit of configuration code and thus also simple. So all steps required to build a page are simple.
Logs: Detailed logs help to gain useful insights on the performance and to find bottlenecks quickly.
Performant #1: all pagelets in a page tree are executed in parallel, so splitting a page into paglets induces no perceptible overhead.
Performant #2: Resources are automatically concatenated and hashed as well as served with far future expiration dates. Therefore browsers need to make only few requests, and - as long as the resources haven't changed - can pull them from the local cache.
Performant #3: A page can optionally be streamed which effectively reduces the time to first byte to milliseconds and enables the browser to start loading resources immediately.
Separation of concerns: by using pagelets, you automagically end up with a clean and flexible application design.
FallbacksFallbacks
Each pagelet can define a fallback. A fallback is just another pagelet. If the main pagelet fails, its fallback is executed. If the fallback fails too, then the pagelet is simply left out. But if the pagelet was declared mandatory, then the request is redirected to another (error) page. If the main pagelet has no fallback and fails, it's left out - unless the pagelet was declared mandatory.
ResourcesResources
All resources declared by the pagelets of a page (JavaScript, Css) are de-duplicated, aggregated and combined during the construction of the page. A hash is then computed for each combined resource type. Correspondingly, script and link tags which reference the combined resources by their hash are injected into the page. These resources are served with far future expiration dates. So, if the resources haven't changed, browsers can just pull them from the cache. As soon as the resources change, browsers are presented with a fresh hash value und thus fetch the new resources. This reduces the amount of requests a browser has to make to render a page to a bare minimum. This system also makes sure that only the resources which are actually needed on a page are served.
Cookies & Meta TagsCookies & Meta Tags
Each pagelet can set Cookies and Meta Tags. Just as with the resources, Cookies and Meta Tags are de-duplicated, aggregated and combined during the construction of the page.
Async vs. StreamingAsync vs. Streaming
AsyncAsync
When a page is rendered in async mode, all pagelets are rendered and then assembled on the server into the final page. Once complete, the complete page is sent to the client.
StreamingStreaming
In streaming mode, the page is streamed immediately to the client. As soon the next pagelet is ready, the pagelet is streamed to the client. This is repeated until all pagelets have been streamed. Streaming seems quite advantageous because the client receives the first parts of the page immediately. Within these first parts is the HTML head, which includes references to the JavaScript and Css which is needed to render the page. This means that the browser can start loading external resources while the HTML is still streaming. This parallelization reduces the overall load time of the page. But even more perceptible is the extremely short amount of time until the first byte is received by the client, it takes only a few milliseconds. So from the perspective of the user, the page appears immediately and completes rendering progressively.
But there are also downsides to the streaming approach:
- HTTP Headers are sent first. As the headers contain the HTTP Status Code, the code is always set to 200/Ok, even though at the time the header is constructed, it is too early to safely assume that the page can be rendered correctly. So you need to make sure that you have appropriate fallbacks in place in case a pagelet fails to render.
- If a page is cached, the Cache will certainly cache a page with a status code of 200/Ok. This means that fallbacks might end up being cached.
- Only non-httpOnly Cookies can be set. Each pagelet can set Cookies. But only when all pagelets are complete, the Cookies to set are all present. So, it's simply not possible to set the Cookies as usual via HTTP headers, because the HTTP headers are sent first to the client. So Cookies are set with a piece of Javascript code at the end of the Html body. As setting Cookies relies on JavaScript, the Cookies can't be Http-only.
When to choose streamingWhen to choose streaming
Choose the streaming if:
- all users have JavaScript enabled or the page does not use Cookies
- the page does not rely on httpOnly Cookies
- pages are not cached or it's very unlikely that some pagelets fail or it does not matter if a fallback is cached
otherwise choose the caveat-free async mode.
Big thanks to brikis98 who originally had the idea to port Facebook's BigPipe to Play and did a lot of the groundwork with his brilliant talks and ping-play repo | https://index.scala-lang.org/splink/pagelets/pagelets/0.0.7?target=_2.11 | CC-MAIN-2020-50 | refinedweb | 2,519 | 67.15 |
Three.
Catalan’s Triangle
September 19, 2017
Since our exercise a week ago, I’ve been reading about Catalan numbers, primarily based on the references at OEIS. Catalan’s Triangle (A009766) is a number triangle
1 1 1 1 2 2 1 3 5 5 1 4 9 14 14 1 5 14 28 42 42 1 6 20 48 90 132 132
such that each element is equal to the one above plus the one to the left.
Your task is to write a program that calculates a Catalan triangle. When you are finished, you are welcome to read or run a suggested solution, or to post your own solution or discuss the exercise in the comments below.
Compile Chez Scheme On Android ARM
September 15, 2017
In a recent exercise I described my new tablet computer, and talked about installing Guile Scheme because I could not get Chez Scheme to compile. I have finally been able to compile my preferred Scheme interpreter, Chez Scheme, on my Android ARM tablet. This note describes how I did it.
Chez Scheme is written partly in C and partly in Scheme; as a consequence, it requires a working Scheme compiler to be compiled. For popular platforms, such as Linux, Chez Scheme is distributed with the Scheme portion of the compiler already compiled, but for the Android ARM platform, we have to compile the Scheme portion of the compiler ourselves. The procedure is to compile Chez Scheme on some available platform (we will use Linux), cross-compile the Scheme portion of the compiler for the Android ARM platform, compile the C portion of the compiler on Android ARM, and then complete the build on Android ARM. It’s easier than it sounds. First, if you don’t already have Chez Scheme running on your Linux platform, perform the following steps to obtain and compile Chez Scheme (similar instructions apply on other platforms, go to the Chez Scheme Project Page for assistance):
cd /usr/local/src sudo wget gunzip v9.4.tar.gz tar -xvf v9.4.tar sudo rm v9.4.tar cd ChezScheme-9.4 sudo ./configure sudo make install
At this point you should have a working Chez Scheme system on the Linux computer. You might want to stop and play with it to make sure it works. Assuming that you compiled on an Intel system, the machine type was
a6le, so perform the following steps to cross-compile to machine type
arm32le for the Android ARM:
sudo mkdir boot/arm32le cd a6le sudo make -f Mf-boot arm32le.boot cd .. sudo ./configure -m=arm32le sudo ./configure --workarea=arm32le cd arm32le/s sudo make -f Mf-cross m=a6le xm=arm32le base=../../a6le
Now the cross-compilation is complete and you are ready to work on the Android ARM system. Still on the desktop, pack up the complete Chez Scheme system:
cd /usr/local/src sudo tar -czvf ChezScheme-9.4.tar.gz ChezScheme-9.4
We look next at the Android ARM tablet. We will be running under GnuRoot, so that must first be installed and configured. On the tablet, go to the Google Play Store and install program GnuRoot Debian; it should take only a few minutes. The environment installed by GnuRoot is minimal, so perform the following steps to install some useful software on your system:
apt-get update && apt-get -y upgrade apt-get install build-essential ed vim m4 gawk apt-get install ssh guile-2.0 python wget curl
Depending on your aspirations, you might want to install some other packages, or omit some of those shown above. Next, copy the .gz file to directory /usr/local/src on an Android tablet running GnuRoot; I did it by performing the following commands on the tablet, which was connected to my local network, but they are unlikely to work unmodified on your machine:
cd /usr/local/src sftp phil@192.168.1.65 cd /usr/local/src get ChezScheme-9.4.tar.gz quit
Once you have copied the .gz file to the tablet, perform the following steps there. It is odd to install and then uninstall X-windows, but Chez Scheme requires X-windows to compile, and doesn’t require it to run, so this sequence is correct (that was the trick that took me so long to figure out, delaying the compilation by several weeks):
apt-get install libncurses5-dev libncursesw5-dev gunzip ChezScheme-9.4.tar.gz tar -xvf ChezScheme-9.4.tar rm ChezScheme-9.4.tar cd ChezScheme-9.4 apt-get x11-common libx11-dev cd arm32le/c make apt-get purge x11-common libx11-dev cd ../s make allx cd ../..
At this point the program is compiled and ready to use. However, the install script doesn’t work properly, for some reason, so the program must be installed manually with the following commands:
cp arm32le/bin/scheme /usr/local/bin cp arm32le/bin/petite /usr/local/bin chmod +x /usr/local/bin/scheme chmod +x /usr/local/bin/petite mkdir /usr/local/csv9.4/arm32le cp boot/arm32le/scheme.boot /usr/local/csv9.4/arm32le cp boot/arm32le/petite.boot /usr/local/csv9.4/arm32le
And that’s it. To test your installation, type
scheme at the command-line prompt; you should be rewarded with the Chez Scheme welcome text followed by a Scheme prompt:
Chez Scheme Version 9.4 Copyright 1984-2016 Cisco Systems, Inc. >
Your task is to get your preferred programming environment working on your mobile device, and let us know how it works. If anyone installs Chez Scheme, I would appreciate your feedback on the instructions given above, particularly if you find any errors.
Cat.
Linked List Palindrome
September 8, 2017
Today’s exercise is an Amazon interview question from Career Cup (this is the exact question asked):
There is a given linked list where each node can consist of any number of characters :- For example
a–>bcd–>ef–>g–>f–>ed–>c–>ba.
Now please write a function where the linked list will return true if it is a palindrome .
Like in above example the linked list should return true
Your task is to write a program to determine if a list of strings forms a palindrome. When you are finished, you are welcome to read or run a suggested solution, or to post your own solution or discuss the exercise in the comments below.
Three Bit Hacks
September 5, 2017
We have three problems today that involve twiddling bits. In all three cases you are not permitted to perform any branching operation (so no if-else statement) nor are you permitted to perform a loop; you must write a single statement that performs the requested task:
1) Determine the absolute value of an integer.
2) Determine if an integer is a power of 2.
3) Determine the minimum and maximum of two integers.
The restrictions on branching and loops are useful for modern CPUs that have instruction caches that you want to stay inside for speed.
Your task is to write the three bit hacks described above. When you are finished, you are welcome to read or run a suggested solution, or to post your own solution or discuss the exercise in the comments below.
Generator Push-Back
September 1, 2017
Generators are a useful programming tool; we provide an implementation in the Standard Prelude. Here is a Python prime-number generator that we discussed in a previous exercise:
def primegen(): # yield 2; yield 3 # prime (!) the pump ps = primegen() # sieving primes p = next(ps) and next(ps) # first sieving prime D, q, c = {}, p*p, p # initialize def add(x, s): # insert multiple/stride while x in D: x += s # find unused multiple D[x] = s # save multiple/stride while True: # infinite list c += 2 # next odd candidate if c in D: # c is composite s = D.pop(c) # fetch stride add(c+s, s) # add next multiple elif c < q: yield c # c is prime; yield it else: # (c == q) # add sqrt(c) to sieve add(c+p+p, p+p) # insert in sieve p = next(ps) # next sieving prime q = p * p # ... and its square
I recently needed to interrupt a prime generator, then restart it; I needed all the primes up to a limit, but of course I didn’t know I had reached the limit until the generator produced the first prime past the limit. I could have saved the too-large prime, then used it before restarting the generator, but that’s inconvenient; it needs a separate variable for the saved prime, and a test to determine if a saved prime is available each time through the restarted generator. A better solution is to push back the value onto the generator:
def pushback(val,gen): yield val while True: yield next(gen)
Your task is to add push-back to the generator of your favorite language. When you are finished, you are welcome to read or run a suggested solution, or to post your own solution or discuss the exercise in the comments below. | https://programmingpraxis.com/2017/09/ | CC-MAIN-2018-09 | refinedweb | 1,517 | 59.03 |
The .NET platform greatly simplifies the process of creating and using custom Web services. In this article, I'll show you how to develop your own service that returns data from a backend data source.
The components
The System.Web.Services namespace provides the necessary classes for creating custom Web services. Specifically, a Web service is derived from the WebServices class located within this namespace. In addition, a Web service is a class file that is created with the asmx file extension. Web service methods are exposed via the WebMethod attribute, which immediately precedes the method name. You must declare the method marked with this attribute as public.
An IDE such as Visual Studio .NET makes it easy to create a Web service with a few mouse clicks, but it's just as easy to use your favorite text editor. I use the latter method in this newsletter (i.e., I use Microsoft Notepad). A file is declared as a Web service with the following directive placed at the top of the file (just like the page director for ASP.NET pages):
<%@ WebService Language="C#" Class="ClassName" %>
The previous line declares the class within the file as a Web service written in C# using the specific class name. However, the language choice is up to each developer; you may use VB.NET, J#, or any other supported language.
Using the details we've covered, let's create a simple Web service that returns a value from a SQL Server database (the sample Northwind database).
In action
The next code listing creates a Web service that returns a numeric value from the Northwind database located on the SQL Server. This provides a layer of abstraction between the user and the database connection. The SQL Server connection is defined within a string constant, which is used to create a database connection object. A simple SQL select statement is applied to the database using the SQL SUM function. This returns a total as a string value. Also, an error is returned if a database connection problem is encountered with the database operations contained within a try/catch block.
<%@ WebService Language="C#"
Class="BuilderWebServices.BuilderWebServiceExample1" %>
using System;
using System.Data;
using System.Data.SqlClient;
using System.Web.Services;
namespace BuilderWebServices {
public class BuilderWebServiceExample1: WebService {
private const string sConn = "server=(local);Initial
Catalog=Northwind;UID=sa;PWD=";
private SqlConnection conn = null;
private SqlCommand comm = null;
[WebMethod]
public string GetTotalFreight() {
try {
conn = new SqlConnection(sConn);
conn.Open();
comm = new SqlCommand();
comm.Connection = conn;
comm.CommandText = "SELECT SUM(Freight) FROM Orders";
comm.CommandType = CommandType.Text;
if (comm.ExecuteScalar() == null) {
return "Database error";
} else {
return comm.ExecuteScalar().ToString();
} } catch (SqlException ex) {
return "Database error: " + ex.ToString();
} catch (Exception e) {
return e.ToString();
} finally {
if (conn.State == ConnectionState.Open) {
conn.Close();
} } } } }
Once you create the Web service file (BuilderWebServiceExample1.asmx in our example), you may place it on the Web server and call it directly to obtain its syntax. I called this sample on a test server using the following URL:
You may obtain the public method's syntax by using the following syntax:
You may utilize the method with the following URL:
When you call this method, the following XML returns this code:
<?xml version="1.0" encoding="utf-8" ?>
<string xmlns="">64942.6900</string>
Let's extend the example by adding a method that accepts a parameter.
Extending the functionality
Now you'll add a method that accepts a parameter and uses this parameter to locate a data element within the database. It accepts an employee id and locates the associated employee from the Employees table. Listing A
This method returns the matching employee's name if located; otherwise, it returns a message stating that the employee wasn't found. If an error occurs, it returns an error message. Here's an example of the data returned for a matching employee:
<?xml version="1.0" encoding="utf-8" ?>
<string xmlns="">Fuller, Andrew</string>
VB.NET equivalent
Listing B includes all the code for the VB.NET equivalent of the example code in this article. The main difference is the attribute before the class name declaring it as a Web service.
Easy to use
The .NET Framework simplifies many tasks, of which the creation and use of Web services is a prime example. The Framework makes this complicated Web standard available to all .NET developers with a few mouse clicks (if you're using Visual Studio .NET) or a standard file format via a standard text file.. | http://www.techrepublic.com/article/easily-create-custom-web-services-with-net/ | CC-MAIN-2017-34 | refinedweb | 749 | 58.58 |
React in a second. Your components tell React what you want to render – then React will efficiently update and render just the right components when your data changes.
Here, ShoppingList is a React component class, or React component type. A component takes in parameters, called props, and returns a hierarchy of views to display via the render method.
The render method returns a description of what you want to render, and then React takes that description and renders it to the screen. In particular, render returns a React element, which is a lightweight description of what to render. Most React developers use a special syntax called JSX which makes it easier to write these structures. The<div />syntax is transformed at build time toReact.createElement('div'). The example above is equivalent to:
return React.createElement('div', {className: 'shopping-list'},React.createElement('h1', /* ... h1 children ... */),React.createElement('ul', /* ... ul children ... */));
See full expanded version.
You can put any JavaScript expression within braces inside JSX. Each React element is a real JavaScript object that you can store in a variable or pass around your program.
The ShoppingList component only renders built-in DOM components, but you can compose custom React components just as easily. Each component is encapsulated so it can operate independently, which allows you to build complex UIs out of simple components.
Getting Started
We start with this example code that we've already set up in the last step: Starter Code.
It contains the shell of what we’re building today. We’ve provided the styles so you only need to worry about the JavaScript.
In particular, we have three components:
- Square
- Board
- Game
The Square component renders a single <button>, the Board renders 9 squares, and the Game component renders a board with some placeholders that we’ll fill in later. None of the components are interactive at this point.
Passing Data Through Props
Just to get our feet wet, let’s try passing some data from the Board component to the Square component.
In Board’s renderSquare method, change the code to pass a value prop to the Square:
class Board extends React.Component {renderSquare(i) {return <Square value={i} />;}
Then change Square’s render method to show that value by replacing {/* TODO */} with {this.props.value}:
class Square extends React.Component {render() {return (<button className="square">{this.props.value}</button>);}}
Before:
After: You should see a number in each square in the rendered output.
An Interactive Component
Let’s make the Square component fill in an “X” when you click it. Try changing the button tag returned in the render() function of the Square like this:
class Square extends React.Component {render() {return (<button className="square" onClick={() => alert('click')}>{this.props.value}</button>);}}
If you click on a square now, you should get an alert in your browser.
This uses the new JavaScript arrow function syntax. Note that we’re passing a function as the onClick prop. Doing onClick={alert('click')}would alert immediately instead of when the button is clicked.
React components can have state by setting this.state in the constructor, which should be considered private to the component. Let’s store the current value of the square in state, and change it when the square is clicked.
First, add a constructor to the class to initialize the state:
class Square extends React.Component {constructor(props) {super(props);this.state = {value: null,};}render() {return (<button className="square" onClick={() => alert('click')}>{this.props.value}</button>);}}
In JavaScript classes, you need to explicitly call super(); when defining the constructor of a subclass.
Now change the Square render method to display the value from the current state, and to toggle it on click:
- Replace this.props.value with this.state.value inside the <button> tag.
- Replace the () => alert() event handler with () => this.setState({value: 'X'}).
Now the<button>tag looks like this:
class Square extends React.Component {constructor(props) {super(props);this.state = {value: null,};}render() {return (<button className="square" onClick={() => this.setState({value: 'X'})}>{this.state.value}</button>);}}
Whenever this.setState is called, an update to the component is scheduled, causing React to merge in the passed state update and rerender the component along with its descendants. When the component rerenders, this.state.value will be 'X' so you’ll see an X in the grid.
If you click on any square, an X should show up in it.
Developer Tools
The React Devtools extension for Chrome and Firefox lets you inspect a React component tree in your browser devtools.
It lets you inspect the props and state of any of the components in your tree.
After installing it, you can right-click any element on the page, click “Inspect” to open the developer tools, and the React tab will appear as the last tab to the right. | https://www.commonlounge.com/discussion/0313f1e0742f4a4ca39b4ca5513fa681 | CC-MAIN-2019-13 | refinedweb | 802 | 58.18 |
2, Q&A Is Barack Obama a Muslim? The Associated Press has that answer and more in its new 'Ask AP' PAGE 14A Rout Lady Streaks pound Palmetto SPORTS Sunday, March 2, 2008 Harder Hall expenses to be added to city budget Mike Eastman: 'The money doesn't come from taxpayers' By MATT MURPHY matt.murphy@newssun.com SEBRING The city of Sebring's July 18 acqui- sition of Harder Hall has had several ramifications so far some unexpect- ed, others more pre- dictable. On the predictable front, the city council Tuesday is set to approve a budget amendment, covering the expenses for the now city- owned hotel. The amendment wasn't necessary until now because the city wasn't incurring any expenses on the property. But once Joran Realty filed for bankruptcy and the hotel didn't sell at auction, the city became responsible for the building, the grounds and all the expenses that came with it. "Prior to us taking pos- session of it, the only activity was interest' income *and interest expense, so we didn't need to budget," Finance Director Mike Eastman said. "When the city took possession, it incurred costs to maintain it." Among those costs are utilities, security, property taxes and insurance, all of which had previously been covered by Joran Realty. The budget amendment on Tuesday's ballot increases the. Harder Hall -budget for the 2006-07 fis- See HARDER, page 7A Highlands County's Hometown Newspaper Since 1927 $TIMULATING IDEAS County trying to figure out ways to follow up on Maxcy's stimulus plan By KEVIN J. SHUTT kevin.shutt@newssun.com SEBRING There's been a lot of talk about stimulating the economy from the top down, from the federal government down to Highlands ' County. nt The The gears are lot /t beginning to turn. County t'e canl Administrator just takl Carl Cool had a allili, 9 a.m. meeting it with his senior tihat li leadership g iln, Wednesday as i t. they began con- t. sidering ideas proposed by ailhd Commissioner it happe C. Guy Maxcy KLN N and came up s, . with a few of ' their own. , Director of Emergency RelateW Management Bill -,' Nichols, explaining the PAGE best stimulus is cash in the hands of consumers, suggested a $3,000 pay raise for county statl. He %%as joking, poking fun at a controversial one-time pay- ment Highlands County Sheriff Susan Benton made to her full- time staff as a part of a $2 mil- lion "buy-down" that included .capital purchases at the end of the 2006-07 fiscal year. On a more serious note, how- ever, various ideas were floated, such as fast-tracking former sheriff's lieutenant Mike Brown's Las Villas project on 'e S" 1 Kenilworth that Boulevard. do. "That's going to put people back e the ,to work," Cool said Friday .C morning, explaining the t ( do benefit would be Cut (ll l two-fold because Brown is build- tae ing workforce JitSt Inake housing. "We I,. need to try to get iH \ IN the shackles off ... ,,, that development." " ''"' The construction of about 50 single-family homes would provide story jobs for construction 7A laborer while the "affordable" housing would help working profession- als such as teachers, law enforcement, etc. Brown didn't return calls Friday, but is expected to further expound upon his project at Tuesday's commission meeting, See STIMULUS, phge 7A E Volume 89/Number 27 75 cents County seeking seniors to be paid volunteers By KEVIN J. SHUTT kevin.shutt@newssun.coin SEBRING Though Highlands' low-income seniors have to wait anoth- er year before realizing a potential increase to their homestead exemption, the county has about $14,500 available to help them make ends meet. But they'll have to work for it. "We Want the word to get out," Human Resources Director John Minor said Wednesday. "We want people to use it." An idea originated some years ago to reward the senior citizens who volun- teer- time to the county by defraying 'We some of their taxes. It was called the, want the "senior citizen, tax work off program." But, explained Minor, it was less than legal. "The idea was to let people put in 'some hours and rather than pay them a salary, they would reduce their taxes," he said. "The problem was .that it violates state and federal laws." word to get out. We want people to use it.' JOHN MINOR county human resources director . The de.ire,. to,assist..the elderly .didn't die. Instead, it grew.into a new pro- gram that allows residents 65 and older to work up to' 80 houis at $6.79 per hour, Florida's minimum wage. All applicable taxes are collected by state and federal governments. "And, they can do what they want with the money,".Minor said. Due to a lack of publicity, there's only been a "smattering" of partici- pants, Minor said. Shirley LaCount, of Sebring, was one of them. "When I was at human services, I was passing out commodities to the See SENIORS, page 7A News-Sun photo by SCOTT DRESSEL The City of Sebring took possession of Harder Hall in July. Reaping what they sow Community garden built in Lake Placid By KEVIN J. SHUTT k~vin.shutt@newssun.com LAKE PLACID Team Depot volunteers teamed up with Highlands County Health Department to build a 24-bed community garden in Lake Placid. Their labor-intensive day began about 8 a.m. Saturday as they cut wood, deposited soil and sowed the seeds of healthy-living' inspi- ration at the Rev. Luz Maldonado's Good Shepherd Hispanic United Methodist Church on County Road 29. "Gardening is considered mod- erate physical activity," said Derek Carlton, the Health Department's health promotion department. "It's going to give them an opportunity to get out and be active." Carlton promotes better living via a variety of.programs based on available funding and tries to tai- lor them to his target audience, such as the VERB program for sub-teenaged school children. For the community garden proj- ect, he 'unleashed the Health Department's tobacco prevention specialist, Donna Stayton. "Those parishioners are so amazing," Stayton said, explain- ing the church was selected through outreach group "Closing the Gap." "We have tremendous buy-in from the pastor and the See GARDEN, page 7A News-Sun photo by KATARA SIMMONS Lake Placid resident Bill Rymes volunteers his time and expertise Saturday morning to help build a community garden at Good Shepherd Hispanic United Methodist Church in Lake Placid. Fast - Forward 90994 0100 Good Advice Tips on how to protect your important documents LIVING Index Business .............................9A Classified ads ....................5C Community briefs............ 1IA Community calendar ......12A Diversions .....................2B Editorial .........................4A Living.. ........lB L giving ................. .................1B Lottery numbers ................2A Obituaries ...................... 5A Police blotter .................15A Sports .......................... IC....1C Stocks ..............................10A "Copyrighted Material Syndicated Content Available from Commercial News Providers" - .'. .' .,. *' . ,.. S. ...-; '.. ... 't: ...... ; ... , It's what you've been waiting for... FLORIDA HOSPITAL Heartland Division bi-.litt,,,,X). G'r'k/n wd,', .0-I, ld ox less time in the ER. 2A Sunday, March 2, 2008 Two similar Venus cases spark arrests Both had child cruelty and firearms charges By TREY CHRISTY trey.christy@news'ssun.comn VENUS Two unrelated arrests were made this week in Venus, where both suspects allegedly fired weapons while arguing, and in both cases each was charged with child cruelty. Both suspects' names are being withheld by the News- Sun in order to protect the victims' identities. The first suspect, 35, was picked up on a warrant from the Feb. 8 incident. It started when he was approached about a photo- graph of an unknown female in his bedroom, Deputy Robinn Singles wrote in her report. This started a verbal argu- ment with the victim and sus- pect, who became very angry and began to hit the woman in her face and drag her around' the residence by her hair, Singles said. The victim was able to get away, but the suspect then allegedly threw a 2-by-2-foot mirror at her, which she blocked with her hands. Singles said this resulted in injuries to the victim's hands and face due to the broken fragments. She left the residence but the suspect followed her, brandishing a handgun and pointing it at her, saying "I can just end this right now," Singles wrote in the repQrt. The suspect then allegedly pointed the gun in the air and fired one round. A minor attempted to inter- vene and protect the victim, but was punched on the top of the head, Singles said. The' suspect was charged with aggravated assault and battery with a deadly weapon and child cruelty. He remained in- the Highlands County jail on $60,500 bond. The other incident led to the brandishing of an AK-47. The suspect, 44, arrived home intoxicated and in a rage, one complainant told Deputy James Carr. "It's going to end tonight. You're my enemy. Call the cops, you all are going to die," is what the suspect said, Carr wrote in his report. The suspect attempted to bait a 16-year-old victim into a fight, but the minor victim instead left the room. The suspect followed him, yelling at him a few inches from his face. Fearing the suspect, the victim pushed him away, but was punched in the face, knocking him to the ground. The victim fought back in self defense, but was grabbed around the neck and choked. He was able to get away, leaving the residence and running up the street. . The suspect chased him briefly but returned to th6 house to get the AK-47, then went back outside, yelling "I'm going to kill him," Carr said. The suspect allegedly broke a living room window with his fist and an exterior light with the gun while leav- ing the house, then turned around and fired one round from the gun into the open front door of the house. He put the rifle back inside and then fled the scene, Carr said. The suspect was charged with aggravated assault, felony battery by strangula- tion, firing a weapon into a building, using a weapon while under the influence of alcohol, and cruelty towards a child. The suspect was still in the Highlands County jail in lieu of $61,500. COPUE DISATER A Iyurcmptr ed News-Sun photo by PATRICIA POND Restaurant owner Dee Andrews, with building owner Sam Corson, in front of Dee's Place on North Ridgewood Drive. Andrews was the first tenant in the newly restored Hainz Bloc in Sebring's Historic District. Stepz Dance Studio and Nutri Care Vitamins are the other street- level businesses in the Hainz Building. A return to glory Downtown Sebring's historic Hainz Building restored to thriving professional center By PATRICIA C. POND News-Sun correspondent SEBRING In the 1970's, the Hainz Building on North Ridgewood Drive, along with much of down- town Sebring, suffered the effects of urban decline. Slowly the second floor emptied. Storefront windows were changed over time to differing sizes and the spaces altered and divided. By 2000, the last tenant, a sandwich shop, shut its doors and the grand old building sat vacant leaking and for- gotten. In July 2002, Sam Corson, an investor from Tampa, pur- chased the-property and began a massive restoration on the stately building. With support from local architects, historians, governmental agencies, contractors and bankers, a plan to return the property to its original look was designed and put into action. "I wound up in Sebring by accident," Corson recalls. "I1 was on my way to Lake Wales to,pick up my son from camp and I stopped to take a look at a building for sale in their historic district. .This one was not for me but' the Realtor said he would find something else." A few weeks later, the Realtor asked Corson to meet him in Sebring, where he showed him the Nan-ces-o- wee Hotel, which still had a bar and restaurant running at that time. He told the Realtor he did- n't want to get into the hotel business, but then looked across the street and saw the Hainz building, all boarded up with a 'for sale' sign on it. "When I first looked at this building, I just had one of those moments. I thought 'if I don't do this, I will kick myself for the rest of my life.' "Preserving old buildings is great but they have to have E LOTTO Wednesday F 6 9 18 29 52 The News-Sun Seven in running for TDC director position By KEVIN J. SHUTT kevin.shutt@newssun.com SEBRING A six-person advisory committee will interview seven semi-finalists for the Tourism Development Council's executive director position. Former director Jim Brantley allowed his contract to expire last summer but remained available to guide the department until it found his replacement. Brantley will join Mark Stewart, Kenilworth Lodge, Trey Stephenson, Sebring International Raceway, Jack Richie, Highlands County Homeowners Association, Christine Hatfield, Inn on the Lakes, and John Minor, coun- ty human resources director, in selecting a nominee to present to the TDC board Thursday, following Tuesday's interviews. Brantley's contract was for $83,520. The salary range for his successor, who will be a county employee, is $41,000 to $67,500. At their meeting Tuesday, the commissioners decided to not fill two new director-level positions until County Administrator Carl Cool is replaced. In addition, they warned their departments to not expect to hire anybody. "The word is out to not waste your paper in trying to hire anybody," Commission Chairman Edgar Stoke said. However, the TDC direc- torship is a position that is funded in the current budget and isn't one of the new directors. Of the 21 people who applied, seven were invited for interviews. They are Michelle Phillips, executive assistant to the Economic Development Commission, Dana Knight, TDC administrative assistant, Larry Musgrave, a business development consultant, John Scherlacher, tourism coordi- nator for Florida's Heartland Rural Economic Development Initiative, Karen Kroger, freelance graphic designer, Nicole Thomas, writer and editor for a French publication, and Andrew Cripps, Ormund Beach Chamber of Commerce executive director. If the advisory committee is able. to agree on a finalist, they'll present that person to the Tourist Development Council on Thursday. Highlands Snapshots News-Sun photo by PATRICIA POND Owner Sam Corson confers with office administrator Linda Schindlbeck in the George Sebring Conference Room of the Hainz Building. The beautiful new racetrack-style conference tableblends well with the- restored hardwood floors, light fix- tures and transom doors that recreate th, 1920's setting. some use," he added. "You can't just preserve them and let them stand there. Corson points out that restoring old buildings is a sound and viable business. "It is not true that only people 'stuck in. the past' do this. There are many pro- grams to help with these efforts, and there are tax ben- efits. But you have to return them to use." Corson closed on the property in July 2002 and began the restoration imme- diately. He had plenty of experience to back him up. Corson bought his first old building in 1989 at the age of 19. His parents co- signed for the loan, and he secured additional funding to restore it.. He still owns and manages this property, which launched him on a career in property rehabilitation and manage- ment at a very young age. "I spent most of my career doing rehabs of historic buildings in Tampa. Most have been residential single family, fourplexes, and 16 unit apartment buildings." Florida Lottery 900-737-7777 77' per minute Florida Lottery Internet // MEGA MONEY Friday 53 I 1 2 12 42 FANTASY 5 Feb. 29 1 13 19 25 32 Feb. 28 24 28 29 33 34 Feb. 27 2 5 18 26 32 Feb. 26 2 17 19 31 34 Feb. 25 1 9 11 17 25 Feb. 24 1 7 15 18 20 PLAY 4 Feb. 29 0 0 1 3 Feb. 28 6 6 3 5 Feb. 27 0 4 9 9 Feb. 26 7 0 1 7 Feb. 25 1 0 1 1 Feb. 24 4 0 2 4 S22 CASH 3 Feb. 29 2 6 4 Feb. 28 0 7 4 Feb. 27 4 2 9 Feb. 26 7 8 2 Feb. 25 0 3 7 Feb. 24 2 3 3 Herbicide application set for Istokpoga LAKE PLACID There will be an aerial herbicide application for hydrilla. con- trol on Lake Istokpoga Tuesday and Wednesday. Contact Carl Smith at 381- 6766. Free legal clinic in Highlands County SEBRING Florida, Rural Legal Services Inc. and the 10th Judicial Circuit Pro Bono Committee are hosting a one-day Free Legal Clinic A total and faithful restoration The Hainz building is a restoration "a reconstruc- tion of the original form" - rather than a renovation, which is mainly cleanup and repair. "We worked with the ' Historic Preservation Committee and the Sebring Historical Society. They have a treasure trove of old photos showing the building' during its construction and after it was completed. We were able to ascertain dimen- sions, and discover many details of the building as it looked originally," Corson said. "We had to gut everything inside, and do asbestos abate- ment and pigeon guano abatement. Surprisingly, cleaning up after the pigeons was much more expensive than removing the asbestos. We tented the building, then put on a brand new roof. We See HAINZ, page 5A for counsel and advice on family law and various other legal issues. You will be able to speak with an attorney for a free consultation and get help in completing self-help forms. (Bring forms with you). This clinic is for resi- dents of Highlands County who are low income resi- dents and residents who are 60 years of age or older. It will be from 5:30-7:30 p.m. Friday, March 28, at Children's Advocacy Center, 1000 S. Highlands Ave. in Sebring. Call for-eligibility screen- ing at (800) 277-7680. SCS. 'Edwards i Reafrty, Inc. When You Want It "SOLD" Sebring (863) 385-7411 t Lake Placid (863) 699-0404 (2 Locations) s News-Sun Highlands County's Homtoown NowspapO 1Since o. 7% Fl. tax Totald SUNDAY, WEDNESDAY AND FRIDAY EDITIONS: If you do not HOME DELIVERY $47.50 S3.33 $50.83 receive your home delivered newspaper by 6 a.m., please phone the circula- IN FLORIDA MAIL 78.00 5.46 83.46 tion department before 10 a.m. on Wednesday and Friday publication days OUT OF FLORIDA MAIL 78.00 78.00 and before 11 n.m. on Sunday publication days and a replacement copy will FOREIGN MAIL 105.00 105.00 he delivered to you. Subscribers who notify us after the times mentioned, will Deadlines. changess received after the times stated will be processed on the following publkalion dole. CLARISSA WILLIAMS, Publisher 863-385-6155 Ext. 515, publisher@newssun.com The News-Sun A 2008 HO WA I USEHOi STE AN WASTE LD HAZARDOUS D ELECTRONICS COLLECTION The following is a list of commonly used household materials which will be accepted in the Household Hazardous Waste Collection: SSolvents *Muriatic Acid * Cleaning Supplies * Brake Fluid * Hearing Aid, Batteries * Used Waste Oil * Rechargeable Batteries * Clothing Spot SCleaner * All Paints * Automotive Cleaners * White Out/Liquid SPaper *Paint Remover o Antifreeze., * Liquid Auto Polishers *Wood- Preservatives * Auto Batteries * Pool Chemicals * Carpet Cleaner * Water Sealers * Unknown Chemicals * Liquid Furniture Polish * Paint Thinner * Carburetor Cleaners * De-Greasers N * Saturday March 1, 2008 8:30am till 2:30pm Barkley Street Just off Twitty Road (Follow the signs) NEW FOR AVON PARK RESIDENTS! Saturday March 8, 2008 8:30 AM 2:30 PM Museum Ave. (Across From Public Library Follow Signs) For more information, call (863) 655-6400 WHAT IS E.WASTE? Items such as... Old Computer Monitors Old Computer Components *Old CPUs Old Televisions HOUSEHOLDS Small businesses please contact Solid Waste Dept. for proper disposal of hazardous Materials. Oilfand Batteries accepted in unlimited quantities during this scheduled collection and also during normal operating hours at DeSoto City Landfill 7 a.m.-3 p.m. ACCEPTED ELECTRONICS END OF LIFE ELECTRONICS: Computer, Monitors, Keyboards, Terminals, Televisions, Stereos, Printers, Fax Machines, VCRs, DVD Players, Video Cameras, Video Game Consoles, Wireless Devices. 4A Sunday, March 2, 2008 Editorial & Opinion News-Sun Serving Highlands County since 1927 CLARISSA WILLIAMS ROMONA WASHING' Publisher Executive Editor SCOTT DRESSEL Assistant Editor DAN HOEHNE Sports Editor Keeping an even keel The trouble with interesting times is they can scare the purple out of a peacock. So it is important, we think, as we make decisions to shape our future that we keep our heads, lives and goals in perspective. Yes, rightnnow, as the economy slows it is unset- tling, even heartbreaking, to see longtime business neighbors move to livelier quarters, or fade from the scene. But failure is not, we choose to think, the prevail- ing order of the day. In the first place, the opportunities that lie before us are so mind-boggling all one needs is the creativity to imagine them. In the second place, this is hardly the first time we Americans have faced danger and privation. As a peo- ple we have a track record for (finally) being able to come together and work to a common purpose. Time after time, we have risen to the challenge and triumphed. We are secure in believing this is another of those times. Current polls consistently state the one thing Americans today share is a desire for change - regardless of what that change should be. When systems no longer work, or a process is bent out of shape as so many of our systems and' processes are then that desire for change is healing and cathartic. But we have to remember that change is something that involves us, and affects us. We have to admit that some of us will be hurt. We have to admit all of us will have to change at least some of our most cher- ished habits. While retaining compassion for those who will have to begin again, we need to be strong and not let the pull of pessimism overwhelm us. Only as a common body do we have a long-term chance of keeping what we love most about our indi- vidual lives; turning on ourselves will only lead to our falling apart. Look to those among us who have adapted and - thrived. They provide a pathway. Listen to those who speak of the whole community. They keep us centered. Reach out to optimists. They help us move forward. Don't lose hope. Just because something has, to be done differently, or some loss has been incurred, doesn't mean it's the end of the world. With dedicated governments brave enough to work out in the open, and citizens brave enough to be open Sto new ways, we will emerge out of these interesting times more confident, better skilled and able to retake a leadership role. TON -"Copyrighted Material Syndicated Content : Available from Commercial News Providers" There islocal help for domestic violence Victims There is local help for domestic violence victims Valentine's Day has come and gone ... the 'flowers are wilted, the card is somewhere in the house, the candies are gone and the romantic dinner is a faded memory. You're sitting on the side of the bed won- dering what happened as you rub your hand across your bruised face. The baby is crying needing to be fed or his diaper changed ... you barely slept at all last night after the beating, expecting another blow at anytime. He comes home that night with flowers, another card and eager to patch things up. You're hoping he means it this time. Surely he does love you, it's.just the stress of the job, or maybe the liquor he can't handle or could it be drugs? It only happens once a month, then things are almost like a fairy tale again. If only you behave better this time, obey his every command or wish ... oh, why can't you be good? Your parents were never available growing up and you kept trying to be good to get their love and attention but it never worked., He is eager to make things right again because he needs you to take care of him. You are convinced you can't find anyone else, or so you've been told time and time again. You think you're fat, lazy, stupid, . ugly (to put it in his words)'and he's the only one that will ever love you. Your family has seen or heard this abuse from time to time at gatherings, or when you and the man lived with them. They tried to intervene, despite being threatened by the perpetrator not to interfere and even you have said the same thing. So now you're isolated from the ones who would do any- thing for you, to be with a man who would just as soon see you dead. Now it's just a matter of time. Sounds like a scene from a Lifetime movie, but sad to say this scene is repeated over and over here in little old Highlands A Heart's Journey Janelle Dennison County, behind closed doors ... may even be the neighbors you don't know. The good news is you don't have to keep living this way. There are agencies in . Highlands County that can help. It's just a matter of going against your fears. There are friends or family, no ddubt, who would seek help with you, so you won't be alone. The year is still relatively new. Why not be free of this torment now and start a new life for you. Sure it will take time but that's part of the process. As you make a new place for yourself and any children you may have, your emotions, mind, heart can begin to heal from the strain of the abuse you've endured. Seek counseling and learn how to love yourself ... to value the unique individual you are, who God created you to be. Be determined your baby boy will not do this to his future girlfriend or wife by getting him out of it now. This is not a normal way for people to live ... and certainly not nor- mal for you! There is a Safe House in Highlands County. Call the sheriff's department (402- 7200) or your local police station to get the number and go there. Or you can call this number, 386-1167, for advice. If you decide you still want a companion after all this, get a dog. The Humane Society has plenty of them and they make great companions, full of unconditional love. Your baby will love it too. I'm hoping some young lady (or man, as men are abused too) will choose life for herself and her child or children. May God help you find your way to a better life. Janelle Dennison is news clerk for the News-Sun. Letters Bored with the constant debates, speeches Editor: Are we there yet? The election season kicked off two months earlier than usual this year. And Super Tuesday found most Americans already suffering from electionary fatigue. Many of us are already bored with the constant domination of television debates and speeches. Most of the candidates failed to inspire enthusiasm. Pundits on both sides of the political spectrum are handicapping the general election based on what is expected to be an unusual low turn out at the poles. Some, particularly among the Republicans, are disgusted that they plan to register a protest vote. Others plan to not vote at all. Not voting means allowing somebody else to decide the issues facing our nation this election cycle. And the issues on the table this year are some of the more deadly issues that our country has ever faced in all its history. Never before has America faced a greater threat to its existence on so many possible fronts. The cultural war has threatened to tear us apart from within. Rich against poor, black against white, lib- eral against conservative, gay against straight, evo- lutionists against creationists, pro abortionists(choice) against pro-lifers. We aren't a very united United States as we approach election 2008. About the only thing most Americans can agree on is that nobody seems to agree on anything ... This election Americans will decide more than ever whom to trust with America's economic future. Why? Because we are in the beginning of one of the most biggest economic crises. Whoever occupies the Oval Office for the next four years will set America's legal agenda for decades to come. U.S. Supreme Court Judges Breyer, Kennedy, Ginsberg, Stevens and Scalia are all over 70 years old. ... Statically the next three likely openings on the Supreme Court Bench will be lib- eral vacancies. On the hot button issue of our times is abortion. The Supreme Court is divided 5 to 4, a single pro-life appointment could end the carnage that has claimed more than 30 million unborn American lives since the 1973 Roe vs Wade deci- sion. ... How you vote'in November, and especially whether you vote in November could decide the question for all Americans for the next 30 years. Another issue that will be influenced this general election will be that of national security. One side argues that its better to withdraw from Iraq and to surrender it to the terrorists than to fight it out and risk of further angering the Islamic world. The other side argues 'that the Islamic world is already' maxed out angry and withdrawing from Iraq will make us look like cowards and simply shift the bat- tlefield back to the U.S. soil...'. Some years the country is best served by what you cast your vote for. Other years it is what you vote against. This year the jury is still out. I think we are really going to have to do our homework, and most of all pray while it is still legal. Wendy Griffin Sebring Delayed dividends Editor: What goes around, comes around. Senator McCain's long-time allegiance to President Bush has finally paid off. His position on the Iraqi war, amnesty bill, Free Trade bills, prescriptive drug bill, pension exemption for corporations bill, the China negotiation process, you name it, Senator McCain was behind President Bush all the way. Thus, he has just claimed his dividends by way of endorsement by Mayor Giuliani, Sens. Martinez, Graham and Lieberman and Gov. Schwarzeneggar two days before the Florida Primary. Even Governor Crist (a v.p. nominee?). All supporters of President Bush. The Establishment! What with all the talk about change, even by McCain, guess who endorses McCain? The estab- lishment! Senator McCain, war hero, beloved by all Americans, now vaulted to the front in the Republican race. How fitting. He was brutally trashed by those supporters of Bush in South Carolina in 2000, but said nothing (perhaps because of what happened to him in Vietnam). He did not blame President Bush. In fact, he supported just about all of Bush's policies, especially Iraq. He even collaborated with Gov. Huckabee to split the conservative vote with Gov. Romney. Yes, his alle- giance has finally paid dividends! All well and good, except for one key factor. He has reversed himself on almost all of them in the last two months except one, the Iraqi war. He now proclaims his Straight Talk Express, which appears to have lost a wheel. He is promising just about everything, even getting Osama bin Ladin, because "he knows how." If so, why,not now? He is pan- dering to every segment of the population, even the conservatives. He is counting on the military for support; yet, the government has exploited them from day one of the war. The troops had to wait for years to get armor for their vehicles and themselves. Their families were forbidden to send same to them. The troops' tours extended up to a year and were returned to combat two/three times. Hundreds were drummed out of the military because they were "malingerers," when actually they were shell shocked and brain dam- aged. Somehow it took four years of the war to learn that Post Traumatic Distress Syndrome is a real injury, that having vehicles blown up under them do cause real damage. Then the wounded troops returned home to face all kinds of bureau- cracy that delayed medical care for recovery. And their old jobs? This is what Senator McCain is promising the troops? what Pres. Bush provided? Senator McCain, reformed national hero, is the Republican nominee. Another national hero was exploited too. He resigned as Secretary of State. Gabriel Read Avon Park Bonnie Gray brings show back to Avon Park Editor: The Ladies Auxiliary of Veterans of Foreign Wars your tickets early ($20 couple and $15 single). Please put the date of March 16 at 3 p.m. to come to the "show" on your calendar. Watch those -girls kick those legs up as high as your head. You don't want to miss this one and only show of the season in Avon Park, which is so spectacular, you don't want to miss. Contact the VFW Post at 452- 9853 or Lori Nagy at 453-2169 to order tickets. Betty Lou Nagy Avon Park The writer is a member of Ladies Auxiliary Veterans of Foreign Wars Post 9853. Laura's Look Laura Ware Thanked for being decent 'The past couple of days have found me in a state known in my house as "pre-trip panic." This occurs a couple of days before I'm going out of town. What little sanity I normally pos- sess deserts me, and I become jittery, anxious, and cranky. I check things over and over again to make sure I'm not for- getting anything. I worry about a flight being cancelled, or some emergency coming up at home that keeps me from leaving. I worry about missing my plane. I worry about getting halfway to Tampa and realizing I left my suitcase back at home. Now understand that almost none of the above has ever hap- pened to me. In spite of my craziness, the things I need usu- ally go with me and I get to my destination fine. But my brain is a suspicious thing, worrying about this and that. My family recognizes this. insanity for what it is and is gen- erally patient through it. Don keeps me grounded, making sure I get things ready and don't go completely off the deep end. James pats my hand and tells me to calm down. And my friends laugh and tell me to have a good trip. I joke that I'm a walking phar- macy. To ensure I have enough mieds for the five days I will be out of town, I had to get no less than five prescriptions filled. To make things more interesting, one of my medications requires a fresh prescription 'each time I need it. So Monday between running other places, I stopped by Wal- Mart to drop off the prescrip- tions. Since I spend a lot of time at the phariiacy window, the gals there know me on sight. I asked the pleasant young woman who took my refill requests when I could pick them up, fully expecting to be told Tuesday morning. She looked it over and told me they'd be ready by seven o'clock that'evening - about two hours. That was a pleasant surprise. It gave me time to run other errands and even get a.fast din- ner. By the time I found myself back in the Wal-Mart pharmacy line it was closer to eight o'clock than seven. When I got to the window, the gal there apologized and said the meds weren't quite ready yet - did I have more shopping to do, or did I mind sitting down and waiting? I shrugged. I didn't have any more shopping to do, but I had my 'PDA with some required reading on it so I figured I could kill a few minutes while waiting for them to finish up. There were no seats, so I pulled my PDA out and went back to where I'd left off reading. Then the gal who took my refill order came up to me. "Thank you for being so patient," she told me. "A lot of people would have chewed her out." Huh? I was being thanked for acting like a normal human being should act? Look, I can and have reamed out people when they aren't doing their jobs. I can be impa- tient with the worst of them. But chew out the gal at the window? When it's probably not her fault? When it's the middle of season, when the pharmacy's workload increases in a major way? When I counted it a mira- cle I was getting them Monday at all? * Yeah, some people would have chewed her out. But had so many done so that my not doing so was worth special thanks? If so, shame on the impatient people. If you are one of them, make an extra effort to act differ- ently the next time you have to stand in line. Being polite to someone shouldn't be something unusual. Even if you have to stand in line in Wal-Mart. Laura Ware can be contacted at bookwormlady@embarqmail.com The News-Sun The News-Sun HAINZ Continued from 2A replaced all inside plumbing.. We ran all new electrical service throughout the build- ing," Corson continued. At street level, the store- front windows, which had been changed over time to differing sizes, were ripped out and replaced with a reproduction of the original design. The new windows meet current wind codes and now allow passersby to see into the current businesses. Ground floor doorways had to be widened to accommo- date ADA requirements. On the building's front facade, Corson restored all of the original transom win- dows, the line of narrow win- dows above the canopy. "I went to great pains to salvage the old glass. Some had to be replaced, but you can still see the wavy glass in the others." The second story windows are wooden reproductions of, the windows originally in the building, which had been replaced years ago with "modern" aluminum win- dows. The best of the old and the new Modern amenities have upgraded the building, such as central restrooms, central heat and air, and dual phone line connections. A new ele- vator was installed at a cost of $100,000 to deliver peo- ple, equipment and supplies from the rear parking area. Plaster and lath walls were restored using period methods and materials. Hex tile floors were painstakingly restored. Hardwood floors were refinished. Every fix- ture or object that could be salvaged was repaired and returned to use. Inside, original wooden doors with transom windows grace entrances to the George Sebring ConferenceuRoom. Completed in the summer of 2007, this elegant meeting room accommodates 14 peo- ple at a new racetrack-style conference table, with plenty of room for serving breakfast or luncheon buffets..A beauti- Anthony Albertus' Anthony Wayne Albertus, 68, of Sebring died Feb. 26, 2008. Born in Key West, he had been a lifelong resident of Florida. He was a retired police sergeant. He attended Salvation Army Church. He is survived by his son, Gerald A.; and one grand- daughter. A memorial service will be held at 2 p.m. Sunday, March 9, at Stephenson-Nelson Funeral Home, Sebring, with the Captain Mary Holmes and Rev. Mike Adams officiating. Memorial donations may be made to American Cancer Society in his memory. Edna Nutton Edna Louise Nutton, 83, of Sebring died Feb. 22, 2008. Born in Lawrence, Mass., she moved to Sebring in 1968. She retired from the Dade By PATRICIA C. POND News-Sun correspondent SEBRING The E. L. Hainz Bloc is the most recent restoration in the'revitaliza- tion effort taking place in Historic Downtown Sebring. Unlike some of its more dec- orative neighbors, the Hainz Building presents its busi- ness-like facade with stately grace and no apologies. The Hainz Bloc is a con- tributing building in the Sebring Historic Commercial District listed in the National Register of Historic Places in 1989. The large two-part mason- ry vernacular building is located at 130-138 N. Ridgewood Drive. The archi- tecture is simple and solid, with a flat parapet roof, buff colored brick and a stucco belt around the middle with " ceramic tile inlays. The Hainz Bloc was designed to house shops on the first story and offices on the second story. Most peo- ple patronizing the restaurant and businesses at street level are unaware that they are in a building that has been painstaking restored to its ful antique chandelier high- lights the center of the space. "We saw.the need for a professional center for people to meet in downtown Sebring," Corson said. "Our offices serve small business- es and organizations. Tenants can reserve the Sebring Conference Room twice monthly at no charge." The Hainz Professional Center also provides on-site management. Corson's office administrator, Linda Schindlbeck, is in the build- ing half days and will assist tenants with office support such as copying and receiv- ing parcels Dee's Place, one of the area's most popular restau- rants, was the first new ten- ant in the restored Hainz Building: Corson said that shortly after work began on the building, he put a 'for rent' sign in the front window. "Dee Andrews called me immediately within the first couple of hours of the sign going up," he recalls. "Dee - Obituaries- County school system in 1968. A celebration of Edna's life will, be held 1 p.m. Saturday at the Family Life Center of First Baptist Church, Lake Josephine. Memorials are requested to Wrede's Wildlife, 4820 Wilderness Trail, Sebring, FL 33875. Morris Funeral Chapel, Sebring, is in charge of arrangements. Shirley Poland Shirley C. Poland, 77, of Sebring died Feb. 22, 2008 at Hospice of Okeechobee. Born in Jordan, N.Y., she was the daughter of Leon and Erma Card. She was a social worker for the state of Florida. She was a life mem- ber of the Hermetic Order of the Golden Dawn, The Rosicrucian Order, Wicca, and most recently, a member of Unity Church of Sebring. *-* - "Copyrighted Material Syndicated Content Available from Commercial News Providers" original period. In 1923, city founder George Sebring partnered with another early settler of German descent, Edward L. Hainz, to build a 13,000- square-foot office and retail building on North Ridgewood Drive. This two-story building was the last major commer- cial block constructed by the Sebring Real Estate Company before the Florida land boom ended. Since its opening, the Hainz building housed a vari- ety of businesses, including an A&P grocery store, Gilbert's Drugs complete with soda fountain, a diner and a pizza restaurant. Upstairs were professional offices of all types, a dance studio and the local Moose Lodge. The second story served as the first Highlands County Courthouse between 1923 and 1927, when the present courthouse was built on Commerce Avenue. The courtroom area is now the final phase of the build- ing's five-year restoration, and will become a banquet facility. had her restaurant on the ground floor of the Nan-ces- o-wee and that building was in bad condition. We still had major work to do, but by March 2003, Dee was open and operating in the Hainz Building." The other street-level businesses are Stepz Dance Studio and Nutri Care Vitamins and Greeting Cards. The final phase of the restoration will be a, new banquet room on the second story, which at one time served as the first Highlands County Courthouse. Corson is looking forward to being able to offer another elegant facility to the community in the heart of Sebring's historic district. "I like commercial real estate, and compared to residential properties I get fewer calls .on the week- ends," he laughed. For information on office rentals or conference room reservations, contact the Hainz Professional Center at 385-1705. She is survived by her daughter, Deborah L. Kahn; son-in-law, Michael D. Kahn; two grandchildren, Scott F. Church and Tonya E. Kahn (Porter); and ene great-grand- son, Gunner Porter. Her firery personality will be missed by all who knew her well. Blessed be. Memorials are requested to Gunner Porter Fund at Wachovia Bank, Sebring. Private burial will be at Greenlawn Cemetery, Warners, N.Y. Arrangements by Morris Funeral Chapel Sebring All business for 85 years Cremation. Get the whole story. There's more to cremation than just the cremation. For example, did you know that the cremated remains can be buried, scattered or memorialized in a niche or mausoleum? Prior to or following the cremation, families can choose to have a service or gathering. In fact, we encourage it. For many families, the service is the first step toward moving ahead after a loss. Call or mail the attached coupon for a free brochure that tells the entire cremation story. S Stephenson-Nelson FUNERAL HOMES & CREMATORY Two Locaitions To Serve You -WO( II bring Parkway 11 1 East Circle Street bebring, FL 33870 Avon Park, FL 33825 385-0125 "453-3101 Servi'n' Our C('ofIIIn/niily' S'i ce 1925 Loctaly-Ou't ed antd Operated SPlease senc'1n7e a Free brochure on q "Cremation Options." Name it, Address - .''" f ". City Zip Phone (optional) "Copyrighted Material Syndicated Content Available from Commercial News Providers" In oNing iror) Robert E. (Bob) Dean Robert E. (Bob) Dean of Eustis, Florida passed away February 21, 2008. Born in McDonald, Ohio, November 6, 1.923 to Gilbert and Grace (Jones) Dean, he graduated North Jackson High School and served in the U.S. Army during WWII. Bob was active with the Shriners in both Marathon and Sebring. He also enjoyed traveling and toured all 50 State Capitals with his late wife Bobbi (Markuly). He is survived by his wife, Petra of Eustis, Florida, daughters Sheryl (Ralph) Nackino, Janet Dapprich, grandchildren Shawn (Jamie) Nackino, Robyn Hill, Zachary Naranjo, and great-grandsons Brady Hill and Griffin Nackino. Hamlin and Hilbish Eustis Florida Chapel handled the arrangements and intern- ment will be at Lakeview Memorial Gardens in Avon Park, Florida. Sunday, March 2, 2008 o SA 6A Sunday, March 2, 2008 DAV honors Wal-Mart for donations to park Special to the News-Sun SEBRING Harold Linville, commander of the Disabled American Veterans Ridge Chapter 49, presented the Sebring Wal-Mart a Citation of Merit on Friday during a Wal-Mart staff meet- ing with employees and man- agement in attendance. The citation recognizes the DAV's appreciation and out- standing support shown to veterans by the staff members of Wal-Mart. The donations of funds will be used for the improvements to the Medal of Honor Park. The park, at 7205 S. George Blvd., hosts monu- ments of each of the Florida recipients of the Medal of Honor, from all the wars from the 1890's to the present. Following the 2004 hurri- canes, the monuments in the park and many of the trees needed replacement. Wal- Mart stepped forward at that time and assisted in the rebuilding of the park. The News-Sun.* Veterans' News Military Ball tickets K are still available (r mI -s;,' photo Harold Linville, commander of the Disabled Americani Veterans Ridge Chapter 49, (right) presents a Citation of Merit to Elsa Garcia, manager of Wal-Mart, and Carey Stray, assistant manager. Veterans participate in Library of Congress history project BY MARY MARGARET STAIK Special to the News-Sun SEBRING When Amy Love, an American history teacher at Avon Park High School, contacted the Highlands County Veteran Services Office for assistance, she was acting on the request of Congressman Tim Mahoney. Mahoney requested the high schools in each county in the 16th Congressional District to interview veterans, collect artifacts from the veterans, and vide6 or record each veteran's story regarding their time in the U.S. Military for the Library of Congress History of the U.S. Military Veterans Project .. Following weeks of collab- oration with the Highlands County Veterans Advisory Board and the Veterans Council of Highlands County Inc., a date was set for the interviews. Six Veterans from around Highlands County told their stories to Love's classes. Mahoney's request for the students to interview area vet- erans is for the ongoing Library of Congress's History of the Military and the ,Veterans Stories. Learning that more than 1,200 World War II Veterans are dying daily, their history Is LNyicg '; 1'.this . Yfei~SfiIs thwe tWA S. . .ewe s, Iffi-ae g ..t*liefferent C I, .. l1 I .1 I t ir thile II. J i ty 1 t '"4 I i. t .s ife \ .I i ll' ii ll. _!* I Il i i I,. . II),,,I I i1, ,L tt t I SI "I 1- "1 I ye ar.10s i s tf I ''. i ''' t.I' .j i.11 t I fi5"e , II e L, i Li 1'Ws a', siial, u " 1 1 . I.i l' 1 l, kl *L i : . I I ';.".. on e 'i .W ] .1', 'I ,, I, i t[ .. i , I i e; i,. ,. ',, i ,, 1 . '' I i 1 H 1 1.I l 'i "t '" I I r' ^ I I I, I '. .... ,, ,. ,. I-_ ., i, .. i ,_ l il i, I i', I .' I ,'. 1. i L II I 1i .i I i i, i I I 1 1 ;_ 1 i I ,' 1,_ "L,' .li' i ,, l. iii experienced during the Viet Nam conflict. Marsh, injured in the service, is a recipient of the Purple Heart, as well as numerous other medals. Fred Arbelo, a veter- an of the Korean War, Mal spoke on his time with the Marines. He entered the military as a way of gcninii his life' in order. He had made some decisions he considers youthful indiscretions, and knew he needed direction. Arbelo insists he is the respon- sible citizen of today due to his time as a Marine. He cred- its the American Red Cross and the Navy nurses and doc- It 's tors for saving his life, treating his wounds, and bringing him home to his family. He is the local commander of the Military Order of Purple Heart. iho Representing veter- one>y ans from World War II, the Rev. Gene Snidow spoke to' the high school stu- dents with regard to his time in the service. Judy Puffenbarger, an Iraqi War soldier, is currently employed by the Sebring Community Outpatient VA Clinic. The students were in, awe of her story of Iraq. U.S. women soldiers were diligent in not offending the culture of the area in which they served, while still conducting their assigned duties. In the U.S. military, women soldiers carry weapons, crawl through dirt, climb towers, jump out of air- craft, and are physically chal- lenged just as the men. They are prepared to fire their weapon when necessary. Many women have fired their weapon to protect their fellow comrades in combat. The mili- tary makes no distinction between men or women sol- diers. Mahoney and his assistants were on hand in Love's class- room while Puffenbarger was interviewed and filmed by the students. Special to the News-Sun SEBRING Although ticket sales have been brisk, the Veterans Council of Highlands County Inc. still has tickets available for the March 8 Military Ball. This year the Military Ball is open to the public. Proceeds from the Ball will benefit the Veteran Assistance Committee. The second annual Military Ball will be at the Sebring Elks Lodge., Retired military personnel and active military are encouraged to wear their Mess Dress or Dress uni- forms. Other military veter- ans are encouraged to wear their military medals on their suit jackets, above the left pocket. Those veterans pre- ferring to dress semi-formal may wear their veteran organ- ization uniform. The formal/semi-formal event will begin at 5:45 p.m. with a social hour, followed by the opening ceremony and banquet. The dance portion of the evening should begin at 7 p.m. Special events during the evening include door prizes, a 50/25/25 raffle, and several auctions. Menu for the buffet banquet includes a salad, mixed grill of chicken and beef, potatoes, vegetables, coffee, tea, and dessert. A cash bar will be available. Tickets are $50 per couple, and $30 for individuals. For more information, contact Betsy Waddell, president of the Veterans Council, 382- 0419; Mike Basile, 382-4550; or Carl Arthur, 385-2785. Tickets are available at sever- al of the veteran services organizations. Here's what's new for 9pring/gummer 2008 S-E'S CUBBMH.oLf , I-.' *. 1 - u .- - what you've been waiting for... less time in the ER. ,~ ~ .'.,i' - 1)t~!fI'LV!1111~11t 4~4~ 9.,, j~~~~~~~j~r t ~~, rY~5:~~'r 'I ~ li ..0 jA '~ ~ ~ rco~ F i~ r( ~~'9PI The News-Sun Sunday, March 2, 2008 7A SENIORS Continued from 1A needy," LaCount said Wednesday. Under the direction of Assistant Human Services Director Mary Foy, the coun- ty had been distributing food to qualifying residents. But, as a cost-savings measure, the program was cut and trans- ferred to the private sector. "Mary Foy said I was able to receive some money for gas and that is what I received," said LaCount, who winters here from Wisconsin. LaCount volunteered with the county for its intrinsic value, not for monetary rewards. In fact, she followed the commodity program to Salvation Army, where she's 'again;an unpaid volunteer. "If I can help some office out and, in turn, they can help the needy out, I'm all for that," LaCount said. * Minor said most of the vol- Seniors will have to wait to get low- income exemption SEBRING Low- income senior citizens seeking a property tax exemption increase will have to wait another year. Commissioner. C. Guy Maxcy said a 40-minute discussion about the mer- its of an increase came to a close when they realized the deadline was Saturday, March 1. "I'm a little frustrated by that," Maxcy said Wednesday morning, explaining action by the board requires two adver- tised public hearings. For more, log on to newssun.com and search keyword: exemption. -Kevin Shutt unteers have elected to work at the county's libraries, though employment opportu- cities are only limited to a person's capabilities. The application process is. similar to that of any person seeking a Highlands County job applications are filled, backgrounds are checked and candidates are interviewed. The 80 hours can- be worked in any combination desired by the senior. "Some people want to do it in two weeks, and some peo- ple want to spread it out," Minor said. Once the 80 hours are expended, Minor said the individual must wait 12 months before,being qualified again. And, the funding must be available. Of the $15,200 budgeted for the current fiscal year, $14,500 remain. That means 26 people could earn $543.20 each before Oct. 1 to put toward property taxes, pres- ents for grandchildren, gro- ceries or whatever their hearts desire. News-Sun photo by KATARA SIMMONS Good Shepherd Hispanic United Methodist Church member Manuel Viera and Lay Leader Benny Aguilar work together Saturday morning to help build a community garden at their church in Lake Placid. N GARDEN Continued from 1A entire congregation." Ownership of the garden is essential because, after a year, the church will be the sole caretaker of the nourishing harvest. Until then, the Health Department will provide quarterly food preparation lessons to help the gardeners incorporate their veggies. The garden will be divided into 24 beds elevated two feet, with one or two people cultivating each. ,"The two-foot height makes them easier to main- tain," Carlton explained. "They don't have to bend as much as the waist or knees." In addition, he said the higher beds are less prone to weeds and rodent attacks. To add to the aesthetics, they'll also build an arbor. Most of the workforce is coming from Home Depot, which leant technical expert- ise, drew up plans' and donat- ed equipment and seeds, which will be planted Saturday. "We are very happy about this," said Maldonado, the church's pastor. "Witfh this program we want to reach the community." Her flock-is 50-60 mostly- Hispanic members represent- ing Puerto Rico, Central and South Americas, Mexico and the Caribbean. She said the church part- nered with "Closing the Gap" when she was working on her ministry doctorate to fulfill a project requirement. The relationship with Gap proved fruitful and when the Health Department came call- ing for a participant in the community garden, Closing the Gap called Maldonado. In addition to her own parishioners' benefit, Maldonado said they'll give away the harvests' surpluses. "So many times in church we talk about a healthy spir- it,"- she said. "But, we forget about the whole body." STIMULUS Continued from 1A when the bbard considers establishing an "Affordable and Workforce Housing Program." Another feasible idea dis- cussed among staff was start- ing the construction of cer- tain projects already approved and funded. Cool said .Maxcy's sugges- tion of suspending fees is "legal to reduce them" but he didn't indicate it was an idea to run with. "The problem we have with housing out there is there are to many houses for sale," Cool said. "Building more houses doesn't solve that problem. Building is a short-term fix." Cool's wife Maureen Cool sells real estate, and he plans on working with her upon his retirement at the end of May. Instead, the county should focus on luring coastal resi- dents, and their Save Our Homes portability. "You now have some cred- its from your homestead exemption," Cool said, explaining how targeted advertisements might try to get residents to sell their rel- atively more expensive homes elsewhere. "Come to Highlands County and get some value for that." It's an idea he said Louise England, Economic Development Commission executive director, endorsed. England didn't return calls Friday. The theory is the inland flux would consume the homes on the market, eventu- ally creating the need for more construction. Ken Melvin, Sebring resi- dent and the only council candidate who recommends potential constituents not vote for him (if they don't want change), is on board with the stimulus idea. "I'm talking to a lot of business people, I'm talking to a lot of politicians and I'm talking to a lot of 'Joe Blows' on the street," he said, calling the News-Sun with ideas of his own. "There's complaints about rents too high. We need to encourage lower rents, or find a way to stimulate, help pay for rents. "There's a lot that we can do if we just take the attitude that we're going to do it. Cut all the red tape and just make it happen." While implementing some kind of stimulus is an atten- tion-getting venture, how would the commissioners gauge whether it's success- ful, and determine when to New numbers to be released on Thursday By KEVIN J. SHUTT kevin.shutt@newssun.com According to Heartland Workforce statistics, the unemployment rate in Highlands County shot to a three-year high in August before creeping back downward. The numbers provided are current through Dec. 31, 2007, and new data are expected Thursday. In January of last year, the unemployment rate was 3.5 percent 42,204 peo- ple were working from an eligible workforce of 43,733. In August, both those numbers decreased but the rate increased the labor force shrunk to 43,026 while employment dropped to 40,438 resulting in a 5.1 percent unemployment rate. The actual number of unemployed in January was 1,529 compared to August's 2,264. Last year also recorded some of the lowest unem- stop the stimulus? "I hadn't thought about that yet," Maxcy said Wednesday. "That's a very valid question." He suggested "leaning" on state standards for guidance. He said a time limit of six months or a year might be necessary. "In other words, let it sun- ployment rates for the county during the three- year period of 2005-2007. April and May boasted 3 percent unemployment - 1,322 and 1,334 people, respectively. April 2006 had 1,221 unemployed for a three-year low of 2.9 per- cent. Annual averages rates in percentages were 4.3, 3.6, and 4.2, respectively, for 2005, 2006, 2007. Helen McKinney, Highlands County Building Department, provided a snapshot of three year's worth of permits pulled. Most currently, from Oct. 1 through Feb. 28, there were 124 single fami- ly permits issued and 28 commercial. For the same period for 2006-2007 .z- inle fami- ly, 647, and commercial, 82. And, for 2005-2006 - single family, 446, com- mercial, 10. For the previous two years, single-family per- mits were fewer in number but more commercial per- mits were pulled. set," Maxcy said. "I don't think you stimulate until the economy comes back because you could be stimulating a long time." Cool pointed to economic indicators such as unemploy- ment and building. permits. "When they start picking up," he said. Sebring woman jailed for forging prescriptions By TREY CHRISTY trey.christy@newssun.com SEBRING A woman was out on $21,500 bond after she was indicated in forging pre- scription. Claire Dunn, 49, Sebring, allegedly took advantage of her job at Heartland Oncology Partners, where she was authorized to contact pharma- cies and arrange for patient prescriptions, by forging six prescriptions for herself and another unidentified suspect. HARDER Continued from 1A cal year and lays out exactly where the money went. The amendment will cover both revenues (including interest income and grant moneys) and expenses (including legal costs, 'taxes, insurance and the like). The money spent on Harder Hall is pulled entirely from the city's special revenue fund, and the expenses come at no additional cost, to city resi- dents, Eastman said., "The money doesn't come from taxpayers," he said. Among the expenses are almost $90,000 for legal expenses and $11,932 in operating expenditures, a fig- ure that includes paying the salary and benefits for on-site According to Walgreens, Dunn called in prescriptions in her name or the other sus- pects name, Deputy John Singha wrote in an arrest report. At least one purchase was made with.a Visa card belong- ing to Dunn, while two were made Dunn's Walgreens express pay account, linked to her MasterCard, Singha said. The six prescriptions, all for 90-count Hydrocodone, were called in between Nov. 1 security at the site. The city has since reduced that expen- diture by eliminating the on- site security and installing security devices, coupled with routine drive-by inspec- tions by the Sebring Police Department. In fact, he added, while the city actively continues to market the historic hotel for sale, there is enough money from the Economic Development Initiative grant to cover expenses for "several years" without asking taxpay- ers for additional money. Currently, the city's operat- ing costs for the hotel range between $20,000 and $25,000 each month, Eastman said. The 'budget amendment will be presented at Tuesday's city council meeting as part of the consent agenda. and Dec. 31 of 2007. No fraudulent activity had been reported on either card, Singha said. Probable cause exists that Dunn fraudulently called in at least six prescriptions by hav- ing access to a doctors Drug Enforcement Agency number and the knowledge needed to call in prescriptions, Singhh said. Officials believe Dunn obtained trafficking amounts of Hydrocodone on at least two occasions, Singha added. Dunn was charged with six misdemeanor counts of forg-, ing a prescription and two counts of trafficking. 'C~~ a .5 '-.9 ~ County's unemployment rate hit three-year high last year RESIDENTIAL COMMERCIAL *CARPET -CERAMIC TILE WOOD VINYL *INDOOR/OUTDOOR CARPET *CUSTOM AREA RUGS CABIN CRAFTS* CARPETS g Ib Slw -nduy tM.. Inc. HORIZON SBy Mohawk S- MON-FRI 9AM-5PM S SAT 9AM-12NOON 1110 LAKEVIEW DRIVE SEBRING The News-Sun 8A Sunday, March 2, 2008 ACCU WFATIR Forecasts and graphics provided by AccuWeather, Inc. 2008 AccuWeather.com - __ V . - m - "Copyrighted Material P. Syndicated Content e - S Available from Commercial News Providers'" S -_ 1- - . * * * - 40bmow mm- q 40-ftlmm 41U Wil! w m.a a &I 1. 1*. WA Ihil r s ~ :: : IS W. * 0 2 * -J 1? t: F~ *.: US .: .s si. IS. ~3. 0M4L- t90 They found the perfect home. retirement We found them the perfect FDE o rn o We Beautifully Install: * Kitchen Countertops * Bar Tops Vit * Bathrooms gantie * Vanities r * Fireplace Surroundings * Stairs * Outside Grills Also Available Natural Quartz and Marble If You Can Picture it in Granite, We can Do It! w A w Q - S m V 40 tr WO 0w - ow'l 1 OiB q9f - sapv~ 0 0.W v w -- A .AD,,-.4D 0 o 0 SS Sunday, March 2, 2008 Page 9A Harn wins Riverside Bank's 'Live One Month Free' contest Special to the News-Sun SEBRING Sebring resident Cynthia Hearn just received an exciting gift from Riverside Bank the bank will pay her rent for one month. A pres- entation to the winner of Riverside Bank's "Live One Month Free on Us" sweepstakes was held recently at Riverside's Sebring office. "I can't believe it," Hearn said. "I can really, use the additional funds this month. Winning this sweepstakes means so much to me. I am bringing all my banking business to Riverside Bank." "All of us at Riverside Bank are excit- ed about'helping out Ms. Hearn and her two puppies," said Sophia Peavy, Riverside's Sebring office manager. "By eliminating the responsibility of a month's rent payment, Cynthia can use her funds toward paying off other bills or whatever else she wishes to -use the money for. It's Riverside's way of show- ing we care about the citizens in our home towns, especially in this economy. The contest began Jan. 14 and ends at 11:59:59 (EST) on March 31. A total of 15 winners will be selected throughout the sweepstakes; five at the end of each of three months, one in each of the bank's five operating regions Central Region (Indian River, St. Lucie and Courtesy photo Sophia Peavy (left) celebrates a free rent payment with winner Cynthia Hearn and her two dogs. Martin counties), Palm Beach County, Heartland Region (Highlands, Polk and Okeechobee counties), North Region (Volusia and Lake counties) and Brevard Region (Brevard County). To enter the contest,. individuals should visit any Riverside Bank branch and complete an entry form. They do not need to be a Riverside customer and do not need to open an account. The promo- tion. is open to legal residents of the United States who are 18 years of age or older as of Jan. 14. Commercial mort- gage and commercial rent payments are not eligible. Employees of Riverside and their immediate families are not eligible. Dunkin' Donuts turns up the heat with new Oven-Toasted menu Special to the News-Sun SEBRING Dunkin.' Donuts, the world's largest coffee and baked goods chain, has launched its new, all-day Oven-Toasted menu. Exciting new Dunkin' Donuts' Oven-Toasted menu items-- now-- -aVaiTblTe all' throughout the d&N include- Flatbread Sandwichei, easy to hold and eat. These hot, crispy sandwiches are available in three classic fla- vors: Turkey, Cheddar & Bacon; Ham & Swiss; and Three Cheese (Monterey Jack, Cheddar and Swiss). W Personal 'Pizzkis,"'avail- able iq fiyes container was specifically designed 'to fit neatly into a car cupholder, perfect for on-the-go occa- sions. New cooking ovens, using patented.technologies, deliver. See DUNKIN, page 13A Questions and answers about the Economic Stimulus Package In all honesty, I did not think that I would need to spend any time talking . about this topic in my articles, but evi- dently there is still a lot of confusion out there so here goes. The 2008 Economic Stimulus Package was signed into law by President Bush on Feb. 13 and with Tai Tal Bill Be his signature, provides for $170 billion in tax breaks and economic stimulus pay- ments. Since that date, much has been written about the tax breaks and stimulus pay- ments, but many people still have questions. The first question -that I still seem to be hearing is, "In order to qualify for the tax rebate, I must have quali- fying income, right? So what is qualifying income?" Qualifying income is: Form W-2 wages, net self-employ- ment and Social Security or Railroad Retirement benefits (whether taxable or non-tax- able). SSI and pension bene- fits are not qualifying income. The second question that I get asked is,"How much will my tax rebate be?" Well like most tax legislation, it depends. If you have at least $3,000 of qualifying income, you will receive a minimum of $300 if filing single and a minimum of $600 if filing a joint based upon your 2007 federal tax return. If the tax paid on your-2007 tax return exceeds $300 on a single return or $600 on a joint return, you will "receive $1 for every dollar of tax you paid over $300 (fil- ing single) or $600 (filing joint) up to a maximum rebate of $600 if filing single or $1,200 if filing X joint. Also, if you 1k have a child (or chil- nton dren) that lived with you under the age of 17 as of Dec. 31, 2007, you will receive an additional $300 per eligible child. The exception to all this is if your Adjusted Gross Income (AGI) exceeded $75,000 if filing single or $150,000 if filing joint on your 2007 tax return where your tax rebate amount will be reduced. If your 2007 AGI exceeded $87,000 if filing single or $174,000 if filing joint, then you will not receive any tax rebate at all. The third question that I get asked is,"If I normally do not file a federal tax return (because taxable income does not exceed allowable amounts), do I need to file a 2007 tax return to receive my tax rebate. Yes, the Internal Revenue Service is using 2007 tax returns as its only source to determine eligibili- ty for the tax rebates and cal- culate the amountlof your rebate. Therefore, even if your only source pf income is Social Security benefits, you must file a 2007 tax return. For example: Enter See BENTON, page 13A SW Balance & Falls Orthopedics Dizziness Pain in Joints and Loss of Balance Muscles Herdman Vestibular Low Back HerdmaninNeck Certified Rehabilitation Shoulders inLow Activity Tolerance Hands n Vertigo Knees . Vestibular Fear of Falling Hips . Rehabilitation Weakness Loss'.f f, ,ti 8 .., Does Medicare recognize uestibular/fall and balance therapy? -: YES! Not only do they recognize it, they welcome it as an ongoing movement toward the ,tuc&_ and prevention of hip fractures and the resulting mortality and morbidity. . ; . What Types of Diagnoses & Conditions Does Vestibular rehabilitation .Treat? i, Some of these conditions include: ' Benign Paroxysmal Positional Vertigo (BPPV) Labyrinthitis ' Meniere's Disease Stroke and Transient. ischemic Attadcls_. -. Vestibular Neuritis". .' To help determine if you may be headed for.a fall, take the. Balance Self Test below. If you answer 'yes' to one or, more of the questions, you could at' risk. The best way to determine if you .have a problem,. however, is6to talk. with your physician who might recommend that you get a balance ,' screening test from. a qualified clinician., ". I Have you fallen more than once in the past year? . ; Do you take medicine for.two 6r more of the following..liseases t disease, hypertension, arthritis, anxiety or depression?., ' Do you feel dizzy or unsteadyif you make a sbuddehangesn' movement, such as bending down or quickly turningg?' *Have you experienced a stroke.or othdr nburdligicl roa lem that has affected your balance? Do you have difficulty sitting down or rising from seated or.lying position? ' .') : ,. .J i . 10A Sunday, March 2, 2008 The News-Sun TOP STOCK PERFORMERS ON AM4X ;^ EA"- '" . ---- Dow Jones industrials =or the week ending Friday, Feb. 29 - -114.63 12,266.39 Nasdaq composite :or the week ending Friday, Feb. 29 -41.87 2,271.48 Standard & Poor's 500 or the week ending Friday, Feb. 29 . 1,330.63 MosAl eSoael Mone ( moMoe most Aciv1e ($1 oroe) Name Vol Last Cng Name Vol La.l ChIg Name Vol Last Cnrg Citgr Gans (S2 or more) Loserl 1 moimel Name Vol LasI Ch I MuniMtg f 7.09 -9.42 -57.1 VMwaren 57.85 -22.70 -28.2 DynCorp 19.18 -4.26 -18.2 AlliData 53.90 -11.70 -17.8 Dist&Srv 27.64 -5.68 -17.0 Diary Advanced Declined New Highs New Lows Total issues Unchanged Volume 2,886 415 88 92 3,327 26 22,403,842,82 SPDR 12054851139.58 +6.54 SPFncd 7136792 29.68 +2.50 iShR2K nya4817523 72.63 +4.16 PrUShQQQ182792647.02 -4.10 PrUShS&P1407050 59.10 -6.03 GaemI1s(ormorel) Name Vol Last Chg AMtgAc 2.45 +1.14 +87.7 OrdeansH 5.85 +2.11 +56.4 ILX Resrt 4.00 +1.42 +55.0 IntTowergn 2.40 +.85 +54.8 CiIAMD2-08 5.04 +1.68 +50.0 Loswrs l12 Of1ot) Name Vol Last Chg Grahams 34.05 -8.60 -20.2 MexcoEn 3.50 -.84 -19.4 ChaseCps22.22 -5.28 -19.2 SamsO&G n4.00 -.80 -16.7 ProUShtFn92.40 -17.60 -16.0 Advanced 1,260 Declined 453 New Highs 56 New Lows 117 Total issues 1,780 Unchanged 67 Volume 5,464,803,978 PwShsQQQ893500045.59 +1.60 Microsoft 6218298 30.45 -2.49 Yahoo 6059164 28.38 +6.44 Intel 4069059 21.77 +1.77 ETrade 3341661 4.97 +1.21 Ganes (12 or morel Name Vol Last Chg QuintMrwtA14.89 4.69 +81.6 HovnEnpfA12.18 +4.78 +64.6 Labophm g 2.17 +.83 +61.8 DaytonSup 3.22 +1.17 +57.1 MaxErma 3.60 +1.30 +56.5' Losers (2ormorel Name Vol Last Chg Daltawatch 4.01 -2.32 -36.7 HutchT 15.56 -8.01 -34.0 LECG 8.46 -423 -33.3 Accuray n 10.23 -4.88 -32.3 Omnicell 19.61 -8.92 -31.3 Diary Advanced Declined New Highs New Lows Total issues Unchanged Volume 2,324 860 62 264 3,247- 63 12,824,279,94 52-Week Frl +102000urich Name High Low Last Chg. Name High Low Last Chg. ORANGE JUICE SOYBEANS-MINI 15,000 lbs.- cents per Ib. 1,000 bu minimum- cents per bushel Mar 08 142.90 133.00 136.80 Mar 08 1296 1228 12870 +440 May 08 144.20 135.00 139.45 +.90 May'08 13150 1247 13060 +44fl Jul08 146.00 139.10 141.55 +1.25 Jul08 1329 1261 1320 +44fl For's sales 7121 Fri's sales 59669 Fri's open Int 25073, up 1059 Fr's open Int 23609, off 787 CATTLE CORN 40,000 lbs.- cents per lb. 5,000 bu minimum- cents per bushel Feb08 92.15 89.95 90.22 -1.18 Mar 08 509fl 490 500 +20 Apr08 95.45 93.35 94.05 -.32 May 08 5210 5020 5130 +20 Jun08 94.30 92.00 93.95 +.95 Jul08 531 511 5220 +30 Fri's sales 137035 Fri's sales 939885 Fri's open Int 265532, up 10187 Fri's open int 14254B4,08 +.41 May08 244.2 236.3 240.2 -5.2 May08 13.10 12.26 12.86 +.52 Jul08 258.8 249.5 257.4 -2.3 Jul 08 13.18 12.34 13.01 +.60 Fri's sales 4227. Fri's sales 936256 Fri's open int 11351, up 1059 Fri's open Int 1035651, off 1681 Market watch February 29, 2008 ".". .. Dow Jones -31S. Industrials 12,266.39 Nasdaq composite 2,271.48 Standard & -37.05os Poor's 500 . 1,330.63 Russell 2000 686.18 NYSE diary Advanced: 436 Declined: 2,711 Unchanged: 60 Volume: 1,765,343,589 Nasdaq diary Advanced: 506 Declined: 2,066 Unchanged: 63 Volume: 1,809,951,886 SOURCE: SunGard stuc Enolt SteerS PE Lid 0kg AutoZone CSX Citigrp CocaBtl Dillards Disney ExxonMbMarl ............................................................................. 15 ,0 0 0 S 14,000 S 13,000 S12,000 ............................................................................. 11,000 M A M J J A S O N D J F ............ ....... ..................... Y ....................... 2 ,800 2,700 2.,600 .... .... .. 2,500 --- *- 2,400 2,300 ..................... ...................... ........ ...... . 2,200 ......I............................................... I....................... 2 ,100 M A M J J A 8 O N D J F ....................................................... .............. ..... 1,600 ....... 1,500 - -- J A1,400 ..... .. 1,300 ............................................................................ : 1,200 M A M J J A S O N D J F i Heartland National Bank Your locally owned Community Bank Serving all of Highlands County AVON PARK 93 li S Hi1v"w:r,? ? ."-il LAKE PLACID UI'sm! SEBRING SUN 'n LAKE NORTH (,,I j i 46 a www, heartlandnb.com 0. ., -. NI0 To Tal YTD 12-a Mlyltlib Ausseb %In %mb Price Punt AIM Investments A: Chartp 4,749 +9.1 +2.10 15.87 15.7 Corslp 5,684 +5.8 -1.40 26.44 26.44 If 2714 +17.1 +4.10 29.59 29.59 AlllanceBernm A: InhWAp 5,891 +15.0 4.20 20.42 20.42 AllianceBem Adv: Inl d 3,655 +153 -3.90 20,75 20.75 Alilanz Funds A: NFJDWalt 3,567 +12.1 -1.30 15.93 15.93 Amer Beacon Plan: LgCapIan 5,034 +9.6 -1.70 21.82 21.82 Amer Century lnv:. Eqlncon 4,316 +7.1 -1.70 7.61 7.61 GroNln 4,049 13 +5.90 2427 2427 cGron 2,703 42 .6.40 27.75 27.75 tiasn 9,491 43.4 6.50 233 22.33 Vietan 2,887 +14.1 +17.60 19.18 19.18 American Funds A: ArcapFAp 18,132 .4A .. 19.32 1932 nMulAp 16,770 +7.4 -2.00 27.42 27.42 BAp 38,031 6.8 43.40 18.97 18.97 ondFdAp 24,08 +4.0 +4.50 13.17 13.17 CapWkAp 4,167 +5.4 +11.80 20.27 2027 CaplnBidAp81,641 +112 +5.00 59.92 59.92 CapWGrAp 83,043 +162 +9.10 42.14 42.14 EupacAp 63,432 +183 +2.80 47.72 47.72 FndlnvAp 30877 +13.8 +5.90 40.49 40.49 GwthFdAp 918,39 +11.1 4+.90 32.49 32.49 HITrstAp 89,157 +52 -1.30 11.61 11.61 IrcoFdAp 6389 +53 -.70 18,79 18.79 InBdAp 3,622 +3.9 +8.30 13.60 13.60 lnvCeM p 73,471 +85 -.20 31.66 31.66 NEcnrAp 8251 +11.5 +2.10 25.47 25.47 NePwTrAp 48,726 +14.7 +9.00 32.41 32.41 NeWordA 13,762 +20.7 2320 56.15 56.15 SeCpWAp 20,116 +15.8 44.80 37.74 37.74 TbcoAp 5,46 +435 4330 12.38 12.38 W MAp 65,87 +7 5 -1.0 32.40 32.40 American Funds B: BanBt 5,391 46.0 +2.60 18.9 18.89. CaplnB8B 5,728 +103 +4.20 59.92 5992 ciCapW.t 4,737 +15.3 +84 0 41960 41.90 GrotBt 7,600 +10.3 43.10 31.38 31.38 knrowleBI 003 +7,5 .1.50 18.67 18.67 ICABt 4,137 .7.7 -100 31.50 3150 WastiBtI 3,029 46.7 -2.60 32.19 32.19 Ariel Mutual Fda: Sidn 3,436 .2.6 .9.00 44.76 44.76 Artisan Funds: SNM 13,039 +17.1 .6.90 26.99 26.99 MUCvp 5.598 +112 +9.10 28.6 28.66 MdCpV 3,034 +10.8 -1.70 1826 ,18.26 Baron Funds: Assdln 4,347 +103 -1.609 59.92 5992 Gmowth 6,861 +73 -2.10 48,60 48.60 Paiteap 3,384 +13.8 -.0 22.69 22.69 ntep 3,' 6 +7 .1.00 22.08 22.08 Bernstein Fda: ktDIr 5230 +4.3 4+6.50 13.27 1327 DMon 4.923 4+.5 4.0 14.35 1435 TIgdlr 9,038 +13.1 -1.90 23.15 23.15 IntPol 4,165 +13.6 -.40 23.09 239 EglMIts 3,134 +26.8 +22.00 37.32 3732 BlackRock A: G0b0 r 8,405 +14.2 +14.20 19.54 19.54 BlackRock B&C: GlobA1CI 7,760 +13.3 +1320 18.37 18.37 BlackRock InstI: BasVall 3,320 8.1 4.70 28.69 28.69 GiAlocr 4,969 +145+14.40 19.61 19.61 Brandywine Fds: B6eFd 3,731 +11.7 '9.60 32.16 32.16 BraiKdywne 4,863 +12.0 +6.10 32.85 32.85 CGM Funds: Foc d 5,536 4333 460.50 49.33 4933 CRM Funds: CdCapVll 2804 +10.8 +2.90 28.44 28.44 Calamos Funds: GrllMlncAp 3236 +7.9 +1.90 29 .79 29.79 GlowlAp 10,900 +7.9 +7.40 52.39 52.39 GMrtCI 3,554 +7.1 6.60 48.71 48.71 Calvert Group: locopx 5217 +4.4 45.40 16.55 16.55 Cipper 2.850 +4.0 -5.50 77.55 77.55 Columbia Class A: ASon 4.308 +10.1 -1.40 27.48 27.48 Foom.qA 2883 +82 -1.50 22.45 22.45 21lAGnyA 5,463 +14.8 +7.9 15.63 15.63 MerOGoAt 3352 +7.1 +.40 2122 2122 Columbia Class Z: AC oZ 13,026 +10.4 -1.10 2819 28,19 AcominlZ 4,965 +20.4 +5.40 4021 4021 DFA Funds: USCoreEq2n2,961 NS -5.50 1124 1124 DWS Scudder CIlA: Drm RA 5369 +7.6 -2.00 4625 4625 DWS Scudder ClS: OGm cS 3,808 +53 -.80 17.19 17.19 Davis Funds A: NYVW A 30,538 48.7 -.80 3.59 0359 IM Ta no W r 2I D 1Wly atirn AM S %Rls %iRn Prke Punoh Davis Funds C & Y: NYVenY 7,590 +9.0 -.50 3903 39.03 NYVenC 7,771 +7.8 -150 3721 3721 Dimensional Fds: EmgMMiVa 7,787 +333 +430.0 40.85 40.85 InrlSaVa 8,105 +14.4 -550 18.56 18.56 USLgCon 3,439 +7.4 -1.70 40.94 40.94 USLqVan 7,373 48.7 .8.00 22.73 22.73 USMincn 4,562 442 .12.60 12.66 12.66 USSinalln 3,233 +5.6 -10.0 18.42 18.42 USSmVal 8,676 +5.8 -15.00 23.39 2339 InlSmCon 5395 +13.6 4.50 17.59 17.59 EmgMidn 3,278 +280 +23.30 3123 3123 Foan 3,217 +42 +5.10 1021 10.21 InIVan 6,151 +16.9 +.10 22.68 22.68 G5Fxhlnc 3,520 43.7 +5.30 10.77 10.7 2YGIFxdn 3,120 +4.0 +530 1031 10.31 Dodge&Cox: Balanced n 26,92 +6.8 -2.10 79.31 79.31 Incmeo l 15,932 +43 +5.90 12.68 12.6 Int SIk 53,479 +15.9 +1.90 4299 42.99 Stok 63,290 +82 .63013263132.63 Dreyfus: Aprec 4,391 +8469 -.10 4226 4226- INey nl 3,443 +7.0 -2.0 3932 39.32 Eaton Vance Cl A: LgCpaI 5,641 +12.4 4+3.80 21.81 21.81 NaMun 4,400 +4.2 -3.30 11.00 11.00 Evergreen A: sAp 4,388 NA NA 14.45 14.45 Evergreen C: As toCI 4,648 NA N A 14.02 14.02 Evergreen I: C i 3,069 43.6 +4.60 10.34 10.34 Excelsior Funds: WResn 8,992 .3+11.3 43.10' 506 55.06 Fitrhme 6,689 +15.0 +11.70 31.77 31.77 Federated A: N KaulmAp 3,653 +13.8 4860 581 5.81 Federated Instl: KaulmanK 5,277 +13.7 8.40 5.81 5.81 Fidelity Advisor A: ODidnAr 5,229 +12.6 -.50 20.28 20.28 Fidelity Advisor I: OiM n 4,760 +13.0 -.20 20.62 20.62 Fidelity Advisor T: OivMTp 3,076 +12.4 ..70 2007 20.07 EqGrTp 2.774 +9.8 +12.20 58.84 58.84 MidCapTp 3,826 +7.2 420 21.13 21.13 Fidelity Freedom: FF2010n 14,721 +7.0 .3.50 14.47 14,47 FF2015n 6.995 +7.6 2.90 12.09 12.09 FF2020n 21.276 83 +2.50 15.20 15.20 FF2025n 6,404 .4 +2.00 12.62 12.62 FF2030n 14351 +8.9 1.50 15.67 15.67 FF2305n 3,779 +8.9 +1.30 12.96 12.96 FF2040n 7,436 +9.1 +1.00 9.19 9.19 Fidelity Invest: AggrGrr 3,606 +8.9 4+4.0 20.74 20.74 AMgdqOn 8,431 +5.8 +1.70 15.05 15.05 AWgr70 3,057 .460 .30 1621 16.21 Balanc 27,227 +95 43.40 19.00 19.00 BlueChipGr 16,516 +4.8 +.60 40.42 40.42 Cenada 4,649 +23.9 +26.10 58.19 58.19 CapAppn 9,049 +81 -2.30 25.43 25.43 CapveelO 575 9.8 +5.40 11.65 11.65 Caplncoor 9,718 +3 +.10 8.42 8.42 Conkan 80,864 +125 +6.50 66.67 66.67 CnvSec 2,977 +11.5 +7.40 26.79 26.79 DisEqn 12,111 +9.3 .40 2747 27.47 Diednrln 56,765 +16.0 +5.20 36.87 3687 DivGthn 14,491 +5.6 460 28,23 2823 EmrgMkin 6,437 +35.3 30.10 3051 30351 Equllncn 30,460 +7.9 4.50 53.02 53.02 EQIIn 10.307 +7.0 -1.70 21.90 2180 Europen 5,282 +16.1 43.70 38.42 3842 Expodn 437 +9.6 +1.10 23.39 23.39 FWeFd 7,682 +10.4 +6.40 3727 37.27 GNMAn 3,211 +5.0 +9.00 11.11 11.11 Govllncn 6,439 5.4A10.90 10.59 10.59 GroCon 37,072 +12.6 .10 7631 76.31 Gmlnc 19209 4.1 4.30 26.42 26.42 Hhnim 5,200 +5,0 ... 8.43 .43 tpedncen6.18 +15.24+7.8 25.77 25.77 IllBdn 7.984 A.8 +5.40 1026 10.26 In0iscn 13,925 +17.4 +7.40 39.51 39.51 InvGBn 11,240 .6 +4.00 7.26 7.26 alan 5,831 445.8 035.100 000 60.00 Mod 7,694 +14.6 +.30 3021 3021 35,230 A8 -2.70 39 .62 39.62 Magehen 44,821 +8.3 +.10 6.77 86 .77 MiCp n 15,163 +11.5 -3.20 27.36 27.36 MMnlRcn 5,1350 +38 +4.50 1267 12.67 OTC 9.105 +11.0 +7.30 45,32 4532 10Indoex 6.643 NS NS 10.00 10.00 Owvsean 9,106 +18.2 +1020 4453 44.53 PurFan 20.414 +7.4 +.70 1831 18831 RealEstn 4,583 +10.5 -24.40 27.17 27.17 STBFn 7,123 +3.0 .220 8.63 .63 SmaCapS rw4,705 +7.7 -1.00 16.37 16.37 SE Asian 5036,8 +34.7 435.30 34.44 34.44 Sllnc 5,230 +8,.8 +6.0.0 180.50 10.50 StaReIftir 4,715 NS +4.10 10.12 10.12 lern TOal TolalBondn 9,221 USBIn 8,178 Value n 20,398 Fidelity Select Eneogyn 3,239 Fidelity Sparta Equthld n 22,755 5001ndxtlnvr 8,011 Inilndxlnv 4,810 TolMkIindlnv 4,854 Fidelity Spart .EqlndxAdv 6,482 500Adv4 r 9,585 ToMklltAd r 3,634 First Eagle: GIocalA 13,041 Overseas 5,479 Frank/Temp F Balrnp 3,752 CalTFrApx 12.976 FedfxFrApx 6.769 FoundFAlp 10,162 HYTFAp 4,927 IncoSerApx 34,822 NYTFApx 4,496 SMCpGrA 4,921 USGonApx 5,164 Frank/Tmp Frn InoomeAdvx 86,200 Frank/Temp Fr InceBlt 37,536 Frank/Temp Fr FoundF Ap 5,294 InomeC tx 15,005 Frank/Temp M DiscovA 8,.928 SharesA 8,473 Frank/Temp M DiscC1 3,074 Frank/Temp Ti DevMktAp 4,650 ForegnAp 10,243 GIBondAp 4,901 Grow Ap 26,689 WlodAp 9,279 Frank/Temp Tn GrthAv 6,640 GE Elfun S&S S&SPMn 4.680 GMO Trust III: EmgMktr 3,784 Fnorein 4,389 InlUIntrVal 2.825 GMO Trust IV: EmerMi 3,.459 Fewn 4.056 21G1Eq 2,734 IntlnoWal 4,644 GMO Trust VI: EmgMktsr 6218 InfldxPlus 3201 InlCoreEq 4,192 USOtyEqty 4,755 Gabelli Funds Asset 2,952 Gateway Fund Gateway 4,278 Goldman Sac HYMuniAp 3,060 MHlCapVAp 4.129 Goldman Sach HYMuni 2,834 StruclnIl 3,405 Harbor Funds Bond 2,808 CapApplns n 8,347 lo llr 24,276 Hartford Fds A CapAppAp 13,389 Do GMAp 3,151 Hartford Fds C CapAppC 4,325 Hartford HLS I CapApp 11,212 DN&Grwth 5,683 Advisers 6,291 Stock 3,9D4 ToWRolBd 3370 Henderson Gil InsOppAp 2.777 HussmnSm r 2,945 Ivy Funds: AsIelSCt 3,532 AsselStAp 3,469 GINaiRsAp 5.,416 JPMorgan A C MdCpValp 3,333 JPMorgan Sel InlrdhAer 4.012 Janus: Balancedn 2,751 Conlatian 8,212 Ienmber FDIC sae u E oW V L w u A ABBUd N 26.14 252524.00 26.00+17.50 ACELId N 59.3958.047.00 5932+1680 ADCTelr 0 1499 14.4117.0014.81+14.10 AESCorp N 19.5316 .. 19,46+12.40 AFLAC N 61.94 592519.060.70 -2.00 AKSted N 48.7747.1514.0947.93+53.50 AMR N 15.49 13.817.00 15.09+16.70 ASMLhd 0 27.9926.64 ... 27.95 +4.20 AT&T Inc N 3.7037.9420.00 3828+3020 AUO N 17.08 16.40 ... 16.73 -460 S N 57.6955.8725.8057.55+20.70 Accetrme N 35.48 34.0517.0035.04 +11.80 S 1023 9. 02 23 -48.8 Aueidsn 0 26.43 25.695.026.43 -.10 AdobeSy 0 34.9933.4428.0034.48 -3.6 AMD N 8.03 7.60 ... 08. 50 Aera N 53.8052.3916.005322 +4.20 Aoler N 34.660337736834.46+12.70 Arcog N 642861.8270.0762.012 -6.20 S N 66.7264.6641.0065.92+55.50 0 31.17 29.3365.00X31.04 +15.30 Acaluc N 6.60 628... 6.60 +3.30 Atlo N 34.4533.0712.003428+35.90 AgnTech 0 12.40 11.5724.0012.06 -18.10 AiegTch N 7423 70.2910.0074.02.80.20 A Stens N 68.00 66.0642.X67,64+38.60 iData N 54.7849.3127.0053.90-117.90 AmdWaste N 10.04 9.7829.20 9.92 +4.80 Alstate N 49.56 48.546.00 49.42 -10.30 ApNR N 35.7633.5047.0035.11+33.80 aCp 0 10.84 17.8323.0019.42 +14.10 Arias N 76.31 74.4816.0075.44+14.90 Amazon 0 79.4073.3767.0074,63-29.70 AmbacF N 15.30 12.10 ... 1320+16.60 AMovif N 62.3059.92 ... 61.69+6600 CapS 0 3624 34868.X00 35.79+40.01 g N 235527714.003.5023+20.60 AEP N 44.01 42.6717.0043.96+26.30 MAmE N 50.04 48.7515.0049.60+41.60 AFnd N 826 &.1259.00 823 +1.60 AmIrlnlGpON 56.60 54.3110.0055.73+25.10 AmToer N 30.78 3688 ... 38.65+24.70 Amsseod N 13.53 12.688.00 13.439+1030 Amewpse N 57.55 55.0617.8057.12+76.60 Amen 0 47.46 46.1617,0047.36 -7,80 A Nni5 0 31.929.61 ... 31.81 .6.50 adato N 60.1058.0369.90 60.04+46,90 AHaogDevN 2921 27.972.0o20.10.+13.80 Anatn N 48.38 46.517.0048.196 +8.10 Aay N 20.07 19.7318.8019.99 +9.50 Apache N 98.7495.515.98.47 +58.90 AolGrp 0 81.49079.7832.0080.64+87.90 Ienc 0 1386.59132.1829.00133.75+37.40 AdMa8 0 18.89 17.89515.0018.88+14.60 Arc Mit N 72.1868.5812.0071.45+84,70 CrCoal N 49.5844.7341.004933+81.00 ArchDan N 45.5943.6213.0045.50+33.90 Ams 0 9.32 8.836.00 9.16+14.60 Assod N 25.6023.1 ... 2235+38.90 Athos 0 28.8527.1042.0028.47 +6.90 Abrel 0 3.34 3.1433.0X 327 +2.10 AuteNatn N 16.6316.0511.0016.59+23.40 AuloODala N 40.69 39.0619.0003.97+12.20 Avon N 35.87 35.1027.0035.87+11.60 B BB0TCp N 36.96 35.8012.0036,80+27.90 BEASystl 0 18.72 18.62 .. 18,69 +2.40 BHPaiU N 74.72 72.04 ... 73.72+103.00 BJSvcs N 2228 21.809.00 2220+16.40 BPPLC N 84.5063.1311.0086425 +9.80 Baidu.corn 0 285.74262.43 269.59-298.80 BalrHu N 65.14 63.4714.0064.22 -78.20 BcBradessN 26.7526.0 .. 26.64 -3.30 Bncoltaus N 23.0021.85 ... 22.29 -1.60 BkofAm N 45.0844.0714.0045.03+55.50 ldJY8Mel N 48.10 4.06223o047.74+38.50 nT 12mno neigL O Name T YM Io 12-M t iLat MIr %O %5Rtn Prie Pth A %le h %Rt %Rb Prkie u Pa 442 +5.60 0.43 10.43 Fund 12,485 NA NA 3030 30.30 +4.4 +7.0 11.04 11.04 Grdlncn 6,401 182 +1.70 34.46 34.46 +9.6 -4.60 72.83 72.83 MidCapVal 5,610 +113 3. 22.40 22.40 is: Odon 5,098 +t21.9 +19.70 12.26 1226 +29 5430.70 0.61 60.66061 Oe rses 10,915 +33.8 +20.70 51.94 51.94 an: Reseadhn 4,864 +12,0 +11.90 29.35 29.35 +7.4 -1.70 49.38 49.38 Tweny 12,650 A NA 69.06 69.06 +7.4 -1.70 96.40 96.40 WddWr 4,177 +10.7 +420 53.86 53.86 +14.5 +1.30 44.14 44.14. Janus Adv S Shrs: 8.1 -1.90 38.97 38.97 Forty 3,725 NA NA 38.58 38.58 Adv: JennisonDryden A: NS -10 49.3849 9.38 U0tIyA 4,686 N NA 13.26 1326 NS .1.70 96.41 96.41 John HancockA: NS -1.80 38.97 38.97 ClasC p 4,034 3.8 -81520 21.67 21.67 S John Hancock Cl1: +13.9 +4.80 43.51 43.51 L ess 3432 NS -.30 1426 14.26 +14.0 +2.90 2227 22272227 LSlnce 8976 NS +1.50 14.05 14.05 mkA: LOiMrth 9,618 NS +.60 14.33 14.33 +7.7 820 57.34 57.34 Julius Baer Funds: +4.1 +3.30 722 7.22 InEqr 14,264 +19.4 +590 41.34 41.34 +3.9 +3.80 1197 11.97 IEqA 10,904 +19.1 5.60 40.37 40.37 +8. -3.10 12.92 1292 IniEqilIr 7,842 NS +4.70 15.90 15.90 4.1 +.90 10.54 10.54 Keeley Funds- 57 +4.0 11.9 19 SmCptVlAp 5,756 +122 -1.50 25.60 25.60 +7. -1.70 32.39 329 Kinetics Funds: +4.7 +.10 6 .5 656 ParaMig 2,898 +19.7 8. 2069 28.69 nkAdv: LSVVatEqn 2,70 4. 7 -7.70 16.77 16.77 4.7 +2.70 2.52 2.52 Lazard Insti: rnk8: EmgMd 50235 +31.9 +25 22.81 22.81 +76 .70 2.52 252 Legg Mason: Fd Srnk C 2 ppodTr 4.633 .0 -7,00 .9 161.92 +7.6 -3.0 12.71 12.71 VatTrp 8.940 +.6 .1250 58.74 58.74 +7.9 +2.00 2.5 2,55 Legg Mason Insti: Idtl A&B: VaTdi 680185 +1.6 .11.70 66.70 66.70 *+144 +60 30.07 30.07 Legg Mason Ptrs A: +809 -440 2396 2396 AgOrAp 4,238 46.8 4.50 113.37 113.37 Al C. AppAp 3,785 +7.9 +8.50 14.74 14.74 +13.7 -.10 29.81 29.81 Longleaf Partners: empA: Partis 11231 +66 -7.40 31.66 31.66 +23.1 +13.00 26.79 2679 InIn 3,903+128 +6.10 18.59 1.59 +13.0 +5.00 11.44 11.44 SmCap 3,536 +11 -1.0 26.60 26.60 486 +15.20 11.77 11.77 Loomis Sayles: 4.4 .670 2238 22.38 LSBondlx 8,424 485 +9.40 14.65 14.65 +11.1 -1.90 17.37 17.37 StrlncCx 4235 +7.3 +7.10 15.12 15.12 mpAdv: LSBondRx 7,516 +8.2 +9.10 14.61 14.61 4.7 6.50 22.41 22411 StincAx 6344 8.1 +7.80 15.05 15.05 Lord Abbett A: 48.1 4.80 42.37 42.37 Al<dAp 15i36 +7.6 -1.70 13.45 13.45 BondDebAp 4,527 +52 +2.50 7,76 7.76 4302 +2330 1991 1991 MilCapAp 5,772 +62 -7.00 17.76 17.76 +14.4 +.30 16.85 16.85 MFS Funds A: +14.0 +.20 .35 3035 3035 MA 3,431 +9.0 +3.70 2024 20.24 MIGA 3,944 +6.4 +3.40 14.48 .14.48 302+23.20 19.83 19.83 ToiRAx 6,669 3 +1.50 14.98 14.98 +14.5 .30 1685 16.85 VaueA 6226 +10.0 +.80 25.47 25.47 NS +5.10 2789 27.89 MFS Funds InstI: +14.0 +.30 30.34 30.34 lnflEqtyn 2,931 +145 -20 18.86 18.86 MainStay Funds A: +30.3 +23.30 19.85 19.85 H BdAx 2,777 +5.0 -.70 604 6.04 NS NA 23.77 23.77 Marsico Funds: NS +1.60 37.61 37.61 F sp 4,989 +8.3 -1.40 18.30 18.30 NS -1.60 2122 2122 Growp 3,093 +7.4 .30 20.56 20.56 S21slCenlp 2,715 +14.6 +7.30 16.52 16.52 10.9 +1.90 47.10 47.10 Matthews Asian: Is: PacTger 3,806 +24.5 +2020 25.40 25.40 6.9 +4.30 28.12 28.12 Metro West Fds: hsA: TofelBd 2,707 +59 +8.30 9.99 9.9 2.3 .6.40 1020 1029 MorganStanley lnst: 93 -4.70 34.12 34.12 EBWnl 3318 432.6+125.70 30.57 30.57 hs nst: IntEqin 5,116 +10.9 +1.50 17.81 17.8 +2.7 6.00 10.30 10.30 Mutual Series: +14.9 -.50 13.66 13.66 Beaon 3,889 +8 4.10 15.08 15.08 . D 4,718 +148 +.90 3041 30.41 0 +12.0 122 1229 d 4,424 +12 +1.72 20.8 20.9999 +7.7 -.10 34 .6 Sh rsZ 13.283 +93 -4.00 24.15 24.15 +22.1 +10.20 65.99 65.99 Neuberger&Berm Inv: A: Gere7ns 1 4,g 3 M 142 +14.40 45.37 4537 +13.8 +7.90 3798 37.98 Neuberger&Berm Tr: 9.8 +1.50 20.18 20.18 u gS ^ 4.10 4739 439 4 2 Genodsn 4,928 +13.9 +14.10 47.39 47.00 C+ : .7.10R34.0 8 Oakmark Funds I: +13. 7.10 34.08 34.08 Sah mark 8 .8 373 I : qtylnra 12,829 +10.6 +9.60 26.72 26.72 +14.7 +8.50 49,49 49494 Glrl 2,825 +12.7 .1.2 8V.60 22.60 +10.4 +1.90 21.43 2t.43 f1 7 1 1 -7.00 19.70 19.70 +7.5 +2.50 20.463 2.46 Oakmarkr 4,948 +4.4 -7.10 40.02 40.02 .7 -1. 2044.90 44.90 Sedecr 4,046 +1.9 .15.10 25.80 25.80 43+.07 8 1.30 11.3 Oppenheimer A: IN Fd .: 3 CapAp 63 0+.5 +1.50 47.30 47.30 +17.7 + 0 2358 23.58 DevMkAp 9,6 29.7+240 45.31 45.31 +41 +2.80 15 532 q5.3 uA 2699 +8.1 +20 9.67 9.67 I 13,073 +10.8 -3.60 67.8 67.8 +26343580 27.01 2701 OppA 821 +112 .2.90 31.50 31.50 +27.2 360 27.40 27.40 InBdAp 275 NA NA 6.55 6.55 +28.1 2930 3597 3597 MoSRA 7,603 8 -350 34.66 34.66 'lass: MnStSCpAp 3,687 46.7 .9.80 18.75 18.75 +.81 -320 2344 2344 S 0MdCpVIA 3233 +1.8 -,40 34.80 34.0 SCis: StcAp 6,961 HA NA 4.43 4.43 47.7 4.0 26.00 26.90 Oppenhelm Quest: A 2.723 +382 -5.40 15.80 15.80 9.6 +7.50 25.17 25.17 Oppenheimer Roch: +21.4 +14.20 19.42 1942 UdNYAp 2.741 41 +2.70 3.34 334 9oMuAp 8,544 +4.7 -81.0 17.66 17.66 RddMuA 4,681 +1.8-11.50 10.74 10.74 rage PIMCO Admin PIMS: TolRetAd 22,643 46.1 +12.70 11.01 11.01 PIMCO Instl PIMS: AlAssel 10,262 +7.4 +10.00 12. 6 12.86 into cash CommodRR 6.537 +158 4+34.50 17.38 17.38 n the DeLocMkr 3403 NS +15.90 10.69 10.69 FlIrglnr 3.499 +4.3 -1.80 9.61 9.61 HiYidn 4370 +59 +3.10 9,49 9.49 Lmoure n 8,181 +52 +10.40 1029 10.29 S RelRdIlns5l 0534 .4 +16.8 11.40 11.40 STolaRen 6945 +64 4+1300 11.01 11.01 Ot 1 PIMCO Funds A: TolRIA 11,659 45.9 +12.50 11.01 11.01 PIMCO Funds D: 4 5-042 Toi4Rp .4,410 +.0 +170 11.01 11.01 Stoe II wnag .E r ui. HiogLw BanridG N 52.99 50.0442.0050.90 -1270 Baxter N 61.5660.5024.006151 +510 BearSt N 93.0989.16 .. 92.89+58.60 BeazrHttIfN 9.40 8203.00 9.31+21.00 BedBalh 0 3260 31.7115.0032.38 43020 Besrluy N 49.01 47.5816.0048.47 +31.90 NEgLols N 17.64 17.0011.00 17.51 +21.70 Igendc 0 62.85 60.4037.0061.76+28.40 Bladnn N 18.80 18+08 ... 18.72 .6.40 BockHR N 19.86 19.28 ... s.86+17.40 Blokls N 325 3.11 .. 323 -.70 Bos g N 83.9981.8516.0082.76+57.30 BoslonSc N 12.42 12.1373.0012.37 +530 B4yCSq N 24.19 23.1522.0023.96 +9.90 oadcomn 0 23.47 22.0563002.43 +3.90 OBdeCm 0 7.08 6.783300 7.01 +460 B ngN 27.7926.40220026.70+3220 SF N 885584.2117.008830+6500 C CAInc N 26.5423.3034.0206.31 +43.70 CBRBlis N 20.0018.9912.0019.96+19.00 CBS8 N 25.61 24.6815.0025.51 +16.30 CF Inds N 111.42106.9325.O00108.53+44.00 CHRobs 0 56.5054.7130.05627+66.50 C eT N 340.75328.06 ... 30.6 30 N 16.07 15.64 ... 16.07 +8.50 CSX N 50.08047.61700649.93+44.80 CVS Care N 40.03 38.7021.0039.90+43.40 Cadence 0 10.64 10.1111.0010.61 40.30 CamenogsN 34.4332.83 ... 33.34-13.30 Camerons N 42.15 39.4919.004212 -18.70 CanAroh A .62 .57 .. .58 -1.99 Capne N 57.68 55.0415.0056.97+104.60 CaotlSm N 17.37 16,3813.0017.28+20.80 CardnlHlh N 59.83 57.3015.0059.71 +32,90 CaMaxs N 23.0021.9625.0023.00+21.20 Carnival N 45.2244.1115.0044.78+33.70 Caleplar N 72.1770.6013.0071.76+58.30 Celesticg N 6.76 5.9151.00 6.60+14.20 Celgene 0 59.9956.21 ... 5970+8230 Cemex N 28.2227.069.00 27.77+34.00 Cemigpfs N 16.35 15 ... 16.18 4.90 CenlePnt N 16.15 15.8915.0016.15 +8.20 Centex N 29.41 2695 ... 29.00+2620 ChrmSh 0 7.00 6.2314.00 6.89+16.00 ChartCm 0 1.30 1.15 .. 128 +1.40 CholsEng N 37.9237.0712.0037.71+16.10 Cheron N 84.93 81.539.00 82.49 +6.70 Chlos N 10.84 102515.0010.66+22.60 ChlnaLe N 58.01 56.12 57.84 -4670 ChinaMble N 77.86 75.00 .. 77.54+19.70 ChRbb N 520 51.998003.00 52.79+4520 CienaCop 0 27.39 25.6438.0026.41+16.20 OnWBel N 4.02 3.8712.00 3.97 +1.60 CiFOrCily N 5.59 5.30 ,., 5.47 +6.30 CiscoO 0 25.13 24.0020.0024.94 +7.40 A N 29.7328.2741.0029.69+ 33.70 N 11.64 11.4017.0011.51 +7.60 Ct* s 0 235.30 34.1030.0034.71 +11.01 CI N 32.12 30.6719.0031.77 -20.30 CleanrhenO 14.4312.92 ... 14.25+20.40 Coach N 32.95 31.7617.0032.64+22.10 CocaCE N 23.75 23.03 .. 23.75 +1,50 CocaCI N 59.97 583125.0059.26 +8.50 Coeur N 4.65 4.4226.80 4.59 +.60 Co=Techs O 302527.,9228.0029.84+29.70 C rkC O 0 7.05 6A.42220 7.03+23.10 CC0Pal N 76.92 75.1524.0075.42+16.70 oi N 16.06 155512.0016.068+22.70 Comcasts O 18.58 18.05250301.55+13.30 Cocsps o0 18.4117.9023.010.39+13.70 Comeica N 45.1943.5710.0045.14+52.90 CmcBNJ N 38.71 37.7354.0038.71 +21.40 CmdMaIs N 29.9828.3010.3029.13+35.60 CIVRDs N 31.7730.6018.0031.63+43920 CVRDpfs N 272426.36 .. 27.04 +31.40 Comp re 0 8.57 8.3818.30 8.56 +9.60 Hlgh Law ConAgra N 22.06 21.4314.002206+10000 Conexant 0 .70 .65 .. .6 +50 ConocPhil N 80.83 795411008036+62.30 ConsolEngyN 76.97733152.0075.94+29.30 ConEd N 44.48 4350130044.38 +11.10 CIIArB N 29.6327.057.00 29.25+35.00 CorinthC 0 9.03 83256.00 9.00 +9.90 Coron N 2474 238719.0024.61 +22.40 Corp, N 25.64 24,7424.0024.85 -1.50 Coso 0 68.4266.9728.0067.79+2330 CnlwdFn N 7.60 6.90 7.60+1580. Covienn N 44.9743.44 ... 43.58+10.80 Creelnc 0 30.3429.0852,0030.00 -1.30 Crocss 0 37.3935,3420.0036.74+75.10 Cystalxg A 2.02 1.93 ... 1.98 -.20 CumminssN 49.4845.0313.0046.94-20.80 CypSem N 22.44 21.269.00 22_38 +5.60 0 DJIADiam A 127.61125.9 ... 127.43+52.40 DRHo8on N 17.80 16.52 .. 17.31+18.80 Danaher N 76.14 74.4918.0075.92 +9.50 Darden N 28.97 27.3921.0028.84+26.30 Deers N 90.4987.5122.0088.91+ 0.30 Delllnc 0 20.42 19.8117.0020.35 +290 DeltaAhrn N 18.64 16.44 .. 18.53+23.20 DevonE N 87.10 84.7714.0086.77+57.00 DiaOffs N 117.11112.9318.00115.94-27.30 DianaShip N 30.1328.4619.0028.56+45.30 DialRIt N 36.91 35.4089.0036.50 -3.30 DirecTV 0 24.14 22.7620.0023.98+19.90 Diso.er5n N 17.98 17.0075.9017.96+24.00 OishNetwk 0 31.81 28.3519.0031.17.+30.20 Disne N 30.8030.1814.0030.66+19.80 DomDes N 43.6242.5212.0043.57+25.40 Domltarglf N 8.23 7.905.00 7.99 +420 Dooer N 42.70 401713,0042.55+48.90 DoreChm N 40.0438,6813.0039.89+35.80 DryShips 0 77.77 732109.00 74.29+146.20 DuPonI N 46.1544.614.0045.95+12.30 DukeEngy N 18.89 18.4115.0018.89 +9.40 DukeRlly N 24.4323.1516.0024.40 +8.60 Dynegy N 7.18 6.9327.00 7.13 +5.80 E ETrade 0 5.48 4.81 .. 4.97+12.10 p 0 29.027.04 ... 28.81+19.80 EM C Cp N 1625 15.8821.0016.13 -5.90 EKodk N 20.35 19.669.00 20.30 +9.40 EIPasoCp N 16.67 16.216.0016.49 +5,20 Elan N 25.9225.44 25.87 +32.40 Elecisl 0 49.00246.34 ... 4.62+14.30 EDS N 20.7019.9215.9020.63+17.90 EmNsonElIN 52.305 0.320.0052.22 +7.00 EnCana N 68.18 65.115.0067.78 +45.60 ENSCO N 52.21 50.708.00 52.11+14.80 EyRsd N 39,00 37.109.00 38.75+11.40 EncsnI 0 22.19 21.37 .. 22.05 +.70 EsleeLdr N 45.8543.6020.0044.83+55.90 EworSIr 0 12.47 11.1 ... 12.21 +4.10 ExeSo N 78.16 75.9219.077.42+43.20 Expedia 0 23.4722.8425.0023.45 +1.50 E Scrs 0 67.88 65.8531.00 66.30+42.40 ExxonMbl N 87.86 84.8512.0085.95+20.10 F F5NetwksO0 25.21 23.6620.0025.02+18.70 FPLGrp N 65.7864.3220.0065.33+42.60 FamiID[r N 21.72 20.6713.0021.65+34.20 FanneMae N 35.71 33.71 ... 35.40+39.50 FedExCp N 93.90 91.9015.0093.42+3460 FidlNFin N 20.11 18.7214.0019.53+27.40 FIhThitrd 0 28.10 26.7214.0 28.06+35.70 Fmnsar 0 1.67 1.57 .. 1.67 +.50 FstAmCp N 43.71 40.1225.0042.07+65.60 FstHolzonoN 22.16 20.6118.3022.11+25.40 FtSola 0 1869.38177.50 ... 185.94+146.60 Flextm 0 12.17 11.65 ... 11.91 +21.70 FocusMda 0 50.74 48.3350.0049.87 +10.80 Ta TowM YD 12 I.)lyUst Y iT D 1N T 124M 1Wo yU 1No Aue M in n %RWO Prke PIrch AseA %Rm %t n Prce IPit Pioneer Funds A: HItCaren 10,963 +9.8 -2.10 5685 5685 PionFdAp 6300 4.44 -1.60 44.75 44.75 IVY1dCpn 4.324 +4.3 +.80 5.83 583 ValueAp 3,147 +45 0850 14.19- 14.19 IniProAdn 3,487 NS +16.10 2539 2539 Price Funds Adv: iTsyAdiln 3.0061 3 +14.10 11.65 11.65 Grwtipn 3,664 +7.8 -120 30.65 0.0 IGrMi' 5,735 +16.8 +4.80 7259 722 9 Price Funds: ITAdlin 11.95 +3.8 +550 13.43 1343 Balann 320 7.7 +77 2.00 19.88 1988 ITCo Adl 3817 +4.9 +8. 04 9. 9. BAeCpGn 11 5 +7.4 +1.40 36.99 360.99 TiAda5 0338 +4.1. 0 09 9 2 09 CapAprn 10,325 8.5 +130 19.65 1965 LWdTnnArd 5,05 +36 +4.10 10.94 10.94 ESnMI8Sn 4,761 +32.0 27.103837 3837 MCpAdmin 2,974 +10.4 -2.80 89.83 89.83 Eqlncn 20,520 482 -1.60 27.37 27.37 MorgAd 2,923 +48 +20 5595 55.95 EqIdxn 10244 +7.1 -200 37.44 37.44 NMHYAdmIn 4,121 +39 430 6 10.67 1067 Growthn 21,492 48.0 -1.00 30.90 30.90 PrmCp 10.684 +11.0 +4.60 71.94 71.94 i0i0n 4,032 +4.6 -.60 6.53 6.53 ShITmAfrn 3,150 14335 +520 15.1 15.81 n 3,012 +1.6 44.52 4452 SGrAd' 38 5.+7 1078 178 IntS tn 7,041 +14.0 +.0 3 1554 15.54 Txapr 3M82 +82 -1.60 67.35 67 Lalhan 3,732 450.+3720 5132 51.32 Ts *'p 378 <0 -830 6720 672 idCan 163,73201 +11.7 30 53.2 53.93 TdAdnln 10,32 +5.0 +9.10 1031 1031 MCapVan 6,548 +9 -320 22.14 22.14 TolSkAdm n27,895 48.0 -1.90 33.69 33.69 NAsian 567 434.7+41.00 18.421842 WeslAdmn 5,503 +6.6 44.80 5272 52.72 NewEran 6,21 +25.0 +29.50 56.81 56.81 WellAdmtn19,314 +9.7 4520 524 5524 NwHrznn 7,158 48 -3.80 28.65 28.65 WndsrAdmn 8,694 485 8.00 51.49 51.49 Newncon 7,613 +4.9 +8.60 9.18 9.18 WdstlAd 18,844 +5 -220 54.13 54.13 R20In 4,016 +7.9 +1.90 15.72 15.72 Vanguard Fds: 92015 3,471 +82 +120 12.20 1226 Van Fs Rie52020n 6,111 .4 +30 16.98 16.98 A elAn 115 +7.8 -.50 28 2856 R025 3,178 .7 -30 2.55 12.55 CapOppn 4,977 +11.9 +4.50 3522 3522 R2030n 4,126 +9.0 -0 18.07 18.07 Energy 8,816 +27.8 +26.00 7523 7523 SmCapS4kn 6,070 +5.9 -.860 28.98 28.98 Eqlnc 3,237 +.9 -.80 23.56 23.56 SmCapW n 4,936 47.5-.9 .5. 35.02 35.02 Exo n 8,228 +562 8.40. 68.13 6 .13 Specr 3,8 +9.7 -.40 19.75 19.75 GN fn 12,776 +52 +070 10.49 10.49 Eorne 5,121 +5.8 50 12.14 1N2.14 G n 7,604 +13.1 +. 21.98 21.98 Valuen 6,611 +8.1 -4.30 209 25.09 Incn 5,065 46.1 -4.030.59 3059 Principal lInvo: I o 4 DiscLCIIns 2,725 +72 -2.10 1409 14.09 Corpn 4,67 42 +70 5.3 583 Putnam Funds A: HCaren 14,965 +9.7 -2.20 134.70 134.70 EqInAp 2,810 8.4 -1.60 15.75 15.75 InlaPron 6,662 .41 +16.00 12.93 1293 GeoAp 2,987 +5.6 -1.00 16.0 16.00 16 InExrn 2,735 +14.6 -6.90 17.07 17.07 Grinp 9,526 48 -11.50 15.18 15.18 8nGr 14,296 +185 +4.50 2293 229 3 InlEqp 3929 NA NA 20.56 25056 Inien 9,694 +169 +2.70 39.16 39.16 NOpAp 3,106 58 5.60 48.36 48.36 UFEConn 6,920 +7.0 +4.10 1&87 1687 VyAp 4235 +3.6 5.70 17.78 17.78 UFEGron 9,859 +9.0 +.60 236 23S6 Rainer Inv Mgt: UFEModn 10,901 40 +2.60 2058 20.58 SmMCop 3.649 +14.8 AM 36.15 36.15 LTUF odn 470 +32 +5.10 9.06 9.05 RlverSource A:LTGad 5. 96 DEI 6,15 +12.0 +1.10 11.83 11.3 Morgann 6,.51 +8.6 +.10 18404 104 LgCpEqAp 4,596 +2 -4.30 5.08 5,08 MuIntn 4955 43.7 +5.40 13.43 1343 Royce Funds: PredlsMinr4.611 +39 +35.70 34.57 34.57 LownPSkSycr3,337 +102 -.40 14.27 14.27 PmnCpCore m3270 +103 +.90 12.74 12.74 PennMulm 3,157 +89 -4.30 1035 10.35 Pmacpr 22710 +10.8 +4.50 69.32 6932 Preierln 3,702 +12.5 +5.60 16.92 16.92 Sealur 4,471 .8 -5.80 18.70 18.70 TotRellr 4,214 +7.9 -320 12.62 12.62 STARn 14,652 8.0 +2.70 20.30 20.3 Russell Funds S: STIGrade 11,155 +49 +7.40 10.78 10.78 Dhvq 4,375 +8.8 +0 45.67 45,67 StralEqn 6,506 +6.3 -10.40 19.62 19.62 n c 3,98 +14.8 +2 66.52 6652 MSralBond 6,275 +4.5 +7.80 o10s.5 10.5 TgIRet8025 7,309 +77 +1.0 1321 1321 QOuqtEqS 4,279 +6.0 -5.60 36.49 36.49 TglRe 5 7,272 +72 +3800 2.71 2.71 SEI Portfolios: TgIet2035 4,859 484 +.40 13.96 13.96 CoreFxlnAn 4,489 NA NA 10.32 10.32 USGron 4,273 +50 -2.90 11804 18.04 InlEqAn 3,735 +133 .2.80 12.44 12.44 Weaslyn 7,941 45 +4.70 21.76 21.76 LCoAn 3,535 +6.9 +.40 21.73 21.73 Wlinn 30,978 +9.5 400 31.98 3198 LgCValAn 3,275 +75 -6.50 19.51 19.519 Wnds 12884 +6.4 -8.10 1526 1526 TaxMgdLC 2822 +73 .2.50 1332 1332 Wr n 30,925 .3 .2.30 30.49 30.49 SSgA Funds: Vanguard ix Fds: E M 2.790 .32.0 +260 27.16 27.16 ard d Fd: Inl k 3,199 +153 -290 13.01 13.01 50n 6.327 +7.3 -8.8 128.0 128.58 Schwab Funds: Ba edn 3,717 +6.9 +2.60 21.57 2151 10,Invr 3,725 +7.8 -1.70 40.92 40.92 ln 34 +14.6 +.90 12.65 12.65 1O3Sel 3,124 .0 -1.0 41.90 40.90 13,312 +29.4 +25.80 3020 3020 S&Plnv 3,715 +72 -130 21.53 21.53 open 205211 +15.7 +2.30 36.64 36.64 S&PSeln 4,093 +74 .1.70 21.59 21.59 Extendn 5254 +9.1 -400 3829 3829 S&PlnsSd 3,073 +7.4 -1.70 11 110 1.02 Growthn 6992 +73 +1.90 31.01 31.01 5,676 +22 -2. 893 893 ITBondn 3019 +5. +1080 10.74 10.74 Selected Funds: MTeap 8,075.+103 -290 1980 1980 Aer 5,017 .0.8 -.40 46.13 46.13 &Ca 8,075 +103 -2.0 19.9 10.0 nhsSp 7, +8.4 -80 4610 4610 Padficn t0.707 +122 -2.20 122 1220 Seligman Group: RE]Tr 4,136 +12.3 -200 2113 21.13 ConnlAt 2,895 +125 +.30 34.8134.81 SmCa1pn 6214 47.5 -6.00. 31.30 3130 Sequoia 3516 +7.9 +530 8139.68 139 SmnCpGrn 2,824 .7 -1.0 18.75 1&.75 SoAunl 2,738 +8.7 -1.10 34.95 34.95 SmCpVal 3677 +6.1 -11.00 1527 1527 St FarmAssoc: ST1ondn 2,773 4.9 +9.30 103 1031 wth n 3,794 +10.0 +5.70 58.31 5831 Toleidno 29.532 +4.9 9.00 1031 1031 Templeton Instit: Toilngn 28.65 1 +16.8 +4.90 18.46 18.46 p 3,1 +24.1 +14.70 18.72 18.72 TolSkn 50,183 +7.9 -2.00 368 33.68 Fo.qS 9,073 +17.5 47.70 26.55 26.5 Valuesa 4:310 +8.7 -4.40 2026 2520 Third Avenue Fds: Vale 11,149 +10.4 -3.7 57.39 57.39 Vanguard Instl Fda: Thornburg Fdsa: 4ainsn 2.901 7.0 +2.60 21.57 21.57 InfalAp 7.728 +20.4 +14.60 30.18 30.18 VMktlrln 4.754 +14.7 +l.0 12.55 1255 InlgNuel 5,769 +205.+15.00 30.82 30.82 Eurolnsdn 4,485 +15.9 +2.40 36.69 36.9 ThriventFdsA: Exl8n 3,174 +9.3 -3.80 38.32 38.32 LgCapStodk 2.834 +A4 -.40 24.93 24.93 GOwThlns 3,210 +7.5 +2.00 31.01 1weedy Browne: Insgtxn 45,847 +7.5 -1.70127.63127.63 GlobVad 7,624 +10.7 3.00 27.73 27.73 InPIn 25,775 +75 -1.70 127,63 127.63 GUB nM 3,106 +7.9 +1.0 13.5 13.55 Tusn 7598 +5.0 +9.10 5192 5192 UM8 Scout Funds: Ins TStPs 8.8908.1 -1.98 30.2 3020 UMB Scout Funds:17.9 35.3 3535 n 6,161 +0.5 -280 1985 19.85 USAA .Group: S lInn 3,584 +7.7 5.80 31.33 31.33 TxEITn 2,75.4 3A 1302 13.02 .n 9,492 +5.1 +9.10 1031 1031 VAUC: TSIItn 13.396 +8.*0 -1.90 33.69 33.69 MidCapx2 2.952 -9.1 0 22.20 22.206 Va&iard Signal: Slocktndex 5,027 +7.1 -2.0 34.26 34.26 500 n 21,433 NS .1.7010622 10622 Van Kamp Funds A: 71 BdSgn 5,413 NS +9.10 103 10231 CmslAp 12,132 .0 -5.90 17.12 17.12 MlSnSgn 4,655 NS 1.90 32.51 32.51 EqtylncAp 13,272 7.4 +.10 8.67 867 VctoryFunds: GOnAp 7,587 .45 .2.50 20.48 20.48 V*,sS7 Fund s: + ,. .5 HYMuAp 3,060 +4.7 -.40 10.55 10.55 tsSl 3,79 +92 +1.80 1662 16.62 Van Kamp Funds B: WN Blair Mil Fds: EqlmcBt 2,978 +68 -20 8.52 8.52 Inl9Groldhr 2.845 +18.6 +7.00 27,33 2733 Vanguard Admiral: Waddell & Reed Adv: CAITAdmn 3,112 3.4 +4.60 11.01 11.01 AssetSp 2.806 +28.7.29.70 12,61 12,61 CpOpAdln 4,733 +12.0 4.60 81.37 81.37 CrelnvA 4,1 .+10.7 +3.10 5,74 5.74 Energyn 5,854 +27.9+2620 141.30141.30 Western Asset: Eumopdro 2,850 +15.8 +2.40 86.09 6. Co09 eP x 1343 +4.4 4.80 10,35 10.35 EM 1AInl 3,39 44 -6.30 61.56 6156 ES nrlildn 2,811 49.3 -380 3831 38.31 Conex 5,396 8 +3.80 1107 11.07 500Admrin 37,112 +7.4 -1.70 128.59 128.59 William Blair N: GNMAAdmnO0,761 +53 +890 10.49 10.49 InGthN 5.201 1802 40.70 26.87 2687 bite~ lose-4 lp m-.rt.Forfurithler -845'' 9im ii .na' RE Las CNm Hkh Loaw FordM N 6.90 6.60 ... 6.85 +2.70 ForestLab N 40.69 39.4923.0040.69+22.50 FoslteAhsO 72.21 68.5627.0071.804+6230 FoundryN 0 14.71 13.4127.0014.57 +1.00 FredMac N 32.8330.16 ... 3245+28.70 FMCG N 93.70 89.4512.0092.10+78.80 Fronteri N 38.0035.768.00 37.73+47.90 G GamneSlopsN 5296 51.3038.0052.52+29.20 Gannet N 37.75 36.516.00 37.47 +20.80 Gap N 19.4718.9520.0019.34+15.40 Gamin 0 73.60 689221.0070.10+51.60 Genench N 7126 69.4127.9070.81+3020 GenElec N 36.4835.3617.0036.16+21.60 GnGrthPip N 40.0636.6630.0040.00+42.50 GenMls N 55.97 54.5217.0055.79+28.50 GnMot N 2928 27.90 .. 288+31.90 Genworth N 24.75 23.908.00 24.45+26.80 Geonnye 0 79,00 .57 ... 77.60+39.30 Genrdu N 27.23226.26 26.72+20.50 GileadSds 46.74 45.0128.004593+28.60 GoldFUd N 14.85 13.6621.0014.08 -10.70 Go, g N 38.37 36.5166.0036.75 -11.10 A 4.10 3.89 ... 3.96 +2.10 GoidmanS N 208.78198.00.8.00207,78+164.10 Goea N 26.3624.66 ,.. 26.07+10.00 0 536.67510.X39.00515.90-505.00 GranlP*de N 51.02 49.65510051.02 +.30 GryWo0l A 6.21 5.897.00 620 +5.00 H Hallibfn N 33.98 32.889.00 33.73 +6.40 HansenNaIO 39.30 38.2730.0039.19 -18.100 HarleyD N 41.05 40.0611.0040.95+29.9D Hanonic 0 11.03 10.7030.0010.76+13.90 HaronyG N 9.97 9.6731.80 9.77 -11.00 HartdFn N 82.24 0.539.00 86150+63,70 HIMgs N 5.83 5.3625.00 5.5 +8.90 HeclaM N 9.55 9.0817.00 926 -1.90 Heinz N 43.3342.5917.0043.04 +1.10 Hershey N 36.73 35.70390036.00+19.60 Hess N 926189.7516.009207+27.50 HewfelP N 44.4543.4617.044.42 +6.80 Hologi 0 67.9564.91 .. 67.44+53.70 HomeDp N 30.69 29.8813.0030.45+19.20 HoenIln 'N 60.50 59.0119.006021+19.60 HIslH0ls N 17.35 16.815.001728+11.20 HoanE N 12.49 9.2 ... 12.09+4800 HdsC 0 16.64 16.0128.001642 +720 Hume 0 5.84 5.55 ... 5.81 -.50 HunUB 0 31.46 30.6020.0030.90+31.50 HunBns 0 14.13 13.4856.0014.11 +23.70 Huntsm N 24.89 24.10 .. 24.89 +7.40 IAC Inter 0 26.64 25.9524.002026+18.60 iShBraznyaA 78.3376.52 ... 77.95+42.50 iShGernyaA 31.58 31.18 .. 31.45+14.40 IShHKnyaA 20.10 19.56 .. 20.10 +.50 iS.iapnnyaA 12.86 12.75 ... 12.83 +3.60 iShKornyaA 58.11 56.32 ... 5755 +8.70 SMalasnyaA 13.40 12.97 ... 1323 +4.60 iShMex nyaA 57.20 55.34 .. 5680+47.00 iShStngnyaA 12.42 12.15 ... 1234 -1I9 iSTaimn aA 14.28 13.96 ... 1425 +5.00 SP A 65.0164.12 ... 64.85 +24.50 iShCh25 nyaA151.3914.00 ..150.70+18.70 iSSP500nyaA3 7.137.7 ... 139.70+64.90 iShEMlnd NA 140.09137.0 ..139.62 +62.60 Sh20TnyaA 95.4094.56 ... 95.23 -390 iSEalenyaA 73.55 7255 .. 73.55+28.60 lSRlKVOyaA 78.41 7729 ... 7821 +46.30 SR1KGnyaA 56.9556.00 ... 56.2+21.80 iRuslKnyaA 76.10 75.02 ... 76.01 +35.80 iSRo nyaA 69.44 67.60 ... 69.25+44.50 iSR2KG raA 782275.95 ... 77.84+38.201 iShR2KnyaA 72.8871.80 ... 72.63+41.60 iShREstnyaA 68.3365.29 ... 68.33+45.20 iShFnScnyaA 96.00 93.39 ... 95.88+73.70 IkonOHSol N 8.75 8.1610.00 8.70 +.70 ITW N 51.07 49.7615.0050.90 +9.20 T 0 44.72 41.803.904350+42.50 Inad N 39.80 37.937.00 3920 +4.50 Inel 0 21.82 21.2218.5021.77+17.70 IncnEx N 142.12134.2740.00135.45-98.90 IBM N 109,4010G58615.0109.18+.45.60 InCoal N 6.77 6.20 .. 6.64 +6.60 IlGane N 43.6042.3628.0043.44+38.80 IntPap N 32.7531.949.00 32.68+10.30 interpublic N 9.01 8.88 ... 8.98 +5.10 Inlu o 0 31.34 30.1023.0031.16+15.50 Invemss A 48.34 45.27 ... 4756 -46.70 MInesco N 28.3627.1571.002833+23.80 J JASotn 0 54.39 50.6344.0052.89 -74.90 JDSUnirh O 10.75 1025 ... 10.60 +5.40 JPMogC N 48.7046.9011.004825+46.10 Jab1 N 13.91 132830.001331 +7.70 JanusCap N 28.0227.0540.0027.72 +7.40 Jeffenes N 20.90 19.9222.0020.86+30.80 JeBIme 0 7.16 6.5977.00 6.89 +21.40 JohnJn N 64.090 62.7517.0063.36 +9,00 JohnsnCl sN 36.42 35.3816.0035.85+32.50 JnprNwk 0 27.57 26.6443.002725+13.00 K KBHome N 28.9926.4235,0028.75+51.80 KLATnc 0 44.38 42.0518.0044.12+19.50 Keltogg N 49.02 4.80618.0049.02+14.30 Key N 26.49025.2811.3026.42+13.90 KImbC N 67.11 65.5016.0067.04+29.60 KingPhrmnn N 10.67 10.3615.0 10.62 +6.40 Kimossg N 22.64 2165 ... 2196 -2.20 KnghCap 0 17.19 16,6514.0017.15 +13.10 Ko0U s N 46.27 44,9113.0045.93+40.90 Kraft N 29.94 28,8918,00 29A.42 -3.60 Kroger N 26.22 25,4115.0025.98 +6.80 L LSI Corp N 5.57 5.20 .. 555 +7.10 LamRscth O 40.8538.529.00 40.71+13.50 LVSands N 91.50 84.75 ... 87.85+65.70 LeogMasoeN 74.32 71115.0073.44+34.80 LehranBr N 66.5862.579.00 66.00+81.30 LennarA. N 21.64 19.70 ... 21.40+44.20 Leve3 0 3.53 3.34 .. 340 +4.00 Lexmnl N 37.7336.1112.0037.68+96.860 LiblyMintA 0 16.78 15.90 ... 16.51 +17.50 L=y. N 5250 512219.0651.66 +9.20 limited N 19.39 18.7810.001933 +22.60 LwnearTchl 0 28.91 27.4219.0028.860+14.50 LockdhdM N 109.80106.8715.00108.12+26.30 Lowes N 26.3525.2313.0025.55 +8.40 M MBIA N 17.35 14.84 ... 16.36+21.60 MEMC N 75.53 71.4121.007525+32.30 MFAMIg N 10.79 102594.0010.30 +6.80 Macys N 28.17 27.2016.0028.00+30.50 Mastows N 39.67 37,6218.00039.17+27.90 Marathons N 49.15 47.239.00 49.09 +.70 MktVGold A 50,93 48.9 .. 49,15 -12.70 MalntA N 37,59 36.0021.0037.32 +33.70 MarshM N 28.01 27.2568.00 27.95 '+8.30 Marshllsn N 29.07 28.117.00 28.98.39.80 MavellT 0 13.03 11.92 .. 12.76+12.30 i1Itm b+ .-t PE u,' ir' High Lo Masco N 23.4522.6225.0023.33+19.30 MasseyEn N 39.97 360032.0038.92+42.90 MasterCrd N217.35209.6627.0215.42 +219.90 Matel N 21.35 20.73130021.32+23.00 McDnids N 54.37 52 8.M0054.22 +1.20 McGIwH N 44.20 42.8615.0044.06+20.60 McKesson N 62.15 602520.0061.41 +1010. Mdarex O 10.57 10.02 .. 10.50+12.80 MedoSs N 5125 49.8431.050.72 +44.70 Medos N 21.38 20.3119.002124 -12.00 Medtrlri N 50.0046.3119.0047.85+1730 MeloPBL 0 1275 11.9840.0012.38 +7.90 MerradoLnO 38.8836.72 37.48-165.80 Merk N 46.46 45.0631.0045.98 -18.10 MeriLyn N 58.7555.55 ... 58.40+34.40 Metlfe N 60.3058.517.00 60.30+56.80 M ON 0 32.5831.5(21.0032.41+21.30 Mia N 7.89 7.10 ... 7.81 +12.80 Microsoft 0 3325 302517.0030.45 -24.90 MiPhar 0 15.55 1492 ... 15.36 +7.10 Mirant N 37.15 35.0300 36.69 +12.20 MIsuUFJ N 9.60 9.40 ... 9.45 -.30 Monsanto N 115.30111.3355.00114.60+64.70 MonstWw O 30.18 28.4127.0029.82+23.80 =NC sN 36.3234.8412.0035.98 -.30 HorgStan N 49.45 47.6917.0048.25 -6.40 Mosaic II N 94.4790.8444.0093.47+2.70 Motorola N 12.97 12.47 ... 12.69+19,60 Myanr N 15.01 145915.0014.92+3.50 N NCRCps N 22.31212617.002225+11.20 NI IHe 0 4425422922.0043.99+45.30 NRG ys N 39.6138.5227.0039.58+20.50 NYMEX N 115.991112 ... 11223.+50.70 NYSEEur N 81.28 78.1435.0081.28+56.30 Nabos N 28.01 27.148.00 27.93 +17.40 Nasdaq 0 46.59453313.004583+28.50 NatlCy N 18.14 17.6524.0017.98+16.20 NOlVarcs N 63.01 60.1515.0062.69 -8.80 NatSemi N 19.44 183117.0019.36+11.00 NetwAp 0 23.9322.9533.0023.78+15.50 NYCmtryB N 18.68 18.0721.0018.56+1260 NYi5mes N 17.44 16.6612.0017.31+26.50 NwellRub N 24.04 23.4514.0023.92 -2.40 NawmtM N 55.5652.12 ... 53.23 -.30 NewsCpA N 19.56 18.9118.0019.41 +6.80 NewsCpB N 20.12 19.4820.9020.01 +750 NiSmorce N 1925 18.7717.0019.14+14.00 NIkeBs N 62.51 60.501.0062.514+65.10 NobleCps N 45.87 44.6810.0045.29 +4.70 NodaCp N 37.74 36.83 37.62+25.40 Nordslmn N 3983 38.1114.0039.74+47.40 NorikSo N 56.4554.3715.0056.29+58.40 Noeldfrs N 12.76 12.37 ... 12.9 -2.30 NorTrsl 0 74.67 72.2023.873.80+43.60 NOhopG N 80.6378,5116.0080.48+24.10 NwstAirn N 20.1218.38 ... 199+21.00 NoWl 0 6.58 8.30 ... 6.53 +3.50 Nolus 0 25.02 23.6714.0024. +7,30 Ncor N 60.3257.8412.0059.58+46.10 Nvidis 0 0 27.0024.3323.0026.86+19.10 0 OcciPet N 70.0 67.0711.0069.20+43.90 OPC t N 15.54 14.58800 15.4+22.80 lSH A 16225157.83 ... 161.85 -16.10 Omnims N 46.57 452716.0046.41 +2520 OnSmcnd 0 7.37 6.519.00 7.27 +4.50 Oracle 0 20.78202222.0020.68 +4.00 Owenslll N 55.73 5150720 53.00+109.90 PQ PG&SECp N 41.60 40.6315.0041.60+14.50 PMCSra 0 4.90 4.71 ... 4.81 -1.70 PMIGrp N 10.06 922.80 9.81 +6.90 PNC N 67.2365.0115.0066.42+57.60 PPLCorp N 49.43 48.4818.0049.41 +28.20 Paccars 0 48.5045.5014.004628 -320 Palmlncs 0 6.06 5.3240.00 6.02 11.60 ParamTch 0 16.95 16.3713.0016.79+10.70 PaOUTt 0 20.4319.607.01 20.22+10.80 Paydcex 0 34.2232.6223.003.87+10.30 PeabdyE N 55.99 53.6257.0055.63 -4.40 Penney N 49.1446.999.00 48.50+020 PeopnUlF 0 17.49 16834,0017.45+15.60 PepsiBol N 35.44 34.72159.035.21 -35.40 PeprCo N 69.0867.9819.0068.83 -.90 Petrohawk N 16.13 15.5734.0015.85 +8.70 PetrlsAs N 94.7492.48 .. 94.19+68.20 Pehrobrss N 113.69110.76 ... 113.06+84.40 Pfier N 23.7923.1220.0023.59 +9.80 Pier 1 N 7.00 6.51 ... '6.93+11.90 PoloRL N 62.3459.4217.006123+20.40 Popular 0 14.18 136 ... 14.07+24,60 Potashs N 145.031413142.00142.00+92.60 PwShsQQQO 45.88 44.88 ... 45.59+16.00 Powwav 0 3.97 3.66 .. 3.92 +7.10 Praxair N 84.04 81.0923.0083.57+33.50 ProecCasto N 118.09113.6118.00115.81+91.90 PriceTR 0 52285025220052.11 +1.00 Pridelnll N 32.29 31.488.00 32.24 +8.70 PrUJShSP A 61.00 59.10 ... 59.10 -60.30 PrUIShDowA 55.62 5350 ... 53.70 49.40 ProU8QOQA 78.39 75.11 77.50+55.00 PriUShQOQA 49.00 46.92 ..47.02 -41.00 ProUISP A 74.82 72.39 ... 74.48+67.10 PraUShtFn A 97.38 9240 ... 92.40-176.00 ProUIFin A 41.98640.08 ... 41.84+60.90 ProUSR2K A 79.957 75.76 ... 76.06-101.40 ProctGam N 66.68 65.4421.0066.05 +7.40 Pro. N .18.088 18.4010.0018.82 +4.80 Progl" N 61.24 58.4613.1060.61 +24.60 Priadlen N 85.89 83.5011.0%85.29+59.10 PulteH N 16.07 15.13 ... 15.84 +27.40 Q0kg 0 14.58 14.1823.0014.50 +9.00 alcom 0 42.5541221.0042.20+22.00 QuantaSvc N 23.03 21.7047.0022.74 +24.90 OuinltMari 0 24.44 228721.8023.16+69.30 QwestraCm N 5.91 5304.00 5.86 +3.10 R RFMicO 0 3.29 3.0112.00 3.11 +.50 RadioShkI N 17.44 16.6311.0017.07+16.80 Rambes 0 20.00 1955 ... 19.86+40.80 RangeRs N 53.5052.0440.0053.07+51.20 RmesFn N 29.00.27.8514.0028.93+24.40 Raythe N 66.094,8011.00.094801.0009+32.70 R ate N 19.35 18.80521019.14+11.90 RegonsFn N 25.8425.0814.0025.73+29.40 RelanEn N 22.522125 ... 2.52+24.70 RsclMotos 0 94.69 91.5149.0092.24+11.90 RetailHT A 96.189450 .. 95.71+54.40 RiteAid N 3.24 3.00 ... 324 +9.70 RyCt N 41.9940.1415.0041.85+50.80 Ryla N 34.44 3132 .. 34.18+46.50 S SAPAG N 48.5647.48 ... 48.15+23.60 SLM Cp N 23.0020.65 ..23.00+31.20 SpdrHome A 23.60 21.84 23.36 +35.40 Spd04bwBkA 47.60469 ... 47.34 +47.90 SpdirKbW RA 39.71 38.68 ... 39.62439.70 SpdrRetl A 34.87 33.92 ... 34.74+36.76 Salewray N 31.70 31.0116.0031.55 +4.60 SUJde N 41.39 402926.0041.39 +5.30 Saks N 19.00 17.70 ... 18.34 +13.80 SanDisk 0 27.8625.3730.0027.55+19.30 Sanmlra 0 1.75 1.54 .. 1.68 +3.80 SaraLee N 14.27 13.9827.0014.20 +1.50 SdrogPI N 20.70 19.6616.0020.57+16.20 ......... -- ----- ----- I -1.. - .1 -.- II ) I ( 1ft I lml e-c Et rgM, PE LP. CCq ilgh Low Sclmbrs N 7850 75.7219.0078.28 +5.80 Schwab 0 22.2621.5611.0022.04 +8.30 SdGames 0 24.90 23,4041.0023.93+46.80 SeagateT N 21.09 20.178.00 20.93 +.40 SearsHklgsO 114.011082414.00108.31+93.10 SemiHTr A 30.24 29.00 .. 3024+22.20 S6RFTch 0 1624 1521 .. 16.05 -8.0O Slnwoare 0 7.97 7.55 7.87 +9.20 S14W8ltng N 15.50 149024.0015.41 -10.70 SimonPrapN 95.76 89.3440.00 950 489.10 SiusS 0 338 3.18 ... 331 +420 SkyksSol 0 836 7.7820.00 833 +1.10 Smithlnl N 56.17 533917.0055.98 .60.00 SnmuSlne O 9.88 9.40 ... 9.86+10.30 Slarfun 0 17.01 16.00 ... 16.71 +4.10 Sonus 0 428 4.033000 425 +80 SoulhnCo N 3731 36.1017.0037.30+16.20 S rN a 99.10 95.011.0098.30+11020 a N 1220 11.6214.0012.18 +1.70 SwslnEngyN 57.0954.8152.0056,11+50.60 SovTgnI N 13.15 12.503.00 13.07+24.80 SpannAO 3.93 3.65 ... 3.68 +6.80 Speclrn N 22.97 22.5722.0022.95 +30 SPrintex N 10. 9 10,9 ... 10.44+10.60 SPDR A139.1137,52 ... 139.58+65.40 SP Mid A 149.91145.70 149.67+97.00 SPMalls A 41.0640.14 .. 40.92+24.80 SPHFthC A 33.8933.37 .. 33.86 +8.70 SP CnSt A 27.57 27.0 27.47 +7.70 SP ConbumA 32.9132.24 32.87+120.10 SPEngy A 71.61 7022 .. 71.35+26.50 SPFnd A 29.68 2889 29.68+25.00 SPInds A 37.853724 ... 37.85+205) SPTech A 23.66 23.23 23.65 +8.10 SP UI A 403039.46 ... 4024+20.60 SIdPac N 4.95 3.80 .. 4.75+16.00 Staples 0 24.46 23.4217.023.093+13.80 Slaecks 019 1 8.6422.001922 4.40 SltadH8 N 46.98 45.3018.0046.71 +41,0 SlaleSIr N 84.50 81.6624.0083.97 54.50 SlaoHyd N 27.18 26.49 27.07+13.00 sTGoldnyaA 91378922 ..0 895 -90 SunMicrasO 17.68.172830.0017.49+10.60 SunorIg N 97.11 93.70 ... 94.88+.55.18 SunPFower 0 73.75 68.98 ... 73.14 -1.50 Suntech N 573854.31 ... 08+33.50 SunTrst N 70.00 67.4915.0016.33+67.70 Sup N 30.91 29.9812001 0.65+14.30 Symantec 0 18.67 17.8048.9018.66+22.80 Synovuss N 13.58 12618.00 13,49+17.00 Sysco N 302628.9518.0029.83+22.20 T TCFFnd N 22.0421.1210.0022.02+37.6 TDOAmeirO0 19.11 18.5618.0018.75+17.30 TJX N 32.19 31.3222.0032.10+18.80 TiMwSemiN 9.79 9.42 .. 9.75+10.50 TalasmEgs N 16.19 1575 .. 16.11 -220 Target N 57.10 54.8417.0057.05 +54.50 Tedalbs O 6.92 6.6146.00 6.91 +6.90 TemrnpP N 2039 19.6012.002021 +1240 TenelIN N4. 4 .41 ... 455 -.50 Teradyn N 117 10.8927.0011.3127 +8.80 Tera N 45.86 43.9648.0044.68+4.30 Tesaos N 39.80 37.159.00 3831 -9.80 TevaPhmn 0 4.78 44.9420.004558+14.8 TexBist N 31.59 3295017.0031.52 +1820 Textsns N 57.37555416.0057260+39.01 ThermoRs N 5250 50.7842.0052.38 +7.70 Th rnbg N 12.02 11.16 6 11.05+13.0 3Com 0 4.11 4.01 .. 4.05 .1.40 3MCo N 8128 79.8415.3081.21+57.00 coSt 0 7.9 7.3531.00 7.85 +2.60 Tilany N 41.1639.9317.0040.864+36.0 TroieWm N 16.19 15,6812.0016.07 +11.10 iVo lnc 0 8.88 8.31 .. 8.72+18.40 TolBros N 23.84 322.17 ... 23.72+2260 TotalSA N 74.1972.58 ... 74.02+13.00 Tranes N 44.79 44.4118.0044.79 +4.90 Transom N 12.67122.6014.O0125.44-16.70 Travelers N 49.72 48267.00 49.63 +42.00 TridenMh O 521 4.6211.008 521 +220 Tuiwae N 38.87 37.100003829+101.90 Tul 0l N 23.50 2245 ... 23.35 +5.80 yIlnOln N 39.8339.01 ... 39.66+23.60 y, N 14.69 14.2121.0014.41 +11.50 U UAL 0 41.47 36.8916.041.14+62.70 UBSAG N 42.4240.94 ... 42.04 +4.20 UCBHXHid 0 14.92 14.1915.0014.86+18.40 UDR N 2130222625.002326+1220 USAilwy N 155513.403.00 15.39281.00 USEC0 N 833 7.976.00 8.18 +.70 USTInc N 55.01 51.8215.0055.00+26.70 UnionPac N 12833123.5018.00127.97+81.60 Unsys N 4.36 4.05 .. 4.31 +8.00 1 .dMo N 3.17 3.01 ... 3.11 +.90 UPSB N 73.95 71.8014.0073.78+38.10 US Bancip N 3435 33.5414.0034.00+10.40 USOiFd A 722570.17 ... 70.47-14.43 USSteel N 109.54104.2614.0010721 -17.80 UtdTech N 7426 73.2517.0074.12+13.70 UtdhIthGp N 51.03 49.6515.0050.10 +1.00 UnumGtp N 23.4622.5912.0023.38+28.00 UrbanOut 0 29.7228.4635.8029.00+19.60 V ValaoE N 60.30 59.027.00 60.17+65.80 Veridgn 0 36.97 33.16 ... 3.85+34.40 VerizonCm N 39.4938.5320.0038.75 +9.90 ViaomBn N 39.66 38.57 ... 39.66+32.0 VempriCs N 36.24 34.1043.0035.80+2620 VgnMdahO 16.94 15.89 ... 16.69+19.10 VivoPaI N 6.09 5.85 ... 5.98+10.30 VMwaren N 58.14 55.06 ... 57.85-227.0 Vodaflone N 35.95 35.18 ... 35.82+13.70 VulcanM N 78.65 75.8516.0077.47+70.30 W Wachovia N 402237.9112.0038.76+22.80 WalMart N 51.48503117.051.16+30.90 Wamn N 36.3234.6218.0036.32+20.40 WAa.u,, N 21.9219.65 ... 21.82+508. WsteMInc N 3323 323816.0033.14+21.90 WeathfdlInt N 63.796 0.6321.0063.40+17.70 WellPoint N 78.96 77.3714.0078.92+42.30 WellsFargo N 345% 33.1414.0033.65 +29.90 W0iif I N 28.14 26.559.00 27.95+18.60 W". IonN 23.18 22.1321.0023.04.+25.70 WholeFd 0 42939.2132.0040.76+32.10 WmsCos N 32.51 31.7122.0032.49 +620 Windsnm N 11.77 11.5612.0011.73 +7.00 Wyetlh N 41.32 39.3712.041.05 +1.90 XYZ XLCap N 46.7044.934.00 46.44+17.50 XMSat 0 13.09 12.33 ... 12.85+18.60 XTOEns N 5322 51.8615.0053.16+3320 XclEngy N 21.19 20.7016.0021.19 +930 Xerox N 15415.3213.0015.79+13.30 Xiinx 0 23.3922.2519.0023.33+19.80 YRCWwdeO 18651 17.51 ... 17.96 -9.01 Yahoo 0 29.83827.3460.002B.38+04.40 Yamanag N 16.86 15.8251.0015.69 +2.70 Yinglin N 21.18 18.50 ... 21.08 -20.50 YumBrdss N 35.33 33.9021.003524 -10.80 Zimmer N 79.39 77.8724.0079.18+12820 ZlonBqO 0 57.0554.5113.9055.35+79.50 Zoran 0 12.78 11.8010.001Z69 -21.901 ul The News-Sun Sunday, March 2, 2008 11A F omuiy aena Meals on Wheels set for awards dinner SEBRING Sebring Meals on Wheels Inc. will hold it's Award Dinner and Annual Meeting on Friday. This event will be at the clubhouse of Sebring Hills Association, 200 Lark Ave., Sebring Hills. The Awards Dinner and Annual Meeting will begin at 6 p.m. with a- get-acquainted time. Dinner will begin at 6:30 p.m. After dinner there will be a brief entertainment time followed by the annual business meet- ing. Star Duster Band performs today SEBRING Star Duster Band will perform for listen- ing.and dancing pleasure at 2 p.m. today at the Sebring Recreation Club, 333 Pomegranate Ave. (behind the police station). Cost is $1 donation at the door. A free will offering for the band will be received. Open to the public. For information, call 385- 2966, Monday-Friday, 9 a.m. to noon. Pickerings play concert at Sunridge Baptist SEBRING Everyone is invited to a gospel concert presented by the Pickerings. The concert will be held at 6 p.m. today at Sunridge Baptist Church, corner of !Valerie Bouleard and U.S. .27, across the highway from Florida Hospital Heartland Medical Center in Sebring. There is no charge. A love offering will be received to help support their ministry. Arms open for orchestra musicians SEBRING The Heartland Symphony Orchestra extends open arms to musicians who could pos- sibly participate in the clos- ing section of this concert season. Perhaps someone headed up North will have the dedication to take a few moments of time to come to Tuesday evening rehearsals and then play in the March 25 concert, which is tenta- tively to be in the small "stu- dio" auditorium at the Avon Park campus of South Florida Community College. Call Bryan Johnson, con- ductor, at 638-7231 for infor- mation. The next rehearsal is at 5 p.m. Tuesday, March 11. Rehearsals are held in room 34, in the stage end of the auditorium at 5 p.m. Bring music stand and instrument whether string, brass or wind or "other." Several musician have recently joined making the orchestra strong and vibrant. There will be a tuba solo by Stuart Dubbs supported by a new bass violinist from Michigan, Tom Gildea. Stuart is playing "Concertino for Tuba and String Orchestra" 'by Arthur Frackenpohl. It was written for bassist Abe Torchinsky. Popular sausage roast in the Beach Park LAKE PLACID - Everyone's welcome to dine at a delicious sausage roast in Highlands Park Estates. Come enjoy Sunday after- noon ages 5-12 is $1.50. The Beach Park is by turn- ing east of U.S. 27 on County Road 621 to Highl4nds Lake Drive (C19), north one and one-half miles to Nichele Blvd. enters on left (formerly Lincoln Boulevard), immedi- ately turn east (right on Deerglen) to Lake Istokpoga and the Beachpark. For information, call 465- 2468. NASGRASS comes to Shrine Club today AVON PARK Highlands Shrine Club lawn mower races will feature NAS- . GRASS (North American - Society of Grass Racers and Sod Slingers) at Highlands Shrine Club, 2604 State Road 17 South at 1 p.m. today. Bring a lawn chair. Food available. Admission is $5, kids under 12 are free. Moose Lodge keeps busy schedule SEBRING The Moose Legion of the Loyal Order of the Moose will host the fol- lowing events: Today Menu includes hot dogs, sausages and pulled pork barbecue sandwiches served in the bar from 1 p.m. to closing. Member bingo starts at 1 p.m. NASCAR at Las Vegas in the pavilion. Monday Hot dogs, sausages and pulled pork bar- becue sandwiches served in the bar from 1 p.m. to clos- ing. Happy hour 3-6 p.m. Tuesday Hot dogs, sausages and pulled pork bar- becue sandwiches being served in the bar from 1 p.m. to closing. Happy hour is 3-6 p.m. Soft tacos and burritos served 5-7 p.m. Euchre is , 6:30 p.m. and pool is 7 p.m. For more information, call 385-6564. Race Ball tickets on sale at the chamber SEBRING The 2008 Grand Prix Race Ball is scheduled for Saturday, March 8. The Grand Prix Race Ball is one of the most popular'formal events in Highlands County and will take place in the brand new 5,000-square-foot ball room at Four Points by Sheraton Chateau Elan. The event starts at 6:30 p.m. and dinner is served at 7:30 p.m. Dancing to the music of "The Fabulons" is from 9 p.m. to I a.m. The menu consists of a chicken and beef duet and open bar. Tickets are $100 per person and can be purchased at the Sebring Chamber of Commerce on the highway. This event is open to the pub- lic and is black tie optional. Legion 74 is open SEBRING The American Legion 74, at 528 N. Pine Street in Sebring, will host the following events: Today Post open from 1-8 p.m. Happy hour from 4-6 p.m. Monday Post open. VFW Post 4300 has Karaoke by Connie SEBRING The Veterans of Foreign Wars Post 4300 will host the following events: Today Karaoke by Connie will be from 6-9 p.m. Monday Honor Guard meets at 1 p.m. Tuesday House Committee meets at 5 p.m. Ladies Auxiliary will serve wings from 5-7 p.m. Music by Frank "E" to follow. For details, call 385-8902. Reese Thomas has Jam Session at Eagles SEBRING The Sebring Eagles Aerie 4240 will host a Jam Session with Reese Thomas from 4-7 p.m. today. Food by Mary will also be served. For details, call 655-4007. Moose Lodge serves prime rib dinner LAKE PLACID The Lake Placid Moose 2374 will host the following events this week: Today Pavilion open. Prime rib dinner served at 6 p.m. Music by BobKat from 7-11 p.m. Monday Lodge open from 11 a.m. to 9 p.m. Tuesday Loyal Order of the Moose Officers meet- ing at 7:30 p.m. For more information, call the Lodge at 465-0131. VFW 3880 Ladies Auxiliary to meet LAKE PLACID The Veterans of Foreign Wars 3880 in Lake Placid will host the following events this week: Today Hamburgers will be served from 4-5:30 p.m. Tuesday Ladies Auxiliary board meeting is 10 a.m. For more information, call 465-4870. Recreation Club has several activities SEBRING The Sebring Recreation Club will host the following events this week: I'Monday A carry-ini ,,,je dinner at 5:30 p.m. including a 50-plus anniversary cele- bration and talent show. Membership meeting will follow at 7 p.m. 0 Tuesday Park shuf- fleboard tournament. Call 402-2253 for informa- tion. Lake Denton Committee meets SEBRING Lake Denton Committee meets at 4 p.m. Tuesday at Lake Denton Baptist Camp on Lake Denton Road, Sebring. The public is invited to attend. Ohio Night is Monday at Quality Inn SEBRING Ohio night will be at 6:30 p.m. Monday, at the Quality Inn at 6:30 p.m. Cost $15 for dinner. Contact Betsy Shepard for any questions at 414-7437. from 11 a.m. to 3 p.m. Sunday, March 9, at Sebring International Raceway. Avoid the lines and purchase tickets early at the Greater Sebring Chamber of Commerce, 309 Circle Park Drive in Downtown Sebring. Tickets are $15 per person. Vehicles and drivers are pro- vided by Skip Barber Racing School. No car seats or pets - all seats are single occupancy with seat belts. Delicious barbeque lunches available for purchase from Woody's BBQ. SSinging, swashbuckling and sword fighting make madcap merriment Directed by: Jim McCollum Sponsored by News-Sunl 4 Show Runs March 28th thru April 13t",2008 Box office opens 3 week's during the run of the show Monday-Saturday 10am-2pm Tuesday Evenings 6:00pm-7:30pm Vor Ticket and Information Call the Box Office 863-382-2525 r g 12A Sunday, March 2, 2008 shuf- fleboard at 1 p.m. Lounge hours are 12-9 p.m. Legion and auxiliary boards meet at 6 p.m. General meeting at 7 p.m. For details, call 465-7940. ' American Legion Post 74 open 11 a.m. to 9 p.m. Happy hour from 4-6 p.m. Call 471- 1448. * Avon Park Veterans Honor Guard meets first Monday at the American Legion Post 69, Avon Park. For details, call 382-0315. * has hobby club at 9:30 a.m. and shuffleboard scrambles at 6 p.m. at 333 Pomegranate Ave., Sebring. Call 385-2966. * 11 a.m. to 9 p.m. Hot d6gs served daily. Happy hour from. * at 12:30 p.m. first Tuesday for-a business meet- ing at the Women's Club of Sebring, 220 SW Lakeview Drive, Sebring. For details, call 471-3117. * Hope Hospice grief support group meets at 2 p.m. the first and third Tuesday at The Palms of Sebring, chapel on the second floor, in Sebring. Call 370-0312. *. Call. * Overeaters Anonymous meets from 8-9 a.m. every Tuesday at Avon Park Seventh- day Adventist Church, 1410 W. Avon Blvd. No dues, fees'or weigh-ins. Visit m.. * Placid Lakes Home and Property Owners Association Inc. has its board meetings at 7 p.m. first Tuesday at Placid Lakes Town Hall, 2010 Placid Lakes Blvd. Call 465-4888. NEW! Versatile Light Control From Top to Bottom VignLiL Modern Roman Shades with the new Top-Down/Bottom-Up design option offers top-down or bottom-up operation for flexible light control and added privacy. Contact us for a free consultation today. * Financing Available * 90 Days Same as Cash * Over 1/4 Million Dollars of Inventory 9?7 Chamber of ) // Commerce Member 10 & DECORATING SHOP Direct Mill Outlet'* No Middle Man 560 US 27 North Sebring 385-4796 HunterDouglas , 2 )0 7 H u n te , i i, ( l a d e m a o f [H u n te ", 1. , ASID The News-Sun / rel //9 1#1 The News-Sun Courtesy photo Mid Florida Federal Credit Union staff Linda Livingston, Nadia Ball, Chet Brojek, chair- man of the board Mid Florida; Mark Martin, vice president Mid Florida; Lisa Fryback and Cindy High pose outside one of future home of Valerie Shultz in Lake Placid. They are helping Habitat for Humanity build the home for the Shultz family. --m - -m~f Sunday, March 2, 2008 13A AT&T Mobility to repay Florida customers for services called free By DAVID ROYSE Associated Press Writer TALLAHASSEE AT&T Mobility, the nation's largest cell phone carrier, has agreed to pay thousands of Florida consumers who were billed for third-party services like ring- tones and text messaging that were advertised as free. The settlement announced Friday between Florida Attorney General' Bill McCollum and AT&T Mobility could result in refunds of more than $10 mil- lion in all, depending on how many consumers seek com- pensation. McCollum said the main culprits are third-party compa- nies that advertise ringtones and other services on the Internet, often promising that the service will be free. When customers often teenagers - sign up, they or their par- ents 'ring- ,tones,' and it's going to give them an opportunity to can- cel," McCollum said. McCollum said his office is in the process of investigating other cell phone companies to determine the extent to which they're allowing fraudulent third-party billing, and plans to push for refund agreements with all the major providers. Atlanta-based AT&T Mobility also noted in a state- ment that the problem is an industrywide one, and also emphasized that it didn't sell the ringtones or other phone content, but simply billed its customers for third-party serv- ices that they had purchased. AT&T said it has put safe- guards in place to help cus- tomers understand what they'll be billed for. Under its practices, "the customer must take an affir- mative action sending a text message before a third- party provider can sell the cus- tomer blame- less. I "They did have misleading billing," McCollum. said. He also noted that AT&T got about 40 percent of the charges for third-party servic- es billed to their customers. "Copyrighted Material Syndicated Content Available from Commercial News Providers" DUNKIN Continued from 9A the "Oven-Toasted" result. Dunkin' Donuts' new Oven- Toasting process enhances the taste and quality of Dunkin' Donuts' current breakfast menu. Breakfast sandwiches are cooked evenly and thor- oughly, chang- ing consumer eating habits and expectations. Company and industry research indi- cates that today's time- starved consumer is insisting BENTON Continued from 9A 100 percent of your Social Security benefits on Page 1, Line 14a for Form 1040A or 'Page 1, Line 20a for Form 1040. Lines 14b or 20b should be left blank if none of your Social Security bene- fits are taxable. The fourth question that I am getting asked is, "When will I receive my tax rebate?' Most people will receive a notice from the Internal Revenue Service, most likely in April, explaining their eli- gibility and rebate amounts based upon their 2007 federal tax return. Rebate checks will then be cut in May 2008 to those that have already filed a federal tax return and are eligible for the stimulus rebate. All payments will be made by check, so no direct deposits will be permitted. The fifth question that I seem to get asked a lot is,"If I request an extension of time to file my 2007 tax return, will I still get a tax rebate?" The answer is yes, but it will take the IRS approximately six weeks to process the stimulus rebates so if you meet the eligibility you should look for the IRS notice within four weeks of 'filing your 2007 tax return. fhe last question I want to address in this article is,"What if I do not meet the on quick,'high-quality food and beverage offerings that are convenient, portable and not limited by time of day. Customers want flexibility and having hash browns, flat- 'bread sandwiches and person- al pizza available anytime allows Dunkin' Donuts to break the limitation of tradi- tional menu barriers. "People will no longer accept being offered breakfast only in the mornings or sand- wiches only in the afternoon," says Will Kussell, president and chief brand officer of Dunkin' Donuts Worldwide. "Customers love Dunkin' Donut4 current menu items, and now they can enjoy more choices to keep them going any time of day without com- promising on quality or taste. They want a full variety of eligibility on my 2007 tax return, but my situation changes where I meet all the eligibility in 2008?" Your eligibility for the economic stimulus rebates,is really based on your 2008 return; however, the only way that the IRS has to estimate eligi- bility is from the 2007 tax return that you file. If, in 2008, you meet all the eligi- bility criteria (for example, maybe an individual filing as single has 2007 AGI of $90,000 because of a bonus, but only an AGI of $75,000 in 2008), then you can take a tax credit on your 2008 tax 1 return equal to the amount that your tax rebate would morning and afternoon food and beverage offerings, served fast and fresh, whether it's 8 a.m. or 8 p.m." The launch of the Oven- Toasted menu supports Dunkin' Donuts aggressive growth. The company is com- mitted to expanding its num- ber of existing U.S. shops, moving into neW. markets while expanding in its current cities. Within the past year, the company has launched plans or entered into agree- ments for significant expan- sion in Las Vegas, Indianapolis, Phoenix, Dallas, Austin and Houston, among other' locations. Dunkin' Donuts is also increasing its presence in international mar- kets, including the company's recent announcement to expand into mainland China. have been. You, however, must-wait until filing your 2008 tax return to take advantage of the tax rebate, These seem to be the ques- tions that I have been hearing most often-. I know that peo- ple may have questions in addition to these so please talk to your tax advisor. Additionally, I am sure there. will be more information published on this in the months to come. William R. Benton is a partner with the certified public account- ingfirm, The NCT Group CPA's LLP, 435 S. Commerce Ave. in Sebring. He can be contacted at 385-1577. ii p.m. 50 BOAT LIMIT $100 PER TEAM INCLUDES $10 BIG BASS Team Members: Name Address City/St/Zip Signature Name Address, City/St/Zip Signature Boat Registration # Phone#__ Cash Check __Check# My signature above releases all sponsors, the Lake Placid Chamber of Commerce, the Town of Lake Placid and, all officials, organizations and/or any other Individuals regarding this event from any and all liabilities,) 863-465-2588* Email:chamber@lpfla.com Sponsored by GLADES News-S Sun Seacoast Electric Cooperative, Inc. ........ NATIONAL BANK S FLORIDA HOSPITAL Heartland Division PROUDLY PRESENTS SALUTE TO DISNEY BARBERSHOP SHOW 0; ALL TICKETS $12 AVAILABLE AT KENILWORTH LODGE, SEBRING HOME & OFFICE ESSENTIALS, LAKE PLACID HOTEL JACARANDA, AVON PARK FOR INFORMATION, CALL JIM THOMPSON 63) 386-5098 OR STEVE WAITKUS (863) 386-4997. INN-. BARBERSHOP HARMONY SOCIETY WITH SOUNDS OF SEBRING & WITH SOUNDS OF SEBRING & HOT SHOTS (2006 DISTRICT CHAMPIONS) SATURDAY MARCH 8 AT 2:00 PM & 7:00 PM AT SOUTH FLORIDA COMMUNITY COLLEGE AUDITORIUM 14A Sunday, March 2, 2008 The News-Sun .1 MVU Rumors have been circulating about Barack Obama's religion, as well as his stance on the Pledge of Allegiance. w -- S- - 4m2ow 0md w S':.- .' .'"Copyrighted Material S. "- Syndicated Content Available from Commercial News Providers" -- *ub - Qw a,.0 41 AUTHENTIC SUPPLY Co., LLC 0101 .9010-0400 -~d- b .e M ONW 4ba-*N *- am-m - Shingles Flat Roofs Roof Repairs - Mobile Home Roofovers - State Lic # RC 0066817 FULLY LICENSED & INSURED 385-4690 Breakfasts and lunches being served in the Highlands County School District for the upcoming week of March 3-7 include: HIGH SCHOOLS Monday Breakfast French toast sticks with sausage patty, assorted cereals, cinnamon toast, Juice Alive, apple, .assorted fruit juice, choice of milk. Lunch Burger on bun, Mama Sophia's pizza, chick- en patty on bun, Uncrustable, chicken marinara with spaghetti and garlic toast, chef salad, crispy chicken Caesar, turkey and cheese sub, carrots and dip, string cheese, french fries, corn, extreme fruit cherry, assorted fresh fruit, peach slices, brownie, JuiceTyme 100 per- cent juice, choice of milk. Tuesday Breakfast Chicken bis- cuit, grits, assorted cereals, cinnamon toast, Juice Alive, mandarin orange, assorted fruit juice, choice of milk. Lunch Burger on bun, Mama Sophia's pizza, chick- en patty on bun, Uncrustable, ground beef and macaroni with roll, chef salad, crispy chicken salad, ham and cheese sub, tossed salad, green beans, mashed potatoes, potato chips, string cheese, extreme fruit green apple, assorted fresh fruit,. fruit cocktail cup, cut fruit, JuiceTyme 100 percent juice, .choice of milk. Wednesday Breakfast Breakfast sandwich, assorted cereals, cinnamon toast, Juice Alive, pineapple cup, assorted fruit juice, milk. Lunch Burger on bun, Mama Sophia's pizza, hot and spicy chicken sandwich, Uncrustable, mandarin chick- en with rice, chef salad, southwestern chicken salad, hoagie sub, white rice, broc- coli, french fries, carrots and dip, string cheese, extreme fruit cherry, assorted ; fresh fruit, applqsauce, peach crisp, JuiceTyme 100 percent juice, choice of milk. Thursday Breakfast Tony's break- fast pizza, assorted cereals, cinnamon toast, fresh Florida oranges, Juice Alive, assorted fruit juice, milk. Lunch Burger on bun, Mama Sophia's pizza, chick- en patty on bun, Uncrustable, taco salad, salsa, chef salad, crispy chicken Caesar, ham and cheese sub, scalloped potatoes, potato chips, corn cobbettes, tossed salad, extreme fruit green apple, assorted fresh fruit, fruit cocktail cup, cut fruit, JuiceTyme 100 percent juice, choice of milk. Friday Breakfast Sausage bis- cuit, assorted cereals, cinna- mon toast, Juice Alive, assort- ed fruit juice, milk. (This is "Spring Forward" weekend). Lunch Burger on bun, Mama Sophia's pizza, chick- en patty on bun, Uncrustable, chicken tenders with dinner roll, chef salad, crispy chick- en salad, turkey and cheese sub, carrots and dip, string cheese, french fries, green beans, peach slices, assorted fresh fruit, extreme fruit cher- ry, Carnival Chip cookie, JuiceTyme 100 percent juice, choice of milk. ~, ----- -~ -~ MIDDLE SCHOOLS Monday Breakfast French toast sticks, sausage patty, assorted cereals, cinnamon toast, Juice Alive, assorted fresh fruit, assorted fruit juice, choice of milk. Lunch Burger on bun, chicken patty on bun, chef salad, chicken Caesar salad, turkey and cheese sub, chick- en marinara with spaghetti and garlic toast, seasoned potato cubes, corn, string cheese, peach slices, assorted fresh fruit, brownie,, ground beef and macaroni, mashed potatoes, carrots and dip, green beans, assorted fresh fruit, cut frdit, fruit cocktail cup, JuiceTyme 100 percent juice, choice of milk. Wednesday Breakfast Breakfast sandwich, assorted cereals; cinnamon toast, assorted fresh fruit, Juice Alive, assorted fruit juice, milk. Lunch Burger on bun, hot and spicy chicken sand- wich, turkey and cheese sub, chef salad, southwestern chicken salad, mandarin chicken with rice, baked french fries, broccoli, string cheese, assorted fresh fruit, applesauce, JuiceTyme 100 percent juice, choice of milk. Thursday Breakfast Tony's break- fast pizza, assorted cereals, cinnamon toast, assorted fresh fruit, Juice Alive, assorted fruit juice, milk. Lunch Burger on bun, chicken patty on bun, ham and cheese sub, chef salad, chicken Caesar salad, taco salad, scalloped potatoes, corn cobbettes, carrots and dip, assorted fresh fruit, fruit cocktail cup, cut fruit, JuiceTyme 100 percent juice, choice of milk. Friday Breakfast Sausage bis- cuit, assorted cereals, cinna- mon toast, assorted fresh fruit, Juice Alive, assorted fruit juice, milk. (This is "Spring Forward" weekend). Lunch Burger, -on bun, chicken tenders with dinner roll, turkey and cheese sub, chef salad, crispy chicken salad, Mama Sophia's pizza, tossed salad, carrots and dip, potato chips; string cheese, assorted fresh fruit, peach slices, Carnival Chip cookie, JuiceTyme 100 percent juice, choice of milk. ELEMENTARY SCHOOLS Monday Breakfast French toast sticks with sausage patty, assorted cereals, cinnamon toast, grape juice, apple, choice of milk. Breakfast in the Classroom: Reese's Puffs, string cheese, apple juice, milk. Lunch Uncrustable, ham chef salad, ham sandwich, baked chicken with dinner roll, mashed potatoes, California blend, fruit blend juice, peach crisp, choice of milk. Tuesday Breakfast Chicken bis- cuit, assorted cereals, cinna- mon toast, apple juice, banana, choice of milk. Breakfast in the Classroom: Sausage biscuit, banana, hard cooked egg, giant graham, chocolate milk. Lunch Uncrustable, ham chef. salad, ham sandwich, beef ravioli with garlic bread- stick, broccoli, fresh Florida oranges, grape juice, brownie, choice of milk. Wednesday Breakfast Breakfast sandwich, assorted cereals, cinnamon toast, mandarin orange,. apple juice, milk,; Breakfast in, the Classroom: Hard 'cooked egg, giant: gra- ham, sausage biscuit, grape juice, milk. Lunch Uncrustable, turkey chef salad, tacos, salsa, yellow rice, black beans, car- rots and dip, fruit cocktail cup, choice of milk. Thursday Breakfast Tony's break- fast pizza, assorted cereals, cinnamon toast, pineapple cup, grape juice, milk. Breakfast in the Classroom: Strawberry pop-tart, string cheese, chicken biscuit, apple, Chocolate milk. Lunch Uncrustable, Goldfish crackers, ham chef salad, ham sandwich, grilled cheese with chicken, noodle soup, seasoned peas, grape juice, glazed cinnamon roll, choice of milk. Friday Breakfast Sausage bis- cuit, assorted cereals, cinna- mon tdast, fresh Florida oranges, apple juic~, choice of milk. Breakfast in the Classroom: Chicken biscuit, strawberry pop-tart, string cheese, apple juice, milk. (This is "Spring Forward" weekend). Lunch Uncrustable, ham chef salad, ham .sandwich, Mama Sophia's pizza, tossed salad, pineapple cup, fruit blend juice, Carnival Chip. cookie, choice of milk. Carports Patios Sliding Fascia SEAMLESS GUTTERS & DOWNSPOUTS "For all of your Aluminum, Steel, and Conventional construction needs" Email: kochcon @strato.net State Certified License #CBC058444 Ad,4 The News-Sun Sunday, March 2, 2008 15A Friday, Jan. 18: Edgar Acosta, 19, of Haines City, was charged with operating motor vehicle without valid license. Antonio Aguilar, 32, of Lake Wales, awaiting trial for driving under the influ- ence of alcohol or drugs. Mario Alberto Alvarado, 19, of Avon Park, awaiting trial for burglary of dwelling, structure or conveyance, armed; larceny, petit, first offense; and burglary and possession of tools with intent to use. Joy Marie Christmas, 56, of Wauchula, awaiting trial for failure to appear for resisting arrest, obstruction without violence. Dawn Marie Dempsey, 19, of Avon Park, was charged with probation viola- tion, misdemeanor or community con- trol. Kelly Christopher Drummond, 18, of Sebring, awaiting trial for possession of marijuana, not more than 20 grams. Leroy Quinn English, 25, of Avon Park, was charged with probation viola- tion, felony or community control for possession of cocaine; and possession of cannabis. Adrian Andrew Estevez, 25, of Sebring, awaiting trial for domestic vio- lence, contempt of court, violation injunction protection domestic violence. *' Winston Isidore Francois, 30, of Sebring, awaiting, trial for failure to appear.for domestic violence or battery. John Thomas Gallovich, 45, of Sebring, awaiting'trial for possession of marijuana, not more than 20 grams. Mark Anthony Goldburne, 29, of Lake Placid, was charged with probation vio- lation, felony or community control for two counts of possession of cocaine; possession of cannabis; and awaiting trial for domestic violence or battery, touch or strike. * Henry Goldsmith Jr., 55, of Lake Placid, awaiting trial for contempt of court, child support. * Amado Valeriano Gonzalez, 30, of Sebring, was detained for Immigration Naturalization Services for municipal ordinance violation. * Osvaldo Ruben Gonzalez, 25, of Zolfo Springs, awaiting trial for possessing new legend drug without prescription. * Thomas Theodore Grippo, 20, of Sebring, awaiting trial for possession of controlled substance without prescrip- tion; driving under the influence of alco- hol or drugs, first offense; probation vio- lation, felony or community control for attempted robbery with deadly weapon (Broward County cases); possessing, selling or delivering oxycodone; and possessing, selling or delivering alprazo- lam. * Robert Allan Hicks, 19, of Lake Placid, awaiting trial for possession of marijua- na, not more than 20 grams. * Everett Cornelius Holder, 43, of Sebring, awaiting trial for trespassing structure or conveyance. * Deidra Ann Lagana, 42, of West Palm Beach, awaiting trial for possession of narcotic'equipment and/or use; posses- sion of marijuana, not more than 20 grams; and failure to appear for posses- sion of cannabis, under 20 grams and possession of drug paraphernalia. * Jacob Lightfoot, 33, of Sebring, was charged on a Sarasota County warrant for domestic violence or battery, causing bodily harm. * Pedro Diaz Lopez, 25, of Myakka, was charged on a Manatee County warrant for no valid driver license. * Lucy Padilla Martin, 26, of Sebring, was registered as a convicted felon. * James Melvin Mayo, 19, of Sebring, awaiting trial for possession of marijua- na, not more than 20 grams. * Robert Mark Mayo, 18, of Sebring, awaiting trial for possession of marijua- na, not more than 20 grams. * Eric Livingston McFarlane, 25, of Avon Park, awaiting trial for failure to appear for possession of cannabis; and use or possession of drug paraphernalia. * Roderick Lewis Milner, 19, of Avon Park, awaiting trial for possession of cocaine with intent to sell, etc. within 1,000 feet of place of worship or busi- ness, Schedule II; possession of narcot- ic equipment and/or use; and domestic violence or battery, touch or strike. * Eslyn Jeanetta Orticari, 58, of Sebring, was charged with driving under the influ- ence of alcohol or drugs and damaging property. * Jennifer Sue Perry, 32, of Sebring, awaiting trial for neglect of child, without great harm. * Wayne Edward Perry, 41, of Sebring, awaiting trial for neglect of child, without great harm. S'Eric Ramos, 23, of Lake Placid, was registered as a convicted felon.' * Tanuel Keheir Robinson, 18, of Sebring, awaiting trial for aggravated battery,' person using deadly weapon; and burglary of dwelling, structure or conveyance, armed. Highlands County Commission Agenda March 4,2008 1. Meeting called to order and invitation to fill-out "citi- zens not on the agenda" forms 2. Invocation and Pledge of Allegiance 3. Announcements Today, 3 p.m., Highlands Soil & Water Conservation District, No. 3, Ag-Center, 4509 George Blvd., Sebring Tuesday, 3 p.m., Highlands County Planning & Zoning Commission board room, 600 S. Commerce Ave., Sebring Tuesday, 4 p.m., Lake Denton Committee, Lake Denton Baptist Camp, Lake Denton Road, Avon Park Tuesday, 7 p.m., Construction Licensing, Enforcement & Appeals Board, Board room, 600 S. Commerce Ave., Sebring Wednesday, 4:30 p.m., Florida Department of Transportation Open House followed at 6 p.m. by a Public Hearing on US 27 Corridor Access Management Plan, Auditorium, Ag-Center, 4509 George Blvd., Sebring Monday, March 10, 9 a.m., Highlands County Homeowners Association, 3240 Grand Prix Drive, Sebring Monday, March 10, 6:30 p.m., Highway Park- Neigh- borhood Preservation & Enhancement District Council, 114 Cloverland Street, Lake Placid 4. Consent agenda A. Request approval to pay all duly authorized bills and employee benefits March 4 B. Request approval of board meeting minutes of Feb. 12 and 19 C. Request approval of two (2) Local Agency Program (LAP) Supplemental Agreements and the Resolution Authorizing the Chairman of the Board to exe- cute said Agreements, for Project ID#409096-1 D. Request approval of budget amendments 07-08- 096; 098 E. Request approval of budget amendment 07-08-099 5. Action A. General Services/ Purchasing Director: Request approval of a Proclamation recognizing Purchasing Month, March 2008 B. Danny Kushmer, Southwest Florida Water Management District: Presentation on the West Central Florida Water Restoration Action Plan and a report on cooperative funding C. Development Services Director: Request to approve * Michael Levon Rowe, 22, of Avon Park, was registered as a convicted felon. * Walter Peter Savarese, 22, of Avon Park, awaiting trial for larceny, petit, first degree. * Jo Ann Skipper Hancock, 46, of Avon Park, awaiting trial for driving while license suspended, second offense. * Krystal Lashon Smith, 19, of Sebring, was registered as a convicted felon. * Joevita Ann Staley, 34, of Avon Park, was registered as a convicted felon. * Debra Jean Stephens, 55, of Avon Park, was charged with probation viola- tion, felony or community control for two counts of grand theft. * Genaro Vargas, 20, of Lake Placid, awaiting trial for attaching registration license plate not assigned; and operating motor vehicle without valid license. * Jonathan Dustin Wolfe, 18, of Sebring, awaiting trial for possession of marijuana, not more than 20 grams. * Bernard Wolkove, 74, of Sebring, awaiting trial for larceny, sales tax fail remit. * Alyssa Ziarno, 33 of Sebring, awaiting trial for domestic violence, contempt of court, violation injunction, protection, domestic violence. * Alexandra Kelly Zobel, 18, of Avon Park, awaiting trial for domestic violence or battery, touch or strike. The following people were booked into the Highlands County Jail on Thursday, Jan. 17: * Lynn Wayne Allen, 19, of Sebring, awaiting trial for probation violation, misdemeanor or community control for battery; and probation, violation, felony or community control for grand theft. * Cody Adam Bateman, 19, of Sebring, was registered as a convicted felon. * Jason.Allen Bishop, awaiting trial for failure to appear for obtaining property by false impersonation; and driving while under the influence of alcohol or drugs. ' * Allen Cahill, 67, of Lake Placid, was recommitted for indecent exposure in public; and disorderly conduct. * Darla Yvonne Carter, 18, of Avon Park, awaiting trial for possession of narcotic equipment and/or use; and possession of marijuana, not more than 20 grams. the concept for work on Phase I of the Strategic Growth Plan with Glatting Jackson and direct staff to return March 11 for approval of the CSA and budget amendment and direct staff to bring a proposal from Glatting Jackson for scope of services for Phase 2 at the earliest possible time D. County Engineer and Board Attorney: Request approval of Resolution authorizing acquisition by condemning a portion of the property owned by Warren Lee Johnson, Jr., located at 2250 S. Highlands Avenue (future Sebring Parkway) for construction of the Sebring Parkway Phase II Project E. Board Attorney: Request approval of a Resolution establishing an Affordable and Workforce Housing Program F. County Administrator: 1. Request approval of budget amendment 07-08-095 decreasing fund 151 Reserve for Contingency 2. Request to deny support of a Resolution in support of legislation proposed by the Sebring Airport Authority regarding procurement of pro- fessional services 6. Citizens not on the agen- da 7. Commissioners 8. Adjourn * Wilford Pete Chavis Ill, 20, of Sebring, was charged with driving under the influ- ence of alcohol or drugs. * William Lee Chavis, 18, of Sebring, was charged with possession of narcotic equipment and/or use. * Richard Clarence Crump, 62, of Avon Park, awaiting trial for failure to appear for no valid driver license; and resisting arrest without violence. * Kimberly Ann Doty, 43, of Sebring, was charged with larceny, petit, first offense * Jack Junior Dougherty, 49, of Warren, Mich., was charged on Michigan Department of Corrections parole viola- tion. * Lapetra Shonio Evans, 18, of Sebring, was charged with operating motor vehi- cle without valid license; and false iden- tification given to law enforcement offi- cer. * Julio Cesar Flores, 33, of Avon Park, was detained for Immigration Naturalization Services for municipal ordinance violation. * Armando Gallegos, 35, of Sebring, was recommitted for resisting officer, obstruction without violence. * Joseph Paul Graham, 18, of Sebring, awaiting trial for burglary of dwelling, structure or conveyance, armed; homi- cide, willful kill, murder while engaged in certain felony offense. 0 Heather Dee Hess, 35, of Frostproof, awaiting trial for failure to appear for issuing or obtaining property with worthless check. * Collin Nick Joseph, 31, of Sebring, was charged on a Hendry County war- rant for passing a forged instrument. * Lea Helene Lastrina, 18, of Lake Placid, was charged with larceny, petit, first offense. * Kevin Erich Lowie, 21, of Sebring, awaiting trial for battery, causing bodily harm; and obstructing justice, intimidat- ing, threatening, etc. victim, witness, informant. * Jorge Emmanuel Martinez, 19, of Sebring, awaiting trial for sexual offense, victim 12 years of age up to 15 years of age. * Miguel Nunez Martinez, 22, of Lake Placid, awaiting trial for driving under the influence of alcohol and drugs and damaging property. * Joseph Mathis Jr., 44, of Sebring, awaiting trial for withholding support, non-support of children or spouse. * Michael Shane McConniel, 25, of Sebring, awaiting trial for probation vio- lation, misdemeanor or community con- trol for domestic violence or battery. * Javier Ortiz Perez, 32, of Lake Placid, was held for Immigration Code Enforcement for municipal ordinance violation. *, Clyde Clay Pough, 59, of Avon Park, was charged with false identification given to law enforcement officer; and driving while license suspended, first offense. * Terri Jo Rametta, 46, of Avon Park, awaiting trial for two, counts of posses- sion of narcotic equipment and/or use; and possession of methamphetamine. * Cesar Isaias Rodriguez, 18, of Avon Park, awaiting trial for driving under the influence of alcohol or drugs; DUI and damaging property; DUI and serious bodily injury to another; operating motor vehicle without valid license; and failing to obey law enforcement officer order to stop. * Gerald Edward Sanders Jr., 18, of Sebring, awaiting trial for burglary of dwelling, structure or conveyance, armed; and homicide, willful kill, murder while engaged in certain felony offense. * Cynthia Tae Skinner, 25, of Frostproof, was charged on a Polk County warrant for criminal mischief. * Efrain Rodriguez Vargas, 25, of Frostproof, was charged on a Polk County warrant, failure to appear, for leaving scene of accident without giving information. * Erik Joseph Weisbecker, 31, of Sebring, was registered as a convicted felon. The following people were booked into the Highlands County Jail on Wednesday, Jan. 16: * Paul Wesley Allen, 23, of Sebring, awaiting sentencing for possession of cocaine. * Linda Ray Austin, 40, of Winter Haven, awaiting trial for failure to appear for issuing or obtaining property with worthless check. * Sergio Gabriel Benavidez, 31, of Zolfo Springs, awaiting trial for failure to appear for theft; possession of cocaine; and possession of drug paraphernalia. * Frank Marion Bradley, 68, of Sebring, was registered as a convicted felon. * Ennis Lee Brown, 27, of Sebring, awaiting trial for possessing 10 or more certain forged bills or notes; and recom- mitted for driving while license suspend- ed, first offense. * Thetis Udon Buey, 47, of Sebring, awaiting trial for possession of cocaine. * Daniel Lee Cassel, 31, of Avon Park, awaiting trial for probation violation, misdemeanor or community control for driving under the influence of alcohol or drugs. * John Patrick Charland, 30, of Coral Springs, was charged with driving under the influence of alcohol or drugs, second offense. * Jaclyn Suzanne Costner, 27, of Avon Park, awaiting trial for possession of narcotic equipment and/or use; posses- sion of marijuana, not more than 20 grams; and possession of methamphet- amine. * Juan Antonio Escobedo Jr., 26, of Bowling Green, awaiting trial for two counts of contempt of court, violation injunction protection domestic violence. * Alvaro Gamez, 24, of Sebring, await- ing trial for possession of controlled substance without prescription; posses- sion of narcotic equipment and/or use; resisting officer, obstruction without vio- lence; and false identification given to law enforcement officer. * Maykel Gonzalez Jr., 28, of Sebring, was charged with probation violation, misdemeanor or community control for possession of cannabis. * April Lakeshi Hale, 20, of Lake Placid, was charged with probation violation, misdemeanor or community control for knowingly driving while' license sus- pended or revoked;. and driving while license suspended, first offense. * Ben Neel Hill, 42, of Sebring, awaiting trial for failure to appear for disorderly conduct. * David Allen Kerpan, 55, of Lake Placid, was charged on a Hillsborough County warrant for driving under the influence of alcohol or drugs., * Vackara Darnell Massaline, 31, of Sebring, awaiting trial for public .order crimes, accessory after the fact of life felony. * Jerron Mario Moffitt, 19, of Sebring, was charged with loitering or prowling. * Leasiv Nemuel Pantoja, 28, of Frostproof, was charged with driving under the influence of alcohol or drugs. * Ginger Maria Paul, 19, of Sebring, was registered as a convicted felon. * Earl Wayne Register, 40, of Sebring, was d6alrged with driving while license suspended, first offense. * Eduardo Romero, 21, of Lake Placid, was recommitted for battery, touch or strike. * Jordan Eli Shapiro, 28, of Sebring, awaiting trial for possession of cocaine. * Curtis John Smith, 27, of Sebring, awaiting trial for battery, touch or strike. * Jose Luis Torres III, 19, of Sebring, awaiting trial for larceny, petit, first offense. The following people were booked into the jail on Tuesday, Jan. 15: * Melissa Lynn Andress, 26, of Sebring, awaiting trial for burglary with assault or battery. * Leslie Ann Blaine, 25, of Merriana, awaiting trial for failure to appear for knowingly driving while license sus- pended or revoked. * Chase Lamar Bryan, 18, of Sebring, awaiting trial for possession of cocaine; and possession of narcotic equipment and/or use. * Clyde Spears Davidson Jr., 59, of Lake Placid, was recommitted for driving under the influence of alcohol or drugs, first offense. * Drew Eli Fellin, 25, of Sebring, await- ing trial for possessing, displaying, etc. of canceled, revoked, etc. driver license. * Alberico Garcia Jr., 27, of Frostproof, was charged with probation violation, felony or community control for driving while license suspended or revoked. * David George Gayner, 63, of Avon Park, was recommitted for driving under the influence of alcohol or drugs, first offense. * Len Fontaine Grant, 25, of Sebring, awaiting trial for selling cocaine within 1,000 feet of place of worship or busi- ness, Schedule II; selling marijuana within 1,000 feet of place of Worship or business, Schedule II; possession of narcotic equipment and/or use; and two counts of resisting officer, obstruction without violence. * Robin Jean Guillaume, 22, of Avon Park, awaiting trial for possession of cocaine; possession of narcotic equip- ment and/or use; and possession of marijuana, not more than 20 grams. * Michael William Hitlaw, 53, of Sebring, awaiting trial for trespassing property, not structure or conveyance. * Daniel Lee Jones, 50, of Avon Park, awaiting trial for battery, touch or strike. * Over Lawrence, 41, of Sebring, was registered as a convicted felon. * Matthew Crusaw Lewis, 27, of Sebring, awaiting trial for resisting offi- cer, obstruction without violence. * Maurice Shevelle Lewis, 28, of Winter Haven, awaiting trial for possession of narcotic equipment and/or use. * Ashley Lynn Mize, 19, of Lake Placid, awaiting trial for possession of marijua- na, not more than 20 grams; possession of narcotic equipment and/or use; and possession of liquor by person under 21 years of age, first offense. * Ryan Scott Moore, 28, of Charleston, S.C., was charged with hit and run, leav- ing scene of crash involving damage to property; and driving under the influence of alcohol or drugs and damaging prop- erty. * Gerald Patrick Pascuales, 33, of Avon Park, was charged on an out-of-county warrant for driving while license sus- pended or revoked. * Anthony Jason Pasquino, 30, of Lake Placid, was registered as a convicted felon. * Daniel Delapaz Quiroz, 28, of Avon Park, was charged on a municipal ordi- nance violation. * Dawn Shauuna Rhodes, 30, of Winter Haven, was charged with probation vio- lation, misdemeanor or community con- trol for knowingly driving while license suspended or revoked. * Robert Thomas Ritchie, 3.9, of Cape Coral, awaiting trial for probation viola- tion, misdemeanor or community con- trol for two counts of possession of drug paraphernalia; and possession of cannabis. * Joshua Paul Roe, 25, of 2151 Lakeview Drive in Sebring, was regis- tered as'a sexual offender. * Charles Adam Roque, 22, of Sebring, was charged with probation violation, felony or community control for battery; resisting officer without violence; and possession of drug paraphernalia. * Corey Dick Strong, 31, of Sebring, was recommitted for driving' while license suspended or revoked, first offense; and resisting officer, obstruc- tion without violence. Ronald 0. Sevigny, O.D. Terry G. Johnson, O.D. Mark D. Sevigny, O.D. Daniel W. Welch, M.D. Board Certified Physicians FREE SEMINAR Five Sight Saving Strategies for MACULAR DEGENERATION Monday, March 17 Noon 210 U.S. 27 North, Avon Park RSVP (863) 453-3850 Demonstration of latest technology Refreshments will be served -- -- ------ -- The News-Sun 16A Sunday, March 2, 2008 863- O-N[-I f --- ONLY WANT ONE P1 S RAo E FARAM E * BUY ONE COMPLETE PAIR OF EYEGLASSES VALUED AT $98 OR M,-ORE AND GET 50%., OFF ON YOUR FRAME COUPO iJ .IU :T bEE PF- .EEB ITEE., AT TIME OF SALE NOT VALID WITH A' OTHER OFFER: Valid only 3-1-08 thru 3-31-08 - -n- - m - mm -m IL - L ' 4.- . it. y'", i -:'. I A )00 BUY ONE, GET ONE I I| (EVEN PROGRESSIVE NO-LINE BIFOCALS) , OR Q BUY ONE COMPLETE PAIR AND GET A SECOND PAIR FREE. O |SECOND PAIR FRAME FROM SPECIAL COLLECTION AND 1 rhI(i%"-flf A r"-ii- r-r-/ 11 AI F r-1 ,fD .,. f"1 A "l rt r1 rt-rl A I-r l IA IIA -r- LIENS SL 1L-1L: -I -LULAR U -39' -L/ I I V IU VIMATl lRIAL, VVl I -I SPHERE POWER TO + OR 6 00, CYLINDER POWER TO - 3.00. MIN. EXTRA CHARGES FOR HIGH POWERS, U.V., TINT AND UPGRADES. MINIMUM PURCHASE $98.00 OR MORE TO QUALIFY FOR THIS OFFER. COUPON MUST BE PRESENTED AT TIME OF SALE, NOT VALID WITH ANY OTHER OFFER. I I., I"-i 9 Valid only 3-1-08 thiu 3-31-08 --- ----- m EYE Ell AVAnILABLE BY INDEPEB1HT DOCTOR OF OPTOMETRY Outside Prescriptions welc ie po ,mB g us your valid Rx & Save $ Open Monday Saturday: 9-6 Clc located in Sebring (Acro 0f From Wal-Mart dvi sed Sunday 'A Squarely ) " ON-SITE OPTICAL LABORATORY .4' 4.p... 38 -1 I I IL ) -Al 0--o , f s tj . Sunday, March 2, 2008 www. newssun.com Section B ar useKLIN? 1 r n Pause and Consider Jan Merop A new day As shared already, my husband, Ken, retired Feb. 29. On March 1, we awakened to a new day - a new season in life. Still, we have only 24 hours in which to accom- plish that which the Lord gives us to do. But, as we have looked back and looked ahead, we have been trying to prepare ourselves for the changes this new day is bringing. Certain routines have become ... well, routine. And new ones will even- tually take the place of old ones. We don't want to over plan ourselves; but, by the same token, we long to use our time wisely. Retirement will give us the freedom from needing to be in a certain place at a certain time for a deter- mined number of hours. Yet, if we aren't care- ful, that freedom could get out of hand and rob us of effectiveness. Our typical routines had included early rising for exercise and devo- tions' for Ken followed by me arising a little later for my quiet time. When he finished devo- tions, he got ready for work while I completed my quiet time and then headed for the kitchen to prepare his lunch. Breakfast together fol- lowed after which I got ready to take him to work. Then I walked or exercised at home. That routine will change and fit differently into our day; but not the elements of it that help keep body, mind and spir- it healthy. The temptation will be to sleep in because we can! And, some of that may even be therapeutic. But, we must find the bal- ance. As far as I know, the word 'retirement' isn't in the Bible. Rather we see productive people till the end of their lives. One of my favorites is Caleb in the Old Testament. He was one of the men who spied out the land of Canaan that God had promised to give to the children of Israel. But, only he and Joshua believed God. The others turned back in fear. Yet, because of his faithfulness, God prom- ised Caleb that he would enter the land. In Joshua 14: 11 & 13, NKJV, I like Caleb's words, "As yet I am as strong this day as on the day that Moses sent me; just as my strength was then, so now is my strength ... and Joshua blessed him and gave Hebron to Caleb .. as an inheritance." He had been 40 when he spied out the land; when he received his inheritance he was 85. And, so, as we "retread" and allow God to direct our steps for the future, we pray that with Caleb we also will be able to maintain our strength for his glory. Selah Preserve Your t ,Valuable D cuments I 4. 1% ISAmv 0 to d -Ia *w 0% 0- 0wi T "Copyrighted Material Syndicated Content Available from Commercial News Providers'1 P'pwmow~ ADWW j~ P"TnnmO a ON- L- r (, Sunday, March 2, 2008 Section B 2B Sunday, March 2, 2008 7P-LEASE CALL THEATRE OR VISIT US ONLINE FOR MOVIES AND SHOWTIM ESS PRE- ...W~1 .*-~ - - o - -- S - -e -e -ANN a - 4b- 0 o q S -D - - low .--Now NOW S - a ~' a - a a S a- U - - -e a' "Copyrighted Material - .. _. 9Syndicated Content . Available from Commercial News Providers" - 2 -U i ._ - -m e s -a - * .No- - U U' - m - a41b ft- W. as b.- 4w - *-lo 0 g- -q U4 405 -.w ..do *- .lb 0 ow 0 - 0 .00 U mom doom 40 - 0 - 41.... -p--a d- a Um4l- - * -w=ob 0 -*U 0 40 4wl -o n 40*AM *s 4w a a 40q* m4 *00o 400S ao a 40 -Nm 4wf -w 421m. a wj m 5 q* tw- -p ** * fr e * 9 . f 0 0r* 40 00 UFO U. 4 S , - ** *9 ir 0* . V :0 0 * *=Mmj O do- 41 .... ,.low * * 0 * - U".. .":. * * * **0e * * *0 *. *:**^ *@. so ft o Sj ^ *.!. I^J^ H * :::::I :: : * 5 * - - - * a - * a a * U- --a.- U- - a * * S -U - 0 ll Ike Lee, M.D. Internal Medicine Former Director of Geriatrics at Mt. * Sinai Hospital :* Graduate of Northwestern Medical * Board Certified Internal Medic * Board Certi Geriatric M I in ine School of Geriatric Fellowship SGraduate of University of Illinois Medical School * g ii ified in Accepting medicine New Patients W 402-0909. 3101 Medical Way, Sebring 13,0. * The News-Sun - .*~ ~ S - S - - - - - S --lo Sdb JJ am" PERSEPOLIS PG13.DLP 1:30 '4:00 7:15 (9:30 FRI/SAT/SUN) VANTAGE POINT PG13.DLP 1:00 *4:00 7:00 (9:40 FRI/SAT/SUN) CHARLIE BARTLETT R-DLP 1:15 *4:00 7:00 (9:20 FRIISATISUN) JUMPER PG13.DLP 1:00 3:15 *5:20 7:30 (9:45 FRI/SAT/SUN) DEFINITELY MAYBE PG13-DLP 1:00 *4:00 7:00 (9:40 FRI/SAT/SUN) SPIDERWICK CHRONICLES PG.DLP 1:15 '4:007:15 (9:30 FRIISAT/SUN) ME YOU & US FOREVER PFGDLP 7:30 (10:00 FRI/SAT/SUN) HANNAH MONTANA 3D BEST OF BOTH WORLDS CONCERT G-DLP 1:30 3:30 NO DISC./PASSES BUCKET LIST PG13-DLP 1:15 3:30 7:00 (9:20 FRI/SAT/SUN) "The Vitamin Store"_ I .N- *./- 130 N. Ridgewood Dr. Nlrue tre m aro e Sebring 385-5884 S"Freedom from Prescription Drugs" i P m 411alp 41D * 4 SEMI PRO PG 13 (Will Farrell, Woody Harrelson) 2:15 4:15 7:15 9:15 THE OTHER BOLEYN GIRL PG 13 (Larry the Cable Guy) 7:15 9:15 THERE WILL BE BLOOD (Daniel Day-Lewis) R 2:00 STEP UP 2: THE STREETS PG 13 (Robert Hoffman, Briana Evigan) 2:15 4:15 7:15 9:15 FOOIS GOLD R (Kate Hudson, Matthew McConaughey) 2:00 4:30 7:00 9:30 WELCOME HOME ROSCOE JENKINS PG-13 (Martin LawerC nce) 7:00 9:30 NO COUNTRY FOR OLD MEN (Tommy Lee Jones) R 2:00 4:30 anaft %boom* 0 4wom The News-Sun Sunday, March 2, 2008 3B Arts & Leisure Nicewicz teaching Studio Home Dimensions class Special to the News-Sun. SEBRING Judy Nicewicz has just returned from a certifica- tion with Donna Dewberry and will now teach Studio Home Dimensions Sculpey Clay. This product can be made into designs for home decor and baked in your kitchen oven. You Rock-a-Billy piano show on Tanglewood stage today Special to the News-Sun SEBRING Jason D. Williams and his Rock-a- Billy piano will be on stage today at Tanglewood. Enthusiastic, reckless, stormy, rock 'n roll in its nat- ural state is how The Kansas City Star pronounced Jason D as "The past and future of rock and roll." He was also said to be the "World's. Greatest Piano Player" by the Beacon- Journal. He has the same musical innovation and on-the-edge attitude as Jerry Lee and Elvis. His style is difficult to describe. From classical to rockabil- ly to country to jazz and then on the rock and roll, and all in the span of five minutes he goes non-stop. Williams is on the road 200 days a year playing to crowds in every setting from clubs to casinos to amphithe- aters, plus many galas -and corporate events., Some of the more notable venues he's played include the White House, Radio City Music Hall, the Georgia Dome' the Super Dome, and countless fairs and festivals. TV loves Williams with his energy and style and he's made numerous appearances on MTV, Live with Regis and Kathie Lee, VH1, Crook and Chase, and Entertainment Tonight to name a few. Doors open at 6:15 p.m.; the show begins at 7 p.m. Tickets are available at the door for $10. Seating is cabaret and theatre styles. Full snack bar is open at 6:15. Tanglewood 'is a half mile north of Wal-Mart on US 27. For information call 402- 0763 or 386-5442. SFCC hosting LP Art League exhibit Special to the News-Sun AVON PARK South Florida Community College is displaying a new art exhib- it in the SFCC Auditorium Lobby Gallery, Highlands Campus. The exhibit features more than 60 two-and three- dimensional art pieces by Lake Placid Art League mem- bers and includes drawings, paintings, tapestries, and sculptures. The exhibit will be on display through April 5. The SFCC Auditorium Lobby Gallery is open to the public before and after SFCC Artist Series performances or by appointment only. To make an appointment to visit the gallery or for more infor- mation, contact the SFCC Art Department at 784-7195. Stained glass class offered in Lake Placid Special to the News-Sun LAKE PLACID Earl Miller at the Caladium Arts and Crafts Cooperative is having a four-week Stained Glass Class, starting March 1. It is a four Saturdays class, March 1-22. The cost for the four weeks is $100. All tstu- dents need to bring is a 'glass cutter. If interested, call the Caladium Arts and Crafts Cooperative at 699-5940. do not need a kiln to create the design. New larger designs can also be accomplished. Clay can be used to make trash to treasure, put on glassware, design large frames, paint and add the clay for dimension. Call Judy Nicewicz at 273- 1339 or 386-0123. Check Out the ExtraS Savin ss Florida Strawberries ... 500 Peak of Season Flavor and Freshness, High in Vitamin C and Folate, 16-oz pkg. SURPRISINGLY LOW PRICE (32-oz pkg. ... 3.29) Quaker Oatmeal To Go Bars ................W F iC Or Baked Bars or Bites, 7.8 to 12.6:oz or Breakfast Cookies or Muffin Bars, 6-ct., 7.83 or'10.1-oz box, Assorted Varieties Quantity rights reserved. SAVE UP TO 3,29 Keebler Chips re Deluxe Cookies ..... FreeC Or Sandies Shortbread, Assorted Varieties, 9.5 to 18-oz pkg. Quantity rights reserved. SAVE UP TO 3.SS Courtesy photo Judy Nicewicz recently was certified with Donna Dewberry to teach Studio Home Divisions Sculpey Clay. With Nicewicz (second from left) are Amy Koranek, Polyform Co.; Dewberry, and Iris Weiss, Polyform Co. 0 C. C'- .~kQ vC~ U 0 0 0 lb Boneless New York Strip Steak Publix Premium Certified Beef, USDA Choice, Beef Loin SAVE UP TO 4,80 LB Ocean SprayF Juice Cocktail........ree Or Juice, Assorted Varieties, 64-oz bot. (Excluding 100% Cranberry Juices.) Quantity rights reserved: SAVE UP TO 3.47 Nestle ' Fun Size Bars ..........ree Butterfinger, Baby Ruth, or Crunch, 11.5 or 12.5-oz bag Quantity rights reserved. SAVE UP TO 2.49 Pasta Roni or Rice A Roni.. ..........ree Assorted Varieties, 3.8 to 7.2-oz box (Excluding Family Size.) Quantity rights reserved. SAVE UP TO 1.49 Pub ixNG IS A PLEASURE WHERE SHOPPING IS A PLEASURE Prices Effective Thursday, February 28 through Wednesday, March 5, 2008. Only in the Following Counties: Lee, Pasco, Highlands, Hillsborough, Manatee, Pinellas, Sarasota and Charlotte. Prices not effective at Publix Sabor. Quantity Rights Reserved. U .1 ia,. The News-Sun 4B Sunday., March 2, 2008 What kind of tree is right for me?- break for your home? Do you want to .enjoy tree-ripened fruit? Are you will- ing giows to 100 feet tall? Plant only low-growing trees under power lines to prevent future hazards News From The Watershed Corine Burgess and bad pruning jobs. Look at the soil conditions. If you have a wet.area, trees that do not mind getting their roots wet, such as willows, are a good choice. Look at the trees in your neighbor- hood, too. Planting too many of the same tree species may lead to trouble. Many people still remember the devas- tation back- yard. For more information on tree planting and other Backyard Conservation prac- tices, visit the Natural Resources Conservation Service online at. Or call 1-888- LANDCARE (toll free) for a free color- ful Backyard Conservation booklet and tip sheets. Corine Burgess is a Natural Resource Conservation Service specialist with the Highlands County Soil and Water Conservation District. Details on the dis- trict can be seen at. org or contact Corine at 402-6545. . I. S- -...: Courtesy photo There are lots of benefits to planting a tree. Just make sure the tree you plant is what you want and what will work for the area. it is going to be situated in. N. Oust Loau.s 1418, 'unday, March 2, 2008 5B cbf- d'. c - qp 140 4D tq ON -~ a "Copyrighted Material Syndicated Content Available from Commercial News ft-dlnesdays. Eye arfd Supday is refreshments and fellowship at 9 a.m., Sunday school at 9:30 a.m. and worship service at 10:30 a.m. The Way ii' Phona@fnni.net; Web site,. SEVENTH-DAY ADVENTIST * Avon Park Seventh-day Adventist Church, 1410 West Avon Blvd., Avon Park. Phone: 453- 6641 or e-mail: wmc@strato.net. Saturday, early morning worship serviceaj. Cod Te e n pn- s nD - ~- ~ m Call the News-Sun Sebrig 5-6155 -Avo Park 451-1009 Lake Placid 465-04Z6 No* o 6B Sunday, March 2, 2008 Sebring songsters to sing in Branson Special to the News-Sun SEBRING If standing ovations are any indication, the popularity of a new name coming to a stage in Branson has already been proven. Carol Kline has established herself across the country as a bright star on the entertain- ment horizon, and she will make her Branson debut Sunday, Sept. 7, at the God and Country Theatre, 1840 W. Hwy. 76 in Branson, Mo. Her two-hour "Cabaret /Country/ Gospel Special" will start at 4 p.m. Originally from Pennsylvania, Carol and her husband, George, began singing with a gospel group out of Harrisburg, Pa., in the early 1980s. Although strong- ly rooted in gospel music, Carol continued to expand .their music venue through the years to include all-time country greats and popular favorites, and even launched. a very well received Tribute to Patsy Cline Show in 1999. An all-new Fabulous Fifties Show has now been added, bringing the best of bop to the stage along with Carol's own enthusiasm, energy and humor! The Klines make their home in Sebring now, but travel in their motor home at least four to five months across the country in the sum- mer performing at churches, RV resorts, country clubs, civic organizations and spe- cial events, etc. During the winter, they are kept busy doing shows and concerts all over Florida. :, They have performed at some of the most beautiful retirement resorts and coun- try clubs in Florida, including The Villages (near Ocala), The Cbolonnades On-Top- Of-the-World in Ocala, Traveler's Rest RV Resort in Dade City, the lovely Landmark in North Naples, Tanglewood of Sebring, the Port Charlotte Cultural Center, and many more. With five CDs to her cred- it, Kline has opened for such well known performers as The Flamingos ("I Only Have Eyes For You") and the Hager Twins (of "Hee Haw" fame). They have performed on two Carnival cruise ships in addition to performing in Delaware, Maryland, Virginia, Iowa, Indiana, New York and Ohio, as well as throughout Pennsylvania and Florida. Adding a show in Branson, Missouri to that impressive list is a "a dream come true" according to Kline. Kline's two-hour produc- tion will include songs from the '40s, '50s, and '60s, a salute to country singer, Eddy Arnold, a powerful patriotic tribute, and a moving gospel segment. Tickets will be available soon at the God and Country Theatre, and the show is set for Sunday, Sept. 7, at 4 p.m. Call the theatre (417) 334- 6806 for more information. For Florida-goers, a bus trip from Sebring to Branson is already in the planning. Fo or information, call 382- 9371 or visit kline.net. The News-Sun B Courtesy photo TAG mem- bers are Louise Weis (back from left), Nancy Adams, Cecelia Smith, Betty McCarthy and Ruth Poindexter; as well as Kathy Morgan (front left) and Betty Heims.. The Artists' Group grand opening today Special to the News-Sun AVON PARK South Florida Community College's Community Education Department welcomes a new program called The Artists' Group at SFCC (TAG). Seven artists have created a working studio and formal gallery in The Hotel Jacaranda on Main Street. They are offering Community Education classes in watercolor, oils, acrylics, jewelry beading, china painting, and mixed media. The artists are Kathleen Morgan and Cecelia Smith from Lake Placid; Betty Heims, Ruth Poindexter, and Nancy Adams from Sebring; Betty McCarthy from Avon Park; and Louise Weis from Wauchula. "While we are in the studio, we have the opportunity to paint and be creative," Morgan said. "We have individual cre- ativity with group support. Our gallery has a diversity of individual artistic flair. We exhibit original paintings in water- color, oils, and acrylics." A grand opening reception to meet the artists and visit the gallery will be held from 2-5 p.m. today at .The Hotel Jacaranda, 5 E. Main St., Avon Park. The public is invited to attend. Hot Spot Items on Sale Until March 4, 2008 wwwgweetbaSuperniarhet.c~m Sweetbay Value Pack Split Chicken Breast Grade A, 3-4 Lb. package SAVE $1.51perlb. Boneless Fresh Atlantic Salmon Filet Farm Raised 99 Ib. SAVE $2.00 per tb. SaOt s onthe Sid Loc ed- otw Prices Great SAVINGS S Coke SFridge Pack 12-Pack, 12 Oz. Cans .8 Sprit, Diet or Regular ^^ 3 /$9 I Hannaford Bake & Rise Pizza 28.93-34.9 Oz. Box Select Varieties S2/$5 |j.ai " S Campbell's SpaghettlOs 4, 14.75-15 Oz, Can Spaghetti cri 2/$i SBlue Blue Bonnet Bonnet Margarine 16 Oz. Quarters 14~ ~ v P-z o2/1 Boneless New York Strip Steak Sweetbay Angus USDA Choice 599..rl S, lb. -- SAVE $5.00 per t. . Great BRANDS. Everyday! Hannaford Paper Towels Choose A Size 75.63-76.65 sq, ft. $Ingle Roll, 2 Ply 9 : 4/$5 Frito Lay Cheetos 8-10 Oz. Bag All Varieties 53/$ Great Savings Everyday! Margaritaville - Gold Tequila 750 mLSilver, Lime, Mango 12" Jack Daniel's Whiskey 750 mL 19" 2 Skol Vodka 1.75 Liter lil11" fI ' Over 400$ $ anac prescriptions for waeo//o competPos, dP' i ?ieatn / slaer rdgioft "A^heajthy savers car offer. , . Courtesy photo Carol and George Cline will debut in Branson, Mo., on Sept. 7. Quality and Variety are two great reasons to come see what all the fuss is about. From the abundance of our fresh picked produce, top quality meats and diverse ethnic offerings to the well stocked grocer aisles, you'll never have to shop anywhere else again \' I // lbiida L1~J Strawberries 1 Lb. package, Sweet SAVE $1.6039 SAVE $1.60 ea. The News-Sun Courtesy photo Linda Kegley's art work will be featured March 6-April 10 in the South Florida Community College Auditorium Lobby Gallery. SFCC to host Kegley and Friends exhibit Special to the News-Sun AVON PARK South Florida Community Collegefs Art Department will host the Linda Kegley and Friends from the L.K. Gallery of Sebring art exhibit March 6- April 10, in the SFCC Auditorium Lobby Gallery, Highlands Campus. Featured artist Linda Kegley owns and operates the LK Artworks Gallery in downtown Sebring. She is the creator of "Don't.Drink Like a Fish," a series of 86 paint- ings located throughout the country, as well as "Flip Flops After Andy Warhol," which was used as the promotion poster for the 41st annual Highlands Art League Fine Courtesy art 'Tropical Walkway' is on of Linda Kegley's pieces that will be on exhibit at South Florida Community College through March. Arts Festival. She has won many awards including the Redfish Sculpture Contest and Plein Air in Punta Gorda. Kegley is also the founder and coordinator of the monthly Gallery Walks in downtown Sebring. The exhibit will also show- case the works of local artists Barbara Albin, Aletha Buler, Dorene Butler, Mollie Doctrow, Jan Fetters, Cathy Cranford Futral, Don Kah, Gabriele Owen, Judy Quest, Shelley Schoenherr, and Michael Vires. The SFCC Auditorium Lobby Gallery is open to the public before and after SFCC Artist Series performances or by appointment only. To make an appointment to visit the gallery or for more informa- tion, contact the SFCC Art Department at 784-7195. Sunday, March 2, 2008 7B Delayed gratification and the piggy bank A conversation with my son, Chris, during a college break some years ago is a blessing I treasure. Many years before, I'd been a single mom for about seven years. Finances were tight. There were things I wished I could get for him, but instead we'd have looking days at the toy store. Some substitute activity that didn't require money often took the place of something else we may have done had finances permitted. However, when that hoped for toy was under the Christmas tree instead of acquired in the summer when first desired, the excite- ment was no less genuine. When we ice skat- ed on a frozen pond in the winter instead of paying at an indoor rink, our rosy cheeks and cold breath were rewarded with hot chocolate at home. This particular day during college break, we were reminiscing. I said something about the financial struggle in those years and that we h4d to do without some things. He looked up at me amazed. "Like what?" he questioned. I outlined a few things and said, "But, then, you learned delayed gratification and that was good." He replied that he wouldn't have wanted me to have done anything differently. Our time together, the memories shared and the love expressed were far more important to him than any "thing" he may have missed or had to wait for. And his own money manage- ment skills attest to his teachable spirit dur- ing those years. It is so important that we teach our chil- dren the value of saving and managing money well. It may start with that long forgotten piggy bank which has been replaced by magic plastic cards. Training them from their youth will pre- vent a sense of entitlement from creeping in. Then their wants won't become a contest between parents' will power to say no and their whining insistence for immediate grati- ilAK L fiction. Delayed gratification builds character. In life, we will always have situations that require us to wait. This principle will help children grow into patient adults who aren't impulsive spenders weighed down with debt and regret. Our children are growing up in a world where debt appears to be normal. But it is not normal or healthy. A home mortgage may be necessary for a time, but even that should be within one's means and paid down as quickly as possible. Teach a child that there are three categories for the money they receive giving, saving and spending. This develops healthy habits that will bless others, secure their financial future and allow them a measure to spend. In fact, one of the most important giving areas is to teach them about tithing that is putting 10 percent aside to give to God's work. They will know his blessings that will be multiplied in many ways not always materially yet always good from his hand. The Bible teaches that we are to be good managers of that which God entrusts to us. As we see in I Corinthians 4: 2, NKJV, "Moreover it is required in stewards that one be found faithful." Let's instill this virtue in our children so they will grow to be responsible adults who are part of the solution instead of being part of the problem. Parenting by Heart is a monthly column written by Jan Merop of Sebring. Still openings in HAL stained glass class Donna Marxer: Endangered Everglades exhibit opening this week at MOFAC Special to the News-Sun AVON PARK The South Florida Community College Museum of Florida Art and Culture (MOFAC) is ptesent- ing Donna Marxer: Endangered Everglades. The exhibit will feature works addressing environmental problems facing the Florida Everglades. The exhibit will be on view March 5 April 11. Marxer is a native Floridian who has been paint- ing for 53 years. She is an "environ artist," painting nature and landscapes and has recently focused on the envi- ronmental problems in the Florida Everglades. She was the creator, as well as the first resident, of the Artist in Residence Program at Everglades National Park (AIRIE). Her paintings vary from realism to abstract. Marxer's work can be found in the permanent collections of the Department of Interior, the Museum of Fine Arts in St. Petersburg, and the Samuel P. Harn Museum in Gainesville. Marxer will present her slide show lecture "Artists and the Landscape" at 1 p.m. . &EPA Courtesy photo Donna Marxer, a native Floridian who has been painting for 53 years will have her 'Endangered Everglades' exhibit at South Florida Community College Museum of Florida Art and Culture from March 5-April 11. Tuesday, March 18, at SFCC MOFAC. She will give a brief description of landscape painting in America as well as an overview of what contem- porary landscape and envi- ronmental artists do today. A meet and greet will also be at 6:30 p.m. Tuesday, March 18. MOFAC is adjacent to the SFCC Auditorium, Highlands Campus, Avon Park. It is open to the public October through May from 12:30-4:30 p.m. Wednesday, Thursday, and Friday, and by appoint- ment for group tours. SFCC Artist and Matinee series patrons may visit the museum one hour prior to every per- formance. For more information about the museum and its exhibits and workshops or to request a museum tour, contact Mollie Doctrow, curator, MOFAC, at ext. 7240 at 453-6661,.465- 5300, 773-2252, or 494-7500. QU ZE S'aturing the -Collection B Bulb B"n Inc. US 27 North SEBRING Village Fountain Plaza 471-BULB 283 TS'i^ . Special to the News-Sun SEBRING The stained glass class that is being offered at the Highlands Art League still has a few open- ings for the first session. To start, the class runs six weeks and all supplies are provided.. The class starts on Monday and will run through April 27, from 9 a.m. to noon. This is a fun class that needs no previ- ous art experience. The unique process of coupling glass pieces together with copper foil and lead to form an intricate art piece or a sim- ple design. Beginners and advanced students are welcome. An art background would be helpful but not necessary, just .bring your enthusiasm and wear closed shoes. Classes are upstairs at the Highlands Art League Educational building, across from the Highlands Little Theatre and just behind the library in downtown Sebring. The fee for the class is $90; however, if you are a member of the Art League, it is only $75. There is also a fee for supplies of $28 to be paid at the start of the class to the instructor. To enroll', call the Art League at 385-5312 or the instructor Betty Francisco at 471-1452. The class is very limited due 'to individual attention given to each stu- dent, so it is important to call and reserve your place now. Attend the Church of Your Choice! St.' Ltak-5:5-6, "And Simon answering said unto him, .- Master, we have toiled all the night. and have taken nothing: nevertheless at thy word I will let down the net. And when they had this done, they inclosed a great multitude offishes: and their net brake." In the above scriptures, Peter chose to obey Jesus and as a result he experienced a stunning display of divine power. In our obedience to God and His word it may sometime require doing some things that appear to be unreasonable. Our obedience to God should never be based on whether something seeins fitting to our way of thinking. That is -not to say God always bypasses common n.e, but oftentimes what He reqiiiresIofL, may not appear reasonable or nW'_.. our preconceived ideas. Disobedien,_.l cause us to miss out on what Godh'f," in stored for us. Nothing pleases a more than to have their children i\'ali. obedience. God is even more please,. i His children are walking in obedie" Blessed!. Patricia Valentine TH .- 0LE CALL 385-615',xt. 502 W 'Smun CALL LE5 CALL 385- 1 xt. 502 Chiropractic Wellness Center Richard S. Taylor, D.C. 525 U.S. 27 South Sebring 382-3700 O WELLS DBBOE CHRYSLER 'Established 1931 1600 US 27 South Avon Park Stephenspon- elon Funeral ome 4001 Se"ng Parkway Chris T. Nelson Sebring, 385-0125 Craig M. Nelson 111 E Circle St Darrin S. MacNell Avon Park, 453-3101 R.L Polk W.W. LUMBER CO. "We're More Than Just Lumber" COMPLETE Building Supplies SPIEGEL CHIROPRACTIC CLINIC 121 N. Franklin St., Sebring 385-7348 TH S % 1 LE CALL 385-61 5 xt. 502 Wayne Whitmire Air Conditioning and Electric, Inc. Residential Commercial Mobile Homes "Small Enough to Know You... Large Enough to Serve You" 5E00ji .50 r ISouth. E EM = Lake Avenue LABOR F FIWDERS3 WEoMTED P STMFG 3735 KENILWORTH BI T (863)47.1-2274 P.O. Box 2003 FAX (863) 471-1653 SEBRING, FL 33871-2003 PAGER (863) 890-1090 New S'm CALL 385-15, xt. 02 NewC $S0 TH LL LE CALL 385- 1 -t. 502 Got it, but don't want it anymore? Sell it! News-Sun classified ads get results! Call 385-6155 Please sunnort the above businesses. They have made this page possible. The News-Sun 8B. gui gIl l gill' I. I Il $tlll i1U111 Estate-size lakefront & lake access homesites * Private gated community Great Sebring location Beautiful 10 acre common area Central water and sewer Private paved roads Prestigious new homes now under construction QUIET, SECLUDED COUNTRY SETTING ...yet close to everything! .i tIll Ii U ~'J lu; I j I I ' LEGENDARY Quarterback. LEGENDARY Properties. Call Now! 1-866-352-2249 ext. 2076 r /3 "Poll 101.11 oil I . .. ..-, * 11111111111 Gamer's Corner Tips, hints & latest video game titles Page 4C 'F-.^ ^J~- S Sunday, March 2, 2008 Section C High School Baseball Topa's clutch hit wins one for Devils News-Sun photo by ED BALDRIDGE Kyle Jackson unwinds to fire one home Friday night. Jackson pitched effective relief, allowing for a late rally in the Devils 6-5 win .over visiting Palmetto. By ED BALDRIDGE News-Sun correspondent AVON PARK It was a Hollywood ending to a regu- lar season district game between the Avon Park Red Devils and the Palmetto Tigers at Head 'Field on Friday night. It was the bottom of the seventh inning, and the Red Devils were down 5-4. The scoreboard showed that Avon Park gave up just three hits in the game, but errors allowed the Tigers to stay out in front of the Devils all night. Dillon Runner's solo homer in the bottom of the fourth tied the game three all, but a series of errors by the Devils forced them into playing catch-up baseball with the Tigers picking up runs in the top of the fifth and the sev- enth. But the Red Devil bats were not put away when they took their turn Avon Park in the seventh. A walk put Avon Park's .6 Terrell Conner Palmetto on base, and a sac bunt by 5 Logan Hunter advanced the runner to sec- ond. Kyle Jackson's stand-up double allowed Conner to score, tying up the game. Next at bat, with the win- ning run on second base, Heath Barnes, whose consis- 'I was hoping to get a chance to bat.' COREY TOPA Avon Park Red Devil tent bat frightened the Tigers, was intentionally walked. Now with runners on first and second, Corey Topa stepped to the plate. "I was hoping to get a chance to bat, I knew I could do my job if given the chance," said Topa with a smile from ear to ear. His clutch hit would drive in the runner and allow the See DEVILS, page 4C High School Softball Lady Streaks leap past Palmetto Lower slam, Helms' dominance make M - for easy win in district match-up By DAN HOEHNE daniel.hoehne@.newssun.com SEBRING On this day of the leap year, the Lady Blue" Streaks stuck with the theme and leapt out to an early lead in Friday's 7-1 win over visit- ing Palmetto in. district action. And it was a power show that both got Seb them started on - offense, as well as car- . ried them through on the mound. Palr After an uneventful top of the first, Sebring's ladies of swat .went right to work with their bats. Kaitlin Ostrander drew a lead-off walk and was promptly brought all the way to third when Melissa Luke -faked a bunt and slapped an infield single. Nikki Helms then walked to load the bases, setting the stage for 'Slammin' Sammie Lower, who promptly launched a grand slam over the left-field fence that took a little over three seconds to ,clear the yard. "I liked her speed," Lower r 1 said later of Tiger hurler Sara Hine's pitching pace. The salami was soon fol- lowed by freshman Amanda Grimaldo pasting a double to the left-center field wall, another deep drive for an RBI double from Priscilla Adams and a run-scoring base-knock from catcher Wendy ing Negrin for a 6-0 lead after one inning of play. Things cooled for etto the Streak bats after that, though that was more due to Palmetto's play than a lack of solid contact. "We were hitting the ball hard all night," head qoach Lee Tolar said. "They were just playing some very good defense." But with the big early lead and Helms on the mound, the outcome was never really in jeopardy. Averaging a strike' out per inning through the first five with an often overpowering fastball and a knee-buckling, bat-flailing change up, Helms See STREAKS, page 3C News-Sun photo by DAN HOEHNE 'Slammin' Sammie Lower was at it again Friday night, blasting this pitch for a first-inning, grand-slam home run. The early scoring outburst gave starting pitcher Nikki Helms more than she needed in Sebring's 7-1 win over Palmetto. Mr. Ed Said Ed Baldridge We're talking' baseball, Americana and spittin' seeds George Orwell, that infamous author of Animal Farm and 1984, pessimistically said that all writers have multiple reasons for doing what they do. Some reasons they keep to themselves, some they share with others, and some even they don't know about. To old George, writers are mostly driven by self- ishness and vanity, and . possibly other dark motives. All I can say.is that this insightful writer never got to write about baseball. Leaving aside the smell of the wood or the way the crack of a bat feels, just about everyone talks about that, I've come up with a few reasons why I love to write about base- ball. First, and foremost in my mind, baseball is one of those tastes of Americana that we share, all of us. When you watch TV, or drive by the local pizza joint, you* can always find someone who is talking about baseball. Go anywhere is this great country, and you can find someone who will talk with you about baseball. Most of the folks can talk about the stats. Stats are technical and make you sound smart. Those who can't quote stats, can always fall back on one of the good 'ol phrases like, "If they just had better hitting." See MR. ED, page 4C Junior Colle Heavy hitting in By ED BALDRIDGE News-Sun correspondent '' 'r.: AVON PARK The 'South Florida Community College Panthers picked up y . two more wins Friday night r 'at Panther Field, this time in downing the Clearwater Christian Collage Cougars A13-5 and 14-1 in a double header. Although the scoreboard showed 13 runs scored by the Panthers in the second contest, an official count .1 after the game revealed it ." was actually 14. Jeff Bloomer pitched six . innings giving up three hits - and one run in the last match-up of the evening J.T. Tomlinson against the Cougars, ing down this 1 hitting as well' Allowing just two walks, Clearwater Chi Bloomer was able to secure six strike outs. before the gam "I was feeling good," said Steve Levine Bloomer: "I started out for two RBI good, my fast ball was on, inning and but I had a little trouble hit- Tomlinson tr ting the right spots. I am fourth drove glad my fielders were there runs. to back me up." Austin G The Cougars were able to Panther's start pounce on one unearned run who also ser in the fourth, but could not pitcher in the to hunt down another score enth, slammed ge Baseball Panther sweep News-Sun photo by ED BALDRIDGE gets a good view of bat meeting ball in lay- bunt Friday. SFCC was doing some heavier in a double-header sweep of visiting ristian College. e ended. was credited in the first a Justin iple in the in two more aines, the ing shortstop ved as relief op of the sev- 1 a three-run homer over the left field fence in the fifth. "Coach said to wait for a good pitch, I let the first one go by, but I just could not resist the fast ball," said Gaines. The Panthers would pick up six totals runs in the fifth and three more in the bot- See SFCC, page 4C Senior League Softball Windy conditions only add to drama in Sebring Seniors play Special to News-Sun ' SEBRING On Thursday, Feb. 28, the Rebels and Highlands Independent Bank of Sebring showed good efforts on both sides in' Sebring Senior League play. Rebels were in the lead 15- 4 at the end of the fourth inning, and then Re the brisk and breezy conditions caused both sides to play sloppily. The Bank held out H and almost pulled in front when they had 1 their biggest inning of the season, an eight-run sev- enth, but the Rebels had too much of a lead for them to surmount. Leading hitters for the Bank were Larry Lane, who went 5-for-5, including two home runs and a double, and Emil Hamel, 4-for-5 with a home run. Rebels' Elwood Black was 4-for-5 with a home run and triple and Stan Turl's 4-for-5 included a home run. Tony Caristo had 5-for-5, Rollie Carlson batted 4-for-4, Don Purdy and Diz Jones each tallied 4-for-5. What's with Discount Aluminum? They had their third ten- inning game of the season, thumping Silent Salesman 13- The Salesman took an 8-4 lead in the third inning, but only man- aged one run the rest of the way. Aluminum tied it in bels 15 IBS IN I; J the seventh inning, then scored four times in the 10th to win 1,3-9. Top hitters were Jim Larnard and Rod Palmer each going 3- for-5, while James Gilbert, Ken Crandal and Larry Glawitter hit 3-for-4. base with no outs, the Discount boys held tough and sent the game into extra innings. Leading hitters for the Salesman were Mike Jurmu, who went 5-for-5, Victor Rodriquez 3-for-4 including a triple, and Fred Moore also banging out a triple. Reflections ran over the Klingons 16-0. Pitcher Dan Webb had total responsibility for the shutout. Brian Pluta was 3 -for-3 Discount 13 Salesman 9 The Salesman had eighteen hits, but left thirteen men on base and their defense left a lot to be desired. In the eighth inning, with the winning run on second with a home run, Joe Hyzny 3-for-4 with a double and Wayne Hill 4-for-4. Royal Palm kept well in control of their meeting with Highlands Independent Bank of Avon Park with a lopsided final score of 24-8. Bob MacCarrick was 4-for- 5 including a triple, a double and three singles for four RBI. See SENIORS, page 3C Cla ed Page # The News-Sun 2C Sunday, March 2, 2008 ON DECK MONDAY: Softball vs. Hardee, 5:30/7:30 p.m. TUESDAY: Baseball at DeSoto, 7 p.m.; JV Baseball vs. DeSoto, 6 p.m.; Softball at Sebring, 5/7 p.m.; BoysTennis vs. DeSoto, SFCC, 4 p.m.; GirlsTennis at DeSoto, 4 p.m.; Boys Weight Lifting-at Sebring, 5 p.m.;Track and Field at Sebring Invite, 4 p.m. THURSDAY: Baseball at Frostproof, 7:30 p.m.; JV Baseball vs. Frostproof, 6 p.m.;Track and Field host Ed Okie Relays, 4:30 p.m. ; MONDAY: JV Baseball at Hardee, 6 p.m. ., ..- TUESDAY: Baseball at Frostproof, 7 p.m.; JV Baseball vs. Ft. Meade, 6 p.m.; Softball at ,, Mulberry, 7 p.m.; BoysTennis at Clewiston, 4 p.m.; GirlsTennis vs. Clewiston, 4 p.m.; --',- Track and Field at LaBelle, 3:30 p.m. THURSDAY: Baseball vs. Moore Haven, 7 p.m.; JV Baseball at Sebring, 6 p.m.; Softball Lake Placid vs. McKeel, 5:30/7p.m.; Track and Field at Ed Okie Relays, Avon Park, 4 p.m. TUESDAY: Baseball vs. Hardee, 7 p.m.; JV. Baseball vs. Hardee, 4 p.m.; Softball vs. Avon Park, 5/7 p.m.; BoysTennis at Booker, 4 p.m.; GirlsTennis vs. Booker, Sun 'N Lake, 4 p.m.;Track and Field hosts Sebring Invite, 4 p.m.; Boys Weight Lifting hosts meet, 5 p.m. THURSDAY: JV Baseball vs. Lake Placid, 6 p.m.; Track and Feld at Ed Okie Relays, Avon Sebring Park, 4 p.m. SUNDAY: Baseball vs. Florida Community College, 1 p.m.; Softball at PblkToumey,TBA TUESDAY: Softball at Lake Sumter Community College, 2 p.m. THURSDAY: S6ftball at Manatee Community College, 5 p.m. FRIDAY: Baseball at Palm Beach Community College, 4 p.m. SATURDAY: Baseball vs. Palm Beach Community College, 2 p.m.; Softball at Santa Fe Community College, 2 p.m. SPORTS BRIEFS Lake Placid Bass Tournament LAKE PLACID The 11th Annual Bass Tournament, which is sponsored by Glades Electric Cooperative, News Sun and Seacoast National Bank, is set for Sunday, March 9th. The tournament will take place on Lake June. Entry fee is $100. Plaques will be awarded to first, sec- ohd and third place winners as well as the Big Bass award. Don't hesitate there is a fifty (50)- boat limit, and we already have entries. Entry forms are included on the Chamber web site at- florida.com. or by calling the Chamber at 465-4331. ROTC Golf Tournament AVON PARK Avon Park High School Air Force Junior ROTC will host a golf tournament on March 29 at Pinecrest Golf Course. If you would like to participate or help sponsor this event plcae compact Colonel Bill Hutchison or Chief Dennis Green at 452-4311, ext. 299 or 300. L.R Miracle League LAKE PLACID The Miracle League of Lake Placid will conduct a baseball clinic Saturday, March 15.. For more information about the Miracle League, visit our website at, contact John Komasa at 441-1586 or Adela Casey at 441-0226. Also, see the website for registration forms for the 2008 fall season. Ip. Ten 10 foreign countries attended the 2007 Camp. College Basketball Scholarships are pos- sible for players selected to the All- American Team. Camp locations include Babson Park, FL, Gainesville, GA, Champaign, IL, Lebanon, TN and Blacksburg, VA. There is also a Summer Camp avail- able for boys and girls, ages 6 to 18 of all skill levels. For a free brochure on these Summer Camps, call (704) 373-0873 anytime or check out the web site at- camp.com.' Florida Hospital, A.R Chamber Golf Tournament AVON PARK Florida Hospital Heartland Division presents the 11th Annual Avon Park Chamber of Commerce Golf Tournament, Saturday, April 5 at Pinecrest on Lotela Golf Club. The two-person scramble format will have registration starting at 7 a.m. and an 8 a.m. shotgun start. Entry fee is $60 per person, which includes golf cart, lunch, tournament prizes and refreshments on the course. A $2,000 Hole-In-One Prize is spon- sored by Cohan Radio Group. Hole Sponsorships are available for $100 to have a professional sign placed on a hole. Please contact the Avon Park Chamber of Commerce at 453-3350 for entry forms or additional information. Avon Park Atlanta at Boston, late Philadelphia at N.Y. Islanders, late Pittsburgh at Ottawa, late New Jersey at Montreal, late Tampa Bay at Carolina, late Toronto at Washington, late Los Angeles at Colorado, late Nashville at Dallas, late San Jose at St. Louis, late Calgary at Phoenix, late Sunday's Games Philadelphia at N.Y. Rangers, 12:30 p.m. Vancouver at Chicago, 3 p.m. 9p.m. LIVE SPORTS ON TV ARENA FOOTBALL MONDAY San Jose at Chicago. ..... . . . . . . ESPN2 EASTERN CONFERENCE Atlantic Division W L P:t GB Boston 45 12 .789 - Toronto 32 25 .561 13 New Jersey 26 32 .44819X Philadelphia 26 33 .441 20 New York 18 40 .310 27% Southeast Division W L Pct GB Orlando 37 23 .617 - Washington 28 30 .483 8 Atlanta 24 32 .429 11 Charlotte 19 39 .328 17 Miami 11 45 .196 24 Central Division W L Pct GB Detroit 42 16 .724 - Cleveland 33 26 .559 9,% Chicago 23 35 .397 19 Indiana 23 36 .39019%2 Milwaukee 22 36 .379 20 WESTERN CONFERENCE Southwest Division W L Pct GB i San Antonio 39 17 .696 - New Orleans 39 18 .684 Y2 / Dallas 39 20 .661 1Y2 Houston 38 20 .655 2 Memphis 14 44 .241 26 Northwest Division W L Pct GB Utah 37 22 .627 - Denver 35 23 .603 1 ' Portland 31 28 .525 6 Seattle 15 43 .259212 Minnesota 12 45 .211 24 Pacific Division W L Pct GB L.A. Lakers 41 18 .695 - Phoenix 39 19 .672 1%Y Golden State 35 22 .614 5 Sacramento 26 32 .44814% L.A. Clippers 19 37 .33920Y Thursday's Games New Jersey 120, Milwaukee 106 San Antonio 97, Dallas 94 L.A. Lakers 106, Miami 88 Friday's Games Indiana 122, Toronto 111 Atlanta 99, New York 93 Boston 108, Charlotte 100 Cleveland 92, Minnesota 84 Washington 97, Chicago 91 New Orleans 110, Utah 98 Houston 116, Memphis 95 Dallas 115, Sacramento 106 Miami 103, Seattle 93 Denver 110, L.A. Clippers 104 Portland 119, L.A. Lakers 111 Golden State 119, Philadelphia 97 Saturday's Games New York at Orlando, late Utah at Memphis, late San Antonio at Milwaukee, late Philadelphia at Phoenix, late Detroit at L.A. Clippers, late Sunday's Games Chicago at Cleveland, 1. NHL EASTERN CONFERENCE Atlantic Division W L OTPtsGF GA New Jersey 37 22 6 80171 154 Pittsburgh 36 22 7 79191 178 N.Y. Rangers 33 24 8 74170160 Philadelphia 32 25 7 71195183 N.Y. Islanders 31 27 7 69163188 Northeast Division W L OTPtsGF GA Montreal 35 21 9 79207183 Ottawa 36 23 6 78211 195 Boston 34 23 6 74174168 Buffalo 31 25 9 71 198188 Toronto 28 28 10 66183206 Southeast Division W L OTPtsGF GA Carolina 33 29 5 71198212 Washington 30 27 8 68 185 197 Florida 28 31 8 64180196 Atlanta 29 31 5 63174 213 Tampa Bay 26 31 7 59182208 WESTERN CONFERENCE Central Division W L OTPtsGF GA D6troit 42 18 6 90205148 Nashville 32 25 8 72 190 189 Columbus 30 27 9 69161 172 Chicago 30 28 6 66183187 St. Louis 28 26 10 66161 178 Northwest Division W L OTPtsGF GA Minnesota 36 24 5 77 177 176 Calgary 33 23 9 75183184 Vancouver 32 22 10 74171 163 Colorado 33 26 6 72178178 Edmonton 30 30 5 65178197 Pacific Division W L OTPtsGF GA Dallas 41 22 5 87206168 Anaheim 37 23 7 81170164 San Jose 35 21 8 78168155 Phoenix 33 27 5 71 175173 LosAngeles 26 35 4 56190217 Two points for a win, one point for overtime loss or shootout loss. Thursday's Games N.Y. Rangers 4, Carolina 2 Boston 5, Pittsburgh 1 Philadelphia 3, Ottawa 1 N.Y. Islanders 5, Atlanta 4, OT Phoenix 2, St. Louis 1 Dallas 7, Chicago 4 Edmonton 5, Los Angeles 4 Friday's Games Washington 4, New Jersey 0 Montreal 6, Buffalo 2 San Jose 3, Detroit 2 Minnesota 3, Florida 2 Tampa Bay 3, Toronto 2, OT Anaheim 3, Calgary 1 Columbus 3, Vancouver 2, OT Saturday's Games Atlanta at Pittsburgh, 3 p.m. Florida at N.Y. Islanders, 4 p.m. Detroit at Buffalo, 6 p.m. Los Angeles at Minnesota, 7 p.m. Columbus at Edmonton, 8 p.m. MLB Preseason AMERICAN LEAGUE W L Pct Detroit 3 0 1.000 Boston 1 0 1.000 Los Angeles 1 0 1.000 Seattle 1 0 1.000 Tampa Bay 1 0 1.000 Chicago 2 1 .667 Baltimore 1 1 .500 Clevelahd 1 1 .500 Kansas City 1 1 .500 Oakland 1 1 .500 Texas 1 1 .500 New York 0 0 .000 Minnesota 0 2 .000 Toronto 0 2 .000 NATIONAL LEAGUE W St. Louis 2 Florida 2 Philadelphia 2 Atlanta 1 Chicago 1 Colorado 1 Houston 1 Los Angeles 1 'Milwaukee 1 Pittsburgh 1 Cincinnati 1 San Francisco 1 Arizona 0 San Diego 0 Washington 0 New York 0 L Pct 0 1.000 1 .667 1 .667 1 .500 1 .500 1 .500 1 .500 1 .500 1 .500 1 .500 2 .333 2 .333 1 .000 1 .000 1 .000 3 .000 NOTE: Split-squad games count in the standings; games against non-major league teams do not. Friday's Games Detroit 3, Toronto 1 Atlanta 10, L.A. Dodgers 3 Houston 4, Cleveland 3 Baltimore 7, Florida (ss) 5 Tampa Bay 7, Cincinnati 6 Florida (ss) 4, Washington 1 Philadelphia 5, Pittsburgh 4 St., Louis 5, N.Y. Mets 4 Oakland 11, Milwaukee 4 L.A. Angels 3, Texas 2 Kansas City 13, San Diego 9 Chicago White Sox 7, Arizona 5 San Francisco (ss) 8, Chicago Cubs 6 Seattle 5, San Francisco (ss) 3 Boston 8, Minnesota 3 Saturday's Games Atlanta vs. Houston, late Boston vs. Minnesota, late St. Louis vs. Florida, late Cleveland vs. Detroit, late Baltimore vs. Washington, late Toronto vs. Tampa Bay, late Pittsburgh vs. Cincinnati, late N.Y. Yankees vs. Philadelphia, late L.A. Dodgers vs. N.Y. Mets, late Seattle vs. San Diego, late Texas vs. Kansas City, late Milwaukee vs. Colorado, late Chicago Cubs vs. L.A. Angels, late Oakland vs. San Francisco, late Chicago White Sox vs. Arizona, late Sunday's Games Cincinnati vs. Toronto at Dunedin, 12:35 p.m. Washington vs. Baltimore at Fort Lauderdale, 1:05 p.m. Florida vs. St. Louis at Jupiter, 1:05 p.m. N.Y. Mets vs. Los Angeles at Vero Beach, 1:05 p.m. Houston vs. Atlanta at Kissimmee, 1:05 p.m. Detroit vs. Cleveland at Winter Haven, 1:05 p.m. Tampa Bay vs. Pittsburgh at Bradenton, 1:05 p.m. Minnesota vs. Boston at Fort Myers, 1:05 p.m. Philadelphia vs. N.Y. Yankees at Tampa, 1:15 p.m. Arizona (ss) Chicago White Sox (ss) at Tucson, 3:05 p.m. Colorado vs. Oakland at Phoenix, 3:05 p.m. L.A. Angels vs. Milwaukee at Phoenix, 3:05 p.m. San Francisco vs. Chicago Cubs at Mesa, 3:05 p.m. San Diego vs. Seattle at Peoria, Ariz., 3:05 p.m. Kansas City vs. Texas at Surprise, Ariz., 3:05 p.m. Mexican National All-Stars vs. Colorado at Tucson, 3:05 p.m. Chicago White Sox (ss) vs. Arizona (ss) at Hermosillo, Mexico, 3:05 p.m. Transactions BASEBALL American League TEXAS RANGERS-Agreed to terms, with Nolan Ryan, president, on a four- year contract and Jon Daniels, general manager, on a two-year contract exten- sion. BASKETBALL National Basketball Association NBA-Suspended Indiana F Danny Granger for one game for striking Chicago's Andres Nocioni in the face during a Feb. 27 game. ATLANTA HAWKS-Signed G Jeremy Richardson to a second 10-day con- tract. CHARLOTTE BOBCATS-Waived G Jeff Mclnnis. CHICAGO BULLS-Assigned F Demetris Nichols to Iowa (NBADL). MINNESOTA TIMBERWOLVES-Waived C Theo Ratliff. PHILADELPHIA 76ERS-Waived G Gordan Giricek. SEATTLE SUPERSONICS-Waived F Ira Newble. Signed G Mike Wilks to a 10- day contract. FOOTBALL National Football League ATLANTA FALCONS-Re-signed QB Chris Redman. BUFFALO BILLS-Agreed to terms with LB Kawika Mitchell. Terminated the contract of DT Larry Tripplett. CAROLINA PANTHERS-Traded DT Kris Jenkins to the New York Jets for third- and fifth-round picks in the 2008 draft. / , MIAMI DOLPHINS-Acquired DT Jason Ferguson from allas for undisclosed draft choices. Signed TE Sean Ryan. Signed WR Ernest Wilford to a four- year contract and QB Josh McCown to a two-year contract. AUTO RACING SUNDAY 3:30 p.m. NASCAR Sprint, UAW-Dodge 400 .............. FOX BOWLING SUNDAY 12:30 p.m. PBA Don Johnson Buckeye State Classic ....... ESPN COLLEGE BASKETBALL SUNDAY Noon Kentucky at Tennessee . ......... ........ . CBS 2 p.m. Indiana at Michigan State ................. . CBS 4 p.m. Villanova at Louisville . . .................. CBS MONDAY 7 p.m. Pittsburgh at West Virginia ............... . ESPN 9 p.m. Texas Tech at Kansas . . .................. ESPN 11:30 p.m. Santa Clara at Gonzaga ................ . . ESPN2 TUESDAY 7 p.m. Purdue at Ohio State . . .................. ESPN 7 p.m. Miami-Ohio at Kent State................. ESPN2 9 p.m.. Arkansas at Mississippi ....................... ESPN GOLF SUNDAY 3 p.m. PGA Honda Classic, Final Round............. GOLF NBA SUNDAY 1 p.m. Chicago at Cleveland............. ............ABC 3:30 p.m. Dallas at L.A. Lakers .........................ABC 8 p.m. Denver at Houston. : ........................ ESPN NHL SUNDAY 12:30 p.m. Philadelphia at N.Y. Rangers . .............. NBC TUESDAY 7:30 p.m. Pittsburgh at Tampa Bay ..................... SUN SOCCER TUESDAY 2:30 p.m. UEFA Champions League Teams TBA ......... ESPN2 WOMEN'S COLLEGE BASKETBALL SUNDAY 1 p.m. Maryland at North Carolina State ............... SUN 7 p.m. Tennessee at Georgia ........ ......... . . . . ESPN2 MONDAY 7 p.m. Rutgers at Connecticut .... ........... . . .ESPN2 A times are subject to change STATS & STANDINGS NBA SFCC The News-Sun SENIORS Continued from 1C Doug Hammond hit 5-for-5 with a triple and 4 singles. Going 4-for-5 for the Palms were Don Thomas, Bob Weiss and Mo Pier. The Bankers highest hit- ters, going 3-for-5, were Pierre Boissonneault, Carl Puffenberger, Stu Hayner and Shaun Kilduff. A moderate wind was play- ing its own game Tuesday, Feb. 26 at the Complex, seemingly to keep scores within bounds. From all eight teams, there were only four home runs, two triples and two doubles recorded in Sebring Senior League play. Reflections The closest 16 scoring game was between Royal Palm Klingons and Reflect- S ions, a tight ( 0 game begin- ning in the first inning with a 2-1 count. They tied 13-13 in the sixth inning and Palm squeezed out one more run to wrap up the win. Palms' Bobby Weiss hit 3- for-3 including a triple, Joe Healey had 4-for-4 including a double, and Charley Quinn was 2-for-3 with a double. Reflections' Bill Yeager went 4-for-5. Joe Hyzny and Cal Bready each had three hits in their three at-bats. Another close game was between Discount Aluminum and Highlands Independent Bank Avon Park with an 18- 14 Aluminum win. Aluminum banged out five runs in the first inning. The Teams were tied 13-13 at the end of six innings, then Aluminum scored five runs in the seventh.- The Bank could then pro- duced only one run for a rally that came up short. Aluminum's Jim Hensley and Rod Palmer each rapped a home run. Hitting 4-for-4 S were Rudy Pribble and James '" Gilbert. Jim Larnard and Bill Todd had 3-for-4. The Bank's Pierre Boissonneault was also a home run hitter. Charley Williams .went 4-for-5 and Shaun Kilduff was 3-for-4. Klingons and Highlands Independent Bank Sebring battled the wind in their infield plays. Royal Palm That kept 24 their score close until the HIBAP bottom of the seventh when S Klingons got the upperhand by scoring four runs. The Bank only retaliated with two runs, falling behind with a 9-2 finale. Klingons main hitter was Larry Ambuel going 4-for-4. The Bank's Jerry Kapalin delivered some excellent pitches and Paul BuBrule and Bob Warren each hit 2-for-3. The Rebels took a backseat to Silent Salesman. The Salesman jumped to an 8-0 lead in the first and second innings and cruised to a 16-3 victory. Good defense was dis- played by both teams. The defensive highlight for the Salesman was a leaping "ice cream cone" catch by Jerry Johnston. With bases loaded for the Rebels, the "catch" came off the bat of Moose Morrissette who momentarily thought he had another one of his well- known grand slams only to have to walk back to the bench empty handed. Top batters for the Salesman were Jerry Johnston 4-for-4, Marvin Knutilla 3-for-4 and Bob Flack 3-for-3. An unusual statistic for the Salesman was that the last three men in the batting order, Kenneth Filppula, Bob ,Flack and Leo Lypps, were responsible for six ,of the scored runs. Thanks to all of the devot- ed supporters who braved the very un-Florida-like weather conditions. Sunday, March 2, 2008 3C High School Tennis Lady Streaks serving up aces By DAN HOEHNE daniel.hoehne@ newssun .com The Sebring girls tennis team rolled to another win Thursday, moving its' record to 5-0 with a 6-1 win at Lake Placid. It was the Lady Dragons,- however, breathing the first fire at number one singles when Sydney Stewart outlast- ed Mary Midence 6-2, 7-6 (7- 2). But it was a clean sweep for the Streaks from that point on News-Sun photo by DAN HOtiHNE Nikki Helms used a combination of raw power and off-speed finesse to stymie Palmetto Friday, giving up just four hits while striking out eight. STREAKS Continued from 1C had a little hiccup in the sixth. Tiger second-sacker Karee Dozier lead off with a double to center and eventually came in on a ground out. By then, however, Sebring had picked up another run when Grimaldo's line-drive double turned into a full-cir- cuit tour of the bases on a Palmetto error in the third. With just three outs to go to seal the deal, Helms-cranked it up to another gear, striking out the side in the seventh to give her eight K's on the night with just four hits given up. "Avon Park told us Palmetto was pretty good," 'Avon Park told us Palmetto was pretty good. But with Nikki on the mound, she's pretty much a big asset.' SAMMIE LOWER Lady Streak second-baseman Lower said. "But with Nikki on the mound, she's pretty much a big asset." The team has the weekend off as they gear up to' face cross-county rival Avon Park Tuesday night at Sebring. with Sheela Joshi (number 2 singles) and Kelsie Johnson (number three) winning straight set victories over Jessica Landers and Tara Henderson, respectively. Lake Placid's Shayna Reasbeck stretched Ashley 'J.J.' Jimenez to three sets before 'Double J' took the match 6-1, 3-6, 6-4 in fourth singles. Leeza Freeland then got back to the straight-set wins for Sebring with a 6-2, 6-0 win over Nata Abyaouf at number five. The Streaks swept through the doubles matches as well with Midence and Johnson 'teaming up at number one to top Stewart and Landers, 6-3, 6-1; before Jimenez and Joshi did the same over Henderson and Heredia, 6-0, 6-1. The two teams will face off again to make up a previous rain-out Monday at Sun 'N Lake. HARDER HALL COUNTRY CLUB RATES & SPECIALS GREEN FEE & CART 8:00-1:00 ......$39.00 BEFORE 8:00 ............................ -$35.00 AFTER 1:00 ....................... $28.00 1 A ,V* co" AFTER 2:30........................ $22.00 WEEKEND RATE SAT. & SUN. $28.00 . 3 01 Golfview ---od . E'^L..,. !",IBI a7 Sawup to $48900 caNwl (omNo 863-471-1171 S 9; 's' 1 Active Adult Communitvy ; 'g i 4'l, urh(, i C7-t Uthefinanclial ncilbm-atnn ycnl Laced fhx-c,r- yesrcrday' d, .in tldU wth the riara'sri", lelAdin ric ck qncts uarid rmiai ftudic. 4C6 4C Sunday, March 2, 2008 The News-Sun THE VIDEO GAME PAGE 0. s om 4WftW O W ftqo so IV---.-w I *I . - .- = - #~ : 40 .. "Copyrighted Material A Syndicated Content Available from Commercial News Providers". ,-..,- D -mv 0 4b M- - ______ NW. 4 -0000 - * __wm 0 "m- fhat 0 b .. V. -0 o - - n.- 4 o ft4mq mmmmom qw - 40 o 41 fm 0 a* bm .mw - - ** SFCC Continued from 1C tom of the sixth for the game. At first look, the first game of the double header seemed to be going against the Panthers in the first inning. El Giving up two runs, 13 starting left hander 6 Andrew Barbosa left the game early, with complaints about pain 5 in his shoulder, appar- ently from muscle strain, but the Panthers were able to pickup two. runs of their own before the inning ended. Cameron Nelson replaced Barbosa on the mound, but only pitched one inning, giv- ing up one hit and adding three strikeouts to his stats before being replaced Cory Ritter who would pitch the rest of the game. The bottom of the second inning 1 belonged to the Panthers, who picked ,CC up six more runs: The SFCC sluggers S1 v would score again in i the fifth, securing three runs, and in the bottom of the sixth, when they netted two. The Cougars were able to score in the sixth, when an overthrown ball. created an error and Cougar Allan Heney stretched a single to a double. A sacrifice hit and a wild pitch would bring him home. But the Cougars were not able to consistently hit Ritter, and the game ended with the Panthers out front 13-5. The win over the Cougars' brings the Panthers to a 16-10 overall record for the season. A record they tried to add ,to Saturday at Seminole Community College in Sanford before returning home today for a Sunday afternoon affair with Florida Community College of Jacksonville paying a visit. llth Annual Lake Placid Bass Tournament casts off next weekend By TREY CHRISTY trey.christy@newssun.comi LAKE PLACID Ohly a week remains until the llth Annual Greater Lake Placid Chamber of Commerce Bass tournament, which in the past has drawn entrants from a tal- ented local pool of fishermen and across the state. Fishing will take place in Lake June this year, and while there has been a drought, bass have not been affected, Norman Lee of Lake Placid Marine said. "We are expecting some big weights to be weighed in this year," he said, recalling total weights from years past to total 25 pounds or more. Five fish make up the total weight a team brings in, with only five fish allowed in a boat at one time. The chamber event can attract a crowd for the weigh- in, Lee said. Visit the Ball Park Ramp at Lake June by the 2:30 p.m. start of weigh-in to catch the excitement as a spectator. To get involved in the action, spots are still avail- able. The entry fee for a two-man team is $100. Included in the price is $10 put towards bringing in the largest bass. Last year the tournament brought in 35 boats, but this year only 19 have registered as of Friday. Contact Norman Lee at Lake Placid Marine, 441- 0297 for more information. MR. ED Continued from 1C Everyone around nods know- ingly and says "Yep." Sunflower seeds and spit- ting. No where else will my wife let me chew sunflower seeds and spit. Spitting is a sport we did as kids, we spit watermelon seeds, our gum, spit wads. Bad as it may sound, there is a bit of play in spitting, and chewing those seeds and spitting out the hulls is an. accepted way to enjoy some of those younger days when you are on the ball field. Actually, there is an art to breaking the shell open, extracting the seed, and then spitting out the hull without it clinging to the front of your shirt. Besides., they are good for you. There is drama in baseball, no matter what level of game you are watching. Even when nothing hap- pens for several innings, the tension is there. And drama is tension. iews tip. There is always that chance that something will break. A bottled up excitement ever present, and a chance for that exceptional error or play. Every baseball game is a short story to me. As a sportswriter, I found that the most boring thing to write, and to read, is the actual play by play. It is good for radio, but not for writers. But, in baseball there is always a story that jumps right out there. Titles like, "Their bats did the talking," or "Errors cost them the title," just draws you into the story, and almost write themselves. A certain lore surrounds the game of baseball, along with some charming and occasionally apocryphal tales. One of my favorite legends in baseball was Yogi Berra. Both a player and a man- ager, Berra was called the "the toughest man in the league in the last three innings." Known for hitting bad pitches, he could swing the bat like a golf club, pulling low pitches up for homers, and clip high pitches for hot line drives. He was one of the most colorful and outspoken peo- ple who ever lived. A.real character who was invented by the sport. It is said that when intro- duced'to Ernest Hemingway, he didn't ask about what deep and complex matters drove him to put words on a page. He asked "What paper you write for, Ernie?" But my favorite all time Yogi Berra quote: "You can observe a lot just by watch- ing." That's what I do when sent out to cover baseball. See, Orwell never got to write about baseball, as deep as he was, and I think he missed something. I get to watch America's - most famous game, enjoy some of my youth, and I get paid for it to boot. Now you know, but please don't tell my wife. She thinks I'm out there working. Call the News-Sun Sebring 985-6155 Avon Park 451-1009 Lake Placid 465-04-Z6 DEVILS Continued from 1C Red Devils to walk off with the win. "It was a textbook come- back," said Avon Park's head coach Mort Jackson. "We struggled with our pitching in the first inning, and Kyle (Jackson) comes in to pitch a gutsy game for us. Runner's homer kept us in the game, and then we did everything right. We had a good bunt, and a great hit by Topa. We need to work on our errors, we are averaging four per game, but it, was a textbook inning. I am very proud of our guys tonight." The win over the Tigers puts the Red Devils record at 4-3 overall, and 2-1 in the District 10-4A race. The Red Devils will look to increase both records when they next play on Tuesday, March 4 at DeSoto. - C S.O.S Senior Softball champs Courtesy phof6 The Alan Jay Senior Softball Team, in the Highlands County 55-and-over Afternoon League being played in the new softball complex, won the second annual Lou Galm Memorial Cup. Alan Jay beat KFC, last year's champion, 18-12. Lou Galm has played a lot of senior softball in Sebring and Lake Placid and has also played in a lot of tourna- ments in Florida and other states. Front Row: (Left to right) Gary Quartana, John Pianowski, Mgr. Harry Bell, Jim Lauzon and Curt Brown. Back Row: (Left to right) - Jerry Miller, Jim Holmes, Ray Trudell, John Kleet, Jim Morgan, Bobby Fulcher, Chuck Fluarty and Tom McNally (missing Andy Timermanis). . dwe 46 4" 0 0 . ftwmdlbw mm 0 ap ft fto 0 Ob sum 0 4bmww i The News-Sun Sunday, March 2, 2008 5C MEL. 1300 In Memoriam 1400 Health Care Services 1450 Babysitters 1500 Child Care Services 1550 Professional 7480 7490 7500 7520 7540 7550 7560 UbU0 8100 8150 8200 8250 8270 8300 8350 8400 8450 8500 Building Supplies Nursery, Gardening & Supplies Farm Equipment Livestock & Supplies Pets & Supplies Fresh Fruits & Vegetables Meat & Poultry Products Medical'Supplies & Equipment 8000 Recreation Boats & IViotors Marine Equipment Fitness & Exercise Equipment Bikes &' Cycle Equipment Hunting & Fishing Supplies Firearms Pools & Supplies Sporting Goods Recreational Vehicles Motor Homes OF THE TENTH JUDICIAL CIRCUIT IN AND FOR HIGHLANDS COUNTY, FLORIDA CIVIL ACTION Case No: 07001166GCS Division: COUNTRYWIDE HOME LOANS INC., Plaintiff -vs- PEDRO HERNANDEZ, et al, Defendant(s) NOTICE OF ACTION TO: PEDRO HERNANDEZ LAST KNOWN ADDRESS: 812 PORSCHE AVE. SEBRING, FL 33872 CURRENT ADDRESS: UNKNOWN TO: BALINDA HERNANDEZ LAST KNOWN ADDRESS: 812 PORSCHE AVE. SEBRING, FL 338 14, BLOCK 21, SEBRING COUNTRY ESTATES, SECTION ONE, ACCORDING TO THE PLAT THEREOF, AS RECORDED IN PLAT BOOK 6, AT PAGE 49, 25th day of February, 2008. Luke E Brooker Clerk of the Court By: /s/ Lisa Tantillo As Deputy Clerk March 2, 9, 2008 IN THE CIRCUIT COURT OF THE TENTH JUDICIAL CIRCUIT IN AND FOR HIGHLANDS COUNTY, FLORIDA CIVIL ACTION Case No: 07001086GCS Division: DEUTSCHE BANK NATIONAL TRUST COMPANY, Plaintiff -vs- LAZARA E. RODRIGUEZ, etal, Defendants) NOTICE OF ACTION TO: MICHAEL E. HOUSE LAST KNOWN ADDRESS: 900 WHITE EAGLE CIR. SAINT AUGUSTINE, FL 32086 CURRENT ADDRESS: UNKNOWN TO: SUZAN APRIL WHITE-HOUSE LAST KNOWN ADDRESS: 4921 NW 19TH PL GAINESVILLE, FL 32605, IN BLOCK 244, OF SUN 'N LAKES ESTATES, SECTION 18, ACCORDING TO THE PLAT THEREOF, AS RECORDED IN PLAT BOOK 8, AT PAGE 87, 26th day of February, 2008. Luke E Brooker Clerk of the Court By: /s/ Priscilla Michalak As Deputy Clerk March 2, 9, 2008 1050 Legas NOTICE OF MEETING SPRING LAKE IMPROVEMENT DISTRICT The Board of Supervisors of the SPRING LAKE IMPROVEMENT DISTRICT will hold an Attorney-Client Session on Wednesday March 12, 2008 at 1:30 P.M. at the District Office, 115 Spring Lake Boulevard, Sebring, Florida. Meeting of the Board of Supervisors ("Board") of the Spring Lake Improvement District ("District"), the Board will hold an At- torney-Client Session pursuant to the Provi- sion of Section 286.011(8), Florida Statures (1999). At this time, the Board will meet with its Attorneys to discuss strategy for litigation to which the District is presently a party. Only the members of the Board (Brian Acker, Leon Van Jr., Marsi Benson, Bill Lawens, and Ken Poe), The District Attorney (William J. Nei- lander), the District Manager (Joseph DeCer- bo), Treasurer (Diane Angell), may attend the Attorney-Client Session. No other person may be present pursuant to Section 286.011(8), Florida Statutes. The regular scheduled meeting will follow the Attorney Client Session. EACH PERSON WHO DECIDES TO AP- PEAL ANY DECISION MADE BY THE BOARD WITH RESPECT TO ANY MATTER CONSID- ERED AT THE MEETING IS ADVISED THAT PERSON MAY NEED TO ENSURE THAT A VERBATIM RECORD OF THE PROCEEDINGS IS MADE, INCLUDING THE TESTIMONY AND EVIDENCE UPON WHICH SUCH APPEAL IS TO BE BASED. Joseph DeCerbo March 2, 2008 IN THE CIRCUIT COURT OF THE TENTH JUDICIAL COURT OF FLORIDA IN AND FOR HIGHLANDS COUNTY CASE NO. 08-40-GCS NOTICE OF ACTION DEUTSCHE BANK NATIONAL TRUST COMPANY, AS INDENTURE TRUSTEE FOR NEW CENTURY HOME EQUITY LOAN TRUST, SERIES 2006-1, , Plaintiff, vs. REINALDO RIVER, et. al. Defendants. NOTICE OF ACTION TO: Reinaldo Rivero; unknown spouse of Reinaldo Rivero Last known address: 18 Disney Boule- vard, Avon Park, FL 33825 If alive, and if dead, all parties claiming inter- est by, through, under or against Reinaldo Rivero; unknown spouse of Reinaldo. Rivero, and all parties having or claiming to have any right, title or interest in the property described herein. YOU ARE NOTIFIED that an action for Fore- closure of Mortgage on the following descri- bed property: TRACT 10, OF RIVER RIDGE ESTATES SECTION ONE REPLAT, ACCORDING TO THE PLAT THEREOF AS RECORDED IN PLAT BOOK 12, AT PAGE 72, OF THE PUBLIC RE- CORDS OF HIGHLANDS COUNTY, FLORIDA, has been filed against you and you are re- quired to serve a copy of your written defens- es, re- lief demanded in the complaint. WITNESS my hand and the seal of this Court this 18th day of February, 2008. LUKE E. BROdKER ; As Clerk of the Court By: /s/ Priscilla Michalak As Deputy Clerk February 24; March 2, 2008 IN THE CIRCUIT COURT OF THE 10TH JUDICIAL CIRCUIT, IN AND FOR HIGHLANDS COUNTY, FLORIDA CIVIL DIVISION CASE NO.: 07001176GCS EMC MORTGAGE CORPORATION, Plaintiff, vs. ANGELO GALIOTO A/K/A ANGELO 0. GALIOTO,.et al, Defendants. NOTICE OF ACTION UNKNOWN SPOUSE YOU ARE NOTIFIED that an action for Foreclo- sure of Mortgage on the following described property: UNIT 203, LAKESHORE TOWER TWO CON- DOMINIUM, ACCORDING TO THE DECLARA- TION OF CONDOMINIUM AS RECORDED IN OR BOOK 435, PAGE 1, AND AMENDED IN OR BOOK 458, PAGE 216, AND AMENDED IN OR BOOK 459, PAGE 172, AND AMENDED IN ORB 622, PAGE 315, AND AMENDED IN ORB 1133, PAGE 1777, ALL March 25, 2008, a date which is within thirty (30) days after the first publication of this Notice in the News- Sun and file the original with the Clerk of this Court either before service on Plaintiff's 8th day of February, 2008. LE. "Luke" Brooker As Clerk of the Court By: /s/ Lisa Tantillo As Deputy Clerk February 24; March 2, 2008 LOOKING FOR AN APARTMENT? Search the News-Sun Classifieds every Sunday, Wednesday and Friday. 1050 Legals IN THE CIRCUIT COURT OF THE TENTH JUDICIAL CIRCUIT OF THE STATE OF FLORIDA, IN AND FOR HIGHLANDS COUNTY CIVIL DIVISION CASE NO.08 00156 GCS HOUSEHOLD FINANCE CORPORATION III, Plaintiff, vs. BARBARA J. BERTKA; ROBERT M. LUSSIER JR.; BOBBIE L. GILLIS; THE UNKNOWN SPOUSE OF BOBBIE L. GILLIS; ACTION TO: BARBARA J. BERTKA; ROBERT M. LUSS- IER JR.; BOBBIE L. GILLIS; THE UNKNOWN SPOUSE OF BOBBIEL. GILLIS; IF LIVING, IN- CLUDING ANY UNKNOWN SPOUSE OF SAID DEFENDANTSS, IF REMARRIED, AND IF DE- CEASED, THE RESPECTIVE UNKNOWN, whose name and address appears here- on, within thirty days after the first publication of this Notice, the nature of this proceeding being a suit for foreclosure of mortgage against the following described property, to wit: LOT 12, BLOCK 21, LEISURE LAKES, SEC- TION ONE, ACCORDING TO THE PLAT THEREOF, AS RECORDED IN PLAT BOOK 6, PAGE 6, OF THE PUBLIC RECORDS OF HIGH- LANDS COUNTY, FLORIDA. A/K/A 1004 GARDENIA STREET LAKE PLACID, FL 33852 If you fail to file your answer or written de- fenses in the above proceeding, on plaintiff's attorney, a default will be entered against.you for the relief demanded in the Complaint or Petition. DATED at Highlands County this 15th day of February, 2008. CLERK OF THE CIRCUIT COURT By: /s/ Priscilla Michalak February 24; March 2, 2008 IN THE CIRCUIT COURT OF THE 10TH JUDICIAL CIRCUIT IN AND FOR HIGHLANDS COUNTY, FLORIDA CASE NO. 07-1214-GCS DIVISION: Civil Division LIVE OAK TRUST, INC., A Florida Corporation Plaintiff v. FAT ROBASSON Defendant NOTICE OF ACTION CONSTRUCTIVE SERVICE TO: FAT ROBASSON 6125 NW GAYLORD TERRACE PORT ST. LUCIE, FL 34986 YOU ARE HEREBY notified that a Com- plaint for Foreclosure of Mortgage involving real estate located Highlands County, Florida, and legally described as follows: Lots 26, 27 and 28 Block 84 of SUN 'N LAKES ESTATES SECTION 7 according tot he plat thereof recorded in Plat Book 8 Page 67 of the public records of Highlands County Florida. has been filed against you and you are re- quired to serve a copy of your written defens- es, if any, to it on KENNETH M. JONES, of Moody, Jones, Montefusco, Ingino & More- head, P.A., Attorneys for Plaintiff, whose ad- dress is 1333 S. University Drive, Suite 201, Plantation, Florida, 33324, on or before March 24, 2008, and file the original with the Clerk of this Court either before service on the Plain- 1050 ,o., tiff's attorney or immediately thereafter; other- wise, a default will be entered against you for the relief demanded in the Complaint. WITNESS my hand and seal of this Court on February 13, 2008. L.E. "LUKE" BROKER Clerk of the Court By: /s/ Lisa Tantillo As Deputy Clerk MOODY, JONES, MONTEFUSCO, INGINO & MOREHEAD, P.A. Attorneys for Plaintiff 1333 S. University Drive, Suite 201 Plantation, FL 33324 (954) 473-6605 /s/ Kenneth M. Jones Florida Bar No. 142618 February 24; March 2, I 4706 LAKEFRONT DRIVE MARTINEZ, GA 30907-1232 or if any of the aforesaid persons are dead, Then his or her unknown heirs, devisees, lega- I tees or grantees; and any and all other per- Ssons- 1050 Legals quired to serve a copy of your written defens- es, if any to it, on the Plaintiff's attorney, whose name and address is: I Sarah K. McDannold MICHAEL A. RIDER, P.A. 13 North Oak Avenue Lake Placid, Florida 33852 863-465-1111 and file the original with the Clerk of the above styled Court on or before 1.9 SPLAT, i 4706 LAKEFRONT DRIVE MARTINEZ, GA 30907-1232 Bufed-treasures, can be found in Classified! o -w . .- T 1 .' ; 3-38--4 55 to plac our Cl C ssified Adi! 2 .l l' -S p i 1 t.. i- B F -' /-^ lle, T ate :^ff J'L "S--A1;-^ i 1.-. M I I 7-- The News-Sun 6C Sunday, March 2, 2008 rt i a I. nto er es! q) ., i 13611 Hwy 98 Sebring 655-4995 We Service Everything We Sell Plug i Lowi Price ^y& S'eu'we S Highlands AR S A L E S a Re ional 2920 Alternate 27 South ( (863) 402-1819 3600 South Highlands Avenue (863) 402-1819 (863) 385-6101 01 ,- ., Q Committed to meeting all your financial needs since 1929. Sebring Lake Jackson 471-1972 Sebring Fairmount 402-1776 Downtown Lake Placid 465-3553 "FDIC HIGHLANDS COUNTY RECYCLING Now Recycling... Plastic Containers, Newspapers, Magazines, Cardboard and Steel & Aluminum Cans 655-6400' tE HIGHLANDS INDEPENDENT BANK 385-8700 CALL THE NEWS-SuN TO FIND OUT HOW YOU COULD BECOME A CELEBRATE SPONSOR OR PARTNER 386-5626 CALL THE NEWS-SUN TO FIND OUT HOW YOU COULD BECOME A CELEBRATE SPONSOR OR PARTNER 386-5626 no place hom1Te. L * IV Therapy * Diabetes Manage ment * Mental Health * Wound Health A Cardiac * Orthopedic * Ostomy Managemein * Continence Management * Alzheimer's Management FLORIDA HOSPITAL Home Care Services Sebring Serving Highlands, Hardee, and Polk counties for over 15 years. 4005 Sun 'n Lake Blvd. 863-385-1400 SFLORIDA HOSPITAL Heartland Division Amazing Technology. Graceful Care. Sebring 863-314-4466 Lake Placid Wauchula 863-465-3777 863-773-3101 Air Condit iing, Inc. 800 U. S. Hwy 27 N. Avon' Park Avon Park (863) 453-7574 Sebring (863) 385-1731 Lake Placid (863) 465-7771 IL The News-Sun Sunday, March 2, 2008 7C 1050 Legals CO'JRT OF THE TENTH JUDICIAL CIRCUIT, IN AND FOR HIGHLANDS COUNTY, FLORIDA Case Number: 07-405-GCS VELMA JOHNSQN, Plaintiff vs The Estate of FRANK J. RICKER, ALYNE RICKER AND ROBERT M. RICKER,. Together with their heirs, should they be de- ceased, and any natural unknown persons who might be the unknown spouse, heirs, de- visees, grantees, creditors, unknown Tenants or other parties claiming by, through, under or against the above-named defendants Defendants. NOTICE OF ACTION To: All known and unknown parties having or claiming to have any right, title or interest in the property described below or may claim so right, title, and interest which are contrary to that of Plaintiff's and which constitute a cloud on Plaintiffs' title You hereby are notified that a Complaint to Quiet Title was filed in this court on May 24, 2007. You are required to serve a copy of your written defenses, if any, on the petition- er's attorney, whose name and address is: Sherea-Ann Ferrer, P.O. Box 721894 Orlando, Florida 32872, and file an original with the clerk of this court on or before April 7, 2008. Otherwise, a judgment may be entered against you for the relief demanded in the petition. Property Description: Lots 3565 &3566, AVON PARK LAKES UNIT 12 ACCORDING TO THE PLAT THEREOF AS RECORDED IN PLAT BOOK 5, PAGE 5 OF THE PUBLIC RECORDS OF HIGHLANDS COUNTY, FLORIDA. Witness my hand and seal on February 26, 2008. L.E. "Luke" BROKER, CLERK of COURTS Clerk of the Court By: /s/ Lisa Tantillo Deputy Clerk March 2,9, 2008 NOTICE OF PUBLIC HEARING TO CONSIDER THE ADOPTION QF A PROPOSED AMENDMENT TO CERTAIN WATER RATES, FEES AND CHARGES FOR THE SPRING LAKE IMPROVEMENT DISTRICT The Spring Lake Improvement District Will hold a public hearing on Wednesday March 12, 2008 at 2:00 P.M. in the office of the Dis- I trict at 115 Spring Lake Boulevard, Sebring, Florida 33876 for the purpose of hearing pub- lic comment and objections of certain rates, fees, charges and operating policies for the District's water utility system. The District will consider increasing the Fixed User Charge, Per 1,000 gallon, and other Water Department Fees and Charges. Any changes will go into effect immediately. February 29; March 2, 2008 IN THE CIRCUIT COURT FOR HIGHLANDS COUNTY, FLORIDA PROBATE DIVISION FILE NO. PC 08-83 IN RE: ESTATE OF MARGARET LUCILLE MELTZER Deceased. NOTICE TO CREDITORS The administration of the estate of MAR- GARET LUCILLE MELTZER, deceased, whose date of death was September 19th, 2007, and whose Social Security Number is 282-18- 8772, is pending in the Circuit Court for High- lands County, Florida, Probate Division; the address of which is 430 2nd, 2008. Personal Representative: JERRY LEE ANDRESS 428 West Waterway Avenue, NW Lake Placid, Florida SWAINE, HARRIS & SHEEHAN, P.A. Attorneys for Personal Representative 401 DAL HALL BOULEVARD LAKE PLACID, FL 33852 Telephone: (863) 465-2811 Florida Bar No. 184165 March 2, 9, 2008 IN THE CIRCUIT COURT OF THE TENTH JUDICIAL CIRCUIT OF FLORIDA IN AND FOR HIGHLANDS COUNTY CASE NO. 07001002GCS WELLS FARGO BANK, N.A. AS TRUSTEE FOR OPTION ONE MORTGAGE LOAN TRUST 2005-5 ASSET-BACKED CERTIFICATES, SERIES 2005-5, Plaintiff, -vs- SYNETH PERKINS et. al. Defendants. NOTICE OF FORECLOSURE SALE NOTICE IS HEREBY GIVEN pursuant to a Final Judgment of Foreclosure dated JANU- ARY 31, 2008, and entered in Case No. 07001002GCS, of the Circuit Court of the Tenth Judicial Circuit in and for Highlands County, Florida, wherein WELLS FARGO BANK, N.A. AS TRUSTEE FOR OPTION ONE MORTGAGE LOAN TRUST 2005-5 ASSET- BACKED CERTIFICATES, SERIES 2005-5, is a Plaintiff and SYNETH PERKINS; UNKNOWN SPOUSE OF SYNETH PERKINS; OPTION ONE MORTGAGE CORPORATION; UNKNOWN TEN- ANT #1; UNKNOWN TENANT #2 are the De- fendants. I will sell to the highest and best bidder for cash at 430 S. Commerce Ave., Room 105, Sebring, FL 33870, at 11:00 A.M. on March 27th, 2008, the following described property as set forth in said Final Judgment, to wit: LOT 9, IN BLOCK 4, OF ALTAMONT 1050 Legas PLACE ADDITION NO. 2, AS PER PLAT THEREOF, RECORDED IN PLAT BOOK 10, PAGE 45,. LUKE E. BROKER As Clerk of the Court By: /s/ Priscilla Michalak As Deputy Clerk Dated this 12th day of February, 2008. Ben-Ezra & Katz, P.A. Attorneys for Plaintiff 2901 Stirling Road, Suite 300 Fort Lauderdale, Florida 33312 Telephone: (305) 770-4100 Fax: (305) 653-2329 February 24: Maich 2, 2008 NOTICE OF MEETING LOCATION CHANGE SOUTH FLORIDA COMMUNITY COLLEGE DISTRICT BOARD OF TRUSTEES A regular monthly meeting of the South Florida Community College District Board ol Trustees scheduled to be held Wednesday, March 19. 2008 at 6:00 p.m. at the SFCC Hai- dee Campus at 6:00 p.m., has been moved to the DeSoto Campus, 2251 NE TLutner Ave,, At- cadia, FL. The general public Is invited, A regular monthly meeting of the South Florida Community College Distlict Board of Trustees scheduled to be held .. I.. I, June 25, 2008 at 6:00 p.m. at the SFCC High- lands Campus at 6:00 pm., has been moved to the Hardee Campus, 2968 US Hwy 17 N, Bowling Green. FL. The general public is invit- ed. General Subject Matter to Be Considered: Items of interest to the District Board of Trust- ees, including but not limited to, personnel matters, policy matters, business affairs, aca- demic and student affairs, curriculum, grants, agreements, purchasing/construction, fee changes, monthly financial report, and other routine business. A copy of the Agenda may be obtained by contacting the President's of- fice at (863) 784-7110. IF A PERSON DECIDES TO APPEAL ANY DECISION MADE BY THE DISTRICT BOARD OF TRUSTEES WITH RESPECT TO ANY MAT- TER CONSIDERED AT THIS MEETING, THAT PERSON WILL NEED A RECORD OF THE PROCEEDINGS, AND MAY NEED TO ENSURE THAT A VERBATIM RECORD OF THE PRO- CEEDINGS IS MADE, WHICH RECORD IN- CLUDES THE TESTIMONY AND EVIDENCE UPON WHICH THE APPEAL IS TO BE BASED. February 29; March 2, 2008 NOTICE OF PUBLIC SALE: PRONTO TOWING AND RECOVERY gives Notice of Foreclosure of Lien and intent to sell these vehicles on 3/17/2008, 09:00 am at 1313 SR 64 West, Avon Park, FL 33825, pursuant to subsection 713.78 of the Florida Statutes. PRONTO TOW- ING AND RECOVERY reserves the right to ac- cept or reject any and/or all bids. 1GTDC14Z7RZ506201 1994 GENERAL MOTORS CORP March 2, 2008 | 5 Highlands 10 5 County Legals HIGHLANDS COUNTY BOARD OF COUNTY COMMISSIONERS (HCBCC) GENERAL SERVICES & PURCHASING INVITATION TO BID (ITB) The Board of County Commissioners (BCC), High- lands County, Sebring, Florida, will receive sealed bids in the County Purchasing Department for: ITB 08-042 SALE OF PROPERTY IDENTIFIED AS: Properly f C-14-37-29-300-2090-0110 Specifications may be obtained by contacting Direc- tor, Gerald (Jed) Secory, Highlands County General News-Sun Call 385-6155 ALL STAR TILE, LLC Complete Bathroom Remodeling Change Bathtub to Shower S Installation Ceramic Floor Tile 1055 Highlands 0V5J County Legals Services/Puichasing Department, 4320 George Blvd., Sebring, FL 33875-5803: Phone 863-402-6523: Fax (863) 402-6735; or by recommended HCBCC corre- spondence: E-Mail:qsecoromhcbcc.ora or at our Website: net and returned. The Board will not be responsible for the late deliveries of bids that are incorrectly ad- diessed, delivered in person, by mail or any other type of delivery service. One or more County Commissioners may be in at- tendance at the above bid opening. The Highlands County Board of County Commission- ers (HCBCC/COUNTY) reserve the rights to accept or elect any or all bids or any parts thereof, and the award., if an award is made, will be made to the most responsive and responsible bidder whose bid and qualifications indicate that the award will be in the best inlurest of Highlands County. The COUNTY re- soives their rights to waive irregularities in the bid. The Boaid of County Commissioners of Highlands Liounty, Floridai does not discriminate upon the basis til iny individuals' disability status. This non-discrimi- naillon policy involves every aspect of the Board's 1ln:l0iulns, including eone's access to, participation, eniployment or treatment in its programs or activities. Anyoinei rquiing reasonable accommodation as pro- ivldil tui in the Americans with Disabilities Act or Srtionr 256,26 Florida Statutes should contact Mr. tehn A, Minor. ADA Coordinator at: 063-402-6509 (Volco), or via Florida Relay Service 711, or by e-mail: illtinor@ichccc,"rg. Requests for CART or interpreter services should be made at least 24 hours in advance to lp uiln coordination of the service. Board o County Commissioners PUichasinllg Department Highlands County, Florida Website: Icb.el March 2, March 2, 9,41 TWO (2) NEW OR DEMONSTRATOR MODEL YEAR EMERGENCY VEHICLES FORD E350 DUAL REAR WHEEL MODULAR Specifications may be obtained from Gerald (Jed) Se- cory, Director, Highlands County General Services/ Purchasing Department, 4320 George Blvd., Sebring, Florida 33875-5803 Phone: 863-402-6523; Fax: 6735, or by E-Mail: osecorv@hcbcc.orq. Copies of the plans and specifications may be obtained from the above lo- cation. Commissioners reserves the right to accept or reject any or all bids or any parts thereof, and the award, if an award is made, will be made to the most responsible and responsive bidder whose bid and qualifications indicate that the award willbe in the best interest of Highlands County. The Board reserves the right to waive irregularities in the bid. 1. Anyone requiring reasonable accommoda- tion as provided for in the Americans with Disabilities Act or Section 286.26 Florida Statutes should contact Mr. John A. Minor. ADA Coordinator at: 863-402- 6509 (Voice). 863-402-6508 (TTY), or via Florida Re- lay Service 711, or by e-mail: Jminora)hcbcc.org Re- quests ior CART or interpreter services should be made at least 24 hours in advance to permit coordina- tion of the service. Board of County Commissioners/Purchasing . Department Highlands County, Florida ebsite:Marchhcc.ne2008 March 2, 9, 2008 News ASun. 1055 Highlands 1055 County Legals PUBLIC MEETING OF THE CITY OF SEBRING CANVASSING BOARD The City of Sebring Canvassing Board will meet at 5:30 p.m. on March 11, 2008 to examine absentee ballots and early voting provisional ballots received up to that time for the City of Sebring election. This meeting will be at the Supervisor of Elections office located at 580 South Commerce Avenue, Room 201A, Sebring, FL. After examination, these ballots will be processed and tabulated, however, no results will be released until after 7:00 p.m. in accordance with Flori- da Law.'Any provisional ballots cast at the precincts) on election day. will be canvassed alter 7:00 p.m. The Canvassing Board might need to reconvene sometime alter the election day meeting. This meeting will be in the office described above and will be adver- tised in the newspaper ift timeper If time doesn't permit, a notice of the meeting will be posted in same office. If known at the time of adjournment, time and date will be announced at the conclusion of the March 11th meeting.. Florida Statutes. Kathy Haley, CMC City Clerk City of Sebring March 2, 2008 08-030 ADVANCED LIFE SUPPORT DRUGS ITB O08-031 TRAFFIC CONTROL DEVICES MATERIALS & HARDWARE ITB 08-032 BASE ROCK MATERIAL (SHELLROCK LIMEROCK) ITB 08-033 BASIC LIFE SUPPORT SUPPLIES ITB 08-034 CONCRETE CULVERTS ITB 08-035 DITCH CLEANING ISTOKPOGA WATERSHED DISTRICT ITB O08-036 HAND SPRAYING I ISTOKPOGA WATERSHED DISTRICT ITB 08-037 HEAVY EQUIPMENT RENTAL ITB 08-038 POLYETHYLENE PIPE & COUPLERS Specifications may be obtained from Johanna Feick- ert, Asst. General Services/Purchasing Director, High- lands County Purchasing Department, 4320 George Blvd., Sebring, FL. 33875-5803, or by phone 863- 402-6526, E-Mail: ifeicker@hcbcc ore or at our Web- site:, March 13, 2008, attendance at the above bid openings. The High- lands County Board of County Commissioners re- serves o treatment in its programs or activities. Anyone require Purchasing Department Highlands County, Florida Website: hcbcc.net February 24; Marn i2, 2008 News-Sun Call 385-615!5 rAdvertise Your Business 1100 Announcements CHECK YOUR AD Please check your ad on the first day it runs to make sure it is correct. Sometimes instructions over the phone are misunderstood and an er- ror can occur. If this happens to you, please gall us the first day your ad appears and we will be happy to fix it as soon as we can. If We can assist you, please call us: 385-6155--452-1009 465-0426 News-Sun Classified 1200 Lost & Found FOUND LARGE DOG at Skipper & HWY 66. Identify to claim. Call 863-446-5682. 1,400 Health Care Services ONLINE PHARMACY Buy Soma, Ultram, Fioricet, Prozac, Buspar,90 Oty $51.99 180 Oty. $84.99 PRICE INCLUDES PRESCRIPTION! We will match any competitor's price! 1-866-465-0732 unitedpharmalife.com 1550 Professional Services **ACCURATE HANDYMAN** NO JOB TOO SMALL Home/Mobile maintenance and repair FREE ESTIMATES *ask about your senior discount* 24 HOUR EMERGENCY SERVICES (nights, weekends, holidays) CALL 863-2Q2-5202 accurateofhico@aol.com Licensed #HM00132 and Insured A HANDYMAN Aluminum, Phone and TV jacks, Minor Plumbing, Carpentry, Fans, Repairs, Screens & Painting. 863-385-1936 . G&N DEVELOPERS INC. License # CGC 1510712 Fully Insured ) New Homes, Additions & Remodeling. House painting interior & exterior. Free Estimates Call 863-441-4023 HANDYMAN BOB Licensed & Insured No Job Too SMALL! (863) 452-5201 or 449-1744 1550 Professional Services Any trash hauling, from cleaning out sheds, to rental properties. Weeding, hedge trimming, & some tree work. We pay cash for junk cars, trucks, & trailers. Highlands- Tile Feb / Mar special! Floor installation (standard) $1.50/sq ft. 35 years exp. No job too small. Free estimate.863-655-3085 HOME IMPROVEMENT J. Anything you need, we do. call 347-691-5059 HOUSECLEANING-Weekly or bi-weekly, move-ins or move-outs, low rates. Call 863- 214-5317. 2050 Job Opportunities ACCOUNTANT-FT, for non-profit office in Sebring, minumum of 2 yrs experience in per- forming increasingly complex bookkeeping utilizing a computerized accounting system. Requires BA in accounting, business orrelat- ed field or equivalent combination of training and experience, which provides the required knowledge, skills and abilities. Proficiency in Excel required, Great Plains accounting soft- ware preferred. Non-smoking office. Salary $13-14/hr depending on experience. Send re- sume to: Financial Secretary, POB 270848, Tampa, FI 33688-0848 or fax 813-962-0585. 2100 Help Wanted DATA ENTRY PROCESSOR NEEDED! Earn $3,500- $5,000 Weekly working from home! Guaranteed paychecks! No experience nec- essary! Positions available today! Register online now! www,BiaPavWork.com HOME REFUND JOBS! Earn $3,500- $5,000 Weekly processing company refunds online! Guaranteed paychecks! No experience need-. ed! Positions available today! Register online now! LOOKING FOR THAT SPECIAL HOME? Search the News-Sun Classifieds every Sunday, Wednesday and Friday. City of Sebring Employment Opportunity The City of Sebring is recruiting for the following position: HUMAN RESOURCE OFFICER (position title) $35,000 $45,000 DOQ (pay range) FINANCE / ADMINISTRATION (department) MINIMUM QUALIFICATIONS: - Knowledge of the principles, practices and procedures of public administration. -. Associates of Science Degree or equivalent in Human Resources preferred., - Two to three years experience in personnel or directly related field and/or combination of training and experience clearly demonstrating the ability to perform all job requirements. - Knowledge of legal compliance for alcohol and substance testing programs (DOT and CDL) as dictated by federal standards. - Ability to advise supervisors and managers regarding application selection and other personnel matters. - Knowledgeable of basic and applicable labor laws and principles of various employment law. DUTIES: - Responsible for handling worker's compensation and general liability claims processing. - Conducts new employee orientation program, briefing employees on important policies such as computer policy, drug policy, sexual harassment, etc. - Coordinates the administration of city health insurance and supplemental insurance for employees. - Responsible for recruitment activities (documenting advertisements, checking references, background checks, pre/post employment substance and/or medical examination, exit interviews, 1-9's, separation notices, unemployment compensation, benefits enrollment.) Apply to: For application contact Diane Kauffman at Sebring City Hall, 368 South Commerce Ave., Sebring, FL 33870. (863) 471-5100. Closing date for this position is March 13, 2008 Equal Opportunity Employer. We do not discriminate on the basis of race, religion, color, sex, age, nature origin or disability. Drug Free Workplace. S' CosmEev & RamEa&AmCoNmoiNG & REFRGERAnoN V St. lil 1We Service All Makes & Models SNS385-615 3 Years in the Field Call 385-6155c HC#00769 471-0226 or 381-9699 RA#73e67238 y oAdvertise Your Business Advertise Advertise Advertise DARRELL KORANDA REFRIGERATION versee dvertise e& AiR CoNDTmoNINc, LLC Your Business Your Business Your Business Try Here! Here! Here! i test Not fie r"Advertise Your Business Here! Clew3 Sun- Call 385-6155.1 l The News-Sun 8C Sunday, March 2, 2008 2100 Help Wanted A POOL TECH Seeking individual for pool route, customer service exp. helpful. Clean driving record, 863-655-6993 GsO The GEO Group, Inc. A worldwide leader in privatized corrections BENEFIT INCLUDE: HEALTH, DENTAL VISION, LIFE, DEPENDENT LIFE INSURANCE, & 401 K RETIREMENT -CORRECTIONAL OFFICER **New Wages* -COOK SUPERVISOR (2 available) -SUBSTANCE ABUSE INSTRUCTOR MOORE HAVEN CORRECTIONAL FACILITY 1990 East SR 78 NW Moore work- CLEANING PART TIME Evening clerk, motel manager/cleaner. 102 US 27 S ,Avon Park. Appy from, 9 am- 5 pm., Wed-Sat. in person. EXPERIENCED ALUMINUM Installers needed. Must have good FL DL. Apply at 4420 Hwy 27 South, Sebring or call 471-9906 Fax 471- 1777. LPN preferred. We offer a competitive salary and benefits package. Interested candidates may apply on- line at. EOE Nation Healing HELP WANTED Earn Extra Income Assembling CD cases from Home Working with Top US Companies. Not available, MD, WI, SD, ND. 1-800-405-7619 ext 104 HIGHLANDS COUNTY law firm looking for le- gal assistant. Must be a self-starter, be highly organized and have strong communication and computer skills. Some legal experience required. Please forward resume to Clifford R. Rhoades, P.A., 2141 Lakeview Dr., Sebring 33870 or e-mail laura@crrpa.com HIGHLANDS VILLAGE Assisted Living Facility. Now Hiring kitchen & aides. 3PM-11PM, 11PM-7AM 2301 US Highway 27 S. Sebring. Call 863-402-0406 Looking for a great career ??? Sale associate/ decorator needed for the busiest furniture store in Highlands County. Benefits included: Health, Dental and.Vision and a profit sharing plan, we also have. com- prehensive training program which includes: Customer driven selling and introduction into design. Call Carrie at Usher Furniture 863- 382-2423 to set up a interview. 2100 Help Wanted HOME REFUND JOBS! Earn $3,500- $5,000 Weekly Processing Company Refunds Online! Guaranteed Paychecks! No Experience Needed! Positions Available Today! Register Online Now! LABOR 11r, FINDERS AX .UED CTAT 0STAF MYSTERY SHOPPERS-Get paid to shop! Retail/Dining establishments need undercover clients to judge quality/customer service. Earn upto $70 a day. Call 888-731-1179 NURSING If you would like to be part of our team, we are currently searching for qualified candi- dates for the following positions. DIRECTOR OF NURSING Must be RN. Long Term Care experience required. We offer competitive wages and complete benefit package. Interested candidates please contact / fax resume to: The Oaks At Avon 1010 N. US HWY 27 Avon Park, FL 33825 Ph: 863-453-5200 Fax: 1-863-453-5308 EOE/DFW OFFICE COORDINATOR Lykes Citrus Management Division has an im- mediate opening for an Office Coordinator at their Basinger Grove office. Duties include basic accounting skills, reception duties, as- sisting with job applicants and basic clerical functions. Successful applicants should pos- sess two years experience in the above descri- bed areas and have knowledge of Word and Excel software. The ability to communicate in Spanish is a benefit but not required. Lykes Citrus Management Division offers competitive wages and benefit package in- cluding Medical, Dental, Life, AD&D and LTD insurance plus paid vacation and holidays. In- terested applicants should apply in person at: Lykes Basinger Grove office 490 Buckhorn Road, Lorida, Fl. 33857 Or 7 Lykes Road, Lake Placid, Fl. 33852 Lykes Citrus Management-Division is an Equal Employment Opportunity Employer/Affirma- tive Action/Drug Free Workplace, M/F/DN. 2100 Help Wanted NURSING If you would like to be a part of our team, we are currently searching for qualified candi- dates for the following positions. ACTIVITIES ASSISTANT Must be a CNA. Ltc and/ or activity experi- ence preferred. LPNs 3pm-11pm & 11pm-7am Shifts Interested candidates please contact/ fax re- sume to: The oaks at Avon 1010 N. US HWY 27 Avon Park, FL 33825 Ph: 863-453-5200 Fax: 1-863-453-5308 EOE/DFW PART TIME Care giver for a couple of hours on weekends for alzhiemers patient. 863-443- 0039 PHLEBOTOMIST Florida's Blood Center Florida's Blood Center is offering oppor- tunities for an exciting career in Blood banking! Branch and mobile positions available out of the Highlands Branch. Must be able to work a flexible schedule which includes Saturdays, Sunday's and evenings. 6 month experience in medical field or phlebotomy / medical assistant certificate necessary. Must work closely with donors and provide excellent customer service. PPO Aetna Medical Insurance, LTD plans, and much more! Stand- alone resume cannot be accept- ed without a completed application. Please check out our website for loca- tions and to print an application. FAX: 561-472-3929 sejobs@floridasbloodcenters.org EOE/MF/DFWP RECEPTIONIST- Bi-lingual, Experienced in Medical Office Procedures. Immediate Opening In Lake Placid. Attractive pay and benefits Call Sandy at 699-1414. SEB- F/T Experienced cook, Apply in person, no call, at Fairway Pines, 5959 Sun n Lake Blvd., Sebring. SEBRING-METAL ROOF mechanics, top pay with experience. Call 407-321-3181 SECRET SHOPPERS NEEDED IMMEDIATELY For Store Evaluations. Local Stores, Restaurants, & Theaters. Training Provided, Flexible Hours. Assignments Available NOW!! 1-800-585-9024 ext. 6262 SEEKING IN AVON PARK, Cardiologist office a M.A with knowledge of EKG and interpreta- tion, P/T or F/T. M-F. Fax to 407-898-8756 or mail to ICVC, 615 E. Princeton St. #104, Or- lando Fl. 32803 or Brian at 863-655-2190. DFWP SHighlands County Board O F of County Commissioners The following positions) close on 03/07/08 Library Asst. 423 The following positions) close on 03/14/08 Family Support Worker 1014 The following positions) close on 03/17/08 GIS Coordinator 1008 For application, minimum qualifications and full job descriptions visit us on our website at www hcbcc.net or apply at 600 S. Commerce Ave., Sebring, FL 33870. EO/e rfDtg 'rcWrpc 2 100 Help Wanted Sales Associate/Manager Trainee: Excellent customer service skills, computer skills, relia- ble transportation. Must present enthusiastic, positive professional image and be able to multi-task. Requires prolonged standing, I bending and lifting. Criminal Background check Required. Please send resume to 2227 Us 27 S C/O News Sun. Box 2210. WANTED: GIRL Friday 1 Person Office, Word, Excel, Quick Books. Fax resume : 402-9044 WANTED: MR/ MRS Clean Type Benefits/ Good Pay, detailed oriented DFWP/BKGRD CKS Apply In person 6434 US 27 S 3000 Financial Business 3 5 Opportunities SUPPLEMENTAL INCOME W/ UNLIMITED POTENTIAL! Residual Income, Tiie Free- dom, Incredible Tax Breaks! 877-282-1782 AMERICA'S FAVORITE Coffee Dist. Guaranteed Accts. Multi BILLION $ Industry Unlimited Profit Potential FREE INFO 24/7 1-800-729-4212 eBay Resellers Needed $$$$$ Weekly. Use Your Home Computer/Laptop No Experience Required Call 1-800-706-1803 X 5241 Make Money Online Make Money Daily! PT/FT. No Experience Required. Work From Home New Computer. Free info. Call Now! 1-888-609-0414 25 Loans & Savings $$$ ACCESS LAWSUIT CASH NOW!!! As seen on TV. Injury Lawsuit Dragging? Need $500-$500,000++ within 48/hrs? Low rates. APPLY NOW BY PHONE! 1-866-386-3692 $$$$GETCOM Void where prohibited by law. 3250 Loans & Savings 4080. 800-509-8527 3300 Insurance AFFORDABLE HEALTH BENEFITS From $85.90 $289.90 Monthly for Family. Includes Doctors, Dental, Hospitalization, Accident, Medical, Prescriptions, Vision, Life. Become Healthy, Call Today. Everyone's Accepted!, 800-930-1796 4000 Real Estate 4040 Homes For Sale PALM HARBOR homes 4/2 Tile floor, Energy Package, Deluxe loaded, over 2,200 Sq.Ft. 30th Anniversary Sale Special Save $15,000. Call for free Color Brochures 800-622-2832 Why Rent? It's a buyers market! Only $500 down! 3 bedroom 2 bath. You pick colors. New home $875.00 per month. Includes taxes and insurance. It's a top quality new JACOBSEN HOME. Call Bob now! 352-209-0444 408 Homes for Sale 4080 Sebring BANK FORECLOSURE Brand new Horn'e,'never lived in! 3/BD, 2/BA, 2/CG, tile floors, 1749 SQ .FT. Attractive financing offered by bank. Located @ 5731 Oak Bend Ave. $129,900. Contact Michael Clanton at 863-533-0475. NEED TO SELL 3 bd /2 ba w/ pool. Deep discount. $85,000. Needs work.Call 817-296-7641. SEB-207 & 219 Pine St. Handy man Specials, $70,000 each 080. Call 863-385-0646 or 863-835-2876. SEB-FOR SALE New townhomes, 2 units, 3/BD, 2.5/BA, 1/CG, each unit. $299,000 per building. 4 units available. Call 863-655-0311 EMssEBWx m *: Is .*.a~, Homes for Sale Sebring SEB-GOLF HAMMOCK POOL HOME, 4/BD, 4/BA, 2 car.garage, on cul de sac. Family room with fireplace, gourmet kitchen, two master suites. Great family home $399,000 Call Pete McDevitt, Coldwell Banker Highlands Properties, at 863-414-7025 or email at petemc@strato.net SEBRING- COUNTRY Estates. Brand new. 3/2/2. Tiled floor's, stainless appliances, pri- vate back yard. $159,900. call 772-359-2797 4 0 Homes for Sale S410 Subdivision. Meyer Homes Inc. 414-4075 cell. 465-7900 off. 465-7338 res. 4220 Lots for Sale Available Now Beautiful assorted lots, Owner Financing In Lake Placid & Leisure Lakes, Large acreage available in Lorida. Call Tom or Liz for more information 1-866-224-8392 SEBRING-MASSERATTI ST, Porsche, Na/arie, $22,000 OBO. Sparrow, $30,000 080. Linwood St., $17.000 OBO. call 305-743-7533 or Cell, 305-942-9737. Financing available. 4260 Acreage for Sale BUY OWNER priced to sell. Lake Placid area. 10 acres at 27, 000 each. Call John 305-815- 4150 Timeshare Resales The Cheapest way to Buy, Sell and Rent Timeshares. No Commissions or Broker Fees. Call 877-494-8246 or go to 5000 Mobile Homes 050 M.For Sale 1 & 2 BEDROOM homes avail, in Senior Adult rental park, friendly park, planned activities, close to shopping and hospital, reasonable lot rent, SWG incl. Call for info 863-385-7034 - -Dust1ian Denn is Asoit of I nth City of Sebring Employment Opportunity The City of Sebring is recruiting for the following position: REFUSE DRIVER / COLLECTOR (position title) $10.00 per hour (pay range) SOLID WASTE (department) MINIMUM QUALIFICATIONS: - Ability to operate a refuse collection truck. - Possession of a High School Diploma or GED. - Possession of a Class "B" Florida CDL. Apply to: For application contact Diane Kauffman at Sebring City Hall, 368 South Commerce Ave., Sebring, FL 33870. (863) 471-5100 Closing date for this position is Wed., March 12, 2008. Equal Opportunity Employer. We do not discriminate on the basis of race, religion, color, sex, age, nature origin or disability. Drug Free Workplace. The News-Sun 5050 Mobile Homes 505 For Sale DOUBLE WIDE mobile home, 3/BD, 2/BA. 28X52 full length carport, additional screen room, large lot, good neighborhood, like new. $84,900 OBO. call 863-453-6052 or cell-863- 443-2293. LORIDA-LAKE ISTOKPOGA 14X36, park mod- el mobile home, with dock to lake. Lot rent only $160/mo. Asking $15,000. Call 863-471- 6739 or 269-325-6739. SEBRING -OWN your own mobile Home. with lot included: 2/2, wood floors, florida room, club house, swimming pools, $57,500 Call 417-988-1228 or 863-696-2342. 1405 Abbey Ln., in Colony Point Park Sebring. SEBRING-12 X 56. 2 Bed/ 1Ba; Very good pond. Ac/ heat 10 x 20 screen porch. Shady corner lot, Valencia Family Park lot 49. S3000 cash. 863-414-1953 SEBRING-OPEN HOUSE, FRI-SAT, MAR 7-8 Mobile home park 2bd/1.5 BA, Completely furnished, carport, 55+. 863-385-0846 O |. SEBRING ADULT Park. 2BD/2BA Double wide mobile home, clean, furnished. Available Aprilist. Non smoker, pets OK. Contract. 863-446-6656 5200 Mobile Home 5 Lots for Rent DOUBLE WIDE Mobile Home for rent. 1500 sq ft. 2/2. In farm setting, $800/month.'Call Jim 863-449-0006. Owner licenced broker. 6000 Rentals 6050 Duplexes for Rent FAIRLY NEW 2/2/2, for rent. $950/mo, 1st, last, sec. 6904 Sun 'N Lake Blvd Sebring. 863- 385-7799. Immaculate 2B/2B Duplex with screened porch, central heattair, in Sebring. $750 mo. with $100 discount, if paid timely. Call 863- 273-0469 OR 863-655-5051 SEB-SUN N LAKE Duplex, 2/2, screened lanai laundry hook up, lawn service. $650/mo. Call 863-655-5426. SPRING LAKE-SPACIOUS 2/BD,2/BA,Adults preferred,non smoking, no pets, Ist, last & sec. $650/mo. 863-655-0451 001 Villas & Condos For Rent SEB-LAKEFRONT CONDO, spectacular view -of Lake Jackson from this 2/2 corner unit. Heated pool, dock. $315 per month plus wa- ter/cable/ maint fee. First, last, sec. to move in. Call John at 863-441-3320. (no kids-pets) 6200 Unfurnished 620 Apartments AP- Highlands Apts 1680 North Delaware 1/1 & 2/2 Available. Pool, Play ground. 1st & Sec. Call 863-449-0195. Castle Hill Apts of Avol.Park Accepting Applications for 1 & 2 Bedroom- mapts. Available to individuals 62 years or older, handicap/disable, regardless of age. For rental information & applications, Please Call: 863-452-6565 TDD: 1-800-840-2408 This institution is an Equal Opportunity Provider Ilamar 863-452-6565. TDD 1-800-840-2408 Esta Institucion Es De Igualdad De Oportuni- dad Al Proveedor, Y Empleador65 & $895per mo. lyr lease prorated 1st month & sec. (863)465-9151 0 =1111 6200 Unfurnished 6200 Apartments BEAUTIFUL APTS. 2/1 tile floors, central air., screen back porch, beautiful landscaping, $695 mo. Pet friendly HWY 27 S. behind Dunkin Donuts, up the hill, turn left, 3106 Medical Way, (863)446-1822 LEMON TREE APTS. Single story 1 bedrooms wipvl patio & NEW refrig, stove, washeri/dryer. WSG incl. Pets OK, quiet friendly Avon Park Community. 386-503-8953 7030 Estate Sales AVON PARK-ESTATE sale 2425 Lake Lillian Dr. Fri-Sat, Mar 7-8. 7:30AM-2PM., RELAX AT Lake Isis Villas! Luxurious 2/bd apartment. Call 863-453-2669. SEB-SUN N LAKE Fairly new, 3/BD, 2/BA, washer & dryer hookup. $850/mo., sec. de- posit, required. Call 863-314-9842. LAKE PLACID- Sylvan Shores-4BR 2BA, Large family room. New paint. New carpet. Very clean. No pets.10. LAKE PLACID -NEWER 2/BD, 2/BA, 1/car ga- rage. Sylvan shores. Very clean, screen room, appliances. Nice location. Large lot. $875/MO. No smoking. Call 863-441-2844 or 863-465- 3838 LAKE PLACID- Sun N Lake 3/2/2 Like new $795/month. $500 security deposit + 1st month to move in.1yr lease Call Mike 863- 441-0802. LAKE PLACID. Lg 2 story 2br 1.5 ba town home. Close to shopping & town. Excellent conditions. City water. $675. Reference a must. 863-465-1758 LAKE PLACID/ Placid Lakes 2/2/2, Fresh Paint, new A/C, New fridge, tile 4 street from Lake June. $775/mo. $25 application, month+ lease. Call 863-381-2752. LP-PLACID LAKES, 3/BD, 2/BA, just redone, laundry, washer, dryer, refrigator, dishwasher, microwave. carpet, verticals, windows all new. Must See! $1500 Dep., $1000/Mo. Call 863- 655-1762. RENT or BUY Huge 3/2 AVON PARK need some work. $750/mo. F/L ( owner financing) call today Danielle (863)253-9191 SEB- HOUSE for rent on Lake Istokpoga, 30,000 acre lake. Direct lake front panoramic view, remodeled 2/2, with dock. $850 per month. Call 954-683-2407.BA. Sepa- rate entrance. Both for only S750/mp Please call Jean at 863-414-0686 in Spanish call 305-304-1920 SEB-SUN N LAKE NEW 3/2/2, 2400 plus SF, breakfast room, stainless steel kitchen appli- ances,laundry hook up, lawn service $1000/mo. Call,863-655-5426. SEBRING RIDGE- Brand New 3ba /2 ba, 1 car garage. $825 mo. $500 security. First last and security. 1 years lease. (Across Florida hospital) Credit references. call 863-402-0400 SEBRING- 2BD/1BA, family rm, Lg utilities rm with w/d hookup, c/a & heat. Lg backyard, good neighborhood, off parkway, walk to Lake Jackson, $700/mo. 1st, last, $350 deposit. 863-699-1567 or 863-446-5066 6320 Seasonal Property SUN N LAKE-New house, 3/2.5 plus 2 car ga- rage, in gated community on golf course. Ex- ecutive living. Monthy or yearly. Furnished or unfurnished. $1500/$2000 OBO. Call 863- 441-4849 or 954-401-3702. 6400 Rooms for Rent AVON PARK LAKES-mature adults preferred, I 1 rm bungalow, fully furn.,Sat TV., util. incl., $125/wk + 1st, last & sec. Call 863-781-9903. DOWNTOWN SEBRING, Furnished room 4 rent in private home. All utilities included, $450/mo. or $125/WK. $300 Deposit. Perfect for retirees. Contract and home rules apply. Call 863-471-6766. 7020 Auctions ESTATE-SAT 3/8, 9AM (view 8-9) 2229 Ave A NW, Winter Haven-off Lake Howard Dr. See AuctionZip.Com (ID#1541) for list/pho- tos. FURNITURE:Dinette set; Chromcraft DR Set; Duncan Phyfe Dining Table w/6 Shieldback Chairs; Mersman Mah LR Table Trio Stands; Thomasville Credenza; Clayton Marcus Sola; Student Desk; Maple Dbl Bed; GE Office Fridge; Marantz 170W Stereo System; Pair Sofas; King BR Suite; MISC: Gold Jewelry; Mounted Sailfish;Sm Appl.; Kitchen & Garage Contents; TV; Oil Painting; Collector Plates; 1/2gal Crock Pitch- er; Old Pyrex Bowls; Books; Linens; McCoy Pine Cone Teapot & Cr/Sug; much more! PHIL RINER AUCTIONS- Estate & Business Liquidators 863-299-6031 ab282/au261 12% buyfee. Payment: Credit Cards, Checks, 2% discount for cash HAVE SOMETHING TO SELL THAT IS UNDER $250? We will run it free! Either mail to or drop it off at our office 2227 US 27 S. Sebring, FL. 33870 NO PHONE CALLS PLEASE! REFRIGERATOR-side by side, Kenmore, ice & water in door, silver/black. Paid $1200, Ask- ing $600 OBO. Call 863-453-3754. 71 40 Computers & Supplies GET A NEW COMPUTER Brand Name laptops & desktops Bad or NO Credit-No Problem Smallest weekly payments avail. Its yours NOW **GOING OUT OF BUISNESS** U- DO Ceramics Complete Line of Ceramics, Bisque, Greenware, Paint, Art supplies and Accessories. Open 3 days only. Fri 2/29, Sat 3/1, Mon 3/3 9am- 3pm. Huge wwwOnlineTidewaterTech.com DIRECT FREE 4 Room System! Checks Accepted! 250+ Channels! Starts $29.99!-620-0058 lit E 0- _T1R7 n -c HAVE bUS I THING TO SELL THAT IS UNDER $250? We will run it free! Either mail to or drop it off at our office 2227 US 27 S. Sebring, FL. 33870 NO PHONE CALLS PLEASE!, e INJURED in an ACCIDENT? Claimmay be worth $200,000+ HEART ATTACK/STROKE/CHF from AVANDIA $250,000+ Diagnosed with MESOTHELIOMA $750,000+ Call toll-free 1-877-567-8185 (24 hours) S- - Rle n- I % Open House!! oSu nday, March 2ndR 4620 DARNELL DRIVE Reich over 30 million homes with one Advertise in NANI for only $2,795 per wee For information, visit 4) h! ek! 3 1/2 horse power compressor. $150. 863-465-5386. 37 INCH TV $12500.call 863-385-9374 Call Sunday, March 2, 2008 9C Classified ads get fast results FREEZER UPRIGHT Kenmore $100. Dining Table with chairs. $150. Call 863-458-0551. INDUSTRIAL.SINGER sewing machine. Model number 281-1. Asking $200.00 call 863-655-1279 After 6prrm. ORECKUPRIGHT Vac 2006 Model XL21 Excellent Condition. $50.00 call 863-402-2285 ORGAN GEM, dbl kybd, Plays cartridges or you play. $100 OBO ph. 863-314-9249 PASLODE CORDLESS framing nailer, like new! $250 cash. Call 863-398-5194. PATIO CHAIRS- 4 New Martha Stewart / Ame- lia Island Style $185.00......863-465-1339 PATIO COCKTAIL Table. Unique!! Must see!! $65.00......863-465-1339 ROADMASTER GUARDIAN, Rock Guard with storage bracket, $250. Call 863-398-5194. SCOOTER with seat and basket. $125. Call 863-465-5386. SHOWER CHAIR with back & arms. $75. Rockwell chop saw. $50. Call 863-465-5386. SMALL FRIG- For office or Dorm. Wood grain finish, works well. $50.00 0.B.0 call 863-464- 0877 SONY DIGITAL camera, new, still in box, $150 so863-382-0504. SONY DVD/STEREO surround sound, 7 speaker floor model w/remote, $150, 863- 382-0504. SPIEGEL QUEEN Solid Wood Mission style bed with pillow top, mattress and box springs. Also, 2 matching bed side tables. $250.00 call 381-9778 or 314-0742. THREE HORSE power Generator. $150. 863- 465-5386. VITA MASTER AIR ADVANTAGE exercise bike- Good conditions. $20. call 863-382-3659 WASHER & DRYER $250. 863-458-0551 WASHER & DRYER VERY GOOD CONDI- TION 3 TO 4 YEARS OLD $200.00 FOR BOTH OR $125.00 EACH. CALL 863-471-0263. WHEEL CHAIR, excellent condition, $250. Call 863-465-5386. X-BOX CONSOLE w/controller, and 10 games, $100, 863-382-0504.. A.P.-YARD SALE, 404 MALCOLM ST., Sat./ Sun, Mar.lst + 2nd 8am-?, turn., glassware, too much to mention. 55 GAL. Plastic drums, nontoxic were in them. $8.00 each. 863-314-0238 CAPTAINS BED, twin size, from Ashley, 5 drawers, real wood, $200, 863-382-0504. CIRCULAR SAW- 7 1/4" electric $15. call 863- 464-0877 CRAFTSMAN 10" compound miter saw & stand with laser track, like new, S175 cash. Call 863-398-5194. DISHWASHER KENMORE, $50. Microwave Kenmore, $50. Call 863-458-0551. ELECTRIC LAWN mower, used once, has bagger and long cord. originally $149 .(new) Selling $75 for all. call 863-464-0877 ELECTRIC WEED Eater and Electric leaf blower, Both work well $35. call 863-464- 0877 ENTERTAINMENT CENTER-White wicker, 53" wide, shelves, 2 doors on bottom, TV included $200, Call 863-655-4825. ENTRANCE FRONT Door (Green) $40.00 Three rocking chairs (1)Large 2)Medium (3)Small $50.00 FOR ALL THREE FREEZER CHEST Kenmore, $250. Call 863- 458-0551. PUPPIES- ONLY. 6 left 2 female and 4 male (1/2 Amer. Bull dog and 1/2 Golden retriever) $50 each. (863) 523-9191 SUN CONURE PARROT, tame, talks, loves to sit on shoulders, with cage. "$600. Call 863- 382-9577 located in Sebring. WHITE TOY poodle female for sale $400. 863- 452-1805. 8050 Boats & Motors 12' JOHN Boat with 9.5 hp. Evinrude out- board. New oars & life jackets. $500 call Paul 863-230-0998. Sebring. AP-2435 LAKE LILLIAN DR.(near 7th Day Ad- ventist Church), Sat., Mar 8th, 7:30AM-2PM. Multi-Family, misc., some furniture and more! AP-2660 S. Lake DentOn Rd. Fri-Sat. Mar 7-8, 7AM-? Books, crafts, dishes, furniture, and alot of misc.! Having a Garage Sale? Make more money by reaching thou- sands of potential customers. For only $11.27 you get 5 lines for one week in the News-Sun. If your sale gets rained out, call us and we'll run it again at no additional charge. Call today! (863) 385-6155. SEB-2935 NEW LIFE WAY-Christ Fellowship Church yard sale (located behind Barnhill's) Fri & Sat., Mar. 7 & 8, 8AM-2PM. Books, dishes, clothing, household, children's and misc. items. Call 863-471-0924. SEBRING RECREATION CLUB-HUGE ANNUAL YARD SALE. 333 Pomegranate Ave., behind Sebring Police station. Fri-Sat, Mar 7-8, Fri 8Am-5PM, Sat. 8AM-3PM. Clothing, decor, furniture, hardware, electronics, something for everyone. This is an exceptional sale! SEBRING- MISCELLANEOUS Yard Sale. 50 Kingfish Dr. (BUTTONWOOD BAY) Fri+Sat. Mar,7th&8th. 8am-4pm. You Don't Want to Miss this sale!!!! THE ANNUAL FLEA MARKET at Spring Lake Presbyterian Church, Sat, Mar 8th, 8AM-1PM, Located @ 5887 US 98. Clothing, house- wares, books, toys, linens, jewelry & many other items to numerous to mention. Clothing for $5 per bag, bags provided. Bake sale & luncheon available.Come check us out! 7380 Machinery& Tools SEARS TOOL box, full of tools, 10 drawers. $900. Call 863-465-5386. 7520 Pets & Supplies 91 00 Motorcycles & ATVs 1997 HONDA SPIRIT1100, windshield pipes, bags, light-bar, pegs. $3400. Call 863-414- 3003. FOR SALE kawasaki mule. call 863-452-0393 HONDA RINCON-650, 4 wheel drive auto on fly, selectlplus standard, 222 hours, adult driven, garage kept. $3900. 863-453-6190. 9200 Trucks 1993 CHEVY Silverado, Ext. Cab 4X4, New motor, rear, tires, brakes & more. Cold air. Beautiful! $3500 Call 863-452-2191. 9 220 Utility Trailers NEW 5X8 Utility Trailers. 15inch HD Tires, starting at $725. 16FT Tan- dem Axle new tires starting at $1,090. Call 863-382-7701. 9400 Automotive Wanted Donate A Car Today To Help Children And Their Families Suffering From Cancer. Free Towing. Tax Deductible. Children's Cancer Fund of America, Inc. 1-800-469-8593 DONATE YOUR CAR-Help Disabled Children with Camp and Education. Fast, Convenient, Free Towing. Tax Deductible. Free 3- Vacation Certificate. Call Special Kids Fund 1-866-448-3865! 9450 Automotive for Sale 1991 LINCOLN continental, 6 cylinder, cold air, good tires, run good. $2500 OBO. Call 863-382-3049. 1997 SATURN S.W. 92,000 miles, garage kept one owner, motorhome ready. Asking $4000. Call 863-382-0644. CHEVEROLET 1996 single owner (87 year old woman), very low mileage, must see! Please call 863-465-0978. DODGE 2004 Neon, silver, 4door, excellent condition serviced every 3,000 miles or every 3 months. 57,000 miles, must sell. $6500- $7000. Call 863-465-5811 or 863-414-2811. Classified ads get fast results -------------------------------------------------------------------------------------------------. 'Fvrtj START MY HOME DELIVERY ASAP! S IYES. 3 MONTH L 6 MONTH L 1 YEAR Name Phone Address_ City- _eckM/CV State__________ Zip_________ Check Box:\i Check I M/C Visa # Exp. Date____ 8050 Boats & Motors 1999 SEADOO Bombardier, 3 seater + trailer $1000 OBO. Call 863-449-0056 PADDLE BOAT with electric motor, 5 passen- ger, with trailer, new tires, new Bimini top. $500 Call 863-464-0780. 8400 Recreational Vehicles NEW SURGE guard RV power protection, Model ,34750, portable 50 AMP, $300 cash. New Hughes Autoformer 50 AMP model, $398 cash. Call 863-398-5194. ROADMASTER FALCON all-terrain non-bind- ing tow bar, 60001b capacity, $600 cash. Roadmaster Brake Pro.towed car proportional braking system, $500 cash. 863-398-5194. Subscribe Today*,, Start Reading Wbat Yonr Neigbbors Are Rea'ding! I I I C The News-Sun 10C Sunday, March 2, 2008 Soeec wee (IC S 0' pf W' S Car 'ow I Saturday, March 8th, Wells Dodge Chrysler in Avon Park will be kicking off speed- week with their annual Classic Car Show. For ten consecutive years, Wells has hosted Highlands County's largest car show on the Saturday preceding the 12 hours of Sebring endurance race. . Over the years, the car show has grown to over 125 exhibited vehicles including antiques, classics, muscle cars, rods and race cars. Because the event is free of charge to both exhibitors and spectators, the show draws thousands of visitors. The show is unique in several ways. First, it is open to many classes of vehicles. It's rare that you can look at a 1926 Model T, then walk 20 yards and see a nitro blown dragster. For an extra thrill for both kids and dads alike, the race drivers will start those heart pounding, pulse racing machines and rattle the windows on the car showroom. Secondly, with no entrance free and no judging, people who have been hesitant in the past, have brought their rare vehicle for a one-time display. For example, we have had a limited production Dodge Charger of which only 500 were produced in order to meet NASCAR's requirements. Some of Chrysler's latest vehicles will also be on display including the 2009 Dodge Journey, the newest crossover vehicle in America, the 2008 Dodge SRT8 Super Bee in. Petty Blue with 425 horsepower, and the 2008 Chrysler Sebring Hardtop Convertible. This is a great family outing. 'For some it is a stroll down memory lane and for others it is a future dream. This year's car show is from 9am-2pm on Saturday March 8th. Wells Dodge Chrysler is located on US 27 between Avon Park and Sebring. Refreshments will be available. For more information, call Wells Dodge Chrysler, 453-6644. Challenger Coming To Wells Dodge Chrysler Avon Park- It has been announced that Wells Dodge Chrysler in Avon Park will be receiving one 2008 Dodge Challenger SRT8 this summer. The 2008 model will be a lim- ited addition model and will only be available in the high performance SRT8 rendition. The 2009 model will be available later in the fall and will be available with a choice of engines and transmis- sions. Following much anticipa- tion and desire to own the "first" Challenger in Highlands County the Wells dealership man- agement has decided to auction off the '08 vehicle following several weeks of showroom display. All profits above MSRP will be donated to charity. Watch the Wells Dodge Chrysler website, m for details and auction registration. BUINKW N" ADONU AWSLFIVE STARU WiJ~ S 27:SE'tWEEN AVO AKAND 'SEBR Dodg PA(& Et~iIN 453-6644 At( LCD&OHRc~TL 1 3-AK l LCD&0TECRE-104364 Wo This Special Supplement Is Sponsored By . ,,, ', , i, ;'' :' ', '''' . -". f, c '," ..;? -> . , , ,' , . ... . , r '- "" '. . 1! M '** ,, ; :* ,; ', ', *" ,, . S ,,, ,', ,: ., '; "; ,' '. ; : ? 1, .;,'^ L: ',,"' *, *.: !.., *- o- ..S ,. .* 1--;-^ w ',,'1'': ",. ^ .. , ,-' ' H h n' Couny R 'eng ,'.' Highlands County Recycling t # The News-Sun 2D 9 Su~indaiv.March 2, 2008 Market Steer Isabella Caraballo Alex Stephenson Everglades Farm Equipment KDL $3,705 $3,036 Grand Champion Reserve Grand Champion Cameron Millicevic Bailey Gornto Glades Electric Cooperative Perry Cattle $2,560 $2,632.50 Hannah Lollis Lextron $2,795 Jerry Lee Wright Tuco Peat $3,588 Jake Bryan Graham Farms Melon Sales $2,812.50 . Ashley Preston Crews Groves Inc. $2,862 Kyle Yarbrough Publix Super Markets $2,730 Meghan Lollis Atlantic Blue-Bluehead Ranch $2,752.75 Jimmy Frazier III Alan Jay Automotive Network $2,942.50 Elizabeth Tauchen Anderson Animal Clinic $2,210 Wesley Jones Canter Beefmaster $2,553.75 Keat Waldron Lykes Bros. Ranch $2,565 Jordan Fairfield Publix Super Markets $2,404 . ., .. -,, B Miranda Maness Sebring Plastic Surgery $2,536 Sara Sebring Heartland National Bank $2,857 Kate Bryan Supersweet Farms $3,723.50 Wyatt Johnson Bailey Vickers Everglades Farm Equipment Glisson Animal Supply $3,581.50 $2,368 Garrett Martinez Cole Bronson Riverside National Bank Woodys Trucking $2,767.50 $3,150 Branden Fitch Shelby Hill The Great Fruit Company Westby Corp Ranch $2,550 $2,767.50 Maktdte The News-Sun . M '. I mm:-I a mmBm Cole Overstreet Christopher Faircloth Overstreet Ranch Southern Cleaning $2,791.50 $2,939.75 ~PJL Laurent Lollis Heather Brownell Publix Super Markets Lextron $2,236 $2,818.75 L Brandon Cooper Benton Excavation $2,120 Mikell Hendry Alex Fells McKenna & Assoc. Citrus Tuck, Andy $2,206 $2,825 Blaine Albritton Lextron $2,877.50 Kelly Yarbrough Ian Munro Highlands Independent. Bank Westby Highland Nursery .$2,540 $2,524.50 Jarrett Reed Matthew Pettit Publix Super Markets Crews Groves Inc. $2,430 $2,550 Market Heifer 2006 K. E~. - m uc~~ m mIT Blake Vickers Sebring Motor Sales $2,775 Austin Gibbs HHH Farms $2,030 Grand Champion Chelsey Hughes Coulter, Dennis $1,872.50 Reserve Grand Champion Mitchell Roland Masterpiece Cattle Co. $780 Jimmy Frazier Mark Hettich Spring Lake Hardware Glisson Animal Supply $1,112.50 $1,672.50 Heather Brownell Emily Waldron Okeechobe e Livestock Market Riverside National Bank $2,342 $1,456 Keat Waldron Jerry Lee Wright Highlands Independent Bank Heartland National Bank $1.:332 $1,470 Mekenzie Hargaden Seth Cannady Sebring Motor Sales Crews Groves Inc. $1,318:.75 $2,270 Sunday, March 2, 2008 o 3D -'-"'Y FAIR Yl L,,A lf 0114 The News-Sun 4D* Sunday, March 2, 2008 FOOEIW H Rri dy ' R 6 Jayme Faircloth Brianna Hood McCall, Wiley Aarow A Contractors $1,455 $793 Sara Sebring Lephew Inc. $2,901 ' Clayton Waldron Heartland National Bank $1,551 Amy Wack Coulter, Dennis $ 1,502.50 Riley McKenna Buddy Duke Field Drainage Hancock Citrus $2,490 $1,163.75 Drew Sedlock Hancock Citrus $2,201.25 Market Hog POO0 HIGHLOl"'. IN 'i J R LIVEq ' Kasey Brown Coulttcr, Dennis $1.027.50 Clint Faircloth Paul Bohlen Short Utility Service, Inc. Bohlen, Patrick $1,404 $1,920 Alexandra Swain The Group $1,325.25 Grand Champion Cale Payne Yarbrough Tire Service 81,048 Reserve Grand Champion Kenny McGrath Mackenzie Myers Sedlock & Heston Construction Heartland Harvesting $920 $708 Celeste Breylinger Heartland National Bank $903.75 C(I e- iiime Mills Jamie Wirries Kelton Hill State Farm Alan Jay Automotive Network $555.75 $753 Amber Tindell Ashalyni Lewis Tires Plus Publix Super Markets $673.50 $609.75 erim- IHearlland Nalimoai 'iini silt) Thomas Bunton South Ridge Abstract $560 Jenna Tomblin Alan Jay Automotive Network $699 Jackson Rushlo Reithoffer Shows $526.50 The News-Sun Sunday, March 2, 2008 5D Hunter Martinez Tradewinds Power Corp. $662.75 Graysoni Caldwell Brittany Gates McKenna & Assoc. Citrus Max Duke Insurance $802.75 $508 Amy Wack Mike Knott Construction $771 Dalton Shelton Rebecca Perry T & S Harvesting Glisson Animal Supply $1,056 $532 Cheyenne Slade Bethany Alcordo Lextron Heartland Pharmacy $556 .$980 Whitney Smith Farm Credit Services '$770 Kiara Slade Nathan Greene Joe Whitmire Yarbrough Tire Service $575 $585 Brittany Townsend E.O. Koch Construction $602.50 Justin Brown McCall, Wiley $741 Teresa Ware Publix Super Markets $614.25 Chelsea Whitmire Alexis Pontius Glisson Animal Supply Supersweet Farms $560.25 $712.25 Courtney Mason Layme Faircloth Farm Credit Services Alan Jay Automotive Network $616.50 $700 Dustyn Whitmire Tradewinds Power Corp. $723.25 Chelsey Turner LaGrow Irrigation & Well Drilling $750.75 Caleb Hawkey Kelton Hill Stafe Farm $595 Rebecca Bronstein Publix Super Markets $540 Race Caldwell Lauren Montz Masterpiece Cattle Co. Farm Credit Services $735 $1,138.50. ,4~VW The News-Sun 6D Sunday, March 2, 2008 David Bunton Brianna Decotis Publix Super Markets Alan Jay Automotive Network $582.75 $728.75 Brittany Baldwin Tanner Lightsey The Group Smoak Groves Inc. $682.50 $627.75 Meghin Mercer Cash Jackson Bronson, Steve Jahna Concrete $840 $640.75 Frankie Hettich Lamar Jahna SOS Materials & Hauling Hancock Citrus $540 $612.50 2008FA MISM Mark Hettich SOS Materials & Hauling $625 Albert Townsend Megan Stein Publix Super Markets Riverside National Bank $578.25 $589.50 Lane Crosson Laye's Tire Service $931 L jff YF AI F JR LTIN' 'ier1F O o,. Katie Harvell KDL $897 Emily Waldron The Group $640.75 Leeza Freeland Chelsey Hughes Tradewinds Power Corp Publix Super Markets $776.75 $546.75 Amy Brumfield Robert Bennett Yarbrough Tire Service Publix Super Markets $569.25 $582.75 Cannon Bobo Alexandrina Delgado Delaney Fence Co. McCall, Wiley $717.75 $798 Brittany Mercer Larissa Delaney Woody's Trucking Coulter, Dennis $627.75 $577.50 Ely White Niko Tsakalos The Great Fruit Company Laye's Tire Service $660 $668.25 The News-Sun Robbi Harvell Daniel Beltre KDL HHH Farms $847.75 $660 Kacee Eddington Warren Giller Publix Super Markets HHH Farms $542.50 $555.75 jEDHl(r I ~ JR8rF Amanda Killmon Publix Super Markets $598.50 r i i FA- Andrew Dean Heartland National Bank $825 Maggie Brumfield Sarah Hunnicutt Publix Super Markets E.O. Koch Oil Co. $578.25 $728.75 Sunday, March 2, 2008 7D r-, : t!' Y rArR 1- - r~p~ ~ N Justin Bickman Glisson Animal Supply $632.50 AM6 Travis Giancola Smoak Groves Inc. $608.75 * SI.. ~ ri.p~m Josh McLean The Great Fruit Company $750.75 Christopher Cloud Sebring FFA Alumni $640 Kara Faircloth M E Stephens & Son Fruit $662.50 Maxine Copley Pam Spurlock Highlands Independent Bank Publix Super Markets $798 $517.50 Makayla Patterson Clayton Waldron Matthew Hettich Howerton Farms Inc. Smoak Groves Inc. Publix Super Markets $647.50 $728.75 $573.75 Kyle Thompson Laye's Tire Service $647.50 Matthew Cleveland D&D Automotive $700 Jarrett Prescott The Group $770 Maura Hopkins JW Harvesting $590 Anthony Hargaden Bull Gator $654.50 Mason Jahna Native Ag Services $587.50 Randy Richardson Jahna Concrete $622.50 Susan Brumfield Michael Bickman Brandon Bennett Publix Super Markets Sebring Motor Sales The Steel Products $625.50 $537.75 $857.50 Brad Torres Woody's Trucking $597.50 Brittani Stopko Lephew Inc. $573.75 8D Sunday, March 2, 2008 The News-Sun ... -.. .., .. . .. / .., ...VI : .t "," ',.:.'- i .7; ., : 4r,. A-7 Its xS t S 9 Aluminum Cans Shredded Paper _. _..,-7ineS MaA\t Cardboard Steel Cans -0 a I ~ 'r of, 6 ~-I3 A _ ,'.s V"-.', ql "N k I '.,i'J:,'. '.. -':, AlPpw Applu OMW)* I I I Contact Us | Permissions | Preferences | Technical Aspects | Statistics | Internal | Privacy Policy © 2004 - 2010 University of Florida George A. Smathers Libraries.All rights reserved. Acceptable Use, Copyright, and Disclaimer Statement Last updated October 10, 2010 - - mvs | https://ufdc.ufl.edu/UF00028423/00495 | CC-MAIN-2020-50 | refinedweb | 54,295 | 76.82 |
Has anyone had success with updating data sources in ArcGIS Pro with using Python?...
I have not used Python in ArcGIS Pro and have not gotten this to work, so I'm certain its user error on my part.
Can you share any code?
Are you running the code from within the python window within Pro?
That is how the "CURRENT" project is determined.
If you are running it from an external python ide, then that is a different issue
Yes, I am attempting to run it within the python window within the Pro project. I'm trying at this point to just get the dictionary to return on the project - which is why I thought that using the Python window in pro was the best option. I admit its been while since I've had to use Python, so I ran through some of the tutorials & documents to get caught up to speed, but I'm still having an issue with a basic script.
This is the code from the article -
import arcpy, pprint
p = arcpy.mp.ArcGISProject('current')
m = p.listMaps()[0]
l = m.listLayers()[0]
pprint.pprint(l.connectionProperties)
aprx = arcpy.mp.ArcGISProject("CURRENT")
try some other print statements like
print(m)
print(l)
does that work? you arent showing anything that is returned
Here is one I have used but the layer has to be in the same folder.
project = arcpy.mp.ArcGISProject('CURRENT') layer1 = project.listMaps()[0] lyr = layer1.listLayers('HOMES')[0] arcpy.env.workspace = os.path.dirname(project.filePath) wp = os.path.dirname(project.filePath) #lyr1 = project.listLayers("SUBJECT_PROPERTY")[0] try: cp = lyr.connectionProperties cp['connection_info']['database'] = wp cp['dataset'] = 'HOMES2.shp' lyr.updateConnectionProperties(lyr.connectionProperties, cp) except: pass | https://community.esri.com/t5/python-questions/updating-and-fixing-data-sources/td-p/1036004 | CC-MAIN-2021-25 | refinedweb | 285 | 60.01 |
I have run into a couple issues with customers that are unable to or unwilling to create DNS Zone of Public namespace internally into their AD environment.
In order to get Automatic configuration to work we need to create a SRV Records or a fall back A Record. DNS Records that Office Communicator look at for Automatic Configuration are as follows.
DNS Records (These records are not in any specific order)
- _sipinternaltls._tcp.domain.com
- _sipinternal._tcp.domain.com
- _sip._tls.domain.com
- _sip._tcp.domain.com
- sip.domain.com
A typical SRV Record for OCS is configured as below.
This is where the problem starts to come in. The AD Domain is corporate.contoso.local and your SIP URI is first.last@contoso.com to match your primary SMTP domain (email address). In most environments contoso.com is managed by Public DNS Servers and is not available from the internal AD DNS Servers. One option is to create this namespace internally. This works for a lot of companies, but some organizations do not want to manage Split DNS.
The requirement for this is do to how Communicator looks for your Office Communication Server. When a user logs in with first.last@contoso.com, Communicator starts its built in DNS Queries and will search for the above mentioned DNS Records with the domain portion of the users SIP URI. This can become a problem for some Organizations that do not have their Public namespace in their internal AD DNS.
Communicator cannot tell the difference between “Internal or External” SRV Records. So if you create a _sipinternaltls._tcp.contoso.com record in your external dns zone, this will take care of users logging into your internal OCS Pool, but users externally will also use this record and fail to login, because they will be unable to reach your internal pool server.
The following outlines a way to create your SRV and Host records internally without having to manage Split DNS.
First we need to create a new dns zone that mimics the SRV Record Domain. The finished domain will look like below.
Now that the SRV Domain has been created we will create the SRV Record in the domain. Since the zone was created with _tcp when we create the record it will create it in the root of this zone.
You can see the record _sipinternaltls._tcp.contoso.com has been created in the root of the _tcp.contoso.com zone.
Last step is to create the the host record you used when creating the SRV Record. In this scenario we used ocs.contoso.com. Unfortunately we can not just create this host record in the SRV Zone we created earlier. If we did create the host record in this zone it would become ocs._tcp.contoso.com which is not where the SRV record we created points to. We will create a new zone as the host record.
Now we will create a blank host record in this zone that points to the OCS Server. This will use the Parent (Zone Name) for this record.
That is it. Now you have created a SRV & Host Record in your internal AD DNS with out having to manage your Public DNS Records internally.
##### UPDATE ######
It was brought to my attention today, the below configuration does not work if you have non-window clients. I will post the network traces to why this will not work with non-windows clients soon. But in the meantime, if you have non-window clients Doug’s blog will help create the “Split-Brain DNS” for this scenario.
#################
PingBack from
A lot has been written about the way that Microsoft Office Communicator uses DNS to automatically discover | https://blogs.technet.microsoft.com/gclark/2009/05/02/ocs-dns-automatic-configuration-when-split-dns-is-not-an-option/ | CC-MAIN-2019-30 | refinedweb | 621 | 65.62 |
.NET Interview Questions – Part 3
1.What is an extender class?
An extender class allows you to extend the functionality of an existing control. It is used in Windows forms applications to add properties to controls.A demonstration of extender classes can be found over here.
2.What is inheritance?
Inheritance represents the relationship between two classes where one type derives functionality from a second type and then extends it by adding new methods, properties, events, fields and constants.
C# support two types of inheritance:
· Implementation inheritance
· Interface inheritance
3.
4.
5.How do you prevent a class from being inherited?
In VB.NET you use the NotInheritable modifier to prevent programmers from using the class as a base class. In C#, use the sealed keyword.
6.
7.Can you use multiple inheritance in .NET?
.NET supports only single inheritance. However the purpose is accomplished using multiple interfaces.
8.
9..
11.What is an Interface?
An interface is a standard or contract that contains only the signatures of methods or events. The implementation is done in the class that inherits from this interface. Interfaces are primarily used to set a common standard or contract.
12.
13.What is business logic?
It is the functionality which handles the exchange of information between database and a user interface.
14.What is a component?
Component is a group of logically related classes and methods. A component is a class that implements the IComponent interface or uses a class that implements IComponent interface.
15.What is a control?
A control is a component that provides user-interface (UI) capabilities.
16.What are the differences between a control and a component?
The differences can be studied over here.
17.
18.What is the global assembly cache (GAC)?
GAC is a machine-wide cache of assemblies that allows .NET applications to share libraries. GAC solves some of the problems associated with dll’s (DLL Hell).
19.What is a stack? What is a heap? Give the differences between the two?
Stack is a place in the memory where value types are stored. Heap is a place in the memory where the reference types are stored.
20.What is instrumentation?
It is the ability to monitor an application so that information about the application’s progress, performance and status can be captured and reported.
21.What is code review?
The process of examining the source code generally through a peer, to verify it against best practices.
22.What is logging?
Logging is the process of persisting information about the status of an application.
23.What are mock-ups?
Mock-ups are a set of designs in the form of screens, diagrams, snapshots etc., that helps verify the design and acquire feedback about the application’s requirements and use cases, at an early stage of the design process.
24.What is a Form?
A form is a representation of any window displayed in your application. Form can be used to create standard, borderless, floating, modal windows.
25.What is a multiple-document interface(MDI)?
A user interface container that enables a user to work with more than one document at a time. E.g. Microsoft Excel.
26.What is a single-document interface (SDI) ?
A user interface that is created to manage graphical user interfaces and controls into single windows. E.g. Microsoft Word
27.What is BLOB ?
A BLOB (binary large object) is a large item such as an image or an exe represented in binary form.
28.What is ClickOnce?
ClickOnce is a new deployment technology that allows you to create and publish self-updating applications that can be installed and run with minimal user interaction.
29.What is object role modeling (ORM) ?
It is a logical model for designing and querying database models. There are various ORM tools in the market like CaseTalk, Microsoft Visio for Enterprise Architects, Infagon etc.
30.What is a private assembly?
A private assembly is local to the installation directory of an application and is used only by that application.
31.What is a shared assembly?
A shared assembly is kept in the global assembly cache (GAC) and can be used by one or more applications on a machine.
32.
33.What are design patterns?
Design patterns are common solutions to common design problems.
34.What is a connection pool?
A connection pool is a ‘collection of connections’ which are shared between the clients requesting one. Once the connection is closed, it returns back to the pool. This allows the connections to be reused.
35.What is a flat file?
A flat file is the name given to text, which can be read or written only sequentially.
36.Where do custom controls reside?
In the global assembly cache (GAC).
37.What is a third-party control ?
A third-party control is one that is not created by the owners of a project. They are usually used to save time and resources and reuse the functionality developed by others (third-party).
38.What is a binary formatter?
Binary formatter is used to serialize and deserialize an object in binary format.
39.What is Boxing/Unboxing?
Boxing is used to convert value types to object.
E.g. int x = 1;
object obj = x ;
Unboxing is used to convert the object back to the value type.
E.g. int y = (int)obj;
Boxing/unboxing is quiet an expensive operation.
40.What is a COM Callable Wrapper (CCW)?
CCW is a wrapper created by the common language runtime(CLR) that enables COM components to access .NET objects.
41.What is a Runtime Callable Wrapper (RCW)?
RCW is a wrapper created by the common language runtime(CLR) to enable .NET components to call COM components.
42.What is a digital signature?
A digital signature is an electronic signature used to verify/gurantee the identity of the individual who is sending the message.
43.What is garbage collection?
Garbage collection is the process of managing the allocation and release of memory in your applications. Read this article for more information.
44.What is globalization?
Globalization is the process of customizing applications that support multiple cultures and regions.
45.What is localization?
Localization is the process of customizing applications that support a given culture and regions.
46”.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.What is a dynamic assembly?
A dynamic assembly is created dynamically at run time when an application requires the types within these assemblies.
59.
60.
61.
62.What is CLS?
Common Language Specification (CLS) defines the rules and standards to which languages must adhere to in order to be compatible with other .NET languages. This enables C# developers to inherit from classes defined in VB.NET or other .NET compatible languages.
63assembly OR C:WINNTassembly) (shfusion.dll tool)
· gacutil -i abc.dll
64.What is the caspol.exe tool used for?
The caspol tool grants and modifies permissions to code groups at the user policy, machine policy, and enterprise policy levels.
65.What is a garbage collector?
A garbage collector performs periodic checks on the managed heap to identify objects that are no longer required by the program and removes them from memory.
66.
67
68.
69.
70.How can you detect if a viewstate has been tampered?
By setting the EnableViewStateMac to true in the @Page directive. This attribute checks the encoded and encrypted viewstate for tampering.
71.Can I use different programming languages in the same application?
Yes. Each page can be written with a different programming language in the same application. You can create a few pages in C# and a few in VB.NET.
72.
73.How do you secure your connection string information?
By using the Protected Configuration feature.
74.How do you secure your configuration files to be accessed remotely by unauthorized users?
ASP.NET configures IIS to deny access to any user that requests access to the Machine.config or Web.config files.
75.What is Ilasm.exe used for?
Ilasm.exe is a tool that generates PE files from MSIL code. You can run the resulting executable to determine whether the MSIL code performs as expected.
76.What is Ildasm.exe used for?
Ildasm.exe is a tool that takes a PE file containing the MSIL code as a parameter and creates a text file that contains managed code.
77.What is the ResGen.exe tool used for?
ResGen.exe is a tool that is used to convert resource files in the form of .txt or .resx files to common language runtime binary .resources files that can be compiled into satellite assemblies.
78.How can I configure ASP.NET applications that are running on a remote machine?
You can use the Web Site Administration Tool to configure remote websites..
80.I have created a configuration setting in my web.config and have kept it at the root level. How do I prevent it from being overridden by another web.config that appears lower in the hierarchy?
By setting the element’s Override attribute to false.
81.
82.Can you change a Master Page dynamically at runtime? How?
Yes. To change a master page, set the MasterPageFile property to point to the .master page during the PreInit page event.
83.How do you apply Themes to an entire application?
By specifying the theme in the web.config file.
Eg: <configuration>
<system.web>
<pages theme=”BlueMoon” />
</system.web>
</configuration>
84.How do you exclude an ASP.NET page from using Themes?
To remove themes from your page, use the EnableTheming attribute of the Page directive.
85.Your client complains that he has a large form that collects user input. He wants to break the form into sections, keeping the information in the forms related. Which control will you use?
The ASP.NET Wizard Control.
86.Do webservices support data reader?
No. However it does support a dataset.
87.
88.What happens when you change the web.config file at run time?
ASP.NET invalidates the existing cache and assembles a new cache. Then ASP.NET automatically restarts the application to apply the changes.
89.Can you programmatically access IIS configuration settings?
Yes. You can use ADSI, WMI, or COM interfaces to configure IIS programmatically.
90.What are the differences between ASP.NET 1.1 and ASP.NET 2.0?
A comparison chart containing the differences between ASP.NET 1.1 and ASP.NET 2.0 can be found over here.
91.
92.
93.
94.
95.How do you disable AutoPostBack?
Hence the AutoPostBack can be disabled on an ASP.NET page by disabling AutoPostBack on all the controls of a page. AutoPostBack is caused by a control on the page.
96.What are the different code models available in ASP.NET 2.0?
There are 2 code models available in ASP.NET 2.0. One is the single-file page and the other one is the code behind page.
97.Which base class does the web form inherit from?
Page class in the System.Web.UI namespace.
98.
99.
100.
101.
102.
103.How do you indentify that the page is post back?
By checking the IsPostBack property. If IsPostBack is True, the page has been posted back.
104.
105.How is a Master Page different from an ASP.NET page?
The MasterPage has a @Master top directive and contains ContentPlaceHolder server controls. It is quiet similar to an ASP.NET page.
106.How do you attach an exisiting page to a Master page?
By using the MasterPageFile attribute in the @Page directive and removing some markup.
107.Where do you store your connection string information?
The connection string can be stored in configuration files (web.config).
108FrameworkVersionCONFIG.
There can be multiple web.config files in an application nested at different hierarchies. However there can be only one machine.config file on a web server.
109.How do you set the title of an ASP.NET page that is attached to a Master Page?
By using the Title property of the @Page directive in the content page. Eg:
<@Page MasterPageFile=”Sample.master” Title=”I hold content” %>
110.
111.What are Themes?
Themes are a collection of CSS files, .skin files, and images. They are text based style definitions and are very similar to CSS, in that they provide a common look and feel throughout the website.
112.
113.What is the difference between Skins and Css files?
Css is applied to HTML controls whereas skins are applied to server controls.
114.What is a User Control?
User controls are reusable controls, similar to web pages. They cannot be accessed directly.
115.Explain briefly the steps in creating a user control?
· Create a file with .ascx extension and place the @Control directive at top of the page.
· Included the user control in a Web Forms page using a @Register directive
116.
117.
118.
119.What method do you use to explicitly kill a users session?
Session.Abandon().
120. | http://www.lessons99.com/dot-net-interview-questions.html | CC-MAIN-2019-04 | refinedweb | 2,155 | 61.83 |
On Sat, 15 Sep 2018 at 08:47:19 -0700, Sean Whitton wrote: > On Fri 10 Aug 2018 at 08:23AM +0200, Michael Biebl wrote: > > There is also: > > 65536-4294967293: > > Dynamically allocated user accounts. By default adduser will not > > allocate UIDs and GIDs in this range, to ease compatibility with legacy > > systems where uid_t is still 16 bits. > > > > I'm not sure if it would be more suitable to pick the DynamicUser ids > > from this range. > > This strikes me as suitable. We could either just change systemd's > configuration, or allocate a section of that range to systemd. Beware that if systemd dynamic users are above the 16-bit boundary, then they won't work well with systemd-nspawn and other container systems that give a 16-bit uid range to each container (mapping uids N+0 to N+65535 in the top-level uid namespace to uids 0 to 65535 in the container's uid namespace, where N is large; so when systemd inside the container thinks it's allocating uid 64923 to a service, it's really uid N+64923 in the top-level init namespace). That's a useful technique because it assigns a unique uid to each process that ought to be protected from other processes, which protects both the host system and other containers from a compromised container. smcv | https://lists.debian.org/debian-policy/2018/09/msg00054.html | CC-MAIN-2020-10 | refinedweb | 224 | 58.66 |
This chapter will look at the basic concepts you need for network programming:
It is impossible to tell you how to program applications for a network in just a few pages. Indeed, the best reference to network programming available takes almost 800 pages in the first volume alone! If you really want to do network programming, you
need a lot of experience with compilers, TCP/IP, network operating systems, and a great deal of patience.
For information on details of TCP/IP, check the guide Teach Yourself TCP/IP in 14 Days by Tim Parker (Sams).
Network programming relies on the use of sockets to accept and transmit information. Although there is a lot of mystique about sockets, the concept is actually very simple to understand.
Most applications that use the two primary network protocols, Transmission Control Protocol (TCP) or User Datagram Protocol (UDP) have a port number that identifies the application. A port number is used for each different application the machine is
handling, so it can keep track of them by numbers instead of names. The port number makes it easier for the operating system to know how many applications are using the system and which services are available.
In theory, port numbers can be assigned on individual machines by the system administrator, but some conventions have been adopted to allow better communications. This convention enables the port number to identify the type of service that one system is
requesting from another. For this reason, most systems maintain a file of port numbers and their corresponding services.
Port numbers are assigned starting from the number 1. Normally, port numbers above 255 are reserved for the private use of the local machine, but numbers between 1 and 255 are used for processes requested by remote applications or for networking
services.
Each network communications circuit that goes into and out of the host computer's TCP application layer is uniquely identified by a combination of two numbers, together called the socket. The socket is composed of the IP address of the machine and the
port number used by the TCP software.
Because there are at least two machines involved in network communications, there will be a socket on both the sending and receiving machine. The IP address of each machine is unique, and the port numbers are unique to each machine, so socket numbers
will also be unique across the network. This enables an application to talk to another application across the network based entirely on the socket number.
The sending and receiving machines maintain a port table that lists all active port numbers. The two machines involved have reversed entries for each session between the two, a process called binding. In other words, if one machine has the source port
number 23 and the destination port number set at 25, then the other machine will have its source port number set at 25 and the destination port number set at 23.
Linux supports BSD style socket programming. Both connection-oriented and connectionless types of sockets are supported. In connection-oriented communication, the server and client establish a connection before any data is exchanged. In connectionless
communication, data is exchanged as part of a message. In either case, the server always starts up first, binds itself to a socket, and listens to messages. How the server attempts to listen depends on the type of connection for which you have programmed
it.
You need to know about only a few system calls:
We will cover these in the following examples.
The socket() system call creates a socket for the client or the server. The socket function is defined as follows:
#include<sys/types.h>
#include<sys/socket.h>
int socket(int family, int type, int protocol)
For Linux, you will have family = AF_UNIX. The type is either SOCK_STREAM for reliable, though slower communications or SOCK_DGRAM for faster, but less reliable communications. The protocol should be IPPROTO_TCP for SOCK_STREAM and IPPROTO_UDP for
SOCK_DGRAM.
The return value from this function is -1 if there was an error; otherwise, it's a socket descriptor. You will use this socket descriptor to refer to this socket in all subsequent calls in your program.
Sockets are created without a name. Clients use the name of the socket in order to read or write to it. This is where the bind function comes in.
The bind() system call assigns a name to an unnamed socket.
#include<sys/types.h>
#include<sys/socket.h>
int bind(int sockfd, struct sockaddr *saddr, int addrlen)
The first item is a socket descriptor. The second is a structure with the name to use, and the third item is the size of the structure.
Now that you have bound an address for your server or client, you can connect() to it or listen on it. If your program is a server, then it sets itself up to listen and accept connections. Let's look at the function available for such an endeavor.
The listen() system call is used by the server. It is defined as follows:
#include<sys/types.h>
#include<sys/socket.h>
int listen(int sockfd, int backlog);
The sockfd is the descriptor of the socket. The backlog is the number of waiting connections at one time before rejecting any. Use the standard value of 5 for backlog. A returned value of less than 1 indicates an error.
If this call is successful, you can accept connections.
The accept() system call is used by a server to accept any incoming messages from clients' connect() calls. Be aware that this function will not return if no connections are received.
#include<sys/types.h>
#include<sys/socket.h>
int accept(int sockfd, struct sockaddr *peeraddr, int addrlen)
The parameters are the same as that for the bind call, with the exception that the peeraddr points to information about the client that is making a connection request. Based on the incoming message, the fields in the structure pointed at by peeraddr are
filled out.
So how does a client connect to a server. Let's look at the connect() call.
The connect() system call is used by clients to connect to a server in a connection-oriented system. This connect() call should be made after the bind() call.
#include<sys/types.h>
#include<sys/socket.h>
int connect(int sockfd, struct sockaddr *servsaddr, int addrlen)
The parameters are the same as that for the bind call, with the exception that the servsaddr points to information about the server that the client is connecting to. The accept call creates a new socket for the server to work with the request. This way
the server can fork() off a new process and wait for more connections. On the server side of things, you would have code that looks like that shown in Listing 54.1.
Listing 54.1. Server side for socket-oriented protocol.
#include <sys/types.h>
#include <sys/socket.h>
#include <linux/in.h>
#include <linux/net.h>
#define MY_PORT 6545");
}
listen(sockfd,5);
for (;;)
{
/* wait here */
newfd=accept(sockfd,(struct sockaddr *)&clientInfo,
sizeof(struct sockaddr);
if (newfd < 0)
{
myabort("Unable to accept on socket");
}
if ((cpid = fork()) < 0)
{
myabort("Unable to fork on accept");
}
else if (cpid == 0) { /* child */
close(sockfd); /* no need for original */
do_your_thing(newfd);
exit(0);
}
close(newfd); /* in the parent */
}
}
In the case of connection-oriented protocols, the server performs the following functions:
Now let's look at the client side of things in Listing 54.2.
Listing 54.2. Client side function.
#include <sys/types.h>
#include <sys/socket.h>
#include <linux/in.h>
#include <linux/net.h>
#define MY_PORT 6545
#define MY_HOST_ADDR "204.25.13.1"
int getServerSocketId()
{
int fd, len;
struct sockaddr_in unix_addr;
/* create a Unix domain stream socket */
if ( (fd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0)
{
return(-1);
}
/* fill socket address structure w/our address */
memset(&unix_addr, 0, sizeof(unix_addr));
unix_addr.sin_family = AF_INET;
/* convert internet address to binary value*/
unix_addr.sin_addr.s_addr = inet_addr(MY_HOST_ADDR);
unix_addr.sin_family = htons(MY_PORT);
if (bind(fd, (struct sockaddr *) &unix_addr, len) < 0)
return(-2);
memset(&unix_addr, 0, sizeof(unix_addr));
if (connect(fd, (struct sockaddr *) &unix_addr, len) < 0)
return(-3);
return(fd);
}
The client for connection-oriented communication also takes the following steps:
Now let's consider the case of a connectionless exchange of information. The principle on the server side is different from the connection-oriented server side in that the server calls recvfrom() instead of the listen and accept calls. Also, to reply to
messages, the server uses the sendto() function call. See Listing 54.3 for the server side.
Listing 54.3. The server side.
#include <sys/types.h>
#include <sys/socket.h>
#include <linux/in.h>
#include <linux/net.h>
#define MY_PORT 6545
#define MAXM 4096
char mesg[MAXM];");
}
for (;;)
{
/* wait here */
n = recvfrom(sockfd, mesg, MAXM, 0,
(struct sockaddr *)&clientInfo,
sizeof(struct sockaddr));
doSomethingToIt(mesg);
sendto(sockfd,mesg,n,0,
(struct sockaddr *)&clientInfo,
sizeof(struct sockaddr));
}
}
As you can see, the two function calls to process each message make this an easier implementation than a connection-oriented one. However, you have to process each message one at a time because messages from multiple clients can be multiplexed together.
In a connection-oriented scheme, the child process always knows where each message originated.
The client does not have to call the connect() system call either. Instead, the client can call the sendto() function directly. The client side is identical to the server side, with the exception that the sendto call is made before the recvfrom() call.
#include <sys/types.h>
#include <sys/socket.h>
int sendto((int sockfd,
const void *message__, /* the pointer to message */
int length, /* of message */
unsigned int type, /* of routing, leave 0 *
const struct sockaddr * client, /* where to send it */
int length ); /* of sockaddr);
If you are a BSD user, use the sendto() call, do not use sendmsg() call. The sendto() call is more efficient.
If you are a BSD user, use the sendto() call, do not use sendmsg() call. The sendto() call is more efficient.
Any errors are indicated by a return value of -1. Only local errors are detected.
The recvfrom() system call is defined as follows:
#include <sys/types.h>
#include <sys/socket.h>
int recvfrom(int sockfd,
const void *message__, /* the pointer to message */
int length, /* of message */
unsigned int flags, /* of routing, leave 0 *
const struct sockaddr * client, /* where to send it */
int length ); /* of sockaddr);
If a message is too long to fit in the supplied buffer, the extra bytes are discarded. The call may return immediately or wait forever, depending on the type of the flag being set. You can even set time out values. Check the man pages for recvfrom for
more information.
There you have it: the very basics of how to program applications to take advantage of the networking capabilities under Linux. We have not even scratched the surface of all the intricacies of programming for networks. A good starting point for more
detailed information would be UNIX Network Programming by W. Richard Stevens, published in 1990 by Prentice Hall. This guide is a classic used in universities and is, by far, the most detailed guide to date.
When two processes want to share a file, the danger exists that one process might affect the contents of the file, and thereby affect the other process. For this reason, most operating systems use a mutually exclusive principle: When one process has a
file open, no other process can touch it. This is called file locking.
The technique is simple to implement. What usually happens is that a "lock file" is created with the same name as the original file but with the extension .lock, which tells other processes that the file is unavailable. This is how many Linux
spoolers, such as the print system and UUCP, implement file locking. It is a brute-force method, perhaps, but effective and easy to program.
Unfortunately, this technique is not good when you must have several processes access the same information quickly because the delays waiting for file opening and closing can grow to be appreciable. Also, if one process doesn't release the file
properly, other processes can hang there, waiting for access.
For this reason, record locking is sometimes implemented. With record locking, a single part of a larger file is locked to prevent two processes from changing its contents at the same time. Record locking enables many processes to access the same file
at the same time, each updating different records within the file, if necessary. The programming necessary to implement record locking is more complex than file locking, of course.
Normally, to implement record locking, you use a file offset, or the number of characters from the beginning of the file. In most cases, a range of characters are locked, so the program has to note the start of the locking region and the length of it,
and then store that information somewhere other processes can examine it.
Writing either file locking or record locking code requires a good understanding of the operating system, but is otherwise not difficult, especially because there are thousands of programs readily available from the Internet, in networking programming
guides, and on BBSes to examine for example code.
Network programming always involves two or more processes talking to each other (interprocess communications), so the way in which processes communicate is vitally important to network programmers. Network programming differs from the usual method of
programming in a few important aspects. A traditional program can talk to different modules (or even other applications on the same machine) through global variables and function calls. That doesn't work across networks.
A key goal of network programming is to ensure that processes don't interfere with each other. Otherwise, systems can get bogged down or lock up. Therefore, processes must have a clean and efficient method of communicating. UNIX is particularly strong
in this regard, because many of the basic UNIX capabilities, such as pipes and queues, are used effectively across networks.
Writing code for interprocess communications is quite difficult compared to single application coding. If you want to write this type of routine, you should study sample programs from a network programming guide or a BBS site to see how they accomplish
the task.
Few people need to write network applications, so the details of the process are best left to those who want them. Experience and lots of examples are the best way to begin writing network code, and mastering the skills can take many years.
ver is compiled and linked to the kernel,
and then placed in the /dev directory. (See Chapter 52, "Working with the Kernel," for more information on adding to the Linux kernel.) Finally, the system is rebooted and the device driver tested. Obviously, changes to
the driver require the process to be repeated, so device driver debugging is an art that minimizes the number of machine reboots!.
You can simplify debugging device drivers in many cases by using judicious printf or getchar statements to another device, such as the console. Statements like printf and getchar enable you to set up code that traces the execution steps of the device
driver. If you are testing the device when logged in as root, the adb debugger can be used to allow examination of the kernel's memory while the device driver executes. Careful use of adb allows direct testing of minor changes in variables or addresses,
but be careful as incorrect use of adb may result in system crashes!
One of the most common problems with device drivers (other than faulty coding) is the loss of interrupts or the suspension of a device while an interrupt is pending. This causes the device to hang. A time-out routine is included in most device drivers
to prevent this. Typically, if an interrupt is expected and has not been received within a specified amount of time, the device is checked directly to ensure the interrupt was not missed. If an interrupt was missed, it can be simulated by code. You can use
the spl functions during debugging usually helps to isolate these problems.
Block mode-based device drivers are generally written using interrupts. However, more programmers are now using polling for character mode devices. Polling means the device driver checks at frequent intervals to determine the device's status. The device
driver doesn't wait for interrupts but this does add to the CPU overhead the process requires. Polling is not suitable for many devices, such as mass storage systems, but for character mode devices it can be of benefit. Serial devices generally are polled
to save interrupt overhead.
A 19,200 baud terminal will cause approximately 1,920 interrupts per second, causing the operating system to interrupt and enter the device driver that many times. By replacing the interrupt routines with polling routines, the interval between CPU
demands can be decreased by an order of magnitude, using a small device buffer to hold intermediate characters generated to or from the device. Real time devices also benefit from polling, since the number of interrupts does not overwhelm the CPU. If you
want to use polling in your device drivers, you should read one of the guides dedicated to device driver design, as this is a complex subject.
Most Linux users will never have to write a device driver, as most devices you can buy already have a device driver available. If you acquire brand new hardware, or have the adventurous bug, you may want to try writing a driver, though.
Device drivers are not really difficult to write (as long as you are comfortable coding in a high-level language like C), but drivers tend to be very difficult to debug. The device driver programmer must at all times be careful of impacting other processes
or devices. However, there is a peculiar sense of accomplishment when a device driver executes properly. | http://softlookup.com/tutorial/redhat/rhl54.asp | CC-MAIN-2018-26 | refinedweb | 2,991 | 54.32 |
Theory of Operations
I am writing this page to help others understand the use, operations and limitations of this plugin.
Groups
- One can specify a group which users must be a member of in order to log in.
- Additionally, one may specify an admin group. If a user is a member of the admin group, then they will automatically be granted the TRAC_ADMIN permission.
- Finally, Directory groups are extended into the trac namespace. They can be used to extend permissions by group.
- directory groups are prefixed by @
- group names are lowercase and spaces are replaced with underscores.
Searching
Groups are now searched using a reverse hierarchy methodology:
- Users DN is extracted based on the username
- All usergroups the user belongs to is extracted by searching for Member=$dn
- User groups are then searched for any with type objectClass=group and belonging to the groups DN and added to the list.
See GroupManagement for more details.
Caching
Given the expense of traversing the network for authorizations, a two-stage cache has been implemented.
- Data is cached into memory for quick lookups on repeat operations.
- Data is also cached in the database so that lookups can pass between instances of python w/o requiring going to the network.
See: CacheManagement for details. | http://trac-hacks.org/wiki/DirectoryAuthPlugin/TheoryOfOperation?version=2 | CC-MAIN-2014-41 | refinedweb | 210 | 55.44 |
accept - accept a connection on a socket
#include <sys/types.h>
#include <sys/socket.h>
int accept(int s, struct sockaddr *addr, int *addrlen);
The argument s is a socket that has been created with
socket(2), bound to an address with bind(2), and is lis-
tening for connections after a listen(2). The accept
argument extracts the first connection request on the
queue of pending connections, creates a new socket with
the same properties of s and allocates a new file descrip-
tor for the socket. If no pending connections are present
on the queue, and the socket is not marked as non-block-
ing, accept blocks the caller until a connection is pre- param-
eter is determined by the domain in which the communica-
tion is occurring. The addrlen is a value-result parame-
ter; confirma-
tion, such as ISO or DATAKIT, accept can be thought of as
merely dequeuing the next connection request and not
implying confirmation. Confirmation can be implied by a
normal read or write on the new file descriptor, and
rejection can be implied by closing the new socket.
One can obtain user connection request data without con-
firming the connection by issuing a recvmsg(2) call with
an msg_iovlen of 0 and a non-zero msg_controllen, or by
issuing a getsockopt(2) request. Similarly, one can pro-
vide user connection rejection information by issuing a
sendmsg(2) call with providing only the control informa-
tion, or by calling setsockopt(2).
The call returns -1 on error. If it succeeds, it returns
a non-negative integer that is a descriptor for the
accepted socket.WOULDBLOCK
The socket is marked non-blocking and no connec-
tions are present to be accepted.
The accept function appeared in BSD 4.2.
bind(2), connect(2), listen(2), select(2), socket(2) | http://www.linuxonlinehelp.com/man/accept.html | crawl-001 | refinedweb | 305 | 51.07 |
I can't figure out why the Gang of Four book used C++ class templates for simple commands in the command pattern. I understand how they could be used, but the why escapes me. Maybe it's a C++ thing.
Last night I was able to use Dart callback functions as simple commands. The GoF suggested callbacks as an alternative for commands, so I assume that there is no way to do something similar in C++. What I do not understand is why they needed a class template to generate classes for simple commands. Why not a single, simple class instead of class templates?
In the command pattern, the command links actions with receivers, so a very simple command might look something like:
class SimpleCommand implements Command { var receiver; var action; List args; SimpleCommand(this.receiver, this.action, [this.args]); void call() { // Call the action on the receiver here... } }To make that work in Dart, I need to use mirrors so that I can reflect on an object and invoke arbitrary methods:
import 'dart:mirrors'; // ... class SimpleCommand implements Command { var receiver; Symbol action; List args; SimpleCommand(this.receiver, this.action, [this.args]); void call() { reflect(receiver).invoke(action, this.args); } }With that, I can create a simple command on the robot that I have been using as an example:
I can then assign that command to an invoker (a button in this example) and tell the invoker to... invoke:I can then assign that command to an invoker (a button in this example) and tell the invoker to... invoke:
// ... var moveNorth = new MoveNorthCommand(robot), // ... beSad = new SimpleCommand(robot, #say, ['Boo hoo.']);
That results in a sad robot:That results in a sad robot:
// ... var btnUp = new Button("Up", moveNorth); // ... var btnTease = new Button("Tease Robot", beSad); btnUp.press(); btnTease.press(); // ...
[pressed] Up I am moving Direction.NORTH [pressed] Tease Robot Boo hoo.I have to think that something similar to that is possible in C++. If type safety is the concern driving class templates, then I can get a little closer in Dart with generics. If I make my
SimpleCommandclass be for a specific type of receiver:
class SimpleCommand<T> implements Command { T receiver; Symbol action; List args=[]; SimpleCommand(this.receiver, this.action, [this.args]); void call() { reflect(receiver).invoke(action, this.args); } }Then I can be assure myself that the receiver has the correct type assigned:
var // ... beSad = new SimpleCommand<Robot>(robot, #say, ['Boo hoo.']);It is not exactly class templates, but nothing else in the pattern makes use of the command being a specific type—just that the command implement a common interface. In other words, I think this, along with last night's callbacks, is more than sufficient to serve as a simple command implementation in the command pattern.
I think that just about does it for the command pattern. I may review one more time tomorrow, or it may be time to throw a dart at another pattern for Design Patterns in Dart.
Play with the code in DartPad:.
Day #38 | https://japhr.blogspot.com/2015/12/generic-commands.html | CC-MAIN-2017-51 | refinedweb | 505 | 65.12 |
You create a receive port and receive location for the BizTalk Adapter for Host Files by using the BizTalk Server Administration console. You must be logged on with an account that is a member of the BizTalk Server Administrators group. In addition, you must have appropriate permissions in the Single Sign-On (SSO) database.
Click Start, point to Programs, point to Microsoft BizTalk Server 2006, and then click BizTalk Server Administration.
In the console tree, expand BizTalk Group, expand Applications, and then select the application for which you want to create a send port.
Right-click Receive Ports, point to New, and then click Static One-way Receive Port.
The Receive Port Properties dialog box appears.
Configure the properties and then click OK.
For more information, click Help.
In the console tree, right-click Receive Locations, point to New, and then click One-way Receive Location.
The Select a Receive Port dialog box appears.
Select the receive port you created in step 3, and then click OK.
The Receive Location Properties window appears.
In the Transport Type field, select HostFiles, and then click Configure.
The HostFiles Transport Properties dialog box appears.
Configure the following properties:
Connection String
Enter the name of a connection string that will be used to connect to the host database.
To configure a new or existing connection string, click the ellipsis (…). This starts the Data Source Wizard. To access Help, click Help on the wizard screens, or open the Host Integration Server 2006 Help and look in Technical Reference - UI Help - Data Integration Help - Data Source Wizard.
Document Root Element Name
The root element name that is used in the XML documents that are received from the host.
Document Target Namespace
The target namespace that is used in the XML documents that are received from the host.
SQL Command
The Select command that is executed one time for each polling interval.
Update Command
The command that is executed after each row in the receive operation is processed. It can be either a delete statement that deletes the row from the table in the SQL command, or an update command that statically modifies one or more rows. When this option is specified, the SQL command must be a Select statement and access a single table.
You can specify additional properties by clicking the ellipsis (…) button. This opens the Change Command dialog box, which provides three options:
URI
Uniform resource identifier. A name identifying the receive port location.
Polling Interval
The number of units between polling requests. Allowed range is 1 - 65535.
Polling Unit of Measure
The unit of measure (seconds, minutes, or hours) used between polling requests. Default is seconds.
Click OK to return to the Receive Location Properties dialog box.
In the Receive Handler field, select the instance of the BizTalk Host on which the receive location will run. The receive handler must be running on this host.
In the Receive Pipeline field, select the receive pipeline to use to receive messages at this receive location.
To configure a receive pipeline, click “..”. For more information, click Help on the property pages.
To configure scheduling, click the Schedule tab.
For more information, click Help on the Schedule tab.
When you are finished with configuration, click OK to close the Receive Location Properties dialog box and return to the BizTalk Server Administration console tree.
In the Receive Locations window, right-click the receive location in the Name column and select Enable. | http://msdn.microsoft.com/en-us/library/aa704837.aspx | crawl-002 | refinedweb | 573 | 57.77 |
Opened 5 years ago
Closed 5 years ago
#18358 closed Uncategorized (invalid)
1.3 ModelForm documentation lists TextField as field type - not present in 1.3 code
Description
1.3 ModelForm documentation ()
lists TextField as field type. TextField does not exist as a field type in 1.3 codebase at django/forms/forms.py
from django.forms import TextField
ImportError: cannot import name !TextFIeld
[This omission in the code may cause issues for some cases (e.g. if you have model CharField which you wish to render as a Textarea in your form, but also need to define e.g. alternative label - in this case class Meta: widgets... won't work)]
Not sure if the 1.3 documentation is ahead of time or out of date!
From my reading it does not refer to TextField as a form field, only as a model field (which will then get a !Textarea field in a modelform). So, closing as invalid. | https://code.djangoproject.com/ticket/18358 | CC-MAIN-2017-09 | refinedweb | 158 | 79.16 |
Opened 8 years ago
Last modified 3 years ago
Initial code is checked in at sandbox/inotify.py
here's the fix to make it work with python < 2.3
Index: inotify.py
===================================================================
--- inotify.py (revision 13515)
+++ inotify.py (working copy)
@@ -130,7 +130,7 @@
request = array.array('c', struct.pack(structWatchRequest,
pathBuffer.buffer_info()[0], mask))
- handle = fcntl.ioctl(self.fd, INOTIFY_WATCH, request, 1)
+ handle = fcntl.ioctl(self.fd, INOTIFY_WATCH, request.buffer_info()[0])
port = iNotifyPort(path, handle, iNotifyFactory, self)
@@ -142,7 +142,7 @@
return
del self.ports[handle]
request = array.array('c', struct.pack(structWatchIgnore, handle))
- return fcntl.ioctl(self.fd, INOTIFY_IGNORE, request, 1)
+ return fcntl.ioctl(self.fd, INOTIFY_IGNORE, request.buffer_info()[0])
def connectionLost(self, reason):
for handle in self.ports.keys():
I tried /sandbox/dialtone/inotify.py and it works well for me, in a real application. The API is well documented and makes sense. I don't love having to pass a list of (callback, errback) tuples to the callbacks argument of the watch method, but it works, and I can't think of an API that's just as simple and allows the same multi-call functionality.
(In [26155]) Branching to 'inotify-support-972'
The branch is ready for review by anyone.
Both the points in thijs review were addressed in r26287 in the branch.
(In [26288]) Branching to 'inotify-support-972-2'
I have reviewed this code, here are my comments.
There is no unit test for when twisted.internet.inotify raises a SystemError. Either by ctypes not being available (this happens on import) or when INotify is created.
SystemError is very rarely used in twisted, so much so that it only occurs in cfsupport, inotify and test_process. Even if it is the correct exception to use, I don't like it being raised on import.
The constants defined at the top of the module for IN_ACCESS, etc, have extra spaces. This is contray to what PEP-8 says about whitespace in expressions, I would prefer to see thoses spaces collapsed to 1.
_FLAGS_TO_HUMAN is a dict, but is never treated like a dict, only a list of tuples. I suggest it is transformed to a list of tuples and used as one - as dicts don't have a stable order, and it would be nice if flagsToHuman returned elements in the correct order.
flagsToHuman should probably have a nicer name, as it's an externally exported function that will be used by developers.
There is no test for the IOError raised in INotify._addWatch.
INotify.notify is a dummy print statement and doesn't have a test, I don't think it should be included, or should be included in documentation.
for function in "inotify_add_watch inotify_init inotify_rm_watch".split(): should be a list or tuple containing the strings, instead of a string that we split().
_rmWatch(self, wd) has a line del iwp which is in effect a noop, it just removes a name from the locals of a method that is just about to have its locals removed.
INotify.release checks hasattr(self, '_fd'). It is impossible to get to the bottom of __init__ without this attribute being on the object, so the check isn't required.
while True:
if len(self._buffer) < 16:
break
should perhaps be expressed as:
while len(self._buffer) >= 16:
INotify._doRead handles a case where it gets a notification of something it's not caring about by doing
try:
iwp = self._watchpoints[wd]
except:
continue # can this happen?
I suggest that the exact exception where a key is not in a dictionary is caught, instead of a bare except:.
I really don't like defining _addChildren in _doRead, it makes the entire method very complicated, if you can refactor it so that _addChildren is a method of INotify, I would much prefer that.
Please make these changes and resubmit for review.
Addressed all exarkun points in r26295. I'll be happy to receive further reviews about future compatibilities or other problems with the code.
I've changed my mind about worrying about cross platform compatibility. If someone implements something for another platform in the future, then we can worry about adding a compatibility layer on top of the two low-level APIs then.
Apparently someone at ITA is interested in using this when it's done.
So, I think I've addresses essentially all of exarkun's observations on this ticket. Two of them require some explanation (that is also present in the source).
I'm not sure, but I might have some comments about the test code as well. It's sleep time now, however.
Addressed also all of the new comments on this ticket branch.
On point 4 however I kept both hex and int because the masks, as they have been set up in the module, are hex, of course however hex is as good as int, although it's usually easier to picture them has hex numbers.
I'm not sure I'm totally convinced autoAdd and recursive belong here, but we'll give it a try. :) I hope this is the last of my feedback, and the next review will just be ok, merge. :)
To summarize, this still seems to be needed, from my reading.
The branch looks much better after the recent modifications from exarkun.
@exarkun: when you think this is ready to be reviewed again I can help with that.
(This would be my first Twisted review, mainly motivated by the fact I'd need inotify support myself. But it can be a start for others :)
So, I did a couple of cleanups. It seems to pass on Windows now. I removed the values passed to callLater. I looked at modifying watch to not return a value, but it's needed by the code itself. I think it's fine that it's not documented, because users shouldn't use it. Maybe there is a slightly better solution, but I didn't find it yet.
If buildbot is green, please merge.
(In [28488]) Branching to 'inotify-support-972-3'
(In [28495]) Merge inotify-support-972-3
Authors: dialtone, exarkun, moonfallen, therve
Reviewers: jerub, exarkun
Fixes #972
Add linux inotify support, allowing monitoring of file system events.
I couldn't find a ticket for cross-platform filesystem change notifications. Is there one? If not, somebody should file it. In case somebody does feel like filing it, here are two relevant resources:
Oh. That's where I wrote that first review comment. I thought Firefox ate it.
Site design credits | http://twistedmatrix.com/trac/ticket/972 | CC-MAIN-2013-20 | refinedweb | 1,087 | 67.15 |
17 January 2007 23:23 [Source: ICIS news]
HOUSTON (ICIS news)--Mosaic has begun to settle its first-quarter 2007 liquid sulphur contracts in Tampa down by $5 at $54-56/long ton (€42-43/long ton), a company source said on Wednesday.
The initial settlement comes after buyers pushed for decreases of $6/long ton and $8/long ton. One long ton equals 1.016 tonnes.
Buyers contended the market was well supplied amid shipments of Canadian sulphur to the US and weak demand for the phosphate sector. Sulphur is used in the production of phosphate fertilizers.
Producers had targeted a smaller decrease of $2-3/long ton. They argued that demand was strong, and supply was tight amid refinery turnarounds.
Shell’s Deer Park refinery in Texas is in a turnaround until mid-February and producing at 25% of capacity, sources said.
PotashCorp, another sulphur buyer involved in the negotiations, said it has not yet settled its contracts.
No producers have yet confirmed settling. ExxonMobil, Shell and Valero are among the major suppliers involved in the negotiations.
($1 = €0.77)?xml:namespace>(Additional reporting by Rebecca Clarke | http://www.icis.com/Articles/2007/01/17/1121826/us-q1-sulphur-contracts-initially-down-5long-ton.html | CC-MAIN-2013-48 | refinedweb | 189 | 56.96 |
In the previous article on solving the heat equation via the Tridiagonal Matrix ("Thomas") Algorithm we saw how to take advantage of the banded structure of the finite difference generated matrix equation to create an efficient algorithm to numerically solve the heat equation. We will now provide a C++ implementation of this algorithm, and use it to carry out one timestep of solution in order to solve our diffusion equation problem.
The Tridiagonal Matrix Algorithm, also known as the Thomas Algorithm, is an application of gaussian elimination to a banded matrix. I've written up the mathematical algorithm in this article. The algorithm itself requires five parameters, each vectors. The first three parameters $\bf{a}$, $\bf{b}$ and $\bf{c}$ represent the elements in the tridiagonal bands. Since $\bf{b}$ represents the diagonal elements it is one element longer than $\bf{a}$ and $\bf{c}$, which represent the off-diagonal bands. The latter two parameters represent the solution vector $\bf{f}$ and $\bf{d}$, the right-hand column vector.
You can see the function prototype here:
void thomas_algorithm(const std::vector<double>& a, const std::vector<double>& b, const std::vector<double>& c, const std::vector<double>& d, std::vector<double>& f) {
Notice that $\bf{f}$ is a non-const vector, which means it is the only vector to be modified within the function.
It is possible to write the Thomas Algorithm function in a more efficient manner to override the $\bf{c}$ and $\bf{d}$ vectors. Finite difference methods require the vectors to be re-used for each time step, so the following implementation utilises two additional temporary vectors, $\bf{c^{*}}$ and $\bf{d^{*}}$. The memory for the vectors has been allocated within the function. Every time the function is called these vectors are allocated and deallocated, which is suboptimal from an efficiency point of view.
A proper "production" implementation would pass references to these vectors from an external function that only requires a single allocation and deallocation. However, in order to keep the function straightforward to understand I've not included this aspect:
std::vector<double> c_star(N, 0.0); std::vector<double> d_star(N, 0.0);
The first step in the algorithm is to initialise the beginning elements of the $\bf{c^{*}}$ and $\bf{d^{*}}$ vectors:
c_star[0] = c[0] / b[0]; d_star[0] = d[0] / b[0];
The next step, known as the "forward sweep" is to fill the $\bf{c^{*}}$ and $\bf{d^{*}}$ vectors such that we form the second matrix equation $\bf{A^{*}}f=d^{*}$:
for (int i=1; i<N; i++) { double m = 1.0 / (b[i] - a[i] * c_star[i-1]); c_star[i] = c[i] * m; d_star[i] = (d[i] - a[i] * d_star[i-1]) * m; }
Once the forward sweep is carried out the final step is to carry out the "reverse sweep". Notice that the vector $\bf{f}$ is actually being assigned here. The function itself is
void, so we don't return any values.
for (int i=N-1; i-- > 0; ) { f[i] = d_star[i] - c_star[i] * d[i+1]; }
I've included a
main function, which sets up the Thomas Algorithm to solve one time-step of the Crank-Nicolson finite difference method discretised diffusion equation. The details of the algorithm are not so important here, as I will be elucidating on the method in further articles when we come to solve the Black-Scholes equation. This is only provided in order to show you how the function works in a "real world" situation:
#include <cmath> #include <iostream> #include <vector> // Vectors a, b, c and d are const. They will not be modified // by the function. Vector f (the solution vector) is non-const // and thus will be calculated and updated by the function. void thomas_algorithm(const std::vector<double>& a, const std::vector<double>& b, const std::vector<double>& c, const std::vector<double>& d, std::vector<double>& f) { size_t N = d.size(); // Create the temporary vectors // Note that this is inefficient as it is possible to call // this function many times. A better implementation would // pass these temporary matrices by non-const reference to // save excess allocation and deallocation std::vector<double> c_star(N, 0.0); std::vector<double> d_star(N, 0.0); // This updates the coefficients in the first row // Note that we should be checking for division by zero here c_star[0] = c[0] / b[0]; d_star[0] = d[0] / b[0]; // Create the c_star and d_star coefficients in the forward sweep for (int i=1; i<N; i++) { double m = 1.0 / (b[i] - a[i] * c_star[i-1]); c_star[i] = c[i] * m; d_star[i] = (d[i] - a[i] * d_star[i-1]) * m; } // This is the reverse sweep, used to update the solution vector f for (int i=N-1; i-- > 0; ) { f[i] = d_star[i] - c_star[i] * d[i+1]; } } // Although thomas_algorithm provides everything necessary to solve // a tridiagonal system, it is helpful to wrap it up in a "real world" // example. The main function below uses a tridiagonal system from // a Boundary Value Problem (BVP). This is the discretisation of the // 1D heat equation. int main(int argc, char **argv) { // Create a Finite Difference Method (FDM) mesh with 13 points // using the Crank-Nicolson method to solve the discretised // heat equation. size_t N = 13; double delta_x = 1.0/static_cast<double>(N); double delta_t = 0.001; double r = delta_t/(delta_x*delta_x); // First we create the vectors to store the coefficients std::vector<double> a(N-1, -r/2.0); std::vector<double> b(N, 1.0+r); std::vector<double> c(N-1, -r/2.0); std::vector<double> d(N, 0.0); std::vector<double> f(N, 0.0); // Fill in the current time step initial value // vector using three peaks with various amplitudes f[5] = 1; f[6] = 2; f[7] = 1; // We output the solution vector f, prior to a // new time-step std::cout << "f = ("; for (int i=0; i<N; i++) { std::cout << f[i]; if (i < N-1) { std:: cout << ", "; } } std::cout << ")" << std::endl << std::endl; // Fill in the current time step vector d for (int i=1; i<N-1; i++) { d[i] = r*0.5*f[i+1] + (1.0-r)*f[i] + r*0.5*f[i-1]; } // Now we solve the tridiagonal system thomas_algorithm(a, b, c, d, f); // Finally we output the solution vector f std::cout << "f = ("; for (int i=0; i<N; i++) { std::cout << f[i]; if (i < N-1) { std:: cout << ", "; } } std::cout << ")" << std::endl; return 0; }
The output of the program is follows:
f = (0, 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0) f = (0, 0, 0, 0.00614025, 0.145331, 0.99828, 1.7101, 0.985075, 0.143801, 0.0104494, 0.000759311, 0, 0)You can see the the initial vector and then the solution vector after one time-step. Since we are modelling the diffusion/heat equation, you can see how the initial "heat" has spread out. Later on we will see how the diffusion equation represents the Black-Scholes equation with modified boundary conditions. One can think of solving the Black-Scholes equation as solving the heat equation "in reverse". In that process the "diffusion" happens against the flow of time. That will have to wait until a later article,. | https://www.quantstart.com/articles/Tridiagonal-Matrix-Algorithm-Thomas-Algorithm-in-C | CC-MAIN-2018-05 | refinedweb | 1,221 | 50.57 |
Difference between revisions of "Colorblindfriendly"
Latest revision as of 14:21, 15 November 2017
Contents
Introduction
Certain colors are indistinguishable to people with the various forms of color blindness, and therefore are better not used in figures intended for public viewing.
This script generates a palette of named colors for PyMOL that are unambiguous both to colorblind and non-colorblind individuals.
The colors listed here are defined according to recommendations found at J*FLY. This website is a good reference to consult when making all kinds of figures, not just those made using PyMOL.
Colors
These are the 0-255 RGB values from the J*FLY page that are used in the script, with the defined color names and alternate names.
Usage
Import as a module
After importing the module, call the
set_colors() function to add the colors to PyMOL's color palette. Then, use these color names just like any other named color, using the
color command.
import colorblindfriendly as cbf # Add the new colors cbf.set_colors() color cb_red, myObject
The colors can also be made to replace the built-in colors (i.e. they are created both with and without the "
cb_" prefix.). Do this by passing the
replace keyword argument.
# Replace built-in colors with cbf ones cbf.set_colors(replace=True) color yellow, myOtherObject # actually cb_yellow
One can also add an entry to the color menu in the right-side OpenGL GUI. So clicking on [C], there will now be a
cb_colors menu item, which expands to give all the color blind-friendly colors, except black, which is available in the
grays menu.
# Add a `cb_colors` menu to the OpenGL GUI (see screenshot) # This will also add the colors if `set_colors()` hasn't yet been run. cbf.add_menu()
Run the latest version of the script from Github
In a PyMOL session, run at the command line:
run
This will add all the colors as well as the OpenGL menu.
Download the script and run locally
Save the script from the link in the box at the top right to your computer.
In a PyMOL session, run at the command line:
run /path/to/colorblindfriendly.py
This will add all the colors as well as the OpenGL menu.
Requirements
The cb_colors GUI menu (generated by the add_menu() function) requires PyMOL 1.6.0 and later. | https://www.pymolwiki.org/index.php?title=Colorblindfriendly&diff=prev&oldid=12680 | CC-MAIN-2021-49 | refinedweb | 387 | 62.27 |
Best way to learn Java
Best way to learn Java is through online learning because you can learn it
from the comfort of your home. Online learning of Java is also free, the only... in your program, etc. Every chapter bring you
new topic of Java and explain
Where can I learn Java Programming
question which is "Where can I learn Java Programming?". We
have given the best links for helping the new comers in learning Java.
If you have any... have to search more for "Where can I learn Java
Programming?", just
order
order write a java code to enter order of number of chocolates(bar,powder,giftbox) in arraylist.
Also consider exceptional cases like entering integer in name
use try,catch ,throw to deal with exception
Reverse Order Java
Reverse Order Java I am trying to get this into reverse order. Does... if arra<y location is new largest
if (numbers[i] < smallest... in reverse order: ");
for (int i = numbers.length-1; i >=0; i
Best way to reading file in java
Best way to reading file in java Hi,
As a beginner I want to learn about Java programming and make a program for reading a text file in java. What is the best way for reading file in Java?
Thanks
Alphabetical order - Java Beginners
, name, age notes
Its working well to display the files in text area when i clicked the view button
Now i want to display the records present in the file in alphabetical order of ID.
How can i implement this...
Pls Help..:)
Thanks
Pizza Order..?? - Java Beginners
wantMore = "n";
PizzaOrder order = new PizzaOrder();
do {
order.pepporoni...Pizza Order..?? Define a class PizzaOrder class that contains a list... contains number of pizza been ordered. There is a method to add new pizza to the list
Hibernate ORDER BY Clause
Hibernate ORDER BY Clause
In this tutorial you will learn about HQL ORDER...
Here I am giving a simple example which will demonstrate you how a HQL order... java file into which
we will use HQL order by clause for sorting the data from
Searching with alphabetical order - Java Beginners
help me its very urgent
Thanks
i think question is not much... table where name='"+request.getParameter("name")+"'"
i think...Searching with alphabetical order Hi,
I want to this please
Searching with alphabetical order - Java Beginners
all data related to user
Please understood,I think u r understood plz let... problem and send write code its very urgent
I a write once again.
Steps:-
1:-I have a one form single name text box and two button delete and search
learn
learn i need info about where i type the java's applet and awt programs,and how to compile and run them.please give me answer
Best Java Websites
Best Java Websites
The best Java Websites listed here
Java is one of the most... popular and best website for Java Technologies.
Our list of best Java Website will help you learn java quickly. Even experienced
programmers can find a lot
New to Java Please help
New to Java Please help Hi I need help, can some one help me with this. I am currently doing a project.
drop me an email to my email address. Thanks!
If you are new in java, then you need to learn core java
to learn java
to learn java I am b.com graduate. Can l able to learn java platform without knowing any basics software language.
Learn Java from the following link:
Java Tutorials
Here you will get several java tutorials
Alphabetical order - Java Beginners
, name, age notes
Its working well to display the files in text area when i clicked the view button
Now i want to display the files in alphabetical order of ID.
How can i implement this...
Pls Help..:)
Thanks in advance
Alphabetically sorting order
Alphabetically sorting order Write a java program that takes a list... sorted order
Hi Friend,
Try the following code:
import...)
{
Scanner input=new Scanner(System.in);
System.out.println("Enter List... introduced a new
Java Video section where
programs and examples made in Java
Learn Java
and server.
If you are in need to learn Java quickly then the best way to achieve...There is a need to learn Java programming in today?s world as it has become..., there is need of Java,
Hence it become more important for a programmer to learn
New Features of JAVA SE 6.
.
Changes in I/O
This is a new feature added in Java SE 6, which has...
New Features of JAVA SE 6.
... in JAVA SE 6 and JPDA has been added. Some new Methods are included like boolean
best os to run java
best os to run java which is best os to run java program
Where to learn java programming language
Where to learn java programming language I am beginner in Java and want to learn Java and become master of the Java programming language? Where... fast and easily.
New to programming
Learn Java In A Day
Master Java Tutorials
How to Create Create Matrix of any order
Create Matrix of any order Java Program
A matrix is a rectangular array... static void main(String[] args) throws IOException {
int[][] dim = new int[2][2];
BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in
Easiest way to learn Java
or so. In order to learn the language RoseIndia has provided Java online...There are various ways to learn Java language but the easiest way to learn..., video
tutorials and lectures that help beginners learn in Java. This tutorials
NEW IN JAVA - Java Beginners
NEW IN JAVA Suppose you are asked to design a software tool that helps an elementary school student learn
arithmetic operations. The software... static void main(String[] args) throws Exception {
Scanner scan = new Scanner
learn
learn how to input value in java
New to Java?
New to Java?
If you are
new to Java
technology and you want to learn Java and make career in the Java technology then this page is for you. Here we have explained how to learn
Java file new line
Java file new line
In this section, you will learn how to write the text in new line of text
file.
Description of code:
The package java.io.* has provide many input and output streams for accessing
the text files. In order to write
Choosing the best programming framework
Choosing the best programming framework i have college project for investment decision based on stock market prediction My objectives are:
1... graphs.
i am confused to choose a programming language. ruby, .net (ASP), java
what should i do next?? - Java Beginners
what should i do next?? I know java basics.actully i passed the SCJP.... i think first u should go through servlet bcoz at last ur jsp code... is good for java in AmeerPet.Don't think it as bad.He is good faculty thus y.
Thank
Order of list in java Vs Haskell.
Order of list in java Vs Haskell. How to order of [1,2,3] to [1,2,3,2,1]in java
When you look back on the position you held last, do you think you have done your best in it?
for the department. I think I should make a good choice... (follow with your strongest...
When you look back on the position you held last, do you think you have done your best in it?
New to programming...
Are you New to Java Programming Language? Learn the how you can Java... to learn the Java then you should first learn
how to download and install Java... as it is easy to learn & simple to develop applications with.
# Java is
always
Learn Java in a day
Learn Java in a day
..., "Learn java in a day" tutorial will
definitely create your...
In this section, you will learn to download and install java in your
computer.
Iterator Java Order
.
Java Order Iterator Example
import java.util.ArrayList;
import... java.util.Set;
public class order {
public static void main(String[] args... = new ArrayList();
Set set = new HashSet();
for (String object : ar1
How do I do this program? I'm new to Java programming...
How do I do this program? I'm new to Java programming... Suppose you want to print out numbers in brackets, formatted as follows: [1] [2] [3] and so on. Write a method that takes two parameters: howMany and lineLength
New to Java - New to java tutorial
Technical description of Java Mail API
This section introduces you with the core concepts of Java Mail API. You must understand the Java Mail API before actually delving
Java file new directory
Java file new directory
In this section, you will learn how to create a new directory.
Description of code:
This is a common task. The java.io.package... {
public static void main(String args[]) {
File file = new File("Hello
How to learn Java with no programming experience
Tutorial, how to learn Java provides you the opportunity to you about....
Apart from these, topic How to learn Java with no programming
experience... program.
Certainly, we hope the topic how to learn java will definitely create
Open Source Games
Open Source Games
Playing the Open Source Game
In this article I will explain why I think that games are fundamentally different to most types of software. I will suggest a few reasons why an open source approach could
How to learn Java easily?
If you are wondering how to learn Java easily, well its simple, learn...
every known topic on Java. New updates in the language gets instantly added...
Java learning.
The students opting to learn Java are of two types, either
new String(text) - Java Beginners
(text):
In this Case Java will create a new String object
in normal (non-pool...new String(text) Please, what is the difference between
this.text = text; and this.text = new String(text);
in the example:
public
The Best We Offer
The Best We Offer
Keeping... programmers to quickly learn and enhance their skills. These can be well accessed from our most visited website for Java professionals:.
We
new java technologies 2012
new java technologies 2012 new java technologies 2012
Learn Java for beginners
a
programmer from basic to advance level of Java.
New programmers prefer to learn Java...Beginners can learn Java online though the complete Java courses provided at
Roseindia for free. This Java course covers the whole of Java programming
Java guide for beginners
Java guide provided at RoseIndia for beginners is considered best to learn....
One only needs to learn the language chapter wise in order to proceed..., it keeps on adding something new
almost every day. Hence in order to be up
new java technologies 2011
new java technologies 2011 what are the new java technologies in 2011
add new package java
add new package java How to add new package in Java
How to learn Java?
to
learn Java language than there are two ways you can do that. One is the
classroom... training.
A young developer who is seeking a career in Java can learn the language... to remain updated with the new topics of
Java.
Online course of Java has come
java
java how do i write in three integers and output them in order from lowest to highest?? Im very new to java
Java i/o opearations
Java i/o opearations "FOLLOWING IS MY LAST QUESTION ON JAVA I/O... to a file in java using random access file object or file writer or data outputstream i...[] args)throws Exception{
Scanner input=new Scanner(System.in
Java server faces
Applications
It is a natural phenomenon to think about learning and adopting new...Java server faces
... as a new emerging and robust web technology.
How we learn java
How we learn java what is class in java?
what is object in java?
what is interface in java and use?
what is inheritence and its type
Learn Java online
can learn at his/her pace.
Learning Java online is not difficult because every...Learning Java is now as easy as never before. Many websites today provide the
facility of learning Java programming online by providing enough material like
I/O Java
writer = new PrintWriter(outFile);
for(int i=0;i<inputFiles.length;i...] + "... ");
BufferedReader br = new BufferedReader(new FileReader(f[i]));
String...I/O Java import java.io.File;
import java.io.FileNotFoundException
Java I/O Examples
and Formatting.
Java I/O From the Command Line
In this section we will learn...;
What is Java I/O?
The Java I/O means...
In this section we will discussed about How files can be handled in Java.
Java I/O Byte
Java Read Lines from Text File and Output in Reverse order to a Different Text File
Java Read Lines from Text File and Output in Reverse order to a Different Text File I need to read a file that was selected by the user using the JButton. Each line in the file then needs to be converted in Reverse Order
Write Text To File In New Line.
Write Text To File In New Line.
In this tutorial you will learn how to write text into file in a new line.
When you are writing in a file you may be required... the
newLine() method. In the example given below I have first
created a new
Java Training and Tutorials, Core Java Training
Java Training and Tutorials, Core Java Training
Introduction to online Java
tutorials for new java programmers.
Java is a powerful object... to learn java. In comparison to C++, Java handles many
operation like creation
core java - Java Beginners
,i think this code enough for ur riquirement(seetharam@gmail.com)
import... StringTokenizer(str);
int i=st.countTokens();
String str1[]=new String[6...;
ArrayList str=new ArrayList();
int i=0;
System.out.println("Enter
Marvellous chance to learn java from the Java Experts
Marvellous chance to learn java from the Java Experts... for Software Development on Java Platform.
Learn to implement... will be updated as per new requirements):
Module 1 ? Core Java Application
I wonder - Java Beginners
I wonder Write two separate Java?s class definition where the first one is a class Health Convertor which has at least four main members:
i...[] args){
Scanner input=new Scanner(System.in);
System.out.println("Enter
Best Online Java Training
Best Online Java Training
While getting enrolled for a online java training program most of the
students and professional look out for best online Java... over the years and so are their
applications, hence choosing best online Java
im new to java - Java Beginners
im new to java what is the significance of public static void main... for a java class to execute it as a command line application.
public- It provide...- It specifies the return type.
main- This method in java is designed
how can i close a frame. - Java Beginners
............my target is when i click on that button, a new frame is coming and updated table...how can i close a frame. Hi,
My question is how can we close a frame when an action is taken......For example let us think that we have a frame
Am i convetrting the code right ? - Java Beginners
a led on it. The LED blinks on the C#'s code. I think the code i have written...Am i convetrting the code right ? C#
private void button_Click(object sender, EventArgs e){ SerialPort sp = new Serial
Best Java Online Training Class
with the best Advanced Java classes and its various applications...Java Online Training Classes
Java Online Training Classes are highly sought after among students and
professional as Java programming is ruling the roost
What's New?
What's New?
Find latest tutorials and examples at roseindia.net.
Our site is publishing free tutorials on many Java and Open source technologies
Learn Java technologies step by step:
Core Java
JSP
java
input=new Scanner(System.in);
System.out.println("Enter Array Elements: ");
Integer array[]=new Integer[5];
for(int i=0;i<array.length;i...java strong textwhat to do to put arry in descendind order using
Java XML Books
services-will find the new Java & XML a constant companion. ... and animated images using Java. This new edition will teach you all the graphical... focuses on using Java to do XML development. Up until now many of the XML books I
Java beginners Course
Java beginners course at RoseIndia is one of the best way to learn Java...
Java course helps novices to learn the language in a very easy and quick manner... the new trends and additions
the language gets. Java being an open source language
How to index a given paragraph in alphabetical order
How to index a given paragraph in alphabetical order Write a java program to index a given paragraph. Paragraph should be obtained during runtime... :
A -> a
G -> given
I -> index
is
P -> paragraph
Java program? - Java Beginners
Java program? In order for an object to escape planet's... the exact ans. as in the question.
I also think the last double vescape.... The escape velocity varies from planet to planet.Create a Java program which
java
= 0; i <array.length; i++){
if(array[i]%2==0){
list1.add(new...(new Integer(array[i]));
}
System.out.print(array[i... in descending order.
import java.util.*;
public class | http://www.roseindia.net/tutorialhelp/comment/44506 | CC-MAIN-2014-42 | refinedweb | 2,896 | 66.33 |
have lsof, install it now. It's an invaluable
debugging aid." - Andreas Leitgeb
"Aqua is highly customizable -- if you happen to be an Apple employee
who's working on the display system..." - Joe English
POTW: tcluno - tcl interface for OpenOffice.org on Linux ( and Windows )
It provides access from Tcl to the OpenOffice.org UNO interface and
the OpenOffice UNO urp protocol. Tcl only packages itcluno,
unospection based on tcluno and tclurtp packages for (hopefully) easy
access to OpenOffice.org. All the packages are Tcl only. So these
packages should run at least on Linux and Windows. (These operating
systems were tested) For german users: there will be an article in
the german linux-magazin 03/2006 (Thanks to Carsten Zerbst)...
Blown onwards by the winds of synergy Eric Hassold presents
another eTcl bugfix release:...
Donal Fellows, Eckhard Lehmann, Ralf Fassel, and others discuss
quite seriously object orientation, namespacing, and their
connections and consequences:...
Diverging opinion regarding number of open files between user and OS
can lead to problems ( and the OS always wins ):...
The equivalent of painting oneself ( or an unfortunate user ) into
a corner by obscuring a modal dialog :...
ActiveState goes solo. Again....
Callbacks from lisp and understanding the Tk model:...
Accesorizing images and icons to blend into a Themed World:...
Embedding MFC-Elements inside a Tk Applikation ( Windows only ;-) :...
TIPX: new, used and discarded Tips
no new TIPS have been submitted but white smoke was seen:
TIP 94 by Miguel Sofer : Procedures as Values via '''apply'''
changed to Final
TIP 181 by Neil Madden : Add a [namespace unknown] Command
changed to Final
TIP 215 by Andreas Leitgeb : Make [incr] Auto-Initialize Undefined Variables
has been Accepted
TIP 250 by Will Duquette : Efficient Access to Namespace Variables
changed to Final
TIP 258 by Don Porter : Enhanced Interface for Encodings
has been Accepted
Thanks to Arjen Markus for his so-accurate summary of Wiki activity:
A remarkable number of pages on subjects that somehow have to do
with natural languages ... And a few others too.
Talk to one another ...
- Experiments with Skype (telephony over the Internet) diligently
and somewhat painfully reported in <>>
- Fosdem will be taking place in Brussels at the end of this
month. While the Wiki now has a page for it, details are
missing ... what was that other page again, that does
have the Tcl schedule? <>>
- Through dark glasses, clearly: Mels Internet Toolkit moves in
at the wiki: <>>
- Tcl/Tk client for dictd server ( ):
<>>
Words, to sort, to explain and to input
- Sorting the words in a text widget, simple, simpler,
simplest - <>>
- Okay, how to get access to a dictionary from
within Tcl? You just write a client for some
dictionary server - <>>
- Ever needed to type in a Sanskrit text? Well,
even if you have not, it is now very easy:
<>> shows the technique that
might be applicable to other systems too.
Pictures, rather than words
- Pick your choice: a multitude of font viewers
and selectors on the Wiki. A simple one?
<>>
- Pixane is non-Tk-based simple image handling for eTcl:
<>>
- When your demands are not too high, you
may find this simple drawing tool enough
for your needs - <>> | http://lwn.net/Articles/170939/ | crawl-003 | refinedweb | 524 | 62.68 |
MESH_CHECK (dmodeling.h)
On 06/09/2016 at 11:16, xxxxxxxx wrote:
Hello MAXON-Development-Team,
I have a question where I couldn't find an answer myself, not in the SDK docus (neither the one for Python nor in the C++ SDK) and also not with "Google" searches or anywhere else:
How can we access and use the MESH_CHECK_...-functions with Python?
Though I found all of the related enumerations in "dmodeling.h" but I couldn't figure out how to use them.
Unlike the snap and quantize functions that are also listed in "dmodeling.h" and that can be accessed through "c4d.modules.snap".
Any help here is highly appreciated!
Kind regards,
Tom
PS: I couldn't even find any solution for C++.
On 06/09/2016 at 22:14, xxxxxxxx wrote:
may be
import c4d from c4d.modules import snap def main() : # Read all Snap Settings bc = snap.GetSnapSettings(doc) # print all settings # for key, val in bc: # print key,"=",val # Modify MESH_CHECK_ENABLED bc.SetBool(c4d.MESH_CHECK_ENABLED,True) # Write all Snap Settings snap.SetSnapSettings(doc, bc) c4d.EventAdd() if __name__=='__main__': main()
On 07/09/2016 at 06:27, xxxxxxxx wrote:
Hi,
anion's solution is correct.
I just want to add that this works only with R17 SP3 and upward, as there was fix for SetSnapSettings() needed.
On 07/09/2016 at 08:06, xxxxxxxx wrote:
Okay thank you both so far but I fear that I maybe expressed myself a bit ambiguous.
In fact I'm looking for the functions so that I can use them to select eg. manifold edges from inside a python script or plugin.
With what i found out myself (and the things you told me) I'm just able to activate/deactivate the options in the GUI so that the mesh checking results are visible in the editor, to change the colors and to get the number of affected elements.
But I couldn't find out how to actually get the concerning selections.
I even wasn't able to trigger the select buttons from the gui to make them select the relevant elements. I mean by code just to be absolutely clear. Of course I can push them manually in the GUI and they'll do what they are supposed to do.
I hope the functions itself that are used there will be integrated in the SDKs soon like for the snapping there are e.g.
c4d.modules.snap.GetSnapSettings(),
c4d.modules.snap.SetSnapSettings(),
c4d.modules.snap.SetQuantizeStep() and so on.
By the way in my opinion it's also a bit strange that the mesh checking is a part of the snap module at all. I don't really see how these two things are related.
I hope it's a bit clearer now and sorry that I obviously was too vague in the first place.
On 07/09/2016 at 21:33, xxxxxxxx wrote:
Originally posted by xxxxxxxx
()]
Unfortunately it is currently not possible to access these buttons via CallButton(). Sorry.
On 08/09/2016 at 00:32, xxxxxxxx wrote:
Originally posted by xxxxxxxx
Originally posted by xxxxxxxx
()]
Unfortunately it is currently not possible to access these buttons via CallButton(). Sorry.
I don't insist in using CallButton().
And this info was pre R17 R3 and Andreas also said they changed/fixed something meanwhile.
Originally posted by xxxxxxxx
I just want to add that this works only with R17 SP3 and upward, as there was fix for SetSnapSettings() needed.
Of course this doesn't have to be related to this problem too but it could be.
And if it's not I'd say it's time for another fix!
Kind regards,
Tom
On 08/09/2016 at 03:17, xxxxxxxx wrote:
Hi,
@anion: Thanks for doing my job, really appreciated :) I knew I should have posted the link to the original threads, but somehow I didn't...
Future readers see also here on enabling Mesh Check and on CallButton() and Mesh Check.
@Phoenix: Unfortunately anion is right. The fix in R17 SP3 really only addressed a problem with SetSnapSettings(). The problem with not being able to use CallButton() for Mesh Check is not really a bug, but rather a missing feature. I know, in the end it makes no difference for you. Actually it is even a bit worse, as you wouldn't have means to access the selections, either. But at least we are aware of this gap and it is being looked into it. | https://plugincafe.maxon.net/topic/9691/13033_meshcheck-dmodelingh/1 | CC-MAIN-2019-47 | refinedweb | 749 | 72.46 |
hello,can someone shows me how to get open file function,close,print and save functions?i need it so urgent.thax!!
Printable View
hello,can someone shows me how to get open file function,close,print and save functions?i need it so urgent.thax!!
Not sure if this is what your after, but in its most basic form, i'd do it like this:
#include <fstream.h>
main()
{
char ch;
char filename[20] = "c:test.txt";
int mode = ios:ut;
fstream fout(filename, mode );
cout << "Ready for input, use CTRL+Z to end" << endl;
while ( cin.get( ch ) )
{
fout.put( ch );
}
fout.close();
return(0);
}
fout.close(); is important, miss it and you could **** up your whole hd.
to open the file:
#include <fstream.h>
main()
{
char ch;
char filename[20] = "c:test.txt";
int mode = ios::in;
fstream fin(filename, mode );
if (!fin)
cout << "Unable to open file";
while ( fin.get(ch) )
{
cout << ch;
}
fin.close();
return(0);
}
Do you mean with dialog boxes Ferraski? As in Visual C++ or Borland Builder or something? Or do you mean the functional part of it, the actual opening, closing etc.?
Didn't you use that post for another question programmer?? :)
Almosthere
He uses that answer in all of his replies, eventually one of them answers the question :D
No, I'm just kidding...
yes,almost_here.
well,it's some sort of mfc. it's like well,a clicking button like the toolbar there.when u clicked on open,it will open a new and when u clicked on close,it will close the file. it's same like the microsoft word. so,how should i do it? yeah i meant the functional part of it. how the code looks like for it?i am doing the vc++.it's like a dialog boxes. u r right...almost_here
Ah. Then i'm afraid i can't help you, sorry. I don't use windows-dialog controls. I'm sure someone here does more visual app-based developing in VC++ than i do though... I stick to console apps mostly. If it's MFC you're after it's probably dead straightforward too - they're just standard dialogs.
Sorry couldn't be more helpful - check out some VC tutorials and look up "dialog controls" with "save", "open","print". Although "print" is likely to be more difficult - depending on what you want to print.
Actually, forget that last comment. MFC probably does that for you too.
Ah.
it was me who used that code, to reply to someone elses query a while back, im all for sharing the knowledge, but im also for creditting the original author. The code isnt even that good. | http://cboard.cprogramming.com/cplusplus-programming/6450-help-printable-thread.html | CC-MAIN-2015-18 | refinedweb | 451 | 78.96 |
Le vendredi 23 février 2018 14:23:19 UTC+1, Ni Va a écrit : > Hi, > > > This is a listoftimestamps=['11:02:02.602','11:00:00.402','11:05:00.402'] > > I would like to calculate difference in second.ticks betwwen min and max? > > > > I've seen vim's time func but don't think it could help to do this work. > > > Thank you
If it can help : "time fun! helper#timegetseconds(timestamp) "{{{ " timestart let timestamp = split(a:timestamp,'\.') let tick = timestamp[1]/1000.0 let [h,m,s]=split(timestamp[0],':') return (3600*str2float(h) + 60*str2float(m) + str2float(s)) + tick endfunction "}}} fun! helper#timediff(timestart,timeend) "{{{ return abs(helper#timegetseconds(a:timeend)-helper#timegetseconds(a:timestart)) endfunction "}}} -- --. | https://www.mail-archive.com/vim_use@googlegroups.com/msg53782.html | CC-MAIN-2018-51 | refinedweb | 119 | 54.9 |
This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.
> From: Sebastian Huber <sebastian.huber@embedded-brains.de> > Date: Fri, 25 Oct 2013 19:55:19 +0200 > > So, I suggest that patch be reverted but I'm open to: > > I am fine with reverting the patch and I will work on a better solution. The inconsistency I see is that both libc/include/stdint.h and _default_types.h "guesses" the appropriate types (well, strictly stdint.h doesn't *guess*; it makes the call). I think an appropriate change would be to switch roles which one includes the other: move the type-deciding part of stdint.h to _default_types.h and make stdint.h include that header and do like "typedef __uint32_t uint32_t". Maybe make use of those __INT<X>_TYPE__-like macros defined in recent gcc when defining the __int<x>_t-line macros in _default_types.h. Perhaps it's even ok to just do that and, as a fallback only, cheat and include stdint.h, if e.g. __UINT32_TYPE__ isn't defined. ;) (To wit, AFAIU, the "_" prefix in _default_types.h is supposed to mean "here be namespace-clean definitions only; use underscore for everything of global scope". See the head comment in newlib/libc/include/sys/_types.h, the including file: "ANSI C namespace clean utility typedefs".) > >> 2. do not use <stdint.h> from GCC and define the type system on our own. > > 3. derive the internal definitions from gcc stdint.h. > > What do you mean with derive? Isn't this what my patch does? Well, not *that* direct; *without* affecting the global namespace. (I was thinking of something like preprocessing and grepping the contents of stdint.h or somesuch, maybe asserting correct guesses. The issue is moot anyway as the stdint.h we'd preprocess is the newlib one.) > >> Option 2. has the problem that GCC checks that its internal types match the one > >> in <stdint.h>. > > There's no explicit check that I know of so I'm not sure to what > > you're referring. > > These ones: > > gcc/testsuite/gcc.dg/c99-stdint-5.c > gcc/testsuite/gcc.dg/c99-stdint-6.c Ah, you meant the test-suite, not gcc proper. Those preprocessor macros sure look nice. brgds, H-P | https://sourceware.org/ml/newlib/2013/msg00808.html | CC-MAIN-2018-43 | refinedweb | 381 | 70.7 |
Programing switch() in C++
Q18.Write a C++ program to accept code the display the message as given in the table below.
First we will write the program using if-else
Program-18
#include <iostream.h> void main(){ int a; cout<<"Enter the code:"; cin>>a; if(a==1){ cout<<"This is red"; } else if(a==2 || a==3){ cout<<"This is blue"; } else if(a==4){ cout<<"This is green"; } else if(a==5){ cout<<"This is pink"; } else if(a==6 || a==7){ cout<<"This is purple"; } else{ cout<<"Wrong code"; } }Program-18 (using switch)
#include <iostream.h> void main(){ int a; cout<<"Enter the code:"; cin>>a; switch(a){ case 1: cout<<"This is red"; break; case 2: case 3: cout<<"This is blue"; break; case 4: cout<<"This is green"; break; case 5: cout<<"This is pink"; break; case 6: case 7: cout<<"This is purple"; break; default: cout<<"Wrong code"; } }Points to be remmembered while using switch:
- The variable on which switch operates must be either "int" or "char" type.
- It checks only the equality condition
- Between the word "case" and its value there must be a gap e.g case<gap>1, the colon (:) is part of syntax must be used after every case. Multiple statement can be written one after another under a case as per requirment. Each case must be terminated using break statement. If break statement is not given after any case then cases after it also gets executed so long it does not get a break statement, which is called fall through
- If used with "char" value the case value must be enclosed by single quotes e.g 'a', 'x' etc;
- If the given value does not match with any case value the it executes the default case, which must be the last case.
- In the above program see that case 2 and case 3 when value of "a" is 2 then it executes case 2 which is empty, but see that break is not given so it will fall through and executes the next case also. When the value of "a" is 3 then it will execute case 3 as usual. Therefore case 2 and case 3 together will work as "a==2 || a==3".
Program-19
#include <iostream.h> void main(){ char a; cout<<"Enter the character:"; cin>>a; switch(a){ case 'a': case 'A': case 'e': case 'E': case 'i': case 'I': case 'o': case 'O': case 'u': case 'U':cout<<"This is a vowel"; default: cout<<"This is not vowel"; } }Assignment: Write program - 19 using if-else yourself.
| https://www.mcqtoday.com/CPP/flowif/programingwithswitch.html | CC-MAIN-2022-27 | refinedweb | 432 | 72.6 |
I have solved this problem via Wiktor Stribiżew's suggestion.
Edited: I only need to extract the first element of the list at a time, because I need to do other operations on that number. I use a loop in my code just for testing.
I want to split an arithmetic expression into a list of numbers.
For example: 1+0.2-(3^4)*5 -> ['1', '0.2', '3', '4', '5']
I use the re library in python, but the expression is split with a dot character '.' although I do not include '.' in the delmiters.
Namely, when input is 1+0.2, the output will be ['1', '0', '2'], which should be ['1', '0.2']
The code is below:
#!/bin/python
import re
delims = re.compile(r"[+-/*///^)]")
while True:
string = input()
res = list()
i = 0
while i < len(string):
if string[i] >= '0' and string[i] <= '9':
num_str = delims.split(string[i:], 1)[0]
res.append(num_str)
i += len(num_str) - 1
i += 1
print(res)
The reason your approach is not working is that you create a character range with
+-/ which contains the dot. I also think you are overcomplicating things.
import re str = '1+0.2-(3^4)*5' res = re.split(r'[-+()/*^]+', str) print(res)
will output
['1', '0.2', '3', '4', '5']
Please note that this approach won't handle negative numbers correctly. | https://codedump.io/share/zkXkte9wq2kj/1/python-regular-expression-dot-character | CC-MAIN-2017-04 | refinedweb | 226 | 79.16 |
edit-distance-vector
Calculate edit distances and edit scripts between vectors.
See all snapshots
edit-distance-vector appears in
Module documentation for 1.0.0.4
- Data
- Data.Vector
Edit Distance: Vector
This is a small library for calculating the edit distance and edit script between two vectors. It is generic enough that you should be able to use it with vectors containing values of any type you like, with changes described by any type you like, and with costs represented by any type you like (with a few restrictions).
Installing
The
edit-distance-vector package is a normal Haskell library and can be
installed using the Cabal package management tool.
cabal update cabal install edit-distance-vector
edit-distance-vector is automatically tested on GHC versions 7.4.2,
7.6.3, 7.8.3, 7.10.1, 8.0.2 using the Travis CI service.
Usage
The interface to
edit-distance-vector is very small; just import
Data.Vector.Distance, create a
Params value with the correct operations to
deal with your types, and pass this to
leastChanges along with your
Vectors.
import Data.Monoid import qualified Data.Vector as V import Data.Vector.Distance -- | Editing vectors of 'Char' values, with '(String, Int, Char)' describing -- changes, and the additive monoid of 'Int' describing costs. str :: Params Char (String, Int, Char) (Sum Int) str = Params { equivalent = (==) , delete = \i c -> ("delete", i, c) , insert = \i c -> ("insert", i, c) , substitute = \i c c' -> ("replace", i, c') , cost = const (Sum 1) , positionOffset = \ (op, _, _) -> if op == "delete" then 0 else 1 } main :: IO () main = do print $ leastChanges str (V.fromList "I am thomas") (V.fromList "My name is Thomas")
(See
test/sample.hs for a version of this code that is compiled
by the automated test suite.)
Changes
edit-distance-vector 1.0.0.4
* Relax version bounds to support GHC 8.0
edit-distance-vector 1.0.0.3
* Relax version bounds to support GHC 7.6.3 and 7.4.2
edit-distance-vector 1.0.0.2
* Relax version bounds to support GHC 7.6.3 and 7.4.2
edit-distance-vector 1.0.0.1
* Relax version bounds to support GHC 7.10.1.
edit-distance-vector 1.0
* Initial release extracted from aeson-diff package and rewritten to use Data.Vector. | https://www.stackage.org/lts-12.12/package/edit-distance-vector-1.0.0.4 | CC-MAIN-2018-43 | refinedweb | 387 | 60.01 |
Specialized YAMLIO scalar type for representing a binary blob. More...
#include "llvm/ObjectYAML/YAML.h"
Specialized YAMLIO scalar type for representing a binary blob.
A typical use case would be to represent the content of a section in a binary file. This class has custom YAMLIO traits for convenient reading and writing. It renders as a string of hex digits in a YAML file. For example, it might render as
DEADBEEFCAFEBABE (YAML does not require the quotation marks, so for simplicity when outputting they are omitted). When reading, any string whose content is an even number of hex digits will be accepted. For example, all of the following are acceptable:
DEADBEEF,
"DeADbEeF",
"\x44EADBEEF" (Note: '' == 'D')
A significant advantage of using this class is that it never allocates temporary strings or buffers for any of its functionality.
Example:
The YAML mapping:
Could be modeled in YAMLIO by the struct:
Definition at line 64 of file YAML.h.
The number of bytes that are represented by this BinaryRef.
This is the number of bytes that writeAsBinary() will write.
Definition at line 82 of file YAML.h.
References llvm::ArrayRef< T >::size(), writeAsBinary(), and writeAsHex().
Referenced by llvm::yaml::sectionMapping(), and writeAsHex().
Write the contents (regardless of whether it is binary or a hex string) as binary to the given raw_ostream.
Definition at line 41 of file YAML.cpp.
References llvm::ArrayRef< T >::data(), llvm::StringRef::getAsInteger(), I, N, llvm::ArrayRef< T >::size(), and llvm::raw_ostream::write().
Referenced by binary_size(), and llvm::CodeViewYAML::detail::UnknownSymbolRecord::map().
Write the contents (regardless of whether it is binary or a hex string) as hex to the given raw_ostream.
For example, a possible output could be
DEADBEEFCAFEBABE.
Definition at line 53 of file YAML.cpp.
References binary_size(), llvm::ArrayRef< T >::data(), llvm::hexdigit(), llvm::ArrayRef< T >::size(), and llvm::raw_ostream::write().
Referenced by binary_size(). | http://llvm.org/doxygen/classllvm_1_1yaml_1_1BinaryRef.html | CC-MAIN-2018-30 | refinedweb | 307 | 50.53 |
Hiding Complexity vs. Too Many Layers
If you’ve ever tried TDD there is a decent chance you’ve written some code like this:
from mock import patch @patch('foo.uploader.upload_client') def test_upload_foo(upload_client): do_upload() upload_client.upload.assert_called_with(new_filename())
In this example, what is happening is we are testing some code that uploads a file somewhere like S3. We patch the actual upload layer to make sure we don’t have to upload anything. We then are asserting that we are uploading the file using the right filename, which is the result of the new_filename function.
The code might look something like this:
from mypkg.uploader import upload_client def new_filename(): return some_hash() + request.path def do_upload(): upload_client.upload(new_filename())
The nice thing about this code it is pretty reasonable to test. But, in this simplified state, it doesn’t reflect what happens when you have a more complex situation with multiple layers.
For example, here is an object that creates a gzipped CSV writer on some parameters and the current time.
class Foo(object): basedir = '/' def __init__(self, bar, baz, now=None): self.bar = bar self.baz = baz self._now = now self._file_handle = None @property def now(self): if not self._now: self._now = datetime.now().strftime('%Y-%m-%d') return self._now def fname(self): return '%s.gz' % os.path.join(self.basedir, self.now, self.bar, self.baz) @property def file_handle(self): if not self._file_handle: self._file_handle = gzip.open(self.fname()) return self._file_handle def writer(self): return csv.writer(self.file_handle)
The essence of this functionality could all be condensed down to a single method:
def get_writer(self): now = self._now if not now: now = datetimetime.now().strftime('%Y-%m-%d') fname = '%s.gz' % os.path.join(self.basedir, now, self.bar, self.baz) # NOTE: We have to keep this handle around to close it and # actually save the data. self.file_handle = gzip.open(fname) return csv.writer(self.file_handle)
The single method is pretty easy to understand, but testing becomes more difficult.
Even though the code is relatively easy to read, I believe it is better to lean towards the more testable code and I’ll tell you why.
Tests Automate Understanding
The goal of readable code and tests is to help those that have to work on the code after you’ve moved on. This person could be you! The code you pushed might have seemed perfectly readable when you originally sent it upstream. Unfortunately, that readability can only measured by the reader. The developer might be new to the project, new to the programming language or, conversely, be an author that predates you! In each of these cases, your perspective on what is easy to understand is rarely going to be nearly as clear to the next developer reading your code.
Tests on the other hand provide the next developer with confidence because they have an automated platform on which to build. Rather than simply reading the code in order to gain understanding, the next developer can play with it and confirm his or her understanding authoritatively. In this way, tests automate your understanding of the code.
Be Cautious of Layers!
Even though hiding complexity by way of layers makes things easier to test and you can automate understanding, layers still present a difficult cognitive load. Nesting objects in order to hide complexity can often become difficult to keep track of, especially when you are in a dynamic language such as Python. In static languages like Java, you have the ability to create tools to help navigate the layers of complexity. Often times in dynamic languages, similar tools are not the norm.
Obviously, there are no hard and fast rules. The best course of action is to try and find a balance. We have rough rules of thumb that help us make sure our code is somewhat readable. It is a good idea to apply similar rules to your tests. If you find that testing some code, that may be reasonably easy to read, is difficult to confirm an isolated detail, then it is probably worth creating a test and factoring out that code. The same goes for writing tons of tests to cover all the code paths.
About the Example
I came up with the example because it was some actual code I had to write. I found that I wanted to be able to test each bit separately. I had a base class that would create the file handles, but the file naming was different depending on the specific class that was inherited. By breaking out the naming patterns I was able to easily test the naming and fix the naming bugs I ran into easily. What’s more, it gave me confidence when I needed to use those file names later and wanted to be sure they were correct. I didn’t have rewrite any code that created the names because there was an obvious property that was tested.
It did make the code slightly more ugly. But, I was willing to accept that ugliness because I had tests that made sure when someone else needed to touch the code, they would have the same guarantees that I found helpful.
Test are NOT Documentation
Lastly, tests are not a replacement for readable code, docs or comments. Code is meant for computers to read and understand, not people. Therefore it is in our best interest to take our surrounding tools and use them to the best of our abilities in order to convey as clearly as possible what the computer will be doing with our text. Test offer a way to automate understanding. Test are not a replacement for understanding.
Finally, it should be clear that my preference for tests and more layers is because I value maintainable code. My definition of maintainable code is defined by years (5-10) and updated by teams of developers. In other words, my assumption is that maintenance of the code is, by far, the largest cost. Other projects don’t have the same requirements, in which case, well commented code with less isolated tests may work just fine. | http://ionrock.org/2014/01/06/hiding_complexity_vs__too_many_layers.html | CC-MAIN-2017-17 | refinedweb | 1,025 | 65.62 |
Previous Chapter: Dynamic websites with mod_python
Next Chapter: Python, SQL, MySQL and SQLite
Next Chapter: Python, SQL, MySQL and SQLite
Creating dynamic websites with Python and Pylons
Introduction
Work on this topic is under process. (August 2014)
The picture on the right side is misleading: We are not talking about this kind of Pylons, i.e. electricity pylons, or transmission towers, used to support an overhead power line.
But their is some interesting aspect in this comparison. It is a set of web application frameworks written in Python. So it can be seen as the steel lattice tower of an electricity pylon, but it is not supporting power lines but web pages. James Gardner, a co-founder of Pylons, defined this framework as "Pylons is a lightweight web framework emphasizing flexibility and rapid development using standard tools from the Python community."
We will demonstrate in simple examples - starting with the inevitable "Hello World" project - how to use it. We will also introduce the usage of Macros.
InstallationBefore you can use Pylons, you have to install it. If you use Debian, Ubuntu or Mint, all you have to do is execute the following code on a command shell:
apt-get install python-pylonsYou are able to create your first Pylons project now:
$ paster create --template=pylons MyProjectYou will be asked two questions and you can answer by keeping the default:
Enter template_engine (mako/genshi/jinja2/etc: Template language) ['mako']: Enter sqlalchemy (True/False: Include SQLAlchemy configuration) [False]:We have created now a directory MyProject, which contains the following files and subdirectories:
- development.ini
- ez_setup.py
- MANIFEST.in
- myproject
- MyProject.egg-info
- README.txt
- setup.cfg
- setup.py
- test.ini
- config
contains the files
- controllers
- __init__.py
- __init__.pyc
- lib
- model
- public
- templates
- tests
- websetup.py
cd MyProject paster serve --reload development.ini
Now the web server is running. If you visit the URL with a browser of your choice, you will see the following welcome screen:
It's generated from ./myproject/public/index.html inside of your MyProject directory.
Static PagesYou can put other html files into the directory ./myproject/public/. These files can be visited by the web browser as well. You can save the following html code as python_rabbit.html:
<html> <head> <title>The Python and the Rabbit</title> </head> <body> <h3>Little Girl buys a Rabbit</h3> A precious little girl walks into a pet shop and asks in the sweetest little lisp, "Excuthe me, mithter, do you keep widdle wabbits?" ?" <br> She, in turn blushes, rocks on her heels, puts her hands on her knees, leans forward and says in a quiet voice, "I don't fink my pet python weally gives a thit." </body> </html>You can visit the URL "" and the html file above will be rendered:
Any files in the directory "public" are treated as static files. It may contain subdirectories as well, which are part of the URL in the usual way. If we create a subdirectory "petshop" in "public", we will receive a "404 Not Found" error, unless we create an index.html file as well and place it inside of the subdirectory, in our case "petshop". So, there is no directory index default view, as we can have it with Apache. This is for security reasons.
We will create now the subdirectory "petshop" and inlcude the following index.html file:
<html> <head> <title>The Ultimate Petshop</title> </head> <body> <h3>The Ultimate Petshop</h3> The ideal pet for little girls: A Python snake <br><br> Please, visit the <a href="../python_rabbit.html">Python and the Rabbit</a> joke! </body> </html>Visiting "" or "", we will encounter the following content:
Getting Dynamic with ControllersWe will create now a dynamic "Hello World" application by creating a controller in our project. The controller is able to handle requests. We can create the controller with the following command:
$ paster controller helloIf we visit the URL we will get a website with the content "Hello World":
We want to change our application into a multilingual website, i.e. visitors should be greeted in their languages. To this purpose we will have to change the file hello.py, which can be found in MyProject/myproject/controllers/:
import logging from pylons import request, response, session, tmpl_context as c, url from pylons.controllers.util import abort, redirect from myproject.lib.base import BaseController, render log = logging.getLogger(__name__) class HelloController(BaseController): def index(self): # Return a rendered template #return render('/hello.mako') # or, return a string return 'Hello World'We will change the index method of the HelloController class:
def index(self, id=None): # Return a rendered template #return render('/hello.mako') # or, return a string if id == "fr": return 'Bonjour Monde' if id == "de": return 'Hallo Welt' if id == "it": return 'Ciao mondo' return 'Hello World'
Calling the URL "" will still return "Hello World", but adding "/de" - i.e. - to the previous URL will return "Hallo Welt".
Mako TemplatesYou may have noticed the commented line "#return render('/hello.mako')". If we uncomment this line, the server will use a mako template "hello.mako" or better it will try to use a template. This template is supposed to be located in the directory "myproject/templates/". So far this directory is empty. Uncommenting the line will create the following error message in your browser window:
WebError Traceback: -> TopLevelLookupException: Cant locate template for uri '/hello.mako'
A Mako is a template library - also called a template engine - written in Python. It is the default template language included with the Pylons and Pyramid web frameworks. Mako's syntax and API borrows from other approaches, e.g. Django, Jinja2, Myghty, and Genshi. Mako is an embedded Python language, used for Python server pages.
A Mako template contains various kind of content, for example XML, HTML, email text, and so on.
A template can contain directives which represent variable or expression substitutions, control structures, or blocks of Python code. It may also contain tags that offer additional functionality. A Mako is compiled into real Python code.
The easiest possible Mako template consists solely of html code. The following Mako template is statically greeting all friends:
<html> <head> <title>Greetings</title> </head> <body> <h1>Greetings</h1> <p>Hello my friends!</p> </body> </html>We change our hello.py in the directory "controllers" to the following code:
from myproject.lib.base import BaseController, render class HelloController(BaseController): def index(self, id=None): # Return a rendered template return render('/hello.mako')
We have to save it in the templates subdirectory. The new page looks like this on a chromium browser:
This introduction is about dynamic web pages with Pylons, so we have to personalize our greeting. At first, we want to demonstrate how to use Python variables inside of a template. To this purpose, the tmpl_context is available in the pylons module, and refers to the template context. Objects attached to it are available in the template namespace as tmpl_context. In most cases tmpl_context is aliased as c in controllers and templates for convenience. Our hello.py needs to import tmpl_context and we set c.name to "Frank":
from pylons import tmpl_context as c from myproject.lib.base import BaseController, render class HelloController(BaseController): def index(self, id=None): c.name = "Frank" # Return a rendered template return render('/hello.mako')The output in a broser hasn't changed dramatically. Just "Hello Frank" instead of "Hello my friends!". Admittedly, still not very dynamical!
But we can use the URL with our id parameter again:
from pylons import tmpl_context as c from myproject.lib.base import BaseController, render class HelloController(BaseController): def index(self, id=None): c.name = id if id else "my friends" # Return a rendered template return render('/hello.mako')
Visiting renders the output "Hello Frank!", whereas the URL will produce "Hello my friends!"
Mapping the root URLWe have seen that we can put various static html files under the root directory "myproject/public/index.html" of our project. We saw that index.html of the public directory is the own which is shown, if we point the browser to You may want to have a dynamic page right at the root. So, we have to map the root URL to a controller action. This can be done by modifying the routing.py file in the config directory. If you look at this file, you will find a comment line "# CUSTOM ROUTES HERE". You have to add the following line after this line:
# CUSTOM ROUTES HERE map.connect('/', controller='hello', action='index')There is one more thing you shouldn't forget: You have to remove the index.html file in public. Otherwise this file will be still served.
Previous Chapter: Dynamic websites with mod_python
Next Chapter: Python, SQL, MySQL and SQLite
Next Chapter: Python, SQL, MySQL and SQLite | http://python-course.eu/pylons.php | CC-MAIN-2017-09 | refinedweb | 1,460 | 57.16 |
15 February 2011 22:18 [Source: ICIS news]
HOUSTON (ICIS)--Current oil and corn prices have made bio-based chemical feedstocks competitive in the ?xml:namespace>
“From a pricing point of view, with oil at $90/bbl and corn at $7/bushel, we are price-competitive with polystyrene [PS] and PET [polyethylene terephthalate],” said Marc Verbruggen, chief executive of NatureWorks.
“It is no longer a question as to if or whether bioplastics will take a significant part of the traditional chemical industry,” he added. “It’s when, where and how fast.”
Verbruggen spoke at the Next Generation Bio-Based Chemicals Summit in
Verbruggen said the
But to reach those levels, bioplastics firms would need about 2% of the
“To take over, we will need billions of dollars,” Verbruggen said. “Who will spend and when?”
To that end, government policymakers should turn their focus to biochemicals, rather than biofuels, he said.
Verbruggen said that many regions across the globe had corn feedstock, but that producers were hesitant to enter the biofuels market because of the food-versus-fuel debate. Chemicals, on the other hand, can be made with less corn feedstock and with strong margins, he said.
“Chemicals take up 8% of oil today and generate 40% of margins,” Verbruggen said. “Biochemicals are already similar.”
He noted that the
But because of limited resources for bioplastics firms, any capacity expansions would be limited in scope over the near-term and would depend largely on which governments offer appropriate incentives to drive spending.
NatureWorks has announced plans to build a second polylactic acid (PLA) facility, but the site has yet to be named.
“Where will the assets be built, in
The Next Generation Bio-Based Chemicals Summit lasts through Thursday.
For more on PS | http://www.icis.com/Articles/2011/02/15/9435677/rising-oil-costs-make-us-bioplastics-competitive-natureworks.html | CC-MAIN-2013-48 | refinedweb | 292 | 61.06 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.