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 |
|---|---|---|---|---|---|
Lesson 3. Introduction to Documenting Python Software
Learning Objectives
After completing this tutorial, you will be able to:
- Be able to define what a
Pythonfunction docstring is and the elements that should be included in a docstring.
- Be able to describe the elements of a well documented python function.
What You Need
You will need a computer with internet access to complete this lesson.
Software Documentation is Important
Documentation is the core of good software development. You can write the best code and tools, but if the code is not documented, it will limit peoples’ use. In this lesson we will explore documentation as it relates to individual functions in Python.
There are two core components of a well documented function when writing software.
1. The Function Docstring
The docstring is the text that you write that describes the function inputs, outputs and application. It’s also the text that you or someone else will see when you use the
help(function-name-here) function in python. Imagine what someone needs to know to use this function. This information should be included in the function docstring. This text goes within the function right below where it is defined. Like this:
def some-function(val): “”” This is the docstring where you can document a function. This is what appears to describe the function when you type help(function-name) into the Python console. parameters -------------- Val: int An integer that you wish to add 1 to. “”” newval = val+1 return(newval)
Pay close attention to the syntax applied to the function above. You will see many different conventions surrounding how to format functions. We will be using
PEP8 and the rasterio package as a guideline for syntax.
2. Online Package Documentation
Docstrings are the first step towards documenting code and proper online documentation is the second. However, good documentation can make or break good software. Proper software documentation is often on a separate website. For many
python packages, readthedocs.org is used to host documentation. ReadTheDocs is free, easy to use and integrates easily with GitHub.
Good documentation will describe the functionality of the package. It will also provide easy to understand vignettes that demonstrate how parts of the package - e.g. functions are used. The more applied the vignettes are, the better. Some developers will even provide example workflows that show you how a set of functions in the package can be used together to produce an entire workflow.
As you begin to study the
earthpy documentation, consider exploring other tools’ documentation for other examples of what documentation can look like. Some examples are below:
Share onTwitter Facebook Google+ LinkedIn
| https://www.earthdatascience.org/courses/earth-analytics-python/contribute-to-open-source/software-documentation-python/ | CC-MAIN-2021-43 | refinedweb | 439 | 57.47 |
Remember that it must still be possible to write (in 2.6) True = 0 assert not True Georg Thomas Lee schrieb: > Option 4 just struck me: only optimize Name nodes if they have a Load > ctx. This makes even more sense: in a Store context, we almost > invariably want the name rather than the constant. > > Cheers, > T > > Thomas Lee wrote: >> My work on the AST optimizer has led me down the path of attempting to >> replace things like Name("True") with Const(Py_True) nodes. This works >> fine most of the time, with the exception of the xmlrpclib module, >> where True and False are actually redefined: >> >> True, False = True, False >> >> As I stated in an earlier email, the optimizer tries to replace the >> tuple of Name nodes on the LHS with Py_True and Py_False respectively, >> which has the net effect of removing xmlrpclib.{True, False}. >> Obviously undesirable. >> >>) >> >> I'm leaning towards #3 at the moment as it seems like it's going to be >> the cleanest approach and makes a lot of sense -- at least on the >> surface. Can anybody think of problems with this approach? >> >> Cheers, >> T >> >> Thomas Lee wrote: >>> Martin v. Löwis wrote: >>>>> The question is, what is the specification for Python. >>>>> >>>> >>>> Now, that's a more interesting question than the question originally >>>> asked (which I interpreted as "why does it work the way it works"). >>>> >>>> The only indication in the specification of that feature I could find >>>> was: >>>> >>>> >>>> >>>> "Changed in version 2.4: Assignments to None are illegal and raise a >>>> SyntaxError." >>>> >>>> Now, given that this talks about the built-in namespace, this *doesn't* >>>> specify that foo.None=1 should also raise a syntax error. >>>> >>>> So the implementation apparently deviates from the specification. >>>> >>>> In Python 3, None, True, and False are keywords, so clearly, the >>>> intended semantics is also the implemented one (and the language >>>> description for 2.x needs to be updated/clarified). >>>> >>>> >>> Interestingly enough, the semantics of True, False and None are >>> different from one another in 2.6: >>> >>> True = "blah" and False = 6 are perfectly legal in Python <=2.6. >>> >>> Funny, I just ran into this. I was trying to figure out why the AST >>> optimization code was breaking test_xmlrpc ... turns out xmlrpclib >>> defines xmlrpclib.True and xmlrpclib.False and the optimizer was >>> trying to resolve them as constants while compiling the module. Ouch. >>> >>> What happened in 3k? Were the constants in xmlrpclib renamed/removed? >>> >>> Cheers, >>> T >>> >>> _______________________________________________ >>> Python-Dev mailing list >>> Python-Dev at python.org >>> >>> Unsubscribe: >>> >> >> _______________________________________________ >> Python-Dev mailing list >> Python-Dev at python.org >> >> Unsubscribe: >> > > _______________________________________________ > Python-Dev mailing list > Python-Dev at python.org > > Unsubscribe: > --. | https://mail.python.org/pipermail/python-dev/2008-June/080443.html | CC-MAIN-2014-15 | refinedweb | 436 | 65.62 |
vietnam arcade games, sharikan assult arcade game, online games arcade temple, ms. pacman arcade game, games play arcade by dreamauthentics com.
picture find arcade game, ghouls and ghost arcade game, vietnam arcade games, how to play arcade games for free, spy hunter old computer game arcade.
photohunt arcade game, restaurants with arcade games, arcade games for sale ct, q bert arcade game, arcade internet games for kids.
best arcade games of all times, brisbane arcade games, gamecube arcade games, trackand field games arcade games, sharikan assult arcade game, dress up arcade animals games index.
zango arcade games, drive arcade games 1320 moto urban fever, free action arcade puzzle games, fairies game from real arcade, 18 wheeler arcade game.
golden axe arcade game, cruising driving arcade game, dreamcast arcade games, teenage mutant ninja turtles ii arcade game, las vegas video game arcade.
ghouls and ghost arcade game, arcade game character qball, scary arcade games, vintage arcade gaming machine, arcade game sale colorado.
type in csharp arcade games, action hollywood arcade game, on line free arcade games, resturaunt games arcade, free arcade games v4.
cheap video arcade games, 514 reflexive arcade games, area 51 arcade game online, refurbished double dragon arcade game, arcade games portland oregon.
epoc games arcade rock fall, teenage mutant ninja turtles the arcade game, xbox 360 arcade console with bonus game, vintage ricochet arcade game, popular video arcade games.
arcade games on ds, used arcade games naperville, sharikan assult arcade game, teenage mutant ninja turtles the arcade game, arcade game character qball.
street fighter 2 arcade game for sale, game dollar arcade, arcade games arena, arcade games for the blind, arcade game songs.
Categories
- Iphone arcade games
- retro video game arcade uk
insane arcade games
free windows arcade games download
free arcade game 20
top arcade games amusement
buy sell defender arcade game
best arcade games list
pin-up art arcade game
scary arcade games
super arcade games
road arcade game for sale
street fighter 2 arcade game for sale
list of 360 arcade games
stear crazy arcade game
arcade games dallas fort worth
online games action arcade games
arcade game hire sydney
import arcade games
- epoc games arcade rock fall
- smartphone arcade games
- ninja kiwi games arcade power pool
- ghouls and ghost arcade game
- street fighter 2 arcade game for sale
- drive arcade play games 1309 mad truckers
- ambulance arcade game
- arcade games cbinets
- fisher price arcades computer games free
- atari arcade games | http://manashitrad.ame-zaiku.com/arcade-game-pad-ps2.html | CC-MAIN-2019-04 | refinedweb | 406 | 50.6 |
Hello,
First post, so short introduction: I'm mostly working on Django projects, currently for 3yourminD in Berlin. Working with python / Django for 6 going on 7 years. Also experienced in PHP, some Js and build systems like docker. We're currently migrating everything to docker and pip / requirements.txt isn't cutting it anymore and I've tasked myself with looking for or building an alternative tool.
This weekend I did quite a bit of research into the packaging tools and came accross PEP 518. What it doesn't address is that there now is a file resvered that declares very little. It does not declare and define sections to serve as a deployment file for a project and apparently it is unclear to tool builders what the one section is does define is supposed to be used for.
Case in point: poetry doesn't add itself to the build-system table when writing the py-project.toml file. Which, as I read it, it should. Ideally, every tool.${name} should be in the build system?
So, can we improve the file specification and introduce sections that allows a project (not a library) to specify how it should be built? Right now, this is all off-loaded to the tools that use the file and one cannot rely on anything. It also makes migration from one tool to another difficult and cooperation between tools hard. Or is this intentional: is this supposed to be tied to specific tools as build system are generally tightly coupled? And should we not change that?
It would help if the PEP had some explanation of the choices made to reserve a file that partially sets out to replace (all?) other files, but does not do anything to accomplish that. I realize that PEP-517 defines the API and leaves the implementation up to the tool, but that doesn't necessarily mean the py- project file should not name / reserve tables that the PEP 517 API should use.
I'm considering writing a tool that focuses solely on the deployment and dependency maintenance of a project and would like to not "vendor lock-in" my users, with even those dependency lists, because I have to use the tool namespace and can fill it every way I see fit and so will others.
So ideally, we would reserve dependency tables: [dependencies.$name]
Reserved names: standard, dev, test
Tools can add more names which they can then interpret themselves: [dependencies.stage] django-anonymizer = "^0.5"
And test tables and probably one or two more that come to mind. Is there any interest from the team to improve the file format and lock down such tables? I'd love to do the initial proposal if that helps move things forward. | https://mail.python.org/archives/list/distutils-sig@python.org/message/54QFJKANZOXY6NQZKEAPG346OL7MCQCV/ | CC-MAIN-2022-33 | refinedweb | 463 | 71.75 |
Python interface to the Google WebRTC Voice Activity Detector (VAD) [released with binary wheels!]
Project description
py-webrtcvad-wheels
This is a python interface to the WebRTC Voice Activity Detector (VAD). It is compatible with Python 2 and Python 3. It is forked from wiseman/py-webrtcvad to provide releases with binary wheels.
A VAD classifies a piece of audio data as being voiced or unvoiced. It can be useful for telephony and speech recognition.
The VAD that Google developed for the WebRTC project is reportedly one of the best available, being fast, modern and free.
How to use it
Install the webrtcvad module:
pip install webrtcvad
Create a Vad object:
import webrtcvad vad = webrtcvad.Vad()
Optionally, set its aggressiveness mode, which is an integer between 0 and 3. 0 is the least aggressive about filtering out non-speech, 3 is the most aggressive. (You can also set the mode when you create the VAD, e.g. vad = webrtcvad.Vad(3)):
vad.set_mode(1)
Give it a short segment (“frame”) of audio. The WebRTC VAD only accepts 16-bit mono PCM audio, sampled at 8000, 16000, 32000 or 48000 Hz. A frame must be either 10, 20, or 30 ms in duration:
# Run the VAD on 10 ms of silence. The result should be False. sample_rate = 16000 frame_duration = 10 # ms frame = b'\x00\x00' * int(sample_rate * frame_duration / 1000) print 'Contains speech: %s' % (vad.is_speech(frame, sample_rate)
See example.py for a more detailed example that will process a .wav file, find the voiced segments, and write each one as a separate .wav.
How to run unit tests
To run unit tests:
pip install -e ".[dev]" python setup.py test
History
2.0.10
Fixed memory leak. Thank you, bond005!
2.0.9
Improved example code. Added WebRTC license.
2.0.8
Fixed Windows compilation errors. Thank you, xiongyihui!
Project details
Release history Release notifications
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages. | https://pypi.org/project/webrtcvad-wheels/ | CC-MAIN-2020-10 | refinedweb | 335 | 69.48 |
# Modern COBOL: Package Tutorial
You will learn and create an application-level library in COBOL. You will structure the package, implement automatic tests, deploy on GitHub and enable Continuous Integration workflow. Finally, you will publish the package in the COBOL package registry.
Preconditions
-------------
You have learned basic principles, methods and standards of COBOL. In this tutorial we’ll use **GnuCOBOL** — a free COBOL compiler which implements a substantial part of the COBOL 85, COBOL 2002 and COBOL 2014 standards and X/Open COBOL, as well as many extensions included in other COBOL compilers.
You have **Docker**, a command-line virtualization tool, installed.
You have **NPM**, a package manager for JavaScript programming language, installed.
You have **Git**, an open source distributed version control client, installed.
You have **GitHub** account for publishing of the package.
You may use any text editor you like, but I recommend **Visual Studio Code** (or its open-source version **VSCodium**) with COBOL-syntax extension `bitlang.cobol` installed.
Package vs Library
Each programming language has standard set of functions or operators provided by default and included into installation package. In COBOL we call them Intrinsic functions. Intrinsics cover basic programming needs, but we’ve used to extend default set by own functions every time writing something smarter than ´Hello, world!´.
Gradually, custom functions form reusable COBOL libraries, Copybooks, for inclusion into other programs and services on-demand. Thanks to Version Control Systems, contributors are able to effectively cooperate and deliver the libraries to the programmers. The only problem was an integration with external source-code that might be casually written in other COBOL dialect, coding standard or approach. And package management is a solution here.
Similar to other application-level package managers, such as **Yarn** for JavaScript, **Maven** for Java, **Packagist** for PHP, **NuGet** for C# etc., in 2020 COBOL obtained its own public package manager that standardizes the way the contributors should treat the libraries — COBOLget. The tutorial explains how to create and publish your first COBOL package the modern way.
Specifications
--------------
For financial applications we’ll implement `banking` package which exposes single `iban-checksum` function — an [IBAN](https://en.wikipedia.org/wiki/International_Bank_Account_Number) validator. The function accepts alphanumeric argument and returns numeric value `1` in case of success. The algorithm is as follows:
* Check IBAN length.
* Move the first *4* characters to the end.
* Replace each letter with two digits, where *A = 10, B = 11, …, Z = 35*.
* Compute the remainder by *MOD97* intrinsic function. If the remainder is *1*, the checksum is valid.
Structuring
-----------
Please create new GitHub repository `demo-banking` and copy [template of the package](https://github.com/OlegKunitsyn/gnucobol-examples/tree/master/package) to your local copy of the repository. Here’s a structure of the package:
```
├── Dockerfile
├── .github
│ └── workflows
│ └── docker-image.yml
├── .gitignore
├── modules.json
├── modules-lock.json
├── README.md
├── src
│ └── banking.cbl
└── tests
└── banking-test.cbl
```
For COBOLget packages *Dockerfile*, *README.md*, *.gitignore* and *.workflows* are optional, but our library follows **Continuous Integration** practices, where each modification of the source-code is getting tested on the repository. On each push or pull request GitHub will trigger `docker-ci` workflow. In its turn, Docker will download GnuCOBOL image `gnucobol2.2`, install COBOLget dependencies from `modules-lock.json` and will execute GCBLUnit tests in `banking-test.cbl`.
The file `modules.json` is a **Manifest** of the package which describes the library and its dependencies:
```
{
"name": "demo-banking-FIXME",
"description": "Demo banking package",
"modules": [
"src/banking.cbl"
],
"dialect": "gnucobol",
"licenses": [
"MIT"
],
"authors": [
"FIXME"
],
"dependencies": {},
"dependencies-debug": {
"gcblunit": "*"
}
}
```
The properties are speaking enough and similar to other package managers. Our package does not use any dependencies, but requires `gcblunit` package at any version (by default, the latest available) for development and debugging purposes. Property `modules` must contain COBOL modules (programs and functions) for inclusion as a Copybook. Full schema of the Manifest you may find on <https://cobolget.com/schema.json>.
Let’s install `cobolget` command-line tool and validate our package:
```
$ npm install -g cobolget
$ cobolget validate
An error occurred: Error: "demo-banking-FIXME" does not match to ^[a-z0-9\-]+$
```
Oops! Please replace *FIXME* with your GitHub username in *README.md*, as well as in the Manifest in lower-case, making the package valid and unique in the COBOLget registry. Don’t forget to replace *FIXME* in the command below as well:
```
$ cobolget validate
Manifest modules.json is valid.
$ cobolget list demo-banking-FIXME
No matching results.
```
Well done! The structure of the package is finished. We’ll test our library in the next step.
Testing
-------
The file `banking-test.cbl` has 8 GCBLUnit assertions that expect *“1”* returned by `iban-checksum` function. Let’s execute `docker-ci` workflow locally, an one-liner
```
$ docker build --tag package .
```
As you can see, creation of the Docker image fails on testing phase.
```
....FFFF
Time: 00:00:00
There was 0000000004 failure(s):
F banking-test #05 assert-equals 1 <> 0
F banking-test #06 assert-equals 1 <> 0
F banking-test #07 assert-equals 1 <> 0
F banking-test #08 assert-equals 1 <> 0
FAILURES!
Tests: 0000000001, Skipped: 0000000000
Assertions: 0000000008, Failures: 0000000004, Exceptions: 0000000000
The command '/bin/sh -c cobc -x -debug modules/gcblunit/gcblunit.cbl tests/* --job='banking-test'' returned a non-zero code: 1
```
The last 4 of 8 assertions returned *“0”* instead of expected *“1”*. Definitely, it’s a **false negative** result because these numbers have been carefully copied from Wikipedia. :) You may remove inner spaces and try again, but I suggest you to improve `iban-checksum` function instead. Spaces are generally acceptable in IBAN and must pass the validation. The best implementation will be included into *core* COBOLget package under your name. Nevertheless, you may commit and push the package on GitHub and proceed to the next step.
Publishing
----------
Please “release” your package on GitHub by attaching a version tag e.g. `1.2.3` to the commit. COBOLget implements [SemVer](https://semver.org/) versioning standard, any other tags will be skipped during the import. Now you can import your package into [COBOLget Registry](https://cobolget.com/) by using `index` command, from the command-line or on the website.
```
$ cobolget index -h
Usage: index [options]
Import or update the package in the registry
Options:
-t, --token Repository token for private package
-o, --organization Organization name for private package
-h, --help output usage information
```
Newborn packages we index by URL of the repository. Further releases we can index by the name.
```
$ cobolget index https://github.com/FIXME/demo-banking
Package 'demo-banking-FIXME' has been indexed in the registry.
```
Your first COBOL package is published on cobolget.com and ready for integration into applications and [microservices](https://habr.com/en/post/512676/).
Conclusion
----------
You have created and successfully published your application-level COBOL library in COBOLget format by using Git, Docker, Unit-Testing and Continuous Integration practices. 60-years old COBOL fits modern software engineering.
Are you Wikipedia editor? Please help publish missing [article](https://en.wikipedia.org/wiki/COBOLget_(software)) from the [sandbox](https://en.wikipedia.org/wiki/User:Cobollero/sandbox). | https://habr.com/ru/post/515112/ | null | null | 1,171 | 50.23 |
BME280 on the LoPy
Hello,
I'm currently trying to get the Adafruit BME280 sensor running with my LoPy.
And I came across pretty much the same issue as michal in this post Wipy 2.0 and BME280 sensor.
However my issue is looking a little different:
Traceback (most recent call last): File "<stdin>", line 9, in <module> File "bme280.py", line 185, in __init__ File "bme280.py", line 191, in _load_calibration File "bme280.py", line 151, in readU16LE File "bme280.py", line 134, in readU16 OSError: I2C bus error
I'm very new to the LoPy and as far as I read from the specs he has pretty much the same hardware as the WiPy. So I ask myself what could cause this issue. The original library:
I initialized my BME like this:
>>> from machine import I2C >>> import bme280 >>> i2c = I2C(0, I2C.MASTER, baudrate=100000) >>> bme = bme280.BME280(i2c=i2c)
Do you have any suggestions how to solve this?
Thanks already in advance!
@robd I think you didn't get me correctly.
Anyways, try the code as below:
from machine import I2C
import BME280
i2c = I2C(0,I2C.MASTER, baudrate=100000)
bme = BME280.BME280(address=BME280_I2CADDR, i2c=i2c)
print('Temp = ', bme.temperature())
@devang-sharma the code used was from
I copied everything over as it was and didn't modify anything.
The code which I tried to write and didn't work was
from machine import I2C
import BME280
i2c = I2C(0,I2C.MASTER, baudrate=100000)
print('Temp = ', BME280.temperature())
Yes I am new to python and right now it is kicking me, I didn't see any docs other than small comments in the code. So it was me trying to feel around and get this sensor working.
I was able to get a SI7021(different code) to work but not the BME280.
I will look at and try to understand your suggestions.
Thank you for your help
@robd The first error you're getting is because of indentation of the
returnfunction. Write it within
def humidity(self). I guess you're new to python, it'd be better if you read docs properly.
The second error is due to the way you've used
import BME280. The library has a class BME280. There are 2 ways to solve this:
- You can import it as
from BME280 import *and make a constructor just after i2c something like this:
bme = BME280(address=BME280_I2CADDR, i2c=i2c)
OR
- keep it as
import BME280and constructor as:
bme = BME280.BME280(address=BME280_I2CADDR, i2c=i2c)
Make sure to use the same name as defined in the library.
I hope this helps you.
@robert-hh I have tired several libraries, LoPy_BME280, oscarBravo-wipy_bme280, and mpy_bme280_esp8266.
and thank you to @devang-sharma
I must be doing something really wrong for nothing to work correctly.
I switched over to a Si7021 and I was able to get that to work but I need to use the BME280.
Thanks,
@devang-sharma thank you for the link. I really hate learning curves. I tried the TTN libraries and I still have issues. How are you calling the library?
I am trying with (firmware version 1.10.2.b1)
from machine import I2C
import BME280
i2c = I2C(0,I2C.MASTER, baudrate=100000)
bme = bme280.BM280(i2c=i2c)
print('Temp = ', bme280.temperate())
the errors I am getting are
I then tried to see if my sensor was readable and I did
from machine import I2C
i2c = I2C(0, I2C.MASTER, baudrate=100000)
i2c.scan()
which returned 118 (0x76)
then I did the following
Any pointers to my errors?
Thank you
This post is deleted!
@robd I've faced a similar issue and added argument 'little' as @robert-hh suggested which worked for me. I don't know which library you're using. But I've been using this:
Hello,
There are quite a few entries on the BME280.
I have been reading them and I am still not able to fix my issues.
I have tried several of the libraries and I am just at a stand still.
When I do a scan of the I2C port I get 0x76 so I know that the sensor is there.
What I get is as follows (firmware rev 1.10.2.b1)
Thank you,
@devang-sharma No specific API doc needed, since it is standard Python behaviour now. It was incompatible before, but I'm not shure, for which MicroPython version. It may be that the Pycom branch always was compatible to the Standard.
And yes, even in that case changes toward language compliance may break code, so it should be noted.
- Devang Sharma last edited by Devang Sharma
@robert-hh, that worked! Thanks, but the same error for write8:
Is there any link to the changed API or library? That would be better than posting every single error! :'D
EDIT: Solved the error. Replaced value.to_bytes(1) with "value"! No more Errors!
@devang-sharma Sorry, it should be a string:
result = int.from_bytes( self._i2c.readfrom_mem(self._address, register, 2), 'little') & 0xFFFF
@robert-hh I've done changes as you said but got the NameError as:
"name 'little' is not defined". How can I solve it?
Thank You.
@devang-sharma The required positional argument is 'little' in the call of from_bytes(). The API was changed a while ago. You have to modify the script BM280.py into:
result = int.from_bytes( self._i2c.readfrom_mem(self._address, register, 2), little) & 0xFFFF
The same in function readU8().
- Devang Sharma last edited by Devang Sharma
Hello Everyone,
I'm using LoPy and I've got the similar type of error as @binux got.
I'm getting the following error:
This is my code:
Please guide me solving this!
Thank You.
- ledbelly2142 last edited by
@Butch
That looks to be it. The I2C address was 77, not 76... weird. I did not think to check the I2C address.
Thanks!
@ledbelly2142 It's possible that it's a bad sensor. Do you have another one to try? You might also check to make sure that i2c.scan() is returning the same address that is used in the BME280 library. If it isn't, you'll have to change the address in the library.
- ledbelly2142 last edited by ledbelly2142
For me, the issue comes up from :
bme = bme280.BME280(i2c=i2c)
Thats where I get the errors indicating an I2C bus error.
I SDA on pin 9 and SCL on pin 10.
Could it be a bad sensor?
So I unplugged the BME280 sensor and got the same error.
@ledbelly2142 Try following the line of logic I tried in the python REPL: import, instantiate, and initialize:
>>> from machine import I2C >>> import bme280 >>> i2c = I2C(0, I2C.MASTER, baudrate=100000) >>> bme = bme280.BME280(i2c=i2c)
See where that takes you.
The original problem I ran into and ultimate fixed was that the 8- and 16-bit writes needed the value to be written to be a bytearray, not the raw value. Beyond that, all I added was a wrapper for altitude. | https://forum.pycom.io/topic/904/bme280-on-the-lopy/22 | CC-MAIN-2019-09 | refinedweb | 1,172 | 76.72 |
Task: Java Program to Calculate Area of Circle
What is the formula for calculating Area of Circle?
The required formula for calculating area of circle is:
area = π . r2
Where r is the radius of the circle and π is a mathematical constant with fixed value 3.1415.
We should declare a constant for pi in this Java program, it will enhance program readability and clarity. Here is a detailed explaination on How to Declare a Constant in Java Programs With Examples.
The source code of the Java program to input radius and find area of circle
/* Write a Java Program to input radius of a circle and display the area of circle. Use the formula: area = π . r2 where r is radius and π is a mathematical constant with constant value 3.1415 Use a named constant for π. */ package areaofcircle; /** * @author EasyCodeBook.com */ import java.util.Scanner; public class AreaOfCircle { public static void main(String[] args) { double radius, area; final double PI = 3.1415; Scanner input = new Scanner(System.in); System.out.print("Enter radius of circle="); radius = input.nextDouble(); area = PI * radius *radius; System.out.print("Area of Circle=" + area); } }
The output of Java Program to calculate area of circle
run:
Enter radius of circle=5
Area of Circle=78.53750000000001BUILD SUCCESSFUL (total time: 21 seconds)
Hey there! This is my first comment here so I just wanted to give a quick shout out and say I reallyenjoy reading your blog posts.
I found simply the info I already searched everywhere and just couldn’t come across. What an ideal web site.
Excellent post. I will be going through some of these issues as well.
I think the admin of this web site is truly workinghard in support of his website, since here every data is quality based data.
Hi there, You have performed an incredible job.I’ll definitely diggg it and for my part recommend to my friends.I am sure they will be
Hello there, just became aware of your blog through Google, and found that it is truly informative.I am going to watch out for brussels.
I’ve got some suggestions for your blog you might be interestedin hearing. Either way, great site and I look forward to seeing it improve over time. | https://easycodebook.com/java-program-to-calculate-area-of-circle/ | CC-MAIN-2021-04 | refinedweb | 381 | 67.04 |
Server Controls
Server controls are specifically designed to work with Web Forms. There are two types of server controls: HTML controls and Web controls.We review them in the following sections.
HTML Controls
The first set of server controls is HTML controls. Each HTML control has a one-to-one mapping with an HTML tag and, therefore, represents an HTML control you’ve probably been using.
These controls reside in the System.Web.UI.HtmlControls namespace and derive either directly or indirectly from the HtmlControl base class. The controls and their corresponding HTML tags are given in Table 4.2.
Get Inside ASP.NET now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers. | https://www.oreilly.com/library/view/inside-aspnet/0735711356/0735711356_ch04lev1sec4.html | CC-MAIN-2020-24 | refinedweb | 126 | 60.82 |
When Should You Use Implicitly Unwrapped Optionals
The Missing Manual
for Swift Development
The Guide I Wish I Had When I Started Out
Join 20,000+ Developers Learning About Swift DevelopmentDownload Your Free Copy
When should you use implicitly unwrapped optionals? The short answer to this question is "Never." But the answer is more nuanced than that. Implicitly unwrapped optionals were added to the Swift language for a reason.
What Is an Implicitly Unwrapped Optional?
The concept underlying implicitly unwrapped optionals is easy to understand. As the name implies, an implicitly unwrapped optional behaves as an optional. I write behave because optionals and implicitly unwrapped optionals are defined differently in the Swift standard library. What's important is that an implicitly unwrapped optional is allowed to have no value. It shares this trait with optionals.
We declare an implicitly unwrapped optional by appending an exclamation mark to the type.
var text: String!
Remember that the exclamation mark is a warning sign in Swift. It indicates that we can access the value of the implicitly unwrapped optional without unwrapping it using optional binding or optional chaining.
I need to mention that we can still use optional binding and optional chaining to safely access the value of the implicitly unwrapped optional.
var text: String! if let text = text { ... }
var text: String! let startIndex = text?.startIndex
We can also check it for
nil. But this shouldn't be necessary since an implicitly unwrapped optional promises the compiler it has a value when it is accessed.
var text: String! if text == nil { ... }
You could see an implicitly unwrapped optional as an optional whose value is always accessed by forced unwrapping. This also means that a runtime error is thrown if you access an implicitly unwrapped optional that has no value.
Why Would I Need Implicitly Unwrapped Optionals?
Like I said, it is perfectly fine and possible to never use implicitly unwrapped optionals. Implicitly unwrapped optionals are a compromise between safety and convenience. Whenever you use an implicitly unwrapped optional instead of an optional, you trade safety for convenience. If safety is more important to you, then don't use implicitly unwrapped optionals.
Implicitly unwrapped optionals are a compromise between safety and convenience.
If you declare a property as optional, then you need to use optional binding or optional chaining every time you access the value of the optional. While this isn't a problem, it makes the code you write more verbose and the result may be less readable. This isn't true if you use implicitly unwrapped optionals.
When Should You Use Implicitly Unwrapped Optionals?
The Swift Programming Language states the following.
Sometimes it is clear from a program's structure that an optional will always have a value, after the value is first set. In these cases, it is useful to remove the need to check and unwrap the optional's value every time it is accessed, because it can be safely assumed to have a value all of the time. - The Swift Programming Language
Outlets are a common example when discussing implicitly unwrapped optionals. Why does Apple use implicitly unwrapped optionals to declare outlets? The reason is simple.
Every stored property of a class needs to have a valid value before the initialization of the instance is complete. If you don’t know the value of a stored property during initialization, you can assign a sensible default value or declare it as an optional, which has a default value of
nil. But there is a third option, use an implicitly unwrapped optional.
The value of an outlet is set after the instance of the class is initialized. This is inconvenient since you know that the outlet will have a valid value when it is later accessed. For these reasons, outlets are often declared as implicitly unwrapped optionals. The only reason for doing so is convenience. That is important to understand. It is perfectly fine to declare outlets as optionals.
import UIKit class ViewController: UIViewController { @IBOutlet var titleLabel: UILabel! ... }
Being Bitten by Implicitly Unwrapped Optionals
If you use implicitly unwrapped optionals for anything else but outlets, I can assure you that you will be bitten at some point. When I first started working with Swift, I noticed (looking back) how easily implicitly unwrapped optionals made their way into my code. These implicitly unwrapped optionals were always properties that I couldn't give a value during initialization. This is a common issue when working with storyboards and segues, for example.
A few months ago, I took over a project that makes ample use of implicitly unwrapped optionals and that has backfired several times since I started working on the project. While I can appreciate the above statement in The Swift Programming Language, it may be obvious that an optional will always have a value when you write the code ... but code changes and assumptions change.
Someone might take over the project and not know about the assumptions you made when you wrote the code that uses implicitly unwrapped optionals.
Be Careful
I continue to declare outlets as implicitly unwrapped optionals, but I never use implicitly unwrapped optionals for anything else. Be careful when you make assumptions or promises you may not be able to keep. The code you write today won't look the same a year from now.
Don't try to bypass Swift's type safety. It is a cornerstone of the language and that is for good reason. Implicitly unwrapped optionals were added to the language for convenience, but that problem can also be solved with optionals.
The Missing Manual
for Swift Development
The Guide I Wish I Had When I Started Out
Join 20,000+ Developers Learning About Swift DevelopmentDownload Your Free Copy | https://cocoacasts.com/when-should-you-use-implicitly-unwrapped-optionals | CC-MAIN-2020-45 | refinedweb | 954 | 57.06 |
On 12/22/10 4:38 PM, Daniel Shahaf wrote:
> Blair Zajac wrote on Wed, Dec 22, 2010 at 13:22:11 -0800:
>> On 12/22/10 10:56 AM, Daniel Shahaf wrote:
>>> Blair Zajac wrote on Wed, Dec 22, 2010 at 10:45:12 -0800:
>> Since probably 100% of the time the last error in a
>> chain is not a tracing error, then err_abort() will be properly
>> deregistered by svn_error_clear().
>>
>
> Agreed. As to the 'lost' links (those not pointed to any more),
> I believe they're allocated from the same pool as every other link in
> the chain, so they'll be freed when that chain is cleared.
Yes.
>>>> It seems the best thing is to have svn_error_purge_tracing() return a
>>>> brand new chain that shares no links with the original chain, and then
>>>> both need to be freed.
>>>>
>>>
>>> That makes sense; if we'll work with complete chains, there's a smaller
>>> chance of more edge-case bugs.
>>
>> Thinking on this a little more, since most people won't use debugging,
>> it'll be wasteful to have svn_error_purge_tracing() make a duplicate
>> chain that will have no tracing errors in it.
>>
>
> IOW, duplicating in maintainer mode forces duplicating in non-maintainer
> mode too, making the common case costlier. True.
>
> However, we could have a macro that causes the dup() operation to only
> be done in maintainer mode:
>
> void svn_error_purge_tracing_shell(svn_error_t **err_p)
> {
> #ifdef SVN_ERR__TRACING
> svn_error_t *err = svn_error_purge_tracing(*err_p);
> svn_error_clear(*err_p);
> *err_p = err;
> #endif /* SVN_ERR__TRACING */
> }
>
>> So maybe we should have svn_error_purge_tracing() be related to the input
>> chain and share what it can, but not be an error chain one should use
>> svn_error_clear() on.
>>
>
> IOW, change its promise such that it's the passed-in error, not the
> returned one, which should be cleared? And have it leave the passed-in
> chain untouched?
>
> It makes sense on a first scan, but at 3am it's too late for a full +1.
I've attached a patch to review. It fixes both svn_error_purge_tracing() and
the the behavior of svn_repos__post_commit_error_str().
>>>>>.
>>>>
>>>
>>> You're right, I'll modify my example to this:
>>>
>>> SVN_ERR__TRACED /* start of chain */
>>> SVN_ERR__TRACED
>>> "non-tracing link" /* end of chain */
>>>
>>> In this case, the middle link would be lost. Right?
>>
>> Both SVN_ERR__TRACED would be lost by svn_error_purge_tracing(), right?
>>
>
> Won't the inner while() loop would skip over them?
Yes, I think it would. We should probably write a unit test for
svn_error_purge_tracing().
Blair
This is an archived mail posted to the Subversion Dev
mailing list. | http://svn.haxx.se/dev/archive-2010-12/0560.shtml | CC-MAIN-2014-15 | refinedweb | 411 | 66.88 |
Hey, I'm new to programming, and I know a little about basic, and a minimal amount about C++. I was wondering if anyone could explain the steps needed to be taken for writting an encryption program. If someone would like to talk to me via email or aim, I'd be really grateful, just because I don't think many people will post here... But thanks for any posts
-0ri0n
With what weapons World War Three will be fought, I do not know, but World War Four will be fought with sticks and stones.
-Albert Einstein
I don't know C++ or BASIC that well but it would all depend on what kind of encryption you would want. Encryption could be a slight change (moves every letter up by 1, "a" would change to "b") or it could follow a specific algothrim that depends on many variables (i.e time, amount of letters, etc.).
Well, I'll write a quick and very simple encrytion program in C++ below:
(I apologize for any errors, I haven't programed in well over six months.)
#include <iostream.h>
int main()
{
// Bad programming skills will show... must be a 10 character password.
char password[10];
char encrypted[10];
cout << "Enter the password: ";
cin >> password;
// Time for encryption!
for( int x = 0; x < 10; x++)
{
encrytped[x] = password[x] + 1;
}
// Display encrypted password!
cout << "Your encrypted password is: " << encrypted << endl;
return 0;
}
Again I want to emphasize that the program above may have errors and may be quite lame but that could be a simple encrytion program that changes every letter by 1.
As for the steps for writing an encryption program, I would imagine that they would be close to something as follows:
1) Identify cause (simple encryption or CIA level).
2) Form an algothrim that supports cause.
3) Write the program.
4) Ask people to test the program.
5) Encrypt some text and see if t works.
Hope this helps!
- Cheers,
jag291
Originally posted here by 0ri0n
just because I don't think many people will post here... But thanks for any posts
-0ri0n
Your kidding me right? This has to be like one of the most active bullitin boards I've seen on the WWW.
Ok encription.... ehhh I haven't fooled with that much but I know that in VB you can use Xor to perform an operation on two numbers, thus returning a value that can be used to encript / decrypt some text & (ect).
(Example) Lets do simple math. 69 Xor 50 returns to the value of 119. Chr$(69) can return it into ascii. Then you can use Use Asc("69") then it can be used to turn it back into (ascii basicly known as "letters & stuff").
Ok so my example is very short and kinda lame but its hard to code things off the top of your head I hope it'll help though.
Forgot to add that this is in the wrong forum... it should be programming security.
thanks for the replies thus far. And i meant I wasn't expecting people to post back on this thread. But i guess i was wrong GOD BLESS YOU ALL!!
and dont forget that most encryption algorithms are language independent. that is, the rsa encryption algorithm (for example) can be implemented equally well in java, c, c++, probably basic too. the choice of language depends on platform, use, familiarity, etc.
just my $.02 worth...
I would say that if you wanted to created your own encryption algorithm, you might want to get a little more advanced. The post before this were very good at explaining the purpose of encryption. First, what are you encrypting, password? Partitions? Next, once the user has 'entered' the data, how will the program twist and turn it , and then turn it and twist it back. Turn it into source and you've got you algorithm. God Speed.
Scatman
If the scatman can do it so can you.
Just learn some basics of programming, programming is not difficult I did it when I was twelve. For writing an encryption program you'll need to understand how encryption works. More information about encryption >>
After reading all this information all you have to be is a little bit creative. Just like the people of the CIA and KGB.
Good luck...
[shadow]OpenGL rules the game[/shadow]
better u`ll try 2 program tht in pearl or C. C++ is also okay. u must find them in bruce shinrer`s book 4 cryptography....u`ll learn lotz...
|\\|e0
I have written some simple encryption programs, and have had my fair share of errors in them. If you check out , you can see links to my encryption program. It is written in Javascript/HTML, so it shouldn't be too difficult to figure out, despite my lack of comments.
Basically, here is what you need to do to make a XOR based encryption program...
* Make sure you have your headers, main function set up, etc...
1) Make 3 character arrays with same length of your choice ( char key[500], plaintext[500], ciphertext[500]; )
2) Prompt user for a Key ( cin>>key; )
3) Prompt user for text to encrypt ( cin>>plaintext; )
4) Encrypt plaintext and key together with a loop ( for(int i=0;i<500;i++)
ciphertext[i]=plaintext[i]^key[i];
5) Display ciphertext/encrypted/XORed output ( cout<<ciphertext; )
Those steps above would result in a program similar to this:
#include <iostream.h> // your header(s)
// main function
int main(void)
{
char key[500], plaintext[500], ciphertext[500]; // declare variables
cout<<"What is your key? "; // display message/prompt
cin>>key; // get the key from the user
cout<<"\nPlease type your message below:\n"; // display message/prompt
cin>>plaintext; // get the message to encrypt from the user
// now, let's encrypt
for(int i=0; i<500; i++)
ciphertext[i]=plaintext[i]^key[i]; // this is our XOR encryption saved into the ciphertext variable
cout<<"\nHere is your message when it is XORed:\n"<<ciphertext; // display the message
return 0; // exit main function with code 0 (usually no errors)
}
Many encryption programs need a decryption program to be useful. Notice I didn't say ALL... Anyways, the beauty of XOR-based encryption is that it can encrypt and decrypt. You just have to give it the right values. By using XOR, we don't need a seperate encryption and decryption function or a whole other program which can complicate things. If you look a tjaguar291's program, it only encrypts. To decrypt, you have to change it to subtract 1, and then give the program the encrypted password. By using XOR, you use the same key, but change the other two around.
For example, play with the values below:
key: 123
plaintext: abc
ciphertext: PPP
If you search AO, you might come across another encryption program I wrote. It shows how using seperate functions to encrypt/decrypt can create errors. If you read through (same link as above) you will see that Pecosian found an error in my code that existed for 1 year! BTW, you can check out that program and see how much more complex it is, especially without the comments...
BTW, if you even read this far... good luck in your adventures in programming and cryptography
-Tim_axe
Timaxe.com -- Sports Photography
Are You A Teen Interested in Linux? Checkout
Forum Rules | http://www.antionline.com/showthread.php?243163-Encryption-in-C-or-BASIC | CC-MAIN-2018-26 | refinedweb | 1,236 | 72.26 |
I recently went from Tomcat 3.3.1 to Tomcat 5.0.28 and my old
application won't run on the new version. This isn't all that
unexpected
but I'm having some problems figuring out the whys and wherefores. Any
help is greatly appreciated.
My config is a Windows XP workstation, Java 1.4.2_06 SE and Java 1.4
EE.
Since starting to track down this problem I've seen it suggested that
you should NEVER use default packages anymore and always package your
classes so I faithfully followed that advice and "refactored" to make
sure everything is packaged neatly. I setup the packages using the
following package declarations (no, they're not all declared in the
same
class file):
package aim.pages;
package aim.util.html;
package aim.util.db;
Each class file gets its appropriate package declaration and I import
the other packages when appropriate. Something like this:
package aim.pages;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.sql.*;
import java.util.*;
import java.net.URLEncoder;
import aim.util.html.*;
import aim.util.db.*;
Remember, all this worked before packaging so I'm sure I'm doing
something wrong in that process - I just can't see what it is.
It took me a while to get my java classpath setup so I could get
everything recompiled but I got that all working. javac did a nice job
of creating the package tree for me with the appropriate classes in
the
right folders, etc...
After compiling I put my compiled classes/folders under
webapps\aim\web-inf\classes\aim and that's when the fun stops.
Stopping and restarting Tomcat successfully loads the web app. It
appears in the HTMLManager application and I can successfully call my
index.jsp. Then when I try to run my servlets I throw an error in the
servlet init method. Here's some of it.
exception
javax.servlet.ServletException: Servlet.init() for servlet Projects
threw exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
java.lang.Thread.run(Unknown Source)
root cause
java.lang.NoClassDefFoundError: ConnectionPool (wrong name:
aim/util/db/ConnectionPool)
java.lang.ClassLoader.defineClass0(Native Method)
java.lang.ClassLoader.defineClass(Unknown Source)
java.security.SecureClassLoader.defineClass(Unknown Source)
Notice the "wrong name" comment in the first line of the root cause
section. This is exactly the path where the ConnectionPool class is
found (see below).
>From what I've read the Tomcat classloader is independent (by design)
from any classpath that gets set for your JDK installation. That's
fine
- but my Tomcat classloader doesn't seem to want to recognize my
packages. Apparently I've either got something wrong with my package
locations or I need to do some configuration tweaking in
web/server.xml
to make sure Tomcat knows how to find the packages.
my webapps directory structure looks like this
Under the directory:
blah\blah\webapps\aim\WEB-INF\classes
I have this directory structure which contain the compiled class files
|_aim
|__pages
|__util
|__html
|__db
My ConnectionPool class (the one causing the error in servlet init) is
in the db folder. Also, when it gets compiled it creates a second file
called ConnectionPool$PooledConnection.class. I thought I could handle
this be just specifying the import as "import aim.util.db.*;" This
doesn't seem to do any good either.
I've also tried changing the JVM that Tomcat is using to match the
java
version I'm using for compiling but still no go.
Is there a declaration in web.xml that I need to make? Everything I've
read is that you can just drop your application into the webapps
folder,
restart Tomcat and away it goes. I know that's somewhat over
simplified
but I'm not sure where to look next. Any thoughts or suggestions?
Sorry for the long winded message but I want readers to know that I'm
not just crying wolf - I've tried quite a few things to resolve this.
Earl
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org | http://mail-archives.apache.org/mod_mbox/tomcat-users/200411.mbox/%3Cs19b6e5c.076@gwmail.media.utah.edu%3E | CC-MAIN-2017-34 | refinedweb | 743 | 50.33 |
- NAME
- SYNOPSIS
- DESCRIPTION
- PerlGSL: The Namespace
- PerlGSL: The Standard Distribution
- Future Goals
- Other Perl GSL Bindings
- SOURCE REPOSITORY
- AUTHOR
NAME
PerlGSL - A Collection of Perlish Interfaces to the Gnu Scientific Library
SYNOPSIS
DESCRIPTION
PerlGSL defines both a namespace (with certain goals) and a distribution. The aim is to flexibly and modularly provide the GSL to Perl.
PerlGSL: The Namespace:
Use a functional formalism if possible
Think of mathematical functions as Perl closures if possible
Wrap your C level functions in Perl level functions for easier argument munging in the future
Choose your module's name with care and consideration for future authors
Don't use the name of the library as the name of your module. Using these names may make it hard for others to name interfaces to the same library. Unfortunately, this may be unavoidable in some cases. In other cases, the library name may be used by central modules to farm out computations to other modules. For example a PerlGSL::Integration library is planned which will smartly farm out integration to the most appropriate solver (by dimensionality and complexity).
Be sane
PerlGSL: The Standard Distribution
Beyond defining a namespace, the
PerlGSL module is a central module for installing/loading the "Standard" PerlGSL modules. Installing PerlGSL will install all of the following modules. Loading PerlGSL does nothing, however loading with a tag (e.g.
use PerlGSL ':tag';) will import certain functions from these modules; the number in square brackets indicated the
PerlGSL version number that the module was added to the standard distribution. Those tags are:
- integration
int_1d- from PerlGSL::Integration::SingleDim [since 0.001]
int_multi- from PerlGSL::Integration::MultiDim [since 0.001]
- root_finding
findroot_1d- from PerlGSL::RootFinding::SingleDim [since 0.002]
- diffeq
ode_solver- from PerlGSL::DiffEq [since 0.001; requires GSL >= 1.15]
- all
loads all of the above functions.
Note also that any of the individual functions may be imported individully by name.
If you are an author and would like your module added to this central framework please file a GitHub issue.
Future Goals
Integrate PerlGSL with Alien to provide the GSL library via CPAN
Continue to add modules to the namespace and the "Stardard Distribution", eventually forming a well rounded GSL implementation.
Other Perl GSL Bindings.
PDL::GSL - PDL is a C-level matrix-like sublanguage for Perl. It is in the vein of MatLab or IDL. It has bindings to many of the GSL libraries. It is fast, but only as Perlish as PDL is itself.
Math::GSL - This set of bindings is generated by SWIG; it is therefore ostensibly complete, though this is only partially true. Many modules will still need some massaging before they are functional. Even those that are may feel more like C than Perl.
SOURCE REPOSITORY
AUTHOR) | https://metacpan.org/pod/release/JBERGER/PerlGSL-0.002/lib/PerlGSL.pm | CC-MAIN-2017-17 | refinedweb | 459 | 56.15 |
CFD Online Discussion Forums
(
)
-
FLUENT
(
)
- -
UDF: exporting a variable between two DEFINE function
(
)
Carlo
August 17, 2009 12:31
UDF: exporting a variable between two DEFINE function
Hi to all. Here's my problem:
I'm dealing with coal combustion; in my case I have also gas recirculation. In particular, I have an UDF that computes the outlet NOx mass fraction; this value must be imposed in an inlet (due to the recirculation). Any idea to do it? Here's my UDF:
#include "udf.h"
DEFINE_ADJUST(noflux, domain)
{
int zone_ID = 4;
Thread *t = Lookup_Thread(domain,zone_ID);
face_t f;
real summ=0.;
real m;
real sumnox=0.;
real mnox;
real nox;
real sumarea=0.;
real area;
real Cnox;
real NV_VEC (A);
begin_f_loop(f,t)
{
F_AREA(A,f,t);
nox=C_POLLUT(f,t,1); /*Pollutant mass fraction Kg(NO)/Kg(g) in each face*/
mnox=F_U(f,t)*F_R(f,t)*NV_MAG(A)*6.28*nox; /*[Kg(NO)/Kg(g)]*[Kg(g)/s]=[Kg(NO)/s] in each face*/
sumnox += mnox; /*Kg(NO)/s in the whole domain*/
m=F_U(f,t)*F_R(f,t)*NV_MAG(A)*6.28;
summ += m; /*Kg(g)/s in the whole domain*/
area=NV_MAG(A)*6.28;
sumarea += area;
}
end_f_loop(f,t)
Cnox=sumnox/summ; /*[Kg(NO)/s]/[Kg(g)/s]*/
printf("massf: %g,%g,%g,%g\n", summ,sumnox,Cnox,sumarea);
}
real Cnox; /*Why do I have to declare it twice? Does fluent hold it?*/
DEFINE_PROFILE(noflux_b, t, nv)
{
face_t f;
begin_f_loop(f, t)
{
F_PROFILE(f,t,nv) = Cnox;
}
end_f_loop(f, t)
}
The ID=4 corresponds to the outlet. Am I doing it right? After having compiled and loaded the UDF, I hooked the noxflux function (DEFINE_ADJUST) whereas in the boundary condition of the considered inlet, in the NO mass fraction menu I set the noxflux_b function (DEFINE_PROFILE).
I'm not sure about this way to proceed. Indeed I don't know if the second DEFINE holds the Cnox variable value or if It clears it. I think this because if I don't declare "real Cnox" before starting the second DEFINE, I get the error "undeclared...etc", as if it had seen the Cnox variable for the first time! Any Idea?
Thanks!!
Allan Walsh
August 18, 2009 13:25
What about using an external variable that is available in both your define macros? I must admit that I have only glanced at your macros, but it is something we use for what sounds like a similar issue.
Carlo
August 18, 2009 13:55
Thanks!
Ok. The macro works really fine until the computing of the Cnox variable which is correctly computed and printed. Then I think that fluent doesn't get the value in the inlet (I'm aware of this when I plot the NOx mass fraction in it, where I get zero).
If you might be so gentle to explain me something more about external variables, I would be glad...you have to bring in mind that the variable has to be something computed through an UDF.
Allan Walsh
August 19, 2009 12:21
Variables that you define in a macro will only have meaning in that macro. However, you can define a variable outside the macro, or macros, so that it can be used globally. So, in Fluent, in your c++ code, after your $ include statements and before your define macros you would have some lines like extern real varx and extern real vary. Then you can use varx and vary in whatever macros you have defined.
This is just basic c++, not even sure if it addresses your issue, but it is another tool.
All times are GMT -4. The time now is
13:59
. | https://www.cfd-online.com/Forums/fluent/67507-udf-exporting-variable-between-two-define-function-print.html | CC-MAIN-2017-30 | refinedweb | 615 | 72.87 |
Unless my memory fails me, the Arduino sketch compiles to about 1.7 KB for a Moteino Mega.
Sketch uses 1750 bytes (0%) of program storage space. Maximum is 253952 bytes.Global variables use 192 bytes (2%) of dynamic memory, leaving 8000 bytes for local variables. Maximum is 8192 bytes.
The Ddr-ArdMeg version compiles to 342 bytes.
Sketch uses 1678 bytes (0%) of program storage space. Maximum is 253952 bytes.Global variables use 338 bytes (4%) of dynamic memory, leaving 7854 bytes for local variables. Maximum is 8192 bytes.
#include <Arduino.h>
I suppose I could have been clearer about that.
Is there some technical reason why the examples do not use the standard Arduino style with setup() and loop()?If they did I think it would make the whole thing more accessible to Arduino users?...R
No technical reason. I just felt that it wouldn't add the example per se. It's also trivial to add a setup() and a loop() to the main() in the example in the same way as it is done in Arduino's main.cpp. | https://forum.arduino.cc/index.php?topic=469778.15 | CC-MAIN-2019-39 | refinedweb | 183 | 78.14 |
A Python & XML Companion
December 11, 2002 (the book was released in December of 2001) to offer -- all of which are distinct from the errata that the authors maintain. In this article I will provide updates, additional suggestions, and other material to serve as a companion to the book. You don't have to have the book in order to follow along.
Chapter 2 offers a brief introduction to XML, but if you are not very familiar with XML, I would recommend you find a general XML book such as Learning XML by Eric Ray (O'Reilly and Associates, 2001). The book offers no introduction to Python, so if you are not very familiar with Python, you will want to consult other books. Python & XML doesn't do anything too esoteric with Python, so a basic text such as Learning Python by Mark Lutz and David Ascher (O'Reilly and Associates, 1999) will serve you well.
More on DOM
Chapter 4 covers DOM APIs for Python, focusing on 4DOM and minidom. It doesn't discuss performance considerations very much. In particular, one important warning to be added about 4DOM is that it is very slow. It goes out of its way to be DOM compliant, though strict compliance is probably not important to most applications. This strict conformance compromises performance. I was one of the original authors of 4DOM, but I have long since come to the view that DOM is a specification to be taken in moderation. In trying to be platform and language neutral, it fails to take advantage of particular strengths of host languages like Python. I now prefer DOM-like systems that use familiar DOM method names and idioms in general, but which are specialized for Python. Thus I do most of my work in Domlette, which comes with 4Suite and is, because it's written in C, very fast. Domlette falls-back to a Python implementation on platforms where the C library cannot be compiled. I introduced Domlette in my recent article on 4Suite. PyRXP and Python/LTXML are faster than Domlette, but they deviate enough from DOM that I shall save discussion of them for future articles.
I understand that the authors' choices were largely motivated by the desire to minimize the amount of software readers need to install. If the book's examples used Domlette, PyRXP, LTXML, or the like, the reader would have to install more than just Python and PyXML. Nevertheless, many examples in the book use the old, deprecated system for creating 4DOM instances. For example, on page 86 I find the following code:
from xml.dom.ext.reader.Sax2 import FromXmlStream doc = FromXmlStream(sys.stdin)
But the
FromXmlStream function is deprecated (as are others like it). The
preferred way to write this code is
from xml.dom.ext.reader import Sax2 reader = Sax2.Reader() doc = reader.fromStream(sys.stdin)
This
reader object has the advantage of being reusable, with some savings in
overhead.
As an illustration of the performance advantage of Domlette, I ported the example on page 94. An earlier example demonstrated the construction of a simple XML format for file system metadata, such as the following snippet:
<IndexedFiles> <file name="/home/fdrake/memos/oreilly/pythonxml/ch07-edits-2001-09-01.txt"> <userID>4104</userID> <groupID>4104</groupID> <size>1887</size> <lastAccessed>Sat Sep 1 03:09:07 2001</lastAccessed> <lastModified>Sat Sep 1 03:09:07 2001</lastModified> <created>Sat Sep 1 03:09:07 2001</created> <extension>.txt</extension> <contents> /home/fdrake/memos/oreilly/pythonxml/ch07-edits-2001-09-01.txt: ASCII English text </contents> </file> <!-- ... snip more entries like this ... --> </IndexedFiles>
The example DOM code on page 94 removes elements named
contents,
extension,
userID and
groupID from the
file elements. The script on page 94 is as follows:
#!/usr/bin/env python import sys from xml.dom.ext.reader.Sax2 import FromXmlStream from xml.dom.ext import PrettyPrint # get DOM object doc = FromXmlStream(sys.stdin) # remove unwanted nodes by traversing Node tree for node1 in doc.childNodes: for node2 in node1.childNodes: node2.normalize() node3 = node2.firstChild while node3 is not None: next = node3.nextSibling name = node3.nodeName if name in ("contents", "extension", "userID", "groupID"): # remove unwanted nodes here via the parent node2.removeChild(node3) node3 = next PrettyPrint(doc)
In order to do the same thing with Domlette, I created the
doc node with the
following code instead:
from Ft.Xml.Domlette import NonvalidatingReader, PrettyPrint doc = NonvalidatingReader.parseStream(sys.stdin)
This code will issue a warning because I do not provide a URI for the input source I'm creating. See my 4Suite article for more details. You can safely ignore these warnings for now.
This change also uses the Domlette version of
PrettyPrint, which is, by
default, the C-coded version. The original code using 4DOM takes 8.4 seconds to process
a
24KB file on my 1.13GHz Pentium Laptop running Red Hat 8.0 with 512MB RAM. It takes
1.4
seconds to run the cDomlette version. The Domlette version is not only faster in this
case,
but scales better, too. I quadrupled the size of the XML file to be processed. The
4DOM
script took 23.7 seconds to run on the enlarged file; the Domlette script took just
2.6
seconds. minidom is also much faster than 4DOM, though not as much so as Domlette.
Using the
minidom parser and the
PrettyPrint from 4DOM, the times were 1.5 seconds for
the smaller file and 4.7 seconds for the larger file.
What's new in XPath
Chapter 5 covers XPath and also uses 4DOM. In the case of XPath, Domlette has advantages in addition to DOM-processing speed. For example, it supports document index properties which speed up some XPath-specific operations. Domlette was actually designed with XPath in mind. But besides this, you may have no choice but to use 4Suite for XPath and XSLT processing: PyXML's versions of 4XPath and 4XSLT are currently broken and are unlikely to be fixed until a future alignment of the 4Suite and PyXML code bases. Again, this is not the authors' fault. At the time they wrote the book, their examples worked fine with PyXML.
The example on page 115 is a typical example of the book's XPath usage:
import sys from xml.dom.ext.reader import PyExpat from xml.xpath import Evaluate path0 = "ship/captain" # all captain elements reader = PyExpat.Reader() dom = reader.fromStream(sys.stdin) captain_elements = Evaluate(path0, dom.documentElement) for element in captain_elements: print "Element: ", element
Notice that this time the proper 4DOM creation interface is used, although I suggest
using
Domlette instead. In order to get this working with current code you need to install
4Suite
and then change the XPath module for import from
xml.xpath to
Ft.Xml.XPath. Finally, to use Domlette, use the idiom I demonstrated earlier.
After these adjustments, the example looks as follows:
import sys from Ft.Xml.Domlette import NonvalidatingReader from Ft.Xml.XPath import Evaluate path0 = "ship/captain" # all captain elements dom = NonvalidatingReader.parseStream(sys.stdin) captain_elements = Evaluate(path0, dom.documentElement) for element in captain_elements: print "Element: ", element
What's new in XSLT
My comments on the Python/XSLT API examples in chapter 6 are similar to my comments
in the
last secton. Using the XSLT implementation in 4Suite requires a change in imports
from
xml.xslt to
Ft.Xml.Xslt. There are also a few minor changes to
the API of the 4XSLT processor object. The following example comes from page 146:
from xml.xslt.Processor import Processor xsltproc = Processor() xsltproc.appendStylesheetUri("story.xsl") html = xsltproc.runUri("story.xml")
After making suggested adjustments, the example will look like
from Ft.Xml.Xslt.Processor import Processor from Ft.Xml.InputSource import DefaultFactory xsltproc = Processor() xsltproc.appendStylesheet(DefaultFactory.fromUri("story.xsl")) html = xsltproc.run(DefaultFactory.fromUri("story.xml"))
The main change, in addition to the imports , is that I specify the stylesheet and source file to the processor using input sources I create on the fly, rather than specifying the URIs directly. If any of this is unfamiliar to you, review my recent article on 4Suite.
Conclusion
There are other code examples in the book to which the suggestions I have made might
well
apply. A few other things have changed since the book came out. For example, in chapter
9
the authors cover SOAP.py when discussing SOAP for Python, hinting that it is the
only
cross-platform option for Python. ZSI has since emerged as a strong alternative SOAP
library
in Python. There is also at least one warning to attach to my suggestions to use Domlette.
The book makes frequent use of the DOM method
getElementsByTagName, which is
not supported in Domlette, for simplicity. An equivalent function is very easy to
write for
yourself. I would suggest an implementation that uses Python generators and I will
present
just such an implementation in a forthcoming article..
Python & XML is the victim of recent flux in the state of Python-XML. I believe most of this flux has been progress, but it may confuse users nonetheless. I hope this article helps people use the book more effectively with current software releases.
Python-XML Happenings
Fredrik Lundh announced release 1.2 of ElementTree, a library for managing any sort of hierarchical Python objects in specialized data structures based on XML elements.
David Mertz announced the 1.0.5 release of gnosis XML tools, which includes bug fixes and updates to work with PyXML 0.8.x.
It's not an XML tool, but Cliff Wells's Python-DSV is worth mentioning. It's a tool for importing and exporting comma-separated values (CSV) files. I have come across many projects for interchanging XML with CSV. There is also Dave Cole's csv module which is specilized for Microsoft tool exports. | https://www.xml.com/pub/a/2002/12/11/py-xml.html | CC-MAIN-2018-51 | refinedweb | 1,642 | 58.79 |
Provides access to all contacts and aggregates them by person.
Introduction
K.
Usage
To use KPeople, you'll want to look for it using
find_package(KF5People)
Or its qmake counterpart. Then you'll have available 3 different libraries to depend on:
- KPeople which is the most basic one and will mainly provide PersonsModel and PersonData. You will use them respectively in case you need information about the full set of contacts on your system or just the one.
- KPeopleWidgets will be required in case we want to integrate it into your QtWidgets-based application. We will mainly find the PersonDetailsView and the MergeDialog.
- KPeopleBackend is the library used to make it possible to create backends for KPeople. You should only use it in case you are providing support for a new backend type. WARNING Its ABI interfaces are not yet stable.
Also KPeople also bundles a qml import module that can be pulled using:
import org.kde.people 1.0
This will allow access to the KPeople data from QML code-bases.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Thu Apr 18 2019 02:45:21 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online. | https://api.kde.org/frameworks/kpeople/html/index.html | CC-MAIN-2019-30 | refinedweb | 207 | 57.57 |
Hi ,
Working on VC++ 2012.
"error LNK2005: "class std::basic_ofstream<char,struct std::char_traits<char> > Createonly_logs" (?Createonly_logs@@3V?$basic_ofstream@DU?$char_traits@D@std@@@std@@A) already defined in UtilityFunctions.obj
I have defined a text file (for writing the output) under LogFiles.h
include <fstream>
using namespace std;
ofstream Createonly_logs("E:\MyProj\MTEST\CreateFile_logs.txt");
I have created three .cpp under the project and all these cpp uses the text file to append the output
Create.cpp (main file)
* i call the functions defined in other 2 .cpp from here , so i add the header file
include "LogFiles.h"
UtilityFunctions.cpp (only common functions are defined here) but the output is directed to text file , so i use
include "LogFiles.h"
MemoryCalc.cpp (supports few functions which is called from Create.cpp),
include "LogFiles.h"
on compiling the code, i get the above error. How to fix this?
Thanks
Ana
Edited by anukavi | https://www.daniweb.com/programming/software-development/threads/450501/vc-linker-error | CC-MAIN-2017-47 | refinedweb | 153 | 54.49 |
- Overview
- Transcript
4.1 Setting Up the Dependencies
Now it's time to choose how we store data. We're going to use a Microsoft SQL database and interface with it using Entity Framework Code First. This will also affect how we manage users. We need to prep our project with all the extra components (made easy with NuGet) and write our database context..1 Setting Up the Dependencies
The time has finally come where we need to decide how we are going to store our data. And there are many things that go into this decision, because we can store our data anywhere that we want. But we have to think about everything about our application. Not only where we want to store our posts, but we also need to think about how we are going to manage users and authenticate them. Are we going to roll our own solution or are we going to use ASP.NET Identity? And if we choose Identity, are we going to use the default behavior given to us with Entity Framework? Or are we going to write our own storage provider? So there's a lot of things that we can do, but I'm going to make it simple. We're going to use the tried and true solution of using a SQL database as our data store. We're going to use Entity Framework to interface with that database, and for the user management and authentication we are going to use ASP.NET Identity. Now, we first of all should set up our application to use Identity because we need a database context. This is an object that we will use to interface with our database. And, if we don't start with Identity then we can end up with two different contexts. And we don't want that. We just want one context that we use for authentication as well as getting and manipulating our posts within the database. So let's go to our references for the project, and we want to add some new GetPackages. So click on manage new GetPackages. And we want to do a search for Identity. Now there are many packages with Identity in their names, but what we are concerned with is this Microsoft ASP.NET Identity Owin So we want to install that. It's also going to install of the dependencies for that package and then we also want to install this Microsoft ASP.NET Identity Entity Framework. And this should give us everything that we need and if not, we can always come back and install the packages that we need. So, now we need a start-up class for Owin. This is a requirement for Owin. So, let's right-click on our project. And let's go to, Add New item. And we want to do a search for startup. This is going to have a template called, Owin StartUp Class. Let's change the name of this to simply, startup.cs. And this gives us this configuration method. Inside of here we want to configure our authentication. So we're going to use this app object that we get as an argument and there's a method called UseCookieAuthentication. And we want to new up CookieAuthenticationOptions. And if I typed that correctly, I did not. It's within Microsoft.Owin.Security.Cookies and you can see why I don't want to type all of that. So, we have cookie authentication options, and there we go. Let's add a using statement, and then we need to set some properties for this CookieAuthenticationOptions object. So the first one is AuthenticationType. And we want to set that to DefaultAuthenticationTypes. We need a using statement for Microsoft.AspNet.Identity, and this has application cookie. And then there's a property called LoginPath. This tells the authentication system that if a user is not logged in and we tell them that they need to be logged in, it's going to automatically redirect them to whatever is specified within LoginPath. So for right now, let's do /account/login. We can always come back and change this whenever we need to. But this is going to be everything that we need inside of this start up class. So, we can close this file. And next, let's go to our Models folder. Because we have our PostFor model, let's also add a model for our user. Now, we're going to use the Identity User class as a base for our User class. Because this gives us basically everything that we need, but we also need a display name. So let's add a new class. And we'll just call this CMSUser. And this is going to inherit the IdentityUser class. We need a using statement for Microsft.AspNet.Identity.EntityFramework. And then we will simply add a new property that is a string called DisplayName. Next, we need to create our database context class. This is what we're going to use to, essentially, interface with our database. So, in our data folder, let's add a new class called CmsContext. And we want to inherit from IdentityDbContext. This is a generic class. And we specify the class for our user and that is CmsUser. And then we need a property that represents our posts table. So public DbSet. We need a using statement for System.Data.Entity and we need to specify post there. So we have a DbSet of Post called Posts and this is going to generate a table called Posts and all of our posts are going to be set in there. Now we should also override the OnModelCreating method because we need to do some configuration. So protected override OnModelCreating. We first of all want to call the base classes OnModelCreating method, but then we want to use our modelBuilder and the Entity method. And we want to configure our Post Entity. We want to say that we have a key, so we will use the HasKey method. And we will specify the Id property as our key, but we also want to say that this is not controlled by the database. This is something that we are going to do. So we are going to use the Property method. We will use the same expression where we specify the Id property on our post class and we have a method called HasDatabaseGeneratedOption. And there's an Enum called DatabaseGeneratedOption that is inside of the System.ComponentModel.DataAnnotations.Sc- hema namespace. Man, these namespaces. And we want to specify that this is none so that the Entity Framework won't do anything as far as creating this table with anything special for the id. It of course is our key, but it's not going to be an auto-generated field, so we simply specify none. Now, we're not done with configuring our Context class. We have one other thing that we need to do. But before we can do that, we need to go to our Post class and make some modifications. Let's first of all mark the properties that are required with the Required attribute. Those are the Title property and the Content property. And this is going to give us two things. From an Entity Framework standpoint, it's going to generate a column called Title, and another one called Content, that are not nullable. So for every Post record in the database, we will have a Title and Content. And from a model standpoint, from validation, it ensures that the user has to supply a Title and a Post content, otherwise they're going to see the form again and they have to fill in that information. Now notice I'm not putting required on Id. The reason being, because as far as Entity Framework is concerned, it is already considered our key. So it cannot be null in that case. But from a model standpoint, we need this to default either empty or null because we're going to automatically generate the Id based upon the title. But if the user wants to supply an Id, then, they can. We, of course, need to do some checking to ensure that it is a valid Id, and it's not currently in use but we will get to that later on. So the date created doesn't really need a required attribute from an entity framework standpoint it's going to generate a date-time field that is not nullable, because in a .NET DateTime is a value type. It cannot be null, unless if it a nullable DateTime, in which case we don't want that to be required either. First of all, because we want it to be nullable within the database. And every post may or may not have a published date. Now, we do need to make some modifications for our tags, because currently we do have an IList of string. And that cannot be related to a single column within a database. So we are going to create a string property that is going to be basically the serialization version of our tags property. So let's first of all create a private IList of string called _tags, and we can go ahead and new up List of string, that way we have a collection to work with, and then we need to modify the get and set of our tag's property. So instead of just the plain Jane get and set, we will have a actual getter that returns _Tags and then the setter is going to set our _Tags = value. So very simple as far as our tags property is concerned. But ,we need a property that we can use with in the data base. So we need a public string field which we can call CombinedTags and for the getter and the setter we are going to be working with our underscore tags. Let's start with the getter. We want to return a string representation of all of our tags. So we can use string.Join, we want to join all of our tags separated by a comma, and then the collection is _tags. So that getter is very simple, and really the setter is simple as well. We are simply going to set _tags = value, but we want to Split that on the comma because we are taking a string and turning it into a list. But we should also trim any white space. So let's use the select method and then we will call the Trim method. And then finally, we need to return a list. And then finally, we need to modify our AuthorId. This is not going to be an integer, this is going to be a string. But we can also have a navigation property to the User object. So programmatically, whenever we are working with a post we can have post.author and then .displayname if that's something that we wanted to do. So let's add a public virtual CmsUser and we'll just call this Author. We simply need a get and set, but we also need to specify the foreign key. So, we will use the ForeignKey attribute, we need a using statement for System.ComponentModel.DataAnnotations.Sch- ema. And then we simply want to specify AuthorId and really it's this change that we needed to make in order to make the final change inside of our context. So here we want to use our modelBuilder once again, we want to use the Entity method and specify Post. And then we want to say that we have a required e.Author. And that should be everything that we need for our context class as well as our post class. Now the last thing that we're going to do in this lesson is seed our database with a user. Because now that we have a relationship between our posts table and the user's table we can't create a post and add it to the database without specifying the user. So let's go to our app_start folder. And let's add a new class. And let's call this AuthDBConfig. And this is going to have a static method that we call RegisterAdmin. So, this method is going to ensure that we always have a user called admin. So, if one is not there, then we are going to create it. So, the first thing we need is our context. So, we will new up Our CmsContext, and we will add a using statement for our data namespace. But that's not the only thing we need. Next we need our user store. So let's call it userStore, and we want to newUserStore of CmsUser. So we need two using statements, one for the useStore class. The other for are CmsUser class. Then for this constructor, we pass in our context. And then we need a manager. So let's call this userManager and we will new up UserManager of CmsUser and we need a using statement for userManager and then we will pass this constructor our userStore. Now this is a lot of typing. And this is a pattern that we are going to repeatedly use. But we can simplify this by creating our own classes that inherit from UserStore of CmsUser and userManager of CmsUer. But we will do that whenever we focus on our authentication and user management code. And in this case it's nice that we have our UserStore because we are going to use that to ensure that we have an account called admin. Otherwise we would have to use the user manager. But in that case we have to specify both the username and the password, and hopefully we won't always know what the password is for the admin account. So the first thing we need to do is check to see if we have a user called admin. So we're going to use the userStore. And we have several FindBy methods. And notice that they are all asynchronous. And ideally we would be writing asynchronous code, but for now we're just going to stick with synchronous. The one that we want is this FindByNameAsync. And then we want to check to see if we have an admin account and then we can use dot result to run this synchronously. Then we can check to see if user is null and if it is then we want to create this user. So, let's create an adminuser variable. And we want to new up our CmsUser. And we can use initializers in text to set the UserName = "admin". The e-mail really isn't important in our case. But let's do admin@cms.com. We're not going to be sending an emails so this is going to be fine ideally it would be edit a valid email address one that would go to us or something and then our display name for this user is administrator. So after we create this user we simply need to add it to our user manager, so we will do that. We will call the Create method, we pass in this adminUser object, but we also pass in a password. So let's do Passw0rd, with a zero, and then 1234. This should be long enough. It also has an uppercase and lowercase character, as well as some numeric characters. And that should be it, although we need to call this RegisterAdmin method. And we can do that inside of our global.asax. So right here, after we set up the route, we can do the AuthDbConfig and we need a using statement here, and then we recall the register admin method. So let's run this, and everything should be created for us although this does not build, so let's look at the problem. Cannot implicitly convert type string to a path string, so what do we have here. We need to call the path string constructor. And pass in our string literal as the argument. Okay, so now let's try to run this and hopefully everything is going to work. Now it may take a few seconds for Entity Framework to create our database table and all of that but since we are seeing this here, and we didn't get any exceptions. Then it's almost safe to say that everything worked fine. But let's go back to Visual Studio, let's go to Solution Explorer, and let's click on one of these icons that is not displayed. I guess we need to stop debugging. And there's an icon that says, show all files. So if you click that, and then let's go app_data and refresh that. Well nothing is showing up there. Well it's probably because I have SQL Server Express installed. If you don't have it installed, it will create a database file inside of app_data. And then you can double click on that and it will pull up the server explorer so that you can look at all of the data. But since I have SQL server express it probably created the database here and yes this default connection database is it. So if I go down to tables and we can see we have the ASP.NET tables, one is for the users, which we can look at that one row that we have. You can also see that we have the Posts table as well, and if we look at that columns, we see that we have an Id which is a string, which can not be null, Title cannot be null,, Created cannot be null, Published can be and CombinedTags can be as well. Now let's look at the information inside of our user table. We have this user Id. We also have the display name of administrator. The email's admin@cms.com and the password is automatically hashed for us, so we don't have to worry about that. And then the user name is admin. So, we have our database all set up and ready to go. Now, we need to start flushing out our repositories, and we will get started with that in the next lesson. | https://code.tutsplus.com/courses/building-a-cms-with-aspnet-mvc5/lessons/setting-up-the-dependencies | CC-MAIN-2022-33 | refinedweb | 3,086 | 74.19 |
Today I'm going to tell you a WPF story. But before I start to dig deeper let me first introduce you the main characters in this post. Here they are:
There are a bunch of WPF adorners samples out there (including the SDK ones as well). But as usual when you try to create something more complex the standard samples break down. For example let say that we want to achieve something like the mini toolbar in Word 2007:
Let's start our quest with a TextBox that look like this:
and you want to put a simple button next to it that will let say will open a hyperlink that is somehow related to the TextBox. You could easily achieve this with adorners and end up with something which look like this:
How to do this? You could create something like TextBoxAdorner that will derive from Adorner and will look like this:
public class TextBoxAdorner : Adorner
{
private readonly UIElement adorningElement;
public TextBoxAdorner(TextBox textBox, UIElement adorningElement ) : base( textBox )
{
this.adorningElement = adorningElement;
if (adorningElement != null)
{
AddVisualChild(adorningElement);
}
}
protected override int VisualChildrenCount
get { return adorningElement == null ? 0 : 1; }
protected override Size ArrangeOverride(Size finalSize)
Point adorningPoint = new Point();
//position at the end of the text box
adorningPoint.X = ((TextBox)AdornedElement).ActualWidth;
//position above the text box
adorningPoint.Y -= adorningElement.DesiredSize.Height;
adorningElement.Arrange( new Rect( adorningPoint, adorningElement.DesiredSize ) );
return finalSize;
protected override Visual GetVisualChild(int index)
if (index == 0 && adorningElement != null)
return adorningElement;
return base.GetVisualChild(index);
}
Note that we call AddVisualChild() method so that the element that is passed to the constructor will be visible. It is also necessary VisualChildrenCount to return count of 1 and GetVisualChild() to return the UIElement that is added to the visual tree - in our case this is the adorningElement.
So far so good. Now imagine that the button that is added as adorner did not have a click handler, but have a command set. Let's name the command - "NavigateToLink". The command handler is added to TextBox's input bindings, because the TextBox itself "knows" how to execute "NavigateToLink" command. (The sample is with TextBox, but you could imagine have your own custom control that have that logic in it). But what happens when we do this:
As you can see the button is disabled, because the command infrastructure in WPF did not manage to find a handler for our "NavigateToLink" command. This causes the Button to become disabled. Now what?
If you refer to the command readings in the links that were in the beginning of the post you will find our that the command mechanism in WPF uses the logical tree of controls to find handlers for particular commands. This bring us to point where we added the Button to visual tree. In our case we will have to add it as a logical child of the TextBox as well. This will automatically add it the logical tree of controls and the command handler will be correctly resolved and the Button enabled. Here is the new constructor of TextBoxAdorner class:
public TextBoxAdorner(TextBox textBox, UIElement adorningElement ) : base( textBox )
this.adorningElement = adorningElement;
if (adorningElement != null)
AddVisualChild(adorningElement);
textBox.AddLogicalChild( adorningElement );
Here comes the other problem. For encapsulation reasons the AddLogicalChild() method of FrameworkElement is marked as protected internal and can not be called as we call it in the snippet above. One way to workaround this is to derive from TextBox and make the method internal for your assembly. The other way is to use reflection and call the method. You can even create an extension method that will be available for all FrameworkElements. To make it even more extreme you can use expression trees to cache the method call and optimize the reflection. Here is the code:
internal static class FrameworkElementExtensions
private static readonly Action<FrameworkElement, object> AddLogicalChildMethod = CreateAddLogicalChildMethod();
private static Action<FrameworkElement, object> CreateAddLogicalChildMethod()
ParameterExpression instance = Expression.Parameter( typeof ( FrameworkElement ), "element" );
ParameterExpression parameter = Expression.Parameter( typeof ( object ), "child" );
MethodInfo methodInfo = typeof ( FrameworkElement ).GetMethod(
"AddLogicalChild", BindingFlags.NonPublic | BindingFlags.Instance );
MethodCallExpression method = Expression.Call( instance, methodInfo, parameter );
Expression<Action<FrameworkElement, object>> lambda =
Expression.Lambda<Action<FrameworkElement, object>>( method, instance, parameter );
return lambda.Compile();
internal static void AddLogicalChild( this FrameworkElement element, object child )
AddLogicalChildMethod( element, child );
You can find a sample solution here. Go play with it.
That its all for now folks. Next time I will show you how to create a generic adorner that can be used to decorate elements multiple times at different | http://www.telerik.com/blogs/wpf-series-adorners-commands-and-logical-tree | CC-MAIN-2017-13 | refinedweb | 743 | 56.25 |
Answer: Operator // is called floor division in python.Integer division was a concern for python developer prior to python 2.2. Python 2.2 came up with new operator to support
floor division and regardless of input type. i.e : // always gives floor result.
Note :-
In Python 3, / is float division
In Python 2, / is integer division (assuming int inputs)
In both 2 and 3, // is integer division
In Python 2.x, make sure to have at least one operand of your division in float. \
Consider following example for better understanding, (I am using python 2.7)
>>> 20/14 #Integer outcome
1
>>> float(20)/12 # floating outcome since one of the operand is float
1.6666666666666667
2. What will be outcome of following snippet ? / What are First-Class Objects in python ?
>>>def disply_msg():Answer: It will display "hello world from function" .
print 'hello world from function'
>>>x = disply_msg #Function assigned to an identifier
>>>x()
print 'hello world from function'
>>>x = disply_msg #Function assigned to an identifier
>>>x()
The fundamental behind is that, functions are first-class types in Python. First-class objects are instances of a type that can be assigned to an identifier, passed as a parameter, or returned by
a function.So, x = function executes, x becomes alias of function disply_msg and when x() executes definition of disply_msg executes and display hello world from function.
Notes :
- function can also be passed as argument of function.For example, inbuilt function min and max passed abs function to calculate minimum absolute value.
>>>min(12, -34, key=abs) # abs(-34) > abs(12), so display 12
12
- In python, class are also first class object.
and after swapping be a = 9, b= 8. (Hint: Use Simultaneous Assignments)
Answer: a,b = b,a Done!!
What is Simultaneous Assignments in python ?
The combination of automatic packing and unpacking forms a technique known as simultaneous assignment.We explicitly assign a series of values to a series of identifiers, all of the expressions are evaluated on the right-hand side before assignment.
>>> x, y, z = 6, 2, 5 # x = 6, y = 2, z = 5
>>> x
6
>>>z
5
Note: Data packing: Series of comma-separated will be treated as a single tuple, even
if no enclosing parentheses are provided.
data = 10,1,23,45 # it is equivalent to (10,1,23,45), python provide missing ( ).
It can be used while returning multiple values from function/method. - return x,y
Data unpacking : Python can automatically unpack a sequence, allowing one to assign a series of individual identifiers to the elements of sequence.
Example : a, b, c, d = range(7, 11) # a=7, b=8, c=9, and d=10
It is used in built-in function, divmod(a, b), returns the pair of values (a // b, a % b) as quotient, remainder. quotient, remainder = divmod(a, b)
It can be used while iterating over sequence
for x, y in [ (7, 2), (5, 8), (6, 4) ]: # x= 2, y = 7 in first iteration
for k, v in mapping.items(): #k - key of first dict entry and v = value
4.What is significance of if name == __main__: in python module creation ?
Answer: In python module (a file with .py extension) is collection of functions and classes.There are various in built module for specific use included in python. Example : math for Mathematical operation , os for Operating system related thing, re for regular expression , sys for interaction with the Python interpreter, collection, array, etc.
We can create our custom module and it can be imported in python program or another module or executed as standalone program too. When a module is imported for the first time, the main block in that module is run.
Every module has __name__ and value of __name__ is decided whether module has been used as standalone program or imported in a module.
- If the python interpreter is running that module (the source file) as the main program, it sets the special __name__ variable to have a value "__main__".
- If this file is being imported from another module, __name__ will be set to the module's name.
if __name__ == '__main__':Open this file in IDLE interpreter and execute it as standalone program it display "This program is being run by itself" because __name__ is initialized with value __main__ and that makes if condition true.
print 'This program is being run by itself'
else:
print 'I am being imported from another module'
print 'This program is being run by itself'
else:
print 'I am being imported from another module'
Now import it as module and press enter , it displays "I am being imported from another module"
>>> import _module
I am being imported from another module
Refer this for another example for better understanding.This approach used to embed unit tests within the module and execute as standalone program to test that module.
5.What is Deep and shallow copy in python ?
Answer: In python when an identifier is assigned a data structure, that identifier becomes an alias of that data structure. Either of identifier old or new referring to list can modify that data structure.
Suppose we want to create separate list for both identifier, python comes with concept of shallow copy and create a separate list for each.
list_original = ["Apple","mango","Water melon"]
copy_original_list = list(list_original ) #list constructor used to create separate list DS. 55555555
>>> list_original = ["Apple","mango","Water melon"]Since python’s lists are referential and each element referenced by list can be a object(a sub-list), so when element of an list is an object then also we have not achieved clear separation of concern.
>>> copy_original_list = list_original [:]
>>> copy_original_list = list_original [:]
Here python come up with concept of deep copy, where copy method is executed recursively and all object is created separately for both references .
from copy import deepcopyFor detail discussion about shallow and deep copy with example refer this.']
Read about : Python - object oriented paradigm
Python data structure | http://www.devinline.com/2015/05/python-questions-insight-1.html | CC-MAIN-2018-51 | refinedweb | 983 | 53 |
Subject: Re: [OMPI users] dlopening openmpi libs (was: Re: Problems in 1.3 loading shared libs when usingVampirServer)
From: Brian W. Barrett (brbarret_at_[hidden])
Date: 2009-03-25 12:10:40
On Mon, 23 Mar 2009, Olaf Lenz wrote:
> and the solution that is described there still looks as though it should
> still work now, or shouldn't it? Just link all the OpenMPI plugins against
> the base OpenMPI libraries, and it should work. Or am I wrong?
I believe your suggestion will not work, certainly not portably. In fact,
it will die in horrible ways. We used to link in the way you suggested,
and what you end up with is a bunch of copies of libmpi, all in their own
namespace. Hardly helpful :).
Unfortunately, there are only three rational solutions I've thought of to
the problem:
* Do nothing, my prefered solution
* Stop building components by default
* Have libmpi be a thin wrapper, which dlopens Open MPI's guts into the
public namespace, and the guts then dlopen all the components.
Obviously, the first serves the greatest community and involves the least
amount of work. However, packagers such as the Linux distributions should
make a decision about how to best package Open MPI -- perhaps shipping
it built with components is not the ideal solution for their
infrastructure.
I did want to point out one incorrect statement in your e-mail. While
specifying "--enable-shared --enable-static" to configure will cause
components to be linked into libmpi rather than built as stand-alone
entities, a better way to accomplish that is "--enable-mca-static", which
will build all the components into libmpi.so, but not also cause libmpi.a
to be built.
Brian | http://www.open-mpi.org/community/lists/users/2009/03/8582.php | CC-MAIN-2015-18 | refinedweb | 284 | 70.33 |
How can I script an object that rotates while following a randomly generated waypoint?
Hello, I'm quite new to Unity and after searching quite a bit around the forums, I decided to place a question.
I already found a script made by spinaljack, which serves as the waypoint following bit. Only problem I have is regarding the turning part. I wanted it to turn and move(forward ofc), when the new waypoint was generated. I already tried playing around with quaternions and its rotation methods, but the object in question keeps moving forward for some reason when I try to. EDIT: I realized I did not explain clearly enough that I only want the object to rotate when the new waypoint is created, to show that it is turning, rather that just locking-on to the next point.
Here's the code I got from spinaljack, the commented parts are my attempt to include the rotation:
#pragma strict
var Speed = 5;
var wayPoint : Vector3;
var rotation;
//values that will be set in the Inspector
//var RotationSpeed:float = 5;
//values for internal use
//var _lookRotation:Quaternion;
//var _direction:Vector3;
function Start(){
//initialise the target way point
Wander();
}
function Update()
{
//find the vector pointing from our position to the target
//_direction = wayPoint;
//(target.position - transform.position).normalized;
/, Time.deltaTime * RotationSpeed);
// this is called every frame
// do move code here
transform.position += transform.TransformDirection(Vector3.forward)*Speed*Time.deltaTime;
if((transform.position - wayPoint).magnitude < 3)
{
// when the distance between us and the target is less than 3
// create a new way point target
Wander();
}
}
function Wander()
{
// does nothing except pick a new destination to go to
wayPoint= Random.insideUnitSphere *47;
wayPoint.y = 1;
// don't need to change direction every frame seeing as you walk in a straight line only
transform.LookAt(wayPoint);
Debug.Log(wayPoint + " and " + (transform.position - wayPoint).magnitude);
}
Thanks in advance.
Is there an example of the functionality you want out that you can point to? I am still having difficulty understanding what you want. I cannot tell if you simply want the object to orient itself to face the next waypoint (standard waypoint following), to only orient itself/move to the waypoint upon it's creation (idling until a new waypoint is generated), or something else entirely.
Perhaps looking at this might be useful?:
Do you want it to rotate to point at the new waypoint before it starts moving?
@Argylelabcoat My main focus was to make the object follow the randomly generated waypoint(it generates a new one each time the object is closer than 3 units to the current waypoint, so the object theoretically never stops moving as long as there are new waypoints) and when it detects a new one, it would slowly rotate towards it until it was facing it and so on.
@Screenhog My idea was to let it continue it's forward motion when rotating, to give the impression of smooth turning, rather than just stop and turn.
Thank you for the feedback
Have you looked at iTween yet? With iTween.MoveTo, you can choose a location and have a unit move to it while pointing in that direction.
Answer by phodges
·
Oct 20, 2012 at 08:35 AM
I'll bite. I set up a very simple 2D steering behaviour in a test scene. Here's what I put into it:
A wanderer object, assigning it a capsule so that I could follow its motion.
A target object, assigning it a cube.
I placed these two objects on a plane and then positioned the camera so that I could easily watch the show
Attached my simple script to the wanderer object and set its 'Target' property to the target object
There's nothing special about my using a target object, this was purely for visualisation. You could just as easily do this with just a vector and plot that if you need to. The script is written in C# and I'll paste it below:
using UnityEngine;
using System.Collections;
public class Wanderer : MonoBehaviour {
// I assign this to a test object in my scene so as to have a clear destination marker.
public GameObject target = null;
// Used for min/max positioning of the target.
public Vector2 wanderLimits = new Vector2(10f,10f);
// Smoothly turn at this maximum rate to face targets.
public float maxTurningSpeed = 360f;
// Maximum speed of motion
public float maxSpeed = 10f;
// Smooth motion as we approach targets and move to new ones.
public float acceleration = 3f;
// Slow down once we come close to the target
public float proximityRadius = 3f;
// When we're this close we'll pick a new target
public float arrivalRadius = 1f;
// Current speed
float speed = 0f;
// Use this for initialization
void Start () {
SelectNewPoint();
}
// Update is called once per frame
void Update () {
// Find the relative vector from our current position to the target.
// We're doing all of this in 2D, so we scrub any vertical components in calculation
Vector3 relative = GetTargetPoint() - transform.position;
relative.y = 0f;
bool turned = false;
// Do we need to adjust facing?
Quaternion idealFacing = Quaternion.LookRotation(relative);
// This is how far we would like to turn
float angle = Quaternion.Angle(transform.rotation, idealFacing);
// This is most we are allowed to turn this frame
float maxTurn = maxTurningSpeed * Time.deltaTime;
if (maxTurn >= angle){
// Excellent. We can just face the target
transform.rotation = idealFacing;
}else{
// We'll have to take this more gradually then; use slerp to smoothly face the target.
transform.rotation = Quaternion.Slerp(transform.rotation, idealFacing, maxTurn / angle);
turned = true;
}
// Now that we've adjusted facing, let's move our wanderer around
if (turned){
// If we needed to turn then slow down while we correct course, bringing ourselves to a halt if necessary.
speed = Mathf.Max(0f, speed - acceleration * Time.deltaTime);
}else{
// Since we didn't turn we will speed up if the target is far away and slow down otherwise
float distance = relative.magnitude;
if (distance > proximityRadius){
speed = Mathf.Min(maxSpeed, speed + acceleration * Time.deltaTime);
}else{
float frac = distance / proximityRadius;
float idealSpeed = maxSpeed * frac;
speed = Mathf.Max(idealSpeed, speed - acceleration * Time.deltaTime);
}
// Close enough? Then go somewhere else.
if (distance <= arrivalRadius){
SelectNewPoint();
}
}
// Move.
transform.position += transform.forward * speed * Time.deltaTime;
}
void SelectNewPoint(){
if (null != target){
Vector3 pos = target.transform.position;
pos.x = (Random.value - 0.5f) * 2f * wanderLimits.x;
pos.z = (Random.value - 0.5f) * 2f * wanderLimits.y;
target.transform.position = pos;
}else{
Debug.LogError("Where is my target?");
}
}
Vector3 GetTargetPoint(){
Vector3 result = Vector3.zero;
if (null != target){
result = target.transform.position;
}else{
Debug.LogError("Where is my target?");
}
return result;
}
}
Thank you, this was precisely what I was trying to do. I'll be sure to study it and complete it's behaviour like I was trying to do.
Answer by BerggreenDK
·
Oct 19, 2012 at 09:33 PM
I would:
First make an null object that facing "north" anytime. This object I would make follow my waypoint.
Secondly, as a child object I would place the rotating object at 0,0,0 of the other object, so that could be doing a simple transform.rotate(what ever axis.
Character Controller slides sideways when it hits objects are angles different from 90 degrees
1
Answer
Player Going Backwards on Waypoint Path Issue
0
Answers
Grid-based game movement
1
Answer
[Solved] Translating Camera on only X, Z axis on World Space, no matter what is the rotation
0
Answers
Script for auto movement with intersections
0
Answers | https://answers.unity.com/questions/335113/how-can-i-script-an-object-that-rotates-while-foll.html | CC-MAIN-2019-43 | refinedweb | 1,234 | 55.54 |
In Python, a
for loop is usually written as a loop over an iterable object. This means tutorial, you’ll see how to:
- Use
enumerate()to get a counter in a loop
- Apply
enumerate()to display item counts
- Use
enumerate()with conditional statements
- Implement your own equivalent function to
enumerate()
- Unpack values returned by
enumerate()
Let’s get started!
Free Download: Get a sample chapter from CPython Internals: Your Guide to the Python 3 Interpreter showing you how to unlock the inner workings of the Python language, compile the Python interpreter from source code, and participate in the development of CPython.
Iterating With
for Loops in Python
A
for loop in Python uses collection-based iteration. This means that Python assigns the next item from an iterable to the loop variable on every iteration, like in this example:
>>> values = ["a", "b", "c"] >>> for value in values: ... print(value) ... a b c
In this example,
values is a list with three strings,
"a",
"b", and
"c". In Python, lists are one type of iterable object. In the
for loop, the loop variable is
value. On each iteration of the loop,
value is set to the next item from
values.
Next, you print
value onto the screen. The advantage of collection-based iteration is that it helps avoid the off-by-one error that is common in other programming languages.
Now imagine that, in addition to the value itself, you want to print the index of the item in the list to the screen on every iteration. One way to approach this task is to create a variable to store the index and update it on each iteration:
>>> index = 0 >>> for value in values: ... print(index, value) ... index += 1 ... 0 a 1 b 2 c
In this example,
index is an integer that keeps track of how far into the list you are. On each iteration of the loop, you print
index as well as
value. The last step in the loop is to update the number stored in
index by one. A common bug occurs when you forget to update
index on each iteration:
>>> index = 0 >>> for value in values: ... print(index, value) ... 0 a 0 b 0 c
In this example,
index stays at
0 on every iteration because there’s no code to update its value at the end of the loop. Particularly for long or complicated loops, this kind of bug is notoriously hard to track down.
Another common way to approach this problem is to use
range() combined with
len() to create an index automatically. This way, you don’t need to remember to update the index:
>>> for index in range(len(values)): ... value = values[index] ... print(index, value) ... 0 a 1 b 2 c
In this example,
len(values) returns the length of
values, which is
3. Then
range() creates an iterator running from the default starting value of
0 until it reaches
len(values) minus one. In this case,
index becomes your loop variable. In the loop, you set
value equal to the item in
values at the current value of
index. Finally, you print
index and
value.
With this example, one common bug that can occur is when you forget to update
value at the beginning of each iteration. This is similar to the previous bug of forgetting to update the index. This is one reason that this loop isn’t considered Pythonic.
This example is also somewhat restricted because
values has to allow access to its items using integer indices. Iterables that allow this kind of access are called sequences in Python.
Technical Detail: According to the Python documentation, an iterable is any object that can return its members one at a time. By definition, iterables support the iterator protocol, which specifies how object members are returned when an object is used in an iterator. Python has two commonly used types of iterables:
Any iterable can be used in a
for loop, but only sequences can be accessed by integer indices. Trying to access items by index from a generator or an iterator will raise a
TypeError:
>>> enum = enumerate(values) >>> enum[0] Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'enumerate' object is not subscriptable
In this example, you assign the return value of
enumerate() to
enum.
enumerate() is an iterator, so attempting to access its values by index raises a
TypeError.
Fortunately, Python’s
enumerate() lets you avoid all these problems. It’s a built-in function, which means that it’s been available in every version of Python since it was added in Python 2.3, way back in 2003.
Using Python’s
enumerate()
You can use
enumerate() in a loop in almost the same way that you use the original iterable object. Instead of putting the iterable directly after
in in the
for loop, you put it inside the parentheses of
enumerate(). You also have to change the loop variable a little bit, as shown in this example:
>>> for count, value in enumerate(values): ... print(count, value) ... 0 a 1 b 2 c
When you use
enumerate(), the function gives you back two loop variables:
- The count of the current iteration
- The value of the item at the current iteration
Just like with a normal
for loop, the loop variables can be named whatever you want them to be named. You use
count and
value in this example, but they could be named
i and
v or any other valid Python names.
With
enumerate(), you don’t need to remember to access the item from the iterable, and you don’t need to remember to advance the index at the end of the loop. Everything is automatically handled for you by the magic of Python!
Technical Details: The use of the two loop variables,
count and
value, separated by a comma is an example of argument unpacking. This powerful Python feature will be discussed further a little later in this article.
Python’s
enumerate() has one additional argument that you can use to control the starting value of the count. By default, the starting value is
0 because Python sequence types are indexed starting with zero. In other words, when you want to retrieve the first element of a list, you use index
0:
>>> print(values[0]) a
You can see in this example that accessing
values with the index
0 gives the first element,
a. However, there are many times when you might not want the count from
enumerate() to start at
0. For instance, you might want to print a natural counting number as an output for the user. In this case, you can use the
start argument for
enumerate() to change the starting count:
>>> for count, value in enumerate(values, start=1): ... print(count, value) ... 1 a 2 b 3 c
In this example, you pass
start=1, which starts
count with the value
1 on the first loop iteration. Compare this with the previous examples, in which
start had the default value of
0, and see whether you can spot the difference.
Practicing With Python
enumerate()
You should use
enumerate() anytime you need to use the count and an item in a loop. Keep in mind that
enumerate() increments the count by one on every iteration. However, this only slightly limits your flexibility. Since the count is a standard Python integer, you can use it in many ways. In the next few sections, you’ll see some uses of
enumerate().
Natural Count of Iterable Items
In the previous section, you saw how to use
enumerate() with
start to create a natural counting number to print for a user.
enumerate() is also used like this within the Python codebase. You can see one example in a script that reads reST files and tells the user when there are formatting problems.
Note: reST, also known as reStructured Text, is a standard format for text files that Python uses for documentation. You’ll often see reST-formatted strings included as docstrings in Python classes and functions. Scripts that read source code files and tell the user about formatting problems are called linters because they look for metaphorical lint in the code.
This example is slightly modified from
rstlint.py. Don’t worry too much about how this function checks for problems. The point is to show a real-world use of
enumerate():
1def check_whitespace(lines): 2 """Check for whitespace and line length issues.""" 3 for lno, line in enumerate(lines): 4 if "\r" in line: 5 yield lno+1, "\\r in line" 6 if "\t" in line: 7 yield lno+1, "OMG TABS!!!1" 8 if line[:-1].rstrip(" \t") != line[:-1]: 9 yield lno+1, "trailing whitespace"
check_whitespace() takes one argument,
lines, which is the lines of the file that should be evaluated. On the third line of
check_whitespace(),
enumerate() is used in a loop over
lines. This returns the line number, abbreviated as
lno, and the
line. Since
start isn’t used,
lno is a zero-based counter of the lines in the file.
check_whitespace() then makes several checks for out-of-place characters:
- The carriage return (
\r)
- The tab character (
\t)
- Any spaces or tabs at the end of the line
When one of these items is present,
check_whitespace() yields the current line number and a useful message for the user. The count variable
lno has
1 added to it so that it returns the counting line number rather than a zero-based index. When a user of
rstlint.py reads the message, they’ll know which line to go to and what to fix.
Conditional Statements to Skip Items
Using conditional statements to process items can be a very powerful technique. Sometimes you might need to perform an action on only the very first iteration of a loop, as in this example:
>>> users = ["Test User", "Real User 1", "Real User 2"] >>> for index, user in enumerate(users): ... if index == 0: ... print("Extra verbose output for:", user) ... print(user) ... Extra verbose output for: Test User Real User 1 Real User 2
In this example, you use a list as a mock database of users. The first user is your testing user, so you want to print extra diagnostic information about that user. Since you’ve set up your system so that the test user is first, you can use the first index value of the loop to print extra verbose output.
You can also combine mathematical operations with conditions for the count or index. For instance, you might need to return items from an iterable, but only if they have an even index. You can do this by using
enumerate():
>>> def even_items(iterable): ... """Return items from ``iterable`` when their index is even.""" ... values = [] ... for index, value in enumerate(iterable, start=1): ... if not index % 2: ... values.append(value) ... return values ...
even_items() takes one argument, called
iterable, that should be some type of object that Python can loop over. First,
values is initialized to be an empty list. Then you create a
for loop over
iterable with
enumerate() and set
start=1.
Within the
for loop, you check whether the remainder of dividing
index by
2 is zero. If it is, then you append the item to
values. Finally, you return
values.
You can make the code more Pythonic by using a list comprehension to do the same thing in one line without initializing the empty list:
>>> def even_items(iterable): ... return [v for i, v in enumerate(iterable, start=1) if not i % 2] ...
In this example code,
even_items() uses a list comprehension rather than a
for loop to extract every item from the list whose index is an even number.
You can verify that
even_items() works as expected by getting the even-indexed items from a range of integers from
1 to
10. The result will be
[2, 4, 6, 8, 10]:
>>> seq = list(range(1, 11)) >>> print(seq) [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] >>> even_items(seq) [2, 4, 6, 8, 10]
As expected,
even_items() returns the even-indexed items from
seq. This isn’t the most efficient way to get the even numbers when you’re working with integers. However, now that you’ve verified that
even_items() works properly, you can get the even-indexed letters of the ASCII alphabet:
>>>>> even_items(alphabet) ['b', 'd', 'f', 'h', 'j', 'l', 'n', 'p', 'r', 't', 'v', 'x', 'z']
alphabet is a string that has all twenty-six lowercase letters of the ASCII alphabet. Calling
even_items() and passing
alphabet returns a list of alternating letters from the alphabet.
Python strings are sequences, which can be used in loops as well as in integer indexing and slicing. So in the case of strings, you can use square brackets to achieve the same functionality as
even_items() more efficiently:
>>> list(alphabet[1::2]) ['b', 'd', 'f', 'h', 'j', 'l', 'n', 'p', 'r', 't', 'v', 'x', 'z']
Using string slicing here, you give the starting index
1, which corresponds to the second element. There’s no ending index after the first colon, so Python goes to the end of the string. Then you add the second colon followed by a
2 so that Python will take every other element.
However, as you saw earlier, generators and iterators can’t be indexed or sliced, so you’ll still find
enumerate() useful. To continue the previous example, you can create a generator function that yields letters of the alphabet on demand:
>>> def alphabet(): ... alpha = "abcdefghijklmnopqrstuvwxyz" ... for a in alpha: ... yield a >>> alphabet[1::2] Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'function' object is not subscriptable >>> even_items(alphabet()) ['b', 'd', 'f', 'h', 'j', 'l', 'n', 'p', 'r', 't', 'v', 'x', 'z']
In this example, you define
alphabet(), a generator function that yields letters of the alphabet one-by-one when the function is used in a loop. Python functions, whether generators or regular functions, can’t be accessed by the square bracket indexing. You try this out on the second line, and it raises a
TypeError.
You can use generator functions in loops, though, and you do so on the last line by passing
alphabet() to
even_items(). You can see that the result is the same as the previous two examples.
Understanding Python
enumerate()
In the last few sections, you saw examples of when and how to use
enumerate() to your advantage. Now that you’ve got a handle on the practical aspects of
enumerate(), you can learn more about how the function works internally.
To get a better sense of how
enumerate() works, you can implement your own version with Python. Your version of
enumerate() has two requirements. It should:
- Accept an iterable and a starting count value as arguments
- Send back a tuple with the current count value and the associated item from the iterable
One way to write a function meeting these specifications is given in the Python documentation:
>>> def my_enumerate(sequence, start=0): ... n = start ... for elem in sequence: ... yield n, elem ... n += 1 ...
my_enumerate() takes two arguments,
sequence and
start. The default value of
start is
0. Inside the function definition, you initialize
n to be the value of
start and run a
for loop over the
sequence.
For each
elem in
sequence, you
yield control back to the calling location and send back the current values of
n and
elem. Finally, you increment
n to get ready for the next iteration. You can see
my_enumerate() in action here:
>>> seasons = ["Spring", "Summer", "Fall", "Winter"] >>> my_enumerate(seasons) <generator object my_enumerate at 0x7f48d7a9ca50> >>> list(my_enumerate(seasons)) [(0, 'Spring'), (1, 'Summer'), (2, 'Fall'), (3, 'Winter')] >>> list(my_enumerate(seasons, start=1)) [(1, 'Spring'), (2, 'Summer'), (3, 'Fall'), (4, 'Winter')]
First, you create a list of the four seasons to work with. Next, you show that calling
my_enumerate() with
seasons as the
sequence creates a generator object. This is because you use the
yield keyword to send values back to the caller.
Finally, you create two lists from
my_enumerate(), one in which the start value is left as the default,
0, and one in which
start is changed to
1. In both cases, you end up with a list of tuples in which the first element of each tuple is the count and the second element is the value from
seasons.
Although you can implement an equivalent function for
enumerate() in only a few lines of Python code, the actual code for
enumerate() is written in C. This means that it’s super fast and efficient.
Unpacking Arguments With
enumerate()
When you use
enumerate() in a
for loop, you tell Python to use two variables, one for the count and one for the value itself. You’re able to do this by using a Python concept called argument unpacking.
Argument unpacking is the idea that a tuple can be split into several variables depending on the length of the sequence. For instance, you can unpack a tuple of two elements into two variables:
>>> tuple_2 = (10, "a") >>> first_elem, second_elem = tuple_2 >>> first_elem 10 >>> second_elem 'a'
First, you create a tuple with two elements,
10 and
"a". Then you unpack that tuple into
first_elem and
second_elem, which are each assigned one of the values from the tuple.
When you call
enumerate() and pass a sequence of values, Python returns an iterator. When you ask the iterator for its next value, it yields a tuple with two elements. The first element of the tuple is the count, and the second element is the value from the sequence that you passed:
>>> values = ["a", "b"] >>> enum_instance = enumerate(values) >>> enum_instance <enumerate at 0x7fe75d728180> >>> next(enum_instance) (0, 'a') >>> next(enum_instance) (1, 'b') >>> next(enum_instance) Traceback (most recent call last): File "<stdin>", line 1, in <module> StopIteration
In this example, you create a list called
values with two elements,
"a" and
"b". Then you pass
values to
enumerate() and assign the return value to
enum_instance. When you print
enum_instance, you can see that it’s an instance of
enumerate() with a particular memory address.
Then you use Python’s built-in
next() to get the next value from
enum_instance. The first value that
enum_instance returns is a tuple with the count
0 and the first element from
values, which is
"a".
Calling
next() again on
enum_instance yields another tuple, this time with the count
1 and the second element from
values,
"b". Finally, calling
next() one more time raises
StopIteration since there are no more values to be returned from
enum_instance.
When an iterable is used in a
for loop, Python automatically calls
next() at the start of every iteration until
StopIteration is raised. Python assigns the value it retrieves from the iterable to the loop variable.
If an iterable returns a tuple, then you can use argument unpacking to assign the elements of the tuple to multiple variables. This is what you did earlier in this tutorial by using two loop variables.
Another time you might have seen argument unpacking with a
for loop is with the built-in
zip(), which allows you to iterate through two or more sequences at the same time. On each iteration,
zip() returns a tuple that collects the elements from all the sequences that were passed:
>>> first = ["a", "b", "c"] >>> second = ["d", "e", "f"] >>> third = ["g", "h", "i"] >>> for one, two, three in zip(first, second, third): ... print(one, two, three) ... a d g b e h c f i
By using
zip(), you can iterate through
first,
second, and
third at the same time. In the
for loop, you assign the element from
first to
one, from
second to
two, and from
third to
three. Then you print the three values.
You can combine
zip() and
enumerate() by using nested argument unpacking:
>>> for count, (one, two, three) in enumerate(zip(first, second, third)): ... print(count, one, two, three) ... 0 a d g 1 b e h 2 c f i
In the
for loop in this example, you nest
zip() inside
enumerate(). This means that each time the
for loop iterates,
enumerate() yields a tuple with the first value as the count and the second value as another tuple containing the elements from the arguments to
zip(). To unpack the nested structure, you need to add parentheses to capture the elements from the nested tuple of elements from
zip().
There are other ways to emulate the behavior of
enumerate() combined with
zip(). One method uses
itertools.count(), which returns consecutive integers by default, starting at zero. You can change the previous example to use
itertools.count():
>>> import itertools >>> for count, one, two, three in zip(itertools.count(), first, second, third): ... print(count, one, two, three) ... 0 a d g 1 b e h 2 c f i
Using
itertools.count() in this example allows you to use a single
zip() call to generate the count as well as the loop variables without nested argument unpacking.
Conclusion
Python’s
enumerate() lets you write Pythonic
for loops when you need a count and the value from an iterable. The big advantage of
enumerate() is that it returns a tuple with the counter and value, so you don’t have to increment the counter yourself. It also gives you the option to change the starting value for the counter.
In this tutorial, you learned how to:
- Use Python’s
enumerate()in your
forloops
- Apply
enumerate()in a few real-world examples
- Get values from
enumerate()using argument unpacking
- Implement your own equivalent function to
enumerate()
You also saw
enumerate() used in some real-world code, including within the CPython code repository. You now have the superpower of simplifying your loops and making your Python code stylish! | https://realpython.com/python-enumerate/ | CC-MAIN-2021-17 | refinedweb | 3,610 | 60.45 |
As a Windows Phone developer you're, no doubt, intimately familiar with
the Pivot and Panorama controls. If you've looked at porting an app that
uses them from WP7.x to WP8.0 then you're probably aware that they've
moved.
They used to be in the Windows.Phone.Controls.dll assembly that you had to distribute with your app.
They're now in the Windows.Phone.dll assembly and are already on the device.
The plus side to this is that it means your XAPs can be smaller (due to not needing to include a 102k file) and that the pages which use these controls can load that little bit faster (due to use of a native control)
The downside to this is that you cannot use the same XAML in a WP7.x and a WP8.0 application. If you're targeting both platforms this means duplication and that in turn leads to more work. :(
On WP7.x you do this:
xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
But on WP8.0 you do this:
xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
That is all relatively well documented and easy to address if you've
discovered it yourself. What isn't so well documented is how the
controls themselves have changed.
Let's start with the Panorama
Here you can see the default instances of the two versions of the Panorama. WP7.x on the left and WP8.0 on the right.
Notice in particular the differences in the headers.
Not clear? Let me make it a bit more obvious:
Yes, the layout (template) for the PanningTileLayer has changed in WP8.0.
Here's how it looks in WP7.x (obtained via Reflector)
>Yes some of these values may look odd at first look but this will enable the title and header to be displayed in exactly the same position as it would on WP7. (This was tested thoroughly by a designer with a very keen eye for pixel differences. ;)
You can then apply them like this:
<phone:panorama <phone:panoramaitem ... </phone:panoramaitem> ... </phone:panorama>And what about the Pivot control?
Well, this has changed in a much subtler way and, fortunately, is less likely to impact you.
Something that is quite commonly done is to take a Pivot control and retemplate it to hide the header by removing the PivotHeadersControl from the template, to create a simple swiping control.
If this is missing in WP8.0 then the page with this on will cause the app to crash when opened.
You have been warned.
There are also other ways of hiding the item header if you so wish. | http://mobile.dzone.com/articles/pivot-and-panorama-have-moved | CC-MAIN-2014-41 | refinedweb | 450 | 75.71 |
In this chapter:
All Types Are Derived from System.Object
Namespaces and Assemblies
How Things Relate at Run Time
In this chapter, I will introduce information that is fundamental to working with types and the common language runtime (CLR). In particular, I’ll discuss the minimum set of behaviors that you can expect every type to have. I’ll also describe type safety, namespaces, assemblies, and the various ways you can cast objects from one type to another. Finally, I’ll conclude this chapter with an explanation of how types, objects, thread stacks, and the managed heap all relate to one another at run time.
The runtime requires every type to ultimately be derived ...
No credit card required | https://www.oreilly.com/library/view/clr-via-c/9780735668737/ch04.html | CC-MAIN-2019-43 | refinedweb | 118 | 54.93 |
I am trying to add the assertion for the JsonPath RegEx Match and it always return false even if the response is present.
I am expecting the program name should have "Auto" keyword in it. I tried several regular expressions e.g. Auto, (.*Auto)
Please refer the attached screenshot.
Json Response:
{ "records": [{ "Program_Name": "Auto Program", "Terms": ["Automation Term"], "Program_Type_ID": 1, "Program_Id": 10075 }, { "Program_Name": "Automation Program", "Terms": [" Term"], "Program_Type_ID": 1, "Program_Id": 10000 } ] }
Solved!
Go to Solution.
Thank you @anita
I don't know about what is there in ReadyAPI.
Looks different tools uses different parsers for evaluating JSONPath.
For example, below sites
And try below json paths, and both behave differently and I assume the same is happening with SoapUI as well. Tried the same JSONPath expression in JSON Path Match, JSON Path Count and seem to be not working which are supposed to be. May be an issue with few Conditional JsonPath.
Results same (both names) by both the Json Paths
[
"Auto Program",
"Automation Program"
]
However, Json Path match works with below expression
If you still want to have your assertion with regex, then below Script Assertion can be used
//You may even use test case custom properties for below two so that you dont have to edit to assertion when data changes
def regEx = 'Auto*'
def expectedRecords = 2
def matchedPrograms = new groovy.json.JsonSlurper().parseText(context.response).records.findAll {it.Program_Name =~ /$regEx/}.Program_Name
log.info matchedPrograms
assert matchedPrograms.size == expectedRecords
Thanks for the nice question.
Hope SmartBear team looks into the issue dealing with conditional json path expression which contains characters such as ~
View solution in original post
There is no option to select "Allow Wildcards" in open source. I tried to change it in the project xml file but it is also giving the same result and it overwrite(Allow wildcard to false) when I am trying to save the project.
I am looking for the solution in open source. | https://community.smartbear.com/t5/SoapUI-Open-Source/JsonPath-RegEx-Match-Assertion-is-not-working-on-SoapUI-5-5-0/td-p/201995 | CC-MAIN-2020-34 | refinedweb | 322 | 53.1 |
Basically I need to read from a text file that looks like this
customer Kevin
checking myaccount 100.00
bond mybond1 1997 100 0.07
bond mybond2 2010 200 0.01
irabond myirabond1 1997 100 0.06
end
customer Mark
irabond hisirabond1 1999 200 0.08
bond hisbond1 1990 2000 0.10
end
I need to get each customers info, name, account names and balance, etc into an object. This I know how to do. What I don't know how to do is break up the text file to allow this.
Here's what I have so far:
#include "stdafx.h" #include <iostream> #include <fstream> #include <string> #include <vector> #include <sstream> using namespace std; int main() { ifstream in_file; string file_name; string temp; string allText; cout<<"Please enter the file name: "; cin>>file_name; bool loop = true; //stringstream ss; in_file.open(file_name); while(in_file>>temp) { stringstream ss; ss << temp; while(loop) { string st; ss >> st; if (st =="end") { loop = false; } if (st == ""){loop = false;} allText += st; } loop = true; } system ("pause"); }
I can get a string of words until the word "end", which is what I want, but I'm confused as to where to go next. How to I get the cusomter name? I guess I could look for customer in the string and say, delete customer, but store the next word into this vector. Then look for the word checking, delete it and store the name, etc into this vector and so on.
Would this work? How would I go about doing it? | https://www.daniweb.com/programming/software-development/threads/392732/how-to-parse-strings-parse-text-files | CC-MAIN-2017-26 | refinedweb | 253 | 91.21 |
“A library implies an act of faith/Which generations still in darkness hid/Sign in their night in witness of the dawn.” — Victor Hugo
Before we move on to anything else, let’s revisit some of the things we’ve done in the first four chapters. We have:
Learned about concepts from the world of physics — What is a vector? What is a force? What is a wave? etc.
Understood the math and algorithms behind such concepts.
Implemented the algorithms in Processing with an object-oriented approach.
These activities have yielded a set of motion simulation examples, allowing us to creatively define the physics of the worlds we build (whether realistic or fantastical). Of course, we aren’t the first to try this. The world of computer graphics and programming is full of source code dedicated to simulation. Just try Googling “open-source physics engine” and you could spend the rest of your day pouring over rich and complex code. And so we must ask the question: If a code library will take care of physics simulation, why should we bother learning how to write any of the algorithms ourselves?
Here is where the philosophy behind this book comes into play. While many of the libraries out there give us physics (and super awesome advanced physics at that) for free, there are significant reasons for learning the fundamentals from scratch before diving into libraries. First, without an understanding of vectors, forces, and trigonometry, we’d be completely lost just reading the documentation of a library. Second, even though a library may take care of the math for us, it won’t necessarily simplify our code. As we’ll see in a moment, there can be a great deal of overhead in simply understanding how a library works and what it expects from you code-wise. Finally, as wonderful as a physics engine might be, if you look deep down into your hearts, it’s likely that you seek to create worlds and visualizations that stretch the limits of imagination. A library is great, but it provides a limited set of features. It’s important to know both when to live within limitations in the pursuit of a Processing project and when those limits prove to be confining.
This chapter is dedicated to examining two open-source physics libraries—Box2D and toxiclibs’ VerletPhysics engine. With each library, we’ll evaluate its pros and cons and look at reasons why you might choose one of these libraries for a given project.
Box2D began as a set of physics tutorials written in C++ by Erin Catto for the Game Developer’s Conference in 2006. Over the last five years it has evolved into an rich and elaborate open-source physics engine. It’s been used for countless projects, most notably highly successful games such as the award-winning puzzle game Crayon Physics and the runaway mobile and tablet hit Angry Birds.
One of the key things to realize about Box2D is that it is a true physics engine. Box2D knows nothing about computer graphics and the world of pixels; it is simply a library that takes in numbers and spits out more numbers. And what are those numbers? Meters, kilograms, seconds, etc. All of Box2D’s measurements and calculations are for real-world measurements—only its “world” is a two-dimensional plane with top, bottom, left, and right edges. You tell it things like: “The gravity of our world is 9.81 newtons per kilogram, and a circle with a radius of four meters and a mass of fifty kilograms is located ten meters above the world’s bottom.” Box2D will then tell you things like: “One second later, the rectangle is at five meters from the bottom; two seconds later, it is ten meters below,” etc. While this provides for an amazing and realistic physics engine, it also necessitates lots of complicated code in order to translate back and forth between the physics “world” (a key term in Box2D) and the world we want to draw on —the “pixel” world of Processing.
So when is it worth it to have this additional overhead? If I just want to simulate a circle falling down a Processing window with gravity, do I really need to write all the extra Box2D code just to get that effect? Certainly, the answer is no. We saw how to do this rather easily in the first chapter of this book. Let’s consider another scenario. What if I want to have a hundred of those circles falling? And what if those circles aren’t circles at all, but irregularly shaped polygons? And what if I want these polygons to bounce off each other in a realistic manner when they collide?
You may have noticed that the first four chapters of this book, while covering motion and forces in detail, has skipped over a rather important aspect of physics simulation—collisions. Let’s pretend for a moment that you aren’t reading a chapter about libraries and that we decided right now to cover how to handle collisions in a particle system. We’d have to evaluate and learn two distinct algorithms that address these questions:
How do I determine if two shapes are colliding (i.e. intersecting)?
How do I determine the shapes’ velocity after the collision?
If we’re thinking about shapes like rectangles or circles, question #1 isn’t too tough. You’ve likely encountered this before. For example, we know two circles are intersecting if the distance between them is less than the sum of their radii.
Figure 5.1
OK. Now that we know how to determine if two circles are colliding, how do we calculate their velocities after the collision? This is where we’re going to stop our discussion. Why, you ask? It’s not that understanding the math behind collisions isn’t important or valuable. (In fact, I’m including additional examples on the website related to collisions without a physics library.) The reason for stopping is that life is short (let this also be a reason for you to consider going outside and frolicking instead of programming altogether). We can’t expect to master every detail of physics simulation. And while we could continue this discussion for circles, it’s only going to lead us to wanting to work with rectangles. And strangely shaped polygons. And curved surfaces. And swinging pendulums colliding with springy springs. And and and and and.
Working with collisions in our Processing sketch while still having time to spend with our friends and family—that’s the reason for this chapter. Erin Catto spent years developing solutions to these kinds of problems so you don’t need to engineer them yourselves, at least for now.
In conclusion, if you find yourself describing an idea for a Processing sketch and the word “collisions” comes up, then it’s likely time to learn Box2D. (We’ll also encounter other words that might lead you down this path to Box2D, such as “joint,” “hinge,” “pulley,” “motor,” etc.)
So, if Box2D is a physics engine that knows nothing about pixel-based computer graphics and is written in C++, how are we supposed to use it in Processing?
The good news is that Box2D is such an amazing and useful library that everyone wants to use it—Flash, Javascript, Python, Ruby programmers. Oh, and Java programmers. There is something called JBox2D, a Java port of Box2D. And because Processing is built on top of Java, JBox2D can be used directly in Processing!
So here’s where we are so far.
Box2D site for reference.
JBox2D site for Processing compatibility.
This is all you need to get started writing Box2D code in Processing. However, as we are going to see in a moment, there are several pieces of functionality we’ll repeatedly need in our Processing code, and so it’s worth having one additional layer between our sketches and JBox2D. I’m calling this PBox2D—a Processing Box2D “helper” library included as part of this book’s code example downloads.
It’s important to realize that PBox2D is not a Processing wrapper for all of Box2D. After all, Box2D is a thoughtfully organized and well-structured API and there’s no reason to take it apart and re-implement it. However, it’s useful to have a small set of functions that help you get your Box2D world set up, as well as help you figure out where to draw your Box2D shapes. And this is what PBox2D will provide.
I should also mention before we move forward that there are other Processing libraries that wrap Box2D for you. One I would recommend taking a look at is Fisica by Ricard Marxer.
Do not despair! We really are going to get to the code very soon, and in some ways we’ll blow our previous work out of the water. But before we’re ready to do that, it’s important to walk through the overall process of using Box2D in Processing. Let’s begin by writing a pseudocode generalization of all of our examples in Chapters 1 through 4.
SETUP:
Create all the objects in our world.
DRAW:
Calculate all the forces in our world.
Apply all the forces to our objects (F = M * A).
Update the locations of all the objects based on their acceleration.
Draw all of our objects.
Great. Let’s rewrite this pseudocode as it will appear in our Box2D examples.
SETUP:
Create all the objects in our world.
DRAW:
Draw all of our objects.
This, of course, is the fantasy of Box2D. We’ve eliminated all of those painful steps of figuring out how the objects are moving according to velocity and acceleration. Box2D is going to take care of this for us! The good news is that this does accurately reflect the overall process. Let’s imagine Box2D as a magic box.
In setup(), we’re going to say to Box2D: “Hello there. Here are all of the things I want in my world.” In draw(), we’re going to politely ask Box2D: “Oh, hello again. If it’s not too much trouble, I’d like to draw all of those things in my world. Could you tell me where they are?”
The bad news: it’s not as simple as the above explanation would lead you to believe. For one, making the stuff that goes in the Box2D world involves wading through the documentation for how different kinds of shapes are built and configured. Second, we have to remember that we can’t tell Box2D anything about pixels, as it will simply get confused and fall apart. Before we tell Box2D what we want in our world, we have to convert our pixel units to Box2D “world” units. And the same is true when it comes time to draw our stuff. Box2D is going to tell us the location of the things in its world, which we then have to translate for the pixel world.
Create everything that lives in our pixel world.
Translate the pixel world into the Box2D world.
Ask Box2D where everything is.
Translate Box2D’s answer into the pixel world.
Draw everything.
Now that we understand that anything we create in our Processing sketch has to be placed into the Box2D world, let’s look at an overview of the elements that make up that world.
World: Manages the physics simulation. It knows everything about the overall coordinate space and also stores lists of every element in the world (see 2-4 below).
Body: Serves as the primary element in the Box2D world. It has a location. It has a velocity. Sound familiar? The Body is essentially the class we’ve been writing on our own in our vectors and forces examples.
Shape: Keeps track of all the necessary collision geometry attached to a body.
Fixture: Attaches a shape to a body and sets properties such as density, friction, and restitution.
Joint: Acts as a connection between two bodies (or between one body and the world itself).
In the next four sections, we are going to walk through each of the above elements in detail, building several examples along the way. But first there is one other important element we should briefly discuss.
6. Vec2: Describes a vector in the Box2D world.
And so here we are, arriving with trepidation at an unfortunate truth in the world of using physics libraries. Any physics simulation is going to involve the concept of a vector. This is the good part. After all, we just spent several chapters familiarizing ourselves with what it means to describe motion and forces with vectors. We don’t have to learn anything new conceptually.
Now for the part that makes the single tear fall from my eye: we don’t get to use PVector. It’s nice that Processing has PVector for us, but anytime you use a physics library you will probably discover that the library includes its own vector implementation. This makes sense, after all; why should Box2D be expected to know about PVector? And in many cases, the physics engine will want to implement a vector class in a specific way so that it is especially compatible with the rest of the library’s code. So while we don’t have to learn anything new conceptually, we do have to get used to some new naming conventions and syntax. Let’s quickly demonstrate a few of the basics in Vec2 as compared to those in PVector.
Let’s say we want to add two vectors together.
How about if we want to multiply and scale them?
Magnitude and normalize?
As you can see, the concepts are the same, but the function names and the arguments are slightly different. For example, instead of static and non-static add() and mult(), if a Vec2 is altered, the word “local” is included in the function name—addLocal(), multLocal().
We’ll cover the basics of what you need to know here, but if you are looking for more, full documentation of Vec2 can be found by downloading the JBox2D source code.
The Box2D World object is in charge of everything. It manages the coordinate space of the world, all of the stuff that lives in the world, and decides when time moves forward in the world.
In order to have Box2D as part of our Processing sketches, the World is the very first thing that needs to be set up. Here is where PBox2D comes in handy and takes care of making the world for us.
When you call createWorld(), PBox2D will set up a default gravity for you (pointing down); however, you can always alter the gravity of your world by saying:
It’s worth noting that gravity doesn’t have to be fixed, nor does it always have to point downwards; you can adjust the gravity vector while your program is running. Gravity can be turned off by setting it to a (0,0) vector.
So, what are those numbers 0 and -10? This should remind us of one of the most important details of using Box2D: the Box2D coordinate system is not your pixel coordinate system! Let’s look at how Box2D and a Processing window think differently of their worlds.
Figure 5.2
Notice how in Box2D (0,0) is in the center and up is the positive direction along the y-axis! Box2D’s coordinate system is just like that lovely old-fashioned Cartesian one with (0,0) in the center and up pointing in a positive direction. Processing, on the other hand, uses a traditional computer graphics coordinate system where (0,0) is in the top left corner and down is the positive direction along the y-axis. This is why if we want objects to fall down with gravity, we need to give Box2D a gravity force with a negative y-value.
Luckily for us, if we prefer to think in terms of pixel coordinates (which as Processing programmers, we are likely to do), PBox2D offers a series of helper functions that convert between pixel space and Box2D space. Before we move onto the next section and begin creating Box2D bodies, let’s take a look at how these helper functions work.
Let’s say we want to tell Box2D where the mouse is in its world. We know the mouse is located at (mouseX,mouseY) in Processing. To convert it, we say we want to convert a “coordinate” from “pixels” to “world”—coordPixelsToWorld(). Or:
Vec2 mouseWorld = box2d.coordPixelsToWorld(mouseX,mouseY);
What if we had a Box2D world coordinate and wanted to translate it to our pixel space?
Vec2 worldPos = new Vec2(-10,25);
Vec2 pixelPos = box2d.coordWorldToPixels(worldPos); ellipse(pixelPos.x, pixelPos.y,16,16);
PBox2D has a set of functions to take care of translating back and forth between the Box2D world and pixels. It’s probably easier to learn about all of these functions during the course of actually implementing our examples, but let’s quickly look over the list of the possibilities.
There are also additional functions that allow you to pass or receive a PVector when translating back and forth, but since we are only working with Box2D in the examples in this chapter, it’s easiest to stick with the Vec2 class for all vectors.
Once the world is initialized, we are ready to actually put stuff in the world—Box2D bodies.
A Box2D body is the primary element in the Box2D world. It’s the equivalent to the Mover class we built on our own in previous chapters—the thing that moves around the space and experiences forces. It can also be static (meaning fixed and not moving). It’s important to note, however, that a body has no geometry; it isn’t anything physical. Rather, bodies have Box2D shapes attached to them. (This way, a body can be a single rectangle or a rectangle attached to a circle, etc.) We’ll look at shapes in a moment; first, let’s build a body.
The first thing we have to do is create a “body definition.” This will let us define the properties of the body we intend to make. This may seem a bit awkward at first, but it’s how Box2D is structured. Anytime you want to make a “thing,” you have to make a “thing definition” first. This will hold true for bodies, shapes, and joints.
The body definition is where we can set specific properties or attributes of the body we intend to make. One attribute of a body, for example, is its starting location. Let’s say we want to position the body in the center of the Processing window.
Danger, danger! I’m not going to address this with every single example, but it’s important to at least point out the perilous path we are taking with the above line of code. Remember, if we are going to tell Box2D where we want the body to start, we must give Box2D a world coordinate! Yes, we want to think of its location in terms of pixels, but Box2D doesn’t care. And so before we pass that position to the body definition, we must make sure to use one of our helper conversion functions.
Vec2 center = box2d.coordPixelsToWorld(width/2,height/2));
bd.position.set(center);
The body definition must also specify the “type” of body we want to make. There are three possibilities:
Dynamic. This is what we will use most often—a “fully simulated” body. A dynamic body moves around the world, collides with other bodies, and responds to the forces in its environment.
Static. A static body is one that cannot move (as if it had an infinite mass). We’ll use static bodies for fixed platforms and boundaries.
Kinematic. A kinematic body can be moved manually by setting its velocity directly. If you have a user-controlled object in your world, you can use a kinematic body. Note that kinematic bodies collide only with dynamic bodies and not with other static or kinematic ones.
There are several other properties you can set in the body definition. For example, if you want your body to have a fixed rotation (i.e. never rotate), you can say:
You can also set a value for linear or angular damping, so that the object continuously slows as if there is friction.
In addition, fast-moving objects in Box2D should be set as bullets. This tells the Box2D engine that the object may move very quickly and to check its collisions more carefully so that it doesn’t accidentally jump over another body.
Once we’re done with the definition (BodyDef), we can create the Body object itself. PBox2D provides a helper function for this—createBody().
Finally, though not required, if you want to set any other initial conditions for the body, such as linear or angular velocity, you can do so with the newly created Body object.
A body on its own doesn’t physically exist in the world. It’s like a soul with no human form to inhabit. For a body to have mass, we must first define a shape and attach that shape to the body with something known as a fixture.
The job of the Box2D Shape class is to keep track of all the necessary collision geometry attached to a body. A shape also has several important properties that affect the body’s motion. There is density, which ultimately determines that body’s mass. Shapes also have friction and restitution (“bounciness”) which will be defined through a fixture. One of the nice things about Box2D’s methodology, which separates the concepts of bodies and shapes into two separate objects, is that you can attach multiple shapes to a single body in order to create more complex forms. We’ll see this in a future example.
To create a shape, we need to first decide what kind of shape we want to make. For most non-circular shapes, a PolygonShape object will work just fine. For example, let’s look at how we define a rectangle.
Next up, we have to define the width and height of the rectangle. Let’s say we want our rectangle to be 150×100 pixels. Remember, pixel units are no good for Box2D shapes! So we have to use our helper functions to convert them first.
The shape and body are made as two separate entities. In order to attach a shape to a body, we must make a fixture. A fixture is created, just as with the body, via a fixture definition (i.e. FixtureDef class) and assigned a shape.
FixtureDef fd = new FixtureDef();
fd.shape = ps;
Once we have the fixture definition, we can set parameters that affect the physics for the shape being attached.
Once the fixture is defined, all we have left to do is attach the shape to the body with the fixture by calling the createFixture() function.
I should note that Step 2 can be skipped if you do not need to set the physics properties. (Box2D will use default values.) You can create a fixture and attach the shape all in one step by saying:
While most of our examples will take care of attaching shapes only once when the body is first built, this is not a limitation of Box2D. Box2D allows for shapes to be created and destroyed on the fly.
Before we put any of this code we’ve been writing into a Processing sketch, let’s review all the steps we took to construct a Body.
Define a body using a BodyDef object (set any properties, such as location).
Create the Body object from the body definition.
Define a Shape object using PolygonShape, CircleShape, or any other shape class.
Define a fixture using FixtureDef and assign the fixture a shape (set any properties, such as friction, density, and restitution).
Attach the shape to the body.
BodyDef bd = new BodyDef(); bd.position.set(box2d.coordPixelsToWorld(width/2,height/2));
Body body = box2d.createBody(bd);
PolygonShape ps = new PolygonShape(); float w = box2d.scalarPixelsToWorld(150); float h = box2d.scalarPixelsToWorld(100); ps.setAsBox(w, h);
FixtureDef fd = new FixtureDef(); fd.shape = ps; fd.density = 1; fd.friction = 0.3; fd.restitution = 0.5;
body.createFixture(fd);
Knowing what you know about Box2D so far, fill in the blank in the code below that demonstrates how to make a circular shape in Box2D.
Once a body is made, it lives in the Box2D physics world. Box2D will always know it’s there, check it for collisions, move it appropriately according to the forces, etc. It’ll do all that for you without you having to lift a finger! What it won’t do, however, is display the body for you. This is a good thing. This is your time to shine. When working with Box2D, what we’re essentially saying is, “I want to be the designer of my world, and I want you, Box2D, to compute all the physics.”
Now, Box2D will keep a list of all the bodies that exist in the world. This can be accessed by calling the World object’s getBodyList() function. Nevertheless, what I’m going to demonstrate here is a technique for keeping your own body lists. Yes, this may be a bit redundant and we perhaps sacrifice a bit of efficiency. But we more than make up for that with ease of use. This methodology will allow us to program like we’re used to in Processing, and we can easily keep track of which bodies are which and render them appropriately. Let’s consider the structure of the following Processing sketch:
Figure 5.3
This looks like any ol’ Processing sketch. We have a main tab called “Boxes” and a “Boundary” and a “Box” tab. Let’s think about the Box tab for a moment. The Box tab is where we will write a simple class to describe a Box object, a rectangular body in our world.
class Box {
float x,y; float w,h;
Box(float x_, float y_) {
x = x_; y = y_;
w = 16; h = 16; } void display() {
fill(175); stroke(0); rectMode(CENTER); rect(x,y,w,h); } }
Let’s write a main tab that creates a new Box whenever the mouse is pressed and stores all the Box objects in an ArrayList. (This is very similar to our approach in the particle system examples from Chapter 4.)
Example 5.1: A comfortable and cozy Processing sketch that needs a little Box2D
ArrayList<Box> boxes; void setup() { size(400,300); boxes = new ArrayList<Box>(); } void draw() { background(255);
if (mousePressed) { Box p = new Box(mouseX,mouseY); boxes.add(p); }
for (Box b: boxes) { b.display(); }
}
Now, here’s our assignment. Take the above example verbatim, but instead of drawing fixed boxes on the screen, draw boxes that experience physics (via Box2D) as soon as they appear.
We’ll need two major steps to accomplish our goal.
This part is not too tough. We saw this already in our discussion of building a Box2D world. This is taken care of for us by the PBox2D helper class. We can create a PBox2D object and initialize it in setup().
PBox2D box2d; void setup() {
box2d = new PBox2D(this); box2d.createWorld();
}
Then in draw(), we need to make sure we call one very important function: step(). Without this function, nothing would ever happen! step() advances the Box2D world a step further in time. Internally, Box2D sweeps through and looks at all of the Bodies and figures out what to do with them. Just calling step() on its own moves the Box2D world forward with default settings; however, it is customizable (and this is documented in the PBox2D source).
As of this moment, the Box class includes variables for location and width and height. What we now want to say is:
“I hereby relinquish the command of this object’s position to Box2D. I no longer need to keep track of anything related to location, velocity, and acceleration. Instead, I only need to keep track of a Box2D body and have faith that Box2D will do the rest.”
class Box {
Body body; float w; float h;
We don’t need (x,y) anymore since, as we’ll see, the body itself will keep track of its location. The body technically could also keep track of the width and height for us, but since Box2D isn’t going to do anything to alter those values over the life of the Box object, we might as well just hold onto them ourselves until it’s time to draw the Box.
Then, in our constructor, in addition to initializing the width and height, we can go ahead and include all of the body and shape code we learned in the previous two sections!
Box() { w = 16; h = 16;
BodyDef bd = new BodyDef(); bd.type = BodyType.DYNAMIC; bd.position.set(box2d.coordPixelsToWorld(mouseX,mouseY)); body = box2d.createBody(bd);
PolygonShape ps = new PolygonShape();
float box2dW = box2d.scalarPixelsToWorld(w/2); float box2dH = box2d.scalarPixelsToWorld(h/2);
ps.setAsBox(box2dW, box2dH); FixtureDef fd = new FixtureDef(); fd.shape = ps; fd.density = 1;
fd.friction = 0.3; fd.restitution = 0.5;
body.createFixture(fd); }
OK, we’re almost there. Before we introduced Box2D, it was easy to draw the Box. The object’s location was stored in variables x and y.
void display() { fill(175); stroke(0); rectMode(CENTER); rect(x,y,w,h); }
But now Box2D manages the object’s motion, so we can no longer use our own variables to display the shape. Not to fear! Our Box object has a reference to the Box2D body associated with it. So all we need to do is politely ask the body, “Pardon me, where are you located?” Since this is a task we’ll need to do quite often, PBox2D includes a helper function: getBodyPixelCoord().
Just knowing the location of a body isn’t enough; we also need to know its angle of rotation.
Once we have the location and angle, it’s easy to display the object using translate() and rotate(). Note, however, that the Box2D coordinate system considers rotation in the opposite direction from Processing, so we need to multiply the angle by -1.
Figure 5.4
void display() {
Vec2 pos = box2d.getBodyPixelCoord(body); float a = body.getAngle();
pushMatrix();
translate(pos.x,pos.y); rotate(-a);
fill(175); stroke(0); rectMode(CENTER); rect(0,0,w,h); popMatrix(); }
In case we want to have objects that can be removed from the Box2D world, it’s also useful to include a function to destroy a body, such as:
void killBody() { box2d.destroyBody(body); }
In this chapter’s code downloads, find the sketch named “box2d_exercise.” Using the methodology outlined in this chapter, add the necessary code to the main and Box tabs to implement Box2D physics. The result should appear as in the screenshot above. Be more creative in how you render the boxes.
In the example we just created, the Box objects appear at the mouse location and fall downwards due to Box2D’s default gravity force. What if we wanted to install some immovable boundaries in the Box2D world that would block the path of the Box objects (as in the illustration below)?
Box2D makes this easy for us by providing a means to lock a body (and any associated shapes) in place. Just set the BodyDef object’s type to STATIC.
BodyDef bd = new BodyDef();
bd.type = BodyType.STATIC;
We can add this feature to our Boxes example by writing a Boundary class and having each boundary create a fixed Box2D body.
Example 5.2: Falling boxes hitting boundaries
class Boundary {
float x,y; float w,h;
Body b; Boundary(float x_,float y_, float w_, float h_) { x = x_; y = y_; w = w_; h = h_;
BodyDef bd = new BodyDef(); bd.position.set(box2d.coordPixelsToWorld(x,y));
bd.type = BodyType.STATIC; b = box2d.createBody(bd); float box2dW = box2d.scalarPixelsToWorld(w/2); float box2dH = box2d.scalarPixelsToWorld(h/2); PolygonShape ps = new PolygonShape();
ps.setAsBox(box2dW, box2dH);
b.createFixture(ps,1); }
void display() { fill(0); stroke(0); rectMode(CENTER); rect(x,y,w,h); } }
If you want a fixed boundary that is a curved surface (as opposed to a polygon), this can be achieved with the shape ChainShape.
The ChainShape class is another shape like PolygonShape or CircleShape, so to include one in our system, we follow the same steps.
The ChainShape object is a series of connected vertices. To create the chain, we must first specify an array of vertices (each as a Vec2 object). For example, if we wanted a straight line from the left-hand side of our window to the right-hand side, we would just need an array of two vertices: (0,150) and (width,150). (Note that if you want to create a loop where the first vertex connects to the last vertex in a loop, you can use the ChainLoop class instead.)
Vec2[] vertices = new Vec2[2];
vertices[0] = box2d.coordPixelsToWorld(0,150);
vertices[1] = box2d.coordPixelsToWorld(width,150);
To create the chain with the vertices, the array is then passed into a function called createChain().
chain.createChain(vertices, vertices.length);
A Shape is not part of Box2D unless it is attached to a body. Even if it is a fixed boundary and never moves, it must still be attached. Just as with other shapes, a ChainShape object can be given properties like restitution and friction with a Fixture.
FixtureDef fd = new FixtureDef();
fd.shape = chain; fd.density = 1; fd.friction = 0.3; fd.restitution = 0.5; body.createFixture(fd);
Now, if we want to include a ChainShape object in our sketch, we can follow the same strategy as we did with a fixed boundary. Let’s write a class called Surface:
Example 5.3: ChainShape with three hard-coded vertices
class Surface { ArrayList<Vec2> surface; Surface() { surface = new ArrayList<Vec2>();
surface.add(new Vec2(0, height/2+50)); surface.add(new Vec2(width/2, height/2+50)); surface.add(new Vec2(width, height/2));
ChainShape chain = new ChainShape();
Vec2[] vertices = new Vec2[surface.size()]; for (int i = 0; i < vertices.length; i++) {
vertices[i] = box2d.coordPixelsToWorld(surface.get(i)); }
chain.createChain(vertices, vertices.length);
BodyDef bd = new BodyDef(); Body body = box2d.world.createBody(bd); body.createFixture(chain, 1);
}
Notice how the above class includes an ArrayList to store a series of Vec2 objects. Even though we fully intend to store the coordinates of the chain in the chain shape itself, we are choosing the ease of redundancy and keeping our own list of those points as well. Later, when we go to draw the Surface object, we don’t have to ask Box2D for the locations of the chain shape’s vertices.
void display() { strokeWeight(1); stroke(0); noFill();
beginShape(); for (Vec2 v: surface) { vertex(v.x,v.y); }
endShape(); } }
What we need in setup() and draw() for the Surface object is quite simple, given that Box2D takes care of all of the physics for us.
PBox2D box2d; Surface surface; void setup() { size(500,300); box2d = new PBox2D(this); box2d.createWorld();
surface = new Surface(); } void draw() { box2d.step(); background(255);
surface.display(); }
Review how we learned to draw a wave pattern in Chapter 3. Create a ChainShape object out of a sine wave. Try using Perlin noise as well.
sine wave
Perlin noise
Figure 5.5
Now that we’ve seen how easy it is to make simple geometric forms in Box2D, let’s imagine that you want to have a more complex form, such as a little alien stick figure.
There are two strategies in Box2D for making forms that are more advanced than a basic circle or square. One is to use a PolygonShape in a different way. In our previous examples, we used PolygonShape to generate a rectangular shape with the setAsBox() function.
This was a good way to start because of the inherent simplicity of working with rectangles. However, a PolygonShape object can also be generated from an array of vectors, which allows you to build a completely custom shape as a series of connected vertices. This works very similarly to the ChainShape class.
Example 5.4: Polygon shapes
Vec2[] vertices = new Vec2[4]; // An array of 4 vectors vertices[0] = box2d.vectorPixelsToWorld(new Vec2(-15, 25)); vertices[1] = box2d.vectorPixelsToWorld(new Vec2(15, 0)); vertices[2] = box2d.vectorPixelsToWorld(new Vec2(20, -15)); vertices[3] = box2d.vectorPixelsToWorld(new Vec2(-10, -10));
PolygonShape ps = new PolygonShape(); ps.set(vertices, vertices.length);
When building your own polygon in Box2D, you must remember two important details.
Figure 5.6
Order of vertices! If you are thinking in terms of pixels (as above) the vertices should be defined in counterclockwise order. (When they are translated to Box2D World vectors, they will actually be in clockwise order since the vertical axis is flipped.)
Convex shapes only! A concave shape is one where the surface curves inward. Convex is the opposite (see illustration below). Note how in a concave shape every internal angle must be 180 degrees or less. Box2D is not capable of handling collisions for concave shapes. If you need a concave shape, you will have to build one out of multiple convex shapes (more about that in a moment).
Figure 5.7: A concave shape can be drawn with multiple convex shapes.
Now, when it comes time to display the shape in Processing, we can no longer just use rect() or ellipse(). Since the shape is built out of custom vertices, we’ll want to use Processing’s beginShape(), endShape(), and vertex() functions. As we saw with the ChainShape, we could choose to store the pixel locations of the vertices in our own ArrayList for drawing. However, it’s also useful to see how we can ask Box2D to report back to use the vertex locations.
void display() { Vec2 pos = box2d.getBodyPixelCoord(body); float a = body.getAngle();
Fixture f = body.getFixtureList();
PolygonShape ps = (PolygonShape) f.getShape(); rectMode(CENTER); pushMatrix(); translate(pos.x,pos.y); rotate(-a); fill(175); stroke(0); beginShape();
for (int i = 0; i < ps.getVertexCount(); i++) { Vec2 v = box2d.vectorWorldToPixels(ps.getVertex(i)); vertex(v.x,v.y); } endShape(CLOSE); popMatrix(); }
Using the PolygonShape class, create your own polygon design (remember, it must be concave). Some possibilities below.
A polygon shape will get us pretty far in Box2D. Nevertheless, the convex shape requirement will severely limit the range of possibilities. The good news is that we can completely eliminate this restriction by creating a single Box2D body out of multiple shapes! Let’s return to our little alien creature and simplify the shape to be a thin rectangle with a circle on top.
How can we build a single body with two shapes? Let’s first review how we built a single body with one shape.
Step 1: Define the body.
Step 2: Create the body.
Step 3: Define the shape.
Step 4: Attach the shape to the body.
Step 5: Finalize the body’s mass.
Attaching more than one shape to a body is as simple as repeating steps 3 and 4 over and over again.
Step 3a: Define shape 1.
Step 4a: Attach shape 1 to the body.
Step 3b: Define shape 2.
Step 4b: Attach shape 2 to the body.
etc. etc. etc.
Let’s see what this would look like with actual Box2D code.
BodyDef bd = new BodyDef(); bd.type = BodyType.DYNAMIC; bd.position.set(box2d.coordPixelsToWorld(center)); body = box2d.createBody(bd);
PolygonShape ps = new PolygonShape(); float box2dW = box2d.scalarPixelsToWorld(w/2); float box2dH = box2d.scalarPixelsToWorld(h/2); sd.setAsBox(box2dW, box2dH);
CircleShape cs = new CircleShape(); cs.m_radius = box2d.scalarPixelsToWorld(r);
body.createFixture(ps,1.0); body.createFixture(cs, 1.0);
The above looks pretty good, but sadly, if we run it, we’ll get the following result:
Figure 5.8
When you attach a shape to a body, by default, the center of the shape will be located at the center of the body. But in our case, if we take the center of the rectangle to be the center of the body, we want the center of the circle to be offset along the y-axis from the body’s center.
Figure 5.9
This is achieved by using the local position of a shape, accessed via a Vec2 variable called m_p.
Vec2 offset = new Vec2(0,-h/2);
offset = box2d.vectorPixelsToWorld(offset);
circle.m_p.set(offset.x,offset.y);
Then, when we go to draw the body, we use both rect() and ellipse() with the circle offset the same way.
Example 5.5: Multiple shapes on one body
void display() { Vec2 pos = box2d.getBodyPixelCoord(body); float a = body.getAngle(); rectMode(CENTER); pushMatrix(); translate(pos.x,pos.y); rotate(-a); fill(175); stroke(0);
rect(0,0,w,h);
ellipse(0,-h/2,r*2,r*2); popMatrix(); }
Finishing off this section, I want to stress the following: the stuff you draw in your Processing window doesn’t magically experience physics simply because we created some Box2D bodies and shapes. These examples work because we very carefully matched how we draw our elements with how we defined the bodies and shapes we put into the Box2D world. If you accidentally draw your shape differently, you won’t get an error, not from Processing or from Box2D. However, your sketch will look odd and the physics won’t work correctly. For example, what if we had written:
when we created the shape, but:
when it came time to display the shape?
The results would look like the image above, where clearly, the collisions are not functioning as expected. This is not because the physics is broken; it’s because we did not communicate properly with Box2D, either when we put stuff in the magic world or queried the world for locations.
Make your own little alien being using multiple shapes attached to a single body. Try using more than one polygon to make a concave shape. Remember, you aren’t limited to using the shape drawing functions in Processing; you can use images, colors, add hair with lines, etc. Think of the Box2D shapes only as skeletons for your creative and fantastical design!
Figure 5.10
Box2D joints allow you to connect one body to another, enabling more advanced simulations of swinging pendulums, elastic bridges, squishy characters, wheels spinning on an axle, etc. There are many different kinds of Box2D joints. In this chapter we’re going to look at three: distance joints, revolute joints, and “mouse” joints.
Let’s begin with a distance joint, a joint that connects two bodies with a fixed length. The joint is attached to each body at a specified anchor point (a point relative to the body’s center). For any Box2D joint, we need to follow these steps. This, of course, is similar to the methodology we used to build bodies and shapes, with some quirks.
Step 1. Make sure you have two bodies ready to go.
Step 2. Define the joint.
Step 3. Configure the joint’s properties (What are the bodies? Where are the anchors? What is its rest length? Is it elastic or rigid?)
Step 4. Create the joint.
Let’s assume we have two Particle objects that each store a reference to a Box2D Body object. We’ll call them particles p1 and p2.
OK, onto Step 2. Let’s define the joint.
Easy, right? Now it’s time to configure the joint. First we tell the joint which two bodies it connects:
Then we set up a rest length. Remember, if our rest length is in pixels, we need to convert it!
A distance joint also includes two optional settings that can make the joint soft, like a spring connection: frequencyHz and dampingRatio.
djd.frequencyHz = ___;
djd.dampingRatio = ___;
Finally, we create the joint.
Box2D won’t keep track of what kind of joint we are making, so we have to cast it as a DistanceJoint upon creation.
We can create Box2D joints anywhere in our Processing sketch. Here’s an example of how we might write a class to describe two Box2D bodies connected with a single joint.
Example 5.6: DistanceJoint
class Pair {
Particle p1; Particle p2;
float len = 32; Pair(float x, float y) {
p1 = new Particle(x,y); p2 = new Particle(x+random(-1,1),y+random(-1,1));
DistanceJointDef djd = new DistanceJointDef(); djd.bodyA = p1.body; djd.bodyB = p2.body; djd.length = box2d.scalarPixelsToWorld(len); djd.frequencyHz = 0; // Try a value less than 5 djd.dampingRatio = 0; // Ranges between 0 and 1
DistanceJoint dj = (DistanceJoint) box2d.world.createJoint(djd); } void display() { Vec2 pos1 = box2d.getBodyPixelCoord(p1.body); Vec2 pos2 = box2d.getBodyPixelCoord(p2.body); stroke(0); line(pos1.x,pos1.y,pos2.x,pos2.y); p1.display(); p2.display(); } }
Create a simulation of a bridge by using distance joints to connect a sequence of circles (or rectangles) as illustrated to the right. Assign a density of zero to lock the endpoints in place. Experiment with different values to make the bridge more or less “springy.” It should also be noted that the joints themselves have no physical geometry, so in order for your bridge not to have holes, spacing between the nodes will be important.
Figure 5.11
Another joint you can create in Box2D is a revolute joint. A revolute joint connects two Box2D bodies at a common anchor point, which can also be referred to as a “hinge.” The joint has an “angle” that describes the relative rotation of each body. To use a revolute joint, we follow the same steps we did with the distance joint.
Let’s assume we have two Box objects, each of which stores a reference to a Box2D body.
Now we want a RevoluteJointDef object.
The most important properties of a revolute joint are the two bodies it connects as well as their mutual anchor point (i.e. where they are connected). They are set with the function initialize().
Notice how the first two arguments specify the bodies and the second point specifies the anchor, which in this case is located at the center of the first body.
An exciting feature of a RevoluteJoint object is that you can motorize it so it spins autonomously. For example:
rjd.enableMotor = true;
rjd.motorSpeed = PI*2;
rjd.maxMotorTorque = 1000.0;
The motor can be enabled and disabled while the program is running.
Finally, the ability for a revolute joint to spin can be constrained between two angles. (By default, it can rotate a full 360 degrees, or TWO_PI radians.)
Let’s take a look at all of these steps together in a class called Windmill, which connects two boxes with a revolute joint. In this case, box1 has a density of zero, so only box2 spins around a fixed point.
Example 5.7: Spinning Windmill
class Windmill {
RevoluteJoint joint; Box box1; Box box2; Windmill(float x, float y) {
box1 = new Box(x,y,120,10,false); box2 = new Box(x,y,10,40,true);
RevoluteJointDef rjd = new RevoluteJointDef();
rjd.initialize(box1.body, box2.body, box1.body.getWorldCenter());
rjd.motorSpeed = PI*2; rjd.maxMotorTorque = 1000.0; rjd.enableMotor = true;
joint = (RevoluteJoint) box2d.world.createJoint(rjd); }
void toggleMotor() { boolean motorstatus = joint.isMotorEnabled(); joint.enableMotor(!motorstatus); }
void display() { box1.display(); box2.display(); } }
Use a revolute joint for the wheels of a car. Use motors so that the car drives autonomously. Try using a chain shape for the road’s surface.
The last joint we’ll look at is a mouse joint. A mouse joint is typically used for moving a body with the mouse. However, it can also be used to drag an object around the screen according to some arbitrary x and y. The joint functions by pulling the body towards a “target” position.
Before we look at the MouseJoint object itself, let’s ask ourselves why we even need it in the first place. If you look at the Box2D documentation, there is a function called setTransform() that specifically “sets the position of the body’s origin and rotation (radians).” If a body has a position, can’t we just assign the body’s position to the mouse?
While this will in fact move the body, it will also have the unfortunate result of breaking the physics. Let’s imagine you built a teleportation machine that allows you to teleport from your bedroom to your kitchen (good for late-night snacking). Now, go ahead and rewrite Newton’s laws of motion to account for the possibility of teleportation. Not so easy, right? Box2D has the same problem. If you manually assign the location of an body, it’s like saying “teleport that body” and Box2D no longer knows how to compute the physics properly. However, Box2D does allow you to tie a rope to yourself and get a friend of yours to stand in the kitchen and drag you there. This is what the MouseJoint does. It’s like a string you attach to a body and pull towards a target.
Let’s look at making this joint, assuming we have a Box object called box. This code will look identical to our distance joint with one small difference.
MouseJointDef md = new MouseJointDef();
md.bodyA = box2d.getGroundBody();
md.bodyB = box.body;
md.maxForce = 5000.0; md.frequencyHz = 5.0; md.dampingRatio = 0.9;
MouseJoint mouseJoint = (MouseJoint) box2d.world.createJoint(md);.
So, what’s this line of code all about?
Well, as we’ve stated, a joint is a connection between two bodies. With a mouse joint, we’re saying that the second body is, well, the ground. Hmm. What the heck is the ground in Box2D? One way to imagine it is to think of the screen as the ground. What we’re doing is making a joint that connects a rectangle drawn on the window with the Processing window itself. And the point in the window to which the connection is tied is a moving target.
Once we have a mouse joint, we’ll want to update the target location continually while the sketch is running.
Vec2 mouseWorld = box2d.coordPixelsToWorld(mouseX,mouseY); mouseJoint.setTarget(mouseWorld);
To make this work in an actual Processing sketch, we’ll want to have the following:
Box class—An object that references a Box2D body.
Spring class—An object that manages the mouse joint that drags the Box object around.
Main tab—Whenever mousePressed() is called, the mouse joint is created; whenever mouseReleased() is called, the mouse joint is destroyed. This allows us to interact with a body only when the mouse is pressed.
Let’s take a look at the main tab. You can find the rest of the code for the Box and Spring classes via the book website.
Example 5.8: MouseJoint demonstration
PBox2D box2d;
Box box;
Spring spring; void setup() { size(400,300); box2d = new PBox2D(this); box2d.createWorld(); box = new Box(width/2,height/2);
spring = new Spring(); } void mousePressed() {
if (box.contains(mouseX, mouseY)) {
spring.bind(mouseX,mouseY,box); } } void mouseReleased() {
spring.destroy(); } void draw() { background(255); box2d.step();
spring.update(mouseX,mouseY); box.display(); spring.display(); }
Use a mouse joint to move a Box2D body around the screen according to an algorithm or input other than the mouse. For example, assign it a location according to Perlin noise or key presses. Or build your own controller using an Arduino.
It’s worth noting that while the technique for dragging an object around using a MouseJoint is useful, Box2D also allows a body to have a KINEMATIC type.
BodyDef bd = new BodyDef();
bd.type = BodyType.KINEMATIC;
Figure 5.12
Kinematic bodies can be controlled by the user by setting their velocity directly. For example, let’s say you want an object to follow a target (like your mouse). You could create a vector that points from a body’s location to a target.
Vec2 pos = body.getWorldCenter(); Vec2 target = box2d.coordPixelsToWorld(mouseX,mouseY);
Vec2 v = target.sub(pos);
Once you have that vector, you could assign it to the body’s velocity so that it moves to the target.
You can also do the same with angular velocity (or leave it alone and allow the physics to take over).
It is important to note that kinematic bodies do not collide with other kinematic or static bodies. In these cases, the mouse joint strategy is preferable.
In Chapter 2, we spent a lot of time thinking about building environments with multiple forces. An object might respond to gravitational attraction, wind, air resistance, etc. Clearly there are forces at work in Box2D as we watch rectangles and circles spin and fly around the screen. But so far, we’ve only had the ability to manipulate a single global force—gravity.
box2d = new PBox2D(this); box2d.createWorld();
box2d.setGravity(0, -20);
If we want to use any of our Chapter 2 techniques with Box2D, we need look no further than our trusty applyForce() function. In our Mover class we wrote a function called applyForce(), which received a vector, divided it by mass, and accumulated it into the mover’s acceleration. With Box2D, the same function exists, but we don’t need to write it ourselves. Instead, we can call the Box2D body’s applyForce() function!
class Box { Body body; void applyForce(Vec2 force) { Vec2 pos = body.getWorldCenter();
body.applyForce(force, pos); } }
Here we are receiving a force vector and passing it along to the Box2D Body object. The key difference is that Box2D is a more sophisticated engine than our examples from Chapter 2. Our earlier forces examples assumed that the force was always applied at the mover’s center. Here we get to specify exactly where on the body the force is applied. In the above code, we’re just applying it to the center by asking the body for its center, but this could be adjusted.
Let’s say we wanted to use a gravitational attraction force. Remember the code we wrote back in Chapter 2 in our Attractor class?
PVector attract(Mover m) { PVector force = PVector.sub(location,m.location); float distance = force.mag(); distance = constrain(distance,5.0,25.0); force.normalize(); float strength = (g * mass * m.mass) / (distance * distance); force.mult(strength); return force; }
We can rewrite the exact same function using Vec2 instead and use it in a Box2D example. Note how for our force calculation we can stay completely within the Box2D coordinate system and never think about pixels.
Vec2 attract(Mover m) {
Vec2 pos = body.getWorldCenter(); Vec2 moverPos = m.body.getWorldCenter(); Vec2 force = pos.sub(moverPos); float distance = force.length(); distance = constrain(distance,1,5); force.normalize(); float strength = (G * 1 * m.body.m_mass) / (distance * distance);
force.mulLocal(strength); return force; }
Now we’ve seen a survey of what can be done with Box2D. Since this book is not called “The Nature of Box2D,” it’s not my intention to cover every single possible feature of the Box2D engine. But hopefully by looking at the basics of building bodies, shapes, and joints, when it comes time to use an aspect of Box2D that we haven’t covered, the skills we’ve gained here will make that process considerably less painful. There is one more feature of Box2D, however, that I do think is worth covering.
Let’s ask a question you’ve likely been wondering about:
What if I want something to happen when two Box2D bodies collide? I mean, don’t get me wrong—I’m thrilled that Box2D is handling all of the collisions for me. But if it takes care of everything for me, how am I supposed to know when things are happening?
Your first thoughts when considering an event during which two objects collide might be as follows: Well, if I know all the bodies in the system, and I know where they are all located, then I can just start comparing the locations, see which ones are intersecting, and determine that they’ve collided. That’s a nice thought, but hello??!? The whole point of using Box2D is that Box2D will take care of that for us. If we are going to do the geometry to test for intersection ourselves, then all we’re doing is re-implementing Box2D.
Of course, Box2D has thought of this problem before. It’s a pretty common one. After all, if you intend to make a bajillion dollars selling some game called Angry Birds, you better well make something happen when an ill-tempered pigeon smashes into a cardboard box. Box2D alerts you to moments of collision with something called an “interface.” It’s worth learning about interfaces, an advanced feature of object-oriented programming. You can take a look at the Java Interface Tutorial as well as the JBox2D ContactListener class. (I have also included an example on the website that demonstrates using the interface directly.)
If you are using PBox2D, as we are here, you don’t need to implement your own interface. Detecting collision events is done through a callback function. Much like mousePressed() is triggered when the mouse is pressed, beginContact() is triggered when two shapes collide.
void mousePressed() { println("The mouse was pressed!"); }
void beginContact(Contact cp) { println("Something collided in the Box2D World!"); }
Before the above will work, you must first let PBox2D know you intend to listen for collisions. (This allows the library to reduce overhead by default; it won’t bother listening if it doesn’t have to.)
void setup() { box2d = new PBox2D(this); box2d.createWorld();
box2d.listenForCollisions(); }
There are four collision event callbacks.
beginContact() —Triggered whenever two shapes first come into contact with each other.
endContact() —Triggered over and over again as long as shapes continue to be in contact.
preSolve() —Triggered before Box2D solves the outcome of the collision, i.e. before beginContact(). It can be used to disable a collision if necessary.
postSolve() —Triggered after the outcome of the collision is solved. It allows you to gather information about that “solution” (known as an “impulse”).
The details behind preSolve() and postSolve() are beyond the scope of this book; however, we are going to take a close look at beginContact(), which will cover the majority of conventional cases in which you want to trigger an action when a collision occurs. endContact() works identically to beginContact(), the only difference being that it occurs the moment bodies separate.
beginContact() is written as follows:
Notice that the function above includes an argument of type Contact. A Contact object includes all the data associated with a collision—the geometry and the forces. Let’s say we have a Processing sketch with Particle objects that store a reference to a Box2D body. Here is the process we are going to follow.
Now, what has collided here? Is it the bodies? The shapes? The fixtures? Box2D detects collisions between shapes; after all, these are the entities that have geometry. However, because shapes are attached to bodies with fixtures, what we really want to ask Box2D is: “Could you tell me which two fixtures collided?”
OK, this is the harder part. After all, Box2D doesn’t know anything about our code. Sure, it is doing all sorts of stuff to keep track of the relationships between shapes and bodies and joints, but it’s up to us to manage our own objects and their associations with Box2D elements. Luckily for us, Box2D provides a function that allows us to attach our Processing object (a Particle) to a Box2D body via the setUserData() and getUserData() methods.
Let’s take a look at the constructor in our Particle class where the body is made. We are expanding our body-making procedure by one line of code, noted below.
class Particle { Body body; Particle(float x, float y, float r) { BodyDef bd = new BodyDef(); bd.position = box2d.coordPixelsToWorld(x, y); bd.type = BodyType.DYNAMIC; body = box2d.createBody(bd); CircleShape cs = new CircleShape(); cs.m_radius = box2d.scalarPixelsToWorld(r); body.createFixture(fd,1);
body.setUserData(this); }
Later, in our addContact() function, once we know the body, we can access the Particle object with getUserData().
Example 5.9: CollisionListening
void beginContact(Contact cp) { Fixture f1 = cp.getFixtureA(); Fixture f2 = cp.getFixtureB(); Body b1 = f1.getBody(); Body b2 = f2.getBody();
Particle p1 = (Particle) b1.getUserData(); Particle p2 = (Particle) b2.getUserData();
p1.change(); p2.change();
}
Now, in many cases, we cannot assume that the objects that collided are all Particle objects. We might have a sketch with Boundary objects, Particle objects, Box objects, etc. So often we will have to query the “user data” and find out what kind of object it is before proceeding.
Object o1 = b1.getUserData();
if (o1.getClass() == Particle.class) { Particle p = (Particle) o1; p.change(); }
It should also be noted that due to how Box2D triggers these callbacks, you cannot create or destroy Box2D entities inside of beginContact(), endContact(), preSolve(), or postSolve(). If you want to do this, you’ll need to set a variable inside an object (something like: markForDeletion = true), which you check during draw() and then delete objects.
Consider how polymorphism could help in the above case. Build an example in which several classes extend one class and therefore eliminate the need for such testing.
Has the following ever happened to you? You’re at a fancy cocktail party regaling your friends with tall tales of software physics simulations. Someone pipes up: “Enchanting! But what integration method are you using?” “What?!” you think to yourself. “Integration?”
Maybe you’ve heard the term before. Along with “differentiation,” it’s one of the two main operations in calculus. Right, calculus. The good news is, we’ve gotten through about 90% of the material in this book related to physics simulation and we haven’t really needed to dive into calculus. But as we’re coming close to finishing this topic, it’s worth taking a moment to examine the calculus behind what we have been doing and how it relates to the methodology in certain physics libraries (like Box2D and the upcoming toxiclibs).
Let’s begin by answering the question: “What does integration have to do with location, velocity, and acceleration?” Well, first let’s define differentiation, the process of finding a “derivative.” The derivative of a function is a measure of how a function changes over time. Consider location and its derivative. Location is a point in space, while velocity is change in location over time. Therefore, velocity can be described as the “derivative” of location. What is acceleration? The change in velocity over time—i.e. the “derivative” of velocity.
Now that we understand the derivative (differentiation), we can define the integral (integration) as the inverse of the derivative. In other words, the integral of an object’s velocity over time tells us the object’s new location when that time period ends. Location is the integral of velocity, and velocity is the integral of acceleration. Since our physics simulation is founded upon the process of calculating acceleration based on forces, we need integration to figure out where the object is after a certain period of time (like one frame of animation!)
So we’ve been doing integration all along! It looks like this:
The above methodology is known as Euler integration (named for the mathematician Leonhard Euler, pronounced “Oiler”) or the Euler method. It’s essentially the simplest form of integration and very easy to implement in our code (see the two lines above!) However, it is not necessarily the most efficient form, nor is it close to being the most accurate. Why is Euler inaccurate? Let’s think about it this way. When you drive a car down the road pressing the gas pedal with your foot and accelerating, does the car sit in one location at time equals one second, then disappear and suddenly reappear in a new location at time equals two seconds, and do the same thing for three seconds, and four, and five? No, of course not. The car moves continuously down the road. But what’s happening in our Processing sketch? A circle is at one location at frame 0, another at frame 1, another at frame 2. Sure, at thirty frames per second, we’re seeing the illusion of motion. But we only calculate a new location every N units of time, whereas the real world is perfectly continuous. This results in some inaccuracies, as shown in the diagram below:
Figure 5.13
The “real world” is the curve; Euler simulation is the series of line segments.
One option to improve on Euler is to use smaller timesteps—instead of once per frame, we could recalculate an object’s location twenty times per frame. But this isn’t practical; our sketch would then run too slowly.
I still believe that Euler is the best method for learning the basics, and it’s also perfectly adequate for most of the projects we might make in Processing. Anything we lose in efficiency or inaccuracy we make up in ease of use and understandability. For better accuracy, Box2D uses something called symplectic Euler or semi-explicit Euler, a slight modification of Euler.
There is also an integration method called Runge-Kutta (named for German mathematicians C. Runge and M. W. Kutta), which is used in some physics engines.
A very popular integration method that our next physics library uses is known as “Verlet integration.” A simple way to describe Verlet integration is to think of our typical motion algorithm without velocity. After all, we don’t really need to store the velocity. If we always know where an object was at one point in time and where it is now, we can extrapolate its velocity. Verlet integration does precisely this, though instead of having a variable for velocity, it calculates velocity while the program is running. Verlet integration is particularly well suited for particle systems, especially particle systems with spring connections between the particles. We don’t need to worry about the details because toxiclibs, as we’ll see below, takes care of them for us. However, if you are interested, here is the seminal paper on Verlet physics, from which just about every Verlet computer graphics simulation is derived: "Advanced Character Physics". And of course, you can find out more about Verlet integration from Wikipedia.
From toxiclibs.org:
“toxiclibs is an independent, open source library collection for computational design tasks with Java & Processing developed by Karsten “toxi” Schmidt (thus far). The classes are purposefully kept fairly generic in order to maximize re-use in different contexts ranging from generative design, animation, interaction/interface design, data visualization to architecture and digital fabrication, use as teaching tool and more.”
In other words, we should thank our lucky stars for toxiclibs. We are only going to focus on a few examples related to Verlet physics, but toxiclibs includes a suite of other wonderful packages that help with audio, color, geometry, and more. In particular, if you are looking to work with form and fabrication in Processing, take a look at the geometry package. Demos can be found at Open Processing.
We should note that toxiclibs was designed specifically for use with Processing. This is great news. The trouble we had with making Box2D work in Processing (multiple coordinate systems, Box2D vs. JBox2D vs. PBox2D) is not an issue here. toxiclibs is a library that you just download, stick in your libraries folder, and use. And the coordinate system that we’ll use for the physics engine is the coordinate system of Processing, so no translating back and forth. In addition, toxiclibs is not limited to a 2D world; all of the physics simulations and functions work in both two and three dimensions. So how do you decide which library you should use? Box2D or toxiclibs? If you fall into one of the following two categories, your decision is a bit easier:
1. My project involves collisions. I have circles, squares, and other strangely shaped objects that knock each other around and bounce off each other.
In this case, you are going to need Box2D. toxiclibs does not handle collisions.
2. My project involves lots of particles flying around the screen. Sometimes they attract each other. Sometimes they repel each other. And sometimes they are connected with springs.
In this case, toxiclibs is likely your best choice. It is simpler to use than Box2D and particularly well suited to connected systems of particles. toxiclibs is also very high performance, due to the speed of the Verlet integration algorithm (not to mention the fact that the program gets to ignore all of the collision geometry).
Here is a little chart that covers some of the features for each physics library.
Everything you need to download and install toxiclibs can be found at:
When you download the library, you’ll notice that it comes with eight modules (i.e. sub-folders), each a library in its own right. For the examples in this chapter, you will only need “verletphysics” and “toxiclibscore”; however, I recommend you take a look at and consider using all of the modules!
Once you have the library installed to your Processing library folder, you are ready to start looking at the following examples.
We spent a lot of time working through the core elements of a Box2D world: world, body, shape, joint. This gives us a head start on understanding toxiclibs, since it follows a similar structure.
Here we go again. Remember all that time we spent learning the ins and outs of the PVector class? Then remember how when we got to Box2D, we had to translate all those concepts to a Box2D vector class: Vec2? Well, it’s time to do it again. toxiclibs also includes its own vector classes, one for two dimensions and one for three: Vec2D and Vec3D.
Again, toxiclibs vectors are the same conceptually, but we need to learn a bit of new syntax. You can find all of the documentation for these vector classes here:
And let’s just review some of the basic vector math operations with PVector translated to Vec2D (we’re sticking with 2D for simplicity’s sake).
The first thing we need to do to create a toxiclibs physics world in our examples is import the library itself.
import toxi.physics2d.*; import toxi.physics2d.behaviors.*; import toxi.geom.*;
Then we’ll need a reference to our physics world, a VerletPhysics or VerletPhysics2D object (depending on whether we are working in two or three dimensions). The examples in this chapter will operate in 2D only for simplicity, but they could easily be extended into 3D (and 3D versions are available with the chapter download).
VerletPhysics2D physics; void setup() {
physics=new VerletPhysics2D();
Once you have your VerletPhysics object, you can set some global properties for your world. For example, if you want it to have hard boundaries past which objects cannot travel, you can set its limits:
In addition, you can add gravity to the physics world with a GravityBehavior object. A gravity behavior requires a vector—how strong and in what direction is the gravity?
Finally, in order to calculate the physics of the world and move the objects in the world, we have to call update(). Typically this would happen once per frame in draw().
In the Box2D examples, we saw how we can create our own class (called, say, Particle) and include a reference to a Box2D body.
This technique is somewhat redundant since Box2D itself keeps track of all of the bodies in its world. However, it allows us to manage which body is which (and therefore how each body is drawn) without having to rely on iterating through Box2D’s internal lists.
Let’s look at how we might take the same approach with the class VerletParticle2D in toxiclibs. We want to make our own Particle class so that we can draw our particles a certain way and include any custom properties. We’d probably write our code as follows:
class Particle {
VerletParticle2D p; Particle(Vec2D pos) {
p = new VerletParticle2D(pos); } void display() { fill(0,150); stroke(0);
ellipse(p.x,p.y,16,16); } }
Looking at the above, we should first be thrilled to notice that drawing the particle is as simple as grabbing the x and y and using them. No awkward conversions between coordinate systems here since toxiclibs is designed to think in pixels. Second, you might notice that this Particle class’s sole purpose is to store a reference to a VerletParticle2D object. This hints at something. Remember our discussion of inheritance back in Chapter 4: Particle Systems? What is a Particle object other than an “augmented” VerletParticle? Why bother making a Verlet particle inside a particle when we could simply extend VerletParticle?
class Particle extends VerletParticle2D { Particle(Vec2D loc) {
super(loc); }
void display() { fill(175); stroke(0);
ellipse(x,y,16,16); } }
Remember our multi-step process with the Box2D examples? We had to ask the body for its location, then convert that location to pixels, then use that location in a drawing function. Now, because we have inherited everything from the VerletParticle class, our only step is to draw the shape at x and y!
Incidentally, it’s interesting to note that the VerletParticle2D class is a subclass of Vec2D. So in addition to inheriting everything from VerletParticle2D, our Particle class actually has all of the Vec2D functions available as well.
We can now create particles anywhere within our sketch.
Particle p1 = new Particle(new Vec2D(100,20)); Particle p2 = new Particle(new Vec2D(100,180));
Just making a particle isn’t enough, however. We have to make sure we tell our physics world about them with the addParticle() function.
If you look at the toxiclibs documentation, you’ll see that the addParticle() expects a VerletParticle2D object.
addParticle(VerletParticle2D particle)
And how can we then pass into the function our own Particle object? Remember that other tenet of object-oriented programming—polymorphism? Here, because our Particle class extends VerletParticle2D, we can choose to treat our particle in two different ways—as a Particle or as a VerletParticle2D. This is an incredibly powerful feature of object-oriented programming. If we build our custom classes based on classes from toxiclibs, we can use our objects in conjunction with all of the functions toxiclibs has to offer.
In addition to the VerletParticle class, toxiclibs has a set of classes that allow you to connect particles with spring forces. There are three types of springs in toxiclibs:
VerletSpring: This class creates a springy connection between two particles in space. A spring’s properties can be configured in such a way as to create a stiff stick-like connection or a highly elastic stretchy connection. A particle can also be locked so that only one end of the spring can move.
VerletConstrainedSpring: A VerletConstrainedSpring object is a spring whose maximum distance can be limited. This can help the whole spring system achieve better stability.
VerletMinDistanceSpring: A VerletMinDistanceSpring object is a spring that only enforces its rest length if the current distance is less than its rest length. This is handy if you want to ensure objects are at least a certain distance from each other, but don’t care if the distance is bigger than the enforced minimum.
The inheritance and polymorphism technique we employed in the previous section also proves to be useful when creating springs. A spring expects two particles when it is created. And again, because our Particle class extends VerletParticle, a VerletSpring object will accept our Particle objects passed into the constructor. Let’s take a look at some example code that assumes the existence of our two previous particles p1 and p2 and creates a connection between them with a given rest length and strength.
float len = 80;
float strength = 0.01; VerletSpring2D spring=new VerletSpring2D(p1,p2,len,strength);
Just as with particles, in order for the connection to actually be part of the physics world, we need to explicitly add it.
One thing we saw with Box2D is that the physics simulation broke down when we overrode it and manually set the location of a body. With toxiclibs, we don’t have this problem. If we want to move the location of a particle, we can simply set its x and y location manually. However, before we do so, it’s generally a good idea to call the lock() function.
lock() is typically used to lock a particle in place and is identical to setting a Box2D body’s density to 0. However, here we are going to show how to lock a particle temporarily, move it, and then unlock it so that it continues to move according to the physics simulation. Let’s say you want to move a given particle whenever you click the mouse.
if (mousePressed) {
p2.lock(); p2.x = mouseX; p2.y = mouseY; p2.unlock();
}
And now we’re ready to put all of these elements together in a simple example that connects two particles with a spring. One particle is locked in place, and the other can be moved by dragging the mouse. Note that this example is virtually identical to Example 3.11.
Example 5.10: Simple Spring with toxiclibs
import toxi.physics2d.*; import toxi.physics2d.behaviors.*; import toxi.geom.*; VerletPhysics2D physics; Particle p1; Particle p2; void setup() { size(640,360);
physics=new VerletPhysics2D(); physics.addBehavior(new GravityBehavior2D(new Vec2D(0,0.5))); physics.setWorldBounds(new Rect(0,0,width,height));
p1 = new Particle(new Vec2D(100,20)); p2 = new Particle(new Vec2D(100,180));
p1.lock();
VerletSpring2D spring=new VerletSpring2D(p1,p2,80,0.01);
physics.addParticle(p1); physics.addParticle(p2); physics.addSpring(spring); } void draw() {
physics.update(); background(255);
line(p1.x,p1.y,p2.x,p2.y); p1.display(); p2.display(); if (mousePressed) {
p2.lock(); p2.x = mouseX; p2.y = mouseY; p2.unlock();
} }
class Particle extends VerletParticle2D { Particle(Vec2D loc) { super(loc); } void display() { fill(175); stroke(0); ellipse(x,y,16,16); } }
The above example, two particles connected with a single spring, is the core building block for what toxiclibs’ physics is particularly well suited for: soft body simulations. For example, a string can be simulated by connecting a line of particles with springs. A blanket can be simulated by connecting a grid of particles with springs. And a cute, cuddly, squishy cartoon character can be simulated by a custom layout of particles connected with springs.
Figure 5.14
Let’s begin by simulating a “soft pendulum”—a bob hanging from a string, instead of a rigid arm like we had in Chapter 3. Let’s use the "string" in Figure 5.14 above as our model.
First, we’ll need a list of particles (let’s use the same Particle class we built in the previous example).
Now, let’s say we want to have 20 particles, all spaced 10 pixels apart.
Figure 5.15
We can loop from i equals 0 all the way up to 20, with each particle’s y location set to i * 10 so that the first particle is at (0,10), the second at (0,20), the third at (0,30), etc.
for(int i=0; i < numPoints; i++) {
Particle particle=new Particle(i*len,10);
physics.addParticle(particle);
particles.add(particle); }
Even though it’s a bit redundant, we’re going to add the particle to both the toxiclibs physics world and to our own list. In case we eventually have multiple strings, this will allow us to know which particles are connected to which strings.
Now for the fun part: It’s time to connect all the particles. Particle 1 will be connected to particle 0, particle 2 to particle 1, 3 to 2, 4 to 3, etc.
Figure 5.16
In other words, particle i needs to be connected to particle i-1 (except for when i equals zero).
if (i != 0) {
Particle previous = particles.get(i-1);
VerletSpring2D spring = new VerletSpring2D(particle,previous,len,strength);
physics.addSpring(spring); }
Now, what if we want the string to hang from a fixed point? We can lock one of the particles—the first, the last, the middle one, etc. Here’s how we would access the first particle (in the ArrayList) and lock it.
And if we want to draw all the particles as being connected with a line, along with a circle for the last particle, we can use beginShape(), endShape(), and vertex(), accessing the particle locations from our ArrayList.
Example 5.11: Soft swinging pendulum
stroke(0); noFill(); beginShape(); for (Particle p : particles) {
vertex(p.x,p.y); } endShape(); Particle tail = particles.get(numPoints-1);
tail.display();
The full code available with the chapter download also demonstrates how to drag the tail particle with the mouse.
Have you ever encountered the following scenario?
“I have a whole bunch of stuff I want to draw on the screen and I want all that stuff to be spaced out evenly in a nice, neat, organized manner. Otherwise I have trouble sleeping at night.”
This is not an uncommon problem in computational design. One solution is typically referred to as a “force-directed graph.” A force-directed graph is a visualization of elements—let’s call them “nodes”—in which the positions of those nodes are not manually assigned. Rather, the nodes arrange themselves according to a set of forces. While any forces can be used, a typical example involves spring forces. And so toxiclibs is perfect for this scenario.
How do we implement the above?
First, we’ll need a Node class. This is the easy part; it can extend VerletParticle2D. Really, this is just what we did before, only we’re calling it Node now instead of Particle.
class Node extends VerletParticle2D { Node(Vec2D pos) { super(pos); } void display() { fill(0,150); stroke(0); ellipse(x,y,16,16); } }
Next we can write a class called Cluster, which will describe a list of nodes.
class Cluster { ArrayList<Node> nodes;
float diameter; Cluster(int n, float d, Vec2D center) { nodes = new ArrayList<Node>(); diameter = d; for (int i = 0; i < n; i++) {
nodes.add(new Node(center.add(Vec2D.randomVector()))); } }
Let’s assume we added a display() function to draw all the nodes in the cluster and created a Cluster object in setup() and displayed it in draw(). If we ran the sketch as is, nothing would happen. Why? Because we forgot the whole force-directed graph part! We need to connect every single node to every other node with a force. But what exactly do we mean by that? Let’s assume we have four Node objects: 0, 1, 2 and 3. Here are our connections:
0 connected to 1
0 connected to 2
0 connected to 3
1 connected to 2
1 connected to 3
2 connected to 3
Notice two important details about our connection list.
No node is connected to itself. We don’t have 0 connected to 0 or 1 connected to 1.
We don’t need to repeat connections in reverse. In other words, if we’ve already said 0 is connected to 1, we don’t need to say 1 is connected to 0 because, well, it already is!
So how do we write code to make these connections for N number of nodes?
Look at the left column. It reads: 000 11 22. So we know we need to access each node in the list from 0 to N-1.
Now, we know we need to connect node 0 to nodes 1,2,3. For node 1: 2,3. For node 2: 3. So for every node i, we must loop from i+1 until the end of the list.
for (int j = i+1; j < nodes.size(); j++) { VerletParticle2D nj = nodes.get(j);
With every two Nodes we find, all we have to do then is make a spring.
physics.addSpring(new VerletSpring2D(ni,nj,diameter,0.01)); } }
Assuming those connections are made in the Cluster constructor, we can now create a cluster in our main tab and see the results!
import toxi.geom.*; import toxi.physics2d.*; VerletPhysics2D physics; Cluster cluster; void setup() { size(300,300); physics=new VerletPhysics2D();
cluster = new Cluster(8,100,new Vec2D(width/2,height/2)); } void draw() { physics.update(); background(255);
cluster.display(); }
Use the Cluster structure as a skeleton for a cute, cuddly, squishy creature (à la “Nokia Friends”). Add gravity and also allow the creature to be dragged with the mouse.
When we looked at adding an attraction force to Box2D, we found that the Box2D Body class included an applyForce() function. All we needed to do was calculate the attraction force (Force = G * mass1 * mass2 / distance squared) as a vector and apply it to the body. toxiclibs VerletParticle class also includes a function called addForce() that we can use to apply any calculated force to a particle.
However, toxiclibs also takes this idea one step further by allowing us to attach some common forces (let’s call them “behaviors”) to particles, calculating them and applying them for us! For example, if we attach an AttractionBehavior object to a particle, then all other particles in the physics world will be attracted to that particle.
Let’s say we have a Particle class (that extends VerletParticle).
Once we’ve made a Particle object, we can create an AttractionBehavior object associated with that particle.
float distance = 20; float strength = 0.1; AttractionBehavior behavior = new AttractionBehavior(p, distance, strength);
Notice how the behavior is created with two parameters—distance and strength. The distance specifies the range within which the behavior will be applied. For example, in the above scenario, only other particles within twenty pixels will feel the attraction force. The strength, of course, specifies how strong the force is.
Finally, in order for the force to be activated, the behavior needs to be added to the physics world.
This means everything that lives in the physics simulation will always be attracted to that particle, as long as it is within the distance threshold.
Even though toxiclibs does not handle collisions, you can create a collision-like effect by adding a repulsive behavior to each and every particle (so that every particle repels every other particle). Let’s look at how we might modify our Particle class to do this.
class Particle extends VerletParticle2D {
float r; Particle (Vec2D loc) { super(loc); r = 4;
physics.addBehavior(new AttractionBehavior(this, r*4, -1)); } void display () { fill (255); stroke (255); ellipse (x, y, r*2, r*2); } }
We could now recreate our attraction example by having a single Attractor object that exerts an attraction behavior over the entire window.
Example 5.13: Attraction/Repulsion
class Attractor extends VerletParticle2D { float r; Attractor (Vec2D loc) { super (loc); r = 24;
physics.addBehavior(new AttractionBehavior(this, width, 0.1)); } void display () { fill(0); ellipse (x, y, r*2, r*2); } }
Create an object that both attracts and repels. What if it attracts any particle that is far away but repels those particles at a short distance?
Step 5 Exercise:
Take your system of creatures from Step 4 and use a physics engine to drive their motion and behaviors. Some possibilities:
Use Box2D to allow collisions between creatures. Consider triggering events when creatures collide.
Use Box2D to augment the design of your creatures. Build a skeleton with distance joints or make appendages with revolute joints.
Use toxiclibs to augment the design of your creature. Use a chain of toxiclibs particles for tentacles or a mesh of springs as a skeleton.
Use toxiclibs to add attraction and repulsion behaviors to your creatures.
Use spring (or joint) connections between objects to control their interactions. Create and delete these springs on the fly. Consider making these connections visible or invisible to the viewer. | http://natureofcode.com/book/chapter-5-physics-libraries/ | CC-MAIN-2014-52 | refinedweb | 14,649 | 65.12 |
Requirement:
I have a Doc Lib where I have some Metadata fields. There is one field called “My Choice” which is a Choice type field with 3 values – “Choice1”, “Choice2” and “Choice3”. By Default the selection is “Choice2”. Now there is another field called “My Value” of Text Type. My requirement is, if user selects Choice1 in the My Choice field, then the My Value field cannot remain blank. This is not possible OOB, but can be done using a custom ItemUpdating event handler.
To start with create a Class Library project in VS 2005. Add reference of Windows SharePoint Services namespace. I named it as ValidateOnSave. Here is the code:
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;
namespace ValidateOnSave
{
public class ValidateOnSave : SPItemEventReceiver
{
public override void ItemUpdating(SPItemEventProperties properties)
{
SPWeb site = properties.OpenWeb();
Guid ListID = properties.ListId;
string strListID = ListID.ToString();
if (strListID == "241fd82c-d67b-44aa-abb2-409df8c9942e")
{
int ListItemID = properties.ListItemId;
SPListItem newListItem = site.Lists[ListID].GetItemById(ListItemID);
string myChoice = properties.AfterProperties["My Choice"].ToString();
string myValue = properties.AfterProperties["My Value"].ToString();
if (myChoice == "Choice1" && myValue == "")
{
properties.Cancel = true;
properties.ErrorMessage = "Please insert a value in My Value field";
}
}
}
}
}
Now create a folder within the VS project called ValidateOnSave. Add following 2 XML files there:
feature.xml:
<?xml version="1.0" encoding="utf-8" ?>
<Feature Id="3BA74762-9CE3-4de3-A172-A4054FF9D2E3"
Title="Validate user input on save"
Description="This feature is used to validate user input on save "
Scope="Web"
xmlns="">
<ElementManifests>
<ElementManifest Location="elements.xml" />
</ElementManifests>
</Feature>
elements.xml:
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="">
<Receivers ListTemplateId="101">
<Receiver>
<Name>ValidateOnSave</Name>
<Type>ItemUpdating</Type>
<SequenceNumber>10001</SequenceNumber>
<Assembly>ValidateOnSave, Version=1.0.0.0, Culture=neutral, PublickeyToken=e3ad17290add8aac</Assembly>
<Class>ValidateOnSave.ValidateOnSave</Class>
</Receiver>
</Receivers>
</Elements>
Add another xml file called manifest.xml file at the root of the project:
<?xml version="1.0" encoding="utf-8" ?>
<Solution xmlns="" SolutionId="6DDC0D86-F71B-4164-970B-E56EC3146901">
<FeatureManifests>
<FeatureManifest Location="ValidateOnSave\feature.xml"/>
</FeatureManifests>
<Assemblies>
<Assembly DeploymentTarget="GlobalAssemblyCache" Location="ValidateOnSave.dll">
</Assembly>
</Assemblies>
</Solution>
Add a text file at the root of the project and rename it as cab.ddf. Here is the content:
;** ValidateOnSave.wsp **
.OPTION EXPLICIT
.Set CabinetNameTemplate=ValidateOnSave.wsp
.Set DiskDirectoryTemplate=CDROM
.Set CompressionType=MSZIP
.Set UniqueFiles="ON"
.Set Cabinet=on
.Set DiskDirectory1=Package
;**************************************************
manifest.xml manifest.xml
ValidateOnSave\elements.xml ValidateOnSave\elements.xml
ValidateOnSave\feature.xml ValidateOnSave\feature.xml
bin\debug\ValidateOnSave.dll ValidateOnSave.dll
Add another text file at the root of the project and rename it as installer.bat. Here is the content:
makecab /f cab.ddf
Here is the screenshot of the Solution Explorer
Now sign the assembly and build the solution.
Now you need a Windows Utility called MakeCab.exe. If you haven’t it added it in system path, then open the project in Windows explorer and copy the MakeCab.exe to the root of the project.
Now double-click on the installer.bat and you will find a folder called Package and ValidateOnSave.wsp under it.
Hi there,
I have to build a event hander that saves the URL to a list after the user clicks on the hyperlink. Its going to be used to track click thros. What would be the easiest way to accomplish this? Im fairly new to c# so would appreciate any help.
Hi, thanks for the interesting tutorial.
Do you know how I can create a concatenated string string derived from the Sharepoint record in the document library (document name)would read:
eg:
0999 – Supplier Quotation (Furniture) Steve Smith QJD615 V3.0
Any suggestions would be greatly appreciated.
Regards
Gary
Hi Pranab,
i am facing one problem, i want to update one custom column value based on status column value e.g. if status = final the custom column value update.
for this i used itemupdating event and in this i used string str1= properties.afterproperties["Status"].tostring();
if(str1=="Final")
it will thrown and null exception error.
please suggest some way to update column value
Vishal,
Go to the List settings page of List/Doc Lib and copy the ID from the URL. Change %7B and %7D to { and } and %2D to -.
Hi Pranab,
Can you please tell me from where i will get the value of strListID == "241fd82c-d67b-44aa-abb2-409df8c9942e
I tried to follow your steps but in the end I do not see any folder called Package and ValidateOnSave.wsp. Any help with this?
thanks a lot.
when u r uddating item u won’t be able to see the Drop Down selected value(The changed one) it will take the value which was present there , so kindly show me how to do that
hi
do u know if this can be implemented as webpart?
Hi Pranab,
I am working in cimcon software as an module leader in .Net and Sharepoint area.
I want to know that how can we give multiple receivers in one Elements.xml ?
I hopw for your kind co-operation.
Thanks,
Ankit
Just a tip, you’d be better off putting a FeatureReceiver on your feature so you can attach the EventHandler to the actual lists EventReceiver collection, rather than doing the ‘if’ statement. This removes overhead of hitting the event handler every time. Also if your site has multiple EventHandlers within your site you’ll really decrease the overhead.
Requirement: I have a Doc Lib where I have some Metadata fields. There is one field called “My Choice
PingBack from | https://blogs.msdn.microsoft.com/pranab/2008/02/28/sharepoint-2007-mosswss-creating-an-itemupdating-event-handler-as-a-feature-and-packaging-it-in-wsp/ | CC-MAIN-2018-17 | refinedweb | 914 | 51.44 |
Help me, I need to find out how to manipulate a 60MB file using C++
I need to cast it to a variable at some point.
Is it even possible?
Help me, I need to find out how to manipulate a 60MB file using C++
I need to cast it to a variable at some point.
Is it even possible?
Don't be silly. The only restrictions are the particular system's performance. Just treat it like any other chunk of memory...
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
>I need to cast it to a variable at some point.
You can open it using the FILE structure functions. You can then read it into memory, manipulate the memory like you would manipulate any other piece of memory and write it back to disk.
If you have problems with a specific part, please post some code.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
btw, is the FILE* pointer a typecast of another type of pointer, like a void* or a char*?
Is there any different if the file is very big or very smal....
If so We will be having a problem in our future programing, because there is no Database file as small as 1 MG and so on...
I think the file that you have has some error. or the program that you write has some error.. if so Can you write it down.
Thnx
C++
The best
I'm not sure I quite follow the preceeding post. My understanding would be that there is no need to read an entire database into memory in order to access it, we just need to read through it in order to find the information we want, then load that into memory and manipulate it. We streamline the process by caching, sorting and re-indexing (in no particullar order or realation).
The database could take up half our hard disk, but with an efficient index we would not have much trouble finding the record(s) we require with reasonable efficiency.
haha, no offense but you guys must be new to binary access...
just learn how to use the fstream and you have already answered your question...
LB0: * Life once school is done
LB1: N <- WakeUp;
LB2: N <- C++_Code;
LB3: N >= Tired : N <- Sleep;
LB4: JMP*-3;
Well, I think he does pose a valid concern, he just didn't ask very well.
There isn't any reason you can't work with a huge file using standard constructs, BUT there are some do's and dont's when it comes to working with a lot of data. There are a few limits to what a machine can do. Specifically, stack size and file pointers. Beyond that, a bigger file means a bigger time hit for non O(1) operations, but there is not reason you can't do it. So, if you plan on making a program scalable to very large files, you should shy away from any kind of recursive algorithm (like most unoptimised quicksorts) because they use stack space, and if N is on the order of thousands or tens of thousands, you will quickly run out of stack space. That would be bad.
Oh yeah, and dynamic memory too. Almost forgot. If you make a char array using new[] and read you entire harddrive into it, you will have problems.
A good idea in this case would be to work with your file a little at a time.
exactly...
thats why i told him to read up on the fstream using BINARY MODE...
you can analyse small amounts of data at a time as much as you want... and you have EXCELLENT control over the file its self...
LB0: * Life once school is done
LB1: N <- WakeUp;
LB2: N <- C++_Code;
LB3: N >= Tired : N <- Sleep;
LB4: JMP*-3;
maybe consider reading and manupulating small chunks of the file at a time, it would probably be faster and more efficient!
>btw, is the FILE* pointer a typecast of another type of pointer, like a void* or a char*?
no actually its structure
heres CodeWarriors FILE
and heres MSVC'sand heres MSVC'sCode:struct _FILE { __file_handle handle; __file_modes mode; __file_state state; #ifndef _No_Disk_File_OS_Support /* mm 981007 */ unsigned char is_dynamically_allocated; /* mm 981007 */ #endif /* not _No_Disk_File_OS_Support */ /* mm 981007 */ unsigned char char_buffer; unsigned char char_buffer_overflow; unsigned char ungetc_buffer[__ungetc_buffer_size]; #ifndef __NO_WIDE_CHAR /* mm 980204 */ wchar_t ungetwc_buffer[__ungetc_buffer_size]; #endif /* not __NO_WIDE_CHAR */ /* mm 980204 */ unsigned long position; unsigned char * buffer; unsigned long buffer_size; unsigned char * buffer_ptr; unsigned long buffer_len; unsigned long buffer_alignment; unsigned long saved_buffer_len; unsigned long buffer_pos; __pos_proc position_proc; __io_proc read_proc; __io_proc write_proc; __close_proc close_proc; __idle_proc idle_proc; #ifndef _No_Disk_File_OS_Support /* mm 981007 */ struct _FILE * next_file_struct; /* mm 981007 */ #endif /* not _No_Disk_File_OS_Support */ /* mm 981007 */ };
Code:struct _iobuf { char *_ptr; int _cnt; char *_base; int _flag; int _file; int _charbuf; int _bufsiz; char *_tmpfname; };
ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.
Create a virtual filesystem to handle large files. A VFS is a class handling all access to your large file (you create a filesystem within a large file, kind of). Now you can indexate your file, have files in that file, get the file table (what data is where in the file). This way, you have great control over the file, and you will only need to read in the part of the file that you need. Combined with a resourcehandler this is a powerful way of handling large data. The resourcehandler see to that data is only loaded once, and then return a pointer to that data whenever needed. This is ideal for textures and sound and gamedata for a game.
Oh, and the VFS uses fstream in binary mode (or any other filehandler really... depending on the kind of data | https://cboard.cprogramming.com/cplusplus-programming/17178-manipulating-60mb-files.html | CC-MAIN-2017-26 | refinedweb | 1,013 | 70.13 |
As usual while waiting for the next release - don't forget to check the nightly builds in the forum.
It's the same, but in most hello world examples, it's the using namespace statement, to show that feature of C++.
lol How come a discussion of Hello World two pages long?
How come a discussion of Hello World two pages long?
int main(int argc, char *argv[])
Concerning the main(), the parameters of the function should be definitely present:Codeint main(int argc, char *argv[])It's much more comprehensive.
int main()
A conforming implementation accepts int main() { /* ... */ }and int main(int argc, char* argv[]) { /* ... */ }
Yes, but remember hello world examples are made for NEWBIES . Teaching them a little won't hurt anyone.
Personally, I prefer Codeint main() when I do not need specific optionsWhat is important is that the main must return type int.
// You may delete the parameter list, if you don't use itint main(int argc, char *argv[])
What do you say about putting an "annoying" comment before the main... ? This way the newbies will not be scared, and this way they learn too... Code// You may delete the parameter list, if you don't use itint main(int argc, char *argv[])
// If you do not use the parameter list, you can use instead:// int main()int main(int argc, char *argv[])
main() | https://forums.codeblocks.org/index.php/topic,887.15.html?PHPSESSID=jjn2o4bd6hojm178u6mqk3mnj3 | CC-MAIN-2021-31 | refinedweb | 228 | 71.85 |
Data fetching patterns are a very important part of every web framework. That is why this part of every web technology has constantly seen improvements and innovations.
Seeing that modern web development paradigms rely a lot on data-fetching functionalities to support features like SSR and CSR, it makes sense to stay up to date with changes in this area of the web.
In this post, I’ll introduce you to the
useSWR hook that was just recently introduced to Next.js to help make data fetching easier. To do that, we’ll build a random user generation site. Not that you need yet another one of these random generation sites, but it has proven to be effective in showing developers how things work. My goal is to ensure that at the end of this post, you’ll know more about the
useSWR hook and consequently improve your Next.js authoring experience with it. Before we dive in, here’s a brief about it.
useSWR
SWR in this context stands for “stale-while-revalidate,” which is a term I imagine Next.js developers are already familiar with. The Next.js team built it to give developers more ways to fetch remote data when working with Next. It is basically a set of React Hooks that provide features like revalidation, mutation, caching, etc. out of the box.
I like to think of it this way: the problem
useSWR solves for me is that it gives me the opportunity to show something to users immediately, and a convenient way to manage their experience while the actual content gets loaded behind the scenes. And it does it likes this:
- When a request is made, it first returns a cached value. Probably something generated in the
getStaticProps()function
- Next, the server will start a revalidation process and fetch the actual data for the page
- Finally, when revalidation is successful, SWR will update the page with actual data
When this is the case, users won’t be stuck looking at loading screens and your site remains fast and performant. Amongst other benefits of SWR, you can use it to retrieve data from any HTTP-supported servers and it has full TypeScript support. Let’s dive in and set up our random user generator app with Next.js and the
useSWR hook.
Setting up a Next.js application
To quickly set up a Next.js application, open a terminal window and run the
create-next-app command like so:
npx create-next-app useswr-user-generator
Follow the prompts to complete the setup process and you should have a
useswr-user-generator app locally. Navigate into the application directory and install SWR with this command:
cd useswr-user-generator # navigate into the project directory npm install swr axios # install swr and axios npm run dev # run the dev server
The commands above will install both the SWR and Axios packages and open the project on your browser at
localhost:3000. If you check, we should have the project live on that port like so:
Great, we’ve successfully set up a Next.js application. Let’s go ahead and build this random generator thing, shall we?
Data fetching with SWR
In the project’s root, create a
components folder. Inside this folder, add a
Users.js file and update it with the snippet below:
// components/Users.js import axios from "axios"; import useSWR from "swr"; import Image from "next/image"; export default function Users() { const address = ``; const fetcher = async (url) => await axios.get(url).then((res) => res.data); const { data, error } = useSWR(address, fetcher); if (error) <p>Loading failed...</p>; if (!data) <h1>Loading...</h1>; return ( <div> <div className="container"> {data && data.results.map((item) => ( <div key={item.cell} className={`user-card ${item.gender}`}> <div> <Image width={100} height={100} src={item.picture.large} <h3>{`${item.name.first} ${item.name.last}`}</h3> </div> <div className="details"> <p>Country: {item.location.country}</p> <p>State: {item.location.state}</p> <p>Email: {item.email}</p> <p>Phone: {item.phone}</p> <p>Age: {item.dob.age}</p> </div> </div> ))} </div> </div> ); }
Let’s walk through this code. In the snippet above, we are using the
useSWR() hook to fetch the data for six users as specified in our API
address variable.
The
useSWR hook accepts two arguments and returns two values (based on the status of the request). It accepts:
- A
key— a string that serves as the unique identifier for the data we are fetching. This is usually the API URL we are calling
- A
fetcher— any asynchronous function that returns the fetched data
It returns:
data— the result of the request (if it was successful)
error— the error that occurred (if there was an error)
At its simplest state, this is how to fetch data with
useSWR:
import useSWR from 'swr' export defaul function Users() { const { data, error } = useSWR('/api/users', fetcher) if (error) return <div>failed to load</div> if (!data) return <div>loading...</div> return <div>hello {data.name}!</div> }
In our case, we saved our API URL in the
address variable and defined our
fetcher function to process the request and return the response.
N.B., the
useSWR docs suggest that using the Next.js native fetch function would work with SWR, but that wasn’t the case for me. I tried it but it didn’t quite work, hence why I’m using Axios instead.
Let’s check back on the browser and see if we get our users. To show the users page, let’s import the
<Users /> component into the
pages/index.js file and update it like so:
// pages/index import Head from "next/head"; import Users from "../components/Users"; export default function Home() { return ( <div> <Head> <title>Create Next App</title> <meta name="description" content="Random user generator" /> <link rel="icon" href="/favicon.ico" /> </Head> <Users /> </div> ); }
You might have noticed that I’m using the Next.js image component to show the user avatars in the
Users.js file. As a result, we need to specify the image domains in the
next.config.js file like this:
module.exports = { reactStrictMode: true, images: { domains: ["randomuser.me"], }, };
Now when you check back on the browser, we should see our users showing up as expected:
There! We have our users. So, our
useSWR hook is working! But is that it? How is this any different from other data fetching methods? Read on…
Why
useSWR?
It’s a likely question to ask at this point. Other than being very declarative, I wouldn’t say this is a huge improvement for me yet. Which probably makes now a good time to talk about a feature of
useSWR I really like (among others):
Pagination
Pagination with
useSWR is a breeze. Let’s exemplify it: imagine that instead of loading just six users, we want the ability to generate more users and add them to this page on demand. This is particularly helpful when you’re building an application where users need to navigate through multiple pages of the same content. We can demonstrate this by adding a Load More button at the end of our users page to generate more users when clicked. Let’s update the index page to pass a count prop to our
<Users /> component:
// pages/index.js import Head from "next/head"; import Users from "../components/Users"; export default function Home() { const [count, setCount ] = useState(0); return ( <div> <Users count={count} setCount={setCount} /> </div> ); }
Next, let’s add a button in the
components/Users.js file to update the count and load more users to the page from our API:
import axios from "axios"; import useSWR from "swr"; import Image from "next/image"; export default function Users({ count, setCount }) { const address = `{count}`; const fetcher = async (url) => await axios.get(url).then((res) => res.data); const { data, error } = useSWR(address, fetcher); if (error) <p>Loading failed...</p>; if (!data) <h1>Loading...</h1>; return ( <div> <div className="container"> // show users </div> <center> <div className="btn"> <button onClick={() => setCount(count + 3)}>Load More Users</button> </div> </center> </div> ); }
Let’s check back on the browser and see if our button is working as expected. When clicked, it should load three more users and render them on the page along with our existing users:
Works like a charm. However, this introduced another problem for us. When the button is clicked, Next.js will make a fresh request to our API to fetch those three more users, which will trigger our loading state. That’s why you notice a flicker on the screen when the button is clicked. Luckily, we have a simple solution for this, much thanks to the SWR cache.
We can pre-generate those users (or a next page in a different context) and render them in a hidden
<div> element. This way, we’ll just display that element when the button is clicked. As a result, the request will be happening before we click the button, not when.
See? No more flickers.
Amongst others, here are some amazing features you get out of the box from SWR:
- Reusable data fetching
- Inbuilt cache
- SSR/ISR/SSG support
- TypeScript support
- Mutations and revalidations
And a lot more performance benefits that we can’t cover within the scope of this post. As a next step, I’d like you to check out the SWR docs for more details on usage and benefits.
Conclusion
In this post, we’ve gone through the basics of the
useSWR hook. We also built a mini random user generator app with Next.js to demonstrate the SWR functionalities. I hope this post has provided you some insight into fetching data in Next.js applications with
useSWR. The live demo of the site we built is hosted here on Netlify. Feel free to play around with it and also fork the codebase from GitHub if you want to tweak things to your taste.. | https://blog.logrocket.com/handling-data-fetching-next-js-useswr/ | CC-MAIN-2022-05 | refinedweb | 1,653 | 64.51 |
#include <LOCA_GlobalData.H>
Collaboration diagram for LOCA::GlobalData:
GlobalData is a container class that holds ref-count pointers to "global" objects, i.e., objects that nearly every LOCA object will need access to. By putting them all in one container class, the container class can be stored in each LOCA object, and if a new global object is needed, it can be added here without modifying the rest of the code. This is an alternative to true global or static objects which are note safe in many contexts. In particular, this approach allows multiple LOCA "invocations" to be in memory at the same time. Note that all data members are declared public. | http://trilinos.sandia.gov/packages/docs/r10.0/packages/nox/doc/html/classLOCA_1_1GlobalData.html | crawl-003 | refinedweb | 112 | 53.21 |
It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
I have a custom field named "Detailed Status" of the type Text Field (< 255 characters) with custom field ID value of 10000. I am writing a JIRA Python script to update the value of this custom field of a number of issues having a particular value for this field.
Lets say I want to update all the issues having the custom field value as "Test Value" with another value called, say, "New Value".
I am just getting started on JIRA Python scripting, so based on what I read on documentation, this is how my code looks like as of now.
from jira.client import JIRA jira_options={'server': ''} jira=JIRA(options=jira_options,basic_auth=('usrname','pwd')) for issue in jira.search_issues(' cf[10000] = "Test Value" ', maxResults=3): issue.update(fields={'cf[10000]': 'New Value'})
This threw the following error
Traceback (most recent call last): File "test.py", line 11, in <module> issue.update(fields={ 'cf[10000]' : 'New Value'}) File "C:\Python27\lib\site-packages\jira\resources.py", line 193, in update super(Issue, self).update(**data) File "C:\Python27\lib\site-packages\jira\resources.py", line 72, in update raise_on_error(r) File "C:\Python27\lib\site-packages\jira\exceptions.py", line 29, in raise_on_ error error = errorMessages[0] IndexError: list index out of range
I tried updating the custom field with its name, but couldnt get it working too. Could you please tell me the correct syntax/way to update a custom field through Jira Python script? Couldnt find any examples in the documentation as well.
Hi,
I haven't used jira python myself but I can't help thinking that python interprets your "cf[10000]" as a reference to the 10000th element of a list.
From what I can gather customfields should be referenced to as "customfield_10000".
See and for more info.
Thanks a lot, Daniel. It was indeed the solution.
This worked
from jira.client import JIRA jira_options={'server': ''} jira=JIRA(options=jira_options,basic_auth=('usrname','pwd')) for issue in jira.search_issues(' cf[10000] ~ "Test Value" '): issue.update(fields={'customfield_10000': 'New value'})
Thanks a lot, Daniel. That was indeed the solution.
This worked.
from jira.client import JIRA jira_options={'server': ''} jira=JIRA(options=jira_options,basic_auth=('rrahman','nike246')) for issue in jira.search_issues(' cf[10000] ~ "Test Value" '): issue.update(fields={'customfield_10000': 'New value'}). | https://community.atlassian.com/t5/Answers-Developer-Questions/Update-custom-field-using-Jira-Python/qaq-p/494623 | CC-MAIN-2019-04 | refinedweb | 403 | 51.55 |
Next article: Friday Q&A 2012-05-04: PLCrashReporter and Unwinding the Stack With DWARF, Part 2
Previous article: Friday Q&A 2012-04-13: Nib Memory Management
Tags: dangerous debugging dwarf fridayqna guest semi-evil
I'm back once again for Friday Q&A. Today I'm going to talk about some work I recently did on PLCrashReporter, adding support for unwinding stack frames on x86_64. PLCrashReporter was originally targeted solely at iOS, where both ARM and x86-32 (the simulator) make crash reporting relatively straight-forward; we can simply walk the stack via the preserved frame pointer. On x86-64, matters are different, leading to the need to implement support for alternative methods for stack unwinding. This work was sponsored by HockeyApp, to support their upcoming release of Mac OS X sandbox-compatible crash reporting. I'll talk about DWARF debugging information, the compact unwind encoding, and stack scanners. I assume at least some knowledge of x86_64 architecture, for simplicity's sake.
Walking the stack with steel-toed boots
On any given architecture, the frame pointer - a reserved general-purpose register set aside specifically for the purpose of keeping track of the function call stack - is optional. The
-fomit-frame-pointer flag to the compiler is commonly used for optimized code, as making an extra register available is a significant win for many applications. The problem is that without a frame pointer, a naive debugger has no reliable way of walking stack frames, making it difficult or impossible to generate a backtrace in case of a crash, or even just for stopping at breakpoints.
A stopgap solution to this problem is a stack scanner, a bit of code that walks the thread's stack in pointer-sized chunks looking for something that seems like a return address and following whatever it finds. In pseudo-code, a simple one looks a bit like this:
void *getNextStackFrame(void **threadSP) { for (void *loc = *threadSP; loc <= *threadSP + sizeof(void *) * 30; ++loc) { if (looksLikeReturnAddress(*loc)) return (*threadSP = loc); } return NULL; }
Unfortunately, a stack scanner will return false positives pretty often, because a lot of things on a function's stack can look like a return address. For example, the following contrived code is guaranteed to make a stack scanner return bogus results on i386:
int main(int argc, char **argv) { pthread_create(NULL, NULL, myCaller, NULL); sleep(10); return 0; } void myCaller(void) { myCallee(^ { printf("I'm a crashing block %p %p %p %p %p %p %p!\n"); }); } void myCallee(dispatch_block_t block) { block(); }
The address of the block is passed on the stack when
myCallee() is called. A stack scanner will find the pushed return address of
myCaller() and return that as the next frame - and then when another frame is requested, it will see the address of the block next and return that. Because the block is a valid symbol in the executable, it looks legitimate.
And don't forget, the secondary thread's stack is often adjacent to the main thread's for reasons of efficiency, so when the scanner reaches the end, it's gonna keep right on going and give you at least some the trace for a thread that's not even involved. The result looks something like this:
Thread 1: 1. __timed_sigwait + ?? 2. _sleep + ?? 3. _main + ?? 4. start + ?? Thread 2 crashed: 1. _printf + ?? 2. ___myCaller_block_invoke_0 + 0 3. myCallee + ?? 4. ___myCaller_block_invoke_0 + 0 5. myCaller + ?? 6. _pthread_start + ?? 7. thread_start + ?? 8. __timed_sigwait + ?? 9. _sleep + ?? 10. _main + ?? 11. start + ??
You can figure out what's going on from this, but that block frame right in the middle of nowhere looks pretty odd, and seeing a bunch of frames from the main thread is confusing. If only there were a better way, especially on
x86_64, where omitting the frame pointer is the default for release builds!
Debugging information
There is a better way. The compiler embeds robust debugging information into an executable or library when it's built, unless asked not to. Even release builds without a frame pointer will often have the debugging information, or some subset of it, available. Any binary that uses C++ or Objective-C is all but guaranteed to have unwinding information, which for the purpose of this discussion is the same thing.
Unwinding information on OS X is stored in two different ways. One is generally conformant to the DWARF-2 specification, with extensions. The other is a "compact unwind encoding", which encodes the same information in the vast majority of cases using about a fifth as much space and requring orders of magnitude less effort to parse. The compiler generates the information necessary to trace function calls in the DWARF format, and OS X's linker automatically synthesizes the faster and smaller compact encoding based on that data.
DWARF
Unwinding information in DWARF is stored as a miniature program which must be executed to determine the correct values for saved registers in a given stack frame, including the return address.
A DWARF program is represented as a series of opcodes which manipulate a CFA (Canonical Frame Address) and register set. Conceptually, DWARF constructs a Call Frame Information table which gives the values of any saved registers at a given PC address; in practice, almost every row in a CFI table will be identical. The CFA opcodes are deltas, giving the changes in the saved registers as they happen rather than listing identical values over and over.
The CFA program is in turn stored in two data structures: Any number of Function Data Entries (FDE), each of which represents the CFA program for a single function in the executable, and some number of Common Information Entries (CIE), which define a set of common data for a set of FDEs. An FDE gives the CFA program for a particular range of the instruction pointer (they're indexed by it, rather than by symbol name), and a CIE gives a set of initial CFA instructions for all the FDEs which use it.
Given this trivial x86_64 function (the hex offsets are not accurate):
0x100000000 pushq %rbp 0x100000001 movq %rsp, %rbp 0x100000004 subq $16, %rsp 0x100000008 movl $0, -4(%rbp) # int a = 0; 0x10000000F leaq L_.str(%rip), %rdi 0x100000016 leaq -4(%rbp), %rsi 0x10000001A xorb %al, %al 0x10000001C callq _scanf # scanf("%d", &a); 0x100000022 movl -4(%rbp), %esi 0x100000025 leaq L_.str1(%rip), %rdi 0x10000002C xorb %al, %al 0x10000002E callq _printf # printf("%d", a); 0x100000034 xorl %eax, %eax 0x100000036 addq $16, %rsp 0x10000003A popq %rbp 0x10000003B ret # return 0;
Assuming that RIP starts at 0x100000000, RSP starts with the value 0x10, and RBP starts with the value 0x00, the raw CFA table for the function looks like this:
RIP RBP RSP 0x100000000 0x00 0x10 0x100000001 0x10 0x10 0x100000004 0x10 0x00 ... ... ... [10 identical entries omitted] ... ... ... 0x100000036 0x10 0x10 0x10000003A 0x00 0x10 0x10000003B 0x00 0x10
In turn, the compiled DWARF CFA looks like this:
Set RSP as CFA register, with offset of +8. Set RIP to *(CFA - 8) Advance CFA PC by 1. Set RSP as CFA register, with offset of +16. Set RBP to *(CFA - 16) Advance CFA PC by 3. Set RBP as CFA register, with offset of +16.
Once a CFA program is run, the state it generates is then applied to the register state. As the CFA register at the end of evaluation is defined to be the stack pointer, we can derive that, at the end of the function:
1. CFA = RBP + 16 2. RSP = CFA, therefore RSP = RBP + 16 3. RBP = *(CFA - 16), therefore RBP = *RBP 4. RIP = *(CFA - 8), therefore RIP = *(RBP + 8)
Or, the stack pointer is restored to its original value, the frame pointer is set to the previous frame pointer, and the program counter is set to the return address on the stack.
Here's what the CFA program looks like when
-fomit-frame-pointer is used:
Set RSP = CFA + 8 Set RIP = *(CFA - 8) CFA PC += 1 CFA = RSP + 16
Therefore, RSP = RSP + 16 and RIP = *(RSP + 8). The result is the same, just without the frame pointer being saved.
Parsing all of this data isn't complicated. However, it is very, very tedious, especially at async-signal time, which is when a crash handler must be run. Memory can not be allocated at async-signal time, so it's not practical to usefully cache the results of CIE/FDE parsing. What this boils down to is that the entire DWARF information section for a given PC has to be re-parsed for every single function on the call stack.
At this point, you have to be thinking that there must be a better, faster way to store debug information, which doesn't involve having to run the equivelant of a tiny virtual machine with significant saved state. Fortunately, you're right.
Compact unwind encoding
The majority of time spent reading DWARF data is spent in two places: Running the CFA program, and searching the FDEs of an image for the PC being looked up. In the overwhelming majority of cases, all the complexity and verbosity of DWARF information is completely unnecessary for its most common use: Exception frame unwinding. (And, as a bonus, call stack unwinding for crash reporting needs no more information than exception unwinding.)
So was born the compact unwind encoding. To my knowledge (I could find no clear information on the subject, just hints in documentation and headers), the compact encoding was developed by Apple, adopted by LLVM, and later included in GCC.
Compact unwind encoding stores the information necessary to restore saved registers in a two-level lookup table, indexed by the PC of the function being searched. Each entry in the second-level table is a set of compressed register values. A set of register numbers is encoded, and the unwinding code reads the process stack at the appropriate location to get the saved values.
For example, this extremely contrived code:
int fn(int b, int c, int d, int e, int f, int g) { int h = rand(), i = rand(), j = rand(), k = rand(); return b + c - d * e / f % g + h - i * j / k; } int main(int argc, char **argv) { int a = 0, b = 0, c = 0, d = 0, e = 0, f = 0, g = 0; scanf("%d %d %d %d %d %d %d", &a, &b, &c, &d, &e, &f, &g); a = fn(b, c, d, e, f, g); printf("%d\n", a); return 0; }
... has the following compact unwind information when compiled normally:
First level index: [entry 0] functions beginning above offset 0x00000D78 use entry 0 [entry 1] functions beginning above offset 0x00000ECD do not exist Second level index: [entry 0]: [encoding 0] functions starting higher than offset 0x0000D78: no unwinding information [encoding 1] functions starting higher than offset 0x0000DB4: RBP frame, RBX, R12, R13, R14, R15 saved [encoding 2] functions starting higher than offset 0x0000E2C: RBP frame, no registers saved
... and when compiled with -fomit-frame-pointer:
First level index: [entry 0] functions beginning above offset 0x00000D64 use entry 0 [entry 1] functions beginning above offset 0x00000EC2 do not exist Second level index: [entry 0]: [encoding 0] functions starting higher than offset 0x0000D64: no unwinding information [encoding 1] functions starting higher than offset 0x0000DA0: stack size = 64, RBX, R12, R13, R14, R15, RBP saved [encoding 2] functions starting higher than offset 0x0000E2C: stack size = 64, no registers saved
Conclusion
Having looked at all the ways to unwind a stack frame, the next step is to extract and use all this information. Unfortunately, it's a topic worthy of an entirely separate article, so I'll be back next week with a detailed look at how to find and use all this data, as well as the thought behind how I implemented it in PLCrashReporter. See you next week!
There can be a measurable performance gain when making the extra register available, assuming that the compiler's heuristics for doing so aren't broken, and you're spending more time executing code that benefits from the register than you spend stack walking (usually a safe bet?).
If I recall correctly, certain GCC versions would *prefer* the callee-saved frame pointer over other callee-stompable registers when -fomit-frame-pointer was specified on x86. This lead to *less* efficient code, since it would have been more efficient to use a register that didn't require callee-preservation.
On x86-64, the ABI explicitly specifies that -fomit-frame-pointer semantics are the default, so it couldn't be relied on for crash reporting even if we wanted to.
Unfortunately neither of those are async-safe, can only be used on the current thread, and can hide information that is necessary in a crash reporter. I've written a bit more about the issues involved in crash reporting here:
Apple has their own open-source implementation of a small subset of libunwind, but it's licensed under the APSL, and the version shipped with Mac OS X can't be used for our purposes without relying on private API and/or undefined semantics. Given the redistribution requirements around the APSL that could affect library users themselves, shipping our own customized version of Apple's minimal libunwind wasn't deemed workable.
Gwynne's work ultimately provides a standalone async-safe, C-based, MIT-licensed frame walking implementation.
Add your thoughts, post a comment:
Spam and off-topic posts will be deleted without notice. Culprits may be publicly humiliated at my sole discretion. | https://www.mikeash.com/pyblog/friday-qa-2012-04-27-plcrashreporter-and-unwinding-the-stack-with-dwarf.html | CC-MAIN-2017-34 | refinedweb | 2,235 | 53.85 |
To quote another article on a similar topic:
the ideal structure is the one that allows you to move around your code with the least amount of effort.
--- The 100% correct way to structure a React app…
Why worry about folder/file structure at all? It seems like a difficult problem to solve. When there are no restrictions, almost everyone has a different idea of how 'things' should be named, and where they should live. In order to get everyone on the same page to achieve maximum project consistency, a structure should be agreed upon beforehand.
There are many topics on file structure. None of them agree. Some may have some similar concepts. Some may be too relaxed to be worthwhile. Ultimately, when faced with the choice of where to put a file, everyone's preference seems to be a little different.
So, how is this article going to be any different? My goal is to define a set of criteria for which we can assess a folder/file structure, and then to describe a reasonable start to a structure that can work as a base for any single-page-app in any ecosystem -- React, Vue, Angular, or Ember.
Firstly, let's define the criteria that we'll assess structures with.
- Users should be able to maintain their apps without worrying about the structure of their imports inhibiting them from making changes.
- Related files should be discoverable, such that a user does not need to hunt for a file should they not be using TypeScript (where you'd be able to use "Go to definition")
- Related files should be accessible, such that a user can easily locate a related file without having any IDE features (i.e.: browsing on github).
- Users should have reasonable context at any level within their project hierarchy. Flattening out too much is overwhelming and reduces the ability to maintain, discover, and access.
- Refactoring sections of the project should be easy. When moving a directory to a new location, the internal behavior should remain functional.
- The right way and place to add a new thing should be obvious and a structure should not allow for unnecessary decisions.
- Tests and styles should be co-located along side components.
- Avoid the infamous "titlebar problem", where a bunch of files all named the same can't be differentiated in the editor (though, a lot of this is editor-based)
- The structure should not impose limitations that would prevent technical advancement -- such as the addition of code-splitting to a project that does not yet have it.
The general-enough-to-work-for-all-apps-layout:
Note that any combination of
{folder-name}/component.js,template.hbs should be synonymous with:
- React:
{folder-name}/index.jsx,display.jsx
- Vue:
{folder-name}/index.vue,display.vue
- Angular:
{folder-name}/component.js,template.html
- Ember:
{folder-name}/component.js,template.hbs
- etc
Also, note in these examples are shorthand, and some projects (particularly Angular projects), like to be very explicit with naming, such as
ComponentName/ComponentName.Component.js.
src ├── data ├── redux-store ├── ui │ ├── components │ │ └── list-paginator │ │ ├── paginator-control │ │ │ ├── component.js │ │ │ └── template.hbs │ │ ├── component.js │ │ ├── integration-test.js │ │ └── template.hbs │ ├── routes │ │ ├── login │ │ │ ├── acceptance-test.js │ │ │ ├── route.js │ │ │ └── template.hbs │ │ └── post │ │ ├── -components │ │ │ └── post-viewer │ │ │ ├── component.js │ │ │ └── template.hbs │ │ ├── edit │ │ │ ├── -components │ │ │ │ ├── post-editor │ │ │ │ │ ├── calculate-post-title.js │ │ │ │ │ ├── component └── utils └── md5.js
Going though the folders from top to bottom, because dev.to doesn't allow inline links without code fences… (a great feature of one of prism.js' plugins).
src
Most of this will focus on the
src directory, as any other top-level folder or file tends to be more project or ecosystem specific, and may not generally translate to projects cross-ecosystem. Some examples of those folders that may not translate due to project-specific or build-configuration-specific reasons are:
app/,
tests/,
vendor/,
public/,
config/,
translations/, etc.
src/data
This directory is intended for all api-related data interactions and representations. In an app where you have the model-adapter-serializer pattern, you may want additional folders within
src/data such as
models or
transforms, depending on how much normalization you desire within your application. This is why it doesn't necessarily make sense to have anything named more specific or vague.
src/redux-store
If using redux, most guides and tutorials just use the same
store, which can be ambiguous, since
store is a construct used by any library that maintains a cache of data. So not only in Redux, but also in Orbit.js, and ember-data.
For more info on app-level state management, See this article comparing state mangement in both React and Ember
src/ui
The entirety of anything that directly affects the display should go in the
ui folder. This includes styles, components, and routes. The user interface can exist independent of data, application state, and utilities.
src/ui/routes
Most single page apps are using some sort of router, and therefor the UI is entirely route based. What components display are determined by what routes are active. Due to this coupling of display, and consequently, behavior with the browser URL, it should only be natural to divide up your app by the natural route boundaries. Splitting the UI by route also lends itself to straight-forward code-splitting on the route boundaries.
src/ui/routes/{route-name}/-components
In a recent React project, I've tried to omit the route-level private components directory, but it's lead to confusion between what is intended for the route, and what is there to support what is rendered on the route. I had originally omitted the
-components directory thinking that if I/my team just use the right folders, things wouldn't be so bad.
An example of a page where you'd want nested routes separate from your components is tabbed navigation:
posts/post ├── view/ ├── comment-moderation/ ├── publishing-options/ │ ├── -components/ │ │ ├── confirm-publish-modal.jsx │ │ └── social-media-blast-options.jsx │ └── index.jsx └── edit/ ├── -components/ └── index.jsx
This structure, unlike the above link (things wouldn't be so bad), this has a clear, explicit separation of components and route-specific components. In the linked react app, I've also been playing with keeping local-only higher-order components (HoCs) at the top route-level due to their one-time use nature -- though, in this particular app, commonly-used HoCs are moved to the data directory. I'm still kind of playing around with the idea, but the HoC locations are more specific to the functional single-page-apps such as those that would be react-based.
One criteria to use to know if your structure is heading in the right direction is how often you end up using
../ or
../../ in your import paths. Using upwards reverse relative paths violates our
Goal #5 stating that any subtree can change location and the functionality of the contents should remain in a working state. The above example should not inherently have any reverse-relative pathing.
An example violating
Goal #5:
posts/post ├── view/ ├── comment-moderation/ ├── publishing-options/ │ └── index.jsx ├── confirm-publish-modal.jsx ├── social-media-blast-options.jsx └── edit/ └── index.jsx
Here,
publishing-options files must use
../ to access the components defined at the parent level.
src/utils
Any functions, classes, or utilities should live in
src/utils. These files should be purely unit testable, as they should have no app dependencies. This includes things like string format conversion, auth0 wrappers,
fetch abstractions, etc.
Overall
Let's revisit our goals, and look out how this proposed layout meets each one:
1) Users should be able to maintain their apps without worrying about the structure of their imports inhibiting them from making changes.
Achieving this goal is mostly through simply having any documented convention that can be referenced later. There are currently no general static analysis tools to help out with enforcing a structure -- though, there is one tool for one of the major frameworks that dictates structure. (See Implementation below)
2) Related files should be discoverable, such that a user does not need to hunt for a file should they not be using TypeScript (where you'd be able to use "Go to definition"
By having related files next to each other in this layout, everything is contextual by nature. If someone is a heavy file-tree/project-tree browser, they'll have an easy time navigating and discovering what they're working on and what is involved.
3) Related files should be accessible, such that a user can easily locate a related file without having any IDE features (i.e.: browsing on github).
This is related to (2), but more enforces co-location. When browsing files quickly online, without editor or typescript features, it's convenient to be able to click through as few web pages as possible to view related components.
4) _Users should see have reasonable context at any level within their project hierarchy. Flattening out too much _is_ overwhelming and reduces the ability to maintain, discover, and access._
By having a nested structure by route, any component that is only used in one place will by contextually co-located to its usage. This keeps the amount of large flat folders to a minimum, and allows for understand the greater design of the app without having to follow references everywhere. Sibling folders are to be treated as complete unrelated (adopted?).
5) Refactoring sections of the project should be easy. When moving a directory to a new location, the internal behavior should remain functional.
I hope this one is self-explanatory, but this folder/file structure allows for drag-and-drop refactoring where any folder moved should have all of its internal tests still passing.
6) The right way and place to add a new thing should be obvious and a structure should not allow for unnecessary decisions.
This, in part, relies on both documentation and programmatic enforcement. The structure follows a strict set of rules that can be easily learned. For example, when using this folder/file stricture, by default, things should be going in
-components folders as you build out a route. For more inspiration on what kind of rules there could be, read about The Octane layout (formally Module Unification)
7) Tests and styles should be co-located along side components.
Instead of in a top-level
tests/ directory, tests can be contextually located with the thing that they are testing. This works for unit, integration, and acceptance tests. There will, of course, be exceptions to this, where you may be testing something app-wide and it has no specific context -- for those situations, I tend to just put tests in
tests/acceptance/ (if they are acceptance tests).
8) Avoid the infamous "titlebar problem", where a bunch of files all named the same can't be differentiated in the editor (though, a lot of this is editor-based)
The tab problem shouldn't be a thing in modern editors
(neo)Vim:
VSCode:
Atom:
9) The structure should not impose limitations that would prevent technical advancement -- such as the addition of code-splitting to a project that does not yet have it.
Because the files locations can be fitted to a rule, (i.e:
src/${collection}/${namespace}/${name}/${type}), we can programatically crawl across the project and experiment with 'conventions', or compile scss without importing into the javascript, or invoke some transform on a particular sub-tree of the project.
A more concrete / real-world example (in user-space), by having the files split apart by route, we allow the file system to know our natural route/code-splitting boundaries -- which makes for a much easier implementation of code-splitting.
Implementation
- How do you get everyone on the same page when anything can go?
- How do you achieve consistency between developers?
- How do you remember where something should go?
- How do you manage imports with all these file trees?
For 1 through 3, the only answer for most projects is in-depth code reviews. After the first few established routes, it'll get easier to maintain. But it is inevitably a manual process, as most ecosystems do not have a way to programatically enforce conventions.
For managing imports, the best thing to do is to set up absolute aliases to common entry points.
For example:
"paths": { "project-name/*: ["."], "@data/*": ["src/data/*"], "@models/*": ["src/data/models/*"], "@ui/*": ["src/ui/*"], "@components/*": ["src/ui/components/*], "@env": ["src/env.ts"], "tests/*": [ "tests/*" ], "*": ["types/*"],
This does mean that if you have deeply nested components, your import paths may be long, but they are easy to
grep for, and you'll have an easier time moving subtrees around since there are no relative paths to worry about breaking.
An example of a React app implementing most of the criteria outline in this post: Example React App
However, in Ember, there is a resolver. The resolver defines a set of rules for finding things and contextually discovering components, routes, data models, etc. There are a set of conventions that allow the resolver to find things in app-space, so that you don't need to worry about importing them. There is a reference, the resolver looks up the reference, and the thing stubbed in.
Something unique about ember, is that it has a bunch of build-time optimizations that the other ecosystems don't have. This is powered by broccoli, where you can transform parts of your app file tree during the build process. Ember uses this to swap out lookups with the actual reference to a component (for example, could be other things). Broccoli is also used to swap out simple helpers such as
{{fa-icon}} with the rendered html during build so that the bundle can be smaller.
To read more about ember's resolver, feel free to checkout DockYard's article, "Understanding Ember's resolver" To read more about Broccoli, Oli Griffith has an amazing guide / tutorial on it
An example of this structure can be found here: emberclear at gitlab (this is the code for emberclear.io, one of my side projects).
The Octane Layout's folder structure satisfies nearly all use cases. And the majority of this post represents a subset of the ideas from the The Octane Layout's RFC.
Note that the Octane layout is not yet released. It's coming early 2019, along with the release Ember Octane
Would I say that this in the layout people should use? maybe. There is some breathing room between what I've outlined for all js ecosystems to use and what the Octane layout dictates for ember-specific apps. Ultimately, if you are in an ecosystem where you have to decide how to lay things out, just keep the guidelines in mind as your placing files around, or copy everything here -- but with some tweaks. Ultimately, you need to do what is best for your team. Personally, with React, I feel close. Maybe there is a tool that could be written for non-ember projects that helps guide structure. Like a linter, but for file locations. | https://nullvoxpopuli.com/2019-04-15-a-general-project-structure-that-works-in-any-ecosystem/ | CC-MAIN-2019-43 | refinedweb | 2,508 | 53.41 |
PathAppend function
Appends one path to the end of another.
Note Misuse of this function can lead to a buffer overrun. We recommend the use of the safer PathCchAppend or PathCchAppendEx function in its place.
Syntax
Parameters
- pszPath [in, out]
Type: LPTSTR
A pointer to a null-terminated string to which the path specified in pszMore is appended. You must set the size of this buffer to MAX_PATH to ensure that it is large enough to hold the returned string.
- pszMore [in]
Type: LPCTSTR
A pointer to a null-terminated string of maximum length MAX_PATH that contains the path to be appended.
Return value
Type: BOOL
Returns TRUE if successful, or FALSE otherwise.
Remarks
This function automatically inserts a backslash between the two strings, if one is not already present.
The path supplied in pszPath cannot begin with "..\\" or ".\\" to produce a relative path string. If present, those periods are stripped from the output string. For example, appending "path3" to "..\\path1\\path2" results in an output of "\path1\path2\path3" rather than "..\path1\path2\path3".
Examples
#include <windows.h> #include <iostream> #include "Shlwapi.h" using namespace std; int main( void ) { // String for path name. char buffer_1[MAX_PATH] = "name_1\\name_2"; char *lpStr1; lpStr1 = buffer_1; // String of what is being added. char buffer_2[ ] = "name_3"; char *lpStr2; lpStr2 = buffer_2; cout << "The original path string is " << lpStr1 << endl; cout << "The part to append to end is " << lpStr2 << endl; bool ret = PathAppend(lpStr1,lpStr2); cout << "The appended path string is " << lpStr1 << endl; } OUTPUT: --------- The original path string is name_1\name_2 The part to append to end is name_3 The appended path string is name_1\name_2\name_3
Requirements | http://msdn.microsoft.com/en-us/library/windows/desktop/bb773565(v=vs.85).aspx | CC-MAIN-2014-52 | refinedweb | 272 | 65.52 |
On Nov 23, 2001 16:56 -0800, H. Peter Anvin wrote:> By author: Andreas Dilger <adilger@turbolabs.com>> > I really don't see it as being a problem (other than a purely cosmetic> > one) to have a .journal file in your root fs. I lived with these for a> > couple of years OK...> > It's either a cosmetic problem or a really problematic one, depending> on how closely controlled that particular part of the namespace is.> The .journal file could potentially try to be copied, backed up, you> name it.Actually, unless users are actively trying to shoot themselves in thefoot, none of this really matters. However, now that ext3 is in themainline, the number of users playing with guns has increased a largeamount, it seems, by the number of such reports on ext3-users.Because .journal is created as immutable, even if it was backed up andtried to be restored, it would be impossible to write to. For the"accursed" ext2 dump, it recognizes the "nodump" flag, but also knowsenough not to back up the journal file. Sadly, neither cpio or tarknow about ext2 attributes.Cheers, Andreas--Andreas Dilger unsubscribe from this list: send the line "unsubscribe linux-kernel" inthe body of a message to majordomo@vger.kernel.orgMore majordomo info at read the FAQ at | https://lkml.org/lkml/2001/11/23/217 | CC-MAIN-2016-26 | refinedweb | 217 | 65.32 |
I ?
The problem is in your assumption that a favicon for a site is always a PNG image, which isn't the case. Normally sites use a ICO image format, which is a different image format than PNG or BMP. Read more here.
To confirm this, try downloading the Daniweb favicon and setting it up in Qt Jambi, it should work (assuming Jambi supports BMP). The same shouldn't work with Yahoo, Microsoft or any other sites' favicon.
Thanks.
I found a favicon at the url : The extension suggests that it also is an ico image. I tried ..../favicon.jpeg and ..../favicon.png but tha pages don't exist.
In the plugins directory of QtJambi, inside the iamgeformats folder, I found th following:
1. libqgif.so
2. libqico.so
3. libqjpeg.so
4. libqmng.so
5. libqsvg.so
6. libqtiff.so
So, perhaps support for the ico format is there, I think. I think, I found a link which says that this may be a bug :
Any way in which I can get png format of favicons and display them. Any java library that does that ?
The extension suggests that it also is an ico image
Codecs don't work based on extensions, I can very well have a PNG with extension WTH and it would open up just fine in applications which support PNG.
Anyways, I personally don't know of any converters but you can try picking up ideas from this thread.
Thanks. But favicons are dynamically loaded. I will need to convert them at the time the website is loading. Since the application is platform-independent, it will be difficult to utilize these tools to convert the images.
Perhaps, I can upload these images to a site like convertico.com and download the converted image from there. Is it possible to do that ? Any resources where I can learn the method ?
Would you be using favicons from existing domains or favicons stored locally? If you would be using existing favicons, use the google ICO to PNG converter.
If you want to convert local files, you would have to find some online service like the one you mentioned. Unless the site exposes a programmatic public API, directly using the service might be a bit of pain in the neck along with other implications like taking prior permission of the site owner.
Thanks a ton ! Really, it solved a great headache. I just wanted favicons for existing domains, the sites that I open in my browser. But this google ICO to PNG convertor, I didn't find any documentation,etc on the net. Any link where the entire gamut of google's image conversion facilities is documented.
I don't think there is any need for a documentation nor one exists I guess. You simply need to dynamically create a URL based on your requirement with a URL template like "" + yourDomain and read by the connection opened. Anyways, since I've a bit of free time, I've written a throw-away code which works; feel free to modify it as you see fit.
"" + yourDomain
package pkg;
public class IcoConverterTest {
public static void main(final String[] args) {
if(args == null || args.length < 2) {
System.out.println("pkg.IcoConverterTest <domain> <outdir> <optional-file-name>");
return;
}
final String domain = args[0].trim();
final String outdir = args[1].trim();
final String fileName = args.length > 2 ? args[2].trim() : "favicon.png";
new IcoConverter().convertFor(domain, outdir, fileName);
}
}
class IcoConverter {
public static final String CONVERTER_SERVICE = "{0}";
public void convertFor(final String domain, final String outdir, final String filename) {
InputStream is = null;
OutputStream os = null;
try {
try {
final byte[] buf = new byte[4 * 1024]; // 4kB
is = new URL(MessageFormat.format(CONVERTER_SERVICE, domain)).openStream();
os = new FileOutputStream(new File(new File(outdir), filename));
int size = -1;
while((size = is.read(buf)) != -1) {
os.write(buf, 0, size);
}
} finally {
if(is != null) is.close();
if(os != null) os.close();
}
} catch(Exception e) {
throw new RuntimeException("ICO to PNG conversion failed!", e);
}
}
}
There are a couple of gotachs when using this service, you can read about them in this discussion.
Thanks a lot for the code. ? The link is also unintuitive (s2 ?) ?
Unfortunately I don't have an answer for that; I guess it's one of those "oooh, cool stuff" things.
thanks | http://www.daniweb.com/software-development/java/threads/316954/diff-bw-favicons-downloaded-using-java-code-and-those-normally-downloaded- | CC-MAIN-2013-20 | refinedweb | 715 | 65.52 |
Doodle, A Demo Drawing Program - Part 3
Doodle, A Demo Drawing Program - Part 3
By Guyon Roche
Introduction
In Doodle - Part 2, the Doodle application gained an application framework with the document-view model. In this installment, Doodle starts to connect these components. Not much has changed visually except that once a line is drawn, Doodle allows the user to delete them by clicking on them (this will eventually be extended into a full selection mechanism).
Demonstration
Doodle - Part 3
Click and drag the mouse over the 'canvas' on the left to draw lines. Click on the lines to delete them.
Once again the internal workings of the Doodle code have been upated. The namespace technique has been extended and the Canvas class has gained some new subclasses to keep track of the onscreen objects.
Code Structure
In any large application it's important to use a programming style that's easy to read and maintain. The larger the application, the more important it becomes to impose a solid structure to the programming style. With this in mind, I've chosen a JavaScript class model developed for Preezo which supports single inheritance and simple, tightly bound class definition code.
While it may seem that the new class model has rendered the Doodle code unrecognizable, in practice, very little has changed: where once a class was created like this...
That same class is now created like this...
The new class model is based around the Class factory object contained within the namespace JSX. Its prime objective is to help make class oriented JavaScript programming more convenient. The entire class is bound together within a single object literal passed into the function called JSX.Class.create(). All aspects of the class are easy to find; the internal name of the class is useful for identifying the class by descendant classes, an optional base class, the constructor function, static members and class members typically follow. The most important benefit of this style of programming JavaScript is that all the details of the class are coded close together, useful when an application starts to grow complex with many tens or even hundreds of classes. Another stylistic benefit is that the symbol Doodle.Doc is now formally identified as a class and not just some function instance with a modified prototype.
Where methods were assigned to the class prototype, they're now included within the methods collection, reducing a large amount of the ClassName.prototype cruft.
Start With The Document
In general, when making global changes to document-view applications, I find it helps to begin with the document as this is the focus of most of the code in the application.
The following methods (added to the Doodle.Doc methods collection) control access to the shapes collection.
It's generally good coding practice to discourage users of a class from accessing and modifying class or instance member variables directly. Allowing access to member variables creates dependencies on implementation that may be difficult to break later on. It's better to provide functions like the four above that perform the required tasks. This allows the implementation to be changed without much impact on other code.
Would You Like A Little Java With Your Script?
The next modification is the addition of a class heirarchy for Doodle document shape objects. While the Doodle application supports only one shape (at the moment), it's a good time to set up the structure of a document shape class heirarchy before things get too complicated. The ideal class name for a shape class would be simply "Shape" but there may be other shape oriented classes in the Doodle application that could be called "Shape." This will also be true as we develop the shape heirarchy further with classes like "Line, Ellipse" and so on. The solution here is to use the namespacing technique once more so that the document's shape class will be called Doodle.Doc.Shape and the graphics library's shape will be JSX.Graphics.Shape.
Some readers may notice a passing resemblance to the Java language with its dot-delimited naming heirarchies. One might wonder if enabling this notation was intentional on the part of the JavaScript language designers.
The name field here isn't the fully qualified 'Doodle.Doc.Shape' but simply the short name 'Shape' which descendants from the document shape class will use to uniquely identify this class.
Notice also the "Types" element in the statics collection. The purpose of this is to act as an enumeration of different shape types. Each item in the object literal equates a name with a number. By convention, the name (e.g. LINE) is written in uppercase. Since it's included in the statics collection, the Types enumeration will be added as a property of the Doodle.Doc.Shape class itself and not to the class prototype so it can be accessed easily without requiring a Shape instance. So far there's only one shape type enumeration, but as each new shape type is added, a new enumeration value will be included here.
The Shape class maintains a numerical ID value which will be used to distinguish between different shape instances.
The document Line class now inherits from Shape. Inheritance is specified by adding a base class link in the class definition.
Notice that with the inheritance model used in this code, the Line constructor must call the Shape constructor explicitly since this isn't done automatically by the inheritance model. This gives the Line class the opportunity to choose alternate arguments to be passed to the Shape base class.
Created: October 13, 2006
Revised: November 29, 2006
URL: | http://www.webreference.com/programming/javascript/gr/column22/index.html | CC-MAIN-2017-34 | refinedweb | 944 | 53.61 |
Body a =''-, ,,a m "Copyrighted Materia Syndicated Content Available from Commercial New mI . 0 l- F s Providers" 1 - i : Agape House provides help for women, hil n /1C C I T R Uwwchronic U Neonle T Y com k BAm-'U A-!Anna Florida's RBest* rmrnmi~tvWNewsnagner Serving Florida's Best Community Time flies Sunday Don t forget to set (clocks ahead hone hour 2 alt2am Sunday AP New homes A local builder is trying different projects./Inside INJURY IN SECOND INNING: He's out Atlanta Braves pitcher Mike Hampton leaves with an injury during the second inning of a spring training baseball game against the Detroit Tigers./Page 1B MUCH TO DO IN MARCH: The weekend The events planned around the area this weekend pack a wallop./Page 3A NOT A GOOD WEEK: Markets down Wall Street ended a dreadful week with another big loss Friday following employment reports./Page 9A $ OPINION: These 435 members of the House and 100 senators are squandering away your birthright. You ought to be angry about that. CHARLEY REESE, PAGE 10A. IN THE PAPER AND ONLINE: It's classified @Go online to www. chronicleonline.com to search the Chronicle's current classified ads. Eat and lose USA WEEKEND's CookSmart columnist reveals how she lost *45 pounds and how you can trim down, too!/Sunday Annie's Mailbox Comics ...... Crossword .... Editorial .. ... Entertainment. Horoscope .... Lottery Payouts Movies ...... ........ 9C ....... 10C . . . 9C . . . 10A . . . 6B ........ 9C ........ 6B .loc Obituaries ............ 6A Stocks ............... 8A Fnor S.ctinnsK St *pA Ak. L A MATTHEW BECK/Chronicle - Seven Rivers Christian School kindergartener Elizabeth Wood juggles scarves during a circus performance In the school gym- naslum last week. Two of the school's kindergarten classes entertained the entire student body and dozens of parents and grandparents with daring acts Including the tightrope walk and trapeze acrobatics, all safely performed at ground level, as well as animal tricks with students dressed as lions and tigers. County's top two jobs now vacant JIM HUNTER jhunter@chronicleonline.com Chronicle Citrus County is not only looking f6r a county adminis- trator, but now for an assistant administrator as well. Assistant County Ad- ministrator Boyd "Roger" Pulley, who has been acting as the interim Citrus County administrator for a week, was offered and accepted Thursday the job of county administrator for DeSoto County. Pulley, who only began with the county on Jan. 2, had made the short list of applicants in DeSoto, and after interviews on Thursday, he was offered the job. Pulley had been hired by former county Administrator June Fisher, who left last month not long after hiring Pulley, who replaced Tom Dick, whom Fisher fired. That firing result- ed in a lawsuit, still pending. The condition on the DeSoto job included that Pulley begin by April 1, according to DeSoto County Public Information Coordinator Matt Holloman. Pulley had worked for DeSoto as its Economic Development Please see VACANT/Page 5A .-omm. =_-__ ..~ COMMUNICATIONS OFFICER LEAVING p Jessica Lambert, Citrus County's communication resources director, notified the county March 4 she would be resigning from the position as of March 14 to take a position with Progress Energy as the lead spokesperson for the company's Crystal River power plant. H County Human Resources Director Randy Petitt said the county commission will be asked in an upcom- ing meeting if the position should be filled at the present time, He said the position is responsible for dissemination of inforrrma- tion, dealing with news media, acting as liaison to legislative boards and managing the broadcast of the commission meetings. Its pay range is $39,600 to $58,300 annually. * Carla Groleau, the current spokesperson at the nuclear plant, will become the community relations manager for Progress Energy in Citrus, Hernando, Sumter and Marion counties. 3 Four apply for administrator's job JIM HUNTER jhunter@chronicleonline.com Chronicle As one county administrator - actually the interim fol- lows another out the door, the ,Citrus County Commission is in overdrive to hire a new one. When the commission named Assistant County Ad- ministrator Boyd "Roger" Pulley as interim administra- tor last week, it also set itself the ambitious goal of hiring a new administrator in seven weeks. Four people had applied as of Friday, March 6: two of them from Citrus County, one from Ocala, and one from Michigan. The job pays from $110,000 to $130,000 a year. The county's ad says the ideal candidate will have a B.A., preferably in Public Administration or a related area, with at least five years' experience in county or mid-sized municipal govern- ment in Florida as the chief executive officer. Applicants with extensive experience as a deputy or assistant managers in local government will be consid- ered, the ad states, adding that the administrator must be- come a resident of the county in a reasonable amount of time. m Homosassa resident Karen Briskie sent a letter of applica- tion to the county, noting that her experience included being appointed as the deputy state treasurer for the state of New Hampshire, a post in which she served from 1988 to 1994. In that position, she said, she was responsible for managing the state treasury's daily cash flow, investments and debt service. Before that, she served as a senior financial analyst for the governor's office, a job in which she prepared and ana- lyzed state budgets for several state departments. She said she also advocated for the gov- ernor's budget in the legisla- tive process. She said she had recently moved to Citrus and felt her experience directly related to public administration. m The other Citrus Countian to apply was Homosassa resi- Please see FOUR/Page 5A - ~-.- .,. - *-. 4 --.... rno.- 0 :: i sweet "Copyrighted Material Syndicated Content Available from Commercial News Providers" Life under the big top S.... . .. ... "Copyrighted Material -. Syndicated Content Available from Commercial News Providers" pm amm -lm o mm o*M U MAK%;" .... ... .. Official leaves legacy Dick Kaufman dies at 77 JIM HUNTER jhunter@chronicleonline.com Chronicle An Inverness businessman known for his impeccable hon- esty, his long public service and his constant advocacy for good government died Friday morning. Richard "Dick" Kaufman, 77, former Inverness City councilman, Citrus County School Board member and for- mer owner of Citrus Title Company, died after a long ill- ness. His friends, associates and former employees said they mourned the passing of a unique person who left a real legacy in his town and in his county. Originally from Waterbury, Vt., after being discharged from the National Guard and coming to Citrus from St. Petersburg in 1951, Kaufman got into the real estate busi- ness and later bought the Peninsular Abstract Company, changing the name to Citrus Title. He subsequently served on the school board for 18 years and on the Inverness council for 12 years. His friends and associates say he is remembered for his forthrightness, honesty and support of local government "He was a fine man, as honest as the day is long," said former Inverness Mayor Jake Blanton. "He did an excellent job for the school board and the city. He left a legacy." "He had a lot of influence on people and government," said Inverness City Manager Frank DiGiovanni. "He was a pillar of strength, but he had an easy manner. He did a lot for the city and the county. I can't say enough. He got things done and he always did it with aplomb." DiGiovanni said a lot of the projects citizens enjoy today would not have come to be if it hadn't been for Kaufman. Former Inverness City Clerk Marilyn Jordan said Kaufman had the rare gift of having a fantastic business mind while understanding what made Please see LEGACY/Page 2A : I-- do4a COMINGiUp* .:m:. .. 10.111111 i6 pwok 4AIr im: pr lp lw fft 1" 117 IRAL 2A SATURDAY, MARCH CITRus COUNTY (FL) CHRONICLE o nnRo County BRIEFS: 0 Magazines and books. 0 Junk mail, [ Catalogs, a Wrapping paper, 0 Cereal boxes, a Computerlcopy paper. a Envelopes, Yellow legal paper. a Colored paper, LEGACY Continued from Page 1A good government. He was a man ; ilh a soft voice and penetrating intelligence, she said. He saw Slhc necessary balance between government and business and was always an ardent supporter of better government He had vision and passion about his city and county, she said, and knew more about them than most She said one of his great pas- sions was to resist the movement to move the county seat from Inverness to Lecanto and she used to really enjoy it when he dropped in to talk about it when she was city clerk Ed Tolle, Crystal River busi- nessman and longtime friend and associate, said. Kaufman was a very special friend to him- self and many others. He said Kaufman knew practically ev- erything about the county's real estate. "He helped develop this county from scratch," Tolle said. Retired Citrus Circuit Judge William Edwards said, "One of the best attributes Dick had as a politician was that he avoided playing politics. He said what he thought and he stuck with it" Edwards said Kaufman was a school board member who always made sure the' schools were ahead of the needs curve. "He was always looking for- ward." "He was one of the most hon- est people I've ever dealt with," Edwards said. "He did what he said." School Superintendent Sam Himmel said Kaufman was intensely involved with his com- munity She knew him as a close friend of her father, the late Walt Conners. "Dick I called him 'Mr Kaufman' helped build this community He was a very good man." Nancy Sullivan, who is now retired but who worked as his office manager at Citrus Title for many years, said Kaufman's passingwas a sad day. "I think he probably employed hundreds over the years. He was a caring and compassionate man, and he was a wonderful boss. He saw us through births, deaths, mar- riages, heartaches. He was great" Like everyone else, she said. Landfill will close early on Good Friday The Citrus County Central Landfill will close at 2:30 p.m. Friday, March 21, in observance of Good Friday. Hernando boat ramp l g to close late March r Due to the 2008 "Thunder in the - - Hills" Power Boat Races spon- - sored by the Citrus County . Rotarians and Citrus County, the *_ *_ __ Hemando Boat Ramp will be closed beginning March 27 and will 4 b -. ( reopen April 1. . . Anyone requiring further infor- . nation may call Citrus County _ Parks and Recreation at 527-7677 _ __ o during normal business hours. Any a . persons requiring reasonable . accommodations at this or any other program because of a dis- ability or physical impairment Available tr should contact the office 72 hours 4 . prior to the activity at 527-7677. 4 W From staff reports ,,=. doowwme-asoo- 40 - obmmw q- 40 WM 41W qm-d Special to the Chronicle Richard "Dick" Kaufman, 77, former. Inverness City Councilman, Citrus County School Board member and former owner of Citrus Title Company, died Friday after a long. illness. He helped develop this county from scratch. , Ed Tolle longtime friend of Dick Kaufman. central to Kaufman's character was his word. "His word was all. If he gave you his word, that was all it took" Kaufman is survived by his wife, Lee. He had three daugh- ters by previous marriage: Karen Kaufman White, married to Robert White, of St Peters- burg; Amanda Kaufman Landau, married to Dr. Kirk Landau, of Jacksonville; and Cherise Kaufman Cernich, mar- ried to James Cernich, of Inverness. Cherise Cernich, who works in the Citrus School system, said Friday, "I will always remember him as being most loving and caring and a man of integrity - and a great dad." Services and funeral ar- rangements are being made today and are expected to take place early in the week Hooper Funeral Home will handle arrangements. LI IDATION OUTLET Sna ALIY/A Pol &Sa 35 860123 4f - 4IM do dhdb f- e. e- -NOW -w - 'Copyrighted Material --.' Syndicated Content -- m Commercial News Providers".' 0m - ___ u,, ., o - q m40m%-40 ow- ab la- mam mf q -No _mb o _M__I qw 4o 0omm More movies. More shows. More choices. Comcast Digital Cable and FREE HBO? * John Adams""-HBO* M Entourage*-HBO* Great TV including Discovery Channel, MTV, HGTV, ESPN and more. Our digital network delivers 100% digital-quality picture 1 and sound. Get an easy-to-use Interactive Program Guide with Parental Controls and reminders. You'll also get up to 47 music channels. H SThe biggest movies, original series, sports and events are on HBO all uncut and commercial-frep. New movies premW!qripg; . . EVERY Saturday hight @ Comcast Digital Cable 9 and FREE HB a month ^ 2for 6 months Call 1-888-COMCAST comcast. *Offer ends 4/1-888 02008. All rights reserved. All other trademarks are the property of their respective owners. HBO, Entourage and John Adams" are service marks of Home Box Office Inc. All Rights Reserved. Disturbla 02007 Paramount Pictures. Your Life. Our Story. Between Marco and Polo Where will you make your next big splash? When you're truly healthy, your possibilities are limitless. At Seven Rivers Regional, we're about more than just great patient care. We're about helping you do the things that life is all about. Like getting back in the swim of things. What's your life story? Visit srrmnc.com and tell us about it. ,^-, *SEVEN RIVERS REGIONAL MEDICAL CENTER 6201 N. Suncoast Blvd., Crystal River. FL 34428 352.795.6560 352.489.2022 srrmc.com * 4 um 7;:> 3A SATURDAY MARCH 8, 2008 CITRUS COUNTY CHRONICLE Im sl -4- on s ow- Qw 0dm 41-0 o m u. 7= . OR w4ogo 4 t am ou 4o-f do -w ob 4 4w ammi 4. 0 am am -0 * qmmm- 4 q- . mmw 4 mow 0 00 -m 4 cm - qw -mo owd- 4 am4 40 IM d~ 41a 41 -4- 404m a 4m- 4m 0m w4moo w 4 _-No..dw - - ~"Copyrighted Material d taidy Conte nt : 0- e- -- -- Available from Commercial News Providers" - - 077 - e - a - 0 0 o - Ready, set, March Weekend offers sure-fire fun CHERI HARRIS charris@chronicleonline.com Chronicle No need to bring out the big guns when looking for enter- tainment this weekend, because these events pack a wallop. Follow the sounds of mus- ket and cannon fire to the annual Nature Coast Re- enactment on the property of Holcim Inc., seven miles north of Crystal River on the west side of U.S. 19. Hours are 9 a.m. to about 5 p.m. today and Sunday. The mock battles are from 2 to 3 p.m. both days, though any part of the schedule is subject to change without notice. Admission is $5 for adults and $3 for students age 9 to 17. Children 8 and younger admitted free. Those in search of a qui- eter diversion might want to meander to Old Homosassa for the eighth annual Lu- minary Art Nights along and around Mason Creek Road. From dusk until 9 p.m. today, visitors can stroll through lighted pathways and peruse a variety of arts and crafts in shops owned and operated by local artists. The event will also include artist demonstrations and refresh- ments. Participating shops are Blue Moon Bed & Break- fast, Glass Garage, Hair by Mare, Olde Mill House Gal- lery and Cafe, River Safaris and Riverworks. For informa- tion, call 628-5222 or 6284047. N Learn about the history of a Citrus County treasure during Homosassa Heritage Day. Hours are 10 a.m. to 4 p.m. today in the Homosassa Springs Wildlife State Park's Visitor Center on U.S. 19 in Homosassa. The event will include exhibits on the park and - b qb BRIAN LaPETER/Chronicle Mary Ascough, 4, with umbrella, and other home-schooled students from the Citrus Christian Home Educators Association, learn about camp life from re-enactors Friday at the Nature Coast Civil War Re-enactment north of Crystal River. From dusk until 9 p.m. today, visitors can stroll through lighted pathways and peruse a variety of arts and crafts in shops of local artists. Homosassa history including films from the '60s and '70s, old photographs and albums and guest speakers. Admis- sion is free to the Heritage Day exhibits in the Florida Room of the park's visitor center. For information, call 628-5343. Expect classic lines and eye-popping chrome at the fifth annual Car & Truck show hosted by the Nature Coast Corvair Club from 9 a.m. to 4 p.m. today at Inver- ness City Hall. Day of show registration fee is $20. Proceeds to benefit the Flor- ida Sheriffs Youth Ranches. "Songs for a New World" is on stage this weekend at Playhouse 19 in Crystal River. Show times for the musical revue with lyrics and music by Jason Robert Brown are 8 p.m. today and 2 p.m. Sunday. The theater is at 865 N. Suncoast Blvd. Tickets are $17 for adults and $12 for stu- dents. For information, call 563-1333 or visit- housel9.org. "Ladies in Retirement," a mystery/drama based on a 19th century crime, is on stage this weekend at the Art Center Theatre. Show times are 7:30 p.m. today and 2 p.m. Sunday. Tickets are $18. For information, call 746-7606 or visit. See acclaimed organist Hector Olivera in concert at 3 p.m. Sunday at Curtis Peter- son Auditorium in Lecanto. The show is part of the Central Florida Community College Foundation's Per- forming Arts Series. Tickets are $18 for reserved seats and $20 for open seating. Cristina Tremante, an 11th- grade student from Citrus High School, listens Friday to Lt. Col. Keith Kohl, a re-enac- tor from the Florida Infantry Regiment of Ocala, as he describes life during wartime. Doi~w~w u amm& for cOm ku~ w4 btR mwvwta ew- 6 - now 00-~-M- . -D- -wdm -d --am a. m 0 W a- 0o-t - Me -1b M .'E - ___4w.-- - a dub o - 4DC *M io- % a low - mo- o .- --- -4 - a.. a F - a..~- - -a - - a. - * - - --a a. -. I -.~.-- a. -- 0 * a.. a. - a. *.- - S ~.- - a. - 4 - - 0 5 S - - a. a... a. -42-4b -a. - a. a. - ~.- - - a..- a. - - a a - a. - a. - - . - -C a - C - * - a * *0 a.~- C -n- * ow - -----MENEM * - 4& . Sta 4A SATURDAY, N CITRUS COUNTY (FL) CHRONICLE lArCH R 2008 Citrus County Sheriff Domestic battery arrest Robert Sean Milliord, 27, Inverness, at 2:42 p.m. Feb. 29 on a Citrus County warrant charge in ref- erences to felony domestic battery charges. The arrests stem from inci- dents reported Feb. 7 and 18. No bond. DUI arrest Jose Antonio Rios, 42, 1701 N. Paul Drive, Inverness, at 6:55 p.m. Wednesday on charges of driv- ing under the influence, resisting an officer without violence and refusal to submit to approved chemical/physical testing for alco- hol. Bond $2,000. Other arrests Carmen Anthony Arlotta, 22, 19102 Birch Road, Crystal River, at 3:25 p.m. Wednesday on a Columbia County warrant charge of violation of probation in reference to felony case of possession of mari- juana and drug paraphernalia. Arlotta was additionally charged with a misdemeanor failure to appear charge for possession of alcohol by an underage person. No bond. Jonathan Wayne Perez, 19, 4168 W. Bach Lane, Lecanto, at 5:15 p.m. Wednesday on charges of aggravated battery using a deadly weapon and robbery with a firearm or other deadly weapon. An 18-year- man said Perez invited him to a party, but rather than going Perez pulled a rifle out of his trunk and pointed it at the man. As the man pushed the barrel away, he said For the RECORD NATURE COAST EMS Feb. 24 to March 1. Nature Coast EMS responded to 405 medical emergencies and 276 patients were transported to a hospital. Out of the 405 medical emergency calls, based on the caller's infor- mation, 243 required an emergency response (with lights and siren) to the scene. Average emergency response time was 6 minutes and 47 seconds. 41 of the patients transported required an emergency response to the hospital (where seconds/minutes may affect the patient outcome). Critical calls N 6 Codes (cardiac arrests). 0 3 Cardiac alerts. E 3 Stroke alerts. 0 4 Trauma alerts (major or potentially major trauma injuries). Types of calls E Care level provided for calls: 0 Average calls per day: 57.9. 0 30 BLS (basic life support) 0 Average transports per day: 0 239 ALS (advanced life support). 39.4. 7 ALS2 (critical advanced life support). Perez fired, hitting him in the shoul- der. The man and his girlfriend left and stopped at a gas station where EMS and police arrived. The man went to Seven Rivers hospital in his own vehicle and was treated and released. The incident is said to have happened Tuesday night 'in Homosassa near West Holiday Street. Perez was arrested at Proud Mary Trailer Park in Homosassa. Bond $50,000. Michael C. Reitano, 25, 9440 Indale Drive, New Port Richey, at 7:46 p.m. Wednesday on charges of assault or battery on a law enforce- S"Grand Openir Superior Sheds ' Factory Direct Customized to fit your needs Rent to Own Starting at $40 per mo. r a 352-563-5800 Located at 2021 NW. US Hwy. 19, Crystal River (Just S. of Lincoln Mercury Dealer) -3 Look for the Gorilla " ment officer, resisting an officer with- out violence, possession of marijua- na and possession of drug para- phernalia. Bond $11,000. Lonnie R. Nichols, 19, 7694 N. Nature Trail, Hernando, at 10:45 p.m. Wednesday on charges of pos- session of a controlled substance and possession of marijuana. Bond $5,500. Vanessa Milagros Adams, 31, 562 Chateau Circle, St. Marys, Ga. At 1:56 a.m. Thursday on a charge of driving with a suspended/revoked license. Bond $500. Michael Allen Greene, 25, 209 Lemon St., Wildwood, at 8:30 a.m. Thursday on Citrus County warrant charges of selling/manufacturing/ delivering a controlled substance and possession of a controlled sub- stance. Bond $15,000. Elizabeth Mercedes Cortez, 34, 4354 Gold Coast Ave., Spring Hill, at 8:50 a.m. Thursday on a Citrus County warrant charge of dealing in stolen property. No bond. Jeffrey J. Horrell, 19, 11404 W. Indian Woods Pass, Crystal River, at 12:03 p.m. Thursday on a charge of possession/intent to sell/dispense/deliver a listed drug. Bond $250. State Probation Arrest Ralph A. Viola Jr., 35, 300 Orvista Circle, Inverness, at 3:30 p.m. Wednesday on a violation of probation charge in reference to an original felony charge of discharging a firearm from a vehicle. No bond. Highway Patrol DUI arrest Jonella McElyea lerna, 52, 10551 W. New York St., Hom- osassa, at 10:21 p.m. Wednesday on charges of driving under the influ- ence and leaving the scene/failing to remain at an accident with property damage. Bond $750. Find out more about Medicare Advantage Plans before making a choice, learn the differences. Wednesday March 12,19 & 26 2:00 PM Joe's Family Restaurant 911 W. Main St. Inverness FL. Senior Health Care Support, Inc. 8566 Forest Oaks Blvd. Suite 423, Spring Hill, FL 34606 - S .~ --- "Copyrighted Material " 7 Syndicated Content Available from Commercial News Providers" - C 0.'0. * --Nm- - .40 4b. - - ~. .~ ~ ~- -- ~ - - a e - ,~,,. .- a a ..alsFuxW o lid Sutr sCluar haes - ttY~~*~ 91 17 R UL 5 ~- a 0.-~ U 0am 0 * = ~ - 0. Os - *0 * 0 - * O o - 0 -5 * 0 O 0. lo 0. -~ - - 5 - 00 4D I- - * '5 to fto - '5 0 * 0 S 0 - *_ S. S. S. 0O 0O CO U N T Y - lHRONICLL Florida's Best Community Nowspape T a -a e fm Commecial NUIwsIPrIo IIL vidIs p -a'Available from Commercial News Providers" ,qa .ofm60AA 4fe .no'm *v o- 4 DurN A N Where to find us: ni Norvell Dryanr Hwy. Ave. Cannondale Dr. \N a-" Meadowcrest 4 - Blvd. ' Who's in charge: t4. it * @40m 0-o0 m - 'a,--'-- 4PLi 42,4- 40- qn 742027 LINDS WE'LL MEET OR BEAT ANY COMPETITORS PRICE* The Savings Are Yours Because The Factory Is Ours! FAST DELIVERY PROFESSIONAL STAFF J2-HOUJBUND FACTORY J E *FREE ewe In Home Consulting SInstallalion Valances LECANTO TREETOPS PLAZA 1657 W. GULF TO LAKE HWY 527-0012 'Mist resnt wen esbmate frlom ome for this rie HRS.: MON.-FRI. 8AM-4:30PM TOLL FREE 1-877-746-001i lo .- 0a "Copyrighted Material r,, ,, I m m 0 C MV-Ap o wD Meadowcrest office 1624 N. Meadowcrest Blvd., Crystal River, FL 34429 Inverness office 106 W. Main St., Inverness, FL, 34450 M Courthouse Tompkins St. C square I- I -CD ." I 4 D44 um -Aff r- I * - - * - * -- .6 - . qpl - ** - I . i 4 re Note mL CITRUSS CouNTY (FL) CHRONICLE VACANT Continued from Page 1A director, Public Works director and FEMA liaison. Pulley was off for two days at the end of the week and could not be reached for comment. He was expected to offer his resignation but had not yet as of Friday. Citrus County Com- missioner John Thrumston said Friday he had spoken with Pulley and was told Pulley's last day would be March 28. The commissioners will be dealing with the issue at the regular meeting on Tuesday in Inverness. Thrumston said with the April 18 deadline the commis- sion had set for choosing a new administrator, there would only be a few weeks in which an interim administrator would be needed. As his fellow commissioners said Friday, most likely one of the five department heads would be asked to fill the gap for that time. . Fortunately, Thrumston said, the time sequence meant it would only take the depart- ment head away from his de- partment for a few weeks, which would mean less chaos. "We don't need any more chaos. We have enough," he said. SCommission Chairwoman Joyce Valentino said that she had spoken with all five of the department heads and they had said they would be willing th step up if needed. "I think all if them can handle it," she said. p Commissioner Gary Bartell said Pulley's likely departure ,vas one reason he had. not voted to appoint him the inter- ijn administrator last week. "I lKnew we'd be back where we were two weeks ago," he said. He said logic dictated that one .of the five department heads be tapped for the interim, but he was concerned. "We've got some very strate- gic stuff that needs to be done," he said, noting the issues start- ed with the budget Thrumston agreed, though felt the staff, which has been working on budgets already, would have time to work them SATURDAY, MARCH 8, 2008 SA If the county was FOUR really in a pinch, Contin I 1, ~~ I1 11 amadllldU saIU, Ix could always look for help from the Range Riders. out, but he noted MSBUs and water and sewer assessments, the Amendment 1 impact issue, picking an administra- tor, needed infrastructure and road improvements, the DCA spring protection/ setback and septic issue, the Halls River Retreat case, the Tom Dick suit and the Tampa Bay Area Regional Transportation Authority planning hearings, as just some of the big issues looming in front of the commis- sion. Commissioner Dennis Damato said things sure had gotten interesting lately but added, "once again we are for- tunate to have a first class staff," and he added that man- agers like Development Services Director Gary Maid- hof, Public Works Director Glenn McCracken, Public Safety Director Charles Poli- seno, and Community Services Director Brad Thorpe, a for- mer county commissioner him- self, could be tapped to act as interim administrator. If the county was really in a pinch, Damato said, it could always look for help from the Range Riders, a group of retired city managers and county administrators who offer their temporary services in such circumstances, but he didn't think that would be nec- essary. Meanwhile, four people have submitted their applica- tions for the administrator's job as of Friday, two from Citrus County, one from Ocala and one from Michigan. lued from Page 1A dent Werner Koch Ferrone, who said in his application that he has lived in Citrus for 18 months. He has not held a government position before, but said he has worked closely with local government. He has held a real estate license in Maryland and Florida and worked as a vice president of acquisition and project development for a Maryland residen- tial and commer- T cial developer. He also was the proj- commi ect manager for a construction com- deadly pany and has owned a number picking of companies mm involved in real admin estate investment, iS A* development and I management, as well as construc- tion. He owned a Pep's Mexican Restaurant in Aberdeen, Md., and was a construction compa- ny superintendent and a man- ager for Household Finance Corp. A third applicant, Jashua A. Harden of Ocala, has certifi- cation in land planning and got his B.S. in Business Ad- ministration from the University of Florida. He holds a real estate license and is cur- rently the chief operation offi- cer for American Heritage, a private consulting firm in Ocala. He previously worked as the senior project manager for Lynn Townsend and Associates, PL. in Ocala. In his current job, he said, he is involved in budgeting and operations, supervising admin- istrative affairs and organizing the work of the divisions of the company He said he is respon- sible for the administrative SVASCIL VIf WOODWORKING "Family Tradition" For Over 75 Years ANTIQUE RESTORATION REHNISHING Custom Furniture and US 19 Homosassa 628-9010 ' Cabinetry Made to Order vasciminiwoodworking.comrn oversight and fiscal success of the company. Harden said he is very famil- iar with the inner workings of local government as well as the principles and practices of public administration required for the administra- tor's job. The fourth applicant, Jordan S. Patrick of Muskegon, Mich., has a B.A. in Political Science and a master's degree in Public Administration from Western Michigan University. He currently serves as the township supervisor for Muskegon Charter he Township, an elected position ssion'S overseeing 49 employees for a ine for township of 18,500 residents. He over- g a new sees a $13 million strator budget and serves Sirator as the chief ril 18 administrator, S human resource director and chief elected official. He previously served as the deputy clerk supervisor for the Muskegon County Clerk's Office, overseeing the Vital Records Division of the clerk's office, managing the circuit court jury system, and coordi- nating county elections, among other duties. Before that he had been an investigator for the family courts and a deputy sheriff for a county sheriff corrections division. He also teaches col- lege classes in management and government, among other subjects. The closing date for applica- tions is March 19. The commis- sion's deadline for picking a new administrator is April 18. The first task of the new administrator may be to hire a new assistant administrator. low 4 * .~ - - - - - - -~ - - a S - 5- .* - "Copyrighted Material - - S S MCI... 000 - f a s Available from Commercial News Providers" ..~ 5- -~ ~ ~.. - S ~ a 'S'~ -~ S - - S - -~ 5- 5 S I S - - S - -a S * S - 5 - - S * * - - S S - S Seringhe Heartof FloridaSince19% Solar Lights & More 352-690-9664 # 1-800-347-9664 0 Solar Pool Heating Solar Attic Fans 0 Tubular Skylights Solar Water Heating -ol.ar Enorgy Is Freol FIDELITY TITLE SERVICES, LLC 151 E. Highland Blvd., Suite 171, Inverness,FL 34452 (352) 726-9917 CORAL. LEE, Cksig Agom fidelitytitleservices@mindspring.comt I SATRDA & UNDY o1J TOI5mPMm .ii I March Markdowns Home Improvement in about an hour Upgrade your existing door with no dirt or construction! An EntryPoint door transformation is the most efficient and easiest wayto increase curb appeal and add natural light. * Hundreds of design options available through our custom program _________ _________ _________ _______E Model located at 2056 W. Citrus Springs Blvd. DELUXE 3/2/2 + Porch & Lanai 1,968 sq.ft. $ C14,900 INCLUDES LOT BASIC 3/2/2 + Porch 1,654 sq.ft. $104,900 INCLUDES LOT I J.int la B ild rs Ic. 352.746.2677 738980 When Little Things Mat Hernando-Pasco Hospice gives you the peace of mind so you can focus on what matters most. We're there providing the comfort and care necessary for both patients and families. Hlernando 742022 Hemando O Pasco iHospncendIn984 i* ntallyulicensed In 198 i i 11 i ^IB Citow" RT.41 DELTONA EC z in ELKCAM t N 491 * 352.697.1384 * 352.564.6820 * 352.697.1211 RR28281 QV41576 ft -M 8,005 - * - o . - - * i i i -Q SATnURDAYn, NLARCH 6,.ZUUZ Margaret Attridge, 86 HOMOSASSA Margaret H. Attridge, 86, Homosassa, died Wednesday, March 5, 2008, after a long ill- ness, at Seven Rivers Regional Medical Center, Crystal River. She was the wife of Robert W Attridge with whom she shared 56 years of marriage. Until her illness, Mrs. Attridge was an active golfer at Sugarmill Woods Country Club, where she was a charter mem- ber of the Women's Golf Association. She was involved with a number of Catholic char- ities as well as Native American Indian schools and missions. She was a communicant at St Thomas the Apostle Church. In addition to her husband Robert, she is survived by seven children, Joseph A. Poirier, Mary E. Silvester, Robert W Attridge Jr., Peter D. Attridge, Martha A. Corr, Richard A. Attridge and Margaret J. Nickerson; 17 grandchildren; and five great- grandchildren. Donations in her name may be given to the St Vincent de Paul Society of St Thomas the Apostle Church. Wilder Funeral Home, Homosassa Springs. Josephine Clinton, 92 CALIFORNIA Josephine Clinton died Tuesday, March 4, 2008, in California at age 92. Mrs. Clinton was born in Italy and emigrated with her family to New York at the age of 3. She grew up in Brooklyn, also lived in the Bronx and Syosset, N.Y, and later retired with her husband to Dunnellon. She relocated to California after his death to be near family members. In addition to her husband, she was preceded in death by one son, Robert. Survivors include three sons, George Jr., Frank and Paul and their spouses, seven grandchil- dren and seven great-grand- children. Fero Funeral Home With Crematory, Beverly Hills. Jack Hose, 73 INVERNESS Jack E. Hose, 73, Inverness, died Thursday, March 6,2008., Born.Nov. 4, 1934, in Miami to Ernest and Minnie (Patterson) Hose, he came to this area in 1991. Mr. Hose was an Army veteran serv- ing during Korea, and worked as a tile setter by trade. Survivors include his wife, Edith J. Hose of Inverness; daughter, Laura Hose of Tallahassee; brother, Ernest Hose of Miami; and sister, Mary E. King of Hernando. Hooper Funeral Home, Inverness. Wayne Knepp, 55 CRYSTAL RIVER Wayne Phillip Knepp, 55, Crystal River, died Monday, March 3, 2008. Born July 12, 1952, in Fort Bragg, N.C., to Earl and Grace Knepp, he moved to Crystal River three years ago from St Petersburg, where he resided with his mother and his girlfriend. Mr. Knepp was an outdoors- man who started cast netting at the age of 14. Survivors include his moth- er, Grace Knepp of Crystal River; his girlfriend, Debby Ferguson of Dunnellon; sister, Cathy Sills of Ocoee; brother, Bruce Knepp of St. Petersburg; two nieces, one great-niece and one great-nephew, all of Ocoee; and many aunts, nephews and cousins. Strickland Funeral Home, Crystal River. Fred Lee, 56 HERNANDO Frederick N. "Fred" Lee, 56, Hernando, formerly of Michigan City, Ind., died Tuesday, March 4, 2008, at Shands Hospital in Gainesville after sustaining injuries result- ing from a motorcycle accident. He was born April 4, 1951, in South Carolina, the son of Harvey Lee of Michigan City, Ind., and the late Lillian (Lane) Lee. Mr. Lee was a veteran of the U.S. Air. Force. He received his Master's Degree from Indiana State University, where he met his lifelong idol, Larry Bird. He was a devoted schoolteacher for Knapp Elementary School for more than 25 years. He was p CRYSTAL RIVER UNITED METHODIST CHURCH 4801 N. Citrus Ave. (2 miles north of US 19) 2nd Annual Community Easter Egg Hunt & Picnic All are invited afturday Evenris FREE March 15 - 12:00 NOON 5:00 p.m. , Meal tickets are $6.50/adult & $3.50/child (under age of 12) available between worship services on Sunday or by contacting Fancy Taylor at 352-563-1147 during the week. -LME DISCUNTSiil FULL SETS Irons & Woods MENS AND LADIES $8999 ORLIMAR ZX-CB Graphite Irons 4-SW SOriginally $449.99 1499e SPCA BONUSD DICUSNAWIDEVAIET Headcovers........ $1.99 Steel Irons..........s3.99 Golf Towels ......... 3.99 Golf Gloves......... $3.99 Golf Balls (doz) ...*4.99 Graphite Irons.... $5.99 Chippers..........*14.99 Hybrids ............*29.99 Exotic Putters..$29.99 Pull Carts.........*39.99 Lite Golfbags...S29.99 Square Drivers.*49.99 U EdeQ rn L GOLF DIVI$DER GOF BAGS RY w Ig IF-Fww I, N .- I. NEWJuipig Bazookal Tor ro Wod a very popular and well liked teacher who also coached soc- cer and basketball for Knapp. Mr. Lee had a nickname for everyone. He enjoyed his career immensely Mr. Lee-enjoyed being a bas- ketball referee for many years. He spent his summers on the beach and was active in soft- ball, basketball (Rico 10) and golf. He was an avid Harley- Davidson enthusiast and belonged to the Crystal River H.O.G. in Crystal River. He moved to Florida in 2006 where he built his dream home, relaxed in his indoor pool and loved the freedom of riding his 2007 Road King Classic Harley year round. He will be dearly missed as father, grandfather, brother, compan- ion and friend. His spirit and passion for adventure will con- tinue on by all who knew him. Survivors include two daughters, Elizabeth Lee (Johni Blakewood) of Phoenix, Ariz., and Stephanie Lee (Andy Reyna)! of Michigan, City, Ind.; son, Josh Lee; grandchildren, Trinity, Gage, Sophia and Julia; his significant other, Criquett Alvarado; father, Harvey Lee; brothers, Jerry Lee and wife Jeanne and Wilton Lee and wife Valjean; sister, Diane Foldenauer and husband Don; aunt, Dot Jordan, all of Michigan City, Ind.; and many nieces, nephews and cousins. Numerous friends and stu- dents also enriched his life. Carlisle Funeral Home, Michigan City, Ind. Cynthia Lloyd, 46 INVERNESS Cynthia Lauren Groom-Lloyd, 46, Inverness, died suddenly on Thursday, March 6, 2008, at her home. Mrs. Lloyd was born May 11, 1961, in . Miami and moved here in r - 1993 from Homestead. She was a homemaker Cynthia and her enjoy- Lloyd ments in life were fishing, spending time with her faniily, friends and grandchildren, NASCAR and she was an avid Dale Earnhart fan. She was Baptist Her father, Lawrence Groom, preceded her in death. Survivors include. her hus- oI VU Funeral Home With Crematory ANNE FISCHER Private Cremation Arrangements GUINEVERE REED Private Cremation Arrangements THERESA PALLESCHI Services in Schenectady, New York Bond Funeral Home HERBERT WILLOUGHBY Private Cremation Arrangements JAMES J. LUCENTE Private Cremation Arrangements CYNTHIA GROOM-LLOYD Service: Sunday, 3pm Chapel 726-8323 . band, Herbert J.R. "Blondie" Lloyd; two sons, Christopher Groom and wife Rebecca and Joshua Groom both of Inverness; one daughter, Jennifer Green and fiancd Jason Boyer of Floral City; one step- son, William Lloyd of Floral City; one stepdaughter, Vera Lloyd of Floral City; her mother, Janice Groom of Inverness; one brother, Lawrence Groom of Floral City; one sister, Dawn Groom of Floral City; two grand- children, Christopher Groom Jr and Adrianna Groom; and sev- eral nieces and nephews. Chas. E. Davis Funeral Home With Crematory, Inverness. Charles Minton, 72 DUNNELLON Charles Ronald Minton, 72, Dunnellon, died Thursday, March 6,2008. -A .native of Florida,- he.- was born in Tampa on Sept 14, 1935, to William Holland and Nettie Gardiner Minton. Mr. Minton spent four years in the U.S. Army and was hon- orably discharged in 1956. He received many medals and an expert infantry badge. He was an electrician and worked as a lead electrical superintendent for Bechtel Corporation for more than 30 years. He worked building nuclear power plants in many different states, Cairo, Egypt and in the Virgin Islands He was a longtime member of IBEW Local 518 in Globe, Ariz. Mr. Minton was quite humor- ous and liked telling jokes. He was very good at playing pool. He enjoyed playing golf and at a young age he was a caddy for Babe Zaharias when she. played in Tampa. He was known to his family and many friends as "Popa." . Mr. Minton was preceded in death by his parents, seven sib- lings and his wife of 50 years, Vera Minton. Survivors include his children, Robert Minton of Maryland, Ronald Minton of Arizona and Pamela Minton Herbert of Dunnellon; grandchildren, Leah and Jason Holmes of Dunnellon, Tina Johnson of Dunnellon, Michael and Anna Herbert of Crystal River, Laird and Anna Minton of Maryland, Jennifer Shilling, Janis Minton and Kayne Minton of Arizona; and great- grandchildren, Marannda Johnson of Dunnellon, Wyatt and Travis Shilling, Dannakah and Elijah Minton of Arizona. Roberts Funeral Home of Dunnellon. Funeral NOTICES Josephine Clinton. Friends are invited to services at Fero Funeral Home, 5955 N. Lecanto Highway, Beverly Hills (352) 746- 4551 at 11 a.m. Thursday, March 13,2008. Visitation will be from 7 p.m. to 9 p.m. Wednesday, March 12, 2008, at Fero Funeral Home. Frederick N. "Fred" Lee. Services will be conducted at 11 a.m. Monday, March 10, 2008, at First Christian Church, 11th and Cedar St., Michigan City, Ind. Visitation will be from 3 to 7 p.m. Sunday, March 9, 2008, at Carlisle Funeral Home, 613 Washington St., Michigan City, Ind. and Monday from 10 a.m. until service time at the church. Burial will be at Swan Lake Memorial Gardens, Michigan City, Ind. In lieu of flowers, con- tributions can be made to the Fred Lee Memorial Fund c/o Horizon Bank, Michigan City, Ind. To view his tribute, sign the guest book or leave condo- lences, visit carlislefh.com. Cynthia Lauren Groom Lloyd. A celebration of life memorial service will be conducted at 3 p.m. Sunday, March 9,2008, from the Chas. E. Davis Funeral Home of Inverness with the Rev. Doug Alexander, pastor of the Church Without Walls Church, Inverness. There will be no viewing hours at the funeral home. In lieu of flowers, memo- rials are suggested to the Church Without Walls, 1140 Turner Camp Road, Inverness, FL 34453. ooPj rlf 726-2271 N HFI'NFk-\lI HPI F) I- I 888-'HOOt PER 1-0- C .. (kE\I uk'. xi wwwHoopcrer.kiffoflo.AH You :.e Invited to i complement ny .nd tnform itje workshop th.iu wil provide vluible nforma.iu:n n on free and sunplc-to-uwe insuuments tor funeral, cremmi..n or cemetery planning, ind introduces exclu-ive D ignir M em no: d' B enelit. ",, During die present.uon, p.tucip.intsn ml . complete ti conidcntid pi inning form, .1 copi of which should be kept with ,\out rcrher -: important funilv documents ,. ProudlY presented bi / i I- -mrac D ignity7 Dig nit% lemorial.com A Fero Funeral Home 5955 N. Lecanto Hwy., Beverly Hills Please call to accept 352-46-29-5 or 352-'464646 O/S HdcoverSet...$8.99 Putters................$9.99 Steel Wedges .....*9.99 Steel Woods .......$9.99 Graph. Wedges..$l 4.99 Graph. Woods.... 14.99 PACKAGE DEALS & BOX SETS Best Selection 4 Price Ever! SIrons, Woods, $ t 99 SPutter, Bag, Etc. 1 9 &u ' I OlRITT TAwRIES CITRus Coum-y (FL) CHRONICLE AA qArTTRFIXV MARCH 9 2008 UP ViscO'qef I CITRUS Col r~m (FL) CHRONIC SATURDAY, MARCH 8, 2008 7A CASHL . CAH * NO WAITING * NO OBLIGATION * NO MAILING * NO GUESS WORK IE BUY!/ & S/ n A mE E.EAk AA ER GOLD * 10 Kt. Coins * 14 Kt. Watches * 18 Kt. Ingots * Any Carat Dental * Bullion Bars Foreign Any Gold Jewelry PLATINUM * Rings * Bracelets * Necklaces Any Platinum Estate Jewelry Rolex Cartier All Gold Watches PAY BIL HIEGL IS TA ALTMEHG STT3 IESDm2 YASI NENS FEWRIEDA 3850 E. Gulf to Lake Hwy. (Next to Ford) Inverness SILVER * Dollars * We Need Coins '64 & Before * Sterling Tableware * Tea Sets DIAMONDS * Any Size Any Shape Any Color * Mounted or Unmounted * Rings, Pendants, Necklaces & Bracelets EWELERS 726-7780O I SATURDAY, MARCH 8, 20o8 7A "I F CITRL5 Cot :vn- (FL) Cimavicj W AL UmKIJA, l-V--JL. H8 0, a&LX.ot THE M ARKET IN REVIEW uyfl MOST ACTIVE ($1s OR Mo Name Vol (00) Last Chg WAMut 1087929 1071 -105 Citigrp 985029 20.91 -.26 AmbacF 746241 9.50 +2.08 Annaly ,628795 15.00 -.81 GenBEec 560842 3223 -.63 GAINERS ($2 OR M) Name Last Chg %Chg AribacF 9.50 +2.08 +28.0 CBRE Rit 3.54 +.54 +18.0 Orbitzn 5.77 +.87 +17.8 CrystalRiv 10.00 +1.35 +15.6 AlescoFnd 2.32 +.31 +154 LOSEmS ($2 o RE) Name Last Chg %Chg. ThorribpfF 3.35 -2.12 -38.8 Reddy&e 15.38 -7.13 -33. ThombpfE 2.82 -1.18 -29.5 ThonmbpfC 3.19 -.94 -22.8 Fremnt pf 2.77 -.75 -21.3 Advanced Declined Unchanged Total issues New Highs New Lows Volume 1.148 2,011 92 3,251 9 350 4,440,975,918 MOST ACTIVE (5lmoist Name Vol (00) Last Chg SPDR 2856192 12971 -1.35 SPFnd 1981665 2432 +.05 iShR2Knya1041361 65.96 -.21 PrUShQQQ 548201 55.47 +25 PrUShS&P 456180 68.22 +1.10 GAINERS (2 2 oni) Name Last Chg %Chg ZBB En n 2.90 +.45 +18.4 WinlandEl 2.36 +.26 +12.4 BerklR pf 24.50 +2.25 +10.1 Lannett 3.00 +26 +9.5 SulphCo 3.95 +.33 +9.1 LOSERS (S2 OR tonw) Name Last Chg %Chg IlndiaGC 420 -1.47 -25.9 Millindaun 525 -1.75 -25.0 TravelCIs 7.95 -21.8 IndiaGCun 5.00 -120 -19.4 GIblScpen 2.82 -.51 -15.3 Advanced 470 Declined. 1,056 Unchanged 86 Total issues 1,612 New Highs 28 New Lows 134 Volume 1,339,059,729 MOS ACTIVE(1 O ORe)a Name Vol (00) Last Chg PwSns 0002205919 4207 -10 Microsot 767071 2' 87 +30 Intel 719639 2007 .20 Cisco 694927 24t11 17 Oracle 460224 1900 -23 GAIN (RS (2 o aom) Name Last Chg %Chg EngyFocus 435 .125 .403 GraraTrs 200 +28 ,163 Sr.thWes 495 .687 +157 EnsignGpn 865 +113 150 Synutran 3026 +392 .149 LOSERS ( o MORE) Name Last Chg %Chg Ang'oDyn 999 -699 -375 USAutoPtIs 294 -171 -368 wstaPh 2.71 -124 -314 PeopleSup 820 -320 -281 Noleinth 758 -192 -202 DIARY Advanced Declined Unchanged Total issues New Highs New Lows Volume 1.121 1.813 135 3.069 7 426 2.311.309,756 rw" we the 825 most active stocks on the New YorK Stock Exchange, 765 most active on tMe NaedeqNatorna Maritand 116 most active on the American Stock Exchange. Stocks in bold are worth at least $5 an changed 5 percent or more in price. UndeI nin tor 50 most active on NYSE and Nasdaq and 25 moit active on Amex. Tables show name, price and net change, and one to two additional fields rotted through the week, as follows: DW. Crent annul ddend rate paid on stock. based on latest quarteitor-semlannuatdeotarallon. unless ohermwse footnoted. N1l:':Stocks appear alphabetlcay by the company's ull name (not Fta abbreviation). Naies consisting of initials appear at the beginning of each lettes list: Ladt: Price stock was fVading at when exchange dosed for the day COt Liasr gain for the day. No change indicated by... 0..I 1 LO0 A. CW, a cm% 'ca MME MftatsMD. o- F% W aNVtani. nbJ-ft ar es beevaided tar aderntion by PE 91I. M S~ onte UneAmaj i Exaaales~ Emrping Company Markelpiac. g DedNde* and ears- '&z:y. 'anr! W ~i~k1fnwb*"Al*otl~WO -Prelaped sloidilssmapr Pebraenceapp - %lm-*Alpft.4FM* loedand asitethbnd'. no PE cakpifii- a.We"npaid, but ame not Induda b-Ad wdrl =Lk a. k~ -Aomoutciaroeadi or paid In woa 12 monibs I loeedby moug rwer4cnhionlod annauncemnuif.I fro_ L slim at d pao gpbr sop. ~no reglar rIte. I 5..an ofdMdarndspal tids year. 0 orateg*J d~e~Wu4. tk- Qadarad or PsA thdi syear. a ounrladna 43 ACE L4A1,1 &BisVNE Indathwlw .. mOCzW annial rate,. n asda ecreasdeaad by moat ACM018 11 W 706st *MA" awwe~&Lapu-buraidw. .Iltc.tandarnual rita ro a kk% wWnij iot ,i 01 i. srD~adrpt in preoadwg12 monftplus aoidolv~d nd f- Paid inStock .ea " %a Associated Preas. Balsa figures are unotficiaL Name DIv YId PE Last AT&T Inc 1 60 BofArr. 2 56 CapCtyBk 74 Cligrp 1 28 Disney 35 EKodak 50 EoonMIl 140 FPL Grp 1 78 FoidM GenElec 1 24 GnMou 1 00 HomeDp 90 Irnel 51 IBM 1t60 Lowes 32 McDnls 1 50 Microsofl 44 18 3501 11 36 74 15 24 92 29 2091 15 30 76 7 1683 11 8249 18 6029 5 78 15 3223 21 96 11 2588 17 2007 16 11394 12 2240 27 52 27 16 27 67 YTD Chg Chg -01 -158 . 22 -110 - 64 -11 - -26 -29 0 -49 -47 - 13 -230 -202 -120 - 25 -11 - 16 -1.1 1 -63 -13 1 -39 -118 . 12 -39 .20 -24 7 .14 2 .54 -23 -10 -73 -11 3 * 30 -217 Name Div YId PE Last P,?r,p, 80r P-mr.9rcLfr 21 Ur..FuziJ 1, Vei..onCmi 7 2 60altktsi195 65aigm n 38 YTD Chg I.Chg -'2 -368 - 12 -38 8 -1 14 .2. - -142 -139 -139 .21 -466 - 9.7 -10 . 12 8 - 0 -197 - 19 -284 -11 -.7 INDEXES 52-Week High Low 1419810 548705 555 71 1038717 2.56220 286151 1.576 09 85648 15.93899 11.63482 Dcw Jones lrdu0trAls -14670 11.63482 4.032 88 46068 8.34362 1,46047 2.20254 1,270 05 65000 12,79891 Name Dow Jones Induarianis Dow Jones Transponalion Dow Jones Utines N' SE Composie Anrre Index Na.daq Composlie S&P 500 Russell 2000 DJ Wiaonae 5000 Net o YTD 52-wk Last Cha Cha %oChq o Chg -146 70 -3807 -1 75 -89 14 -30386 -8 0: -1 097 -2 67 -l 12 58 - I0 3-1 -I 76 -1008 -1092 -5 69 -16 .4 -11 92 11 893 69 4 490 24 478 86 8 676 27 2 72 59 2 212 49 1 29'3 3 660 1 13 0241 N EWYRKSTOKECANG DIv Name Last Chg 200 ABBLUd 25.41 +.06 1.08 ACELid 54.91 +.52 AESCop 17.78 -27 .961 ARLAC 61.6 -.82 1.81 AGLRes d34.55 +.11 20 AKSteel 54.64 +34 .. AMR 11.43 -29 2.30e ASALtd 87.85 -138 1.601 AT&Tlnc 35.01 -.01 .06r AU Opton 19.41 +.39 1.42e AXA 31.67 -48 1.441 AbtLab 51.04 -1.05 .70 Aberfte 72.79 -.85 ... Abiown 10.00 -.08 .421 Accenture 33.75 -1.02 1.03e AdamsEx 12.48 -.07 AMD 6.49 .83e AegoA 13.99 -.06 ... Aeropss 26.58 +.41 .04 Aetna 46.94-1.69 ... Agent d30.07 -.07 .181 Agniog u72.50-1.95 .11 Agkmng 7155 -1.03 1M52 AProd 8768 -353 2.01 Aircte 416.98-1.18 A.48 A 42.76 -M84 AlrTan 6.61 -.04 .. AlskAir 22.42 -.48 ... AlcaelLuc d5.51 +.10 .68 Aloa 36.60.-1.77 .60 AlgEngy 4925 -.62 .72 AegTch 70.07 -3.64 20 Allergans 55.08 -1.09 1.721 Allete 35.02 -37 AD... Alata 45.50 +24 1.02a AliBGlHi 13.09 +.13 .60a AliBInco 821 +.01 4.33e AlSBem 58.44 +1.47 .81e Alanz 16.92 -21 2.0a AslledCap 2022-1.23 ...AldWaste 10.13 -.18 1.64f Allstate 47.03 +32 ... AlphaNRs 40.95 +25 Alphama 26.61 +1.43 3.00 AIlias 74.52 +.55 .87e AlumChina 4520 -51 .04m AmbcF +9+2.08 ... Amdocs d28.54 +21 254 Ameren d41.49 -17 222e AMovll. 57.92 +.08 '.60 AmAxie 2228 +2.13 .40 AEageOAutd16.94 -.62 1.64 AEP d40.64 -.56 .721 AmExp d41.53 +24 .76 AFncRT 7.13 +23 .80 AmlntGolf d428 ...8 ... AmOriBio 9.00 -.15 .90 AmSIP3 10.78 -.18 ... .AmTower 36.79 -39 .. Ameilct 11.57 -.16 244 Amerigs 31.00 -.52 0 Ameriprise 48.78 +S55 S3 AmeriBrg d41.13 +.87 36 Anadarko 63.81 -.38 .72 AnatogDev 2737 +.65 .19e AnogldA .300 -.98 1.32 Anhewr d45.72 -37 1.04e Arnal. 1.00 -.1 .481 Anwo 6.00 -23 .60 AonCorp 4024 +.12 .60a Apac'e 11622 +.45 2.40a Apnv 33.32 +39 .17 AppBo 3351 -.12 50 AquaAm 18.34 -.08 ..Aqua 321 +.09 1.501 ArcelorMit 74.76 -3.14 28 ArdhCoal 48.14-1.568 .521 ArchDan 45.01 -1.26 .84 AshfodHT 6.30 -.01 1.10 Ashland 4420 -.36 .68 AsdEstat 9.67 +.18 .18 AssuredG 23.99 -.87 1.04 AsoilaF 24.84 +.01 1.30 ATMOS 25.78 -.09 .. AutoNain 14.03 +.15 1.16 AutoData 3921 -.93 1.64 AveO 47.87. +.02 w01 Avon 36.86 -120 1.84 BB&TCp 30.09 +27 1.12e BHPBUt 7088 -2.47 20 BJISvcs 24.68 -22 ... BJsWls 33.86 +31 ..BMCSft 33,83 +.34 2.73e BPPLC 63.86 +.10 2.48 BRT d1121 -.03 .52 BakrHu 7.87 -1.88 .40 BalOp 43.71 -38 .. Baech 353 -80 .83i BcBradess 30.34 -.48 .92e Bncoltaus 24.76 -58 .94e BcoSantand 1729 -.18 256 BkofAm 36.74 +.22 .96 BkNYMel 43.60 +23 2.68e Barclay 3425 +20 .60 BamesNb 26.61 +.35 ... BaPhm d46.90 +.6 30 BaridG 50.42 -1.30 .7 Baster 57.78 +'40 2.16 BaylxEg 21.19 -.08 128 BeaSt 70.08 +.18 BeeringPt 1.77 +.04 .40 BeeaHmlf 7.03 +.4 1.14 BctDck 868.10 -.59 .20 Berley 28.06 +.50 .52 BestBSy d39.7 -.97 ... Bigas 20.76 +.74 1.40 BtHilNsp d35.44 +.4S 24 SkFLOS 14.64 +.03 .. Bactnn d1458 -.47 .57 BtckHR 17.70 +.02 .. Blocbt 2.72 -.01 .58e BlueCp 4.73 -.05 1.601 Boeing 76.60 -2.91 .44 Bouders dB.0 -.17 .. BostBeer 34.15 -24 2.72a BosProp 820 +221 ... BosltonSi 1235 -.33 .60 BoydGm d18.66 -.2 1.24 BrMnS d218B +.11 2.00 Brookdale 25.18 +.63 .56 BkddPrs 18.19 -.05 .60b B rnwick 1539 -.19 .68 BungeLt 1030-1.94 128 BuDASF 88.02 +.74 .16 CAInc 2221 -28 ... CBREls 18.48 +.08 1.00 GBSB 21.99 -.11 A0I CFkHds 114A00&U 2.16 CHEngy d35.32 +24 .04 CIGNAs d4289 -.33 1M CTG 162J+1206A 4M00 CMEGrp 491.41-14.04. 361 CMSEng d43.76 -.07 .641 CSS hids 34.69 .43 .60 CSX 47.09 -.73 24 CVSCare 38.01 -29 .12 CabotOs 49.43 -91 28 CalGolf 14.65.-.04 ... Calpinen 18.02 -22 .241 Cameogs 37.06 -154 ... Caeons 3926 -1.36 W8 CampSp 3158 -.14 .40f CdnNRsg 74.02 -1.6 1.501 COn 4336 +.86 2.40 Cptrce 13.68 .+.08 1.28 CapMpf 12.60 +25 .6 Cap l11.90 +.60 .48 CaIdnHlh 55.67 +.15 ... CaMaxs 17.84 -.69 1.60 Canilal 38.42 -.12 1.44 Cafepir 69.84 -.91 .16 Celanese 37.6 -.46 Cdesftg 6.43 -.03 .75e Cmesx 25.15 -.53 1231 Cemlgpft 18.72-1.0 .731 CenlrPnt 4d1420 -.06 .16 Centex 20.40 -.22 271 CetyTel 3421 -.24 Chnp 827 +.13 .. hecpnt 23.90 +23 20 Chemtura 7.68 -.31 .27 CesEng 44.74 -.33 2k2 OChteon 85.26-2.54 .. Cas 7.42 -.14 .0 Chlmeran 413.93 +26 C271 Chna~Jfe 53.82 -.61 1.120. CinaMble 68.69-1.43 23e ChinaUni 21.96 +.77 ... CholePt u4825 -.08 1.16 ChuOb 49.62 +.47 ... unTaln 24.36 -.47 c.. 4.06 -.01 .16 cy 3.84 -.12 .721k 1.41 +.06 1.28mCiliro. d20.1 -28 C p... 4l 45.50 -.78 1.00 CConm 10.64 -.11 .75 CleWaChan 34.14 +.06 .701 ClevCWis 112.41 -5.37 .. Cbach 2846 -26 281 CocaCE 24.17 -.18 1521 CocCI 58.85 -25 .C oeur 4.70 -.13 1.601 CogPal 74.89 -81 ...C4Ocrd 148 .. .761 Colgp 1126 -.02 2.64f Coameutca d325 +1.09 .52 CmcSNJ 36.12 +.30 .481f CmdMbs 28.00 -1.01 .4e CVRDs 33.14 -97 34e CVRDpfs 27.4 -.86 .CoipW 4151 -1.44 .40 Con-Way 45.65 -85 .76 ConAgra 21.2 -28 1881 ConocPtl 7836 -1.78 .40 ConsolEngy74.05 -3.40 2341 ConEd d40.85 -.06 ... C d1831 -25 1.91f ConslaEn 86.78 -.49 ... CAiB 23.47 -.32 Crmgys d13.1 +.03 .06 C d3320 -.56a 1.001 Coopers d945 -.43 20 ... 22.B .33 A0 CnNdFn -&507 -.13 CoventryH d4925 -123 .4 Covilenn 41.46 -AS 2.66 CredSuss 4784 +.12 .. CwnCe 35.0M -32 .50 Crinmts 46.14 -2.06 ... CpSem 2022 - .64 DCTIndl 846 +.41 .78 DNPSelct 10.90 -.07 1.101 DPL d24.97 -.04 .60 DRHIorn 1296 -.19 2.12 DTE d3952 -.03 2.00e DeiDaer 8180 -.44 .12 Danamer 72.07 -.96 .72 Daden 2825 -.75 15.00eOeenFdssd20.74 -.33 1.00 Dews_ 8322-463 1.68' Deeldp di.9 +.03 .16 DolMnte 9.00 -.07 .. DeeAirn 12.89 -.61 ... Denbys 3124 -.73 2.761 DevO& 37.11 +.59 .64f DewonE 100.56 -127 .50a DieOIfs 12026 -1.89 ... 26.59 -.50 1.0i 37.51 +.46 .16 Dilards 16.37 -.05 24 Discovern 14.15 +.35 .35f Disney 30.76 -.49. 1... 44.51 +1.02 I1.58 D s d39.10 -29 ... Domtarglf 6.23 -24 60 Dover 40.91 -.09 1.68 DowChm 36.18 -.86 .48 DoneyFnd 19.78 -1.23 1.64 DuPont 45.00 -1.47 .88 DuieEngy 17.14 -.12 1.92 DueRlty 21.56 +.18 ... yo 15.77 +.06 DO... O 7.45 -.03 .E-H en 14.49 -.53 ... EMCCo 15.03-.03 .48f EOGRes .116.46 -1.15 1.76 Eastinm 6330 -1.70 .50 EKodk 168.83 -.13 2.001 Eaton 78.71 -2.17 .52 Ecdab 45.00 -50 122 Esonlnt 49.65 -.05 .18 SPasoCp 16.05 +24 Elan 19.74 -1.04 .20 EDS d16.71 -.01 2.75f Embarq d408 -.20 1.20 EnersonE -49.46 -123 128 Empist d19.655 +.01 3A0 EnbEPirs 48.55 -.67 1.801 EnCana 76.91 -.59 .. nceAocq 37.14 +1.10 .. EnPro 31.02 -.03 .10 ENSCO 60.99 -.03 3.00 Enegy 105.48 -1.33 1.93 Eqtyft 3721 +.50 .551 EseeLdr 43.73 +.13 2.001 Exeln 77.99 +.01 1.00 ExtraSpce 15.05 +.08 1.40 Eeoo tl 82.49 -2.02 ... FMCTchs 55.77-1.51 1.78f FPLGnp 6029 -25 501 l 18.80 -.60 1.40m dasileMaed22.77+1.07 2.06 FMaeplS d24.88 +.06 .40 FedExCp 86.70 -2.05 24 FedSign 11.88 +.30 2.00 Feuregs 21.44 -57 .58 Fero d1422 -36 120 FdlNFRn 15.79 -.19 20 FidNInfo 39.00 -1.09 1.62M FsFinsFd 9.14 +.04 80m FstHrizon 16.32 +.32 .4A8 FslMabldd10.40 -.53 1.60a FffrEnEq 14.74 -19 2201 FrslEngy 68.42 -47 1.001 Fuor 138.51 -5.79 .801 Footlodk 11.24 -37 ... FodM 5.78 -.16 2.0e FrdgCCTg u53.07 -1.32 ... ForeLab 38.20-1.05 ... FOeOi 4625 -.77 1.68 Fortune8 63.92 +.11 .20 FdiCoal 54.42 -1.3 .80 FrankRe 89.73 -.47 1.00 FredMac" di1.65 -49 2.09 FredMac pl25.00 +.08 751 FMCG .88 -4.46 ... FrentGn d31 -.14 ... FiedBR d1.90 -.06 20 FiontierO 32.10 -.83 1.0of GATX 35.06 -.48 ".10 GLGPPts 1320 -.34 .80a GabediET 8.57 -.09 GabHtthW 6.85 -.01 .72 GabUil 9.12 +.00 GarneStops 42.68 -.68 1.60 Gannett d28.90 -.18 .2 Gap 19.58 +21 ...Genentch 79.39 -.10 1.40 GenDynam 82.81 -.41 124 GenElec d32.23 -.63 2.0 GnGathPrp 33.73 +.64 1.56 GeoMis 54.73 -.20 1.00 GnMoL 9 21.86 -39 1.56 GMd33 18.15 -1.30 .40 Genworh 21.92 -.14 150 GaPwS-44 25.03 +.04 .68e Gerdau 30.92 -.62 2.14e GlaxoSKn 42.41 +.30 .13e GoldFLd 15.86 +.11 .18 Goldcpg 42.77-1.75 1.40 G manSd6007 +1.42 .90 Goodrich 60.77 +.05 ... Goodear 25.61 -.67 ... raech 14.41 -1.07 .52 GraniteC 27.96 +.92 1.66 GtPlanEn d24.66 -.09 ... Griffon d7.89 -.04 .66e GpTelevisa 2122 .52e GuanigRy 2954 -.9 A4 HRPTPrp d6.69 -.03 4.50e HSBC 76.21 -.30 .36 Halibrn 37.99 -.65 .92e HanJS 12.93 -.08 .5Ma HanPIDv2 9.36 -.14 ... Hanesbrds 26.71 -.76 .401 Hanoverins 43.08 +.31 120 HarleyD 35.05 -.76 ... HarmonyG 13.47 -.01 2.12 Ha fdFn d67.01 +.43 .01 Hasbro 25.88 -.07 1.24 HawaiBE 22.84 +.08 2.64 HICtfREIT 40.89 +.87 ... HIMgmt 5.33 -.01 1.54 HlhRtty 23.24 +.58 ... HeM 11.40 -49 152 Heinz 43.85 ... HelixEn 33.28 -.80 .37e HelnTel 13.88 -.36 20 Hercules 17.60 -37 1.19 Hershey 35.05 -.57 ... Her d10.63 -.07 .40 Hess 91.69-1.30 .32 HewletP 47.31 -.47 1.70 HghwdPrp 28.29 +69 .90 HomeDo 2588 +.12 1.10 Honwwlln 56.56 -.92 .. Hospra 42,09 -.64 3.08 HospPT 35.01 +.51 .80a HostHotI 16.39 +.16 HomnnE 850 +.41 ... Humana 6352 -2.38 .40 Huntsmn 23.84 -.41 .06m IAMGIg 7.84 -.17 .50e ICICIBk 43.17-2.21 .12 IMSHIth 22.02 +.17 2.09e ING 31.90 -.20 3A8f IStar 15.8 +2.00 S ... IITEd d50.38 -.96 120 Idacrp d29.68 +.49 137 Idear 4.93 -.32 1.12 ITW 47.13 -.67 .64 malion 20.98 +.07 .. Indymac 4.82 -.07 ... Inneon d7.41 -.04 .72 IngerRd 42.87 +22 IngrmM 1522 +.19 2.68 IntegrysE d44.88 +.03 ... IntntlEx 131.89 -.55 1.60 IBM 113.94 +1.42 .56 IntlGame 43.61 -.96 1.00 IntPap 31.31 -.72 .. Interpublc 824 -.08 .37e Invesco 22.31 -.45 .. IronMtln 28.10 +21 JCrew 4058 -1.34 1.52 JPMoaCh d3756 +.19 28 Jabil d12.12 -.25 .. JacobsEs 76.02 -2.45 .04 JanusCap 22.10 -.28 .50 Jefleries 16.61 +.05 1.66 JohnJn 61.51 -1.12 .52 JohnsnOCls 32.16 -.62 .56 JonesApp 12.85 -25 1.00 KBHorme 22.16 +.11 .20 KBRInc 31.91 -.12 2.00 KKRFnd 13.00 +.20 .60 Kaydon 40.39 -.64 1.24 Kellogg 49.45 -.39 1501 Keydorp 20.94 +.44 2.12 KimbClk 63.52 -.41 1.60 Kimco 34.05 +.70 368f KindME 57.78 -.83 ... KingPhr d8.90 -.12 .08 Kinrossg 25.11 -120 .. Kohs 42.83 +20 ... KoreaElc d1533 -.58 1.08 Krafl 30.61 -.17 ... KrispKrm 2.56 .30 Kroger 25.66 +.48 LDKSoln d22.49 -1.78 .. LLERy 2.10 +.05 LSICorp 4.99 -.12 1.56 LTCPrp 24.20 +.47 .16m La2Boy 8.30 1.50 Ladede 33.95 +.18 ... LVSands 79.04 +.69 .96 LeggMasond63.23 -.34 1.00 LeggPlat 15.92 +.01 .68 LehmanBr d46.36 +33 .64 LennarA 15.71 -.34 .. Lexmark 32.01 -.08 .59e LbtyASG 4.68 -.07 1.88 UllyE 49.70 +.02 .60 Umited d14.51 -.31 1.66 UncNat 48.55 +.12 28 undsay 70.7-4.47 S23 UzClaib 16.56 -.49 26. UoydTSB 34.15 +1.14 1.68 LockhdM 103.18 -.97 .25 Loews 440.96 -24 .60 LaPac d10.37 -.47 .32 Lowes 22.40 -.23 2.80 M&TBk 77.29+1.37 .34M MBIA 11.99 +.39 1.00 MDC 36.65 -.79 .58 MDURes 25.56 -.61 .. MEMC 74.11 -.91 .. MFGlobin 18.50 -+.11 .- MFAMI 7.53 +.77 .49 MCR 823 +.01 .10 MGIC 1350 -.91 ... MGMMir 59.53 -1.83 .52 Macys 23.41 -.15 .53p Madeco 10.85 -25 1.44 Magnalg 72.04 -.33 1.60 MaguirePr 21.00 +01 .08 Manitows 39.00-1.70 .74f Manpwl 54.96 -2.94 .96 Manulifgs 37.00 -.46 .96 Marathons 51.46 -.49 .30 MadntA 33.46 -.07 .80f MarshM 25.10 +20 1.24 Marshllsn 21.91 +.08 ... MStewrt 7.28 +.37 .92 Masco 18.54 +.32 .20 MasseyEn 37.03 -1.87 .60 MasterCrd 192.51 +2.52 MatenalSd 7.46 +.07 .75I MaNtel 19.38 +17 ... McDermls 53.31 +.27 1.50 McDnlds 52.27 -.73 .881 McGrwH 38.89 +.14 .24 McKesson 57.40 -.60 .92 MeadWvco 25.67 +.01 ... MedcoHifs 41.84 -.76 .50 Medtmic 47.60 -.76 1.52 Merck d41.75 -.64 1.40 MerilLvn d45.19 -.67 .74f MelLife 56.47 -.20 .. MerPCSn 16.20 -.01 ... MironT 6.88 +14 2.461f MidAApt 47.45 +1.41 .. Midas 15.99 -.06 Millipore 69.08 -1.57 .18. MIndrayM 30.99 -2.27 ... Mirant 37.02 -.22 ... MitsuUFJ 826 -.15 ... MobileTel 80.30 +.45 .64 MoCoorBs 50.57 -.52 .20 .MoneyGrm 2.58 +.05 .70 Monsanto 106.46 -7.96 .40f Moodys 35.97 1.08b Moran d39.86 +.19 8.37e MSEmMkt 21.83 -.37 ... Mosaic If 104.06-7.39 .20 Motorola 9.82 -.12 .75 MuiphO 79.74 -2.06 ... Mylan d10.60 +.05 .. NCRCps 22.65 -.41 NRGEgys 42.21 -.02 .40 NYMEX 96.68 -2.70 1.00 NYSE Eur d60.51 -1.09 Nabors 31.61 +.06 .84m NalCity 14.61 +.09 1.24 NatFuGas 48.01 +.40 2.98e NalGrid 72.19 -.74 .. NOlVarcs 59.96-2.48 1.42 NaRelPrp d2059 +.66 24 NatSemI 18.25 +1.91 Navleq 7323 -.84 .16a NewAm 1.58 1.121 NJRscss 29.82 -22 1.00 NYCmtyB 15.93 +20 .84 NewelRub 22.35 -.01 .40 NewmtM 49.57 -1.35 NwpkRsft 4.58 -.03 .12 NewsCpA 18.22 -29 .121 NewsCpB 18.69 -24 .10 Nexengs 31.75 -.06 .92 NiSource 1728 +.03 1.86 Nicr d33.01 +.27 .92 NikeBs 58.24 -1.34 ..99 Cents 8.87 -24 .16 NobleCps 48.4 -1.60 .48 NobleEn 76.57 -1.87 .78e NoldaC 33.05 -.75 .641 Nordstrm 32.75 -225 1.16f NorflkSo 51.94 -.41 Nortellfrt d6.75 -53 .80 NoestUt d24.76 -.09 1.48 NorthropG 79.01 -.61 NwatAirn 13.13 -.73 1.47e Novaris d47.89 +.16 1.30 NSTAR d29.87 +.04 1281 Nucor 66.64 -1.86 .65 NvFL 12.56 +.08 .70a NvlMO 13.49 +.14 1.14 NvMulSI&G 10.55 -.13 .98a NuvQPf2 11.03 -.10 1.39 OGEEngy 31.59 -.13 1.00 OcciPet 74.29-1.11 .. OfficeDpt d11.04 +.02 .64 OldRepub 13.09 +.11 .80 Olin 18.36 -41 .09 Omncre d17.7 -88 .60 Omnarnms 44.01 -53 4.101 ONEOKPt 60.36 -.63 .. Orbltzn d5.77 +.87 .10 OientEH 49.01 -.58 .40 OshoshCpd38.40 -27 .. Owensll 53.00 -.70 1.56f PG&ECp d37.85 +.55 21 PMIGrp 5.99 -.08 2.52 PNC 59.32 +1.17 .92 PNMRes d9.33-2.08 2.08 PPG d58.57 -2.08 1.34f PPLCoip 45.33 -22 ..PakDil d5.80 -21 .84 ParkHans 62.39 -.41 .24b PeabdyE 52.98 -2.78 2.70 g 18.85 -.05 1.761 PeVaRs 26.36 -.42 4.08 PennWstg 27.91 -.19 .80 Penney 41.00 -1.77 27 PepBoy 10.70 -.16 1.081 PepcoHold 24.38 -25 1.50 PepsiCo 69.59 -.53 541 PepsiAmer 25.59 -.56 .28 PerkEm 24.01 -1.02 1.64e Prmlan 22.50 +1.35 .52 PetroCg 47.14 -.32 .. Petrohawk 18.06 -.19 1.78e PebbrsAs 91.97 -2.04 1.43e Peiobrss 111.67 -1.86 128f Plizer d21.35 -24 1.04f PiedNG 24.41 ... Pierl 521 -.15 .78a PImcoStat 10.35 +.07 28 PioNIr 47.26 +.58 1.40 PitnyBw 34.72 +.05 ... PlainsEx 53.85 -.42 1.68 PlumCrk 39.48 +.43 1.521 Polaris 37.05 -.60 20 PobtRL 57.46 -.85 1.80 PostPip 42.33 +.50 .40 Potashs 155.34 -3.81 1.501 Praxair 79.10 -3.54 .12 PrecCastpt 104.00 -2.25 Pridelntl 34.95 -.46 .901 PrinFnd d51.68. -.35 1.40 ProctGam 65.80 -.71 2.461 PrgmsEn d41.54 -.17 .15 ProgsvCp 17.45 +10 2.071 ProLogis 52.55 +.61 .28 ProeSHIn 2.47 +.02 1.44 ProvETg 10.51 -.07 1.15f PudentI 69.22 +.41 129 PSEGs 44.94 -.08 2201 PubSI g 78.92 +1.12 1.00 PugetEngy 26.39 +02 .16 PuleH 11.85 -.34 .40 PPrIT d5.94 -.03 .56 Quanex 52.10 +.41 .. QuantaSvc 21.92 -1.17 .. QmDSS 2.50 .49 Questars 56.11 -.46 ... QksvRess 34.65 -.72 Ouklkalvr 8.77 +31 .32 QwestCm 5.14 +.02 1.84 RAITFin 5.60 -.05 ... RHDoni d5.52 +.08 .76 RPM 19.98 -.77 .25 RadioShk 16.03 -.52 ... Ralcorp 53.58 -.47 .16 RangeRs 58.55 -1.43 .44 RJamesFn d21.68 +21 2.00 Rayonier 40.67 -.75 1.02 Raytheon 63.56 -.98 1.64 Rlylnco 23.04 +.44 ... RedHat 17.32 -.14 1.8 Reddyice d15.38 -7.73 1.52 RegionsFn 20.36 +.39 ... ReliantEn 24.43 +.30 125e Repsol 31.92 -.38 ... RetailVent 6.02 +.02 .. Revlon .96 3.40 ReynldAm 62.26 +.37 .. RiteAid 2.50 -.10. .44f RobtHalf 24.68 -58'. 1.16 RockwAut. 52.04 -.95 .. RockwdH 3157 +1.855 1.48 RoHaas 52.09 -1.91 .40 Rowan .39.83 -.89 2.00 RoyalBkg 46.40 +.05 .60 RylCaji 33.17 -.67 2.83e RoyDShllA 68.62 -.50 1.86e Royce 1526 -24 1.47 RoyceplB 23.57 +.04 .921 Ryder 55.51 -.71 .48 Ryland 25.79 -.75 -.62e SAPAG 4835 +.41 1.84f SCANA 37.10 +.05 ... SKTIcm d20.72 -.45 .. SLMCp 18.43 +.67 .30e STMicro d10.90 -.15 28 Safeway 28.98 +.17 ... SUoe 37.22 -1.23 ... SUude 41.70 -.88 .. Saks dl238 -.66 ... Salesloroe 56.66-1.08 2.48e SJuanB 39.19 +379 1.51e Sanoli d36.24 -.23 .42 SaraLee d12.49 -.24 26 SchermPI 19.75 -.28 .84f Schlmbrg 85.61 -2.05 .40 SeagateT 21.75 -.03 .481 SealAirs 24.20 -.30 1281 SempraEn 52.10 -.09 .72 Sensient 26.77 -.07 .16 ServiceCp d10.34 -.49 1.401 Sherwin d50.13 -.45 1.03e SiderNacs 37.44 -.55 2.35e Siemens 123.53 -221 .32 SienPac d1226 -.18 ... SvWhtng 18.19 -.11 3.601 SimonProp 84.12 +1.76 .72 SmithAO 33.40 -.75 .481 SmithMn 61.45 -2.34 ... SmithF 2829 -.28 .60 Sotebys 28.70 -.51 1.08 SoJernd 32.62 -.03 1.61, SoulhnCo 34.29 -.11 6.50e SthnCopper112.67 -.33 .02 SwstAir 12.19 -.31 .SwsnEngy 62.83 -2.63 32 SorgnBcp 10.23 +.07 .921 SpectraEn 23.32 -.19 .. SplritAero 24.1 -1.34 ... SntNex d7.01 +.21 ... StdPac 3.75 -.08 .84 Standex 18.29 -.04 .90e StalndHI 4898 +.57 .921 StaleSIr 76.24 +21 1.53e StaoilHyd 29.94 -.71 24 Stais 24.87 +.17 ... Sten 18.60 -.84 ... StIlwtrM 17.10-1.27 .33f Stryker 62.72 -1.80 ... SturmRug 7.92 +33 3.05f SubPpne 38.83 -.42 2.52 SunCmts 19.09 +.04 .40 Suncorg 106.78 -2.05 1.201 Sunoco 56.10 -1.10 1.40 SunsnHIl d15.05 +.08 ... Suntech 34.07 -1.35 3.081 SunTrst d55.07. +.84 .68 Supvalu 28.05 +.22 .. Sybase 25.17 -.26 .82 Synovuss 11.27 +.21 .88 Sysco 27.82 -.20 1.001 TCFFnd 17.85 +29 .78 TECO d14.96 +.03 .36 TJX 31.25 -21 .45r TaiwSemi "10.07 -.10 .18 TalismEgs" 17.34 -.24 .56 Target 52.00 -.27 1.00 TeckCmgs 41.98 -.34 4.24e TelcNZs 15.24 -.16 .83e TelMexL 33.19 +.13 .40 Templelnsd12.31 -.40 .32 TempurP d15.97 +.19 .86e Tenans 46.75 -1.90 ... TenetHth 4.88 -.06 2.78 Teppco 36.28 -.25 ... Teradyn 11.90 ... Terex 64.45 -1.24 ... Terra 41.098 -3.30 11.96eTerraNiro 129.70 -5.75 .40 Tesoros d32.83 -.88 ... TetraTech 16.93 -.30 .40 Texlnst 29.30 +.10 .92 Textrons 54.63 -.49 .. Theragen 3.62 -.19 .. ThermoFis 53.57 -.23 ... ThmBet 38.15 -.40 1.00 Thomb d1.79 +.14 2.00f 3MCo 76.51 -1.44 .60 Tiflany 37.48 +.27 .25 TimeWam 14.86 -.07 .68 Timken 28.86 -.35 .30 ltanMet 17.94 -.99 .20m ToddShp 16.46 -.26 ... TollBros 19.51 -.39 .41e TorchEn 9.59 +.34 .56f Trchmrk 59.07 +56 2.31 TorDBkg 63.46 +.63 3.02e Total SA 73.66 -.55 .28a TotalSys 22.34 +05 .64 Tranes 45.47 +.03 ... Transocn 136.31 -2.12 1.16 Travelers 46.63 +.13 .16 Tredgar 15.45 +.40 2.82e TrConl 18.19 -.19 .47e Turkcell 23.01 .-.08 .56 TycoBecn 32.43 -.04 .60 Tycolniln 41.61 +.08 .16 Tyson 15.81 -.44 .. UBSAG d29.23 -.29 1.32 UDR 22.58 +.33 1.73 UILHold 29.40 +.01 ... URS 435.93 -1.37 ... USAirwy 10.99 -.57 USEC d5.24 +.03 ... UltraPtg 75.42 -.47 5.04e UUniao 129.72 -4.59 .15 UniFirst 38.29 +.12 1.09e UnilevNV 31.14 +.26 1.76 UnionPac 119.66 -1.33 ... Unisys 3.96 -.08 .11e UtdMicro 3.13 -.13 1.80f UPSB 71.96 -.08 1.70f USBancrp 30.88 -.22 1.00f USSteel 10927 -2.86 1.28 UtdTech 67.49 -1.34 .03 UtdhlhGp 45.21 -.60- .30 UnumGrp 21.76 -.07 .. ValeantPh 13.02 +.11 , .48 ValeroE 52.51 -1.01 .56 Valspar 20.06 -.88 1.30 Vectren 25.95 +.40 2.051 Ventas 40.99 +.49 - 2.67e VeollaEnv 75.43-9.76 .. VeriFonelf d16.02 +.57 - 1.72 VerizonCm 35.08 -.20 ViacomB 39.30 -.19 .33e VimpelCs 32.83 -1.06 Vishay d8.74 +.20 ... VioPart 6.11 -.17 ' 1.42e Vodafone 31.11 -.10 3.60 Vomado 81.00 +1.23 1.961 VulcanM 65.47 -1.42,. 1.37 WGLHold 30.78 +.02 V, .18' Wabash .8.05 +.26 2.56 Wachovia d27.22 -.19 c .95f WalMart 49.90 -.08 .38 Walgm 35.53 -.11 ; .20 Walterlnds 56.56 -1.18.2 .60m WAMut d10.71 -1.05 1.081 WsteMInc 32.53 -.10 - :... Waters 59.10 -1.54 .. WatsnPh 27.66 -.13" Weathfdlnt 67.26 -2.73 2.101 WeinRlt 30.96 +.79W, ... WellPoint .d67.12 -2.07 1.24 WellsFaroo 28.11 +.28 ., .50 Wendys 23.71 +.07,l 1.16f WestarEn- d22.25 +.19 1.16 WAEMInc2 12.75 +.02' .55 WstAMgdHi 5.54 -.03 . ..75 WAstlnfOpp 12.24 +.01 .. WDigilflf 30.28 -1.10 .24 WstnRefln d16.29 -.89, .04e WstnUnion 21.28 -.481 " 2.40 Weyerh 60.09 -.98 " 1.72 Whdpl 83.74+1.36 .85e WilmCS 10.04 +.24.i .40 WmsCos 34.85 -.46 ? .46 WmsSon 22.44 +.15 : 1.00 Windstm 11.92 +.04 .48 Winnbgo 20.37 -181 1.08f WiscEn 43.40 -.07 .68 Worthgtn 17.07 .-.66 1.34f Wrigley 58.57 -.32 r1.12 Wyeth :41i32W0-36l1 .16 Wyndham 20.36 +22- 1.52 XLCap d32.58 -41 .48 XTOEns 60.17 -.668' .92 XcelEngy d19.72 +.04-' .17 Xerox 13.87 -.29 .04 Yamanag 18.33 -.70 .. Yinglin 15.29 -.43 .60 YumBrdss 35.13 -.72,4 .. Z7mmer 75.16 -.61 A .48 ZweigTIl 4.67 -.05 I AME IC N ST C E C ANG Div Name Last Chg .47f AndmRc 2495 -.40 ApoloGg .70 -03 .48 ConiSys 10.75 +.32 y... gtalg 1.96 -.07 2852 DJIADiam 11893 -1.87 .74a EVInMu2 13.10 +.10 ... EldorG u7.40 -24 1.16e EitswthFd 7.66 -24 .45 FlaPUbl 11.90 .. samGldg 9.00 -.16 .. oldStg 3.79 -.23 .. reyWolf 6.05 -23 128e iSAsdanya 2522 -.S9 120e itShRta na 8041 -153 3e iSCansnya 31.03 -.34 .35e iSFmcenya 33.16 -.45 .2e iShGernya 3026 -.46 283e IShHKnya 17.47 -.35 1.49e iShBltlynya 2845 -.61 .14e IShJanva 12.01 -.18 37e iShKornya 55.03 -97 .41e iSMalasnya 11.96 -.02 1.05e iShMexnya 54.45 -.17 .51 iShSingnya 11.77 -.10 .39e iSTaiwnnva 15.80 -.01 .. IShSimer 200.49 -M5 1.31a iShSP100co0.11 -27 2.09e iShh25 ana134.5 -1.5 .Ole iShDJTrnya 80.55 -57 2.666 iSSP500nya129.99-1.05 4.93e iShLAgBnya101.60 +31 1.5e iShEMkriWal3333-1.87 .83e ISSPGOhnya61.74 -.60 3.47e iShSPLAnya248.71-468 4.17e iSh20Tnya 9223 +.12 3.M2e iShi-3Tnya84.17 -.04 2.00e iSEaenva 69.72 -.83 323e ISRMCVnyal26.26 -58 .72e iSRMCGnya99.91 -139 ... IShNB 73.05 -33 321e ISC&SARnya73.89 +.97 1.93e iSRIKVnya 71.49 -.55 .56e iSRIKOnya S3.74 -.53 1.39e iSRuslKnya7080 -61 1.436 ISR2KVnya 62.97. +.11 50e ISR2KGnya 70.45 -.43 .77e iSlR2Kia 65.96 -21 2.90e iShREstna 60.50 +.60 258e iShFnScnya7932 +.20 25e iShDJBkrnyad39.47 -22 52e IShSPSmnya58.00 -.39 1.04e SnBasMnya73.71 -3.04 ... ltaGC d4.20-1.47 ... IndiaGCwt .47 +21 ... Invems 29.49 -29 ... UbAoqun 10.05 -.05 .75e MktVGold 53.45 -1.33 ... MktVAgrn 55.04 -1.91 ... Merrimac d7.05 -.10 .. MefroHlh 2.47 +.03 ... Miamar 628 -.02 .. NRDCAcn 9.13 -.04 ... NAPal9g 6.91 -.76 .. NIhgtMg 3.0W -.10 NovaGIdg 10.05 -87 11.31e OilSvHT 173.07 -422 .. Oisandsg 3.93 -.13 2.12e PhmHTr d69.86 -.90 .76p PwshDB u37.20 -.38 .45p PSAgi 398.76-1.68 .. PwSClnEn 19.58 -.47 1.94e PrUShS&P i 68.22+1.10 4.96e ProUItDow .67.75 -1.48 1.99e PrUShDow: 81.18 +1.43 2.16e PrUShMC 68.05 +1.00 5.10 ProUltQQQd65.23 -.35 1.63e PrUShQQQ 55.47 +.25 4.420 PIoUsSP 6399 -120 .33p PUShCh25102.00 +228 .35p PrUJISEMn 87.28 +229 124e ProUShtRE121.13 -2.87 .91e ProUShOG 40.25 +1.32 1.21e ProUShFn 133.34 -1.41 1.66e ProUShtBM 41.60 +2.90 1.02e ProUltFin d28.02 +.01 1.40e ProUSR2K( 91.76 +74 1.45e ProUltR2K 44.00 -.45 ... RaeSyst dl1.68' -.63 5.71r RegBkHT 115.04 +1.01 ... Rentech di09 -.02 .32e RealHT 88.01 +.19 .60e SPCrSi 27.07 -.13 .30e SodrHome 1880 +.05 .45e SPConsum 30.16 -29 2.489 SpdrKbwBk 38.50 +.52 .79e SPEnov 73.76-2.09 .48e SpdrKbwCMd51.44 -.53 87e SPFnd. d24.32 +.05 329e SpdrWiRE 65.19 +1.10 .57e SPInds 35.61 -.52 225e SpdrKbwRB32.5 +.62 .19e SPTech 22.02 .15e SpdrRetl 3026 -29 1.10e SPUIl 37.70 -24 Ale SpdrMetM 71.28-2.50 ... sTGoldnya 96.09 -.41 .36r SenrHTr 28.63 +.19 ... Taseko 5.50 -.05 2.73e SPDR 129.71 -1.35 ... USNGFdn 47.72 +.12 1.84e SPMid 138.40 -1.45 .... USOilFd u83.73 -.16 .81e SPMats 39.59-1.73 ... Westmldlf 15.36 -27 .57e SPHIIhC 31.74 -.37 .. WilshrEnt 3.19 +.05 I A 315AoATIO ALM R EI Dlv Name Last CIhg .. ACMooreif d7.18 -.07 ... ACIWwde 19.63 +.01 ... ADCTelr 1340 -22 .. AMAGPh d3829 -1.97 ... APPPhm 11.41 +.52 37p ASMLHki 23.83 +.18 ATPO&G d32.14-1.71 ... ATSMed 155 -.10 ... Aastrom d.45 -.07 ... AcadiaPh 832 -.42 ... Accuray 9.69 -23 Acodah 18.71 -.79 ... Acdvisn 2729 -.16 ... Actuate 424 -.04 ... Acuphere 52 -.05 24 Ainom 11.96 -.15 ... Adaptec d2.45 -.07 .. AdobeSv 3255.+.08 ... AdoloCp 4.60 +.09 .36 Adian d1820 +.11 ... AdvATech 5.96 -.01 ... AdvEnid 12.68 +.32 .71 AdvantaAs .33 .85 AdvantaBs 7.14 +.13 ... Afymetix d17.36 -.04 ... AkamT 34.19 -.26 .. AkeenaSn 6.11 +.17 Akom 5.36 -.61 .60a Aldia 16.60 +.65 ... Aexion 56.06 -158 ... AlgnTed 11.10 -.49 T- Akrm d11.28 -1.14 ... Ascripts d9.86 +.04 AnylaP 24.17 -1A43 A.. lNao 4d2.67 -23 .16 AlteraCop 17.49 +20 .. Aalon d6.64 -.14 .1A1 AmTre -f 1522 -.t8 Amazon 64.09 +1A5 M... *dAys 38.93 -1.60 -. Asefth .72 +.02 4.04f A 33.58 +.93 ..ACm in 15.78 -.74 .AmerMed 13.90 -20 .. ArSup 21.83 -1.05 .. Ameae d12.40 -36 .42f AmCasn d17.55 -.40 ... Amurn d44.18 -.06 ... AklorTIf 11.51 +.08 ... Amyn "d25.10 +.66 SAnadinc d626 +123 40 Antogic 61.02 -1.38 ..1 Analys 1.5 -.05 -Mgo d9.99-M.99 2Ae 32.78 -150 .. Ansyss 35.11 -1.01 .. ApoloGrp 53.50 -1.20 2.06 Apolohn 14.74 -.08 .. ADcleinc 122.25 +1532 .24 AiddMaI 20.09 -.04 ... AMCCrs 6.86 -.10 ..Arha 68.14 +124 .. m d6.54 +.02 1.68 AresCap 13.06 +-5 .. AsiadP 327 +.08 ... Aibainc 8.72 +.17 .63e AiesMar d6.60 +29 .60 AskBest 28.47 -.03 .12e AimHtd d5.19 -20 ... ArayBio 6.18 +.29 Arris 8 +.10 A. AtTech 280 -26 ... ArhroCr 4203 -.03 ... ArubaNetn 520 +.06 .. Aspelon 5.79 -1.04 1.24 AsscdBanc 24.22 +28 ... Asytchf 326 +.05 Sathenahitn d2559 -.04 roGnh 9 ... ... Almel 3.17 -09 ... Audvox 8.45 -.02 ..Autodesk 31.61 +.41 ... Auxilum 28.89 -81 ... Avanex .L72 -.05 ... .AvanrP 129 +.01 ... AvidTch 24.75 -.04 ... AvocCp 1582 -09 ... Aware 430 +24 ... Axcelis 5.37 +25 ... BEAero 35.44 -134 ... BEASysth 19.11 +.04 M4e BldrsEmg 49.77 -72 .. Baldu.corn 242.93 +.51 .36f BarnkMu 10.21 +.05 .02 BnkUid 3.99 -.18 .. Banke 41.05+2.15 .. BareEsmcent25.01 -1.36 ... BeaconPw 1.08 +.03 ... Beacl 1.60 -.30 25 Be 5.41 +.06 .20 BebeSrs 11.17 +.02 .. BedBall 27.06 -.75 ... iogenldc 5620 -.43 ... BoMarin 35.58-1.60 ... opurersh .54 -.01 BladeLgn 2121 +1.06 BueCoats 21.45 -31 .56 BobEvn 27.52 -.12 .. Bookim d1.34 -.05 .. Borand 1.79 -.01 .401 ioslPrv d13.05 -.07 .. Brighpnt d9.63 -.17 Broadcom d17A4 -1.10 .. BrdeCm 7.36 -.11 24a BdaneB 9.35 +.15 ... BrooksAut d9.67 +.27 ... BkBio 14.48 +.46 20 Bcy 106.67 -426 ...BfWs 21.08-.14 .72 CBRLGip 33.55 -09 ... CDCCpA. 3.64 +.05 8 CH RoMes 51.99 -.09 ... CMGlrs 11.07 -.03 ... CNET 7.09 -.01 ... CSGSys 10.97 -.04 CVThera 5.91 -20 34 CVBFn d857 +A.42 ... Cadence 10.77 +.10 ..05 Ca-Maine 33.14 -.15 ... CelPzaps 13.00 -.50. CSolatar 204 -1.34 .74 CapCtykn 24.92 -.64. 1581 CapPfodn 192 8 -22 ... CpstnTrb 2.09 -.08 Caromg 8659 -.02 CareeWEd 13.97 +.3 Castio 5723 -1.96 .40 CaerBcp d13.00 -.65 26 Cmey d23.00 -1.93 .10 CasePtn 10.50 +27 .42 ay 20.78 + .. Cyond d14.5 -.99 SCeare 56.76+183 ... CelGens 2.07 +.01 .. CellThers .73 -.09 ... CentCom d4.40 .. CenEuro 51.76 -24 ... CEurMed d79.00 -131 :.1 CenI 66.78 -2.68 .. Cephn 60.19 +.19 ..Cephed 23.48 -.93 .. Ceradyne 12937 +561 ..C er d42.00-1.07 .. CharRese 19.27 +.10 .. ChrmSh 498 -.10 .. Charnds 356.69 +.40 ... CharlCm .96 -01 ... Chatlem 7225-208 ... ChkPoint 21.01 +.02 ... Cheesecake 19.90 -03 Chi lPloeh 18.98 -40 ... ChFnOnrd 16.28 -2.07 40p ChinaMed 36.64-2479 ... ChinaPSI 380 -21 .. ChinaSunn 688 -.31 ... ChlpMOS d3.11 -.01 ... Chl ant 6.09 +.09 50 ChrchlD 43.60 +.10 "'_ CeaC 3 27.80"286 1.56f CinnFin 37.12 +.37 .461 Cnls d2825 -31 ... Cirus 524 +.13 ... Ci .24.11 +.17 1.16 CtiERep 1129 +.47 S ... ClixSya 32.73 - ... CleH u62.95 +.78 .. learire 13.60 +22 ... CogenIC 17.49 -.01 SCogent d.57 -.51 .34 Cognex 19.72 +.18 ... oT s 29.19 -20 ... C 4.05 +.01 ... COIGenex 1627 +.03 .64 ColSpiw 40.90 ... 1.00. Conerco 452 -.38 25 Comcast 19.67 -.04 .25 Comcspd 19.41 +.01 Coipuare 756 -.03 SComtnch 42.59 -4.66 ... ConcurTch 26.51 -.77 ... ConcCmh .73 +.01 ... Conuxanth d.45 -.01 ... Conmed 25.90 -29 .34t ConvOrgn 14.62 -1.57 COpt 3SA1 -4.02 .. CorithC 7.67 .00 1.761 CorpExo 3926 -.57 100a ConuBhsh 9,71 +AS4 .58 Cost o 60.30 +26 ... CdSys 125 -.05 ... eein 27.70 -AS ... Cocss 19.58 -27 ... Crip.coms 51584-1.95 ... CbistPh 18.09 -.11 ... Cyo s 12.37 -.41 .Cybrm 14.01 +.11 Cy... er 25.99 -.14 CFOn"er d418.91 -123 25 CytR 1.55 Cyogenh .51 Drd" r$ 11.07 .66 Dt n 19.80 +.14 .. DayStar d2.73 -.47 DadrTik 1AS-1.44 ... DedkOut 99.53 -47 .Del bic 19.35 -.08 DlaPh 2424 +47 ...Ddreon 49 -.13 Dennys 3.02 +.06 .18 y 38.74 +.07 .. Depomed 330 -.12 ... giver 31.15 -.03 ... D 24.75 -54 ...DcHoldA 20.80 -58 ... Discab 1.98 +.02 DishNetk .28.34 -.73 DolkiFn d20.08 -58 ... Tree 26.66 -.39 DressBam 12.82 -.18 .80 D 6yShil 5754 -2.69 ... a 454%8 +.18 .15 DynMl 4328-1022 ... Dynavax 5.92 +.22 ... Eade 3.74 -.03 .. eBay 25.78-35 ... eav3lnc 8.50 +.10 .. EZEM 20.84 2.00 Bulk 2547 -.36 ... filnk 7.50 +.04 .40 EstW d1761 +.18 .. E 12.02 -.710 ... F 20.99 +.10 ...Ed 5.06 -21 221 EduDv 550 ... ... ElecS d5.63 -.05 .. Elctgs 1.71 +.12 EledAs 4651 -.47 .. EFII 1431 -.03 .. Emcore 954 -.73 ... EncylveP 231 -.01 .. EndPhrm 24.69 -30 N.. eOCnd1126 -.0 ..EgCav 27.25 +25 .El: gris B.52 . .. Entustn 2.41 -01 ... EnznPhar 855 +04 ... EpcarSt 10.85 +.10 ... Equ d61.05 +.85 .74e Edcsn11 1983 -.12 ... Eurone d18.72 +25 .. EvigSIr 881 -29 ... EctS 329 +.26 ... Elixis d5.82 -08 .. ExdoeTc 1131 +54 ... Epea 21.05 -.25 8 pdInt 39.76 -.47 ... ExpSis 5851 -1.97 E... m t 3.02 +.07 .. Ezcorp 10.94 -.17 F5sNetwks 1939 +.03 ... FURSyss 25.54 -.43 .60 Faslenal 3927 +.02 ... FterTowr 1.39 -.01 1.76f FiNThird 2200 +.28 ... Finisar 127 +.01 ... RnUne 4.46 +07 ... FlCashFn 47.7- -28 12 FC 0d2408 +.13 1.24 2520 +.44 .56 FsdNgara 11.15 +.06 .. FPtSol 1982-1195 1.16 Faleril 18.60 +.61 ... Fsev 40.97 -1.01 ... Fex 10.08 -.16 ... Flownt 9.190 +.22' .. FcusMda 43.80 -1.22 ... FcePro d2.82 -.06 ... FormFac _dl7.01 +.63 28 ForwrdA 32.12 +1.09 ... Fosdin 30.89 -.07 .. FesteWhs 62.82 -AS FOndryN d11.24 -.07 T... Gkm d3.35 -.16 Fr... uA 2.53 -.21 -FuelCl d6.14 -A6 .60 FutmFnc 11.26 +.26 0e GFRGrp 70.98 -.12 GSlCmmnrdll1A -.A6 .. GTCBoh .63 +.07 .751 Gandnr 55.14 -.89 .. Gemsta 4.66 +.01 ... GenProbe 47.19 -.13 ... GnCo d5.09 -26 ... Gen8iot d1.12 -.11 ... Genlarsh .51 +.03 .42 Gente 15.73 -.14 ... GenVec dl1.04 -.02 ... Genzy 3.46 +1.09 ... GeronCp d4.43 -.08 ... gaMed 19.12 +.06 ... GeadSs 48.70 +.89 ... Globlind 17.69 -.42 ... Goole d433.35 +.65 GreenMt 2623 -157 ... G 36.36 +.21 n Eq d13.86 -1.04 ...HLTH 10.87 -23 1.00 HMNFn 24.50 +.91 ... HeinCel 26.50 +.09 ... HansenNat 40.56 -.60 ... Harmonic 8.05 -.06 ... Hayestm 2.95 -.07 ... HIhExt 25.66 -.64 Heathwys 34.55 -.57 .08 HrUndEx 13.86 -.02 52 HM rkStr 3159 -220 ... HSchedln 57.40 -.87 ... HercOffI 24.35. -8 ... Hbbatr 1453 -.14 SHokuS 8.35 -.96 ... gc 4.50 -1.60 ... Homelnns d22.94 -.86 ... HorsehdHn 14.77 -.69 ... HolTopic 4.42 -.11 .3 HudsCitv .15.45 +.04 ... HumGen d5.13 -.13 :40f Hui.B 28.00 +.37 1.06 HuntBli.. .168t +24 .. HuhT '1720-+.30 ... Hydrogcsh .61 +.01 ... Inter d19.53 +.02 ... ICO n 7.65 ... ... IDMPhami 2.10 -.10 .81 IPCHoIl 26:62 +.67 SIconBr 19.43 -.34 ... Iumldna 67.15 -.50 ... Imdone 44.71 -.67 ... Immern 7.80 +.05 ... Immucor 27.69 -.36 .. Immunicni d.33 +.01 .. Imunmd 2.27 -.01 .. Incyte 9.46 -.20 IndevusPh 5.13 +.02 .. Infineran 11.02 -.08 ... InfnityPh d7.00 +.05 ... Informat 17.45 -.17 31e InfosysT 35.91 -1.12 .. InnerWkgs 11.75 -.74 .. lgSci 43.03 -.06 InigDv 8.51 +.06 .51f Intel 20.07 +20 ... InactBrkn 30.35 +.64 IntarDIg 18.09 +153 .121 Intface 15.64 -.45 .... IteMun 13.93 +.07 ... IteriAP d6.41 +.02 .101 IntSpdw 39.66 +.01 .481 Intersl 2421 +.50 .. Intuit 20.76 -.12 .. IntSurg 264.75 -6.01, Investools 10.05 -.35 .. Invitrgn 82.34 -1.08 .. ss 14.49 -.16 .. IeCap d7.85 -.12 .. ron 89.84 -229 .. IvanhoeEn 1.70 +.11 ... J2Gb l 22.70 +.5 JASolar 1.89 - .. JDASot 17.06 +.49 JDSUnph 12.41 -.04 01 JaddHemy 2324 +.38 ... JdksPac 27.21 +.96 .JamnesRi 18.99 -.66 .. JetBlue 5.01 -.14 .. Jo Soda 4.61 -.09 J. JosBnk 2320-1.49 .6 JoyG" 66.50-2.61 ... iJnrNtwk 24.95 -.88 20 KSwisa d14.15 -.07 .60 KLATnc 41.78 +.63 ... Kenesa 18.60 +.19 .. KeiyxBlao .26 -.11 KrZCap 1623 +.31 Kce d4.73 -.06 SLKOQCps 22.10 +.23 .0 LSIInds 12.75 -.16 .. LamRschlN 38.36 +.48 ... LnarAdv d35.36 -.52 .15 Landstar 47.26 -.40 .. Lattce 2.43 +.01 ... LawsnSft 7.17 +.18 ... LeapWtss 44.88 -1.15 ... Level 2.18 -.04 LexiPthim d1.65 ... bGobA 36.70 +.35 ... bGlobC 34.49 +.31 ... UbyMIntA 15.01 +.05 .ibMCapAs 16.44 -.56 UbMEntAn 25.40 -.31 Uf.ece 40.56 +.32 ... UfePtH 24.78 -.36 2.50e UgandPhm 3.76 +.15 ... Umenighl 3.97 +.04 ... Uncre d3030 -.56 .841 UnearTch 28.99 +.73 ... LivePsn d3.15 +.32 .. LodgeNet d8.65 +.17 "Logfteach 24.83 -.46 LpokSmart 3.57 +.13 .. LooNt 1159 -.79 .. lululemngnd23.0-1.98 .. Luminex 18.66-121 .72 MBFnac d2728o+1.36 1.76 MCGCap 11.15 +21 1.42 MGE 30.81 +.95 ... MKSInst 20.11 +.25 ... MRVCm d1.41 .60 MTS 31.19 -.10 ... Macrvsn 413.85 -.22 ... Magma d9.21 -.33 MagnaEnth d.46 -.05 .. MannKd d5.52 -.27 .08 MarchxB 8.47 -.23 ... Matek 28.94 -.90 MarvellT 10.94 -.58 .36 MaxCapital 26.90 +.25 ... MaxwilT 10.50 +.02 ... Medarex d8.61 -.21 .. Mediacm 3.99 +.02 ... MedicActn 18.86 +.33 MediCo 17.20 -.16 ... MedisTech 9.69 +.25 .. MelkoPBL 11.65 +.32 .. MentGr 8.64 -.04 .. MercadoLn36.55-2.69 ... MerueloM 3.60 -.33 .56 Methmnx 29.37 -.21 .12 Micre 7.89 +24 1.28 Micochp 31.39 -.03 .. MicrosSys 32.08 +.11 ... MicrSem 21.30 -.35 .44 Microsoft 27.87 +.30 ... Miovisn 2.30 +.12 ... MiddeBrk 4.02 +.02 ... M llC1llh d.16 ... MillPhar 13.08 -.40 .35 MillerHer 28.95 +.20 ... Millicomh 108.07 -2.06 .. Mindspeed d".59 ... Misonix 4.36 +.06 .. MobileMini 17.63 -.13 .45 Molex 22.00 -.25 Momenta 8.91 -.65 ... Monogrm dl.24 .MonsW 4 d24.75 -.48 ... MoveInc 2.30 +.02 M.. yiadGn 36.12 -.09 NETgear 21.11 +.10 .. NIl Hdg 36.97 -129 NPSPhm 3.87 +.02 ... NasdOMX 37.79 -1.00 .. Nastech 2.12 .. NatAtH 5.30 +.02 .68 NatPenn 15.97 +.24 NektarTh 627 -56 ... NetlUEPS 28.73 -.15 .01e NetSevic 11.26 -.19 .. NetLogic 21.63 -.43 ... Notease 20.67 -.23 ... NeUtix 31.26 +.64 ... NetA 22.50 +.07 ... Neuraine 5.02 +.01 .. NexCen d3.38 -.02 .. Nextwave 5.32 +.28 .50 NobityH 16.65 -.35 .32 Nobleinth d758-1.92 1.12 NorTrst 66.91 +.47 .. NstarNeuro 1.60 +.07 .. NvtWrls 10.80 +.03 .. Novavax 2.64 +.03 .. Novel 6.19 -.09 .. Novlus 21.80 +.28 .. NuHorizIf 6.01 +.05 .. NuVasive 33.62 -.91 ... NuanceCm 17.03 -.44 .. NutriSys d12.3 -.95 ... Nvdias 195 -.29 ... NStageMd d4.94 -.47 ... ORelA 26.73 -.15 ..OSInn 36.77 +.49 ... ObgMed 10.29 +25 .Omn1i 19.03 +24 Omniture 2025 -.40 Omnisn 16.83 -.34 .. OmrxBlo 15.60 +1.51 OnAssign 5.70 -.02 .. OnSmcnd d5.60 +,01 .. OnyxPh 27.07 +.02 ... OpenTx 29.90 -1.08 ... OpenTV 1.16 1.20e OpnwvSy 2.00 -.08 523 opt=pr d20.73-1.17 ... Orae 19.00 -.23 ... OginAg 5.53 -22 ...Orlx 40.11 +41 1.191 OtterTal 31.95 +.06 .. PDLBio 11.13 +.14 .. PFChng 25.27 -1.04 PLXTch 6.18 -.01 ... PMCSra 4.73 -.03 .. PSSWrld 16.46 -.41 .72a Paccars d42.16 -1.11 .60 Pacerint 16238+1.19 .88 PacCapB 19.25 +.25 .. PacEthan 4.51 +26 ... PacSunwr 10.95 -37 ... PaeltecH 7.16 -.30 9.00e Palmlncs 5.56 -.38 .. PanASIv 39.45 -1.69 .. Panacosh .72 -.01 ... PaneraBrd 35.79 -25 .. ParPet 17.42 +26 .. ParamTch 14.37 -22 .. Parexels 26.07 -88 .. Patterson 33.68 -.90 .48 PaltUTI 22.60 -.65 1.20 Paychex d30.50 -.46 ... PnnNGm d40.58 -.99 .. Penwest d3.00 -.29 .53 PeoMUtdF 15.95 -.22 Peopt.sp 4B29-329 S.50 -.04 ... PerfectWn 27.05 -29 ... Peddent 7.32 +.03 PerFood 32.54 -.12 .20 Peo 32.09 -.19 ...Peoev 67.31 +.31 .12 PetsMart d19.18 -.46 .40 PharnPdt 44.54 -.79 ... Pharmion 72.32 +1.17 ... PhilCons 31.66 +.32 ... Pholn 9.72 -.11 P... innadA d10.35 +.04 .. Pxwrksh .71 -.05 Plexus 24.91 -1.08 ... PlugPower 2.90 -.11 Polycm d20.11 +.04 .48 PoolCorp 20.07 +.01 .64 Popular 10.35 +.10 ... PossisA 19.41 -.03 .14e PwShsQQQ42.07 -.10 Powwav d2.45 -.01 Pozen 10.76 -A8 Presstek 4.55 +.07 .96 PriceTR 47.35 -20 S lne 116.92 +1.04 d14.02 -.18 1.3 d9.98 -.19 .. PsychSol 31.97 +.87 .QAGEN 20.96 -.04 Qigic 15.47 -.05 .56 Qual 40.24 -.19 1.00 Qualityy 32.02 +14 Quanuel h .81 -.04 .. QuestSfth 13.60 +.10 ... Quidel 14.59 -.61 1.24 QuintMad 22.44 -.43 RAMHIdgs 1.36 +.08 .. RFMic 2.92 -.09 .. RTlBiolog 9.37 -.20 .. Rambus 17.90 -.38 .12e Randgd 5366. -1.99 ..Reawk .56 -.09 ... RedRobin 33.34 -.66 .. Regenm 17.30 -.57 RenLACt 16.24 -.07 .. RschMots 98.04 +.12 -. RIgelPh 17.59-1.64 .. Riverbed d16.88 -.07 .381 RossStrs 27.74 -1.05 .281 RoyGkd 29.83 -.56 ... RuthChds 6.67 -.25 .. Ryanair 29.07 +.17 .. SBACom 2835 -237 .14 SEIInvs 24.11 -.62 M STEC d5.72 -A6 .. SVBFnGp 4d43.16 +.71 ...SalixPhm 6.05 -26 .56 SanderFm 35.43 -.33 ... SanDisk d21.41 -.58 ... Sanmina .1.9 -.03 ... Spent 6.79 SSavlentPh 20.45-1.45 ... Sawls 16.36-1.36 .07 Schnitzer 60.83-2.08 .20a Schwab 19.04 +.08 .. SolelePh d18.50 -.35 .. SciGames 17.85 +.01 SearsHdgs 92.36-1.1 SeatGen 8.19 -.16 ... SecuoeCmp 7.39 -.17 ... SelCmfrt d3.76 -.16 .52 SelecMns 24.00 +.42 ... Semtech 13.50 +.29 ... Spracor d18.74-1.50 Sequenom 6.22 -.32 .. Shanda 32.24 -.34 .. ShengdaTn 9.51 -.32 26e Shire 59.00 +.01 .. SIhu lMstr d7.43 -.01 ... Shutleily d14.93 -.15 SiRFTcn d5.63 -.18 ... SlenrraWr 13.74 -.32 ... SigmaDsg 26.36 -.88 .521 SigmaAld 53.83-2.03 ...SgnatBk d23.56 +.14 .68 SlnHId 47.65 +.15 .. mg 4.52 +.14 .SlnLab 29.05 -.55 ... SSTh 2.79 +.04 .51r Slcnware 7.58 -.28 ... SSdg. 36.34 -1.26 ..Sin 39.4 +.31 .701 Sindalr 9.07 +.19 .. SiusS 2.73 -.01 .12 SkyWest 21.82 +.18 ... SkywksSol 7.78 -.28 .. Snar d6.03 -.23 ... SnhWes 4.95 +.67 ... SmuWhMicro 6.62 +.05 ... SmurSs 7.75 -.14 ... Sohu.mn 44.83 +.65 Solarfn 10.12 -.63 .Sonkicop) 20.10 -.41 SnoWall 7.986 -.10 ... Sonus 3.09 -12 .40 SouMoBc 14.70 +25 .SouroFrg d41.60 -.02 76 SouthFnd 13.66 +.28 ... SpansloA d2.55 -.01 ... Samps.n 8.96 -25 .331 Staples 21.74 +.08 ... StarSent ul.94 +.56 ... Staibucks d17.10 -.50 Stare n 13.19 -.71 .801 SilDynam 60.52-1.68 ... SterCells 1.38 .. Sereotaxis 3.82 -.18 Sces 400 -.09 22f eBcah d9.02 +.43 .40f SbtFWA 13.72 -.01 .10 StewEnt d5.79 -.18 1.50a Straye 149.00 +6.86 .. SunHthGp 14.85 -.21 .. SunMicrors 16.00 -.01 .. SunOpta d5.02 -22 .. SunPower 60.00-353 1.04 SusqBnc 18.75 +.97 .. Sycamore 3.31 SSymantec .16.94 -.11 ... Symeif d3.15 -.08 ... 25.17 +.20 16.09 -.34 ... Synopsys 22.55 -.20 ..Syvis 16.90 -.12 ..ylaxBri .87 -.05 .24 ; tel d24.79 -.40 .. TBSIntlA 31.5-2.01 .. DAmerir 16.86 -.34 .20 TFSFnn 12.06 -.09 ... THQ 18.02 +.08 .. TakeTwo 25.57 -.43 ... TASER 10.78 -23 ... TechDatla 32.17 -.32 ...TeleTcht 20.51 -10 Tellabs 5.84 -.08 .. TesseraT 15.13 -.06 ... TetraTc 17.32 -26 .42e TevaPhrm 47.75 ... .. TexRdhsA 9.15 -.08 ... Theravnce 11.15 -.39 Thoratec d13.50 -.32 3Com 3.19 +.12 ... TibcoSt 7.32 -.10 ... WTele d15.33 -.52 STitanMchn 17.62 -1.37 .. TiVoInc 7.93 -.03 .. TrdeStabi d9.61 +.24 ... TriZetto 17.98 -.39 ... TridentMh 5.05 +.15 ... TdrimbleN 27.55 -.53 .. TriQuint 4.67 +.06 .44m TirsNY d8.03 .92 Trustmk 19.31 +.32 ... TuesMm 4.74 +.01 ... TurboChel d6.89 -.35 USAuoPts d2.94 -1.71 2.15e UAL 28.09 -.22 .90 UAPHIdg 38.58 +.03 .161 UCBHHId d8.81 .+.14, 2.60a USAMobl d8.04 -.5% ... USANA 29.15 +.63 .06 UTiWddwd. 16.96 +.17. .. UTStcm 2.81 +.07 ... UlmSol. 26.72 +.99 .76 Umpqua 13.87 +.37 .. UnionDdl 1531 -.01 .36 UtdCBksGa 14.60 +.10 UtdNtIF d16.18 -.22 M0 UtdOnIn 10.41 +.61 .10e USEnr 3.76 -.10 ... UtdThrp 78.34-2.03 .11 UrnvFor 27.74 +.08 UrbanOut 28.97 +.48 VCAAnt d30.05 -.24 ... ValenceTch 3.12 -.28 ValisA 4.58 +.01 ... ValueCck 17.46 -.05 .. VarianSms 31.19 +.01 ... VarsiyGph 20 +.00 VacoOta 10.96-.71 Vaijnn ,. 376 -1 tA versa-ni dream 4.14 10-year 3.53 ... verxfPh d16e.u06 +.14 .16 VirgnMdah 13.93 -.47 .. ViroPhrm 8.50 -.23 ... VistaPrt 31.14 -1.40 ... VMis 5.69 -.11 ... Wamaco 35.09 -.68 ... WamerChi 15.93 -.06 ... WarrenRs 11.03 -.12 .84 WashFed 21.84 +.42 ... Websense 18.92 -.15 .20 WemerEnt 18.25 +.17 .. WetSeal 2.58 -.12 1.241 WhibleyH 23.61 +.25 .80f WholeFd d34.07 -.54 .. WindRrw d620 -.63 WdwrdGvs 28.04 +.34 6.00e Wynn 92.82-2.18 XMSat 11.19 +.07 'XOMA 2.56 +.01 -. XenoPort 41.75 -75 .56f1 Xilinx 22.63 +.39 ... XinhuaFn d3.18 -.17 YRCWwde 14.07 +.13 Yahoo 29.03 +.33 ZebraT 32.64 +.13 .. ZhoneTch 1.10 +.01 1.72 ZIonBcp 45.00 +.73 ... ZixCorp 3.96 -.08 ... Zofek d21.82 -.83 .. Zoran 13.69 -.11 ... Zumiez d14.11 -.37 ... ZymoGen 8.96 -.62 Request stocks or mutual funds. [#F7CURREN IES Yesterday Pvs Day Australia 1.0793 1.0790 Brazil 1.6832 1.6795 Britain 2.0149 2.0092 Canada .9917 .9858 China 7.1124 7.1124 Euro .6515 .6508 Hong Kongq 7.7882 7.7882 Hungary 175.44 175.44 India 40.486 40.161 Indnsia 9090.91 9090.91 Israel 3.6075 3.6062 Japan 103.09 103.09 Jordan .7100 .7100 Malaysia 3.1676 3.1666 Mexico 10.8342 10.8225 Pakistan 62.89 63.29 Poland 2.32 2.32 Russia 23.8663 23.8663 Singapore 1.3841 1.3870 Slovak Rep 21.19 21.32 So. Africa 8.0451 8.0192 So. Korea 1000.00 1000.00 Sweden 6.1312 6.1125 Switzerlnd 1.0246 1.0255 Taiwan 30.77 30.77 U.A.E. 3.6724 3.6738 Venzuel 2145.92 2145.92 British pound expressed in U.S. dollars. All others show dollar in foreign currency. r417 MONEY RATES C 3-month Yesterday Pvs Day 6.00 6.00 ate 3.50 3.50 ids Rate 2.93 3.13 1.41 1.81 6-month 1.52 1.78 10-year 3.53 30-year 4.54 4 FUTURES Exch Contract Settle Chg Lt Sweet Crude NYMX Apr08 105.15 -.32 Corn CBOT May08 5471/4 -20' Wheat CBOT May08 1105 -20 Soybeans CBOT May08 1408 /4 -50 Cattle CME Apr08 90.52 +.57 Pork Bellies CME May 08 84.05 -3.00 Sugar (world) NYBT May 08 13.36 -.24 Orange Juice NYBT May08 126.00 +2.05 SPOT Yesterday Pvs Day Gold (troy oz., spot) $972.20 $972.10 Silver (troy oz., spot) $20.158 $19.08 Copper (pound) $i.932U 3.a52U NMER = New York Mercantile Exchange. CBOT = Chicago Board of Trade. CMER = Chicago Mercantile Exchange. NCSE = New York Cotton,' Sugar & Cocoa Exchange. NCTN = New York Cotton Exchange. ISTOC S O SLCA ITEES . -.., ---- I if, Y ff -.. -. !...... 11- CITRus CouNTY (FL) CHRONICLE STOCKS SkA Q.--- AAADd-M R 2MR I 5-vear 2.42 2.49 . RTIC US COUNTY (FL E BUSINESS TUESDAY, MARCH 9, 2008 9A MUTA,3 flSa Ge.o dmmodw 4-wk Name NAV Chg %Rtn AIM Investments A: ChartAp 15.31 -.12 -0.8 Constp 24.77 -27 -1.0 HYdAp 4.04 ... -1.3 IntlGrow 28.66 -.35 +2.6 SelEqtyr 18.63 -.11 -2.6 AIM Investments B: CapDvBt 13.79 -.18 -4.3 AIM Investor CI: Energy 42.96 -.77 +8.7 SummitPp13.46-.15 -0.1 Utilities 17.97 -.10 -2.0 Advance Capital I: Balancp 16.29 -.11 -22 Retinc 9.30 -.02 -0.7 Alger Funds B: SmCapGr 15.54 -.07 -7.8 AllianceBem A: BalanAp 15.22 -.10 -3.5 GbTdchAp6326-.28 40.8 InfValAp 19.39 -.20 +1.3 SmCpGrA24.76 -.27 -6.9 AlllanceBem Adv: IntValAdv 19.71 -.21 +1.3 LgCpGrAd 20.49-.25 -1.4 AllianceBem B: GIbTchB 155.94 -.25 +0.7 GrowthB 123.02 -.26 -4.4 SCpGrBI 120.41 -.22 -6.9 AlllanceBem C: SCpGrC 120.49 -.23 -6.9 Alltanz Funds A: NFJDvVIt15.02 -.07 -1.8 Allianz Funds C: GrowthCt21.80 -.14 -2.9 TargetCt 17.12 -.23 -2.8 Amer Beacon Insti: LgCaplnst 20.81 -.18 -4.5 Amer Beacon Plan: LgCpPIn 19.84 -.17 -4.6 Amer Century Adv: EqGroAp21.33 -.22 -2.0 Amer Century Inv: Balanced n15.01 -.06 -0.9 Eqlncn 7.12 -.05 -3.8 Growth n 23.07 -.18 -1.4 Heritagelnl8.25 -.32 -3.0 IncGron 25.93 -.26 -2.8 IntDiscrn 1292 -.23 +3.9 IntlGroln 12.39 -.15 +2.8 LifeScin 5.39 -.05 -4.6 New Opp r n6.73 -.07 -5.2 OneChAgn12.56-.10 -12 RealEstln19.98 +.30 -6.3 Ultra n 21.17 -.21 -1.3 Valuelnvn 5.62 -.03 -4.6 Vistan 17.62 -.37 -3.1 American Funds A: AmcpAp 17.92 -.09 -3.8 AMutlAp 25.65 -.15 -2.9 BalAp 17.72 -.08 -2.3 BondAp 12.81 +.01 -1.7 CapWAp 20.54 ... +2.5 CaplBAp 57.15 -.24 -1.2 CapWGA p 40.49-.24 +0.6 EupacAp46.12 -.23 +1.6 FdlnvA p 38.43 -.43 -02 GwthAp 31.08 -24 -0.7 HITrAp 11.26 -.04 -1.2 IncoAp 17.70 -.08 -2.4 IntBdAp 13.40 +.01 -0.8 ICAApx 29.48 -.36 -2.8 NEooAp 23.24 -.16 -4.4 NPerAp 31.18 -.19 +0.6 NwWrldA 55.27 -.47 +1.9 SmCpAp 35.90 -.34 -1.5 TxExAp 12.13 +.05-1.5 WshAp 30.12 -.26 -3.3 American Funds B: BalBt 17.68 -.08 -2.3 CaplBBt 57.15 -.24 -1.2 CpWGrBt 4023 -.25 +0.6 GrwthBt 30.00 -23 -0.7 IncoBt 17.59 -.08 -2.5 ICABtx 29.37 -.30 -2.8 WashBt 29.90 -.26 -3.4 Ariel Mutual Fds: Apprec 38.24 -.20 -5.5 Ariel 40.59 -.11 -51.1 Artisan Funds: Int 25.90 -.28 +0.6 MidCap 26.49 -.43 -3.6 MidCapVal17.24-.01 -3.4 Baron Funds: Asset 55.00 -.33 -4.3 Growth 44.09 -.34 -6.1 Partners 19.85 -.17 -8.5 SmCap 20.08 -.18 -5.9 Bernstein Fds: IntDur 13.00 +.02 -1.0 DivMu 1420 +.06 -0.8 TxMgdlnt 22.06 -24 +1.8 IntlPort 21.96 -.24 +1.7 EmMkts 36.75 -.45 +1.8 BlackRock A: AuroraA 18.54 -.15 -6.4 CapDevA p 15.46-.20 -2.9 GIAIAr 19.47 -.11 +2.2 HiYlnvA 7.26 -.02 -1.9 BlackRock B&C: GIAICI 18.29 -.11 +2.1 BlackRock Instl: BaVII 26.77 -.20 -22 GIbAllocr 19,54 -.12 +2.1 Brandywine Fds: BlueFd n 30.59 -.47 -1.0 Bmdywn n30.95 -.50 -1.7 Brinson Funds Y: HiYId Y n 6.25 -.01 -2.3 CGM Funds: CapOvn 25.84 -.48 +0.7 Focus n 50.13-1.34 +8.1 Mull n 30.06 -.64 +3.3 SRealtyn 28.60 -.26 -3.8 CRM Funds: MdCpVII 26.74 -.24 -3.1 Calamos Funds: r&lncA p 28.41 -.26 -1.5 QrwthAp 48.91 -.63 -2.0 GrowthC 145.45 -.59 -2.1 Calvert Group: Incop 16.25 ... -0.8 IntlEqAp 19.11 -.23 +1.9 Munint 10.53 +.05 -1.3 SbdatAp 27.28 -.11 -1.7 SbcBdp 15.82 +.02 -0.3 SbcEqA p 34.77 -.33 -0.5 TxF Lt 9.96 +.02 -0.7 TxFSLgp 15.95 +.08 -2.2 TxFVT 15.63 +.08 -1.1 Clpper 68.93 -.11 -.4 Cohen & Steers: RltyShrs 55.76 +.77 -4.3 Columbia Class A: Acomnt 25.30 -.21 -4.1 FocEqAt 20.84 -.22 -4.0 21CntryAt13.95 -.11 -6.8 MarsGrAt 19.65 -.20 -3.9 Cqlumbla Class Z: AcomZ 25.96 -.22 -4.1 AbomlntZ39.80 -.43 +42 InlEqZ 15.65 -.07 +2.4 LgCpldxZ25.09 -.21 -3.1 MrldnOpZrl14.46 -.10 +2.8 DFA Funds: USCorEq2 n10.36-.07 -4.0 DWS Scudder CI A: CdommAp 18.55 -.23 -9.3 D'rHiRA 41.45 -.36 -6.0 D#S Scudder Cl S: CorPIsinc 12.26 +.01 -1.8 ErnMkln 1205 -.03 -03 EhlMkGrr21.44 -.26 +1.4 EuroEq 32.25 -.26 +2,6 GIbBdS r 10.48 .... +2.3 GIbOpp 37.65 -.53 -0.1 GIblThem 25.50 -.25 +0.8 Gold&Prc 25.51 -.67+14.7 GmlncS 16.09 -.17 -2.7 HiYldTx 1247 +.06 -2.3 IntTxAMrT11.12 +.06 -1.1 Intl FdS 6285 -.63 +2.2 LgCoGro 27.65 -.30 +0.3 LatAmrEq 69.78-1.23 +6.3 MgdMuniS8.89 +.06 -1.8 MATFS 14.15 +.08 -1.5 Davis Funds A: NYVenA 35.87 -.17 -2,6 Davis Funds B: NYVen B 34.33 -.17 -2.7 Davis Funds C & Y: NYVenY 36.29 -.17 -2.6 NYVen C 34.56 -.16 -2.7 Delaware Invest A: TrsndAp 14.48 -.22 -6.3 TxUSAp 11.11 +.05 -2.0 Delaware Invest B: DelchB 3.05 ... -0:7 SplGrBt 23.58 -.11 -1.4 Dimensional Fda: EmMktV 40.34 -.42 +2.0 lnlSmVan18.29 -.21 +3.2 USLgCon38.06 -.33 -3.1 USLgVan21.00 -.10 -3.1 USMicron11.59-.08 -5.4 US Small n16.82-.09 -5.4 USSmVa21.54 -.02 -4.9 lhqtSmCo n17.43-.19 +3.6 EdgMktn30.43 -.33 +1.4 Fisdn 10.21 +.01 +0.3 IntVan 21.48 -.21 +1.0 GlbSFxlnc n18.83+.01 +0.5 TM USTgtV 19.20-.06 -4.6 TMlntVa 17.16 -.16 +0.8 TMMktwV 15.27 -.08 -4.2 2YGIFxd nlO.33 ... +0.1 DFARIEn22.09 +.34 -5.3 Dddge&Cox: Balanced 74.42 -.42 -2.8 Income 12.53 +.03 -0.8 InlStk 40.63 -.25 +0.5 Stock 121.83-1.05 -3.5 Dreyfus: Aprec 40.28 -.42 -0.9 Dreyf 9.13 -.07 -1.9 Dr500lnt 36.53 -.32 -3.1 EmngLd 22.68 -.17 -3.6 FLIntr 12.89 .. 0.0 IrisMut .. 0.0 Dreyfus Founders: GrowthB 0.0 GrwthF p 0.0 Dreyfus Premier: CorVIv p 26.64 -.22 -2.9 LfdHYdAp6.60 -.02 -1.0 SIrValAr 28.67 -.20 -2.5 TbhGroA 23.34 -.15 0.0 Drlehaus Funds: EMiklGr 38.82 -.29 +3.4 Eaton Vance CI A: ChinaAp 27.33 -.41 -5.5 AMTFMBI10.06 +.04 -4.2 MultiCGrA 8.83 -.16 -4.3 InBosA 5.81 -.02 -1.2 LgCpVal 20.62 -.15 -0.9 NatlMun 10.44 +.03 -4.9 SpEqtA 14.70 -.12 -0.1 TradGvA 7.38 ... 0.0 Eaton Vance CI B: FLMBt 10.18 +.05 -3.6 HIthSBt 9.57 -.06 -5.7 NatlMBt 10.44 +.03 -5.0 Eaton Vance CI C: GovtCp 7.37 ... -0.1 NatlMCt 10.44 +.03 -5.0 Evergreen A: AstAlIp 14.11 -.08 0.0 Evergreen C: AstAICt 13.68 -.07 -0.1 Evergreen I: CorBdI 9.59 -.07 -5.0 SlMunil 9.88 +.03 -0.6 Excelsior Funds: Energy 25.73 -.57+11.3 HiYieldp 4.20 -.02 +0.1 ValRestr 51.80 -.59 -2.1 FBR Funds: Focus 47.01 -.50 -8.2 FPA Funds: Nwinc 11.16 +.01 +0.5 Fairholme 30.96 -.31 -0.2 Federated A: MidGrStA 34.87 -.54 -1.6 KaufmAp 5.39 -.07 -4.3 MuSecA 10.15 +.04 -1.8 Federated Instl: KaufmnK 5.39 -.07 -4.4 Fidelity Adv Foc T: EnergyT 51.00-1.19 +6.0 HItCarT 19.15 -.22 -6.3 Fidelity Advisor A: DivlntlAr 19.35 -.20 +1.2 Nwlnsgh p 18.98 -.21 +0.2 Fidelity Advisor I: Divlntln 19.68 -.20 +1.2 EqGrd n 58.81 -.85 -2.3 Eqlnin 25.83 -23 -4.7 IntBdin 10.67 +.02 -0.3 Nwlnsgtin19.16 -.21 +0.3 Fidelity Advisor T: BalancT 14.94 -.09 -22 DivlntTp 19.15 -.19 +1.2 DivGrTp 10.97 -.05 -3.8 DynCAT p 16.92 -.27 -5.4 EqGrTp 55.23 -.80 -2.4 EqlnT 25.44 -.23 -4.8 GrOppT 34.57 -.65 -0.5 HilnAdTp 9.39 -.05 -1.2 IntBdT 10.65 +.02 -0.3 MidCpTp20.04 -.32 -0.2 MulncTp 12.47 +.05 -2.1 OvrseaT 21.43 -.21 +1.8 STFiT 9.19 -.01 -0.6 Fidelity Freedom: FF2010 n 13.96 -.06 -1.0 FF2015n 11.62 -.06 -1.2 FF2020 n 14.50 -.09 -1.4 FF2025 n 12.01 -.08 -1.5 FF2030n 14.82 -.12 -1.7 FF2035n 12.24 -.10 -1.8 FF2040n 8.67 -.08 -1.8 Incomexn11.16 -.05 -0.7 Fidelity Invest: AggrGrrnl18.30 -.35 -7.3 AMgr50n 14.36 -.08 -2.0 AMgr70n 15.31 -.12 -2.2 AMgr20rxn12.02-.05 -1.1 Balancn 18.03 -.11 -2.2 BlueChGr n38.57-.33 -0.2 CAMunn11.95 +.06 -2.1 Canada n 58.68 -.48 +5.2 CapApn 23.31 -.37 -5.4 CapDevOn11.07-.16 -0.8 Cplncrn 8.21 -.03 -0.8 ChinaRg n26.96 -.23 +1.3 CngSn 449.18-5.88 -0.5 CTMunrn11.22 +.05 -1.6 Contra n 63.64 -.71 +0.4 CnvScn 26.20 -.28 0.0 DisEq n 25.76 -.26 -2.1 Divlnt n 35.66 -.39 +2.6 DivStkOn14.10 -.13 -4.1 DivGthkn 2621 -.12 -3.4 EmrMkn 30.02 -.35 +1.5 Eq Incen47.91-1.20 -3.9 EQII n 20.01 -.18 -4.6 ECapAp 23.55 -.20 +3.2 Europe 37.45 -.34 +3.1 Exchn 314.54-3.84 -1.0 Exportn 22.13 -.21 0.0 Fidel n 34.95 -.37 -1.9 Fiftyrn 18.67 -.31 +0.6 FdrnOnen27.58 -.18 -2.2 GNMAn 10.95 +.06 -0.6 GovtInc 10.56 +.02 +0.4 GroCon 70.88-1.11 -2.7 Grolncn 23.79 -.13 -4.9 Highlnc r n 8.30 -.02 -0.2 Indepn n 25.05 -.60 +2.1 IntBdn 10.15 +.02 -0.3 IntGovn'10.55 +.02 +1.0 IntlDiscn 37.84 -.46 +1.0 IntlSCprn21.44 -.22 +5.0 InvGB n 7.07 +.03 -1.3 Japan n 12.74 -.21 -2.5 JpnSm n 9.61 -.05 +0.8 LCpVIrn 12.60 -.13 -4.4 LatAm n 60.82-1.01 +5.0 LevCoStk n29.16-.49 -0.6 LowP rn 37.70 -.25 -1.7 Magelln n 81.32 -1.07 -1.7 MDMurn10.68 +.05 -1.6 MA Munen11l.58+.03 -2.0 MegaCpStk n1025-.09-3.3 MI Munn 11.69 +.05 -1.5 MidCapn 25.46 -.46 -1.5 MNMunn11.12 +.07 -1.5 MtgSec n 10.21 +.04 -1.9 Munilncn 12.36 +.05 -20 NJ Mun r n11.36 +.05 -1.9 NwMktrn 14.45 -.03 -0.3 NwMill n 24.95 -.32 -4.0 NYMune n1252+.04 -20 OTC n 41.67 -.55 -2.6 OhMunnll.40 +.05 -1.9 100index 9.27 -.07 -3.2 Ovrsean 42.88 -.63 +1.3 PcBasn 25.49 -.25 -2.6 PAMunrn10.62 +.05 -1.7 Puritnn 17.42 -.10 -2.0 RealEx n 24.84 +.32 -4.2 StlntMun 10.44 +.04 -0.5 STBF n 8.53 ... -0.7 SmCaplnd r 16.39-.20 -4.9 SmrlCpSrn15.30-.13 -4.4 SEAsia n 32.78 -.34 -2.5 StkScEn 25.76 -.23 -3.0 Stratlncn 10.38 ... +0.8 StrReRt r 10.36 ... +3.1 TotalBdn 10.28 +.03 -0.4 Trend n 59.06 -.90 -2.2 USBIn 10.89 +.04 -0.3 Utility n 17.83 -.08 -3.8 ValSlratn25.03 -.22 -3.7 Value n 66.59 -.41 -4.5 Wrldwn 18.69 -.20 -0.7 Fidelity Selects: Ainm 36.23 -.68-10.1 Banking n20.79 +.10-13.5 Blotch n 59.91 -.77 -5.8 Brokrn 56.04 -.63 -7.5 Chemn 77.668-3.14 +0.1 ComEquip n18.56-.12 -1.7 Compn 39.80 -.25 +5.9 DfAern 77.84-1.36 -3.9 EngSvn 90.54-2.22 +8.9 Envirn 17.12 -.39 -0.9 FinSvn 79.32 +.04-11.7 Goldrn 46.40 -.98+12.4 Health 110.05-1.25 -6.1 HomFn 22.78 -.06-20.2 Material n55.31-1.90 +2.8 MedDI n 43.75 -.55 -8.1 MdEqSys n23.49 -.31 -4.7 Multmdrn 34.54 -.29 -1.6 NtGasn 48.46 -.80 +8.3 Paper 26.82 -.23 -8.2 Pharmn 10.01 -.14 -6.9 Retail n 35.14 -.15 -9.1 Soltwrn 64.92 -.51 -29 Tach n 63.99 -.87 -02 Telcmn 41.24 -.46 -5.3 Trans n 43.72 -.44 -6.7 UtilGrn 57.33 -.32 -2.9 Wireless n 6.89 -.09 -4.7 Fidelity Spartan: Eqldxlnvn45.90 -.40 -3.1 5001nxlnv r n89.62-.76 -3.0 TotMktlnv n36.16-.31 -3.3 Fidelity Spart Adv: 500Adrn89.62 -.77 -3.0 TotMktAd rn36.16-.31-3.3 First Eagle: GlUbA 43.51 -.32 +2.7 OverseasA 22.55-21 +4.0 First Investors A BIChpAp 21.89 -.19 -2.8 GloblAp 6.92 -.04 +0.7 GovtAp 10.81 +.07 -0.7 GrolnAp 14.07 -.11 -3.0 IncoA p 2.73 ... -1.2 MATFAp 11.39 +.06 -1.7 MITFAp 11.91 +.06 -1.7 MidCpAp 24.79 -.27 -1.5 NJTFAp 12.43 +.05 -2.0 NYTFAp 14.02 +.07 -1.8 PATFAp 12.57 +.07 -1.8 SpSitAp 20.46 -.03 -3.6 TxExAp 9.67 +.06 -1.8 TolRtAp 14.24 -.03 -1.9 ValueBp 6.96 -.04 -3.3 Firsthand Funds: GIbTech 4.50 -.07 -2.0 TechVal 35.37 -29 -1.8 Frank/Temp Frnk A: AdjUS p 8.93 +.02 +0.4 ALTFAp 11.14 +.03 -2.3 AZTFAp 10.66 +.04 -2.5 Ballnvp 52.24 -.17 -4.9 CallnsAp 12.23 +.05 -2.4 CAIntAp 11.33 +.06 -1.8 CalTFAp 7.01 +.03 -2.5 CapGrA 11.01 -.10 -1.9 6,HOW To] AT iE3 UT mAL FU N *:TABLES Here are the 1.000 Oiggesl mutual funds listed on Nasdaq Taoles show the lund name, sell price or Net Assel Value (NAV) and aaily net change. as well as ore total return figure as loilows I Tues: --wk total returnrl I. Wed: 12-mo total return (1l Thu: 3-yr cumulative total return (o) Fri: 5-yr cumulative tolal return (-| Name: Name of mutual fund and family NAV: Net asset value Chg: Net change in price of NAV Total return: Percen change e in NAV for the lime penoO shown, witn dividends reinvested If period longer man 1 year, return is cumula- live Data based on NAVs 'eponea to Lipper Dy 6 pm Eastern Footnotes: e Ex-capital gains distribution I Previous day's quote. n No-load lund p Fund assets used to pay distnution costs r i Redemption lee or contingent deferred sales load may apply s - Stock dividend or split. I Both p and r x Ex-cash dividend NA - No information available NE Dala in question NN Fund does not wisn to ne tracked NS Fund did not exisi at slart date Source: Upper, Inc. and The Associated Press COTFAp 11.49 +.02 -3.0 COTFAp 10.72 +.04 -1.9 CvtScAp 14.23 -.11 -3.7 DbITF A 11.46 +.03 -2.0 DynTchA 26.72 -.23 -0.8 EqlncAp 17.68 -.15 -4.9 Fedlntp 11.34 +.06 -1.4 FedTFAp 11.70 +.04 -1.9 FLTFAp 11.51 +.05 -1.6 FoundAl p 12.21 -.10 -2.2 GATFAp 11.73 +.04 -2.2 GoldPrM A 43.34 -.93+13.8 GrwthA p 40.00 -.37 -2.7 HYTFA p 10.23 +.03 -2.5 IncomA p 2.40 -.01 -2.7 InsTFAp 11.89 +.04 -1.8 NYITFp 10.79 +.04 -1.4 LATF Ap 11.07 +.04 -2.8 LMGvScA 10.27 +.01 +0.4 MDTFAp11.25 +.04 -1.8 MATFAp 11.55 +.04 -2.0 MITFAp 12.01 +.04 -1.3 MNInsA 11.79 +.05 -1.9 MOTFAp 11.88 +.04 -1.7 NJTFAp 11.82 +.04 -1.8 NYInsAp 11.03 +.03 -2.6 NYTFAp 11.48 +.02 -1.5 NCTFAp 11.83 +.02 -2.2 OhiolAp 12.29 +.05 -2.0 ORTFAp 11.59 +.05 -1.8 PATFAp 10.13 +.03 -2.1 ReEScAp 16.14 +.23 -4.9 RisDvAp 30.89 -.32 -4.0 SMCpGrA 29.46 -.42 -4.6 USGovA p 6.47 +.04 -0.7 UtitAp 12.94 -.05 -3.8 VATFAp 11.45 +.04 -1.8 Frank/Tmp Frnk Adv: IncmeAd 2.38 -.02 -2.7 Frank/Temp Frnk B: IncomeB t 2.39 -.01 -2.8 Frank/raTemp Fmnk C: FoundAlp 12.01 -.10 -2.2 IncomCt 241 -.01 -2.8 Frank/Temp Mtl A&B: BeacnA 14.15 -.11-2.4 DiscA 29.46 -.28 +0.4 QualidAt 20.42 -.10 -0.5 SharesA 22.80 -.15 -2.0 Frankrremp Mtl C: DiscCt 29.19 -.27 +0.3 SharesCt22.51 -.15 -2.1 Frank/Temp Temp A: DvMktAp26.76 -.57 +3.0 ForgnAp 10.89 -.16 -0.5 GIBdAp 12.08 -.02 +3.8 GrwthA p 20.93 -.22 -1.6 WortdAp.16.41 -.17 -1.1 Frank/Temp Tmp Adv: GrdhAv 20.96 -22 -1.6 Frank/Temp Tmp B&C: DevMktC 26.07 -.56 +3.0 ForgnCp 10.68 -.15 -0.5 GrwthCp 20.35 -.22 -1.7 GE Elfun S&S: S&Slnc 11.17 +.03 -0.8 S&SPM 40.01 -.34 -1.8 GE Investments: TRFd1 17.23 -.11 -0.5 GMO Trust III: EmMkr 19.81 -.22 +2.1 For 16.15 -.15 +1.3 IntlntrVI 29.11 -.28 +1.7 GMO Dust IV: EmrMkt 19.74 -22 +2.2 Foreign 16.15 -.16 +1.3 IntlGrEq 27.01 -.34 +2.9 InlIntrVI 29.09 -.29 +1.7 GMO Trust VI: EmgMkts r 19.75-.22 +2.1 InHlndxPI 23.51 +.06 41.9 IntlCorEq 36.25 -.39 +2.4 StrFxlnc 23.46 -.04 -1.1 USQltyEq20.18 -.19 -2.1 Gabelli Funds: Asset 44.59 -.51 -1.9 Gateway Funds: GatewayA 27.27 -.11 -1.0 Goldman Sachs A: HYMuAp 9.95 +.02 -2.7 MdCVAp31.94 -.17 -3.6 Goldman Sachs Inst: HYMuni n 9.96 +.03 -2.6 MidCapV 32.22 -.17 -3.6 StruInt 13.01 -.17 +12 Harbor Funds: Bond 12.13 +.08 -1.3 CapAplnst 32.21 -.34 -1.6 Inl r 64.76 -.58 +3.6 Hartford Fds A: CpAppAp 35.94 -.46-0.3 DivGthAp 19.17 -.19 -1.1 Hartford Fds C: CapApC 13223 -.41 -0.4 Hartford Fds L: GrwOppL 28.42 -.43 -2.0 Hartford HLS IA: CapApp 46.75 -.60 -0.5 Div&Gr 20.34 -21 -1.1 Advisers 19.14 -.10 -3.0 Stock 40.93 -.34 -4.2 TolRetBd 11.15 +.04 -0.9 Henderson Gibi Fds: InlOppAp22.81 -.12 +2.1 Hennessy Funds: CorGrllOdg 18.46-25 +0.4 HolBalFd n15.73 -.06 +0.4 HussmnStrGr 15.72 ... +2.3 ICON Fds: Energy 29.87 -.50 +6.7 Hlthcare 14.27 -.18 -5.7 ISI Funds: NoAm p 7.76 +.02 +1.2 Ivy Funds: AssetSC 27.32 -.05 +3.5 AssetStA p27.73-.04 +3.6 GINatRsA p36.35-75 +6.3 JPMorgan A Class: MCpValp21.76 -.08 -4.2 JPMorgan Sel Cis: lntmrTFBd n10.64+.05 -1.1 InlrdAmer 24.53-.23 -1.9 USLCCrPIs n18.49-.13-3.2 Janus: Balanced 24.86 -.10 +1.2 Contrarian 18.08 -.18 -3.7 Enterpr 51.02 -.54 -2.8 FedTE 6.28 ... 0.0 RxBnd 9.74 +.03 +0.7 Fund 28.86 -.30 -0.3 FundaEq 23.35 -.18 -1.8 GI UteSd 21.84 -.20 -5.1 GITechr 12.71 -.12 -2.2 Grinc 32.49 -.35 -1.5 MdCpVal 21.21 -.11 -2.5 Orion 11.49 -.08 -1.6 Ovrseasr49.62 -.55 +0.1 Research 27.29 -.24 -2.6 ShTmBd 2.92 ... +0.6 Twenty 67.98 -.50 +2.9 Ventur 45.10 -.41 -9.2 WridWr 48.37 -.27 -5.2 Janus Adv S Shrs: Forty 37.92 -.32 +2.2 JennisonDryden A: BlendA 16.55 -.12 -2.2 HiYIdAp 5.28 -.01 -0.5 InsuredA 10.43 +.05 -1.5 UliltyA 12.95 -.12 +1.3 JennisonDryden B: GrowthB 14.27 -.14 -1.7 HiYldBt 5.27 -.01 -0.7 InsuredB 10.45 +.05 -1.5 John Hancock A: BondAp 14.42 +.02 -1.4A ClassicVlp 18.38 +.02-11.4 RgBkA 19.10 +.19-12.7 StrinAp 6.45 -.02 +0.5 John Hancock B: StrlncB 6.45 -.02 +0.4 John Hancock CI1: LSAggr 13.40 -.12 -1.7 LSBalane 13.43 -.06 -1.5 LSGnwth 13.59 -.09 -1.5 Julius Baer Funds: IntlEql r 40.34 -.49 +2.0 InllEqA 39.38 -.47 +2.0 InlEqlltr 15.50 -.19 +2.2 Keeley Funds: SmCpValA p 25.09-27+1.5 Kinetics Funds: Pdm 26.33 -.30 -4.3 LSWalEq n15.23 -.13 -4.9 Lazard Inst: ErngMild 22.53 -.26 +2.3 Legg Mason: Fd OpporTrl 14.13 +.03-12.2 Splnvp 25.07 -.17-11.1 ValTrp 50.22 -.32 -9.9 Legg Mason InstI: ValTrlnst 57.08 -.36 -9.8 Legg Mason Ptrs A: AgGrAp 105.78-1.03 -2.9 ApprAp 14.09 -.14 -1.5 HilncAt 6.06 -.01 -1.4 InAICGAp 9.87 -.13 +1.3 LgCpGAp22.23 -.08 -3.3 MgMuAp15.44 +.05 -1.4 Legg Mason Ptrs B: CapIncBt14.47 -.08 -1.3 LgCpGB t 20.56 -.08 -3.4 Longleaf Partners: Partners 29.23 -.26 -3.1 In) 17.08 -.07 -3.2 SmCap 23.55 -.10 -6.8 Loomis Sayles: LSBondl 14.25 ... -1.0 StrlncC 14.68 +.01 -1.2 LSBondR 14.21 +.01 -1.1 StrlncA 14.62 +.01 -1.1 Lord Abbett A: AffilAp 12.29 -.12 -42 BdDebAp 7.52 -.02 -1.0 MidCpA p15.19 -.12 -6.5 MFS Funds A: MITA 19.14 -.13 -1.7 MIGA 13.69 -.09 -1.5 HilnA 3.47 -.02 -1.4 MFLA 9.70 +.04 -1.7 TotRA 14.18 -.02 -2.4 UtilA 17.67 -.10 +0.3 ValueA 23.62 -.16 -3.4 MFS Funds B: MIGBn 12.37 -.09 -1.6 GvScBn 9.70 +.04 -0.2 HilnBn 3.48 -.02 -1.4 MulnB n 8.27 +.03 -2.3 TotRBn 14.17 -.03 -2.6 MFS Funds Instl: IntlEq n 18.41 -.13 +3.9 MainStay Funds A: HiYidBA 5.89 -.02 -1.2 MainStay Funds B: CapApBt 26.51 -.24 -0.3 ConvBt 14.35 -.16 -1.4 GovtB t 8.36 +.04 -0.2 HYIdBB t 5.86 -.02 -1.1 IntlEqB 13.18 -.06 +1.5 SmCGBp 12.63 -.15 -4.2 TotRtBt 15.91 -.06 -1.3 Mairs & Power: Growth 69.68 -.82 -3.6 Marsico Funds: Focusp 16.97 -.19 -4.0 Growp 18.98 -.19 -3.9 21stCntp 14.69 -.10 -7.1 Matthews Asian: Indiar 18.71 -.59 -9.7 PacTiger 24.27 -28 -2.5 Metro West Fds: TotRetBd 9.75 .... NA Midas Funds: MidasFd 6.02 -.21+13.5 Monetta Funds: Monettan 13.88 -.19 -3.3 Morgan Stanley A: DivGthA 16.98 -.15 -2.6 Morgan Stanley B: DivGtB 17.11 -.15 -2.6 GIbDivB 13.29 -.11 +0.5 StratB 18.31 -.08 -2,2 MorganStanley Inst: CorPlsFxI10.75 ... NA EmMktl n 29.69 -.45 +0.6 InUEql n 17.29 -.16 +2.4 Munder Funds A: IntemtA 19.66 -.12 -2.6 Mutual Series: BeacnZ 14.25 -.11 -2.4 DiscZ 29.80 -.28 +0.4 QualdZ 20.55 -.11 -0.5 SharesZ 22.98 -.15 -2.0 Neuberger&Berm Inv: Focus 24.25 -.17 -2.1 Geneslnst 44.53 -.48 +0.8 Intlr 19.22 -.15 +5.6 Partner 29.78 -.45 +0.9 Neuberger&Berml T: "Genesis 46.:5 -.51 4+0.8 Nicholas Group: Hilncin 9.88 -.02 -0.7 Nichn 44.35 -.35 -4.6 Northern Funds: SmCpldx 8.24 -.03 -6.0 Technly 11.68 -.06 -2.7 Oak Assoc Fds: WhitOkSG n30.87-.10 -5.4 Oakmark Funds I: Eqtylncr 26.95 -.13 +2.4 Globall 21.52 -.09 -0.6 Intl r 18.16 -.05 -1.6 Oakmark r 36.51 -.29 -4.7 Select r 22.36 -.28 -8.6 Old Mutual Adv II: Tc&ComZ 13.88 -.05 -1.8 Oppenheimer A: AMTFMu 8.48 +.04 -5.1 AMTFrNY 11.98 +.03 -3.7 CAMuniAp9.69 +.05 -4.6 CapApAp44.22 -.41 -1.8 CaplncAp 10.55 -.06 -3.9 ChmplncAp 7.60-.7 -8.2 DvMldAp44.16 -.60 +1.7 Disc p 47.25 -.59 -5.7 EquityA 8.98 -.08 -2.0 GobA p 63.72 -.71 +0.1 GIbOppA 29.08 -.41 -2.1 Gold p 39.76 -.97+12.8 IntBdAp 6.72 -.01 +4.0 MnStFdA 31.98 -28 -2.9 MSSCAp 17.30 -.12 -3.8 MidCapA 17.10 -.15 -3.0 PAMuniA p 11.71+.03 -3.0 S&MdCpVI 32.21-.24 -3.5 StrInAp 4.37 -.01 +402 USGvnp 9.39 -.01 -1.8 Oppenheimer B: AMTFMu 8.45 +.04 -5.0 AMTFrNY 11.98 +.03 -3.9 CplncBt 10.41 -.07 -4.1 ChmplncBt 7.59-.17 -8.3 EquityB 8.41 -.08 -2.1 StrncBtS 4.39 -.01 +0.1 Oppenhelm Quest: OBalAx 14.40 -.17 -4.5 Oppenheimer Roch: LIdNYAp 3.28 +.01 -1.5 RoMuAp16.87 +.04 -3.8 RcNIMuA 10.00 +.04 -5.7 PIMCO Admin PIMS: TotRtAd 10.82 +.05 -1.2 PIMCO Instl PIMS: AIAsset 12.74 +.01 +0.1 ComodRR 20.00 -.10+14.2 DevLcMkrl10.80 -.01 +2.5- EmMkBd 10.62 -.01 -0.3 FRItlncr 9.23 -.05 -33 HiYId 9.21 -.02 -1.3 LowDu 10.24 ... -0.4 RealRtnl 11.57 +.07 +2.8 TotRI 10.82 +.05 -1.1 PIMCO Funds A: RealRtAp 11.57 +.07 +2.8 TotRtA 10.82 +.05 -1.2 PIMCO Funds C: TotRtCI 10.82 +.05-1.2 PIMCO Funds D: TRtnp 10.82 +.05 -1.2 PhoenlxFunds A: BalanA 13.16 -.04 -2.0 CapGrA 14.82 -.18 -1.1 Pioneer Funds A: BondAp 9.18 +.04 -0.7 EurSelEqA 30.06-.20 +1.5 InIlValA 23.78 -.33 +0.5 MdCpGrA14.25 -.18 -2.2 PionFdAp42.31 -.51 -1.7 TxFreAp 10.79 +.05 -3.6 ValueAp 13.49 -.10 -2.0 Pioneer Funds B: HiYIdBtI 9.93 -.05 -0.9 Pioneer Funds C: HiYIdCI 10.03 -.05 -0.9 Price Funds Adv: EqInc 25.13 -.14 -4.4 Growthpn28.93 -.36 -1.3 Price Funds: Balancen19.01 -.12 -1.2 BIChipn 34.42 -.37 -2.5 CABond n10.70 +.04 -1.7 CapAppn18.70 -.10 -2.5 DivGron 22.91 -.19 -2.8 EmEurp 34.56 -.44 +4.0 EmMktSn38.41 -.59 +1.8 Eqlncn 25.19 -.14 -4.4 Eqlndexn34.80 -.30 -3.1 Europen 17.67 -.16 +32 GNMA n 9.42 +.05 -1.0 Growth n 29.17 -.36 -1.3 Gr&lnn 19.67 -.19 -3.2 HlhSdn 24.98 -.39 -6.4 HrYieldn 6.39 -.01 -1.3 lntlBondn10.67 -.02 +4.8 IniDisn 43.45 -,51 +1.4 InslStkn 15.03 -.15 +1.9 Japan n 9.31 -.12 -123 LatAin 52.37 -.93 +6.1 MDShrt n 5.22 +.02 -0.3 MDBondn10523 +.03 -1.9 MidCap n 50.45 -.57 -2.5 MCapVal n20.72 -.12 -3.5 NAmer n 28.22 -.35 -1.8 NAsian 16.92 -.49 -6.2 New Era n58.44-1.16 +7.2 N Hodzdn 25.83 -.28 -5.3 NIncn 9.06 +.02 -0.3 NYBondn11.01 +.05 -1.8 PSIncn 14.88 -.05 -1.1 RealEstn 18.11 +.23 -5.0 R2010 n 15.06 -.07 -1.4 R2015n 11.63 -.07 -1.6 R2020n 16.12 -.12 -1.7 R2025n 11.88 -.09 -1.7 R2030n 17.06 -.15 -1.8 SciTecn 20.07 -.09 +0.5 ShtBd n 4.77 ... +0.3 SmCpStkn26.10-.15 -6.7 SmCapVal n32.91-.11-3.2 SpecGr n 18.48 -.18 -2.3 Speclnn 11.89 ... -0.3 TFInc n 9.73 +.04 -1.7 TxFrHn 11.20 +.04 -2.4 TxFrSI n 5.42 +.02 -0.5 USTInt n 5.78 +.02 +2.0 USTI.gn 12.12 +.02 +0.9 VABondn11.24 +.04 -1.9 Value n 23.34 -.20 -3.4 Principal Inv: DiscLCinst 13.21 -.12 -2.4 Putnam Funds A: AmGvAp 9.34 +.09 0.0 AZTE 8.84 +.03 -2.1 Convp 19.00 -.12 -2.9 DiscGr 19.36 -.29 -2.0 DvrinAp 9.09 -.02 -2.5 EqlnAp 14.53 -.08 -4.0 EuEq 23.25 -21 +2.5 GeoAp 14.66 -.02 -4.6 GIbEqtyp10.27 -.11 0.0 GrInAp 13.67 -.09 -5.7 HIthAp 48.75 -.36 -3.6 HiYdA p 7.37 -.02 -0.5 HYAdAp 5.73 -.02 -0.8 IncmAp 6.61 +.04 -1.4 IntlEq p 24.35 -27 +0.5 IntGrdnp 12.46 -.13 +1.7 InvAp 12.19 -.10 -5.1 NJTxAp 9.06 +.04 -1.8 NwOpA p 45.66 -.54 -1.4 OTCAp 8.75 -.15 -1.6 PATE 8.95 +.04 -1.6 TxExAp 8.49 +.03 -2.2 TFInAp 14.46 +.09 -2.1 TFHYA 12.20 +.04 -2.9 USGvAp 13.47 +.15 -0.5 UtilAp 14.36 -.07 -2.8 VstaAp 10.13 -.17 -1.4 VoyAp 16.53 -.16 -2.9 Putnam Funds B: CapAprt 15.85 -.11 -4.8 DiscGr 17.55 -.26 -2.0 DvrlnBt 9.01 -.02 -2.6 Eqlnc t 14.37 -.09 -4.0 EuEq 22.48 -.21 +2.4 GeoBt 14.51 -.02 -4.6 GIbEqt 9.36 -.11 -0.1 GINtRst 27.74 -.45 +7.2 GrInBt 13.41 -.09 -5.7 HIthBt 42.48 -.31 -3.7 HiYldBt 7.34 -.02 -0.8 HYAdBt 5.65.-.01 -0.7 IncmBt 6.57 +.04 -1.4 InlGdnt 12.24 -.13 +1.7 InUfNopt 15.75 -.18 +2.1 InvBt 11.06 -.09 -5.1 NJTxBt 9.05 +.04 -1.9 NwOpBt 40.28 -.48 -1.5 NwValp 13.14 -.08 -6.5 OTCBt 7.60 -.12 -1.6 TxExBt 8.50 +.04 -2.2 TFHYBI 12.21 +.03 -3.0 TFInBt 14.48 +.09 -2.2 USGvBt 13.40 +.16 -0.5 UtilBt 14.27 -.07 -3.0 VistaBt 8.68 -.14 -1.4 VoyBt 14.23 -.14 -2.9 RS Funds: CoreEqA 38.84 -.22 -3.8 IntGrA 19.09 -.14 +6.2 Value 23.26 -.24 -3.7 Rainier Inv Mgt: SmMCap 33.27 -.41 -3.2 RiverSource A: BalanceA 10.12 -.05 -3.2 DEI 10.97 -.10 -3.0 DvOppA 8.15 -.09 -4.0 Growth 28.48 -.25 -2.7 HiYdTEA 4.21 +.02 -2.4 LgCpEq p 4.69 -.04 -3.5 MCpGrA 8.36 -.11 -4.8 MidCpVlIp 8.25 -.10 -2.9 Royce Funds: LwPrSkSv r'13.88-.16 +0.5 MicroCapil14.54 -.18 +0.6 PennMul r 9.81 -.08 -1.9 Premier r 16.36 -.19 -0.4 TotRetlr 11.84 -.05 -3.4 ValSvct 10.56 -.15 +3.7 VIPISvc 12.35 -.15 -2.3 Russell Funds S: DivEq 42.27 -.45 -3.5 IntSec 63.78 -.80 +1.6 MStratBd 10.19 +.02 -2.0 QuanEqS 33.77 -.30 -3.3 Rydex Advisor: OTC n 10.78 -.03 -2.5 SEI Portfolios: CoreFxAn1O.05 +.04 -1.5 IntEqAn 11.84 -.13 +1.4 LgCGroAn20.66 -.19 -1.2 LgCVaIAn17.73 -.16 -4.9 TxMgLCn12.42 -.11 -2.9 SSgA Funds: IntlStock 12.58 -.17 +1.7 STI Classic: LCpVIEqA 12.08 -.10 -4.7 LCGrStkAp9.10.10 -.13 -1.6 LCGrStkC p 8.22-.11 -1.7 SelLCStkCt25.34-.30 -1.6 SelLCpSIkl27.61-.33 -1.5 Schwab Funds: HlthCare 14.72 -.16 -5.5 1000invr 38.06 -.33 -3.1 100OSel 38.04 -.33 -3.1 S&P Inv 20.00 -.17 -3.1 S&PSel 20.07 -.17 -3.0 S&PlnslS110.25 -.09 -3.0 SmCplnv 17.32 -.08 -5.0 YIdPIsSI 8.39 -.08 -5.7 Selected Funds: AmShD 42.91 -.22 -2.5 AmShS p 42.87 -.23 -2.6 Sellgman Group: ComunA 133.05 -.17 +0.2 FrontrAt 9.52 -.08 -7.2 FrontrDt 7.75 -.07 -7.3 GIbSmA 14.24 -.10 -0.2 GIbTchA 16.03 -.11 +0.5 HYdBAp 2.98 -.01 -1.2 Sentinel Group: ComS A p 30.69 -.33 -1.2 Sequoia n128.99 -.76 -4.1 Sit Funds: LrgCpGr 41.73 -.40 -0.2 SoundSh 32.72 -.23 -3.1 St FarmAssoc: Gwth 56.25 -.71 +0.7 Stratton Funds: Dividend 27.16 +A5 -5.6 Multi-Cap40.63 -.40 +1.4 SmCap 42.67 -.38 -2.9 SunAmerica Funds: USGvBt 9.56 +.05 +0.1 Tamarack Funds: EntSmCp20.69 -.12 -4.3 Value 23.96 -.23-3.8 Templeton Instit: EmMSp 18.61 -.40 +2.5 ForEqS 25.20 -.42 +0.2 Third Avenue Fds: Inl r 18.67 -.23 +5.0 RIEsIVI r 24.97 -.06 -4.9 Value 52,92 -28 -3.9 Thornburg Fds: IntValAp 29.19 -.18 +0.7 IntValue I 29.81 -.19 +0.7 Thrivent Fda A: HiYId 4.67 -.01 -0.9 Incum 8.34 +.02 -1.0 transamerica A: Flexlncp 8.82 ... -0.7 TA IDEX A: TempGlbA p29.41-.26-0.9 Turner Funds: SmlCpGr n27.27 -.42 -4.8 Tweedy Browne: UBS Funds Cl A: UMB Scout Funds: Inll 35.02 -.27 +3.5 US Global Investors: AIIAm 25.10 -.37 +0.3 GIbRs 17.36 -29 +9.5 Gld&Mtls 19.45 -.27+14.3 WIdPrcMn 30.26 -.53+15.6 USAA Group: AgvGt 32.37 -.32 -3.8 CABd 10.41 +.05 -2.4 GNMA 9.65 +.06 -0.8 M. %V & ALbt. ev ceW ' .'T -s3w 12-. o AAL WOO: aat S .0 1 -5) 5,e 5 ^ ! dap ~?*i. N- MAYCbo Amt WWI: GrTxStr 13.26 -.03 -2.6 Grwlh 15.13 -.20 -1.0 Gr&lnc 14.91 -.13 -3.7 IncStk 13.19 -.12 -4.5 Inco 12.06 +.05 -0.5 Intl 25.25 -.15 +4.1 NYBd 11.42 +.05 -2.3 PrecMM 38.60-1.04+14.6 SciTech 10.98 -.05 -1.0 ShtTBnd 8.90 +.01 -0.2 SmCpStk 11.45 -.08 -5.7 TxEII 12.71 +.06 -1.9 TxELT 13.09 +.05 -2.7 TxESh 10.62 +.03 -0.2 VA Bd 10.99 +.04 -2.3 WIdGr 18.56 -.14 +1.8 VALIC: MdCpldx 20.54 -.21 -3.9 StkIdx 31.83 -.28 -3.1 Value Line Fd: LrgCon 19.34 -.27 -0.1 Van Kamp Funds A: CATFAp 17.27 +.08 -2.4 CmstAp 15.83 -.09 -4.2 CpBdA p 6.44 +.02 -1.5 EqlncAp 8.15 -.04 -3.6 Exch 445.39-6.17 +1.6 GrInAp 18.89 -.13 -4.2 HarbAp 15.28 -.13 -2.1 HiYidA 9.97 -.02 -0.8 HYMuAp 10.21 +.03 -2.6 InTFAp 16.74 +.06 -3.3 MunlAp 13.63 +.06 -3.2 PATFA p 16.00 +.06 -2.7 StrMunlnc 12.06 +.04 -3.2 US MtgeA 12.77 +.07 -3.8 UtilAp 22.87 -.09 -2.4 Van Kamp Funds B: EnterpBt 12.19 -.14 -2.7 EqincB t 8.01 -.03 -3.5 HYMuBt 10.21 +.03 -2.7 MulB 13.61 +.06 -3.3 PATFBt 15.95 +.06 -2.7 StrGwth 35.11 -.42 -4.4 StrMunlnc 12.05 +.04 -3.3 US Mtge 12.71 +.07 -3.9 UIB 22.73 -.10 -2.4 Vanguard Admiral: CAITAdm n10.84+.05 -1.2 CpOpAdI n75.87 -.87 -2.1 Energy n147.38 -2.51 +8.6 EuroAdmlin83.22-.70 +3.3 ExplAdml n56.63 -.52 -4.1 ExtdAdm n35.21 -.29 -4.3 500AdmIln119.55-1.01-3.0 GNMAAd n10.32+.07 -0.7 HlhCrn 53.76 -.52 -3.3 HiYIdCp n 5.68 ... -1.0 lnfPrAdn25.93 +.15 +3.4 InsdLTAdn12.14 +.06 -2.0 rTBdAdmln10.69+.03 +0.6 ITsryAdml n11.76+.05 +1.7 IntGrAdm n70.65 -.75 +2.3 ITAdmIn 13.18 +.07 -1.5 ITGrAdmrn 9.85 +.01 -0.2 UdTrAdn 10:88 +.03 -0.4 MCpAdml n83.08-.78 -3A MorgAdmn53.22-.60 -0.8 MuHYAdmn10.37+.04 -2.3 PrmCap rn68.70 -75 -0.7 STsyAdml n10.90 ... +0.9 ShtTrAdn15.78 +.02 -0.1 STIGrAdn10.73 -.01 -0.1 TxMCaprn62.68-.57 -3.0 TIlBAdml nlO.15 +.03 -0.6 TStkAdm n31.27 -26 -3.2 WellslAdm n51.07-.03 -1.4 WelltnAdm n53.29-.30 -0.7 Windsorn46.59 -.40 -5.0, WdstilAd n49.19 -.36 S.8. Vanguard'Fds: ' AssetAn 26.54 -24 -3.1: CALTn 11.20 +.06 -1.8 CapOppn32.84 -.37 -2.1 Convrtn 13.09 -.05 -2.1 DivdGron13.85 -.14 -1.6 Energy n 78.46-1.34 +8.6 Eqnc n' 21.80 -.14 -4.0 Explrn 60.82 -.56 -4.1 FLLTn 11.30 +.04 -1.6 GNMA n 10.32 +.07 -0.8 GlobEqn 20.80 -.23 -0.1 Groincn 28.36 -.26 -3.0 GrthEqn 11.16 -.16 -2.5 HYCorp n 5.68 ... -1.0 HIthCre n127.36-124 -3.3 InflaPro n 1322 +.07 +3.4 IntlExpIrn 16.68 -.24 +2.9 IntlGrn 22.20 -.23 +2.3 IntlVal n 37.82 -.39 +2.3 ITIGrade n 9.85 +.01 -02 ITTsryn 11.76 +.05 +1.7 LifeConn 16.23 -.06 -1.6 LifeGron 22.51 -.18 -2.3 Ufelncn 13.84 -.02 -1.3 LifeModn 19.55 -.10 -2.0 LTIGraden8.75 +.02 -1.1 LTTsryn 11.63 +.04 +0.5 Morgn 17.16 -.19 -0.8 MuHYn 10.37 +.04 -2.3 MulnsLg n12.14 +.06 -2.0 Mulntn 13.18 +.07 -1.5 MuLTd n 10.88 +.03 -0.4 MuLongn 10.91 +.05 -2.2 MuShTrtn 15.78 +.02 -0.1 NJLTn 11.48 +.06 -2.3 NYLTn 10.89 +.05 -2.0 OHLTTEnl1 .74 +.05 -1.8 PALTn 10.93 +.05 -1.8 PrecMlls r n37.46-.70+13.0 Pnnrmcporn12.03-.13 -1.7 Prmcprn66.19 -.72 -0.7 SelValurn16.77 -.12 -7.1 STARn 19.35 -.09 -1.6 STIGraden10.73-.01 -0.1 STFedn 10.75 +.03 +0.6 STnsryn 10.90 ... +0.9 StratEqn 18.16 -.12 -4.3 TgtRe2025 n12.50-.08 -1.9 TgRe20158 n12.14-.05-1.6 TgRe2020 n21.60-.12 -1.8 TgtRe2035 n13.13-.10 -2.1 USGroen 16.89 -.19 -2.6 USValuen1h.36 -.10 -2.7 Wellslyn 21.08 -.01 -1.4 Wellin n 30.85 -.17 -0.7 Wndsrn 13.80 -.12 -5.1 Wndslln 27.71 -.20 -4.7 Vanguard Idx Fds: 500 n 119.52-1.02 -3.0 Balanced 20.54 -.08 -2.2 DevMktn 12.09 -.13 +1.5 EMkt n 29.69 -.34 +1.9 Europe n 35.42 -.30 +3.3 Extend n 35.19 -.29 -4.3 Growth n 29.48 -.30 -0.9 ITBnd n 10.69 +.03 +0.5 LgCaplxvn23.54 -.21 -3.0 MidCapn 18.31 -.17 -3.4 Pacificn 11.37 -.16 -2.3 REITrn 19.23 +.30 -5.1 SmCap n 28.62 -.17 -5.1 SmICpGthn17.13-.19 -4.4 SmlCpVln13.97 -.01 -5.8 STBndn 10.36 +.01 +0.8 TotBndn 10.15 +.03 -0.6 Tollnll n 17.75 -.18 +1.6 TotStkn 31.26 -.27 -3.3 Value n 22.90 -.17 -5.1 Vanguard Instl Fds: Ballnstn 20.54 -.08 -2.2 DvMktlnst n12.00-.12 +1.5 Eurslnst n35.46 -.30 +3.3 Extin n 35.23 -.28 -4.3 Grwthlstn29.49 -.30 -0.9 lnfProlnstn10.56 +.06 +3.4 Instldxn 118.65-1.01 -3.0 InsPIn 118.66-1.01 -3.0 TotlBdldxn51.17 +.14 -0.6 lnsTSIPus n28.21-.24 -3.3 MidCplsln18.36 -.17 -3.4 SCInstn 28.65 -.16 -5.1 TIstsn 10.15 +.03 -0.6 Tstnsn 31.27 -.27 -3,3 Valellstn22.90 -.17 -5.1 Vanguard Signal: 500Sgln 98.75 -.84 -3.0 TolBdSgln10.15 +.03 -0.6 TotStkSgl n30.18 -.26 -3.3 Victory Funds: DvsStA 15.87 -.12 -1.1 WM Blair MII Fds: InUGthI r 26.39 -.34 +2.0 Waddell & Reed Adv: AsselSp 12.82 -.02 +3.9 CorelnvA 5.51 -.09 +0.2 ScTechA 9.93 -.06 -2.9 Wasatch: SmCpGr 28.95 -.29 -8.6 Wells Fargo Adv: CmStkZ 16.68 -.14 -4.0 Opptylnv 33.36 -.36 -1.4 Western Asset: CorePlus 9.79 +.03 -4.0 Core 10.33 +.02 -5.0 William Blair N: GrowthN 10.25 -.12 -3.3 IntGlhN 25.94 -.34 +2.0 . =&.eOnOR - A fl e fli 0 "Copyrighted Material l- Syndicated Content Available from Commercial News Providers" a . o w o ow . sa - al a a a o a efla n - .N- 4 S a w n owp a 0 .0 dihe o a C --. a a -a S n a 410-- e a a wp do- -4m a o m - a - * a -- ~0 - a - a- a a a - - e- a S ~ e~- - - r a -- a - @0 0 - se -eat 0 am- C0 a. ab 101 a a- e"laop0 w a e4 a e 40 4we4a a o-4 a sma e SOUTHERLAND TEMPUR welcome to bed FREE < 1 FREE Complete adjuiLabs le -E, beds starting as low as RET-UP" Posturepedic yr&t yvS-*0' THElj *iy Ci__^S= SLEEP .-TEMPUR I welcome to bed Ilisw'c~xlw~thetp~ StEARNS & icOsTtEW IUPENr iltE rSOUTHERLAND At&freC V SUPEJO -.-.,*. J *i", thnnt -, tlipA. c a f "THE MATTRESS EXPERTS" .,,. New Ocala Location Ocala Location 11250 S.W. 93rd Ct Rd Villages Location 1925 SW College Rd SR 200 West, 2255A Parr Drive Across from Tarqet next to Wa-Mart Off 466, Next to Walgreens 690-BEDZ (2339) 352-732-3100 352-753-0672 Hours: Monday-Saturday 10-7 *Sunday 1-5 S**With set purchases over 1499.99. C E ..... CA.NCEe '- American ow.-w :-.e %CcoTechnicail FOUNDATION REPAIRS - Foundation Underpinning Soil Stabilization Sinkhole Remediation Pressure Grouting Chemical Urethane Injection Soil Screw Systems / Piling Serving Marion s au FREE & Surroundings d C SIn Counties CNS1L5ATION SLirensed & Insured vA ,,.ai--gcottech.corn CG1504524 o o . qb- I - "Act quickly, think slowly." Greek proverb IOA SATURDAY MARCH 8, 2008 C TRUS COUNTY CHRONICLE EDITORIAL BOARD Gerry Mulligan .......................... publisher Charlie Brennan ............................. editor Neale Brennan ...... promotions/community affairs Kathle Stewart ...................circulation director Mike Arnold .......................managing editor .. llk M Jim Hunter ....................... ..... senior reporter Curt Ebitz ............ .............. citizen member by Albert M. Mac Harris................. ........citizen member Williamson Lace Blue-McLean .................. guest member "You may differ with my choice, but not my right to choose." David S. Arthurs publisher emeritus POLLUTION SOLUTION A cleansing change on local waterways ne of the hidden pollution sources in coastal waters along Citrus County comes from boats that dump waste directly into our bays and rivers. Through the years, a growing number of traveling boaters take haven in Kings Bay 6r the THE I Homosassa River. Clear Some stay for weeks derelic at a time. While visitors are OUR 01 always welcome, A the illegal dumping A goo, of their waste is not appreciated. While laws say that boaters must hook up to a pump station and a marina and have their tanks emptied, the law is only as good as the enforcement. And in Citrus County, there hasn't been any enforcement. Thus, human waste becomes just one more pollution source in our already troubled bays and rivers. But there is good news. -When the Citrus County Sheriff's Office took over the law enforcement responsibilities in Crystal River, a more active boat patrol began working the Kings Bay area. Citations and tickets were handed out to live-aboard visiting boaters who weren't using the proper sanitation facilities. Within 24 hours of being addressed, those on vessels not willing to live by the environmental reg- SUE: ulations left local up of waters. boats. That's not a bad accomplishment. DINION: Sheriff's office t r. personnel also start. investigated those vessels that appeared to be abandoned and without current registration so legal proceedings can be started. The more intense services offered by the county sheriff's office already have paid off for the residents of Crystal River and all who value our water- ways. Polluting and abandoned boats have been an issue for many years in Kings Bay. Within a month of taking over' law enforcement responsibilities under a new contract with the city council, good things are beginning to happen. 1 t P d Hot Corner: DAWSY Minding business Hey, Dawsy, Phillips is minding her business. Her business is my business as a taxpayer. We're tired of your ripping off this county for all your little toys and your little whims. Looking out Who does Jeff Dawsy think he is, reprimanding Commissioner Phillips? She's our commissioner. She's looking out for the taxpayers, not him. He sounds just like a George Bush. Creating divide C 0 Thanks to Fox News, I'm AMM going to contribute to the economy. Finally, after lis- tening for months to their propaganda machine, I couldn't stand it any longer, so I smashed my TV. Unfortunately, I'm not cALL a well-to-do Republican, so 563 I'll probably have.to settle O56 ' for a $10 picture tube from the thrift store. Now, on a more serious note: If it weren't for Hillary and Bill Clinton, Sean Hannity would not have a job. With all the good and bad things going on in this world, Hannity cannot do a show without spending half of it tearing down the Clintons. It's peo- ple like Hannity, Rush Limbaugh and Bill O'Reilly who continue to create the divide that exists between the parties. And to that list, let's add Bill Cunningham from Cleveland. Snow Bird club This is in response to the person who asked about the Michigan Snow Bird Club. You responded that it disbanded last year. There is an American/Canadian Snow Bird Club here in Citrus County. They have many activities for snow birds. If anyone would like more information, please call 628-6386 and leave a message about the club. Plan for Earth A comment on the letter to the editor on "Creation facts:" It states in the Bible that a thousand years can pass as a blink of an eye to Take criticism I think the quicker Sheriff Dawsy realizes that he's not perfect and he should be open for criticism in his job, the better the county and every- body else will be. He ought to accept criticism. Put in place Good for Sheriff Dawsy. It's about time somebody put Vicki Phillips in her place. Between her and Joyce Valentino, they both think they own this county. | IFY God. How many times a day do you blink? So all these millions of years, God carefully looked after His plan. People are too arrogant to accept the fact that God, the all-powerful entity, couldn't have used evolution as His great plan. If the scientists are 057 big monkeys, as you say, U5 i then that makes you one, too. Seventy-six years ago they taught us that the Earth's poles were giant holes to the center of the Earth. Real factual knowledge has changed history before and it will do it again. Also, man, in God's intelligent image, made science. I would say if we have science, then in God's image He already had sci- ence. No chicken, no egg. The dinosaur came first, then the egg, then the chicken. Sounds like God's plan for the Earth to me. Don't forget to file This is to all the seniors who don't normally file a tax return: They need to be reminded that in order to get .the president's rebate that's coming out this summer, they need to file a tax return even if they don't have enough income to normally have to file and pay income tax. So all sen- iors, please get with your tax people or go to Liberty Tax Service, they're offering it for free, as is AARR Fight for citizens Oh Lord, get the Citrus County commissioners to stop fighting among themselves and start fight- ing for the citizens of Citrus County. Amen. I II 4ft- ft. aft - - 4f t fmf. -o.- %- -.M qp --- --. - 1o . -~~~- do moo- ~ p.~.I b 4 w -w ~ 41b-- -wab -aqf 41D dob4b -w -mw 04 a -d *~6 41b -- -o 0 - 0. ..-~ .mm *4t aou .'---' - --- -' - - ", n n-~ -m"- --. *...... .II -- .- am -podm .w -- - 41- 0. w n-.- ta i - .. .. -ii i ___ii_ i i - ..- Gbi -*Syndicated Content Available from Commercial News Providers" )4am WT.*~ doom * r0. 0.b mo 0e NKEI Wv LETTERS To Sheriff Dawsy: The issue regarding the location of county offices has been an ongoing political debate for years, even prior to me becoming a commissioner or you becoming sheriff. The particular state- ment referenced in your letter dated Feb. 29 to me was made as a result of a Board discussion regarding a pro- posed referendum to determine where county offices may be located. In view of the fact that some com- missioners (past and present) and Inverness city officials, historically, have voiced strong objections to any county offices (principal or non-prin- cipal) being moved outside of the City of Inverness, my statement was rele- vant to the discussion. Although you have corrected my statement, I still believe it was particularly relevant to the discussion at hand since the EOC/Administrative Offices (39,500 square feet) currently under construc- tion, when completed, will dedicate' approximately one half of that square footage to administrative office space. My comments made while discussing the proposed referendum with fellow commissioners, were in no way direct- ed toward you and were not made in a manner that was critical of you. My statement was clearly to point out that the Board of County Commission, by a majority vote, adopted the 1999 resolu- tion being referenced and the Board of County Commission, by majority vote, had voted to build the EOC/ Administrative Offices in Lecanto. I am also an elected official, elected by the voters of Citrus County to repre- sent the citizens of this great county. I have always taken my job and respon- sibilities very seriously. I have never deliberately provided unreliable or incorrect information to anyone in any forum. In the future, if you feel I have misspoken, the courtesy of a phone call would be appreciated and I will be happy to discuss the matter with you. Vicki Phillips Commissioner, District 3 OPINIONS INVITE The opinions expressed in Chro trials, shi (352) 563-5660.be limit three letters per month. SEND LETTERS TO: The Editor, Meadowcrest Blvd., Crystal Riv 34429. Or, fax to (352) 563-32 mail to letters@chronlcleoninM A plan for more p Perhaps enough folks haven the plan to pump 22 million g water from our aquifer to fill ing pit for rocks. An additional lion gallons a day will be pum from our aquifer to maintain of the "lake" for all that rock Some 2,700 acres of pine fo will be devastated by the min Tarmac America, at the rate o acres a year, leaving a series feet deep pits. We Floridians been living with drought condo for about 12 years now, and th water levels in rivers like the Withlacoochee, Suwannee an Fe continually run lower thai of us who have lived here all can remember. Perhaps they heard that the company that p mine in Inglis is the same cor whose mining operations wei tially curtailed, due to the pol the local water supplies in Da County (carcinogens found in ples). We listened politely as the to the Editor of the mining group laid out their D plan for us. Somehow, we residents I nicle edi- just couldn't bring ourselves to editorial believe the fairy tale spun for us. car- Even poor math skills could not defy ot neces- the fact that things just didn't add up.: the edito- No matter how you divide the num- ,d to bers and the directions, 500 trucks ou er to the and 500 trucks back in adds up to 1,000 more trucks a day on the roads editorial of our sleepy little town. would call How can we believe that this plan i include a will be such a great boon? Noise, including dust, trucks, pollution and a disap- and pearing aquifer are just some of our, given out. concerns we face with the possibility ers for of this company from Greece moving taste. in to mine limerock from our ground 350 As new information about waning * ed to water levels surfaces, more questions 1624 N. surface as well. -4 er, FL We have mobilized a battalion to , 280; or e- fight to save our Nature Coast. , e.com. Florida deserves a whole army to jo'*r forces and make the effort to preser# )its the lifeblood of our state our water$ n't heard Now that you've heard, won't you join gallonss of us, and help saveournaturecoastcom? a wash- Raye Kooimar al mil- Ingli nped the level School vets dinner washing. , rest land The veterans dinner and entertain-: ing of ment sponsored by the Inverness )f 30 Primary School was wonderful. The of 120- young boys and girls working as wait-' have ers and waitresses did a good job. editions Also, the presentation of awards and iat the the singing by the children was great: and the marching in by the youngest id Santa group was done with a lot of pride. n many We hope that some members of the our lives Citrus County School Board were haven't there to see what a great job the plans to teachers of that school did as the npany evening was great God bless the chil-! re par- dren and teachers. The Navy Seabeed llution of Veterans of America Island X-23 ade Crystal River says thanks and God asm-, bless America. Jim Davis Homosass$ i leaders. S 0 9 *MKIM* I ;I Dr. Grigor Varlakov, M.D. Sugarmill Square Plaza 8365 S. Suncoast Blvd., Homosassa.FL. S (352) 382-0258 Board Certified in - Family Medicine Hours: M F 8:30am to 5:30pm by appt. Walk-ins Welcome Same Day Appt. Family Practice & Medical Center Most Insurances Accepted ~i~64 Q~e Mark Barnhurst, PA.C. Dr. Pariksith Singh, Medical Director 6279 N. Lecanto Hwy., Beverly Hills (352) 522-0094 866-937-8721 Hours: M F 8:00am to 5:00pm by appt. f-v IPay for your C I T R U chronicleon 0 U N T Yco The way! Once a month, we will automatically debit your credit card! NO MORE V Hassles! It's easy, it's convenient and it's safely EZ Pay will automatically debit your credit card for $6.75* each month. That pays for a FULL YEAR of the Chronicle and you will never receive another reminder notice and never have to write another check. V Reminders! It's Just call 563-5655 for details. 735018 *Charge may vary at first transaction and at eacl vacation start. RTIC us oury (FL) CHR E ; Hot Comer: CREATION Hot Comer: EVOLUTION Hot Comer: EGGS In the beginning Evolution is an untrue theory with many flaws. The state -school board should institute a _course that includes creation, evolution and intelligent de- sign. Give the pupils a choice. As for my family, and me, we believe Genesis 1:1: "In the beginning God created the Heaven and the Earth." 54 Blob descent " First, we're supposed to be- ieve everything came into being ,from some big bang scenario. ,!hen we're supposed to believe .we're derived from some blob )hat eventually evolved into mon- Seys, and then from monkeys ,we evolved into man. Now we're being mandated to teach our 3pnocent, gullible children all of _fhis stuff in school, and yet they -call those of us who believe in the almighty Creator stupid. Purpose in life I'd just like to voice my opin- 'Ton about the Florida School Board's vote to have evolution ,aught in our schools. With the teenage suicides at an all-time fhigh and the school shootings happeningg all over, evolution ,classes are being forced on the studentss. They're taught that they evolved from nothing and that there's no God, no purpose in life and no life after death. Be- ing taught these things will cer- tainly bring the statistics up on the previous things. And we'd just like to know when those in authority realize that taking God and prayer out of our schools is going to bring this nation down. We just need the Florida School Board to let parents decide.... Filling the void I'm a former schoolteacher and it's hard for me to sit by without reminding the Florida State Board of Education of policies that have caused the erosion, and continue to cause the erosion of the once-great education system that we have. Remove creation, prayers, the Ten Commandments, Bible reading and God, and the void is filled with evolution. And what do we have now? Mass killings, guns, knives, muggings, gang fights, metal detectors, fearful teachers and bus drivers, and a hostile environment not con- ducive to learning. This was not so in the past. This is the sicken- ing reality for this once-proud profession for me.... I just want you to know that this is a horri- ble, horrible thing that has hap- pened. No wonder we're going downhill in this country. The other theory I see in the paper the state school board voted 4-3 to teach our children evolution for school science standards now. I just hope they will also put Christianity as the other theory to our existence. Where is the news about this vote? Another one slipped right past us. Destructive vote The Florida Board of Education showed their nar- row-minded view in a 4-3 vote approving evolution being taught in our schools. Every year, our children are smart enough to get many academic scholarships to colleges throughout America, but yet our educational board does not think our students are smart enough to make up their own minds whether they evolved from a microscopic single- celled object in a piece of slime somewhere or that God created them. Therefore, they will not allow creation to be taught. One plus vote has destroyed our children's educa- tion. Still evolving This is in response to "Which came first?" To answer your question: The egg came first. You see, the embryo inside the egg had enough genetic change or mutation to bring about the first life form as we know s as the chicken. Evolution happens very gradually and it took millions of years for this to happen. So I keep in mind that the chicken is not the end result. One day it CALL could evolve into 560 something else. Then 03. once again, the egg Reader will come first. to call Hopefully this answers Offline your question. subject Just a fairytale name It's OK with me that to 30 the Florida Board of record. Education members will b may have been length descendants from attack monkeys, but who cut taste. their tails off? My par- cut ents and grandpar- materin ents came from expr Russia. and I know pur that they were real-live of t people, not monkeys. Evolution is a fairytale. 1- rs a Sthe t. Yo o le and sec .Coc e e h, p *s a Edi t lib al. G ess ely 'e c Pop up from dirt To the Sound Off caller telling me I need to read books about evo- lution, and how eggs came about from evo- lution: Excuse me. You do not take dirt that is dead and just make eggs. Eggs don't just pop up out of dirt with little baby frogs in them or little 0579 insects or little chick- ens. Boy, oh boy. You re invited need to quit reading e Sound and use your com- bout any mon sense. ou do not ave your Heart of matter have up To "Eggzact ,onds to answer," which came rmments first the chicken or edited for the egg?: That's not personal the right question. ndgood Where did matter tors will come from? That's elous the million-dollar Opinions question. Science will edtho are never be able to callers answer that question. callers. Only Genesis 1 can answer it. You can choose to believe it or not, but I say read your Bible. It's fascinating and it's educational, too. Two to tango To "Eggzact answer": Could you please explain how the egg came first, seeing as how in nature it takes a male and female seed to produce an egg that will produce an offspring? Your explanation, please. Cracking mystery This is for "Eggzact answer": They wanted to know which came first, the chicken or the egg? And their comment was the egg came first and that if you read a little bit, you would learn something. Well, guess what? Without the chicken or the frog or any of the other things' they men- tioned, there would be no egg. So think a little bit and maybe you'll learn something. Sunny side up This is to the person who called Sound Off about what came first, the chicken or the egg? I don't care if the chicken or the egg came first as long as I get my breakfast. * Films from the 1960's and 1970's * Exhibits on the Park and Homosassa history * Old Photographs and albums * Guest Speakers share memories of area history FREE admission to Heritage Day exhibits in the Florida Room Cf'Q L w '0cloleo NIG"Isan ASSR'lo-^111 Tremendous, Super, Amazirig. Fiaari tiL, Sensational, P10I"-. TII- Ron Adn UJnf Sports Editor John Coscia is committed to local sports while making sure the important national events are in our pages. Prll'ii,-., OLpjl'(xlue, VVpu,1uutill lu"clu, .ut ua uw. oiuf, K'") Unpa U CITRUS COUNTY VRAG . .. ... .. . " SC.chroniclov nllne.com 742721 ous, )mne, ent, fect,4 sivo, orful( V.et Access Healthcare, LLC GROWING TO MEET OUR PATIENT'S NEEDS Two locations to serve you Beverly Hills & Homosassa Take a Walk Back in Time Saturday, March 8, 2008 complimentary admission on this day or by calling (352) 628-5343, ext. 1002, Mondays through Fridays. The public is invited to learn about the Park and its early years as an attraction as well as the history of Homosassa. V Checks! DI ONE MONTH FREE! off SATuRDAY, MARCH 8, 200811A OPINxoN C-~rqr ii~ fI "nifI I. , (A C s C E S S health]ALH CARE, LLC 12A WEDNESDAY MARCH 8, 2008 CITRUS COUNTY CHRONICLE - ~w~1 ~ ~~ 4b~ am lk = FIP4t 9M 40 4000 O -WA S m om mpq amp --mm o qmw - apft - N& mos w " mmjww --ow41 -9wp -0 *wa-40 49- dm mwd 4b 0 *w C. C 0.b mom qm- smm- sp IS na m-1 40 aommom 40 4am .11ow mmwmm 4=0 am *ws -Ilm d 40 -ft 000mv 4 4m qw -4 mw 0 o m -mS ammmm-Mmm ME-M --I --4004 4ol 4000o- m m- Qu *-osm - -dm m-- am a -mo - rnrn - dmtohl an* m4w - wom 4m- mm kl aOM Le qm- 4w 00841 U Available fromCommercial News Providrs r, = ,-,..'=..T.'.J S.) ee7 e - IOW qw400 g = som0 0 w Sme as sm Mp wwswm-amawt O10 Ow .as Md WID- 0 Mommo@ 4m~~ m .S S0a 40*4m 4w 0 bC b wmF m 40o 40 C MMU 4M MMOa 40OM OW40 *1POIE 4bSI qlw S111u lo 40M e O OAMO. mw-wm SI 00 d M 0etoMOS-0 6 ~ dm o-ON -OO Gom so a.am= 40 m em= =7 4b -44 lb -4mo - - 4b ql m --dm W& doom-~ __ 0mkwmmm m m - ft m oo O 4w*4ww-- a am EM~1 o o4b4ho amp _4ba meom 040 m WRP Amb a*m 9o 4mm s *o. .*oo omomam 40 qo& a a w moamlo := 4ml -MEN&s -0 o b m m O"MO 440om~m40- 01DOMIM MED m g SfM 1WMW041 O- M04 0m4Md m -e :mm4udm 4 mw a - -0.o SEISI -.4o 40 0 ~ qomo C .-.4010 O o- m ft &- ne4 Vm J __4b o 410-AD rwom- 40 sme m mcom 40- d 4M quo 4 a - d~mbfrkw-yWI -- to 0== mb0 4m qw 4b- - mm 4b o *b 4W 40 q MNI 41M 040-qmm .41* 0q b u fto .lw q - 40u 4 e -Jjjjp * ~ ~ ai 7b 4- 410 -40m "LW"pL ~ sum am 44 S.m 0 0 411mplmmS 44-1O am m S w aol. o am 0 a -o e..i... 4b Elms Q m MDCom- - Same a- m - mCqm .0 bl 0 - SI *mm * *m _______w_ Smw~w dm 4w 0 4NO am*~ 4-go, 10* - c- 4w40Alma aimiii 0 .min 4 Gomm 411111 eiiiisomaemm 40- e e el o e .e 4W 44mm -:Tci IDm Copyri hted Material Svn'dicafedContent lon. - ul Y5 reschol ow 4 AV him *w " NASCAR/2B " Golf, Iditarod/3B " Scoreboard/4B " Sprint Cup Qualifying/48 1 NBA, NHL, MLB/5B 6 Entertainment/6B ports - CITRUS COUNTY CHRONICLE RBn undk day of PODS tourney - a - - 5- -~ - U - -..~ - S -- -~ ~. - - .~ m - "Copyrighted Material -- Syndicated Content 7.._ - Available from Commercial News Providers" -..a -0 -v 4 alo.D0 a--m- q 0 5 0- wm a- m .MD.a 40 _______quo- - S - -0 0- Mo Goosa S -- --t- 0 % - -41b 4wamo- o S olp --.. a-f - U - 0 - - ~- .~ .' .. - -- - .~ -~ m - - ~. a -- - -.- - -.~ -~ -- 5- - - - ~ 9- - 9 ~- -~ a - S. - - e 0 - 0 a- Hampton tweaks groin against Tigers J'u JOHN C Q-% jcoscia@chronic ha Chron 'OSCIA cleonline.com ziel a ORLANDO The festive mood i cc q1& rg ,gfpomy, t Disney's Champion Stadium on Friday after- Irioon ... and it had nothing to do with --?he impending thunder storms and tornado warnings surrounding the 'Orlando area. i: Mike Hampton had just thrown his "39th pitch when he stepped off the tgnound and began stretching his right Agg. . The move immediately brought "Atlanta Braves manager Bobby Cox *,ut of the dugout, with assistant train- ,ir Jim Lowell joined at his hip. fg "Oh no," a Braves fan exclaimed fJrom directly behind the Braves dugoutt as 9,276 sets of eyes locked in on the skipper's slow walk to the ,pound. , Hampton would later relate the conversation that ensued. "How's it going? Is it your ham- ,string," Cox asked. "No, it's kind of... my groin's a little tght, I think can finish out," Hampton answered. No, you've thrown enough pitches. wet's just be safe and check it out," jaid Cox, deciding to err on the side of wisdom. As the Homosassa native headed ifpr the dugout, flanked by his skipper [#nd trainer, Braves fans had to be wondering, 'Just how serious is it?" They wouldn't have to wait long for an answer as Atlanta's ace southpaw 'exited the field without any visible ,limp. Further relief would accompany *,ie visual facts when Hampton addressed the media nearly an hour later and declared, "I feel great I Please see HAMPTON/Page 4B Atlanta Braves pitcher Mike Hampton throws to home plate during the second inning of a spring training baseba against the Detroit Tigers on Friday in Kissimmee. Hampton left the game after making the throw and injuring his It's just a game at eye level Like any self-respecting sports fan/lifelong Florida resident, I have been to a few spring train- ,ing games. If'Rays ganes which are basically regu- lar season spring training jaunts, are included, then I guess I could say I have been to many... some of them very, very long and painful. But the point is, I'm Jonathan familiar with Deutschman the spring BE A training milieu, SPORT and like most baseball fans who have taken in a lazy scrimmage on a midweek afternoon in March, I'm charmed by the tradition. For those who have not had such an experience, first of all, you should; second, it's like this: The games are played in minor league (usually Single-A) parks, so no seat can realis- tically be called a bad one, and even if -you get a bad seat it will likely cost you $20 at most, so stop complaining; and even the bad seats will probably still provide you with a prime view of past favorites such as Tony Pena or Andy Van Slyke prowling the coaching boxes, so you're getting your money's worth regardless. The big-name play- ers generally hit the showers around the fourth inning, so half the game is spent watching 19-year-old prospects with unfamiliar names bobble routine grounders (which is to 'say: get there on time). Aside from that, it's basical- i" game ly a big-league game with zero at s groin. Please see GAME/Pap 4B RBRIEFS Panthers boys tear up track ;i- at Kiwanis Invitational , The Lecanto boys track team won the .iiwanis Invitational at Leesburg High School gn Wednesday, scoring 111 points as a team .,o best second-place Vanguard (101 pts). b, Tory Webb grabbed a win in the 800- j meter run after completing the race in %2:07.35. The Panthers' 4 x 800-meter relay team also took top honors after running a time of 8:38. ov Lecanto's Kirk Dandridge set a new school record by vaulting 15-4 to win the event. " Keijuan Thomas notched the Panthers' '6nly other win on the day by running a "P3.28 in the 400-meter dash. - The 1600-meter relay team nabbed a .econd-place finish with a time of 3:40. , Other top finishers for Lecanto included .Jonathan Junkins, who took third in the ,,J600-meter run (4:48) and the 3200-meter run (10:26). The 400-meter relay team also finished third after running a 45.34. mee 46 no-tS- fta qab AD 48 -4 dom 4 4f a40 4w 4 4m -m 41- . 4b womme a -9 =B 'S. a a 4WD- -a m S.NIN. M0N -- a ---m m-- 0% -~ -5- S.dom wp d MD-am -40 a aw d4dmba 4=40% ompa0 WA aGIO - a ~ - ~ - - a a a a a - a. - ~ ~ a 5- - a a -~ *~- 0 S S * S. S. S S. 0 - - ~- S. - S. S 0 S. -w *- S * goa a, a -9 aaft a-.W -0 4D ..EN - -- .1o-.0 a pwGo .111w-* *-Owalm - S r qw -- -'a -. qbm - - a a- 4WIP -RMP49M 04O Gob"D- o 4A-D NM qb M0 a = ~Z'M~4f~~ B SATURDAY MARCH 8, 2008 606 60 4=d oM684 4D .~ m Copyrighted Material -S Syndicated Content" _ Available from Commercial News Providers" lddmbk second *<% GJ1-/ .^ / 2B sAT!URDA.JY, iVARCH flt,S.J.- * a. a.. a.-. a. - a Q- a.41D a.. dom ow a -lw a.- -mm- ebQ %Nw- a.910 ftmma 41b 0- - 41. a. a. 4 no a. -da - am ft- w 4b 4- -m .m-4 -= ou a.- - a. GOW- dtft - Nw m 411-0 41 - w tw- a. . 4aq. 4NM 41b do *- -m 41b ao. o -m - - OW 41b -w .-M - Available from Commercial News Provid R-i dm- = w .. 4am dim 41M .- a a. - o 41ba. -an& a. a. -.4 a ______- 4ow. m ~*0-alam- qm 4ao mo O- RU a do mo- a*9 A- a - dD 40 m mm 4D - av w 4 ~ ~ m -a .41.W ano go 4m -ON 'm ". um eqma am m a* dm -r am a.t~ 0*41b aa - OD 410MM-0 a- o qpwwam -p -- 0 0 %of ftoo*om*%q -4--M qw. q- w .0 ON- ob qw.- o .o a p. m. 4b. 4D~ - -0 0 m a.p qmm ~w a m o o -q q"-- o dw4O- tom- qo4m- -mp aeso ww* a. * 40 am b -4 - am-mmm ft-wwaa - mmwlw -a 40 .PMI 4 a 4 qm 4W wom M ft 0om -EM - f a 41b -si do 40- a 0 es -0 s 4 4 ftw ob o- a. a - 4bf mm 41 *6o aw aoomm 40 ab oom M * a. a. ammmo - GO ONLINE * Visit to read today's headlines, add your thoughts to the weekly opinion' poll, search the classified ads, look up movie times or play games. * To see manatees at Homosassa Springs Wildlife State Park, go to. nate Your Papers. ,Th Newspapers In /Education (NIE) .iteracy Program of The :itrus County Chronicle P.orovides FREE 0 4w OM a all wa. 6 aaa ala GN swww awso Go 4-of a4M a IMMN ft WN -4b o 01 -.w a w .4W -mo dazl a 40SOMSa oo - sp0 4000awn w MOANMMD mo"MNE ap*- oe um mw .4 qw ea nom GPAM a t p- dola -mo oww wwo awil -=w o o q alm 4 0 ~-own 0onal at m R -- bt YSO61 ol utcrtoffe~r:spiro~gclpreocur a~tuiI bwasowauspractcal rca-wordd 6 ., ALL ENTRIES MUST BE RECEIVED BY FRIDAY, MARC- 28, 2008 S-For afo nautoa Ca Caig Gifford :3.52 -9034 " Please iakec eck payable to: SCORE .646, 3810 S. Lccanto Hwy., Bldg. PI-101, Lecanto, FL 34461 aCASgIC'L SUgarAMillWoods CovmtrJ~4.A -Sugarm lIWoeda, Imag $100 Halo at Tee Swanskf *M~ft~g~o. Sim a mhr~ru $300 Hole SparnorplM-.osuam Lod. ftiImbM1U~ii &A $60~ 11:30am Lwh S '30pm AVS* :I111 wwwiscorecitrus.or '" .~ 4 d- -o a 0 a.0 s-- f.- "Copyrighted Material Syndicated Content uow wa m~enonaliy lft off NASCAlR Onus CouNTY (FL) CHRoNicLE 8 2008 - low- *^ tAIN,5sLU'NI mr(PL)r tROxrn C -.SA RAM CH ,20 a' a a a - a U - -a a a - - a a' - -e - a - 'a'- - a-a' -w - - - ~-. a-a .--4w %up .1 doom .-M 'a - -40. --a- -Ma 41 408M 0. b b w b m o MEP 4m0 L om"Oom S -fif 4m- o.N 0wa- sm Mil qw qb ft sm bowab0 k - a- - 4a' -- - O a a-a -a'-. --a - a' 'a * a 0 a --a - - a a a as - - - -e. - - -- a', a a - a - - a - -a a - a-a - - * - ~ Thediwkm W Gif 0 0 4 MONO~- a' Wob -.0 40 mm 6 mm -. ao-ORD- a 4w ow a' Gib Ob -b quo ----Wamow 4w 40. dbm -mo a- a W.-- ap sow ab * a'ft .4W -.6 mmwa fab--oft - au t0m "Copyrighted Material :- Syndicated Content Available from Commercial News Providers" * - 9' - a' 0. 6--s a' - a - a-. -'a -- a- - 6 - a' a- -a m 4b4 e.o4 4o* w Oq aw o %'-M -l el quo - .'~ . a' a. a a' a- * w - a - -a a a - a a' a S 6 -~ - a a-a' - - a' * - U 0 - a' - a' - a - a a - --a -- - =b a-- - - a' a a a a - -- a'- - a a a a - a -- 'a' * - a --a a'- ~ a -a - a' -a - - a' a -- - a a' a - a a- a -a' - a - - - a' a' - -~ - - - a' -U- ,I-b a - 4D a - 4m - w a a aa 41b I- -dom -~~~ 40- . 4w qD -Ma * we -ow 4 4w ~- .0-. qD- o- -40 q - a - 4 Qw' dom- a0 * a- - M a't 'aduo .00 a-. - p-- ap Madn frs mwio Rub% chdpwn a 0 0a -m a--a-m -ft ---a0 a41-ba- 400-p a'- 40-a 4b.- a0-o- Ia -M M. me -a -mm g am- %ft a ftw a %b-- -- oft 0 . 410 q m 4w -b. m- a- - a 4-- a *od0 -4 4P 0 b "4 a - a a ~ a- __ a--- -N - qN* Gma m- lb qb - *a a 'a a-a - - a. - a a' a a - a - U - - a ~ a - a' a- a - -a - a - a- -. *AM 41 o 4w04adw 0 %asm 4D o 4b m 0a DAw' w - - a * a' -a -'a SATURDAY March 22, 2008 Kickoff 7 a.m. 9 a.m. $25 Entry Fee $12 for children 12 and under Proceeds to benefit the 6 SW0* -*W g SATURDAY, MARCH 8, 200838 .- '6-mus CouNTY MA CHRnNirt-F SPtORTSr o D o o o dlb 4w SA7 Cimu CouMARCH(F)5CRONICL GOLF PODS Championship Par Scores Friday At Innisbrook Resort and Golf Club, Cooperhead Course Palm Harbor, Fla. Purse: $5.3 million Yardage: 7,340 Par: 71 Partial Second Round (83 players didn't finish due to weather) Billy Mayfair 68-71 139 -3 Lee Janzen 65-74 139 -3 Mark Calcavecchia 69-70 139 -3 Stuart Appleby 66-73 139 -3 Paul Casey 67-72 139 -3 Tim Petrovic 72-68 140 -2 Heath Slocum 69-71 140 -2 Shigeki Maruyama 69-71 140 -2 Michael Letzig 69-71 140 -2 Alex Cejka 69-72 141 -1 John Senden 67-74 141 -1 Rod Pampling 70-71 141 -1 Geoff Ogilvy 69-72 141 -1 Frank Lickliter II 68-73 141 -1 Charlie Wi 69-73 142 E Kevin Sutherland 74-68 142 E Ryan Armour 69-73 142 E Hunter Mahan 72-70 142 E Jerry Kelly 67-75 142 E Patrick Sheehan 69-73 142 E Nicholas Thompson 67-75 142 E Rich Beem 69-74 143 +1 Lucas Glover 71-72 143 +1 Olin Browne 70-73 143 +1 Kevin Streelman 70-74 144 +2 Robert Garrigus 70-74 144 +2 Jason Gore 69-75 144 +2 Ben Crane 71-73 144 +2 Steve Stricker 70-74 144. j+2 Robert Gamez 75-69 144 +2 Mathew Goggin 72-72 144 +2 Nathan Green 67-77 144 +2 Matt Jones 72-72 144 +2 Steve Flesch 72-73 145 +3 Paul Goydos 71-74 145 +3 Charles Howell III 71-74 145 +3 Tim Herron 74-71 145 +3 Corey Pavin 75-70 145 +3 Jesper Pamevik 73-72 145 +3 Nick Flanagan 70-75 145 +3 Charley Hoffman 70-76 146 +4 Steve Lowery 70-76 146 +4 Ernie Els 73-73 146 +4 John Mallinger 73-73 146 +4 Chris Stroud 74-72 146 +4 Brett Quigley 73-74 147 +5 Davis Love III 75-72 .1.47 +5 Vaughi Taylor 69-78 147 +5 Roland Thatcher 70-77 147 +5 Jason Day 71-76 147 +5 Jon Mills 71-78 149 +7 Eric Axley 74-75 149 +7 Jay Williamson 73-77 150 +8 Boo Weekley 75-75 150 +8 John Huston 74-76 150 +8 Dustin Johnson 75-75 150 +8 Pat Perez 72-79 151 +9 David Toms 70-81 151 +9 Michael Bradley 76-75 151 +9 Johnson Wagner 71-80 151 +9 Jin Park 71-80 151 +9 Brett Rumford 72-79 151 +9 Shaun Micheel 74-78 152 +10 Richard Johnson 78-74 152 +10 Cliff Kresge 70-83 153 .+11 Santiago Cavanagh 74-79 153 +11 Jim Renner 79-75 154 +12 Chris DiMarco 75-80 155 +13 John Daly 78-80 158 +16 Did Not Finish Jeff Maggert 66 -8 Ke.nny Perry 66 -5 D.J. Trahan 68 -5 Sean O'Hair 69 -4 Bart Bryant 65 -4 Jeff Overton 68 -4 Tag Ridings 70 -3 Tom Pernice, Jr. 67 -3 Stewart Cink 66 -3 Daniel Chopra 70 -3 Ted Purdy 69 -3 Billy Andrade 69 -3 George McNeill 70 -2 Nick Watney 68 -2 Brian Davis 70 -2 Chez Reavie 70 -2 Ryuji Imada 72 -1 Charles Warren 71 -1 Jonathan Byrd 67 -1 Troy Matteson 70 -1 Carl Pettersson 67 -1 Brandt Snedeker 69 -1 Scott Verplank 71 -1 Todd Hamilton 70 -1 Brian Bateman 68 -1 Cameron Beckman 71 -1 Bill Haas 70 -1 Peter Lonard 69 -1 Steve Marino 70 -1 Justin Rose 70 E. Jose Coceres 74 E Retief Goosen 70 E Fred Couples 69 E J.P. Hayes 71 E Kenneth Ferrie 71 E Derek Lamely 70 E James Driscoll 71 E Sfeve-Elkington 73 +1 J.J. Henry 71 +1 Robert Allenby 70 +1 ChadACampbell 71 +1 Stephen Ames 71 +1 Dean Wilson 71 +1 Marc Turnesa 70 +1 Bob Estes 71 +1 Bubba Watson 72 +1 MathiasGronberg 72 +1 Shane Bertsch 7-1 +2 Kevin Stadler .. 72 +2 Trevor Immelman 72 +2 David Duval 72 +2 Ryan Moore 70 +2 Michael Allen 73 +2 Ken Duke 70 +3 Craig Barlow 71 +3 Briny Baird 72 +3 Mark Wilson 72 +3 Joe Durant 72 +3 Tommy Armour III 72 +3 Rocco Mediate 72 +3 Stephen Leaney 72 +3 J.B. Holmes 74 +3 Parker McLachlin 75 +3 Nick O'Hern 72 +3 Brian Gay 73 +3 Will MacKenzie 74 +3 John Rollins 75 +3 Marco Dawson 74 +6 JeffQuinney 75 +9 Paul Azinger 79 +9 Patrick Olive 84 +16 AUTO RACING NASCAR-Sprint Cup Kobalt Tools 500 Lineup After Friday qualifying race Sunday At Atlanta Motor Speedway Hampton, Ga. Lap length: 1.54 miles (Car number in parentheses) 1. (24) Jeff Gordon, Chevy, 185.251 mph. 2. (88) D. Earnhardt Jr, Chevy, 184.862. 3. (1) Martin Truex Jr, Chevy,vy, 182.627. 9. (9) Kasey Kahne, Dodge, 182.344. 10. (8) Mark Martin, Chevrolet, 182.332. 11. (48) Jimmie Johnson, Chevy, 182.207. 12. (12) Ryan Newman, Dodge, 182.135. 13. (16) Greg Biffle, Ford, 181.920. 14. (6) David Ragan, Ford, 181.866. 15. (31) Jeff Burton, Chevrolet, 181.824. For the record On the AIRWAVES TODAY'S SPORTS AUTO RACING 9 a.m. (SPEED) -Nationwide Series, pole qualifying 11 a.m. (SPEED) -Sprint Cup, practice for Kobalt Tools 500 12 p.m. (SPEED) -Sprint Cup, "Happy Hour Series," final practice 2 p.m. (ESPN2) Nationwide Series Nicorette 300 BASEBALL 3 p.m. (WGN) Arizona Diamondbacks at Chicago Cubs NBA BASKETBALL 7 p.m. (SUN) Golden State Warriors at Orlando Magic MENS COLLEGE BASKETBALL 11:30 a.m. (ESPN2) Big South Final'- UNC-Asheville vs. Winthrop 12 p.m. (6,10 CBS) Louisville at Georgetown 12 p.m. (44 CW) Miami at Florida State 2 p.m. (6,10 CBS) Stanford at USC 2 p.m. (38 MNT) (51 FOX) Vanderbilt at Alabama 3:30 p.m. (9,20,28 ABC) Georgia Tech at Boston College 4p.m. (6,10 CBS) Kansas at Texas A&M 4 p.m. (38 MNT) (51 FOX) LSU at Mississippi State 4 p.m. (ESPN) Marquette at Syracuse 4 p.m. (VERSUS) Utah at UNLV 5 p.m. (ESPN2) Ohio Valley Final Teams TBA 7 p.m. (ESPN2) Atlantic Sun Final Teams TBA 9 p.m. (ESPN) North Carolina at Duke' 11 p.m. (FSNFL) Arizona. at Oregon.. WOMEN COLLEGE BASKETBALL 1 p.m. (FSNFL) ACC Semifinal North Carolina vs. Virginia 3:30 p.m. (FSNFL) ACC Semifinal Maryland vs. Duke 9:30 p.m. (FSNFL) SEC Semifinal AubumNandy vs. Tennessee BOXING 9:30 p.m. (HBO) Oleg Maskaev vs. Samuel Peter GOLF 9:30 a.m. (GOLF) European PGA Tour Maybank Malaysian Open Third Round (Same-day Tape) 3,p.m. (2,8 NBC) PGA Tour Golf PODS Championship Third Rd. 6:30 p.m. (GOLF) PGA Tour Golf Champions Toshiba Classic - Second Round (Same-day Tape) NHL HOCKEY 7 p.m. (FSNFL) Atlanta-Thrashers at Florida Panthers COLLEGE LACROSSE 12 p.m. (ESPN) Virginia at SOCCER 7:30 a.m. (IND1) FA Cup Manchester United vs. Portsmouth 16. (22) Dave Blaney, Toyota, 181.776. 17. (78) Joe Nemechek, Chevy, 181.747. 18. (19) Elliott Sadler, Dodge, 181.735. 19. (42) J. P. Montoya, Dodge, 181.515. 20. (15) Paul Menard, Chevy, Homish Jr,.Dodge, 180.047. 34. (84) Mike Skinner, Toyota, 180.047. 35. (83) Brian Vickers, Toyota, 179.977. 36. (70) Jeremy Mayfield, Chevy, 179.720. 37. (96) JJ Yeley, Toyota, 179.516. 38. (17) Matt Kenseth, Ford, 179.359. 39. (5) Casey Mears,'Chevy, 178.677. 40. (45) Kyle Petty, Dodge, owner points. 41. (01) R. Smith, Chevy, owner points. 42. (28) Travis Kvapil, Ford, owner points. 43. (44) Dale Jarrett, Toyota, past champion. Failed to Qualify 44. (49) Ken Schrader, Dodge, 1.79.778. 45. (21) Bill Elliott, Ford, 179.737. 46. (27) Johnny Benson, Toyota, 179.412. 47. (08) Bumey Lamar, Dodge, 176.420. 48. (34) John Andretti, Chevy, 176.173. BASKETBALL Women's Conference Tournament Glances Atlantic Coast Conference At Greensboro Coliseum Greensboro, N.C. Quarterfinals ..... Friday, March 7 Virginia 52, Georgia Tech 43 North Carolina 97, Clemson 77 Maryland 93, Boston College 81 Duke 81, Florida State 67 Semifinals Saturday, March 8 Virginia vs. North Carolina, 1 p.m. Maryland vs. Duke, 3:30 p.m. Big East Conference At The XL Center Hartford, Conn. First Round Saturday, March 8 Pittsburgh vs. Villanova, Noon Marquette vs. DePaul, 2 p.m. Louisville vs. St. John's, 6 p.m. Syracuse vs. South Florida, 8 p.m. Quarterfinals Sunday, March 9 Notre Dame vs. Pittsburgh-Villanova winner, Noon Connecticut vs. Marquette-DePaul win- ner, 2 p.m. Rutgers vs. Louisville-St. John's winner, 6 p.m. West Virginia vs. Syracuse-South Florida winner, 8 p.m. Big Ten Conference At Conseco Fieldhouse Indianapolis Quarterfinals Friday, March 7 Iowa 58, Michigan 37 Purdue 64, Indiana 54 Illinois 64, Ohio State 58 Minnesota vs. Michigan State, 8:30 p.m. Semifinals Saturday, March 8 Iowa vs. Purdue, 6 p.m. Illinois vs. Minnesota-Michigan State winner, 8:30 p.m. 'Sunday, March 9 Semifinal winners, 5:30 p.m. Big 12 Conference At Municipal Auditorium Kansas City, Mo. First Round Tuesday, March 11 Iowa State vs. Colorado, 1 p.m. Oklahoma vs. Missouri, 3:30 p.m. Texas vs. Texas Tech, 7 p.m. Nebraska vs. Kansas, 9:30 p.m. Quarterfinals Wednesday, March 12 Kansas State vs. Iowa State-Colorado winner, 2 p.m. Texas A&M vs. Oklahoma-Missouri win- ner, 4:30 p.m. Baylorvs. TX-Texas Tech winner, 8 p.m. Oklahoma State vs. Nebraska-Kansas winner, 10:30 p.m. Pacific-10 Conference At HP Pavilion San Jose, Calif. First Round Friday, March 7 Oregon vs. Washington State, 9 p.m. Oregon State vs. Arizona, 11:15 p.m. Quarterfinals Saturday, March 8 Arizona State vs. Washington, 2 p.m. California vs. Oregon-Washington State winner, 4:15 p.m. Stanford ,vs. Oregon State-Arizona win- ner, 8 p.m. Southern Cal vs. UCLA, 10:15 p.m. Southeastern Conference At The Sommet Center Nashville, Tenn. Quarterfinals Friday, March 7 LSU 80, Mississippi 36 Tennessee 92, Florida 61 Kentucky 57, Georgia 50 Vanderbilt vs. Auburn, 10 p.m. Semifinals Saturday, March 8 LSU vs. Kentucky, 6:30 p.m. Tenn.vs. Vanderbilt-Aubum winner, 9 p.m. NBA Standings EASTERN CONFERENCE Atlantic Division W L: 'L Pct GB x-Boston 47 12 .797 - Toronto 33 28 .541 15 Philadelphia 29 33 .468 19% New Jersey 26 36 .419 22% New York 18 44 .290 30% Southeast Division W L Pct GB Orlando 40 23 .635 - Washington 30 31 .492 9 Atlanta 24 36 .400 14% Charlotte 23 39 .371 16% Miami 11 48 .186 27 Central Division W L Pct GB Detroit 45 17 .726 - Cleveland !35 27 .565 10 Chicago 25 36 .410 19% Indiana 24 38 .387 21 Milwaukee 23 38 .377 21% WESTERN CONFERENCE Southwest Division W L Pct GB San Antonio 43 17 .717 - New Orleans 42 19 .689 1%Y Houston .41 20 .672 2% Dallas 39 23 .629 -5 Memphis 15 46 .246 Northwest Division W L Pct GB Utah 40 22 .645 - Denver 36 24 .600 3 Portland 31 30 .508 8% Seattle 16 46 .258 24 Minnesota 12 48 .200 27 Pacific Division W L Pct GB L.A. Lakers 43 18 .705 - Phoenix 40 21 .656 3. Golden State 38 23 .623 5 Sacramento 27 34 .443 16 L.A. Clippers 20 39 .339 22 x-clinched playoff spot HOCKEY NHL Standings EASTERN CONFERENCE Atlantic Division W LOT Pts GF GA New Jersey 39 23 6 84178 158 Pittsburgh 38 24 7 83202 190 N.Y Rangers 35 24 9 79182 169 Philadelphia 34 26 8 76208 196 N.Y Islanders 32 30 7 71169-200 Northeast Division W LOT Pts GF GA Montreal 37 22 9 83217 192 Ottawa 37 25 7 81219 207 Boston 35 25 7 77181 189 Buffalo 32 27 9 73206 197 Toronto 30 29 10 70195 214 Southeast Division W LOT PtsGF GA Carolina 36 29 5 77212 218 Washington 32 28 8 72200 203 Florida 31 31 8 70187 198 Atlanta 30 32 7 67184 227 Tampa Bay 26 34 8 60186 220 WESTERN CONFERENCE Central Division W LOT Pts GF GA Detroit 44 18 6 94213 151 Nashville 34 26 8 76200 197 Chicago 33 28 6 72194 190 Columbus 30 28 11 71165 179 St. Louis 29 28 10 68165 186 Northwest Division W LOT Pts GF GA Minnesota 37 26 6 80185 187 Calgary 35 23 9 79187 185 Colorado 36 26 6 78186 181 Vancouver 33 24 10 76179 171 Edmonton 32 31 5 69185 206 Pacific Division. W LOT Pts GF GA Dallas 41 24 5 87208 173 San Jose 38 21 8 84179 161 Anaheim 38 25 7 83173 169 Phoenix 34 29 5 73180 181 Los Angeles 27 37 5 59197227 Two points for a win, one point for over- time loss or shootout loss. VM- ,~ -*~ - ~ ~. 6 e- - * __ ~6 -~ ~ a - 6 - .~ w. -~ ~ - mm o- oo 4M- W 410 m d am-M49 -.~ . - -,-.--- - ~6.~..@ ~ = ~ 6. - 6. ~. - __ - ____ a ~ - ~6.. ~ - . - - ~. 6. 6. ~ Oh - ~ m- a-40 mm W- NW 410400 mw- p -f.0 o - .0- - -mm. -- 4b 9 *-.- slow.. W D -t. - "Copyrighted Material --- . .. _o. Syndicated Content -- --- Available from Commercial News Providers" Available from Commercial News Providers"_ Mw .- 4b S *4 - oil Continued from Page 1B stake. Even the beer retains its luxurious price tag. The parks are perhaps the most interesting aspect of spring training, as in many cases they capture the person- ality of a franchise more keen- ly than the team's home park does. They range from preten- tious (Legends Field in Tampa, home of the Yankees), haggard (Fort Lauderdale Stadium, home of the Orioles), strangely remote (Knology Park in Dunedin, home of the Blue Jays), and altogether forgotten (McKechnie Field in Bradenton, home of the Pirates). The Rays train in their hometown of St. Petersburg, so they draw about -dNN-NW - thConte same sized crowd as during the regular season. Sarasota boasts the Reds, which is the color everyone who attends a luxuriogame therice toward due to the complete lack of shade. The Tigers spend their springs in Lakeland, so they trade the run-down streets of Detroit for the glittering pathways of ... run-down Lakeland. And so on. The Braves' facility in Orlando follows this themeaggard Much like Atlanta, it is sprawl- ing, humid and has a lack of good parking spaces. On Friday, sports editor John Coscia and I went to that spring Bradhome of the "Team of the '90s," which has become so popular they built a theme park around it, called Disney World. Unfortunately, we didn't have time for any of the rides; we were there on business. Mike Hampton business. The left- hander was making hi shaecond pitching start of the spring, and his second major league start in any capacity in 2 1/2 years. I've never seen Mike Hampton before, and the first thing I noticed about him was hiswalk. He has a determined walk, no doubt tempered by years un-downf taking down some ofn. the most volatile hitters to ever play the game. The man has pitched to Barry Bonds. These man has pitched in a World Series game. His walk reflects it. He keeps his stare down- ward and makes straight, clean strides from the bullpen to the dugout, the medugout to the mound, and back again. He walks like a winner. Hampton didn't have a career outing Friday. after- noon, but that's what spring training is for, in the end. He threw 39 pitches, 18 for strikes, and gave up an unearned run, thanks to a Chipper Jones error (wow, there's Chipper Jones). He did induce a double play from the bat of Magglio second inning, with a d-1 count, wheh Bobby Cox (wow, there's Bobby Cox) and the trainer OEM Trainer = trouble, generally. It turned out that Hampton had strained his right groin, and the company line from the Braves was it was minor and he would be listed as "day-to-day." I hope this is true. We were allowed into the locker room for a short interview (wow, there's Tom Glavine's locker) and that was fascinating. Athletes often spew cliches to the media, and rightfully so. One can be asked the same question only so many times before coming up with a stock answer. But, in this case any- way, much was revealed by the veil of the television screen and the newspaper page being lifted away. With Mike Hampton standing two feet from me, his sincerity was very apparent. He said his arm felt great, that he.felt great in general and that he just needed to get his legs back in shape. He said the only way that could truly hap- pen is by pitching in live-game situations, and as such he intended to make his next scheduled start And now I'll give you a cliche of my own: the eyes. Eyes are always described as the way to seeM what someone is really think- ing. That may or may not be true, but in Hampton's eyes I saw only one thing: the desire to get back under the lights. The man just is a big-league pitcher. Getting an inside glimpse of Major League Basebally brought some other things ton light for me, too. For one, the line between the stands and, the field is like that magical line in "Field of Dreams." By that, I don't mean that once one crosses it, one is forever ingrained into the fabric ofo America's favorite game; I just mean once you cross it, you can't really go back This was the first time ad ever been any- where but the stands at a pro game, but once we descended into the photographer's pit,o right next to the dugout, it all changed for me. The playethrs are bigger, faster and stronger, of course, but it's still just base- ball. Keeping stats down there, a few feet from Mark Teixera and the like, wasn't all that dif- ferent from doing the same thing at he just a high-school game. The quality of play was obvi- ously higher, and none of our local prep players were on mys fantasy team last season, but am 4w-. aftwo -- * -,w ft -..NPa. ob . - w 4 * - -N 0 the line from Little League to The Show becomes much clearer at eye level. This, in turn, makes the insane salaries these men earn seem all the more ridiculous. Likewise, anyone who doesn't buy into the power of what sports can do and the elegance with which it can do it should find a way to get a press pass (or a ros- ter spot) quickly Your mind will almost certainly change. ' Another thing I noticed: umpires are absolutely miser- able creatures. This is notice- able from the stands, too, but up close you really get the full effect of the fabled Blue Grimace. They should be com- mended, however, for so mas- terfully looking like they'd rather die while being paid for performing a service most of the population would do for free. Ultimately, pro sports are an empire built on a shaky prem- ise men playing children's games for big-time money - and we probably endow that with more importance than it deserves. From the pristine confines of the library-quiet press box, this comes across in startling clarity. But it's hard to look at someone like Mike Hampton and not get the point It's the passion. You can't play the game at that level without it I'd wager that even Barry Bonds retains a shred of that passion somewhere in his oversized cranium, or Roger Clemens in his oversized gut (but only if I were playing in a small-stakes game). Nothing else on. the planet combines such a pure aim with such deadly accuracy like pro sports do, particularly base- ball. We are lucky here in Florida to have had spring training for more than 100 years, Hopefully it will be here at least another century, provid- ing Arizona stops striking sweet deals with all the Grapefruit League teams (Los Angeles arid Cleveland are leaving after this year; Cincinnati has an offer on the table). If all else fails, we'll still (possibly) have the Rays, which is almost as good. It's a sure bet a Mike Hampton or two has already cracked that roster; only time will tell us who they are (wow, there's Scott Kazmir), and if they have the passion to maintain the intensity. Until then, enjoy the show from your $20 bad seats. Jonathan Deutschman is a Chronicle sports reporter. He can be e-mailed at jdeutschman@ chronicleonline. com. I I w Cmus CouNTY (R) CHRoNicLE .Spomrs AM Q .- -AtX.nt- RT 20OR'fQ I SATURDAY, MARCH 8, 2008 5B RTIC US COUNTY (FL) CHRONICLE NBA ROUNDUP -.W - mw -4m0 0 S -M ftom - a 40800- sow aw-mmm u- f a.- adg- U -~ -ft S a. --a. a.amum comma -. oo41 aoo- -qmq m am ima4 a MM- 4D4 amm -4 --- MOM0 -------- "Copyrighted Material :-- -Syndicated Content "= Available from Commercial News b4m -SO -Now4m w om 40 4w 4w ,.41MO IS 4 qm aa a&* a. am_0__ ahm S am 4N.w go 41M 4 4apaalm0 4 41 46004 4b Owm M C. 4MMIM 'g al 4w 0 4W 4w *1NO 40 a Gm t O4 amme Providers" ,,k Ak L I 1 0" 0 77:1 "-low- m LhtnhimOTw PadrW Young qjmlmm so am.*ammmmm ft': 07 -~ d - a. 10,4110 a.o 4110 0 -401 411- mpamw m QWa. a Own % waw Sa.m am aw 9aNEW-41 omm am 0 am app e Sm oo- ommmo* ab Oa a ON 41100- 410 4b 41 ON -Son 00 4 d 401001 SW Su 411, O a. a. U mw41mm"oson 40110 Smo, 1sono- silim ammm0 w4M 0m om a.oft-fta a. -w 40Mapm. VP mmm 4D 110 - 410 -ow a qmo 'w awasoPft-M. amp 400 omum 0 wa --- awo . S S oon 4w 0 .- 410 o - Sn& 4m 0 ____ - dam SIONa. mio Somew ammom qw-a-mm aw a. a. Summ, 1ba .0 a. --a -S il dmmno a 40 4010.0,a- m- a. = Mr.- Z7-q= &am om m Now a0- -f m a. 4ma Ow a4 a. - 4w am M4w 0 4 4o.ow- 0 a 41M 4b 4w 0- 440w--imam a 4D-- 4b 4 am 41M gaum dumpam.. mom a.4 amb4w 4t 10 m0 a.mdi a a 4*0" w w oa. 4v- dw ab .m* -4 cob b a. umab ft ama. -ft4 4m & q -m a " 0 4ba. 4m -M -.o a40-m4 ow-. 4D "MEO o fto a. doo 40op- 40m 4AM 4mo- am W M- M-0 4p qw -. 41b a l- Go-- o a.a- bn.G- - -M m 4 -o 41 a aw 41 a.-. a.Gom - low -Now -0 400-am- - --.dam 4. -.MOW -b qb a- a. - a. - in so am m o = 01=~IE~I~-E - a. - -a.- a - ,job. - 0 - a. a *a -~ a. a. a-.- - a. - - .a. a a. - a.- a. - a.- - a.- * a. -a -~ -'a a. -~ - * a.. a -~ - - a a. - * a. a... a.. a. - a a. a. a. a. - 5 - - a 0a -- 0 . da. . a. -. . a. * S.c -~ a -~ a - - a. -a. a. - up own& m lwm wp- fta- - loop a. -d W- I,- a. a.wa4m - 41b -amm a .d a.afta41b a 401M ______ wm m40uow m. . a. - oabd- woo0o 4 wa. qu-s mcmm *a 41100m --WNW 0- f -d . -mm a. me~e a.- - a ~ ma a. - S a.. .~..a. a a. a. -~ a a ~ - - a. ~, a.. a - me ~. a. * da a I IL-W- I I 4D Ow40401 M O. O* a GP w 0-.m dun=% 40 & 4w 0 -10m - a.4 - a.o qww40- a. a 481 4.-a. a. ow - aw b 40. a.oa... b- a4w - 0 0 u-s IMW 4U - dm f- - -M a.111P.0 40 am. v a. a~ Gomm. * a. - - a.m - -~ a.- - ~. me * a. a. a.- - -- a.a. a. a. - a. a. me ~. a. - - a.- a. a.. a. a. a. a. ~~0 -~ -a. n OT a-om amp om qa. a.-ft- 'm- am am- M. 40m --. am .4m. a.1f l a a. a am --m ft N.- Sole a.0 8. ftd 401 a.=0 . --.0 du 40 ft a 40-- -go 4 Go a& -a a.am 1w.- 'am.- -0 a. a. a..ow a--4P -9 a.. a - a.a a am No -f. -W- SPoIrrs I If-. 6B Entertain SATURDAY MARCH 8, 2008 CITRUS COUNTY CHRONICLE gpapomw dab 110 AD -S S. -o -00 qual fto0 ow:I ~ qw- - -M w'o S4 - am-on d-Nnmo41 - S."M Ipd f 4mmm 4 if o mo lo 4MMMM- mwis- - bw 4bsso* -Mu opo w ow Sinm 40010-1 - - - - S p b4NMMQun -u,4104ms 40bS~ . ~ft- ftw al 40quom o g com 4 OE- neSlo-a *Noe. hoS w u 411- - -S -S 0 ~-S 5- - S S~ S * S S - 5- 5- mm (m m 1 48.ob- a qm w QME- mfpftmf-qm Q - em- -u~m-m 400100D mmm- bmw 41 - go lompw- %fwv 410a S* ftmw - m - moos m0 0 4p0 med Odm kw04 qopo OM -1b 400%4 s OE -S N~tmil ft b 6 i filnM -ow o -41 .Mww 40 we wwb__il eavs 4 41 ow ow0 S0 41 qw~wOE*- bmw- 4A Florida LOTTERIES Here are the winningnumbers selected Friday in the Florida Lottery: . CASH 3 3-5-1 PLAY 4 7-4-1-1 MEGA MONEY - 2-29-41-44 MEGA BALL 7 FANTASY 5 8-9-22-25-31 THURSDAY, MARCH 6 Cash 3:1-5-3 Play 4:7-7-7-3 Fantasy 5:10 12 16 -21 -27 5-of-5 1 winner $245,223.02 4-of-5 389 $101.50 3-of-5 11,673 $9 WEDNESDAY, MARCH 5 ', Cash 3:4 0 8 Play4:1-9-7-2 Lotto: 4 10 20 27 34 52 6-of-6 No winner 5-of-6 57 $5,186.50 4-of-6 3,392 $70.50 3-of-6 70,311 $4.50 Fantasy 5:25 26 27 32 35 5-of-5 1 winner $132,374.49', 4-of-5 305 $140 -,2 3-of-5 9,482 $12.40 .r TUESDAY, MARCH 4 Cash 3:8-9-6 Play 4:8-8-9-1 INSIDE THE NUMBERS ' 0 To verify the accuracy of. winning lottery numbers, players should double-check the numbers printed above with numbers officially posted by the Florida Lottery. On the Web, go to .com; by telephone, call (850) 487-7777. WAMO quo 0 4 4D ** a -M O""D -. '- m"Copyrighted Material -- ---- -rt"M Syndicated Content --*' a vailablefrom Commercial News Providers' availablee from Commercial News Providers am fo~t r rwwe pan = ~ aiho 510--Now - - om~obb-I S . .4_____ S ft-- 5--mm e ft w a - S 400- 0 q aS Nmqe V. - ,- 0 ftp q ... -.w 41b4 0.Iom 4 4b qD S q * S*AW OMM - ~ 5- & 410 q nm -do- 11 m-ob - - 4b0 "Ema Am5l q C 4D 40NO fte on 0 --.mop 41M _10 Sim 5- 5 M-ft .MAWS 41b .0 0 ft.- 5 400- u - 5 0 -- -- 4b 0* vl - 4M qim m 4 * pwl--mw-- 100- omm 41 4-n dfm 41 0-amm, 19II 4%1.- am-m 410 ddmsso 4 aded 4bammu- 46 - - wAM e 1 .110 -qam vome am-s,- -m 40- am 4up -O .1104 dw41m,- Smm 41 A.M .*. - -O -wo 4o- -= 4mmdl %-"Imm 0 qwC q w amom Amm0 U qw* 5 -a o4 S ma 4 one. ap moo. maw% 6* ddb vp 4 = - Ngb. .-.900. 4o --a -0oo S- 41M 4M- M VMP4b 4 awwS 4 - -nb 0 a pp 4 - ow o 4w 901 W- 4bqnmo m a mm dw 40-00041 0 wmm-Lt 4w- 490O40 00 mw 4mfm 00 0 0 q 0 0 410 -N fm dow sno Wwa 04M0 gm 0 4 40qav.0m - owe m *f *~ dwmm m4 amamn do jfflNli l!! 4=04"Z qw ftwommomp tftp 40 = Im Olb dw 40 GMENIM AM .ent C a C SATURDAY MARCH 8, 2008 Help for thi i TAgape House 7 looks at the whole picture SNIANCY KENNEDY nkennedy@ , chronicleonline.com .. " Chronicle i -. -,_____. ' !., I |o matter the need. all EU I people have dignity That's the philosophy behind Agape House. former- 1 I a ministry or First Baptist Church in Crystal River and now a ministry of Nature S Coast Ministries, a nonprofiL community-wide ministry to help those in need. Located on the corner of Crystal Street in and Citrus throAvenue in the historic ld coordinator resources of severaAzalea House. Agape aHouse pro- Oides free clothing fori infants Rachel Norris and her daughter through adults. i. ii. P-o, Crystal River. Agape House isp Household coordinator, resources of several area chur goods are also Agape House those in crisis, such as after a house fire "When someone comes through that door \we know they are in need," said long- time Agape House volunteerr Pamela Rastello. "We wel- come them as guests to the home this is a home and help them, as we call it. 'shop.' If they need to talk, we talk with them." Since 1998, Agape House has served as an outreach to the communinity. In addition, the church has always had a food pantry. Being close to U.S. 19 and in the center of the_cit, the church has always drawn people in need to its doors. "If people are hungry, you feed them. If they need cloth- ing or blankets or gas for their car, you meet the need." That's always been the mantra of those in mercy ministry. But there are other needs beyond the physical. "One of the things that the Agape House and (the people) who do the food pantry recog- nize is that we've just been meeting the physical needs." said Bill Benjamin, director of the newly formed Nature Coast Ministries, housed at First Baptist Church. "We're not doing anything for their spiritual needs In our faith, we believe that Please see e body and soul BRIAN LaPETERCnron,ncie *r Gwendolyn Schoenthal, 3, search for clothes Wednesday, Feb. 27, at Agape House in part of Nature Coast Ministries, a new community organization that will pull together the ches to help people find their way out of poverty and, ultimately, to find faith in Christ. Nature Coast MinisTies embraces new approach to helping others NANCY KENNEDY nkennedy@chronicleonline.com Chronicle Agape House offers free clothes and household items to those in need and Bibles for those in spiritual need. Calendar of Lent/Easter Easter 4 Kids from 9 to 11:45 a.m. Saturday, March 15, at St. Paul's Lutheran Church and School, 6150 N. Lecanto Highway in Beverly Hills. Kid-friendly activi- ties include crafts, singing, Bible lessons, games and more. All chil- dren in the community from age 3 through fifth grade are invited. Register by Thursday by calling (352) 489-3027. Crosspoints program at 7 a.m. Sunday, 3 p.m. Monday and 9:30 p.m. Tuesday on WYKE TV 47, channel 16 on Bright House and Adelphia. Pastor Kevin Ballard, coordinator for the Community Easter Sunrise Service sponsored by the Citrus Christian Clergy Association, visits "Crosspoints" to tell us how we can be part of this Easter celebration. Faith Lutheran Church Lenten services are at 5 p.m. Wednesday followed by a potluck supper at 935 S. Crystal Glen Drive in the Crystal Glen subdivi- sion in Lecanto. Holy Communion is celebrated at 8:30 a.m. the first and third Sundays, at 11 a.m. the second and fourth Sundays and at 6 p.m. the first and third Saturdays monthly. Youths of all ages are invited to Bible school from 5 to 7 p.m. the first and third Saturdays. Easter hunt at 6:15 p.m. Saturday, ,; ~. .'.,,,,,, ,, March 15. Adult Bible classes are at 9:45 a.m. Sunday. Call 527- 3325. Peace Lutheran Church Lenten services on Wednesday.. St. Paul's Lutheran Church in Beverly Hills Lenten services at 4 and 6:30 p.m. Thursday with a soup and sandwich supper at 5:15 p.m. Regular Sunday morning worship services at 8 and 10:30 a.m. Call (352) 489-3027. "The Last Supper" comes to life. When Leonardo DaVinci paint- ed his masterpiece "The Last Supper," he could never have understood the impact that his gift would have on the world. North Oak Baptist Church invites the public to experience a live rendition of that beautiful treasure as the disciples come to life to tell their story of that time in the life of their Savior, Jesus Christ. A beautiful authentic setting sets the stage during this season, for the sharing of Christ's last time with his most beloved friends. At 7 p.m. Friday and Saturday, March 14 and 15, and 6 p.m. Sunday, March 16, the Jesus said the poor will always be among us, but does that mean people of faith shouldn't work to change that? That's the question Bill Benjamin, head of the newly formed Nature Coast Ministries, wrestles with. "One of the things people who are in ministry work recognize is that if we only speak to the physical needs of people, we will never Bill truly help them and they'll Benjamin see the same names 10 Nature Coast years from now," Benjamin Ministries said. "We create a culture of dependency that isn't healthy for those w ho are givers, as well as those who receive." He said too often well-meaning, gener- ous people will give of their time, talent and treasure, but then after a year or two of seeing the same faces coming back for food or clothing or other types of assis- tance, they become resentful. "They think, 'Why aren't these people helping themselves?' They're almost being looked at as ingrates," he said. "They're not picking themselves up. Well, we're con- Please see MINISTRY/Page 6C EVENTS community is invited to become part of another place and another time and the greatest story ever told is shared through this live re- enactment of the famous painting. The church is at the comer of North Elkcam Boulevard and North Citrus Springs Boulevard in Citrus Springs. Call (352) 489-1688 for more information. There is no charge. Episcopal Church of The Advent Lenten Retreat at Advent from 8:30 a.m. to noon Saturday, March 15, with "Come Unto Me" given by Deacon Bebe. Holy Week schedule: Maundy Thursday, March 20 Service at 6 p.m. (washing of the feet). Good Friday, March 21 Service from noon to 1 p.m. with Meditation and The Last Words from 1 to 2:15 p.m.(inviting local pastors to be part of service), and Stations of the Cross from 2:15 to 3 p.m. Holy Saturday, March 22 Easter Vigil at 6 p.m. Easter Sunday, March 23 - Services at 7:45 and 10:15 a.m. (Easter egg hunt following the 10:15 a.m. service). Church is at 11251 S.W. Highway 484, Dunnellon. Call (352) 465-7272 for information. Floral City United Methodist Church Palm Sunday services at 8 and 10:30 a.m. March 16, at 8478 E. Marvin St. Maundy Thursday service with communion at 6:30 p.m. March 20 in Hilton Hall. Events for Easter Sunday, March 23: Easter sunrise service at 7 a.m. in the 1884 church building with speaker Pastor Eddie Quates of First Baptist Church of Floral City. Breakfast to follow in Hilton Hall. No 8 a.m. worship service. Sunday school classes at 9 am. Easter Worship service at 10:30 a.m. in the sanctuary with Pastor Steven Riddle's Easter message and Easter music by the choir. Call 344-1771. St. Paul's Lutheran Church Holy Week services begin with Palm Sunday worship at 8 and 10:30 a.m. with Bible class and Sunday school at 9:15 a.m. The adult choir and schoolchildren of St. Paul's Lutheran School and Precious Lambs Pre-school will sing. Maundy Thursday services are at 4 and 6:30 p.m. A Good Friday service at 1 p.m. will be a unique service of meditation along with special music. Easter services are at 8 and 10:30 a.m. The adult choir will add to the worship. Easter breakfast is at 9:15 a.m. The community is invited. The church is at 6500 N. Lecanto Highway, Beverly Hills. Call (352) 489-3027 or visit. Hope Evangelical Lutheran Church in Citrus Springs Palm Sunday services at 8 and 10:45 a.m. Congregation will process under palm fronds held by the young folks as they enter the sanc- tuary. New members received at both services. Lenten services at noon and 7 p.m. Thursday with Holy Communion. Good Friday service at noon followed by Way of the Cross Walk. Holy Communion service at 7 p.m. Easter egg hunt at 10 a.m. Saturday, March 22. Easter Sunday services at 8 and 10:45 a.m. Call (352) 489-5511. Beverly Hills Community Church Easter egg hunt for chil- dren of all ages at 10 a.m. Saturday, March 22, rain or shine. Lots of eggs, games, prizes and fun, for all. Everyone invited. Unity Church of Citrus County annual sunrise meditation service and pancake breakfast and first annual Easter celebration can- tata service on Sunday, March 23: Sunrise service at 7 a.m. in the wooded outdoor sanctuary on the Unity Campus grounds. Sunrise service will begin with a guided meditation given by the Rev. Laud Gist with flute and a-capella back- ground followed by "experiencing of the Tomb-exercise and personal resurrection." Pancake, sausage and fresh fruit breakfast at 8 a.m. prepared and served by Men of Unity. Easter celebration service at 10:30 a.m. in the main sanctuary. Please see EVENTS/Page 2C Nancy Kennedy GRACE NOTES Mini me t five-foot, one inch, I'm little. I'm not as little as Phyllis Gorski Houghton, but littler than Laura Isaacs and she's lit- tle.. When I went for my Air Force enlistment physical, the guy who was about to draw my blood asked if the doctor saw my "deformity." I was incredulous! "What deformity?" I asked. "Urn. Your hands." Being little definitely' has its drawbacks. I can't see a parade or a live snake-han- dling demonstration without being up front I can't see the dust on top of my fridge and I have to pull my car's seat way up so my short legs can Please see GRACE/Page 6C a *: -< -0 0 =- CDCD C CO) C-. .... I I II e .',;,,'4-lll-/Page 6C CITRUS COUNTY (FL) CHRONICLE 2C SATURDAY, MARCH 8, 2008 EVENTS Continued from Page 1C Experience a guided journey through the 'Week that Changed the World" with music and spiritual interpretation. Special events Unity Church of Citrus County Prayer Chaplains healing service at 6:30 p.m. Wednesday. This service takes place the sec- ond Wednesday monthly and all are welcome to come and partici- pate in a time of prayer and medi- tation. Call 746-1270. Boy Scout Troop 452 car- wash from 8 a.m. to noon today at Beverly Hills Community Church, 82 Civic Circle. The Lions Club and the Beverly Hills Recreation Association will have rummage sales during the carwash. This a fundraiser for the Boy Scouts so they can go the camp and other scout activities. Donations accept- ed. Floral City United Methodist Church United Methodist Men and Women "Used Treasures" sale from 8:30 a.m. to noon today in Hilton Hall, 8478 E. Marvin St. Proceeds will go to missions. One-day men's retreat today at Unity Church of Citrus County featuring fellowship, meditation, music and food. The Rev. Jim Rosemergy will facilitate a work- shop titled, "From Warrior to Peacemaker." Retreat begins with fellowship and continental break- : fast at 9:30 a.m. Lunch provided. Cost is $10 per person. For reser- vations, call 746-1270. Hemando Church of the Nazarene annual mission this weekend with guest speaker Dr. Erika Rios, missionary and Global HIV/AIDS coordinator for the Church of the Nazarene. The International Church of the Nazarene has extensive mission- ary work in countries devastated by the HIV/AIDS epidemic, while sup- porting 796 missionaries with an outreach in 153 world areas. A concert by the "Amazzing" Steel Drum Ensemble of Citrus County at 11 a.m. today followed by lunch at noon, address by Dr. Rios at 12:30 and "Mission Encounter" for children from 1 to 2 p.m. Morning worship with speaker Dr. Rios at 10:40 a.m. Sunday and service of celebration with Dr. Randy Hodges, pastor, at 6 p.m. Church is at 2101 N. Florida Ave. (U.S. 41), Hemando. Call 726-6144. All are welcome. Passionist Father Mario Gallipoli will conduct a parish mis- sion at St. Elizabeth Ann Seton Catholic Church in Citrus Springs at this weekend's masses at 4:30 p.m. today and 8;30 and 11 a.m. Sunday. On Monday through Thursday, Father Gallipoli will preach at the 8:30 a.m. Masses, and at 7 p.m. will present the Liturgy of the Word. The Wednesday evening mission will include a Lenten penance service with extra priests available for indi- vidual confessions. Everyone is invited. The church is at 1401 W. Country Club Blvd., Citrus Springs. N Vineyard Christian Fellowship prayer meetings at 8:30 a.m. Tuesday in the prayer room at. for anyone who would like to expand their knowledge of the Holy Spirit. Vineyard Christian- Fellowship is at 960 S. U.S. 41, Inverness. Call 726-1480. .. Free native plant seminar aCt' 10 a.m. Saturday, March 15, in youth room at First Baptist Church Please see EVENTS/Page 50 Places of worship that offer love, peace and harmony to all. Come on over to "His" house, your spirits will be lifted!!! SERVICING THE COMMUNITIES OF CRYSTAL RIVER AND HOMOSASSA /'IA\ First S I Presbyterian (usAi 1501 SWHwy.19 ALL ARE WELCOME! Sunday Worship 10:00am Sunday School For all ages at 9:00am 352-795-2259 wwwfpcofcrystalriver.com | ME Crystal 00ian ^L^^^ 7^^^ * Powerful Praise & Worship * Nursery & "Kids Church" * Youth Program * Food Pantry Sunday 10:30am & 6:30pm Wednesday 7pm 795-LIFE (5433) A l fFih Crsal ier L42 FIRST BAPTIST CHURCH CRYSTAL RIVER 700 N. Citrus Avenue 352-795-3367 Rev. David Throc norkono Sunday AM Services S8:45 Conemporar. Worship Service 10:15 Worship Service Tho Bible Study Sessions 8-45 and 10:15 AWANA Clubs 4:00pm 6 00pm Wednesday PM Service 5:00 Family Supper (RSVP) 6:00 Worship Service S Children & Student 730208 Activities = UL5 CRYSTAL RIVER I I UNITED I METHODIST I H CHURCH- a 4801 N. Citrus t" Ave. S (2 miles north of US 19) | Sunday Worship 8:00 Early Communion L 9:30 a.m. Praise & L Worship | 11:00 a.m. Traditional | Worship I Sunday School for E All Ages S 9:30 & 11: 00 a.m. IL Nursery Available at all Services Youth Fellowship 4:30 p.m. Kid's Club 4:30 p.m. I Rev. David Gill S Senior Pastor A Stephen Ministry U Provider 795-3148 S FE Special Event or Weekly Services Please Call Kathy at 563-3209 For Information On Your Religious Advertising THE SALVATION ARMY CORPS. SUNDAY: Sunday School 9:45 A.M. Morning Worship Hour 11:00 A.M. TUESDAY: Home League 11:30 A.M. Bible Study 1:00 P.M. Captain Jamie Bell ST. ANNE'S EPISCOPAL CHURCH (Anglican) Rector: Fr. Kevin G. Holsapple Biblical Sacramental Spiritual Sunday Masses: 8:00 a.m. S 10:15 a.m. Morning Prayer & Daily Masses 1 mile west of Plantation Inn 9870 West Fort Island Trail Crystal River 352-795-2176 T. THOMAS CATHOLIC CHURCH 'Ser ing Soutriwest Citrus Count)' MASSES: saturday 4:30 P.M. nday 8:00 A.M. 10:30 A.M. :US 10' mile South of West Cardinal St., Homosossa MOUNT OLIVE MISSIONARY BAPTIST CHURCH Sunday Services * Sunday School............................. 9:30 A.M. * Morning Service 11 00 AM * We. Prayer Meeting & Bible Study. ......... ....................................12:00 Noon & 6:30 P.M. 'The Church in the Heart of the Community N with Heart fortheCommunity 2105 N. Georgia Rd., PO Box 327 ... Crystal River, FL 34423 Church Phone (352) 563-1577 I =-,.. f - 310 ^ First Assembly of God Come One Come All!!! Service Times: Sunday School 8:30 a.m. Morning Worship 8:30 a.m. & 10:30 a.m. Wednesday Bible Study 7:00 p.m. Richard Hart SeniorPostor 4 MILES EAST OF HwY. (32)95254 First Baptist Church of Homosassa "Come Worship with Us" 10540 W. Yulee Drive Homosassa 628-3858 Rev. J. Alan Ritter Rev. Chris Brewer Sunday 9:00 am Sunday School IAtIArqe Grmoup, 10.30 am Worship Celebration Choir I Special Music I Children Sunday NIght 6 pm Worship Celebration "Childrenls Ministry "Youth Bible Study Wednesday Night 7 pm Worship Celebration Children's Awanas Group Youth Activities [First United Methodist Church A Stephen Ministry Church 8831 W, Bradshaw St. Homosassa West of UVS30215) 0 St. Benedict Catholic Church U.S. 19 at Ozello RELITGIOON Q SATURDAY, MARCH 8, 2008 3C Places of worship that offer love, peace and harmony to all. Come on over to "His" house, your spirits will be lifted! ! SERVICING THE COMMUNITIES OF HERNANDO, LECANTO, FLORAL CITY, HOMOSASSA SPRINGS First Baptist Church of Floral City Lifting Up Jesus 8545 Magnolia 726-4296 1 Sunday Schedule 9:30 AM Sunday School 10:45 AM Traditional Worship 6:00 PM Worship Wednesday 7:00 PM Music, Youth, Fellowship A warm, friendly Church s Nursery Available S 41 Floral City, FL. Special Event or Weekly Services Please Call Kathy at 563-3209 for Advertising Information Hernando Churchof TheNazarene A Place | Grace Bible ChurchA mi.eastof US.19 6382 W. Green Acres St. P.O. Box 1067 Homosassa,FL.34447-1067 e-mail: gbc@tampabay.rr.com 726992 Real Life ChrsT..an Chi-irchational Bible-believing Church Isn't it time to begin the journey of discovering your faith? 935 S. Crystal Glen Dr. Lecanito Crystal Glen Subdivision B eSt ' Hwy..44juslE.of 490. S527-3325 . ---:0PM Pastor Rev. Frederick W. Schielke Website: SFloralcltychurch.com | 14 ACIF Cit"yRoad Old VF1o l *4 it does. HERNANDO United Methodist Church Foori io (352) 726-7245. Sunday School 8:'45 AM 9:30 AM Fellowship Worship Service Ministriesand Ac tivities for all Ages. Reverend Tyler Montgomery, Pastor StFor information call Roman Catholic Church canto Mass Schedule Saturday Vigil 4:00 p.m. & 6:00 p.m. Sunday Masses 9:00 a.m., andM 11:30 a.m. Reverend er Montgomerya.m. Located atholic Mas430 Homosassa Saturdghway 490)Vigil oSunday Masses Phone 746-9422 TW" -------------. -- A. IGLESIA HISPANA CASA DE ORACION "Donde la Palabra de t' Dios es el lenguaje del Esptritu Santo" Escuela Dominical.. .9:30 AM Adoraci6n.............1...0:15 AM Martes..............9.....9:30 AM Miercoles ...................7:00 PM Dr. Teddy Aponte & Hayi Aponte, Pastores 3220 N. Carl G. Rose Hwy. (200) Hernando 352-341-5100 I FAITH BAPTISTf CHURCH Homosassa Springs Rev. W\m. LaVerle Coats SUNDAY SUNDAY SCHOOL: 9:45 am WORSHIP: 11:00 am & 6pm WEDNESDAY WORSHIP: 7pm YOUTH: 6:30pm . Independent & Fundamental On Spartan 1/2 mile from U S. 19 off Cardinal 628-4793 | HERNANDO United Methodist Church o0 OPe Dorw "A Safe Sanctuary for Children and Families" 2125 E. Norvell Bryant Hwy. (486) (1 miles from Hwy. 41) For information call (352) 726-7245 Sunday School 8.5A r9:30 AM Fellowship 9:30 AM Worship Service 10:00 AM Ministries and Activities for all Ages. Reverend Tyler Montgomery, Pastor CITRUS COL 'UNLY (FI~AL) ,CHRON'JICLE SUNDAY SERVICES 10:30 A.M. WHERE REASON & RELIGION MEET ALL ARE WELCOME 746-9202 HOMOSASSA SPRINGS CHRISTIAN CENTER CHURCH 7961 W. Green Acres. St., Homosassa Springs Marcus Rooks, Sr. Pastor RevkWLj.Todd, Pastor rtfu-Emeritusyretired" ,'. 628-5076 N. GROVER CI ELAND S1GREEN F. HE. Location: US 19 At Green Acres Street South of Homosassa Springs [ Christian Education 9:30am [ Contemporary Service 10:30am [ Wednesday Services 7:00pm (nursery provided). , Sunday Channel 22 (TWC 2) Monthly Bible Study Schedule rimr:// NATURE COAST UNITARIAN UNIVERSALISTS FELLOWSHIP Oak Tree Plaza 2149 Hwy. 486, Lecanto (1 Mile East of Hwy. 491) Shepherd of the Hills EPISCOPAL CHURCH Our mission is to be a beacon offaith known for engaging all persons in the love andtruth) SHEPHERD LUTHERAN CHURCH ELCA Welcomes You To Worship With Us. Worship 8:30 & 10:30 AM. Sunday School 8:30 A.M. Fellowship after Worship Holy Communion Celebrated Weekly Rev. Kenneth C. Blyth, Pastor 746-7161 Nursery Provided Building Is Barrier-Free Hwy. 486 Across From Citrus Hills Boulevard http:goodsheppardhernando.googlepages.com ^ 73 ---i ri" 1- rr r -n fp ) .vf .ll ..I 4C SATURDAY, MARCH 8, 2008 Places of worship that offer love, peace and harmony to all. Come on over to "His" house, your spirits will be lifted!!! SERVICING THE COMMUNITIES OF CITRUS SPRINGS, BEVERLY HILLS, B Crrnus COUNTY (FL) CHRONICLE )OKSVILLE, DUNNELLON, INVERNESS David. H m -i -a A friendly church where \ Christ is exaltedl!! Sunday School 9:00 A.M. Morning Worship 10:15 A.M. Evening Service 6:00 P.M. Bible Study & Prayer 7:00 P.M. Awana (K-61 grade) 6:45 8:15 P.M. Hope Evangelical Lutheran Church ELCA 9425 N. Citrus Springs Blvd. Citrus Springs SUNDAY Sunday School 9:15 Am Worship 8:00 AM & 10:45 AM Communion Every Sunday Information: 489-5511 | 727000 Vic ory t." VINEYARD CHRISTIAN FELLOWSHIP Pastor: Kevin & Ruth Ballard Sunday Schedule: Holy Grounds Cafe........................9:00 AM Sunday Celebration.......................10:00 AM Kids Comer............................... 10:30 AM Weekly Schedule: Fellowship Dinner...........6......6 PM Wed. Bible Teaching..........7....? PM Wed. Pioneer Club................................ PM Wed. Fruit of the Vine Luncheon.....12 PM Thurs. Food Pantry.......................... 2PM wwwinvernessvineyard.com You can expect: Exciting Atmosphere, Solid Preaching, Clean Nursery, Contemporary Worship i Hwy..44 E @h I Washington Ave., Inverness Sunday Services: Traditional * 8:00 AM 11:00 AM Contemporary m 9:30 AM U m 11:00 AM Service m Broadcast live on WRZN am 720 E Sunday School for All Ages E 9:30 AM E Nursery Provided 0 Fellowship & Youth Group 0 6:00 PM N 24-Hour Prayer Line 563-3639 Web Site: n m Church Office 637-0770 * Pastors: Craig Davies & * -" & Daycare 1 vr old Pre K 4 Before & After Scho ol Care Mon-Fri 6-30 A.M 6:00 P.M. Two miles from Hwy. 44 on the corner of Croft & Harley 2728 Harley St., Inverness FL Holy Faith I Episcopal Church 19924 W. Blue Cove Dr. Dunnellon Sunday Rite I Bible Study Sunday School 8:00 AM 9:00 AM 9:00 AM Rite II 10:00 AM 489-2685 Hall Available For Community Functionsrn Rev. Richard W. Brosseau, Pastor Phone (352) 445-9013 720' VIGIL MASSES: 4:00 P.M. & 6:00 P.M. *********** SUNDAY MASSES: 8:00 AM & 10:30 A.MA SPANISH MASS: 12:30 P.M. CONFESSIONS: 2:30 P.M. to 3:30 P.. Sat. orByAppointment WEEKDAY MASSES: 8:00 A.M. 6 Roosevelt Blvd., Beverly Hills 746-2144 (1 Block East of S.R. 491) CHRIST LUTHERAN CHURCH- LCMS "A CHURCH THAT IS A FAMILY" SUNDAY SERVICES Sunday School & Bible Class c9:45 A NM Morning Worship S 15. t II 00 A.M Holy Communion Ist & .3rd 86:15 2nd &4 lth I 1:00 Pastor Paul Meseke Nur.er-n .Aailable 796-8331 475 North Ave. West, Brooksville , I.:.n rir,:,r- A-, *. E a -- *:,1 9"3 r' N I Mission Possible ,_i MINIsrRIES) Wednesday | Youth Group, Bible Study & Kid's Programs.................. ............. 7 pm Program (Nursery Care Provided) 7pm I Fridays | Spanish Worship Service..............7 pm ARMS OF MERCY FOOD PANTRY 1st & 3rd Tuesday of the month. 8:00 am-11:00 am 2018 Colonade St., Inverness i behind Cinnamon Slicks Restauranli 344-1908 We welcome you and invite you to worship with our family. Wednesday: 6:30 P M. Youth Program for all ages. Adult and Young Adult Bible Studies Something for everyone!!! Sunday: 9:00 A.M. Sunday School 10:15A.M. Worship 6:00 PM. Worship Todd Langdon, Sr. Minister Dave Woodrum, Worship Leader Dustin Gall, Youth Minister (e-mail: office@fccinv Re aC',kN~buir 'Abundance is not something we acquire. It is something we turn into." Waune Der "Learn to live a life of iouous abundance' - '- . PLEASANT GROVE CHURCH OF CHRIST 3875 S. Pleasant Grove Rd. Inverness, FL 34450 "Come Be A Part Of God's Family" Minister: Michael Raine (352) 344-9173 Sunday SchoolForAllAges Nursery g Children's Training Class Provided S, R. 44 0o 3 APPLEBEE'S ABC PGRELEMENTARY PLEASANT GROVE RD. I CHURCH OF CHRIST a -0reater SMt.Cariel Daptist Church Ambassadors for Christ Pastor Leroy Ed Jones 637-3260 122 N. Dr. MLKAve. Inverness, FL. A LITTLE STRESSED? FIND RELIEF HERE! First United Methodist Church of Inverness 3896 S. Pleasant Grove Rd. Inverness, FL 34452 (2 mi. so. of Applebee's) Come as you are. (352) 726-2522 I praise & worship on Sunday at 9:00 AM Additional Sunday Worship Opportunities WE ALSO OFFER 8:00 AM Holy Communion 10:45 AM Traditional Worship Signing for hearing impaired available upon request Open Hearts, Open IMvinds, Open Doors Wo..g,%V Alwolvo 7,2ongregation: 746-5303 First Baptist Church of Beverly Hills Marple Lew is. Ill Alan Sanders ..i,.'. ci c Pastor 4950 N.Lecanto Hwy. Beverly Hills. FL Located at Ine inlersection of Hwvy. 491 (Lecanto Hwy; and Forest Ridge Blvd email us at: beverlyhillsbaptist@tampabay.rr.comr CITRUS COUNTY (FL) CHRONICLE EVENTS Continued from Page 2C of Inverness, 550 Pleasant Grove Road. Audrey Durr, Florida Yards and Neighborhood Program coordi- nator from the Citrus County Extension Office, will discuss gen- eral lawn care and what grows best in Central Florida. No prereg- [stration. Call 726-1252. 0 Our Lady of Fatima Catholic Women's Club's annual Tricky Tray Day is Saturday, March 15, in the parish hall, 550 U.S. 41 South in Inverness. Admission is $4 for the first 20 tickets, and $1 for each extra t10. Happy Hour Raffle, Share and Share, free refresh- ments and lunch available. Doors ppen at 11 a.m. Call 341-1412 or 726-5917. Mothers of Preschoolers (MOPS) meet at 9:30 a.m. Tuesday, March 18, in Webster Hall at First Presbyterian Church in Crystal River. This program encourages young women to meet and exchange ideas and informa- tion, and to hear speakers on help- ful subjects. Their children are pared for during the meetings. A light lunch and snacks are served. N Stepping out Ministry of First United Methodist Church of Inverness trip to batlinburg/Pigeon Forge, Tenn., on April 3-10, 2008. Church is at 3896 . Pleasant Grove Road, Call Carole Fletcher for prices and infor- mation at 860-1932. Beverly Hills Community Church is participating in the 11th Annual Allan Shawn Feinstein $1 Million Giveaway. for every donation received through April 30, the funds received from the $1 Million Giveaway will be divided propor- (ionately among all agencies com- plying with the collection period and items collected. These dona- tions can include cash, checks and food items. The more donations the church receives and reports to the Foundation, the more prorated matchingg funds the church will receive. By participating in this giveaway, we become partners in what has become the most suc- cessful campaign of all time to fight hunger. Please give generously so we may increase the quantity of food and serve more people from our food pantry. Send or take donations to the church at 82 Civic Circle, Beverly Hills. Call 746-3620. Music & more House of Power Church Country-Bluegrass Festival at 1 p.m. Saturday, March 15, at 7233 N. Lecanto Highway (County Road 491). Free hot dogs and hamburg- ers with all the fixings. Featured musicians include: Pastor Wally Cosgren, evangelist-at-large of House of Power; and Bill Bates and the Straw Hat Band of Homosassa. One Day At A Time Variety Show, performed by the Drama Players of St. John the Baptist Catholic Church, at 7 tonight and 2 p.m. Sunday at the church hall on U.S. 41 at the junction of U.S. 41 and State Road 40 approximately three miles north of Wal-Mart in Dunnellon. The program includes more than 18 different scenes. The show lasts approximately two hours with a 15-minute intermis- sion. A donation of $10 per person is requested. All seats are reserved. For tickets and other information, call the church office at (352) 489-3156. 1 at the Appleton Museum of Art, 4333 N.E. Silver Springs Blvd., Ocala. This musical event to bene- fit the programs and activities of Temple Beth Shalom, will feature the cantorial voices of Rabbi Sam and Dale Berman, Harold Orbach, Deborah Jacobson, Joy Katzen- Guthrie, Chana Olmstead and Steve Berman. In addition to some favorite songs, everyone will have an opportunity to join in a spirited sing-along. Ticket donations are $25 general admission, $22 sen- iors and youth. Preferred seating options include: "soprano" benefac- tor $310, four tickets; "tenor" patron $160, two tickets; "baritone" supporter" $85, one ticket. Purchase tickets in advance by calling Gary at (352) 347-2481. Greeting, ad and donor opportuni- ties are available by calling Steve at (352) 854-2747. Light Shine presents its schedule of events: "Spiritual Renaissance Singers -A History of the African-American Spiritual," at 4 p.m. Sunday. Events sponsored by Shepherd of the Hills Episcopal Church on County Road 486 east of C.R. 491. HAMS of First Presbyterian Church in Crystal River host an evening of gospel music Friday. Potluck dinner at 5 followed by entertainment at 6 p.m. First Presbyterian Church of Inverness WOW dinner at 6 and free concert at 7 p.m. Wednesday. Concert features groups from the Music Ministry program, soloists, and the Nature Coast Clarinet Quartet. For dinner reservations, call 637-0700. Dunnellon Presbyterian Church welcomes its new church musician, Hae Young Chung, as she presents a solo recital at 3 p.m. Sunday, March 16. Chung is currently seeking a master of music degree in piano performance at the University of Florida under Professor Boaz Sharon. She will play works by Schumann, Prokofiev and Schubert. The church is at 20641 Chestnut Street in the Dunnellon Historic District. Call (352) 489-2682 or (352) 489- 4234 on weekends. All are invited to attend. Mission Possible Ministries presents "Jesus Victorious King," a drama and musical pres- entation complete with live animals, at 6 p.m. Saturday, March 22, and 10:30 a.m. Sunday, March 23, in the church's family life center at 9921 N. Deltona Blvd, Citrus Springs. Call (352) 489-3886. Hernando Church of the Nazarene upcoming concert fea- turing "His Song" and "Reign Song," at 6 p.m. Sunday, March 30. Church is at 2101 N. Florida Ave., Hernando. Call 726-6144. Food & fun Episcopal Church of The Advent corned beef and cabbage dinner from 5:30 to 6:45 p.m. Friday at 11251 S.W. Highway 484, Dunnellon. Donations are $8 for adults and $4 for children 12 and younger. For tickets, call Al Sickle at (352) 208-5664. Vineyard Christian Fellowship and Holy Grounds Caf6 annual Green Day Party and Wing Cook-off at 6 p.m. Friday. This is a free event to everyone. Come and have a fun time with us while we have our first Wing Cook-off. Wear green, get ready to eat and have a great time. Beverages of all types will be sold at low prices. Donations accepted. On Sunday, March 16, the Vineyard welcomes Dr. Cecil Stewart, founder and president of Christian Communications Network. An international confer- ence speaker and author of books, including "Living Where You Belong," Dr. Stewart speaks from personal experience about over- coming in life and living life to its fullest potential in and by the power of God. All are invited. The Vineyard is at 960 S. U.S. 41, Inverness. Call 726-1480, First Presbyterian Church in Crystal River annual Presbyterian Women's commun- ion breakfast service at 9 a.m. Saturday, March 15, with theme, "With God, All Things Are Possible." All women invited. Call church office for reservations. Floral City United Methodist Church chicken and biscuit din- ner from 3:30 to 6 p.m. Saturday, March 29, in Hilton Hall, 8478 E. Marvin St. Menu includes chicken and biscuit, mashed potatoes and gravy, green beans, tossed salad, dessert and beverage for a dona- tion of $7. Takeouts available.. Worship Men of St. Timothy Lutheran Church (MOST) breakfast at 8 a.m. today for devotions and dis- cussion of men's services to the church. School of Theology from 9:30 a.m. to noon. Come-as-you- are worship service at 5 p.m. Pastor Bradford's sermon for the fifth Sunday in Lent: "Hope in the Dust." Worship services at 7:30, 8:30 and 11 a.m. Holy Communion offered. Midweek Lenten worship begins at 6 p.m. Wednesday with a soup supper followed by service at 7 p.m. with them, "Rock." Church is at 1070 N. Suncoast Blvd. (U.S. 19), Crystal River. Call 795-5325. Good Shepherd Lutheran Church Sunday worship services at 8:30 and 10:30 a.m. Pastor Kenneth C. Blyth, the church's new pastor, will deliver a sermon. Fellowship follows both worship services. Hearing devices, large- print music and cassette tapes of the service are free. A nursery attendant is provided for children ages 3 and younger. Youth studies at 8:30 a.m. Church members meet at 8:15 a.m. Tuesday for breakfast at Cockadoodles' Restaurant in Inverness. Midweek Lenten services at 7 p.m. RELIGION Places of worship that offer love, peace and harmony to all. Come on over to "His" house, your spirits will .lib or (352) 637-2824. E"" PRIMERA IGLESIA a HISPANA DE CITRUS COUNTY Asambleas de Dios Invemess,ftono: (352) 341-1711 VVHKR "VERKYBUODY 15 OUMISBODY Our Lady of Fatima CATHOLIC CHURCH U.S. Hwy. 41 South, Inverness, Florida Sunday Masses 7:30 A.M., 9 A.M.& 11:00A.M. Saturday Vigil 4:00P.M. Weekdays 8:00 A.M, \Confessions 2:30 3:30 P.M. 726-1670 INVERNESS CHURCH OF GOD Rev. Larry Powers WSnir Postor 41 Years of Fi RST Bringing Christ to Inverness LUTHERAN CHURCH Divine Services: 7:45 & 10am Holy Communion 7:45 Every Sunday: 10:00 lst & 3rd Sun. Sunday School & Bible Class 8:45 A.M. 726-1637 Cry Room 1900 W. Hwy. 44, Inverness The Rev. Thomas Beaverson INVERNESS SEVENTH-DAY SADVENTIST ; CHURCH 638 S. Eden Gardens Inverness, 34450 Hershel Mercer, Pastor 726-9311 Sat. Sabbath School 9:10AM Sat. Worship Hour 11:00 A.M. Wed. Prayer Meeting 6:00 P.M. SATURDAY, MARCH 8, 2008 SC Wednesday are preceded by a potluck supper at 6. Church is on County Road 486 opposite Citrus Hills Boulevard in Hernando. Call 746-7161. Shepherd of the Hills Episcopal Church in Lecanto cel- ebrates the fifth Sunday in Lent with prayer and praise Holy Eucharist at 5 p.m. today. Holy Eucharist services at 8 and 10 a.m. Sunday. Tuesday evening prayer at 6:30 followed by Lenten study at 7 p.m. Wednesday Bible study at 9 a.m. with healing service at 10 a.m. SOS from 9 a.m. to noon Thursday. Choir at 7 p.m. Thursday. Stations of the Cross at 5 p.m. Friday. ECW at 10:30 a.m. Saturday.. First Presbyterian Church of Inverness Sunday services at 8, 9 and 11 a.m. The 11 a.m. service is broadcast on WRZN:. Blood pres- sure screening frbm 9 to 9:30 a.m. Sunday in church office. Wonderful Opportunity on Wednesday (WOW) dinner at 6 followed by a free music concert at 7 p.m. provid- ed by the music ministry. First Baptist Church of Hernando, 3790 E. Parsons Point Road. Sunday services: coffee and doughnuts at 9 a.m.; prayer for Sunday school classes for all ages at 9:20 a.m. in the fellowship hall; Sunday school classes at 9:30 a.m. in classrooms; worship servic- es at 11 a.m. and 6 p .m. New Testament Baptist Church of Floral City Sunday school classes at 9:45 a.m. Sunday worship services at 11 a.m. and 6 p.m. Wednesday evening service at 7. Graded class- es for all ages offered during Please see EVENTS/Page 6C All are invited to our Healing Services First Church of Christ, Scientist Inverness 224 N. Osceola Ave. Sunday Services 10:30 AM Sunday School 10:30 AM Wed. Testimony Meeting 5:00 PM 1726.. 352-726-4033 ELG N IUCOUT.1)CHRNIL OC sATURDAYMARCH 8 2008 AGAPE Continued from Page 1C you've got to have Jesus Christ in your life or else the rest of the stuff doesn't really matter, it all falls apart," he said. "So, yes, it's important that they have food and clothing, but if we stop there we've missed out on one of the biggest pieces that's essential to that thing we call hope." Last month, Agape House closed its doors for reorganiza- tion and refocus. They created an in-depth interview process to assess people's needs, physi- cally, emotionally and spiritual- ly They acknowledged that spir- itual poverty often results in physical poverty and that those who come for food and clothing are often at a place where they are open to hear about how to have a relationship with God. "In the first two weeks after we reopened, six people accept- ed the Lord, as opposed to one all last year," said Jackie Plos, 'Agape House coordinator "Be- fore, we weren't addressing spiritual needs, because we did- n't have time to interview them. Now, we're totally focused on that first" Hours are from 9 am. to 1 p.m. Wednesday and Thursday, and reopening from 5 to 8 p.m. Thursday. People come and are inter- AGAPE viewed by a WHAT: Aga volunteer. clothing anc Benjamin said goods minis this gives them a chance to get WHEN: 9 a to know people Wednesday instead of just 5 to 8 p.m. giving them N WHERE: Th some food and Azalea Hous clothing with- Ave., Crysta out making a M INFO: Call human con- nection. The Agape House has a par- lor area where people can have coffee and cookies, take part in a group discussion, let their children play. "The big thing is, we want to interview them every time they come," Plos said. "They can come and 'shop' every four weeks, and we want to know if p d st .r he s' l 7 anything has changed with them. We want to know, 'What's going on in your life? What's happening now?' "We want to address their spiritual needs," she said. The clothing and household goods come from donations HOUSE from the com- e House munity, and household they only put try. out the best that comes in. m. to 1 p.m. "Wegetatre- and Thursday, mendous am- Thursday. ount of dona- historic tions, and our e, 700 Citrus overflow we River. send to Jesus Is 195-3367. Ministries (in Inglis), and we get stuff from The Path," she said. "So, we're all passing it along." Plos said they've seen a defi- nite increase in the number of people who come for help. They keep tents, sleeping bags, flashlights and Bibles on hand to give to the homeless and lots of diapers and baby food. "Times are tougher," Plos BRIAN LaPETER/Chronicte Agape House is located in the historic Azalea House at the corner of Crystal Street and Citrus Avenue in Crystal River. said of the increase in need. "There's a lot of need in Citrus County, but there are also a lot of generous people." For information about Agape House or Nature Coast Minis- tries, call Bill Benjamin at 795- 3367 or e-mail NatureCoast @embarqmail.com. MINISTRY Continued from Page 1C tributing to that in part by doing what we're doing. We are causing that separation between us and them, thinking that they are 'lower' than us. "We don't say that," he said, "but it comes across by our actions you're not able to do this for yourself; here, let me take care of it for you." He said that typical, well- meaning charitable work too often fosters an "us vs. them" dynamic and not true equality. "We've got to see (people in need) as equal to ourselves," he said. "They're in a circum- stance that, yes, they may have brought it on themselves, but is it our goal to rub their noses in it, or is it our goal to help them to move to a place where they can take responsibility and take charge of their lives? It's the shift from needs-based ministry to asset-based." Nature Coast Ministries is designed to help people discov- er their own assets and talents and then learn ways to utilize them to get themselves out of the situations that got them into a place of need. He said churches and help organizations often do a good job of feeding and clothing peo- ple, but unless the people are given tools to "carry their own load and walk their own walk," it's not real help. "Most people have skills and abilities, but for whatever rea- son they've allowed their assets to be covered over by the failures of their lives," he said. "The mom with four kids whose husband left she's overwhelmed by the day-to-day getting those kids fed and the lights to stay on, and so she for- gets that there was once a time that she had dreams, and dreams are assets, too. "So, helping a person to see their assets, you start there and you help them build on them," he said. Although still in its infant stages, Benjamin's vision for the ministry is far-reaching. Among other services, the min- istries include health needs, counseling, substance abuse help, housing needs, help find- ing jobs, a food pantry and clothing closet, even a sports outreach for youth. And while the ministry is currently housed at First Baptist Church in Crystal River, it's not a ministry of the church, but a community-wide ministry. Benjamin also said it doesn't replace and isn't in competition with any other ministry in the area that's help- ing people in need. There's plenty of need to go around. "For example, we're working on a project with the Salvation Army, putting together a cold weather shelter," he said. "The Salvation Army said they'll use their sanctuary as the location and even transport people, but they need volunteers and cots. So, we'll work with them to pro- vide some of those components and other organizations will do that as well." The overall intention is to pool together the various resources that are available in the community, Benjamin said, "with a common goal of helping folk to be able to walk on their own, fulfilling the purpose that God has for their lives." Tara Bryant, community ministries director at Seven Rivers Presbyterian Church in Lecanto, said she sees Nature Coast Ministries not competing with other ministries, but uni- fying them. :1 "Even the smallest church in Citrus County does something to help the poor, but with ani umbrella organization bringing churches together with the common cause of being friends with those in need, we all can do so much more," she said. The bottom line, Benjamin said, is hope. "When people recognize that they have assets, they quickly begin to see possibilities," he said. "And when they have pos, sibilities, they have hope it's all about hope." GRACE Continued from Page 1C reach the pedals. On the other short little hand, being petite also has its advan- tages, like being called "petite." Being little means being first in a size order line and put in front in a group photo. It also means I'm able to hide in plain sight if I want to. I can be in the middle of a crowd and be unnoticed. It makes eaves- dropping a whole lot easier. I've always been little, and the older I get, the littler I feel, EVENTS Continued from Page 5C. Women of Faith meet at 10 a.m. the second and fourth Thursday monthly. All ladies wel- come. Church is at 6918 S. Spartan Ave. (one mile from U.S. 19, off Cardinal Street). Call 628- 4793. First Christian Church of Homosassa Springs Bible school classes for all ages at 9:30 a.m. Sunday followed by morning wor- ship at 10:30. Evening'worship at 6 p.m. Sunday. Wednesday meal at 6 p.m. followed by Bible study at 7. Church of Christ services at 304 N.E. 5th St., Crystal River. Bible classes at 10 a.m. Sunday, 7 p.m. Wednesday and by appoint- ment. Worship services at 11 a.m. Sunday. Call 795-4943 or 563- 0056. Living Word of Faith Church, on Cason Boulevard in Inglis, offers Sunday school class- es at 10 a.m. and Sunday evening worship at 6. Everyone is wel- come. Jessie Lolley is the pastor. Meets biweekly on Saturday 11:00am Lakes Regional Library in Inverness For information call (352) 861-1903 or (352) 726-2357 graycek@embarqmail.com ...... Ray King not just physically, but other ways, too. I've been thinking a lot lately about the bigness of the world - the vastness of poverty and need, even the need in my own com- munity. It's overwhelming and it makes me feel helpless and impotent to do anything about it I so badly want to make a dif- ference, but how? Where do I start? And what difference can a little person like me make? My friend Tara heads the mercy ministry at our church. She and I talk often about how best to feed hungry people, and not just feed them, but help them to get out of poverty We don'tments served. Call 795- 5555. Nature Coast Unitarian Universalist Fellowship services are at 2149 Norvell Bryant Highway (County Road 486). Sunday's speaker is the Rev. Mary Louise DeWolf. Her topic is "Evolution, God and the Interdependent Web: What else is there?" Refreshments and discussion follow the service. Call 465-5646 or visit ncuu.org. Heritage Baptist Church services led by Pastor David Hamilton, at 2 Civic Circle, Beverly Hills. Call 746-6171. know how. There are so many - where do we even start? The other night I saw a news report about a medical team that spent a week in a rural place, in Tennessee I think. They treated thousands of peo- ple for free, but had to turn away about 500 people waiting in line because their week was up. What about the calls we get here at the paper, pleas for help after house fires and cata- strophic illnesses? So much crime and poverty, hunger and abuse, desperation, need, despair. What about the people who have plenty but who are spiri- -*0 - - .0 w - -- - e - 0 0 __ 0 0~ - = ~0 - 0 ~- .~ S -- -- 0 - .0 -~ ~- - .0 -.0 - -- Syndicated Content - am- 0e- tually poor? Not everyone embraces Jesus, and there's nothing I can do to change another person's heart or mind, and that makes me feel very, very little. Too often, my littleness becomes too big for me to han- dle. I forget God's bigness, his infinite enormity and how he can take whatever little I have and multiply it to serve his pur- pose. Last week my pastor told a story about a little boy and a big farmer who let the boy "drive" his tractor and plow his vast field. My pastor said, "All his smallness was enveloped -0-. by (the man's) bigness." His point: The boy didn't do any- thing but hop on the tractor; the man did the rest. It was his field, his job to plow it, yet he invited the little boy to "help." My pastor's sermon was in the context of being generous with our stuff, giving it away and trusting God to use it to further his kingdom and to care for his little ones who dare to risk That doesn't just apply to giving away our stuff, but our very selves for the sake of the gospel. "Our little lives make a dif- ference," he said, "because they're wrapped up in God's bigness." I walked out of church, with my little baby legs, encouraged that maybe being little was OK after all. God doesn't ask me to do everything, just what I can) and if he wants to, he'll make it big. online.com. 0 0 =0. - -I - * .0-a = ~. - * 0 a r * .- 0 - .0 - 0 11 0~- - .. - - 0 - 0 4D doom0 .0 .0 -. 0 - '~ - 0 "Copyrighted Material 2 - ;- Available from Commercial News Providers -- %-46 -. qw -- - 0 . -~ .0 - 0 0 - uiaT SuNe. Spiritual Renaissance Singers repeat Per ormance A presentation by a Tampa area choral ensemble that is Inspired by the Fisk Jubilee Singers and the Hall Johnson Singers. Sunday, March 9, 4:00 Beverly Hills Recreation Association Center. co-sponsois 'Beating is on a first come first seated basis. ADMISSION It FREE THE NUMBERS OF HOPE Eaaster Musical preSen ed b Adult Worship choir : . MarO 16, 2008 at 6:00PM First Baptist Church of Inverness 550 Pleasant Grove Road Inverness, Fl 0Phone 726-1252 14 CiTRus CouN?,y (FL) CHRONICLE RELIGION . 'I - "111W ...Sow - - . . .. . 1 . __ I -~ i-~ .. I -- '- .-. '-a '-a '---A I- *-*~ L- ----~' <( ( \..1 CITRUS COUNTY 7 CHHRONICLE SNews NOTES *Magnolia Cemetery to have cleanup day ^ The Magnolia Cemetery in (ecanto will have its annual cleanup day at 8 a.m. today. Everyone is invited to partici- pate. For more information, call 527-1471. English Car Club meets for breakfast The Nature Coast English Gar Club meets the second Saturday monthly, rain or shine, for breakfast at 8 a.m. at the Silverthom Country Club, 4550 Golf Club Lane in Brooksville. Call Bob Shutler for details. (352) 597-7564. The Italian Social club goes Irish Today, the Italian Social Club will make room for our Irish fiends. A typical meal of corned beef and cabbage is on the menu with one half of a baked chicken for those who would prefer an alternate dinner. The doors open at 5:30 p.m. and dinner will be served starting at 6. "The Carriers" will provide music. A complimentary glass of wine is available to start the evening with BYOB following. Tickets are $12 and may be reserved by calling either John 4t 726-1328 or Maria at 560- 1916. Come celebrate St. Patrick's Day a week early. Boy Scout Troop 452 to wash cars Today, from 8 a.m. to 12 noon, Boy Scout Troop 452 will have a car wash at the Beverly Hills Community Church, 82 Civic Circle. The Scouts will wash cars while the Lions Club and the Beverly Hills Recreation Association are holding their Rummage Sales. This a fund- raiser for camp and other Scout activities. The water police have been contacted and approval has been given. Donations will be gladly accepted. , CRUG announces April classes To register for the following classes, call Anita at 527-3188 or Barbara at 628-5644 (9 a.m. t6 8 p.m. Monday to Friday) or send an e-mail to education@ prug.com. Deadline to register is Monday. All classes are in the Citrus Springs Community Center. CRUG Corel Painter Essentials (SIG) Class: In this single-session special interest group, you will see how Corel Painter Essentials turns a digital photo into a painting with a cou- ple of clicks. Painter Essentials is a natural step for anyone interested in digital imaging. Instructor Lynn Page, 10 a.m. to noon, Wednesday, April 2, $5. CRUG Microsoft Office 2007 User Interface (SIG) Class: The Office 2007 User Interface spe- cial interest group will address the new features jn the Office 2007 interface. Instructor - Lynn Page, 10 a.m. to noon Wednesday, April 9, $5. CRUG Basic PowerPoint for Fun Class: If you have digital photos you want to share with family and friends this class is for you. Students should have basic computer ability and have PowerPoint 2003 installed on their computer. Instructor - Anita Wolski, 10 a.m. to noon Wednesday, April 16, 23 and 30, $20. Pet SPOTLIGHT tf----- Ministering warmth, caring Special to the Chronicle In recent weeks, First Assembly of God Church in Crystal River has been busy with Brothers Keeper Ministry and their Youth Revolution Ministry picking up blankets, coats, clothes and food from various pickup sites and deliv- ering them to aid the homeless and the less fortunate. Citrus County has dug deeply into cleaning closets, buying new blankets, etc. to aid the homeless with warmth. Ten Truckloads were transported from St Margaret's Episcopal Church; First Assembly of God, Inverness; Homosassa Lions Club and Justin Case Auto Repair for distribution to the homeless. Blankets and other items that were received by Church without Walls, Daystar, First Baptist Church of Crystal River and the Salvation Army were kept for their ministries. IMAM.* = . ...Special to the Chronicle From left, Hazel Clyde, Thomas Clyde, Cassidy Clyde and Nathan From left are: Ginger West, Thomas Clyde, Nathan Clyde, Cassidy Clyde collect another truckload of blankets. Clyde and Hazel Clyde. Helping Sara member Sara? RLast month, she wanted to check into our shelter with a small girl and boy while eight months pregnant and really scared. Little did this sin- gle mother know what was about to happen. We took Sara into the shelter, and it was tight. The staff rallied around her in encourage- ment and support. I knew immediately what I wanted to do, but Sara had to DuWayne THE P HOr accept the idea and she need- ed time for it to absorb. Call your mother in New York and see if she will take you back Her mother said yes. Next, we needed time to raise the bus money to get all three back safely. The one-day tick- ets are much more costly than the one-week tickets bought in advance, but the staff did not think that Sara could take the risk; every day we waited, Sara was closer to giving birth. Even though she was in her eighth month, she was getting erratic contractions. The Path is a work program and we knew that Sara was not a good candidate for hire. Her family would need a lot of attention for several months, while taking valuable space from other mothers who need shelter and work We had to move fast. We got on the phones and pleaded our case with some of our longest and best donors, and in two days, we raised enough money to send Sara back to New York The night before Sara left, we stood by her and prayed as she gently cried now knowing that she was probably leav- ing Citrus County forever and that the father of her'unborn child would also e Sipper probably be lost except for the never- 'ATH ending responsibili- MIE ty of paying child support. This is just one case of hun- dreds that we look for many difficult choices and help peo- ple make the best one accord- ing to our experience. Some day I dream, some day I pray that we at the Path have the housing and the staff that helps the Sara's of our world move through a program that makes mothers and babies feel safe. The program will offer them choices of new jobs or training and will offer them long-term housing they can afford. Some day I dream, and some day I pray that God will use me to build it, and I am not concerned that they will come; the Saras are already here. Sipper is the executive direc- tor of The Path of Citrus County, a faith-based home- less shelter. Contact him at 527-6500 or sipperd@bellsouth.net Still time to enter Citrus County Fair Special to the Chronicle It is time to enter homemade or homegrown items in the 2008 Citrus County Fair, start- ing Friday. There are many categories to enter. There are also some new ones this year: rubber stamping, theme table settings, collections and homemade wine. Come down from 9 a.m. to 7 p.m. Friday, March 14, or from 9 a.m. to 3 p.m. Saturday, March 15. Baked goods and agricultural products will be accepted from 8 to 10 a.m. Monday, March 17. It's not too late to frame that picture, crochet an item, show off prize house plants, vegeta- bles just coming in, perhaps a page from that scrapbook you made of your grandchild, a wedding or just a glimpse of "life." Exciting and new this year is theme table settings. The rules are simple (available on line at - click on Competitive Exhibit Rules, at the Fair office or check the Chronicle's Fair publication). Bring a card table, your settings and your imagination and show just how great you can set a table. Ribbons will be awarded in all categories, cash and rib- bons will be awarded in the youth division. Youth entrants are also eligible to apply for scholarships. For more information, visit or call 726-2993. Moose to observe birthday Special to the Chronicle Crystal River Moose 2013 will celebrate its birthday Sunday with a prime rib din- ner followed by a show and dance, featuring Margo Anderson's "Tribute to Patsy Cline" and the Honky-Tonk Angels. Margo Anderson has ap- peared throughout the South- eastern states and Costa Rica and her performance is a toe- tapping, dance/dinner show that leaves audiences laugh- ing, crying and dancing to the hit songs of the beloved ladies of country music Patsy Cline, Loretta Lynn, Tammy Wynette and Reba McEntire. After the show, Anderson will entertain with dance music until 10. Dinner will be served at 5 p.m. and show will be at 6. Tickets are on sale at the lodge at 1855 S. Suncoast Blvd. for $15 each or call 795-7030 or 795-2795. For more informa- tion, contact Matt Dillon. This event is for any Moose member and their guest. Show to benefit children Special to the Chronicle Encore Ensemble will pres- ent Century Cafe Dinner Theatre: 100 Years of Musical Memories at 6 p.m., Sunday at Citrus Hills Golf and Country Club to benefit Take Stock in Children of Citrus County. Dinner and entertainment tickets are $40 per person dona- tion and $75 per couple. Discounted table rates for eight per table are available. For reservations, call Laura Lam- bert, Citrus Hills Golf and Country Club at 746-6855 - reservations only Seating capac- ity is limited to 250. All proceeds will benefit Take Stock In Children of Citrus County The Encore Ensemble per- formance of the Century Cafe was listed by Ruth Levins, Citrus County Chronicle columnist, as one of the most memorable events of 2007. This ensemble is unique as it encourages audience partici- pation throughout the per- formance. Take Stock In Children ( .com) is an award-winning school-based mentoring pro- gram that assists deserving youths from low-income fami- lies by providing the opportu- nity for a better education and a brighter future. Ladies, come out for a day of play and help send a kid to college Special to the Chronicle Sasha, a shih tzu, who belongs to Larry and Netta Stack of Homosassa, meets Luke Cramer, son of Will and Kate Cramer of Homosassa. Special to the Chronicle The Women of Sugarmill Woods will hold its 12th annual "School"astic Classic Golf Tournament on March 10, at the Sugarmill Woods Country Club. Proceeds will go to the Club's Scholarship Fund. The scholarships are traditionally awarded in April. Lady golfers are invited to come join the fun of a game of 18 holes, best two balls of the foursome-flighted. You can buy a chance to hire-a-pro, use a gimme putt, or play a mulligan. There will be door and raffle prizes, a Chinese auction and a share-the-pot raffle. The entry fee is $65 per lady which includes cart, greens fees, breakfast bar, and hot lunch- eon. Shotgun is at 9 a.m. For information and registration, contact Vicki Budd at 382-5216 or vbudd@tampabay.rr.com. We know that education is a major factor in a child's success, and invite all in the local busi- ness community to partner with us in this event Become a spon- sor at the platinum, gold, or sil- ver level and you will receive signage at the tee along the course, as well as advertising and publicity benefits. Best of all, you will help forge a young person's future in life. Call Francesca Paar at 382-2528. N Submit information at least two weeks before the event. U. I Expect notes to run no more than twice. / C ' AT UV '.- AY NMARCH 8, 2008 Rainbow River Riders captures Region A Wanderer plaque -GWRRA FLI-R Rainbow River T Riders of Dunnellon traveled on S-" their GoldWings to Jacksonville -.:Beach on Feb. 23 to capture the Region A Wanderer Plaque. Region A consists of GWRRA members -'from South Carolina, Georgia, Alabama, Mississippi, Puerto Rico ;and Florida. From left are: FL1-R members Jack Lamson, Bob and Erin Gosselin, John and Sherryl Lee, Tom Lees, John Arendt, Melissa Wilkerson holding the plaque, and FL1-R Chapter Director Bruce Schlimme shaking hands with Jacksonville Beach Chapter Director Dave Howell. FL1-R will host the next Gold Wing Road Rider Region A Wanderer event at noon March 22 at the Sonic Drive- In in Dunnellon. Call CD Bruce Schlimme at (352) 465 1228 for more info. Special to the Chronicle SC SN 'AIDAYT i)Xm',utc(ii 8.--200S UT EMENTS THE OLDIES HITS, BUT ITH ADDED GLITZ IN ISTUMING, HARMONY, L AND DANCE 4 AOWREOGRAPHY'M Pr *. NEXT INVERNESS AREA' lOWS CURTIS PETERSON AUDITORIUM SEATS 1100 1 MARCH 8, APRIL 12 EXT OCALA SHOWS TI RCH 15, 'I II IA my-.. '.~ i~i TI -~1 IA~ U is~j Wesley Chapel Center for the ArtsThis venue 0651 Wells Road hasai seats with a Wesley Chapel, F partial viea partial view Wells .R of the band which we Distance on "hiche discount - Bovette Rd. discount - 0 INQUIRE! from Rt 54 GN RE GREAT to ells GRETSOUND! Rd aboutS D I mile.hyrhilsChild en Zephy half-price with parents I- - - 'V ~.,J-, I- Mar. 8 Inverness 7:00 Mar. 15 Ocala 7:00 Mar. 22 Lakeland 7:00 Mar. 28 Wesley Chapel 7:30 Apr. 5 ORLANDO 7:00 Apr. 12 Inverness 7:00 Apr. 19 Wesley Chapel 7:30 Apr. 26 Ocala 7:00 May 17 Inverness 7:00 May 31 ORLANDO 7:00 June 14 July 26 Ocala Ocala 7:00 7:00 WWWT5060OS.COM Hls Curfis Petersen Audit 3810 W. Educational Path SR 41 FOLLOW aSRTU R"4 Prium seats 1100 IGINAL A - a " A 13-8S CITRUS COUNTY(FL) CHRONKLE lJ T-N ri FA F, FA "I W 2 WWI i 'K 44 .......... ....... .......... .......... LAI Ae! %-nI~V I(Yitrll,.wKNvI NER AN E T LUDYMRH8 089 ,SATURDAY EVENING MARCH 8, 2008 C: ComcastCitrus B: Bright House D: ComcastDunnellon 1: Comcast, Inglis C B D I 6:00 6:30 7:00 7:30 8:00 18:30 9:00 19:30 10:00 10:30 11:00 11:30 (WESH) News (N) NBC News Entertainment Tonight (N) Law & Order: Criminal Law & Order: Special Law & Order "Quit Claim" News (N) Saturday .NBc 19 19 19 137 I'PG' 9 4885 Intent '14, D' cc 9755 Victims Unit '14' 9999 '14' 9 3156 2175 Night Live ) BBC World Wild Florida The Lawrence Welk Being Keeping Up As Time Waiting for Only Fools and Horses Monty Python's Personal 3PBS 3 3 News 'G' G' 243 Show 'G' 1311 Served I Goes By God 'G' 'PG' 4822 Best '14' 49779 T Brain Daniel O'Donnell at Home in Ireland (In The Everly Brothers Reunion Concert John Denver: A Song's Best Friend 'G' Great Performances (In PBS 5 5 5 Fitness Stereo) 'G' 9 62427 (In Stereo) 'G' 70446 10175 .- Stereo) 'G' El 76330 WFLA News 2069 NBC News Entertainment Tonight (N) Law & Order: Criminal Law & Order: Special Law & Order "Quit Claim" News (N) Saturday NBC 8 8 8 8 'PG' 60359 Intent '14, D' c 46779 Victims Unit '14' 59243 '14' [ 52330 24069 Night Live FTV News (N) Wrid News Jeopardy! Wheel of Movie: * "Road to Perdition" (2002, Crime Drama) Tom Hanks. A mob- News (N) Hot Topics ABC 20 20 20 20 [E 8427 Sat 'G' cc 7069 Fortune 'G' ster seeks vengeance during the Depression. c] 685934 9077330 'PG' WTSP Em 0 0 News (N) CBS News Inside CSI: NY "Heart of Glass" 148 Hours Mystery (In Stereo) 'PG' cc 96798 News (N) Paid CBS 10 10 10 10 6069 Evening Special 8311 Edition '14, V [B 86311 [19075972 Program WTVT ) News (N) cc 11972 King of the The Bernie Cops (N) Cops 'PG, L' America's Most Wanted- News (N) c[ 10392 Mad TV "Survivor: MAD SFOX 13 13 Hill 'PG' Mac Show 'PG, L' cc c17224 [Fights Back TV"'14. D,L' c 26175 SJB News (N) Wrld News Entertainment Tonight (N) Movie: *** "Road to Perdition" (2002, Crime Drama) Tom Hanks. A mob- News (N) CSI: Miami AB11 11 21953 Sat 'PG' [ 60953 ster seeks vengeance during the Depression. 9 235972 48243 '14, D,S,V WCLF) -Cornerstone Hour c9 Van Impe Giving Hope Scott Young Manifesting Leslie Hale 1l 5212446 Live From Liberty 'G' cc Ed Young Wisdom '.IND 2 2 2 2 9764243 Pres Sons 115282205 Television Keys 1T News (N) Wrld News Wheel of Jeopardy! Movie: * "Road to Perdition" (2002, Crime Drama) Tom Hanks. A mob- News (N) Cold Squad ABC 70363 Sat Fortune 'G' 'G' 25717 ster seeks vengeance during the Depression. 9[ 774446 6980137 '14' WMOR Frasier 'PG' Frasier 'PG' Family Guy Family Guy UFC Wired 'PG' 9 79663 Cheaters (in Stereo) 'PG' Chappelle's Chappelle's Law & Order: Special IND e 12 12 1 31427 22779 'PQ D,L,S' '14, D.LS' c 99427 1. Victims Unit '14' 59021 TTA) The Shield "On the Seinfeld Every- Beach Volleyball: AVP Control Room Presents (Off Air) Sex and the Sex and the MNT a 6 6 6 6 Jones" 'MA, L,S,V 9 'PG' Raymond Hot Winter Nights (N) 9 3254507 City '14, City '14, WACX Variety 4427 Variety 5779 Variety 9327 Life Center Church Hal Lindsey Calvary in Rod Parsley Variety Sheila J. Mike Inspir. Music STBN 21 21 21 326359 8392 Focus 'G' 25309 71953 Spencer Murdock 'G WTOG Two and a The King of Two and a The King of The Friends 'PG' The Friends '14' CSI: Miami "The Oath" (In CSI: Miami "Not Landing" C E 4 4 4 4 Half Men Queensf Men Men Queens Simpsons c9 5866 Simpsons 21359 Stereo) '14, D,S V' ] '14, S' 24717 [WYKE) Motorcycle Racing FIM Bull Riding PBR. 'G' c Big Cat Planet X 'G' Slice of Sports Teen 2 Teen Connect The Nate Paid FAM 16 16 16 16 Motocross of Nations. 77205 Quest 98224 Citrus Spotlight Zone Gray Show Program WOGX .Seinfeld Seinfeld American Idol Rewind Cops.(N) Cops 'P L' America's Most Wanted- News (In Stereo) cc Mad TV "Survivor: MAD x 13 13 'PG' c 'PG, D' "Top 8 to 7" (N) 'PG' 'PG, L' [c [c 6232 Fights Back 39048 TV"'14, D,L' 9 27595 E 15 1 5 Que Locura Noticiero Una Familia El Chavo Sibado Gigante 'PG' 697408 Noticias Noticiero *UNI E 15 15 15 15Univisi6n de Diez 5Animado PR. Univisi6n 1W PX) 48 Hours "Texas Movie: "The Apocalypse Watch" (1997, Drama) Patrick Bergin, Virginia Madsen, John Shea. Neo-Nazis Time Life Paid 17 Confidential" c 44040 plot takeovers of Great Britain and U.S. (In Stereo) 963514 Music Program :* 54 48 4 54 Movie: * "Matchstick Men" (2003) Nicolas Movie: *** "Die Hard With a Vengeance" (1995, Action) To e Flip This House Team ,, 54 48 54 Cage, Sam Rockwell. 704601 Bruce Willis, Jeremy Irons. c] 438156 Announced challenge. 'PG' 610069 i55 64 55 55 ,Movie: ** "Volcano" (1997, Action) Tommy Lee Movie: *** "Troy" (2004, Adventure) Brad Pitt, Eric Bana, Orlando Bloom. Achilles leads "Young 55 64 55 55 Jones, Anne Heche. [ 64718663 Greek forces in the Troian War. ]9 415458 Guns" 52,35 2 52 e Miami Animal Police 'PG' Miami Animal Police 'PG' It's Me or It's Me or IPetfinder 'G' Funniest E-Vet Interns (Season It's Me or It's Me or S52 35 2 52 9766601 ]9 5285392 the Dog 'G' the Dog 'G' 7579601 Animals Premiere) (N) 'PG' the Dog 'G' the Dog 'G' BRAVO 5 I Project Runway '14' 9 Project Runway "The Art Project Runway '14' cc Project Runway "Finale" Movie: ** "Lethal Weapon" (1987) Mel 5 .AV 51 853040 of Fashion" '14' 414175 490595 '14' cc 410359 Gibson, Danny Glover. Premiere. 9 666682 61 27 27 Movie: "How High" Scrubs'14' Scrubs '14' Movie: ** "Without a Paddle" (2004) Seth South Park South Park South Park South Park 27 61 27 27 (2001) 36917 95137 13021 Green, Matthew Lillard. 9] 82137 'MA, L' 'MA, L' 'MA, L' 'MA, L' S45 9898 Redneck Gone Country Original Gone Gone Gone Gone Gone Gone Country (In Stereo) The Ultimate Coyote Ugly 98 45 98 98 Wed country song. 951514 Country Country Country Country Country 71066 Search 64953 T NM95 70 95 9 Mother Angelica Live Daily Mass: Our Lady of A Little About Don Orione Bookmark The Holy Fr. John Corapi'G' The Journey Home 'G' N 95 70 95 95 Classic Episodes the Angels 'G' 9004514 9080934 'G' 8042040 Rosary 9003885 2646137 29 52 29 29 Movie: ** S "Bringt On" (2000, Comedy) Movie: *% "Bring It On Again" (2004) Anne Movie: *** "Meet the Parents" (2000) Robert A 5 Kirsten Dunst, Eliza Dushku. M 727798 Judson-Yager, Bree Turner. c9 722243 De Niro, Ben Stiller. cc 688224 S30 60 30 30 Movie: s "The Waterboy" (1998, Comedy) Adam Movie: * "The Rundown" (2003, Adventure) The Rock, Movie: * "House of Wax" (2005) S3 0 30 3 Sandler, Kathy Bates. 9096595 Seann William Scott Rosario Dawson. 4721156 Elisha Cuthbert. 4702021 H T 23 57 23 23 Get It 24 Hour House House Designed to Deserving Color Divine Design on a Find Your Color Get It 2 5 2 23 Together 'G' Design (N) Worth? Hunters 'G' Sell 'G' tDesign 'G' Splash (N) Design 'G' Dime 'G' Style (N) 'G' Correction Together (N) i t51 25 51 51i Ice Road Truckers 'PG' Modern Marvels 'G' c How the Earth Was Made The geological history of Life After People 'PG' ] 8048224 .. 19] 4947330 9019446 the planet. 'PG' 9 9099682 __ LtiFE 24 38 294 24 "Glass House: The Movie: *s "Two Can Play That Game" (2001) Movie: ** "40 Days and 40 Nights" (2002, Your Mama Don't Dance 24.38.2414 Good Mother" 445682 Vivica A. Fox. ] 890243 Romance-Comedy) Josh Hartnett. c] 734088 9 896427 28 36 28 28 Drake & Drake & Drake & Drake & iCarly 'Y7' Naked Drake & Ned's George George Fresh Fresh N 2 Josh 'Y7' [ Josh'Y7' ] Josh 'Y7'B Josh 'Y7' 861446 Brothers Josh 'Y7' c School Lopez 'PG' Lopez 'PG' Prince Prince (jilii 3 5 31co 131 Movie: "Grendel" (2007) Movie: "Gryphon" (2007, Fantasy) Jonathan Movie: "Ogre" (2008, Fantasy) John Schneider, "Gargoyles: Wings of ......... 1'14, V 8569175 LaPaglia, Larry Drake, Amber Benson. 1822866 Ryan Kennedy. Premiere. 7739840 Darkness" 3752427 37 43 37 37 Movie: *** "GoldenEye" (1995) Movie: *** "Tomorrow Never Dies" (1997, Action) Pierce Pros vs. Joes John TNA iMPACT! (In Stereo) I P 4 ierce Brosnan. c[ 168311 Brosnan, Jonathan Pryce. (In Stereo) 316175 Randle. 'PG' 9 870682 '14, L,V' 887392 (: ) 49 23 49 49 Movie: *% "Kicking & Screaming" (2005) Will Movie: *, "Bad News Bears" (2005) Billy Bob Movie: * "The Mask" (1994, Comedy) (PA) Ferrell, Robert Duvall. 9 833798 Thornton, Greg Kinnear. 3165021 Jim Carrey, Cameron Diaz. c9 7068750 ( 53- Movie: **** "Vertigo" (1958, Suspense) Movie: **** "The Apartment" (1960) Jack Movie: *** "How to Succeed in Business -( James Stewart, Kim Novak. cc 6459663 Lemmon, Shirley MacLaine. c] 26581311 Without Really Trying" (1967) 72455408 453 53 How It's How It's Download: The True How It's How It's MythBusters 'PG' ] Smash Lab "Fluidized Download: The True 53 34 Made 'G' Made 'G' Story of the Internet 'G' Made 'G' Made 'G' 274021 ISand" 'PG' 284408 Story of the Internet 'G' iC 50 46 50n50 Property Ladder 'G' cc Flip It Back 'G' 9] 873779 Flip That Restaurant (N) Trading Spaces Final My First My First Flip That Restaurant .. 1 222156 1882427 breakup. (N) 862663 Home(N) Home(N) 655595 48 33A 48 48 "Mission: Movie: *** "Air Force One" (1997) Harrison Ford. Terrorists Movie: *** "The Bourne Supremacy" (2004, Movie: ** "Doom" [] S3 Imp. 2" hijack the president's plane. c9 305069 Suspense) Matt Damon. 9 883156 2576507 9TRAV 54 9 9 Top Ten Mexican Beach Beach.Goers Exposed World's Best Spring Sand Blasters IIIl: The Extreme Sand Sculpting 25 Sexiest Beaches 'PG' 4 9 1 Resorts 'PG' 9 'PG' c 3392750 Breaks 'PG' E1 3318798 Championship 'G' 3311885 18243427 ( 32 49 32 32 Three's Three's Three's Three's Just Shoot Just Shoot High School Reunion 'PG, Movie: *** "Beetlejuice" (1988, Comedy) Company Company Company Company Me 'PG' cc Me 'PG' cc L' B 5209972 Michael Keaton, Alec Baldwin. 7555021 4 4 7 132 47 47 Movie: **' "The Bone Collector" (1999) Denzel Law & Order: Special Law & Order: Special Law & Order: Special Law & Order: Criminal ...... _7 4 47 Washington, Angelina Jolie. c9 338717 Victims Unit '14' 832069 Victims Unit '14' 812205 Victims Unit '14' 815392 JIntent '14' [c 241953 W i ,18 18 18 i 18 American Idol Rewind Circle of Care: Living with Movie. **% "Mighty Joe Young" (1998, WGN News at Nine (N) JScrubs '14, Reno 911! .. I Top 9 to 8" 'PG' 857866 Diabetes 'PG' 401601 Adventure) Charlize Theron. c 498137 9] 400972 S' 772601 '14' 567866 SATURDAY EVENING MARCH 8, 2008 C: Comcast,Citrus B: Bright House D: Comcast,Dunnellon I: Comcast, Inglis c D o 6:00 6:30 7:00 7:30 8:00 8:30 9:00 9:30 110:00 103011:00 11:30 i 46 40 46 46 Wizards- Wizards-. Hannah Zack & Cody Phineas and Cory in the Movie: ** "Herbie 'Fully Loaded" (2005) Lindsay ack&CodyHannah (ISJ 46 40 Place Place Montana 'G'I Zk Ferb 'G' House 'G' Lohan, Michael Keaton. 495040 Montana 'G' 39 168 39139 "Jane Doe: The Harder Movie: "Jane Doe: 'Til Death Do Us Part" (2005) Lea Movie: "Jane Doe: How to Fire Your Boss" (2007, "Jane Doe: Eye of the S6 They Fall 'PG' 9484507 Thompson, Joe Penny. 'PG' c 5843392 Mystery) Lea Thompson. c9 5297137 Beholder"'PG' 1598427 B Movie: *A "Big Daddy"(1999, Comedy) Adam Movie: 'The Hills Have Eyes 2" Boxing Oleg Maskaev vs. Samuel Peter. (In Stereo Live) 9l 873205 __ ____Sandler, Jon.StewartL] 55841446 (2007) Michael McMillian. 781021 Movie: **A X'-Men: The Last Stand" (2006, Action) Movie: ***s "Lethal Weapon 2" (1989, Action) Mel Movie: *** "Hot Fuzz" (2007, Comedy) Simon I I I Hugh Jackman. c9 39555717 Gibson, Joe Pesci. B9 737175 Pegg. 9 426999 771 97 66 97 97 America's Best Dance America's Best Dance Making the Band 4 (In Sean John Fashion Show (In Stereo) 729156 America's Best Dance SCrew LCrew Stereo) 'PG'726069 Crew________ ] 71 Taboo: Marked for Life IExplorer "Ultimate Viper" Dangerous Encounters A Man Among Bears (N) Moose: Titans of the North Dangerous Encounters ___________ 2392972 [Vipers. 'PG' 1253934 With Brady Barr 'PG' 1282446 I(N) 1252205 With Brady Barr 'PG' -PiL 62 Movie: *** "Dreamchild"(1985) Movie: **** "Annie Hail" (1977) Movie: *** "Simon Birch" (1998, Comedy-Drama) Movie: ** 'White Coral Browne. 16858885 IWoody Allen. Bl 44500798 lan Michael Smith. c9 14513330 Squall" 9 65608359 "(M ) 43 42 43 43 Paid Paid Deal or No Deal (In The Celebrity Apprentice The Suze Orman Show Deal or No Deal (In The CelebrityApprentice / 4Program IProgram Stereo) '14' c 3442446 'PG' B9 3428866 Mutual funds. 3431330 Stereo) '14' Bl 3441717 'PG' 3244224 1 401 29 40 40 Lou Dobbs This Week This Week at War 821953 CNN: Special Larry King Live'PG' Newsroom 820224 CNN: Special 4521576 Investigations Unit 'PG' 827137 Investigations Unit 'PG' COU 2555 25 25Forensic Forensic Forensic Forensic Forensic Forensic Bodyof Body of Murder by the Book '14, V Hollywood Hollywood ____ Files'14' Files'PG' Files'PG' Files'14' Files'14' Files'PG' Evidence Evidence 3436885 Heat'14' Heat'14' ( f 441 37 44 44 Fox News Live ] 8554243 Fox Report 4684971 Geraldo at Lage (In Special Programming Red Eye 5034412 Jml Edit Rpt The Beltway Stereo) 'PG' []c2684791. 8284935 1Boys MiSB 42 41 42 42 Tim Russert 7928717 MSNBC Documentary MSNBC Documentary MSNBC Documentary MSNBC Documentary MSNBC Documentary S41 4478952527893458389589 51390661819392 (cpii 33 27 33 33 SportsCenter (Live) c 651156 College GameDay (Live) College Basketball North Carolina at Duke. (Live) ( SportsCenter (Live) 9 S652885 655972672381 (pM 34 28 34 34 College Basketball College Basketball Atlantic Sun Toumament Final NASCAR Racing Nationwide Series Nicorette 300. From Atlanta Motor Teams TBA. (Live) 9 8230953 Speedway in Hampton, Ga. 7157243 F( F) 35 39 35 35 Sport Panthers NHL Hockey Atlanta Thrashers at Florida Panthers. From the Women's College Basketball: SEC College Basketball Pac-10 ________ jScience Tonight BankAtlantic Center in Sunrise, Fla. (Live) 575866 1Semifinal Teams TBA I- Teams TBA. GOLF) 67 Post Game PGATour.Golf Champions -Toshiba Classic- Second Round. Golf Central (Live) 3440088 Ultimate Matches 1231137 Playing Show From Newport Beach, Calif. 7442040 lessons SUN 36 31 36 36 Gymnastics Magic NBA Basketball Golden State Warriors at Orlando Magic Inside the Boxing 2006 William Guthrie vs. Luke Munsen. 76040 I_ v Tonight Magic. (Subject to Blackout) 4245663 Tonight Magic Florida Cable customers is in the Sunday Viewfinder on page 70. Irm fr .othw.h hw to ha Zr- a - U. - a - - a - a - a ~ - a- a a a- -- a - ~ S U-- ~e a * a a p ew - u Lob- .00 -IP ma 0 wawp - a..- -v a ~- a - - a a a a - - -a - a a -* - - a - a * a a' - W a - a a -~ a a a-41. a a~ 0 - a" -~ a ~ - 'a' a a~ - a a - a' a-a. ~ *. a a'-~ - a a.- a - a.~ 0 - - a a' -~ - -'a'-- a. a *.q .-- 4w o 4do 4 a -Mb W.- 41 a - F40 -0 A * -soo -.d *0 0 S = -~ a.- a' -a a a- a-a - a ~ a ~a a- a-a - -a -. - a.- a- ~.. a a ~ - a. a- - ----- - -a a~ Viw- S"Copyrighted Material - Syndicated Content9 -' .- Available from Commercial News Providers" . . -_ :- .- -0 4WD 4017% - a - a" a - a- alof FR w q- 4o m - - a. a a. --4 V.. LA' - W jb. - 00 qr - - 'o. Pip aE r I s 4 4 SNruRDAY, MARCH 8, 2008 9C EN'FIERTAIINMEN'17 nriC us CouNTY (FL s w w 0% C cLPWsvr n i u s COIJ, N(FL) C?5,NICUA aLO Ra"nAVLMARC 8- 200 aw -qom 0fwo w- - Im m * w 4n :pp f di q-IW -* ab a 4m r ^p AOL 'Dri 41 r ~ I 9 lk 4 4 i U Al b AN a 1 Mao.4b * Um ~*.eggs @F Aq 9 .& 0 4004 i4w qb 4 AN *Imam 40 410, 4t 4w hIiLo * -e - .e. 4 Y 'A AA* 4 4ms0 ft -0 em a t 4 to 4-. -- *:-"Copyrighted Material --*- -- rew . Syndicated Content . Available from Commercial News Providers' g Qww _%, .Jjj w p rtw AV* GRW 40mo Ap ab4W 4 ~j4~ * 9. 691 p~I u p 'Y0E, T~o b % 40- ~r~y I *LI 49 so * 0p1 eli, % -bb Mm - U go- hw w -tw m ~9i I e * * ww S I') ft n u w -w o * a - 0d. * o1 goo 000 *0 00. 0 0 e Soo*# ~ e S Se *. s e. O .S0O @ .0*0OO .000 60 6 t S. *@*@ee@. -~ ..~ -- 0 0 0*00S0O m o - o m -5mw4 q I 0^ 28 a ax * * F * I p. p .'- . - 0 v go ft -4 D b *- -- I 4WAN 4? fit Ob "e& 1 14 CITRus CouN7y (FL) CHRONICLE COMICS .1 V- ---Iop-.w 6 lb 4 ow qD VID 4w doft =memo 41 4 qrl O."IIWIW 410b. 1 0 i % 46 0 4p SATURDAY, MARCH 8, 2008 11C 1TRUS COUNTY (1L) CHRONICLE _- .... JIE 0 -. , Steve George, Realtor/ Builder 422-4012 / 746-3390 CBC#060404 17790 N. Voyager Dr. 312/2 with raised wood deck MLS#321161 $179,500 10270 N. Gardner Way 3/2/2 MLS#310466 $164,500 BEAUTIFUL QUALITY BUILT NEW HOMES in Citrus Springs. Tile, wood floors, ceiling fans and appliances included. One even has a raised wood deck off the lanai. Stop by and tour these two Open Houses. Immediately available. * Dare to compare the quality. 2,300 sq. ft. overall. 3/2/2. Dir: Voyager- Take Elkcam Blvd N out of Pine Ridge into Citrus Springs. Go through 1 1st stop sign. Left on Hamlet. Right on Voyager. House on the left. Jackie & Bob Davis American Realty & Investments .^K ^^. 117 S. Hwy. 41 Inverness, FL 1l .i ;III Toll Free: (800)476-2590 T r Cell: (352) 634-2371 'I"ER A For a Visual Tour of all of our nome i, sings L1 EAL ESTATE visit l^i 7 -4? WITHIN THIS "VILLA" COMMUNIWY sits a charming 2 bedroom, 2 bath, 2-car garage home. The kitchen has been remodeled with handsome cabinets and appliances. A solar tube brightens the guest bath & the tiled lanai has new acrylic windows. Lawn care is provided, a community pool access to an 18-hole golf course. 322432 $149,900 Directions: 41N, L on 486, R on Forest Ridge, R on Hollow Ridge, L or Crestline, L on Hillwood, L on Huntwood 3/2/2 Split plan, energy efficient, high quality home. Wood cabinets, upgraded appliances. Lots of extras. WAS $159,000 NOW $136,900 Call Ron (352) 354-5407 From 491, take Pine Ridge Blvd. to Elkam, turn RIGHT to Century Blvd. & make a LEFT. Take First LEFT on Amboy, 3rd street on RIGHT is Josh Way. Follow signs. On OurWebSite S. tai * JUST REDUCED HOMOSASSA WATERFRONT - 3/3/2 Riverhaven Beauty on the Grand Canal! Easy Access to the Gulf. Call John & Gigi Shields, REALTORS, for more information 352-422-5287 Plantation Realty, Inc. Whie yn'e i th nighbrhod, hec on the Rverhae N ighorod arg Sl To place an ad, call 563-596C A Classifieds In Print and Online All The Time Fax (32)56 -5 55 1 ol Fre:(8 ) 5 -3 0''I --a'~. ms *fe's a a le nlneco I ssi :ww*c ro iceo lie ao C=C C= - Free ree Cild Cre Pesona ,"Copyrighted Material Syndicated Content Available from Commercial News Providers" 0 m e o * Your world first Need a job or a qualified employee? This area's #1 employment source! Classifieds -s SWF, 49, Very Attractive Seeks SWM, for dining, parks, fun (352) 225-6078 WWM seeking female for friendship. Age not Important. I'm semi-retired. Non- drinker/smoker who enjoys Classic & Blue Grass music & building things. Fishing, farming & ranching a plus. Call Randy (352) 563-1033 | I s~.w Sn 4 a WWE TIX (3) WrestleMania XXIV Good Seats $270 for all (352) 503-6026 $$CASH WE BUY TODAY Cars, Trucks, Vans FREE Removal Metal, Junk Vehicles, No title OK 352-476-4392 Andy Tax Deductible Recelot I TOP DOLLAR I $ For Junk Cars | L $(352)201-1052 $ $$ CASH PAID $$ Having Code Enforcement problems w/ Junk vehicles In your yard? (352) 634-5389 BASSETT HOUND 2 yo female exc w/children & other pets UTD on shots, has flea allergies, NOT Spayedl (352) 220-8450 Black Lab Free to Good Home 7 yrold female black lab needs a good home. Loves Kids and Is great guard dog' Please Call 560-7310 BROWN LAB Fernn, spayed, 2 yrs. Needs rm. to run. Free to good home. (352) 220-6414 9 "Copyrighted Material SSyndicated Content Available from Commercial News Providers" f $$CASH FOR CARS$$1 SNo Title Needed. Gene(352) 302-2781 COMMUNITY SERVICE The Path Shelter is available for people who need to serve their community service. (352) 746-9084 Leave Message FREE CATS 2 Spayed Females. Loveable & free to good home. (352) 697-1705 Free Cats Two young cats spayed/neutered.Adult In/outdoor home preferred.563-0434 FREE METAL JUNK $fA'UTIO$$ (352) 637-5455 *FREE REMOVAL OF. motorcycle, cars, jet skis mowers, golf carts. We sell ATV parts 628-2084 FREE removal unwanted Furniture Garage Sale & Household Items CALL (352) 476-8949 FREE REMOVAL UNWANTED MOBILE TO REPLACE MOBLIETHAT BURNT TO THE GROUND(352)697-2420 FREE...FREE...FREE... Any Scrap removal. Cars, Metal, appl., etc. (352) 601-5521* HORSE FREE TO GOOD HOME GENTLE, MATURE, EXCELLENT 1ST TIME HORSE (352) 628-2150 Hospital Bed Older Model (727) 798-1572 JACK RUSSELL 5 Y.O. MALE, NUET. HOUSEBROKEN, NICE WATCH DOG (352) 726-9304 LAB MIX PUPPIES Cute & cuddly. Good w/kids. 8 wks. FREE to good homes! (352) 400-6016 Oak Fire Wood Large Amount, Cut, You pick upl (352) 637-2838 OAK FIREWOOD Now on ground; part. cut. U haul. Floral City (352) 726-1226/ (508) 873-0957 Pit Bull/Chow Mix 40 pounds, Fern. all shots & neut (954) 234-4443 WE PAY CASH FOR JUNK CARS Top $$ paid $$ 352-523-4357 The Path Shelter will pick up your unwanted vehicle Tax deductible receipt given (352) 746-9084 Wolf Hybrid, female Yellow Lab mix female both kid friendly need space and tid Free to a good Home (352) 222-0649 $ $ CASH PAID $ $ Junk Cars, Trucks, Vans J.W. (352)228-9645 SIAMESE, F. 3YO. AREA OF INVERNESS BLVD IN HIGHLANDS MISSING 3/3/08 (352) 212-4674 REWARD BOX OF ELECTRICAL SUPPLIES Vic. Slash Pine Ave, Hom. Spgs. 3/3 (352) 628-7046 Cat Orange & White, young male, friendly Sugarmill Woods Area (352) 382-0705 W. HIGHLANDER TER. Yg. Male, Vic. Hwy 44, Invern., near Walmart. 2/28. Call to ID (352) 476-7090 r -1,-r.-B- -- Divorce/Bankruptcy AND MOREII I We Come To You | 637-4022 *795-5999 * l W 11 lln l T R UlS[I'S 11IAVIRCEK PRILv OBATESJ. Nature Coast Marine New, Used & Brkrg. We Pay $$ for Clean Used Boats. 352 794-0094 Nursery Clearance 1,000s of Trees, Palms, Coonties Sat. & Sun. BELOW WHOLESALE 5019W. StargazerLn. 465-0649 #47227677 WANTED Vendors-Sponsors Local festival needs your help. Contact Mike (352) 212-6267 meandmyskatejam.org Jeremiah 29:11 A Text From The Bible For I know the plans I have for you, declares the LORD. Plans for welfare and not for calamity but to give you a future and hope. 12 Then you will' call upon me and come and pray to me, and I will listen to you 13 You will seek me and find me when you seek me with all your heart. 14 I1 will be found by you," declares the LORD, " Attend your local church find out what GOD has in mind for you. "A Fig Tree" BRISTOL RACE 4 TICKETS, Mar. 15 & 16 Face Value $592 (352) 344-2333 -S 2 BURIAL PLOTS Located in Glen Burnie Maryland Asking $5,000. Call (352) 270-3303 FERO MEM. GARDEN Beverly Hills, Double Cremation Vaults & Spaces Great Deall $400 (703) 550-6147 FOUNTAIN'S MEMO. PK., Homosassa. Side by Side Crypts. We are moving. $8,500 OB (860) 467-6214 A free report of your home's value living.net BRIGHT BEGINNINGS PRESCHOOL NEEDS: EXP'D TEACHER ASSISTANT (352) 795-1240 INFANT-TODDLER TEACHER (352) 795-6890 BOOKKEEPER Full Charge AA Req. Exp. In AR/AP/ GL Maint/COLLECTIONS- KNOW GREAT PLAINS ACCT A+,EXCELLENT COMPUTER SKILLS REQ! SEND RESUME AS Word Doc. forrestconsumer or CALL Forest@ 831-236-7085 RECEPTIONIST Seeking F/T entry level receptionist Sat. required Multi- line phone exp. a Plus EmaIl resume to lIeters@acme homesfla.com Pe ronal Masg Therapy'/i '] ;~ BARBER/STYLIST Great opp. Busyl F/T Family Headquarters (352) 628-2040 Exp. Hair Dresser Needed, Great Loca- tion!, hairsalon2008 @vahoo.com STYLIST NEEDED 5 Yrs. + Experience. oll finji a11 nin SCIENTIST- HISTOLOGY Will be responsible for performing histological examinations on patient specimens and correctly recording results. Uses and maintains pertinent clinical laboratory equipment and instrumentation. Associate's degree in clinical laboratory science Including completion of histology training program. Licensure by the Fl Board of Clinical Laboratory Personnel at the Technologist level in the specialty of Histology. Minimum one year experience preferred, but not required. HT (ASCP) or HTL (ASCP) preferred. Please apply online at. INGLIS DELIVERY ROUTE AVAILABLE. Must have two vehicles available and able to work early morning hours 7 days a week. Call 563-3201 and leave, name, phone number and the best time to call. ACTIVITY ASSISTANT F/T NEEDED Exp. preferred, but not necessary. DiamondRidge Health & Rehab 2730 W Marc I Knighton Ct Lecanto, FL EOE --- - .- COME GROW WITH US! l :ill'I'tI Join our team of caring professionals Volunteer Manager Supervises volunteer services. Provides direction, coordina- tion and consultatior for volunteer functions within the organization. Bachelor's degree Ir healthcare services, human services or related field preferred; or 3 years documented experience In the management of volunteer services may substitute for degree requlremeni Apply Today Telephone: 352.527.2020 Fax: 352.527.9366 Ithacher@hospice ofitruscountv.ora Hospice of Citrus County P.O. Box 641270 Beverly Hills, Fl 3446L hosolceofcltrus dwf/eoe DENTAL ASSISTANT Busy, great team looking to add exp. Treatment Assistantl Must have exp. C & I 4 days/wk, benefits, Incentive; Mail Resume: Box 1429 W c/o Citrus Publishing 1624 N Meadowcres Blvd. Fl. 34429 Get Results In The Horefront Classifieds! Ch ron i c le I OV, CITRUS COUNTY (FL) CHRONICLE -v md'4- A- ) R ?.no IL YOU NEED TO KNOW EXACTLY WHAT YOUR CAR IS WORTH, NO MATTER WHERE YOU PLAN TO BUY! CALL THE INSTANT APPRAISAL LINE... IT'S FREE! 800-3 2-3OO8 2008 ENVOY 2008 El 24 HOUR RECORDED MESSAGE WITH INFO - 24 HOUR RECORD AND SPECIAL PRICING ON THIS VEHICLE AND SPECIAL PRI 800-325-1415, EXT. 4091 800-325-1 2008 MALIBU 2008 IMPALA 24 HOUR RECORDED MESSAGE WITH INFO 24 HOUR RECORDED MESSAGE WITH INFO- AND SPECIAL PRICINGON THIS VEHICLE AND SPECIAL PRICING ON THIS VEHICLE : 800-325-1415, EXT. 4077 800.325.1415S, EXT. 4004 $12F999 I 5,999 2007 CAMRY 2007 ACCORD 24 HOUR RECORDED MESSAGE WITH I- 24 HOUR RECORDED MESSAGE WITH INFO--- -y AND SPECIAL PRICING ON THIS VEHICLE ( r AND SPECIAL PRICING ON THIS VEHICLE 800-25-1415, EXT. 3981 800-325-1415, EXT. 3918 115 999 '14,999 2007 TAURUS 2007 MUSTANG 24 HOUR RECORDED MESSAGE WITH INFO- --- -24 HOUR RECORDED MESSAGE WITH INFO -- AND SPECIAL PRICING ON THIS VEHICLE AND SPECIAL PRICING ON THIS VEHICLE. - 800-325-1418, EXT. 4093 800-825-141a, EXT. 4097 $9F999 13,999 2007 EXPEDITION 2007 TAHOE N 24 HOUR RECORDED MESSAGE WITH INFO-. 24 HOUR RECORDED MESSAGE WITH INFO-p - AND SPECIAL PRICING ON THIS VEHICLE AND SPEC PRCN HISHICLE i / 800-32-1415, -)T. 4098 -'"- 800-325-1415, EXT. 160 -- M kA k hm A kA I IE EI C 4 OCALA NISSAN 10P (800) 342-3008 2200 SR 200 OCALA (352) 622-4111 ALL PRICES WITH $1,000 CASH OR TRADE EQUITY. WAC, PLUS TAX, TAG, 5395 DEALER FEE. ALL INVENTORY PREOWNED AND SUBJECT TO PRIOR SALE. PICTURES FOR ILLUSTRATION PURPOSES ONLY. MZC; SATURDAY, MARCH 8, 2006 m QUINOX 2008 TRAILBLAZER D MESSAGE WITH INFO 24 HOUR RECORDED MESSAGE WITH INFO - ING ON THIS VEHICLE AND SPECIAL PRICING ON THIS VEHICLE 15, EXT. 4095 800-325-1415, EXT. 4078' 2008 AVALON 2007 TOWNCAR 24 HOUR RECORDED MESSAGE WITH INFO- 24 HOUR RECORDED MESSAGE WITH INFO AND SPECIAL PRICING THIS VEHICLE AND SPECIAL PRICING ON THIS VEHICLE 800-25-1415,800-325-1415, EXT. 4089 - 124,999 9,999 2007 SONATA 2007 F-250 24 HOUR RECORDED MESSAGE WITH INFO---. 24 HOUR RECORDED MESSAGE WITH INFO-- AND SPECIAL PRICING ON THIS VEHICLE ~ AND SPECIAL PRICING ON THIS VEHICLE 800-325-1415, EXT. 203 800-25-1415, EXT. 3668 $12,999 27,999 2007 FJ CRUISER 2007 COMPASS --- 24 HOUR RECORDED MESSAGE WITH INO---- 24 HOUR RECORDED MESSAGE WITH INFO AND SPECIAL PRICING ON THIS VEHICLE AND SPECIAL PRICING ON THIS VEHICLE 800-325-1410, EXT. 491 ,-. ,- 800-326-1415, EXT. 1009. 119,999 ,14,999 2007 GRAND CHIROKEE 2007 GRAND CARAVAN S24 HOUR RECORDED MESSAGE WITH INFO-- -- -- 24 HOUR RECORDED MESSAGE WITH INFO-- AND SPECIAL PRICING ON THIS VEHICLE AND SPECIAL PRICING ON THIS VEHICLE 800-325-1415, EXT. 4041 800-325-1415, EXT. 3786 S15,999 213,999 . t i. LICU5 knr IVI Y rL) UH ~C,,,-,RUc NSTUDYMRC 08 tAD PAYMIU wvtUI e - [h - -71 '08 HONDA ~4 *iqf fa FOR RUM~- S ii '08 HONDA S2000 MODB.fG2158JiW*PUT IHEFlN BACK IN DRMNG A WA r F 4q w150S BOewns '25W ml 200 (HEW MAIBU lIi Power Windows & Locks, Mt. CD, Key/ess Entry, XM, OnSlor 1lP SR 2008 CEW IMPAIALII Power Windows & Locks, Tilt, CD, Key/ess Entry QoE '*59 2003 CHEIW COfiALT JLS SAutomoatic, Air Conditioning, CD oIEIl95-" ': '* ': r V K >><' s IN S LIM%~ * 1 CiTRus Comy (FL) CHRONICLE SATURDAY, MARCH 8, 2008 13C li .0i r -i ,r I- ;.u.: ,f - 4FIL, 1, 14C SATURDAY, MARCH 8, 2008 1' APR0 IIU LA LT 4x4 Caravan I 'IA ki t ~~'*j ~II-! THE -M R M-LE L I--ALW..]i SALES HOURS: ..,... , Monday Friday ..........9AM 9PM Monday Friday ......7:30AM 8P Saturday ................9AM ~ 8PM Saturday ...............8AM ~- 5P Sunday .................Noon ~ 6PM 888-560-6626 All prices and payments plus tax, tag and $598 dealer fee and dealer installed options. All offers mutually exclusive and cannot be combined. Dealer installed accessories may affect final cost. Dealer not responsi- ble for typographical errors. Artwork.for illustration only. Inventory subject to prior sale and may vary upon day of publication. See dealer for complete details. #$1,000 down plus tax, tag and dealer fee, financ-' ing for 72 months at 6.9%, with 700+ Beacon score, with approved credit. ##On Select Models. *0% for 60 months with 750 beacon score, $10,000 max. finance. **Lowest price guarantee on identically equipped model advertised in North Florida region. CITRus COUNTY (FL) CHRONICLE mm_ m i 0a t P O 1. 0 \SI 7 YEARI 00,000 MILES WARRANTY Touring u-IV L.A *1.! I*ut JK,' I kya 1 .1 k%-I-A M M IjOllk' I CITRUS COUNTY (FL) CHRONICLE MS --rPw W \ AI.I i f o -X.10 NEW 2008 AVEO AS LOW AS S4 79*" I gSE^fle A wImue., J.10%, 5ATURVAY, IVIPK(-H 0, ZUVO IL&C SATURDAY. MARCH 8. 2008 SATURDAY, MARCH 8, 2008 17C eO 4 OAppTitioreO WiPi Be nefusn! Make te Drive to Love Honda Today! Nextto LOVE HONDA The Love Automotive Group is growing so much.., we heed a separate location to liquidate the used carsm! BUCa 2125 South Suncoast Boulevard Homasassa, FL 34448 I LI 88 3-7381 ii iii: j9 i1!:~;!isv .? * .; lb iiH~7 rIK I.i' FAV TOf ANDi FROM1bi~~I$1Iil]~iI' ~~I WA EIC*i'Ii'1,T*1 I.I*A * r U, -, 4/~ A ""'4 * :- wo m IIt l .1 'ii ~ ii WStWW, I *1 St ex to LOVE HONDA 2125 South Suncoast Boulevard omasass, FL 34448 and '"I tI~i rowed credo "Merciry Sab. 60 monltD financing onn appmvd credit tOFFICIL RULES- NO PURCHASE NECESSARY A PURCHASE DOES NOT IMPROVE YOUR i CHANCES OF WINMNING. Offcialig rjeBergl's number Iniadclrese anel'delrles rime amfounti ai l ltl' W* i supplies ast WnnerAwr/aea m t tie 18 years or older and rst bring fVyer andoor game piece o event lovarin ourng Me ,sale dates sledabov bcalm their prft. OIS OF WillNN: $ la. l'4010 '. '500 Cash- I 401.00. S11Oiael I1t'. i Cah 104Q,0 $5 Cash 3,48740000. Mal pieces tha are ratlated, altere, copied. handpriWed, oged tampered with in any way or st c lain printing. mechanical or vpogralNical erTors willie beconsJredinallianaliuldiandiwill'note eligible fw i ze-rearenilMsln Employe, im dateD laitW $aMera aril vendor of Love tMoe are not eligkle Ioclak przes This promotion is via where prtbrileo by iaw Dealer and/or event coordnmarco and advertising i geicy ire no, reWspoeie far sI late or misorelctdp m p pieces, Not responsible I anv lypoWgamlallania 0r1 OMIls'Wll PtOS ae 0or HkIIIuSoauon poses Only. See oeales for details Alt orters cannot be contained. Advefltse vehicles subject 10 o por sale All oilers erd 3t conclusKion of eventiL Umit rine pmni rer househoiaonly, RTIC us CouNTY (FL) C E a ij -i / maj * y I 1, .--- f--- '17T I F vg -Iii .L.0, 4:4D JA fci,,., ', ! 'J q, . .| --,. 'q '1111,1A, I8C SATURDAY, MARCH 8, 2008 ,A. "Copyrighted Material * SSyndicated Content Available from Commercial News Providers" ILgp I HHS MARKETING I Uc. Caregiver w/ clin. bckgrnd. exp. to help brochure market Citrus Co. Min. 2 yrs. clinical exp. Self Starter, "Type A" people person. Good Pay and Incentives. CNA/HHA Depend.,dedlcated to provide personal home care assist. Current Physical. CNA/HHA cert. HIV/AIDS training, CPR/Flrst Aid, reliable transp., clean background. $9.50 $10.50 hr. For Information: Call (800) 605-1328 LIVE-INS Needed F/T or P/T Must have HHA Cert. or CNA Uic. Call MAXIM @ (352) 683-2885 MEDICAL OPPORTUNITY Seeking two self-motivated Individuals to work In fast paced environment. SURGICAL TECH/ ASSISTANT S rrlf-1ask In osiirling prqiiciani Individual should have background or willingness to learn surgical assisting. FRONT OFFICE ASSISTANT Individual to work at Citrus or Timberridge office locations. Individual should be a team player, willing to multi-task & assist several departments to incl: Receptilon/Check- out/Flle areas. Fax all resumes to: S(352) 746-9320 No phone calls L please.- Ls to 1 CNA Full or P/T, In Home, Day/Night 352-795-3117 MEDICAL ASSISTANT For busy doctor's office. Must know phlebotomy Mon-Fri. 8am-3pm. Salary negotiable. Fax resume: 628-1620. MEDICAL OFFICE Looking for Front & Back office help. Send Resume to Box 1434 c/o Citrus Chronicle, 1624 N Meadowcrest Blvd., Crystal River, Fl 34429 MEDICAL STAFF Xray Tech CNA, Billing Person Experience required. Pleasant Working Env. Benefits Fax Resume to: (352) 746-2236 NOW HIRING Experienced, Caring & Dependable CNA's/HHA's Hourly & Uve-in, Flexible schedules offered. $10.00/hr. CALL LOVING CARE OT PT OTA PTA SP Great Hourly rates. fax resume to: 860-2223 PHYSICAL THERAPIST P/T or F/T, must be available for weekend shifts. Fax resume to: (352) 683-8602 RECEPTIONIST For Busy Medical Office, Please Send Resume to P.O. Box 3087 . Homosassa Springs, Florida 34447 RN/LPN 11-7 Looking for Experienced Nurse Leaders to Join our Great Team! We Offer Excellent Benefits: 4 401K/Health/ Dental/Vision " Vacation/Sick Time Apply In Person Arbor Trail Rehab 611 Turner Camp Rd Inverness, FL, EOE RN, LPN, CMA NEEDED A ALL STAR * Professional Staffing Services 352-560-6210 RN's NEEDED Part time Endoscopy Ambulatory Center 7:00am -3:30pm Mon. Thurs. & Fri. Fax Resume to: 352-563-2961: dispanglei southernltc.com Teaching Is rewardng w/BSN or MSN Previous exp. In nursing instruction. Evening schedule w/some days. Fax Resume to: (352) 245-0276 or Call (352) 245-4119 WE ARE RAPIDLY GROWING & NEED YOUR HELP RN Case Mngr. FT With Excellent Benefits 352-563-0663 ULTIMATE NURSING CARE A Home Healthcare 'A, I I 3, 2008 Fo oe Info Ca4el/l 352-21-597 CITRUS COUNTY (FL) CHRONICLE EARN AS YOU LEARN CNA Test Prep/CPR Continuing Education 352-341-2311 Pizza Hut Now Hiring DELIVERY DRIVERS Come join our Team Inverness & Homsosssa Apply Within MARGUERITE GRILL (352) 628-1336 BREAKFAST COOKS & SERVERS Exp. only apply. Taking applications. ROOSTERS CAFE Brooksvllle. Fl. 715 W. Jefferson St. (352) 540-4890 NOW HIRING Apply In person Mon-Fri. 8am-1 la COACH'S Pub&Eaterv 114 W. Main St., lnv 11582 N. Williams St., Dunnellon EOE $$ TELEPHONE $$ SALES REPS NEEDED Experience preferred. Earn GREAT $$$ In a comfortable atmosphere Apply In person @ 6421 W. Homosassa Tr. Homosassa 5 SALES PEOPLE NEEDED $1,250 wkly possible. New Co. In area. Sales exp. needed. For appt. (352) 228-1783 HOME IMPROVEMENT SALES PROFESSIONAL Must have experience In sales, Screen Rooms & Glass Rooms. Send resume to: Citrus Co. Chronicle Blind Box #1431M 1624 N. Meadowcrest Blvd. Crystal River, FL 34429 New Home/ Real Estate Sales Professionals Established Local Builder looking for sales professionals to be part of a growing team. Excellent earning potential. Real Estate license preferred but not required. Both full and part-time positions available. Please send resume attn: Dustin Bosworth Fax : 352.527.9401 E-mail: dbosworh@ sandersonbav.com All Information Is confidential. SanderSon Bay Fine Homes =SaH EaPdencx d Car Salesman Wanted, TOP PAY 352-726-1002 Ean/ SkiA $I$ AUTO SERVICE ASSISTANT Entry level, must be motivated, goal \oriented, long term employee $8-$10 start, commission after 90 days. Apply In person POWELL SQUARE AUTO 1213 US Hwy. 41-N. Inverness Tr. Homosassa $$ TELEPHONE $$ SALES REPS NEEDED Experience preferred. Earn GREATm-7$$ In a comfortable atmosphere Apply In person @ 6421 W. Homosassa Tr. Homosonally with CASA IS HIRING P/T positions, $8hr Sat-Sun 7ofm-7pm Must be able to case plan, and communicate Professionally with Victims of Domestic Violence. Applications on site at 107 Dr. MLK Jr. Ave, Inverness, FL 34450 Recent.applications need not apply DYNABODY FITNESS Now accepting applications for Available. 2232W Hwy. 44, Inverness. Please Contact Kelly (352) 344-3553 FARM HELP Heavy Equipment Operator & Laborer (352) 279-9941 Flower Shop Needs DELIVERY DRIVER Must have Valid D. L. & Good driving record. ApDply within FLOWER TIME 2089 N. Lecanto Hwy (352) 527-7111 GOLF COURSE MAINTENANCE Personnel Needed, FT. Benefits included, retirees encouraged to apply. Please call 352-344-2400 HOUSEKEEPERS NEEDED For Countrg Club restaurant. Please ap- ply at 2100 N Terra Vista Blvd. Hernando. or call 352-746-6727 LOCAL DIVE SHOP F/T Position avail., exp. a plus, not necessary will train (352) 563-0041 PIZZA, DELI&- CASHIER HELP NEEDED! Experience Night/Weekends A MUST 352-527-9013 r Tu-----q'i SUMMER CAMP JOB FAIR Counselors, Food Service, & Activity LeadersI Sat.. Mar. 8th 10-2 Florida Sheriff's Carufh Camp 14770 SE US Hwy 19 Inglis, FL 34449 (352) 4472259 ranches.org riEOE/DFWP TOWER HAND Starting at $9.00/hr Bldg Communication Towers. Travel, Good Pay & Benefits. OT, 352-694-8017 Mon-Fri P/T Help Wanted Looking for several people to work our booths at local Mall, Homeshows, Fairs and Events, Part time mainly weekend hours. Could, possibly lead to full time. Searching for per- sonable, presentable and professional Individuals to assist potential clients In signing up for a free In-home estimate. No selling Involved. Fax your information to (352) 624-8808 bathfitter.com COSMETOL OGY [ IBARB lE ESTHETICS SP RAINING Na irl T -ech.nIo.l.g.y Ma.10 1Cosmetololo Days' 1. Apr. 22 Cosmeto;log N1/ights li' C-" General .n c= Help. METAL STRUCTURES, LLC 866-624-9100 metalstructuresllc.com Your World ."" Classfed Cu'.'.- cI. CIASSIIFIIIEIDS W-. Mortgage For Sale: Present Value $424,000 Bears 6% occurred Interest. No Pmints due until Balloons in 2 years @ $472K (352) 637-6162 LIQUOR LICENSE Citrus County, Price Reduced, Terms Available RealtyMasters Realtors 1-800-523-7651 MEN & WOMEN ALL AGES Earn up to $500 Daily P/T, Hottest Money Making Opportunity in America. Write for FREE Report : DryTech Suite CL 9619 8920 Quartz Ave. North Ridge, Ca. 91324 TIRED OF THE RAT RACE Work From Home Be Your Own Boss Full Training, Internet Based Business 877-264-2757 or 352-302-9936 RESTAURANT ' FOR SALE A Steal of A Deall CALL (352) 476-2719 r MONEY TO LEND Private Investor, I Hard Equity, No up Front Fees, Real I I Estate Collateral, Steve (352) 540-1523 STOP FORECLOSURE Save your credit* + & eoulitv. METAL BUILDINGS CARPORTS, SHEDS Gulf to Lake Sales (352) 527-0555 ' "OW OPEN' I SHEDS NOW INC. Instant Financing Zero Down Bad Credit No Problem Garages, Wood & Steel Buildings. BEST LITTLE SHED HOUSE IN FLORIDA (352) 860-0111 WE MOVE SHEDS 352-637-6607 A/C & HEAT PUMP SYSTEMS. 13th SEER & UP. New Units at Wholesale Prices 2 Ton $780.00 2-'/2 ton $814.00 -3 Ton $882.00 *Installation kits; *Prof. Installation; *Pool Heat Pumps Also Avail. Free * Dellveryl 746-4394 ABC Briscoe Appliance Refrigerators, washers, stoves. Service & Parts (352) 344-2928 Chest Freezer, 20cu ft., $250. Shower, 3 mos. old, pd. $500 asking $250. (352) 586-4775 Chest Freezer, Kenmore, med. sz. $125. (352) 563-0934 COLEMAN PRESIDENT. Gas Furnace for Mobile Home, Works Greatl $100 OBO (352) 344-5426 DYSON VACCUM 2005 w/Floor Tool $220 (352) 746-6913 MAGIC CHEF SlIvei/greyish/black MINI ,REFRIGERATOR 31" LX18/2W, new. $90. (352) 341-4449 f Microwave, GE, above stove mount, bone, very good condition changed color $50. (352) 746-5299 Refrigerator 26 cu ft. side x side water/cubs, cost $1,600. must Sell asking $850. (352)382-3666 REFRIGERATOR White, $50. Good Cond. (352) 249-1149 UPRIGHT FREEZER Kenmore, Lk. new. $200; WINDOW AC $75 (352) 527-7788 WASHER (FRONT LOAD) & DRYER, Kenmore, $400 (352) 726-4404 WASHER Kenmore, Ig cap. White Top loading, Exc. Cond. $200 obo. (352) 628-7633 WASHER OR DRYER $150 90 Day Warr. Trade-Ins welcome. Repair Avail. STOP taking apple. to landfill.or dumpi We buy. The good, the bad, the ugly. (352)628-4321 After 12 AUCTION Thur. March 13, 10am 2 Homes 32x40 Garage 5.5 acres. Dunnellon estate.com For More Info. Parsley Real Estate Inc. & Auction AB383 (352) 726-2628 Resturaunt Auction MON .MAR.10 SALE: 10 AM 3435 SR 200 Ocala Former PERKINS REST. Commercial Kitchen/Dining Equip. A/C Units, Total Ground/Bldg Salvage ALL GOES dudleysauction.com (352) 637-9588 AB1667 AU2246 19%RP R2,DI nerl/cke CRKArFiMAN IU IABLE SAW & 4" x 36" BELT/6" DISC SANDER W/STAND ULike Newl Bolh S,25 firml (352) 527-8738 MARK 5 SHOPSMITH 10" tab saw, 12" disc sander,drill press, 3' la- the, 4" J61nter/planer 72" fan saw wood $2500 (352) 637-4335 48" RCA TV w/Yamaha Surround Sound, $500. (352) 302-3509 SURROUND SOUND Top of the line, JVC system 4 Speakers Inc. pwr. woofer, DVD, amp & pre-amp & tuner. $300 (352) 746-1796 ZENITH 52" TV Floor model. Exc. Cond, $450 (352) 527-9742 150 ft. of 3" Aluminum Gutters + down spouts, elbows & clips s $65. * (352) 465-3501 " INTERIOR DOORS (2) 6 Panel Int. Dr. (36 X 80) Wht. $130/sat (4) 6 Panel Int. Closet. Bifold (15X30) $200/sbt (352) 746-6913 Metal stand & seam roofing panels, (16) 10" wide, 12FT long, Also26tor, keyboard 16" wscannde, 8FTonger, fa 24 gauge $800 obo (352)5637-3807 COMPUTER Hewlett Packard. Wl & upgradeows 98. Hard drive,Vis/ monitor, keyboardCard 637- scanner, printer, fax. $100obo (352)563-2896 DIESTLER COMPUTERS Internet service, New & Used systems, parts & upgVHS Camerades. Visa/ MCard 637-5469 h GAMEBOY SP With 20 games, incl. Pokemon games, & more.l135 (352) 560-7552 PRINTER DeskJet 820CE $50. VHS Camera w/Casl Panasonic $25 a (352) 746-5232 FORD 8N, ,. W/ 5 Attachments Too many new pa=ts to list.. $4.000. (352) 613-2168 TRACTOR o Massey-Ferg 1540 = Low Hrs Several _ Attachments (352) 302-7073 5 Pc. Patio Set 47" glass top table;' 4 chairs, org. $499 Asking $125. (352) 341-0675 Citrus County Chronicle Or search online at: . 1 It s your right to know. NOTICE what s going on in your community. School District Budgets Property Auctions Public Hearings Local Tax Changes Adoptions Find out about public noticesd. P '\ $25.00 Romano's Gift Certificate .- 15 minute Mobile Massage Aj 13 Week Chronicle Subscription $20.00 Classified Ad We will also judge the Color Contest entrees for a chance to win:v * 4 Homosassa Springs Wildlife Pairk Tickets This has a $500.00 Advertising value for only $300.00 Call to place your a t t ay (352) 564-2940 \ .-. -e w Copyrighted Material oSyndicated Content"" Available from Commercial News Providers" . 0 a a Ir z 40- .-'CITRU COUNTY v(FL) CHROwNICLE CLASSIFIED SATURDAY. MARCH 8. 2008 19C All Tractor/Dirt Service Land Clear, Tree Serv., Bushhog, Driveways & Hauling 302-6955 COLEMAN TREE SERVICE f-Trim & Removal. Lic. Ins. FREE EST. Lowest rates rguarant. 352-270-8462 ,- DOUBLE J STUMP GRINDING, Mowing, Hauling,Cleanup, Mulch, Dirt. 302-8852 ,D's Landscape & Expert Tree Svc Personalized design. Firewood & Bobcat work. Fill/rock & Sod: 352-563-0272 R WRIGHT TREE SERVICE, tree removal, stump All Computer Repair I We come to you. I 1 21 yrs. exp. 7 days. S(352)212-1165 L 1- l mom a v tnns Satcnen raising & Wallcovering.AII work ,fully coated. 30 yrs. Exp. Exc. Ref. ns. Lic#001721 '352-795-6533/464-1397 CALL STELLAR BLUE for all Int/ Ext. painting needs. Uc. & Ins. FREE EST (352) 586-2996 3rd GENERATION SERV ,. Fencing, General 'Home Repairs, Int/ Ext. Painting, lawn trees, & landscaping FREE Est., 10% Off Any Job. lic 99990257151 & Ins. (352) 201-0658 INGLIS DELIVERY ROUTE AVAILABLE. Must have two vehicles available .and able to work early morning hours 7 days a week. Call 563-3201 .and leave, name, phone number and the best time to call. CHEAP/CHEAP//;MI:AP Husband & Wife DP Press.Cleaning & Paint- ing. Lic.&Ins. 637-3765 All Home repair, int/ext paint. Mobile Home Renovations. #0259169 MALLEY'S HOME MAINT. (352) 220-9486 FERRARO'S PAINTING SERVICE Interior, Exterior. Free Estimates, Senior Discount. (352)465-6631 INTERIOR/EXTERIOR & ODD JOBS. 30 yrs J. Hupchick Uc./Ins. (352) 726-9998 Murals Painted Interior or exterior walls, children's rooms, portraits, and lettering. Free estimate, reasonable prices call Mike (352)228-2889 BOB LANE'S COMPLETE ACCOUNTING & TAX SERVICE 38 years experience, 25 yrs in Citrus County. Full retirement planning available. Professional service and guidance. Reasonable rates. FREE ESTIMATES. 400 Tompkins St, Affordable Boat Maint. & Repair, Mechanical, Electrical, Custom Rig. John (352) 746-4521 AT YOUR HOME Res. mower & small engine repair. LUc#99990001273 352-220-4244 BATHTUB REGLAZING Old .tbs:&' Ogly ceramic tile is restored to new cond. All colors avail. 697-TUBS (8827) VI %.dbArMo Edge to Edge, Borders, Custom Quilting Fast turn-a-round & lots of designs Inside Fabrics to Go SR 491, Beverly Hills, Next to Winh Dixie 352-637-6251 or 352-527-8740 Leda Hall, Quilter AAA Roofing Re-Roofs Repairs New Roofs $50 OFF Roof Repairs Over $300 $100 OFF Complete Roofs Over $2500 Insurance Inspections $30 w/this ad --------------_ --;,- ------ SCoupon must be presented I 'v at time of signing _BST Licensed Insured uc.ccco57537 . FREE ESTIMATES FREE P.U. & DELIVERY Furniture & Cornices (352) 628-5595 Pieferred Service '08 FABRICS-To-GO Customr Wndow TreormenI6 100% Cotton. Nations (352) 527-8740 CHRISTIAN LADY w/20+ yrs. Varied Exp. Companionship & home care. (352) 422-6114 HEAVEN SENT Prvt. liv. facility 1 on 1 care. Alzheimer/ Dementia 352-621-3337 -S-- V'Chris Satchell Painting & Wallcoverlng.AII. HOME CLEANING At It's Bestl Homosassa, Lecanto & Crystal River RYANNA, 586-7919 Licensed. Ins.. Ref. AFFORD. CABINETS ,& COUNTERTOPS New & remodel!!! (352) 586-8415 CUSTOM WOOD CABINETS & FURNITURE Kitchens, bath & more 352-726-5832 D. SMITH CONTRACTOR Floor Repair & Paint Lic. #17210257305 352-344-3897/613-2128 SAM'S MOBILE HOME lmSERVCESetupupRemovd, ransprtdclean up/demo.352-257-1282 271352-465-9201 All Home repair, Int/ext paint. Mobile Home Renovations. #0259169 MALLEY'S HOME MAINT. (352) 220-9486 X 'D ANDYAN Al pase fhm e~ 95 2008 preferred Se2rvie PrWoide AdvwancedC /4c4nawC Installations by Brian CBC1253853 Ue'we otnf tlle (f yyoipm Imatinaton 352-628-7519 Siding, Soffit & Fascia, Skirting, Roofovers, Caports, Screen Rooms, Decks, Windows, Doors, Additions HANDYMAN If its Broke Jerry Can Fix It. Uc ----- NOW OPEN!! SHEDS NOW INC. Instant Financing S Zero Down Bad Credit No Problem Garages, Wood & Steel Buildings BEST LITTLE SHED I| HOUSE IN FLORIDA (352) 860-0111 --- -- #1 A+TECHNOLOGIES All home repairs. Also Phone, Cable, Lan & Plasma TV's Installed. Pressure wash & Gutters Lic.5863 (352) 746-0141 Pierred Serv/ce '08 .DUN-RIfE ELECTRIC INC Service/Repairs New cnt. Remodel 726-2907 EC13002699 AFFORDABLE A SHAULING, CLEANUPS I PROMPT SERVICE S WE DO IT ALLIII SCALL 352-697-1126 A-I Hauling cleanup, garage clean outs, trash turn. & apple. Misc. Mark (352) 302-4130 All of Citrus Hauling/ Moving items delivered, clean ups.Everything from A to Z 628-6790 I AFFORDABLE. , JIHAUI. CLEANUEP I OPTSERVICE 1 "WEDO IT ALTI*' I CALL 352-697-1126 L I m mmm.1 I AFFORDABLE * HAULING, CLEANUP PROMPT SERVICE WE DO IT ALLIII CALL 352-697-1126 C.J.'S Sm.Local Moves Furniture, clean-outs, Dump runs & Brush Low $$$ 7 day service 726-2264/201-1422 WE MOVE SHEDS 352-637-6607 ROCKY'S FENCING Working in Citrus County for 25 yrs. Free Estimate, Lic. & Ins., 352 422-7279 FENCES BY DALLAS 25 Years In County Free Est., Res:/Comm. Llc./Ins. (352) 795-1110 3rd GENERATION SERVE. Fencing, Int./ Ext. Painting, Lawn, Trees, & Landscaping FREE ESTIMATE 10% Off Any Job. Iic #99990257151 & Ins. (352) 201-0658 A 5 STAR COMPANY Go Owens Fencing. All types. Free estimates Comm/Res. 628-4002 BARNYARD II FENCING Serving Citrus Co. Since 1973. FREE Est. '-2335358 JOHN'SCOITROOFING' FREE Est. Senior Discount Lic.ccc1325704 352-447-8050 ROOIN Boutlerice fgJ CCC0O25464 QB0002160 001f I & SUPPLY INC. Family Owned & Operated NEW ROOFS REROOFS REPAIRS FREE ESTIMATES M L - - COMPLETE g~ gROOF. I *COUPONPER H03 I (352) 628-5079 (352) 628-7445 2008 PWeerted Sewree provider Are you spending too much money on cooling or heating? Old, worn out A/C systems COST YOU MONEY Upgrade NOW to a new ENERGY EFFICIENT SYSTEM 352-746-9484 Lic.#CAC058291 RESIDENTIAL COMMERCIAL SALES SERVICE INSTALLATION BIANCHI CONCRETE Driveways-Patios- Sidewalks. FREE EST. Lic#2579 /Ins. 257-0078 Decorative concrete, Landscape curbing, Fusion's River Rock 352- 344-4209 201-1575 LITTLE'S CEMENT FINISHING, INC. House slabs, patios, driveway tearouts, Dumptruck, Tractors, Lic.2059 628-4830 ROB'S MASONRY & CONCRETE Slabs, driveways & tear outs Lic.1476 726-6554 All Tractor/Dirt Service Land Clear, Tree Serv., Bushhog, Driveways & Hanilinn 302-6955 LITTLE'S CEMENT FINISHING, INC. House slabs, patios, driveway tearouts, Dumptruck, Tractors, Lic.2059 352-628-4830 TOP SOIL SPECIAL * 3 Yds -.$75/5 Yds $95 10 Yds $175/20 Yds $300 u 352-302-6436 9 All Tractor/Dirt Service Land Clear, Tree Servn/., Bushhog, Driveways & Hauling 302-6955 All Tractor/Dirt Service Land Clear, Tree Servn/., Bushhog, Driveways & Haulina 302-6955 Lawncare-N-More LLC SPRING CLEAN UP, Bushes, Beds, Mulching, Hauling Leaves,Free Est. Pres. Washing, 726-9570 Steve's Lawn Service Mowing & Trimming Clean up, Lic. & Ins. (352) 797-3166 POOL BOY SERVICES Total Pool Care Acrylic Decking i 352-464-3967 a Pool Decks, Driveways, Cracks Repaired. Painted or Stained. All materials suoolied. Lic. & Ins. Sugarmill Woods. 352-302-7570 POOL REPAIRS? Comm. & Res., & Leak detection, lic. 2819, 352-503-3778. 302-6060 WE MOVE SHEDS 352-637-6607 II------ cm Profe si n -3- ora ErisiiN aNKv. RV. ------------- Reai I Additions & Remodeling Fencing, Int./ Ext. #CRC1327922,344-8799 Painting, Lawn,Preerred See our webslte @www. Trees, & LandscapingSHIEDS 'Y SanteeConstruction.biz FREE ESTIMATE i- Horneo MQFrw LITTLE'S CEMENT10% Off Any Job. DRY OAK FIREWOOD Landerj LITLE'S CEMEN lc#99990257151 & Ins. 4 X 8 Face Cord Access U' 1 ? FINISHING, INC.os (352) 201-0658 $70 delivered. $60You Office 2*)4 - drivewa tearouts, D's Landscape & Expert H3gUI. (352) 344-2696 Mobile (32) 302-W Dumptruck, Tractors, Tree Svc Personalized 1 Lic.2059 352-628-4830 design. Firewood & & S Bobcat work. Fill/rock & b W. F. GILLESPIE Sod: 352-563-0272 -..j-Gu tfHIeI Room Additions Home Construction, Preferred Sevce '08 Pr ed Service 0 RAINDANCER Garages, Baths & CIRCLET THE W R DOCTOR 6" Seamless Gutter Kitchens, CRC 1327902 SOD FARMS INC. water/wells/pumps Best Job Avallablell (352) 344-0009 Res/Com. Installations Filters & Softners Lic. & Ins. 352-860-0714 Uc.(352) 400-2221 Ins IIc. (352) 344-3374 Ins. I Ar --- - WATER PUMP SERVICE ALUMINUM I & Repairs on all makes Quality Pricel I 5344-2556, Richard Uc & Ins 621-0881 A QUALITY TILE JOB 3rd GENERATION SERV. BL M= Showers. Firs. Counters Fencing, Int./ Ext. S Alan's Seamless 5" Etc.,(352) 422-2019 Painting, Lawn, Residential Gutter & Lic. #2713, Insured. Trees, & Landscaping Gutter Cleaning. Soffett FREE ESTIMATE PERSONAL TRAINER/ & Facia 30 yr. exp. No CERAMIC TILE INSTALLER 10% Off Any Job. FITNESS INSTRUCTOR money down 637-1457 Bathroom remodeling, lic #99990257151 & Ins. Toning, Body Bldging, handicap bathrooms. (352) 201-0658 Post Rehab, Lb. Loss. Lic/Ins. #2441 795-7241 A TROPICAL LAWN 352-726-9767/697-1796 Family owned & oper. MR CITRUS Satisfaction Guaran. Warranties Roofs:1 - 352-257-9132/257-1930 COUNTY REALTY 10yrs. A Price For Every ANDERSEN'S YARDMAN Budget. Serving ANDERSEN'S YARDMAN .a&b Res/Comm/HOA/PM ROCKMONSTERS, INC. SERVICES, Mowing, & 3 FeaturingOur Soft St. Cert. Metal/Drywall Trimming, Trash, System. Sunmas Contractor. Repairs, hauling, Low rates Exterior Restoration. Texture, Additions, 1-352-277-6781 Dur-a-Sheld Certified Homeowners, Builders DUN-RITE Lawn Service ua" 352-489-5265 Freees(352) 220-9016 Mowing, Tree Trimming Lic.(877) 601-5050 Ins LIc.#SCC131 149747 Small tractor work. 7 Debris Cleanup - Dir 352-302-4686 ALAN NUSSO " L FREE To First 30 Callers 3.9% Listings 2Free Months w/Yearly INVESTORS. Free Months RESIDENTIAL SALES -. iL-, ,RQ CLAY, ETC. Lawn-care'Contract, COMMERCIAL SALES CAlli tMie -6D 4 service NO Gimmicks, (352) 422-6956 D. Call Mike 352-564-1411 Satisfaction Guarantee ANUSSO.COM Mobile 239-470-0572 LiUc./Ins. 866-771-4373 AQM Lic.(35823 Li.#2776Li & Insured Nw Re-Roof. Fat & Low PMih atare C o., *Roof Repalmirs *CommeialResidendl SShingle Metal Built Up Roof Torchdown Shakes HOME REPAIR & MAINTENANCE,INC. i fAK "Caring for Your Home is Our Business" W C I U Ir Offering A Full Range of Services I tWIat ex"= Commercial I (352) 628-2557 Commercial Lucksroof.com 634-5499 Camber Roof inspections Available Drug Free Workplace 634-5S Member State Certified Lie. #CC1327843 Ideal Carports 2001 Yor sep P. Custom Build Your Dream #CCC1327656 -* Carport Garage Boat Barn RVCover I N C o R Po RAT A8 e Any Metal Bldg. a d iE l "\hateer )ou need, R 4 9 R S we've got you covered" 352-270-3023 352-795-6568 7958 W. Gulf to Lake Hwy., (Hwy.44) Crystal River eW ls il1 BUILDING OR REMODELING? For All Your Entryway Needs!! Pre-Hung Doors Door Slab Replacements Decorative Door Glass Decorative Cabinet Glass Phantom Screens Schlage Locks RAISE & LOWER BOUNDS BETWEEN THE GLASS Perry's Custom Glass & Doors 740898 (352) 726-6125 Lic.#2598 hood News .... FOR OLD ROOFS d Re-Roofing Roofs, j Repairs 352-795-7570 RC29027344 / QB56657 Experience FREE ESTIMATES Unique After-Care Warranty .Good old fashioned quality work! CALL 4 DETAILSI Open Houses are a great opportunity to show what's - on the market!!! Contact your Sales Representative for more information I ~OLSErL~ER 0' 0I '11AU.3 k,(JUINIY kx'l/ m v lI I I 1: I: CITRUS COUNTY (FL) CHRONICLIu. 20C cATUU, ,uAY MARCH 8,-Si2008CLSIFE U .IIU)IAY, P- 8 pc. Dining Rm. Set, table 6 chairs & china hutch Bassett excel cond. $450. (352) 637-2838 PRE OWNED FURNITURE Unbeatable Prices NU 2 U FURNITURE Homosassa 621-7788 BEDROOM SET like new 5 pc. ash wood post w/ 2-6 drawer chest ,1 night- stand, hd brd, & ft. brd $1100obo352-212-9456 BEDS 4 BEDS 4% BEDS The factory outlet store For TOP National Brands Fr.50%/70% off Retail Twin $119 *: Full $159 Queen $199 / King $249 Please call 795-6006 BOOKSHELF 4 Shelf Pine 54 X 42 $75; 2 PORCH ROCKING CHAIRS $50/Set (352) 563-5386 Brown Microfiber COUCH w 3 cushions, like new $300 (352) 344-0544 CHINA HUTCH Thomasville w/1/2" Beveled Glass Top Table on Gold Metal Base. Value $2,500 $500 (352)527-8600 CITRUS HOME DECOR Like New Furniture Buy & Sell, Homosassa, 352-621-3326 COUNTRY STYLE DINING ROOM SET Table (w/cust. prot. top) w/6 chairs & ltd. hutch. MOVINGI $600 obo (352) 613-6799 Curio Cabinet BIk Laquer and glass 4 shelves 6'x30"x13" like new. 100.00 obo (352) 400-1050 DINING ROOM SET Broyhill, It. oak. Table, 6 chairs & hutch. $775; BEDROOM SET Qu.Sz., matt., 2 ntstnds, trpl dresser. Lt. Pine $775 (352) 220-1634 Dining Room Set Distinctive, Elegant, cherry mahagony $400.obo (352) 344-1508 DINING ROOM SET Ext. table w/6 chairs & hutch. Drk. Wd. $295; ADJ. ELEC. TWIN BED w/hdbrd. $349. Good Cond. (352) 860-1031 Dresser& Waterbed One waterbed and one dresser $25ea. or $45 takes everything. (352) 634-2460 ENT. CENTER * w/bullt in Stereo 56"x56" holds 27' TV $200 obo 352-400.1050 ENTERTAINMENT CENTER 4'WX 6'H Cherry Wood Dbl. Drs. $275; LOVESEAT/RECLINER Med. Green Leather Very Nicel $275 (352) 637-1161 ETHAN ALLEN 5 Pc. BR Set Cherry $3,000 WASHED OAK TILE TOP TABLE w/leaf 4 Chairs $300 (352) 637-0397 Furniture & household Items, Moving Must Sell Call for List. (352) 597-6957 FURNITURE FOR SALE almost New, Hot Point SxS Refrig. w/ ice & water disp. GE Wash/ Dry. almost new, Qn. Sz. Broyhill Bdrm set, House full of furn. to much to list (352) 598-5115 LIFT CHAIR New! $600 (352) 637-5103 OAK DESK Vintage, Solid wood, blonde finished top, pullouts, deep drawers $250 OBO 352-634-2008 PAUL'S FURNITURE 6000 sq.ft. Nice, clean Furniture Tues-Fri 9a-Sp Saturday, 9a-lp Homosassa 628-2306 Preowned Mattress Sets from Twin $30; Full $40 Qn $50; Kg $75. 628-0808 RECLINING LOVESEAT "Bassett", w/coffee table & end table $300; DINING RM. SET Lt. Oak, Rd. w/leaf w/4 chairs. $300 Exc. Cond. 863-838-6107 Rock maple fullsize bed & dresser, $150. Rattan sofa, $75 Cash (352) 344-2752 SECTIONAL SOFA 6 Pc. Light Colors. Exc. Cond. $400 (352) 344-5030 SLEEPER SOFA Queen, Excellent condition, call for pictures by e-mail. $300 (352)212-9178 SOFA & LOVESEAT "rooms to go" tan leather w/recllners, adult owned bought in Nov. '07, great cond. $1100(352) 212-9456 SOFA BED Blue $300, Coffee & End Tbl Wood W/ Glass Inserts $150 (352) 746-5232 Sofa Bed Excellent Condition $175. (352) 503-5356 SOFA Contemporary 3pcs. sectional beige, paid $4A400. at Scan Design asking $1000 (352) 795-1501 SOFA LOVE SEAT both recline, light green, good condition $200. (352) 746-4821 SOLID OAK DESK dark oak L shape desk 60x29x30.$200 obo 352-302-3359 The Path's Graduates, Single Mothers, Needs your furniture. Dining tables, dressers & beds are needed. Call (352) 746-9084 *FREE REMOVAL OF. motorcycle, cars, Jet skis mowers, golf carts. We sell ATV parts 628-2084 RIDING MOWER '03, (Craftsman 3000) $950. (352) 795-8653 RIDING MOWER Dixon 44" Zero Turn Radius, Low Hrs $1,500 352-613-8453 RIDING MOWER EXMARK 36" Commercial $750 352-613-8453 Riding Mower Yard ma- chine 18H, B & S,42" cut, $400. Riding Mower MTD, Nursery Clearance 1,000s of Trees, Palms, Coonties Sat. & Sun. BELOW WHOLESALE 5019 W Stargazer Ln. 465-0649 #47227677 BEVERLY HILLS HUGE SALE Fri & Sat 8am-4 98 S. Desoto St. BEVERLY HILLS March 8 & 9, 9a-5p Newborn-2 boy clothes, strollers, pack n play, carseats, desks, tables, stained glass, plants & MUCH MUCH MORE! 4250 N Brynner Pass Terr. (runs Parralel to Lin- coln in Oakwood Vill.) CITRUS HILLS Sat. 8, Sun. 9, 9-3 322N. Grandview Ave furniture, dishes, crystal, bedsprds., Electronics, Something For Everyone CRYSTAL RIVER Woodland Estates Annual Yard Sale Sat 8 1pm N end of C.R. Mall, Left at Light DUNNEkLON Multi-Family Saturday 8 1 9785 SW 198th Cir. C.C. Estates Rainbow Springs FLORAL CITY COMMUNITY Sat. 8-2 11104 E Flounder Dr. FLORAL CITY Sat. & Sun. 8-3 10787 Trails End Rd. FLORAL CITY Used Treasures Sale. Floral City United Methodist Church, Sat. March 8, 8:30a-Noon in Hilton Hall HERNANDO ESTATE SALE Sat. 8-4 Everything Must Gol 2092 E. Pamela Ct. HERNANDO Sat. 9-5 & Sun. 9-1 4036 N. Longvalley Rd. HOMOSASSA Riverhaven, 20+ families Fri & Sat. 8-2 follow arrows HOMOSASSA Sat. & Sun. 8-4 5725 W Irving Court HOMOSASSA Saturday 8-2 Toddler Clothes & Toys Corner W. Holiday & S. Evergreen HOMOSASSA Thurs. Sat. 9-? Collectible Dolls, Home Interior Knick Knacks, Lots of Misc.! 5939 S. Bennett Pt. HOMOSASSA Thurs/Fri/Sat 7 ? Everything Must Go! 6832 S. Maxwell Pt. INGLIS Estate Sale Thur-Sun 9am !NO EARLY BIRDS! I Jewelry, Guns, DVDs, belt buckles, lots more 12400 N. Northwood. Dr Lot #114 INVERNESS 2nd Annual Highlands Comm Sale, 30+homes Sat. 8-2 Raindate 3/15 Kids clothes, toys, turn., tools, outdoor items. 44 to 581 to Anna Jo or 41 to S.Apopka to Anna Jo See sins & balloons Pickup maps any house INVERNESS HUGE 3 FAMILY ESTATE SALEI One Day Only! Saturday 8-4 7700 E. Timber Lane (On Turner Camp Rd.) INVERNESS HUGE COMMUNITY YARD SALE Sat. March 8 8am-? The Ranches off 581 Collectibles, antiques, silver; coins. Furniture, tools, toys, cameras, much much morel INVERNESS Moving sale I Call for Appt. (352) 726-4801 INVERNESS Thurs. Fri. Sat. 8-? Tools, turn., crafts, clothing, Lots more 5770 E. Tenison St. PINE RIDGE Multi-Family Sat/Sun 9am-2pm. Furniture, baby cloths and more! 3650 W. Cogwood Cir. SPRUCE CREEK PRESERVE Sat., Mar. 8th 9-12 Big Community Yard Sale! All welcome! > 50 vendors in parkina area! SW 136th PI. off SR 200, E. of Withlacochee River American Flag @ entrance. A Nursery Clearance 1,000s of Trees, Palms, Coonties Sat. & Sun. BELOW WHOLESALE 5019 W. Stargazer Ln. 465-0649 #47227677 2 & 3 Wires Submersible Pumps And control boxes, will demonstrate pump, $125/each (352) 726-7485 Area Rug 8' x 10' pastel blue, pink, cream, needs cleaning $40. Entertainment Cntr. light color $35. * Bev. Hills 352-257-3793 BODY BY JAKE Total Work-Out $60; 36" STUFFED SHAMU Very Nice! $30 (352) 795-7833 CARPORT/CANOPY Exc. Cond. 10W X20L X12H $225 (352)613-8453 DINING ROOM SET Solid wood, older syle $200; E-Z GO GOLFCART Gas, $1000/obo needs TLC. Incl. extra parts. (352) 302-0505 DOG PEN 6' X 9' X 6' $80 OBO (352) 613-5036 Eljers toilets excellent cond. $60 obo NEEDED INVERSION TABLE (352) 527-4910 GENERAL PRESS WASHER $65 .SONY STEREO SYSTEM W 60 DISC CHANGER $50.(352) 382-4491 GLENFIELD/RIFLE Model 25, short or long barrel, 22 cal. 10 round clip $70. ELect smoker, like new $50. (352) 794-7207 GOLF-CART EZ-Go '95 Rear Seat new Batts. Windshield $1300 obo 352-586-7007 GRILL Broilmaster 470 sq in. cook surface new cast iron burner $100. (352) 746-9076 HOMEOWNERS Would you like me to give you money for the equity in your home or mobile & pay off or assume your mortg.? Call Fred Farnsworth, 30 yrs this area. 352-726-9369 KITCH CABINETS (25+)Oak, great for Kitch & xtra for Work- shop. Beautiful A$ 1200 obo 352-586-7007 LG. UPRIGHT FREEZER Commercial $325 obo Above Ground Pool 24 x 52 Round everyth- ing but the liner $250 obo (352) 795-7513 LIONEL NASCAR TRAIN SET, $133.00 LIONEL TRACK PKG. $12.00 (352) 465-0749 Patio Table w/ 4 cushioned chairs, like new, Table umbrella w/stand $150. (352) 746-5299 POOL TABLE Slate Top w/all accessories You move!! $350. (352) 795-4952 RAINBOW RIVERS CLUB MEMBERSHIP for 7 years, $175 Transfer $360/yr Maint. Pd Qtirly (570) 660-1155 SEARS SELF PROPELLED LAWN MOWER, under 2 yrs. old. $85/cash. RYOBI MIDA SAW & table, $65. Cash. Moving to Condo. (352) 344-2752 SEWING MACHINE Sears Kenmore, cabinet, exc. cond. $125.(352) 637-1617 The Spot Family Center Needs Donations For Community Family/Youth Events and Training: Land Warehouse Space, Sm. Sheds, Tables, Tents, Box Truck. THANKS! Info (352) 601-3806 TV 50" Hitachi $350 48" Riding Mower Sears $375 Microwave $15 Patio Fum.$40 .352-795-4185/697-2046 WANT TO BUY Lead shot for reloading shotgun shells. (352) 726-9369 Wedding Coke Ladder, Pump & Filter, For Above Ground Pool $350. obo (352) 628-1809 WROUGHT IRON CAGE For birds or pets. 5'HX 3'WX25.5"D $150 obo (352) 341-0787 Resturaunt Auction MON .MAR.10 SALE: 10 AM 3435 SR 200 Ocala Former PERKINS REST. Commeacd Kitchen/Dring Equip. A/C Units, Total Ground/Bldg Salvage ALL GOES! dudleysauction.com (352) 637-9588 AB1667 AU2246 12%BP 2%Disc ca/ck IVILAI?,(,t-I 01 4"kic, BUYING US COINS Beating all Written offers. Top $$$$ Paid (352) 228-7676 ACOUSTIC GUITAR Harmony, old 1940 $200 (352) 628-2752 BANJO 1939 Classic; custom made $400 ELECTRIC GUITAR Harmony Old, '30s $800 (352) 628-2752 PIANO Lester Spinet 1949 Good Condition aprs'd @ $1150 asking $900 obo 352-400-1050 Wersi Digital Organ $350. 352-476-3355 - CROSS BOW FLEX STYLE TRAINER & TREADMILL $600/set OBO (352) 634-4708 ELLIPTICAL MACHINE Horizon LS625E. Excellent Machine! New cond. $425 (352) 382-7174 after 6pm Ab Lounger Great for your stomach Used twice $75. (352) 302-0380 TREADMILL Sears Weslow Cadence, 2 yrs. old, like new, transferable maint. agreement, $200. (352) 637-4640 BICYCLE, Tandem Formula 42, 5 spd. Some extras. $100 (352) 795-0518 CLUB CAR Exc. Cond. Curtains, hd. & tail Its. $2,000 (352) 628-1539 EZ -GO Work Horse '02 ST480 16hp Gas Hydrolic Dump Bed, Wench, Camo Paint windshield./Top $3650 obo(352) 628-3768 *FREE REMOVAL OF. motorcycle, cars, jet skis mowers, golf carts. We sell ATV parts 628-2084 GOLF CLUBS, left handed, full set w/cart. $350/obo (352) 302-4535 (352) 897-4204 RIFLE REMINGTON 700 bolt action .223 black composite stock w nikon 3-9 prostaff scope & soft sided carry case $500 (352) 212-9456 - I BRILLIANT MARQUIS DIAMOND, 1/3 Karat New ,Yellow Gold Appr at $1000 asking $600 (352) 422-3370 -M Wanted Silver & Gold Old US Silver Coins, pre 1964, also Indian head pennies, buffalo head nichols, silver bars & rounds (352) 476-1702 We Are Buying Sports Historical, & Entertain- ment Collections for $$ TOP CASH $$ CALL (727) 502-0040 GARDEN TRLR 8ft. Good Tires Needs Work & Garden Planter Never used $200 (352) 344-1939s shots Ready to go 3/10/08 $600. (352) 220-6499 AUSTRALIAN SHEPHERD PUPS. Purebred w/out papers. POP, Health Cert., 1st shots, tails & nails. $350-$450 (352) 596-2121 BIRDCAGE Lg, Med. Duty, Lt. Type Cage. New Cond. 32W X21DX38H Total on Stand. 5'2" Sells for $130 Asking $100. 613-4913 BORDER COLLIES Pups, M/F, 8 weeks Health cert. $500 (352) 726-8619 Chesapeake Bay Re- triever 1 12 yrs. old all shots AKC, great dog, does not get along with other dogs $250. (352) 476-4187 rem 421h rting C= ds I c= Pet ELECTRIC PRIDE Recliner. Rise Up Chair Good Cond. w/lap tray & mag. rack. $450; (352) 249-1149 ELECTRIC WHEELCHAIR PRONTO M51 Sure Step, LH Control $600 obo (352) 637-3339 HEAVY DUTY WALKER Barely used. "Endurance" 4 whl. Up to 500 Ibs. Lg. Seat & wire basket. $150 (352) 341-3083 JAZZY SCOOTER & TRLR Near new! $900/set! (352) 726-2542 Mr. Mobility Jet III Ultra Power Chair, $500. (352) 628-1971 RUGER MINI 30 7.62 x 39 cal. Black Syn. folding stock 30.20,10 rd. clips, amrnmo, many extras. $600 (352)341-0421 WAVE SKATE BOARD Pd. $100 Sell $50 Near New! (352) 634-1040 WE BUY GUNS On Site Gun Smithing (352) 726-5238 YAMAHA GOLFCART w/new steel pickup box Runs exc. $1450 (352) 726-1604 "NEW UTILITY TRAILER" 4 x 8 Tilt Bed, spare, tongue jack. Must See! $625 (352) 628-7053 CARGO, UTILITY, BOAT 100 trailers in stock GULF TO LAKE SALES 352-527-0555 ENCLOSED TRLR. '07, 20' Rear Ramo dr.. soare C-"M il H e6 mni Pr c" Mobile Hojmes 4b.and Land rinonew; 7383_ I! Easter Egg Hunt Eggstravaganza Attention Readers! You can win nice prizes by collecting Easter eggs printed in select ads from March 17th thru March 22nd issues of the Chronicle. Look for this Mail your eggs in with the entry for toh be eligible. Entries must be in the Meadowcrest office by March 31st. Mail to: Chronicle Classified Dept. 1624 N. Meadowcrest Blvd. Crystal River, FL. 34429 Prizes Include: Name:_______ / $25.00 Bealls Gift Certificate / $25.00 Romano's Gift Certificate Address:_____ /15 Minute Mobile Massage n- % -. / 13 Week Chronicle Subscription / $20.00 Classified Ad C421. S p 0 lcm Goo BOXER PUPS AKC Champ Blood line Health/Shots, $700 Taking Deposits Ready 2/23 (352) 397-3143 CHIHUAHUA PUPPIES Vet Checked, Health Cert, wormed, 1st shots. 2 Male, 2 Female 8 wks. on 3/7 $250 ea. (352) 726-7971 DACHSHUNDS Male, neutered 1 yr., Female 6 mos. Both, Ig. hair, red. Microchip- ped, shots, Reg. $400 (352) 621-4553 FERRETS (2) Male Neutered, Descented. Inc. Cage & Acc. Very Loving. Great w/kids & dogs. $150 (352) 489-5409 MINI DACHS CKC 8wks, Health cert. 3male/ltem. $350/$450 (352) 637-3296 MINI PINCHERS AKC Health Cert. 2 Fem. 5 Male (352) 476-5051 TOY POODLES 5 Boys, 2 Girls. All colors available. Born Valentine's Day! 5-7 lbs. AKC Reg. For details. (352)489-4844eves only YORKIE PUPPIES Reg., shots, wormed. Cute little furballs! Males & females. $600 & up, 352-628-0048/302-4235 55 gal. fish tank with solid wood stand, filters, and lots morel! $175 or best offer (352) 746-2932 12yr Geld. Blk, TN WK, AM QT, 15.5 Hands Westrn $1200obo (407) 403-1311 4yr. Old Mare, Bay CIr, Brd Stk Pnt. 15 Hd, Western, $1500obo (407) 403-1311 GORGEOUS GELDINGS Both 3 yrs, old. 1 BIk, 1 Chestnut. $700 ea. OBO Can mail pictures. (352) 621-0833 HORSE BOARDING & TRAINING Crystal River, 80 Ac. Ranch 19 stalls, owners,. on premises, arena, rd. pen, trails. Gentle. natural horsemanship. (352) 563-2602 HORSES FOR SALE Qtr., Appaloosa, Appendix. Nice horses. $1,000-$2,500 (352) 563-2602 ROUND PEN NEEDED Looking to rent or borrow unable to purchase at this time Call 352-697-5252 MALE DONKEY (Mini) Ton/Brown with cross on back. $500. (352) 637-4138 CR Riv./Hernando Rent/Buy I & 2 BR's, Furn./Unfurn., No pets, Ist/lst/dp 352 -795-5410 CR/Homo. 2BR $450 2/1 Duplex, $535 212-2051 220-2447 CRYSTAL RIVER 4/2, DW $650. Ist/lst/sc. No dogs. 352-795-9738 DUNNELLON/488 3/2 ,2.5 Acres. CLEAN! $575/mo. No Pets. (352) 795-69 1/2/Carpt, Clean! No pets! $475 + Util. + Sec. (352) 628-2796 Homosassa 2/2 scr. room, 1/2 ac fenced, no pets $550./mo (352) 628-4002 INGLIS NEW 3/2 unfun., I ac. 2 porches + shed. Quiet area. $750 + dep. (352) 422-0025 INVERNESS 2/1 DW Canal Front. CHA, Lg. Wkrshp.,$625 2/1 SW $525 mo. 727-492-1442 INVERNESS 2/2 $450 mo. 1st +last, Appl., garb. & water incl. (352) 270-8298 INVERNESS 55+ Lakefront park Exciting oppt'y, 1or 2BR Screen porches, appl., water incl. Fishing piers. Beautiful trees $350/up Leeson's 352-476-4964 LECANTO 3/2 DW, CHA, No pets S600 628-2312 Iv.msg DW 2bath, turn. IBR Furn.& unfurn. 1BR turn, carport, scrn rm, No pets. 628-4441 NOBILITY 1995 3/2 DW, $13,899 Rubber roof, upgrade insulation, new hot water hter, plum for DW & prop stove, Ext Structure is great, inter need cosmetic work MUST BE REMOVED FROM PROPERTY (352) 522-1949 lye mess PALM HARBOR HOMES Factory Liquidation Sale Modular, Stilt & Manufactured Homes 0% Down when you own your land! Call for FREE Color Brochures. 800-622-2832 CRYSTAL RIVER 2/1Scr prch. $475; NO PETSI! (352) 563-2293 DUNNELLON 2/1 Nice & Clean A/C new Carpet NO PETS (386) 752-5520 DEEPWATER CANAL Near'Homosassa Rvr, Seawall,`hew dock, DW furn. Land Is worth $$ $229. Phyllis Strickland, 352-613-3503/ 344-1113 INGLIS, 1/1 scrn.prch, fully turn, dishes-linens Lake Rousseau, Hwy 40 Lot Rent $300mo. Lot 14 Buddies Lakeside Park, $7000 (352) 628-9791 LAKE HERNANDO Illness Sale New 2/2 2007 Palm Hrbr DW/ nvr lived In/SYr wrnty. Breath taking views. 110x1 13 lot. Over $225K invested must sell for 159K! Call (813) 294-0151 NEW 2/2 DW Gorgeousl FP. huge kitch., dock, some furn. Lk. Park Dr. MUST SEEI $139K Sharon Levins. Rhema Realty (352) 228-1301 OPEN LAKE FRONT Older SW, Ig. addition. Gazebo, Shd, dck,CHA. $50K (352) 860-2556 WIDE CANAL LEADING To chain of 5 lakes, 3/2 DW, Ig. lot. dock, $92,900 VAor Owner fin. Phyllis Strickland, 352-613-3503/ 344-1113 1991 LARGER SW 2/2 On 50X125 lot. 8X10 porch, Chain link fence, CHA, all appliances. Newly dec. Nice area. $43,500. 352-464-5489. 3/2 DW On 1/2 ACRE Fl. Rm. hardwood & ceramic tile, appl. 2 Strg. bigs. w/>500 sf. 2 sides fncd. $80K (352) 563-5589 BEST OF THE BEST New '08 Jacobsen custom 28x50 3/2 country kitchen 2x6 construction 30-19-22 insulation, 18" ceramic tile, $10,000 in upgrade options, buy for only $52,900. We accept trades. 352-621-9183 CRYSTAL RIVER 5 Acres, 3/2 1600 sq ft., w/office. Very private, paved Rd. Deck, shed, workshop Call for email pictures Price Reduced $1 OK $159,000. 352-212-8794OSASSA 1998 DW 3/2 on 1/2 acre, new roof, remdi 3/1.5, hac/fened $59,9k storm shelter, 124 N. East Av. 352-465-5201 904-318-8958 INVERNESS -"3/1.5, '/ac/fened /2 acre, All new only $89,900. Buy with only $500. down W.A.C. Move in Now! $688. per mo. 718 Near Rk. Crshr. Elem. < Tax Assessed $$. 50K (352) 860-2556 LECANTO/HOMOSASSA 3.6 Ac. w/Ig MFG Home; 3/2, 1,981 sf. Spacious, clean, quiet. $137K; Make Offer! (813) 317-6525 Not Happy With * Your tax Returns? I We'll Double It With Purchase of Any Home u p To $5,000. CALL NOW 352-794-7308 ----- J OCALA Bahia Oaks off 200 2/2 New Heat pump/Filter Bed, Remdl'd Baths Carport, Lrg Fla Room, Fenced Back Yard, Stove Refrdg. W/D 6321 SW 59th Ct. $69,900(352) 237-2317 Priced to Sell #1 Volume Dealer Can't be Beat! 32 x80, 4/2 Only $72,900 On Your Lot or one of Ours. Land Available 352-621-9182 Rebates-Rebates Rebates Up To $10,000. All Models Must Go!!! a Call Today i 352-794-7308 l- ---mill SOLUTIONS FOR TODAY'S HOMEBUYER PUTNAM MORTGAGE & FINANCE, LLC Competitive Rates!! *- Pre-Approvals By Phone. w* Mobile Homes with land *- Slow Credit Ok. a- Purchase/Ref. a FHA, VA, and Conventional. Down Payment Assistance. Call for Details! Tim or Candy (352) 563-2661 Lic. Mortgage Lender t SPEC HOMES On 1 Acre Starting At $115,900. Lake Russo Area Don't Wait These Lots Are Going Fasti! Call Today I 352-794-7308 ---m ---. m mln Super' Savings Super Clean Repo, 3BR, 2BA Wind Zone IIIl Must See @ $31,900. Call Today I 352-794-7308 4 NEW MODELS Excellent Amenities Gated Community 5 *, 55+ BRAND NEW HOMES $68,900.-$129,000. Phone 352-795-7161 2/2 Crystal River Village Lot 169 55+ GatedLake, lana, Newprice ONLY $13,000 (352) 503-6402 '94, 39', Terry 2 Irg slides, 36', Fl. rm. Central heat & air. Partially furnished. Shed 8X10, Phone (352) 748-1665/440-225-0324 '99 DW 2/2, 55+ PARK Part. turn., open plan, laund. rm.,New: carpet, blinds, range, fridge. Shed + porch. $60K 352-270-3806/287-9688 CRYSTAL RIVER VILLAGE Fully furnished, 2/2 dollhouse, MUST SEEI Lg dbl. crprt. REDUCiEDI 65.000. (352) 795-6895 DUNNELLON Withlacootchee Backwaters, '98 24x46 2x2 Carport Porch Patio 10x14 Workshed w/river access REDUCED $40K 352-447-5909/427-2119 HOMOSASSA WEST WIND VILL 55+ New/Resale Mobiles Great Park! Greater DealsI 352-628-2090 INVERNESS 55+ Community 2/2, 28 x 56, IncI W/D, Lg rm. part furnished optional $57,500. obo (352) 726-4425 Ive mess INVERNESS SNOWBIRD SPECIAL 1/1 Furn. 55+ pk. Cvrd patio, k5,00 (352)637-5171 LAKE ROUSSEAU Pk. Model, furnished. CHA, boat ramp 25 yds. resort htd. pool, club house & activities. $25K (352) 795-6892 LECANTO 2/2 1989, DW long Furn'd Carport Util. Shed, open plan, 55+ Park Palm Terrace $35k (513) 520-4906 NICE older 3/2 on lake In Inverness 55+ Park. fishing pier & poss. . owner finance. $200 down, $95 mo. + $240" lot rent. (352) 726-9369 THUNDERBIRD 55+ 2/2/crpt, SW, CHA heat pump. 28 X 12 FL Rm.Shed. Water, sewer & garb. inc. in $235 rnt. Hwy 19 near mall. $35K (352) 563-1959 RENTALS CMBRIDGE ORENS 874 N. Lafayette Way 3/2/2, Family Room, New Home.........$1200 BEVERLY HILLS 4647 N. Jademore Dr. 2/2/2, Den, Family Room, Overlooks 3rd Green Twisted Oaksd.....$1400 Large Inventory Of Homes Priced From $575 TO $800 (Call For List) 2/2 Waterfont CondomSium...850 2/2 Fum. WaterfrontCond.$5,500 4/2 Home, Close to Town........$850 4/2 Home, Connell Heights.....$950 Large 3 Bed, 2 Bath............$1,800 HOMOSASSA 3/2/2 New Home Sugarnnill Woods..........$900 3/2 Part. Fum. Home...$000 STORAGE UNITS 12x12x20....$100JO. p_.._ See aoddilal mrel 0 wwwA21mllwureood.com NOMMENOMMENE SATURDAY, MARCH 8, 2008 21C GIIKus CoLJuNY (FL.) UUoicUYLL ~ ggi 3 A.5 5 53A3 SHurryl... MARCH MARKDOWN N MADNESS SNOW! BRAND NEW 2008 un M Air Conl Wioning. S Power.Brakes. AM/FM Stereo CD, Full Size Bed. Double Cab. Towing Capacity up to 10,600 lbS., 381 HP 5.7 Liter Ve Engine, Style SW eedls an MAIII LA4.M Transmission. 'M,9O0oA5 SU Aurtomatic. Air Conditioning. Power Seats Power Brakes. AMFM Stereo CD Cruise, Power Mirrors. Alloy Wheels Running Boards & More! I Oxwgoo noSt W0"0c.8s I -'---- m W- SW I PoweriuwSPwer Monam DOoCr LOCks Cruise Tilt AM/PM Stereo CD AlloV 1 1L Mi aMO Wheels ano More! sBRANDS 9BeW 2009 Ira 28 4Ai5WIJULga -A...I 4 ( Air Conditioning. Power Steering &Brakes AM.'FM Stereo CD Full Size Sea. 50011. Towing Capacity. 2.7 L Engine, Manual Transmission. Reg.Cab $15, w~y W I r^E J~fB| ^^ IILE fiSE @ $f49 ''BP 'iai 0 j UODa. ii Vefjrda $6r622009 J92 A-M.Automafic A-. -43.a..,.-t- raisimam ftew 2sM Cor olla. M AW *009 Air conditioning Steenng Power AM FM Stereo CD |!I .lt i f l Power Oufcide Mirror. I I I 1.8 Liter 60 40 spItn Rear Transmission & Morel Hatchac MSSpee nulManual Transmission. Power Brakes Pitwheel & Morel If ^ ^^9 BRAND NEW 200 A Automatic, Full Power, AM/FM/CD, 35 VS Engine Alloy Wheels, Dual Zone Air Conditioning W OE. 8o. ^^*^ ^^ ^BBB BBM 3ify W 9 _sent BRA ND fMW 200 ,3, CTK smart r e vUa InN MyWhipels Morel*I64 495 ' S FOR IU E" Get Tires Por Life With Every New Toyota! Vehicle Must Have All Service & Repairs Performnned At DeLuca Toyota. Must Follow Factory Required Service Schedule. '03 ITSUBISHI ECLIPSE '03 GRAND MARQUIS Low Miles. Sport Ride, Comfortabl Family Car, StttH1115 StH A WASWAS :4 is "0'965 s '05 CHRYSLER SEBRING '04 FORD MUSTANG Convertible. Fun to Drive. America's Finest SVots SIkH9OW64A Car.,Stkl I Ilas '06 TOYOTA CAMRY '04 TOYOTA HIGHLANDER Cnifd CarFax. STkH0694A rti Fax GrAeat Buy, Cmnitd CarFax. STk H06S4A Stk#P2039A 6,92.8'15,875 16,9950% , '06 NISSAN FRONTIER '07 TOYOTA SOLARA NISMO PACK, Super Buyl vB oaHone A W" a A The Best New Cars Make The Best Used Carsl ,7 Yr./100,000 Tiol.Fr0e n Mile Limited Call For Power Train Service 24 Warranty' Hours A Day 7 Yrinllmltted 168 Point Quality tf Mileage V Asuramnce Roadside Aesltance' Inspection t From theoriginal date of first use when sold a a new vehicle. , '5 HONDA ACCORD HYBRID Great Gas Sedan Stk#H1180A WA~fS 1.6 19. y REBUILD YOUR CREDIrW N you're laoldng for a ear or truck but hav. aufied oadlt preblenms in he past, stop by or call our credit spelatist Bobby Rlbe. We can help..regmnles aof your past Credl. Bannkrupv' Pthamr Pay CALL OUR CMRWIT HOTLINE 810'06 FORD aI-VS HUNDRED aa@-InUIE " *07 IYUNDAl lLANTRA Fully Lodd, XM Radio, I S.=t0eaA !1 '06 TOYOTA MATRIX Excellent Gas Wagon, | StkH831A [WAS e ft '07 FJ CRUISER All Terrain Sport Utility, ShO497A WAS" kJ A 46,M9.^ ,69 'O0 FORD FIVE HUNDRED Great Family RAeo. Stk#H0931A .S ..%WSJ 05 NISSAN XTERRA All Options, Gret Buy, StlkH0976A WAS '05 CADILLAC DEVLLE DT Pearl White, Fantastic Ride, Stk#H1215A WAS '02 FOD SUPER DUTYF2S0 4WD, Nice, Stk#H0853A '06 TOYOTA COROLLA Can't Seat the Mileage, S.tk'.OGO4A '07 VOLVO 540 WAS WI 5 995 Rear Cover, Stk#H1192A "TOYOTA MAKES THE CAR ...DELUCA MAKES THE DIFFERENCE" / SLOCATION:1 1/2 MILE EAST OF PADDOCK MALL I 1719 W WCollege Rd. t OcllG 73,2I70 or 1400,4422550 lthe back Of your ALL OFFERS ON SELECT VEHICLES PLUS TAX. TAG, TITLE WITH APPROVED CREDIT. PICTURES ARE FOR ILLUSTRATION ONLY." SEE DEALER FOR DETAILS. PAYMENT BASED ON 48 MOS. LEASE vehicle...you probably W^2490 DOWN. 740 BEACON SCORE REQUIRED. 12K MILES PER YEAR PLUS TAX, TAG & REGISTRATION. PRICES PLUS ADDITIONAL CUSTOMER SELECTED OPTIONS. OFFERS CAN NOT BE USED IN l LE89lj01 CONJUNCTION WITH ANY OTHER OFFER OEAILER RETAINS ALL FACTORY REBATES OR CASH BACK" ALL DISCOUNTS TAKEN FROM MSAP. ALL CASH BACK IS MANUFACTURERS REBATE. OUR MONEY 5IU BACK EXCHANGE ALLOWS CUSTOMER WITHIN 48 HOURS/100 MILES TO RECEIVE FULL VALUE OF PURCHASE VEHICLE TOWARDS AN EQUAL OR HIGHER IN STOCK UNIT OPENf11MRHOUI0I! Look for the Giant. IEARH ElllI! r MODEL, Highlander Speed Automatic, Air Conditioning. Power Brakes. Cruise, Tilt, Cassette. CD, 2.7 ULiter Engine, 30 M.P.G. HWV,. Power Windows, Power Door Locks and More! LSA 98S t g_ U10 TeC WCBC610066gFROM? I 96 .. o .. mn ,.. ...,_ _, n A 7.mmmpwSJFw--" '04 HONDA ACCORD EX V6, Loacled. Most Drive, Stk#HO986A Su 105 SUDAN FOR" Unjr V Icle ust St:h#HOi3M4A WAS 'm 405- 8,965 IS'lli $6 DODGE CWGER RT WAS tM9971s"Al -1. -1 i t- 4i,-p I s Uj -, li -M o I L I Toli -J oil I lly: l yi 41,111. 1 - Wm 1,909IS4 1'04 CHFVY VEVURE B691 assenger an AValldble, Stk#HO770A CITRUS COUNTY (FL) CHRONICLE' 22C 'SATuRDAY, NIARcH 8, 2008 Of Brooksville EXCLUSIVELY FOR CITRUS COUNTY RESIDENTS We'll give you $50 cash with any new 2008 Suzuki test drive and completed credit application at Hernando Suzuki. (No purchase necessary) .. 1A WE BEST PRICE AND FINANCE WE V1. .. GUARANTEE TO BEAT ANY OTHER SUZUKI ,A. 7...- PRICE ON A NEW SUZUKI AND GET YOU F... .i' -"' ...- WE'LL GIVE YOU $5,000 CASH! NO OTHER DEALER CAN BEAT US! Amrc' # arn ',498 or $49mo. Why Buy Used???. From 79,998 or 199mo. Similar Savings On All Model's Way of Life! From 1 9,988 or $299mo. 15265 Cortez (S.R. 50) Just East of Suncoast Pkwy. Exit 46 n ...- l .... ell-I- TOLL FREE I-866-32-SUZUKI 352-799-9999 SD rUU Ks viIi We're just minutes from anywhere in Citrus Cou/31/08. I From it From I * I 0 .0 l I5,998 or 249mo. A-tmo. W-6.1 no 'AN INA, '29,08 SUZURi Aft loll IUZUK OUND TAM 2008 SUZUKI XLMY SATURDAY, MARCH 8, 2008 23C CRYSTAL RIVER 2/1.5 Townhouse, Comm. Pool................ $650 2/1/2 Mobile, 1 A/C, W/D Fenced yard ................ $750 BEVERLY HILLS 21 Carport 73 S. Jefferson................. $50 2/1 20 N. Columbus.........$650 HOMOSASSA 2/1 Cute Waterfront. $750 2/1 Duplex.......................$52 BRENTWOOD 3/2/2 Gorgeous Villa...$13100 S SUOJARMILL WOODS /2/2 New ...................... $900 1/2/2 Newt ...............$1000 fllses dnorishedA n, t l es5..mal 4f aeE Ha St c tteri FL -32 osvn IO l -es Property Management & Investment Group, Inc. Licensed R.E. Broker Property & Comm. 'Assoc. Mgmt. Is our 'only Business >- Res.& Vac. ' Rental Specialists > Condo & Home owner Assoc. Mgmt. Robbie Anderson LCAM, Realtor 352-628-5600 Infoftropertv managmentgrouo. CRYSTAL RIVER Newly Renovated ,1 BR efficiencies w/fully , equip. kitchens. No i. S$10,000. For listings 1800-366-9783 Ext 5714 APARTMENTS FOR RENT 2/1 Apts. Unfurnished Crystal River $500 Moves you inl Call Marie E Hager atAction 'Rental Management Realty, Inc. 417NE2ndSL, Crystal River, FL (352) 795-RENT ww.CitrusCountyHomeRentals.com CRYSTAL RIVER Furn'd & Unfurnished Close to Progress Energy (352) 795-1795 i pronerties.com CRYSTAL RIVER 1 BR, laundry/premises, $500 mo.+ sec. deposit. 352-465-2985 CRYSTAL RIVER Furn'd & Unfurnished Close to Progress Energy (352) 795-1795 DFODerties.com CRYSTAL RIVER Large 2/1 $650/mo f/s contact Kelly 813-927-0525 or Stewart 813-927-4647 CRYSTAL RIVER Seven Rivers Apts. 1 & 2 bedrooms, clean, quiet. Close to mall & hospital. Complete laundry facilities. No application fees. (352) 795-1588 Equal Housing Opportunity FLORAL CITY 1/1, $400/mo. $500 sec. City Water. No pets. (352) 344-5628 FLORAL CITY IBR cabin, just 150 yards from fishing dock, $330 + $250 dep. Quiet forested area, near Floral City, 10 min. from Invern. Trails End Camp No Petsl 352-726-3699 INVERNESS 1/1, $425. mo. 1st, last & sec. 352-422-2393 INVERNESS 2/1, Incl wtr, W/D hookup, $625 mo. (352) 726-3849 INVERNESS 2/1, large eat in kitch., no pets, $600 1st, last. sec. 697-0970 746-6148 LECANTO 1 BR Apt 352-613-2989/ 746-5238/613-6000 LECANTO 2/2 Avail. immed. Inc. water, garb, cable. $675 mo. Ref. & credit check. (352) 621-6668 --- ---m E Mayo Drive Apts. I Units Available L (352) 795-2626 * N. LECANTO 2/1 Clean, spacious, No pets $550 15-563-214 CITRUS COUNTY. REALTY SERVICES Residential Commercial leases Vacant Land Sales Property Management Weekly/Monthly Rentals. Seasonal Rentals Efficiencies (352) 464-0599. homestead.com RIVER LINKS REALTY (352) 628-1616 (800)488-5184 Furn. & Unfurn. homes Duplex 1/1 $395 Homes $695 Up C"Apartm nts cc c=Unfurnishedi CuRus CouNTY (FL) CHRoNicLE IN ER Sle ts avail, startnf a $t10 p erno. s nageunits avatirllOpermo. CRASTAI.EDEPLHWY1C.R. Cin.Spacesava 5attat560 per.Tno. rge office space avaiabe Call NanaWis formore icnnormaaon Acton Rwll MnstemelRalty. c. 417 NE Ind St Cdystl RTve, FL (352) 95.RENT wC CloutHoMR entals'com CRYSTAL RIVER Prime Lease Propertyl 1,200 sf. Hwy 19. 352-795-4301/634-0628 DWNWNWN INVERNESS Nice Daycare facility. Uc. for 39 children. Gross income: Approx. $14K/mo. HURRYI $189,900 (352)341-3131 GREAT HAIR/RETAIL LOCATION $600. MO. 352-422-7925 Lecanto Tree Tops Plaza, 1641,W.Hwy44 1,125 -2,250 sf., AC showrms.. Retail, Office;, Storage, Warehouse From $750. Includes city water, trash pickup, parking. 954-609-2780 New Industrial Bldg. Prime Location Citrus Industries Industrial Pk, Off Rt 41 1250 to 2500 sq.ft. 1V both, hot water, 200 amp sep. electric each bay, large Bay Doors;Fully.Insulated. Avail Immed. (352) 726-5832 or 586-4091 CITRUS HILLS 2/2 Unfurn. End unit. C.C. Memb. Inc. $850 + Sec. dep. No pets. Bkgrnd & credit check. (352) 527-4599 CRYSTAL RIVER (2) Condos for Rent or Sale 2/2 & 3/2 on Water great views, wildlife refuge, boat slip & more. Lease- $1300 - $1500/mo Sale- $330k - $360k. 727-458-4964 CRYSTAL RIVER 2/1 Gorgeous! Scn. prch. Lk. New! $650 mo. (352) 726-6515 Iv. mess. CRYSTAL RIVER Nice Studio condo w/ pool $450 352-628-5977 Homosassa SMW 2/2/CarportFurn., $850. mo. Rent $157,000. Sale 352 746-4611 (2) SMW CUST. VILLAS 3/2/2 on Golf Course & water. FP, Cathedral ceilings, sky-lights, scrn. land W/vinyl sliders. Exceptionally clean! MUST SEEI $16400 or Rent S895/mo ALSO: 2/2/1 on nice Greenbelt, extra drive-way, cath. ceilings, sky-lights, tile, upgraded appl. Exceptionally cleanly .$149.900 or $795mo 352-382-5040 I em% ., I INVERNESS 2/2 Villa, Whispering Pines, pool priv.$650 (352) 220-4082 INVERNESS 2/2,55+, Newly remod. $800 w/discount. (352) 634-0453 INVERNESS 2/2, New Carpet/appl's $675.mo/Rent $124,500 Sale 352 746-4611 FOR RENT 1711 TUTTLE, INV. Nice 211 duplex w new painncarpet for rent now in central location just off PLEASANT GROVE. Pet ok w/ apprnoval/security. Rent $525 per mrno. ERA American Realty 101 & Investments ERA Poerty Manament Beverl Hills, FL. 5 736e 352-7466008 CRYSTAL RIVER 2/1 NIce, W/D h.up. CHA, water/garb incl. $595/mo. 352-341-3131 CRYSTAL RIVER 2/2 CHA, utl rm, trash $525. 382-1344/422-2242 CRYSTAL RIVER 2/2 Fresh Pnt. CHA, Dishwshr. W/D Hooks Move In Nowl $585/mo F/S 352-726-9570 CRYSTAL RIVER 2/2 Remodeled, W/D I 100sf, New App's, CRYSTAL RIVER Fumlsh/Unfurn $500-600 2/1, Carport, W/D, Downtown 352-400-2617 I INVERNESS 2/1 W/D, garb./water Incl., fenced, pets ok $650.mo. 1st., last $300 sec. (352) 746-4611 CITRUS SPRINGS RENTAL HOMES AVAIL., 2,3, & 4 Bdrms; 352-422-5441/427-2202 CRYSTAL RIVER 2/2, 1/ ac, like new $600. 352-634-1764 CRYSTAL RIVER 3/2/1 $900/mo 352-257-1034 CRYSTAL RIVER Rentals Starting at$725. Waybrlght Real Estate Inc., 352-795-1600 INVERNESS 3/2/1 Fenced Back Yd. Great American Realty (352)637-3800 Rainbow Lks Est. 2/2/1., den, shed, srn prch on extra Ig. lot. $850/mo, 352-465-7147 Rentals COUNTYWIDEI GREAT AMERICAN REALTY ALL PRICE RANGES Call:352-637-3800 or see ALL at SUGARMILL WOODS 2/2/2 +Lanal,1600 sq.ft. $950.mo + util. Inc. lawn main. (727) 804-9772 BANK FORECLOSURE 7BR, $12,900. 2BR $10,000. For listings 800-366-9783 Ext 5714 CILASSI[IFI]Er-)S CRYSTAL RIVER Lg. 2/2, Everything Inc. Close to Power Plant. $1,250+Dep 564-8165 HOMOSASSA 1 bdrm cottage, quiet loc. $575. All util. paid. 561-632-1614/790-5621 LAUREL RIDGE Golf Course Prime 2 BR/Den on 3rd Green. MUST SEEI Poss. lease/ purchase. $219,900 Ownr/Brkr 352-220-1634 BEVERLY HILLS 2 & POss 3 BEDROOM Avail 3/15 CHA, W/D 352-422-7794 Beverly Hills 2 bed/Ibath $575 Dunnellon 2/1/Igarage $675 352-637-2973 1HomeSold.com BEVERLY HILLS 2/1 Clean, 1st month 1/2 $700/mo 888-886-8452 BEVERLY HILLS 2/1/1 CHA, $650 + Sec. 352-563-2480/302-9345 BEVERLY HILLS 2/1/1, New flooring, C/H/A $700. Mo. (727) 415-2709 BEVERLY HILLS 2/1+ fm.rm.iS625 mo.,. 52 S.Fillmore' 795-1722 BEVERLY HILLS 3/2/1 Fenced yd., $695. 382-3525 or 697-1457 BEVERLY HILLS Lg. 1/1, formal DR, EIK, CHA, den/office, garage. $625/mo. (352) 746-3700 Blue Cove/DUNN. 3/2, Prvt. Lk. view, W/D. $900 mo $1,000 dep. (352) 489-3161 BRENTWOOD @ TERRA VISTA Clean 3/2/2.on quiet St. $900 mo. Incl. lawhcare & social memb., 1st, lost, sec. No smoking (352) 302-9787 CITRUS HILLS 3/2 Pool home, 1 Acre, $975 (352)746-4821 CITRUS HILLS Lg. upscale 2007, Cant. Lks Est. 3/3/2 + den. No smoking/Pets, Rent or Ls. Opt. to buy. $1,500 mo. 1st & dep. Soc. & golf memb. avail. Myrfam (352) 613-2644 Keller Willoams Cornestone Realty CITRUS SPRGS 3/2/2 New, W/D, Pet friendly, $925/mo.352-812-4848 CITRUS SPRINGS 2/1, $625 Cry. Riv. $575 1st/Ist/sec352-563-5304 CITRUS SPRINGS 2/1.5+ bonus Room $675/mo. F/L/S (352) 212-3997 CITRUS SPRINGS 3/2/2 New homes. $900- $1200. 352-400-0230 CITRUS SPRINGS 3/2/2, Brand New Home, W/D $850. mo. 1st, last & sec. (954) 415-2056 CITRUS SPRINGS Newer 3/2/2 quiet neighborhood. sprkle/sys $895/mo. 352-812-1414 CR/Homo. 3/2/1 new carpet, $695; 2/1 $535 212-2051 220-2447 CRYSTAL RIVER 3/2/2 Large yard w/ pool and lanai. City water, firepic W/D $1300/mo inclds pool Maint 352-794-3105 CRYSTAL RIVER EXTREME MAKEOVER, like new. 3/2 $785mo. 4/3 $1250/mo. 1st, Ist & sec. 352-794-3105 CRYSTAL RIVER Near Plantation G.C. 4/2 Comp. refurbished. New AC, water htr. & appl. Lg. shed, fncd yrd. $900 mo 1st + last. Refer. (352) 795-9244 Dunnellon Mini Farms cute 2/2, on 2.5 ac., pets ok, Ist/last/sec. $800/mo (352) 795-3766 DUNNELLON Rainbow Lakes Est. Sweet 3/1/Crprt & Lanai. Private spotless. $699/mo Hg. 4/2/2 + FL Rm. Fabulous Next to quiet park. $899/mo. (352) 527-0493/613-0750 HOMOSASSA RIVERHAVEN, 3/2/2 1600sf liv. Treed lot $700/mro Pets poss ? (352) 288-0775 HOMOSASSA Stop Rentingi 3BR w/ fenced backyard, $500. dwn, $535. mo No Credit Needed (352) 239-1506 INVERNESS 2/1/1, $600 1st, last. sec. 352-746-6148/ 697-0970 INVERNESS 2/2, W/D included very clean, close to everything $700.mo. 1st, Ist, sec 352-344-8412 INVERNESS 2/2/1 ,$650 quitenice 352-637-2617. INVERNESS 3/2/2 fncd yd. MANY upgrades, $850/mo. (352) 476-2797 INVERNESS 3/2/2 POOL $700/ mo 908-322-6529 INVERNESS 3/2/2, Lg. Pool, 1012 Princeton Ln., $895/. or rent to own 613-5536 INVERNESS 3/2/2's Waterfront, pool, $1100. Luxury Model, $975. 561-632-3119 INVERNESS 4/2/2, 2688 sf. on 2.5 ac.$1200/molst/Ist/sec .352-613-0091 _________ - DAYS OF DEALS NEW 2008 TOYOTA I TACOMA REG CA( I 1 20f-- 33K MILES CONVERTLE 25K MILES l9Z5R~3J1YA LEATHER SUNROOF 18K MILES I1 "06BUIC ...20 Y&7 A 2 005 I =~U FRON1T90IER 22K MILES "iV6 SUNROOF, m LEATHER .pw24MIES lB 00 lB 990 lB 900 20 2005YOA 2005 T, 006 MImA II4RUTUNDRA UIITED KMTD 19K MILES =TEDG 19K MILES 4X4, NAVIGATION DOUBLE CAB, 4X4 25 040=0 26s~900 :39V HOMOSASSA, FL 34448 VILLAGE352-628-5100 HO R: O -FI8A -:3 AT A - 2000 D 1997 UNCOLN 54K MILES 004 CADIAC 2008 TOYOTA DEVIIUL COROUALE 0a -iiaP 7900 f----iA N'. 2004 OINCO BC U i ^ yT A_ 900 F" DTS LUXURY ! i GET NEW ^00 Q~TOYOTA wmviogbwwd 19K MILES ONLY 3K MILES ONLY 3K MILES 9W00 Ends 3/10/08 end of business day. All prices plus include $399.00 dealer fee, plus tax, tag & title. (Excludes used cars) All lease 48 months with $1999 down. Severity of credit/debt will affect down payment, monthly payment. and APR. Dealer to determine vehicle. Bankruptcies must be discharged. Offers cannot be combined with internet prices or managers special. Not responsible for typographical errors. All pictures for illustration purposes only. 7rT 77 86K MILES CALS] 1 (,ie VU'.A *i C IO VILLGE' ebv m INVERNESS Golf & C.C. 3/2/2. Scrn. Rm.& FR. CLEAN $975 352-860-0444 INVERNESS Newer, Upgraded 3/2/2, privacy fence, $900. mo. 352-895-5985 LECANTO Very 1g. 3/2, pool, fncd. yrd. $1200. Kim R. Hall 352-746-7001/302-0957 PINE RIDGE 2/2/2 LR, FP, pool on 1.6 Fncd. Ac., 2 horses welcome. $1275 Ist +2 mos. Sec352-212-3019 RAINBOW SPRINGS Lovely 2/2/1., scrnd prch, all appl., lawn serv. provided. Smoke Free, Pets?? Kayaking & bike trl. nearby. $885 mo. 1st + Sec. Dep. Avail. 4/1. 352-522-0201i $1050/mo 786-402-9748 BETTER THAN RENT or RENT TO OWN 2-3 BR. NO CREDIT CHECKII 352-484-0866 jademlsslon.com LAUREL RIDGE Golf Course Prime 2 BR/Den on 3rd Green. MUST SEEI Poss. lease/ purchase. $219,900 Ownr/Brkr 352-220-1634 CRYSTAL RIVER (2) Condos for Rent or Sale 2/2 & 3/2 on Water great views, wildlife refuge, boat slilp & more. Lease- $1300 - $1500/mo Sale- $330k - $360k. 727-458-4964 CRYSTAL RIVER 1 bdrm. effic, Fresh Water Hunter's Bay, sun deck, W/D rm, comp. furn, all util. Incl. $750/mo.Dock IncI'd Avail now.352-372-0507 CRYSTAL RIVER 2/2 Seawall/Dock/Pool Upscale Area Pristine Condition, No Smoking 1st/last $1200/mo 352-795-0102 pm HOMOSASSA 2/2/1 Townhonme Pool/Property/Dock oh River $900/Mo. F/L/S 352-621-3185 INVERNESS 3/2 Quiet, Immed. Occ. $875 (352) 895-8627 CRYSTAL RIVER UPSCALE Comm., CLUBHSE, 2 POOLS TENNIS, ROOM w/PRIV BA. $135/wk.incl w/elec (352)794-3042/422-7891 HOMOSASSA N/S, 4/2 $275mo. + 'A Util.+Cleaning 628-5536 RENT TO OWN* POSSIBLE OWNER FINANCING NO BANK QUALIFYING. (352) 795-0088 * CITRUS SPRINGS 1 STUNNING NEWER HOME FOR RENT or RENT TO OWN Possible 4th BR/den 2,458sf. $995/mo 352-239-3700 CITRUS SPRINGS 3/2/2 New homes. $900- $1200. 352-400-0230 FLORAL CITY LAKE HOUSE Btful 2/1/1 on quiet priv. lake. $675 mo. No smok. 352-341-4996 INVERNESS 3/2/2 Quiet neigh., $900 F/ILS (352) 726-3258 3/2 $199/mo HUD Home 5% down 20yrs at 8%apr. For listings call 800-366-9783 Ext 5704 3/2 $199/mo HUD Home 5% down 20yrs at 8%apr. For listings call 800-366-9783 Ext 5704 CITRUS SPRINGS to share new 3/2 Home $450/Mo Inclds All Utils. (352)228-9398 HOMOSASSA Fum. room ,utll Incl. Ig/yd $90 wk. 628-5244 INVERNESS 2 Rooms- Prvt. Ba. & ' Kitch. $600/mo. Inc. utilities.(352) 586-8305 INGLIS 5/2, 11 Acr Furn., ALL Util., 352-634-0129 LISA BROKER/OWNER Rentals Furn. IBR Apt.'s $1000/mo. Include Boat Slip. Avail. April. thru Dec. 386-462-3486 ATTENION IN"iliVESTORS Leased thru- Feb 09 at S950/mp. buy n wl 3/212w/oWOl bO '00 $19t 2. AUCTION Thur. March 13, 10am 2 Homes 32x40 Garage 5.5 acres, Dunnellon For More Info. Parsley Real Estate Inc. & Auction AB383 (352) 726-2628 422-6417 736354 312/2 $138,000 WEEKEND SALE 3/22, fenced backyard open split FP. Very clean & invi ing. Over 1,600 sq. ft. of living space. 1029 Lehigh Terr., Inverness DIR: Gulf to Lake Hwy turn R. onto S. Apopka, turn L. onto Inverness Blvd., turn R. on Lehigh, home is on R. 2/1"1 $99,000 WEEKEND SALE 2/1/1, laminate wood flooring double-pane windows, 8x10 shed electric, patio deck. Well maintained. 308 S. Apopka, Inverness DIR: From downtown Inverness, go S. on Apopka. Go through 4-way stop and home is about 1/2 loc on R. BEVERLY HILLS Sat/Sun 11-4 LOVELY 3/2 Pool Home Ready To Move In! 1900 sq.ft. under air. large Inground pool, New Kitchen & more, too much to list, $124,500 888-886-8452 16 Melissa Dr. OPEN 12-3 Fri., Sat., Sun.. Mon. Crys Rvr Wtrfrnt 3/3/2 > 2,400 sf., 30 X32 slip. 1135 N. Midiron Pt. Off Fort Island Trail $439K By Owner (352) 638-1079 OPEN SUNDAY 1-3 6381 W Cannondale FOX HOLLOW, MEADOWCREST 2/2/2 1,635 Aprx. Liv Sf FP, htd. pool, built-in ent. center. 158.00 (352) 746-0643 Sunday, March 9, 12noon-5pm Newly Renovated COUNTRY COTTAGE Near Lake, Deeded Lake Access Price to Sell at $90.K 2595 N.Bucknell Terr. Hernando, Fl. SOLUTIONS FOR TODAY'S HOMEBUYER PUTNAM MORTGAGE & FINANCE, LLC Competitive Rates!! *- Pre-Approvals By Phone. *" Mobile Homes with land Slow Credit Ok. Purchase/Ref. o- FHA, VA, and Conventional. Down Payment Assistance. Call for Details! Tim or Candy (352) 563-2661 Lic. Mortgage Lender Your World ltt,,ro n.edonr nzorn Ucensed In Florida & New York Robert Strickland (352) 502-6588 herri C. Parker & Assoc., Realtors, LLC TE.mlA VISA 3/ /2 Bult I '06 Ranch NOT A VILLA Avlc. Irnmed. S18OOSqtt. 10,000sqft. .- o coDe-SOc For =-MA t: CITRUS COUNTY (FL) CHRONICLE 24C SATURDAY, MARCH 8, 2008 IsFEs I- Pine id-e MONEY TO LEND Private Investor, I Hard Equity, No up Front Fees, Real Estate Collateral, I Steve (352) 540-1523 ABSOLUTE BANKRUPTCY AUCTION WESTCOAST DIAGNOSTIC" 3195 S.F. Medical Imagining Office 10+ Exam Procedure Rooms, Office, Kitchen, Bathrooms, File Storage, Waiting Room/Receiving Area Add'l Cleared Adj. Lot (for bldg. or parking) Tues. 3/25 @ 10am 312 S. Line Ave, Inverness Call for Info (800)452-3905 or (727)548-9303 Auctions.com Business For Sale Lawn Plug Business w/tril/equip. & training Very profltablel Ist$3000 (941) 445-4703 SUGARMILL WDS Prime comm. space in SMW, 8K residents! Lease $10/sf. 1900 s.f.l Uses: Medical; Title; Legal; Accounting; Insurance, Telemarketing; etc. Won't last long........ Call Ron Price * Broker, Owner Coldwell Banker, Next Generation Realty (352) 382-2700 * 3/2Home+Duplex $138K Price Reduced! Crystal River. Great Shape! 352-427-5574 BEST OFFER BY 3/24/08 2/2/1, Gospel Island. Deeded lake access. Fncd yd. (352)628-0577 DWNTWN INVERNESS Nice Daycare facility. Uc. for 39 children. Gross income: Approx. $14K/mo. HURRY! $189,900 (352)341-3131 FURNISHED MODELI NEW 3/2 $149,900 $50K Below Appralsall (407) 227-2821 ** HANDYMAN * SPEC. CHEAP CASH S(352) 503-3245 ofat S950/m buy now 3/2/2w/piol bIt '10 $ 199k 352-489-3619 ., SUGARMILL WOODS Brand new Deluxe Villal Owner not coming to FL. Must sell! $239.900 Joy 352-382-1132 Palmwood Realty Inc. -I -*BRAND NEW "* 3/2/2, Full appl. pkg., sprinkler, corner lot, fully sodded, landscaped scrn. lanai, $134,900. Call (352) 746-9957 BRAND NEW 3/2/2 Quality Built, split plan w/many upgradesI Was $159,900/ Now $136,900 (352) 354-5407 CIT. SPRGS/ BEV. HILLS (2) New homes, 3/2/2 Cit. Spgs. $139,900, $145K. 2/1/1 Uke new in Bev. Hills $99K, 352-816-0010 FURNISHED MODELI NEW 3/2/2 $149,900 $50K Below Appralsall (407) 227-2821 Hidden Paradise 170' lake front, enormous rms 4/4 1/2ac $589k Call now for Info. & free warranty Barb Malz 352-212-2439 Keller Williams Realty NEW CONSTRUCTION Move In NOW $134,900 3/2/2,1900+ Total Sq/Ft. Dave. (813) 966-1846 Leased Tlhu- Feb 09 at S950/mo buy nowl 3/2/2w/pool bit 00 $199k 352-489-3619IIZ, REALTOR CITRUS REALTY GROUP (352) 586-9700 - I Usting #21469104 Beautiful Pine Ridge 6 acres MOL (on corner lot) by owner. Build your dream home or purchase as an excellent investment. $239,000 (352)621-3471 or (352)302-7351 BETTY MORTON Reimi>Qelect (352) 795-1555 HOME SHOPPING? BEST BUYS At yOwner Citrus.com (352) 795-1555 Picture Perfect Homes 3/3/3 Pool Home on 2.95 Ac. Too many luxurious amenities to list!! $529K. Maria Pauelsen, Keller Williams Cornerstone (352)302-8403 2 AVAILABLE NOWIII BETTER THAN RENT or RENT TO OWN 2-3 BR. NO CREDIT CHECKII 352-484-0866 jademission.com 2/1/1 Ready to Move In New Roof, new AC, new hot water heater, fenced yrd., tile throut, 44 SJ Kellner Blvd. $104,900. (352)746-6050 2/1/CP 1119 SF Uv. Fenced Yard, Block Workshop $46,900 (352) 527-1239 3/2/2, Pool Home, furn$1200/unf $1000 near golf, 4216 N. Stanwyck Terr. 352-749-7653 Landmark Realty CIT. SPRGS/ BEV. HILLS (2) New homes, 3/2/2 Cit. Spgs. $139,900, $145K. 2/1/1 Like new in Bev. Hills $99K. 352-816-0010 Hidden Bargainl! Well maintained 2 bdrm & Fl room home New Roof & Air/Heat Pump '08. easy to buy & priced right $115,000 Call Barb Malz for easy financing &'free home warranty 212-2439 Keller Williams Realty ..LAUREL RIDGE , Golf Course. Prime 2 BR/Den on 3rd green MUST SEEI Poss. lease/ purchase. $219,900 Ownr/Brkr 352-220-1634 LOVELY 3/2 Pool Home Ready To Move In! 1900 sq.ff. under air. large inground pool, New Kitchen & more, too much to list, come see $124,500 888-886-8452 tIkaorocerties.lnfo 2/2/2 Mce Qulal CHA & loot 2yrs old,new SS. Frndge. Priced & Ready & to Move In 0119k No resenable offer refined 865W. Caottbler In. 352-422-6913 3/2 $199/mo HUD Home 5% down 20yrs at 8%apr. For listings call 800-366-9783 Ext 5704 jLecanto Hollmes^ BONNIE PETERSON Realtor, GRI Your SATISFACTION Is Myv Futurell (352) 586-6921 or (352)795-9123 Charlotte G Realty & Investments LLC 3/2 $199/mo HUD Home 5% down 20yrs at 8%apr. For listings call 800-366-9783 Ext 5704 OPEN SUNDAY 1-3 6381 W Cannondale FOX HOLLOW, MEADOWCREST 2/2/2 1,635 Aprx. Liv Sf FP, htd. pool, built-in ent. center. $158.500 CONTEMPORARY 3/2/2 POOL HOME on 1 Ac. 2,600 sf. under roof. Prvt. & wooded. $214,900 (352) 476-4161 Picture Perfect Home TERRA VISTA 31212 Bull in 06 ?.ancn I.T A VILLA A&ail Immea I OScitl 10 oJ,:aqtl on Col-De-Sac For sale 5279.9r0 or lease S9,50/mo617-816-1230 BANK FORECLOSURE 7BR, $12,900. 2BR $10,000. For listings 800-366-9783 Ext 5714 Picture Perfec Home TERRA VISTA 3/212 Built In '06 Ranch NOT A VILLA Avail Immed 1800iqrt 10.O0Osqrt or, Col De-Soc For sale S2 79 Q0 or lease S950/mro617-816-I230 3/2 $199/mo HUD Home 5% down 20yrs at 8%apr. For listings call 800-366-9783 Ext 5704 BANK FORECLOSURE 7BR, $12,900. 2BR $10,000. For listings 800-366-9783 Ext 5714 2/2 Crystal River Village Lot 169 55+ GatedLake View Encl. Porch Furnished, Clean, Many Upgrades, $62.9k 352-564-1596 BETTY MORTON I DOLLAR PRODUCER 2.8 % Commission R ea-&yQeect (352) 795-1555 Over 3,000 Homes and Properties S listed at homefront.com BONNIE PETERSON Your SATISFACTION (352) 586-6921 or (352)795-9123 Charlotte G Realty & Investments LLC C r Cii Your world First CiN I( l..E ___ C ii n,-" ;- . "*4Crystal River "Homes CRYSTAL RIVER Prime Waterfront Location Behind Plantation Inn Gulf Access. 2,400 sf. 3/3/2 over 3,500 sf. under roof. New apple. & AC. Covered boat slip. $439K By Owner (352) 638-1079 1135 N. Midiron Pt. off Fort Island Trail Over 3.000 Homes and Properties listed at homefront.com - E.Hmoas CILASSIFICI-EIDS "I ~. 800-366-9783 Ext 5714 4 I 0 DOWN TO BUYII $720/mo. + taxes & insurance. 3/2/2 located in Highlands UR Large home, very clean Needs nothing. W E MAK (3 5 2 ) 6 0 1 -5 6 0 0 '. -. 1006 Princeton Ln $99,9003/2/2, 2,000 , sq.f. under roof., Fam. Rm. upgraded Lrg. kit. - & bath, minor TLC 352-563-4169 3/2/1 Furn. Highlands Hardtops Nice Setting. 1,750 sf. $9Q KBO Available! 352-341-7727/746-4450 BEST OFFER BY 3/24/08 2/2/1, Gospel Island. Deeded lake access. Fncd yd. (352)628-0577 BETTY MORTON -J-----" wMozdoW CX-7 MULTI MILLION DOLLAR PRODUCER 2.8 % Commission Reaia Select #M9T (352) 795-1555 CHARMING 2BR/2BATH HIGHLANDS, corner lot, circular driveway, prequalified only Must See. $109.900 (352) 201-1663 CUTE AS A BUTTON M d 2/2/1 New carpet, floors, sinks, faucets, new refrig., micro over sty. 8X10 shed, 22'X12' , scrn. prch. 352-726-3136 Highlands West 3/2/2 -. Move in ready, split plan, tile, scm. porch, Appli's, many extras,1/2 ac. Built '99, great water $156,000. 352-726-5275 ... HOME FOR SALE On Your Lot, $110,900. 3/2/1 w/ Laundwry M azdaHBB -2 Atkinson Construction 352-637-4138-A Llc.# CBCO59685* Cc Interest Rates.P Low BUY NOWI S "Safl Prices include all rebates & incentives and are show approved credit, 12K mi 1999 NISSAN ALTIMA GOXE Deb Infantine M7553A2, WAS $4,999 .42,499 EXIT REALTY LEADERS 2000 FORD TAURUS LE (352) 302-8046 PMI373A, WAS $4,999 sr. 2,499 2004 FORD MUSTANG V6 INVERNESS M7553A2, WAS $9,999 s..5,799 Brick home split 2000 TOYOTA TACOMA scmed lanai, berber M7594A, WAS $12,999 sAS7,599 brkfast nk & Formal DR 2004 GMC SAFARI Master Bedroom.w/2 M7130A, WAS $15,999 s.I.S8,299 walk in closets & 2002 TOYOTA CAMRY XLIE NAVI garden tub, itrus M7541B, WAS $11,999 ,..$8,299 nice back yd citrus trees & shed ; 2004 HYUNDAI SANTA FE V6 LS MOTIVATED SELLER M7638A, WAS $14,999 s.1$8,499 $178,A400 0BO 2004 CHRYSLER PACIFICA (352) 344-1320 M7622A WAS $13,999 .$1 8,799 2005 NISSAN ALTIMA 2.5 S 1 999 -_^ M7546A,WAS $14,999 s.08,999 M7553B, WAS $15,999 S..$9,299 All pre-owned prices shown are alter $3000 cash and/or trade equity dow Inverness, Windermere Villa 2/2/1, glassed in porch, clubhouse & pool, $169,000 (352) 344-3335 MLS 313-017 city 3/2/2 2100 sq.ft. New roof & carpet. Tile, Firepl., 3 porches, E IT FAST & EASY! Ita M T-i 1 @ mazoa p DRIVE SALES EVENT TAEA TES DRIV TODAY LE MPER MONTH 24 Mo Lease p MMozdoCX-9 Touring ,' t,^ SPOFRT/UTIEYiR OF THE .AR w/LEATHER, 3 ROW OF SEATS 7 PASSENGER -- '--" AVAILABLE i CD Player---m..Twibute SOther Options Available AVALA B LE I~~ H hKSPP- U.4cii jaWBVMozda*6 6 CD Pilaer P orA WilInWs i SS wer Wcks #M61VE Sal e n with $3000 cash and/or trade equity down and are plus tax, ts les per year. 0% apr available on select models with approved I L* 1 pYVJ IT ,] 2004 MAZDA 3 M7625A, WAS $16,999 2004 MAZDA TRIBUTE V6 M19959, WAS $15,999 2003 LINCOLN TOWN CAR M7540C, WAS $15,999 2007 CHRYSLER PT CRUISER TOURING PM1361, WAS $16,2995f15PerMonll 2000 MUSTANG CONVERTIBLE PMI347A, WAS $5,499 2003 MAZDA MIATA GTA M7372B, WAS $15,999 2004 MAZDA MIATA LS PM1369 WAS $16,999 2004 MAZDA MIATA GT PMI369, WAS $16,999, 2006 DODGE CARAVAN PMI376,WAS $15,999 $235 Per Month 2007 MAZDA 3 SPORT M7538B, WAS $16,999 $235 PrMonth - Power Windws. Tilt * PAwer Locks Craise * CD Player Air 81.4DB, Aftlmi:ID eIwaMozdav5 PWrWIr *RiUW Power l nks S* 8 Disc Chanpr Aliym Whels - #MJSPA so8. Saole Dealer fee. 2008 Miata lease, $249 per month plus tax for 24 months otos are for illustration purposes, Programs subject to change without ^ 1:1Idill R I 2006 DODGE DAKOTA CREW CAB s.149,399 M7562D, WAS $17,999$235PerMonth sd.$1 ,899 2007 HYUNDAI TIBURON T s.r.$9,599 M7488A, WAS $17,999$239 PerMol st... 12, 199 S,6 2008 PONTIAC VIBE ..9,699 PM1362 WAS $18,999W$9249Pe onIl s,$ 12,852 9 2006 MERCURY MONTEGo 1 , s..$9,899 PMI354$255PerMonth s.$12,995 to0,.9 9 2006 CHEVY COLORADO CREW CAB s.,9,Y999 M7507A, WAS$17,9995257PerMronth $12,999 $ 0,9 1 2007 MITSUBISHI ECLIPSE COUPE sl.$ 10,299 M7572B, WAS $17,999st57 Par Metiflh s$ 2/999 2008 DODGE AVNGER 5,.$11,299 PM1363,WAS$20,999$257PerMonth s.$12/999 2007 JEEP COMPASS s.r.$ 1i1,399 PM1350,WAS$20,199$525PrMonlth s-.S 13,399 2005 TOYOTA SIENNA ILE s.I.$? ,799 M7365A,WAS$21,999$269PerMonth .s 13,699 2008 MAZDA TRIBUTE SPORT 13,999 s 7 1,899 PM 377,WAS $18,999$275Pe Month sa .l. 3,77 n, plus tax, lag & $599 dealer fee. Advertised vehicles are subject to prior sale. Pro-owned payments shown are 72 months @7.99% apr. All offers with approved cred(O 2006 MAZDA MIlA GT CONV 6SP PM1341, WAS $19,999$Z9erMontho s..,$ 14,770 2005 MAZDA RX-8 GRAND TOURING M7411A$295PerMonih sal.$14,995 2008 DODGE NITRO V6 PM1372,WAS$21,999$29PerMonfl h oa s. 15,99', 2008 TRIBUTE SPORT PM1375,WAS'$19,9992VParMorant sa$ 15,499 2000 NISSAN MURANO SL M7566A, WAS $20,999m2ftPr 16Mon sa 16,49 2008 FORD MUSTANG 15 MlES, M7582A,WAS$22,950$s5Pfrkr sA.$ a 689 2007 FORD EDGE PM1347, WAS $22,999 W3PerMosftsl 16,99 2007 ACURA RRX O M7559A, WAS $36,999 f49PerMonth a $28,799' - 5 STAR SAFETY RAT~'~:11INGI~ NHTSA' 2/1 TOTALLY UPDATED Close to schools & town Must See @ $109,000. (321) 271-7800 FSBO 3/3/2 Sunken LR, fireplace, Lg. Kit., DR. FL Rm, fenced. Extra lots available. Horses ok. Reduced to $170.K abo 6825 W Avocado St. Off Dunkenfield 795-5285 Lecanto area, 2/2/1 Block House, Irg rms, Breakfast nook, of- fice, pool. Appli- ances, turn., included. Alarm, sprinklers, Beautiful Comm. 60K Below Mkt $169,000 Mint + Owner (631) 680-3927 NEW HOME Hour Glass sub-divison close to golf & fishing 3/2/2, 2000sf L/A $254,900 (352) 795-6458 TWO HOMES IN ONEI 2/1.5 Home w/FI. Rm., PLUS 2/1 Eff. Apt.att. Water acc. Kings Bay Sold As/Is. Needs work. J135K (352) 628-5498 WANT PRIVACY! Biggest kept secret in CR. 1131 N. Jorie Terr. Crystal River, house built on .11 acres, golf course clean, 2 acres fish stock pond. Will sell house on 1 acre, newly renovated 4/4/2, $299,500 (352) 795-4229 A Bank Repo For Sale 4/3 $50K! $397/mo 5% dwn 20yrs 8% For listings 800-366-9783 Ext 5705 .i)LtOtiolive - Your world first. E or. Do.ay ____ C.-. ri.J,,i d SATURDAY. MARCH 8. 2008 25C . New 3BR/2BA 1408 s.f. tile floors, gar. 560 s.f. 19'6' elevation, city water, paved St. Corner lot, room for RV, Owner fin. $189,000 628-2703 I . 'A Bank Repo For Sale '4/3 $50K! $397/mo 5% dwn 20yrs 8% For listings O00-366-9783 Ext 5705 .%Bank Repo For Sale 3 $50K! $397/mo 5% dn 20yrs 8% For listings ,too-366-9783 Ext 5705 S(2) SMW CUST. VILLAS 3/2/2 on Golf Course & water. Fireplace, Cathedral ceilings, sky-lights, scm. lanai w/vinyl sliders. Exceptionally clean! MUST SEE! $164.900 or Rent S895/mo. ALSO: 2/2/1 on nice Greenbelt, extra drive-way, cath. ceilings, sky-lights, tile, upgraded apple. Exceptionally clean! $149.900 or $795/mo 352-382-5040 3/2/2 $150Kli 1,625 sft. I- Asking $174,900. (352) 597-5221 Picture Perfect Homes SUGARMILL WOODS For Sale by Owner 3/2/2 Single Family Home overlooking Greenbelt. Gorgeous Nature Vlewli $245K (352) 382-4871 SWEETWATER HOME 3/2/2, Heated Pool, Double Wooded Lot under roof 2,905 sf., $237,000. Owner (352) 228-7755 A. Bank Repo For Sale 4L3 $50K! $397/mo 5% dwn 20yrs 8% For listings S800-366-9783 Ext 5705 3.9% Full Service Listing MLS/3% CO-OP 'Why Pay More???? No Hidden Fees BEST OFFER BY 3/24/08 2/2/1, Gospel Island. Deeded lake access. Fncd yd. (352)628-0577 BONNIE PETERSON Realtor, GRI Your SATISFACTION isMy Futurell (352) 586-6921 or (352)795-9123 Charlotte G Realty & Investments LLC CALL ME PHYLLIS STRICKLAND (352) 613-3503 Keller Williams Realty Crystal Manor 2.3 Ac. Mature oaks, prvt. ONE Owner. 3/2/2 htd. pool, tile, corian, FP. $279,900 3 Add. lots available. (352) 795-1454 HOME SHOPPING? BEST BUYS At FURNISHED MODELI NEW 3/2/2 $149,900 $50KBelow Appraisall (407) 227-2821 HANDYMAN * SPEC. CHEAPI CASH S(352) 503-3245 v ,^ ', ' Realtor My Goal Is Satisfied Customers REALTY ONE Outrstaliling Agents Oulst.anding Results A Bank Repo For Sale 4/3 $50K! $397/mo 5% dwn 20yrs 8% For listings 800-366-9783 Ext 5705 BANK FORECLOSURE 7BR, $12,900. 2BR $10,000. For listings 800-366-9783 Ext 5714 MR CITRUS COUNTY REALTY ALAN NUSSO INVESTORS RESIDENTIAL SALES COMMERCIAL SALES (352) 422-6956 A Bank Repo For Sale 4/3 $50K! $397/mo 5% dwn 20yrs 8% For listings 800-366-9783 Ext 5705 1 -,%j 111] 111 or $795/mo 352-382-5040 CITRUS HILLS Bright & cheery 2/2/cprt., Encl. lanai. Too many amenities to mention! sierra Vista Memb. avail. Priced reduced! 1128900 (352) 527-3831 CRYSTAL RIVER (2) Condos for Rent or Sale 2/2 & 3/2 on Water great views, wildlife refuge, boat slip & more. Lease- $1300 - $1500/mo Sale- $330k - $360k. 727-458-4964 INVERNESS Regengc Park Condo Furn. 2/2 1st floor unit, Pool Shuf- fle brd Prvt Res. Quiet $79,900. By Owner 352-341-3454 A Bank Repo For Sale 4/3 $50KI $397/mo 5% dwn 20yrs 8% For listings 800-366-9783 Ext 5705 A Bank Repo For Sale 4/3 $50K! $397/mo 5% dwn 20yrs 8% For listings 800-366-9783 Ext 5705 A Bank Repo For Sale 4/3 $50K! $397/mo 5% dwn 20yrs 8% For listings 800-366-9783 Ext 5705 GaRtis CouNn, (FL) CHRoNicLE 200' WATERFRONT 2 Ac. Upper Withiac BANK FORECLOSURE 7BR, $12,900. 2BR $10,000. For listings 800-366-9783 Ext 5714 129'ON RIVER Cute 2/1, Ig. deck, min. to Crystal Riv. Only $275K (352) 634-0434 2/2 ON LAKE, Totally Remodeled, tile/wood firs., Best offer above $119K. accepted (352) 505-2949 BETTY MORTON -E BEST OFFER BY 3/24/08 2/2/1, Gospel Island. Deeded lake access. Fncd yd. (352)628-0577 HOME SHOPPING? BEST BUYS At kyOwner Citrus.com (352) 795-1555 HOMOSASSA Riverhaven, Move-In Cond. $459K MUST SEEI (352) 422-4261 LET OUR OFFICE GUIDE YOU! realtv OAK Village 6 Cactus St. $19,900 neg. (352) 527-1239 mIIL It illn CATTH PTLIGHT -E 1-15 HOUSES WANTED Cash or Terms John (352) 228-7523 Buyer com WE BUY HOUSES CaSh........Fast ! 352-637-2973 lIhomesold.com 2 adj LOTS In HOMOSASSA for sale or Trade for Class A Motor Home(352) 628-7897 10 Acres Just Reduced to $129,900 Call Sheila Bensinger, Keller Williams Realty (352) 476-5403 Beautiful Pine Ridge 6 acres MOL (on corner lot) by owner. Build your dream home or purchase as an excellent Investment. $239,000 (352)621-3471 or (352)302-7351 CRYSTAL RIVER Nice 2/2 wooded acres, Minutes to water, mail & hospital $130,000 obo (352) 795-6304 FARMS WATER FRONT I AC. Pine Ridge Near shopping, S45K A REAL BARGAIN! (352) 527-9390 CITRUS HILLS /2 Ac. Lot Cambridge Greens. Memb, avail. w/access to 3 Golf Courses, fine dining, fitness center, entertain, programs. $76K (352)637-2450 Crystal Manor 1.5+/-Ac. 9860 N. Cavewood Ave. $47KS. aba (850) 862-5085 LECANTO 1/2 Acre + Well & septic; both tested & inspected. Pwr pole.$22,500K obo (813)792-1355 PRIME LOCATION LOT overlooking, # 1 green In Southern Woods $119,000. 440-442-3713 SUGARMILL WOODS OAK Village 6 Cactus St. $19,900 neg. (352) 527-1239 S. Colorado, By owner, 35+ Acres, close to town, electric, partial fenced, awesome mountain views, Owner terms, $35,000. (719) 598-7941 Gulf Front Lot, white sandy. beach, seawall, Pine Island. $499,000. Permits In place. (352) 634-4955 - g New! Carolina Skiff 18 JVX SuZUki DF70 (6 year warranty!) Aluminum Trailer Only $16,671 1551 S. Suncoast Blvd. Homosassa, FL 34448 9 .IA1 Hii,., .Maine I - Nissan Outboard 2000, 4 stroke, 5 hp 2 props & pulls $650 352-220-1678 2 YAMAHA WAVE RUNNERS, 2000, GP760, w/trailer, $4,800/both. (352) 257-1355 JETSKIs SEADOO(2) GTI SE W07 130hp, Intercooled, 4mo. old, grg kept only 16hrs, seats 3, dbl trlr, 3yr wrty. & mnt con- tract, pd $26k asking $18k , M-- CLASSIFIED * AUTO. BOAT & RV* DONATIONS 43 year old Non-reporting 501-C-3 Charity. Maritime Ministries (352) 795-9621 Tax Deductible * Bass Attacker 17ft., 1989 Aluminum, 40 HP Yamaha, elect. start pwr tilt & trim $3,500. (352)564-1324 BAYLINER 16' Boat motor & TrIr $500obo (352) 564-4292 BAYLINER 25.8' DECK BOAT, 144 stroke, Exc.cond Exc. trailer $12,000. 352-563-6618 OldTown Predator 13' Fishing Canoe w/Anchor, Paddles & Fish Station $850 (352) 527-1941 CAROLINA SKIFF '07 Custom Flats Wide 1780 DLX, 90HP Merc. jet drive, 80lb saltwater troll. Loaded, like new. $11,600. (815) 674-6178 (352) 795-2975 Carolina Skiff '99, 17ft.. 40HP Mariner, $3,000 (352) 302-1957 CENTURY '90 21' Bow Rider w/260hp Merc. Incl. TRLR $4,500 (352) 563-2866 CHAPARRALir. $4,750obo (352) 563-2587 COBIA '05,194CC 115hp yamaha 4stoke I/t 50hrs F/F GPS sportline d/o tri, wrty. below book $18,900. 352-634-2265 COLEMAN 11' Craw Dad Jon Boat w/2 Swivel Seats, 3 hp. Evinrude mtr. $495 (352) 860-2289 FISHERMAN 14' SIDE CONSOLE, 20HP MARINER, ELECT START & TRIL. READY TO GOI! $650obo (352) 476-1113 G3 CC '06, 16', 50HP Yamaha 2 stroke eng. Elec. start & elec trim tabs, live well, boat, mtr, trir, $8500. (352) 438-7338 Plantation Realty. Inc L352) 795-0784 Cell 422-7925 Lisa VanDeboe Broker (R)/Owner See all of the listings in Citrus County at MERCU RY AUR PARTS & SEERUE U Hwy. 19 (J.,t N (352) 795- 1191 s "i :26C SATURDAY, MARCH 8 2008__ __ Recreation [-ji Bats VehEiclesB DOCK SPACE RENTAL N. Seneca Pt. Cry. Rvr. Up to 25' boat. $150mo 352-237-2489/362-8817 HOUSEBOAT, 30' 1965 Rebuilt top to bottom. Sacrifice', Welded Alum. w/trlr., 6 hp Johnson, gas tank, anchor, ropes, PFDS, paddle, mtr. cart. $750 Dunn.(352)465-1509 Kayak 07 Wave Walker ped. Fishing/ family fun, Lk newly- watersports.com $1850. (352) 382-2525 KEY LARGO 21' '99boat '01 Suzuki 140hp '00 tril. bimini, troll motor, fish finder VHF, $9700 (352) 621-3679 KEY WEST '00, Bay Reef 196 loaded, with extra's, $15,750 obo, (352) 527-4910 KEY WEST 17.5 Ft 1999.90hp Yamaha '04 Alum Trir, GPS, Depth Find. VHF Trolling Mtr, Bimini Top Many Options $10,750 (352) 726-3427 t' AM/FM/CD (352) 344-9010 PONTOON '08 20' Bently, 50HP Merc. 2strk. $12,995 GULF TO LAKE MARINE (352) 527-0555 PONTOON I 18 Sweerware "'07 40- 'H Honda less man 25 Hrs. All accossones Like new first $ 11,000. (352) 445-1573 PONTOON 19' '84, 25 hp. Johnson, Clean & runs good $1,995 obo No trir. (352) 726-9736 PonToon PARTY CRAFT, needs work $2500 includes motor & trailer (352) 613-4000 obo (352) 503-5261f twin 150 Johnsons, GPS, depth finder, tuna tower, $24,500. obo (352) 447-0491 RUBBER RAFT Sevylor 9' w/Assecores 2hp Yamaha w/less than 30hrs $700 (352) 489-2157i 1st $30,000 obo (352) 795-4410 STRIKER 17' Custom Built, tunnel with 04 90hp Merc., new RipTide trolling, with pole platform and 2 live wells. Ready for skinny water. Asking $12.9K 352-302-9761 SWEETWATER 18' Pontoon, '05, 4 stk. Honda, vinyl fir., biminl top, Ind. seat covers, radio/CD player. No trir. $10K (352) 228-0935 TRIUMPH 17' '02, 50HP Color GPS/FF, BIm. top. New elec. mtr. Exc. $7,750 (352) 341-1297 WELLCRAFT 1987, 250 Sportsman, 25', Gas eng., 30" draft, 260 hp I/O, alum. trMr. $8,500(352) 344-9651 YACHTSMAN 24' Pontoon,70 hp Evinr. T/T, S.S. Prop, new deck, carpet, bim.top. Lw hrs. Trir. & Kicker Mtr. Avail. $4K Hom.231-852-0061 2 adj LOTS In HOMOSASSA for sale or Trade for Class A Motor Home(352) 628-7897 ALLEGRO '00, 32ft, 454 Chevy, 35k ml., 5.5 Onan gen, AC/Ht Pump, leveling jacks, back up camera, non smoker, excel. cond. $26,500 abo mlles.$35,000 obo (352) 726-0263 FLEETWOOD '89, Bounder, 34 ft., 2 Roof AC's, runs great, 75k mi., $7,500. leave message (352)746-7818 FOURWINDS '98 Majestic 27' Class C, Chevy. 3500 Auto, Sleeps 6, new fridge, qu. bed, generator, microwave. $16K neg. (352) 237-2022 Holiday Rambler '04, Vacationer, 37 ft., Gas, 39k mi, 2 slides, 1.5 baths, W/D, sqt. TV, tow car avail., brake buddy $72,000. (352) 586-6985 HURRICANE 05' 35FT 10k ,3 SLIDES, Like Newl$64,900 (352) 621-3679 INTRUDER '03, 36ft., Triton V10, 2 slides, low ml., KVH, Tracnet, sat dish., many upgrades, very clean, $56,000. (352) 637-1992 ITASCA '01.36ft., 2 slides, 26.' mi aulo O..r.lrg new i nee c4t lde T'.,' -comp.arrme9' 'hOnhr.- k" Cnil pump ': l,. .*eniilc Jee-p 6iK rrni 4 Wheel Dr. Call John both $64,900. (352) 302-5775 JAMBOREE 29',2005, V-10 Class C 12,400mi., Loaded[ Pert. Condition! Ready to go! $41,000 (352)465-2138 MALLARD Class A '87, 77k ml, good tires Onan gen,$8500 obo (352) 344-2687 TOWN & COUNTRY R-Vision B+ Sport Srs '06 22' only 2500 Mi Like New $42k obo 352-613-3784 DAMON '92,32', 454 Chevy eng, 27K. 2 ACs, qn. bed. Non Smok, No pets. Lots of extras & Exc. Condl $18,500 (352) 527-8247 COACHMAN '05, Model 300TB, 30' w/14' slideout, used very little. $11,500. (352) 634-4439 COLEMAN '00 Pop-up. 2 kings, AC, refrig, 2 stoves, TV, sofa, awning, potty, clean.. $4A50obo 352-344-4447 I BUY RV'S Travel Trailers, 5th wheels, MH. Call Glenn (352) 302-0778 JAYCO Designer '99, 32' CHA, Shwr & qn. Bed, 3x12 Slide-out, non-smoker $10.500 352-447-5717 JAYCO QUEST 24', '005th Wheel 1 Slide, IMMACULATE COND. $9,500.OBO (352)486-4711 Keystone-Montana '02,36 ft., 5th Wheel w/ 3 slides, Immaculate cond., used very little $25,900. (352) 302-0202 LUXURIOUS '08, 33' Supersllde.W/D, Frnt. klt.10 yr. warr. $23,500 Pass. older trade. See in Crstal River (407)264-1205 Rockwood 06, 33' Uike New. Never Towed, $18,500 Cell Phone (616)856-9816 SIERRA '97 Fifth Wheel. 31', slide, Exc.Cond. Must Sell! $8,800 obo (352)400-3255 TERRA '02, 26Y, 8.1 Chev. Workhorse, 16K, air ride, generator, very clean. 25,300. (352) 637-2735 TRAVEL SUPREME '92, 37' Fifth WhI, 1 slide, W/D. CLEANI $9,000 obo 352-270-8901/493-9736 WILDWOOD '05,.30 ft. w/silde, extra clean; $13,500 OBO (352) 613-5090 700 R-4 TRANSMISSION Works greatly Needs oil changed & filter $125 (352) 564-8549 '85, 302 FORD Motor & Transmission. Runs Good. Can hear. $425 OBO (352) 726-1755 Astro Truck Lid '01, Fits 6/2 Ft. Bed, Chevy 4 x 4, Crew Cab Great Shape $400. obo (352) 637-6538 CHEVY 383 ROLLER MOTOR, WiseCo Pistons Crowler Rods, Naddler Crank, Pro-Action Heads $4500 or trade (352) 726-2286 LADDER/PIPE RACK Over Cab, Leg Fit 8ft. Bed w/93" STP Holes $125obo(352) 341-1809 TRANSMISSION for Dodge Neon. $300. (352) 489-7193 WHEELS New ZR1 17x8 w/kumho ZR Tires, fits Camaro S10 & many other GM cars never used cost $1400 ask$700 352-422-6611 Honda Accord '98, $600 Police Impoundsl For listings, Call 1-800-366-9813 ext 4246 I TOP DOLLAR I For Junk Cars $ (352) 201-1052 $ CASH BUYER-No Junk for Trucks, Vans & Cars Larry's Auto Sales Hwy 19S. Crystal River Since 1973 564-8333 Consignments Wanted Cars, Trucks .Cycles Detailing Avail. Iron Horse Parts 746-7883 motorscorp.com *FREE REMOVAL OF. motorcycle, cars, jet skis mowers, golf carts. We sell ATV parts 628-2084 WE PAY CASH FOR JUNK CARS Top $$ paid $$ (352) 523-4357 $ $ CASH PAID $ $ Junk Cars, Trucks, Vans J.W. (352)228-9645 Honda Accord '98, $600 Police Impounds! For listings, Call 1-800-366-9813 ext 4246 2 RACE CARS Mini Stock & Hobby Stock, never raced Trailer & parts $2,000 obo (352) 302-3761 '02DODGE INTREPID SE 43 year old 95 Non-reporting 501-C-3 Charity. Maritime Ministries (352) 795 9621 Tax D .ct -*_ BMW D03,3251,A 4 dr. V-6. auto, low ml. Blue/tan. leather, warr. '09 $18,800 (413)773-0698 BMW 1993 AUTO325 IS, Black coupe, fully loaded, sunr4., M3 pkg. runs great, $4,000. obo, (352) 257-2024 BUICK '03, LaSaber custom, beautiful car, carriage top, 117k mi, 2nd owner $4.995.(352) 465-3501 BUICK '03 CXL Rendevous, 57K, leather, htd. seats, ON STAR, 27 mpg. Mint! $12K (352) 422-4095 BUICK '97 LeSabre Custom, 3.8L, 106K, all pwr., Excellent $3,500 (352) 628-0789 BUICK Lasabre Custom '97 4dr Great Shape $2600 (352) 212-2012 CADILLAC 2001 DEVILLE CTS 2004, 3.6L, Luxury warranty. $18,500 (352)341-6991 CADILLAC SevilloadedOne ofSTS '99 Runs good all optlons,V8 Northstar Eng. 120k ml. $4,295(352) 382-2841 CHEVROLET 02, Corvette, Z-06, The Ultimate vet, new michalens, perfect cond. $28,800 (352) 613-5355 CHEVROLET '03, Tracker, AC, pwr. win., drs., locks, CD player, 6 cyl., 21k ml., $9,700. (352) 341-0281 CHEVY Corsica '94, 71k Mi. V6 Excellent Running Condition $1000 (352) 726-0470 ' CHEVY CORVETTE '92, Remvbl GIs Top, Custom Sound System, Exc Cond. $7,500 obo 228-0421 CHRYSLER 06, LTD 300, low mi. Warr, silver, cloth top, loaded, Lg. V-6, OD, chrm. whls. $21,995. (352) 382-1628 CHRYSLER Beautiful blue '94 Convertible. 111K. A/C & new top, tires & battery. Good Cond. $2,500 OBO (352) 726-4745 DODGE Neon '05 Auto. A/C, AM/FM/CD pwr all exc. cond. 49k ml. $7,500 (352) 382-3917 FORD '01, Taurus LX, 4 DR, loaded, V6, CD, alloys, great MPG, garaged, clean $2,850 212-4882 FORD 1991 GT Mustang cony. auto runs great has many extras must sell $4,900. 352-302-2585 Ford '93, Taurus, LS, 4 dr. V6 loaded, cold a/c nearly new tires, exc. cond $2,195. (352) 489-3068 FORD '97 Taurus GL Wagon. loaded, 80K, V6, 8 pass. Great MPG, clean, $2,850 352-382-7764 FORD Focus '01, white, Sta. Wag. Gas saver, exc. cond. $4,800 (352) 628-3229 FORD Mustang Conv. '04 Anniver. Edition/ Wht/ Tan 42k Mi $10,500. k Firm(352) 270-3490 Ford Mustang Conv.'03, 37K ml. Lther, 6/CD Chger, grt/shape $13,500. 352-419-4319 GEO '97, Prism, 4 new tires, cold AC, 30 MPG, well maint., vehicle history. $2,500 (352) 476-2488 r 1l I '02, Accord EX, I I Low Miles, 1 owner, I $10,990 or $189. Mo. WAC1-866-838-4376 . imm mm Elm HONDA '92 Accord WAGON w/RV tow bar, htch & rf. rack. New CD. Loved & cared for. $3,400 (352) 344-4883 HONDA Civic EX '99 Red, 2dr,auto,sunrf,spoilr, 125k ml. Must Seell $7,500 352-637-1989 0HYUNDAI '01, Sonata GLS, I Auto, CD, 67K miles, 38MPG, $4,990 or I 1-866-838-4376 I. mlldm m m Hyundai Sonata '05, loaded, new tires, brakes, sunroof, auto, 64K. $6450 (352) 302-9217 INFINITY '95 G-20, 4 dr.133k, 4cyl. 35 mpg. new tires & spare, clutch, 5spd. $2700 (352) 465-7961 JAGUAR '01, S-Type, 3.0. Great MPG! Super Clean. Gar. kept. Silver/cream leather int. 85K. $9,500 obo (352) 613-2848 JAGUAR '76 Rare coupel Silver, new paint; 63K mi., $11,900 obo (352) 527-4221/908-763-8384 KIA Sportage '98 Auto 4wd 35mpg 49k ml. 1 owner A/C 4dr, Crystal River $4300 (727) 207-1619 Lexus 406, Sports Sedan, GS 430, Immaculate, low mi., mi. 75,000 mile warranty $21,900 (352) 746-9649 LINCOLN '95 Towncar, Cartier. Clean, Exc. Cond. Fully loaded. $3,995 (352) 637-7114 LINCOLN '- Mark Villi Cla.slc,96_, 126K.P WFirL.3nir- Leolher '.'er r nice Coarl $2,000 (352)621-0848 MERCEDES 450 SL 1978 81K, w/ both tops $5,500. (352) 257-1355 MERCEDES '83, 380SL, 93k ml., maroon, 2 tops, new canvas top & tires $7,000. (352) 746-5229 r MERCEDES I I '87, 560 SL, 126K, White, Both tops, I S $12,000 l 352-586-6805/ ! 382-1204 U= m. m m m m =m EII MERCEDES C 280 Sport, '97 Whi w/grey leather, ga- raged, non smoker Exc/con. 71850,k" one owner miles". $7950 (352) 341-4864 MERCURY '01. A-i cond. Marqu. L.S. All leather, all pwer AC, CD. 1 owner $7,000 /obo (352) 527-7081 MERCURY 1995 Sable Pwr All,Cruz, 4dr $1900 obo (352)419-4292 MERCURY 2001 Sable LS Wagon, 43K ml. Ithr, exc. cond. $6900. (352) 746-9649 MERCURY '87 Marquis. Clean, 2 dr. V-8; Runs Great! $1,000 obo (352) 726-1755 MERCURY '88 Grand Marquis, Loaded Fu. Pwr. Exc. Cond. $1,595 352-563-2480/302-9345 MERCURY '97, Sable GS, V-6, Auto, 126K, Fully loaded Cold AC. Exc. Cond. $2,500 (352) 453-7326 MERCURY Sable LS '05, Exc. cond, loaded, all pwr/leather 35k, mi. $12,500 obo (352) 322-0075 r NISSANT '05, Sentra SER, S33k miles, CD, Alloys, $11,990 or S$199Mo.WAC, 1-866-838-4376 PONTIAC '05, G6 GT, I Leather, Sunroof,. 1 owner, 19K, orig., I Call for Deal 1-866-838-4376 L .=.- M = SATURN SL2 '99 4dr. Auto 60k MI Loaded Exc. Cond $3500 (352) 212-2012 TOYOTA '03 Camry LE, Loadedl 4 cyl, auto, CD, 94K, pwr. window/locks/seats. $7,900 (352) 628-6537 TOYOTA Tercel '97 auto. 128k, 32 mpg, cruise,cold a/c, runs & drives perfect,very dependable $2;800 (352) 697-0889 VOLKSWAGON Beetle '00 Diesel 50mpg Pwr all, lethr. Spoiler Mn. rf ABS All options $9,800 352-5867621 Honda Accord '98, $600 Police Impoundsl For listings, Call 1-800-366-9813 ext 4246 BUICK '74 Convertible, Red, fu. pwr., AC, 18K, cloth int. Exc. Cond. $8,400bo (352) 382-5915 FIELDSS CHEVROLET '55,2 Dr. Post, 350, V-8 auto, Pwr. Disc. Brk., AC, dual exhaust. .352-621-0182 727-422-4433 CHEVY '94V2 Impala SS, Book & pics on all wk. done. This is a fast coar $11K firm (352) 527-1510 CORVETTE '81 2nd Ownr, AbsolutlelyGorgeous,AII Matching #s $15k Firm 352-422-5685 GMC. '66, Fleetside, chopped tight 400 trans am mtr, headers, project truck $5,000 352-726-4710, GTO 1967, The real deal, older restoration, just out of storage $25Kobo (352) 621-0666 MERCEDES '72, 350SL, both tops. Car has been in storage. $7,900 (352) 586-8576 MGB Convertible 1977, 57k mi. Blue, many xtras Excellent Condition $10,500(352) 628-0281 PLYMOUTH Reliant K-car '88 93k ml Runs/Lks Good, Exc Cond $2000 obo 352-422-1267/465-1959 Honda Accord '98, $600 Police Impoundsl For listings, Call 1-800-366-9813 ext 4246 S HEAVYY '04, 3500, LS Dually, | Low miles, Rare find, | Call for Deal 1-866-838-4376 CHEWVY '96 Silverado, Ext. Cab, New tires, tune-up. Exc. Cond. $4,000 obo (352) 344-1948 CHEVY Silverado 2500 '94 162k mi. new tires dual baft. TRLR Pkg. $3000obo 352-628-1208 CHEVY Silverado '83, 3/4 ton, 83K, mi. second owner 5th whl set up & topper $7K firml (352)637-35521 CHEVY SILVERRADO, 91 5 Speed. 6 cycle Looks & Rans GreatI $3200 (352) 522-0134,900 (352) 795-4095 DODGE Ram 3500 '00 Dually, Cummins Turbo Dies. 5Spd, Leather 170k ml $8,500 (352) 527-9303 FORD '00. F350 TurRlDL -, .: .near, run irtai ". " Ic.,& mi $18,600. firm (352) 465-0878 FORD 03 RANGER EDGE, NEW tires, mag/whls, a/c CD 116k mi $5900 (352) 621-0959 CHEVY S-10 1995, New standard. trans. $595. (352) 465-3167 io mm m mmn m- FORD I '04, Ranger, Auto, I AC, CD, Bed Liner I I $8,990 or $169 Mo. WACI-866-838-4376 FORD 1995, F350, 1 ton dually, crew cab, 4 door, 140k on rebuilt turbo eng. new batteries, good ti- res, work truck. Needs little TLC asking $5,100 obo over $4,750. firm 352-344-8334,302-0850 FORD '87, E-350 8 X 14 BOX TRUCK. Rebuilt 351. $1,950 (352) 628-1196 FORD '94, F350, Dully, crew cab, diesel, 7.3, $4,500. , (352) 228-2268 FORD '98, F150, 3DR, extra cab, V6, auto, AC, 25MPG, Cruise, 100K + $4,500. (352) 563-0615 Mi. $20,900 (352) 621-0675 FORD FX4 '05 Black, Custom Wheels etc.Low Miles. Brand new condition. $22.5k 382-7817 GMC '97, 6500,24' encl. box truck, caterpillar diesel, new tires, good cond $6400 obo 352 637-0188 NISSAN Titan '05 Crew upgrad' Chrome PKG Tow PKG, Exc Cond. $19,900 Mkl off 352-344-4453 TOYOTA '99 Tacoma Ext. Cab. 6 cyl. auto, AC. Great Cond. $8,399 (352) 476-5648 cell TOYOTA Tacoma '05 5Sspd ,37K ml. Bedliner, Tool Box, $11,000 OBO 352-344-9273 Honda Accord '98, $600 Police Impoundsl For listings, Call 1-800-366-9813 ext 4246 r mm CADILLAC '03, Escalade, I Low Miles, Leather, | sunroof, $20,990. = or $339. mo. WAC 1-866-838-4376 CHEVY Tracker 4 x 4 '99 5 speed, air, asking $1500 obo. 352-503-6028 DODGE 99, DURANGO 4x4, 80K ml., loaded, dual air & exhaust, Exc. Cond. $7,400 obo (352) 344-0505 FORD '04, Ex.ore limliaed 4 J' 2k nmi loaded greaI -r.ape in.emess $14,500. (352) 419-4319,, FORD '05, Escape, limited, 4 X 4,37k ml., loaded, great shape, Inverness $14,000. (352) 419-4319, FORD 06' Explorer, EDDIE BAUER, Like new. UNDER 17K miles, white/gold, loaded, $23,000. (352)212-2439 FORD 2000 Explorer XLS. Blue. Good Cond. Runs great! $4,300 (352) 613-5036 Highlander '04, Limited, 4 x 2, V6, Towing pkg., loaded, 41k ml., HONDA '01,oCRV,Auto, AC, CD, Come Tow Me, I 65K ml., $9,990 or $179mo. WAC 1-866-838-4376 m- -3 m IM HONDA S'05, Odyssey Touring Navi, DVD, Leather and More 7 yr. 100K I warranty Honda Certified 21,990 or 3.9 apr. 60 mo. 1-866-838-4376 L .m m=.. m J I HONDA CRV ,03 only 39k mi. Uke New, Lady Driven, Garage Kept $13,500 352-637-4206/476-6996 HUMMER '06, H3, Red, Loaded, $24,995. (352) 489-0834 JEEP GRAND CHEROKEE '04 IN NICE CONDITION. $6k CALL 628-4727 F "TOYOTA '06, RAV-4L, Auto, I I AC, CD, Low miles, 1 owner, Befter Hurry | $17,990 or $299 Mo. | WAC, 1-866-838-4376 Honda Accord '98, $600 Police Impoundsl For listings, Call i-onn nAozzri o-iayA*AfAt FORD '04, F-250 Lariat, 4 X 4, Crew Cab, diesel. New Rhino bed. $19,000 352-634-1776/527-1040 JEEP '01, Wrangler, 6 cyl., 32k ml., hard top 5 spd., amber, excel cond. Al 'fnnf 3iO soo29n9m CHEVY 2000 HANDI-CAP EQUIPPED Conv. van w/raised roof.Vangater II lift, auto dr. opener, 6 way pwr. seat, low mi. 53K, Exc. Cond. $15,900 OBO (352) 746-7215 CHEVY '95 Cony. Van. Leather. New tires & exhaust. Cold AC. Runs great! $6,900bo 352-465-2561 CHEVY' '99 AstroAan. loaded S -.oh 'ever9qir.' Mh ., - ioom cond ,J4 'C ' 352-563-2118 CHEVY Clean '03 Astro Mini Van. Red. to $7,995 firm.Low mil. New Tires, Dbl. AIr. (352) 628-6176 CHRYSLER '01Town & Cntry Limited, 3.8 litre, 89K ml. silver, power doors, exc. cond. $8,200 352-341-6920 DODGE '95, Customized Van. Clean, lo mi. Michelein tires, 18mpg, mint cond $5900/bo 352-527-3125 DODGE Grand Caravan SE '03 25k mi.ml. $4,300. (352) 344-3811 FORD 2001, E-150, Hi Top Cony. Van "Limo Style" very clean, V8, 16MPG 99K Blue bk $9,000 obo (352) 746-7562, 9a-8p FORD Aero Star '88, fair cond runs, good motor & transmission $800 (352) 726-8563 FORD E-150 '01 Work van V6 Shelves, PW, PL A/C, FM/Cass. mag whis new trs, Cln, well mntn'd, runs strong $7,000 (352)341-2078 Handicap VAN '95 CHEVY "LOOK" 8001b Uft Transport the Big Folks Runs good Low Mi- les A/C $8,995 Jim (352) 726-3289 HONDA '02, Odyssey, 62k mi., leather seats, dual pwr sliding doors. Reduced 129.0 (352) 464-1509 SAFARI GMC '06 LOOKS & RIDES GREAT II FACTORY TINT. $1895 OBO (352) 527-4114, $2850. (352) 637-5143 POLARIS Ranger 04, 2x4 hard top, 38 engine hrs.$5,200 352-586-7389 Consignments Wanted Cars, Trucks ,Cycles Detailing Avail. Iron Horse Parts 746-7883 motorscorp.com *FREE REMOVAL OF. motorcycle, cars, jet skis mowers, golf carts. We sell ATV parts 628-2084 mi., Loaded! $14,500 (352) 382-9304 HARLEY DAVIDSON '07, Sportster XL883L, gar. kept., fact. & ext. warr., blue pearl, 375ml. $7,200., 352-400-5538 HARLEY DAVIDSON '81 Shovelhead, 80", completely serviced, gd. tire/shape. $8,000 352-522-0401/726-4109 Harley Davidson '99, Police specials Road King, full dresser, 1450CC $10,500., (989) 891-7236 4 HARLEY Softtail Custom '07 Grg Kept, Aft Mrkt, Pipes, Very Low Mi. Exc Cond .All Extras $20k obo (352) 726-5168 HARLEY Sportster '73 1000cc, runs strong, $2400/obo (352) 794-0299 HONDA '06 VT750 Shadow Aqro, Orange/black, 233 m i., $4950 (563) 260-3548,; Inverness HONDA '98, Valkrie Trike, 17k mi., hot paint job. Must Sell $14,900. obo (352)302-8046 HONDA SHADOW ACE 750 W/ MANY ADD ONS AND UPGRADES. LOOKS & RUNS PERFECT. $2400. 352-228-1377 Kaw. Vulcan 05, 1600 classic, 7k, mi. V & H pipes, leather bags, w/s, + $2000 maint contract, gold, perf. cond. $7500W (352) 382-4568 K1AWASAKI '04 Vulcan, 800cc, 15K, 32 mpg. $3,000 obo (352) 419-4796 Daryl KAWASAKI . 1000 Concours, 1999, 11,500 ml. $3,800 (352) 341-1142 MOPED Honda 49cc Excellent Condition $600 (352) 637-1219 MOTOR SCOOTER '04,50cc, $600 (765) 278-9315 Homosassa Springs SUZUKI '02 VL1500 Intrudel 10,300 mi., Cobra exh., leather sddlbgs, It. bbr, $5,375 (352) 212-3229 Suzuki Intruder '02, 1462 cc, Exc. cond, 13k, mi. Windshelld k bags, new fires, many extras $5200 obo. (352) 201-0911 YAMAHA '06 Roadstar 1700cc, 260 mi. Saddlebags, Hwy bars, Shwrm cond. $8,300 (352)447-1244 YAMAHA WARRIOR '02 Road Star Warrior, 1700 cc 2,000 orig. rfii., plus extras, $6,000:1 (352) 422-4786 HAPPY ST. PATRICK'S DAY March 17th wS who have gone green You will receive: * 2.2.5 Ad on our Go Green Page March 17th.\ Includes spot color. * 6 Line Classified Ad for 30 Days under our Go Green Header * Your ad will appear online for 30 Days. reasons to go green. SThis page will include editorial with tips & Advertise for 30 Days I1 9 CITRUS COUNTY (FL) CHRONICLE SATURDAY, MARCH 8, 2008 27C 41AIIJ i Il IIl I II lIL 2008 BUICK LACROSSE B FRM ,14 72008 PONTIAC i&6r 43ss - RBUO -FROM' 2008 BUICK ENCLAVE SVB 2008 PONTIAC- VIBE ,. 2008 GMC SIERRA 1500 CREW,,.. OBUY FROM 2008 GMC ENVOY S BUY FROM NE CARE LOOU KI']ED CAR PRICE'U. I [H kr 2004 CHEVROLET 2005 BUICK 2005 BUICK AVALANCHE 1500 LESABRE CUSTOM LESABRE LIMITED Power Seats, P/L, PNVW, Auto, P/L, PAN, CD, P/S, Auto, P/L, P/S, Cruise, Tonneau Cover. Cruise Allo Wheels Heated Seats. '14,495 '12,22 1.6,605 '---^ ^ .^-pot ^ 2005 FORD F-250 Crew Cab, P/L, PAN/W, Custom Cruise, Bed Liner 4x4. 717,650 2005 CHEVY COLORADO CREW CAB Alloy wheels, bugshleld, P/W, P/L. $12,689 2003 GMC 2500HD Crew Cab, Diesel, SLT, Leather, Onstar. $20,850 2006 PONTIAC G6 GT P/L, P/W, CD Player, Leather, Convertible Top. $19,995 2005 BUICK CENTURY Leather, CD, Dual Climate Zone. $11,575 2007 CHEVROLET TAHOE LT Auto, P/L, P/W, Trailer Towing Hitch. $25,918 2006 GMC 2500HD 4X4 REG CAB LONG BED Only 27,000 miles, CD, bed liner, tow package. '16,665 O 2002 JAGUAR XJ 2007 BUICK 2004 CHEVY COLORADO 2007 BUICK VANDEN PLUS RENDEZVOUS CXL CREW CAB Z71 LS TERRAZA CXL LOADED! Leather, heated & Auto, P/L, P/W, P/S, Cruise, Only 34,000 miles, cruise, 6 Leather, DVD, power seats, memo sunroof, nav. Pwr Rear Hatch, Leather. disc CD, tow package. dual sliding doors, CD. 1 6,383 21281 14,285 2007 MITSUBISHI OUTLANDER XLS P/L, PAN, Power Sunroof, Cruise. $20,750 2008 PONTIAC SOLSTICE CD, On*Star System, P/S, 8 Way Power Seat $24,350 I tzr" 2005 BUICK 2004 HONDA RAINIER CXL ACCORD LX Only 23,000 miles, Auto, P/L, P/W,CD leather, CD, dual Player, Cruise climate zone. $ 10, '15,500 940 2006 CHRYSLER SEBRING 2( CONVERTIBLE TOURING Leather/suede, 6 disc CD, cruise, P/W, P/L. $14,725 006 CHEVY EXPRESS 2007 PONTIAC 2005 GMC STARCRAFT G5 C1500 SIERRA Leather, TV, DVD, Sunroof, CD, cruise control, Auto, P/L, P/W, Stereo, woodgran. PW, P/L, spoiler. CD P er, Leather 28,750 a13,950 1',945 2008 GMC ACADIA SLT. Leather, sunroof, tinted windows, OnStar, running boards. $31,759 2005 BMW 2006 GMC 2005 CHEVY 7451 ENVOY XL SILVERADO EXT CAB Navigation, sport Auto, P/L, P/W, cruise Leather, OnStar, 6 disc package, black. control. CD, rain guards. $32,796 '18,715 '17,250 YUKON Only 8,000 miles, leather, DVD, bushield. $29,595 2003 CADILLAC 2003 GMC DEVILLE SIERRA 1500 SLT Power Drivers Seat, Auto, P/L, PN/W, CD Power Drivers Seat, Play eather 4x4 P/L P/W, Cruise Control. Player, Leather, 4x4. *14,550 '14,738 2008 TOYOTA COROLLA LE P/L, P/W, CD Player $14,995 2005 CHEVY 1500 4X4 CREW CAB FabTech lift kit, dual exhaust, tow package, CD, XM Radio. $19.795 1994 MAZDA B4000 P/W, P/L, cruise, alloy wheels, topper. $2,500 ;W AL- 2004 GMC YUKON XL DENALI P/L, PN/W, Satellite Radio, Homelink, PwrAdj Pedals, Sunroof. '21,834 2UUO rHummMIE H2 4X4 Only 20,000 miles, leather, sunroof, 6 disc CD, DVD. $ 7.Qtnn 1996 NISSAN PICKUP XE KING CAB 5 speed, bedliner, rain guards. $31500 ZUU UIIC 2002 LINCOLN TOWN SONOMA CAR EXECUTIVE Extended Cab, Alum Power Seat, P/L, PNV/W, Wheels, Tinted Windows. Cruise. $8,195 '8,350 2007 GMC YUKON XL DENALI Leather, DVD, sunroof, heated & memory seats, LOADEDI '38,164 2004 GMC CANYON SLE CD, 3 Point Rear Seatbelts, Bed Liner. '11,656 4. 2003 TOYOTA CELICA C. wheels, sunroof, spoiler, CD, cruise, PANW. I 11,594 2004 GMC 2006 GMC 2500HD 2007 BUICK 2003 GMC 2007 GMC 2007 GMC SIERRA SAFARI SIERRA SLE LUCERNE CXL SONOMA SLS ENVOY DENALI 2500HD SLT Auto, P/L, P/W, CD Auto, P/L, P/W, CD P/L, P/W, Power ATach, ruTilet Sing Auto, P/L, P/W, Satellite P/L, PAN/W, P/S, 4WD, Player, 3rd Row Seating. later, 4x4, Towing Pkg Drivers Seat, Cruise. Wheels Radio, P/S, Cruse, 4WD Dual Climate Control P12,688 P31,610 '23,250 '11,892 $26,921 '35,828 2007 DODGE RAM 1500 SXT P/L, P/W, AM/FM Stereo & CD Pler, Bed Liner. 1 ,450 2006 PONTIAC G6 CONVERTIBLE Only 7,000 miles, leather, CD, heated seats, cruise. $23.2fiR 1999 FORD E250 HIGHTOP 1999 PONTIAC CONVERSION VAN GRAND AM TV, VCR, Alloy Wheels, P/ CD, Alloy Wheels, Cruise, W, P/L, Cruise, Tow Pkg. P/W, P/L, Tinted Windows. .a1Q7 sI$.cnn 2002 CHEVY AVEO LT CD, sunroof, P/W, P/L, cruise. '8,397 Zuu9 manIumn utAnu MARQUIS GS Full top, leather, cruise, P/W, P/L, power driver seat. '9,295 2007 BUICK LUCERNE CXL Only 15,000 miles, leather, nav., OnStar. $22,250 ;2000 GMC SIERRA 2002 JEEP 2006 JEEP S EXT CAB WRANGLER SAHARA WRANGLER SE SToppr, CD, P P/L, cruise Auto, Stereo CD Player, 22k, 6 Speed Manual, I control bugshield. Cruise, Alloy Wheels. CD Changer, 4x4. I 8979 I14,787 $5,219 2006 MERCURY 2004 LINCOLN 2003 HUMMER 2005 MAZDA MARINER TOWNCAR SIGNATURE H2 4X4 RX-8 Only 14,000 miles, CD, Leather, power seats, Leather, sunroof, 6 disc Leather, sunroof, CD, cruise, power drivers seat. alloy wheels CD/Tape. CD tinted windows. spoiler, P/W, P/L. $13,772 I.15,595 219395 14,225 2006 TOYOTA TACOMA SR5 TRD OFF-ROAD CD, alloy wheels, tinted windows. $21,395 2004 BMW 325 CI CONVERTIBLE Alloy wheels, CD, leather, power seats, memory seats. '19.562 1999 NISSAN QUEST P/L, P/W, Alloy Wheels Cruise Control. '5,555 w 7uM ',ijm 2000 CADILLAC DEVILLE. Only 29,000 miles, leather, CD, OnStar. '9,725 2003 BUICK REGAL LS Auto, P/L, P/W, PIS, Cruise, Fog Lamps '10,416 2005 DODGE MAGNUM SXT SE Leather, sunroof, tinted windows, CD, cruise. '10,595 2006 CHEVY SILVERADO EXT CAB 4X4 Work truck, dual climate zone, tow brake, cruise. $10,750 2004 ACURA RSX CD, P/W, P/L, tinted windows, sunroof. '12,250 Prices include all available Incentives, rebates, $2,000 cash or trade equity, conquest and $500 Military Rebate where applicable, includes certificates while supplies last Prices available on in stock Eagle invoice units only. All vehicle prices are plus tax, tag, title, dealer added options and dealer foe of 499,50. All Incentives & rebates assigned to dealer, WAC, "On 2008 Light Duty Sierra's, WACVehicles subject to prior sale due to aggressive pricing and early print deadlines. Pictures are for Illustration purposes only, Dealer not responsible for typographical errors Sorry, all prior sales eluded. Inglis luiinnoliion tca 1011.- 14^ ,,, ^ EAGLE' s - uiaCronAGMcLE T r ; Inverness prl Hmll Hwy, 98 N l Springs i3 ----------- Sprng HillI Hwya. 50-- Brooksville iihS CO.LUNTY (PL) CfHROICLE-1--- - II tA #FR~M. FROM FROM I i .1 1 '4 i'e~ Ia. 'S. Ia. '4. I. ~4. A * V * ~ * Ia.-. in * I. rl~wic nrf fr Irmvnwf .,,,,F (111 3 I 7rd TA re FA LIE UO 2000 LINCOLN TOWN 1993 Gmc 2002 JEEP 2002 JEEP GRAND SIERRA 15430 SL CAR EXECUTIVE WRANGLER 4X4 CHEROKEE LAREDO T1 r, Bed Liner V-8 OHC, P/L, P/W, 5 speed, cruise, CD, AIC, P/L, PNV, CD Changer/ Cruise, Leather. alloy wheels. Stacker P/S Cruise 4X4 $9,555 $6o895 -$7o793 19099 CITRus COUNTY (FL) CHRONICLE Mi T'S A NEW DAY at Cl-I I~YS L~E~ 0 m CS L Jeep ALL REMAINING 07'S MUST GO! FOR A LIMITED TIME ONLY AT CRYSTALt jJ -MA DODGE RAN D CA&RANVANJ NJFY : NJ DODGE RAM 1500 QUAD CAB FREE 24HR RECORDED FREE 24HR RECORDED RIPECIAL" INFO "SPECIAL" INFO o o AND PRICING ON THIS I AND PRICING ON THIS VEHICLE VEHICLE 800-584-8755 EXT. 4113 I 800-584-8755 EXT. 3119 $24- 82207$3 69.at M5A8 1 StartingaI V41--------- --- NJ10YJ .0 DODGE CALIBER N J CHIRYYSLER PT CRUISER NI W/ DODA0 CHARGER I I FREE 24HR FREE 24HR FREE 24HR RECORDED RECORDED RECORDED "SPECIAL" "SPECIAL" "SPECIAL" INFO "FONINFO AND PRICING AND PRICING AND PRICING ON THIS ON THIS ON THIS VEHICLE VEHICLE VEHICLE 800-584-8755 800-584-8755 o800-584-8755 EXT. 4111 EXT. 4106 EXT. 3112 a' MSRP .....*R )I $18,630 _-.fJ W $1 6,445 t [] qtarjing4at Starin 2na Aarttngat 0)I QC DOD I. DAK'OTYA CLBUB CAB I NEIE- J 29,OWOdQ Q)HRY(SLER SOOQI .II29P._.LJ FoS3E0 RA] 150,0 REO.9 AABJ FREE 24HR, FREE 24ER FREE 24HR ECODED I RECORDED "ECO DED 82 AND PRICING AND PRICING 8 AND PRICING ON THIS 'ON THIS ON'THIS VEHICLE #0 VEHICLE -VEHICLE 800-584-8755 800-584-8755 800-584-8755 EXT. 4116 EXT.3101 EXT. 3119 Starting at aq ,, ..Starting at a, I I *Pdces listed warranty and compliance details. "On select 2008 makes and models WA.C. Call for specific pricingFor a limited time on select makes and models WA.C. Manufacturers incentives and rebates are subject to change without notice. CRYSTAL PRE OWNED 14 AtI Open ho~% ~ t ~ ARPA 1997 FORD RANGER J80156F 6,A 950t IA SPE INI m I 2003 CHRYSLER PT CRUISER J80122A $7,950t "A F 24HR RECORDED "SPEiAlp INFO AND PRICING ON THIS VEHICLE I ARnoILO VR IVT'e14.i _____ I- 2004 DODGE NEON 2005 CHRYSLER PT CRUISER 4036P D80107A $9,888t $11,888t FREE RECORDED FREE M RECORDED E PRICING ON THIS VEHICLE PRICING ON THIS VEHICLE I ann.ARRI7AA FT. AiAn I + n.MA.75 ErVr 414 2007 CHRYSLER PT CRUISER 4140P $12,850t _ "SPECIN INFO AND +" MR" DA 61RE E ."- "l A ADc 2005 CHEVY MALIBU 3842A $12,888t S FREE 24HIR RECORDED lA_ SPECIAL" INFO AND PRICING ON THIS VEHICLE + OAR EA 5OV UER E Ad -1 2005 CHEVY IMPALA 9932P $12,988t FREE 24HR RECORDED SPECIAL INFO AND PRICING ON THIS VEHICLE I 800-584-8755 EXT. 4139 2005 CHEVY TRAILBLAZER J80130B *12,9981 AZ SPE ImWf1"!R0un 2006 DODGE DAKOTA B80261A $16,950t 2006 DODGE RAM 1500 J70442A $16,995t - SPE imon Amn" 2007 SUZUKI SX4 2004 BUICK LESABRE 2003 JEEP WRANGLER 2006 CHRYSLER PT CRUISER J80081B D80194A D80146A 4077A $13,998t $14,888t $15,488t $15,888t I. INFO AND N FSPOINFOAND I SPE INFO AND I*SPE INFO AND PRICING ON THIS VEHICLE PRICING ON THIS VEHICLE PRICING ON THIS VEHICLE PRICING ON THIS VEHICLE a.1 ann.Ena.nv IVT I4~1 .RNN..RARl7 T 1 9 I0annR.M.A7 Extr 4.5 8 R0.dT.84J755 EXT. 4149 2004 JEEP GRAND CHEROKEE 4086P $17,950t -A INFO AND PRICING ON THIS VEHICLE 2005 FORD F150 JB0132A $19,850t -KhL A4Ij2HR RECORDED ' SPECIA.s INFO AND + PRICING ON THIS VEHICLE DAIOA-21 A "VB .T IdEt 2007 CHEVY COLORADO 4157P s19,888t ~L FREE 4R RECORDED J~k SPECIAL INFO AND PRICING ON THIS VEHICLE 800.584.8755 EXT. 4151 2007 HONDA CIVIC 2007 6HEVY SILVERADO 1500 2007 JEEP WRANGLER 2006 CHRYSLER 300 B80172B J80180A J70168C J70308A $20,888t $21,950t $22,900t $23,888t FREE aq RECO rRU eff RECO p.m M,% RECORDED -To Mq RECORDED USPE INFO R -ISPE INFO RDED SPE INFO AND "SPE INFO AND PRICING ON THIS V, [+ PRICING ON'THIS VEHICLE # PRICING ON THIS VEHICLE PRICING ON THIS VEHICLE AND + liAll-42"744 rVT A4 49 AMARMT Rnn.-AALR759 PIT. .11 ril 900,qM 755 EXT. 4145 1005 S. SUNCOAST BLVD., HOMOSASSA 2077 HIGHWAY 44 WEST, INVERNESS 1-877-MY-CRYSTAL CpRYTAL AI TOrCOM E-31 C30f Jeep CRYSTAL AUTO M 0 TIVE VISIT US 24/7 @ CRYSTALAUTOS.COM AlIt! Z15%; SATURDAY, MARCH Z5, ZUUZS a i T 4l 12drl-' MARCT4 R- 2008 , Cimu 6'UNJY(FL (JHoxIFSATURDAY, MARCH 8. 2008 ID VPL Vol. 3, No. 3 SA guide to building in Citrus County, An advertising publication of the Citrus County Chronicle Ron Whitehead sits behind his desk in the office at 6444 W. Homosassa Trail, Homosassa. His phone number is 628-4211. BARBARA HARTLEY/ For the CrrornIle ii I, -~ Builder eyes new options By Barbara Hartley Blueprints Editor Ron \Whitehead has been a licensed builder in Citrus County off and on since 1979. He is present ttring to ride out the slump in building b\ doing remodeling and renovating. He also has a home under construction, but is waiting on the owner to return from overseas so it struction of an can be completed. indoor pool in the He looks back on Gulf Coast some of the chal- Physical Therapy lenses he faced in Building where the the past like the humidity had to be installation of an 55 degrees, the elevator and renova- water temperature tion of the entrance to the Masonic 83 degrees and the spa 105 degrees. Temple in Interness and the con- He is looking forward to a ne%\ challenge constructing a dome home for Da\ id Pressler in In erness. With all of the pertnmting done. the foundation under construction, the next step will be placing a fabric bal- loon inflated with air under pressure. On top of that balloon \\ill go a steel frame which h will be bent to shape. Please see ..::-;EPage 3D Speed up this slow market Since last month, I had to make a trip to Ohio and was treated to freezing rain, sleet and- snow. I can't begin to tell you how., much it made me love Citrus County. This issue of Blueprints focuses of re- modeling, reno- vations and what you can do to help sell ar,,ara your home in this slow mar- ket. My visit with Hartley Blueprints editor Ron Whitehouse emphasized just how many of the builders and construction workers in our area are struggling to keep afloat until the market turns around. Most of the developers and builders that I have talked with are optimistic about the future and are looking forward to bet- ter days. The dome home that Whitehouse is building in Inverness is not a new concept, but it certainly has some possi- bilities for a relatively inexpen- sive home which is certainly easily cooled and heated and would have great hurricane sta- bility. The inside plans reminded me of the concrete teepees we stayed in during a trip west. They were very unique, surpris- Please see EDITOR/Page 3D W-11 -- - cnv cocm, Iwom, P,,.Ns.ocioos I y I IMIOA I I jv. CiTjus CouNTY (FL) CHRONICLF ZLP SAT URDLAY, M~ARCH 0,06 *MAP IS FOR ILLUSTRATION PURPOSES ONLY. LOCATION OF HOMES ARE NOT EXACT. Carrollwood Golf Harbor Path, Inverness, FL 34450 Cosgrove Builders 11145 W. Bentbow Path, Crystal River, FL 34428 i O Maronda Homes Highridge Village 3266 N. Burroughs Path, Beverly Hills, FL 34465 o Maronda Homes Crystal Manor 7840 N. Basswood Ave., Crystal River, FL 34428 Parade of Homes Special Save $20,000' 9 $169,400 Maintenance-free single-family homes in a masterplanned waterfront community surrounded by scenic woodland preserves, sparkling freshwater lakes...all adjacent to Point O' Woods Golf Club. A world apart, with a wonderful choice of award- winning home designs now at a special price of $169,400 including homesite, through 3/31/08. Come on out and see our Model Home. be Come on out and see our Model Home. You'll be Visit today or call (352) 341-0400 or amazed at how refreshing and relaxing our 1-800-378-6340 toll-free. community really is. Models Open Daily: Mon Sat 10 am 4 pm, Sun 12 Noon 4pm. From US 41 take Hwy. 44 East to County Rd. 470 (Gospel Island Rd.) turn left one mile to entrance. S to Crystal River4 eA INVERNESS to good through 3/31/08. 41 See sales associate for details to Brooksville WHITE EGRET PATH, INVERNESS, FL 34450 CARROLLWOOD DEVELOPMENT COMMUNITIES 73B7m Cri'Rus Coumy (FL) CHRONICL RT T T tTTMTT'S dBW 2 .. .Q q.o maoR COUN Y ( Q O C-IRUbS A dome home in Texas similar to one under construction in Inverness. -- . -. A home in Citrus County by builder Ron Whitehead. BUILDER Continued from Page 1D Next will come sprayed-on Shotcrete and over that three inches of insulation followed by stucco as the finish coat. The home will be a 660- square-feet efficiency with a great room combing living and sleeping area and kitchen, the bathroom will be framed in. Plessler's future plans include building another dome next to the first one with larger living space and turning the original one into a garage. Whitehead says this will be his first dome home, but he sees possibilities for that type of con- struction as it is relatively inex- pensive ($45,000) and will be very hurricane resistant. It would also be a great starter home or vacation home. If you are inter- ested in dome home you can read more at .com. Another project that White- head hopes to employ in future home construction is the use of Reddiform, stay-in-place insu- lating wall systems. The insulating concrete forms have been around since 1990, but are gaining in popularity because they save time, money and the earth. They have many advantages over traditional stick frame construction and standard insulation. The system is rated R21 energy efficient, is non- toxic, fire resistant and is hurri- cane wind sheer resistant. They present greater comfort and lower energy bills and mold con- trol. Whitehead has been through the down cycle in the housing industry before and will weather this one out with renovating, restoration and occasional new home construction. With his eye on the future, he is looking for- ward to an upswing in the build- ing business. A home under construction showing the Reddiform walls in place. An inside-outside fireplace with barbecue done by Ron Whitehouse. EDITOR Continued from Page 1D ingly roomy and comfortable. A news tip from a close friend sent me to the Hydroponics & Organics store in Homosassa Springs. I went to talk with owner Shannon Ivins about organic fertilizers like worm castings and bat guano. However, after I got there and saw all of the other interesting products she had, I decided to put off the interview until April when I could take some pictures and do a feature story. So look forward to some interesting innovations in organic garden- ing in the next issue. If you, have any ideas for future stories, please contact me at Rhartley4@tampabay.rr.com. The grand entrance to the Masonic Temple in Inverness, a reconstruc- tion job done by Whitehouse. GARAGE ..-.. Dolphin GARAGE ,, E CATH CEILING BEDROOM L 12X 11 L-- --.. ... ---- MVIG EM VISIT OUR LIVING BDRM VIS T 098 NEW MODEL CENTER Call today for more information 52 637 391 cri www homesbycosy com e-mail coziinfionline net Ca.vOL 352 -631 2 ca cBii 3s4 Many FMoor Plans toi Chooa From co-cosoa, 11145 W. Bentbow Path, Crystal River, FL 34428 Open Mon.-Friday 8am-6pm; Sat. 9am-3pm We also specialize in Room Additions & Remodeling A-i I SATUTMAY, MARCH 8, 2oo8 3D T F CHRONICLE BLUEPRINTS 'U.UJ KXURDAY, MVARC.H 8, 20 J:]U'JOlj7x,-iwAo IItwnowuncn NjIlsh W1 Ihurinw igmjwI,~cfvnt*% &WiIt hs'u~Sfg %Ium~l A& 0 lalf 14. -'o.Ong& - a Tips to decorate your home -. a " - - - - -- - ~ - - ~-"0 - a - ~ 0 ~. - - - 0 - * Easy imprloA cTmnt gi c "Copyrighted Material dramautc taccltlh *Syndicated Content Available from Commercial News Providers" Alb 41 * ~ -- * - - - - ~ - - - e __ - - - a- - - [Decorating tips that tap into our prw nal stylI O ael= ., - ' - - ~ - - - - -~ - I CITRUt is Coumy (I-L) CH&NICIE RT T TIEP TTTINT- 'Alm Qa, *?nns 9 - 0 o 0 o o o o eb A SKrURDAY, MARCH 8, 2008 5D CnIRUS COLNwTY (FL) CHRONCLIcE HerndeeE. .$146,400 ...... .$1,099 71140194 ......... .Norfolk C .A 3. 129 CIEM1134,900 ...... $ 997 7H210267 .......... Norfolk A ........$134,900 ......$ 997 Pasco County/Dade City Abbey Glenn: (813) 852-1785 JOB MODEL PRICE PAYMENT* 7AG08103 .........Chesapeake K ...$163,900 ...... .$1,204 Pasco County Suncoast Pointe: Suncoast Parkway north to S.R. 54. East on S. R. 54. Community on left. (813) 852-1785 JOB MODEL PRICE PAYMENT* 7SP410BA .........Arlington K ..... .$199,750. ...... .$1,482 7SP350BA ......... Roanoke K ..... .$183,900 ...... .$1,360 7SP029B ......... .Geneva A ...... .$164,900 ....... $1,214 .. S. . . .... Arlington K .. . . . . . .Baybury C . . . . . . . .Covington K . . .........Covington K . . . . . . .Sunbury I ... . . . . . .Winchester M PRICE ... .$153,900 ... .$154,900 . .. .$182,900 . . .$157,900 . .. .$157,900 ... .$168,900 . ...$191,900 PAYMENT* . . . .$1,146 . . . .$1,155 . . . .$1,361 . . . .$1,179 . . . .$1,179 . ......$1,257 . . .$1,448 PRICE .........Baybury B .......$235,350 . . . . .Chapel Hill ...... $177,900 . . . . .Durham A ...... .$154,900 .. . . . .Sunbury G ...... .$192,900 . ........Sunbury G ...... .$198,900 . . ..... Winchester V .... .$215,900 PAYMENT* .......$1,722 . . . .$1,322 . . . .$1,1-62 . . . .$1,426 . . . .$1,468 . . . .$1,587 Citrus County Citrus Springs: 1-75 north to 44 west to 41 north, 12 miles on right. (352) 465-7255 JOB 7C311510 7C140777 7C160377 MODEL . . . .Baybury C . . . . .Sunbury H .........Norfolk C. PRICE . . .$171,400 . . . .$160,750 .......$124,900 PAYMENT* . . . .$1,277 . . . .$1,186 .......$ 919 Maronda Homes 74F1 f+v104a 60Ar v64 rf tS^(eor r4- naronda.com Sales Center Hours: Monday 12-7 Tues., Wed., & Sat. 10-7 Sun. 11-5. Rates and terms are subject to change without notice based on market conditions. Financing provided by MFC Mortgage, Inc. of Florida Florida Mortgage Lender License # ML0701163. CGCO00496 I flD4649 oProinvo 113LUIEPRINTS I. I A I BLUw .S..C ..N ) E, GOD ssrURDAYMARCH 8 20 8 Got soaring utility bills? Adjust your thermostat By Dr. Joan Bradshaw Special to the Chronicle Citrus County residents have experienced many dips and soars in temperatures over the past few monttis making it a challenge to maintain a comfortable indoor environment. Either the heater is cranked up to fend off the latest cold blast out of Canada or the balmy breezes from the south have us adjusting the temperature to cool our living spaces. You may not have thought about : it, but each time you make a tem- perature adjustment in your home, |it causes the electrical meter to spin. Did you know that the major energy guzzler in Central Florida I homes is air conditioner and heat- sing which accounts for more than '25 percent of our annual electric costs? * How much energy can you real- ly save by adjusting the thermo- ,stat? Most modem homes have cen- tral air conditioning and heat allowing for consistent.year round temperatures but by adjusting your thermostat a few degrees cooler in "the winter and a few degrees warmer in the summer can really make a difference on your energy bill. You can reduce your energy usage by 5 to 15 percent by raising the thermostat temperature to 78 degrees in the summer and lower- ing it to 68 degrees in the winter. If you do this at least during times when you are sleeping or not at home, you can extend the time when your heating and cooling system is not in use. Ceiling fans can also help you feel more comfortable, but only .run them when you are in the -room. They do not cool the air, they just move it, but that move- ment helps you feel cooler. By reversing the direction of the spin of a ceiling fan in a clockwise direction during the winter months, warm air can be directed downward making your living space warmer. Another energy saving opportu- nity you may want to consider is replacing older thermostats with programmable models. Programmable thermostats are available at home improvement centers and electric supply houses. The thermostat must be matched to your equipment. Installation is not very complicated, but safety proce- dures must be followed to prevent electric shock. Consult an air con- ditioning ,service company or an electrician for assistance if you are not a "do-it-your-selfer". A good maintenance practice is to replace air conditioning filters monthly or as recommended by the manufacturer. You should also have the unit cleaned annually. Dirt and dust insulate the cooling coils and causes the unit to run less efficiently, wasting electricity. If your air conditioning unit is more than 10 years old, consider replacing it with an upgraded sys- tem with a Seasonal Energy Efficiency Rating (SEER) of at least 12. The higher the number, the more efficient the-unit and the more energy saved, however, as numbers increase, so does the price of the unit. Also look for SHR value of 0.7 ,or lower for Florida. The Sensible Heat Ratio is a meas- ure of the equipment's ability to remove humidity. Another way to reduce energy needed for air conditioning is to reduce the amount of solar heat getting into your home. The best method is to block sunbght from the outside. Whether through land- scaping, shade trees, trellis, awnings or shutters, try to prevent the hot west and east sun from hit- ting walls and windows. Proper landscaping can shade your home on critical est and east walls. Several University of Florida publications contain tips for landscaping for energy effi- ic. pcv For more info Citrus County E 527-5700. Dr Joan Br University of Extension Servi Citrus County. M,% irnWW11*4L '.alc wxbi . - a - 4p- -..M--ob - S - 5'- - - S * ~ - w i 41 ...r "Copyrighted Material .. ; Syndicated Content Available from Commercial News :- Provide BARBARA HARTLEY/For the Chronicle Debe Somers with some of the furniture and accessories available at Anne Thompson & Associates Interior Design. Stage your house By Barbara: Hartley Blueprints Editor , rmation, contact Are you trying to sell your extension at 352- home and so far the offers are few and far between. Perhaps you need to take a adshaw is the good look around, or even better, Florida/IFAS have fresh eyes look around. ice Director in Those eyes could belong to Debe Somers, an interior decorator with Anne Thompson & Associates, Interior Design. Somers feels she can make a difference in the sale-ability of your home and knows it when she first walks in the door. It is not always about spending a lot of money. It is a process that will make your home less personal and more appealing to the buyer. This will enable them to visual- ize their own belongings in your home. This process is called "Staging a Home" and it is using what is there perhaps re-arranging fur- niture, adding some color, an area rug, or other accessories and removing clutter. Some basic rules when getting ready to sell your home include: N Un-clutter, put away family pictures, collections, personal items, make areas neutral. Make good functional arrange- ments of furniture. Be careful of color, your bright and unusual colors may not appeal to the buyer. Accessories are critical to the look of a room. You may need to buy a few to pull the room together. 0 Atmosphere your house must ^ smell good, burn candles, bake cookies or anything that will be delightful when the buyer walks in the door. Clean, clean, clean windows rs" should sparkle, floors shine, car- s - pets clean, cupboards and cabi- nets neat and orderly. The out- side as well as the inside should be as neat and clean as possible. * Lighting be sure there is suf- ficient natural and artificial lighting in every room, no dark comers. Special attention should be given to bathrooms and the kitchen. In the bathroom, put away personal items, like den- ture cups and toothpaste. Be sure the fixtures shine and the shower is clean. You may want to buy a new shower curtain and rug. In the kitchen, clean off coun- ters, it will make the room seem larger. You might need to replace kitchen counters, paint cabinets and get new hardware. Be sure all appliances are clean and in working order. If you have a dining area, it is nice to set the table with a cen- terpiece as if you were having a party, napkins, silver and china, anything that would make the buyer feel welcome and at home. You may have to make some investments in upgrades in order to sell your home in today's buy- ers market, however Somers feels that upgrades will enhance your property and give you an edge that will enable you get your asking price. Anne Thompson & Associates charge $150 consultation fee to help you make your home the best that it can be. Anne Thompson & Associates, Interior Design has been in Citrus County since 1999, com- ing from New Port Ritchey, where they went into business in 1964. They are located today just inside the entrance to the Brentwood subdivision in Lecanto. In addition to Somers, Linda Thompson's granddaughter Samantha Thompson works as an interior decorator, having grown up in the business. Bill Thompson does all of the meas- uring and installation, aided by Todd Parsons. Claret Boleware and Ann Craig work in the office and do the ordering. The business is located at 2050 North Brentwood Drive, Lecanto and the phone 352-746- 4015. o ob o -- 5 - -nowS ~ 5 - ~ - .5 ~- - S ~. - S - - - - - m -~ 5' 5.. - S - 5' -. - .5 0 - S .5 - - ~0 - .5. - -0 - - S ~ S ~ 0 - 5 - 5' ~ - 0 0 S - 5' .5 - - 5' - * - - 0 ---0 - .5 --- ~.- - 5. -.5.5 5. - 5.- - - ~0 A R[ v f(' I R\N'I 1 t'R F qA C.iC FS S0 R I E S smart interiors Open 9:30-5:00 Sat. 10:00-4:00 Financing Available I Year Same As Cash 97 W. Gulf to Lake Hwy. Lecanto 352.527-4406 5141 Mariner Blvd. Spring Hill 352-688-4633 - 05 - -p- I - I CiTRus CouNry (FL) CHRom., BLUEPRINTS ,4WD-.% O 0 - 400 - 6 t Q o ITL s CooUUTY ( FL) Cao1MUiVLLL This spring's hot decorating trend for homes - a ~ ~ ~ a -~ - a a.~ - -a a a a a a a~ a - a. a a a a - - - o - ~ a - * -. a- a a ~ -~ a a - a - low- ~ dM- ISvnd icate Available from Comme a -a - a U- a - ~ a a a a a - w a - ~ a ~- - - a - - a- -- a. a a a - - a. a a - - a - - a - -a a -- a - '~ ~ - a a- dConten racial News Providers q-a - - a b mmi -. -am 0 . - - - ~- a a - -a - -- -a -~ a a - * a a a a - ~ - a -- 4D - Colors for 2008 are culled from circle of life .~ --a - o S 0 ~- a lisp- 4 4D .00- a 41b .llll ob a 41b a a - a -4-1M - -w a ~ M- - 'lowa ~ - -40 41b.4m- .Bo 41.s ~a -- 41.a a a - - -.Odom 4b a. -a - a -- a~ - a a * a -a - - a a a _____ a ~- - -a - a a a -a Mon. - I-. a ~ .-~- 41- . 4b- MO.5 -- -- a-a Now's The Perfect Time For That Home Improvement Project! There's more to a Credit Union than you think. Home Equity Rates StartingAt 6.75%** APR * Traditional Savings 0 Home Equity Loans * Checking 0 Same Day Approval * Car Loans N Home Equity Rates * Many Other starting at 6.75""APR Convenient Products & Services join today! 715 W. Main Str Martin *Everyone living, working, worshipping, volunteering or attending school in Citrus County, east of Highway 491 and Highway 200, is eligible to join Martin Federal Credit Union. anag~ 4 0ww 4*a ON-e -P mmm - _ _- woaimf- -l w ult a - a 0~ a ~- - - -.- a ~ - '.5 - a ____ - - -~ a a a a -~ a a - - - a -a-~ - NCA SATuRDAY, MARcH 8, 2oo8 7D BLUEPRINTS fwr) ruvnmr,-, r CITRUS o D ,am .C4 By laws are best source of informaiton Village View heard from a reader with a correction. Village View appreciates corrections just as much as questions. I thank the reader for reminding me I should not assume. The reader pointed out that the by laws of the asso- ciation where he lives disagrees withnsomething I had written last month. He's right. That's why the best advice is always to "look to the documents." The first step to find the answers to any question, in any community is to research the articles of incorporation, decla- ration, by laws. Usually the answers can be found in your governing documents. Volunteers and newly elected board members may want to consider attending the Community Association Institutes' 57th Annual Conference and Exposition being held in Orlando from April 30 through May 3. Registration must be made by March 31. The Suncoast Chapter of the Community Association Institute is hosting a Community Association Day on Friday, March 7, at Clearwater's Harborview Center, located at 300 Cleveland Street. Here's the schedule: Friday, March 7 8:30 9:30 a.m.: 21st Century Technology for Your Association 8:30 9:30 a.m.: Save the Watts: How Energy Efficient is Your Home? 9:45 10:30 a.m.: Homeowner Roundtable Discussion 9:45 10:45 a.m.: Preserving the Future of Your Association 9:45 10:45 a.m.: Water Conservation, Xeroscaping and Environmental Protection 10: a.m. noon: Community Association Managers 2008 Legal Update Seminar 11 a.m. noon: Mitigating Your Insurance Costs Noon 12:30 p.m.: Lunch 12:30 1:30 Keynote Speaker - Charlie Paxton, National Oceanic and Atmospheric Administration (NOAA) 1:30 2:30 p.m.: Florida Legislative Alliance 1:45 3 p.m.: Legal Q & A For Condominium and Homeowner Associations 3:30 5 p.m.: Wine and Cheese Reception. For more information, visit or call me at 726-6165. Jane Jarlenski is license by the State of Florida as a community association manager. If you are on the board of your community association and need profession- al advice on day-to-day opera- tions, e-mail your questions to P. 0. Box 2143, Inverness, Fl 34451. You may call 726-6165 from Monday through Friday between 9 a.m.- and 4 p.m. Village View of Community Life is provided to give members of property or homeowners and condominium association with helpful information on the day- to-day operations of community management. It is not intended to take the place of legal counsel. For spe- cific legal advice, contact an attorney who specializes in com- munity associations. Cloudy windows? 410 .0 4ao a111P - a. eons quip-1100 ONO a9 -Mmo qt a .m-- glw m-- 4a gogmmlP 10 -on - a 40- -a a40b-dM - 411 4 qmm -40 m 41M Mgg f oliia -ab aom -.am do-m q 4epass 11% gm,-- o - 40M-D .1WO - nno 40ing- a Mow d -.1me*ao a.m MW f. .40. -90 --.M 41. -a-- 41- 410 q -ml 4111 -a m,- 0-.Om 411D -Nmw a. 4b alum -P.M, -0 4 namiM aim w- 4am- 490 Migammapp, w 90 a -010. a-1W -aemlom d 11.a -a a -NEW ube. mm. a* mal, -am Mw-a - - ab do- 41 a. a oig,4w - 0-a 0 1"O-M - ma 4b 4- a -a mo-m -wom -a Mml-4bft 4w t- am-swa ft sop 4 lo gaa ftmmOm suo- -Mamil -ulmMoe 0-momwm o -w a -now 0000 p a a4b40 a is, -411 a fta -im, qw qmw ---oo, ft d 4d b qa. -- 44511 41b -mm-40 aqwpmdbo- 4 dW4M. .8m 41P 4ft .50- - --GNP -f a-.. a --a4b a - a - ,now do 4 ua. a 40-Gqw a. mm 0-m aoll G-ft. a0 4m 4.04b.. -Available from Commercial News Providers am am b-md w a b dimaa q- 4a 4wm. - -a -a ftah- - OMD ad- 44* O ft qb qa a. a a. mom m-a-of- -am -4-0 - a a - Owning a piece of the American Dream "Copyrighted Material ._-- Syndicated Content- :. - -sa%-00- -4am oa m a. qj-a- a o am qp t a.mp- a a---N 41b a a a d- am - 491. .m 41. -a.-a a .m- mmomwa 4 mm 4epo..o 1. q a. alo O..- 40m .- - - qb 41M som -,mom ________ a.7 _-ma --90o.-m.- Ab. -4b.IN- -a a a.. a a a a.. a a ~ a. a. -a a. --.41Pa-- - Q a- a -t a _-m a 4M b -OmwD m a.P d- -a Mb- a - W a.-aim ME -a a.ft- MIND ft. 4o a 411 a a a 4b a. 41b a ommo - -a ft- -40d*a 49b w ando a 0 a aMOa. W-a a Mmmb-- a-oa a a a-in - 40- .-. 's- .04ow a 4w o-4- 0. a 49& 4w do.-"m a S.- a. 46"p m -a amm 4b- w a aw a ab. - -Gum - - a - a -a0 -00 ao - - oa. mqmmdb-.o --w 4mm Avww a- -- -4b -as -mm aw fob a a -40 a- aw w 40 0. 40 -a- - a --.low 4b 0a - a -a -a - Wfi 4m. - Mir a41b . bo I I I I I I BLUEPRINTS CITRUS COUNTY (FL) CHRONIk 8D SATURDAY, MARCH 8, 2008 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 | http://ufdc.ufl.edu/UF00028315/01181 | CC-MAIN-2014-41 | refinedweb | 75,928 | 78.14 |
Vim has a well defined, and expected, undo/redo granularity. jVi support of this
behavior requires some platform support.
Proposed here is a trivial API extension to org.openide.awt.UndoRedo. This
extension is best described by the java doc for the new class. This new class,
UndoGroupManager, extends java's UndoManager and is used by NetBeans as:
public static class Manager extends UndoGroupManager implements UndoRedo {...}
===== UndoGroupManager javadoc =====
UndoGroupManager extends UndoManager and allows explicit control of how
UndoableEdits are coalesced into compound edits, rather than using the rules
defined by the edits themselves. Other than the default usage, special handling
is initiated by doing beginUndoGroup().
Three use cases are supported.
1. Default behavior is defined by {@link javax.swing.undo.UndoManager}.
2. UnddoableEdits issued between beginUndoGroup() and endUndoGroup() are
placed into a single CompoundEdit. Thus undo() and redo() treat them atomically.
3. Use commitUndoGroup() to place any accumulated UndoableEdits into a
CompoundEdit; an application could do this at strategic points, such as
EndOfLine entry and cursor movement.
Note that certain methods, such as undo(), automatically issue commitUndoGroup().
===== end javadoc =====
Three additional methods are available: [begin|end|commit]UndoGroup. Notice that
these methods could be empty and undo/redo behavior reverts to current.
commitUndoGroup is not used directly by jVi; it is required by the implementation.
jVi wants the seconde use-case The third use case could be used by the standard
netbeans editors to provide options for other undo/redo granularity.
I would call this interface stable, it is essentially the same used by jVi in
JBuilder 5 years ago.
Created attachment 42210 [details]
proposed API implementation
Attached a patch which implements this proposal. The only open issue I see is
limits handling. Currently the programmed limit applys to the number of
CompoundEdits accumulated. If necessary, the programmed "limit" on the number of
edits can be applied to the aggregated edits.
VS1: I can see a lot of public methods without javadoc. They all should be
documented, especially when they have some effect on coalescing.
VS2: I am not entirely sure that changing superclass of a non-final class is
backwards compatible (it's probably binary compatible but not source
compatible). Maybe we should leave the existing Manager as it is and just add
the new GroupManager.
VS3: Could we possibly have some unit tests covering this new functionality?
VS4: If the change is accepted I think you will have to update apichanges.xml
and mark the new stuff with @since tag.
> VS1: I can see a lot of public methods without javadoc.
I'm updating the patch with more documentation, all but a few methods are
{@inheritDoc}.
> VS2: I am not entirely sure that changing superclass of a non-final class is
> backwards compatible (it's probably binary compatible but not source
> compatible). Maybe we should leave the existing Manager as it is and just add
> the new GroupManager.
I can't see how this wouldn't be backwards compatible, could you clarify the
issue? However if that is a problem, then a whole new inheritance chain
involving CESUndoRedoManage and the functionality of Manager will have to be put
together, seems very messy. Easier would be to incorporate the functionality of
GroupManager into Manager, but not quite so clean.
> VS3: Could we possibly have some unit tests covering this new functionality?
I have not idea what's involved here. Tests for the current coalescing behavior
would be an ideal place to start. Pointers to unit tests that might be similar,
or at least related.
> VS4: If the change is accepted I think you will have to update apichanges.xml
> and mark the new stuff with @since tag.
I'll explore that.
Created attachment 42229 [details]
add javadoc to methods, tweak class description
Y01 Well, I wonder why you need this API at all. Just do
CompoundEdit comp = new CompoundEdit();
getUndoRedo().undoableEditHappened(comp);
...
comp.end();
See for example UndoRedoWrappingExampleTest. If that is not enough, you should
really provide some unit test or modify the UndoRedoWrappingExampleTest to
show what exactly you cannot do.
> getUndoRedo().undoableEditHappened(comp);
Ahhhh, got it, very nice. I guess that "canUndo()" will be false while in insert
mode, which is a difference, but not a problem might even be better. I'll take a
look at the other methods.
I'll probably need some way to kick the UI to check canUndo, so the undo button
enable is correct, after exiting input mode. I'll take a look at CESUndoRedo and
see if I can figure out how the button gets enabled/disabled.
> Y01 Well, I wonder why you need this API at all. Just do ...
Here are initial results: two code issues, a user experience issue. Handling
"code 2" requires an API tweak.
code 1 - CloneableEditorSupport injects a variety of markers into
UndoRedo.Manager. They interfere by absorbing the CompoundEdit that
is intended to coalesce edits.
Workaround: for beginUndoGroup, first add insignificant dummy edit, then add
the CompoundEdit that will coalesce the edits of interest.
code 2 - The button enable/disable state wrong after endUndoGroup, can't undo.
Workaround: change access of UndoRedo.Manager.fireChange to public, invoke
this after "compoundEdit.end()"
user experience - when user start input text, the undo button goes inactive
until exit input mode.
This isn't serious, but is misleading.
> code 1 - CloneableEditorSupport injects a variety of markers into
> UndoRedo.Manager. They interfere by absorbing the CompoundEdit that
> is intended to coalesce edits.
Write a test showing the problem, please.
> code 1 - CloneableEditorSupport injects a variety of markers into ...
Excuse me, I wasn't very clear about this.
During the editor first coming up, a
CloneableEditorSupport$BeforeSaveEdit
is added to the UndoRedo.Manager. Then when jvi adds a CompoundEdit to Manager,
it is added in turn to BeforeSaveEdit, BeforeSaveEdit does
getUndoRedo().addEdit(new BeforeModificationEdit(saveTime, anEdit));
which effectively prevents the CompoundEdit from having any edits added to it.
(It is interesting to note that the compound edit is in progress).
There may be other examples of these magic marker edits interfering, I can't
say. In the initial testing, only the first compound edit is lost. Then things
behave as expected.
If it is still needed I will need some coaching to write a test. Possibly based
on CloneableEditorSupportTest.java, how is this run? I've never used JUnitTest,
where's the driver?
I think that this whole thing will be somewhat more complicated but I agree that
it's necessary to have a support for chunking.
1) the new chunking should definitely support some sort of nesting and multiple
independent clients. BTW there are additional requests like issue 60560 and
issue 90899 that would benefit from it.
2) CloneableEditorSupport$BeforeSaveEdit should be abandoned possibly as part of
this change. The way it works (inserting an extra edit after save) discards the
rest of possible edits in the queue. So if you make edits; then undo several
times; then save; you now cannot redo the edits. Instead there should be a
wrapping around each edit coming from the document in which the CES can set a
flag that save was performed.
3) I'm also wondering where is the best place for the API to be present -
whether in the editor or in the openide. That's not that important but IMHO we
should first clarify the clients and usecases of the API before final decission.
IMHO we should (if possible) go the way that we place the edits into the undo
manager's queue immediately and control whether they can absorb another ones or
not. This way we could possibly do the things in a more systematic way (at least
from the UndoManager's SPI point of view). That way the present Save action
could continue working as it is (without requiring an extra call to
commitUndoGroup() so that you can later undo exactly to the save point) just the
wrapper in CES would prohibit further absorbing into the lastly added edit. I'll
try to sketch something in this way.
> If it is still needed I will need some coaching to write a test.
You will not be allowed to make an API change in NetBeans without test. So
yes, it is needed.
> Possibly based
> on CloneableEditorSupportTest.java,
Yes, or other tests in the same package.
> how is this run? I've never used JUnitTest,
> where's the driver?
Start NetBeans, open the test file, select Run File (Shift-F6). That is all.
> > > Write a test showing the problem, please.
> > If it is still needed I will need some coaching to write a test.
>
> You will not be allowed to make an API change in NetBeans without test. So
> yes, it is needed.
Some miscommunication, I was asking about whether a test was need to understand
the problem.
Thanks for the clarification and info on making contributions and how to run the
tests. Since I enjoy the details, what seems simple now will probably become
mysterious as I delve into the unit tests...
I have limitted time over the next few months and NB6 feature freeze draws
close. For NB6, now's the time. If in NB6, all jvi users get a better
experience and I don't have to worry about supplying a patch to NB for jVi
users to install. FYI, one third of recent jvi beta downloaders also took the
NB55 BraceMatch-UndoRedo patch (essentially the same patch attached to this
issue).
Much of the issues are beyond my understanding; I'll make some comments and
see if I'm understanding at all.
Note that if for some reason chunks aren't as big as "requested", its not
really a problem, at most its an inconvenience to the user.
> 1) chunking ... support ... nesting and multiple independent clients.
Simple model is a counter. Should always "try {begin; ...;} finally {end;}".
Any edits while counter != 0 are chunked (API could allow explicit commit).
Alternately, any "end" could cause a commit and if counter non-0 continue
chunking. This may have nice characteristics, for example a template operation
would split a chunk, giving 3 chunks.
> 2) CloneableEditorSupport$BeforeSaveEdit should be abandoned ...
> make wrapping around each edit from document, CES manips wrapping flags.
Something, presume undoRedoMan, wraps each edit unless it is already wrapped.
Chunks could be delineated by a particular flag/bit. Maybe other bits for???
To undo/redo undoRedoMan checks the flags for how much to undo/redo.
> 3) Where for API, editor or openide? first clarify the clients and usecases.
jVi starts a chunk when input mode is started, ends the chunk when input mode
is exited, a JEditorPane is a convenient handle. During input mode,
there may be code completion and template expansions, an example of nesting.
> should (if possible) place the edits into the undo manager's queue
> immediately and control if they can absorb other or not; could do the things
> more systematic (at least from the UndoManager's SPI point of view). The
> present Save action could continue working as is (without requiring extra
> call to commitUndoGroup() so can later undo exactly to the save point) just
> the wrapper in CES would prohibit further absorbing into the lastly added
> edit.
I don't understand what's meant or the implications around
"Save action ... working ... just the wrapper in CES would prohibit"
Escpecially that "wrapper in CES" phrase. Not knowing the CES certainly
contributes to my confusion. Maybe I'm on the wrong track since I'm looking at
this thing as mostly implemented in UndoRedoMan and CES knows about the
special flag/bits. The API may be exposed through the CES or somewhere else.
Question
Should it be considered an error if an inProgress edit is added to the
UndoRedo manager?
> Question
> Should it be considered an error if an inProgress edit is added to the
> UndoRedo manager?
Yes, it can be a problem since CloneableEditorSupport.saveDocument() can come at
any time (e.g. if someone triggers compilation etc.) and if you would modify an
in-progress edit later after the save it would not be possible to reach the
at-the-save-doc-state with undo/redo actions and CES would mark/unmark the doc's
modification flag (*) at wrong points from the performed-undoable-edits-history
point of view.
For example if you would type "h" and make an in-progress UE for it and add it
to UM and then CES.saveDocument() would be called and then you'd like to join
the "h" with typed "i" then you could only undo/redo "hi" later but the saved
file would contain "h". So two edits, one before save-point and the other after
the save-point must stay split so that you can undo/redo to the save-point.
Continuing the concept of the undo/redo chunking as a lower level feature,
here's something that appears to take care of the main problem, the "magic
marker" edits getting absorbed, without addressing issues of losing redoable
edits after a save.
Recall the original patch adds begin/endUndoGroup() and commitUndoGroup().
I'm suggesting the addition of AtomicEdit interface as follows
public static class UndoGroupManager() extends UndoRedo {
....
public interface AtomicEdit { /*no methods*/ }
....
}
then any edit that should not be coalesced implements this interface.
Finally, modify CloneableEditorSupport.FilterUndoableEdit to
implement UndoGroupManager.AtomicEdit
AFAICT, this is compatible with possible solutions for fixing "losing redoable
edits".
BTW, it certainly may be that the chunking issue should be addressed in CES or
even the editor as brought up before. Without detailed study, I shouldn't
argue the merits one way or another. The idea here is to provide something
upon which a complete solution can be built.
Looking at "losing redoable edits" and using flags. Two flags are suggested
BeforeSave
AfterSave
One flag may be sufficient, but with two the undo/redo operations do not need
to look at more than one edit. The flags are maintained/used like:
When save
clear any existing flags
set BeforeSave on edit at indexOfNextAdd-1
set AfterSave on edit at indexOfNextAdd,
(if none, then add BeforeModificationEdit and set its AfterSave)
When undo
if AfterSave then justRevertedToNotModified = true;
When redo
if BeforeSave then justRevertedToNotModified = true;
A comment about wrapping to get flags if there is an UndoGroupManager:
There's an issue about when to wrap edits so they have the flags. Notice
that edits can be coalesced without being wrapped, the compound edit which
does grouping needs to have the flags. If this optimization, ie. not wrapping
coalesced edits, is worthwhile then UndoGroupManager must do the wrapping.
Milo, I'm wondering if the lack of response to my previous comment is due more to the rush of M10 or that my analysis is
too far off target (or perhaps seemingly incoherent). I know that feature freeze has occurred, but I'm wondering if
"losing redoable edits" bug might be fixed for NB6 and the fix could include a chunking solution. If the chunking was
undocumented and available only through reflection so that a proper API and review could happen in the future that would
be ok with me.
This has suddenly escalated because of issue 110500. History... where possible, jvi uses atomicLock/Unlock to provide
undo/redo chunking; this satisfies several cases. This can't be used when user input is part of the chunk, since the
lock can not be held when the awt thread exits.
With oversight/feedback I believe I can implement what is suggested in the previous comment. Is there a way to proceed
for NB6 solution?
CCing issues@openide to grab attention of people looking after openide/text, because the proposed changes also involve
this module. We in the editor are busy with bugfixing so please don't expect much input from us. If nobody else responds
I'm afraid you will have to live with what we have now, sorry.
I understand that everyone has much to do at this time. I'm (not quite happy but) willing to put together a solution
which addresses both this issue and the CloneableEditorSupport problem of "losing redoable edits after save". But
there's no reason to push now if there's a relatively low probability of it being including in NB6.
For reference I'm attaching the current source for the small platform7/modules/patches/org-openide-awt file I'm making
available to jVi users. It fixes the issue of hitting the save button while in the middle of jVi edit mode, and still
can undo exactly to the save point.
Created attachment 45784 [details]
isolated patch for this issue
Apologies, Ernie, I've returned from vacation and then accidentally skipped your last comment.
I'm not sure I understand the usages of the proposed AtomicEdit. Should CES somehow use it for savepoints? Or any other
clients?
Sorry to interrupt the discussion but I'm still trying to recall all the requirements:
jvi:
1) chunking (aka undogroup): user goes into insert mode e.g. with "i" then it types e.g. "line1" then Enter then
"line2" followed by Escape. Now all this should become a single chunk undoable with a single "u" (or Edit->Undo).
This requires extra support since otherwise "line1" Enter and "line2" would each require extra Edit->Undo.
2) in-group undo/redo: until group is committed the individual edits should be undoable/redoable. E.g. Edit->Undo when
"line1{Enter}lin" is typed should undo to "line1{Enter}". Is this a requirement? IMHO it makes sense at least but I
don't whether there is an intent to support this.
IDE:
3) savepoint: Once File->Save gets pressed the savepoint is (re)defined and undo/redo before/after it must set '*"
mark. When doing several undos from savepoint and do a save again (savepoint redefined) the redo must work as expected.
Currently this is broken and it should be fixed.
Just thinking:
4) Nested chunks?: When jvi starts a chunk can there be another client starting another chunk in the middle of the
jvi's one? IMHO yes e.g. the code templates expansion or drag&drop.
5) chunking commit till end: When a chunk is being committed does it always extend from a certain point till the last
performed edit? Probably silly question this should always be true.
I'm looking again how things are currently done in the current CES and UndoRedo. Anyway as Vita said we are short of
time although I understand the importance of this.
> returned from vacation and then accidentally skipped your last comment.
Sounds like the vacation was a success!
The AtomicEdit is introduced to address the third point of the comment of Thu May 10 10:04:47
> present Save action could continue working as it is (without requiring an extra call to commitUndoGroup() so that
> you can later undo exactly to the save point)
(looking back, I'm not sure I entirely understand full comment). The code in the proposed UndoGroupManager would do
boolean addEdit(UndoableEdit anEdit) { if(anEdit instanceof AtomicEdit) return commitAddEdit(anEdit); ... }
So "implements AtomicEdit" insures that the particular edit is never coalesced. Any "magic marker" edits in CES
would presumably be tagged with this interface, in particular CloneableEditorSupport.FilterUndoableEdit.
Reviewing the requirements. 1) is certainly a vim requirement. 2) is not a vim requirement, vim has insert mode
^W or Q comands to delete words or lines before the insertion point. Your suggestion could be done (see below).
3) is what I've been calling "losing redoable edits after save". (I lost stuff by hitting the compile button one day).
The 2nd half of the June 10 comment generally describes how I'm proposing to handle this. Let me know if unclear.
4) For nesting I was thinking of a simple counter model. Begin increments, end decrements. Should always
"try {begin; ...;} finally {end;}". Any edits while counter != 0 are chunked (API could allow explicit commit).
With this specification, nested begin/end all get chunked together into a single undoable item.
Alternately, any "end" could cause a commit and if counter non-0 continue chunking. This may have nice characteristics,
for example a template expansion chunk would split a insert mode chunk, giving 3 chunks separately undoable.
5) Chunking commit till end. If I understand question, then always true
Implementation note and doing "2) in-group undo/redo". In what kind of use case does this come into play?
Currently, I set up a compound edit and stuff individual edits into it as they come in. Certain things cause an
implicit commit: for example an undo or receiving an AtomicEdit. This keeps things simple, there are no changes to
the undo/redo related methods. 2) could be handled by either doing undo/redo from out of the compound edit or by
not using a compound edit and instead have begin (and possible end) group flag (there are now flags for 3) so
that parts simple). I'd rather not since, it seems that managing these flags could become messy/complicated (but
everything looks that way at first).
Y02 I still heard just one reason why Y01 (e.g. not to write any API at all, just use CompoundEdit) cannot work. If
that is the case, I strongly object against any API change and once again I am asking for a unit test to show what is
wrong with CompoundEdit and describe the actual behaviour.
Here are the problem areas I see:
1) the CES use of absorbing edits to track modified state gives incorrect visual feedback with CompoundEdit
2) the CompoundEdit absorbs CES markers and the modified state is incorrectly displayed
3) the use case is not clearly specified, in particular nested undo group behavior
I'm attaching a simple module to interactively examine the behavior. With the "compoundEdit" plugin active, there
is a "rainbow" icon after the redo icon on the toolbar. Click this icon and a modeless dialog comes up with two
buttons, BeginUndoGroup which adds a new CompoundEdit to the UndoRedo.Manager, and EndUndoGroup which does
CompoundEdit.end().
Open a file in the editor, click BeginUndoGroup, add a few line of text, click EndUndoGroup . Notice that the file
is marked as modified, but the undo button is inactive. Add another line, now the undo button is operative, and
some undo clicks show that the first inputs are in fact chunked as requested.
BeginUndoGroup, enter "aaa\n", do SaveFile, enter "bbb\n", EndUndoGroup. (note that the CES save file marker is in
the middle of the group) Enter "ccc". Click undo until the "aaa\nbbb\n" is undone and observe that the file is show
as not modified; this is incorrect, the file was saved after the "aaa\n" was entered.
A) SaveFile, Enter: "aaa", SaveFile, BeginUndoGroup, EndUndoGroup, Enter: "bbb".
B) Click undo - file "aaa" state modified (incorrect)
C) Click undo - file "" state not modified (incorrect)
D) Click redo - file "aaa" state not modified (correct, but state stayed not modified and characters are added)
E) Click redo - file "aaabbb" stat modified (correct) in same state as after step A), can repeat from step B).
Finally there's the situation where there might be nested compound edits, without defining the target semantics,
the behavior can't be analyzed.
Two advantages to a chunking API: much simpler (less bug prone) than trying to maintain proper state with
CompoundEdit (note that should assert if inProgress edit is added). Secondly, simple to define useful semantics for
nested behavior.
Created attachment 45969 [details]
nbm for interactive testing
Created attachment 45970 [details]
source code for interactive test
This issue is becoming critical for jVi.
JTtulach, is there further discussion on using CompoundEdit for chunking in the NetBeans environment?
Milo, did comments of "Thu Jul 26 18:35:03" adequately address your issues?
jVi uses two undo chunking techniques: atomicLock and an optional NB patch (see Nb60M10UndoRedo02.patch) related to the
discussion of this issue. atomicLock is used when a change does not involve user typing into the document. In addition,
jvi may use NB actions in response to user commands, for example reformat and gotoBraceMatch.
Recent changes for NB6 in NetBeans' editor infrastructure are making the use of atomicLock for undo chunking difficult,
if not impossible. For example, there is a lock ordering requirement of Formatter lock before atom lock and
gotoBraceMatch deadlocks if invoked while atomicLock is held. As NB develops to take further advantage of threading, I
can only believe that there will be increased restrictions on the document state when invoking editor actions.
It seem that jvi should stop using atomicLock in this way.
Created attachment 96122 [details]
patch
Attached patch against the current development tree.
I believe I've addressed all the issues raised (that was over two years ago)
I assume its too late for 6.9 (though the patch has been in continuous use since NB5.5) consideration.
I've never contributed more than a few lines to fix a bug, so I really don't understand the process. I'd appreciate some feedback to get this moving..
> I want to see a unit test showing why CompoundEdit does not work.
I thought the modules I attached showing how
CloneableEditorSupport$FilterUndoableEdit
based classes got "lost" in the compound edit and screwed up the save tracking would be sufficient.
Thanks for the pointer, I thought I'd recently looked for UndoRedoWrappingExampleTest through the whole tree... must have had a misspelling.
This issue has had 3 primary threads of discussion.
A) behavioral requirements and specification
B) issues in CES state tracking
C) getting a unit test.
There is general agreement that the proposed feature should be supported. Question whether an API change is required.
=== Requirements and Specification
Proposed patch adds a beginUndoGroup() and endUndoGroup() to the UndoManager API. Originally proposed a "commit" method, it is currently private and used internally. Not needed, may be convenient.
1) nesting and multiple clients
Current patch doesn't support this, any endUndoGroup() stops chunking until a beginUndoGroup is encountered. Should be easy to implement as described in earlier comments.
Suggest creating separate chunks delineated by calls to begin/end (as opposed to all nested begin/end put into single chunk). In this way, individual clients will not have their changes combined with other clients.
2) Until a group is commited, the individual edits should be undoable/redoable.
Current patch doesn't support this. An undo while a chunk is open goes back to the most recent beginUndoGroup.
I'm uncertain if this is required, more discussion...
=== issues
Most questions of API and current issues are comment #11, comment #21
1) CloneableEditorSupport$BeforeSaveEdit should be abandoned
2) Loosing redoable edits after save
3) Where to put API (assuming there is an API change to support this feature)
Created attachment 96566 [details]
unit test
Unit test based on scaffolding of openide.text/test/unit/src/org/openide/text/UndoRedoCooperationTest.java
Test uses beginChunk()/endChunk(). Currently implemented to use Compound edit. Commented out implementation using the proposed patch. Both implementation pass testTrivialChunk. Both fail testNestedChunks. The rest pass with the patch and fail with compound edit. One assert is commented out in testSaveDocumentWhileActiveChunk, I believe this is a CES bug.
(I understand that now is a busy period...)
(In reply to comment #29)
>.
Is the unit test attached with comment 32 sufficient to demonstrate the problems with using CompoundEdit?
Thanks for the unit tests. Now we have something material to reason about!
I still don't believe you need an API change at all. You claim that the tests are failing and without an API change they will continue to fail. I don't think so. I tried:
CompoundEdit beginChunk(Document d) {
CompoundEdit ce = new SequenceEdit();
support.getUndoRedo().undoableEditHappened
(new UndoableEditEvent(d, ce));
return ce;
}
class SequenceEdit extends CompoundEdit {
@Override
public boolean canUndo() {
if (isInProgress()) {
return !edits.isEmpty();
} else {
return super.canUndo();
}
}
}
and after that the testSingleChunk test succeeded. I don't have time to play with other operations (undo, redo, canRedo), but I believe they can be implemented in the SequenceEdit to satisfy behavior of your test too. Don't you want to give the SequenceEdit a try?
> I don't have time to play with other operations (undo, redo, canRedo)
Sadly, I don't either. That's why I haven't pinged in the half year since I attached the unit test.
I'm taking just enough time at this point to get jVi working with the wrap features of the new view hierarchy.
Maybe by NB7.1.
(In reply to comment #35)
> > I don't have time to play with other operations (undo, redo, canRedo)
Actually I got some spare time to play with your unit tests. I can now understand what are the obsticles one has to face when implementing requested behavior. Simulating this with (subclassed) CompoundEdit is not easy.
I think that resolves Y01, yes you need some API. Looking at your API. You introduce two new methods and an inteface now:
Y11 Is it possible, instead of defining new class to define just
public static final UndoableEdit BEGIN_COMMIT_GROUP;
public static final UndoableEdit END_COMMIT_GROUP;
or some factory methods to create these two? Everyone could then create these special edits and send them to the manager via UndoableEditListener, e.g. one's editor could just emit these edits, would not need to seek for the proper UndoRedo class that implements them.
Y12 The question is whether your behavior is generic enough or is tight directly to CloneableEditorSupport? The fact that one edit in CloneableEditorSupport has to implement the SeparableEdit interface and also that there are variables called saveBuildUndoGroup makes me believe that the whole support is directly connected with current behavior of CloneableEditorSupport. If so, make the new fields from Y11 part of ClonebleEditorSupport.
Y13 After Y12, the whole code in UndoGroupManager can be moved to not public class in org.openide.text.
Y14 After Y12 SeparableEdit no longer needs to be a public class (can be removed or make package private to org.openide.text).
(In reply to comment #36)
Y11 - "... UndoableEdit BEGIN_COMMIT_GROUP ..."
Yes, these seem equivelent to the two methods. I wonder if user needs to hold Document's read or write lock while delivering these edits through all the AbstractDocument::getUndoableEditListeners()? Note that AbstractDocument::fireUndoableEdit is protected.
My first inclination is to handle these in "undoableEditHappened()" and call beginUndoGroup/endUndoGroup as appropriate (and those methods are made private). The *_COMMIT_GROUP undoableEdit is discarded. Comment?
Y12 - "generic enough or is tight directly to CloneableEditorSupport?"
The saveBuildUndoGroup variable is needed because super.addEdit is recursive in some situations. At lease that's what a comment says and it's been years since I put together this patch and I don't remember the details. In any event this seems implementation issue, not API.
A generic undo manager which provides chunking needs a way for a manager, like CES, to specify that a particular edit can not be coalesced. SeparateEdit interface is a convenient way to provide this feature. An alternative is to make the method "commitAddEdit(anEdit)" protected instead of private and rename it to addSeparateEdit() or somesuch, but its usage seems more cumbersome. SeparateEdit interface could also be protected.
I don't see a requirement for SeparateEdit for a client, like jVi or CodeCompletion.
There is a way for an undo manager to acheive this without either SeparateEdit interface or addSeparateEdit().
class FancyManager extends UndoGroupManager {
// synchronized, so atomic
synchronized boolean addSeparateEdit(anEdit) {
commitUndoGroup();
addEdit(anEdit);
commitUndoGroup();
}
}
Then the FancyManager's magic edits are either top level or the first and only edit in a top level compound edit. This requires commitUndoGroup be made protected.
Also possible is, the method doing
addEdit(BEGIN_COMMIT_GROUP);
addEdit(anEdit);
addEdit(END_COMMIT_GROUP);
with the same trick needed to check if an edit is magic. This depends on proper nesting of BEGIN/END_COMMIT_GROUP.
BTW, I notice that commitUndoGroup is currently public. I was debating this when I made the original patch, but it can be made private or possibly protected.
Y13 - "UndoGroupManager moved to not public class in org.openide.text"
Y14 - SeparableEdit no longer needs to be a public class
Depends on Y12, if treat as specific to CES, then agree.
Historical comment.
The optional NB patch for this currently available with jVi does not patch ClonableEditorSupport; instead in awt/UndoRedo it checks "isMagic(anEdit)" (in addition to "anEdit instanceof SeparateEdit") to determine if anEdit can be coalesced, where isMagic does
anEdit.getClass().getName().startsWith(
"org.openide.text.CloneableEditorSupport$")
This hack has allowed the patch to be extremely stable since awt/UndoRedo.java rarely changes, the same binary patch that was used in NB5.5 still works.
Also the use of an additional class, rather than incorporating into awt's Manager class, has allowed the use of UndoGroupManager (without isMagic) in other applications.
A behavioral issue was brought up in comment 11 by Miloslav Metelka
(that comment also iluminates the problem with BeforeSaveEdit and how it looses undoableEdits)
> 1) chunking ... support ... nesting and multiple independent clients.
Consider jVi and template, suppose the following sequence:
- jVi BEGIN
- templ BEGIN
- templ END
- jVi END
Two possible behaviors for this: single undoable chunk, three undoable chunks. I prefer the later.
Current behavior produces 2 chunks, and tiny undoableEdits
chunk1: jVi BEGIN - templ BEGIN
chunk2: templ BEGIN - templ END
modifications between templ END and jVi END are individual edits, there is no coalescing for them.
Proper nesting beavior is simple to implement. It requires user care in balancing BEGIN/END like:
BEGIN; try {...;} finally {END;}
Created attachment 102962 [details]
patch for comments up to Y14
This patch
- edits are used to trigger begin/end of undo groups
- only public API is BEGIN_COMMIT_GROUP and END_COMIT_GROUP
- moves UndoGroupManager to a private class in CES
- Enables nesting (nesting test now passes)
Created attachment 102963 [details]
updated unit tests
In addition to modifying unit tests to work with latest patch, three unit tests are added.
Two of these tests fail and have nothing to do with coalescing edits. They could be moved to UndoRedoCooperationTest.java, I'm not sure on policy of adding tests that fail...
- testSaveDocumentErrorCase
demonstrates how undo past save point has incorrect "isModified" state.
- testSaveDocument
This passes; identical to previous test without failing assert
- testRedoAfterSave
demonstrates how save loses edits
Y21 The javadoc on UndoGroupManager will no longer be visible. We need to find a better place for it. Probably one of the newly added public class members could absorb it.
Y22 I am not really proud of "must always be paired" warning. At least people shall know what happens if they are not paired. Will undo/redo be broken? I guess the requests can be nested. What if there is more END_COMMIT_GROUP requests than begin ones? These cases should be documented and tested..
> Y21 The javadoc on UndoGroupManager will no longer be visible.
The patch adds a short paragraph of javadoc to CES and the new public members. It seems at a consistent level of verbosity.
I will add a few more sentences covering the issues raised in Y22.
I left the private doc as reference for anyone working inside CES, or who was curious of the details.
> Y22 I am not really proud of "must always be paired" warning.
Agreed.
> At least people
> shall know what happens if they are not paired.
> Will undo/redo be broken?
No. While coalescing, use of undo/redo/save commit the inprogress chunk and start a new chunk. There is an implicit END/BEGIN.
> I guess the requests can be nested.
Yes, that was an explicitly asked for use case.
> What if there is more END_COMMIT_GROUP
> requests than begin ones?
They are ignored.
> These cases should be documented and tested.
The unit test has "testUndoWhileActiveChunk", I will expand this test and add an additional test for multiple END. There is a nesting test.
>
>.
With multiple clients, there are no ordering constraints between them, not much to check. I guess there could be a check for using END#1 before BEGIN#1; but I don't think that's much better than checking any END without a BEGIN.
About Logging. How does the following sound?
- add WARNING if END while no BEGIN active.
- add INFO if undo/redo/save while coalescing.
- add FINE for BEGIN/END
- use the logger "ERR" that CES already defines.
Created attachment 103150 [details]
patch for comments up to Y22
(see comment 42 for discussion of Y23)
log INFO with stacktrace if END without BEGIN
log FINE with nesting depth for BEGIN/END
Created attachment 103151 [details]
test some additonal situations
test cases mentioned in Y22
I guess the SeparateEdit class shall not be public, but package private, otherwise it might be accessible and visible in javadoc. It is not good to have inner classes that are visible while outclasses are hidden...
Other than that I am fine with the changes. If Míla Metelka agrees, I think we can integrate.
Created attachment 103192 [details]
package scope for SeparateEdit, correct mispelling
> SeparateEdit class shall not be public, but package private,
> otherwise it might be accessible and visible in javadoc.
Ah, I didn't think it could leak out. Corrected to package scope.
I just noticed that *_COMMIT_* is mispelled, only had one "M". Also corrected.
Created attachment 103193 [details]
adjust unit test to corrected mispelling
I agree with Ernie's patch.
BTW Yardo I think that we should make
/** Create an undo/redo manager.
* This manager is then attached to the document, and listens to
* all changes made in it.
* <P>
* The default implementation uses improved <code>UndoRedo.Manager</code>.
*
* @return the undo/redo manager
*/
protected UndoRedo.Manager createUndoRedoManager() {
return new CESUndoRedoManager(this);
}
in CES final since if anyone would really want to override it then important features like bolding modified filename and also this new feature would be lost.
Thanks for your contribution to NetBeans APIs! It was not easy for you
... to make all of this happen, but I think we are almost there. If there are no objections I'll integrate tomorrow.
@Míla: I cannot make the method final, but I'll change the javadoc to describe that overriding is almost impossible without calling super impl.
{@BEGIN_COMMIT_GROUP} in Javadoc should be {@link #BEGIN_COMMIT_GROUP} I guess, and ditto for {@END_COMMIT_GROUP}. {@link END_COMMIT_GROUP} is also wrong. Suggest building Javadoc and checking for new warnings.
Also don't bother with
/** {@inheritDoc} */
as such lines can simply be deleted to make source code shorter without any effect on Javadoc output. Especially in private classes which the module harness does not document to begin with!
Shall I submit another patch with the Javadoc fixes?
I'll keep all this in mind, there may be more patches in there...
And I hope this is generally useful.
> Javadoc should be {@link #BEGIN_COMMIT_GROUP}
Yep, it's done better in the private inner class where no one can see it.
Last minute change without full retest, bad idea. Yet I still do it.
> Also don't bother with /** {@inheritDoc} */
Funny, that got added in response to a comment on first patch over three years ago; when the class was public in a different module.
I cannot integrate. Two test cases from the new test set do not pass! Fix it please.
I've commented out the two tests and integrated as core-main#3b4c4e6862b6, please fix the tests as a separate issue.
(In reply to comment #52)
>> don't bother with /** {@inheritDoc} */
>
> that got added in response to a comment on first patch over three years ago
All visible methods should indeed be documented. But when a method merely implements a method from a supertype without adding any nonobvious semantics, there is no need to give it a Javadoc comment, since the output will automatically refer to the supertype's documentation. @inheritDoc may be used in specialized cases such as
public final class Coordinate implements Comparable<Coordinate> {
// ...
/**
* Note: nonzero return values will in fact be the magnitude of the distance.
* @inheritDoc
*/
public @Override int compareTo(Coordinate other) {...}
}
Integrated into 'main-golden', will be available in build *201011250001* on (upload may still be in progress)
Changeset:
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #103467: Explicit control of UndoableEdit chunking | https://netbeans.org/bugzilla/show_bug.cgi?id=103467 | CC-MAIN-2016-22 | refinedweb | 6,669 | 56.86 |
(9)
Valon Ademi(8)
Puran Mehra(5)
Scott Lysle(4)
Sateesh Arveti(4)
Dhananjay Kumar (4)
Mike Gold(3)
Chris Rausch(3)
Bechir Bejaoui(3)
Gurjeet Singh(3)
Dipal Choksi(2)
Matthew Cochran(2)
Charles Petzold(2)
Manikavelu Velayutham(2)
Ashish Banerjee(1)
Rajadurai P(1)
Levent Camlibel(1)
Michael Momcouglu(1)
Abebe Assefa(1)
fdutoit (1)
Karen Christenson(1)
Vivek Sharma(1)
Rick Malek(1)
Deepak Dutta(1)
Dan Clark(1)
Nicholas Christopher(1)
Daniel Stefanescu(1)
raviraj_bh (1)
kas_atd1 (1)
Harikishan Gireesh(1)
Santhi Maadhaven(1)
Ismail Pazarbasi(1)
Patrick Smacchia(1)
Satish Arveti(1)
Mike Clark(1)
Edmund H Smith(1)
Jigar Desai(1)
Ravee Rasaiyah(1)
Shivprasad (1)
Ramy Mostafa(1)
John Charles Olamendy(1)
Amit Choudhary(1)
Nikhil Kumar(1)
ashutosh k shukla(1)
Ashish Shukla(1)
anup hosur(1)
Divyesh Shah(1)
Gohil Jayendrasinh(1)
Syed Shakeer(1)
dheeraj pk(1)
Vijai Anand Ramalingam(1)
Ibrahim Ersoy(1)
Vulpes (1)
Shirsendu Nandi(1)
Zoran Horvat(1)
Kamal Rawat(1)
Suchit Khanna(1)
Suthish Nair(1)
Eddie Jack(1)
Mamta M(1)
Resources
No resource found
Creating and Using Custom Attributes in C#
Feb 27, 2000.
Attributes are classes that allow you to add additional information to elements of your class structure. Attributes in C#
Sep 14, 2001.
This article shows how to create custom attribute classes, use them in code, and query them.
Mapping Objects to Relational Databases
Nov 01, 2001.
The application generates C# Class files for each table in a relational database. I have used Mysql and ODBC.NET for this project. The application only supports MySQL right now.
Application Data Utility Class
Apr 24, 2002.
Attached is a ZIP file containing the source-code and compiled DLL of the "Application Data Utility Class"..
C# Style-Sheet
May 31, 2002.
This article contains a C# style-sheet for the GNU a2ps print utility. The style-sheet keywords, comments, preprocessor directives, and [] style attributes are pretty-printed in the typical a2ps fonts.
Using Active Directory
Jul 31, 2002.
This sample code can sense current context in Active Directory, checks for the existence of attributes, provides a list of all the attributes in Active Directory and can add a user to Active Directory.
Calling Procedural COBOL from C#
Sep 05, 2002.
In a previous article we discussed how to call procedural based COBOL programs from VB.NET.
Attributed Programming in .NET using C#
Oct 04, 2002.
In this article, I illustrate the power of attributed programming by examples that show a modular approach to issues that can crosscut many classes. Attributes will provide exciting software development abstractions in the future.
Invoking Unmanaged DLL Functions from Compact Framework for Pocket PC
Jan 04, 2003.
In this example we will use the Compact Framework to create a program containing a launch pad for the Pocket PC.
The "ins" and "outs" of Using Stored Procedures in C#
Jan 27, 2003.
This article reviews the creation of stored procedures with parameters using the Visual Studio IDE..
Performance Improvement in ASP.NET Using Caching
Feb 01, 2005.
ASP.
Comparing Conditional Attributes in C/C++ versus C#
Apr 09, 2005.
This article compares conditional attibuting in C/C++ and C#.
Attributes in C#
Feb 20, 2006.
In this artilcle, we will see what the attributes are and why should we use the attributes in our applications?
Assembly Viewer and Assembly Conflict Viewer in ASP.NET
Aug 10, 2006.
This article show how to view assembly attributes and conflicts in ASP.NET page using.
Generate SQL Statements With Objects, Attributes and Reflection
Jun 12, 2007.
Create a SQL Command with SQL Statement and Parameters dynamically. a configuration section group and retrieve configuration information from it: Part IV
Apr 18, 2008.
In the previous article , we demonstrate how to create a custom section with custom attributes using the ConfigurationSection class and IConfigurationSectionHandler interface.
Access AssemblyInfo File and Get Product Informations
Apr 22, 2008.
This article tells you that .Net have the assemblyInfo file for every project and also have custom attributes to access the asseblyinfo file attributes..
Introduction to Enterprise Library: Part II
Jan 19, 2009.
This article explains Attribute based validation in a Validation Application Block.
Introduction to Enterprise Library: Part III
Jan 21, 2009.
This article explains about Attribute based Validators and Rule sets of Validation Application Block.
Aspect Oriented Programming in C#.NET: Part II
Feb 19, 2009.
This article is the continuation of the Part I. We will continue with the same problem of the Customer Sales application discussed in Part I...
Data Contract Hierarchy in WCF
Jul 10, 2009.
This article will explain : Data Contract hierarchy,How base class and sub class are getting exposed in WCF?,What is Known Type attribute and Mixing of sterilization and DataContract
What is the AutoEventWireup attribute in ASP.NET
Sep 07, 2009.
In this article I will explain about AutoEventWireup attribute in ASP.NET
Client execution from server controls
Sep 09, 2009.
In this article I will expalin how to execute client script from server controls.
XML Overview
Nov 14, 2009.
In this article I will explain XML and how to write an XML code.
XML Namespaces
Nov 18, 2009.
In this article I will explain you about XML namespace, DTD and schemas and Extensible Hyper Text Markup Language.
An XML Document and its Items
Nov 19, 2009.
In this article I will explain you about XML Document and its Items.
Reading XML Documents using C#
Nov 23, 2009.
In this article I will explain you how to read an XML document in C#.
Attributes in C#
Nov 24, 2009.
In this article I will explain about attributes in C#.
Attribute or Styles in GDI+
Dec 21, 2009.
In this article I will explain about Attribute or Styles in GDI+.
Debugging and Tracing in C#
Feb 04, 2010.
In this article I will explain you about the Debugging and Tracing in C#..
Image Attributes and the ImageAttributes Class in GDI+
Mar 11, 2010.
In this article I will explain about Image Attributes and the ImageAttributes Class in GDI+.
LevelFinal and Exclusive Attributes in C#
Mar 16, 2010.
In this article I will explain you about LevelFinal and Exclusive Attributes in C# .
Implementing an IComparable interface to a Class
Mar 31, 2010.
Here I have given an example of how to sort an Person class on the basis of its attribute by implementing IComparable interface.
CollectionDataContract Attribute in WCF
Aug 03, 2010.
In this article, I will explain you what is CollectionDataContract Attribute in WCF and why need it?.
Create Restful WCF Service API
Aug 30, 2010.
In this article I am going to explain you how to implement restful service API using WCF 4.0 . The Created API returns XML and JSON data using WCF attribute.
Reflection and Attributes in C#
Sep 03, 2010.
Attributes are attached to program entities such as types and methods to provide information about the entity at runtime. In this article, we will explore attributes using reflection in C#.
IgnoreDataMember Attribute in WCF POCO Serialization
Sep 29, 2010.
In this article we will see about IgnoreDataMember attribute in WCF POCO Serialization..
When you run the SilverlightHelloPhone program, and you turn the phone or emulator sideways, you'll discover that the display doesn't change to accommodate the new orientation, To fix that problem you have to make change in the root PhoneApplicationPage tag, of MainPage.xaml change the attribute.
Reading XML Attributes using LINQ to XML in Silverlight
Nov 29, 2010.
This code snippet demonstrates how to load an XML file and reads its nodes and their attributes in a Silverlight application using LINQ to XML.
Working with Attributes and Resources of XAML in Windows Phone 7
Nov 30, 2010.
Many classes that you use in XAML have something called a ContentProperty attribute. This word “attribute” has different meanings in .NET and XML; here I’m talking about the .NET attribute, which refers to some additional information that is associated with a class or a member of that class.
Basics of DataContract
Dec 08, 2010.
DataContract is under namespace System.Runtime.Serialization. During design time, DataContract Attribute is used to indicate which class should be represented as XSD..
How to Read / Search Node or Attribute in XML file
Dec 21, 2010.
In this article you will learn how to Read / Search Node or Attribute in XML file..
Image Filters using HTML
Jan 28, 2011.
Filters give a great variety of visual effects in web pages dynamically. We will see different types of filters in this article.
Generalized Class for Tombstone
Feb 02, 2011.
This is the simplest way for handling the Tombstone using Reflection and Custom attributes. We can use this code for tombstoning your application.
How to resolve the error “Cannot change hidden attribute for this field”
Feb 17, 2011.
In this article we will be seeing how to resolve the following error “Cannot change hidden attribute for this field”.
Canvas in HTML 5
Mar 17, 2011.
As you well know HTML5 has some new elements including the Canvas element. A Canvas is an object that displays graphics in it.
Web Farm - Simple Overview
Mar 25, 2011.
In this article we are going to discuss a simple overview of the Web Farm and its advantages.
Calling Unmanaged Functions Which Take a Variable Number of Arguments From C#
Mar 29, 2011.
Many C# programmers are familiar with the Platform Invoke mechanism (using the DllImport attribute) for calling unmanaged functions from C#.
Filter Search in JQ Grid Using Jquery in ASP.NET Application
May 11, 2011.
In this article I will describe how to do a filter search by comparing two given attributes in another window..
Drag and Drop in HTML 5
Jun 01, 2011.
Drag and Drop API is one of the most important part of HTML5 API specifications because more and more sites are using the drag and drop functionality.
Attributes in C#
Jun 08, 2011.
In this series we will see the usage of “Attribute” with the help of some examples and creation of our own custom attributes to be used in a sample use case..
Creating a Custom Markup Extension in WPF
Jul 08, 2011.
Custom Markup Extension enables you to extend XAML and set any property that can be set in XAML using attribute syntax..
About Placeholder-attribute-in-HTML. | http://www.c-sharpcorner.com/tags/Placeholder-attribute-in-HTML5 | CC-MAIN-2016-30 | refinedweb | 1,719 | 58.28 |
I want to copy/paste in my tmux sessions like I was able to with El Capitan. I just installed MacOS Sierra and I no longer have this functionality. I didn't realize how often I utilized this capability until I lost it yesterday.
- MacOS Sierra Beta 5
- Tmux 2.2
- iterm2 build 3.0.7
- reattach-to-user-namespace v2.5
Things I have done
- I tried the original tmux config settings in this article using reattach-to-user-namespace.
- I have uninstalled reattach-to-user-namespace and reinstalled with brew.
- I know that beginning in El Capitan, the above wrapper was no longer needed to use pbcopy/pbpaste. It was removed from my
.tmux.conffile with the release of El Capitan.
This is the last hiccup I need to fix after loading up Sierra on this macbook. I'm not sure how to debug this to figure what is not working correctly. Any help in either direction, with debugging aid or a solution, would be highly appreciated. | https://superuser.com/questions/1114694/on-macos-sierra-beta-5-using-iterm-2-and-tmux-i-have-lost-the-ability-to-copy-p/1114729 | CC-MAIN-2019-09 | refinedweb | 169 | 60.51 |
So is there a sort of ETA on when this will be part of Guile? On Fri, Aug 20, 2010 at 4:30 PM, Andy Wingo <address@hidden> wrote: > Hello, Mr. Lucy! > > At some point I might escape the need to apologize at every mail I send, > but until then: sorry for the late response! > > On Thu 05 Aug 2010 23:40, Michael Lucy <address@hidden> writes: > >> On Wed, Jul 28, 2010 at 12:13 AM, Michael Lucy <address@hidden> wrote: >>> I've officially eliminated the last define-macro expression. >>> >>> However, I get the feeling that things may not be exactly as desired. >>> The original program made extensive use of functions in building the >>> macros, and I originally tried to replace these with macros. This >>> turned out to be a little difficult to debug, however (read: I was >>> unable to make the code actually work). I eventually abandoned this >>> and just made datum->syntax calls. > > I'll have to check and see what the deal is. However note that with > procedural macros you can still use helper functions that operate on > syntax objects, destructing them via syntax and building up syntax > objects using `syntax'. Think of a procedural macro as consisting of one > helper function :) > >>> The downside is that one doesn't get all the same benefits of >>> referential transparency, so I still have gensyms in the functions >>> etc. Is this a problem? > > Yep! But it probably won't be a big deal to fix. > >>> Another question about module namespaces: I have some syntax that I'd >>> like to be available to code generated by macros in my module, but >>> which I'd rather not export to the user (to avoid clobbering their >>> functions). Is there a standard way of doing this? > > Phil mentioned @ and @@, but the normal case is that things Just Work, > due to the referential-transparency-preserving properties of > syntax-case. > > For example: > > (define-module (a) > #:export (b)) > > (define-syntax b > (lambda (x) > (syntax-case x () > ((_ exp) > #'(c exp))))) > > (define-syntax c > (syntax-rules () > ((_ exp) (car exp)))) > > (define-module (d) > #:use-module (a)) > > (b '(1 2 3)) > => 1 > > You see that the expansion of `(b '(1 2 3))' in the module `(d)' > produced a reference to `c' -- but `c' is private in the `(a)' > module. Barring the use of datum->syntax, syntax-case macros *scope free > identifiers within the lexical conext and module in which they > appear*. That's what "hygiene" is. > > Anyway, I hope to have time to poke this next week. I'm very much > looking forward to having a good PEG parser! > > Cheers, > > Andy > -- > > > | https://lists.gnu.org/archive/html/guile-devel/2010-08/msg00058.html | CC-MAIN-2021-43 | refinedweb | 432 | 68.91 |
Getting Started
This tutorial illustrates how to use Qt VS Tools to create a Qt GUI application. You will create a project using a project wizard and design a UI using Qt Designer. In addition, you will learn how to convert a Visual Studio project file into a qmake compatible
.pro file.
To create a Qt VS Tools project, you must add at least one Qt version.
Select Tools > Extensions and Updates > Online to install or update Qt VS Tools.
Creating Qt GUI Application Projects
To create a Qt GUI application project in Visual Studio:
- Select New Project > Installed > Templates > Visual C++ > Qt > Qt GUI Application.
- In the Name field, enter AddressBook, and then select OK.
- To acknowledge the Welcome dialog, select Next.
- Select the modules to include in the project, and then select Next.
The modules that are typically needed in GUI application projects are selected by default.
- In the Base class field, enter QWidget as the base class type.
- Select the Lower case filenames check box to only use lower case characters in the names of the generated files.
- Select the Precompiled header check box to use a precompiled header file.
- Select the Add default application icon check box to use a default application icon for the application.
- Select Finish to create the project.
You now have a small working Qt application. Select Build > Build Solution to build it, and then select Debug > Start Debugging to run it. For now, the result is an empty window.
Designing the Main Window
You can use Qt Designer to design the application's main window, which contains some widgets placed in layouts:
For more information about using Qt Designer, see the Qt Designer Manual.
Adding Widgets
To add widgets to the UI and to set properties for them:
- In Visual Studio's Solution Explorer, double-click the
addressbook.uifile to open it in Qt Designer.
- In Qt Designer's Widgetbox, select List Widget and drag and drop it to the form to add a QListWidget.
- In the Property Editor, set the
ObjectNameproperty to addressList.
- Drag and drop two Push Button widgets to the top-right corner of the form to add QPushButton objects for the Add and Delete buttons.
- Set the button names to addButton and deleteButton and text property values to Add and Delete.
- Drag and drop two Label widgets to the form to add QLabel objects for displaying the selected item in the list.
- Rename the first label to nameLabel and change its text property to <No item selected>.
- Rename the second label to emailLabel and leave its text property empty.
Position the widgets approximately as they appear in the screenshot above. In order to properly position the widgets and to ensure that they are resized correctly when the form is resized, you need to add layouts to the form.
Adding Widgets to Layouts
You will need a vertical layout for the buttons as well as a spacer to push the buttons to the top of the layout. In addition, you will need a second layout to manage the positioning of the other widgets as well as the button layout.
To add wigdets to layouts:
- Drag a Vertical Spacer item to the form to add a spacer.
- Select the buttons and the spacer, and then select Form > Lay Out Vertically to add a vertical layout (QVBoxLayout).
- Select the list widgets, the two labels, and the button layout, and then select Form > Lay Out in a Grid to add a grid layout (QGridLayout).
Note: Make sure that the labels are almost as wide as the form. Otherwise, the grid layout will make them only as wide as the address list.
- Select Form > Preview to preview your form without compiling it.
- Select File > Save to save the form.
Build and run the application to check the main window.
Adding Dialogs
Now that the main window is ready, you can move on to add functionality to the application. To have the application open a dialog when the user clicks the Add button, you must create an Add Address dialog and invoke the dialog from a slot connected to the Add button.
You can use a Qt file wizard in Visual Studio to create a UI form that contains the OK and Cancel buttons connected to the QDialog::accept() and QDialog::reject() slots, respectively. You can use Qt Designer to add other widgets to the form.
Creating the Dialog
To add a dialog to a project:
- In Visual Studio, select Project > Add Qt Class > Installed > Visual C++ > Qt > Qt GUI Class.
- In the Name field, enter AddDialog, and then select Add.
- To acknowledge the Welcome dialog, select Next.
- In the Base class field, enter QDialog as the base class type.
- Select the Multiple inheritance radio button.
- Select the Lower case filenames check box to only use lower case characters in the names of the generated files.
- Select Finish to create source, header, and UI files for the dialog.
Designing the Dialog
To design the dialog:
- In Visual Studio's Solution Explorer, double-click the
adddialog.uifile:.
- Add a Line Edit (QLineEdit) and set its objectName property to nameEdit. Leave the text property empty.
- Add another Line Edit and set its objectName property to emailEdit. Leave the text property empty.
- Select the labels and line edits, and then select Form > Lay Out in a Grid to add a grid layout.
- Add a Push Button and set its objectName property to okButton and text property to OK.
- Add a horizontal spacer to the left of the button.
- Add a horizontal layout for the spacer and the button.
- Add a vertical spacer between the labels and the button.
- Add a vertical layout for the labels and the spacer.
- Add a grid layout for both layouts.
- Select Form > Preview to preview your form without compiling it.
- Select File > Save to save the form.
Connecting to the Dialog's OK Button
To have the OK button invoke the QDialog::accept() slot, click the Edit Signals/Slots toolbar button to enter Qt Designer's Signals and Slots Editing Mode.
Click the OK button, drag the mouse cursor to an empty area of the form, and release the mouse button. In the Configure Connection dialog, connect the button's QPushButton::clicked() signal to the form's QDialog::accept() slot.
Opening Dialogs from the Main Window
To invoke the dialog when the user selects Add in the main window, you must add a slot to the
AddressBook class and invoke
AddDialog from this slot.
Forms that are created using Qt Designer call QMetaObject::connectSlotsByName() to establish connections between signals emitted by the form's child widgets and slots that follow the naming convention
on_<sender>_<signal>(). For the application to react appropriately when the Add button is clicked, you must implement a slot called
on_addButton_clicked().
To implement the slot, open the
addressbook.h file in Visual Studio and add a declaration for the slot:
private slots: void on_addButton_clicked();
Then open
addressbook.cpp and add the slot definition:
void AddressBook::on_addButton_clicked() { AddDialog dialog(this); dialog.exec(); }
To connect to some other signal, you must add the signal to the
AddressBook class. This requires editing both the header file,
addressbook.h, and the implementation file,
addressbook.cpp.
Include
adddialog.h to
addressbook.cpp:
#include "adddialog.h"
To test your changes, build and run the application. Select the Add button to open the Add Address dialog, and then select OK to close it.
Adding Items to the List Widget
When the user selects OK, an item should be added to the QListWidget. To implement this function, modify the code in the
on_addButton_clicked() slot, as follows:); } }
The dialog is executed. If the user accepts it by selecting OK, the Name and Email fields are extracted and a QListWidgetItem that contains the specified information is created.
Displaying the Selected Item
When the user selects an item in the list widget, the
nameLabel and
emailLabel at the bottom of the form should be updated. the QListWidget::currentItemChanged() signal of
addressList and invoked whenever the selected item in the list changes.
Adding Functionality for the Delete Button
To implement a slot for the Delete button, open the
addressbook.h file in Visual Studio and add a declaration for the
on_deleteButton_clicked() slot. Then open
addressbook.cpp and add the slot definition for
on_deleteButton_clicked().
Type the following code in the slot's body:
void AddressBook::on_deleteButton_clicked() {.
Creating Qt Project Files
To build the application on other platforms, you need to create a
.pro file for the project.
To let Qt VS Tools create a basic
.pro file for you:
- Select Qt VS Tools > Create Basic .pro File.
- In the Export Project dialog, make sure that the Create .pri file check box is selected, and then select OK.
- Select Save to use the default location and name for saving the
.prifile.
For more information about
.pro files and their associated
.pri files, see Managing Projects.
You should now have a working
.pro file and
.pri file for your project. For more complex projects, manually editing the
.pro file is required to make it work on all platforms. However, for the example project, the generated
.pro file is. | https://doc-snapshots.qt.io/vstools-dev/qtvstools-getting-started.html | CC-MAIN-2019-22 | refinedweb | 1,527 | 65.93 |
CFD Online Discussion Forums
(
)
-
FLUENT
(
)
- -
UDF to modify the value of a user defined scalar
(
)
Raja Banerjee
December 11, 2000 18:07
UDF to modify the value of a user defined scalar
Hi, I have a two-phase flow between two parallel plates. I am using VOF model to simulate the flow. I have introduced a user defined scalar and trying to assign a value to the scalar at the interface. I am finding the interface by determining the cells which have the liquid volume fraction between 0 and 1. I am using DEFINE_ADJUST macro as I want it to be done every iteration. But it is not assigning the scalar value at the interface. I am provding here the code which I have written:
#include "udf.h" #include "sg_mphase.h"
DEFINE_ADJUST(vol_frac_find, domain) {
Thread *t=Lookup_Thread(domain,8);
cell_t c;
begin_c_loop(c,t)
{
if(C_VOF(c,t,1)>0. && C_VOF(c,t,1)<1.)
C_UDSI(c,t,0)=0.0228;
}
end_c_loop(c,t);
}
I would appreciate, if someone can point out my mistake.
The id that I have used in the Lookup_Thread function corresponds to the zone- default-interior in the boundary conditions dialog-box.
Thanks Raja Banerjee
Greg Perkins
December 11, 2000 19:06
Re: UDF to modify the value of a user defined scal
Try
DEFINE_ADJUST(find_vof, domain) {
cell_t c;
Thread *thread;
thread_loop_c (thread, domain)
{
begin_c_loop (c, thread)
{
if(C_VOF(c,thread,1)>0. && C_VOF(c,thread,1)<1.)
C_UDSI(c,thread,0)=0.0228;
}
end_c_loop (c, thread)
}
}
Raja Banerjee
December 12, 2000 01:52
Re: UDF to modify the value of a user defined scal
Thanks for your advice. But, the value that is being assigned is still not correct. The interface value seem to increase from zero to the maximum value as we go downstream. This should not happen because as can be seen from the code that the interface value is a constant and is not related to the distance in the downstream direction.
I would appreciate if have any suggestion for this behaviour. Raja
Greg Perkins
December 12, 2000 02:14
Re: UDF to modify the value of a user defined scal
One point is - what are you doing with the scalar transport equation (0) which you use for assigning C_UDSI(c,t,0) = value ??
If you just want to use this as storage for this value you should turn off solution of the UDS from the GUI (see manual to deselect solving the eqn - I think its in solution - controls - etc.). Alternatively in Fluent 5.4 you can use a memory location C_UDMI(c,t,0) instead which is more efficient than using a scalar transport eqn as a storage location - see udf manual for 5.4.
Greg
Raja Banerjee
December 12, 2000 11:42
Re: UDF to modify the value of a user defined scal
Well the idea of this whole excercise is that I am trying to determine the concentration of an evaporating liquid. As VOF does not support evaporation, I am introducing this scalar equation which is basically the species equation of the evaporating vapour. At the gas/liquid interface the mass fraction of the vapour corresponds to the saturated value, which is a function of vapour pressure. The diffusivity of the vapour inside the liquid is zero and a constant value in the gas phase.
Therefore the algorithm that I am trying to implement is:
1. Determine the interface i.e. 0<vol. frac <1 2. Assign saturated mass fraction at the interface, i.e C_UDSI(c,t,0) 3. Solve the scalar equation for the concentration profile over the liquid surface.
Therefore, I need to solve the scalar equation. Thanks Raja
All times are GMT -4. The time now is
07:29
. | http://www.cfd-online.com/Forums/fluent/28089-udf-modify-value-user-defined-scalar-print.html | CC-MAIN-2016-30 | refinedweb | 625 | 63.19 |
I have some code, and while most of it works, the final part of it does not. I have looked for the mistake in the code for quite a while, but I have been unable to. (It's probably something obvious too...)
Anyhow, here are the results of my last compile.
#include <stdio.h>
main()
{ int s_code, c_code;
double sale_amount, sale_comm;
printf("Salesperson code: ");
scanf("%d", &s_code);
printf("Customer code: ");
scanf("%d", &c_code);
printf("Sale amount in dollars and cents: ");
scanf("%5.2lf", &sale_amount);
printf("\n\n SALES REPORT");
printf("\nSalesperson Code: %7d", s_code);
printf("\n Customer Code: %7d", c_code);
printf("\n\n Sale Amount: $%7.2lf", sale_amount);
sale_comm = sale_amount * 0.144;
printf("\n Commission: $%7.2lf", sale_comm);
}
Salesperson code: 14
Customer code: 134
Sale amount in dollars and cents: 24
SALES REPORT
Salesperson Code: 14
Customer Code: 134
Sale Amount: $ 0.00
Commission: $ 0.00
Obviously the sale amount and commission aren't supposed to be zero, but I have racked my brains for a long time on this problem. Thanks in advance for your help. | http://cboard.cprogramming.com/c-programming/34339-seems-like-correct-code-but-results-not-right.html | CC-MAIN-2015-06 | refinedweb | 177 | 75.3 |
21 January 2010 06:16 [Source: ICIS news]
SINGAPORE (ICIS news)--Growth in global trade volumes will resume this year but at a very moderate pace as the world economy gradually recovers from the worst downturn it had experienced in decades, according to a World Bank report released on Thursday.
Trading activities should pick up and expand 4.3% in 2010 and plough on to record a slightly faster growth of 6.2% next year, after suffering heavy setback last year, when trade volumes slumped 14.4%, the report said.
World economic output would expand 2.7% this year and 3.2% in 2011, after shrinking 2.2% last year, the World Bank said.
“In this still weak environment, oil prices are expected to remain broadly stable, averaging about $76/bbl; and other commodity prices should rise by only 3% per year on average during 2010 and 2011,” the World Bank said.
US crude futures were trading at below $78/bbl on Thursday.
Trading petrochemical products, meanwhile, has been buoyant since the new year started, although most market players expect the price gains to be tamer this year compared to 2009.
Heavy economic pump-priming particularly in ?xml:namespace>
“Globally, GDP is improving, but it will be a long road to full recovery,” the institution said.
“The strength of the recovery will depend on private-sector demand and the pae of withdrawal of fiscal and monetary stimulus,” | http://www.icis.com/Articles/2010/01/21/9327589/trade-rebound-slow-as-world-economy-emerges-from-recession-wb.html | CC-MAIN-2014-23 | refinedweb | 237 | 64.81 |
Asked by:
error 26 - Error Locating Server/Instance Specified
Got a big headache. Have VS 2010 Express (Visual C# 2010 Express) and SQL Server 2008 R2.
Trying to run through the wizard to get add a new data source.
First thing, got rid of the file is in use msg by doing this:
Secondly, followed some of these instructions, although confusing as most are for 2005: as well as looking at this: (more for 2008).
Did the following trying to combine the above:
- In Server Properties Security changed Server Authentication from 'Windows Authentication mode' to 'SQL Server and Windows Authentication mode'
- Security, Logins, sa is enabled. Not sure what the default password is but left it.
- Server Properties, Allow remote connections to this server is ticked.
- In Surface Area Configuration changed everything to True except ServiceBrokerEndpointActive, SqlMailEnabled and WebAssistantEnabled (says not available). Did not export current state as policy.
- Tried this and ran
netsh advfirewall firewall add rule name = SQLPort dir = in protocol = tcp action = allow localport = 1433 remoteip = localsubnet profile = DOMAIN
in the cmd prompt as administrator got a msg of OK.
Not sure what else I should do or if I missed anything out! Would rather get some guidance now so I don't mess up!!!
Question
All replies
Hello,
The error 26 is a generic one which may mask a different error. So , please, could you provide the full and exact error message ( the message is sometimes in 3 parts, so every part of the error message is useful ) ?
Please, could you provide the full connection string that you are using in your application ?
As you are using VC# 2010 Express, you are not allowed to give the name of your SQL Server instance , but you must instead provide the name of the datafile of your database ( because the people who managed VS Express were thinking of the use of user instances only and not the "classical" use of connection with the full name of the instance )
Please, could you tell whether you are connecting to a remote or local SQL Server instance ( that's to say if your application and your instance are on the same computer ) ?
Please, could you tell which is he full edition of your SQL Server (Express,Standard,Entreprise,...) ?
We are waiting for your feedback to try to help you more efficiently.
Have a nice day
PS : there is a blog which is the best one about every possible connectivity problem:
this blog is managed by the Microsoft team who develop the protocols for SQL Server Protocols and its articles are really useful, even if some of them were written 7 years ago. ( see the part error message 5 ) ( i don't think that it is your case )
I hope that you will find something useful in all these links ( most of the articles written about connectiviry errors are using the articles of this blog )
Mark Post as helpful if it provides any help.Otherwise,leave it as it is.
- Proposed as answer by Ahmed Ibrahim - MSFTMicrosoft employee Thursday, April 26, 2012 5:57 AM
Thanks for your response. I have been trying almost everything under the sun to try and get this working. This is the main error msg which I get through the data source configuration wizard:
Unfortunately, I can't even get to the stage where it allows me to read the connection string as it gives the above error msg, but I go through the wizard, add new data source, Database, Dataset, New Connection, Microsoft SQL Server Database File, then I select the .mdf file from 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA'.
My application and instance are on the same computer so I am guessing this is a local connection.
My SQL server edition is SQL Server 2008 R2 Developer.
Wow. This is not an easy problem to resolve...
Hello,
Please, could you tell if your problem is occuring in the wizard creating the datasource in your VC# 2010 Express ?
Have a nice day
PS : in VC# Express, you have to provide the datafile of the database ( whith .mdf as extension ). Maybe a stupid question, but are you sure that the datafile name is correct ?
use SQL Server Management Studio Express (SSMSE) to get the full and correct filename :
in SSMSE , after having connected to your SQL Server instance, in the left panel,
- click on the name of the instance to develop all the nodes
- click on the node to develop the databases name
- right-click on the name of your database and click on "Properties", in the new form you should see the name of your datafile (.mdf) in the right panal.
Have a nice day
Mark Post as helpful if it provides any help.Otherwise,leave it as it is.
- Edited by Papy NormandModerator Friday, March 16, 2012 8:36 PM PS added
Yeah the problem is definitely in the wizard. The database I was trying to link to is in this file path: 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\F1_2011-3.mdf'. I am not sure I understand what you wrote about the nodes but the db is called F1_2011-3 in SSMSE.
In a separate development I easily got a connection in VWD 2010 Express as it is allowing me to select the data source as 'Microsoft SQL Server'. Visual C# does not appear to have this option - I can only get 'Microsoft SQL Server Database File' which seems to be causing this merry-go-round! Is there any way to get a data source option as 'Microsoft SQL Server' in Visual C# as this may resolve my problem?!
In addition, I'm now worried about all the settings I changed earlier today such as:
- In Server Properties Security changed Server Authentication from 'Windows Authentication mode' to 'SQL Server and Windows Authentication mode'
- In Surface Area Configuration changed everything to True except ServiceBrokerEndpointActive, SqlMailEnabled and WebAssistantEnabled (says not available). Did not export current state as policy.
- netsh advfirewall firewall add rule name = SQLPortdir = inprotocol =tcp action =allow localport = 1433remoteip =localsubnet profile =DOMAIN
- 'SQL Browser Service EXE' and 'SQL Server Windows NT - 64 bit' are all on public in the firewall.
I am wondering if some of these changes were unecessary and may compromise the security of my operating system (W7 HP SP1) without actually resolving the problem...
Hello,
I have tested VWD already and i know that it has a behaviour slightly different from the VC# ( it is the same thing for both versions 2008 and 2010 ).
I would suggest you in the datasource wizard to click on the button Advanced . You will see a new form with nearly all the possible properties of the connection string. Go to the bottom of the listview and have a look at the last property ( User Instance).If it is set to true, change it to false ( click on the end of the cell containing false, and select false ). You will avoid the "classical" pitfalls of the user instance ( the user instance feature is a nice feature but really difficult to understand and to use, with a major problem : it can be used only with a SQL Server Express instance, if you need to upgrade it to a not free edition like Standard, your application will not working ).
Please, could you test this little modification ?
Please, could you tell us how you have created your database ( with SSMSE or with VC# ) ? If you have used VC#, it is unable to create a "real" database, but only "user instance" database.You can see it in your SSMSE, but the way is not easy ( and sometimes tricky ).
A little advice : forbid the use of user instance on the server level ( in SSMSE, right-click on the SQL Server name, select Facets, in the new form, select the facet named "Server Configuration", in the listview, search the property UserInstancesEnabled to false and click on the OK button ).Be careful as it is for all databases of your SQL Server instance.But user instances are depreciated since SQL Server 2008 , and it is condemned to death ...
Have a nice day
PS : if you need to use user instance ( a depreciated feature which will not be supported in the version following Denali or 2012 ), a moderator will move ( with your agreement ) your thread towards the SQL Server Express Forum ( it is an habit to treat this kind of question because user instance is a feature specific to SQL Server Express ) where i think that the members of the SQL Server Express Team have a big look at all the threads.
Mark Post as helpful if it provides any help.Otherwise,leave it as it is.
OK - The database itself (the .mdf and .ldf files) was copied from SQL Server 2005 and had been created in SSMSE. It is currently operating with an MS Access 2003 form as a front end to SQL Server 2008 R2 Developer.
I changed the User Instance to False but am getting the same results. This is the connection string:
Data Source=.\SQLEXPRESS;AttachDbFilename="C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\F1_2011-3.mdf";Integrated Security=True;Connect Timeout=30;User Instance=False
In relation to the Facets I am unable to change the UserInstancesEnabled as it says: "Property value 'UserInstancesEnabled' is not available".
I tried to use another .mdf file as a test to try another db but got this msg: "You don't have permission to open this file. Contact the file owner or an administrator to obtain permission". I am not sure how to sort this out. I tried changing Auto Close to True in the Properties-Options of the database but it didn't make any difference.
Will installing SP1 for VS2010 help to resolve this problem?
Hello,
I am sorry not to reply before, but as it was Sunday, i was away in Normandy ( a good day in the country is always good for me as i am living 4 miles from the center of Paris ).
- to be sure that your connection to a SQL Server instance is working, the Visual Studio SP1 is necessary for the Visual Studio 2008 and the Visual Studio 2010 ( any language ). I have tested that 2 weeks ago, when i have reinstalled my drive C: and the operating system ( be careful to apply it for any Visual Studio Express and not to forget the security update but it cannot be installed in the same time than the SP1 ).
- i suppose that your SQL Server MSSQLServer instance is not a SQL Server Express Edition because you have the message "Property value 'UserInstancesEnabled' is not available". As I wrote already, this feature is supported only by the Express Edition, not by Web,Workgroup,Standard,Entreprise,... editions ( that's to say the editions which are not free )
- to get the name of the edition of a SQL Server instance, it is simple ( but not evident to find except if you are using SMO ). In the left panel ( Objects Explorer ), right-click on the name of the instance, select the Facets item of the contextual menu, and in the new form, select Informations on the server ( not sure that it is the good translation as I have a French Developer Edition ), search the values for Edition ( for me i see Developer Edition , its value is a string ) and EngineEdition ( for me i see EntrepriseOrDeveloper, its value is an enumeration ). You could find the last installed Service Pack in the value of ProductLevel. For the short name of the SQL Server instance, you will find it in the Installation Parameters facet, in the property named InstanceName ( not evident to find, i know ),it will return an empty string if it is a no-named instance ( or default instance , only one on a computer ), but i think that it is not possible for an Express edition ( to check ). You should find the name of the computer on which the SQL Server instance with the NetName or ComputerNamePhysicalNETBIOS properties ( Informations on the server )
- please, you wrote that "The database itself (the .mdf and .ldf files) was copied from SQL Server 2005 and had been created in SSMSE". I am not sure to have understood ( always my problems with english... ) but i am not sure that it would be the way. I would prefer to do a full backup oof the database on the SQL Server 2005 instance ( with SSMSEE ) , you copy your backup file on your new computer ( if you use a DVD/CD for the transfer, don't forget to mark the copied backup file as Read-Write, not ReadOnly ) and use the SSMS to restore your backup ( you may change the folder where to install your data and log files and even the name of your database )
- your connection string
"Data Source=.\SQLEXPRESS;AttachDbFilename="C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\F1_2011-3.mdf";Integrated Security=True;Connect Timeout=30;User Instance=False"
I have a doubt with your data source ( the full name of your SQL Server ), if you have attached/restored your database on another computer, i think that "Data Source = NetName" would be better ( NetName is the value of the NetName i wrote about in a preceeding part )
- you have a problem of permissions ( maybe in ReadOnly ) with the .mdf and .ldf , which is logical ( C: is checked especially from Vista ).If i have understood, your database should be named F1_2011-3 ( from the name of the .mdf file ). I am using VC# and VB Express 2010, but i disagree to the data tools provided by this edition ( too many problems with them ). Moreover, if you change the structure of your database, you have to recompile all the auto-generated part and 3 times, i lost all these auto-generated parts . I prefer to write the code by myself ( especially because i need some optimizations not supported by the VS Express Tools ).
I hope you will excuse me for the presentation of this post ( i know, it is not my strong point ). I have some tests to do between my own computer ( XP SP3 SQL Server 2008 SP3 all 32-bits ) and another computer ( Windows 7 Home Premium SQL Server 2008 R2 SP1 all 64-bits ), but the last one is busy with my younger boy ( he plays on it the whole week-end so i havee to wait for Monday to get it free )
Don't hesitate to post again for more help or explanations ( i know that my english is not easy to understand , i am trying to better it but i am nearly 65 so it is not easy ... )
Have a nice day
Mark Post as helpful if it provides any help.Otherwise,leave it as it is.
Many thanks for all your feedback. This is something I definitely need to take the time to look into.
I took the time to install SP1 for VS2010.
It looks as though there are various issues; edition issues, permissions, setup and copying files from SQL Server 2005. In fact I tried to do the same test with AdventureWorks for SQL Server 2008 R2 and still the same problems.
I am having no problems with VWD from what I can see, so this could also be a VC# issue.
This is what I have so far: Edition - Developer Edition (64-bit), Engine - EnterpriseOrDeveloper, ProductLevel - SP1, InstanceName - empty string, NetName/ComputerNamePhysicalNetBIOS - (my personal computer name).
The laptop that had SQL Server 2005 has now had its operating system reinstalled, so there is not much I can do, but will back up properly if the situation arises again...
In VWD and VC# Tools > Options, the Data Connections SQL Server InstanceName are defaulted to SQLEXPRESS. Changing this to MSSQLSERVER, an empty string or to (my personal computer name) made no difference.
Let me find a spare moment to look at this again during the week as this type of investigation looks like it will take me many more hours!!!...
Nevertheless many thanks for all the time you have put into this. I'm just astonished as to how this process is simplified in VWD and so complicated in VC#.
Hello,
Just a little remark before going to bed ( it's midnight for me ) : VWD is done to produce ASP applications, where the user instance is useless , it is why you must provide the name of the database, not the the name of the datafile.On contrary, VC# and VB ( Express Edition ) have been conceived for the use of user instance where the name of the datafile (.mdf) is necessary with the creation of a database stored in the same folder as the application.
I think that you have installed the Developer as a no-named instance, in this case , the data souce must contain only the name of your computer ( if your developer instance is local, not remote, you may replace the name of your computer by (local) or . , the same character marking the end of a sentence ). Please, could you test this modification in the connection string ?
I would suggest to test with the Class SqlConnection of the namespace System.Data.SqlClient before using the Data menu of your VS. And to use the auto-generated code produced thru the Data menu only when you will have understood how SqlConnection , SqlCommand and similar classes are working. I am using VC# ( and VB even i don't like it, too complicated ) since VS 2003 and i have solved very quickly most of my problems with this method.
If you want to understand the connection string and its properties, try to use the class SqlConnectionStringBuilder to build a connection string. To get the connection string , use the ToString() method of this class to get it and use the constructor of SqlConnection(connectionString). The advantage is important : the ToString() will throw an exception if the connection string is invalid. Other advantage : you may use the intellisense to load the properties of the SqlConnectionStringBuilder
SqlConnectionStringBuilder _builder = new SqlConnectionStringBuilder();
_builder.DataSource = "Alpha3" ; // if the computer name where the SQL Server has been installed is Alpha3
// if it is not a default instance, that's to say with the name MySqlServer _builder.DataSource = Alpha3\MySqlServer \ and not / erroneous
_builder.IntegratedSecurity = true;
_builder.InitialCatalog = "F1_2011-3"; // if the database name is F1_2011-3
_builder.ConctTimeout = 30;
String p_s = _builder.ToString(); //
SqlConnection _sqlconn = new SqlConnection(p_s);
I had no time to install a no-named instance and the CodePlex databases ( i will do it today 00:49 for me ) and i will post the code today
Have a nice day
Mark Post as helpful if it provides any help.Otherwise,leave it as it is.
OK - a lot of this is quite advanced for me!
In the Add Connection Advanced Properties DataSource properties there is only the option for '.\SQLEXPRESS' or '.' If I put in '.', I get a msg "The user instance login flag is not supported on this version of SQL Server. The connection will be closed". If I change this to '.\(my computer name)' which is the result of
SELECT @@SERVERNAME
I get my original error message.
Where do I put the connection string code in VC# i.e. which template do I use?
Many Thanks.
Hello,
I have installed a SQL Server Express 2008 R2 as a no-named ( or default ) instance on another computer ( Windows 7 Home Premuim SP1 ) with the CodePlex Databases Samples (SR1) for SQL Server 2008 R2 ( i can use it only after midnight or sometimes between 10 am upto 16 pm unluckily )
I created a little program ( a console application ) in VC# Express 2010 with the following code :
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; namespace Cons_ConnectExpressDefault { class Program { static void Main(string[] args) { String p_s = ""; Int32 p_spid = 0; SqlCommand p_sqlcmd = null; SqlConnection p_sqlconn = null; p_s = "Trying to connect to the 'default' SQL Server 2008 R2 Express instance on the AD-PC computer"; Console.WriteLine(p_s); p_s = "Connection in SQL Server Authentification with the login = Paddy"; Console.WriteLine(p_s); SqlConnectionStringBuilder p_scsb = new SqlConnectionStringBuilder(); // To make easier the search of the process in SSMSE p_scsb.ApplicationName = "TestRemoteConnection"; // 60 seconds is long but it would avoid problems with the AutoClose property of the database p_scsb.ConnectTimeout = 60; // name of the SQL Server instance // for the SQLExpress1 instance use "AD_PC\SQLExpress1" in the next line p_scsb.DataSource = "AD-PC"; // name of the database p_scsb.InitialCatalog = "AdventureWorksLT"; // SQL Server Authentification compulsory between // a XP SP3 and a Windows 7 Home Premium on a workgroup p_scsb.IntegratedSecurity = false; // MaxPoolSize at leaset > MinPoolSize + 1 p_scsb.MaxPoolSize = 3; p_scsb.MinPoolSize = 1; // I prefer to avoid the use of MARS p_scsb.MultipleActiveResultSets = false; p_scsb.UserID = "Paddy"; p_scsb.Password = "********"; p_scsb.Pooling = true; // The connection is not for Replication p_scsb.Replication = false; p_scsb.UserInstance = false; Console.WriteLine("Connection string : " + p_scsb.ToString()); p_sqlconn = new SqlConnection(p_scsb.ToString()); p_sqlconn.Open(); Console.WriteLine("Connection to {0} of {1} is open",p_sqlconn.Database,p_sqlconn.DataSource); p_sqlcmd = new SqlCommand(); p_sqlcmd.CommandText = "SELECT @@SPID"; p_sqlcmd.CommandTimeout = 30; p_sqlcmd.Connection = p_sqlconn; p_spid = Convert.ToInt32(p_sqlcmd.ExecuteScalar()); Console.WriteLine("SPID : {0}",p_spid); Console.Write("Type on any key to stop the program"); p_s = Console.ReadLine(); p_sqlconn.Close(); Console.WriteLine("Connection closed bye-bye..."); } } }
The result is ( the test application was on the my own computer with XP Pro SP3
Trying to connect to the 'default' SQL Server 2008 R2 Express instance on the AD
-PC computer
Connection in SQL Server Authentification with the login = Paddy
Connection string : Data Source=AD-PC;Initial Catalog=AdventureWorksLT;Integrate
d Security=False;User ID=Paddy;Password=*******;Pooling=True;Min Pool Size=1
;Max Pool Size=3;MultipleActiveResultSets=False;Replication=False;Connect Timeou
t=60;Application Name=TestRemoteConnection;User Instance=False
Connection to AdventureWorksLT of AD-PC is open
SPID : 53
Type on any key to stop the program
With SQL Server Express 2005, i never succeeded to create a default ( no-named ) instance.Today I discovered that it is possible with SQL Server 2008 R2 Express with a SQL Server service = MSSQLSERVER ( as logical ).Moreover, user instance does not support remote connections ( it can be used only with local instances )
I will do some tests to see how it is possible to use ( with my VC# 2010 Express ) the menu Data and the form DataSource to connect to a remote computer. I never have done it as i prefer to rely on my code than on the data wizard provided with VC#/VB Express Editions
As i wrote before, user instance is supported by the Express editions, so the use of the User Instance = True in the connection string is throwing an exception with a Developer Edition
In the Data Source property of your connection , you have only to put the name of the computer where the SQL Server has been installed ( idem for the DataSource property of my code ) and i will post my results ( positive or negative and possible other solutions )
Don't hesitate to post again for more help or explanations or informations making easier my searches
Have a nice day
Mark Post as helpful if it provides any help.Otherwise,leave it as it is.
Thanks for all the time and effort you are putting into this...
I can change the DataSource name from Tools > Options > Database Tools > Data Connections > SQL Server Instance Name (blank for default): in VC#. This name then appears in the Add Connection > ... > Advanced > Data Source when running through the Add Connection wizard. None of the changes made here i.e. changing the Data Source to my computer name or from the default SQLEXPRESS to MSSQLSERVER made any difference. Neither does changing the User Instance from True to False.
If this is a Developer edition issue then I am wondering if there is a workaround to the problem.
I would be interested in the results of your wizard based test!
Hello,
I have tried from the VC# Express 2010 menu Data ==> Add a new connection ==> Database ==> DataSet. In the form labelled Add a connection, i was annoyed by the fact that the "default" provider is for SQL Server Compact 3.5 as if the Express Edition neglects SQL Server Express or Developer. To get the datafile (.mdf), i have a big problem as the SQL Server has been installed with the default parameters, the directory where the .mdf file resides is unavailable ( no access permissions ). So my try has failed and i don't think that there is a way to avoid this pitfall.
During the last TechDays in Paris, i attended a session with members of Visual Studio team in France about the problems occuring with Visual Studio. Among the problems i have evoked , there was a question about the DataSource with SQL Server when using the Express VS and i have understood that this problem might not be solved for the next version of Visual Studio ( this using .Net Framework 4.5 ) but only with the next one.
The only solution given by the VS team was : use VS Pro and no more problem. My answer has been : in this case, what is the use of VS Express , a simple toy surely ? They were annoyed as they have no way to incite the Redmond Visual Studio Team to change their choices. Bad luck for the VS Express Editions and for us.
According what i have understood, VS VWD Express is nearly the same as the version of VS Pro, it is why it's working for you.
If you want , i can move your thread towards a forum related to Visual Studio where it could be seen by members of the Visual Studio Team ( a way to push them to change their choices for the next Visual Studio , i think that it is not too late )
I have done the same test with my Visual Studio Standard 2008. No problem with the connection with a database residing on a Windows 7 Home Edition. But it is not using .Net 4.0 and this edition has disappeared with VS 2010. A bad choice ( i would think : a stupid choice for us ).
I am sorry not to provide a solution to your problem ( except with a VS Pro which is far to be free and too much costly for me )
Have a nice day
Mark Post as helpful if it provides any help.Otherwise,leave it as it is.
Many thanks for another thorough investigation.
I am astonished that it is not possible to get a connection from VC# 2010 Express to SQL Server 2008 R2 Developer and would definitely be happy for you to move this thread to the Visual Studio forum.
Unfortunately, like you, I cannot afford the Professional version and there is no point in me installing a trial version which will expire.
I was in a bookshop today and thought I had found something in a book called 'C# Database Basics' relating to the Data Source (i.e. using .\\ instead of .\ before the SQL Server Instance Name) but no luck...
- Edited by meridius10 Wednesday, March 21, 2012 11:22 PM
Hello,
Just a short reply about the book. I would suggest :
- ADO.Net 3.5 Cookbook Author Bill Hamilton ( O'REILLY is the publisher ) about 55 US $
really interesting
- Programming Microsoft ADO.Net 2.0 Core Reference ( David Sceppa ) Microsoft Press
old but clear and complete
- i will buy a book from Microsoft Press about a certification for Data Access . I have read shortly it , one of the best ones i have seen : many informations, numerous pieces of code
For your problem, i remember that i participated to an old thread ( 2007 or 2008 ) about the way to change change the connection string in case of a change of the name of the SQL Server instance. If my memory is not too bad, the connection string build by the datasource wizard is stored in the app.config. I think to remember that it is possible to modify the name of the DataSource ( MyComputer\MyInstance) and even the name of the database in the app.config when the application has been created on an instance or /and database different from the real user ( but if you do an install, the bad connection string will be regenrated on each compile , so you have to change it on the user computer ).
Not a pleasant solution but it permits to use an instance + database with different names from the user computer on which the application will work.
I have to retrieve this thread and it is not easy as this forum gets around 15 new threads/day , around 4000 threads to look at... ( i will begin to-day ( it is 01:03 AM )
Have a nice day
Mark Post as helpful if it provides any help.Otherwise,leave it as it is.
Don't worry too much about it and I don't mind if this takes time to resolve itself. At the end of the day, I have an Access front end and there is a limited amount of time we can all put into resolving the problem. We may resolve it, but I don't mind prolonging until we get the result, as we all have to juggle our various priorities around!
At the end of the day it may very well be that VWD is a better application for this as ultimately the goal is to have an online database, although I am not sure how a user form would be developed which is similar in style to an Access front end.
I am doing this extension of the project on a voluntary basis for archaeologists so am using the opportunity to learn new technologies.
If you mean what is in the connection string above, the answer is yes.
Even if I try to run it with AdventureWorks, I get the same problem. This is the connection string for it:
Data Source=.\SQLEXPRESS;AttachDbFilename="C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\AdventureWorks_Data.mdf";Integrated Security=True;Connect Timeout=30;User Instance=True
with the same error message (26). On top of it all, I need to run VC# in administrator mode to be allowed a connection to the .mdf's.
Hello,
Data Source = .\SQLEXPRESS ==> named instance with a "short name " equals to SQLEXPRESS
AttachDbFilename="C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\AdventureWorks_Data.mdf" is corresponding to the AdventureWorks database which belongs to a no-named instance.
If you want to use the user instance , you have not to provide the Data Source. If you want to provide the Data Source with a no-named instance Data Source = .;AttachhDbFilename = ...
But , with my poor english, i may misunderstand something
Have a nice day
Mark Post as helpful if it provides any help.Otherwise,leave it as it is.
OK - I opened VC# in administrator mode (Run as Administrator).
The Data Connections SQL Server Name is now blank, or 'blank for default' as is written in Tools > Options > Database Tools > Database Connections.
The connection string is now:
Data Source=.;AttachDbFilename="C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\AdventureWorks_Data.mdf";Integrated Security=True;Connect Timeout=30;User Instance=True
The error msg in VC# has changed to: The user instance login flag is not supported on this version of SQL Server. The connection will be closed.
If I change the Data Source to my computer name I get the same error msg as before.
Update:
I changed the User Instance to False:
Data Source=.;AttachDbFilename="C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\AdventureWorks_Data.mdf";Integrated Security=True;Connect Timeout=30;User Instance=False
After pressing the Test Connection button I got a Test Connection succeeded msg
However, after this I got a msg: The ability to open this connection is not supported in this edition of Visual Studio
What fun!
P.S. Update on post below!....
- Edited by meridius10 Friday, March 23, 2012 11:16 AM
Bigger problem now!
In VC# when I try to connect a file I get a 'This file is in use. Enter a new name or close the file that's open in another program'.
In SQL Server 2008 R2. I got this msg when trying to open both the databases:
TITLE: Microsoft SQL Server Management Studio
------------------------------
Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)
For help, click:
------------------------------
ADDITIONAL INFORMATION:
Unable to open the physical file "C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\AdventureWorks_Data.mdf". Operating system error 32: "32(failed to retrieve text for this error. Reason: 15105)". (Microsoft SQL Server, Error: 5120)
For help, click:
------------------------------
BUTTONS:
OK
------------------------------
Both the databases have been replaced by:
Now I must prioritise trying to recover my databases!!!....
- Edited by meridius10 Friday, March 23, 2012 11:15 AM
Hello,
When i see your screenshot, i see 4 problems belonging to 2 groups :
1st group for the databases AdventureWorks and F1_2011-3 : no + before the names of these databases means ( usually ) that these databases are not accessible
2nd group for the both databases of which the names are beginning by C:\Program Files . These both databases have the names of the datafiles (.mdf) of the databases without a + before their names.
It seems that it is a problem that i obtained after having forgotten to set user instance = false in the connection string. I posted on a forum and i applied the solution , right-click on the name of the database and select the drop ( or delete i don't know the exact english term as i have French SQL Servers )
First, we need to know the full and exact edition of your "ill" SQL Server instance.
For that , connect to your SQL Server instance corresponding to the screenshot you provided. Right-click on the name of the SQL Server instance.In the conceptual menu, select Facets. In the new form, select the facet approxamitively named Server informations and give us the values for the 3 following properties : EngineEdition, NetName,VersionString.
It is only to identify whether it is an Express or not edition
Right-click on each of the 4 databases i wrote about at the beginning of this post. Select Facets, and in the new form select the Database facet and give us the values for the 8 following properties : AutoClose, CompatibilityLevel, CreateDate, IsAccessible, Name, ReadOnly , Status , Version
According the values you will provide, i ( or a moderator ) will move your thread towards the SQL Server Express Forum where i think someone of the SQL Server Express Team will try to save your databases ( if it is possible ).
And please, stop to use the Data Wizard to build a DataSource with your VC# , it is unable to use correctly a SQL Server ( Express or Edition ) . To connect correctly and without spoiling your databases, i know only one solution : ignore the Data Wizard , use the SQLConnectionStringBuilder class to build your connection string and to create your SqlConnection. And afterwards, you will have to code everywhere related to SqlCommand and other classes of the System.Data.SqlClient namespace. And it is an useful way as you have to learn but i needed only 2 months to understand how this namespace is working ( with goods books i provided the ttles of 2 ones )
We are waiting for your feedback to try to help you more efficiently.
Have a nice day
PS : if you get the message "user instance feature is not supported on this edition", it means the the SQL Server is not an Express edition ( it is why the value of the EngineEdition is so important ).
It is possible that you cannot get access to the databases without a + before their names : it means that the database is badly ill ( usually a part of its structure is missing , a problem which has only one solution : to drop it , it is the answer that i received for a similar problem from the Getting Started With SQL Server Forum and i thank very much the person who gave me this solution )
Mark Post as helpful if it provides any help.Otherwise,leave it as it is.
OK here is the info:
Engine Edition - EnterpriseOrDeveloper
NetName - mycomputername (sorry, I won't give the full name)
VersionString - 10.50.2500.0
DB1 (AdventureWorks)
Ran as administrator but still this msg:
AdventureWorks:
msg: TITLE: Microsoft SQL Server Management Studio
------------------------------
You do not have permission to view facets in [AdventureWorks]. (Microsoft.SqlServer.Management.Dmf.UI)
------------------------------
DB2 (F1_2011-3)
Also ran as administrator but still this msg:
F1_2011-3:
TITLE: Microsoft SQL Server Management Studio
------------------------------
You do not have permission to view facets in [F1_2011-3]. (Microsoft.SqlServer.Management.Dmf.UI)
-----------------------------
DB3 (C:\PROGRAM FILES\MICROSOFT SQL SERVER\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\ADVENTUREWORKS_DATA.MDF):
AutoClose - False
CompatibilityLevel - Version100
CreateDate - 23/03/2012 10:32
IsAccessible - True
Name - C:\PROGRAM FILES\MICROSOFT SQL SERVER\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\ADVENTUREWORKS_DATA.MDF
ReadOnly - False
Status - Normal
Version - 661
DB4 (C:\PROGRAM FILES\MICROSOFT SQL SERVER\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\F1_2011-3.MDF):
AutoClose - False
CompatibilityLevel - Version90
CreateDate - 23/03/2012 11:39
IsAccessible - True
Name - C:\PROGRAM FILES\MICROSOFT SQL SERVER\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\F1_2011-3.MDF
ReadOnly - False
Status - Normal
Version - 661
There is no problem with access to DB3 & DB4 as they have a + before their name. In fact (and I need to run this by you), I renamed DB4 to F1_2011-3-2 just as a test and changed the connection to my Access 2003 front end and it appeared OK. Does that mean that it is OK as this could be a better solution than something more complicated which results in potential data loss?
Don't worry, no more wizards. I am very tempted to move to VWD for this project as the goal is to have an online front end to replace the Access form.
Hello,
I would suggest this link
you should find some usefull explanations in a better english than mine.
I will have to reproduice your problem but not today ( 23:15 for me ).
I have the feeling that you have found the good way to solve your problem.
The idea of the use of VWD is far to be stupid, but simply clever ( you would avoid many problems.
Have a nice day
PS : maybe also this link even if the last post could be considered as aggressive
Mark Post as helpful if it provides any help.Otherwise,leave it as it is.
- Edited by Papy NormandModerator Friday, March 23, 2012 10:20 PM PS added
Thanks for the links. I will take a look at them when I get the time. In the meantime I have deleted DB1 & DB2 and renamed DB3 & DB4 to their original names. DB4 seems OK and the Access front end will do for now.
If it wasn't for finances, I would have installed the Professional edition and perhaps not had these problems.
I hope that other users won't have to go through all this!... | https://social.technet.microsoft.com/Forums/sqlserver/en-US/20fc7cde-3a05-4a4e-b71b-9c44e7b913ee/error-26-error-locating-serverinstance-specified?forum=sqldataaccess | CC-MAIN-2016-07 | refinedweb | 6,518 | 59.74 |
25 May 2010 15:42 [Source: ICIS news]
LONDON (ICIS news)—Initial settlements for June European propylene (C3) contracts have been agreed at a rollover of €1,000/tonne ($1,234/tonne), a major integrated consumer said on Tuesday.
“With the weak condition of raw materials, I do believe that a rollover was the best compromise,” one of the counterparties commented.
The contract, settled on a free delivered (FD) northwest Europe (NWE) basis, was between the consumer and three of its suppliers.
Two of the suppliers confirmed the settlement, while the third would not confirm in line with its company policy.
Propylene in ?xml:namespace>
Meanwhile, an initial European ethylene (C2) contract for June was agreed at €970/tonne ($1,197/tonne), a major olefins producer said.
($1=€0.81)
For more on prop | http://www.icis.com/Articles/2010/05/25/9362480/initial-europe-propylene-june-contracts-roll-over-at-1000tonne.html | CC-MAIN-2014-41 | refinedweb | 134 | 59.33 |
{- | This module provides the 'BBox1' type (mainly for completeness). -} module Data.BoundingBox.B1 where import Data.Vector.Class import Data.Vector.V1 import qualified Data.BoundingBox.Range as R -- | The 'BBox1' type is basically a 'Range', but all the operations over it work with 'Vector1' (which is really 'Scalar'). While it's called a bounding /box/, a 1-dimensional box is in truth a simple line interval, just like 'Range'. newtype BBox1 = BBox1 {range :: R.Range} deriving (Eq, Show) -- | Given two vectors, construct a bounding box (swapping the endpoints if necessary). bound_corners :: Vector1 -> Vector1 -> BBox1 bound_corners (Vector1 xa) (Vector1 xb) = BBox1 $ R.bound_corners xa xb -- | Find the bounds of a list of points. (Throws an exception if the list is empty.) bound_points :: [Vector1] -> BBox1 bound_points = BBox1 . R.bound_points . map v1x -- | Test whether a 'Vector1' lies within a 'BBox1'. within_bounds :: Vector1 -> BBox1 -> Bool within_bounds (Vector1 x) (BBox1 r) = x `R.within_bounds` r -- | Return the minimum endpoint for a 'BBox1'. min_point :: BBox1 -> Vector1 min_point = Vector1 . R.min_point . range -- | Return the maximum endpoint for a 'BBox1'. max_point :: BBox1 -> Vector1 max_point = Vector1 . R.max_point . range -- | Take the union of two 'BBox1' values. The result is a new 'BBox1' that contains all the points the original boxes contained, plus any extra space between them. union :: BBox1 -> BBox1 -> BBox1 union (BBox1 r0) (BBox1 r1) = BBox1 (r0 `R.union` r1) -- | Take the intersection of two 'BBox1' values. If the boxes do not overlap, return 'Nothing'. Otherwise return a 'BBox1' containing only the points common to both argument boxes. isect :: BBox1 -> BBox1 -> Maybe BBox1 isect (BBox1 r0) (BBox1 r1) = do r <- (r0 `R.isect` r1) return (BBox1 r) -- | Efficiently compute the union of a list of bounding boxes. unions :: [BBox1] -> BBox1 unions = BBox1 . R.unions . map range | http://hackage.haskell.org/package/AC-Vector-2.3.2/docs/src/Data-BoundingBox-B1.html | CC-MAIN-2014-49 | refinedweb | 289 | 69.79 |
The usual workflow when developing interactive data visualizations with D3.js is based on the significant number of examples that the D3 community provides. They are broad and useful, but they are still not ideal. Most of the time, they require a lot of effort to integrate into your code and to make them production-ready.
In a previous series of posts about Leveling Up D3, I talked about a different way of building D3.js charts, using the Reusable API, building our components via TDD and improving them with events and refactorings. Following those ideas, and with the help of Eventbrite’s design team, we have been working on our chart library, and now we want to share it with you. It’s called Britecharts.
What is Britecharts?
Britecharts is a client-side reusable Charting Library based on D3.js v4 that allows an easy and intuitive use of charts and components that can be composed, creating beautiful visualizations.
The idea behind Britecharts is twofold: first, we want to allow developers and designers with little experience with D3.js to build great interactive charts with little initial effort. Second, we want to propose a framework for helping D3.js developers to create new D3.js charts by following standards like the Reusable API and Test Driven Development.
What problem does Britecharts solve?
The project is just an implementation of the Reusable Chart API. As such, it solves the problems of regular D3.js charts, namely, lack of modularity, high complexity, low re-usability and poor testability.
We also wanted to accomplish this with an eye for aesthetics so that anybody could have a beautiful chart working out of the box. Our project also offers the set-up necessary to create charts on a TDD basis as well as a playground for polishing and manually testing them.
Rendering your first BriteChart
For installing the library, you can use NPM or Bower to install the individual JavaScript files and CSS stylesheets (we are getting ready a bundled version to be downloaded via CDN). Here we see an example using NPM:
npm install britecharts npm install d3
Then, you will load the dependencies this way on your ES2015 project:
import * as d3 from 'd3'; import bar from 'britecharts/dist/umd/bar.min.js';
Next up we will create your first chart. We will start with the data definition. Here, we have a piece of data:
const data = [ { "name": "Radiating", "value": 0.08167 }, { "name": "Opalescent", "value": 0.0492 }, { "name": "Shining", "value": 0.02782 }, { "name": "Vibrant", "value": 0.04253 }, { "name": "Vivid", "value": 0.02702 }, { "name": "Brilliant", "value": 0.02288 } ];
This data is the result of an imaginary poll we made around our team at Eventbrite. As it is category data, we will use a horizontal bar chart to represent it.
Once we choose the chart type, we want to check out the required data entries for it. We do this by navigating to the global section of the docs and searching for the bar chart. Here, we see that the right data format should be:
[ { value: 1, name: 'glittering' }, { value: 1, name: 'luminous' } ]
Our original data format is pretty much the same, so we won’t need to transform the data. To plug our chart inside a container div that we previously created on our HTML, we will need to type:
let barChart = new bar(); let barContainer = d3.select(‘.js-container’); let containerWidth = barContainer.node() ? barContainer.node().getBoundingClientRect().width : false; barChart .margin({ left: 120, right: 20, top: 20, bottom: 5 }) .horizontal(true) .usePercentage(true) .percentageAxisToMaxRatio(1.3) .width(containerWidth) .height(300); barContainer.datum(data).call(barChart);
And using a template that includes Britecharts styles and the chart container:
<head> [...] <link rel="stylesheet" href="node_modules/britecharts/dist/css/britecharts.min.css"> </head> <body> <div class="js-container"></div> </body>
the previous code will render:
Every chart has a series of properties that are public, in this case: horizontal, width, valueLabel and height. You can find them on each chart’s API menu on the docs homepage. Here is the Bar Chart API.
Responsive Charts
Once we have our data visualization rendering, we usually want to make our charts responsive. In order to achieve this, we will first set up a listener to the ‘window.resize’ event and trigger a redraw when that happens.
const redrawCharts = () => { let barContainer = d3.select(‘.js-container’); let newContainerWidth = barContainer.node() ? barContainer.node().getBoundingClientRect().width : false; // Setting the new width on the chart barChart.width(newContainerWidth); // Rendering the chart again barContainer.datum(data).call(barChart); }; const throttledRedraw = _.throttle(redrawCharts, 200); window.addEventListener("resize", throttledRedraw);
It is also useful to
throttle that event so that we don’t redraw our chart a considerable number of times, as this event triggers many times with every
resize event. For this, we will use a util library like underscore or lodash.
Advanced Settings
Now that we have a responsive chart, we will use other components to add more functionality. In this case, we will add a tooltip to our chart.
The bar chart and other Britecharts have some mouse events attached to their elements and exposed through custom named events. This way, when we hover with our mouse (or tap on mobile devices), a custom event will be triggered. We can easily hook up a handler function, whose code will look like this:
... import miniTooltip from 'britecharts/dist/umd/mini-tooltip.min.js'; let tooltip = new miniTooltip(); let barChart = new bar(); let barContainer = d3.select('.js-bar-chart-container'); let containerWidth = barContainer.node() ? barContainer.node().getBoundingClientRect().width : false; barChart .margin({ left: 120, right: 20, top: 20, bottom: 5 }) .horizontal(true) .usePercentage(true) .percentageAxisToMaxRatio(1.3) .width(containerWidth) .height(300) .on('customMouseOver', tooltip.show) .on('customMouseMove', tooltip.update) .on('customMouseOut', tooltip.hide); let tooltipContainer = d3.select('.bar-chart .metadata-group'); tooltipContainer.datum([]).call(miniTooltip);
And that’s it! The tooltip is working!
Styling
Depending on the number of charts you will use, you could either load the whole bundle of styles or load the styles of different charts plus the common styles. The bundled configurations and split charts and styles can be found in the
dist/ folder.
We can add additional styles to our chart in different ways. Britecharts provides some color palettes that you can use for the bars, and you can also style the SVG elements with CSS, either overriding the original styles or by simply starting again from scratch.
Let’s see an example:
import colors from 'britecharts/dist/umd/colors.min.js'; [...] barChart.colorSchema(colors.colorSchemas.extendedOrangeColorSchema); [...] barContainer.datum(data).call(barChart);
Will render an orange themed bar chart:
Remember that you could also create animations for the SVG paths, using dashed lines or making them move, grow or anything else that you can think of! Read more in this great article by Sara Soueidan
When Britecharts is not for you
We have tried to achieve a healthy balance between ease of use for both nontechnical people and D3.js specialists alike. Still, if you are going to need just one chart to customize deeply and never use again, maybe the example-based approach will work better for you.
Looking ahead
We are super excited about the launch of Britecharts and want to hear your opinions on it!
Any feedback about the documentation, complexity, customization options and ease of use are highly appreciated.
With Britecharts, we hope to help newcomers to the D3 community to structure their charts and test them efficiently. Our goal is for it to become a library of high-quality, tested data visualizations.
Resources
- Documentation homepage – More information about the library
- Chart Demos – Check the available charts and some styling examples
- Github repository – Wander in the code and contribute by giving your opinion on proposals
Contributing
If you are excited about Britecharts, want to add more configurable properties or even create your own chart, please check our Contributing Guide. In it, we walk you through the development environment setup, run our docs and demos and create new Pull Requests.
4 thoughts on “Introducing Britecharts: Eventbrite’s Reusable Charting Library Based on D3”
How does this differ from, say, Plottable () or C3 () or any of the other charting libraries built on D3 that already exist?
Not trying to diminish the work or anything but have you considered joining efforts with an existing project? One that fit your needs/requirements the closest? I realize there might not be a perfect match but I think the OSS community/ecosystem would’ve benefited more by you contributing your resources/efforts towards improving an existing project than starting a new one.
Hi Adam, thanks for taking the time to give us feedback!
What you comment about contributing to other OSS projects it’s a good point, and in theory, makes the most sense. When we get into the context, it gets tricky.
Britecharts got started circa May 2015 as a way of abstracting away some D3 code, and provide charts with very particular feature and design requirements. Under the influence of two books (Developing a d3.js Edge and Mastering D3), we also wanted something that was tested and running in a CI environment. I did some research and didn’t found anything that covered those requirements, so I we had to roll our own.
Regarding Plottable, it got a lot nicer, at the time didn’t have that many charts, so I didn’t dive deeper on it. I would reject it though, as it has an API that is really far from D3.
On C3, they did a great job, it was on my research back then. The interface was again far from D3, being much more declarative, similar to Highcharts.
Another one would be NVD3, that was on my radar too. Their API is more like D3, and we think a lot less accessible for non-d3 developers or designers. Comparing it with Britecharts, our library is more opinionated on the ‘looks’.
API-wise, I see them more or less like this:
D3 —NVD3——Britecharts———Plottable—OOP———C3— Declarative
This illustrates one of the reasons why I think developers could prefer Britecharts; it could become a stepping stone towards start using D3.
Using Britecharts, a junior developer could render a chart quickly, just doing d3 selections. Then, she can start tinkering with one of the charts and even create a new one, learning d3.js in the process.
Thanks for your work. What I’m concerning with is, can britecharts easily realize all examples on the D3 website other than the several simple ones you provide?
Hi Scarlett, thanks for your comment!
Oh, no, Britecharts is not as powerful as D3!
The point of Britecharts is to help users create Britecharts charts, that internally use D3.js, without having to deal with the powerful but complex D3.js API.
It is true though that if your D3 level allows it, you could create any D3.js chart following the code structure and tests of Britecharts. | https://www.eventbrite.com/engineering/introducing-britecharts/ | CC-MAIN-2017-26 | refinedweb | 1,826 | 65.12 |
You need to create a new file on disk, but you don't want to write into it.
Use a java.io.File object's createNewFile( ) method.
You could easily create a new file by constructing a FileOutputStream or FileWriter (see Recipe 10.6). But then you'd have to remember to close it as well. Sometimes you want a file to exist, but you don't want to bother putting anything into it. This might be used, for example, as a simple form of interprogram communication: one program could test for the presence of a file and interpret that to mean that the other program has reached a certain state. Here is code that simply creates an empty file for each name you give:
import java.io.*; /** * Create one or more files by name. * The final "e" is omitted in homage to the underlying UNIX system call. */ public class Creat { public static void main(String[] argv) throws IOException { // Ensure that a filename (or something) was given in argv[0] if (argv.length == 0) { System.err.println("Usage: Creat filename"); System.exit(1); } for (int i = 0; i< argv.length; i++) { // Constructing a File object doesn't affect the disk, but // the createNewFile( ) method does. new File(argv[i]).createNewFile( ); } } } | https://flylib.com/books/en/2.213.1.181/1/ | CC-MAIN-2020-50 | refinedweb | 210 | 67.15 |
Background tasks¶
pretix provides the ability to run all longer-running tasks like generating ticket files or sending emails in a background thread instead of the web server process. We use the well-established Celery project to implement this. However, as celery requires running a task queue like RabbitMQ and a result storage such as Redis to work efficiently, we don’t like to depend on celery being available to make small-scale installations of pretix more straightforward. For this reason, the “background” in “background task” is always optional. If no celery broker is configured, celery will be configured to run tasks synchronously.
Implementing a task¶
A common pattern for implementing asynchronous tasks can be seen a lot in
pretix.base.services
and looks like this:
from pretix.celery_app import app @app.task def my_task(argument1, argument2): # Important: All arguments and return values need to be serializable into JSON. # Do not use model instances, use their primary keys instead! pass # do your work here # Call the task like this: # my_task.apply_async(args=(…,), kwargs={…})
Tasks in the request-response flow¶
If your user needs to wait for the response of the asynchronous task, there are helpers available in
pretix.presale
that will probably move to
pretix.base at some point. They consist of the view mixin
AsyncAction that allows
you to easily write a view that kicks off and waits for an asynchronous task.
AsyncAction will determine whether
to run the task asynchronously or not and will do some magic to look nice for users with and without JavaScript support.
A usage example taken directly from the code is:
class OrderCancelDo(EventViewMixin, OrderDetailMixin, AsyncAction, View): """ A view that executes a task asynchronously. A POST request will kick off the task into the background or run it in the foreground if celery is not installed. In the former case, subsequent GET calls can be used to determinine the current status of the task. """ task = cancel_order # The task to be used, defined like above def get_success_url(self, value): """ Returns the URL the user will be redirected to if the task succeeded. """ return self.get_order_url() def get_error_url(self): """ Returns the URL the user will be redirected to if the task failed. """ return self.get_order_url() def post(self, request, *args, **kwargs): """ Will be called while handling a POST request. This should process the request arguments in some way and call ``self.do`` with the task arguments to kick of the task. """ if not self.order: raise Http404(_('Unknown order code or not authorized to access this order.')) return self.do(self.order.pk) def get_error_message(self, exception): """ Returns the message that will be shown to the user if the task has failed. """ if isinstance(exception, dict) and exception['exc_type'] == 'OrderError': return gettext(exception['exc_message']) elif isinstance(exception, OrderError): return str(exception) return super().get_error_message(exception)
On the client side, this can be used by simply adding a
data-asynctask attribute to an HTML form. This will enable
AJAX sending of the form and display a loading indicator:
<form method="post" data-asynctask {% csrf_token %} ... </form> | https://docs.pretix.eu/en/latest/development/implementation/background.html | CC-MAIN-2020-34 | refinedweb | 510 | 55.54 |
apfelmus schrieb: > Benedikt Huber wrote: >> So, the Ref deriviation is really nice for sequential updates; >> parallel updates on the other hand need some work. >> .. >>) > Thanks for the nice overview. I see there can't be a general purpose combinator (&&&) for lenses. One could still define a helper function though: combineDisjoint :: Lens a b -> Lens a c -> Lens a (b,c) combineDisjoint l1 l2 = Lens $ select &&& update where select = (fst . focus l1) &&& (fst . focus l2) update cx (a,b) = flip (snd . focus l2) b $ (snd . focus l1) cx a which performs the first update using the initial context, and the second one using the updated context. Just to have a simple way of defining lensPlayers in term of lensPlayer1 `combineDisjoint` lensPlayer2. While it is not a (general purpose) combinator, it is still helpfull for combining lenses focusing on fields of a record. -- I just want to rephrase my question about paralell updates; it has more to do with records updates than with References / Lenses, though: Suppose we have a record data R = R { a:: A, b :: B, c :: C } deriving (Show {-! Ref !-}) and update functions fa :: a -> a, fb :: b -> b, fc :: c -> c Now the standard way to perform the update on R would be updateR = \r@(R {a=a,b=b,c=c}) -> r { a = fa a,b = fb b,c = fc c } which is 'a little bit' cumbersome. With update deriviations (like Update using DrIFT), references (Ref using Data.Derive) or lenses it is easy to perform the update sequentially (using DrIFT style for simplicity): updateR' = a_u fa . b_u fb . c_u fc But this corresponds to updateR' = (\f r -> r { a = f (a r) }) fa . (\f r -> r { b = f (b r) }) fb . (\f r -> r { c = f (c r) }) fc which (in some way) is not 'the same' as updateR. First, I (uneducatedly) guess that the record updates cannot be 'executed' in paralell, i.e. the record has to be deconstructed and build up again three times. And second, neither the types of the updates (e.g. a_u fa :: R -> R) nor the structure of updateR' (composing R->R functions) do reflect the fact that actually disjoint fields of the record are updated. Now I know there are great record proposals (which extend the haskell language or use some type hackery), but I wondered if there is also a solution which can be used right now and which works fine with the standard record types. I'll give a naive ad-hoc example to illustrate the idea. One could automatically derive the following data type and the associated functions for R: data R_upd = R_upd { updA :: A -> A, updB :: B -> B, updC :: C -> C } rUpd = R_upd id id id updR :: R_upd -> R -> R updR rupd r@(R { a=a,b=b,c=c }) = r { a = (updA rupd a), b = (updB rupd b), c = (updC rupd c) } which would allow to write things like updGame $ gameUpdate { updPlayer1 = increaseScore, updPlayer2 = decreaseScore }) Though simple, I hope it is possible to understand the idea (I know there is a lot of namespace pollution). And of course, someone has thought of something much more sophistacted already :) What are the drawbacks of such an approach ? thanks, benedikt | http://www.haskell.org/pipermail/haskell-cafe/2007-November/035414.html | CC-MAIN-2014-15 | refinedweb | 533 | 67.69 |
justin__devine at hotmail.com (JDevine) wrote in message news:<f9d01b73.0407271254.427a271a at posting.google.com>... > I am going through the painfull process of learning wxPython. Sincer > there is nearly no documentation, I am learning from the demos. > Unfortunately, I have realized these demos do some specialized > importing and that all the imports are not applicable. Specifially, > All I want to do now is insert a bmp I have drawn into a windows > application. The image clases from the demos are completely > unexplanatory about how to do this. The "images" module that is > imported has custom functions for calling a specific set of images > such as GetTest2Bitmap, which does not help me at all. Please help me > understand this. > > -Thanks > > -Justin Maybe this will help you. # SimpleImage ver 1.0 # by M.E.Farmer Jr. 2003 # Utilizes the new wx namespace # usage: python SimpleImage.py image.jpg import sys import wx try: frame = wx.Frame(None, -1, "SimpleImage", size=(-1,-1),pos=(1,1)) wx.InitAllImageHandlers() # Converts the image into a wx compatible bitmap pix = wx.Image(sys.argv[1], wx.BITMAP_TYPE_ANY).ConvertToBitmap() # Now wx.StaticBitmap() can be used to place that bitmap onto the parent st = wx.StaticBitmap(frame, -1, pix, pos=(1,1), size=wx.Size(pix.GetWidth(),pix.GetHeight())) frame.SetClientSize(wx.Size(pix.GetWidth(),pix.GetHeight())) app = wx.PySimpleApp() frame.Show() app.MainLoop() except:frame.Destroy() Hth, M.E. Farmer | https://mail.python.org/pipermail/python-list/2004-July/278764.html | CC-MAIN-2019-35 | refinedweb | 234 | 62.95 |
Generate Documentation with ApiGen
If you’ve ever worked with someone else’s code, you know the pain (or pleasure) of missing (or existing) documentation. Well documented code is one of the cornerstones of professional software development, and unless you learn how to document your code so that it becomes second nature, you’re doing yourself and others more harm than good.
If this sounds overly discouraging, it’s because it should be. If you’re writing undocumented code, you should stop this very moment. I’m serious. Drop everything, save and quit, and focus on improving this essential part of your workflow.
Over the years, I’ve had to suffer through horrible documentation (hello, Zend Framework!) and have glided through some pretty solid stuff as well (thank you, Swift Mailer!). I try to document every single file I produce, and I’ve been doing it long enough now that it has become second nature. I have a strict documentation standard I follow, one that is compatible with ApiGen, the documentation generator, and one that is highly human-readable but also fully compatible with modern IDEs. This means I can generate my library documentation for the public along with examples, tutorials, descriptions and possible errors with a single command.
ApiGen is a docblock parser like PhpDocumentor. PhpDocumentor has been around for much longer than ApiGen, but unfortunately its development is somewhat stunted and it lacks in terms of modern documentation and examples. It also has some unpleasant dependencies which can cause problems on fresh PHP installations, and often throws errors that aren’t documented anywhere. You can find out more about the PhpDocumentor in a previous SitePoint article. As for which is better… I believe ApiGen to be the logical choice due to the following downsides of PhpDocumentor:
- requires page-level docblocks (above namespaces)
that serve no purpose; they are never properly parsed and the entered descriptions are nowhere to be found. Update, August 24th 2012: a commenter has pointed out that page-level blocks are in fact used in templates other than the default. They are still, however, not essential, and generate errors when PhpDoc is parsing, staying in the documentation as logged errors indefinitely.
- no search in the generated documentation.
layout errors – long package names break the “Api Documentation” drop-down menu, the generated GraphViz charts will have a Z-index higher than the menus and will thus appear above them even when the menus are expanded(see note below) fails to recognize some type hinting for unknown reasons.(this is fixed in alpha8, see note below) no html support in tag descriptions – HTML tags stay visible, so advanced formatting is not possible from what I’ve noticed.(see note below)
Note, Aug. 24th: Most of these issues have been fixed in the last version I tested – alpha 10. However, the lack of a search function is still a deal breaker for me.
Docblocks and Tags
We’ll be using a couple classes I wrote for the purpose of this tutorial spread out across a couple folders under two simple namespaces. These classes won’t be a whole lot of use in the real world, but they’ll serve us well for this article. Since the classes are rather large with all the comments and spacing dictated by the PSR-2 standard, I’ve uploaded the full code to GitHub. There are multiple branches available in the repo; the first branch ‘base-code’ contains nothing but the actual classes, The second branch ‘commented-code’ contains fully commented code, and the third branch ‘documentation-generated’ has a
docs directory in which you can find auto-generated documentation.
Observing every class would take too much time and space, so instead let’s focus on just one right now. We’ll take a look part by part at the
User class and I’ll explain the docblocks for each snippet:
<?php /** * This block contains a short description of the classes * present in the rest of this file. * * This paragraph contains the long description of the same * things. * * This entire block will be completely ignored by ApiGen and * is here only to maintain compatibility with PhpDocumentor. * Requiring the presence of this near useless block in every * php file is one of PhpDocumentors downsides. * * @package Some package that only PhpDocumentor sees. */ namespace MyLibrary; use MyLibraryAbstractsSuperType; use MyLibraryInterfacesUserMapper; use MyLibraryExceptionsUser as UserException; /** * The User class is a sample class that holds a single * user instance. * * The constructor of the User class takes a Data Mapper which * handles the user persistence in the database. In this case, * we will provide a fake one. * * @category MyLibrary * @package Main * @license * @example ../index.php * @example <br /> * $oUser = new MyLibraryUser(new MappersUserMapper());<br /> * $oUser->setUsername('swader');<br /> * $aAllEmails = $oUser->getEmails();<br /> * $oUser->addEmail('test@test.com');<br /> * @version 0.01 * @since 2012-07-07 * @author Bruno Skvorc <bruno@skvorc.me> */ class User extends SuperType {
As what should be common practice for everyone by now, we first define a namespace at the beginning of the class file (ignore the entire docblock before the namespace which is there only for PhpDocumentor compatibility). We then follow it up with some
use statements in order to establish aliases for the classes used by the class.
Next, we see a comment block immediately preceding the class declaration. This is a class description and it tells the user/developer what the class does in a short and concise TL;DR manner. The main class description usually consists of two parts – the short description and the long description. The short description is the first paragraph, and the long description is everything from the short description to the first docblock marker (even multiple paragraphs, in-line examples, anything the author thinks of).
What follows then are several markers, each with its own purpose.
@category specifies the category to which the class belongs. Categories are parents to packages (see below) and form large supersets of classes and utilities. Categories are usually as encompassing as namespaces, and as such our
@category is actually the name of our namespace.
@package defines a smaller, more precise set of classes and utilities. It’s usually a subdirectory in the main namespace, or in the case of our User class, the “Main” package, which means it’s at the root of our library. There is also the
@subpackage marker which can go even deeper. There is usually no need for it (due to namespaces handling all tree structures nicely), but an example would be “@category MyLibrary, @package User @subpackage Exceptions”, which means the class is in the MyLibrary category, and is a User-related Exception inside the User package.
@category and
@package are arbitrary, and many developers use them as they see fit. There is no specific standard because properly namespaced code replaces the need for them – namespaces take precedence over these markers. Some developers even like to mark their classes as “@category controller”, “@category view”, and “@category model” in MVC libraries. When namespaces are not used, parsers like ApiGen will look at categories and packages to organize your documentation – but they prefer to ignore them in favor of namespaces.
@license specifies the license that applies to the code, and is usually a link to an online resource. Another useful marker can be the
@copyright marker, which tells users if the code is copyrighted. The copyright marker usually contains the year range and the entity which copyrighted the code, be it an individual or a legal entity.
@example is a path to a file containing sample usage of the class this marker is in. In our case, we indicate that sample usage of the
User class can be found one directory up, in the
index.php file. The
@example marker can also provide another in-line example. A class can have as many example tags as it needs.
@version is the version tag and should be changed with every update.
@since marks the date of creation for the current class.
@author specifies the developer who created the class. It can be just a name, or an e-mail address formatted as “Name ”. A docblock can contain multiple authors and all will be listed in the documentation.
Continuing onward, let’s look at the properties of the class right under the class declaration:
/** * The user's username. Defaults to contact email. * @var string */ protected $sUsername; /** * An array of the user's emails. The first element * is the main contact email. * @var array|null */ protected $aEmails = null; /** * A boolean flag on whether or not the user is logged in * @var bool */ protected $bLoggedIn = false; /** * The mapper is responsible for all data persistence and for * fetching existing records from the database when a username * is provided. * @var UserMapper */ protected $oMapper = null;
Property docblocks only need to contain a short description and a
@var marker which hints at the value type the property will contain. If there is a chance of multiple types being contained in said property, a pipe separator can be used, meaning “or” (e.g. array|null).
Finally, let’s have a look at the documentation of a method, in this case, the
setUsername() method:
/** * Sets the username for the given user instance. If the username * is already set, it will be overwritten. Throws an invalid * argument exception if the provided username is of an invalid * format. * * @param string $sUsername The username string to set * * @return User * @throws InvalidArgumentException * @todo Check to make sure the username isn't already taken * * @since 2012-07-07 * @author Bruno Skvorc <bruno@skvorc.me> * * @edit 2012-07-08<br /> * John Doe <john@doe.com><br /> * Changed some essential * functionality for the better<br/> * #edit3392 */ public function setUsername($sUsername) { if (!$this->checkString($sUsername, 5)) { throw new InvalidArgumentException( "The username needs to be a valid non-empty string of 5 characters or more." ); } $this->populate($this->oMapper->findByUnique($sUsername)); $this->sUsername = $sUsername; return $this; }
Method docblocks always start with the description of the method which should be as detailed as possible in order to avoid any and all problems when other developers use it.
A list of accepted parameters follow the description using one or more
@param markers. Each marker should have an expected type (string, bool, int, etc. or a mix of several types separated with the pipe character – array|int|string), the actual parameter name as it appears in the method declaration, and its description.
@return describes the return value of the method. If the method returns no value, the marker should say “@return void”, otherwise, a specific type should be declared (e.g. “@return int”, or in our case “@return User” since the method returns the instance of the very object it was executed on). A description of the data is optional but desired when return values can get complicated (e.g. associative arrays).
The
@throws marker lets the developer know which Exceptions to expect in cases of errors. There can be multiple
@throws markers, and they can (but usually don’t) have descriptions. Instead, the situation in which an exception is thrown is usually described in the method description.
If a method/class is unfinished and some functionality is still to be added, the
@todo marker can be utilized. Not only is it recognized by ApiGen and turned into a task list when the documentation is being generated, it also shows up on the task list in many modern IDEs enabling you to easily track unfinished work. Docblocks can have as many todo markers as they want – they can even be added in-line (in the middle of a method) and will still be recognized by ApiGen and added to the task list.
Using
@since and
@author at the method-level is not very common since putting the author and date into the class-level docblock is usually sufficient, but knowing which developer added a mysterious method into a class that was originally yours is invaluable in large teams in which multiple developers sometimes work on the same class. This is entirely optional and takes a bit more time and keystrokes, but I’ve found that the benefits far outweigh the effort in large projects.
The
@edit tag is not an officially supported tag. It has no meaning or value in the official docblock documentation and is not expected by any documentation generator I know of. I’ve enforced it’s usage simply because it’s indispensable in following code changes through means other than version control. In tandem with Git or SVN, the
@edit tag can easily let you know who edited which file, when and why – and the hashtag at the end will be the same hashtag used in the commit message of the edit in the actual version control system, so it can be easily found when needed. Proper version control and teamwork is outside the scope of this article, but you would do well to adopt the @edit marker when working on other people’s code – the clarity it provides when you look back on your edits months down the road can save you countless hours of frustration.
By having this kind of documentation in place, we make sure that every developer who opens our files in the future knows exactly what each class does, and has good autocomplete regardless of which IDE they use. Now let’s turn our documentation into something even prettier to look at!
Installing and using ApiGen
Installing ApiGen is as simple as their website says. To install ApiGen, run the following commands (you might have to “sudo” them):
$ pear config-set auto_discover 1 $ pear install pear.apigen.org/apigen
That’s it, ApiGen is now installed. If this doesn’t work, try following some of the alternative instructions as detailed on their website.
Now it’s time to run ApiGen with some useful flags (everything except source and destination is optional):
$ apigen --source . --destination docs/apigen --todo yes --title "My Library Documentation" --php no --download yes
The
--destination flag instructs ApiGen to place the documentation in the
docs/apigen directory. The
--todo flag generates a task list from any
@todo markers it finds.
--title sets the title of the documentation project, the
--php flag tells ApiGen to ignore core PHP files (like certain exceptions, if used) and the
--download flag tells it to generate a downloadable ZIP archive of our source code as well.
Look at the generated documentation by opening
index.html in the documentation’s folder, or by visiting the appropriate virtual host URL in your browser. What ApiGen generated there is an impressive set of HTML files which, when used together, form a beautiful static website with your project’s entire structure laid out. You can navigate through namespaces, subfolders, even use a search function with a fast auto-complete in the top right corner and download the entire zipped source. Every property, method and class we defined in the project is now visible in structured tabular and/or tree form on screen – even “todo” comments (click on “todo” at the top of the screen)!
All you have to do in order to expose this documentation to the public is upload it to your server and point a domain or subdomain at it – everything you see in the HTML files will also be visible to the visitors.
ApiGen has a plethora of other useful flags (implementation of Google Analytics, a custom root URL, a custom configuration directive, styling, etc.) but these are outside the scope of this article and might be covered in a later article into greater detail.
In Conclusion
Whether you’re a single developer working on smaller projects, or part of a larger team working on a joint effort, commenting is essential to your workflow. If done properly and with certain project-wide or team-wide standards in mind, it will help you and your colleagues avoid hours of toiling later on when revisiting older code and will allow users of your code to have a much smoother experience getting into it and sticking around. Bad documentation is one of the main reasons new users of complex libraries give up on them – so to avoid turning your users and colleagues away, adopt these best practices today. | https://www.sitepoint.com/generate-documentation-with-apigen/ | CC-MAIN-2019-09 | refinedweb | 2,696 | 50.87 |
Can I include a user written .h file within the .h file in C ???
This is a discussion on Including header file with in the header file within the C Programming forums, part of the General Programming Boards category; Can I include a user written .h file within the .h file in C ???...
Can I include a user written .h file within the .h file in C ???
The answer can't fulfil my query.
Sappose I make a header file named gtool.h and within this .h file I include that gtool.h
Is that exceptable?
Why would you want to? No, it's not acceptable. If you include the same file you're currently in, you'll get a loop, and the compiler will error.
I recently Buy a book named Graphics programing in c by BPB publication.Wher I found a user written file
named gtools.h and there I see the gtools.h included within the header file.Can u send me a sample user written header file by which i draw both rectangle and circle (as per example)
I exactly want to know how I right the code. So pls help me with your enormous skill!
That was probably a publishing error -- just comment out the recursive include. Many books are netorious for publishing bad, unedited code.
but, consider this...
andandCode:#include "any.h"
are not the same!are not the same!Code:#include <any.h>
hello fnoyan...
As we know for a use defined header file we use to include header file in double quotes like "Header.h" . and inbuilt header in angle brackets, like <Header.h>. But why this difference is there and how compiler treats to both.
S_ccess is waiting for u. Go Ahead, put u there.
Some applicatons you write may need special definitions and you put them into your own header file.On some systems, like UNIX, an ordinary user cannot copy a header file into one of the standart header lookup directories for compiler.
In most of C++ programs class definitions and implementations are done in different files and included in the main file.
You can specify your own header include directory for the compiler and may use <anyhile.h> instead of "anyfile.h" even if your header is not in the predefined header include path. For example, if you use gcc you can specify the current directory as a standart include file lookup directory as follows
I think there is no difference between both type of include from the compiler point of view.I think there is no difference between both type of include from the compiler point of view.Code:gcc -L./ prog.c
gcc uses -I for additional include paths, not -L. -L is for additional library path searches.
depends on the compiler -- some compilers do not distinguish between quotes and brackets.depends on the compiler -- some compilers do not distinguish between quotes and brackets.
Originally Posted by fnoyanOriginally Posted by fnoyan
U are talking about compiler dependent views. But what does the ANSI standard says about these two.U are talking about compiler dependent views. But what does the ANSI standard says about these two.
Originally Posted by Ancient DragonOriginally Posted by Ancient Dragon
S_ccess is waiting for u. Go Ahead, put u there.
Thank u all. Ur knowledge will help me to spread my idea and depth on c & c++. Thanks for debating on my topic
From section 6.10.2 of the standard:From section 6.10.2 of the standard:
Originally Posted by mavenOriginally Posted by maven
2 A preprocessing directive of the form
# include <h-char-sequence> new-line
searches-char-sequence" new-line-char-sequence> new-line
with the identical contained sequence (including > characters, if any) from the original
directive.
If you understand what you're doing, you're not learning anything. | http://cboard.cprogramming.com/c-programming/73582-including-header-file-header-file.html | CC-MAIN-2014-42 | refinedweb | 641 | 69.48 |
POWERHOOK_ESTABLISH(9) BSD Kernel Manual POWERHOOK_ESTABLISH(9)
powerhook_establish, powerhook_disestablish - add or remove a power hook
#include <sys/types.h> #include <sys/systm.h> void * powerhook_establish(void (*fn)(int, void *), void *arg); void powerhook_disestablish(void *cookie);
The powerhook_establish() function adds fn to the list of hooks invoked by dopowerhooks(9) during any change in apm(4) power state (i.e., during a "suspend", "standby", or "resume"). When invoked, the hook function fn will be passed an int why and arg as its arguments. The int value why will be one of PWR_RESUME, PWR_SUSPEND, and PWR_STANDBY. The powerhook_disestablish() function removes the hook described by the opaque pointer cookie from the list of power hooks. If cookie is invalid, the result of powerhook_disestablish() is undefined.
If successful, powerhook_establish() returns an opaque pointer describing the newly established power hook. Otherwise, it returns NULL.
It may be appropriate to use a power hook to disestablish interrupts and disable PCMCIA functions on PC Cards that are present when the system is put into suspend mode. The reverse should happen on resume. It may be appropriate to use a power hook to halt audio output in a sound driver at suspend-time. On resume, it may not be possible to recover au- dio output, but at least the device can be put into a known, working state.
apm(4), dopowerhooks. | http://mirbsd.mirsolutions.de/htman/sparc/man9/powerhook_disestablish.htm | crawl-003 | refinedweb | 223 | 56.35 |
A couple of years ago, I wrote about the Python retrying library. This library was designed to retry the execution of a task when a failure occurred.
I started to spread usage of this library in various projects, such as Gnocchi, these last years. Unfortunately, it started to get very hard to contribute and send patches to the upstream retrying. e.g. wait condition easily by using the
| or
& binary operators. They are used to make the code retry if an
IOError exception is raised, or if no result is returned. Also, a stop condition is added with the
stop keyword arguments. It allows to specify a condition unrelated to the function result of exception to stop, such as a number of attemps condition for various use cases with simple binary operators.
Standalone usage
tenacity can also be used without decorator by using the object
Retrying, that implements its main behaviour, and usig its
call method. This allows to call any function with different retry conditions, or to retry any piece of code that do not use the decorator at all – like code from an external library.
import tenacity r = tenacity.Retrying( wait=tenacity.wait_fixed(1), retry=tenacity.retry_if_exception_type(IOError)) r.call(do_something)
This also allows you to re-use that object without creating one new each time, saving some memory!
I hope you'll like it and will find it some use. Feel free to fork it, report bug or ask for new features on its GitHub!
If you want to learn more about retrying strategy and how to handle failure, there's even more in Scaling Python. Check it out! | https://julien.danjou.info/python-tenacity/ | CC-MAIN-2020-05 | refinedweb | 272 | 55.03 |
First time here? Check out the FAQ!
I want to provide one or more files for my users to download it from a user dialog in JSF, how can I do that?
asked
09.10.2013 at 12:25
SupportIvyTeam ♦♦
1.2k●71●101●109
accept rate:
77%
PrimeFaces offers the p:fileDownload widget for this purpose, it allows to use (File)InputStream for download.
p:fileDownload
(File)InputStream
You need a p:commandButton (or alternatively a p:commandLink) to work with the p:fileDownload. It is important to set the attribute ajax to false as files cannot be downloaded by AJAX.
p:commandButton
p:commandLink
ajax
false
<p:commandButton
<p:fileDownload</p:fileDownload>
</p:commandButton>
The attribute value points to a member of the process data class that must have the type org.primefaces.model.StreamedContent. This object will be the one downloaded. In the code snippet below you can see how you can setup this object in the logic of the Html User Dialog.
value
org.primefaces.model.StreamedContent
import org.primefaces.model.DefaultStreamedContent;
import java.io.FileInputStream;
// create temp file and add some content
File file = new File("mytemp." + System.currentTimeMillis() + ".txt", true);
file.createNewFile();
file.write("Hallo " + System.currentTimeMillis());
// set file to download
FileInputStream fis = new FileInputStream(file.getJavaFile());
in.file = new DefaultStreamedContent(fis, "text/plain", file.getName());
We use DefaultStreamedContent to set in the process data that then will be used by the p:fileDownload. Note that the FileInputStream is not closed. Doing that would automatically abort the download. To avoid memory leaks, the DefaultStreamedContent will call the close method.
DefaultStreamedContent
FileInputStream
For more information, please see the example project or have a look at the PrimeFaces FileDownload demo.
Note: This question and answer was originally posted by Heinrich Spreiter on his Xpert.ivy Hacker blog. Henry, many thanks to you for your enthusiastic work.
answered
09.10.2013 at 12:39
Once you sign in you will be able to subscribe for any updates here
Answers
Answers and Comments
Markdown Basics
learn more about Markdown
htmluserdialog ×53
primefaces ×47
Asked: 09.10.2013 at 12:25
Seen: 5,943 times
Last updated: 09.10.2013 at 12:39
How to show a project image with p:graphicImage | https://answers.axonivy.com/questions/25/provide-file-download-in-a-html-user-dialog | CC-MAIN-2019-22 | refinedweb | 373 | 59.6 |
In this section we will discuss how to read one byte at a time from the input stream.
AdsTutorials
In this section we will discuss how to read one byte at a time from the input stream.
To read the input stream as byte streams Java provided an abstract class named InputStream through the java.io package. All the classes that represents the input stream of bytes are the subclasses of InputStream. In this example I have used the ByteArrayInputStream class which has the internal buffer which keeps the bytes which may be read from the stream. The close() method of this class has no effect i.e. after closing of ByteArrayInputStream methods in this class can be called without throwing an IOException.
There are two constructors of this Class :
Methods of ByteArrayInputStream
Example :
Here an example is being given which will demonstrate how to read one byte from the input stream at a time. In this example I have created a class named ReadByteStreams with the public static void main(String args[]) method. Using this class I have tried to take the String input through command line and then converted this String to a byte array. Then created an instance of InputStream and used the constructor of ByteArrayInputStream(byte[] b) which takes the argument of byte for its buffer array. Then used the read() method of ByteArrayInputStream to read the input stream as byte. Here I am giving the code of this example below :
/* Java Byte Streams Example This example demonstrates how to read one byte from the input stream at a time. */ import java.io.InputStream; import java.io.ByteArrayInputStream; import java.io.IOException; public class ReadByteStreams { public static void main(String args[])throws IOException { String str = args[0]; byte b[] = str.getBytes(); InputStream bais = null; bais = new ByteArrayInputStream(b); int r; while ((r = bais.read()) != -1) { System.out.print((char) r + " "); } bais.close(); } }
When you will execute the above code you will have to give an input as follows :
When you will press the Enter after providing the value then the output will be as follows :
Advertisements
Posted on: November 9, 2012 If you enjoyed this post then why not add us on Google+? Add us to your Circles
Advertisements
Ads
Ads
Discuss: Java Byte Streams Example
Post your Comment | http://www.roseindia.net/java/example/java/io/bytestreamexample.shtml | CC-MAIN-2017-17 | refinedweb | 383 | 61.46 |
I'm trying to improve my optimization skills in Java. In order to achieve that, I've got an old program I made and I'm trying my best to make it better. In this program I'm using SL4J for logging. To get the logger I did:
private static final Logger logger = LoggerFactory.getLogger(this.getClass().getName());
private static final Logger logger = LoggerFactory.getLogger(ClassName.class);
I'll share my opinion here. I would say that this is the case that you shouldn't be bothered from the performance point of view. Probably in the code there are parts that can be optimized much more than this thing :)
Now, regarding your question. Take a look on LoggerFactory's code
Note that
getLogger(Class<?> name) just calls the overloaded method:
Logger logger = getLogger(clazz.getName());
And makes some additional calculations. So the method with String is obviously slightly faster.
In general the pattern is to maintain the Logger reference as a static field in the class, something like this:
public class SomeClass { private static final Logger LOG = LoggerFactory.getLogger(SomeClass.class); }
In this case you can't really use
this.getClass() because
this doesn't actually exists (you're running in a static context).
From my experience its better to use the
ClassName.getClass() as a parameter unless you really want to use the same logger from different classes. In such a case you better use some logical constant that denotes the logger.
For example, let's say you're trying to use 3 different classes to access the database. So you create logger 'DB', assign a file appender that will write to database.log and you want to reuse the same logger among these 3 different classes.
So you should use the following code:
public class SomeClass { private static final Logger LOG = LoggerFactory.getLogger("DB"); }
Hope this helps | https://codedump.io/share/c5IBetT1arEE/1/loggerfactorygetloggerclassnameclass-vs-loggerfactorygetloggerthisgetclassgetname | CC-MAIN-2017-13 | refinedweb | 309 | 59.19 |
ncl_retsr man page
RETSR — Called by a user to return to a saved state of the recovery mode in NCAR Graphics.
Synopsis
CALL RETSR(IROLD)
C-Binding Synopsis
#include <ncarg/ncargC.h>
void c_entsr(int irold)
Description
The FORTRAN statement "CALL RETSR(IROLD)" is normally used to return the internal error flag of SETER that says whether or not recovery mode is in effect to the state that it was in before some past call to ENTSR.
If recovery mode is turned off by a call to RETSR at a time when the internal error flag is non-zero, this is treated as a fatal error; the error message is printed, the dump routine FDUM is called, and a STOP is executed.
The argument of RETSR is as follows:
- IROLD
(an input expression of type INTEGER) - Specifies a desired value for the internal flag that indicates whether recovery mode is in effect or not. The value 1 turns recovery mode on and the value 2 turns it off. Normally, one uses a value of IROLD that was previously returned by a call to ENTSR.
C-Binding Description
The C-binding argument descriptions are the same as the FORTRAN argument descriptions.
Examples
Use the ncargex command to see the following relevant examples: tseter, arex02.
Access
To use RETSR or c_retsr, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order.
See Also
Online: entsr, eprin, errof, error_handling, fdum, icfell, icloem, nerro, semess, seter, ncarg_cbind
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement. | https://www.mankier.com/3/ncl_retsr | CC-MAIN-2017-47 | refinedweb | 262 | 56.59 |
Python Pandas Notes
Page Contents
References
Introduction
A funny little example to see how average house prices differ in the UK using Pandas. The example uses data from the UK government's open data website on the residential property sales in England and Wales that are lodged with Land Registry for registration in 2014, to compute the 5 most expensive and least-expensive places to buy a home (on average)...
A small motivating example...
import urllib2 import os import pandas # # WARNING: File is about 150MB!! # See: print "Downloading data from WWW. Reading into Dataframe..." DATA_FILE = ('http://' 'prod.publicdata.landregistry.gov.uk.s3-website-eu-west-1.amazonaws.com/' 'price-paid-data/pp-2014.csv') df = pandas.read_csv( DATA_FILE, index_col=False, # Make sure first column is NOT treated as index! names=[ "code", "price", "date", "postcode", "f1", "f2", "f3", "address1", "address2", "address3", "address4", "address5", "address6", "county", "f4"] ) # Possibly don't really need to filter as price is the only numeric column # and pandas seems to ignore the non-numerics quite sensibly. df2 = df.ix[:,["county", "price"]] grouped = df2.groupby("county", sort=True) mean_prices_df = grouped.mean().sort(columns=["price"]) fig, ax = pl.subplots() print "\nThe 5 most expensive counties in the UK, 2014 are..." least = mean_prices_df.tail(5) print least print "\nThe 5 least expensive counties in the UK, 2014 are..." most = mean_prices_df.head(5) print most pandas.concat([least,most]).plot(ax = ax, kind='bar') pl.subplots_adjust(bottom=.5) ax.grid() fig.savefig(r'pandas_landreg.png')
This will output the following:
Read Data In From Files
From Tab Delimited File
If the data doesn't have column headings...
df = pandas.read_table('filename', header=None, index_col=0)
The parameter
header=None tells pandas there are no column headers.
The parameter
index_col=0 tells pandas to use column 0 in the file as the index.
You can use other paramters like
names=['col1', ...] to give columns specific names. To set the index name use
df.index.name = 'a_name'.
From A CSV File
df = pandas.read_csv(filename, header=None, skipinitialspace=True)
The field
header, if left out, will default to trying to infer if there is a header.
None means
no header and an integer or list of integers gives the row(s) which contain the header
From Microsoft Excel File
Also really easy:
df = pandas.read_excel('filename', sheetname='string or int-index', index_col=0, skiprows=0, names=['col1_name', ...])
The
filename can be a filename on your local PC or a URL. It can also be an xlrd object.
Massage Data Formats
Rename The Index Column
Often when reading in a file, having specified the index column, I want to give it a name. Done like so:
df.index.name = 'string-name'
Get The Date Formats In Order
DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S' df.datetime_column = pd.to_datetime(dfAssayInf.datetime_column, format=DATETIME_FORMAT, errors='raise')
Manually Create Data Frame
To create an empty data frame:
df = pd.DataFrame(index=range(numRows),columns=range(numCols))
Cleaning Data
Renaming Columns
You can reset all the column names at once by writing into to
df.columns attribute.
To selectively rename columns it is easier to use
df.rename(columns = {col1_name : col1_new_name, ...}).
Create/Modify Column Based On A Column
df['col-name'] = df.apply(a_function, axis=1)
The parameter
axis=1 means applying the function to columns,
i.e., each row will be iterated over and passed as a
Series object
to the function
a_function.
Create Empty Column
df.newNanCol = np.nan df.newStringCol = "" # And so on...
Remove Rows Where No Column Has A Value From A Set
df[df.isin([list, of, values]).any(axis=1)]
Select Columns Of Certain Types
To return a dataframe with only columns of certain types or excluding certain types use:
df.select_dtypes(include=[...], exclude=[...])
You can select numeric types using
'numpy.number', strings (and objects) using
'object', datetimes using
'datetime' and much more (see the doc link).
Trim All Strings
df_obj = df.select_dtypes(['object']) df[df_obj.columns] = df_obj.apply(lambda x: x.str.strip())
Row Operations
Iterate Through Rows
df.iterrows() -> (index_value, series)
The function
iterrows() returns a tuple for every row in the data frame. The
first tuple member is the index entry for the row and the second is a Series object
representing the columns in that row.
Filter By Set Membership
df[df['col-name'].isin([1, 2, 3, ...])]
Dates & Time
Parse A String Into A Date
pd.to_datetime('10/08/2011', format='%d/%m/%Y')
Creating Date Ranges
pd.date_range(pd.to_datetime('10/08/2011', format='%d/%m/%Y'), periods=10)
The above creates a range of dates from "10/08/2011" to "2011-08-19". What
periods
means is defined by another optional parameter
freq.
You'll note that instead of just passing the string "10/08/2011" straight to
date_range(),
I wrap it inside a
to_datetime() call. The reason for this was that, dispite my locale settings
being correct,
date_range() seemed to be interpretting the string as month-day-year, even when
I set
tz='gmt'. So to be explicit, remove ambiguity (the code becomes more self documenting) and
to make sure I don't trip myself up on these issues, I tend to do this.
Rough and ready notes
Pandas workhouses: Series and DataFrame INTRO TO DATA STRUCTS ===================== Series: ------- Series: 1D array-like object. Array of NumPy data type plus labels (the index) Series_obj = Series([...data...], index=[...labels...]) Series_obj.value = NumPy array containing data from the series object Series_obj.index = Array of indicies/labels for the series object Index can be anything... numbers, strings, whatever. Index a Series like NumPy arrays except use whatever type the index is of. Eg Series_obj['aString'] or Series_obj[['a','b','c']] or Series_obj[123] NumPy array operations, preserve the index-value link I.e, can treat Series like a NumPy array with a special intellegent index. Can create from dict. Dict keys become index and key values become the data. NaN indicate missing data in series. Use pd.isnull() or pd.notnull() to detect Series automatically align differently indexed data in arithmetic operations. This matching labels have operator applied and labels not in both Series become NaN in the resulting Series. Series and index have 'name' attribute. Can alter index in place. eg Series_obj.index = [...labels...] DataFrame: ---------- DataFrame represents a tabular data structure containing an ordered collection of columns, of possibly different value types. Has both row and col index. Like a dict of Series, all sharing same index ** DataFrame from dict of lists ** DataFrame from dict of equal-length lists: data = {'state': ['Ohio', 'Ohio', 'Ohio', 'Nevada', 'Nevada'], 'year': [2000, 2001, 2002, 2001, 2002], 'pop': [1.5, 1.7, 3.6, 2.4, 2.9]} frame = DataFrame(data) pop, state, year become the columns Can override the *order* of cols with DataFrame(data, columns= [...col labels...]) where col labels are the same as before, just sepcified in order to appear in tbl If spec a column not in data then it is added as Series of NaN's Get Series from dataframe like a dict or obj: frame.state //or frame['state'] Cols can be modified by assignment. Assign scalar sets all values to scalar. Can assign NumPy array of same length as DataFrame #rows. Assign Series means Series will be conformed to #rows inserting NaNs where needed (where labels/index don't match) Assign to non-existing column creates column del keyword removes columns (as in del frame2['eastern']) **DataFrame From Dict of Dicts** Outer dict keys become DataFrame columns Inner dict keys become row indicies/labels (they are unioned and sorted) Innder dict values become data (missing labels become NaNs) **DataFram From Dict of Series ** Outder dict keys become columns Series become the column values Iterate over rows: for row_idx, row in df.iterrows(): print row_idx, type(row) Index Objects ------------- Index objects hold the axis labels and other metadata (like the axis name or names). Index objects are IMMUTABLE. Index is array like and also fixed-sized-set like. e.g. can do "blah in frame.index" Index methods include append, diff, intersection, untion, isin, delete, drop, insert, is_monotonic, is_unique ESSENTIAL FUNCTIONALITY ======================= Reindex ------- Create new series with data conformed to new index. Can use to re-arrange order of current indicies and add new ones as NaNs (or fillValue=xxxx). eg obj.reindex(['a', 'b', 'c', 'd', 'e'], fill_value=0) Can interpolate values using method='ffill' (carries values forward) or 'bfill' (carries values backwards) For DataFrame reindex operates on either rows, cols, or both! frame2 = frame.reindex(['a', 'b', 'c', 'd']) // does ROWS by default frame.reindex(columns=[....]) // does COLUMNS Dropping axis entries --------------------- newser = Series.drop('x') drops row with label 'x' from the series. returns new obj or newser = Series.drop(['x', 'y']) newdf = DataFrame.drop([...], axis=?) - drops row/col, axis==1 is col, axis==0 is row (default is axis==0) Index, Selection, Filtering --------------------------- Use series like NumPy arrays. BUT RANGE IS END-INCLUSIVE FOR LABELS (but apparently not for numerical indexing??)!! Indexing for a DataFrame retreives one or more COLUMNS when using labels but using range or boolean array it selects ROWS. Can also index with another DataFrame Boolean. Mostly direct DF indexing is to do with columns. To index ROWS us the **.ix indexing field** It is a powerful indexer and lets you select a subset of the rows and columns from a DataFrame with NumPy-like notation plus axis labels DataFrame_obj.ix[row-specifier1, col-specifier] or DataFrame_obj.ix[row-range, col-range] The specifiers can be labels, indicies etc as per usual array selection/filter Indexing options with DataFrame (most exist for Series too!) Type Notes obj[val] Select single column or sequence of columns from the DataFrame. Special case conveniences: boolean array sample length as index (filter rows), slice (slice rows), or boolean DataFrame (set values based on some criterion). can use df.map() to generate more complex criteria0 obj.ix[val] Selects single row of subset of rows from the DataFrame. obj.ix[:, val] Selects single column of subset of columns. obj.ix[val1, val2] Select both rows and columns. reindex method Conform one or more axes to new indexes. xs method Select single row or column as a Series by label. icol, irow methods Select single column or row, respectively, as a Series by integer location. get_value, set_value methods Select single value by row and column label. loc - used on index values - LABEL BASED indexing. Start AND stop bound included in slices Accepts single labels, lists of labels, ranges of labels Use: series.loc[lbl] df.loc[row-lbl-spec, col-lbl-spec] where spec is single lbl, list of lbls, lbl range, or array of booleans. df.loc[row-lbl] for cross section - row row-lbl for all columns. TO BE PREFERED OVER CHAINED INDEXING. ie, for MultiIndex use df.loc[:,("a","b")] not df["a"]["b"] ESPECIALLY for setting! iloc - integer positions (i.e. like array index, 0 based) standard array indexing, i.e scalar, fancy, ranges, bools can SET using iloc Use: df.iloc[idx] - gives rows for all cols df.iloc[row-idx, col-idx] Out-of-range slices handled gracefully. .at/iat - fast scalar value get/set sample() for random samples isin() - returns bool vect, true wherever the element is in passed list. With df can also match vertain values with certain cols by passing in a dict. Eg from Pandas docu: values = { 'colA': [...], 'colB': [...], ... } row_mask = df.isin(values).all(1) df[row_mask] where() - return series with same shape as orig is s[s>0] v.s. s.where(s > 0) Same for df, also accepts value for where condition would be false to fill in with. By default returns copy by has inplace arg. mask() - inverse of where. get_loc - gets integer positions Arithmetic ---------- When adding together objects, if any index pairs are not the same, the respective index in the result will be the set union operation of the index pairs between each obj. All labels in one and not the other become NaNs! Can set fill values instead of NaN: eg. df1.add(df2, fill_value=0) - will make the value not in the other set equal to 0 for the operation. Arithmetic between DataFrame and Series is well-defined via broadcasting. Ops include add, mul, div, sub Sorting ------- sort_index == method to sort lexicographically by row or column index series_obj.sort_index() dataframe_obj.sort_index(axis=..., ascending=t/f) 0 for rows, 1 for cols order == sort by values (not index) -- only series series_obj.order() to sort by value for data frame use sort_index(... by=[cols-to-value-sort]) Duplicate values in index ------------------------- Duplicate values possible. is_unique() tells you whether axis labels are mutually exclusive If index by duplicate value all values with the matching index are returned Applies to Series and DataFrames Statistics ---------- df.sum(axis=0,1). 0 is default to sum cols, 1 to sum rows. skipna=t/f option to skip NaNs... true by default count() Number of non-NA values describe() Compute set of summary statistics for Series or each DataFrame column min(), max() Compute minimum and maximum values argmin(), argmax Compute index locations (integers) at which minimum or maximum value obtained, respectively idxmin(), idxmax Compute index values at which minimum or maximum value obtained, respectively quantile() Compute sample quantile ranging from 0 to 1 sum() Sum of values mean() Mean of values median() Arithmetic median (50% quantile) of values mad() Mean absolute deviation from mean value var() Sample variance of values std() Sample standard deviation of values skew() Sample skewness (3rd moment) of values kurt() Sample kurtosis (4th moment) of values cumsum() Cumulative sum of values cummin(), cummax Cumulative minimum or maximum of values, respectively cumprod() Cumulative product of values diff() Compute 1st arithmetic difference (useful for time series) pct_change() Compute percent changes Correlation and Covariance -------------------------- The corr method of Series computes the correlation of the overlapping, non-NA, aligned-by-index values in two Series. cov computes the covariance: series_obj1.corr(series_obj2), same as dframe.col1.corr(dframe.col2) dframe.corr/cov == full correlation or covariance matrix as a DataFrame Unique Values, Value Counts, and Membership ------------------------------------------- series_obj.unique() return series data as array with only unique values series_obj.value_counts() return series containing index as values and values as # occurences of the index values. series_obj.is_in([...set...]) returns series mask t/f for each value if in set. Handling Missing Data --------------------- all of the descriptive statistics on pandas objects exclude missing data by default pandas uses the floating point value NaN (Not a Number) to represent missing data The built-in Python None value is also treated as NA in object arrays NA handling methods: dropna Filter axis labels based on whether values for each label have missing data, with varying thresholds for how much missing data to tolerate. fillna Fill in missing data with some value or using an interpolation method such as 'ffill' or 'bfill'. isnull Return like-type object containing boolean values indicating which values are missing / NA. notnull Negation of isnull. eg df.fillna(0) or df.fillna({1: 0.5, 3: -1}) # Fill diff NAs in different cols with different vals Most return a new object but you can use 'inplace=True' to do it inplace on the curretn df The same interpolation methods available for reindexing can be used for fillna() Hierarchical Indexing --------------------- Enables you to have multiple (two or more) index levels on an axis: Series with a MultiIndex as its index. PARTIAL INDEX outer or inner index of hierachy: ser_obj['outer_label'] == returns all the inner labels and their data associated with the outer label ser_obj[:'inner'] == returns all the inner labels matching 'inner' returning the values labeled by outer ^^^^ This doesn't seem to work Use df.xs() Can use ranges/slices etc as normal in this form of indexing like the normal array ops ser_obj.unstack() == produces a dataframe with inner as the columns and outer as the rows ser_obj.stack() == does the inverse of unstack With a DataFrame, either axis can have a hierarchical index. In [270]: frame = DataFrame( np.arange(12).reshape((4, 3)), .....: index=[['a', 'a', 'b', 'b'], [1, 2, 1, 2]], .....: columns=[['Ohio', 'Ohio', 'Colorado'], .....: ['Green', 'Red', 'Green']]) In [271]: frame Out[271]: Ohio Colorado Green Red Green a 1 0 1 2 2 3 4 5 b 1 6 7 8 2 9 10 11 To re-order the hierachy levels use frame.swaplevel('key1', 'key2'). To sort the data by a particular level use frame.sortlevel(1) Stats functions can also pick a level: frame.sum(level='key2') Clean, Transform, Merge, Reshape ================================================= Overview --------- Data contained in pandas objects can be combined together in a number of built-in ways: + pandas.merge connects rows in DataFrames based on one or more keys. Implements database join operations. + pandas.concat glues or stacks together objects along an axis. + combine_first instance method enables splicing together overlapping data to fill in missing values in one object with values from another. Merging on column(s) --------------------- pd.merge(df3, df4, on='key', how='inner|outer|left|right') defaul 'how' is "inner" if no shared key can use options 'left_on='lkey', right_on='rkey'' use 'key=["key1",..., "keyN"]' to join on multiple keys use suffixes=(tuple of key suffixes)' to label "on" keys from different frames differently WARNING: When joining columns-on-columns, the indexes on the passed Data- Frame objects are discarded *merge function arguments* Argument Description left DataFrame to be merged on the left side right DataFrame to be merged on the right side how One of 'inner', 'outer', 'left' or 'right'. 'inner' by default on Column names to join on. Must be found in both DataFrame objects. If not specified and no other join keys given, will use the intersection of the column names in left and right as the join keys left_on Columns in left DataFrame to use as join keys right_on Analogous to left_on for left DataFrame left_index Use row index in left as its join key (or keys, if a MultiIndex) right_index Analogous to left_index sort Sort merged data lexicographically by join keys; True by default. Disable to get better performance in some cases on large datasets suffixes Tuple of string values to append to column names in case of overlap; defaults to ('_x', '_y'). For example, if 'data' in both DataFrame objects, would appear as 'data_x' and 'data_y' in result copy If False, avoid copying data into resulting data structure in some exceptional cases. By default always copies Merging on index ---------------- pass left_index=True or right_index=True (or both) to indicate that the index should be used as the merge key Files and IO ============ Get from DB ------------ import pandas.io.sql as sql sql.read_frame('select * from test', con) Where 'con' is the Python DB connection object. R style pipes in Python ========================= | https://jehtech.com/python/pandas.html | CC-MAIN-2021-25 | refinedweb | 3,117 | 56.55 |
Through the power of a new module I made called
rimp, you can import your repls and other people's repls in python.
- If you want to see an example of how to use rimp, see below.
- If you want to see the source or know how to make your repl compatible with importing, click here
Traceback (most recent call last):
File "main.py", line 2, in <module>
import rimp
File "/home/runner/.local/lib/python3.6/site-packages/rimp/init.py", line 4, in <module>
from rimp.fetcher import collect_files
File "/home/runner/.local/lib/python3.6/site-packages/rimp/fetcher.py", line 4, in <module>
from bs4 import BeautifulSoup
ModuleNotFoundError: No module named 'bs4'
After I import my stuff it raised this error above.
Is it broken?
This is really cool and definitely very useful, but there isn't really any sort of explanation on how to set it up... pls could you make a tutorial for that, or comment in the Permissions repl?
Nice idea! Not tested it but i will do at some point. Sounds awesome!
And let me guess, rimp is short for "repl import"?
Nice! | https://repl.it/talk/share/Import-other-repls/9628 | CC-MAIN-2019-35 | refinedweb | 191 | 65.83 |
I have several useful tools in Python for working with websites. Today I needed a script to report the images on a website, along with their corresponding alt tags. The script was extremely quick to write using the available tools, which makes it a fairly good example of how powerful Python is.
I have based this script on a pre-existing webspider class I have written:
class Spider(object):
def __init__(self, base_url):
self.base_url = base_url
def pages(self):
queue = [self.base_url]
seen = set(queue)
while queue:
url = queue.pop(0)
f = urllib2.urlopen(url)
if f.info().gettype() not in ['text/html', 'application/xhtml+xml']:
continue
doc = ElementSoup.parse(f)
doc.make_links_absolute(url)
for element, attribute, link, pos in doc.iterlinks():
if not link.startswith(self.base_url):
continue
if element.tag == 'a' and attribute == 'href':
l = re.sub(r'#.*$', ", link)
if l not in seen:
queue.append(l)
seen.add(l)
path = url[len(self.base_url):]
yield path, doc
This class effectively wraps a generator which yields every pair of path and web page it finds on the site. Generators are incredibly useful for keeping code simple without being memory hungry. It's easier to type
yield than building a list of items, but in this case it's better than that: this code returns one LXML ElementTree at a time, rather than reading and parsing them all up front.
Generators encapsulate state as local variables, which generally means you don't even need to wrap them in a class like I've done. I only do this because I like to add functionality by subclassing. This may be a throwback to my days of programming Java.
It should be noted that most of the heavy lifting here is being done by lxml and BeautifulSoup. lxml.html makes it extremely easy to work with HTML. BeautifulSoup's excellent broken-HTML parser is used not because my HTML demands it, but to allow this one script to work with any site I want to use it with.
class ImageSpider(Spider):
def images(self):
seen = set()
for path, doc in self.pages():
imgs = []
for img in doc.findall('.//img'):
src = img.get('src')
alt = img.get('alt')
title = img.get('title')
i = (src, alt, title)
if i not in seen:
seen.add(i)
imgs.append(i)
if imgs:
yield path, imgs
…
This is another generator that effectively filters the list of pages, yielding a list of images within each page. Generators calling generators is again very elegant. Each time the caller asks for the next page of images, ImageSpider will go back to the original Spider for a new page until it has one with images.
def text_report(self, out=sys.stdout):
for path, imgs in self.images():
print >>out, 'In', path
for src, alt, title in imgs:
print >>out, '- src:', src
if alt is not None:
print >>out, ' alt:', alt
else:
print >>out, ' alt is MISSING'
if title is not None:
print >>out, ' title:', title
print >>out
Other methods of ImageSpider generate reports. Here I use the handy print chevrons to write to any file-like object. File-like objects are a particularly handy piece of duck typing. By default these methods will write to stdout, which is the same as printing normally, but you can pass in any other file-like object for very simple redirection.
def html_report(self, out=sys.stdout):
from cgi import escape
print >>out, """<html>
<head>
<title>Image Report for %(base_url)s</title>
</head>
<body>
<h1>Image report for %(base_url)s</h1>
""" % {'base_url': escape(self.base_url)}
for path, imgs in self.images():
print >>out, '\t\t<h2>%s</h2>' % escape(path).encode('utf8′)
for src, alt, title in imgs:
idict = {'src': escape(unicode(src)).encode('utf8′),
'alt': escape(unicode(alt)).encode('utf8′),
'title': escape(unicode(title)).encode('utf8′)}
print >>out, '\t\t<img src="%(src)s" alt="%(alt)s" />' % idict
if alt is not None:
print >>out, '\t\t<p><strong>alt:</strong> %(alt)s</p>' % idict
else:
print >>out, '\t\t<p><strong>alt is MISSING</strong></p>'
if title is not None:
print >>out, '\t\t<p><strong>title:</strong> %(title)s</p>' % idict
print >>out
print >>out, """ </body>
</html>
"""
Again, similar, but this method demonstrates a simple form of templating: the string formatting operator, %, allows you to retrieve values from a dictionary.
Finally, there's the commandline interface to all this:
from optparse import OptionParser
op = OptionParser()
op.add_option('-f', '–format', choices=['text', 'html'])
op.add_option('-o', '–outfile')
options, args = op.parse_args()
if len(args) != 1:
op.error('You must provide a site URL from which to spider images.')
s = ImageSpider(args[0])
if options.outfile:
out = open(options.outfile, 'w')
else:
out = sys.stdout
if options.format == 'html':
s.html_report(out)
else:
s.text_report(out)
In a few lines, the amazing
optparse module turns a quick script into a flexible commandline tool.
Download the source: siteimages.py | http://blog.mauveweb.co.uk/2008/10/28/image-spidering-in-python/ | crawl-002 | refinedweb | 816 | 60.11 |
MAT reflected about the x-axis are descriptions.
a) g(x) = log(x + 5)
b) g(x) = log(-x)
3) Students in an English class took a final exam. They took equivalent forms of the exam at monthly intervals thereafter. The average score S(t), in percent, after t months was found to be given by
S(t) = 68 - 20 log(t + 1), t> = 0
a) What was the average score when they initially took the test, t = 0? Round your answer to a whole percent, if necessary.
b) What was the average score after 4 months? After 24 months?
c) After what time t was the average score 50%?
4) The formula for calculating the amount of money returned for an initial deposit into a bank account or CD is given by
Suppose you deposit $2,000 for 5 years at a rate of 8%.
a) Calculate the return (A) if the bank compounds annually.
b) Calculate the return (A) if the bank compounds quarterly.
c) If a bank compounds continuously, then the formula used is A =Pe^rt, where e is a constant and equals approximately 2.718282.
Calculate A with continuous compounding.
Solution Preview
Please see the attached file for detailed solution.
2. a) g(x) is obtained by horizontal shift f(x) left by 5 units.
The vertical asymptote of f(x) = ...
Solution Summary
It provides detailed explanations of various questions in MATH133 Unit 5 Individual Project -A, such as solving exponential equations, determining the transformations of the graphs, and calculating the returns from the bank deposit. | https://brainmass.com/math/algebra/mat133-unit-5-individual-project-a-419216 | CC-MAIN-2017-22 | refinedweb | 261 | 65.22 |
Transferring control of a TCP connection between devicesDownload PDF
Info
- Publication number
- US7472156B2US7472156B2 US10427862 US42786203A US7472156B2 US 7472156 B2 US7472156 B2 US 7472156B2 US 10427862 US10427862 US 10427862 US 42786203 A US42786203 A US 42786203A US 7472156 B2 US7472156 B2 US 7472156B2
- Authority
- US
- Grant status
- Grant
- Patent type
-
- Prior art keywords
- inic
- data
- buffer
- driver
- tcp
-120 (is a continuation of) of U.S. patent application Ser. No. 10/367,147, filed Feb. 12, 2003, now U.S. Pat. No. 7,185,266 which in turn claims the benefit under 35 U.S.C. §120 of (is a continuation of) U.S. patent application Ser. No. 10/277,604, filed Oct. 18, 2002, which in turn claims the benefit under 35 U.S.C. §120 of (is a continuation of) U.S. patent application Ser. No. 10/005,536, filed Nov. 7, 2001, which in turn claims the benefit under 35 U.S.C. §120 of (is a continuation of) U.S. patent application Ser. No. 09/384,792, filed Aug. 27, 1999, now U.S. Pat. No. 6,434,620, which in turn: 1) claims the benefit under 35 U.S.C. §119 of provisional patent application Ser. No. 60/098,296, filed Aug. 27, 1998, 2) claims the benefit under 35 U.S.C. §120 of (is a continuation-in-part of) U.S. patent application Ser. No. 09/067,544, filed Apr. 27, 1998, now U.S. Pat. No. 6,226,680, and 3) claims the benefit under 35 U.S.C. §120 of (is a continuation-in-part of) U.S. patent application Ser. No. 09/141,713, filed Aug. 28, 1998, now U.S. Pat. No. 6,389,479. U.S. Pat. No. 6,226,680 in turn claims the benefit under 35 U.S.C. §119 of provisional patent application Ser. No. 60/061,809 filed Oct. 14, 1997. The present application also claims the benefit under 35 U.S.C. §120 of (is a continuation-in-part of) U.S. patent application Ser. No. 09/464,283, filed Dec. 15, 1999, now U.S. Pat. No. 6,427,173, and claims the benefit under 35 U.S.C. §120 of (is a continuation-in-part of) U.S. patent application Ser. No. 09/514,425, filed Feb. 28, 2000, now U.S. Pat. No. 6,427,171. All of the above-listed applications are incorporated by reference herein.
The Compact Disc, which is a part of the present disclosure, includes a recordable Compact Disc (CD-R) containing information (including CD Appendices A, B, C and D)..
When network packet arrives at a typical network interface card (NIC), the NIC moves the data into pre-allocated network buffers in system main memory. From there the data is read into the CPU cache so that it can be checksummed (assuming of course that the protocol in use requires checksums. Some, like IPX, do not.). Once the data has been fully processed by the protocol stack, it can then be moved into its final destination in memory. Since the CPU is moving the data, and must read the destination cache line in before it can fill it and write it back out, this involves at a minimum 2 more trips across the system memory bus. In short, the best one can hope for is that the data will get moved across the system memory bus 4 times before it arrives in its final destination. It can, and does, get worse. If the data happens to get invalidated from system cache after it has been checksummed, then it must get pulled back across the memory bus before it can be moved to its final destination. Finally, on some systems, including Windows NT 4.0, the data gets copied yet another time while being moved up the protocol stack. In NT 4.0, this occurs between the miniport driver interface and the protocol driver interface. This can add up to a whopping.
In all but the original move from the NIC to system memory, the system CPU is responsible for moving the data. This is particularly expensive because while the CPU is moving this data it can do nothing else. While moving the data the CPU is typically stalled waiting for the relatively slow memory to satisfy its read and write requests. A CPU, which can execute an instruction every 5 nanoseconds, must now wait as long as several hundred nanoseconds for the memory controller to respond before it can begin its next instruction. Even today's advanced pipelining technology doesn't help in these situations because that relies on the CPU being able to do useful work while it waits for the memory controller to respond. If the only thing the CPU has to look forward to for the next several hundred instructions is more data moves, then the CPU ultimately gets reduced to the speed of the memory controller.
Moving all this data with the CPU slows the system down even after the data has been moved. Since both the source and destination cache lines must be pulled into the CPU cache when the data is moved, more than 3 k of instructions and or data resident in the CPU cache must be flushed or invalidated for every 1500 byte frame. This is of course assuming a combined instruction and data second level cache, as is the case with the Pentium processors. After the data has been moved, the former resident of the cache will likely need to be pulled back in, stalling the CPU even when we are not performing network processing. Ideally a system would never have to bring network frames into the CPU cache, instead reserving that precious commodity for instructions and data that are referenced repeatedly and frequently.
But the data movement is not the only drain on the CPU. There is also a fair amount of processing that must be done by the protocol stack software. The most obvious expense is calculating the checksum for each TCP segment (or UDP datagram). Beyond this, however, there is other processing to be done as well. The TCP connection object must be located when a given TCP segment arrives, IP header checksums must be calculated, there are buffer and memory management issues, and finally there is also the significant expense of interrupt processing, discussed below.) all of this incoming data, it's possible to get another 44 transmit-complete interrupts as a result of sending out the TCP acknowledgements. While this is possible, it is not terribly likely. Delayed ACK timers allow us to acknowledge more than one segment at a time. And delays in interrupt processing may mean that we are able to process more than one incoming network frame per interrupt. Nevertheless, even if we assume 4 incoming frames per input, and an acknowledgement for every 2 segments (as is typical per the ACK-every-other-segment property of TCP), we are still left with 33 interrupts per 64 k SMB request.
Interrupts tend to be very costly to the system. Often when a system is interrupted, important information must be flushed or invalidated from the system cache so that the interrupt routine instructions, and needed data can be pulled into the cache. Since the CPU will return to its prior location after the interrupt, it is likely that the information flushed from the cache will immediately need to be pulled back into the cache. What's more, interrupts force a pipeline flush in today's advanced processors. While the processor pipeline is an extremely efficient way of improving CPU performance, it can be expensive to get going after it has been flushed. Finally, each of these interrupts results in expensive register accesses across the peripheral bus (PCI).
We noted earlier that when the CPU has to access system memory, it may be stalled for several hundred nanoseconds. When it has to read from PCI, it may be stalled for many microseconds. This happens every time the CPU takes an interrupt from a standard NIC. The first thing the CPU must do when it receives one of these interrupts is to read the NIC Interrupt Status Register (ISR) from PCI to determine the cause of the interrupt. The most troubling thing about this is that since interrupt lines are shared on PC-based systems, we may have to perform this expensive PCI read even when the interrupt is not meant for us.
Other peripheral bus inefficiencies also exist. Typical NICs operate using descriptor rings. When a frame arrives, the NIC reads a receive descriptor from system memory to determine where to place the data. Once the data has been moved to main memory, the descriptor is then written back out to system memory with status about the received frame. Transmit operates in a similar fashion. The CPU must notify that NIC that it has a new transmit. The NIC will read the descriptor to locate the data, read the data itself, and then write the descriptor back with status about the send. Typically on transmits the NIC will then read the next expected descriptor to see if any more data needs to be sent. In short, each receive or transmit frame results in 3 or 4 separate PCI reads or writes, not counting the status register.
In order to operate this specialized network processing hardware in conjunction with the CPU, we create and maintain what is termed a context. The context keeps track of information that spans many, possibly discontiguous, pieces of information. When processing TCP/IP data, there are actually two contexts that must be maintained. The first context is required to reassemble IP fragments. It holds information about the status of the IP reassembly as well as any checksum information being calculated across the IP datagram (UDP or TCP). This context is identified by the IP_ID of the datagram as well as the source and destination IP addresses. The second context is required to handle the sliding window protocol of TCP. It holds information about which segments have been sent or received, and which segments have been acknowledged, and is identified by the IP source and destination addresses and TCP source and destination ports.
If we were to choose to handle both contexts in hardware, we would have to potentially keep track of many pieces of information. One such example is a case in which a single 64 k SMB write is broken down into 44 1500 byte TCP segments, which are in turn broken down into 131 576 byte IP fragments, all of which can come in any order (though the maximum window size is likely to restrict the number of outstanding segments considerably).
Fortunately, TCP performs a Maximum Segment Size negotiation at connection establishment time, which should prevent IP fragmentation in nearly all TCP connections. The only time that we should end up with fragmented TCP connections is when there is a router in the middle of a connection which must fragment the segments to support a smaller MTU. The only networks that use a smaller MTU than Ethernet are serial line interfaces such as SLIP and PPP. At the moment, the fastest of these connections only run at 128 k (ISDN) so even if we had 256 of these connections, we would still only need to support 34 Mb/sec, or a little over three 10bT connections worth of data. This is not enough to justify any performance enhancements that the INIC offers. If this becomes an issue at some point, we may decide to implement the MTU discovery algorithm, which should prevent TCP fragmentation on all connections (unless an ICMP redirect changes the connection route while the connection is established). With this in mind, it seems a worthy sacrifice to not attempt to handle fragmented TCP segments on the INIC.
SPX follows a similar framework as TCP, and so the expansion of the INIC to handle IPX/SPX messages is straightforward. UDP, on the other hand, does not support the notion of a Maximum Segment Size, so it is the responsibility of IP to break down a UDP datagram into MTU sized packets. Thus, fragmented UDP datagrams are very common. The most common UDP application running today is NFSV2 over UDP. While this is also the most common version of NFS running today, the current version of Solaris being sold by Sun Microsystems runs NFSV3 over TCP by default. A first embodiment described in detail in this document offers network processing assistance to non-fragmented TCP connections on the INIC, while extension of this design to process other message protocols, such as SPX/IPX is straightforward..
As shown in
The transmit case works in much the same fashion. In slow-path mode the packets are given to the INIC with all of the headers attached. The INIC simply sends these packets out as if it were a dumb NIC. In fast-path mode, the host gives raw data to the INIC which it must carve into MSS sized segments, add headers to the data, perform checksums on the segment, and then send it out on the wire.
Occasionally situations arise for which a TCP connection being handled by the INIC needs to be returned to the host for processing. To accomplish this transfer of responsibility for handling a connection we create a communication control block (CCB). A CCB is a structure that contains the entire context associated with a connection. This includes the source and destination IP addresses and source and destination TCP ports that define the connection. It also contains information about the connection itself such as the current send and receive sequence numbers, and the first-hop MAC address, etc. The complete set of CCBs exists in host memory, but a subset of these may be “owned” by the card at any given time. This subset is the CCB cache. The INIC can own (cache) up to 256 CCBs at any given time.
CCBs are initialized by the host during TCP connection setup. Once the connection has achieved a “steady-state” of operation, its associated CCB can then be turned over to the INIC, putting the connection into fast-path mode. From this point on, the INIC owns the connection until either a FIN arrives signaling that the connection is being closed, or until an exception occurs which the INIC is not designed to handle (such as an out of order segment). When any of these conditions occur, the INIC will then flush the.
Note that when a connection is owned by the INIC, the host is not allowed to reference the corresponding CCB in host memory as it will contain invalid information about the state of the connection.
When a frame is received by the INIC, it must verify it completely before it even determines whether it belongs to one of its CCBs or not. This includes all header validation (is it IP, IPV4 or V6, is the IP header checksum correct, is the TCP checksum correct, etc). Once this is done it must compare the source and destination IP address and the source and destination TCP port with those in each of its CCBs to determine if it is associated with one of its CCBs. This is an expensive process. To expedite this, we have added several features in hardware to assist us. The header is fully parsed by hardware and its type is summarized in a single status word. The checksum is also verified automatically in hardware, and a hash key is created out of the IP addresses and TCP ports to expedite CCB lookup. For full details on these and other hardware optimizations, refer to the INIC hardware specification sections below..
By moving TCP processing down to the INIC we have offloaded the host of a large amount of work. The host no longer has to pull the data into its cache to calculate the TCP checksum. It does not have to process the packet headers, and it does not have to generate TCP ACKs. We have achieved most of the goals outlined above, but we are not done yet.
The following paragraphs define the INIC's relation to the host's transport layer interface, called TDI or Transport Driver Interface in Windows NT, which is described in detail further below with regard to the Alacritech TCP (ATCP) driver. has more data to come. The client, having then received enough of the data to know what it is, is then responsible for allocating a block of memory and passing the memory address or addresses back down to the transport driver, which is in turn responsible for moving the data into the provided location.
We will make use of this feature by providing a small amount of any received data to the host, with a notification that we have more data pending. When this small amount of data is passed up to the client, and it returns with the address in which to put the remainder of the data, our host transport driver will pass that address to the INIC which will send the remainder of the data into its final destination via direct memory access (DMA).
Clearly there are circumstances in which this does not make sense. When a small amount of data (500 bytes for example), with a push flag set indicating that the data must be delivered to the client immediately, it does not make sense to deliver some of the data directly while waiting for the list of addresses to DMA the rest. Under these circumstances, it makes more sense to deliver the 500 bytes directly to the host, and allow the host to copy it into its final destination. While various ranges are feasible, it is currently preferred that anything less than a segment's (1500 bytes) worth of data will be delivered directly to the host, while anything more will be delivered as a small piece (which may be 128 bytes), while waiting until receiving the destination memory address before moving the rest.
The trick then is knowing when the data should be delivered to the client or not. As we've noted, a push flag indicates that the data should be delivered to the client immediately, but this alone is not sufficient. Fortunately, in the case of NetBIOS transactions (such as SMB), we are explicitly told the length of the session message in the NetBIOS header itself. With this we can simply indicate a small amount of data to the host immediately upon receiving the first segment. The client will then allocate enough memory for the entire NetBIOS transaction, which we can then use to DMA the remainder of the data into as it arrives. In the case of a large (56 k for example) NetBIOS session message, all but the first couple hundred bytes will be DMA'd to their final destination in memory.) we get a push flag. If after any of these conditions occur we will then indicate some or all of the data to the host depending on the amount of data buffered. If the data buffered is greater than about 1500 bytes we must then also wait for the memory address to be returned from the host so that we may then DMA the remainder of the data.
The transmit case is much simpler. In this case the client (NetBIOS for example) issues a TDI Send with a list of memory addresses which contain data that it wishes to send along with the length. The host can then pass this list of addresses and length off to the INIC. The INIC will then pull the data from its source location in host memory, as it needs it, until the complete TDI request is satisfied.
Note that when we receive a large SMB transaction, for example, that there are two interactions between the INIC and the host. The first in which the INIC indicates a small amount of the transaction to the host, and the second in which the host provides the memory location(s) in which the INIC places the remainder of the data. This results in only two interrupts from the INIC. The first when it indicates the small amount of data and the second after it has finished filling in the host memory given to it. Note the drastic reduction from the interrupts generated by a conventional 33/64 k SMB request that was mentioned in the background. On transmit, we actually only receive a single interrupt when the send command that has been given to the INIC completes.
Having now established our interaction with Microsoft's TDI interface, we have achieved our goal of landing most of our data directly into its final destination in host memory. We have also managed to transmit all data from its original location on host memory. And finally, we have reduced our interrupts to two per 64 k SMB read and one per 64 k SMB write. The only thing that remains in our list of objectives is to design an efficient host (PCI) interface.
The only PCI read that is required by many conventional NICs is the read of the interrupt status register. This register gives the host CPU information about what event has caused an interrupt (if any). In the design of our INIC we have elected to place this necessary status register into host memory. Thus, when an event occurs on the INIC, it writes the status register to an agreed upon location in host memory. The corresponding driver on the host reads this local register to determine the cause of the interrupt. The interrupt lines are held high until the host clears the interrupt by writing to the INIC's Interrupt Clear Register. Shadow registers are maintained on the INIC to ensure that events are not lost.
Since it is imperative that our INIC operate as efficiently as possible, we must also avoid PCI reads from the INIC. We do this by pushing our receive buffer addresses to the INIC. As mentioned at the beginning of this section, most NICs work on a descriptor queue algorithm in which the NIC reads a descriptor from main memory in order to determine where to place the next frame. We will instead write receive buffer addresses to the INIC as receive buffers are filled. In order to avoid having to write to the INIC for every receive frame, we instead allow the host to pass off a pages worth (4 k) of buffers in a single write.
In order to reduce further the number of writes to the INIC, and to reduce the amount of memory being used by the host, we support two different buffer sizes. A small buffer contains roughly 200 bytes of data payload, as well as extra fields containing status about the received data bringing the total size to 256 bytes. We can therefore pass 16 of these small buffers at a time to the INIC. Large buffers are 2 k in size. They are used to contain any fast or slow-path data that does not fit in a small buffer. Note that when we have a large fast-path receive, a small buffer will be used to indicate a small piece of the data, while the remainder of the data will be DMA'd directly into memory. Large buffers are never passed to the host by themselves, instead they are always accompanied by a small buffer which contains status about the receive along with the large buffer address. By operating in this manner, the driver must only maintain and process the small buffer queue. Large buffers are returned to the host by virtue of being attached to small buffers. Since large buffers are 2 k in size they are passed to the INIC two buffers at a time.
In addition to needing a manner by which the INIC can pass incoming data to us, we also need a manner by which we can instruct the INIC to send data. Plus, when the INIC indicates a small amount of data in a large fast-path receive, we need a method of passing back the address or addresses in which to put the remainder of the data. We accomplish both of these with the use of a command buffer. Sadly, the command buffer is the only place in which we must violate our rule of only pushing data across PCI. For the command buffer, we write the address of command buffer to the INIC. The INIC then reads the contents of the command buffer into its memory so that it can execute the desired command. Since a command may take a relatively long time to complete, it is unlikely that command buffers will complete in order. For this reason we also maintain a response buffer queue. Like the small and large receive buffers, a page worth of response buffers is passed to the INIC at a time. Response buffers are only 32 bytes, so we have to replenish the INIC's supply of them relatively infrequently. The response buffers only purpose is to indicate the completion of the designated command buffer, and to pass status about the completion.
The following examples describe some of the differing data flows that we might see on the INIC. For the first example of a fast-path receive, assume a 56 k NetBIOS session message is received on the INIC. The first segment will contain the NetBIOS header, which contains the total NetBIOS length. A small chunk of this first segment is provided to the host by filling in a small receive buffer, modifying the interrupt status register on the host, and raising the appropriate interrupt line. Upon receiving the interrupt, the host will read the ISR, clear it by writing back to the INIC's Interrupt Clear Register, and will then process its small receive buffer queue looking for receive buffers to be processed. Upon finding the small buffer, it will indicate the small amount of data up to the client to be processed by NetBIOS. It will also, if necessary, replenish the receive buffer pool on the INIC by passing off a page worth of small buffers. Meanwhile, the NetBIOS client will allocate a memory pool large enough to hold the entire NetBIOS message, and will pass this address or set of addresses down to the transport driver. The transport driver will allocate an INIC command buffer, fill it in with the list of addresses, set the command type to tell the INIC that this is where to put the receive data, and then pass the command off to the INIC by writing to the command register. When the INIC receives the command buffer, it will DMA the remainder of the NetBIOS data, as it is received, into the memory address or addresses designated by the host. Once the entire NetBIOS transaction is complete, the INIC will complete the command by writing to the response buffer with the appropriate status and command buffer identifier.. If the frame fits into a small buffer (˜200 bytes or less), then it simply fills in the small buffer with the data and notifies the host. Otherwise it places the data in a large buffer, writes the address of the large buffer into a small buffer, and again notifies the host. The host, having received the interrupt and found the completed small buffer, checks to see if the data is contained in the small buffer, and if not, locates the large buffer. Having found the data, the host will then pass the frame upstream to be processed by the standard protocol stack. It must also replenish the INIC's small and large receive buffer pool if necessary.
With the INIC, this slow-path results in one interrupt, one interrupt status register write and one interrupt clear register write as well as a possible small and or large receive buffer register write. The data will go through the normal path, although if it is TCP data then the host will not have to perform the checksum..
For the third example, a fast-path send, assume that the client has a small amount of data to send. It will issue the TDI Send to the transport driver which will allocate a command buffer, fill it in with the address of the 400 byte send, and set the command to indicate that it is a transmit. It will then pass the command off to the INIC by writing to the command register. The INIC will then DMA the 400 bytes into its own memory, prepare a frame with the appropriate checksums and headers, and send the frame out on the wire. After it has received the acknowledgement it will then notify the host of the completion by writing to a response buffer.
With the INIC, this will result in one interrupt, one interrupt status register write, one interrupt clear register write, a command buffer register write a command buffer read, and a response buffer write. The data is DMA'd directly from the system memory. passing a header to the host and subsequently holding further data for that connection on the card until the host responds via an INIC command with a set of buffers into which to place the accumulated data. In the slow-path data flow, the INIC will be operating as a “dumb” NIC, so that these packets are simply dumped into frame buffers on the host as they arrive..
As shown in
The order in which data is written is important. Data buffers are moved by DMA into the host before the header buffer, since the header buffer contains the status word designating that the data has arrived. Header buffers in host memory are 256 bytes long, and are aligned on 256 byte boundaries. There will be a field in the header buffer indicating it has valid data. This field will initially be reset by the host before passing the buffer descriptor to the INIC. A set of header buffers are passed from the host to the INIC by the host writing to the Header Buffer Address Register on the INIC. This register is defined as follows:
Bits 31-8 Physical address in host memory of the first of a set of contiguous header buffers.
Bits.
The header buffers will be used and returned to the host in the same order that they were given to the INIC. The valid field will be set by the INIC before returning the buffer to the host. In this way a PCI interrupt, with a single bit in the interrupt register, may be generated to indicate that there is a header buffer for the host to process. When servicing this interrupt, the host will look at its queue of header buffers, reading the valid field to determine how many header buffers are to be processed..
Data buffers will be allocated and used by the INIC as needed. For each data buffer used, the data buffer handle will be copied into a header buffer. Then the header buffer will be returned to the host.
A transmit interface is shown in
Response buffers are physical buffers in host memory and contain status:
- Bits 31-5 Physical address in host memory of the command buffer.
- Bits to extract a command from its local queue, DMA the command into a small INIC buffer (from the FreeSType queue), and queue that buffer into the Xmit#Type queue, where # is 0-3 depending on the interface, or the appropriate RCV queue. The receiving processor will service the queues to perform the commands. When that processor has completed a command, it extracts the command buffer handle and passes it back to the host via a response buffer..
The response buffers are used and returned to the host in the same order that they were given to the INIC. The valid field is set by the INIC before returning the buffer to the host. In this way a PCI interrupt, with a single bit in the interrupt register, may be generated to indicate that there is a response buffer for the host to process. When servicing this interrupt, the host will look at its queue of response buffers, reading the valid field to determine how many response buffers are to be processed.
It is designed that the setting of any bits in the ISR will cause an interrupt, provided the corresponding bit in an Interrupt Mask Register is set. The default setting for the IMR is 0. NEWA. As the host clears bits by writing the register back with those bits set to zero, the INIC clears these bits in COPYA (or the host write-back goes directly to COPYA). If there are new events in NEWA, it ORs them with COPYA, and DMAs this new ISR to the host. This new ISR then replaces COPYA, NEWA is cleared and the cycle then repeats.
Table 1 lists the INIC register addresses. For the sake of simplicity, the registers are in 4-byte increments from whatever the TBD base address is..
Global symbols—All function names and global variables in the Atcp driver begin with the “ATK” prefix (ATKSend( ) for instance).
We use the #define ALACRITECH to identify those sections of code which must be conditionally compiled (or not compiled) in the ATCP as opposed to BSD environment.
Variable names—Microsoft seems to use capital letters to separate multi-word variable names instead of underscores (VariableName instead of variable_name). We adhere to this style.
Structure pointers—Microsoft typedefs all of their structures. The structure types are always capitals and they typedef a pointer to the structure as “P”<name> as follows:
We adhere to this style.
Function calls—Microsoft separates function call arguments on separate lines:
We adhere to this style.
Comments—While Microsoft seems to alternatively use // and /* */ comment notation, we exclusively use the /* */ notation.
Function comments—Microsoft includes comments with each function that describe the function, its arguments, and its return value. We also include these comments, but move them from within the function itself to just prior to the function for better readability.
Function arguments—Microsoft includes the keywords IN and OUT when defining function arguments. These keywords denote whether the function argument is used as an input parameter, or alternatively as a placeholder for an output parameter. We include these keywords..
Indentation—Microsoft code fairly consistently uses a tabstop of 4. We adhere to this style.
Header file #ifndef—each header file should contain a #ifndef/#define/#endif which is used to prevent recursive header file includes. For example, foo.h would include:
- #ifndef_FOO_H—
- #define_FOO_H—
- foo.h contents . . . >
- #endif /* _FOO_H_ */
Note the _NAME_H_ format.
Each file must contain a comment at the beginning which includes the $Id$ as follows:
- /*
- * $Id$
- */
CVS (RCS) will expand this keyword to denote RCS revision, timestamps, author, etc..)
In general each instance of a structure includes a spinlock, which must be acquired before members of that structure are accessed, and held while a function is accessing that instance of the structure. Structures which are logically grouped together may be protected by a single spinlock: for example, the ‘in_pcb’ structure, ‘tcpcb’ structure, and ‘socket’ structure which together constitute the administrative information for a TCP connection will be collectively managed by a single spinlock in the corresponding connection object..
Spinlocks should not be held for long periods of time, and most especially, must not be held during a sleep, since this will lead to deadlocks. There is a significant deficiency in the NT kernel support for SMP systems: it does not provide an operation, which allows a spinlock to be exchanged atomically for a sleep lock. This would be a serious problem in a UNIX environment where much of the processing occurs in the context of the user process, which initiated the operation. (The spinlock would have to be explicitly released, followed by a separate acquisition of the sleep lock: creating an unsafe window.)
The NT approach is more asynchronous, however: IRPs are simply marked as ‘PENDING’ when an operation cannot be completed immediately. The calling thread does NOT sleep at that point: it returns, and may go on with other processing. Pending IRPs are later completed, not by waking up the thread which initiated them, but by an ‘IoCompleteRequest’ call which typically runs at DISPATCH level in an arbitrary context.
Thus we that have not in fact used sleep locks anywhere in the design of the ATCP driver, so hopefully the above issue will not arise.
As described above, the ATCP driver supports two paths for sending and receiving data, the fast-path and the slow-path. The fast-path data flow corresponds to connections that are maintained on the INIC, while slow-path traffic corresponds to network data for which the INIC does not have a connection..
For a first implementation, we divide network communication into NETBIOS traffic, which is identifiable by port number, and everything else..
On receiving the indicated packet, the ATCP driver calls the receive handler registered by the TDI client for the connection, passing the actual size of the data in the packet from the INIC as “bytes indicated” and the NETBIOS length as “bytes available.”.
On receiving the “receive request” response from the INIC, the ATCP driver completes the IRP associated with this MDL, to tell the TDI client that the data is available.
At this point the cycle of events is complete, and the ATCP driver is now waiting for the next header indication..
Note that there is also a message path whereby the ATCP driver explicitly sends an update of this “bytes consumed” information when it exceeds a preset threshold, to allow for scenarios in which the data stream is entirely one-way..
The INIC will copy the data from the given physical location(s) as it sends the corresponding network frames onto the network. When all of the data is sent, the INIC will notify the host of the completion, and the ATCP driver will complete the IRP.
Note that there may be multiple output requests pending at any given time. SMB allows multiple SMB requests to be simultaneously outstanding, and other protocols (e.g. FTP) often use double-buffering..
Note that there is a semantic difference between TDI_SEND and a write( ) on a BSD socket. The latter may complete back to its caller as soon as the data has been copied into the socket buffer. The completion of a TDI_SEND, however, implies that the data has actually been sent on the connection. Thus we need to keep the TDI_SEND IRPs (and associated MDLs) in a queue on the socket until the TCP code indicates that the data from them has been ACK'd.. It discards its CCB context for this connection, and any further incoming frames for the connection will simply be sent to the host as raw frames for the slow input path..
Slow-path frames could arrive during this time: this is why the driver must set the “flushing” state flag on the connection. The effect of this is to change the behavior of tcp_input( ). This runs as a function call in the context of ip_input( ), and normally returns only when incoming frames have been processed as far as possible (queued on the socket receive buffer or out-of-sequence reassembly queue.) However, if there is a flush pending and we have not yet completed resynchronization, we cannot do TCP processing and must instead queue input frames for TCP on a “holding queue” for the connection, to be picked up later when context flush is complete and normal slow path processing resumes. (This is why we want to send the “flush” indication via the normal input path: so that we can ensure it is seen before any following frames of slow-path input.).
The FreeBSD TCP/IP protocol stack makes use of many Unix system services. These include bcopy to copy memory, malloc to allocate memory, timestamp functions, etc. These will not be itemized in detail since the conversion to the corresponding NT calls is a fairly trivial and mechanical operation.
There are a couple of things to note here. The INIC has been designed such that a packet header should never be split across multiple buffers. Thus, we should never require the equivalent of the “m_pullup” routine included in Unix. Also note that there are circumstances in which we will be accepting data that will also be accepted by the Microsoft TCP/IP. One such example of this is ARP frames. We also build our own ARP cache by looking at ARP replies as they come off the network. Under these circumstances, it is important that we do not modify the data, or the packet and buffer descriptors. We will discuss this further below. we statically allocate mbuf headers for the maximum number of buffers that we will ever allow to be outstanding. By doing so, the card will run out of buffers in which to put the data before we will run out of mbufs, and as a result, the card will be forced to drop data at the link layer instead of us dropping it at the transport layer..
There are a variety of structures, which represent a single interface in FreeBSD. These structures include ifnet, arpcom, ifaddr, in_ifaddr, sockaddr, sockaddr_in, and sockaddr_dl.
We also show in
FreeBSD initializes the above structures in two phases. First when a network interface is found, the ifnet, arpcom, and first ifaddr structures are initialized first by the network layer driver, and then via a call to the if_attach routine. The subsequent in_ifaddr structure(s) are initialized when a user dynamically configures the interface. This occurs in the in_ioctl and the in_ifinit routines.
Interface initialization in the ATCP driver changes considerably from BSD, because in NT, many parameters are obtained from the registry, rather than being set by IOCTL( ) calls. Initialization still occurs in two phases, but the details are different:.
An in_arpinput function is called to process an incoming ARP frame. An ARP frame can either be an ARP request or an ARP reply. ARP requests are broadcast, so we will see every ARP request on the network, while ARP replies are directed so we should only see ARP replies that are sent to us. This introduces several scenarios for an incoming ARP frame.
First, an ARP request may be trying to resolve our IP address. Under conventional circumstances, ARP would reply to this ARP request with an ARP reply containing our MAC address. Since ARP requests will also be passed up to the Microsoft TCP/IP driver, we need not reply. Note however, that FreeBSD also creates or updates an ARP cache entry with the information derived from the ARP request. It does this in anticipation of the fact that any host that wishes to know our MAC address is likely to wish to talk to us soon. Since we need to know his MAC address in order to talk back, we add the ARP information now rather than issuing our own ARP request later.
Second, an ARP request may be trying to resolve someone else's IP address. As mentioned above, since ARP requests are broadcast, we see every one on the network. When we receive an ARP request of this type, we simply check to see if we have an entry for the host that sent the request in our ARP cache. If we do, we check to see if we still have the correct MAC address associated with that host. If it is incorrect, we update our ARP cache entry. Note that we do not create a new ARP cache entry in this case.
Third, in the case of an ARP reply, remove the code which generates an ARP reply for ARP requests that are meant for our interface.
Arpintr is the FreeBSD code that delivers an incoming ARP frame to in_arpinput. We call in_arpinput directly from our ProtocolReceiveDPC routine (discussed in the NDIS section below) so this function is not needed.
Arpwhohas is a single line function that serves only as a wrapper around arprequest. We remove it and replace all calls to it with direct calls to arprequest.
Arprequest simply allocates a mbuf, fills it in with an ARP header, and then passes it down to the ethernet output routine to be transmitted. For us, the code remains essentially the same except for the obvious changes related to how we allocate a network buffer, and how we send the filled in request..
Arptimer do, however, need to maintain an up-to-date routing table so that we know a) whether an outgoing connection belongs to one of our interfaces, b) to which interface it belongs, and c) what the first-hop IP address (gateway) is if the destination is not on the local network.
We discuss four aspects on the subject of routing in this section. They are as follows: 1) The mechanics of how routing information is stored, 2) The manner in which routes are added or deleted from the route table, 3) When and how route information is retrieved from the route table, 4) Notification of route table changes to interested parties.
In FreeBSD, the route table is maintained using an algorithm known as PATRICIA (Practical Algorithm To Retrieve Information Coded in Alphanumeric). This is a complicated algorithm that is a bit costly to set up, but is very efficient to reference. Since the routing table should contain the same information for both NT and FreeBSD, and since the key used to search for an entry in the routing table will be the same for each (the destination IP address), we port the routing table software to NT without any major changes.
The software which implements the route table (via the PATRICIA algorithm) is located in the FreeBSD file, radix.c. This file is ported directly to the ATCP driver with insignificant changes.
Routes can be added or deleted in a number of different ways. The kernel adds or deletes routes when the state of an interface changes or when an ICMP redirect is received. User space programs such as the RIP daemon, or the route command also modify the route table.
For kernel-based route changes, the changes can be made by a direct call to the routing software. The FreeBSD software that is responsible for the modification of route table entries is found in route.c. The primary routine for all route table changes is called rtrequest( ). It takes as its arguments the request type (ADD, RESOLVE, DELETE), the destination IP address for the route, the gateway for the route, the netmask for the route, the flags for the route, and a pointer to the route structure (struct rtentry) in which we place the added or resolved route. Other routines in the route.c file include rtinit( ), which is called during interface initialization time to add a static route to the network, rtredirect, which is called by ICMP when we receive a ICMP redirect, and an assortment of support routines used for the modification of route table entries. All of these routines found in route.c are ported with no major modifications.
For user-space-based changes, we will have to be a bit more clever. In FreeBSD, route changes are sent down to the kernel from user-space applications via a special route socket. This code is found in the FreeBSD file, rtsock.c. Obviously this will not work for our ATCP driver. Instead the filter driver portion of our driver will intercept route changes destined for the Microsoft TCP driver and will apply those modifications to our own route table via the rtrequest routine described above. In order to do this, it will have to do some format translation to put the data into the format (sockaddr_in) expected by the rtrequest routine. Obviously, none of the code from rtsock.c will be ported to the ATCP driver. This same procedure will be used to intercept and process explicit ARP cache modifications.
The functions which perform these updates are ATKSetRouteCompletion( ) and ATKSetArpCompletion( ), in the file atkinfo.c
In FreeBSD, a route table is consulted in ip_output when an IP datagram is being sent. In order to avoid a complete route table search for every outgoing datagram, the route is stored into the in_pcb for the connection. For subsequent calls to ip_output, the route entry is then simply checked to ensure validity. While we will keep this basic operation as is, we.
When a route table entry changes, there may be connections that have pointers to a stale route table entry. These connections need to be notified of the new route. FreeBSD solves this by checking the validity of a route entry during every call to ip_output. If the entry is no longer valid, its reference to the stale route table entry is removed, and an attempt is made to allocate a new route to the destination. For.
Like the ARP code above, we need to process certain types of incoming ICMP frames. Of the 10 possible ICMP message types, there are only three that we need to support. These include ICMP_REDIRECT, ICMP_UNREACH, and ICMP_SOURCEQUENCH. Any FreeBSD code to deal with other types of ICMP traffic will be removed. Instead, we simply return NDIS_STATUS_NOT_ACCEPTED for all but the above ICMP frame types. The following paragraphs describe how we handle these ICMP frames.
Under FreeBSD, an ICMP_REDIRECT causes two things to occur. First, it causes the route table to be updated with the route given in the redirect. Second, it results in a call back to TCP to cause TCP to flush the route entry attached to its associated in_pcb structures. By doing this, it forces ip_output to search for a new route. As mentioned in the Route section above, we also require a call to a routine which reviews all of the TCP fast-path connections, and flushes any using the affected route.
In both FreeBSD and Microsoft TCP, the ICMP_UNREACH results in no more than a simple statistic update. We do the same..
The FreeBSD IP code requires few modifications when porting to the ATCP driver, which are described in the paragraphs below.
During initialization time, ip_init is called to initialize the array of protosw structures. These structures contain all the information needed by IP to be able to pass incoming data to the correct protocol above it. We strip the protosw array to exclude unnecessary protocols.
Changes made to IP input (function ip_intr( )) are listed below..
There is a small problem with the FreeBSD IP reassembly code. The reassembly code reuses the IP header portion of the IP datagram to contain IP reassembly queue information. It can do this because it no longer requires the original IP header. This is an absolute no-no with the NDIS 4.0 method of handling network packets. The NT DDK explicitly states that we must not modify packets given to us by NDIS. This is not the only place in which the FreeBSD code modifies the contents of a network buffer. It also does this when performing endian conversions. At the moment we leave this code as is and violate the DDK rules. We can do this because we ensure that no other transport driver looks at these frames. If this changes, we can modify this code substantially by moving the IP reassembly fields into the mbuf header.
Regarding IP output, only two modifications are made. The first is that since, for the moment, we are not dealing with IP options, there is no need for the code that inserts the IP options into the IP header. Second, we may discover that it is impossible for us to ever receive an output request that requires fragmentation. Since TCP performs Maximum Segment Size negotiation, we should theoretically never attempt to send a TCP segment larger than the MTU.
An NDIS Protocol Driver portion of the ATCP driver is defined by the set of routines registered with NDIS via a call to NdisRegisterProtocol. These routines are limited to those that are called (indirectly) by the INIC miniport driver beneath us. For example, we register a ProtocolReceivePacket routine so that when the INIC driver calls NdisMIndicateReceivePacket it will result in a call from NDIS to our driver..
After the underlying INIC devices have completed their initialization, NDIS calls our driver's ATKBindAdapter function for each underlying device. This completes the interface initialization.
Receive is handled by the protocol driver routine ATKReceivePacket. Before we describe this routine, consider each possible receive type and how it will be handled. As shown in also choose a value that will not be accepted by other transport driver such as Appletalk or IPX. Similarly, if we want to direct the data to Microsoft TCP, we can then simply leave the ethernet type field set to IP (or ARP). Note that since we will also see these frames we can choose to accept or not-accept them as necessary.
Incoming packets.
Incoming packets delivered to both ATCP and Microsoft TCP include ARP frames and ICMP frames 12. We indicate all TCP frames destined for us in this fashion, while frames that are destined for both our driver and the Microsoft TCP driver (ARP, ICMP) are indicated without a header buffer.
NDIS has been designed such that all packets indicated via NdisMIndicateReceivePacket by an underlying miniport are delivered to the ProtocolReceivePacket routine for all protocol drivers bound to it. These protocol drivers can choose to accept or not accept the data. They can either accept the data by copying the data out of the packet indicated to it, or alternatively they can keep the packet and return it later via a call to NdisReturnPackets. By implementing it in this fashion, NDIS allows more than one protocol driver to accept a given packet. For this reason, when a packet is delivered to a protocol driver, the contents of the packet descriptor, buffer descriptors and data must all be treated as read-only. At the moment, we violate this rule. We choose to violate this because much of the FreeBSD code modifies the packet headers as it examines them (mostly for endian conversion purposes). Rather than modify all of the FreeBSD code, we will instead ensure that no other transport driver accepts the data by making sure that the ethernet type field is unique to us (no one else will want it). Obviously this only works with data that is only delivered to our ATCP driver. For ARP and ICMP frames we instead copy the data out of the packet into our own buffer and return the packet to NDIS directly. While this is less efficient than keeping the data and returning it later, ARP and ICMP traffic should be small enough, and infrequent enough, that it doesn't matter.
The DDK specifies that when a protocol driver chooses to keep a packet, it should return a value of 1 (or more) to NDIS in its ProtocolReceivePacket routine. The packet is then later returned to NDIS via the call to NdisReturnPackets. This can only happen after the ProtocolReceivePacket has returned control to NDIS. This requires that the call to NdisReturnPackets must occur in a different execution context. We accomplish this by scheduling a DPC, or alternatively scheduling a system thread, or scheduling a kernel thread of our own. A DPC requires a queue of pending receive buffers on which to place and fetch receive packets.
After a receive packet is dequeued by the DPC it is then either passed to TCP directly for fast-path processing, or it is sent through the FreeBSD path for slow-path processing. Note that in the case of slow-path processing, we may be working on data that needs to be returned to NDIS (for example TCP data) or we may be working on our own copy of the data (ARP and ICMP). When we finish with the data we will need to figure out whether or not to return the data to NDIS or not. This will be done via fields in the mbuf header used to map the data. When the mfreem routine is called to free a chain of mbufs, the fields in the mbuf will be checked and, if required, the packet descriptor pointed to by the mbuf is returned to NDIS.
As noted in the section on mbufs above, we map incoming data to mbufs so that our FreeBSD port requires fewer modifications. Depending on the type of data received, this mapping will appear differently.
In
In
This receive mechanism may also be used for other purposes besides the reception of network data. For instance, the receive mechanism may be used for communication between the ATCP driver and the INIC. One such example is a TCP context flush from the INIC. When the INIC determines, for whatever reason, that it can no longer manage a TCP connection, it must flush that connection to the ATCP driver. It does this by filling in a header buffer with appropriate status and delivering it to the INIC driver. The INIC driver in turn delivers it to the protocol driver which will treat it essentially like a fast-path TCP connection by mapping the header buffer with an mbuf header and delivering it to TCP for fast-path processing. There are two advantages to communicating in this manner. First, it is already an established path, so no extra coding or testing is required. Second, since a context flush comes in, in the same manner as received frames, it will prevent us from getting a slow-path frame before the context has been flushed. if the header buffer specifies a fast-path connection, allocate one or more mbufs headers to map the header and possibly data buffers. Set the packet descriptor field of the mbuf to point to the packet descriptor, set the mbuf flags appropriately, queue the mbuf, and return 1. If the header buffer specifies a slow-path connection, allocate a single mbuf header to map the network data, set the mbuf fields to map the packet, queue the mbuf and return 1. Note that we design the INIC such that we will never get a TCP segment split across more than one buffer..
The ATCP transmit path is discussed in the following paragraphs, beginning with the NDIS 4 send operation. When a transport/protocol driver wishes to send one or more packets down to an NDIS 4 miniport driver, it calls NdisSendPackets with an array of packet descriptors to send. As soon as this routine is called, the transport/protocol driver relinquishes ownership of the packets until they are returned, one by one in any order, via a NDIS call to the ProtocolSendComplete routine. Since this routine is called asynchronously, our ATCP driver must save any required context into the packet descriptor header so that the appropriate resources can be freed. This is discussed further below.
Like the Receive path described above, the Transmit path is used not only to send network data, but is also used as a communication mechanism between the host and the INIC. Some examples of the types of sends performed by the ATCP driver follow.
As described above, the receive process typically occurs in two phases. First the INIC fills in a host receive buffer with a relatively small amount of data, but notifies the host of a large amount of pending data (either through a large amount of buffered data on the card, or through a large amount of expected NetBios data). This small amount of data is delivered to the client through the TDI interface. The client then responds with a MDL in which the data should be placed. Like the Fast-path TCP send process, the receive portion of the ATCP driver will then fill in a command buffer with the MDL information from the client, map the buffer with packet and buffer descriptors and send it to the INIC via a call to NdisSendPackets. Again, when the response buffer is returned to the INIC miniport, the ATKSendComplete routine will be called and the receive will complete. This relationship between the MDL, command buffer and buffer and packet descriptors are the same as shown in the Fast-path send section above.
As shown in.”
We may not initiate INIC resets from the ATCP driver. Instead, as noted in above, we may respond to reset status indications from the INIC driver below the ATCP driver. Similarly, we do not initiate any HALT operations from the ATCP driver..
This presented a challenge: The NT network driver framework does make provision for multiple types of protocol driver; but it does not easily allow for multiple instances of drivers handling the same protocol. For example, there are no “hooks” into the Microsoft TCP/IP driver which would allow for routing of IP packets between our driver (handling our INICs) and the Microsoft driver (handling other NICs). Our solution to this was to retain the Microsoft driver for all non-TCP network processing (even for traffic on our INICs), but to invisibly “steal” TCP traffic on our connections and handle it via our own (BSD-derived) driver. The Microsoft TCP/IP driver is unaware of TCP connections on interfaces we handle.
The network “bottom end” of this plural path processing was described earlier in the document. In this section we will discuss the “top end”—the TDI interface to higher-level NT network client software. We make use of an NT facility called a filter driver (see.
Initial thoughts were that handling this would be straightforward: we would tell, on the basis of the address given when creating the ADDRESS object, whether the connection is for one of our interfaces or not. After which, it would be easy to arrange for handling entirely by our code, or entirely by the Microsoft code: we would simply examine the ADDRESS object to see if it was “one of ours” or not. There were two main difficulties, however.
First, when the CONNECTION object is created, no address is specified: it acquires a local address only later when the TDI_ASSOCIATE_ADDRESS is done. Also, when a CONNECTION object is created, the caller supplies an opaque “context cookie” which will be needed for later communications with that caller. Storage of this cookie is the responsibility of the protocol driver: it is not directly derivable just by examination of the CONNECTION object itself. If we simply passed the “create” call down to the Microsoft TCP/IP driver, we would have no way of obtaining this cookie later, if it turns out that we need to handle the connection.
Therefore, for every CONNECTION object which is created, we must allocate a structure to keep track of information about it, and store this structure in a hash table keyed by the address of the CONNECTION object itself, so that we can locate it if we later need to process requests on this object. We refer to this as a “shadow” object: it replicates information about the object stored in the Microsoft driver. We.
For an outgoing or “active” connection setup, the TDI client first makes a call to create the ADDRESS object. Assuming that this is a “wildcard” address, we create a “shadow” object before passing the call down to the Microsoft driver.
The next step (omitted in the earlier list for brevity) is normally that the client makes a number of TDI_SET_EVENT IO-control calls to associate various callback functions with the ADDRESS object. These are functions that should be called to notify the TDI client when certain events (such as arrival of data,.
Finally the TDI client issues a TDI_CONNECT IO-control on the CONNECTION object, specifying the remote IP address (and port) for the desired connection. At this point, we examine our routing tables to determine if this connection should be handled by one of our interfaces, or by some other NIC. If it is ours, we mark the CONNECTION object as “one of ours” for future reference (using an opaque field that.
In point of fact, no existing TDI clients appear to use the explicit TDI_LISTEN and TDI_ACCEPT calls, and we are not handling them in the ATCP driver. All incoming connections are made via the callback mechanism..
Next, recall that the INIC driver knows about the IP addresses of our interfaces, and filters incoming IP packets based on this information. So any connection requests which we see in the ATCP driver are known to be for our interfaces..
In some cases when an ADDRESS object is created, an explicit port number is specified by the TDI client. This is typically the case for services (such as NETBIOS or FTP) which are preparing to respond to requests on well-known, assigned ports..
The structures used for ATCP ADDRESS and CONNECTION objects are defined in the file obmgr.h.
Most of the code for dealing with our shadow objects is in the file obmgr.c; this contains functions which handle object creation, cleanup and close, as well as the TDI_ASSOCIATE_ADDRESS, TDI_DISSOCIATE_ADDRESS and TDI_SET_EVENT_HANDLER IO-controls.
Note that we catch the completion of most of the requests of interest, and in fact much of our processing is done in our completion handlers. In general, we want to proceed with our processing only after we know that the Microsoft driver has successfully completed..
Areas where substantial redesign was needed to change from the socket paradigm to the TDI interface are discussed in more detail below..
The m_hdr and pkthdr components of the mbuf struct have been retained (though all mbufs now contain a pkthdr), but many new fields have also been added, on a somewhat ad-hoc basis as they were needed..
In a BSD system, Active Connection Setup starts with creating a socket. In NT, however, it starts with creating ADDRESS and CONNECTION objects, as described in section 10.2..
For Passive Connection Setup, there are no “listening” sockets in the NT world. Large sections of tcp_input( ) concerned with listening sockets are #ifdef'd out..
Disconnection in the NT world is not signaled by a ‘close’ on a descriptor, instead there is an explicit TDI_DISCONNECT IO-control..
Once the BSD code has completed the disconnection handshake, it calls soisdisconnected( ). In the ATCP driver this translates to a scheduling of the connection DPC; the DPC function completes any pended TDI_DISCONNECT IRP..
The notification is done by ATKNotifyDisConnection (in file atksocket.c); the determination of whether, and with what flags, we should call the disconnection notify function, is made by a series of tests at the start of this function..
The next few paragraphs describe slow-path input. Processing is largely unchanged from BSD up to the point where the tcp_input( ) code queues the mbuf on to the socket receive buffer with sbappend( ), and calls sorwakeup( )..
Instead we arrange to catch completion of the various NT statistics queries, which are IOCTL_TCP_QUERY_INFORMATION_EX requests on CONTROL FILE_OBJECTS, so that we can merge information from our driver with that returned from the Microsoft driver..
As with conventional networking cards, the Alacritech INIC employs an associated device driver. This document describes the device driver used with the Microsoft Windows NT, and 9x operating systems..
As shown in
As mentioned above, we can reduce the number of interactions between the INIC device driver and the INIC).
We maintain several queues of SDBs for each adapter in the system. These queues are named and described as follows:
AllSDBs is a linked list of all SDBs allocated for the adapter. Used to locate and free SDBs when the driver is halted.
FreeSDBs is a linked list of SDBs which are free for use (bitmask is 0xFFFF).
HdrQueue is a linked list of header SDBs. Used by the SimbaReceiveDpc routine described below to locate newly received frames.
CmdQueue is a list of free command buffers which can be sent, when needed, to the INIC..
As shown in.
The oemsetup installation script, described below, stores a number of parameters into the registry for each INIC adapter installed in the system. These parameters include the following query registry parameters:
CardBase—This parameter serves as a unique identifier for the INIC card. This is set to the PCI slot number with the PCI bus number OR'd into the top bits.
CardIndex—Index of the adapter on the card (0-3 for the four port INIC).
CardSize—Number of adapters on the card.
BusNumber—Bus number on which the card resides.
SlotNumber—PCI slot number of the card
FunctionNumber—PCI function number of the adapter (0-3 for the four port INIC).
NetworkAddress—An optional, administrator defined, network address..
Note that we do not allocate SDBs at this time. SDBs are allocated on an as-needed basis and consequently are not allocated until the card is initialized and we are prepared to pass buffers off to it..
Note that the top bits of the address written in the first write to the WCS carry special meaning. Bit.
This information is fetched from the INIC by issuing a Utility Processor Request (UPR) to the INIC firmware (UPRs are described below). The data returned by this UPR is contained within a shared memory structure pointed to by the SIMBA_CARD structure.
Once the INIC has been initialized, we can initialize a particular adapter on the card. This is done as follows:.
SimbaCheckForHang is the MiniportCheckForHang routine for the INIC driver. SimbaReset is the MiniportReset routine for the INIC driver..
SimbaQueryInformation is the MiniportQueryInformation routine for the INIC driver. SimbaSetInformation is the MiniportSetInformation routine for the INIC driver.
At present we support all of the required OIDs in the INIC driver. We have also added the following custom OIDs:
OID_SIMBA_ADD_IPADDR—Sent down from the ATCP driver to register an IP address with the INIC driver. The INIC driver uses these addresses by determine which way to direct incoming traffic. This is discussed further below.
OID_SIMBA_REMOVE_ILPADDR—Used to remove an IP address added with OID_SIMBA_ADD_IPADDR.
OID_SIMBA_GET_STATS—A query from the ATCP driver to obtain statistics maintained on the INIC adapter. This is discussed further below.
OID_SIMBA_ATK_GLOBALS—Sent down from the ATCP driver to pass shared memory information. This is primarily used for tracing. This too is discussed further below.).
For each packet contained in the array of packet descriptors we perform the steps described below.
First, we check for errors. There are a number of reasons why we may fail to send a packet. The reasons that we may fail to send a packet are as follows:.
Link or Adapter State is not up—If the Link State or the Adapter State is down, we cannot send any packets. We fail immediately by setting the packet status to NDIS_STATUS_FAILURE.
Zero-length packet—Strictly speaking, this is not an error. If we encounter a zero length packet we complete it successfully immediately.
Insufficient map registers—We need a map register for every NDIS buffer in the packet. If we do not have enough map registers, then we can not send the packet. We fail immediately by setting the packet status to NDIS_STATUS_RESOURCES.
No command buffer—If we need a command buffer and cannot allocate one we fail immediately by setting the packet status to NDIS_STATUS_RESOURCES..
It is thus important to identify whether or not a packet is a normal frame or, as shown in.
Note that the INIC driver does not reference any fields in the command buffer after it has been flushed.
As illustrated in.
After we have sent all of the packets in the packet array, we check to see if we have exhausted any of the command SDBs. If so we attempt to allocate replacement SDBs and requeue them to the CmdSDB queue.
After a command issued to the INIC has completed, the resources held by the command must be freed and the corresponding send, which initiated the command, must be completed. This is performed in the SimbaXmtDpc routine..
The command buffer contains a “HostHandle” field, which is filled in with the virtual address of the command buffer. When a command completes, the INIC firmware puts this address into the response buffer..
At the end of the command buffer, we keep a bunch of information that is not passed to the INIC. Among this information is the list of map registers used to obtain physical buffer addresses. We use this list to free the map registers..
SimbaISR is the MiniportISR routine for the INIC driver. SimbaHandleInterrupt is the MiniportHandleInterrupt routine for the INIC driver..
After the INIC fills in the header, and possibly data buffer.
In the event of an error, the SimbaRcvDpc routine increments the appropriate statistics field in the ADAPT structure, and then drops the received frame..
Multicast frames are a bit trickier. When the INIC driver receives a OID.
Frames that are sent from the INIC driver to the ATCP driver are done so by calling SimbaIndicateHeader. Frames that are sent up to the normal TCP driver are done so by calling SimbaIndicateData..
Once we have completed processing incoming data, we replace any completed header and data SDBs by issuing new SDBs to the INIC. Note that we do this immediately, rather than waiting for the ATCP or other protocol driver to return the buffers to us..
NT requires that an NDIS driver provide the following statistics: successful transmits, successful receives, transmit errors, receive errors, dropped receives (no buffer), and transmit collisions..
Two families of diagnostics are specified, hardware diagnostics, and firmware diagnostics. The hardware diagnostics are split into several applications, engineering hardware diagnostics, manufacturing diagnostics, and customer diagnostics.).
The SFWDiagSend routine will return success to the user immediately, rather than waiting for the INIC to respond to the command buffer. This allows the diagnostic application to get many transmit commands operating in parallel..
The SIMBA_TRACE facility is set up so that a common buffer is used to track events from both the ATCP and INIC driver. This is achieved by passing the common buffer address using the OID_SIMBA_ATK_GLOBALS set OID..
The bulk of the source code for the INIC driver is located in the driver/simba directory in the source tree. Other miscellaneous header files are scattered about in other directories as specified below.
The following files are found in the Simba source directory:
simba.c—Contains the DriverEntry routine for the INIC driver,
simba.h—The main header file for the INIC driver, this contains the SIMBA_DRIVER, SIMBA_CARD and ADAPT structures, as well as many other structures and definitions,
simbamini.c—The miniport entry points and related functions,
simbamisc.c—Miscellaneous support routines for the INIC driver. Contains most of the initialization and buffer management code,
endian.h—Endian swapping definitions used when parsing network frame headers,
simbadownload.c—The microcode download for the INIC. This is a two-dimensional statically defined character array generated by the objtoc utility,
simbaproto.c—The protocol driver routines for an initial (VINIC) phase of the driver, this is not included in an intermediate (VPCI) or FINAL phase of the driver,
vpci.c—The entry points for VPCI requests,
vpci_driver.h—Definitions used to create and parse VPCI network requests
ne2000.c—The DriverEntry and miniport routines for the ne2000 portion of the INIC VPCI driver,
ne2000sw.h—The main software definitions for the ne2000 portion of the INIC VPCI driver,
ne2000hw.h—The hardware definitions for the ne2000 NIC card.c-Low-level ne2000 network card routines,
interrupt.c—Interrupt, transmit and receive routines for the ne2000 portion of the INIC VPCI driver,
diag.c—Hardware and firmware diagnostic routines,
diag.h—Definitions used by the diagnostic routines,
diagdownload.c—The diagnostic microcode download for the INIC. Also a two dimensional array generated by the objtoc utility,
oemsetup.*—installation scripts for the VINIC, VPCI, and FINAL phase of the INIC driver,
precomp.h—Precompilation header file containing all of the included header files,
sources.*—compilation directives for the VINIC, VPCI and FINAL phase of the driver,
update.bat—A quick and dirty batch file used to update drivers on a test machine,
buildit.bat—A quick and dirty batch file used to build and install the INIC driver,
config.bat—A quick and dirty batch file used to configure the INIC driver for the VINIC, VPCI, or FINAL phase.
Other relevant files include:
driver/include/simbahw.h—Contains definitions about the INIC hardware and firmware,
driver/include/pci h—Contains general PCI configuration space definitions,
driver/include/simbamisc.h—Contains miscellaneous software definitions shared between the INIC and ATCP driver,
tools/diag/include/diagctl.h—Contains definitions shared between diagnostic applications and the diagnostic portion of the INIC driver,
tools/include/vpci.h—Contains definitions about VPCI commands. Shared by other VPCI users such as the AGDB utility..
The following acronyms are defined for the INIC microcode:
ACK=Transport layer acknowledgement;
BC=Broadcast frame;
CCB=Communications Control Block; a block of control information passed between the host and the INIC to control a connection;
FSM=Finite state machine; a state/event matrix giving action and next state;
ISR=Interrupt Status Register;
LRU=Least Recently Used; used in the SRAM CCB buffer cache;
MC=Multicast frame;
MSS=Maximum segment size;
PST=Persist timer;
RTR=Retransmission timer.
As specified in below, the INIC has a set of 3 custom processors (CPUs) that provide considerable hardware-assist to the microcode running thereon. The following paragraphs list the main hardware-assist features..
A set of Transmit sequencers work from the above-mentioned queues to transmit frames. Like the Receive sequencers, there is one Transmit sequencer per interface.
The INIC also has a custom 32-bit protocol processor that is effectively 3 CPUs using shared hardware in a 3-level pipelined architecture. The protocol processor provides separate instruction and data paths to eliminate memory contention..
A specialized instruction set is provided to the CPUs to assist network processing: endian-swap instructions, a hash instruction to generate hash indexes, embedded interlocks and instructions to set them, and a hardware-implemented LRU mechanism..
Receive and transmit processing on an individual CCB are each controlled by separate state machines; the state machines are run from within a process..
The initial implementation of the INIC may not handle T/TCP connections, since they are typically used for the HTTP protocol and the client for that protocol typically connects, sends a request and disconnects in one segment. The server sends the connect confirm, reply and disconnect in his first segment. Then the client confirms the disconnect. This is a total of 3 segments for the life of a context. Typical data lengths are on the order of 300 bytes from the client and 3.
Table 2 summarizes SRAM requirements for the Receive, Transmit and Utility CPUs:.
There are 512 registers available in the INIC. The first 256 are used for process slots. The remaining 256 are split between the 3 CPUs. Table 3 lists the register usage.
The following sources of events exist in the INIC:
- 1) A Receive input queue—Hardware will automatically DMA arriving frames into frame buffers and queue an event into the Q_RECV hardware queue.
- 2) A General Event register for Timer events—Expiration of the 2 millisecond timer will set 2 bits in this register, one for each processor.
- 3) Transmit request queues—There is one queue allocated per interface for requests from the host processor. These requests come via the Utility CPU, which initially DMAs the request into a small DRAM buffer and then queues a pointer to that buffer to the appropriate Transmit request queue.
- 4) Receive and Transmit CCB events queues—these queues are used to pass events to be processed against a CCB state machine. The events may initiate in any of the CPUs.
- 5) Receive and Transmit System queues: these queues are used for system events i.e. those not directed at a specific CCB.
-.
As mentioned earlier, there are 16 process slots in which to execute. The first 8 are allocated to the Receive CPU, the next 8 to the Transmit CPU.
The microcode is split into 6 sections based on functionality. These sections are:
- The Mainloop;
- Receive frame processing;
- Receive event processing for CCB events;
- Receive command processing;
- Transmit command processing;
- Transmit event processing for CCB events.
Within each of these divisions exist subdivisions. For example, receive-frame processing has code for non-CCB frames (“slow-path”), and for CCB frames (“fast-path”). These sections will be discussed in the following few pages.
Receive and Transmit share the same Main Loop code. This is made possible because of the CPU-specific registers defined by the hardware e.g., 384-415, 416-447. Also the functions that the mainloops need to perform are identical. The major functions are:
- to check if any DMAs have completed,
- to determine if any process are now restartable,
- to see if a timer tick has occurred,
- scan all the hardware queues for new events for this CPU.
The following is a C-like summary of the main loop:
Receive-frame processing can be broken down into the following stages:
First, Receive Dequeue and Header Validation, which includes considerable hardware assist. Much header validation is implemented in hardware in conjunction with MAC processing by scanning the data as it flies by. The Receive hardware sequencer performs a number of tests to generate status from the various headers.
For the MAC header the Receive hardware sequencer determines if Ethernet/802.3, if MC/BC, if it matches our MAC address A or B, determines the network protocol, and flags if not a MAC status of “good packet.”
For the Network header the Receive hardware sequencer determines if header checksum is valid, header length is valid (e.g. IP>=5), network length>header length, what the transport protocol is, if there is any fragmentation or network options, and whether the destination network address is ours..
The following summarizes the steps involved in normal fast-path frame processing:
- 1) Get control of the associated CCB; this involves locking the CCB to stop other processing (e.g. Transmit) from altering it while this receive) Examine the frame header to generate an event from it. The Receive events that can be generated on a given context from a frame are:
- receive a valid and complete Session layer packet;
- receive a valid and incomplete Session layer packet;
- receive a pure ACK;
- receive an “invalid” frame, i.e., one that causes the CCB to be flushed to the host;
- receive a window probe;
- receive a partial/split NetBios header.
- 4) Process the event against the CCBs FSM using that frame.:
- 1) DMA a small amount of the payload (192 bytes) into a small host header buffer;
- 2) Process the amount sent to the host through TCP—it has been delivered;
- 3) Queue the frame to the internal CCB frame queue in the CCB SRAM buffer;
- 4) DMA appropriate receive status into the header buffer, including setting the COMPLETE bit;
- 5) Post ISR status to the Utility CPU via the Q_EVENT2 queue, so that it will generate a host interrupt with it;
- 6) Generate an event to the Transmit CPU via the Q_EVENT1 queue to check if output is now possible; and
- 7) Exit from Receive FSM processing.
The following steps summarize slow-path Receive processing by the INIC:
- 1) Examine frame status bytes to determine if frame is in-error; if so, only these status bytes will be sent to the host;
- 2) Move the frame into either a small or a large host buffer via DMA. It is not split across these buffers;
- 3) Set frame status and address details and DMA status to the host;
- 4) Send event to the Utility processor to post Receive status in the ISR.
Once the INIC is handling CCBs, i.e. fast-path processing, there are numerous other events that need to be processed apart from received frames for that CCB. The following are the relevant events:
- lock a new context (from Xmit);
- unlock a new context (from Xmit);
- receive frame (complete or incomplete) from the CCB queue;
- receive window update from the CCB queue;
- receive a partial/split NetB header from the CCB queue;
- end of the CCB queue of frames;
- flush context request from host;
- flush context request from Xmit;
- context release/flush complete from Xmit.
The following summarizes Receive Event processing:
- 1) Get control of the associated CCB; this involves locking the CCB to stop other processing (e.g. Transmit) from altering it while this processing is taking place;
- 2) Get the CCB into an SRAM CCB buffer;
-;
- 4) Either way, process the event against the CCB's FSM.
There are two possible commands sent to the INIC from the host and both apply only to fast-path processing. The commands are:
- Receive MDL for remaining session-layer data;
- Abort/flush a context.
The following summarizes Receive Command processing:
- 1) Get an SRAM command buffer and get the first 32 bytes of the command into it;
- 2) Determine the CCB involved and get control of it; this involves locking the CCB to stop other processing (e.g. Transmit) from altering it while this processing is taking place;
- 3) Get the CCB into an SRAM CCB buffer;
- 4) Generate an event based on the command type;
- 5) Process the event against the CCB's FSM.).
There are 4 possible commands sent to the INIC from the host. The commands are:
- 1) Null command—essentially just a window update; fast-path only;
- 2) New context pending; fast-path only;
- 3) New context confirm; fast-path only;
- 4) Transmit command; fast- and slow-path.
The following summarizes Transmit Command processing:
- 1) Get an SRAM command buffer and get the first 32 bytes of the command into it;
- 2) Determine if there is a CCB involved and if so, get control of the it; this involves locking the CCB to stop other processing (e.g. Transmit) from altering it while this processing is taking place;
- 3) If a CCB is involved, get the CCB into an SRAM CCB buffer, and generate an event based on the command type; then process that event against the CCB's FSM;
- 4) Otherwise perform slow-path transmit command processing. into it, at which time the checksum is also calculated. If the frame is TCP/IP, the checksum will be appropriately adjusted if necessary (pseudo-header etc) and placed in the TCP header. The frame is then queued to the appropriate MAC transmit interface. Then the command is immediately responded to with appropriate status through the Host Response queue.
The following summarizes the steps performed:
- 1) Get the remainder of the command if larger than 32 bytes, into the SRAM command buffer. This implies that a slow-path command cannot be larger than the size of the SRAM command buffer (128 bytes);
- 2) Examine command to determine if output TCP/IP checksumming is required;
- 3) When output checksumming is required:.
4) When no checksumming is required:.
The following is an overview of the Transmit fast-path flow once a command has been posted. permanently in the CCB and DMA this directly from the SRAM CCB buffer into the DRAM buffer each time. Thus the payload checksum is adjusted for the pseudo-header and placed into the TCP header prior to DMAing the header from SRAM. Then the DRAM buffer is queued to the appropriate Q_UXMT transmit queue. The final step is to update various window fields etc in the CCB. Eventually either the entire request will have been sent and acked, or a retransmission timer will expire in which case the context is flushed to the host. In either case, the INIC will place a command response in the Response queue containing the command buffer handle <=0, the Persist timer has expired, the amount to send is less than a full segment and an ACK is expected/outstanding, the receiver's window is not half-open etc. Much of transmit processing will be in determining these conditions.
The fast-path has been implemented as a finite state machine (FSM) that covers at least 3 layers of the protocol stack, i.e., IP, TCP and Session. The state transitions for the Transmit FSM and the events that cause them are discussed below.
The following summarizes the steps involved in normal fast-path transmit command processing:
- 1) Get control of the associated CCB (gotten from the command); this involves locking the CCB to stop other processing (e.g. Receive) from altering it while this transmit) OK to transmit now e.g. send window is not zero;
- 3) If output is not possible, send the Check Output event to Q_EVENT1 queue for the Transmit CCB's FSM and exit;
- 4) Get a DRAM 2K.
- 7) When the payload DMA is complete, DMA the frame header from the CCB to the front of the DRAM buffer;
- 8) Queue.
Once the INIC is handling CCBs, i.e. fast-path processing, there are numerous other events that need to be processed apart from transmit commands from the host for that CCB. The following are the relevant events:
- 1) New context pending (from the new context pending command);
- 2) New context confirm (from that command also);
- 3) Flush context request from Receive;
- 4) Send data (after Check Output determines this can be done);
- 5) Send an ACK (from Receive);
- 6) All command data sent;
- 7) Received ACK for all outstanding on a command;
- 8) Persist conditions detected (WIN=0, no RTR, no PST);
- 9) Context flush event detected (e.g. RTR expired);
- 10) Send a window update;
- 11) Persist timer expired;
- 12) Check for RTR expiry;
- 13) Check for PST expiry;
- 14) Maybe send an ACK;
- 15) Maybe update the IDLE timer;
- 16) Context termination sync event received.
The following summarizes Transmit Event processing:
- 1) Get control of the associated CCB; this involves locking the CCB to stop other processing (e.g. Receive) from altering it while this processing is taking place.
- 2) Get the CCB into an SRAM CCB buffer;
-);
- 4) If there is any event, process it against the CCB's FSM.
Several Transmit details should be noted. First, regarding the slow-start algorithm that is now a part of the TCP standard will be handled on the INIC. It seems unreasonable to wait until the connection is sending at full-rate before passing it to the INIC..
The INIC code expects all transmit requests for which it has no CCB to not be greater than the MSS. If any request is, it will be dropped and an appropriate response status posted.
As a receiver, the INIC will do the right thing regarding Silly Window avoidance and not advertise small windows—this is easy. However it is necessary to also do things to avoid this as a sender, for the cases where a stupid client does advertise small windows. Without getting into too much detail here, the mechanism requires the INIC code to calculate the largest window advertisement ever advertised by the other end. It is an attempt to guess the size of the other end's receive buffer and assumes the other end never reduces the size of its receive buffer. See Stevens, Vol. 1 pp. 325-326.K:
- P0 or P1 hit a debug processor installed breakpoint;
- A system request has occurred over PCI;
- A DMA channel has changed state;
- A network interface has changed state;
- A process has requested status be sent to the system;
- A transmitter or receiver has stored statistics..
The Functional Command Decode performs the requests described in the INIC Utility Processor description. Most requests are interface dependent. A request is made for a specific interface to perform a specific function. As an example, PCI addresses.
For tracking network interface changes, a register (link_stat) is maintained with the current status of each of the network interfaces. When one or more of the interfaces changes status (as defined by this register) status is set up to notify the system of this change..
The microprocessor is a 32-bit, full-duplex, four channel, 10/100-Megabit per second (Mbps), Intelligent Network Interface Controller,.
The microprocessor Macs provide statistical information that may be used for SNMP. The Macs operate in promiscuous mode allowing the microprocessor to function as a network monitor, receive broadcast and multicast packets and implement multiple Mac addresses for each node. microprocessor is capable of operating in either a 64-bit or 32-bit PCI environment, while supporting 64-bit addressing in either configuration. PCI bus frequencies up to 66 MHz. are supported yielding instantaneous bus transfer rates of 533 MB/s. Both 5.0V and 3.3V signaling environments can be utilized by the.
The microprocessor supports Plug-N-Play auto-configuration through the PCI configuration space. External pull-up and pull-down resistors, on the memory I/O pins, allow selection of various features during chip reset. Support of an external eeprom allows for local storage of configuration information such as Mac addresses.
External SDRAM provides frame buffering, which is configurable as 4 MB, 8 MB, 16 MB or 32 MB using the appropriate SIMMs. Use of −10 speed grades yields an external buffer bandwidth of 224 MB/s. The buffer provides temporary storage of both incoming and outgoing frames. The protocol processor accesses the frames within the buffer in order to implement TCP/IP and NETBIOS. Incoming frames are processed, assembled then transferred to host memory under the control of the protocol processor. For transmit, data is moved from host memory to buffers where various headers are created before being transmitted out via the Mac..
Table 4 outlines the INIC Die Size using an LSI Logic G10 process.
Table 5 outlines the INIC Pin Count, from table 4 above.
Table 6 outlines the INIC Datapath Bandwidth
Table 7 outlines the INIC Cpu Bandwidth.
The INIC processor is a convenient means to provide a programmable state-machine which is capable of processing incoming frames, processing host commands, directing network traffic and directing PCI bus traffic. Three processors are implemented using shared hardware in a three-level pipelined architecture which launches and completes a single instruction for every clock cycle. The instructions are executed in three distinct phases corresponding to each of the pipeline stages where each phase is responsible for a different function.
The first instruction phase writes the instruction results of the last instruction to the destination operand, modifies the program counter (Pc), selects the address source for the instruction to fetch, then fetches the instruction from the control store. The fetched instruction is then stored in the instruction register at the end of the clock cycle.
The processor instructions reside in the on-chip control-store, which is implemented as a mixture of ROM and SRAM. The ROM contains 1K8000 of instruction space. The ROM and SRAM are both 49-bits wide accounting for bits [48:0] of the instruction microword. A separate mapping ram provides bits [55:49] of the microword (MapAddr) to allow replacement of faulty ROM based instructions. The mapping ram has a configuration of 128×7 which is insufficient to allow a separate map address for each of the 1K ROM locations. To allow re-mapping of the entire 1K ROM space, the map ram address lines are connected to the address bits Fetch[9:3]. The result is that the ROM is re-mapped in blocks of 8 contiguous locations.
The second instruction phase decodes the instruction which was stored in the instruction register. It is at this point that the map address is checked for a non-zero value which will cause the decoder to force a Jmp instruction to the map address. If a non-zero value is detected then the decoder selects the source operands for the Alu operation based on the values of the OpdASel, OpdBSel and AluOp fields. These operands are then stored in the decode register at the end of the clock cycle. Operands may originate from File, SRAM, or flip-flop based registers. The second instruction phase is also where the results of the previous instruction are written to the SRAM.
The third instruction phase is when the actual Alu operation is performed, the test condition is selected and the Stack push and pop are implemented. Results of the Alu operation are stored in the results register at the end of the clock cycle.
In general, a first instruction phase 500 of the pipelined microprocessors completes an instruction and stores the result in a destination operand, fetches the next instruction, and stores that next instruction in an instruction register. A first register set 490 provides a number of registers including the instruction register, and a set of controls 492 for first register set provides the controls for storage to the first register set 490. Some items pass through the first phase without modification by the controls 492, and instead are simply copied into the first register set 490 or a RAM file register 533. A second instruction phase 560 has an instruction decoder and operand multiplexer 498 that generally decodes the instruction that was stored in the instruction register of the first register set 490 and gathers any operands which have been generated, which are then stored in a decode register of a second register set 496. The first register set 490, second register set 496 and a third register set 501, which is employed in a third instruction phase 600, include many of the same registers, as will be seen in the more detailed views of MHz, each Clock increment takes 15 nanoseconds to complete, for a total of 45 nanoseconds to complete one instruction for each of the three processors. The rotating instruction phases are depicted in more detail in
More particularly,
The RAM file register 533 has a single write port for addresses and data and two read ports for addresses and data, so that more than one register can be read from at one time. As noted above, the RAM file register 533 essentially straddles the first and second phases, as it is written in the first phase 500 and read from in the second phase 560. A control store instruction 510 allows the reprogramming of the processors due to new data in from the control store 480, not shown in this figure, the instructions stored in an instruction register 535. The address for this is generated in a fetch control register 511, which determines which address to fetch, the address stored in fetch address register 538. Load control 515 provides instructions for a program counter 540, which operates much like the fetch address for the control store. A last-in first-out stack 544 of three registers is copied to the first register set without undergoing other operations in this phase. Finally, a load control 517 for a debug address 548 is optionally included, which allows correction of errors that may occur.
The micro-instructions are divided into six types according to the program control directive. The micro-instruction is further divided into sub-fields for which the definitions are dependent upon the instruction type. The word format for the six instruction types are listed in Table 8 below.
All instructions include the Alu operation (AluOp), operand “A” select (OpdASel), operand “B” select (OpdBSel) and Literal fields. Other field usage depends upon the instruction type.
The “jump condition code” (Jcc) instruction causes the program counter to be altered if the condition selected by the “test select” (TstSel) field is asserted. The new program counter (Pc) value is loaded from either the Literal field or the AluOut as described in the following section and the Literal field may be used as a source for the Alu or the ram address if the new Pc value is sourced by the Alu.
The “jump” (Jmp) instruction causes the program counter to be altered unconditionally. The new program counter (Pc) value is loaded from either the Literal field or the AluOut as described in the following section. The format allows instruction bits 23:16 to be used to perform a flag operation and the Literal field may be used as a source for the Alu or the ram address if the new Pc value is sourced by the Alu.
The “jump subroutine” (Jsr) instruction causes the program counter to be altered unconditionally. The new program counter (Pc) value is loaded from either the Literal field or the AluOut as described in the following section. The old program counter value is stored on the top location of the Pc-Stack which is implemented as a LIFO memory. The format allows instruction bits 23:16 to be used to perform a flag operation and the Literal field may be used as a source for the Alu or the ram address if the new Pc value is sourced by the Alu.
The “Nxt” (Nxt) instruction causes the program counter to increment. The format allows instruction bits 23:16 to be used to perform a flag operation and the Literal field may be used as a source for the Alu or the ram address.
The “return from subroutine” (Rts) instruction is a special form of the Nxt instruction in which the “flag operation” (FlgSel) field is set to a value of 0hff. The current Pc value is replaced with the last value stored in the stack. The Literal field may be used as a source for the Alu or the ram address.
The Map instruction is provided to allow replacement of instructions which have been stored in ROM and is implemented any time the “map enable” (MapEn) bit has been set and the content of the “map address” (MapAddr) field is non-zero. The instruction decoder forces a jump instruction with the Alu operation and destination fields set to pass the MapAddr field to the program control block.
The program control is determined by a combination of PgmCtrl, DstOpd, FlgSel and TstSel. The behavior of the program control is illustrated in the “C-like” description contained in CD Appendix A.
Hardware will detect certain program errors. Any sequencer generating a program error will be forced to continue executing from location 0004. The program errors detected are:
- 1. Stack Overflow—A JSR is attempted and the stack registers are full.
- 2. Stack Underflow—An RTS is attempted and the stack registers are empty.
- 3. Incompatible SRAM Size & SRAM Alignment—An SRAM Operation is attempted where the size and the SRAM address would cause the operation to extend beyond the size of the word, e.g. Size=4 Address=401 or Size=2 Address=563
-.
The SRAM control sequencer services requests to store to, or retrieve data from an SRAM organized as 1024 locations by 128 bits (16 KB). The sequencer operates at a frequency of 133 MHz, allowing both a Cpu access and a DMA access to occur during a standard 66 MHz Cpu cycle. One 133 MHz cycle is reserved for Cpu accesses during each 66 MHz cycle while the remaining 133 MHz cycle is reserved for DMA accesses on a prioritized basis. flies.
A PCI MASTER-OUT SEQUENCER (Pmo) is shown in
Pmo receives requests from two separate sources; the DRAM to PCI (D2p) module and the SRAM to PCI (S2p) module. An operation first begins with prioritization of the requests where the S2p module is given highest priority. Next, the Pmo module takes a Snapshot of the SRAM FIFO address and uses this to generate read requests for the SramCtrl sequencer. The Pmo module then proceeds to arbitrate for ownership of the PCI bus via the PciMstrIO module. Once the Pmo holding registers have sufficient data and PCI bus mastership has been granted, the Pmo module begins transferring data to the PCI target. For each successful transfer, Pmo sends an acknowledge and encoded size to the master sequencer, allow it to update it's internal pointers, counters and status. Once the PCI burst transaction has terminated, Pmo parks on the PCI bus unless another initiator has requested ownership. Pmo again prioritizes the incoming requests and repeats the process.
Pmi receive requests from two separate sources; the PCI to DRAM (P2d) module and the PCI to SRAM (P2s) module. An operation first begins with prioritization of the requests where the P2s module is given highest priority. The Pmi module then proceeds to arbitrate for ownership of the PCI bus via the PciMstrIO module. Once the PCI bus mastership has been granted and the Pmi holding registers have sufficient data, the Pmi module begins transferring data to the SRAM FIFO. For each successful transfer, Pmi sends an acknowledge and encoded size to the master sequencer, allowing it to update it's internal pointers, counters and status. Once the PCI burst transaction has terminated, Pmi parks on the PCI bus unless another initiator has requested ownership. Pmi again prioritizes the incoming requests and repeats the.
Psi manages write requests to configuration space, expansion rom, DRAM, SRAM and memory mapped registers. Psi separates these PCI bus operations in to two categories with different action taken for each. DRAM accesses result in Psi generating write request to an SRAM buffer followed with a write request to the Xwr sequencer. Subsequent write or read DRAM operations are retry terminated until the buffer has been emptied. An event notification is set for the processor allowing message passing to occur through DRAM space.
All other PCI write transactions result in Psi posting the write information including PCI address, PCI byte marks and PCI data to a reserved location in SRAM, then setting an event flag which the event processor monitors. Subsequent writes or reads of configuration, expansion rom, SRAM or registers are terminated with retry until the processor clears the event flag. This allows SiMBa to keep pipelining levels to a minimum for the posted write and give the processor ample time to modify data for subsequent PCI read operations. Note that events 4 through 7 occur only when the write operation targets the DRAM.
Pso manages read requests to configuration space, expansion rom, DRAM, SRAM and memory mapped registers. Pso separates these PCI bus operations in to two categories with different action taken for each. DRAM accesses result in Pso generating read request to the Xrd sequencer followed with a read request to SRAM buffer. Subsequent write or read DRAM operations are retry terminated until the buffer has been emptied.
All other PCI read transactions result in Pso posting the read request information including PCI address and PCI byte marks to a reserved location in SRAM, then setting an event flag which the event processor monitors. Subsequent writes or reads of configuration, expansion rom, SRAM or registers are terminated with retry until the processor clears the event flag. This allows SiMBa to use a microcoded response mechanism to return data for the request. The processor decodes the request information, formulates or fetches the requested data and stores it in SRAM then clears the event flag allowing Pso to fetch the data and return it on the PCI bus.
CD Appendix B defines various bits of control information relating to receive packets.
CD Appendix C defines various bits of control information relating to transmit packets..
Table 9 lists functions of the DMA sequencers.
The processors manage DMA in the following way. The processor writes a DMA descriptor to an SRAM location reserved for the DMA channel. The format of the DMA descriptor is dependent upon the targeted DMA sequencer. The processor then writes the DMA sequencer number to the channel command register.
Each of the DMA sequencers polls all thirty two DMA channels in search of commands to execute. Once a command request has been detected, the DMA sequencer fetches a DMA descriptor from a fixed location in SRAM. The SRAM location is fixed and is determined by the DMA channel number. The DMA sequencer loads the DMA descriptor into its own registers, executes the command, then overwrites the DMA descriptor with ending status. Once the command has halted, due to completion or error, and the ending status has been written, the DMA sequencer sets the done bit for the current DMA channel.
The done bit appears in a DMA event register which the Cpu can examine. The Cpu fetches ending status from SRAM, then clears the done bit by writing zeroes to the channel command (ChCmd) register. The channel is now ready to accept another command.
CD Appendix D defines various bits of control information relating to DMA operations. | https://patents.google.com/patent/US7472156B2/en | CC-MAIN-2018-13 | refinedweb | 18,074 | 60.35 |
ObjectDataProvider Class
Wraps and creates an object that you can use as a binding source.
Assembly: PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML:,.
This topic discusses the different ways you can make data available for binding in Extensible Application Markup Language (XAML), depending on the needs of your application.
If you have a common language runtime (CLR) object you would like to bind to from XAML, one way you can make the object available for binding is to define it as a resource and give it an x:Key. In the following example, you have a Person object with a string property named PersonName. The Person object is defined in the namespace called SDKSample.
<Window xmlns="" xmlns: <Window.Resources> <src:Person x: ... </Window.Resources>
You can then bind to the object in XAML, as shown in the following example.
Alternatively, you can use the ObjectDataProvider class, as in the following example.
You define the binding the same way:
In this particular example, the result is the same: you have a TextBlock with the text content Joe. However, the ObjectDataProvider class provides functionality such as the ability to bind to the result of a method. You can choose to use the ObjectDataProvider class if you need the functionality it provides.
However, if you are binding to an object that has already been created, you need to set the DataContext in code, as in the following example.
DataSet myDataSet; private void OnInit(object sender, EventArgs e) { string mdbFile = Path.Combine(AppDataPath, "BookData.mdb"); string connString = string.Format( "Provider=Microsoft.Jet.OLEDB.4.0; Data Source={0}", mdbFile); OleDbConnection conn = new OleDbConnection(connString); OleDbDataAdapter adapter = new OleDbDataAdapter("SELECT * FROM BookTable;", conn); myDataSet = new DataSet(); adapter.Fill(myDataSet, "BookTable"); // myListBox is a ListBox control. // Set the DataContext of the ListBox to myDataSet myListBox.DataContext = myDataSet; }
To see the complete samples, see Simple Binding Sample and Binding to an ADO.NET DataSet Sample.
To access XML data for binding using the XmlDataProvider class, see How to: Bind to XML Data Using an XMLDataProvider and XPath Queries. To access XML data for binding using the ObjectDataProvider class, see How to: Bind to XDocument, XElement, or LINQ for XML Query Results.
For information about the different ways you can specify the data you are binding to, see How to: Specify the Binding Source. For information about what types of data you can bind to or how to implement your own common language runtime (CLR) objects for binding, see Binding Sources Overview.
More Code
System.Windows.Data.DataSourceProvider
System.Windows.Data.ObjectDataP. | http://msdn.microsoft.com/en-us/library/system.windows.data.objectdataprovider(v=vs.90).aspx | CC-MAIN-2014-15 | refinedweb | 424 | 56.55 |
1,1
The first four terms are also called Narcissistic or Armstrong numbers. The first 16 terms are found in the Spencer's book, pages 65 and 101.
The sequence contains several infinite subsequences such as 153, 165033, 166500333, 166650003333, ...; 370, 336700, 333667000, 333366670000, ... or 371, 336701, 333667001, 333366670001, ... - Ulrich Schimke (ulrschimke(AT)aol.com), Jun 08 2001
From Daniel Forgues, Jan 30 2015: (Start)
The subsequence {153, 165033, 166500333, ...} are numbers of the form
[(10^n - 4) / 6] * (10^n)^2 + [(10^n) / 2] * (10^n)^1 +
[(10^n - 1) / 3] * (10^n)^0 =
[(10^n - 4) / 6]^3 + [(10^n) / 2]^3 + [(10^n - 1) / 3]^3, n >= 1,
thus equal to the sum of the cube of their "digits" in base 10^n.
The subsequence {370, 336700, 333667000, ...} are numbers of the form
[(10^n - 1) / 3] * (10^n)^2 + {10^n - [(10^n - 1) / 3]} * (10^n)^1 =
[(10^n - 1) / 3]^3 + {10^n - [(10^n - 1) / 3]}^3, n >= 1,
thus equal to the sum of their "digits" in base 10^n.
The subsequence {371, 336701, 333667001, ...} is trivially derived from the subsequence {370, 336700, 333667000, ...}, since 1^3 = 1.
The subsequence {407, 340067, 334000667, ... } are numbers of the form
{10^n - 2 * [(10^n - 1) / 3]} * (10^n)^2 +
{10^n - [(10^n - 1) / 3]} * (10^n)^0 =
{10^n - 2 * [(10^n - 1) / 3]}^3 + {10^n - [(10^n - 1) / 3]}^3, n >= 1,
"There are just four numbers (after 1) which are the sums of the cubes of their digits, viz. 153 = 1^3 + 5^3 + 3^3, 370 = 3^3 + 7^3 + 0^3, 371 = 3^3 + 7^3 + 1^3, and 407 = 4^3 + 0^3 + 7^3. This is an odd fact, very suitable for puzzle columns and likely to amuse amateurs, but there is nothing in it which appeals much to a mathematician. The proof is neither difficult nor interesting--merely a little tiresome. The theorem is not serious; and it is plain that one reason (though perhaps not the most important) is the extreme speciality of both the enunciation and the proof, which is not capable of any significant generalization." -- G. H. Hardy, "A Mathematician’s Apology" (End)
From Daniel Forgues, Feb 04 2015: (Start)
The subsequence {341067, 333401006667, 333334001000666667, ...} is trivially derived from the even indexed terms 2n, n >= 1, of the subsequence {407, 340067, 334000667, 333400006667, ...}, since (10^n)^3 = 10^n * 10^(2n). These numbers are equal to the sum of the cube of their "digits" in base 10^(2n), n >= 1.
The number 407000 is trivially derived from 407, since 40^3 + 70^3 =
(4 * 10)^3 + (7 * 10)^3 = (4^3 + 7^3) * 10^3 = 407 * 1000 = 407000.
The number 407001 is trivially derived from 407000, since 1^3 = 1. (End)
From Jose M. Arenas, Mar 08 2017: (Start)
The subsequence {340067000000, 334000667000000000, 333400006667000000000000, ...} are numbers of the form
(4 * 10^(n + 2) + ((10^(n + 1) - 1) / 3) * 10^(n + 3)) * 10^(4 * n + 8) +
(7 * 10^(n + 2) + (2 * (10^(n + 1) - 1) / 3) * 10^(n + 3)) * 10^(2 * n + 4) =
(4 * 10^(n + 2) + ((10^(n + 1) - 1) / 3) * 10^(n + 3))^3 +
(7 * 10^(n + 2) + (2 * (10^(n + 1) - 1) / 3) * 10^(n + 3))^3, n >= 0,
thus equal to the sum of their 3 sections, each section of (2 * n + 4) digits.
The subsequence {340067000001, 334000667000000001, 333400006667000000000001, ...} is trivially derived from the subsequence {340067000000, 334000667000000000, 333400006667000000000000, ...}, since 1^3 = 1.
(End)
J. S. Madachy, Madachy's Mathematical Recreations, pp. 166 Dover NY 1979.
Donald D. Spencer, "Exploring number theory with microcomputers", pp. 65 and 101, Camelot Publishing Co.
Jose M. Arenas and Giovanni Resta, Table of n, a(n) for n = 1..69 (terms < 10^18, first 49 terms from Jose M. Arenas)
Jose M. Arenas, Python code
333667001 = 333^3 + 667^3 + 001^3.
f[n_] := Block[{len = IntegerLength@ n}, If[IntegerQ[len/3], n == Plus @@ Flatten[(FromDigits /@ Partition[IntegerDigits@ n, len/3])^3], False]]; Select[Range[10^6], f] (* Michael De Vlieger, Jan 31 2015 *)
(Python)
def a():
..n = 1
..while n < 10**9:
....st = str(n)
....if len(st) % 3 == 0:
......s1 = st[:int(len(st)/3)]
......s2 = st[int(len(st)/3):int(2*len(st)/3)]
......s3 = st[int(2*len(st)/3):int(len(st))]
......if int(s1)**3+int(s2)**3+int(s3)**3 == int(st):
........print(n, end=', ')
........n += 1
......else:
....else:
......n = 10*n
a()
# Derek Orr, Jul 03 2014
..for i in range(1, 10):
....for j in range(10):
......for k in range(10):
........if i**3 + j**3 + k**3 == i*100 + j*10 + k:
..........print(i*100 + j*10 + k)
..for i in range(10, 100):
....for j in range(100):
......for k in range(100):
........if i**3 + j**3 + k**3 == i*10000 + j*100 + k:
..........print(i*10000 + j*100 + k)
..for i in range(100, 1000):
....for j in range(1000):
......for k in range(1000):
........if i**3 + j**3 + k**3 == i*1000000 + j*1000 + k:
..........print(i*1000000 + j*1000 + k)
# Denys Contant, Feb 23 2017
Cf. A005188.
See A271730 for a related sequence.
Sequence in context: A066528 A046197 A271730 * A256748 A256741 A246629
Adjacent sequences: A056730 A056731 A056732 * A056734 A056735 A056736
nonn,base
Carlos Rivera, Aug 13 2000
Offset changed to 1 by N. J. A. Sloane, Jul 07 2014
a(24)-a(27) from Jose M. Arenas, Mar 08 2017
approved | https://oeis.org/A056733 | CC-MAIN-2019-22 | refinedweb | 916 | 93.54 |
Red Hat Bugzilla – Bug 477297
Rhythmbox Python Console in pt_BR locale raises exception on start
Last modified: 2009-04-28 12:55:57 EDT
Description of problem:
On opening Python Console on Rhythmbox, the following exception is raised:
---
Traceback (most recent call last):
File "/usr/lib64/rhythmbox/plugins/python-console/pythonconsole.py", line 393, in __run
exec command in self.namespace
File "<string>", line 1
print "Você pode acessar a janela principal através da variável "shell" :\n%s" % shell
^
SyntaxError: invalid syntax
---
Clearly, there is a problem with the printed string - it is using double quotes where single quotes should be used (or backslashed doublequotes).
Version-Release number of selected component (if applicable):
Rhythmbox 0.11.6
Python 2.5.2
How reproducible:
Aways.
Steps to Reproduce:
1. Open Rhythbox
2. Open Python console
Actual results:
Console opens with this printed exception (but works fine).
Expected results:
Console opens without an exception. The string is printed properly.
Additional info:
The fix should be just a change on the quotes of the string, but I don't know where it is located.
Created attachment 327534 [details]
Catalog file with quotes corrected
You're right, using single quotes no problem occurs.
To test, overwrite your /usr/share/locale/pt_BR/LC_MESSAGES/rhythmbox.mo by my attachment, but before make a copy from original:
# cp /usr/share/locale/pt_BR/LC_MESSAGES/rhythmbox.mo /usr/share/locale/pt_BR/LC_MESSAGES/rhythmbox.backup.mo
Sorry by incovenience, the problem will be fixed soon as possible.
This seems to be an i18n issue, not L10n. Doubles quotes should be allowed here as well as in other strings.
I filed this upstream:
The right course of action will be discussed upstream, thanks for the report. | https://bugzilla.redhat.com/show_bug.cgi?id=477297 | CC-MAIN-2017-39 | refinedweb | 285 | 58.38 |
ike it or not, the new Windows® XP user interface (formerly codenamed "Luna") is something that most people have strong feelings about when they first see it. I confess that when I first completed the Windows XP installation and I was confronted with the new Windows XP visual style, I was tempted to drop it and return to the more classic and familiar Windows 2000 interface (which is an option with Windows XP). I wanted my old Windows back! The Windows XP shell introduces a rationalization of the user interface services and features found in previous versions of Windows. As a result, a few things you could do with Windows 2000 are either unsupported under Windows XP or are supported in a more restrictive way. To make up for this, new common controls and, above all, new listview capabilities, make the Windows shell easier to use with richer programming support. In this article, I'll delve into the Windows XP shell to cover shell settings, shell extensions, new registry entries, and folder customization. Finally, I'll summarize the key things you need to know about supporting Windows XP visual styles in your own apps through the new family of common controls. This article is based on the first Release Candidate of Windows XP, so it's remotely possible that some of this information might change when the product ships. However, if you follow along you'll find the kind of information you need to get ready for Windows XP now.
Windows XP does not support any new shell extensions that aren't also supported in Windows 2000, with one exception I'll cover shortly. However, folder customization through hypertext templates (.htt files) has been deemphasized in Windows XP and important restrictions have been applied. There are places in the Windows XP shell where the user interface is drawn in a completely new way. The underlying technology, though, is not documented or exposed at present. There are now more shell registry settings, letting you better personalize more aspects of the shell. For example, you can exercise significant control over infotips on a per-file-class basis without writing a shell extension. Additional shell enhancements include common controls, fast user switching (the ability to have the system work with multiple users simultaneously connected), and Autoplay. The one new type of shell extension Windows XP does have that allows you to register new handlers for music, video, and pictures delivered through CD, DVD and other media. (See the "Automatcially Detect and React to New Devices on a System" article in this issue.) The contents of my Windows 2000 article "Enhance Your User's Experience with New Infotip and Icon Overlay Shell Extensions" (MSDN Magazine, March 2000) is still largely valid. However, I'm going to revisit some of the information in that article in light of Windows XP. After playing with Windows XP for a couple of days, I got the distinct impression that the system tends to control what the user can and cannot do much better than earlier versions of the Windows operating system did. I've written at least three articles for MSDN® Magazine about the Windows 2000 shell and registry. In addition to the aforementioned piece about shell extensions, I covered advanced folder customization in "Extending Explorer Views by Customizing HyperText Template Files" in the June 2000 issue and the registry in "Latest Features and APIs Provide the Power to Customize and Extend Your Apps" that appeared in the November 2000 issue. All these articles (whose URLs are listed in this article summary) illustrate hidden gems in the Windows 2000 shell architecture and shed light on poorly documented, yet important topics and features that satisfy diverse needs and make developers more productive. For example, how do you change a folder's icon? Based on some early MSDN documentation, if you create a file called desktop.ini in a folder, and add the following content
[.ShellClassInfo]IconFile=shell32.dllIconIndex=41
[.ShellClassInfo]
IconFile=shell32.dll
IconIndex=41
then setting the readonly attribute for the folder forces Explorer to pay special attention to the desktop.ini file. This makes Explorer read the .ini file and display the specified icon when folders are listed. While this is not a particularly difficult task for developers and power users, it required knowledge of implementation details and familiarity with the system. In Windows XP, any user who wants to mark a particular folder with a custom icon need only right-click on the folder, select the Customize tab and follow the instructions shown in Figure 1. What happens under the covers is similar to the process I just described, but the details are hidden from the user.Figure 1 Choose Icon Another interesting feature that was once the exclusive domain of power users, but which is now available to any Windows XP user, is the ability to associate actions with classes of files. For example, suppose you want to add the Register and Unregister items on the context menu of DLL files to register and unregister the file as a COM component. Before Windows XP, this required a Windows Script Host (WSH) script to directly manipulate the registry or some compiled code using the registry API. While this remains the only way to accomplish it programmatically, users can now access a sequence of dialogs to associate commands with classes of files. Just click on the Folder Options item from the Explorer Tools menu, open the File Types tab, select or add the particular file type, and click the Advanced button. What happens next is shown in Figure 2.Figure 2 Advanced Options Customizing the layout of a Windows folder view is yet another user interface feature that's changed significantly in Windows XP. No longer will a wizard guide you through various steps. Instead, there is a simple dropdown list in the Customize tab of the folder's properties. From there, you can choose the style of the folder from a number of predefined options. Apparently, there is no longer a way to completely customize the structure of a folder view. (I'll have more to say about this later on.) In general, Windows XP comes with a significant number of user interface improvements, especially for users and power users. In prior versions of Windows, some of these improvements were only useful to programmers. In Windows XP, many more people can take advantage of these UI improvements. From the programmer's perspective things have been left more or less unchanged, but the tasks are now more thoroughly documented in the latest Platform SDK.
Let's start this tour of the Windows XP shell by looking at some little-known yet useful registry tweaks that can help you to better configure an application and fuse it to the system shell. A large number of the shell features are governed by settings stored in the system registry. By changing values and creating entries, you can tune up the overall behavior of the shell and its constituent elements. For example, you can control the way in which a file is processed (AlwaysShowExt, NoOpen, NoOpenWith, EditFlags settings), the way a system object presents itself through Explorer, and the way Infotips are formatted. A majority of the settings mentioned here also work with Windows 2000. The AlwaysShowExt setting serves the purpose of overriding one of the folder options that hides the extension of known file types. A known file type is any file class whose extension is registered with the system, along with handlers for actions like open, print, and edit. Technically speaking, you know that a file class is properly registered with the operating system when you find the following registry key exists:
HKEY_CLASSES_ROOT\.ext
HKEY_CLASSES_ROOT
\.ext
Here, .ext represents the file extension. If the AlwaysShowExt value is present in the registry, the file extension is always displayed in Explorer, regardless of the setting of the "Hide extensions for known file types" folder option. Figure 3 and Figure 4 show the various settings for typical DLL files.Figure 4 Folder Options Another rather interesting attribute is NoOpen. Through not frequently used, it helps the system notify users that they're about to do something dangerous. If your program creates files that users should not modify, you can register the corresponding file type with a NoOpen attribute under the file type identifier key. A file type identifier key takes the form of extfile, so the identifier for DLLs would be dllfile. If the user attempts to open any file from a class that has been marked with the NoOpen attribute, then the system displays a warning message. If you assign some text as the value of the NoOpen attribute, the system displays that text in the message box. However, bear in mind that despite the attribute's name, signing your files this way does not prevent users from opening the files; they only get a warning. In addition, notice that NoOpen does not work if any command action has been specified for the class. For example, by default a DLL file has no custom command registered. (Except on my system—I added a custom command through the dialogs shown in Figure 2.) In Figure 3, you also see that DLL files are marked as NoOpen. Try to double-click on a DLL file under these conditions and you see a message that's similar to those in Figure 5. The top window shows the default message, whereas the bottom window displays a custom message that is the text of the NoOpen registry entry.Figure 5 Default and Custom Messages Assigning attributes to a file class allows you to control some aspects of its behavior. It also allows you to limit the extent to which the user can modify various aspects of the class, such as its icon or verbs, through the File Types tab of the Folder Options dialog. The attributes are defined as binary flags and are stored in the EditFlags entry. EditFlags must be a REG_BINARY entry. For DLL files, its registry path evaluates to
HKEY_CLASSES_ROOT\dllfile
\dllfile
To assign the EditFlags entry of a file class, take the sum of any combination of the attributes listed in Figure 6. For example, setting EditFlags to 0x00100100 combines the ability to preserve the description of the file class with the restriction that files of that type cannot be added to the Recent Documents folder after being opened. Reading about this feature validated all of my conjectures and hunches a few years ago when I realized that not all files that I opened were listed in the Recent Documents menu. This is the perfect example of system features that work with Windows XP and are documented for Windows XP, but are also present in earlier versions of Windows.
Each file type can be associated with an infotip by creating a registry entry called Infotip under the following path:
HKEY_CLASSES_ROOT\extfile
\extfile
If you register infotips in this way, you cannot apply them on a per-file basis. The string that you specify will be displayed for every file of that file type. To customize infotips, you can write a shell extension, as I'll show you shortly. As an alternative, Windows XP supports a huge number of property names, each of which points to a special piece of information about files. Some of the supported property names, which also apply to Windows 2000, are listed in Figure 7. The Infotip registry entry is assigned with a semicolon-separated sequence of these properties. Then, when Explorer is called to display the infotip for that file, it retrieves the information specific to that file. For example, if you look at Figure 3 you'll notice that DLLs have the following infotip structure:
prop:FileDescription;Company;FileVersion;Create;Size
Any infotip text that includes property names must begin with prop: as this is the prefix that tells Explorer to apply a special treatment to the text that follows. Some of the property names in the list are specific to Windows XP, namely FileDescription, Company, and FileVersion. As you may have guessed already, they refer to information that can be stored in the VersionInfo resource of Windows executables. The list of property names includes information that is typical of a certain category of files, but not all. When a certain property name does not have a corresponding value, then it is simply ignored. In Figure 8 you can see the infotips for two different DLLs. Guess what? Only the bottom one has version information.Figure 8 Infotips Speaking of DLLs, another particular shell registry setting you may have noticed in Figure 3 is TileInfo. This refers to a new, Windows XP-specific view mode called Tiles. Tiles mode works side by side with other popular views in Windows such as thumbnails, details, and large. The TileInfo registry entry defines the format that displayed information should have when the file name is rendered in tiling mode in a folder view. TileInfo follows the same syntax rules as InfoTip.Figure 9Figure 9 shows how the menu looks. Notice that, unlike the thumbnail view which is implemented internally by the system, tiles and groups (another new feature for arranging icons) are new functionalities of the Windows XP listview common control.
AutoPlay is a feature that detects and properly handles special content such as pictures, music, or video files stored on removable media and devices. AutoPlay should not be confused with AutoRun. AutoRun, introduced with Windows 95, enables removable media like a CD to automatically launch an application when placed in the drive. Autorun is accomplished through the use of a file called autorun.inf, located in the root directory of the CD. AutoPlay takes in the essence of AutoRun, but applies specifically to certain categories of files and provides a way for you to register handlers for those kinds of content. Put another way, AutoRun makes a CD self-installing, or at least self-running. It does not rely on files or information stored on the machine. AutoPlay addresses a different requirement. When a user connects a specialized peripheral device such as an MP3 player or digital photo reader, AutoPlay allows machine-specific handling of the device. For instance, when you attach a digital camera, you might be asked whether you want to display the camera as a drive, browse the photos, print them, and so on. For more information on Autoplay see the article on page 77 in this issue.
With the exception of IHWEventHandler, which is involved with Autoplay, you will not find any new shell extensions in Windows XP that weren't in Windows 2000. However, the documentation now uses slightly different terminology for a few of the better-known extensions. Context menu shell extensions are often referred to as shortcut menu extensions. The column handler shell extension is frequently called the details shell extension. I selected three types of shell extensions that you should always use as companion code for your custom documents. They are the infotip shell extension—a must-have if you have very structured and complex documents—the column handler—now the only way you have to display custom information about the selected file in the folder view, and finally the thumbnail viewer. A thumbnail viewer shell extension is a piece of software that provides a graphical preview of the content of a given file. In Windows 2000, the output of such a module was displayed in the standard template upon which the folder view was based. In Windows XP there is no longer the notion of a folder template, at least not one that is used for all the files throughout the system. For performance reasons, the Windows XP UI design team opted for a binary mechanism (a namespace extension) that allows very little customization or "reverse-engineering." I'll have more to say about this by the end of the article. When the folder view turns to the thumbnail mode (see Figure 10), then all the folder items are displayed in a larger size and, whenever possible, use a dynamically generated thumbnail. To do this, you must write a shell extension. As you may notice in Figure 10, not all the documents of the same type provide a thumbnail. This has nothing to do with the shell extension itself, but relates to the way in which the Office 2000 thumbnail extractor really works. It relies on the preview image dynamically generated and stored in the document itself. This holds true for Word, Excel and PowerPoint® documents. If the document does not include such a preview image it will not be displayed by the thumbnail extractor. You can check the preview image for an Office 2000 document by popping up the Properties dialog. Let's take a quick tour of how to write these shell extensions.
A shell extension is a (relatively) small, simple COM object that implements one or two interfaces. Which interfaces are implemented and how depends on the specific tasks the component you're writing will perform. The infotip extension in particular implements the IPersistFile and the IQueryInfo interfaces. IPersistFile is necessary to let the component know about the name of the file it has to process. IQueryInfo provides the methods through which Explorer retrieves the string to be displayed. When implementing the IPersistFile interface, the shell extension should use the following method of IPersistFile to read and store the name of the file to work with.
STDMETHOD (Load) (LPCOLESTR wszFile, DWORD dwMode)
The IQueryInfo interface provides two methods, one of which is not used. The key method is GetInfoTip.
// IQueryInfo::GetInfoTipSTDMETHOD (GetInfoTip) (DWORD dwFlags, LPWSTR *ppwszTip){ // return some useful textwcscpy(*ppwszTip, L"Text"); return S_OK;}
// IQueryInfo::GetInfoTip
STDMETHOD (GetInfoTip) (DWORD dwFlags, LPWSTR *ppwszTip)
{
// return some useful text
wcscpy(*ppwszTip, L"Text");
return S_OK;
}
In the body of the GetInfoTip method you retrieve the name of the file that you saved, possibly in a class data member, open it, and extract any information you want to display. The following code shows how to return the width and the height of a BMP file from an infotip shell extension.
// );
There is not much more to say about infotip shell extensions. When writing this code, you might want to use the following trick to prevent possible memory leaks. Allowing memory leaks in shell- level code is extremely dangerous because shell extensions can be invoked quite frequently. This is not true of all shell extensions, but it is certainly true for infotips. Given the structure of the shell extension, and especially the signature of the GetInfoTip method, the extension ends up passing one piece of its own memory to Explorer. The second argument of GetInfoTip is a pointer to a Unicode string. Sooner or later, Explorer will finish with it, but then there will be no way for your code to get back and deallocate that piece of memory. To circumvent such problems, the Windows shell defines a COM object whose only purpose is to allocate global memory that Explorer can destroy when needed. You obtain a reference to this memory allocator by calling the API SHGetMalloc. The allocator is rendered with the IMalloc interface from which you normally use the Alloc method and the Free method. The infotip shell extension follows a non-standard schema for registration. You must create the following registry hierarchy
HKCR \.ext \shellex \{00021500-0000-0000-C000-000000000046}
HKCR
\.ext
\shellex
\{00021500-0000-0000-C000-000000000046}
The default entry for this key must evaluate to the CLSID of the shell extension.
When Explorer works in Details mode, it normally displays several standard columns. Each column lists information, such as the file size or type, for each file in the current folder. By implementing and registering a column handler, you can make custom columns available for display. I was reminded of the importance of paying attention to details when writing shell extensions a couple of months ago when a client asked me how he could provide additional information for some particular XML files through the normal Explorer shell. Basically, his goal was to have the Type column display for certain files extra information taken from the file itself rather than the usual description for all XML files. In Windows 2000 and Windows XP there is no way to hook into the creation of the Type column. As an alternative solution, I suggested he use a slightly modified folder template where some ad-hoc script code could call into a safe COM object and retrieve all the information. In Windows XP there is no longer any way to do this. In Windows XP, you can't mix your script code (HTML hypertext templates) with the namespace extension in use to render the content of a folder. For this reason, using a column handler is the only way you have to interfere with the process that determines the content of the folder view. To make sure that his problem was solved successfully under Windows XP, a column handler that adds all the extra information for those XML files to the view must be written. Writing a column shell extension requires that a COM object be written that implements the sole IColumnProvider interface. The following two methods form the programming toolset of IColumnProvider.
STDMETHOD (GetColumnInfo) (DWORD, SHCOLUMNINFO *);STDMETHOD (GetItemData) (LPCSHCOLUMNID, LPCSHCOLUMNDATA, VARIANT *);
STDMETHOD (GetColumnInfo) (DWORD, SHCOLUMNINFO *);
STDMETHOD (GetItemData) (LPCSHCOLUMNID, LPCSHCOLUMNDATA, VARIANT *);
The GetColumnInfo method provides the shell with structural information about the column. In particular, it informs Explorer about how many columns the extension supports, the expected data type (mostly strings), the default width in pixels, the description, and the alignment of the column. The shell calls the method GetItemData for each file displayed in the folder where this column has been selected. The SHCOLUMNID structure precisely identifies the column in case you're handling more than one. A column is uniquely identified by a pair of values, the format ID and the property ID. You can use these values to assign a special meaning to your column. For example, if you are writing this extension to provide the title of HTML documents you could use an existing column ID so that in the same Title column both the title of HTML documents and the title of Word documents appear. A format ID is just a 128-bit value that can be your object's CLSID if you want to provide a unique column. Column handler must be registered under the following path:
HKEY_CLASSES_ROOT \Folder \ShellEx \ColumnHandlers \CLSID
HKEY_CLASSES_ROOT
\Folder
\ShellEx
\ColumnHandlers
\CLSID
where CLSID is the CLSID of your column shell extension. A registered column does not show up in the Explorer view unless it is explicitly selected using the dialog box shown in Figure 11. You get that dialog box by right-clicking on the Explorer's column header bar and selecting the More button at the bottom of the context menu. The new column can be added on a per-folder basis.Figure 11 Choosing Details
The thumbnail extractor is a COM object that implements two interfaces: IPersistFile and IExtractImage. IPersistFile plays the same role I reviewed earlier for the infotip shell extension. It lets you save the name of the file as a class data member. IExtractImage has two methods called GetLocation and Extract.
STDMETHOD (GetLocation) (LPWSTR pszPathBuffer,DWORD cchMax,DWORD *pdwPriority,const SIZE *prgSize,DWORD dwRecClrDepth,DWORD *pdwFlags);STDMETHOD (Extract) (HBITMAP *);
STDMETHOD (GetLocation) (
LPWSTR pszPathBuffer,
DWORD cchMax,
DWORD *pdwPriority,
const SIZE *prgSize,
DWORD dwRecClrDepth,
DWORD *pdwFlags);
STDMETHOD (Extract) (HBITMAP *);
GetLocation is used to request the path of an image and specify how the image should be rendered. You should return images that fit within the boundaries defined by prgSize parameter. You do not need to fill in the unused part of the rectangle. Depending on how much the aspect ratio of the image differs from what is specified, the image may be distorted. The following code shows a possible way to implement the Extract method for an extremely simple, single-threaded component. The Extract method should return to the shell a bitmap object that fits in the thumbnail area.
HRESULT CMyExtractor::Extract(HBITMAP* phThumbnail){ HICON hi = ExtractIcon(NULL, m_szFile, 0); ICONINFO ii; GetIconInfo(hi, &ii); *phThumbnail = ii.hbmColor; DestroyIcon(hi); return NOERROR; }
HRESULT CMyExtractor::Extract(HBITMAP* phThumbnail)
{
HICON hi = ExtractIcon(NULL, m_szFile, 0);
ICONINFO ii;
GetIconInfo(hi, &ii);
*phThumbnail = ii.hbmColor;
DestroyIcon(hi);
return NOERROR;
As I mentioned before, you cannot mix the standard view of Explorer with your own code. In other words, you cannot modify the folder.htt file in the c:\winnt\web folder to provide a customized view of all folders. This was possible in Windows 2000, but not in Windows XP. Generally speaking, in Windows XP the customization of folders became restricted. When you click on the "Customize this folder" item of the folder context menu, you don't get a wizard; a simpler dialog box pops up. It allows you to choose the icon for the folder and the picture to display on the big folder icon when in Thumbnail mode. Using the topmost panel however, you can choose the template for the current folder and all of its subfolders (see Figure 12). However, the templates available are very specific and designed for special user activities such as managing pictures, music or videos. There's really nothing there for the programmer! So, you may think there is no way to customize a folder in Windows XP, but that's not really an accurate statement.Figure 12 Source Properties When you set the new icon for the folder, Windows XP more or less does the same things that Windows 2000 does. It creates a desktop.ini file in the folder and stores in it the same information you would have in Windows 2000. This is the content generated for the scenario depicted in Figure 12.
[.ShellClassInfo]IconFile=%SystemRoot%\system32\SHELL32.dllIconIndex=24
IconFile=%SystemRoot%\system32\SHELL32.dll
IconIndex=24
One key thing that differentiates Windows XP from Windows 2000 is that in Windows XP the desktop.ini must be marked as system and hidden. This is the magic combination that lets Explorer know that desktop.ini is a special file. Given this, there is no need to mark the folder as read-only. So from Windows 2000 to Windows XP, the event that assigns a special meaning to desktop.ini has changed. It was the containing folder marked read-only in Windows 2000; it is the same file marked as "system" in Windows XP. So, at this point, you can play around with desktop.ini. Let's see what happens if you add the following code:
=
Next, re-open the Customize tab in the folder's Properties dialog. A new item magically appears stating that the folder is rendered according to a user-defined template. Figure 13 shows a very simple template that switches between two views. The way you write HTT files is exactly the same as in Windows 2000. There is really nothing different except that Windows XP does very little to simplify this task. In any case, folder customization applies to a single folder only and shows up only if users don't select the Windows classic template from the dialog shown in Figure 14.Figure 14 Template Dialog
The key feature of the Windows XP user interface is that it is based on themes. A theme is a consistent, system-wide way to draw user interface elements. These elements include controls, custom controls, icons, and HTML pages. From the developer's standpoint, Windows XP visual styles means interaction with XML manifests, the newest version 6.0 of the ComCtl32 library, side-by-side components, and color-rich icons. (Manifests are files that specify versioning information so that different versions of DLLs don't collide. Doug Boling's article in this issue discusses manifests in detail.) Without touching the code, any Win32®-based application can get a facelift when running under Windows XP. The differences in the Windows XP visual styles, when compared to plain old Windows styles, can be summarized in three elements: non-rectangular and irregularly shaped controls, hot states, and extended support for alpha transparency. These features are provided by version 6.0 of the ComCtl32 library that now incorporates all Windows and shell controls. This DLL won't ship downlevel, but on older platforms programmers can use version 5.8 to get closer to Windows XP styles. However, version 5.8 doesn't provide the same features and the same set of controls. For example, it doesn't support the new hyperlink control or the bitmapped button control. How can you write an application that exploits visual styles? The Windows XP visual styles are not something you can hard code. There is no special API to call to enable it. All you do is write a plain old Win32-based application and add an XML manifest. ComCtl32 version 6.0 ships side-by-side with version 5.8 and to avoid breaking existing applications; its use must be explicitly required and authorized. In the XML manifest you specify the dependencies of your application. Dependencies include all the DLL files your application uses. This ensures that your application will always work as long as the components it has been tested with are present. It also gives you a way to link to the Windows XP theme manager to have your Win32 controls rendered the Windows XP way. The association is done on a per-application basis through a local XML file named program.exe.manifest. For themes to work, Win32-based applications should make a call to InitCommonControls before using common controls. While this is normal for C++ applications, Visual Basic® programmers will have to adjust their thinking. So if you are writing applications with Visual Basic for Windows XP, bear in mind that if you don't call InitCommonControls at the very beginning of your app, it won't exploit Windows XP visual styles. In Figure 15 you can see a typical manifest file. As you can see, manifests are XML files filled with boilerplate code. If your goal is merely to enable visual styles, then you can take the file in the figure as is and rename it. In addition to standalone files, manifests can be embedded in the application as a resource of type RT_MANIFEST. The DLL loader module knows how to look for and deal with manifests.Figure 16 Two Controls Figure 16 shows the two faces of a simple Visual C++® control-intensive application. The first screen shows what the app looks like when Windows XP can successfully locate a manifest file. The second is how Windows XP defaults back to the old-style appearance when no manifest exists. This happens with any Win32-based application.
The key element in the Windows XP visual architecture is the theme manager (uxtheme.dll). In Windows XP all controls have been separated into their constituent client and non-client regions. The client part is made up of the content that the control itself is responsible for providing. The non-client part includes scrollbars, menus, title, background, borders, and so on. The non-client parts for each window are drawn by the theme manager according to the settings of the current theme. The Windows XP SDK defines the parts of each control that can have themes. The theme manager gets into the game for the common controls, custom controls, and controls drawn within an HTML page viewed with Internet Explorer 6.0. Input tags and other typical HTML controls can now inherit the visual styles of Windows XP. This is an interesting shift, since until Internet Explorer 5.5, the browser contained code to render windowless HTML controls. The new architecture is more modular and consistent with a clean separation between the logic of the control and its design. Version 6.0 of the ComCtl32 DLL does not draw controls anymore, limiting the chance that new versions will break existing applications and making Windows XP inherently more stable than previous versions. For more information on themes and manifests, again take a look at Doug Boling's article in this issue.
When it comes to developing custom controls for Windows XP, keeping separate states and parts is a must. For example, toolbar parts include the splitter, the background, the button, the separator, the dropdown list. States are normal, hot, checked, hot and checked, disabled, and pushed. A Windows XP guideline recommends that you always provide hover feedback, emphasizing when a control is ready to receive user input. Custom and composite controls can be rendered, in whole or in part, like standard controls. For example, you can have a portion of a certain control render like a toolbar. To do so, you need three Windows XP-specific APIs: OpenThemeData, DrawThemeBackground, and CloseThemeData. OpenThemeData returns a handle of type HTHEME and takes the HWND of the control and the name of the control class to mimic as parameters.
HTHEME h = OpenThemeData(hwnd, L"Toolbar");
You pass this HTHEME to DrawThemeBackground together with a flag that indicates the part of the base control you want to mimic. For example, TP_BUTTON refers to the button. You close the handle with CloseThemeData. The Theme SDK provides several DrawXxx functions you can use to ask the theme manager to draw a certain part of the control. Of course, if the control has a completely custom interface and is not made of other controls then the visual style simply does not make sense.
Typical icons are 32-bit color, 24 bits for colors and 8 bits for alpha blending. You should provide nine icons per symbol to accommodate all the needs from 4 to 32 bits of color depth. These icons must have different sizes, including 48×48 for thumbnails. Icon sizes 32×32 and 16×16 remain the typical sizes for the shell while 24×24 and 16×16 are large and small toolbar buttons. There is a tool called gifmoviegear that can help you create these icons. It's available at. Although the icon format has not changed, support has been added to the imagelist API to display these 32-bit icons. The icon size of 48×48 pixels is used for thumbnails and should always be supplied, especially if you don't provide an image extractor shell extension. Icons must degrade gracefully on machines with low colors—for example, when the machine is working in safe mode or under Terminal Server. If your application is not supposed to be used in safe mode, you can skip this recommendation. If you're writing, say, a backup tool, then this step can be important. To help Windows XP to automatically smooth colors for toolbars and other icon-based controls, remember to set the flag ILC_COLOR32 when calling ImageList_Create. This will ensure an acceptable downgrade to 256 or 16 colors. The ultimate guide for Windows XP icons is available at. It provides an in-depth overview of icons, shadows, blending, and colors, and walks you through the design and creation of Windows XP-style icons, AVIs, and bitmaps.
Themed HTML controls are the HTML-based controls that the browser renders in response to tags like <INPUT TYPE=button>. Normally, with Internet Explorer 6.0 and Windows XP those controls are rendered with Windows XP visual styles. However you can control this to some extent through a metatag.
<head><meta http_equiv="MSThemeCompatible" Content="yes|no"></head>
<head>
<meta http_equiv="MSThemeCompatible" Content="yes|no">
</head>
Visual styles don't apply to HTML controls if CSS styles have been set for properties that are in conflict with what the theme manager is supposed to do.
The listview control has been enhanced to provide two extra views in addition to large and small icons, details, and list. The two new view modes are tiles and groups. Tiling lets you tile the client area of the control with items using 32×32-pixel icons and formattable text automatically rendered with two colors. Grouping allows you to arrange items into groups that are visually divided on the page using a horizontal line and a title. Groups are created using a new bunch of messages that let you add items to groups, groups to views, and sort and query for information about items. A third innovation on listview controls are insertion marks. Like the QuickLaunch toolbar, insertion marks enable the placement of visual elements during drag and drop for user feedback. The relative messages allow you to detect hits and specify the location and appearance of the insertion mark. The traditional button control has been improved to allow you to display a little bitmap close to the text. This is achieved by associating an imagelist with the button. The imagelist should include images for the various states of the button in much the same way as it happens for toolbars. To use it you just create the imagelist and send a new message to the button window. Finally, there's the long-awaited hyperlink control of which all brave Win32 developers have their own custom incarnation. The hyperlink control is implemented through a separate file called hlink.dll that is available only on Windows XP. This DLL is not portable outside Windows XP because it requires side-by-side component support and an explicit link to ComCtl32 version 6.0. The control is a window that renders marked-up text and launches appropriate applications when the user clicks one of the embedded links. You create hyperlink controls by calling CreateWindow specifying the WC_LINK window class name. The lpWindowName parameter of CreateWindow then specifies the text to display. The hyperlink control does not map to a single link. Instead, it is a sort of label with the ability to recognize any anchor tag <A> and process it properly. For this reason, a single hyperlink control can handle more than one link. You should use the ID attribute to distinguish between the various links in the same control. HREF is a valid attribute and the most popular protocols are supported including FTP, HTTP, and mailto. It does not work with VBScript or JScript® because the host application is not expected to support a script engine. You set HREF and other attributes using the LVM_SETITEM message.
Last, but not least, Windows XP supports a new feature called fast user switching. As I mentioned earlier, Windows XP supports multiple users logged on at the same time. When one user is switched off, all her applications and even Internet connections are preserved. Fast user switching works together with the Welcome screen as an alternative to the classic user logon. This feature must be explicitly enabled, and it has a limited impact on applications. The most important recommendation is to pay attention to where you save documents—they should go into folders specific to the current user. (This guideline was also part of the Windows 2000 Logo requirements.) Typically, an application does not need to be notified when a desktop switch occurs. However, applications that want to be notified of user switches have to register by calling the WTSRegisterSessionNotification API function. Doug Boling's article, mentioned earlier, discusses fast user switching in more depth.
More MSDN Magazine Blog entries >
Browse All MSDN Magazines
Receive the MSDN Flash e-mail newsletter every other week, with news and information personalized to your interests and areas of focus. | https://msdn.microsoft.com/en-us/magazine/cc302214.aspx | CC-MAIN-2015-11 | refinedweb | 6,562 | 53.1 |
(.
With regards to (1): I see the same behaviour with Mail.app on the desktop and a Google Apps GMail account via IMAP. It drives me up the wall. The only conclusion I've been able to draw is that Mail.app is just broken with respect to "Store drafts on the server", at least as far as some IMAP servers are concerned (GMail's IMAP implementation is somewhat "special", so I don't know how widespread this problem is). The only solution I've been able to fathom is storing drafts locally, and hiding the server-side drafts folder from IMAP clients.
Yes, I see the same thing, though it's not consistent - only happens sometimes, and until I mucked about and confirmed the mail really was sent it had me worried it wasn't sending stuff.
I don't think dovecot implements folders which can contain both messages and subfolders; just one or the other. The reason is that it doesn't use any clever naming in the filesystem to avoid collisions between files (mboxes) and directories (folders).
The only free imap server I know of which implements both is Cyrus (which is what the netscape mail server was descended from, btw.) It most definitely does not use mbox, if that matters to you.
Edit: it looks like dovecot supports multiple mailbox formats; perhaps switching it to Maildir will let you have both.
courier-imapd does what you want... buuuuut, as far as I'm concerned, Maildir is the only sensible mailstore for modern usage (unless you're operating something like gmail, which you're not).
Switch to maildir and see how many of your problems go away.
I really hope this wouldn't apply to jwz's systems, but - Maildir will start to fail horribly if you have several tens of thousands of messages in your systems. mbox actually performs much better if you have a sane indexing format. (Of course, if you're dealing with a gajillion messages, you should probably be using some sort of database-backed system, sigh.)
meh. I had millions of messages in my Maildir and it was fine, both reading it directly with mutt and over IMAP with courier-imapd and Mail.app/Thunderbird.
I think it's more a function of how you're accessing the mail than how many messages you have. Some IMAP servers may choke on that volume of mail. Most mail clients definitely will.
It's usually not the server qua server, but the filesystem and the access therein. Filesystems make crappy databases, which is what maildir does with its magic filenames.
No, I understand completely. I'm rejecting your assertion that "several tens of thousands" is the threshold. At peak I had 3.5m messages in a Maildir on a shared freebsd machine in a jail. It was No Big Deal™.
But, yes. If you're going to deal with that kind of mail volume, there will be things you need to think about.
Maybe it's a problem if you have (more than) several tens of thousands of messages... and it's 1995.
The latest (last) build of UW-IMAP supports mixed mode (messages and subfolders at one level of the hierarchy) with the MIX folder store format.
MIX is a high performance indexed store, and it outperforms naive Maildir by a good ways thereby.
We run thousands of users on UW-IMAP/MIX with very good success, indeed.
Regarding 2):
This wasn't the case a few version ago, however Mail.app is now the biggest piece of shit that Apple has crapped out of Cupertino in a very long time.
I use IMAP in pretty much exactly the way you describe, and had to stop using Mail.app because of the problem you describe, because of random hangs and crashes, and because it wanted to transfer 1 GB of read state for every subscribed folder on every startup. Somewhere around OS 10.4 they clearly put the "B" team on this, and it shows.
Apple, of course, is entirely unresponsive to bug reports.
As actual help:
I can't recommend anything that will help with Mail.app, and suggest just switching to a different client (which sucks because it's not as well integrated). Thunderbird is acceptable, but not great.
My solution was that I moved my entire infrastructure over to Zimbra. It's not too hard to beat their free Open Source Edition into working order and includes all the features I was cobbling together with Cyrus + SpamAssassin + Sieve + SquirrelMail + etc. I use the Zimbra web client instead of a desktop client, as I find it much more usable than any desktop client I've used.
You've probably spent enough time on your Dovecot++ solution that your sunk costs will prevent you from switching, but I really can't praise Zimbra enough. It has server-side "smart folders", so I can see them from my iPhone! It has CalDAV that actually works (with my iPhone)! It has search across my 10 GB of saved mail that is almost instantaneous! It's really, to borrow a Jobsism, magical and revolutionary.
If email is convenient you won't SMS as much on your iPhone.
I used to work for a place that ran zimbra for its mail, and I remember it being a total resource hog. How beefy a machine would one need to run a handful of accounts?
I run in in a Xen VM on my colo server. The colo server was the beefiest I could buy 2 years ago, so it's 2 quad-core Xeon with 8 GB of RAM. The VM is 1 core and has 2 GB of RAM allocated to it. It looks like right now it's using about 1.2 GB of that, with the rest in buffers, cache and free. It's used 916640s of VM time in 58 days, or 18% of one core. That's for about a dozen active users.
From this, I conclude that you need about 2 GB of RAM, but any reasonably recent processor platform is fine. In fact, TFM says "Production: Intel/AMD CPU 32-bit 2.0+ GHz, 2+ GB RAM, 10 GB free disk space for software and logs, mail storage space."
I'm not a fan of Zimbra at all. Probably because I like using a desktop client, hate webmail, and their "desktop" client is the biggest piece of shit out there, all the bloat of a MS Office product, all the limitations of a webmail client.
Far as I can tell the server portion works just fine.
Well, you can use the IMAP client of your choice, but that doesn't solve the Mail.app fuckage which the original post is about.
Dovecot only does nested folders if you're using Maildirs. You need to name the folders .foldername, it ignores non-dotted directories.
No idea how Mail.app handles it though.
Been a little while since I dealt with Mail.app, but last I did you could select a folder and from the Mailbox menu go to "Use This Mailbox For..." and it would allow you to mark which folders different messages states should map to. I always had to set that up manually as the default assumptions never mapped to my folder structure.
I have since done like most folks, said fuck administering an MTA, and let the Google Hive Mind pitch eerily accurate advertising at me.
1) sounds like a problem with your IMAP server. Mail.app does the "right" thing and deletes messages out of Drafts when the message is sent.
Normally, as far as the server is concerned, Drafts should be just another folder with no special handling. God only knows what Dovecot is doing, and god only knows how fucked up their mbox system is. I switched to Courier because Dovecot was being braindead.
I said it elsewhere, but as stupid as this sounds, try switching to Maildir and see if things get better. I'm guessing they will.
Any idea how to get Dovecot to convert from mbox to Maildir? The documentation is, as usual, bullshit. I thought it might be
dsync -D -v -f -u jwz mirror 'maildir:~/Maildir'
But no:
dsync(root): Fatal: Mail locations must use the same virtual mailbox hierarchy separator (specify separator for the default namespace)
I looked at that wiki page, and particularly enjoyed the bullshit about "this script requires a patched..." and I stopped reading. I can't remember how I did it, it's been ~6 years... plus I was converting from god-knows-what to courier. I think maybe you can use formail?
Probably, though, you want to find a script to do it for you, and figure out where Dovecot keeps its mboxes, and hope they're in a standard format. This script appears to be popular. If you're not allergic to DJB, you could check out your options here.
I am fully aware that this comment is mostly useless.
in the interest of providing slightly more useful content, I googled around for that error message, and came to the conclusion that you need to define a default namespace (whatever that means) with a separator defined (whatever that means).
This wiki page has some examples... the "mixed mbox and maildir" may do the trick to enable you to use dsync.
Yeah, that mostly did it, thanks. (That link got me close enough to figure the rest, anyway.)
Cool. Having done so, I think probably the right thing to do is revert to your old config, but with your Maildir in place of whatever mbox stuff was there before. I suspect that will alleviate some of the weirdness in your update.
You mean remove the "namespace" stuff and just use a "mail_location"?
I don't know how to phrase the "mail_location" line so that it knows about my Maildir folders plus my mbox /var/mail/jwz. As far as I can tell, the two namespaces are needed for that. Unless there's some way to remove /var/mail/ from the picture, of which I am unaware.
Oh, I see what you're saying. My fault for forgetting about the MTA's part in this whole fiasco. Can you configure your MTA to deliver into your Maildir so you don't have to bother with /var/mail anymore? Then you can run your sync thingy again and be done with it.
I don't have any idea. Postfix's mailbox_command invokes /usr/libexec/dovecot/deliver, so you'd think so...
Yeah, sorry, I'm already pretty lost here. Not to be That Guy, but trying to figure out wtf dovecot was doing is a lot of the reason I switched to Courier.
Ouch.
If you get desperate, and don't mind doing this the "wrong" way, a Maildir is a trivial filesystem layout. When I migrated from Cyrus, I just renamed the files and fixed the line endings, and it worked fine. You'll just have to split the mbox into files.
Dovecot adds pretty good caching on top of the filesystem layout, but it still supports old-style dumb clients that might mess with the folder. Which is great for scripting the thing from the shell.
Maildir is just file-per-message, and Dovecot's cleverness is auto-healing, so it detects when strange new arrivals appear in a folder (but you'll do better if you put files into the "new" directory).
To create a folder, do this: ike mkdir ~/Maildir/.${folder_name}/{new,cur,tmp}
To drop a message into $folder_name, you put it in ~/Maildir/.${folder_name}/new/${guid_filename}:2,
There are specific rules for constructing ${guid_filename} in the Maildir spec, all of which are irrelevant so long as the filename is unique. The filename needs to end in :2, which means the flags are version 2 (the only relevant version), and there are none of them at the moment (the letters after the comma).
Dovecot's maildir support is excellent. (But I'm using 1.2, because I am just using the Ubuntu build.) It is better than Courier's in my experience. Both Courier and Dovecot will allow Maildir folders to contain Maildir folders, although this is not really how things get laid out in the file system.
If you're using mboxes, a folder can't contain subfolders, because there is no smart about mbox that would allow a file to contain a directory.
It sounds like Mail.app assuming mail only ever arrives into INBOX. (Netscape had that bug for years, but Thunderbird doesn't, if I recall correctly. I say this not to taunt you, but to say, Thunderbird works for me now.)
If Mail.app has IMAP subscription support, you can try subscribing to your other incoming folders, which might turn on a less stupid mode, but this is just a guess. I would also guess that filtering into folders under INBOX will not trick it into doing the right thing.
Both Courier and Dovecot will allow Maildir folders to contain Maildir folders, although this is not really how things get laid out in the file system.
Really? It is with Courier, makes me wonder what kind of crazy crap Dovecot is doing.
They're doing the same thing. Dovecot's web site documents it as supporting Maildir++, as does Courier. See this one on Courier's web site.
A folder called foo will be stored in ~/Maildir/.foo, but if it has a subfolder bar, it will be in ~/Maildir/.foo.bar.
So for applications, bar is inside of foo, but it's not a subdirectory in the filesystem.
Ah, okay. My fault; I wasn't thinking deep enough. Typically ~/Maildir is itself a maildir, and like you said, ~/Maildir/.foo will be a maildir too... it's just when you get deeper than that (which I didn't really do) that it changes.
Ah. If you decide to go back, it makes the answer to your previous question easy: use POPFile and let it sort your mail (as well as spam filter it better than spamassassin IME).
Here are some discussions over on the Apple forums.
They come to the conclusion that it's not possible by fiddling with Mail.app or your IMAP server. There is this plugin which makes it possible, but it was last tested on Mac OS X 10.5, it's "not supported" any more. However, the author is willing to give you the source code. So good luck with that.
Thunderbird has a "Check for new mail in this folder" option which you probably wrote.
Well, that's marginally useful to 10.4 retrogrades like me, at least.
All it needs now is another hack to stop hard-coding its sent-mail folder to "Sent Messages" and then displaying this as "Sent" in the UI, alongside the actual IMAP folder called "Sent" used by my other MUAs, and maybe it'll just manage to be slightly less broken than Thunderbird. Sigh.
I've got ~/Maildir/.INBOX and ~/Maildir/.INBOX.subdirs by default on dovecot.
My dovecot.conf has
mail_location = maildir:~/Maildir
and no inbox= anywhere, so the default has the maildir .INBOX.*
I would think that removing the INBOX=/var/mail/jwz and moving the inbox=yes to the Maildir namespace would fix it:
# There can be only one INBOX, and this setting defines which namespace
# has it.
#inbox = yes
Trying that out on a test account first would be highly recommended, but you probably know that already :)
I have the same problem #2 with Courier, and it seems worse when there are several IMAP clients hitting the same mailbox at the same time, so if I have Mail.app on my home machine and also move messages around with another Mail.app or Thunderbird at work. The home Mail.app may or may not know about the changes until I enter the directories.
I found a couple of partial solutions, running famd on the server seemed to pretty much fix things, but every so often would run out of memory and I'd have to reboot my host, which was bad, and I was too lazy to figure out why. Also, someone suggests this small script to make Mail sync your account via cron. I would hope that forcing a sync would sync all inboxes, not just Inbox, but I haven't tried it yet, and it bugs me that the answer is "make cron run this thing every minute to fix Mail.app's inherent brokenness".
Though I have had very limited experience with it (liked To-Dos and overall integration, but ultimately had to go for something with Exchange), I thought I'd mention PostBox is on sale.
wow mail.app works for you? it hangs and crashes every time I try to launch it. piece of shit.
See here.
Well, all of that is still true. But given the absence of basic commands like "mark all read" on the devices I use, POP3 has become even more annoying than IMAP's technical deficiencies. | https://www.jwz.org/blog/2010/08/imap-questions/ | CC-MAIN-2017-13 | refinedweb | 2,858 | 73.47 |
Hi,
I have 8 node cluster with version 3.8.1 following namespace config -
namespace test { replication-factor 2 memory-size 50G default-ttl 0 # 30 days, use 0 to never expire/evict. high-water-disk-pct 50 # How full may the disk become before the # server begins eviction (expiring records # early) high-water-memory-pct 60 # How full may the memory become before the # server begins eviction (expiring records # early) stop-writes-pct 90 # How full may the memory become before # we disallow new writes # storage-engine memory storage-engine device { #device /dev/sdb1 #data-in-memory false file /opt/aerospike/data/test.data filesize 1000G # 8 times of RAM data-in-memory true #write-block-size 128K # adjust block size to make it efficient for SSDs. # largwst size of any object } }
The current RAM uses in AMC dashboard is showing ~ >61% on all nodes. I want to understand that i have set default-ttl to 0 and high-water-memory-pct to 60. will it start evicting records if RAM uses will exceed 60% ? If yes how can i stop it?
I found inconsistency in record some times in my application (Golang) that query aerospike although not sure if it is because of aerospike or some application logic on my side. | https://discuss.aerospike.com/t/understanding-eviction-behaviour-on-0-default-ttl/4270 | CC-MAIN-2018-30 | refinedweb | 213 | 50.97 |
Forking a daemon on Unix requires a certain sequence of system calls. Since Python exposes a full POSIX interface, this can be done in Python, too.
Discussion
If you ask yourself what a "daemon fork" is, it decouples a process from the calling terminal so it can run on its own, even if that terminal is closed. The other visible effect of such a daemon process is that you get your prompt back immediately. Typically, a daemon is a server process that runs without further user interaction, like a web server.
For details on the Unix side of things, see [1]. Typical C code for a "daemon fork" translates more or less literally to Python, the only specialty you have to consider is that os.fork() does not return -1 on errors, but throws an OSError exception.
[1] W. Richard Stevens, "Advanced Programming in the Unix Environment", 1992, Addison-Wesley, ISBN 0-201-56317-7.
os.chdir('/') is not needed.
Sure a "cd /" is needed. If you ever wanted to delete the directory you started a demon in that does NOT have that code, you'd think otherwise.
It's also worth redirecting the standard file descriptors. Check out the UNIX Programming FAQ for the full skinny on forking a daemon:
This cookbook entry's a pretty good implementation of the above, except that one of the things the FAQ entry advises is closing the standard file descriptors and redirecting them elsewhere (eg /dev/null, or log files, etc.). I've been bitten in the ass by forgetting to do this, so it's worth remembering. :-)
In the simplest form:
The FAQ entry also does things in a slightly different order - in particular it doesn't set the umask, or chdir('/') until after the second fork - but I don't know if that's important.
It also gives further justification for calling os.chdir('/'), namely "what if the sysadmin wants to umount the filesystem the daemon was run from?". Good stuff...
More reliable i/o stream redirection. Just reassigning to the sys streams is not 100% effective if you are importing modules that write to stdin and stdout from C code. Perhaps the modules shouldn't do that, but this code will make sure that all stdin and stdout will go where you expect it to.
oops... Of course, that should be:
not
Wrapping it all together... So taking everyone's suggestions I got this. Just save this into a file called "daemonize.py". If you run it as a script it will daemonize an example main() function. It should be self-documenting...
Did I miss anything?
Noah
(comment continued...)
(...continued from previous comment)
Things can be done much easier. I took a look at the code, and I remembered that I've written various Perl daemons some time ago. So, I took their source and translated it into python code. Here's what works for me
!/usr/bin/python
import sys import os try: pid = os.fork() except: print "Could not fork" sys.exit(1) if pid: # Let parent die ! sys.exit(0) else: try: # Create new session os.setsid() except: print "Could not create new session" sys.exit(1) while 1: # Your daemon code here
That's all, so I'm asking myself why you try these double-fork stuff ?
Adding start/stop/restart behavior.
(comment continued...)
(...continued from previous comment)
Why double-fork? I'm sure the references (Stevens, FAQ) explain this. The reason is we don't like zombies.
The second fork _is_ necessary..
And here is the translation in German.
(comment continued...)
(...continued from previous comment)
(comment continued...)
(...continued from previous comment)
Restart should handle not finding the pid. This is very useful code, but there is one detail that is wrong. If startstop() gets action='restart' and pid has not been set, the daemon is not started. Instead, the code reports "Could not stop, pid file '%s' missing." and calls sys.exit(1).
The code in the next few lines handles this correctly: if the os.kill() fails then the exception handler sets action = 'start' and falls through to allow the daemon to be started.
So, the code should read:
even safer to flush first. Before dup'ing a new file into the underlying stdout/stderr file descriptors, you should flush the stdio buffers. Otherwise, it is entirely possible that pending output could get sent to the wrong file.
Thus:
More general startstop method. Made startstop more general by including the action parameter. That enables you to call it from everywhere. Also added status parameter, that performs a very simple check if process is running.
Advanced Programming in the UNIX(R) Environment (2nd Edition).
close newfd before dup2.
file(stdin) dos not work ? My python didn't accept the three lines:
.. it gave me a name error:
.. should it be '/dev/stdin':
.. or perhaps sys.stdin (which does not work) ?:
here's another implementation for 2008 ;)
this focuses on the startup part, not the daemonize itself, in a way i feel makes the flow a bit more clear. | http://code.activestate.com/recipes/66012/ | crawl-002 | refinedweb | 844 | 68.16 |
Snow Player 0.93
Sponsored Links
Snow Player 0.93 Ranking & Summary
RankingClick at the star to rank
Ranking Level
User Review: 10 (3 times)
File size: 745k
Platform: Windows Server 2008, Windows Vista, Windows X
License: Freeware
Price:
Downloads: 368
Date added: 2008-10-20
Publisher:
Snow Player 0.93 description
Snow Player is a high quality digital audio playing (wav, mp3, mod, ogg, aiff)and Digital video playing (avi, mpeg, 3gp, divx, installed codecs required).
Features:
Features:
- Streaming internet radio playing (ogg/mp3 streams)
- Up to hour of recording in one click
- Drag-and-Drop files and folders support
- Associating supported file types with player
- Files size less then 500kb
- Pop-up window with track name
- Multilanguage interface (EN, RU, FR, RO, LV)
- Own translations (support of any language)
- "Favorite URL" hot button
- Counter-Strike flood
- M3U playlist format support
Snow Player 0.93 Screenshot
Snow Player 0.93 Keywords
Bookmark Snow Player 0.93
Snow Player 0.93 Copyright
WareSeeker.com do not provide cracks, serial numbers etc for Snow Player 0.93. Any sharing links from rapidshare.com, yousendit.com or megaupload.com are also prohibited.
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Version History
Related Software
Hello and welcome to Snow Patrol team! In these highlands covered with snow, near to a holiday resort, we play snowballs with people who came here to have a rest from their everyday life and office ro Free Download
Avoid bugs, eat food dots, and collect items in the maze in probably most featured pacman game Free Download
import music collection comfortably into the local database Free Download
Simple fullscreen DirectX flame visualisation. Free Download
Help bring peace to Bingham Hill in this real time strategy title. Reclaim Bingham Hill in single player, or challenge a friend in multyplayer Free Download
Rooster - unique stand-alone adult entertainment search engine and browser Free Download
3 little snow babies play in the snow as a reindeer watches on in this winter Free Download
ITFX Window Exporer is one of the most advantageous tools which can manage program windows and controls. Free Download
Latest Software
Popular Software
Favourite Software | http://wareseeker.com/Audio-Multimedia/snow-player-0.93.zip/2177f64f0 | CC-MAIN-2013-20 | refinedweb | 367 | 53.92 |
Learn what to expect in the new updates
There are three layers to the matplotlib API. The
matplotlib.backend_bases.FigureCanvas is the area onto which
the figure is drawn, the
matplotlib.backend_bases.Renderer is
the object which knows how to draw on the
FigureCanvas, and the
matplotlib.artist.Artist.
(Source code, png, hires.png, pdf) pylab),
artists for a listing of properties for a given object.
Now that we know how to inspect and set the properties of a given
object we want to configure, we need to now ‘linear’ or ‘log’.:
In [191]: fig = plt.figure() In [192]: l1 = matplotlib.lines.Line2D([0, 1], [0, 1], transform=fig.transFigure, figure=fig) In [193]: l2 = matplotlib.lines.Line2D([0, 1], [1, 0], transform=fig.transFigure, figure=fig) In [194]: fig.lines.extend([l1, l2]) In [195]: fig.canvas.draw()
(Source code, png, hires.png, pdf):
ax = fig.add_subplot(111) rect = ax.patch # a Rectangle instance rect.set_facecolor('green') [261]: fig = plt.figure() In [262]: ax = fig.add_subplot(111) # size of the
XAxis ticklabels using the
Axes helper
method:
for label in ax.get_xticklabels(): label.set_color('orange')
pylab, the
Axis methods contain
accessor methods to return the tick lines, tick labels, tick locations etc.:
In [285]: axis = ax.xaxis In [286]: axis.get_ticklocs() Out[286]: array([ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9.]) In [287]: axis.get_ticklabels() Out[287]: <a list of 10 Text major ticklabel objects> # note there are twice as many ticklines as labels because by # default there are tick lines at the top and bottom but only tick # labels below the xaxis; this can be customized In [288]: axis.get_ticklines() Out[288]: <a list of 20 Line2D ticklines objects> # by default you get the major ticks back In [291]: axis.get_ticklines() Out[291]: <a list of 20 Line2D ticklines objects> # but you can also ask for the minor ticks In [292]: axis.get_ticklines(minor=True) Out[292]: <a list of 0 Line2D ticklines objects>
Here is a summary of some of the useful accessor methods of the
Axis
(these have corresponding setters where useful, such as
set_major_formatter)
Here is an example, not recommended for its beauty, which customizes the axes and tick properties
import numpy as np import matplotlib.pyplot as plt #)
(Source code, png, hires.png, pdf). In addition, there are boolean variables that determine
whether the upper labels and ticks are on for the x-axis and whether
the right labels and ticks are on for the y-axis.
Here is an example which sets the formatter for the right side ticks with dollar signs and colors them green on the right side of the yaxis
import numpy as np import matplotlib.pyplot as plt import matplotlib.ticker as ticker fig = plt.figure() ax = fig.add_subplot(111) ax.plot(100*np.random.rand(20)) formatter = ticker.FormatStrFormatter('$%1.2f') ax.yaxis.set_major_formatter(formatter) for tick in ax.yaxis.get_major_ticks(): tick.label1On = False tick.label2On = True tick.label2.set_color('green')
(Source code, png, hires.png, pdf) | http://matplotlib.org/users/artists.html?highlight=add_axes | CC-MAIN-2016-40 | refinedweb | 502 | 60.72 |
JPA reverse engineer & MySQLEric J. Van der Velden Apr 27, 2011 2:12 PM
Hello,
When I use JPA Tools to reverse engineer tables in a MySQL database, called sample2 here, I get for table F:
Entity
@Table(name = "F", catalog= "sample2")
public class F implements java.io.Serializable {
...
But if there is a database connection (which you give when you right click on your entry in the 'Database Connections' view, for example), so that validation is on, this is not validated; I get
catalog "sample2" cannot be resolved for table "F"
But when I change "catalog" to "schema" then it is validated. So this is OK:
Entity
@Table(name = "F", schema= "sample2")
public class F implements java.io.Serializable {
...
So is reverse engineering in case of MySQL going OK by JPA Tools, or am I doing something wrong? I use the JBoss Tools 3.2 stable.
Thanks,
Eric J.
1. JPA reverse engineer & MySQLMax Rydahl Andersen Apr 28, 2011 3:45 AM (in response to Eric J. Van der Velden)
hmm - sounds like a bug in mysql reverse engineering....
Might be related to fix
Workaround set hibernate.default_catalog="sample2" and you should not get any mentions of catalog in your reverse engineering.
2. Re: JPA reverse engineer & MySQLDmitry Geraskov Apr 28, 2011 7:30 AM (in response to Max Rydahl Andersen)
could you please check the validation with @Table(name = "F", schema= "sample2", catalog= "sample2")
I guess hibernate tool doesn't add schema as consider it as default.
(In url you have something jdbc:mysql://localhost:3306/?nullCatalogMeansCurrent=false)
where mymysql is schema and you don't need to override it.
Does hibernate work with generated annotation:
@Table(name = "F", catalog= "sample2")
or with updated
@Table(name = "F", schema= "sample2")?
Please check also
@Table(name = "F", schema= "sample2", catalog= "sample2")
3. Re: JPA reverse engineer & MySQLDmitry Geraskov Apr 28, 2011 5:58 AM (in response to Dmitry Geraskov)
I ask this because it could be a problem of the validator, but not hibernate tools.
4. Re: JPA reverse engineer & MySQLDmitry Geraskov Apr 28, 2011 7:29 AM (in response to Dmitry Geraskov)
Eric,
we checked this ourself. The hibernate works well with @Table(name = "F", catalog= "sample2") and one of the folowwing:
1) jdbc:mysql://localhost:3306/?nullCatalogMeansCurrent=false
2) jdbc:mysql://localhost:3306/sample2
3) jdbc:mysql://localhost:3306/ hibernate.default_catalog=sample2
sample2
@Table(name = "F", schema= "sample2") works in the cases:
1) jdbc:mysql://localhost:3306/?nullCatalogMeansCurrent=false
2) jdbc:mysql://localhost:3306/sample2
3) jdbc:mysql://localhost:3306/ hibernate.default_schema=sample2
The jpa validator is not consistent in some cases
5. Re: JPA reverse engineer & MySQLreskejal Apr 19, 2013 7:06 PM (in response to Eric J. Van der Velden)
Any news about this topic??
I have the same problem with stable release of jboss developer studio (6.0).
In my case the error is only for the validator because i can use the genereted class without problem.
i'm also able to fix the error but i need remove manually the catalog definition and have an annotation like this
@Table(name = "F")
and default values (in JPA property windows) are "Default" for catalog and "Default (sample2)" for schema
Also with this fix my project work.
In jboss dev studio i have a Database Connection like jdbc:mysql://localhost:3306/sample2
while on AS and in persistence.xml use data source with jta (connection string is always like jdbc:mysql://localhost:3306/sample2)
Is there a way to not generate the catalog attribute in annotation ??
Thanks.
6. Re: JPA reverse engineer & MySQLGerry Matte Apr 20, 2013 2:08 AM (in response to Max Rydahl Andersen)
This behavior has been standard for MySQL and hibernate from the beginning. I belive the MySQL driver interprets a database schema the same as an Oracle catalog .... but a MySQL catalog has subtle differences from a schema and does not play well with hibernate.
My standard fix up (workaround) is to immediately remove the catalog property. I most frequently use Forge to reverse engineer and generate a CRUD webapp ..... so it's become routine for me. Thanks to Eric for reporting the issue .... I should have done so long ago.
7. Re: JPA reverse engineer & MySQLMax Rydahl Andersen Apr 22, 2013 3:41 AM (in response to reskejal)
set hibernate.default_catalog and hibernate.default_schema and the reverse engineering will obey that and remove it.
If someone know of a way to reliably know from a jdbc connection which schema/catalog is the default then we could avoid this, but I haven't found a way that is sane.
8. Re: JPA reverse engineer & MySQLreskejal Apr 22, 2013 4:26 PM (in response to Eric J. Van der Velden)
Thanks for yours suggestions!
@Gerry many thanks...Forge its a great project.
@Max i try to set these properties in persistence.xml and in the optional parameters of the database connection..but with no luck, i have always the catalog annotation
9. Re: JPA reverse engineer & MySQLMax Rydahl Andersen Apr 25, 2013 6:38 AM (in response to reskejal)
hmm - it should just work.
Can you show me the generated code and the persistence.xml you are using ? | https://developer.jboss.org/thread/165969 | CC-MAIN-2017-34 | refinedweb | 865 | 56.15 |
. Here is a concrete suggestion for how we can deal with a mix of both styles, and fix them as convenient. 1) Add memcpy, memmove, memzero, strchr, and strrchr to the list of functions in the AC_CHECK_FUNCS macro in configure.in. 2) Add a new file string.c, which is always linked in. This would look something like: #include <config.h> #include "gansidecl.h" #ifdef __STDC__ #include <stddef.h> #else #define size_t unsigned long #endif #ifndef HAVE_BCOPY #undef bcopy void bcopy (src, dest, len) register char *src, *dest; int len; { if (dest < src) while (len--) *dest++ = *src++; else { char *lasts = src + (len-1); char *lastd = dest + (len-1); while (len--) *(char *)lastd-- = *(char *)lasts--; } } #enidf /* !HAVE_BCOPY */ #ifdef HAVE_MEMCPY PTR memcpy (out, in, length) PTR out; CONST PTR in; size_t length; { bcopy(in, out, length); return out; } #endef /* ! HAVE_MEMCPY */ #ifdef HAVE_MEMMOVE PTR memmove (s1, s2, n) PTR s1; CONST PTR s2; size_t n; { bcopy (s2, s1, n); return s1; } #endif /* !HAVE_MEMMOVE */ There are some issues I'm not sure about: 1) Do we need to add prototypes for bcopy, memmove and/or memcpy to some header file, if they are "missing"? I don't see any necessity, or reason why it would be desirable, but may be missing something. 2) Is there a problem with build vs host? Is is the difference between auto-host.h and auto-config.h? I'm not clear on how this happens; perhaps we may need to compile string.c twice, once for build and once for host. Comments? This suituation has been bugging for a long time, and I think it is time to fix it. --Per Bothner Cygnus Solutions bothner@cygnus.com | https://gcc.gnu.org/ml/gcc/1998-09/msg01000.html | CC-MAIN-2017-26 | refinedweb | 279 | 82.95 |
beengone: a script-friendly way to check computer idle time
I spent too long figuring this out, but I’m quite certain there are at least 3 people who can put the result to good use. I don’t know who they are yet, but they’ll show up. Eventually.
I wanted a way to detect whether I was at my computer or not when a script finished, and — if I’d been gone a certain amount of time — send me a text message or push notification instead of displaying a Growl popup. I had everything worked out except for the actual detection. I was just going to use AppleScript and check for the ScreenSaverEngine process, but that proved not to be failsafe. I did some digging, only to find that OS X doesn’t seem to expose that information directly anywhere.
Now, if you’re using Growl, you can easily add push notifications only on idle using Pushover, Boxcar or Prowl. Pushover even has an API that you can integrate in non-Growl scripts. When using the API, though, you can’t detect idle the way the Growl plugin does. For applications where I want a configurable time limit and need to trigger something like another task or anything other than push notifications, I needed a means to detect idle time on my own.
Enter I/O Kit. I learned this technique for detecting the idle status from a post by Jean-David Gadina. I hacked together my solution from his examples, and most of the credit for the final product really goes to him.
The result is a little CLI called
beengone. You simply run it from a script with a number that represents the amount of time (in minutes) that you want to test for. If there hasn’t been any keyboard or mouse input within the number of minutes you specify, it prints out “true” and a 0 exit code. If there has, then you haven’t “been gone” and it outputs “false” and exits with a non-zero status. It’s designed to be used in scripts, where you can just call it with:
beengone 5
and it will tell you if there has been activity in the last 5 minutes. Capture the output on STDOUT or use the exit code to handle logic in your script. If you want to check and make sure it’s working, run:
sleep 5 && beengone .1
Then, don’t touch anything for five seconds. If it’s working, it will output “true” on STDOUT. If not, you’ll see “false” and there may be something providing input to your computer in the background which is preventing idle. I haven’t seen WOL or anything else affect it yet, though.
Here’s a quick example in Ruby of how I would call it and determine an action to take based on the results:
def notify(msg) $stderr.puts msg away = %x{/usr/local/bin/beengone 5}.strip if away == "false" # user is present, display a Notification Center banner TerminalNotifier.notify(msg, :title => "Your script name") if growl else # Machine is idle, send an SMS using <> $stderr.puts "Sending... " + %x{~/scripts/voicesms.rb -m "#{msg}"} end end end ### perform tasks and notify on completion notify("The script is complete")
(Of course, you could get more elegant with how the CLI is called, and I’ll probably eventually write a wrapper using the Process module.)
beengone is a simple tool and a simple solution which seems to be fairly foolproof for my needs. Feel free to download the binary below, and if you’re curious how it works, please refer to Jean-David’s original post. Hope this helps some other folks, too.
beengone v1.0
A command-line tool to check if the user has been AFK for a given number of minutes
Updated Sat Feb 09 2013. | http://brettterpstra.com/2013/02/10/beengone-a-script-friendly-way-to-check-computer-idle-time/ | CC-MAIN-2014-10 | refinedweb | 648 | 69.72 |
A Guide to Instagramming with Python for Data Analysis
http likes 202
I am writing this article to show you the basics of using Instagram in a programmatic way. You can benefit from this if you want to use it in a data analysis, computer vision, or any other cool project you can think of.
By Nour Galaby, Data Enthusiast.
Instagram is the largest photo sharing social media platform with 500 million monthly active users, and 95 million pictures and videos uploaded on Instagram everyday. It has a huge amount of data and huge potential. This guide will help you view Instagram as a source of data and not just a platform, and how to use it as a developer for your projects.
About API and Tools
Instagram has an official API but it is outdated and is currently very limited in things you can do with it. So in this guide I will use LevPasha’s Unofficial Instagram API, which supports all major features like like, follow, upload photo and video, etc! It is written in Python, but I will focus only on the data side.
I recommend using Jupyter notebooks and IPython. Normal python will work fine, but you may not have features like displaying the images
Installation
You can install the library using
pip this way:
python -m pip install -e git+
You will need
ffmpeg if you don't have it. To install it on Linux:
sudo apt-get install ffmpeg
For Windows, run this in your Python interpreter:
import imageio imageio.plugins.ffmpeg.download()
Logging in to Instagram Using the API
from InstagramAPI import InstagramAPI username="YOURUSERNAME" InstagramAPI = InstagramAPI(username, "YOURPASSWORD") InstagramAPI.login()
If successful, you should receive a "Login Success" message.
Simple Request
With that out of the way let's get started with our first request:
InstagramAPI.getProfileData() result = InstagramAPI.LastJson
{u'status': u'ok', u'user': {u'biography': u'', u'birthday': None, u'country_code': 20, u'email': aaa@hotmail.com', u'external_url': u'', u'full_name': u'Nour Galaby', u'gender': 1, u'has_anonymous_profile_picture': False, u'hd_profile_pic_url_info': {u'height': 1080, u'url': u'', u'width': 1080}, u'hd_profile_pic_versions': [{u'height': 320, u'url': u'', u'width': 320}, {u'height': 640, u'url': u'', u'width': 640}], u'is_private': True, u'is_verified': False, u'national_number': 122, u'phone_number': u'+201220', u'pk': 22412229, u'profile_pic_id': u'1550239680720880455_22', u'profile_pic_url': u'', u'show_conversion_edit_entry': False, u'username': u'nourgalaby'}}
As you can see, the result is in JSON format, containing all of the requested data.
You can access it in the normal key/value way. For example:
You can use any advance viewing tool (Notepad++) to view the JSON and explore it.
Get and View Instagram Timeline
Now let's do something more interesting. We will request the last posts in the timeline and view them in our notebook.
With this line you can get the timeline:
InstagramAPI.timelineFeed()
And similar to the previous request, we will use LastJson() to view the result. By inspecting the resulting JSON, we can see that it holds a list in a key called 'items.' Each element in that list holds information about a specific post in the timeline, including such elements as:
- [text] - holds the text value for the caption written under the post, including hashtags
- [likes] - the number of likes that a post has
- [created_at] - date post created
- [image_versions] - holds links to the actual JPG file, which we will use to display it on our Jupyter notebook
Functions
Get_posts_from_list() and
Get_url() will iterate over the list of posts and for each post will find the URL and append it to our empty list:
After it's done, we should have a list of URLs like the following:
To view the images, we can use the
Ipython.display module as follows:
Viewing images in a notebook is very useful and we will use those functions later to view our results, as you will see.
Get Your Most Liked Posts
Now we know how to make a basic request, but what if we want to get more complex requests? Here we will do something similar: we will get our most liked posts. In order to do that, first we need to get all posts in your user profile, and then sort them by number of likes:
Get All User Posts
In order to get all the posts we will use the
next_max_id and
more_avialable values to iterate over our list of results:
import time myposts=[] has_more_posts = True max_id="" while has_more_posts: InstagramAPI.getSelfUserFeed(maxid=max_id) if InstagramAPI.LastJson['more_available'] is not True: has_more_posts = False #stop condition print "stopped" max_id = InstagramAPI.LastJson.get('next_max_id','') myposts.extend(InstagramAPI.LastJson['items']) #merge lists time.sleep(2) # Slows the script down to avoid flooding the servers print len(myposts) | https://www.kdnuggets.com/2017/08/instagram-python-data-analysis.html | CC-MAIN-2018-17 | refinedweb | 794 | 58.32 |
This is an overview of the templating features available in Nunjucks.
Nunjucks is essentially a port of jinja2, so you can read their docs if you find anything lacking here. Read about the differences here..
Although you are free to use any file extension you wish for your
Nunjucks template files, the Nunjucks community has adopted
.njk.
If you are developing tools or editor syntax helpers for Nunjucks, please
include recognition of the
.njk extension.
Plugins are available in various editors to support the
jinja syntax highlighting of Nunjucks.
A variable looks up a value from the template context. If you wanted to simply display a variable, you would do:
{{ username }}
This looks up
username from the context and displays it. Variable
names can have dots in them which lookup properties, just like
javascript. You can also use the square bracket syntax.
{{ foo.bar }} {{ foo["bar"] }}
These two forms to the exact same thing, just like javascript.
If a value is
undefined or
null, nothing is displayed. The same
behavior occurs when referencing undefined or null objects. The
following all output nothing if
foo is undefined:
{{ foo }},
{{
foo.bar }},
{{ foo.bar.baz }}.
Filters are essentially functions that can be applied to variables.
They are called with a pipe operator (
|) and can take arguments.
{{ foo | title }} {{ foo | join(",") }} {{ foo | replace("foo", "bar") | capitalize }}
The third example shows how you can chain filters. It would display "Bar", by first replacing "foo" with "bar" and then capitalizing it.
Nunjucks comes with several builtin filters, and you can add your own as well.
Template inheritance is a way to make it easy to reuse templates. When writing a template, you can define "blocks" that child templates can override. The inheritance chain can be as long as you like.
If we have a template
parent.html that looks like this:
{% block header %} This is the default content {% endblock %} <section class="left"> {% block left %}{% endblock %} </section> <section class="right"> {% block right %} This is more content {% endblock %} </section>
And we render this template:
{% extends "parent.html" %} {% block left %} This is the left side! {% endblock %} {% block right %} This is the right side! {% endblock %}
The output would be:
This is the default content <section class="left"> This is the left side! </section> <section class="right"> This is the right side! </section> %}
You leverage inheritance with the
extends and
block tags. A more detailed explanation of inheritance can
be found in the jinja2
docs.
You can render the contents of the parent block inside a child block
by calling
super. If in the child template from above you had:
{% block right %} {{ super() }} Right side! {% endblock %}
The output of the block would be:
This is more content Right side!
Tags are special blocks that perform operations on sections of the template. Nunjucks comes with several builtin, but you can add your own.
if tests a condition and lets you selectively display content. It behaves
exactly as javascript's
if behaves.
{% if variable %} It is true {% endif %}
If variable is defined and evaluates to true, "It is true" will be displayed. Otherwise, nothing will be.
You can specify alternate conditions with
elif (or
elseif, which is simply an alias of
elif)
and
else:
{% if hungry %} I am hungry {% elif tired %} I am tired {% else %} I am good! {% endif %}
You can specify multiple conditions with
and and
or:
{% if happy and hungry %} I am happy *and* hungry; both are true. {% endif %} {% if happy or hungry %} I am either happy *or* hungry; one or the other is true. {% endif %}
You can also use if as an inline expression.
for iterates over arrays and dictionaries.
If you are using a custom template loader that is asynchronous, see
asyncEach)
var items = [{ title: "foo", id: 1 }, { title: "bar", id: 2}];
<h1>Posts</h1> <ul> {% for item in items %} <li>{{ item.title }}</li> {% else %} <li>This would display if the 'item' collection were empty</li> {% endfor %} </ul>
The above example lists all the posts using the
title attribute of each item
in the
items array as the display value. If the
items array were empty, the
contents of the optional
else clause would instead be rendered.
You can also iterate over objects/hashes:
var food = { 'ketchup': '5 tbsp', 'mustard': '1 tbsp', 'pickle': '0 tbsp' };
{% for ingredient, amount in food %} Use {{ amount }} of {{ ingredient }} {% endfor %}
The
dictsort filter is
available for sorting objects when iterating over them.
ES iterators are supported, like the new builtin Map and Set. But also anything implementing the iterable protocol.
var fruits = new Map([ ["banana", "yellow"], ["apple", "red"], ["peach", "pink"] ])
{% for fruit, color in fruits %} Did you know that {{ fruit }} is {{ color }}? {% endfor %}
Additionally, Nunjucks will unpack arrays into variables:
var points = [[0, 1, 2], [5, 6, 7], [12, 13, 14]];
{% for x, y, z in points %} Point: {{ x }}, {{ y }}, {{ z }} {% endfor %}
Inside loops, you have access to a few special variables:
loop.index: the current iteration of the loop (1 indexed)
loop.index0: the current iteration of the loop (0 indexed)
loop.revindex: number of iterations until the end (1 indexed)
loop.revindex0: number of iterations until the end (0 based)
loop.first: boolean indicating the first iteration
loop.last: boolean indicating the last iteration
loop.length: total number of items
This is only applicable to asynchronous templates. Read about them here
asyncEach is an asynchronous version of
for. You only need this if
you are using a custom template loader that is
asynchronous; otherwise you will never need it. Async
filters and extensions also need this, but internally loops are
automatically converted into
asyncEach if any async filters and
extensions are used within the loop.
asyncEach has exactly the same behavior of
for, but it enables
asynchronous control of the loop. The reason those tags are separate
is performance; most people use templates synchronously and it's
much faster for
for to compile to a straight JavaScript
for loop.
At compile-time, Nunjucks is not aware how templates are loaded so
it's unable to determine if an
include block is asynchronous or not.
That's why it can't automatically convert loops for you, and you must
use
asyncEach for iteration if you are loading templates
asynchronously inside the loop.
// If you are using a custom loader that is async, you need asyncEach var env = new nunjucks.Environment(AsyncLoaderFromDatabase, opts);
<h1>Posts</h1> <ul> {% asyncEach item in items %} {% include "item-template.html" %} {% endeach %} </ul>
This is only applicable to asynchronous templates. Read about them here
asyncAll is similar to
asyncEach, except it renders all the items
in parallel, preserving the order of the items. This is only helpful
if you are using asynchronous filters, extensions, or loaders.
Otherwise you should never use this.
Let's say you created a filter named
lookup that fetches some text
from a database. You could then render multiple items in parallel with
asyncAll:
<h1>Posts</h1> <ul> {% asyncAll item in items %} <li>{{ item.id | lookup }}</li> {% endall %} </ul>
If
lookup is an asynchronous filter, it's probably doing something
slow like fetching something from disk.
asyncAll allows you reduce
the time it would take to execute the loop sequentially by doing all
the async work in parallel, and the template rendering resumes once
all the items are done.
macro allows you to define reusable chunks of content. It is similar to a
function in a programming language. Here's an example:
{% macro field(name, value='', type='text') %} <div class="field"> <input type="{{ type }}" name="{{ name }}" value="{{ value | escape }}" /> </div> {% endmacro %}
Now
field is available to be called like a normal function:
{{ field('user') }} {{ field('pass', type='password') }}
Keyword/default arguments are available. See keyword arguments for a more detailed explanation.
You can import macros from other templates, allowing you to reuse them freely across your project.
Important note: If you are using the asynchronous API, please be aware that you cannot do anything asynchronous inside macros. This is because macros are called like normal functions. In the future we may have a way to call a function asynchronously. If you do this now, the behavior is undefined.
set lets you create/modify a variable.
{{ username }} {% set username = "joe" %} {{ username }}
If
username was initially "james', this would print "james joe".
You can introduce new variables, and also set multiple at once:
{% set x, y, z = 5 %}
If
set is used at the top-level, it changes the value of the global template
context. If used inside scoped blocks like an include or a macro, it only
modifies the current scope.
It is also possible to capture the contents of a block into a variable using
block assignments. The syntax is similar to the standard
set, except that
the
= is omitted, and everything until the
{% endset %} is captured.
This can be useful in some situations as an alternative for macros:
{% set standardModal %} {% include 'standardModalData.html' %} {% endset %} <div class="js-modal" data-
extends is used to specify template inheritance. The specified
template is used as a base template. See Template
Inheritance.
{% extends "base.html" %} %}
In fact,
extends accepts any arbitrary expression, so you can pass
anything into it, as long as that expression evaluates to a string or
a compiled Template object:
{% extends name + ".html" %}`.
block defines a section on the template and identifies it with a
name. This is used by template inheritance. Base templates can specify
blocks and child templates can override them with new content. See
Template Inheritance.
{% block css %} <link rel="stylesheet" href="app.css" /> {% endblock %}
You can even define blocks within looping:
{% for item in items %} {% block item %}{{ item }}{% endblock %} {% endfor %}
Child templates can override the
item block and change how it is displayed:
{% extends "item.html" %} {% block item %} The name of the item is: {{ item.name }} {% endblock %}
A special function
super is available within blocks which will
render the parent block's content. See super.
include pulls in other templates in place. It's useful when you need to share
smaller chunks across several templates that already inherit other templates.
{% include "item.html" %}
You can even include templates in the middle of loops:
{% for item in items %} {% include "item.html" %} {% endfor %}
This is especially useful for cutting up templates into pieces so that the browser-side environment can render the small chunks when it needs to change the page.
include actually accepts any arbitrary expression, so you can pass anything
into it, as long as the expression evaluates to a string or a compiled Template
object:
{% include name + ".html" %}.
It might be useful to not throw an error if a template does not exist. Use the
ignore missing option to suppress such errors.
{% include "missing.html" ignore missing %}
Included templates can themselves
extend another template (so you could have
a set of related includes that all inherit a common structure). An included
template does not participate in the block structure of its including template;
it has a totally separate inheritance tree and block namespace. In other words,
an
include is not a pre-processor that pulls the included template code
into the including template before rendering; instead, it fires off a separate
render of the included template, and the results of that render are included.
import loads a different template and allows you to access its exported
values. Macros and top-level assignments (done with
set) are exported
from templates, allowing you to access them in a different template.
Imported templates are processed without the current context by default, so they do not have access to any of the current template variables.
Let's start with a template called
forms.html that has the following in it:
{% macro field(name, value='', type='text') %} <div class="field"> <input type="{{ type }}" name="{{ name }}" value="{{ value | escape }}" /> </div> {% endmacro %} {% macro label(text) %} <div> <label>{{ text }}</label> </div> {% endmacro %}
We can import this template and bind all of its exported values to a variable so that we can use it:
{% import "forms.html" as forms %} {{ forms.label('Username') }} {{ forms.field('user') }} {{ forms.label('Password') }} {{ forms.field('pass', type='password') }}
You can also import specific values from a template into the current namespace
with
from import:
{% from "forms.html" import field, label as description %} {{ description('Username') }} {{ field('user') }} {{ description('Password') }} {{ field('pass', type='password') }}
By adding
with context to the end of an
import directive, the imported
template is processed with the current context.
{% from "forms.html" import field with context %}
import actually accepts any arbitrary expression, so you can pass anything
into it, as long as the expression evaluates to a string or a compiled Template
object:
{% import name + ".html" as obj %}.
If you want to output any of the special Nunjucks tags like
{{, you can use
a
{{, you can use
a
{% raw %} block and anything inside of it will be output as plain text.
{% verbatim %} has identical behavior as
{% raw %}. It is added for
compatibility with the Twig
verbatim tag.
A
filter block allows you to call a filter with the contents of the
block. Instead passing a value with the
| syntax, the render
contents from the block will be passed.
{% filter title %} may the force be with you {% endfilter %} {% filter replace("force", "forth") %} may the force be with you {% endfilter %}
NOTE: You cannot do anything asynchronous inside these blocks.
A
call block enables you to call a macro with all the text inside the
tag. This is helpful if you want to pass a lot of content into a macro. The
content is available inside the macro as
caller().
{% macro add(x, y) %} {{ caller() }}: {{ x + y }} {% endmacro%} {% call add(1, 2) -%} The result is {%- endcall %}
The above example would output "The result is: 3".
jinja2 uses Python's keyword arguments support to allow keyword arguments in functions, filters, and macros. Nunjucks supports keyword arguments as well by introducing a new calling convention.
Keyword arguments look like this:
{{ foo(1, 2, bar=3, baz=4) }}
bar and
baz are keyword arguments. Nunjucks converts them into a hash and
passes it as the last argument. It's equivalent to this call in javascript:
foo(1, 2, { bar: 3, baz: 4})
Since this is a standard calling convention, it works for all functions and filters if they are written to expect them. Read more about this in the API section.
Macros allow you to also use keyword arguments in the definition, which allows you to specify default values. Nunjucks automatically maps the keyword arguments to the ones defined with the macro.
{% macro foo(x, y, z=5, w=6) %} {{ x }}, {{ y }}, {{ z }}, {{ w}} {% endmacro %} {{ foo(1, 2) }} -> 1, 2, 5, 6 {{ foo(1, 2, w=10) }} -> 1, 2, 5, 10
You can mix positional and keyword arguments with macros. For example, you can specify a positional argument as a keyword argument:
{{ foo(20, y=21) }} -> 20, 21, 5, 6
You can also simply pass a positional argument in place of a keyword argument:
{{ foo(5, 6, 7, 8) }} -> 5, 6, 7, 8
In this way, you can "skip" positional arguments:
{{ foo(8, z=7) }} -> 8, , 7, 6
You can write comments using
{# and
out when rendering.
{# Loop through all the users #} {% for user in users %}...{% endfor %} or a variable.
{% for i in [1,2,3,4,5] -%} {{ i }} {%- endfor %}
The exact output of the above would be "12345". The
{%- strips the whitespace
right before the tag, and
-%} the strips the whitespace right after the tag.
And the same is for variables:
{{- will strip the whitespace before the variable,
and
-}} will strip the whitespace after the variable.
You can use many types of literal expressions that you are used to in javascript.
"How are you?",
'How are you?'
40,
30.123
[1, 2, "array"]
{ one: 1, two: 2 }
true,
false
Nunjucks allows you to operate on values (though it should be used sparingly, as most of your logic should be in code). The following operators are available:
+
-
/
//
%
*
**
You can use them like this:
{{ 2 + 3 }} (outputs 5) {{ 10/5 }} (outputs 2) {{ numItems*2 }}
==
===
!=
!==
>
>=
<
<=
Examples:
{% if numUsers < 5 %}...{% endif %} {% if i == 0 %}...{% endif %}
and
or
not
Examples:
{% if users and showUsers %}...{% endif %} {% if i == 0 and not hideFirst %}...{% endif %} {% if (x < 5 or y < 5) and foo %}...{% endif %}
Similar to javascript's ternary operator, you can use
if as if it were an
inline expression:
{{ "true" if foo else "false" }}
The above outputs the string "true" if foo is truthy, otherwise "false". This is especially useful for default values like so:
{{ baz(foo if foo else "default") }}
Unlike javascript's ternary operator, the
else is optional:
{{ "true" if foo }}
If you have passed a javascript method to your template, you can call it like normal.
{{ foo(1, 2, 3) }}
A regular expression can be created just like JavaScript, but needs to be prefixed with
r:
{% set regExp = r/^foo.*/g %} {% if regExp.test('foo') %} Foo in the house! {% endif %}
The supported flags are the following. See Regex on MDN for more information.
g: apply globally
i: case insensitive
m: multiline
y: sticky
If autoescaping is turned on in the environment, all output will automatically
be escaped for safe output. To manually mark output as safe, use the
safe
filter. Nunjucks will not escape this output.
{{ foo }} // <span%gt; {{ foo | safe }} // <span>
If autoescaping is turned off, all output will be rendered as it is. You can
manually escape variables with the
escape filter.
{{ foo }} // <span> {{ foo | escape }} // <span>
There are a few builtin global functions that cover some common cases.
If you need to iterate over a fixed set of numbers,
range generates the set
for you. The numbers begin at
start (default 0) and increment by
step
(default 1) until it reaches
stop, not including it.
{% for i in range(0, 5) -%} {{ i }}, {%- endfor %}
The above outputs
0,1,2,3,4.
An easy way to rotate through several values is to use
cycler, which takes
any number of arguments and cycles through them.
{% set cls = cycler("odd", "even") %} {% for row in rows %} <div class="{{ cls.next() }}">{{ row.name }}</div> {% endfor %}
In the above example, odd rows have the class "odd" and even rows have the
class "even". You can access the current item on the
current property (in the
above example,
cls.current).
When combining multiple items, it's common to want to delimit them with
something like a comma, but you don't want to output the separator for the
first item. The
joiner class will output
separator (default ",") whenever
it is called except for the first time.
{% set comma = joiner() %} {% for tag in tags -%} {{ comma() }} {{ tag }} {%- endfor %}
If
tags was
["food", "beer", "dessert"], the above example would output
food, beer, dessert.
Nunjucks has ported most of jinja's filters, and has a few of its own:
Return the absolute value of the argument:
Input
{{ -3|abs }}
Output
3
Return a list of lists with the given number of items:
Input
{% set items = [1,2,3,4,5,6] %} {% set dash = joiner("-") %} {% for item in items | batch(2) %} {{ dash() }} {% for items in item %} {{ items }} {% endfor %} {% endfor %}
Output
12-34-56
Make the first letter uppercase, the rest lower case:
Input
{{ "This Is A Test" | capitalize }}
Output
This is a test
Center the value in a field of a given width:
Input
{{ "fooo" | center }}
Output
fooo
(aliased as
d)
If
value is strictly
undefined, return
default, otherwise
value. If
boolean is true, any JavaScript falsy value will return
default (false, "",
etc)
In version 2.0, this filter changed the default behavior of this
filter. Previously, it acted as if
boolean was true by default, and any
falsy value would return
default. In 2.0 the default is only an
undefined
value returns
default. You can get the old behavior by passing
true to
boolean, or just use
value or default.
Sort a dict and yield (key, value) pairs:
{% set items = { 'e': 1, 'd': 2, 'c': 3, 'a': 4, 'f': 5, 'b': 6 } %} {% for item in items | dictsort %} {{ item[0] }} {% endfor %}
Output
a b c d e f
Call
JSON.stringify on an object and dump the result into the
template. Useful for debugging:
{{ items | dump }}.
Input
{% set items = ["a", 1, { b : true}] %} {{ items | dump }}
Output
["a",1,{"b":true}]
Dump provides the spaces parameter to add spaces or tabs to the resulting values. This makes the results more readable.
Input
{% set items = ["a", 1, { b : true}] %} {{ items | dump(2) }}
Output
[ "a", 1, { "b": true } ]
Input
{% set items = ["a", 1, { b : true}] %} {{ items | dump('\t') }}
Output
[ "a", 1, { "b": true } ]
Convert the characters &, <, >, ‘, and ” in strings to HTML-safe sequences. Use this if you need to display text that might contain such characters in HTML. Marks return value as markup string
Input
{{ "<html>" | escape }}
Output
<html>
Get the first item in an array or the first letter if it's a string:
Input
{% set items = [1,2,3] %} {{ items | first }} {% set word = 'abc' %} {{ word | first }}
Output
1 a
Convert a value into a floating point number. If the conversion fails 0.0 is returned. This default can be overridden by using the first parameter.
Input
{{ "3.5" | float }}
Output
3.5
Enforce HTML escaping. This will probably double escape variables.
Group a sequence of objects by a common attribute:
Input
{% set items = [ { name: 'james', type: 'green' }, { name: 'john', type: 'blue' }, { name: 'jim', type: 'blue' }, { name: 'jessie', type: 'green' } ] %} {% for type, items in items | groupby("type") %} <b>{{ type }}</b> : {% for item in items %} {{ item.name }} {% endfor %}<br> {% endfor %}
Output
green : james jessie blue : john jim
Attribute can use dot notation to use nested attribute, like
date.year.
Input
{% set posts = [ { date: { year: 2019 }, title: 'Post 1' }, { date: { year: 2018 }, title: 'Post 2' }, { date: { year: 2019 }, title: 'Post 3' } ] %} {% for year, posts in posts | groupby("date.year") %} :{{ year }}: {% for post in posts %} {{ post.title }} {% endfor %} {% endfor %}
Output :2018: Post 2 :2019: Post 1 Post 3
Indent a string using spaces. Default behaviour is not to indent the first line. Default indentation is 4 spaces.
Input
{{ "one\ntwo\nthree" | indent }}
Output
one two three
Change default indentation to 6 spaces:
Input
{{ "one\ntwo\nthree" | indent(6) }}
Output
one two three
Change default indentation to 6 spaces and indent the first line:
Input
{{ "one\ntwo\nthree" | indent(6, true) }}
Output
one two three
Convert the value into an integer. If the conversion fails 0 is returned.
Input
{{ "3.5" | int }}
Output
3
Return a string which is the concatenation of the strings in a sequence:
Input
{% set items = [1, 2, 3] %} {{ items | join }}
Output
123
The separator between elements is an empty string by default which can be defined with an optional parameter:
Input
{% set items = ['foo', 'bar', 'bear'] %} {{ items | join(",") }}
Output
foo,bar,bear
This behaviour is applicable to arrays:
Input
{% set items = [ { name: 'foo' }, { name: 'bar' }, { name: 'bear' }] %} {{ items | join(",", "name") }}
Output
foo,bar,bear
Get the last item in an array or the last letter if it's a string:
Input
{% set items = [1,2,3] %} {{ items | last }} {% set word = 'abc' %} {{ word | last }}
Output
3 c
Return the length of an array or string, or the number of keys in an object:
Input
{{ [1,2,3] | length }} {{ "test" | length }} {{ {key: value} | length }}
Output
3 4 1
Convert the value into a list. If it was a string the returned list will be a list of characters.
Input
{% for i in "foobar" | list %}{{ i }},{% endfor %}
Output
f,o,o,b,a,r,
Convert string to all lower case:
Input
{{ "fOObAr" | lower }}
Output
foobar
Replace new lines with
<br /> HTML elements:
Input
{{ "foo\nbar" | striptags(true) | escape | nl2br }}
Output
foo<br />\nbar
Select a random value from an array. (This will change everytime the page is refreshed).
Input
{{ [1,2,3,4,5,6,7,8,9] | random }}
Output
A random value between 1-9 (inclusive).
Filters a sequence of objects by applying a test to each object, and rejecting the objects with the test succeeding.
If no test is specified, each object will be evaluated as a boolean.
Input
{% set numbers=[0, 1, 2, 3, 4, 5] %} {{ numbers | reject("odd") | join }} {{ numbers | reject("even") | join }} {{ numbers | reject("divisibleby", 3) | join }} {{ numbers | reject() | join }}
Output
024 135 1245 0
Filter a sequence of objects by applying a test to the specified attribute of each object, and rejecting the objects with the test succeeding.
This is the opposite of
selectattr filter.
If no test is specified, the attribute’s value will be evaluated as a boolean.
Input
{% set foods = [{tasty: true}, {tasty: false}, {tasty: true}]%} {{ foods | rejectattr("tasty") | length }}
Output
1
Replace one item with another. The first item is the item to be replaced, the second item is the replaced value.
Input
{% set numbers = 123456 %} {{ numbers | replace("4", ".") }}
Output
123.56
Insert a replaced item before and after a value, by adding quote marks and replacing them surrounding an item:
Input
{% set letters = aaabbbccc%} {{ letters | replace("", ".") }}
Output
.a.a.a.b.b.b.c.c.c.
Every instance of an item up to a given number (item to be replaced, item replacement, number to be replaced):
Input
{% set letters = "aaabbbccc" %} {{ letters | replace("a", "x", 2) }}
Note in this instance the required quote marks surrounding the list.
Output
xxabbbccc
It is possible to search for patterns in a list to replace:
Input
{% set letters = "aaabbbccc" %} {{ letters | replace("ab", "x", 2) }}
Output
aaxbbccc
Reverse a string:
Input
{{ "abcdef" | reverse }}
Output
fedcba
Reverse an array:
Input
{% for i in [1, 2, 3, 4] | reverse %} {{ i }} {% endfor %}
Output
4 3 2 1
Round a number:
Input
{{ 4.5 | round }}
Output
5
Round to the nearest whole number (which rounds down):
Input
{{ 4 | round(0, "floor") }}
Output
4
Specify the number of digits to round:
Input
{{ 4.12346 | round(4) }}
Output
4.1235
Mark the value as safe which means that in an environment with automatic escaping enabled this variable will not be escaped.
Input
{{ "foo bar" | urlize | safe }}
Output
foo <a href=""></a> bar
Filters a sequence of objects by applying a test to each object, and only selecting the objects with the test succeeding.
If no test is specified, each object will be evaluated as a boolean.
Input
{% set numbers=[0, 1, 2, 3, 4, 5] %} {{ numbers | select("odd") | join }} {{ numbers | select("even") | join }} {{ numbers | select("divisibleby", 3) | join }} {{ numbers | select() | join }}
Output
135 024 03 12345
Filter a sequence of objects by applying a test to the specified attribute of each object, and only selecting the objects with the test succeeding.
This is the opposite to
rejectattr.
If no test is specified, the attribute’s value will be evaluated as a boolean.
Input
{% set foods = [{tasty: true}, {tasty: false}, {tasty: true}]%} {{ foods | selectattr("tasty") | length }}
Output
2
Slice an iterator and return a list of lists containing those items:
Input
{% set arr = [1,2,3,4,5,6,7,8,9] %} <div class="columwrapper"> {%- for items in arr | slice(3) %} <ul class="column-{{ loop.index }}"> {%- for item in items %} <li>{{ item }}</li> {%- endfor %} </ul> {%- endfor %} </div>
Output
<div class="columwrapper"> <ul class="column-1"> <li>1</li> <li>2</li> <li>3</li> </ul> <ul class="column-2"> <li>4</li> <li>5</li> <li>6</li> </ul> <ul class="column-3"> <li>7</li> <li>8</li> <li>9</li> </ul> </div>
Sort
arr with JavaScript's
arr.sort function. If
reverse is true, result
will be reversed. Sort is case-insensitive by default, but setting
caseSens
to true makes it case-sensitive. If
attr is passed, will compare
attr from
each item.
Convert an object to a string:
Input
{% set item = 1234 %} {% for i in item | string | list %} {{ i }}, {% endfor %}
Output
1,2,3,4,
Analog of jinja's
striptags. If
preserve_linebreaks is false (default), strips SGML/XML tags and replaces
adjacent whitespace with one space. If
preserve_linebreaks is true,
normalizes whitespace, trying to preserve original linebreaks. Use second
behavior if you want to pipe
{{ text | striptags(true) | escape | nl2br }}.
Use default one otherwise.
Output the sum of items in the array:
Input
{% set items = [1,2,3] %} {{ items | sum }}
Output
6
Make the first letter of the string uppercase:
Input
{{ "foo bar baz" | title }}
Output
Foo Bar Baz
Strip leading and trailing whitespace:
Input
{{ " foo " | trim }}
Output
foo ("..."). A different ellipsis sign than "(...)" can be specified using the third parameter.
Truncate to 3 characters:
Input
{{ "foo bar" | truncate(3) }}
Output
foo(...)
Truncate to 6 characters and replace "..." with a "?":
Input
{{ "foo bar baz" | truncate(6, true, "?") }}
Output
foo ba ?
Convert the string to upper case:
Input
{{ "foo" | upper }}
Output
FOO
Escape strings for use in URLs, using UTF-8 encoding. Accepts both dictionaries and regular strings as well as pairwise iterables.
Input
{{ "&" | urlencode }}
Output
%26
Convert URLs in plain text into clickable links:
Input
{{ "foo bar" | urlize | safe }}
Output
foo <a href=""></a> bar
Truncate URL text by a given number:
Input
{{ "" | urlize(10, true) | safe }}
Output
<a href=""></a>
Count and output the number of words in a string:
Input
{% set foo = "Hello World"%} {{ foo | wordcount }}
Output
2
Alternatively, it's easy to read the JavaScript code that implements these filters. | https://mozilla.github.io/nunjucks/templating | CC-MAIN-2022-05 | refinedweb | 4,812 | 61.97 |
Details
- Type:
Bug
- Status: Closed
- Priority:
P4: Low
- Resolution: Fixed
- Affects Version/s: 5.7.0 RC
- Fix Version/s: None
- Component/s: Quick: Controls 2, Quick: Core Declarative QML
- Labels:None
- Environment:Android 4.3 and Arch Linux
Description
I try to click a button and if I move even a tiny bit cancel is emitted instead of clicked.
I would only expect it to emit canceled if my touch left the button, which it didn't.
This was working until 5.7.0 RC.
import QtQuick 2.6 import QtQuick.Layouts 1.3 import QtQuick.Window 2.2 import QtQuick.Controls 2.0 import QtQuick.Controls.Material 2.0 ApplicationWindow { id: window visible: true width: 640 height: 480 Drawer { edge: Qt.RightEdge clip: false height: window.height width: 512 contentItem: Pane { Button { width: 400 height: 200 anchors.centerIn: parent text: "Test" onCanceled: console.log("canceled") } } } }
QTBUG-55577 its very difficult to click on list item on Drawer
- Closed | https://bugreports.qt.io/browse/QTBUG-53929 | CC-MAIN-2022-40 | refinedweb | 160 | 62.44 |
The Summer '10 release is just around the corner, and the pre-release notes are now available. One of the new features of the release is the introduction of a new Cookie which lets you access cookies from a Force.com Sites page using apex. Cookies are often used to support the personalization of websites by storing textual information in the browsers cache. The result is, the Sites page 'knows' you have been here before and can perform some sort of logic as a result.
Let's look a simple example, taken from the docs (which includes full text and test cases which I omitted here for brevity), where we want to increment a counter each time the user has visited the page.
First our Apex Controller:
public class CookieController { public CookieController() { Cookie counter = ApexPages.currentPage().getCookies().get('counter');
if (counter ==null) { counter = new Cookie('counter','1',null,-1,false); } else { Integer count = Integer.valueOf(counter.getValue()); counter = new Cookie('counter', String.valueOf(count+1),null,-1,false); }
ApexPages.currentPage().setCookies(new Cookie[]{counter}); } public String getCount() { Cookie counter = ApexPages.currentPage().getCookies().get('counter'); if(counter == null) {
return '0'; } return counter.getValue(); } }
The code itself is pretty straight forward, but the important item to note is the way you can now retrieve cookies. The Apex PageReference class now includes a setCookies(Cookie) and getCookies() methods. These methods work very similar to the existing set/getParameters methods: retrieve a map of objects, cookies in this instance and return a specific instance based on a key, the name of the cookie.
In order to access the cookie from within our Visualforce page, all we need to do is call our getCount() method:
You have seen this page {!count} times
This is a very simple example of using the Summer '10 feature of Cookies within Force.com Sites. Now with the ability to know when people have visited your site previously, the ability to react to, and customize the experiences really adds a lot more opportunity for innovation. But for now, I'm going to spend some time and keep looking through the pre-release notes, are you? | https://developer.salesforce.com/blogs/2010/05/working-with-cookies-in-summer-10 | CC-MAIN-2022-05 | refinedweb | 355 | 53.51 |
Please help if you can.I have been getting this message for days now when i try to open a certain file.This file used to work flawlessly.What has happened and Gimp wont read it anymore?What has changed?How can i fix this?Please help me as soon as you can because i really need this file.
Thank you.
I haven't seen any reports
I haven't seen any reports about a successful recovery from such errors - projects being worked on in GIMP should be saved in the native file format, XCF, and always only be exported to other formats. So I guess you're out of luck here if you haven't got a XCF file of this image.
This complicated issue you
This complicated issue you can solve out with the aid of next program. owns quite effective facilities allowing to work out almost every trouble with crashed or deleted psd files.
PSD bug needs fixing
I don't think that there is a mechanism to recover the file since there seems to be no tmp working scratch file left behind anywhere, so unless it was saved as some other format for safe keeping, the data is gone. I have had a similar problem myself and dismayed at the off hand comments posted on similar psd issue posts blaming the user for failing to save or using xcf
1) PSD format does seem to save and recover generally so a user has (at least initially) no reason to suspect this is a problem and may actually frequently save the file. It only has to fail on the last save op to screw up hours worth of work (and many previously successful saves)
2) If GIMP saves it GIMP should read it. The fact that Photoshop or PhotoEl can't read a GIMP psd (or vice-versa) is more forgivable given the proprietary nature of psd and format changes that Adobe might implement in their various version releases (although typically a backward compatible export is possible). It doesn't change the fact that if GIMP creates a file (of any format) the user should have reasonable confidence that GIMP will read the file again. If GIMP cannot be sure of this, it should perhaps consider writing a recovery file on save for session files opened on its last session*. I haven't been using GIMP long enough to notice that level of instability for other file formats...but for PSD this definitely appears to be an issue.
3) If file formats such as PSD are problematic upon reading or writing, they should not be under the File/Save menu tree which promotes natural use of the PSD formats, but rather relegated to a File/Export (which doesn't exist under 2.6.11). This would promote working the file in GIMP stable formats and only using PSD for ports, which would be recoverable in the event of failure (since in theory it would promote the use of "safer" formats initially which is what other forum writers suggest after the fact).
Some people (like myself) like using Photoshop, but don't legally or physically have access to it at all the machines that are available for use at any given time so portability is nice. I've seen the posts about psd being an "old" format or not a "standard" but really that's beside the point. If Gimp reads it, it should write it and if it can't do so it should at the very least not make it easy for the user to just work in that format and get caught in the trap of it failing all of a sudden.
*p.s. does GIMP actually have an "autosave" feature? I mention this because it would be in general a nice feature given that, let's face it, free open software is buggy (it comes with the territory). Time flies when you are having fun and frankly memory is cheap. If Gimp did just autosave on a given time frame in native format it might do a world of good.
Zubie (2 psd files lost after repeated use without problems)
GIMP 2.6.11
X11 version XQuartz 2.1.6 (xorg-server 1.4.2-apple33)
OS X 10.5.8 PowerPC G4
GIMP 2.8 implements the Save
The development branch leading to GIMP 2.8 implements the Save & Export specification as shown in the following link:
This will make it harder to have images in non-native formats only.
Illustrator reads psd
I had the same problem with a psd file (happens to be the first and only file I have saved using GIMP). In desperation I thought it could be worth a try to open it in Illustrator thinking Illustrator might be less picky with an external format. .. I manged to open it as a flat without layers. When I checked "convert photoshop layers to objects" it responded that there's not enough memory. That might be my laptop. Maybe it works for someone else.
Autosave in python format...
Remember to read the information contained on the website.
It's kind of dirty but auto-saves your workfile every 30 minutes.It will save into a temporary folder and you will have to delete all the extra saved files you do not need after words.
You will find it under File/Activate Autosave.
I am pretty sure you can change the save interval at this line in the code -
def autosave():
backupInterval = 30*60 | http://registry.gimp.org/comment/11704 | CC-MAIN-2014-35 | refinedweb | 923 | 69.41 |
So, I am dealing with an Android SQLite database, with
SQLiteOpenHelper. It appears to possess a idea of database versions and improving... however it appears like you are designed to roll your personal code to really perform the upgrades, and your
onCreate method up-to-date together with your updates.
From a Rails development background, this appears just a little primitive. For that uninitiated, Rails enables you to definitely just write a category-per-version-upgrade, and Rails takes proper care of using whichever versions have to be... this is applicable for DB creation, too you simply have one representation of the database schema, the group of migrations. Rails also does a DB-independent representation from the schema changes, but that is not essential for Android since it only supports SQLite (that is fine).
Has anybody written a good schema migration assistant class for Android that enables me to obtain nearer to DB schema management nirvana (RailsEdition(TM))? It'll save me moving my very own ugly implementation.
Considering that I did not find something that supported Android, really labored, did not require me a subscription for an insane database world view, and did not be expensive (hobby project, no dice), I emerged using the following bodgy hack. It isn't clever, however it a minimum of enables me to consider my schemas in ways that I am acquainted with. I do not expect it'd work real well for any large codebase/database schema, but when you have that you could most likely afford to cover something.
public class AppDatabase extends SQLiteOpenHelper { public static final String DATABASE_NAME = "main"; public static final int LATEST_VERSION = 4; public static SQLiteDatabase open(Context ctx) { AppDatabase db = new AppDatabase(ctx); return db.getWritableDatabase(); } public AppDatabase(Context ctx) { super(ctx, DATABASE_NAME, null, LATEST_VERSION); } @Override public void onCreate(SQLiteDatabase db) { onUpgrade(db, 0, LATEST_VERSION); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { for (int i = oldVersion+1; i <= newVersion; i++) { switch (i) { case 1: db.execSQL("CREATE TABLE blah ( " + "id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT," + "start CHAR(4)," + "end CHAR(4)" + ")"); break; case 2: db.execSQL("CREATE TABLE fortnights ( " + "first_day DATE PRIMARY KEY" + ")"); break; case 3: db.execSQL("ALTER TABLE shifts ADD top CHAR(4)"); db.execSQL("ALTER TABLE shifts ADD bottom CHAR(4)"); db.execSQL("UPDATE shifts set top=start, bottom=end"); break; case 4: db.execSQL("ALTER TABLE shifts ADD callout BOOLEAN DEFAULT 0"); break; } } } } | http://codeblow.com/questions/rails-like-database-schema-version-upgrades-for-android/ | CC-MAIN-2018-51 | refinedweb | 404 | 52.9 |
I have an Encryption key which is 32-bits in Hexadecimal format. But I'm only given 22 bits. I have to find the Plaintext. My thought process is to do a brute-force attack and find the other 10 bits. I am also given the Ciphertext. The Encryption used is AES in 128-bit ECB Mode. I am using Python, but I just started learning it so I am not an expert yet.
My approach is to take the 22-bit key and concatenate the other 10 bits, feed that into AES along with the Ciphertext and Decrypt to check if one of the resulting phrases resembles a proper sentence. The only part that I am stuck on is generating the 10 bit Hexadecimal string.
This is the output that I want:
0000000000
0000000001
0000000002
...
000000000F
...
FFFFFFFFFF
def gen_all_hex(): i = 0 while i < 16**10: yield "{:010X}".format(i) i += 1 for s in gen_all_hex(): print(s)
Result:
0000000000 0000000001 0000000002 0000000003 0000000004 0000000005 0000000006 0000000007 0000000008 0000000009 000000000A 000000000B 000000000C 000000000D 000000000E 000000000F 0000000010 0000000011 0000000012 0000000013 0000000014 0000000015 0000000016 0000000017 0000000018 0000000019 000000001A ...
Note that it's going to take a long time to iterate through all 1,099,511,627,776 values. | https://codedump.io/share/zssrRPP2b3II/1/python---generating-all-combinations-of-hexadecimal-values | CC-MAIN-2017-39 | refinedweb | 206 | 81.83 |
ImageConverter
Since: BlackBerry 10.0.0
#include <bb/utility/ImageConverter>
To link against this class, add the following line to your .pro file: LIBS += -lbbutility
Encodes and decodes images to and from different sources in various formats.
Images may be stored in memory or stored in local files. Images formats are denoted using mime types, such as "image/png", "image/jpeg", and so on, or by the file extension of a given path, such as ".png", ".jpg", and so on.
The list of supported formats depends on the codecs that are installed on a device at a particular time. You can use img_codec_list(), which is part of the C library, to get a complete list of installed codecs. For more information on C APIs, see.
Here's how to use the ImageConverter class to decode a PNG image:
ImageData image = ImageConverter::decode("foo.png");
In addition to decoding images, this class also contains functionality for encoding images into a specific format (PNG, JPEG, and so on).
Overview
Public Functions Index
Static Public Functions Index
Public Functions
Creates a new instance of the ImageConverter class.
BlackBerry 10.0.0
Destructor.
BlackBerry 10.0.0
Static Public Functions
ImageData
The newly created ImageData. If the image could not be loaded, ImageData::isValid() will return false.
BlackBerry 10.0.0
ImageData
The encoded data can be in any number of formats (PNG, JPEG, and so on).
The newly created ImageData. If the file could not be loaded, ImageData::isValid() will return false.
BlackBerry 10.0.0
QByteArray
Converts an image into an encoded format (PNG, JPEG, and so on).
The encoded image data. If the image could not be encoded, the returned QByteArray will be empty.
BlackBerry 10.0.0
bool
Converts an image into an encoded format (PNG, JPEG, and so on).
true if the image was encoded successfully, false otherwise.
BlackBerry 10.0.0
Got questions about leaving a comment? Get answers from our Disqus FAQ.comments powered by Disqus | https://developer.blackberry.com/native/reference/cascades/bb__utility__imageconverter.html | CC-MAIN-2016-50 | refinedweb | 329 | 50.63 |
- Introduction
- How does this compare to
blockstack.js?
- Start building with Blockstack Connect
- Installation
- Usage
- Handling redirect fallbacks
- Design Guidance
Introduction
Blockstack Connect is a JavaScript library for integrating Blockstack authentication and smart contracts into your app.
The library empowers you to:
- Register new users with a pre-built onboarding flow that quickly educates them as to the privacy benefits of using your app with Blockstack and provisions a “Secret Key” that secures their identity and data against the Stacks blockchain.
- Authenticate users when they return to your app using that same Secret Key.
- Prompt users to sign transactions with smart contracts as written in Clarity and published to the Stacks blockchain.
How does this compare to
blockstack.js?
Although
blockstack.js can also be used to authenticate users, it implements the deprecated Blockstack Browser and lacks any pre-built onboarding UI that educates users as to how your app is more secure for having implemented Blockstack. As such, we advise that you use
blockstack.js for all other functionality apart from authentication, such as saving and retrieving user data with Gaia.
Start building with Blockstack Connect
Head over to the Tutorial for App Integration to learn how to build apps with Blockstack Connect.
Installation
With yarn:
yarn add @blockstack/connect
With npm:
npm install --save @blockstack/connect
Usage
AuthOptions
Every major method you’ll use with
connect requires you to pass some options, like the name and icon of your app, and what to do when authentication is finished. In practice, this means you need to define these options, and pass them to the various API methods.
The exact interface you’ll use is defined as:
export interface AuthOptions { redirectTo: string; finished: (payload: FinishedData) => void; sendToSignIn?: boolean; userSession?: UserSession; appDetails: { name: string; icon: string; }; }
In React Apps
If you’re using
connect in a React app, then the best option is to include
connect’s React Provider and hooks in your React app.
First, setup the
Connect provider at the “top-level” of your app - probably next to wherever you would put a Redux provider, for example.
import { Connect } from '@blockstack/connect'; const authOptions = { redirectTo: '/', finished: ({ userSession }) => { console.log(userSession.loadUserData()); }, appDetails: { name: 'My Cool App', icon: '', }, }; const App = () => ( <Connect authOptions={authOptions}> // the rest of your app's components </Connect> )
Later, when you want to begin the onboarding process, use the
useConnect hook to get
connect’s
doOpenAuth method.
import { useConnect } from '@blockstack/connect'; const SignInButton = () => { const { doOpenAuth } = useConnect(); return ( <Button onClick={doOpenAuth}> Sign In </Button> ) }
To send the user straight to sign in, call
doOpenAuth(true).
In ES6 (non-React) apps
If you aren’t using React, or just want a simpler API, then you can use the
showBlockstackConnect method.
import { showBlockstackConnect } from '@blockstack/connect'; const authOptions = { /** See docs above for options */ }; showBlockstackConnect(authOptions);
To send the user straight to sign in, include
sendToSignIn: true in your
authOptions.
Note about dependency size:
If you’re building a non-React app, note that importing
@blockstack/connect will add React dependencies to your JavaScript bundle. We recommend using something like Webpack resolve aliases to replace
react with
preact in production, which reduces your bundle size. Check out our own webpack.config.js file to see how we use this for production builds.
If you’re using the hosted version of
@blockstack/connect (described below), then you already have a production-optimized bundle.
Using a hosted version of
@blockstack/connect
If you aren’t using ES6 imports, you can still use
connect! We package the library so that it can be automatically used with unpkg.
First, include the script in your HTML:
<script src="" />
Then, you can use API methods under the
blockstackConnect global variable:
const authOptions = { /** See docs above for options */ }; blockstackConnect.showBlockstackConnect(authOptions);
Handling redirect fallbacks
Connect is built to use popups with the
window.postMessage API, which provides a much better and seamless user experience. However, there are times when this flow can fail. For example, the popup may be blocked, or the
window.postMessage API might not work properly (which often happens on mobile browsers).
To make sure your app handles this gracefully, you’ll need to handle the case where authentication is performed through regular HTTP redirects. With redirects, your users will be sent back to your app at a URL like:
${authOptions.redirectTo}?authResponse=....
To finalize authentication with this flow, you’ll need to utilize the
UserSession methods
isSignInPending() and
handlePendingSignIn(). For more information, check out the blockstack.js API reference.
const userSession = new UserSession(appConfig); // ... call this code on page load if (userSession.isSignInPending()) { const userData = await userSession.handlePendingSignIn(); // your user is now logged in. }
Design Guidance
Blockstack is valuable to users, but it can also be a barrier to those unfamiliar with Blockstack. The following guidelines serve to remedy that and help you onboard as many new users as you can.
Delay Blockstack onboarding as long as possible
People will often leave apps when things are asked of them before they experience the app. Give them a chance to try your app before you ask them to sign up with Blockstack. For example, a note taking app could let a new user write a couple of notes before prompting them to save their progress.
Provide an easy way in for new users
Many new users to your app will not be familiar with Blockstack yet and will be hesitant to click a Blockstack-branded button. Provide a generic button for users that are new to your app and Blockstack. Blockstack Connect will introduce new users to Blockstack and recognize existing users.
Provide a quick way for existing users to sign in
You can point users to a specific part of the Blockstack App. For instance, a “Sign in” button on your website can redirect users to the sign in flow of the Blockstack App. If you do this, make sure you also have an option that is explicitly for new users and that points to the sign up flow.
To implement this functionality, check out our section on sending users to sign in immediately. | https://docs.blockstack.org/develop/connect/overview.html | CC-MAIN-2020-34 | refinedweb | 1,011 | 53.41 |
11 October 2012 05:24 [Source: ICIS news]
SINGAPORE (ICIS)--?xml:namespace>
The cut announced by the Bank of Korea (BOK) follows a similar 25 basis point reduction in July this year.
On a year-on-year basis, the country’s exports fell for the third consecutive month in September, preliminary data from the Ministry of Knowledge Economy (MKE) showed.
Its exports slipped by 1.8% year on year to $45.7bn (€35.6bn) in September, while imports fell by 6.1% to $42.5bn, resulting in a trade surplus of $3.2bn, the MKE said.
Overseas shipments of petrochemicals reversed the downward trend, gaining by 2.4% year on year to $4bn in September, while exports of petroleum products surged by 24% to $5.3bn, it added
The slowdown in overseas demand has weighed on domestic production, with the HSBC Purchasing Managers' Index (PMI) falling to a seasonally adjusted 45.7 in September, compared with 47.5 in August this year.
A figure above 50 indicates an expansion, while a figure below 50 represents a contraction.
Both output and new orders fell at marked rates in September, the UK-based banking firm said.
The decline in production was the steepest since January 2009, while new order levels fell to the greatest extent for 43 months, it said.
“True, recent stimulus packages implemented in [South]
The
“For now, there is a greater need to support domestic demand within [South]
Additional reporting by Surinder Malhi
( | http://www.icis.com/Articles/2012/10/11/9602926/s-koreas-central-bank-lowers-key-interest-rate-by-25-basis.html | CC-MAIN-2015-11 | refinedweb | 244 | 67.15 |
- Type:
Improvement
- Status: Resolved (View Workflow)
- Priority:
Major
- Resolution: Fixed
- Component/s: pipeline, workflow-durable-task-step-plugin
-
Currently sh has no meaningful return value, and throws an exception if the exit status is not zero. Would be nice to have an option to have it return the exit code (zero or not) as an integer value:
def r = sh script: 'someCommand', returnStatus: true
Current workaround:
sh 'someCommand; echo $? > status' def r = readFile('status').trim()
Or to have it return its standard output (akin to shell backticks):
def lines = sh(script: 'dumpStuff.sh', returnStdout: true).split("\r?\n")
Workaround:
sh 'dumpStuff.sh > result' def lines = readFile('result').split("\r?\n")
Or to have it take something on standard input:
sh script: 'loadStuff.sh', stdin: someText
Workaround:
writeFile file: 'input', text: someText sh 'loadStuff.sh < input'
Probably requires some API changes in durable-task.
- is duplicated by
JENKINS-34331 get shell to expose a value
- Resolved
JENKINS-26812 Storing the shell script execution output in workflow
- Resolved
JENKINS-28302 Workflow steps should expose console output to script somehow
- Resolved
JENKINS-33173 Improve how to get output of sh execution
- Resolved
- is related to
JENKINS-29877 failure when incorrect shell is configured is not clear enough to diagnose root cause.
- Open
JENKINS-27152 Store sh control files outside of workspace
- Resolved
JENKINS-44930 Allow sh to return exit status, stdout and stderr all at once
- Open
- links to
-
I suspect that passing standard input is a rare enough requirement that it is best skipped; the existing workaround suffices, though I would amend it a bit to avoid putting junk in the workspace:
def input = "${pwd tmp: true}/input" writeFile file: input, text: someText sh "loadStuff.sh < '${input}'"
Why isn't the returnStdout parameter documented at ?
Is this bug fixed?
I can not find any example of how to capture the exit status from a shell command
Janus Troelsen and Warren Strange it appears that it's now in the documentation:
This still seems to occur in. Am I mistaken on the fixed version?
I am curious as to why this has been implemented in the way it was. Would it not have made more sense to use a flag like throwOnFail defaulting to true to retain the original behavior, but if false, return a object (or maybe just a map of [exitCode: 0, stdOut: '...', stdErr: '...'])? This seems like it would be a lot more useful. As it is, if I need both output and exit code I am pretty much stuck with trying to parse the output to determine if things failed or succeeded.
Kenneth Baltrinic there is no need to parse anything. Even before this RFE was implemented, you could get the same effect pretty easily by either redirecting stdout to a temp file, or echoing $? to a temp file, or both.
It would be interesting to have an additional field in JIRA to know quickly how an issue has been solved, because I've just seen an answer at StackOverflow, from last year, recommending the workaround with a temporary file.
Documentation:
Example:
def VERSION = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim()
Reading documentation didn't help much, reading this bug history didn't help either.
I have a simple use case which seems (so far) to be impossible to cover using current implementation:
I want to display the stdout if the exit code of sh() is an error, avoiding spamming the console with a verbose task that matters only if there are errors.
If I enable the option to return stdout, I lose the ability to get the return code.
The default behaviour does raise an exception if there are errors, so I lose the ability to print the stdout that would have being returned by the sh(). I imagine that the raised exception could have a stdout field but I really doubt that all possible raised exceptions would have this field.
Was anyone able to find a solution to cover this use-case?
Tri Nguyen not Jenkins, but a plugin. See
So you need the Pipeline: Nodes and Processes plugin in version >= 2.4
Its returning result or output? what if I want both? why not always return something like ScriptResultObject that has both status and the output in it?
then you would only need a flag if you want to propagate status to jenkins, or you could have customised propagation by parsing output.
Jakub Pawlinski Michael Rose etc. I have no plans to implement such an RFE (see the repeated explanations of the alternative you can use today), but if you want to file it anyway, it should be a separate linked issue (and please use votes, not comments, to register your personal priority to reduce noise to watchers).
I am using a docker push command in a pipeline: sh "docker push 10.10.174.28/dev/vote:0.$BUILD_NUMBER"
I need to provide a password using standard input to the command - (there doesn't seem to be any other way to pass in the data in an automated environment)
I don't understand how to apply the workaround to my case:
writeFile file: 'input', text: someText
sh 'loadStuff.sh < input'
Any help would be greatly appreciated.
Hi ben ji, there are other ways to provide a password besides stdin.
Check out this example Jenkinsfile (apologies for weird formatting) and note the usage of Credentials & 'environment' in the "Build & Push Docker Image" stage.
Hi David Schott,
this isn't a regular docker log in - in this particular scenario using Notary, it looks like the only way to pass in the required content is via stdin - there are no env variables that work - see the second update to this bug report:
SECOND UPDATE:
Looks as if I can supply the passphrase on standard input – seems to be working now.
I can get the command to work outside Jenkins using
echo "delegationpass" | docker push .....
and need to emulate that in my pipeline script
I went ahead and created to focus on returning the exit status and standard output at the same time. So I hope all the folks who commented asking for this feature will go up vote that
Capture of exit status as a return value can be handled directly in DurableTaskStep.Execution, by simply returning Integer rather than returning void or throwing AbortException.
Capture of standard output is a little trickier because we would like to continue to direct standard error to the build log, and durable-task controllers currently mix them in the same stream. The API likely needs to be changed so that when launching the process you can request separate streams. (jenkins-out.txt vs. jenkins-err.txt I suppose, and two log position fields.) DurableTaskStep.Execution could then maintain a ByteArrayOutputStream-like buffer (but Serializable) collecting the output to be returned. Alternately, the controller could just return the complete standard output when the process exits, alongside the status code, which would make for a simpler API change, under the assumption that future clients do not want to stream output.
Likewise, sending standard input would require an API addition in durable-task. Streaming the input would be very awkward for a durable task (providing an InputStream is not possible) so you would probably have to provide the byte[] content up front.
Both API changes could potentially be avoided by just making DurableTaskStep.Execution modify the script to use redirects as shown in the workarounds here, using a random temporary file. There are some tricky parts here, too, though: the file ought to be outside the workspace to avoid clashes with scripts which expect to “own” the whole directory tree (cf. discussion in
JENKINS-27152); and to handle multiline scripts, or even scripts with shebangs (#!/usr/bin/python), you really need to save the user-provided script into another temporary file, then do a little dance to make it into a complete executable that could be called from the redirecting wrapper script (and here cf. JENKINS-29877).
Useful also for bat. According to answers here, Bourne shell syntax works for batch scripts too. | https://issues.jenkins-ci.org/browse/JENKINS-26133?focusedCommentId=299436&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel | CC-MAIN-2019-22 | refinedweb | 1,350 | 59.23 |
#include <BCP_error.hpp>
List of all members.
When an object of this type is created, the string stored in the character array of the argument is printed out and execution is aborted with
abort() (thus a core dump is created).
Definition at line 20 of file BCP_error.hpp.
The constructor prints out the error message, flushes the stdout buffer and aborts execution.
Definition at line 34 of file BCP_error.hpp.
References abort_on_error.
Definition at line 40 of file BCP_error.hpp.
References abort_on_error.
The destructor exists only because it must.
Definition at line 50 of file BCP_error.hpp.
Definition at line 22 of file BCP_error.hpp.
Referenced by BCP_fatal_error(). | http://www.coin-or.org/Doxygen/CoinAll/class_b_c_p__fatal__error.html | crawl-003 | refinedweb | 108 | 52.66 |
In Build 2018, Microsoft introduced the preview of ML.NET (Machine Learning .NET) which is a cross platform, open source machine learning framework. Yes, now it's easy to develop our own Machine Learning application or develop a custom.
Reference link: Introducing ML.NET: Cross-platform, Proven and Open Source Machine Learning Framework
In this article, we will see how to develop our first ML.Net application to predict the Item stock quantity.
In this sample program, we will be using Machine Leaning Regression of ML.NET to predict the Item Stock. Regression is a statistical method to find the relation between variable, for example in our demo program, we will be predicting the stock item based on the existing stock dataset.
Reference link: Regression, Taxi fare predictor (regression)
For working with Machine Learning first, we need to pick our best fit machine learning algorithm. Machine learning has Clustering, regression, classification and anomaly detection modules. Here, in this article, we will be using the regression model for predicting the item stock.
We need to train the machine learning model. Training is the process of analyzing input data by model. The training is mainly used for model to learn the pattern and save them as a trained model. For example, we will be creating a CSV file in our application and in the CSV file, we will be giving the stock details as ItemID, Location, InQTY, OutQTY, ItemType and TotalStock quantity. We give around 100 records in the CSV file as sample with all necessary details. We need to give this CSV file as input to our model. Our model needs to be trained and using this data, our model needs to analyze to predict the result. Once our model is trained and understands the pattern of the input, the resultant model needs to be saved to predict with the result.
ItemID
Location
InQTY
OutQTY
ItemType
TotalStock
Score is also called as the prediction where score needs to have the same column as the train model. Score generates the result based on the trained model.
Evaluate will be performed after the model training completed. In evaluate, the trained model will be compared with the test data to compare and predict the final result to be produced.
Reference link:.
style="width: 466px; height: 130px" data-src="/KB/miscctrl/1256360/3.PNG" class="lazyload" data-sizes="auto" data->
Click on Install, I Accept and wait till the installation is complete.
We can see as the Microsoft.ML package was installed and all the references for Microsoft.ML have been added in our project references.
Microsoft.ML
Now we need to create a Model training and evaluate dataset. For creating this, we will add two CSV files, one for training and one for the evaluate. We will create a new folder called data in our project to add our CSV files.
Right click the project and Add New Folder and name the folder as “Data”.
style="width: 496px; height: 221px" data-src="/KB/miscctrl/1256360/5.png" class="lazyload" data-sizes="auto" data->
Right click the Data folder, click on Add >> New Item >> select the text file and name it as “StockTrain.csv”.
style="width: 444px; height: 237px" data-src="/KB/miscctrl/1256360/6.PNG" class="lazyload" data-sizes="auto" data->
Select the properties of the “StockTrain.csv”, change the Copy to Output Directory to “Copy always”.
Add your CSV file data like below:
Here, we have added the data with the following fields.
Note that we need to fix the label and the features.
Label: Label is the field which we need to predict in our sample here, TotalStockQty is the Label where we will be predicting the Total remaining Stock Quantity of an item. Other all fields we make it as features.
Label
TotalStockQty
Feature
Loccode
InQty
OutQty
In
out
Note: We need minimum 100 records of data to be added to train our Model.
Same like this, we add one more CSV file and add similar information for evaluate. We have created one more csv file name as “StockTest.csv”.
Now we need to create a class for Input Data and prediction, for doing this, right click our project and add new class and name it as “ItemStock.cs”.
In our class first, we need to import the Microsoft.ML.Runtime.Api.
Microsoft.ML.Runtime.Api
using Microsoft.ML.Runtime.Api;
Next, we need to add all our columns same like our CSV file in the same order in our class and set as the column 0 to 5.
0
5
public class ItemStock
{
[Column("0")]
public string ItemID;
[Column("1")]
public float Loccode;
[Column("2")]
public float InQty;
[Column("3")]
public float OutQty;
[Column("4")]
public string ItemType;
[Column("5")]
public float TotalStockQty;
}
Creating prediction class. prediction column in our prediction class.
prediction
Prediction
Note: It is important to note that in the prediction column, we need to set the column name as the “Score” also set the data type as the float.
Score
float
In the regression model, the score column contains the predicted results.
score
public class itemStockQtyPrediction
{
[ColumnName("Score")]
public float TotalStockQty;
}
To work with ML.NET, we open our “program.cs” file and first, we import all the needed ML.NET references.
using Microsoft.ML;
using Microsoft.ML.Data;
using Microsoft.ML.Models;
using Microsoft.ML.Trainers;
using Microsoft.ML.Transforms;
We set the Traincsv data, Evaluate data and Model data path. For the traindata, we give “StockTrain.csv” path and same like that for the evaluate CSV file.
Traincsv
The final trained model needs to be saved for evaluating and producing results. For this, we set modelpath with the “Model.zip” file. The trained model will be saved in the zip file automatically during runtime of the program our bin folder with all needed files.
modelpath
static readonly string _Traindatapath =
Path.Combine(Environment.CurrentDirectory, "Data", "StockTrain.csv");
static readonly string _Evaluatedatapath =
Path.Combine(Environment.CurrentDirectory, "Data", "StockTest.csv");
static readonly string _modelpath =
Path.Combine(Environment.CurrentDirectory, "Data", "Model.zip");
Change the Main method to async Task Main method like below code:
Main
async Task Main
static to change the Language version to C#7.1
In the Project Properties >> Build tab >> click on Advance button at the bottom and change the Language Version to C#7.1
style="width: 508px; height: 412px" data-src="/KB/miscctrl/1256360/11.png" class="lazyload" data-sizes="auto" data->
First, we need to train the model and save the model to the zip file for this in our main method we call the predictionModel method and pass the ItemStock and itemStockQtyPrediction class and return the model to the main method.
main
predictionModel
ItemStock
itemStockQtyPrediction
static async Task Main(string[] args)
{
PredictionModel<ItemStock, itemStockQtyPrediction> model = await TrainourModel();
}
public static async Task<PredictionModel<ItemStock, itemStockQtyPrediction>> TrainourModel()
{
} tran CSV file for training and here, we set as the useHeader:true to avoid reading the first row from the CSV file.
TextLoader
useHeader:true.
ColumnCopier
The training model needs the numeric features we need to transform the categorical data like our ItemID, ItemType into numbers.
Next, we add all our features columns to be trained and evaluated.
The learner will train the model.We have selected the regression for our sample and we will be using FastTreeRegressor learner. FastTreeRegressor is one of the regression learners provided by the ML.NET. Here, we add the FastTreeRegressor to our pipeline.
FastTreeRegressor
Finally, we will train and save the model from this method.
public static async Task<PredictionModel<ItemStock, itemStockQtyPrediction>> TrainourModel()
{
var pipeline = new LearningPipeline
{
new TextLoader(_Traindatapath).CreateFrom<ItemStock>(useHeader: true, separator: ','),
new ColumnCopier(("TotalStockQty", "Label")),
new CategoricalOneHotVectorizer(
"ItemID",
"ItemType"),
new ColumnConcatenator(
"Features",
"ItemID",
"Loccode",
"InQty",
"OutQty",
"ItemType"),
new FastTreeRegressor()
};
PredictionModel<ItemStock,
itemStockQtyPrediction> model = pipeline.Train<ItemStock, itemStockQtyPrediction>();
await model.WriteAsync(_modelpath);
return model;
}
Next, we need to evaluate the model by checking the model with the test data and predict the final results. For this, we call the method Evaluate from our main method and pass the trained model to this method.
Evaluate
static async Task Main(string[] args)
{
PredictionModel<ItemStock, itemStockQtyPrediction> model = await TrainourModel();
Evaluate(model);
}
In the Evaluate method, we pass the trained model. We need to evaluate the model with our sample CSV test data. In this method using textloader, we load all the data from test data CSV file for evaluating the model.
textloader
Using RegressionEvaluator method, we evaluate the model with the testdata and produce evaluation metrics.
RegressionEvaluator
testdata
We display both the RMS (Root mean Squared) and RSquared metrics value.
RMS is one of the evaluation metrics where the lower RMS value is treated as the better model.
RSquared is another evaluation metrics where the value will be between 0 and 1. If the value is closer to 1, it is the better model.
RSquared
1
private static void Evaluate(PredictionModel<ItemStock, itemStockQtyPrediction> model)
{
var testData = new TextLoader(_Evaluatedatapath).CreateFrom<ItemStock>
(useHeader: true, separator: ',');
var evaluator = new RegressionEvaluator();
RegressionMetrics metrics = evaluator.Evaluate(model, testData);
Console.WriteLine($"Rms = {metrics.Rms}");
Console.WriteLine($"RSquared = {metrics.RSquared}");
}
Now it's time for us to produce the result of predicted results by model. For this, we will add one more class and, in this Class, we will give the inputs.
Create a new Class named as “ItemStocks.cs“.
We add the values to the ItemStock Class which we already created and defined the columns for Model training. Here, we have created to stock input and we have given the values as below.
Note: In each Stock, we didn’t give the input for the TotalStockQty and we have set the TotalStockQty = 0 as the model needs to predict the result from the trained model and produce the result.
Stock
TotalStockQty = 0
static class ItemStocks
{
internal static readonly ItemStock stock1 = new ItemStock
{
ItemID = "Item001",
Loccode = 1,
InQty = 100,
OutQty = 10,
ItemType = "IN",
TotalStockQty = 0 // predict it. Actual Total Stock Quantity is = 90
};
internal static readonly ItemStock stock2 = new ItemStock
{
ItemID = "Item003",
Loccode = 4,
InQty = 6000,
OutQty = 1200,
ItemType = "IN",
TotalStockQty = 0 // predict it. Actual Total Stock Quantity is = 4800
};
}
We can see in our StockTrain.csv file that we have added the values of the above stock1 and we can see as we have given TotalStockQty as 90 and the Model needs to predict this result and produce the result.
stock1
90
Model
Same like that for Stock2 also, we have added the values in the StockTrain.csv file, we can see as we have given TotalStockQty as 4800 and the Model needs to predict this result and produce the result.
Stock2
4800
In our program main method, we will add the below code at the bottom after Train and Evaluate method calling to predict the Stock Quantity details and display the final predicted results from model to users in command window.
Train
Here, we display both Stock1 and Stock2 prediction results. The prediction.TotalStockQty will have the model predicted results and we display the results to the end users of the predicted Stock Quantity with actual input given by us.
Stock1
prediction.TotalStockQty
Console.WriteLine("-------First Prediction Vale : ----------------" );
itemStockQtyPrediction prediction = model.Predict(ItemStocks.stock1);
Console.WriteLine("Item ID {0}", ItemStocks.stock1.ItemID);
Console.WriteLine("Predicted Stock: {0}, actual Stock Qty: 90 ", prediction.TotalStockQty);
Console.WriteLine(" ");
Console.WriteLine("----------Next Prediction : -------------");
Console.WriteLine(" ");
prediction = model.Predict(ItemStocks.stock2);
Console.WriteLine("Item ID {0}", ItemStocks.stock2.ItemID);
Console.WriteLine("Predicted Stock: {0}, actual Stock Qty: 4800 ", prediction.TotalStockQty);
Console.ReadLine();
When we can run the program, we can see the result in the command window like below.
We can see the Rms value as: 0.052 as we already discussed in this article if the Rms value is near to 0, then the model is good in prediction and also, we can see the RSquared =0.999 as we already discussed in this article as if the RSquared value is near to 1 then the model is good and we can see the predicted result of both the Stock1 and Stock2 as both have predicted same Stock quantity as the actual. Our Model is very good in prediction and the predicted value is exactly the same as the actual value.
RSquared =0.999
style="width: 450px; height: 357px" data-src="/KB/miscctrl/1256360/15.PNG" class="lazyload" data-sizes="auto" data->
After we build and run the program, we can see the Model.zip file in Data folder inside the Application root bin folder. We can also see our StockTrain and StockTest CSV file. The Model will be trained with this CSV file and trained model result will be stored in Model.zip file for predicting the result.
StockTrain
StockTest
ML.NET (Machine Learning DotNet) is a great framework for all the .NET lovers who are all looking to work with machine learning. Now only preview version of ML.NET is available and I can’t wait till the release of the public version of ML.NET. Here in this article, I have used the regression model to predict and display the Total Stock Quantity. If you are .NET lovers, not aware about Machine Learning and looking forward to work with machine learning, then ML.Net is for you all and it's a great framework to getting started with ML.NET. Hope you all enjoy reading this article and see you all soon with another. | https://www.codeproject.com/Articles/1256360/Getting-Started-with-Machine-Learning-DotNet-ML-NE | CC-MAIN-2021-39 | refinedweb | 2,221 | 57.16 |
I have a doubt regarding the relationship between domains inside of networks and website domains. Websites domain have to be purchased, one goes to one domain registrar, looks to see if the desired domain is available and if available it is possible to purchase the right to use it for a certain period of time. So if one is building a website and wants the website to be found as it goes there and purchases the domain mycompany.com.
Now I'm starting to study about Windows Server and Active Directory and there is the idea of domains also. As I understood, forests are security boundaries that isolates AD objects and domains are namespaces inside those forests. So the root domain is used to identify the forest.
Now I've seem people naming those domains like website domains. So for example: mycompany.com could be used. Now this raises some questions:
To use a domain in a forest one needs to purchase the right to use it at a registrar?
One needs to check the availability of the domain on the internet before using it on the forest? What happens if I use the domain mycompany.com and it is already used?
So what is the relationship between those website domains we purchase at registrars and these forest domains we use internally at a network? | https://serverfault.com/questions/685484/relationship-between-domain-inside-of-a-network-and-website-domain | CC-MAIN-2019-43 | refinedweb | 225 | 64 |
Getting/setting/observing sound volume?
- shinyformica
Anyone have a good way to do these things? From a cursory search of the forum and internet, I'm a little surprised to learn that it appears to be pretty hard to set and observe the volume value.
I have a decent and reliable way to get the system volume:
import objc_util AVAudioSession = objc_util.ObjCClass("AVAudioSession") audioSession = AVAudioSession.sharedInstance() audioSession.setActive_error_(True, None) volume = audioSession.outputVolume()
and this, apparently, is the crazy way I found to set the volume:
import objc_util MPVolumeView = objc_util.ObjCClass('MPVolumeView') value = 0.5 volume_view = MPVolumeView.new().autorelease() for subview in volume_view.subviews(): if subview.isKindOfClass_(ObjCClass('UISlider')): subview.value = value break
does anyone have a better way?
And does anyone know a way to observe changes in the volume level? I have a need to implement a view which shows the current system volume...and was hoping not to poll via update().
The sound module has
sound.set_volume(vol)
Though that is just pythonista sound, I think, not system music player sound... You already found this and/or this
See also
Nshipste has a good tutorial on key value observers,. Which can be used to observe many properties that don't expose notificancenter notifications
- shinyformica
Thanks, I'll try the key/value observer method.
Gotta say it's awfully weird that Apple provided no reasonable API for this...at least for observing the value, if not setting it. | https://forum.omz-software.com/topic/5444/getting-setting-observing-sound-volume | CC-MAIN-2021-49 | refinedweb | 240 | 52.76 |
Classes and Objects in Java
Classes and Objects are basic concepts of Object Oriented Programming that revolve around real life entities.
Class keyword: class keyword is used to create a class.
- Class name: The name should begin with, { }.
Constructors are used for initializing new objects. Fields are variables that provide the state of the class and its objects, and methods are used to implement the behavior of the class and its objects.
There are various types of classes that are used in real time applications such as nested classes, anonymous classes, lambda expressions.
Object
It is a basic unit of Object-Oriented Programming and represents.
Example of an object: dog
Objects correspond to things found in the real world. For example, a graphics program may have objects such as “circle”, “square”, and the name to refer to data whose type is type. With a primitive variable, this declaration also reserves the proper amount of memory for the variable. So for reference variable, the type must be strictly a concrete class name. In general, we can’t create objects of an abstract class or an interface.
Dog tuffy;
If we declare a.
Java
Output:
Hi my name is tuffy. My breed,age and color are papillon,5,white
-");
- The result of executing this statement can be illustrated as :
Note : All classes have at least one constructor. If a class does not explicitly declare any, the Java compiler automatically provides a no-argument constructor, also called the default constructor. This default constructor calls the class parent’s no-argument constructor (as it contains only one statement i.e super();), or the Object class constructor if the class has no other parent (as the Object class is the parent of all classes either directly or indirectly).
Ways to create an object of a class
There are four ways to create objects in java. Strictly speaking there is only one way(by using new keyword), and the rest internally use new keyword.
- Using new keyword: It is the most common and general way to create an object in java. Example:
// creating object of class Test Test t = new Test();
- Using Class.forName(String className) method: There is a pre-defined class in java.lang package with name Class. The forName(String className) method returns the Class object associated with the class with the given string name. We have to give a technique of reading an object from the saved state in a file. Refer Serialization/De-Serialization in java
FileInputStream file = new FileInputStream(filename); ObjectInputStream in = new ObjectInputStream(file); Object obj = in.readObject();
Creating multiple objects by one type only (A good practice)
- In real-time, we need different objects of a class in different methods. Creating a number of references for storing them is not a good practice and therefore we declare a static reference variable and use it whenever required. In this case, the wastage of memory is less. The objects that are not referenced anymore will be destroyed by Garbage Collector of java. Example:
Test test = new Test(); test = new Test();
- In inheritance system, we use parent class reference variable to store a sub-class object. In this case, we can switch into different subclass objects using same referenced variable. Example:
class Animal {} class Dog extends Animal {} class Cat extends Animal {} public class Test { // using Dog object Animal obj = new Dog(); // using Cat object obj = new Cat(); }
Anonymous objects
Anonymous objects are objects that are instantiated but are not stored in a reference variable.
- They are used for immediate method calling.
- They will be destroyed after method calling.
- They are widely used in different libraries. For example, in AWT libraries, they are used to perform some action on capturing an event(eg a key press).
- In the example below, when a key is button(referred by the btn) is pressed, we are simply creating anonymous object of EventHandler class for just calling handle method.
btn.setOnAction(new EventHandler() { public void handle(ActionEvent event) { System.out.println("Hello World!"); } });. | https://www.geeksforgeeks.org/classes-objects-Java/ | CC-MAIN-2022-27 | refinedweb | 667 | 55.34 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.