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 |
|---|---|---|---|---|---|
locate a process by its registered name
#include <sys/name.h> pid_t qnx_name_locate( nid_t nid, char *name, unsigned size, unsigned *copies );
This function locates a process that has registered itself under the given name by calling qnx_name_attach().
The type of search made depends on the nid and name arguments passed to qnx_name_locate(), and on whether or not the global process name server, nameloc, is running:
If the located process exists remotely, qnx_name_locate() automatically attaches a virtual circuit (VC) to it. The size argument specifies the initial size of the virtual circuit buffer. This is typically the size of the largest message to be sent or returned. Since virtual circuits grow as needed, size can be zero.
If copies isn't NULL, it's set to the number of copies of the name found in the network. This can be used to detect more than one process with the same global name. For local and specific searches, the number of copies is always one, since a network search isn't involved.
A process ID, or -1 if an error occurs; errno indicates the type of error detected.
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <sys/kernel.h> #include <sys/name.h> int main ( void) { pid_t proc_b; char send_msg[80], rcv_msg[80]; proc_b = qnx_name_locate ( 0, "ProcessB", 0, NULL); if (proc_b == -1) { perror ("Couldn't find process B: "); return (EXIT_FAILURE); } else { printf ("Enter message to send to B: "); scanf ("%s", send_msg); if ( Send (proc_b, send_msg, rcv_msg, 80, 80) == -1) { perror ("Send to B failed:"); exit (-1); } } return (EXIT_SUCCESS); }
QNX
errno, qnx_name_attach(), qnx_name_detach(), qnx_name_nodes(), qnx_name_query()
QNX System Architecture guide, nameloc in the QNX Utilities Reference | https://users.pja.edu.pl/~jms/qnx/help/watcom/clibref/qnx/qnx_name_locate.html | CC-MAIN-2022-33 | refinedweb | 274 | 62.38 |
The latest release of SDE appears to allow support of AVX-512 instructions. However, I seem to be having trouble querying the processor support of AVX-512 Foundation instructions via CPUID through SDE. AVX2 appears to work correctly, some sample code (32-bit):
#include <iostream>
using namespace std;
int main() {
int R_ebx;
__asm {
mov eax, 7
mov ecx, 0
cpuid
mov R_ebx, ebx
}
const int AVX2 = 1<<5;
const int AVX512F = 1<<16;
cout << "AVX2: " << ((AVX2 & R_ebx) > 0) << endl;
cout << "AVX512F: " << ((AVX512F & R_ebx) > 0) << endl;
}
Output:
AVX2: 1
AVX512F: 0
This sample code is based off of the AVX Intel documentation revision 15 located here:. Chapter 2.1 states:
Processor support of AVX-512 Foundation instructions is indicated by CPUID.(EAX=07H, ECX=0):EBX.AVX512F[bit
16] = 1.
Is there a particular setting I need to enable for SDE to turn on AVX-512? | https://software.intel.com/en-us/forums/intel-software-development-emulator/topic/477844?language=ru | CC-MAIN-2019-35 | refinedweb | 145 | 57.81 |
-4 and some supporting libraries use CMake.
Install the latest version from cmake.org
KDE-4 requires a lot of the same general purpose libraries as KDE-3.
The output from running CMake should list what you are missing -- which generally applicable libraries that you need which I will not discuss further.
A system should have these installed:
(and properly configured) although, strictly speaking, they are not all dependencies for KDE-4.x.
See: BLFS for build and configure instructions.
HOWEVER, KDE-4 and KDESupport libraries may need newer versions of the libraries than those in BLFS. So, it is probably best to install the versions stated above or the latest releases of these dependencies rather than the versions in BLFS.
Some of these libraries are dependent on:
which should be installed and configured according to the BLFS instructions.
KDE-4 still requires version 4.2 of:
See the instructions in this old version of BLFS:
Get the current release (e.g. boost_1_42_0.tar.gz) here:
The current release eliminates the arcane naming issues. Although not the same as using autotools, it is now simple to build and install.
Remove the includes from previous versions:
and if you have a link:
remove that also.
Then:
The CLucene developers suggest using the GIT repository since there are no recent releases. However, KDE-4 currently depends on the last (old) release:
Do NOT use CMake to build it.
Use kde-qt from:
This installs as Qt-<version>, so when it updates to the next version, it won't install in the same place. This means that you will need to change the <version> any place where it is specified. You will also have to install QCA (and its plugins) again when the version changes.
You can use the GIT clone [see TRUNK above], or your can use the latest release of QT-4.6.x from Nokia:
Use 4.5.3:
Or a newer release (see above). A newer release may have issues.
You will probably need to use some options for configuring Qt. Various options may be appropriate and/or needed depending on your system, what you have installed, and where it is installed. Run:
./configure --help
to see the options. There are a lot of them, but the defaults work for most of them.
Suggested configuration:
{change the include directory for mysql as needed}
If installing Phonon from KDESupport (recommended), or other separate Phonon, add the configure option:
to avoid having two versions of libraries with the same SO number.
Do not use the one in KDESupport or KDE's SVN.
Download the current release of qca from:
and the plugins:
from:
NOTE: qca-ossl-2.0.0-beta3 will not build against the current release of OpenSSL without being patched:
Required for KDE >= 4.5.0. Appears to be optional for KDE-4.4.
Get release >= 0.3.5 here:
and the current release of the dependency QJson here:
If you don't have Getfem++ installed, get the current release of GMM from:
Get them:
You also need the dependency EET. Get either the snapshot there o the current release here:
PROBLEM: KDE requires QEdje >= 0.4.0 which depends on QZion >= 0.4.0 and the 0.4.0 release of QZion will not build.
If it won't build, check line 13 of the file:
It should be:
Get the current 2.0.x release from:
You need a Java compiler with JNI to build the Sesame2 storage backend for Soprano and a Java RunTime (JVM) to run it.
Remember to add the "bin" directory to your path and the "lib" directory to your "/etc/ld.so.conf" file.
Get:
From:
Note: newer versions of Redland don't work.
and the current release of the (optional) Redland dependency 3Store here:
Note: If 3store3-3.0.17 will not build against Rasqal, then skip it for now -- it is optional.
When building Redland, you will probably need to use:
to point to your Berkeley DB directory.
If your installed SQLite is > 3.6.16, you will probably have to configure Redland with:
Install in this order:
Only needed for KDE >= 4.4 and TRUNK
Get virtuoso-opensource >= 6.1.1 here:
If you have problems, use the direct link:
and the current release of the dependency iODBC here:
If building iODBC only for KDE, use configure parameter:
For building Virtuoso, these configure parameters are useful:
If building Virtuoso only for KDE, (to save disk space) use configure parameter:
use:
If you don't want to install all the small SVN icons:
Use:
This does not include: Ontologies. See below.
Use the SVN tag that matches your KDE version. E.G. for 4.3:
Since TagLib is also a dependency for GStreamer (gst-plugins-good), you probably don't want to have a redundant installation for the KDE-4 version that will be your 'production' version. Remove it from KDESupport SVN:
And install the current release from:
NOTE: To get GST Plugins Good to build the plugin for TagLib you need to set the environment variable:
before you run: "configure".
The QCA in KDESupport is not currently used (see QCA-2.0.2 above) so:
For KDE Support >= 4.5:
The Phonon TRUNK has moved to Gitorious. To use the GIT TRUNK instead of the version in KDE Support first remove if from KDE Support:
See below
The current KDESupport may not be compatible with LFS installed FFmpeg. Use this patch:
------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------
Index: strigi/src/streamanalyzer/endplugins/CMakeLists.txt
--- strigi/src/streamanalyzer/endplugins/CMakeLists.txt (revision 1096146) +++ strigi/src/streamanalyzer/endplugins/CMakeLists.txt (working copy) @@ -34,9 +34,3 @@
target_link_libraries(xine ${XINE_LIBRARY}) endif(XINE_FOUND)
-if(FFMPEG_FOUND) - include_directories(${FFMPEG_INCLUDE_DIRS}) - ADD_STRIGIEA(ffmpeg ffmpegendanalyzer.cpp) - #set_target_properties( ffmpeg PROPERTIES COMPILE_FLAGS "${FFMPEG_DEFINITIONS}" ) - target_link_libraries(ffmpeg ${FFMPEG_LIBRARIES}) -endif(FFMPEG_FOUND) ------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------
Or, use the FFmpeg snapshot on the CBLFS page:
This more recent snapshot requires: "libx264.so.83". The x264 snapshot on CBFLS is too old. This Source RPM worked:
Google is your friend.
NOTE: You may need to add these parameters to the CMake command line:
You must build with the same CMake parameters as the KDE-4 modules; specifically:
Required for KDE >= 4.4 and TRUNK.
If you checked out KDESupport from TRUNK, you have the package. Otherwise, get it here:
and install with CMake.
Phonon has been moved to
Get it with the command:
and install with:
and the rest of the CMake parameters the same as KDESupport.
KDEBindings-4.4.x will not build against Phonon from the GIT repository.
Use the version in KDESupport-4.4.
Use:
The 0.95.1 tarball from the KDE FTP site will not install correctly. You need to apply this patch:
------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------
diff -Naur polkit-kde-1-0.95.1.old/agent/CMakeLists.txt polkit-kde-1-0.95.1/agent/CMakeLists.txt
--- polkit-kde-1-0.95.1.old/agent/CMakeLists.txt 2009-12-23 04:31:29.000000000 -0700
+++ polkit-kde-1-0.95.1/agent/CMakeLists.txt 2010-03-25 15:54:12.000000000 -0700
@@ -11,7 +11,7 @@
target_link_libraries(polkit-kde-authentication-agent-1 ${KDE4_KDEUI_LIBS}
- ${POLKITQT-1_AGENT_LIBRARY} + ${POLKITQT-1_LIBRARIES}
) configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)
@@ -25,4 +25,4 @@
set (DESKTOP_INSTALL_DIR /etc/xdg/autostart) endif (DESKTOP_INSTALL_DIR)
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${DESKTOP_INSTALL_DIR}) +install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR}) ------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------8<------
You must build with the same CMake parameters as the KDE-4 modules; specifically:
You should have this installed with a prefix: "/usr". All you need to do is build KDE-4 with:
However there appears to be a problem for KDE < 4.5
Get the current release from:
You need to install this with the same prefix as KDE4 (even if you already have it installed in "/usr") to eliminate missing MIME type errors. Currently, KDELibs won't build unless you do this. And, even if it does, you will get run time errors -- popup windows saying that certain MIME types can not be found.
This appears to be a bug that was fixed with KDE-4.5; for ealier versions this workaround does seem to work.
Get the current release from:
This package is dependent on KDEGraphics. The package has a lot of optional dependencies which you need to satisfy only if you want the corresponding plugins built. You should install it in the same directory where you installed KDE-4.x.y.
Be sure that you updated your: "PKG_CONFIG_PATH" to include $CMAKE_INSTALL_PREFIX/lib/pkgconfig (for example):
If you checked out KDESupport from TRUNK or the TAG: "kdesupport-for-<version>", you have them.
If you checked out KDESupport from a tag "kdesupport-<version>" up to 4.3, you need to get them. If you are using SVN, that would be:
{where <version> is the latest release for the branch you are using (e.g. 4.3.4 for the 4.3 branch)}
Or, you can simply use TRUNK:
TRUNK and KDE-4.4 require libssh. Get the current release >= 0.4.0 from:
To build the Python bindings for KDE, you need the current releases of SIP and PyQt from here:
Install: "SIP" first and then: "PyQt". These are both Python add-ons so they install with:
Unless you want to get into serious complications, you should only build PyQt against one version of Qt and you should only install one version of KDEBindings. If you try to build against multiple versions of Qt or install multiple versions of KDEBindings, with a single instance of Python (or other languages), you will install two versions of the same file in the same place.
PyQt will find Qt based on your environment variables. So, if you want to install for a version of KDE other than the one that you are currently using, be sure that these are set correctly:
KDEBindings is dependent on KDEGraphics (specifically Okular).
Other language dependencies are optional. If you have other supported languages installed on your system, installing KDEBindings will build bindings for them.
QScintilla2 is optional. If you are installing it, get it here:
Install it after SIP & PyQt. It has a Qt build system, so install for Qt4 it with:
KDEEdu might be dependent on KDEBindings.
LibV4l
Only required for KDE >= 4.4 and TRUNK
Get the current release here:
and follow the build instructions in the README file.
Telepathy-Qt4 is the Qt bindings for Telepathy. Since this has general usage, you should probably install it along with its semi-optional dependency telepathy-glib.
Get the current releases here:
Install: "telepathy-glib" first and then: 'telepathy-qt4".
The output from CMake lists several other optional dependencies. It appears that these are needed to support specific functions in KDENetwork. So, if you need those functions, you need to install them. You will probably also need to install the corresponding Telepathy addons from here:
TO DO: more information needed. | https://techbase.kde.org/index.php?title=Getting_Started/Build/Distributions/Linux_From_Scratch&diff=prev&oldid=56867 | CC-MAIN-2015-32 | refinedweb | 1,861 | 65.83 |
Important: Please read the Qt Code of Conduct -
QWidget with QopenGLwidget
How can I bind Qwidget in to QopenGLwidget?
- SGaist Lifetime Qt Champion last edited by
Hi,
What exactly do you want to do ?
@SGaist I have created one line in QopenGlWidget. one point of this line is fixed and at another point there is a widget.
now,When I drag that widget the line should not be seperated from widget(this problem I am facing here).
So,I want to bind that widget with that line point.
- SGaist Lifetime Qt Champion last edited by
Can you show how you are doing that ?
Not completed yet,
#include "openglclass.h" openGlClass::openGlClass(QWidget *parent):QOpenGLWidget(parent) { count=0; W= new QWidget(this); W->setStyleSheet("background-color : rgb(0,170,127);"); W->setFixedSize(50,40); QPoint pl= W->geometry().bottomLeft(); QPoint pr= W->geometry().bottomRight(); qDebug()<<"point : "<<pr << pl; W->show(); } void openGlClass::initializeGL() { qDebug()<<"Initialize"<<count ; //initializeOpenGLFunctions(); glClearColor(0.7,0.7,0.7,1); glEnable(GL_LIGHTING); } void openGlClass::paintGL() { qDebug()<<"paint"<<count; glClear(GL_COLOR_BUFFER_BIT); glBegin(GL_LINES); glColor3f(1,0,0); glVertex2f(0.1f, 0.7f); glVertex2f(-0.9f, 0.1f); glEnd(); } void openGlClass::resizeGL(int w, int h) { qDebug()<<"Resize"<<count; } void openGlClass::mousePressEvent(QMouseEvent *event) { }
O/p:
The Green Box is simple widget and line I have Render in OpenGl,not i want to Bind both so that when i Drag that box the line Should also adjust with that.
@hjohn said in QWidget with QopenGLwidget:
QPoint pl= W->geometry().bottomLeft();
QPoint pr= W->geometry().bottomRight();
These should be class variables. ( live in .h)
and u do
pl= W->geometry().bottomLeft();
pr= W->geometry().bottomRight();
and also updates them when you move the widget
and then use them in the
void openGlClass::paintGL()
for the line drawings.
@mrjj But Problem is that, Qwidget coordinate system and openGL coordinate system are different.
In Qwidget,the Origin(0,0) is on top left corner whereas In QOpenglwidget origin(0,0) is centered.
So,when in Widget if we set Geometry as a
W->setGeometry(0,0,50,40);
and in line
glBegin(GL_LINE); glVertex2f(0.0f, 0.0f); glVertex2f(0.5f, 0.5f); glEnd();
Both are rendered in Diffetnt place.
the Geometry position of widget is set based on Qpoint.
In openGl is based on Veretex. I have manually scale the values.But how to set it dynamically.Any idea?
yep they live in completely different world.
You have to make a function that maps between Widget x,y to openGl
or find a better way to archive what u want.
Normally one would paint the widget to a texture and show on a plane
inside the openGl or similar ways. I also think u can paint with QPainter.
Do you really need the lines to be opengl?
@mrjj said in QWidget with QopenGLwidget:
Normally one would paint the widget to a texture and show on a plane
If I paint Widget then there is no chance to add something or modify the values display on widget,and I want some data to be displayed on that widget.
Yes,I need that Line to be OpenGl
@mrjj said in QWidget with QopenGLwidget:
You have to make a function that maps between Widget x,y to openGl
Do You have any Idea,the way to map coordinates.
How Can I find coordinates of openGLwidget when mouse press.
Hi
Sorry. i have no good idea how to convert in any easy way.
By mouse Coordinates you mean in Widgets coordinates or as
actual openGl coordinates?
@mrjj said in QWidget with QopenGLwidget:
By mouse Coordinates you mean in Widgets coordinates or as
actual openGl coordinates?
Actual OpenGl coordinates.
@hjohn
I do not think openGLwidget directly offer that.
I tried to google for it but just too much deprecated fixed pipeline
openGl so im not sure how you would do it.
This would be very easy to do with QPainter but i guess you want
openGl for a reason ? | https://forum.qt.io/topic/92939/qwidget-with-qopenglwidget/7 | CC-MAIN-2021-31 | refinedweb | 664 | 66.13 |
# include <iostream> # include <vector> typedef std::vector < char > CHAR_VEC ; char* Get(unsigned short& tgt, char* source) { char * where = ( char* )( &tgt ); memcpy ( where, source, sizeof ( unsigned short ) ); return ( source + sizeof ( unsigned short ) ) ; } int main() { unsigned int MAX = 64 ; CHAR_VEC Buffer ( MAX ); Buffer [ 0 ] = 0x50 ; Buffer [ 1 ] = 0xB0 ; Buffer [ 2 ] = 2 ; Buffer [ 4 ] = 0xFE ; Buffer [ 5 ] = 0xCA ; Buffer [ 6 ] = 0xBE ; Buffer [ 7 ] = 0xBA ; Buffer [ 10 ] = 0xEF ; Buffer [ 11 ] = 0xBE ; Buffer [ 16 ] = 0xBD ; Buffer [ 17 ] = 0xBA ; for ( unsigned odx ( 0 ); odx < MAX ; odx += sizeof ( unsigned short ) ) { unsigned short dummy = 0 ; char *ptr = Get ( dummy, &Buffer [ odx ] ) ; std::cout << std::hex << dummy << '\n'; }
From novice to tech pro — start learning today.
Seems wrong to me.
Assume we have 2 bytes on a BE and have a representation with lowest bit left
0 1
0 . . . 7 8 . . . 15
When we transfer those two bytes to a LE we have (using also left-right presentation and the same byte/bit identifiers as for BE)
1 0
8 . . . 15 0 . . . 7
You see now that former bit 15 was followed by former bit 0. If you would do a ntohs on the 16bit unsigned integer, the bytes were switched and all is ok.
But if you would 'treat bits 0 as bit 15 etc.' you would have no match. If they do nevertheless, there must be a byte-swap somewhere before. That also could happen on the BE - though that would be strange cause the network order was BE.
>> Buffer [ 0 ] = 0x50 ;
>> Buffer [ 1 ] = 0xB0 ;
You place the unsigned short value 0x50B0 in the buffer in big endian byte order.
This means that any code operating on that buffer, and trying to extract that value from the buffer, needs to be aware that the byte ordering is big endian.
If the current platform is big endian itself, nothing needs to be done.
However, if the current platform is a little endian platform, the bytes need to be swapped before using the value.
In other words : the byte swapping needs to happen on the platform where the value will be used. And depending on the endianness of that platform, a byte swap needs to occur or not.
You are safe with bytes as long as you don't try to interpret a sequence of two or more bytes as an integer. If you do so, you have to care for endianess for each single integer you were putting into or getting out from the byte buffer and bitfields would make that task worse.
If you want a easy way out, simply convert your integers to strings and you must not care for endianess any more.
With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.
As in convert the elements within 'Buffer' as a string?
Note, endianess surely can be handled properly without converting numbers to strings. But surely bitfields shouldn't be used when transfering between platforms of different endianess. That is neither efficient nor makes any sense.
Agreed, except I'm not inclined to change aircraft software today (big endian).... The receipient of the aircraft data is little endian and that's 'today's change - hence the current focus. I'm just questioning the current implementation that's put in place. The code does a memcpy of the data then treats bits 0 as bit 15 etc.. Seems (silly/) cumbersome to me
You wouldn't need to operate on the bit level. Just a simple swap of the bytes is sufficient for transferring from a big endian to a little endian machine.
[00..03] hexadecimal digit 1 = 0
[04..07] hexadecimal digit 2 = 1
[08..11] hexadecimal digit 3 = 0
[12..15] hexadecimal digit 4 = 2
When the source transmit the data, the raw data in the buffer of the receiver for X is:
0x0201
When memcpyd (receiver is little endian) X on the receiver is:
0x0102
Since MSB is bit 0 from the source, the code executing on the receiver for the range 0.3 must take the 12 bits (sizeof short on receiver is 16) - value 0x102 right shift, then keep the zero.
For the range 4..7 right shift 8 bits (i.e eliminate 0x02) - you're left with 0x01...use mask etc to eliminate 0.
In my mind once the endian issue has been settled. 0..3 should be 2 not 0. I guess that's where I was going wrong?
So, 0x02 0x01 in memory becomes 0x01 0x02. Both bytes have simply been swapped around.
You don't need to work on the nibble (corresponding to a hexadecimal digit) level, and certainly not on the bit level.
|| level, and certainly not on the bit level.
I'm confused. How would I get Hexadecimal digit 2 to be reflect 1 (as called out in the document) if I dont work on the nibble?
0x01 and 0x02 are two bytes (note that each byte is represented by two hexadecimal digits). Swap them around, and you change the endianness.
The unit which is transferred between machines of different endianess is bytes. So, the byte is always bits 0 .. 8 before and after transfer (regardless whether bit 0 is 'big' or 'little') and needs no conversion. When transfering a 16bit integer (2 bytes) the byte order was swapped and you need to correct that. Same applies for 32bit and 64bit integers. In any case *only* the byte order needs to be reversed but only if you handle integers of a bit-count greater than 8 (16, 32, 64).
Note, you must not get confused by some kind of representation or output of numbers. So, we generally output numbers with the less significant digit (regardless of hex or decimal) on the right. That also implies bit-shifting where the main direction to increase a number would go from right to left. On the contrary we display arrays and their elements from left to right, i. e. array[0] is most left and for explaining endian issues I also prefer a presentation where the bit 0 of an entity is left. And it seems that was also your preference (as in http:#31386073).
Upon receipt of the data from the host: The data in the raw buffer (array of char) is:
0x0201
When memcopied to an unsigned short results the value results in:
0x0102
(infinity is saying) just 'swap them around'. So I'm back to
0x0201
Hex digit 1=1, Hex digit 2=0, Hex digit 3=1, Hex digit 4 =0.
That wont work.
I understand - or at least i think i do - the implication surrounding multi byte sequences and endianness. My argument here is because the documentation treats things backwards the proxy 0..3 (documentation) means 12..15, 4..7 (documentation) means 8..11..etc for the value 0x0102
>> 0x0201
The sending side sent the value 0x0201 in big endian order, which means that the message consists of two bytes 0x02 and 0x01, in that order.
The receiving side receives those two bytes. It knows that it is in big endian order. Since the receiving side is a little endian machine, it needs to swap around the bytes (in order to convert from big endian to little endian), so the two bytes become 0x01 and 0x02, in that order. When the receiving side interprets those two (swapped) bytes as a little endian 16bit value, it obtains the value 0x0201, which is precisely the value that was sent. Job well done.
Again : do not consider bits or nibbles. Just bytes. There are two bytes in the 16bit value. In order to switch from big endian to little endian, you simply swap those two bytes around.
There's no issue with bit numbering, or anything like that. It's a simple matter of re-arranging bytes.
||matter of re-arranging bytes.
So what would the value of hex digit 4 equate to given the obtained value of 0x0201 after interpreting?
0x0201 is an integer value (written down in hexadecimal notation). In decimal, the value would be 513.
* When this value is stored in memory on a big endian machine, the memory will contain the bytes 0x02 (decimal : 2) and 0x01 (decimal : 1) in that order.
* When this value is stored in memory on a little endian machine, the memory will contain the bytes 0x01 (decimal : 1) and 0x02 (decimal : 2) in that order.
That is the only difference between little endian and big endian : the order in which bytes are stored. It is still the same value - just the way the value is stored, is different.
When transferring data from a big endian machine to a little endian machine (or vice versa), the order of the bytes has to be changed to match the target machine's endiannes. Otherwise, the data would be interpreted incorrectly. So, when receiving data, the bytes are re-ordered.
In this specifica example, the target machine receives the bytes 0x02 and 0x01 (in that order). Because a switch from big endian to little endian has to happen, these bytes need to be swapped around to 0x01 and 0x02 (in that order). The byte ordering is then consistent with that of a little endian machine, and the value can be read from memory as 0x0201 (the same value that was sent).
And herein lies the problem. Recall that the transaction between source and target is 30 words where each word is 16 bits. Each word is laid out in 'proxy' form.
The target machine upon receipt of source data needs to evaluate a handful of the proxies the perform some action. Psedudo code:
struct word_1 {
unsigned short hex_digit_1 : 4;
unsinged short hex_digit_2 : 4;
unsigned short hex_digit_3 : 4 ;
unsigned short hex_digit_4 : 4 ;
};
word_1 obj;
if ( obj.hex_digit_4 == 2 ) {
// good message received
// do work
}
else {
}
I understand the endian issues and the need to read the value the same it was sent. i.e. 0x0201. If I do that obj.hex_digit_4 would be 0. Not 2 per the documentation.
By the way, if an expert has source for dealing with bit proxies I'd love to see it/pay for it with points privately if that's possible.
In any case - there is not guaranteed/portable way of using bit fields like this. It's best to extract the data directly from the received message.
If you receive two bytes, then these are (presumably) the 4 "hex digits" you are looking for :
hex_digit_1 = (data[0] >> 4) & 0x0F;
hex_digit_2 = (data[0]) & 0x0F;
hex_digit_3 = (data[1] >> 4) & 0x0F;
hex_digit_4 = (data[1]) & 0x0F;
>> per the documentation.
In order to avoid any further confusion, could you please just show the documentation ?
|| You're changing the context (or you didn't make it clear from the beginning).
I'll buy that.
Given your initial response and especially the response of itsme at: 04/08/10 12:54 AM, ID: 30095092, it became clear to me that the issue goes beyond endian.
|| In order to avoid any further confusion, could you please just show the documentation ?
i'll be able to show a snippet but not the entire document.
|| In order to avoid any further confusion, could you please just show the documentation ?
The attached reflects word 1 of a 30 word message.
As mentioned before, upon receipt of the data from the host: The data in the raw buffer (array of char) is:
0x0201
When memcopied to an unsigned short results the value results in:
0x0102
word-doc.pdf
Bit fields should only be used if you can be absolutely sure that the layout of the bit fields corresponds to that of the message. Unfortunately, in C or C++, there's no such absolute certainty. Some compilers might provide it though, but when you depend on that, be aware that you always run the risk that this behavior changes (when using another compiler, or even just another version of the current compiler).
// given s is the structure you received and unsigned short is 16 bits
unsigned short * pus = (unsigned short *)&s;
*pus[1] = ntohs(*pus[1]); | https://www.experts-exchange.com/questions/25746449/memcpy-endianess-more.html | CC-MAIN-2018-09 | refinedweb | 2,022 | 71.95 |
[SOLVED]QtQuick function if else condition issue
Hello all.I have a problem with function if else condition.In my main.qml which import QtQuick 1.1 and use PageStackWindow component.On Component.onCompleted,it is suppose to call a function below which open either dialogone or dialogtwo but why both dialog open at the same time?If it match both dialog open but if it doesn't match then only dialogtwo open.In other qml with Page component,if else condition doesn't have this problem.
//PROBLEMATIC FUNCTION IN MAIN QML
@
function matchString() {
for(var i=0;i<imei.count;i++)
if(imei.get(i).imeistring === deviceInfo.imei ) {
dialogone.open()
}
else {
dialogtwo.open()
}
}@
//OTHER FUNCTION THAT WORK IN OTHER QML
@onStopped: {
if (status == Player.EndOfStatus) {
nextbanner.open()
if (loopButton.state == "shuffle") {
Player.start()
}
else if(Player.state == pause") {
Player.play()
}
else {
GoNext.start()
}
}
}
@
Have you tried checking the console output? It's hard to say without more code, but it could be that one of them opens in one iteration, and the other opens in another. The for loop is quick so it could look like it's happening at the same time.
Try changing it to this and see what happens:
@function matchString() {
for(var i=0;i<imei.count;i++)
if(imei.get(i).imeistring === deviceInfo.imei ) {
console.log("Iteration: " + i + ", true");
dialogone.open();
}
else {
console.log("Iteration: " + i + ", false");
dialogtwo.open()
}
}@
I'm sorry you dont't understand.I though posting just a function is enough.Below is the whole qml.The model is just a listmodel with a couple dozen of listelement and contain single roles(imeistring) only.What bug me is why the same if else condition work on Page component but not on PageStackWindow.
The example you advice didn't work.Still the same.
@
import QtQuick 1.1
import com.nokia.symbian 1.1
import QtMobility.systeminfo 1.2
PageStackWindow {
id: window
initialPage: Control { id: mainPage}
showStatusBar: true
showToolBar: false
QtObject{ id: dynamiccreate property Component append:null; function create(qmlfile){ append=Qt.createComponent(qmlfile); append.createObject(mainPage) } } ImeiModel { id: imei } function matchString() { for(var i=0;i<imei.count;i++) if(imei.get(i).imeistring === deviceInfo.imei ) { console.log("Iteration: " + i + ", true"); testdialog.open(); } else { console.log("Iteration: " + i + ", true"); verifyfaildialog.open(); } } DeviceInfo { property string deviceimei: deviceInfo.imei id: deviceInfo } QueryDialog { id: verifyfaildialog titleText: "WARNING !!!" message: "Goddamm fail again" rejectButtonText: "Back" onRejected: { verifyfaildialog.close() } } QueryDialog { id: testdialog titleText: "TEST" message: "Finally it is working" rejectButtonText: "Back" onRejected: { testdialog.close() } } StatusBar { id: statusBar anchors.top: window.top Text { id: statusbar text:"JustAnApp" color: "blue" } } Component.onCompleted: { window.matchString() }
}@
Traxx, Lucijan just wanted to know the output so it would be easier to understand your problem and find a solution. It was obviously not a fix or a solution. Why don't you post us the output of Lucijans function? Also you didn't provide us your model imei. This model would probably be necessary for a solution.
Oh sorry for misreading.Did you mean this ?I purposely leave other message as it is private.I
[Qt Message] Iteration: 0, true
[Qt Message] Iteration: 1, true
[Qt Message] Iteration: 2, true
[Qt Message] Iteration: 3, true
[Qt Message] Iteration: 4, true
and the listmodel is below
@ListModel {
id: imeimodel
ListElement{imeistring: "354863595" } ListElement{imeistring: "354870672" } ListElement{imeistring: "359050560" } //MY specific ListElement{imeistring: "354875072" } ListElement{imeistring: "358261609" } }
@
Yes i meant this. The ListModel shouldn't be the problem, but your function is false for testings. Please replace the else{} in your function with:
@else {
console.log("Iteration: " + i + ", false");
verifyfaildialog.open();
}@
After you have done this post us the output again so we can see when it hits the else.
Sorry for my typo.Thank you guys for being so helpful.The help is very appreciated
[Qt Message] Iteration: 0, false
[Qt Message] Iteration: 1, false
[Qt Message] Iteration: 2, true
[Qt Message] Iteration: 3, false
[Qt Message] Iteration: 4, false
bq. Sorry for my typo.Thank you guys for being so helpful.The help is very appreciated
It's no problem and you're welcome.
The third ListElement in your ListModel is your imei. When your function iterates trough the imeis, it checks for your imei and if i look at your output it returns true when it hits the third value. It all looks fine, where is the problem or what do you want to manage?
The function is suppose to match listmodel database imei with imei string using qml deviceInfo.imei to query device imei .If the imei match then the testdialog should open otherwise verifyfaildiaolog that open.The problem is if it not match verifyfaildialog open but if it match both dialog open when it should open testdialog only.
If else condition work in my other function and qml signal correctly and expected but this particular function just won't work.
Alright. Looks like you just misunderstood the for loop. It iterates trough each Element in your model, it even continues if it already has a dialog open. Opening a dialog is no return or break.
Just replace your for-loop with this one and it should work:
@for(var i = 0; i < imei.count; i++){
if(imei.get(i).imeistring === deviceInfo.imei){
testdialog.open()
return
}
}
verifyfaildialog.open()@
It's pretty simple: It iterates trough all of your Elements in your model until it found the imei which matches your imei. If that happens it opens the right dialog and quits the function. It will continue with the lines after the for-loop and open the fail dialog if it could not find your imei in your Model.
For further information about the for-loop please read:
"C++ For-loop Tutorial":
"Javascript For-loop Tutorial":
Thanks,i will try the code tommorrow.Thanks very much for helping me learn new stuff
You're welcome. Feel free to ask if you have got more questions and don't forget to add "[Solved]" at the beginning of this threads title.
Thanks all.The code work as suggested.This topic is solved | https://forum.qt.io/topic/37453/solved-qtquick-function-if-else-condition-issue | CC-MAIN-2017-43 | refinedweb | 1,007 | 52.66 |
How to take out a contract on John Wick
The better half was wondering why she'd received a message from the Continental Hotel letting her know there was an open contract out on John Wick worth $7 million. She waved her phone at me - do you know anything about this?
Let me explain...
We watched John Wick: Chapter 2 last night and really enjoyed it. There's one scene where they put out an open contract for $7 million on John Wick and various contract killers receive an SMS with details of the contract. I thought (being someone who needs to get out more) oh you could do that easily in Python with Nexmo. So this morning I had something up and running in less than five minutes.
So you have a list of contract killer phone numbers and that could come from a YAML file, a database, or in my example code a static array, as I don't know too many contract killers.
The core code is essentially a loop that uses the Nexmo Python Client library to send the SMS. Just to spice things up a little I put in a couple of Unicode skulls as Nexmo easily supports Unicode SMS.
Here's the code:
import nexmo NEXMO_API_KEY = "your key" NEXMO_API_SECRET = "your secret" message = "☠ Open contract on John Wick for $7 million ☠" contract_killers = [ "447700000001", "447900000002", "447500000003"] client = nexmo.Client(key=NEXMO_API_KEY, secret=NEXMO_API_SECRET) for killer in contract_killers: print ("Sending message to %s..... " % killer) client.send_message({ 'from': 'Continental', 'to': killer, 'text': message, 'type': 'unicode', })
And here's a bad photo of the phone:
John Wick had better look out!
Resources
NOTE: Just so you're clear, the author and Nexmo do not condone the use of contract killers! ;) | https://tonys-notebook.com/articles/john-wick-contract.html | CC-MAIN-2022-05 | refinedweb | 291 | 76.56 |
The catch handler is not run. But why?
If the
thread t is started before the
try block, the catch handler runs.
If the catch block's type does not match the type thrown, the program exits explaining that the thread terminated with an uncaught exception, suggesting that the exception is handled, yet the catch block isn't run.
#include <iostream> #include <thread> using namespace std; void do_work() {} int main() { std::cerr << "RUNNING" << std::endl; try { thread t(do_work); std::cerr << "THROWING" << std::endl; throw logic_error("something went wrong"); } catch (logic_error e) { std::cerr << "GOTCHA" << std::endl; } return 0; }
Compile command:
c++ -std=c++14 -pthread -pedantic -Wall -Wextra -O0 scratch.cpp -o scratch | http://www.howtobuildsoftware.com/index.php/how-do/cyE/c-multithreading-error-handling-try-catch-why-does-this-code-catch-block-not-execute | CC-MAIN-2018-47 | refinedweb | 114 | 67.89 |
re – simple regular expressions¶
This module implements a subset of the corresponding CPython module,
as described below. For more information, refer to the original
CPython documentation:
re.
This module implements regular expression operations. Regular expression
syntax supported is a subset of CPython
re module (and actually is
a subset of POSIX extended regular expressions).
Supported operators and special sequences are:
Match any character.
Match set of characters. Individual characters and ranges are supported, including negated sets (e.g.
[^a-c]).
Match the start of the string.
Match the end of the string.
Match zero or one of the previous sub-pattern.
Match zero or more of the previous sub-pattern.
Match one or more of the previous sub-pattern.
Non-greedy version of
Non-greedy version of
Non-greedy version of
Match either the left-hand side or the right-hand side sub-patterns of this operator.
Grouping. Each group is capturing (a substring it captures can be accessed with
match.group()method).
\d
Matches digit. Equivalent to
[0-9].
\D
Matches non-digit. Equivalent to
[^0-9].
\s
Matches whitespace. Equivalent to
[ \t-\r].
\S
Matches non-whitespace. Equivalent to
[^ \t-\r].
\w
Matches “word characters” (ASCII only). Equivalent to
[A-Za-z0-9_].
\W
Matches non “word characters” (ASCII only). Equivalent to
[^A-Za-z0-9_].
Escape character. Any other character following the backslash, except for those listed above, is taken literally. For example,
\r,
\n, etc. are not handled specially, and will be equivalent to literal letters
r,
n, etc. Due to this, it’s not recommended to use raw Python strings (
r"") for regular expressions. For example,
r"\r\n"when used as the regular expression is equivalent to
"rn". To match CR character followed by LF, use
"\r\n".
NOT SUPPORTED:
counted repetitions (
{m,n})
named groups (
(?P<name>...))
non-capturing groups (
more advanced assertions (
\b,
\B)
special character escapes like
\r,
\n- use Python’s own escaping instead
etc.
Example:
import re # As re doesn't support escapes itself, use of r"" strings is not # recommended. regex = re.compile("[\r\n]") regex.split("line1\rline2\nline3\r\n") # Result: # ['line1', 'line2', 'line3', '', '']
Functions¶
- re.match(regex_str, string)¶
Compile regex_str and match against string. Match always happens from starting position in a string.
- re.search(regex_str, string)¶
Compile regex_str and search it in a string. Unlike
match, this will search string for first position which matches regex (which still may be 0 if regex is anchored).
- re.sub(regex_str, replace, string, count=0, flags=0, /)¶
Compile regex_str and search for it in string, replacing all matches with replace, and returning the new string.
replace can be a string or a function. If it is a string then escape sequences of the form
\<number>and
\g<number>can be used to expand to the corresponding group (or an empty string for unmatched groups). If replace is a function then it must take a single argument (the match) and should return a replacement string.
If count is specified and non-zero then substitution will stop after this many substitutions are made. The flags argument is ignored.
Note: availability of this function depends on MicroPython port.
- re.DEBUG¶
Flag value, display debug information about compiled expression. (Availability depends on MicroPython port.)
Regex objects¶
Compiled regular expression. Instances of this class are created using
re.compile().
- regex.match(string)¶
- regex.search(string)¶
- regex.sub(replace, string, count=0, flags=0, /)¶
Similar to the module-level functions
match(),
search()and
sub(). Using methods is (much) more efficient if the same regex is applied to multiple strings.
Match objects¶
Match objects as returned by
match() and
search() methods, and passed
to the replacement function in
sub().
- match.group(index)¶
Return matching (sub)string. index is 0 for entire match, 1 and above for each capturing group. Only numeric groups are supported.
- match.groups()¶
Return a tuple containing all the substrings of the groups of the match.
Note: availability of this method depends on MicroPython port.
- match.start([index])¶
- match.end([index])¶
Return the index in the original string of the start or end of the substring group that was matched. index defaults to the entire group, otherwise it will select a group.
Note: availability of these methods depends on MicroPython port.
- match.span([index])¶
Returns the 2-tuple
(match.start(index), match.end(index)).
Note: availability of this method depends on MicroPython port. | http://docs.micropython.org/en/latest/library/re.html | CC-MAIN-2022-21 | refinedweb | 732 | 61.22 |
In this article, we will learn how to write better code for validating method’s inputs. Use these techniques makes our code easily maintain, readable, because we will separate validation’s place and logic place.
Let’s get started.
Table of contents
Validating method input
Guard clause - Fail fast and Return early
With the below guard clause, we have:
if (/* validate input */) { // nothing to do }
Then, we will have three options:
Return early
return false;
return;
Fail fast
throw new AppropriateException();
Alternative execution
- Display a user-friendly message of what went wrong.
–> Place our Guard clauses at the very beginning.
Best practices and pitfalls when checking null, Strings, numbers and dates
Validating null
if (value_type_1 != null) { if (value_type_2 != null) { ... // nothing to do } }
To describe this situation, we have an image:
As we read the code, we start off by seeing that something might be wrong. After that, we read the code that is supposed to run under normal circumstances. And at the end, we again see some code for the scenario if something goes wrong, so we have to mentally mop this code back to the beginning.
It might seem fairly easy, but it can become a burden when reading more complex and more nested code. And then suddenly we find ourself scrolling up and down, up and down, and that’s no good.
If we put all of our input checking code at the top on throw immediately, then it becomes easier to follow like this:
For example:
public List<String> search(String fromDest, String toDest, String departDate, int passengerNum) { if (fromDest == null) { throw new IllegalArgumentException("Argument fromDest cannot be null"); } if (toDest == null) { throw new IllegalArgumentException("Argument toDest cannot be null"); } if (departDate == null) { throw new IllegalArgumentException("Argument departDate cannot be null"); } ... }
When we see the above code, we find that inidividual message for each input will be checked at the top method. If we have multiple arguments, then we check like the above code, so, this code looks terribly, not only the size of this method has doubled, it suffers from another problem.
This code tells about one problem at a time, so if we pass
search()method with three bad inputs, it will tell us that there’s a problem with one. We will fix that, send the input again. The code will again reject our input, and we will have to repeat the process multiple times before we get it entirely right on.
So, the solution for this problem is to combine all of these into a single condition. Now, we can end up with fewer lines of code on a single message.
if (fromDest == null || toDest == null || departDate == null) { String msg = String.format("You have provided the following arguments, none of them can be null. " + "fromDest: %s, toDest: %s, date: %s", fromDest, toDest, departDate); }
Conclustion:
- If we have one or two inputs, we might as well be specific at the cost off.
- If we have multiple method arguments acting as inputs, so we decided to go for shorter on more generic version.
Validating number ranges
Come back with an above sample, we have a condition about
passengerNumthat has a maximum off seven people.
public List<String> search(String fromDest, String toDest, String departDate, int passengerNum) { // validate some inputs: fromDest, toDest, departDate // validate passengerNum if (passengerNum > 7) { throw new IllegalArgumentException("The number of passengers must be between 1 and 7"); } }
We can see that with a condition with
passengerNum, we only check for a case that is greater than
7people. But do not check some cases such as less than
1or
0.
Below is some weird cases that we need to be careful:
Then, we will have some statements for an above image:
if (passengerNum < 1 || passengerNum > 7) // (1) if (passengerNum <= 0 || passengerNum >= 8) // (2)
So, when validating number input, we really take care about its
border valueslike an above problem.
Valiating string
Coming back to our problem:
public List<String> search(String fromDest, String toDest, String departDate, int passengerNum) { // validate some inputs: fromDest, toDest, departDate if (fromDest == null || toDest == null || departDate == null) { String msg = String.format("You have provided the following arguments, none of them can be null. " + "fromDest: %s, toDest: %s, date: %s", fromDest, toDest, departDate); // validate passengerNum ... }
We validated some inputs such as
fromDest,
toDest,
departDate, but their data type is
String, so that it can be empty. Then, we can deal with them as the following:
if ((fromDest == null) || fromDest.isEmpty()) || (toDest == null || toDest.isEmpty()) || (departDate == null || departDate.isEmpty()) { // ... }
We can find that if we use the native job is the empty method, which makes the code even longer on it, will get even worse when we realized that a string that contains only spaces is also involved for our purposes.
Then, we need to trim before we check for emptiness. So, it has amount of boilerplat code, and we should refactor them. Factoring technique for the situation is called decomposed, conditional or extract conditional.
So, we will define check method for this technique.
public boolean isNotValidString(String s) { return s == null || s.strim().isEmpty(); }
Consider another context:
use regular expression to validate string
For example:
public boolean isValidEmail(String inputEmail) { Pattern validEmail = Pattern.compile("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,6}$", Pattern.CASE_INSENSITIVE); Matcher matcher = validEmail.matcher(inputEmail); return matcher.find(); }
–> Regex can get very complex to the point where only the original author understands how it works. And even then, it might not match all of our cases.
Beside all above points, we can take care of some traits:
Use Enums where appropriate.
Because Enum is a type safe, and they prevent mistakes that arise from typos. We can miss type of a string and we can get back a wrong result, but we can’t miss type an enum value because we’re limited to available values of the Enums.
Comparison order
For example:
// first way inputString.equals("MyConstant"); // second way "MyConstant".equals(inputString);
If the
inputString’s value is
null, in this first way, it will throw an exception. But in the second way, it returns false.
Handling dates
Mutable Date
Date start = new Date(); Date end = new Date(); TimeWindow booking = new TimeWindow(start, end); // It's possible to modify the internals off the time window object by modifying the date object that we passed. start.setHours(5);
Immutable Date
public LocalDate parseInputDate(String departDate) { LocalDate date; try { date = LocalDate.parse(departDate, DateTimeFormatter.ofPattern("dd-MM-yyyy")); } catch (DateTimeParseException ex) { // or display a user-friendly message on the UI throw new IllegalArgumentException( String.format("Could not parse input date %s, " + "please input a date in format dd-MM-yyyy", departDate); ) } return date; }
Preventing propagation of invalid values
Normally, we will validate all inputs in a single place of each method. That’s fine, but our system will surely continue to grow, and another methods will need to make use of that data. This means that we will have to accept that data and repeat those validations all over again.
Solution for this problem is that we could perhaps create a dedicated validator class and put the validation boilerplate code there. This way our code will be more dry, and this is definitely better. But we still have a problem. Invalidate a floating around our system, and we could need to remember and make use of that validator every time.
If we pass around invalid values or we initialize objects with invalidate value such as
null, then will be encountering problems all over the place, including when we write new code.
So what we can do is is capture and encapsulate that input wherever it comes from in some classes, and make their validations while constructing some object. If the input is invalid, then thrown exception or send back a rejection message depends on the system. But if the input is valid, then construct the object and a feel free to send it further. This way, the rest of our system will have the guarantee that whatever it is receiving it is valid and safe.
We have arrived to the concept of class variant.
- A property that always remains true for all instances of a class no matter what happens.
Below is sample solution for validation inputs:
public class SearchRequest { private int passengerNum; private String fromDestination; private String toDestination; private LocalDate departDate; public SearchRequest(String[] args) { if (args.length != 4) { throw new IllegalArgumentException( "There should be exactly 4 arguments provided"); } this.passengerNum = validatePassengerNum(args[0]); this.departDate = validateDate(args[1]); this.toDestination = isInvalidString(args[3]); this.fromDestination = isInvalidString(args[2]); if (fromDestination.equalsIgnoreCase(toDestination)) { throw new IllegalArgumentException("From and To Destinations cannot be the same. " + "You input " + fromDestination); } } private LocalDate validateDate(String stringDate) { String data = isInvalidString(stringDate); return parseInputDate(date); } private String isInvalidString(String s) { if (s == null || s.trim().isEmpty()) { throw new IllegalArgumentException("You have provided the following argument, " + " but it cannot be null or empty: " + s); } return s; } private LocalDate parseInputDate(String departDate) { // use above method. // ... } private int validatePassengerNum(String inputPassengerNum) { int passengerNum = Integer.parseInt(inputPassengerNum); if (passengerNum < 1 || passengerNum > 7) { throw new IllegalArgumentException("The number of passenger must be between 1 and 7"); } return passengerNum; } public String getFromDestination() { return this.fromDestination; } public String getToDestination() { return this.toDestination; } public String getDepartureDate() { return this.departDate; } public int getPassengerNum() { return this.passengerNum; } } public class App { public static void main(String[] args) { SearchRequest request = new SearchRequest(args); FlightSearchService searchService = flightSearch(); List<Flight> outboundFlights = searchService.search(request); // ... } }
So, we have:
Defend and fail early
- In methods (good)
- In constructors (if possible)
Protect class invariants
Choosing right exceptions
About
NullPointerException exception, we have:
If a caller passes null in some parameter for which null values are prohibited, convention ditates that NullPointerException be thrown rather than IllegalArgumentException --- Joshua Bloch, Effective Java
And we also have:
When used to best advantage, exceptions can improve a program's readability, reliability and maintainability. When used improperly, they can have the opposite effect. --- Joshua Bloch, Effective Java
Improving method return values
Do not use magic numbers
In such programming like C#, Java, Python, to indicate success or failure of operations, they had to use primitive numbers.
For example:
0for success -
-1for failure
Assuming that we want to code for method with
write(String txt);. So, what could this method return?
- It could return void, and if it does not blow up, we could assume it was successful.
- It could event return boolean, and then we could make a reasonable guess. That true means success and false means failure.
But what if it returns an integer?
- First of all, we do not know what kind of integers, it might return.
Second, we would not know what they mean unless we spend our time reading the documentation. So making people guess is really bad, but it gets worse.
Magic numbers force others to start writing code like below.
int write(String txt); int result = write(text); if (result == -1) { // do something } else if (result == 0) { // do another thing }
We all want to write simple code, but if we create methods that return magic numbers, then the user of methods have a hard time to writing clean code.
Method return options
We will have some valid return values:
true/
false
true: success
false: failure
void / throw
- nothing happens: success
- exception: failure
For example:
public static void write(Path path, String text) { try { Files.write(path, text.getBytes()); } catch (IOException e) { System.out.println(e.getMessage()); } }
And we also have some bad return values:
Do not mix
true/
false(and may be an exception)
Null
- with null value, it’s necessary to initialize fields.
- And Null value is not necessary to indicate a missing value or result.
If we do not use return null in method as solution, we will have some alternatives to null value:
- throw exception.
return sensible default value.
return empty collection.
We have correspond collection to each data structure:
emptyList()
emptySet()
emptyMap()
return optional
Optional means a container object which may or may not contain a non-null value.
Optional<T>forces the user to confront the fact that there may be no value.
Optional gives us a variety of convenience methods to deal with the emptiness out of the box.
orElse()
orElseGet()
ifPresentOrElse()
orElseThrow()
Optional are mostly meant to be used as a method return types.
Wrapping up
Immutability concept
An object is immutable if we can not modify its state after creation.
Side effect happens if a method modifies some state outside its local scope.
Do not make methods return values and produce side effects.
To reduce side effects in a method, we should split it into smaller tasks, and to make it better, we should use CQRS - Command Query Responsibility Segregation.
Should use Static Analysis Tool such as SonarLint
Refer: | https://ducmanhphan.github.io/2019-12-22-Clean-code-with-validate-input/ | CC-MAIN-2021-25 | refinedweb | 2,121 | 53.81 |
view raw
so i took the codility interview test yesterday and was informed today that i failed, unfortunately i wasnt given any other information by either codility nor the employer as to where i screwed up so i would appreciate some help in knowing where i went wrong. i know codility pays alot of emphasis on how fast the program runs and how it behaves for large numbers. now i didnt copy paste the questions so this the approx of what i remember
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
public class test2 {
int test(int[] a){
Set<Integer> s=new HashSet<Integer>();
for(int i=0;i<a.length;i++){
s.add(Math.abs(a[i]));
}
return s.size();
}
public static void main(String[] args) {
test2 t=new test2();
int[] a={1,1,1,2,-1};
System.out.println(t.test(a));
}
}
If the array is sorted you can find duplicates by looking a neightbours. To compare absolute values to need to start at both the start and the end. This avoid creating a new structure.
EDIT: IMHO HashMap/HashSet is O(log(log(n)) due to collisions, it is only O(1) if there is a perfect hash function. I would have thought not creating object which be much much faster but appears to be only 4x fast on my machine.
In summary, you can see that using a Set is simpler, clearer and easier to maintain. It is still very fast and would be the best solution in 98% of cases.
public static void main(String[] args) throws Exception { for (int len : new int[]{100 * 1000 * 1000, 10 * 1000 * 1000, 1000 * 1000, 100 * 1000, 10 * 1000, 1000}) { int[] nums = new int[len]; for (int i = 0; i < len; i++) nums[i] = (int) (Math.random() * (Math.random() * 2001 - 1000)); Arrays.sort(nums); long timeArray = 0; long timeSet = 0; int runs = len > 1000 * 1000 ? 10 : len >= 100 * 1000 ? 100 : 1000; for (int i = 0; i < runs; i++) { long time1 = System.nanoTime(); int count = countDistinct(nums); long time2 = System.nanoTime(); int count2 = countDistinctUsingSet(nums); long time3 = System.nanoTime(); timeArray += time2 - time1; timeSet += time3 - time2; assert count == count2; } System.out.printf("For %,d numbers, using an array took %,d us on average, using a Set took %,d us on average, ratio=%.1f%n", len, timeArray / 1000 / runs, timeSet / 1000 / runs, 1.0 * timeSet / timeArray); } } private static int countDistinct(int[] nums) { int lastLeft = Math.abs(nums[0]); int lastRight = Math.abs(nums[nums.length - 1]); int count = 0; for (int a = 1, b = nums.length - 2; a <= b;) { int left = Math.abs(nums[a]); int right = Math.abs(nums[b]); if (left == lastLeft) { a++; lastLeft = left; } else if (right == lastRight) { b--; lastRight = right; } else if (lastLeft == lastRight) { a++; b--; lastLeft = left; lastRight = right; count++; } else if (lastLeft > lastRight) { count++; a++; lastLeft = left; } else { count++; b--; lastRight = right; } } count += (lastLeft == lastRight ? 1 : 2); return count; } private static int countDistinctUsingSet(int[] nums) { Set<Integer> s = new HashSet<Integer>(); for (int n : nums) s.add(Math.abs(n)); int count = s.size(); return count; }
prints
For 100,000,000 numbers, using an array took 279,623 us on average, using a Set took 1,270,029 us on average, ratio=4.5
For 10,000,000 numbers, using an array took 28,525 us on average, using a Set took 126,591 us on average, ratio=4.4
For 1,000,000 numbers, using an array took 2,846 us on average, using a Set took 12,131 us on average, ratio=4.3
For 100,000 numbers, using an array took 297 us on average, using a Set took 1,239 us on average, ratio=4.2
For 10,000 numbers, using an array took 42 us on average, using a Set took 156 us on average, ratio=3.7
For 1,000 numbers, using an array took 8 us on average, using a Set took 30 us on average, ratio=3.6
On @Kevin K's point, even Integer can have collision even through it's hash values are unique, it can map to the same bucket as the capacity is limited.
public static int hash(int h) { // This function ensures that hashCodes that differ only by // constant multiples at each bit position have a bounded // number of collisions (approximately 8 at default load factor). h ^= (h >>> 20) ^ (h >>> 12); return h ^ (h >>> 7) ^ (h >>> 4); } public static void main(String[] args) throws Exception { Map<Integer, Integer> map = new HashMap<Integer, Integer>(32, 2.0f); for (int i = 0; i < 10000 && map.size() < 32 * 2; i++) { if (hash(i) % 32 == 0) map.put(i, i); } System.out.println(map.keySet()); }
prints
[2032, 2002, 1972, 1942, 1913, 1883, 1853, 1823, 1763, 1729, 1703, 1669, 1642, 1608, 1582, 1548, 1524, 1494, 1456, 1426, 1405, 1375, 1337, 1307, 1255, 1221, 1187, 1153, 1134, 1100, 1066, 1032, 1016, 986, 956, 926, 881, 851, 821, 791, 747, 713, 687, 653, 610, 576, 550, 516, 508, 478, 440, 410, 373, 343, 305, 275, 239, 205, 171, 137, 102, 68, 34, 0]
The values are in reverse order because the HashMap has generated into a LinkedList. | https://codedump.io/share/ILPnSw1cXlw9/1/codility-absolute-distinct-count-from-an-array | CC-MAIN-2017-22 | refinedweb | 861 | 72.16 |
#include <stdio.h>
#include <stdint.h>
#include <sys/queue.h>
#include <rte_config.h>
#include <rte_lcore.h>
Go to the source code of this file.
Service functions
The service functionality provided by this header allows a DPDK component to indicate that it requires a function call in order for it to perform its processing.
An example usage of this functionality would be a component that registers a service to perform a particular packet processing duty: for example the eventdev software PMD. At startup the application requests all services that have been registered, and the cores in the service-coremask run the required services. The EAL removes these number of cores from the available runtime cores, and dedicates them to performing service-core workloads. The application has access to the remaining lcores as normal.
Definition in file rte_service.h.
When set, the service is capable of having multiple threads run it at the same time.
Definition at line 47 of file rte_service.h.
Returns the number of cycles that this service has consumed
Definition at line 383 of file rte_service.h.
Returns the count of invocations of this service function
Definition at line 388 of file rte_service.h.
Returns the number of times the service runner has looped.
Definition at line 411 of file rte_service.h.
Return the number of services registered.
Return the id of a service by name.
This function provides the id of the service using the service name as lookup key. The service id is to be passed to other functions in the rte_service_* API.
Example usage:
Return the name of the service.
Check if a service has a specific capability.
This function returns if service has implements capability. See RTE_SERVICE_CAP_* defines for a list of valid capabilities.
Map or unmap a lcore to a service.
Each core can be added or removed from running a specific service. This function enables or disables lcore to run service_id.
If multiple cores are enabled on a service, a lock is used to ensure that only one core runs the service at a time. The exception to this is when a service indicates that it is multi-thread safe by setting the capability called RTE_SERVICE_CAP_MT_SAFE. With the multi-thread safe capability set, the service function can be run on multiple threads at the same time.
If the service is known to be mapped to a single lcore, setting the capability of the service to RTE_SERVICE_CAP_MT_SAFE can achieve better performance by avoiding the use of lock.
Retrieve the mapping of an lcore to a service.
Set the runstate of the service.
Each service is either running or stopped. Setting a non-zero runstate enables the service to run, while setting runstate zero disables it.
Get the runstate for the service with id. See rte_service_runstate_set for details of runstates. A service can call this function to ensure that the application has indicated that it will receive CPU cycles. Either a service-core is mapped (default case), or the application has explicitly disabled the check that a service-cores is mapped to the service and takes responsibility to run the service manually using the available function rte_service_run_iter_on_app_lcore to do so.
This function returns whether the service may be currently executing on at least one lcore, or definitely is not. This function can be used to determine if, after setting the service runstate to stopped, the service is still executing a service lcore.
Care must be taken if calling this function when the service runstate is running, since the result of this function may be incorrect by the time the function returns due to service cores running in parallel.
Enable or disable the check for a service-core being mapped to the service. An application can disable the check when takes the responsibility to run a service itself using rte_service_run_iter_on_app_lcore.
This function runs a service callback from a non-service lcore.
This function is designed to enable gradual porting to service cores, and to enable unit tests to verify a service behaves as expected.
When called, this function ensures that the service identified by id is safe to run on this lcore. Multi-thread safe services are invoked even if other cores are simultaneously running them as they are multi-thread safe.
Multi-thread unsafe services are handled depending on the variable serialize_multithread_unsafe:
Note that any thread calling this function MUST be a DPDK EAL thread, as the rte_lcore_id function is used to access internal data structures.
Start a service core.
Starting a core makes the core begin polling. Any services assigned to it will be run as fast as possible. The application must ensure that the lcore is in a launchable state: e.g. call rte_eal_lcore_wait on the lcore_id before calling this function.
Stop a service core.
Stopping a core makes the core become idle, but remains assigned as a service core. Note that the service lcore thread may not have returned from the service it is running when this API returns.
The rte_service_lcore_may_be_active API can be used to check if the service lcore is * still active.
Reports if a service lcore is currently running.
This function returns if the core has finished service cores code, and has returned to EAL control. If rte_service_lcore_stop has been called but the lcore has not returned to EAL yet, it might be required to wait and call this function again. The amount of time to wait before the core returns depends on the duration of the services being run.
Adds lcore to the list of service cores.
This functions can be used at runtime in order to modify the service core mask.
Removes lcore from the list of service cores.
This can fail if the core is not stopped, see rte_service_core_stop.
Retrieve the number of service cores currently available.
This function returns the integer count of service cores available. The service core count can be used in mapping logic when creating mappings from service cores to services.
See rte_service_lcore_list for details on retrieving the lcore_id of each service core.
Resets all service core mappings. This does not remove the service cores from duty, just unmaps all services / cores, and stops() the service cores. The runstate of services is not modified.
The cores that are stopped with this call, are in FINISHED state and the application must take care of bringing them back to a launchable state: e.g. call rte_eal_lcore_wait on the lcore_id.
Enable or disable statistics collection for service.
This function enables per core, per-service cycle count collection.
Retrieve the list of currently enabled service cores.
This function fills in an application supplied array, with each element indicating the lcore_id of a service core.
Adding and removing service cores can be performed using rte_service_lcore_add and rte_service_lcore_del.
Get the number of services running on the supplied lcore.
Dumps any information available about the service. When id is UINT32_MAX, this function dumps info for all services.
Get an attribute from a service.
Reset all attribute values of a service.
Get an attribute from a service core.
Reset all attribute values of a service core. | https://doc.dpdk.org/api-20.11/rte__service_8h.html | CC-MAIN-2021-39 | refinedweb | 1,177 | 66.64 |
01-24-2012 02:59 PM
Hi, there:
I am wondering if I can define some modules with mutliple outputs in IML. For example, I want to write a simple module to do linear regression and output both the estimated coefficients and residual series. Can I write it in this way?
start ols (y,x);
beta=inv(x`*x)*(x`*y);
residual=y-x*beta;
return (beta,residual);
finish ols.
When I want to use it, can I write a line in the main body of code like the following:
...
{beta,residual}=ols(y_data,x_data).
...
I don't find any sample online. Some subroutines following the "call" keyword can give multiple outputs, however, the output names are prefixed. I want to be able to control the output names.
Thanks.
01-24-2012 03:11 PM
You can't list multiple matrices on the RETURN statement (that's MATLAB syntax) but you can return as many values as you want by writing a subroutine module instead of a function module.
For an example, see the bottom of p. 2 of
Incidentally, you can do this because SAS/IML passes arguments by reference, not by value.
The SAS/IML convention is that output arguments are listed first, so your module might look like
proc iml;
start ols (beta, residual, y,x);
beta=inv(x`*x)*(x`*y);
residual=y-x*beta;
finish ols;
/* define data */
x= { 1 1 1, 1 2 4, 1 3 9, 1 4 16, 1 5 25, 1 6 36, 1 7 49, 1 8 64 };
y= {3.929,5.308,7.239,9.638,12.866,17.069,23.191,31.443};
/* call module */
run ols(b, r, y, x);
print b, r; | https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/User-defined-module-with-multiple-outputs/td-p/37535?nobounce | CC-MAIN-2018-09 | refinedweb | 286 | 61.46 |
Python new line is a state which is used to mark the end of a line. It can also be referred to as the beginning of a new line in other words. It helps in easy working of files and getting better outputs. There are a number of ways in python to identify new line. One of the easiest ways is by using a backslash with character n ‘\n’. For an instance, if the user writes “Hello\nMy name is Megha”. The output of this in python will be:
Hello My name is Megha
The output will be displayed as this because after using \n, the hold will get passed onto the new line and the rest of the sentence will be displayed in the new line only.
Python New line vs end
As we have discussed above, the new line will take control of the next line. However, ‘end’ function creates a place for space in the statement. For example, if the user writes the code as:
print("Hello! ", end = '') print("Welcome to Developer Helps")
The output of the above python code will be:
Hello! Welcome to Developer Helps
Space will add to both the individual lines in the above code. Hence displaying the output in the same line. The end will not just add space to the strings but will also specify the string which user wishes to print inside the given strings.
Check out the python code below to understand where the user can print in the same line using in-built function in python:
print("Hello! "), print("Welcome to Developer Helps") a = [10, 20, 30, 40] # printing a element in same # line for x in range(4): print(a[x]),
The output of the above program will be:
Hello! Welcome to Developer Helps 10 20 30 40
Python has another concept for a new line which is by using the python sys module. The user can import the sys module which is a built-in module in python. The next step is to use stdout.write() to print the string. Check out the python code below to see how the sys module can be used in python:
import sys sys.stdout.write("Hello!") sys.stdout.write("My name is Megha")
The output of the above python code will be:
Hello!My name is Megha | https://www.developerhelps.com/python-new-line/ | CC-MAIN-2021-31 | refinedweb | 388 | 80.51 |
FILE(9) BSD Kernel Manual FILE(9)
file - an overview of file descriptor handling
#include <sys/file.h> #include <sys/filedesc.h> int falloc(struct proc *p, struct file **resultfp, int *resultfd); int fdrelease(struct proc *p, int fd); void FREF(struct file *fp); void FRELE(struct file *fp); struct file * fd_getfile(struct filedesc *fdp, int fd); int getvnode(struct filedesc *fdp, int fd, struct file **fpp); int getsock(struct filedesc *fdp, int fd, struct file **fpp);
These functions provide the interface for the UNIX file descriptors. File descriptors can be used to access vnodes (see vnode(9)), sockets (see socket(2)), pipes (see pipe(2)), kqueues (see kqueue(2)), and various special purpose communication endpoints. A new file descriptor is allocated with the function falloc() and freed with fdrelease(). falloc() and fdrelease() deal with allocating and free- ing slots in the file descriptor table, expanding the table when neces- sary and initializing the descriptor. It's possible to do those things in smaller steps, but it's not recommended to make complicated kernel APIs that require it. The files are extracted from the file descriptor table using the func- tions fd_getfile(), getvnode() and getsock(). fd_getfile() performs all necessary checks to see if the file descriptor number is within the range of file descriptor table, and if the descriptor is valid. getsock() and getvnode() are special cases that besides doing fd_getfile() also check if the descriptor is a vnode or socket, return the proper errno on error and increase the use count with FREF().
Since multiple processes can share the same file descriptor table, it's important that the file is not freed in one process while some other pro- cess is still accessing it. To solve that problem a special use count is kept with the functions FREF() and FRELE(). In most cases FREF() should be used on a file after it has been extracted from the file descriptor table and FRELE() should be called when the file won't be used anymore. There are cases when this isn't necessary, but since FREF() and FRELE() are cheap to use, there is no reason to risk introducing bugs by not us- ing them.
vnode(9)
The majority of those functions are implemented in sys/kern/kern_descrip.c. The function prototypes and the macros are lo- cated in sys/sys/file.h and sys/sys/filedesc.h. MirOS BSD #10-current August 23,. | http://www.mirbsd.org/htman/sparc/man9/fd_getfile.htm | CC-MAIN-2014-49 | refinedweb | 403 | 67.49 |
Details
Bug
- Status: Resolved (View Workflow)
Minor
- Resolution: Fixed
-
-
- Jenkins 2.65
Task Scanner Plugin 4.51
Pipeline Job
Description
Task Scanner generates new links "Open Tasks" on the left (cf screenshot in attachement)
All of the links open the same URL .../MY_JOB/BUILD_NUMBER/tasksResult/
: I use 4 build steps "withMaven" that automatically generates reports (junit, findbugs and Tasks). They are used in different stages of my pipeline.
one of them in example (nothing special)
withMaven(jdk: "${jdkVersion}", maven: "${mavenVersion}", mavenLocalRepo: '${workspace}/.repository', mavenOpts: '', mavenSettingsFilePath: '') { timestamps { sh "mvn -s settings.xml verify site -fn -DskipTests" } }
: Only one link should be displayed in the left Menu of the job
Attachments
Activity
Is this automatic invocation of the analysis plugins using the withMaven block required? Or would it be just fine if you call these steps manually?
Yes, I can call the steps manually.
does it solve the problem ? => 1 call of taskscanner generates only 1 link "Open Task"
in order to run code analysis, will I need to do something like that (example from your wiki) ?
sh "${mvnHome}/bin/mvn -batch-mode -V -U -e checkstyle:checkstyle pmd:pmd findbugs:findbugs"
def checkstyle = scanForIssues tool: [$}}{{class}}{{: }}{{'CheckStyle'}}{{], pattern: '**/checkstyle-result.xml'
publishIssues issues:[checkstyle], useStableBuildAsReference: true
(Hint: You can wrap sh Scripts using the noformat tag in Confluence.)
The new approach will be:
- Collect the open tasks
- Publish the open tasks
In step 2 you can combine the results of 'n' results that have been obtained in step 1
Please comment your requirements in the corresponding wiki page. | https://issues.jenkins.io/browse/JENKINS-47200?attachmentSortBy=fileName | CC-MAIN-2022-27 | refinedweb | 257 | 55.13 |
Opened 6 years ago
Closed 3 years ago
#18922 closed Bug (duplicate)
Proliferation of dev docs on search engines confuses newbies
Description (last modified by )
I brought this issue up earlier today at DjangoCon, but the basic issue can be summarized hence:
- User searches to find info on a specific feature, gets directed to dev documentation.
- Said feature (on the development version) is backwards incompatible with previous versions of Django.
- User does not know better, assumes Django has a bug.
- Invalid bug is filed in trac.
EDIT: rejected proposal removed, see comment 4.
Change History (17)
comment:1 Changed 6 years ago by
comment:2 Changed 6 years ago by
comment:3 Changed 6 years ago by
This issue wasn't opened with a specific solution in mind--it's just illuminating that this is a problem. I get if the solution I presented is a bit too drastic, but I think closing this ticket ignores the real issue.
comment:4 Changed 6 years ago by
Yes, we can keep this ticket to track other ideas to resolve this problem.
For the record, the original proposal was:
Hopefully, removing the dev documentation pages from search engines will help solve
this issue, since those who want to read the dev docs can just click through to
them by using the version navigation at the bottom of the docs pages.
I think there is a small subset of actual Django users who run their applications
on trunk. I don't have data to back that up but I can't imagine it's a lot.
I talked with Alex earlier today about how to deal with this issue--he also suggested
redirecting users from dev -> 1.4 (or whatever the latest version is). I initially
thought it was a good idea, but I thought about it and realized you would have to at
least add some sort of referrer check. I then thought whether it would be ok to do
something like
def conditional_documentation_redirect(request): if not request.META['REFERER'].startswith(""): return HttpResponseRedirect #... and so on
This felt wrong to me because if that sort of check were in place, users would
no longer be able to permalink to dev docs.
PR @
comment:5 Changed 5 years ago by
comment:8 Changed 5 years ago by
comment:9 Changed 5 years ago by
Is it a reasonable request that any version of the documentation other than dev and the latest release should be hidden from search indexes entirely?
Tried searching for "django authentication" on Google now, and it shows dev, 1.5, and 1.4, in that order. I think 1.4 should be hidden to avoid this kind of thing.
comment:10 Changed 5 years ago by
comment:11 Changed 5 years ago by
1.4 is still supported, it shouldn't be hidden from search engines.
comment:12 Changed 5 years ago by
Just out of curiosity, how are versions 1.3 and below hidden from search index?
(They are all in the sitemap, so obviously search engines see them there, although with low priority.)
comment:13 Changed 5 years ago by
They aren't hidden, and depending on what you're searching Google can still return various more or less recent versions of the docs.
Our main problem is that the docs for each new release duplicate content from previous releases, and Google favors the original URL in this case.
Canonicalizing /en/1.5/ (or whatever the current version is) => /en/stable/ may help.
comment:14 Changed 5 years ago by
Does that mean that /en/stable/ should be included in sitemap.xml with priority 1, instead of the latest version (i.e. /en/1.5/). Or should both variants be in there? Or are we talking redirects?
Sorry to hassle you with a lot of questions, but I'm looking to hopefully improve the situation, because I'm annoyed by the proliferation too :)
comment:15 Changed 5 years ago by
comment:16 Changed 5 years ago by
Eric Holscher just pointed me to.
We could use that to point search engines to the stable version.
comment:17 Changed 3 years ago by
Moved the last action item to
Thanks for the suggestion.
I understand the idea, but I'm not ready to wipe the dev docs from Google's index. People should be able to find information about an upcoming feature by googling its name.
Besides, we take care to mention in which version new feature are added. And closing invalid tickets is cheap. The most troublesome change was the new
{% url %], and the flow of tickets eventually stopped.
tl;dr The cost of the solution seems too high to me compared to the magnitude of the problem. | https://code.djangoproject.com/ticket/18922 | CC-MAIN-2018-22 | refinedweb | 790 | 62.78 |
: March822 Full Text Splendid Ted William Hitters Hall Sof Fame inducts nev members ir its shrine. PAGE 1 H>0 0 > o C'-) OOl aec. SON I __I w, ='w' l " , *. ," i" I J - FORECAST: Mostly 79 cloudy. A 30 percent Si' . i . chance of 1-storms in '\. ' 61 the afternoon ., .. ,r., ri i r-:,r I. . rPAGE 2A Jury says death . AAL DIAZ/Miami Herald John Evander Couey answers questions by Circuit Court Judge Ric Howard during the penalty phase of his trial Wednesday in Miami. Couey was found guilty of the kidnapping, rape and murder of nine-year-old Jessica Lunsford in Homosassa in February 2005. By a vote of 10-2, the jury recommended that Couey, 48, die by lethal injection. Howard will make the.final decision in regard to Couey's sentencing, . Jury takes a little more than an hour to reach its decision DAVE PIEKLIK after beginning delibera- dpieklik@ tions, the 12-person jury's chronicleonline.com verdict was announced at Chronicle 5:15 p.m. in courtroom 4-1 of the Richard E. Gerstein MLAMI- An hour after a Justice Building. Couey, 48, jury decided showed no emo- Wednesday that p tion, leaning back John Couey should in his chair after be executed for , the reading of the killing Jessica - I jury's finding that Lunsford two years, he should be exe- ago, her father k cuted by lethal walked up to a row injection. of reporters wait- - Afterward, Luns- ing for him. Jessica ford and his par- "This is justice Lunsford ents embraced for Jessie," he said each other as mem- of the 9-year-old from bers of law enforcement - Homosassa, as tears including the Citrus welled in his eyes. An hour and 10 minutes Please see /Page 4A Associated Press Juror Thais Prado wipes away a tear before a news conference Wednesday outside a courthouse in Miami. A jury recommended the death penalty Wednesday for John Evander Couey. Jurors speak out about Couey trial CRISTY LOFTIS cloftis@ chronicleonline.com Chronicle All Osualdo Pradera wanted to do after hearing the gruesome and horrific details of the murder of Jessica Lunsford is go home and hug his children. "I'm a father. I've got two children - young - a boy and a girl. I will hold them closer. It will. change my life forever. Honestly this will change my life forev- er," Pradera said. Fifteen people - 12 Jurors and three alternates - were chosen to partici- pate in deciding the fate of John Evander Couey for the murder of Jessica Lunsford. Pradera, 47, was one of three jurors who chose to speak to the public after their recommendation of the death sentence Wednesday afternoon. Because of the high-pro- file nature of the Couey trial, the group had been sequestered the past few weeks. With somber faces, the Miami-area residents have Please see . .'/Page 4A World stock markets take plunge Ripple effect Stock markets in Europe and Asia W all Street se o troubles at U.S. sub-prime lenders points. Foreign investors who bought 'declined again Wednesday, a day Wa &eet SeU-o and lackluster retail sales pushed the up stocks during the recent rally led after the Dow Jones industrial S 1 1 , . Dow Jones industrials down nearly 2 the selling, traders said. average fell by. nearly 2 percent. jis gwoaijtters Associated Press TOKYO - Asian stocks plunged Wednesday and European shares opened sharply lower after Wall Street. chalked its second-biggest point drop in four years and rattled already nervous markets worldwide. The tumble came just as' interna- tional markets were recovering in recent days from sharp declines in early March amid concerns about overvalued stock prices and slower U.S. economic growth. But those worries resurfaced as percent Tuesday, sparking selloffs across Asia. Stocks in Japan, Hong Kong, Malaysia, India and Australia all fell more than 2 percent, while shares in Singapore and the Philippines tumbled at least 3 I Wa percent. cov In Europe, London's FTSE pA I I e G Hong Kong's Hang Seng, index tell 2.6 percent, Indian stocks dropped 3.1 percent, while Philippine stocks plunged 3.4 percent. Overnight, the Dow fell 242.66, or 1.97 percent, to 12,075.96 Street amid concerns about prob- rage lems at U.S. sub-prime E 13A lenders, who provide mort- : gages to people with poor credit. The U.S. Commerce Department also said sales at retail- ers rose a less-than-expected 0.1 per- cent in February, suggesting con- sumer spending might be waning . "The U.S. sub-prime concern has Please see . /Page 7A Percent change since Feb. 26 � 4" FTSE . 1 " .(U.K.) : 9; -6.70% -3 |L - - -5 -6 7 DAX Nikkei -8 (Germany) / * (Japan) -8.301 -BA% -9% -8.3 ... ............ M TWTh F MTWThF MTW February March 14 SOURCE: Thomson Financial I X Annie's Mailbox ... 4C W Comics .... .. ..5C SCrossword ....... 4C z Editorial ........ 14A SHoroscope ....... 5C Movies .......... 5C Obituaries .......6A Stocks . ....... 12A SThree Sections 6II 147811U1110021111 Put on the green Things looking up? A new car? No, an Emmy Soon-to-be retired game show host Bob Barker is among the nominees announced for the Daytime Emmy's./lC Go green St. Patrick's Day with food :color- ing ar.n great recipes 1C Signs of progress in Iraq, but military offi- cials wary of predicting victory./16A Click here for fun - it's affordable * Ad firm says county should use the Web to pro- mote its value attractions./3A * Gov. Crist weighs in on teen's death at boot camp./3A * Man jailed after pool hall fight,/3A 'i 'tL~t '' 3~3; WA Officials will vie for spot in Senate Though Senate seat filled it's drawing plenty of interest MIKE WRIGHT mwright@chronicleonline.com Chronicle Not only is Sen. Nancy Argenziano's Senate seat warm, it's still occupied. That hasn't stopped three promi- nent Republicans for lining up for a spe- cial election to replace Argenziano i is she is named to .1, the Public Service Commission. Reps. Charlie Dean of Inverness and Dennis Baxley Charlie Dean, of Ocala plan to run top, and Den- for the Senate nis Baxley, District 3 seat in a bottom, will special election, if vie for Nancy there is one. Argenziano's Crystal River spot if she attorney Richard resigns. Corcoran, who lost a lopsided race to Argenziano in a Republican primary in 1998 for the House of Representatives, quit his job this week as top aide to the speaker of the House so he could start raising money for a special election campaign. For Dean, just being a candidate Please see OFFICIALi/Page 7A Authorities: Man uses car in attempt to settle dispute KHUoNG PHAN kphan@chronicleonline.com Chronicle Rather than settle a debt by hand- ing over cash or writing a personal check, a Homosassa man was accused of trying to run another man over with a car earlier this month. According to a Citrus County Sheriff's Office report, on March 2 deputies were dispatched to a call in reference to a man beingrun over by a car At the scene, the n4an told them that Richard Wayne McKinstry Jr, 31, had called him to say that he was on his way over to beat him. McKinstry report- edly asked the man to meet him in the roadway so he could pay the man the $60 Richard he owed him. McKinstry Approximately his bond set five minutes after at $5,000. the call, the man claimed that McKinstry drove down the street and directly into the back yard in which he was standing. McKinstry reportedly was traveling at a speed of 30 to 35 mph. The man tried to jump out of the way of the car, but was instead struck on his right side and sent to the ground. He claimed that McKinstry again threatened to beat him and exited the car holding a crowbar. Witnesses at the scene told Please see DISPUTE/Page 7A � � gfA % H R~SDAY, i sJR(1 7 207 NL::),EN Cms oU7Y(F) HRNIL Florid E OTT-ERIES Here are the winning numbers selected Wednesday in the Florida Lottery: CASH 3 8-1-2 PLAY 4 7-1-9-8 LOTTO 5 - 7 - 25- 36- 38 - 50 FANTASY 5 8 8-16-33 -34-36 TUESDAY, MARCH 13 Cash 3: 9 - 0 Play 4: 7 - 5 - 8 - 3 Fantasy 5: 8 -12 - 26 - 28 - 34 5-of-5 2 winners 4-of-5 122 3-of-5 10,489 Mega Money: 2 -16 - 31 Mega Ball: 3 4-of-4 MB No winner $123,594.52 $326 $0.50 ' -43 4-of-4 9 $3,233 3-of-4 MB 68 $935.50 3-of-4 1,528 $124 2-of-4 MB 2,238 $59.50 2-of-4 48,942 . $4 1-of-4 MB 21,061 $6.50 MONDAY, MARCH 12 Cash 3: 5- 8 - 0 Play 4:4 - 3 - 0 - 5 Fantasy 5:14 - 16 - 23 - 26 - 31 5-of-5 2 winners $120,889.46 4-of-5 388 $100.50 3-of-5 9,954 $10.50 SUNDAY, MARCH 11 Cash 3:7-7-0 Play 4: 3 -1 - 3 - 9 Fantasy-5:19 - 20 - 21 - 27 - 32 5-of-5 2 winners $101,428.12 4-of-5 222 $147 3-of-5 7,915 $11.50 SATURDAY, MARCH 10 Cash 3: 8- 0 - 2 Play 4:5 - 5 - 8 - 6 Fantasy 5: 15 -16 - 21 - 33 - 34 5-of-5 2 winners $150,750.98 4-of-5 355 $136.50 3-of-5 11,325 $12 Lotto: 19-22 -29 -36 -48- 50 6-of-6 No winner 5-of-6 57 $7,555.50 4-of-6 4,984 $70. 3-of-6 90,467 $5 FRIDAY, MARCH 9 Cash 3: 7 --1 - 0 Play 4: 2 -0 - 4 - 9 Fantasy 5: 3 - 6 -13 - 26 - 29 5-of-5 2 winners $141,358.29 4-of-5 437 $104 3-of-5 12,915 $9.50 Mega Money: 15 -16 -17 -23 INSIDE THE NUMBERS * To verify the accuracy of winning lottery numbers, players should double check the numbers' printed aboje with numbers officially posted by the Florida Lottery. On the Web, go to .com; by telephone, call (850) 487-7777. 'Guiding Light' shines dent of the National Television Academy. It's not a judgment that the network morning shows are no longer news pro- grams, tro- phy against Alex Trebek of 'Jeopardy!," Pat Sajak of "Wheel of Fortune" and Ben Bailey of Discovery's "Cash Cab." His 17 previous honors include a life- time achievement award. It may not be his last chance to win, either; since the awards work on a calendar year basis, he would be eligible again in 2008 for his par- tial year as host in 2007. "Sesame Street," "The Ellen DeGeneres Show" and "The Young and the Restless" each got 12 nominations. Two "Guiding Light" cast members, Spotlight on PERSONALITIES Lohan's father out ofprison Associated Press Lohan had been jailed sin June 30, 2005, for attempted NEW YORK - The assault and other charges. estranged father of actress The attempted assault Lindsay Lohan has been charge stemmed from an released from a New York attack on his brother-in-law state prison after serving a party. almost two years for driving While awaiting sentencing while intoxicated and other he was charged with driving charges, according to news while intoxicated and aggra- reports. vated unlicensed operation Michael Lohan said now a motor vehicle when his ca that he is a went off the road. His car. free man, he struck a pole and was wants to repair engulfed in flames. Lohan his unsteady wasn't hurt. relationship Lohan told Newsday that with his 20- while he was in prison, he year-old went to Bible college and daughter. "I'm became a minister with the going to wait, Assemblies of God Ministry. and when she want to help people," he saii sees I'm walk- Michael "I don't want them to fall int ing the walk, Lohan the same traps I did." I'm hopeful she'll open the door," he told Jolie set for adoption Newsday in Wednesday's edi- of Vietnamese boy tions. He was released from HO CHI MINH CITY, Collins Correctional Facility Vietnam - Angelina Jolie near Buffalo on Tuesday, arrived in Vietnam late Linda Foglia, a spokeswoman Wednesday night, where she for the state Department of plans to adopt a 3-year-old b Corrections, told CBS Airport security officials Interactive. told a photographer working ice at g, I- of r "I d. o )n boy. for The Associated Press that Jolie was whisked into a car and driven away. The actress was expected to attend an adoption ceremony with Vietnamese officials in Ho Chi Minh City on Thursday morning, according to adop- tion officials, speaking on con- dition of anonymity because they were not authorized to talk about the matter. After she receives the child, Jolie will meet with U.S. con- sular officials, who must review the adoption before a passport can be issued for the" boy. If all goes according to plan, Jolie could bring the child home by the weekend, officials said. A message left early Angelina Wednesday for Jolie a Jolie repre- sentative in Los Angeles wasn't immediately returned. The boy has been living at the Tam Binh orphanage out- side of Ho Chi Minh City. Toda in HISTORY= CBS soap leads with 17Emmy nominations Associated Press NEW nomi- nations will be announced in April. "There's so much talk and feature mate- rial on the morning shows that has never been recognized," said Peter Price, presi- The weather REPORT CITRUS COUNTY WEATHER 0.00 81 54 0.00 to our readers oy The Weather Channel City H L F'cast City H L F'cast Daytona Bch. 77 62 tstrm Miami 82 71 ptcldy Ft. Lauderdale 81 68 ptcldy Ocala 79 61 tstrm Fort Myers 85 66 ptcldy Orlando 81 64 tstrm Gainesville 79 63 tstrm Pensacola 69 61 tstrm J-omestead 82 64 ptcldy Sarasota 80 65 ptcldy Jacksonville 78 61 tstrm Tallahassee 75 62 tstrm Key West 81 72 tstrm Tampa 81 65 ptcldy Lakeland 81 63 tstrm Vero Beach 79 66 ptcldy Melbourne 78 66 tstrm W. Palm Bch. 80 70 ptcldy Southeast winds from 10 to 15 knots. Seas Gulf water 1 to 3 feet. Bay and inland waters will have tem perature a moderate chop. Partly sunny with isolated showers and thunderstorms possible in the afternoon. Taken at Egmont Key Location Tues. Wed. Full Withlacoochee at Holder 28.03 27.98 35.52 Tsala Apopka-Hernando 35.25 35.23 39.25, Tsala Apopka-lnverness 35.81 35.80 40.60 Tsala Apopka-Floral City 36.24 36.23 2:43 a/12:10 p 5:15 p/- 3:57 a/12:02 a 5:42 p/12:56 p Crystal River 1:04 a/9:32 a 3:36 p/9:24 p 2:18 a/10:18 a 4:03 p/10:16 p Withlacoochee 1:23 p/7:20 a -- /7:12p 12:05 a/8:06 a 1:50 p/8:04 p Homosassa 1:53 a/11:09 a 4:25 p/11:01 p 3:07 a/11:55 a 4:52 p/11:53 p FOUR DAY OUTLOOK TODAY Exclusive daily forecast by: High: 79 Low: 61 '4j Isolated showers or thunderstorms. FRIDAY High: 77 Low: 60 Showers and thunderstorms likely. SATURDAY High: 74 Low: 49 . Thunderstorms diminishing, with partial ... .._.-, clearing late. SUNDAY High: 67 Low: 47 Mostly sunny and cooler. TEMPERATURE* Wednesday Record Normal Mean temp. Departure from mean PRECIPITATION* Wednesday Total for the month Total for the year Normal for the year 80/53 89/31 55/78 67 +1 0.00 in. 1.11 in. 4.75 in. 8.46 in. "As of 6 p.m.from Hernando County Airport UV INDEX: 8 0-2 minimal, 3-4 low, 5-6 moder- ate, 7-9 high, 10+ very high BAROMETRIC PRESSURE Wednesday at 3 p.m. 30.15 in. DEW POINT Wednesday at 3 p.m. 51 HUMIDITY Wednesday at 3 p.m. 38% POLLEN COUNT** Trees and grasses were heavy and weeds were absent. "Light - only extreme allergic will show symp- toms, moderate - most allergic will experience symptoms, heavy - all allergic will experience symptoms. AIR QUALITY Wednesday was good with pollutants mainly ozone. O ' i SUNSET TONIGHT............................ 7:39 P.M. SUNRISE TOMORROW.....................7:39 A.M. S0 (1_ J MOONRISE TODAY ..........................5:22 A.M. MARCHl18 MAlCH5 il PRIL2 APRIL10 MOONSET TODAY .......................... 4:02 P.M. R.a ^ ^ a~i'UI2 ____________________ DATE DAY MINOR MAJOR MINOR MAJOR (MORNING) (AFTERNOON) 3/15 THURSDAY 2:05 8:19 2:33 8:47 3/16 FRIDAY 2:55 9:08 3:22 9:35 Today's Fire Danger Rating is: HIGH. There is no burn ban. For more information call Florida Division of Forestry at (352) 754-6777. For more Information on drought conditions, please visit the Division of Forestry's Web site: O. FORECAST FOR 3:00 P.M. THURSDAY Wednesday Thursday City H L Pcp. Fcst H L Albany 65 47 .02 shwrs 44 25 Albuquerque 79 43 sunny 75 38 Anchorage 10 -1 ptcldy 21 11 Asheville 75 48 .01 tstrm 69 50 Atlanta 78 60 tstrm 73 55 Atlantic City 66 47 tstrm 62 42 Austin 63 52 .02 sunny 82 56 Baltimore 83 42 tstrm 73 39 Billings 50 28 .17 ptcldy 49 27 Birmingham 82 61 tstrm 75 56 Boise 60 44 ptcldy 61 37 Boston. 68 45 tstrm 56 33 Brownsville 83 70 ptcldy 88 67 Buffalo 60 48 .16 rn/sn 39 27 Burlington, VT 55 48 .15 snow 41 22 Charleston, SC 82 57 cldy 74 61 Charleston, WV 76 54 .50 tstrm 66 41 Charlotte 80 52 tstrm 80 57 Chicago 62 42 ptcldy 40 29 Cincinnati 77 58 .16 rain 59 36 Cleveland 67 57 .33 shwrs 43 28 Columbia, SC 79 53 tstrm 80 61 'Columbus, OH 72 57 .44 shwrs 49 34 Concord 74 40 shwrs 45 26 Corpus Christi 80 61 .02 ptcldy 81 66 Dallas 74 54 sunny 82 48 Denver 61 39 cidy 51 30 Des Moines 61 41 ptcldy 43 28 Detroit 67 54 .11 shwrs 42 29 El Paso 85 65 sunny 84 49 Evansville 71 60 .63 tstrm 66 40 Harrisburg 77 42 rain 60 40 Hartford 66 40 tstrm 55 33 Honolulu 74 66 .03 shwrs 79 68 Houston 66 601.33 ptcldy 79 59 Indianapolis 77 61 .05 shwrs 53 33 Jackson 79 59 tstrm 74 55 Kansas City 78 54 shwrs 54 30 Las Vegas 89 61 sunny 86 60 Little Rock 68 60 .24 tstrm 73 46 Los Angeles 64 56 sunny 68 57 Louisville 76 60 .66 tstrm 66 45 Memphis 80 62 tstrm 70 50 Milwaukee 61 38 ptcldy 36 26 .Minneapolis '43 38 snow 39 24 Mobile 76 64 .02 tstrm 71 60 Montgomery '82 59 tstrm 73 59 Nashville 77 66 tstrm 68 48 Wednesday Thursday City H L Pcp. Fcst H L New Orleans 74 64 .08 tstrm 75 59 New York City 70 49 tstrm 63 35 Norfolk 81 56 cldy 80 55 Oklahoma City 73 51 ptcldy 75 39 Omaha 56 41 ptcldy 49 29 Palm Springs .93 60 sunny 88 59 Philadelphia 79 46 ., tstrm 68 43 Phoenix 91 59 sunny 91 60 Pittsburgh 63 57 .10 rain 49 33 Portland, ME 59 41 shwrs 46 28 Portland, Ore 53 43 .01 ptcldy 61 39 Providence 67 40 tstrm 57 31 Raleigh 81 54 cldy. 81 58 Rapid City 43 35 .10 ptcldy 44 24 Reno 73 40 sunny 70 35 Rochester 62 55 .02 rn/sn 41 25 Sacramento 74 50 sunny 78 49 St. Louis 71 61 .01 shwrs 60 36 St. Ste. Marie 40 34 sunny 31 7 Salt Lake City 68 42 ptcldy 55 36 San Antonio 73 55 sunny 82 61 San Diego 63 54 sunny 66 57 San Francisco 61 49 sunny 66 51 Savannah 82 58 tstrm 77 60 Seattle 48 38 .01 ptcldy 52 39 Spokane 46 32 ptcldy 51 32 Syracuse 61 51 .32 rn/sn 43 27 Topeka 79 49 shwrs 55 31 Washington 81 50 tstrm 76 42 YESTERDAY'S NATIONAL HIGH & LOW HIGH 94 Needles, Calif. LOW 9 Hallock, Minn. 8M|H|TOHNrtNIM THURSDAY CITY H/L/SKY Acapulco 92/71/pc Amsterdam 52/37/s Athens 60/47/s Beijing 48/39/c Berlin 53/35/pc Bermuda 67/55/s Cairo 59/45/sh Calgary 37/26/pc Havana 83/67/ts Hong Kong 82/71/pc Jerusalem 62/47/sh Lisbon London Madrid Mexico City Montreal Moscow Paris Rio Rome Sydney Tokyo Toronto Warsaw 48/36/pc 63/46/c 53/39/pc 80/56/ts 38/26/pc 42/31/s 59/43/s 87/75/pc 39/27/rs 83/65/s 56/44/pc 39/27/c 45/32/pc KEY TO CONDITIONS: c=cloudy; dr=drizzle; f=fair; h=hazy; pc=partly cloudy; r=raln; rs=rain/snow mix; s=sunny; sh=showers; sn=snow; ts=thunderstorms; w=wlndy. @2007 Weather Central, Madison, Wi. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ., . . -' Wish granted Associated Press In this handout photo from Frito-Lay, country music star Tim McGraw performs for 11 year old Make-A-Wish child Taylor Hobson, from Bryan, Texas, on Wednesday after granting Hobson's wish to meet him, at a live private performance in New York. The company has promised to make contributions to the Make-a-Wish Foundation. THE NATION - I I-`-~^---------`-~----~~s~~~-- -- ~~~~~~'------ i 111~ �1~-*-~-~�111111~--~I CITRUS COUNTY (FL) CHRONICLE 2aTHURSDAY.v MARCH 15. 2007 A ENTERTrIxMEI-NT Today is Thursday, March 15, the 74th day of 2007. There are 291 days left in the year. This is Buzzard Day in Hinckley, Ohio. Today's Highlight in History: On March 15, 44 B.C., Roman dictator Julius Caesar was assas- sinated bom in Waxhaw, S.C. In 1820, Maine became the 23rd state. In 1913, President Wilson held the first open presidential news conference. In 1919, the American Legion was founded, in Paris. In 1944, during World War II, Allied bombers again raided German-held Monte Cassino. In 1956, the Lerner and Loewe musical play "My Fair Lady" opened on Broadway. In 1964, Elizabeth Taylor mar- ried Richard Burton in Montreal; it was her fifth marriage, his second. In 1975, Shipping magnate Aristotle Onassis died near Paris at age 69. In 1977, the U.S. House of Representatives began a 90-day test to determine the feasibility of showing its sessions on television. Ten years ago: President Clinton spent a second day at Bethesda Naval Medical Center, recuperating from surgery for a partially tom knee tendon. Five years ago: A Houston jury spared Andrea Yates' life after prosecutors stopped short of demanding the death penalty for the mother who'd drowned her five children in the bathtub. One year ago: Saddam Hussein, testifying for the first time in his trial, called on Iraqis to stop killing each other and instead fight U.S. troops; the judge reprimand- ed him for making a rambling, political speech and ordered the TV cameras switched off. Today's Birthdays: Country singer Carl Smith is 80. Supreme Court Justice Ruth Bader Ginsburg is 74. Singer Mike Love (The Beach Boys) is 66. Rock singer-musician Howard Scott (War) is 61. Model Fabio is 46. , Actress Eva Longoria is 32.,. - Thought for Today: "Sometimes it's worse to win a fight than to lose." - Billie Holiday, American singer (1915-1959). .-. ,.- I I r * --.. -- 3A 'r ,'RSDAY MARCH 15, 2007 �- ~-g �; 4-? 9'~ ' .,�~� I~t '2.& & g�~ >:� Yd�W'. Crist: Pay family of dead teen Associated Press TAMPA - Gov. Charlie Crist said Wednesday he would sup- port a $5 million state payment to the family of a teenager who died last year after he was manhandled by juvenile boot camp guards. Crist's comments came hours after prosecutors released 20,000 pages of evidence, including an expert's report that says seven guards engaged ON THE WEB 0 Click first, then visit Tourism site promotes county MIKE WRIGHT wright@ chronicleonline.com Chronicle Citrus County's tourism mar- keting theme goes something like this: Promote it, and they will come. The -county's Tourism Development " Council "hn Wednesday: heard front Keith Gold, president of Gold & Associates Inc., the Ponte Vedra Beach-based advertis- ing and promotions consultant The plan is to advertise Citrus County's diversity, from kayaking to a destiny for I motorcy- clists, as a don't way to entice visitors. think o n c e enticed, Gold we're said, visitors will find over- other activi- ties to keep priced at them attract- all. ed. a.. "They may, not know we have other things to do," Keith Gold Gold said. on county tourst Much of that interest comes from Citrus County's tourism Web page that now includes ways to search for topics within the Web site itself. Gold said Citrus County is considered a tourist value in overnight stays, especially when compared to Florida's mega tourist spots like Orlando or Key West "People are interested in a value and they perceive us to be a value," he said. "I don't think we're overpriced at all. Perhaps we're not pushing that enough as a message." in "abusive and inhumane" behavior when they struck Martin Lee Anderson with fists and knees, repeatedly took him to the ground and held ammo- nia capsules under his nose. The guards and a nurse who watched have been charged with manslaughter. The family had been suing for $40 million, but said in a let- ter to Crist that a $10 million payment would be a fair reso- lution - half from the state and half from Bay County, which ran the camp. "I think it's real important that the state do the right thing, and I think the right thing to do is honor their more-than-rea- sonable request. Justice delayed is justice denied," Crist said in Tallahassee. The payment would have to be approved by the Legislature. The evidence released by prosecutors included a NASA- enhanced videotape of the incident that more clearly shows the guards striking the 14-year-old boy, bending his wrists backward, hauling him to his feet and knees and pin- ning him face down on the ground at the now-closed sher- iff's boot camp in Panama City. Anderson had just arrived at the camp for violating proba- tion after trespassing at a school and stealing his grand- mother's car from a church parking lot. BRIAN LaPETER/Chronicle Charles Franklin scales a tower Wednesday in Meadowcrest near Crystal River. He is begin- ning the process of removing the tower for the owner of the office complex. Robbery suspect look familiar? ,, , . , r, , Special to the Chronicle Early on Sunday, Feb. 25, around 1:50 a.m., the white male pictured in these surveil- lance photos robbed the Kangaroo convenience store at 8486 N. Carl G. Rose Highway (at the intersection of State Road 200 and County Road 39). The lone suspect entered the store prior to the robbery and went to the cooler to get a can of Mountain Dew, which he paid for. He proceeded to wait inside the store until all the other customers left. The suspect then app- roached the counter and told the female clerk to open the register and give him the money According to the clerk, M ; I j .' p -,' Courtesy of the Citrus County Sheriffs Office The man pictured in this sur- veillance video is a suspect in a robbery at the Kangaroo con- venience store at the intersec- tion of State Road 200 and County Road 39 around 1:50 a.m. Sunday, Feb. 25. the man never displayed a weapon, but told her he had a gun. She handed over a small amount of cash, and the sus- pect left the store on foot trav- eling in an unknown direction. Deputies searched the sur- rounding area and notified *: Marion County authorities about the robbery, too. Crime scene technicians processed the scene for all physical evi- dence. The suspect's physical description was sent out to all deputies to be on the lookout K-9 units attempted to track the subject, but with negative results. Anyone who recognizes the man in these photos is asked to call Detective Lee Alexander at 726-4488, Ext. 338. Or to remain anonymous, call the sheriff's crime tips line at (888) 269-8477. The death led to the disman- tling of the state's juvenile boot camp system and the resigna- tion of the Florida Department of Law Enforcement's director. The guards and nurse have pleaded not guilty. The evidence released Wednesday included a report by Steve Martin, a Texas prison expert hired by prosecutors to review Anderson's death. He called the guards' actions "fla- grant abuse." Teeth become evidence following brawl at pool hall Homosassa man jailed; no bond KHUONG PHAN kphan@chronicleonline.com Chronicle A Homosassa man was arrested early Wednesday morning after he bashed another man in the mouth with a pool cue. According to a Citrus County Sheriff's report, at 12:21 a.m. deputies were dispatched to Jake's Bar and Grill in Homosassa, where they found a man kneeling on the ground with a pool of blood in front of him. There was a broken pool cue on top of a nearby table. The man was bleeding from his mouth and told deputies that he and Michael Lynn James, 41, had been playing pool and then got into an argu- ment that resulted in James breaking the pool cue across the man's face. In the report, witnesses cor- roborated that both men had been in an argument and a physical altercation. Deputies collected two of the man's teeth - which had been knocked out in the attack - to be used as evidence. The bar's employees knew James and directed deputies to his house. James' wife met the deputies and reportedly told them that her husband had just come from the bar, intoxicated and "bragging" that he had just hit the other man in the face with a pool cue, the report notes. James told deputies that he and the man had been involved in an altercation, at which time he was arrested. During the drive' to the county jail, James spontaneously made statements that the other man had insulted his wife and that he had "just lost it." James was charged with aggravated battery with a deadly weapon. At the time of this arrest, he was already on felony probation for cocaine possession, so no bond was set Accreditation agency seeks input on Sheriffs Office Special to the Chronicle The Citrus County Sheriff's Office is pursuing national accreditation for law enforce- ment services through the Commission on Accreditation for Law Enforcement Agencies (CALEA). The agency also is seeking state reaccreditation through the Commission for Florida Law Enforcement Accreditation (CFA). From Sunday to Wednesday, March 28, the Sheriff's Office will undergo an on-site assess- ment in keeping with its bid for CALEA accreditation. Starting at 9 a.m. on Sunday at the Inverness Airport, the agency will set up a static dis- play of all its equipment and specialty units for inspection by the assessors and general public. Included will be the Sheriff's Office helicopter, a patrol vehicle, K-9 unit, boat, traffic unit, motorcycle, Crime Watch vehicle and Filtering Out Crime United with Students (FOCUS) car. Sheriff's Office personnel will be on hand to answer questions and clarify for assessors the law enforcement elements associated with the use and application of this equipment. Also as part of this on-site assessment, there will be an opportunity for public com- ment from 1 to 5 p.m. Monday, by calling 341-5299. A member of the CALEA assessment team, who will personally lis- ten to callers' comments regarding the Sheriff's Office law enforcement operations, will be answering this local telephone number. Residents also are invited to attend a public hearing start- ing at 6 p.m. Monday. The assessors will take comments from the public at the Lecanto Government Building, Room 166, on Saunders Way, until the last person speaks. Comments at the hearing or by telephone will be restricted to five minutes in length and should address the agency's ability to comply with CALEA law enforcement standards. To review a copy of the requisite standards, contact the Sheriff's Office,public information offi- cei, Gail"Tierney, at 726-4488, Ext. 311. Anyone wishing to submit written comments about the ability of the Sheriff's Office to meet CALEA standards may send them to CALEA, 10302 Eaton Place, Suite 100, Fairfax, VA 22030-2215. Because the Sheriff's Office elected to pursue both state and national accreditation through a process called com- parative compliance, there will be only one on-site assessment for both CALEA and CFA. It should be noted that there are more than 40 Florida-specific standards that are not included in CALEA, but are part of CFA's reaccreditation requirements. During the four days they'll be here, the assessors will review written policies and procedures, conduct inter- views with agency personnel and tour facilities where com- pliance with CALEA standards may be observed. A strong proponent of the accreditation process, Sheriff Jeff Dawsy believes national accreditation is vital to the Citrus County Sheriff's Office because it increases the com- munity's confidence in its pub- lic safety communications and law enforcement officers. Count -.4 S Mining setback to be considered today The Citrus County Planning and Development Review Board will consider an ordinance today prohibiting new or expanding mines from operating within 3,000 feet of the nearest resi- dence. Supporters of the ordinance live mostly in the area north of the Inglis Quarry. The limestone mine is owned by Dixie Hollins and operated by Cemex. Hollins and Cemex say the ordinance is unreasonable. The public hearing is set to begin at 9 a.m. Planning board' members are expected to make a recommendation to the county commission on whether to establish the setback. The set- back issue is first on the plan- ning board's agenda. - From staff reports State BRIEFS, Teacher arrested on porn charges LAKELAND -A high school teacher was arrested for pos- session of child pornography after a student found his portable memory drive in a school computer lab, authorities reported. Mark James Mason, 47, of Winter Haven, acknowledged that he owned the thumb drive and used it to download images of naked boys, according to a release from the Polk County Sheriff's Office. The boys appear to range in age from 5 to 12 years old. The sheriff's office began its investigation after a student found the drive in a computer lab at Santa Fe Catholic High School and turned it over to the principal, the sheriffs office reported. Deputies executed a search warrant of Mason's home on Tuesday and seized other com- puter equipment. More charges could follow depending on the outcome of the search. Mason teaches computers and health at the private school. He also is the track coach. Mason was arrested Tuesday afternoon, and his bond was set at $15,000. Man found guilty in carrier's death FORT PIERCE -Ajury on Wednesday found a man guilty of first-degree murder in the 2005 fatal shooting of a news- paper delivery man. Steven Hayward, 38, was convicted after three hours of deliberation for the death of Daniel DeStefano, 32. Hayward also was found guilty on charges of armed robbery, armed burglary and possession of a firearm by a convicted felon. DeStefano was delivering copies of The Tribune to busi- nesses on his Fort Pierce route Feb 1, 2005, when a man wear- ing a stocking cap over his face approached tiim and demanded money, authorities said. DeStefano, who died the fol-' lowing day, was shot at least twice, police said. Teen is eighth fatality of Bike Week DAYTONA BEACH -A 19-. year-old college student has died from injures sustained in a crash this weekend, making him the eighth Bike Week death, police said Wednesday. Brandon K. Long died Monday, a day after he attempt- ed to make a left tum and his motorcycle collided with a car, police said. The driver of the car, Majorie Hendrick, 72, South Daytona, was not injured. Long was a student at Embry- Riddle Aeronautical University. The other deaths were five - people killed in Volusia County and a St. Petersburg couple. - From wire reports Correction Due to photographer error, Miles Underhill's name was mis- spelled in a photo caption on page B1 of the Wednesday paper. The Chronicle regrets the error. - . - ""- .,- CITRUS COUNTY (FL) CHRONICLE .4 A T H Ur Sn AV Y M A R C H 1 5 . 2 0 0 7 SPolice connect jailed man in sex attacks JACKSONVILLE - DNA evi- Sdence connects a jailed inmate to :what detectives believe was a six- year series of sexual attacks on :prostitutes and homeless women, police said. Blood on a tpx cutter that police Seized from Tracy Devon Newton's Gcar during a February traffic stop matched the DNA of a prostitute critically injured on Jan. 12, after :someone slashed her throat, police :said. SPolice re-arrested Newton, 29, ' at a Duval County jail Tuesday, State BRIEFS booking him on a charge of aggra- vated battery with a deadly weapon. He has been in jail since Feb. 13, when police charged the con- victed felon with possession of the weapon after finding the box cutter beneath the floor mat of his car. He told police he owned the cutter, but said he never cut anyone with it. Newton has been the focus of the rape investigation for weeks as police await for tests results on a large amount of evidence sent to the state crime lab. Newton was being held on $50,000 bond. Utility worker hit by vehicle, dies MIRAMAR -A city worker replacing a water pipe was struck by a construction vehicle and died Wednesday, authorities said. The 53-year-old man was work- ing with a city crew in front of a home when he was struck with the backhoe about 10:30 a.m., police spokesman Bill Robertson said. Authorities were investigating. Water use in the area was inter- rupted until about 1 p.m. - From wire reports Associated Press Mark Lunsford, left, father of Jessica Lunsford, is hugged by juror Marvin Gunn, facing camera, Wednesday outside the courthouse in Miami. The jury, on a 10-2 vote, recommended John Couey be put to death by lethal injection. Judge Ric Howard will make the final decision within the next month. JURORS Continued from Page 1A listened and watched as the evidence and arguments were presented by jurors. They saw the famous photo of little Jessie with her pink fuzzy hat They saw the photos of her Body after she had been raped, tied up and buried alive. Those photos will not pass away easily from 20-year-old Thais Prado's memory. "Those are pictures that are very alive in my mind," she said. Despite DNA evidence, fin- gerprints and testimony from several people saying Couey admitted to the crime, Prado said there were still intense discussions both when they found Couey guilty and decid- ed his ultimate fate. "We did have to discuss it It wasn't an easy decision," she said. "It's a person's life. It's very important" But in the end the 12-person panel found Couey guilty and recommended a sentence of death by lethal injection. Just before jurors Pradera, Prado and Marvin Gunn talked with reporters about their experience, they saw Mark Lunsford outside the Miami courthouse steps. Each shook Lunsford's hand and embraced him. Prado cried a little and told Lunsford to continue being strong. They later all took a pic- ture together Gunn, 38, said serving on the jury was a positive experience. He said he treated some of the evidence like he was watching a horror flick to distance him- self a bit. Each explained that they carefully listened to defense lawyers and witnesses to hear evidence of Couey's mental retardation or other factors that would save him from the death penalty. They watched as Couey col- ored in a coloring book during proceedings. Prado said she couldn't decide if the act was natural or a show and dismissed the childlike behavior. The oddest part for her to see was a man on trial for his life that never showed expres- sions on his face or very much interest in what was going on. She said hearing Couey's vio- lent and unstable upbringing explained a little, but didn't sway her into believing his past could account for the kidnap- UilLTI |i'i TL UIF MbY [g [.'M EE 12201 W Colonial Dr., SR 50, Winter Garden, FL 866-482-7220 407-654-9437 * sunCOastrv.com Look What SJustPO9PPED^UP! ~ CHRONICLE COUPO-i KNIGHT NI Present this coupon at ticket booth for $2 off a Midway Armband during Chronicle Night at the Citrus County Fair SArmbands regularly priced at $20 '__~~~ ~ _ 1-- CHRONICLE NIG HT is OFF ,- MIDWAY ARMBAND1 A OFFER VAUD FOR $2 OFF A MIDWAY n E ARMBAND ON TUESDAY, MARCH 20. tr j j ping, rape and murder "It's an unforgivable act, but at the end of the day you under- stand this is someone with an unfortunate life," Prado said. "... but it's not an excuse." Gunn said he knew Couey was paying attention because he would comment to lawyers and listen with an earpiece to private bench conversations between lawyers and the judge. Gunn said the hardest thing for him is knowing Jessie was taken out of her home - out of her bed. "We've gotta make our kids more aware. Scream out, do anything," Gunn said. Like many people, the jurors said the trial left unanswered questions. "Of course we're never going to know exactly what hap- pened," Prado said. "Only one person knows." DEATH Continued from Page 1A County Sheriff's Office - con- gratulated each other, while others cried. "We all wanted Jessie to come home," Citrus County Sheriff Jeff Dawsy said. "That didn't happen. Jessie's name will now live on forever, and ever and ever" The jury started deliberating at 4 p.m. in the penalty phase for Couey, convicted last Wednesday of kidnapping, rap- ing and murder- ing Jessica. He was found guilty wanted on charges of premeditated to comT murder, kidnap- ping, sexual bat- That tery and burgla- ry happen Jessica's body was found j March 19, 2005, Citru buried in garbage bags behind Couey's mobile home. She had been missing about a month from her home, just 150 yards from where Couey lived. Couey was convicted of breaking into her home Feb. 24, 2005, taking her to his bedroom, holding her captive for a short time, raping her and then bury- ing her alive. Deliberations for his sentence recommendation began after testimony from two prosecution rebuttal witnesses, and closing arguments. Two medical professionals were brought to the stand to counter claims by Couey's attorneys that he suffers from mental illness. Tuesday's testi- mony from defense witnesses included statements that Couey has hallucinations and is delu- sional, and that he's mentally impaired. Harry McClaren, a forensics psychologist, testified for the state Wednesday that he con- ducted an evaluation of Couey's adaptive functioning, or how well a person interacts with others and adapts to com- mon life demands, he said. McClaren said that included talking to people who knew Couey, including family mem- bers, coworkers and others. "In my opinion, he was able to function at a level higher than would be expected of a person with mental limitation," McClaren stated. Physician Eric Cotton, direc- tor of the National PET Scan Center, analyzed a brain scan of Couey taken in June. Though defense witnesses testified Tuesday about abnormalities found in his brain - including a doctor saying those abnor- malities could lead to aggres- sion and hypersexual activity - Cotton had a different opin- ion. BLINDS WE'LL MEET OR BEAT ANY COMPETITORS PRICE* The Savings Are Yours Because The Factory Is Ours! S FAST DELIVERY PROFESSIONAL STAFF * In Home Consulting FValance% FREE Installation LECANTO -TREETOPS PLAZA * 1657 W.GULFTO LAKE HWY HOURS:MON.-FRI.9AM -5 PM 5 7 - I 2 TOLL FREE 1.877-746.0017 Eveningfnd ity*k n&dbyApplintm n - 0 0 | *n1na2 nwan ^ san>a>....r^nrit� mr fl ktc 4fi l I.M.TTM- r ITSTIME , W TO pCTA LLT R 'i Initial Termidor TO CALL THE I Treatment Save thousands of dollars in home New customers only. repairs by asking for Termidor Exp. March 30, 2007 .,, I - -- - - - fJI - -- S(3s52) 527 7100 �E 5 N. Melbourne St. * Beverly Hills, FL GUARANT vwwv.citruspestcom e-mail: cpminc897@earthlink.net COMPETITOR'S PRICES "My opinion was, it was nor- mal,' he said of Couey's brain activity. Jurors were told by Chief Assistant State Attorney Ric Ridgway during closing state- ments that the defense didn't reasonably establish Couey has a mental illness. He described Couey's killing of Jessica as "Evil...it's the only word that comes close." Before concluding, he asked jurors, "If this is not the case that calls for the death penalty, what does?" Assistant Public Defender Alan Fanter said while no one We all should die like Jessica Lunsford d Jessie did, "Revenge is not justice in our e home. system." Talking of didn't Couey's report- edly troubled I. and abusive childhood, eff Dawsy Fanter asked s County sheriff, jurors to spare Couey's life, "a life worth saving," by asking that he be sentenced to life in prison. "Give him the opportunities he never had." Circuit Judge Ric Howard has scheduled a March 22 court appearance to consider evidence before ruling if Couey should be executed by lethal injection. Several jurors talked to reporters about the case before returning to the hotel they had been sequestered in since the trial began March 1. Thais Pardo, a 20-year-old technical support specialist for the Miami-Dade public schools system, said it was difficult to reach the verdict and to recom- mend a death sentence. However, she said the jury followed the law and weighed all evidence. r C I T R U S For the RECORD Citrus County Sheriff Arrests * Cecil M. Beasley, 48, 7560 W. Mesa, Homosassa, at 9:18 p.m. Wednesday on charges of marijua- na possession and possession of drug paraphernalia. He was released on his own recognizance. * Deritha E. Fowler, 36, 8786 N. Presnell, Dunnellon, at -7:20 p.m. Wednesday on a charges of pos- session of a controlled substance, marijuana possession and posses- sion of drug paraphernalia. Bond was set at $6,000. * Everett Nichols II, 30, P.O. Box 770, Floral City, at 9:18 a.m. Wednesday on charges of marijua- na possession and possession of drug paraphernalia. He was released on his own recognizance. * Michael F. O'Brian, 41, at large, at 11:20 p.m. Wednesday on charges of burglary of a structure, petit theft and criminal mischief. According to the arrest report, O'Brian broken into the Homosassa Music store and attempted to steal a guitar. Bond was set at $5,500. GO ONLINE * Visit Online.com 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. * Have friends visit the cam- era at. cor while you're out at the springs in King's Bay. 0 U N T Y LH ONICL Florida's Best Community Newspaper Serving Floida's Best Communt To start your subscription: Call now for home delivery by our carriers: Citrus County: (352) 563-5655 Marion County: 1-888-85 or visit us on the Web at .html to subscribe. 13 wks.: $34.00* - 6 mos.: $59.50* - 1 year: $1( *Plus 6% Florida sales tax For home delivery by mail:lne.com Newsroom: newsdesk@chronicleonline.com Where to find us: Meadowcrest office Inverness office -44 T]: a g I " '- \. - . ," 1624 N. Meadowcrest Blvd. 106 W. Main St., Crystal River, FL 34429 Inverness, FL 34450 Beverly Hills office: Visitor 'f, I, - - - - - 3603 N. Lecanto Highway Beverly Hills, FL Who's In charge: Gerry Mulligan ...................... .................Publisher, 563 Charlie Brennan .................................... . Editor, 563 John Provost .................. Advertising/Marketing Director, 563 Neale Brennan ...... Promotions/Community Affairs Manager, 563 John Murphy ............................... Online Manager, 563 Jennifer Wall ............................. Classified Manager, 564 Tom Feeney ............................... Production Manager, 563 Kathie Stewart ............................. Circulation Director, 563 Jeff Gordon ............................... Business Manager, 564 Deborah Kamlot .................... Human Resources Director, 564 Trina Murphy .................. Director of Display Advertising, 563 Report a news tip: Opinion page questions .................... Charlie Brennan, 563 To have a photo taken ............. ...... Linda Johnson, 563 News and feature stories .......................... Mike Arnold, 564 Community/wire service conent ................. (382) 563-6363 POSTMASTER: Send address changes to: Citrus County Chronicle POST OFFICE BOX 1899, INVERNESS, FL 34451-1899 r 106 W. MAIN ST., INVERNESS, FL 34450 f $ PERIODICAL POSTAGE PAID AT INVERNESS, FL 4 SECOND CLASS PERMIT #114280 L Ity 2-2340 chronicle )5.00* 3 weeks y lay Friday nday Marion om 34451 80 m -3222 -3225 -3240 -6363 -3255 -2917 -3275 -5655 -2908 -2910 -3232 -3225 -5660 -2930 -5660 -3261 -0579 print .com T1* 1 IIJ LIb"AY, IVIAK(,H I::-, ZVV I ----1 r--m-l - E -1 --1 m UP � I werlolculs I vvooo noffIIIas - a"Utters - ql.F~aitul I1M�t I I Veritrc-als c &WoodBlinds eShuttersP.-leatI ll *i 1 I III� II . I I I I I r "~-t~*_ t R -I THU()SDII ISI)AY, MARCII 1.5, 2007 5A CITR US (COU,\,' 3(Fl.) CHRONICLE". .... .. The Five Star Edition of System with UV Light and InfinityT Air Purifier removes and kills more allergens. It kills bacteria, mold and viruses on the indoor coil. And it is the most energy-efficient heating & cooling system you can buy.* Call Senica your Factory Authorized Dealer today for all the details. * 1 Year 100% Satisfaction �i~r;~4 *. ,t, :.,, i' !IIA ].. .n i Jill *'- - * I S.. . , 5, -��tr }~;� Ct Guarantee * Daily Self-adjusting System * 25% Guaranteed Cooling Cost Savings * 10-Year Parts & Labor Guarantee * 10-Year Lightning Protection Guarantee * 10-Year Rust Proof Guarantee * Up To 30 Times More Moisture Removal Than A Standard Fan Coil * nditiloning, Inc State Lic# CFC57035 State Lic# CAC0082268 0 Infinity is a trademark of Carrier Corporation. See Factory authorized dealer for details on offer, guarantees and qualifying equipment. Five Star Edition is optional Offer ends 6/30/07. Homeowner occupants only 'Based on total energy costs calculated using ARI Standards 210/240-94, the DOE tests procedures (10 CFR, Part 430, Subpt B, appps M and N) and the FTC rep unit energy costs: $0 86/kWh and $0 91/therm (16 CFR�305 9) C�~i ,1 I\- . CIriuts (ColNTY (F;L) CHIRONICLI 6A TlURS',I)AY MARCH 15, 2007 Samuel Martinez Sr., 81 INVERNESS Samuel A. Martinez Sr, 81, Inverness, died Monday, March 12, 2007, at the Hernando- Pasco Hospice Citrus Care Center in Inverness. He was born April 21, 1925, in Puerto Rico to Antonio and Felicita (Vazquez) Martinez and moved to this area 29 years ago from Manhattan, N.Y. Mr Martinez was a retired apartment complex superin- tendent, a World War II Army veteran and a member of the First Hispanic Church of Inverness. In addition to his parents, he was preceded in death by three sisters, Sarah Auada, Theresa Acosta and Iris Zahariou, and one brother, Angel Martinez. Survivors include his wife, Sol Maria Martinez of Inverness; three children, Ellie DeJesus of Owens Mills, Md., Samuel A. Martinez Jr. of Selden, N.Y, and Zenaida Chinapen of Inverness; six sis- ters, Zenaida Martinez of Puerto Rico, Aida Caminiti of Patchogue, N.Y, Luz Camino of Puerto Rico, Maria Del-Aquila of Selden, N.Y, Martha Neofotistos of East North Port, N.Y, and Eliana Danin of Selden, N.Y; six grandchil- dren; four great-grandchil- dren; and numerous nephews and nieces. Brown Funeral Home and Crematory, Crystal River. Frederick Plummer, 86 ONTARIO, CANADA Frederick James Plummer, 86, Gamebridge, Ontario, Canada died Sunday, March 11, 2007, in Inverness. He was a seasonal resident Mr. Plummer was born Aug. 21,1920, in Quebec, Canada. He was a policeman and a veteran of the Canadian Army. He is survived by his daugh- ter, Beverly Jean Bottoms of Red Deer, Alberta, Canada. Hooper Funeral Home, Inverness. Click on- line.com to view archived local obituaries. Funeral NOTICE John Andrew Seaman. There will be a celebration of life service for John Andrew Seaman, 81, of Inverness, at 1 p.m. Wednesday, March 21, 2007, at the Heinz Funeral Home, 2507 Highway 44 West, Inverness, FL 34453, with the Hospice Chaplain Gerrit van den Thoorn presiding. In lieu of flowers, donations may be given to Hospice of Citrus County, PO. Box 641270, Beverly Hills, FL 34464. Deaths ELSEWHERE Edgar Baitzel, 51 OPERA DIRECTOR LOS ANGELES - Edgar Baitzel, who was wooed to the Los Angeles Opera six years ago by Placido Domingo and led the company to financial success as chief operating offi- cer, died Sunday. He was 51. Baitzel died of cancer at Cedars-Sinai Medical Center, opera company general direc- tors Domingo and Eli and Ed- ythe Broad announced Monday. It was Domingo who lured Baitzel to Los Angeles in 2001 as L.A. Opera director of oper- ations. In 2003, Baitzel became artistic director and in 2006 he was appointed chief operating officer. During his six-year tenure, the Los Angeles Opera went from 66 scheduled perform- ances in the 2001-02 season to the current 77. Roswell Brayton Jr., 55 RETAIL EXECUTIVE WOOLRICH, Pa. - Roswell Brayton Jr., the president and CEO of Woolrich Inc. who guid- ed the clothing company into new retail areas such as out- doors products, home furnish- ings and even bottled water, died Monday. He was 55. Brayton collapsed at Woolrich's headquarters and was rushed to Jersey Shore Hospital, but could not be revived, company marketing director Tim Joseph said Tuesday in a statement Brayton, a majority owner of the privately-held company, was a sixth-generation mem- ber After graduating from Harvard University in 1973, Brayton was drafted by the Boston Red Sox in the 10th round that year and spent four years playing professional baseball before returning to Woolrich. Maha Ghosananda, c. 70 BUDDHIST LEADER NORTHAMPTON, Mass. - Maha Ghosananda, a Nobel Peace Prize-nominated monk who rebuilt Buddhism in Cambodia after the fall of the Khmer Rouge, has died. Ghosananda, who lived in Leverett and Providence, R.I., was believed to be in his late 70s. He died Monday at Cooley Dickinson Hospital, said Chris- tina Trinchero, a hospital spokeswoman. Trinchero did not know the cause of death. The Cambodian monk lived in exile between 1975 and 1979, when the Khmer Rouge denounced Buddhism and killed nearly two million peo- ple through starvation, dis- ease, overwork and execution. Ghosananda was one of the first monks to return to Cambodia and train new Buddhist leaders after Pol Pot's regime was toppled by the Vietnamese in 1979. Ghosananda was elected a Supreme Cambodian Buddhist Patriarch by fellow Buddhist monks in 1988 for restoring Buddhism in the country. Funeral Home With Crematory GEORGE PAULDING, II Services: Thurs. 3/22 2:30pm - Florida National Cemetery RICHARD STRICKLAND Services: Wilson Funeral Home WILLIAM BARKLEY Viewing: Thurs. 1pm Service: Thurs. 2pm - Chapel Burial: Hills of Rest LLEWELYN SMITH Private Cremation Arrangements BEVERLY MARTIN Private Cremation Arrangements BEULAH WOVRIES Services: Marker & Heller Funeral Home Huber Heights, OH 726-8323 721. In Loving Memory 3 I would like to say a special "Thank You" to the following people for their expression of love after the loss of my S�husband, William "Bill" Foxworth. . , Gene & Leah Colegrove Diane & Davey Panuel S . John, Maggie, Cameron & Mauren & Brian Tambasco "Cheese" Murphy Linda Johnson & Patti Ray * Dee Peters Jill & StaffofFlower Basket * Mike & Cheri Harris * arol Condiff * Barbi & Dan Norekia Robin & Rachel Peake S"BILL" Hospice of Citrus County WILLIAM "BILL" ] u" o FOXWORTH L,-Y Tu Foxrt Family Owned Service WAS fricklanid Funeral Home and Crematory Since 1962 8 352-795-2678 * 1901 SE HwY. 19 * CRYSTAL RIVER, FL 34423 Google tightens online privacy Names, search requests will be harder to match Associated Press SAN FRANCISCO - Google Inc. is adopting new privacy measures to make it more diffi- cult to connect online search requests with the people mak- ing them - a move it believes could prevent showdowns with the government over the often sensitive data. Under revisions announced late Wednesday, Google prom- ised to wrap a cloak of anonymity around the vast amounts of information that the Mountain View-based company regularly collects about its mil- lions of users around the world. Google believes it can pro- vide more assurances of priva- cy addi- tional safeguards mark the first time that a major Internet search engine has spelled out precisely how long it will hold onto data that can reveal inti- mate details about a person's Web surfing habits. While Google will still retain reams of information about its Council gives tentative OK for Bush library SMU is leading candidate to host facility, think tank Associated P'rss DALLAS - A church council on Wednesday approved land on the campus of Southern Methodist University for George W. Bush's presidential library, complete with a partisan think tank The South Central Jurisdiction of the United Methodist Church voted 10-4 in favor of leasing the land, including 36 acres that now includes some dorms and a parking lot One council member, the Rev. Eddie Allsup of Lubbock, asked the school's president, R. Gerald Turner, whether the presidential complex had to include the private institute aimed at furthering Bush's views "It's a package deal," Turner said. "It's enormously valuable." Another member, Gil Hanke of Naco- gdoches, asked whether SMU's accredi- tation would be hurt by its association with the partisan institute, which will be run by a private foundation. Turner said no. The institute has drawn criticism from some faculty members. The project would also include a museum. The alma mater of first lady Laura Bush became the apparent front-runner in the library competition in December, when a site selection committee said it was enter- ing into further talks with the 11,000-stu- dent private school. Bush has said he is leaning toward SMUl. The site selection committee must now make a recommendation to the presi- dent The committee's talks with SMU con- tinue. "We hope it's weeks rather than months," said Brad Cheves, SMU's vice president for No local business is too small to advertise online. Call the Chronicle online team. If you've got a phone, you can have a web Site. (352) 564-2939 www~crdj, external affairs and development The school's Board of Regents has already approved the project In his presentation to the church coun- cil, Turner said the library, museum and Bush institute may be built on one of two sites on the land. He said plans are not finalized, so "that's why we're not asking for one or the other (parcel)," . . -. " - William McElvaney, a retired professor in SMU's Perkins School of Theology, had urged the church council to reject the request based on some faculty members' opposition to the Bush institute. "The future of SMU's soul is at stake," McElvaney said. The project will be financed through a private fund drive aimed at raising at least $200 million, and some estimate the cost could soar to $500 million. If negotiations with SMU fail, the other remaining finalist is Baylor University in Waco, near the Bushes' Crawford ranch. The University of Dallas withdrew its bid in January. UP~Ta $1,200 REBATE :IUP TO $1,200 REBATE ANP COOL, CLEAN AIR. . . . - . dt . RE U - TO. A plus 6 months same as cash* when you purchase any qualifying Trane XLi system between March 8 and May 31, 2007. " C """ r� 'E-" Sc Q-in- The Revolutionary Trane CleonEffects is Ihe first central air system that removes up to 99 98% of the allergens from all the oir that it heats or cools And now through Ma, 31, 2007, you can get a rebate up to $1200 when you purchase one Isn't it lime you expected more from ,our system? Like Two Syiams5 In One,..W1chl Saves You Money, Trane's >,L19, is like having t-.o systems in one On most days, it runs efficiently at low speed for maximum savings. But when it's extremely hot, the unit switches to the larger compressor to provide even great comfort Expect more from your independent Trane Comfort Specialist" dealer. Ork v7RANEn~� l REBATE UP TO A MAXIMUM OF $1.200 IS AVAILABLE ON QUALIFYING SYSTEMS AND ACCESSORIES ONLY AND MAY VARY DEPENDING ON MODELS Chare: $2.00. (APR) and Minimum Finance Charge may be lower in some slates.) Terms subject to change without notice. Subject to credit approval See Account Agreement for complete information and Important disclosures. Other open-end credit plans may be available. Ask seller or details. All credit plans subject to normal credit policies. NOTE: Rebate up to $1,200 Is dependent upon system purchased. users, the changes are sup- became embroiled in a high- posed to lessen the chances profile battle over the control that the company, a government of the user information that it agency or another party will be had been stockpiling. able to identi- While gath- fy the people ering evidence behind s.pe- for a case in- cific seartuch This is an evolving online requests extremely positive pornography, Privacy ex- the U.S. Jus- perts applaud- developmentt twice Depart- ed Google's "ment subpoe- precautions as naed the ma- a major step Arl Schwarz jor search eng- in the right deputy director of the Center for ines for lists of direction. Democracy and Technology, about search re- "This is an Google's new privacy measures, quests made e x t r e m e 1 y by their users. positive development," said While Yahoo Inc., Microsoft Ari Schwartz, deputy director Corp.'s MSN and AOL all com- of the Center for Democracy plied with parts of the legal and T1ecltology. "It's the type demand, Google fought the re- of thing we have been advocat- quest A federal judge ordered ing for a number of years." Google to turn over a small sam- Google is tightening its priva- pling of Web addresses con- cy standards a year after it tained in its search index, but decided the company didn't have to reveal the search re- quests sought by the govern- ment In another demonstration of the privacy risks posed by search engines, Time Warner Inc.'s AOL last summer released 19 million search requests on the Internet as part of a research project. Although only sets of numbers were attached to the requests, the information was used to identi- fy some of the people behind the AOL searches. AOL subsequently apolo- gized for the lapse, which trig- gered the resignation of its chieftechnology officer Google and its rivals all say they keep information about their users so they can learn more about them as they strive to deliver the most relevant responses. Obituaries ss Associated Press A Google receptionist works at the front desk in the company's office in this Oct. 2, 2006, file photo in New York. Google announced a change in its privacy policy Wednesday that will anonymize the data stockpiled from Internet Protocol addresses and cookies after an 18 to 24 month period. DANIEL'S HEATING & AIR CONDITIONING INC. 4581 S. Florida Ave., Inverness, FL 352-726-5845 Li .C ,', 24 .'! .� __ J~ i kn" ~"~~~L'~.~si~s~filll1P7�J/ CITRUS COUNTY (FL) CHRONICLE OFFICIALS Continued from Page 1A will force him to give up his House seat All the activity has Argenziano amused. "My colleagues are joking that they saw people lining up outside my office with tape measures," Argenziano, R- Dunnellon, said. Argenziano is one of 12 finalists for two spots on the Public Service Commission. The House-Senate Select Committee on PSC Oversight will interview the finalists, then send three names for each opening to Gov. Charlie Crist for his final choice. Argenziano is up for re-election in WORLD Continued from Page 1A L | 2008 in the 13-county District 3, which. stretches from parts of Tallahassee into Citrus County. The district includes Citrus County east of U.S. 19. If Crist selects Argenziano, she will resign her Senate seat. Crist would then call a special election to fill the seat until the 2008 regular election. Corcoran's resignation as Speaker Marco Rubio's chief of staff and spe- cial counsel gives him a fundraising edge over Baxley and Dean. State employees are forbid from raising campaign cash while in the' Legislature is in session. Dean said he found the situation unseemly since Argenziano hasn't been selected for anything yet "First, I don't think it is the proper thing to do to start announcing and running for a seat that isn't vacant yet If she gets the appointment ... I plan to make an announcement about my candidacy. Charlie Dean state representative, about Nancy Argenziano's senate role. or until after such time as the senator makes her announcements," he said. Still, Dean said he wanted people to know his intentions. "I don't want people to think I'm not interested," he said. "If she gets the appointment, and I really hope and think she will, I plan to make an announcement about my candidacy" Corcoran filed paperwork to open a campaign account for the 2008 race, allowing him to raise and spend money for any special election that could occur before than as well. "I have to have a lot of volunteers and a lot of support," Corcoran said. "That's why I got in early It's a calcu- lated risk." SDean said he isn't worried about Corcoran's fundraising ability. "It takes more than money," he said. "It takes character. It takes the confi- dence of the people." Baxley is a seven-year House veteran who will be forced out of office next year due to term limits. He said he had his eye on the Senate District 3 race and the possibility of an Argenziano resig- nation puts the seat in a brighter focus. THURSDAY, MARCH 15, 2007 7A "I have been looking at this as the next option," he said. "I was preferring not to think about any of this until this summer and just concentrate on doing a good job in session. The prospect of something changing mid-year is kind of pushing up a timeline for my con- sideration." Argenziano said three weeks ago when the PSC process began that she wouldn't resign unless she thought her potential replacement could do the job. Asked if Baxley, Corcoran or Dean fit the bill, Argenziano said: "No com- ment There may be other people jumping in that race." Argenziano also said talk of a special election is premature. "Right now," she said, "I'm the sena- tor from this district" Cast a great shadow on Asia. The worry is that it could spill over and cause the U.S. economy to slow down, and this will cause a domino effect on the world econ- omy," said Lee Cheng Hooi, tech- .nical analysis manager at EON Capital in Kuala Lumpur. "There could be more bloodbath to come." Still, other analysts main- . tained that Asia's economic fun- .damentals nerv- ousness out there," said David * Cohen, chief of Asian economic forecasting at Action Economies in Singapore. "In perspective you could still say that this is a correction after the strong rally that was experi- ence'd for the previous several months around the world," he said. While the U.S. retail sales data and mortgage news that prompt- ed the sell-off on Wall Street "are a little concerning," fundamen- tals such as strong U.S. jobs data released lFiday were still sup- portive of global equities. 'The world economy seems to be remaining on an upward tra- jectory," ana- lyst at Everbright Securities in Shanghai. In India, jittery investors sold off almost every blue chip stock, dragging the 30-share Sensitive Index, or Sensex, the benchmark index of the Bombay Stock Exchange, down more than 3 per- cent Indian shares have seen wild swings each time the global mar- kets per- cent, and South Korea's Kospi closed 2.0 percent lower DISPUTE Continued from Page 1A McKinstry the police had been called, and he fled from the scene. The man complained of severe pain to his right shoulder and was taken to Seven Rivers Regional Medical Center for treatment. According to the report, doctors said that he didn't have any broken bones, however, they could not rule out whether the man's shoulder had been dis- located. During the next few days, wit- nesses were able to identify McKinstry out of a photograph lineup and Tuesday evening, I deputies went to his home and arrested him. McKinstry claimed that he had not been driving the car on the day in question and was only a passenger. He added that the man tried to punch him while he was in the car McKinstry said That he grabbed the man's hand while the car was moving which caused the man to be dragged for a short period of time. McKinstry was charged with aggravated battery with a deadly weapon. Bond was set at $5,000. Let's Build Something Together 88 2 $997 Buy in bulk 8 ,4-1/2" pot 18-pack and save Assorted Annuals *Choose from several popular varieties #60669 $298 6" pot Heather Mexican eDensely leaved evergreen blooms entire season #95166 0off ALL OUTDOOR FOUNTAINS Discount taken at register " Ofter valid 3/15,07-3 18 07 See store 10r details $897 5,000sq. ft. Sta-Green* St. Augustine Weed and Feed #93244 Landscaper Annuals *Several varieties to choose from #97779 10" pot New Guinea Impatiens Pre-Potted Planter *Striking foliage with continuously blooming flowers in a wide variety of colors #53038 10% 1 off ALL PLANTERS Discount laken at reg.sler Olear valid 311507.3,18/07 Ecualde pre-potned planters. Sea slore To1 delalla SPECIAL -.. i,- now - - $1297 5,000 sq. ft. was $1444 Scotts� Starter Fertilizer *Provides every grass seed the same nutrition #71012 $637 5Ibs. Bayer Advanced" 2-in-1 Rose & Flower Care *Feed and protects in one easy step #67672 $598 10" pot Annual Hanging Baskets *Choose from many varieties .Instant color for porch, patio or deck #90639 10" Annual Premium Hanging Baskets #94004 $8.98 Container garden clinics SATURDAY, MARCH 17, 2007 *9am *11am I1pm '3pm Prize dra~ in at the end of tea cli diC for th conrpleted container garden. See store for d Is,^ $3921 cu. ft. Sta-Green� Flower and Vegetable. Planting Mix *High in organic matter to improve soil texture #86633 1 997 quart Bayer Advanced" Concentrate Tree & Shrub Insect Control #163006 nOW VALUE! $6498 was $7998 Lawn and Garden Cart *1200 lb. loading capacity o13" pneumatic wheels #129180 0 46 each 45mm Red/Charcoal Paver *8"L x 4"W x 1-7/8"H #123114 For the Lowe's nearest you, call 1-800-993-4416 or visit us online at Lowes.com Prices may vary after 3/18/07 if there are market variations. "Was" prices ih this advertisement Were In effect on 3/08/07, and may vary based on Lowe's Everyday Low Price policy. See store for details regarding product warranties. We reserve the right to limit quantities. CONTAINER GARDEN CLINIC: NO, PURCHASE OR PAYMENT OF ANY KIND NECESSARY TO ENTER OR WIN. VOID WHERE PROHIBITED. Open only to legal residents of the United States who alo 18 years of age or older at the time of entry. To enter, fill out official entry form completely and submit In container provided at the Container Garden clinic held at select Lowe's stores from 3/1/07 -- 5/6/07. Limit one (1) entry per prison. One (1) prize will be awarded by a random drawing at each Container Garden clinic. Entrant must be present to win. 'Prize is'one (1) completed container garden created by the Lowe's instructor at the clinic (Approx. Retail Value $50). Odds of winning dopolnd on number of eligible enties received. Promotion Sponsor: Lowe's Companies, Inc., 1000 Lowe's Blvd, Mooresville, NC, 28117.02007 by L., -i : . ,i..ir .: ..* .r. Lowe's and the gable design are registered trademarks ol IF, II C. 070392- 00117039211017 VALUE! 4 days only GET 5 BAGS FOR ,II Red Colored Mulch S 2 cu. ft. per bag #85281 Discount taken at register. Offer valid 3/15/07-3/18/07. See store for details. now SPECIAL $398each was $497 Round Point Shovel #83291, 99758 Garden Rake #16215, 99756 Rose & Flower Care -- $198 SA CITRUSR COUNTYARC FL, CHRONICLE ---- Legislative ROUNDDUP - ---=- School overcrowding A 0 For for new schools. Legi Bush objected to the cove rigid nature of the formu- PA la for distributing the annual "Classrooms for Kids Program" money although his staff had helped lawmakers draft it, said Sen. Paula Dockery, R-Lakeland. She is sponsoring the bill (S.B. assign- ments. Comparable legislation in the House has not yet had a com- mittee hearing. Private school vouchers Foster children and youngsters released from juvenile justice facili- ties could get vouchers to attend private schools at taxpayer expense, under a bill approved by a Senate committee. The Prekindergarten-12 Education Committee voted 6-1 for the bill (S.B. pro- r si er ILG gram's low-income criteria but typi- cally move often among foster homes, so there's no one to apply for them. "Who's their parent?" Wise asked. "The parent is us." He said a declaration in the bill that the vouchers serve a "valid public purpose" would make sure judges and foster care organiza- tions can submit applications. The bill would not expand an $88 mil- lion cap on the program. Wise acknowledged the public purpose statement also may help defend the program against legal challenges, although he nore said that wasn't his slative intent. The Florida rage. Supreme Court last year GE 9A struck down a voucher program for children from low-performing public schools. His bill has three more commit- tee references. A similar House bill has been approved by one com- mittee and is pending before the Schools and Learning Council. School insurance A bill that would give school dis- tricts authority to use restricted tax dollars to pay for property insur- ance cleared the Senate Prekindergarten-12 Education Committee on a unanimous vote. Existing law limits spending a discretionary property tax to con- struction of new schools and remodeling or renovation of exist- ing structures, purchasing or leas- ing. Nursing priorities Most people may not guess that nurses lead the nation in work- related back injuries, mainly because they lift nearly 2 tons during an average 12-hour shift. A measure to require hospitals to develop plans for using mechanical equipment to do more patient lifting in an effort to reduce the burden on nurses is the pro- fession's top priority in the Legislature this year. Several white-coated nurses walked the halls of the Capitol instead of the wards of their hos- pitals, urging lawmakers to pass the legislation (H.B. 1193, S.B. 2208). Martha Baker, a nurse at Miami's Jackson Memorial Hospital, said the measure would help nurses, but also help avoid patient injuries. Nurses' second priority for this legislative session is a bill (H.B.' 497, S.B. 884) that would require the posting of all hospitals' patient- to-nurse ratio on a state Web site. The bill would also require report- ing nurse turnover rates at hospi- tals so would-be patients can compare. "The more the consumer knows what's going on, the better it will be for everyone," said Betsy Marville, a nurse at St. Mary's Hospital in West Palm Beach. Gay adoption A state senator is renewing her effort to reverse Florida's 30-year- old law banning gays and lesbians from adopting children. But Sen. Nan Rich's bill probably won't become law - the Republican-dominated Legislature hasn't been eager to take up the issue in past years and Gov. Charlie Crist doesn't support changing the adoption.ban. Still, Rich, D-Weston, argues there is no evidence that gay peo- ple cannot provide nurturing homes and has filed a bill (S.B. 1012) that would allow them to adopt foster children. The measure would let judges decide if such an adoption is in a child's best inter- est. She said there are 3,000 foster children available for adoption right now. "Changing Florida's law to allow gay and lesbian families to adopt children will add many loving indi- viduals to the pool of possible adoptive parents who are willing to open their hearts and make a life- time commitment to caring for and nurturing children," Rich said. "That's what this bill is about and that's what we should be doing in the state of Florida." Crist gave a short response when asked about the effort. "My view is always that tradition- al families are always the best set- ting for a child," Crist said. A House version (H.B. 789) is being sponsored by Rep. Mary Brandenburg, D-Lake Worth. - From wire reports Paid Aderanememn Are you over 55? "It's All Free for Seniors" Washington DC (Special) Are you over 55... or have a loved one who is'? Then you'd better take a close look at this! Every year Uncle Sam gives away hundreds of millions of dollars in cash, goods, and services to people just like you. Better yet, many of these goodies are available to you regardless of your income or assets! All this free stuff is one of Amerca's best kept secrets... simply because the government doesn't advertise that it's available. Now. an amazing new book reveals thousands of sources of fabulous freebies which are yours for the asking. Entitled "Free for Seniors", you'll learn all about such goodies as howt you can: w Get free prescription drugs. (This one alone could save )ou thousands of dollars!') D Get free dental care... for yourself AND for your grand- kids. > Get up to $800 for food. 0 Free legal help. P How to get some help in paying your rent, wherever you live. > How to get up to $15,000 free money to spruce up your home! > Here's where to get $1,800 to keep you warm this w inter. 0 Here's how to get help in paying your electric bill. W Access the ver' best research on our planet on how you can live longer. > Are you becoming more for- getful? Here's valuable free Information you should get now. b Stop high blood pressure and cholesterol worries from ruling your life. P Free help if you have arthritis of any type. > Incontinence is not inevitable. These free facts could help you. N Free eye treatment. P Osteoporosis: Learn about the causes. risk factors and new, treatments. N Depression: Being down in the dumps is common, but it doesn't have to be a normal part -,of growing old. I Free medical care from some .of the very best doctors in the world for Alzheimer's. cataracts. or heart disease. w New Cancer Cure? Maybe! Here's how to find out %what's known about it to this point. P Promising new developments for prostate cancer. W Get paid $100 a day plus expenses to travel overseas! lo How to get your own VIP tour of the White House without wain- ing in line with everyone else. > Up to $5,000 free to help you pay your bills. � Free and confidential help with your sex life. 1 Impotence? Get confidential help... Free therapies. treatments. implants. and much more. P Hot Flashes? This new research could help you now! > Find out if a medicine you are taking could be affecting your sex life. t Enjoy visiting our National Parks' Here's how you can get paid to spend your summers there. D How you could travel the world... all at government expense. P How to get $7 off your phone bill each month. There's more! Much. much more. and "Free for Seniors" comes w ith a solid, no-nonsense guarantee. Send for your copy today and examine it at your leisure. Unless it makes or saves you AT LEAST ten times its cost. simple return it for a full refund within 90 days. Where else can you get an investment which guarantees a ten-to-one return? Although certain of these benefits are only available to persons of modest means, many of them are available regardless of age. income or assets! Some services ma\ have restrictions or require pre-qualification. It's easy to get "Free for Seniors". All you hate to do is send your name and address along with a check or money order for only $12.95 plus $3.98 postage and handling Total of $16 93) to: FREE FOR SENIORS. Dept. FSB1231. 717 - 12th St. NVW, Canton. Ohio 44703-1964. You may charge to your VISA or MasterCard by including your card number, expiration date. and signature. For even faster service, have your credit card handy and call toll-free 1-800-772-7285. Ext. FSB1231. Perhaps you're asking. "Lf seniors can get this information free... why is there a charge for the book'?" It's no secret that all the programs listed in "Free For Seniors" can be found for no charge through the hundreds of government agencies, libraries and local senior organizations if you know exactly what benefits are available, what office to contact, and exactly what infor- mation to ask for. Unlike "Free for Seniors." few books or organizations compile ALL these listings into one easy-io-find reference guide, thus saving you an enormous amount of research time finding each individual program. Research and printing is expensive. so "Free For Seniors" is simply a small price to pay for one complete listing of these hundreds of fabulous freebies! Want to save more? Do a favor for a relative or friend and order 2 books for only $20 postpaid Have you been putting off a trip across the country to visit a loved one due to the high cost of flying? Or. maybe you'd like to vacation in some romantic foreign city? Now you can! Call or send for "Free for Seniors" right away and you'll also get a Free Bonus which could save you thousands of dollars on airline tickets. It's a new special report entitled. "How You Can Fly An'vthet e Free. o .Almost Free." These free reports are limited in quantity and % ill be sent on a first come, first served basis. You must respond right now to be sure of getting your copy'. Why not do it right now while you're thinking of it? '"*'6i' DSA .FS lHIl S i- htp 'i i' uwv DRSheahliprodurs corn Senate cautious about property tax reform Lawmakers take slow approach Associated Press TALLAH consti- tutional with- out pro- ceeds from sale. Haridopolos, who chairs the Senate Finance and Tax Committee, said senators plan to meet Friday with county property appraisers about the proposal. Democrats in the Republican- controlled House, meanwhile, pro- posed limiting ( property tax increases to infla- is to tion plus 3 percent annually. Their pro- right. posal also includes an increased exemption for pri- Mike Ha mary homes and about proper adds new exemp- tions for other residential and commercial property. They estimate it would save taxpayers $3.7 billion. The House Republicans' proposal would cut local taxes by nearly $5.8 billion. The Republican plan, sched- uled for a vote Friday by the House Policy and Budget Council, includes a bill that would roll back taxes to their 2001 level, except for schools, but with allowances for inflation and pop- ulation growth. The second part is the amendment that would abol- ish property tax on primary homes, apply the rollback to other real estate and raise the sales tax from 6 percent to 8.5 percent 3 �er A lobbyist for Palm Beach County commissioners, Todd Bonlarron, spoke in favor of get- ting rid of the "highest and best use" assessment criteria during a workshop session held by the Senate Community Affairs Committee. Waterfront properties, for example, used for such purposes as marinas or com- mercial fishing )ur goal docks have seenbig tax increases get it because high- priced condomini- ums are being built nearby, Bonlarron said. ridopolos "That working rty tax reform. waterfront all of a sudden assumes the position that it could be a con- dominium as well," he said. Bonlarron said his commission- ers support basing taxes for com- mercial and rental properties on the amount of income they pro- duce rather than highest and best use. That could mean higher taxes, though, for some of those proper- ties and result in even greater dis- parities, said Loren Levy, general counsel for the Property Appraisers Association of Florida. "The bedrock principle of prop- erty taxation is that similar prop- erty bears a similar tax burden," Levy said. 538-0315 THCRN NOTICE OF PUBLIC HEARING ON PETITION TO AMEND THE BOUNDARY OF THE TUSCANY COMMUNITY DEVELOPMENT DISTRICT A public hearing, conducted pursuant to Chapters 120 and 190, Florida Statutes, as amended, by the Board of Supervisors of the Tuscany Community Development District will be held on Thursday, March 22, 2007, at the Citrus County Resource Center, 2804 West Marc Knighton Court, Lecanto, Florida, commencing at 11:15 a.m., to inform the public about the elements of the Petition to Amend the Boundary of the Tuscany Community Development District (the "District") in Citrus County, Florida. The petition was filed by the District as Petitioner. The information presented at this hearing will be used by the Florida Land and Water Adjudicatory Commission ("FLWAC") in granting or denying the Petition as set forth in section 190.046, Florida Statutes, as amended, and also to afford Petitioner, affected units of local government and the general public a fair- and adequate opportunity to present oral and written comments relative ':to th amendment of the boundaries of the District. The acreage to be added into the District consists of approximately 332.07 acres. The parcels to be added to the District are generally located west of U.S. 41, north of C R. 486, and south and east of C R. 491. The District has the appropriate consents to the amendment of the District's boundaries as required by Chapter 190, Florida Statutes, as amended. A map generally showing the District and the area to be added into the District accompanies this Notice. A copy of the Petition, including the statement of estimated regulatory costs, is available for public inspection during normal business hours at the Florida Land and Water Adjudicatory Commission, Office of Policy and Budget, The Capitol, Room 1801, Tallahassee, Florida 32399-0001. Specific legal authorities include Chapter 190, Florida Statutes, generally, and sections 190.005 and 190.046, Florida Statutes, in particular. NOTICE TO PERSONS NEEDING SPECIAL ACCOMMODATIONS: Any person requiring a special accommodation to participate in the hearing because of disability shall contact the District Manager's office at (407) 841-5524, at least five (5) business days in advance of the hearing to make appropriate arrangements. P"Beverly ,11 Hills ~~~7TIIIC.R.486]' - i: ( ..c4Hemando L - ' LedaC 1.J LBO intto "'12- - ��i Tuscany Conuimty, DevelopmcntDisirtct N ,CDwO Ai rW General Location MKa Jukv 2006 NIA ' Invdrness 4- 6~9699 Cmsus Comyn (FL) CHRoma ,B STATE AA Y-Ir.-DAY- MARCHDr 15. 2007 i tp, Panel OKs KidCare overhaul Senate also approves expansion forprogram Associated Press TALLAHASSEE - Getting low-cost health care for their children could get much easier for families eligible for the KidCare program, which would also be expanded to cover more children, under a major overhaul approved Wednesday by a Senate committee. KidCare is actually a mishmash of dif- ferent programs that also currently includes Healthy Kids, MediKids and Medicaid - with administrative func- tions for some of them housed in differ- ent state agencies. That would change under the measure (S.B. 930) unanimously approved by the Senate Health Policy Committee, which puts the subsidized health insurance pro- gram under one roof at the Department of Health's Division of Children's Health. Parents have complained in recent years that KidCare had become difficult to navigate, with families being steered from one program to another. Some par- ents and activists also accused it of being slow and inefficient in dealing with appli- cations. The streamlining, if ultimately approved by lawmakers, should erase the administrative barriers that have bur- dened the program, several advocates said in praising the bill, sponsored by Sen. Mandy Dawson, D-Fort Lauderdale. The committee also voted to expand the program to cover the children of state workers and certain legal immigrants. Those children had been excluded because the federal government won't provide matching money to cover them. The bill would allow coverage for those children, though it would still require state budget writers to provide the neces- sary money. The measure would also expand the number of adult pregnant women who can get KidCare coverage for their pre- natal care, from those whose incomes are at 185 percent of the poverty level to those who are at 200 percent of poverty - just over $27,000 a year for a family of two. The wide-ranging bill also directs the KidCare program to send case workers into the community to find eligible fami- lies and help them enroll. Advocates have also complained in recent years that the lack of such outreach has led to a precip- itous decline in enrollment, dropping by nearly 120,000 in the last three years. While community enrollment outreach would, too, depend on money being put in the budget for it, activists were still pleas- antly surprised by how far lawmakers have moved from just a few years ago when they changed the law to require more proof of eligibility - a move also blamed for dropping enrollment "We are very pleased with what's incor- porated into this bill," said Karen Woodall, an activist for poor families who in the past has been one of the most stri- dent critics of KidCare's shortcomings. "You are addressing most of the major issues we've heard." The proposed overhaul still needs approval from the Senate's budget com- mittee and from the House, where it has- n't had a hearing yet But in the Senate it has bipartisan support, with all the mem- bers of the Health Policy Committee sign- ing on as co-sponsors Wednesday. "This is a vast improvement of the pro- gram," said Sen. Burt Saunders, R- Naples. Sex ed content must be divulged Associated Press TALLAHASSEE - Schools would be required to notify parents about the content of sex education classes under a bill unanimously approved Wednesday by a Senate com- mittee. The measure (S.B. 162) origi- nally would have required notification just about absti- nence-only programs, but the Senate Prekindergarten-12 Education Committee amend- ed it to cover all sex education instruction at the request of the sponsor, Senate Minority Leader Steve Geller, D-Cooper City. "There are differing views among some people as to what the best form of sex education should be," Geller told the panel. "But I think that every- body agrees that the parents ought to know what is being taught in their schools." . Existing law allows parents to ,ask that:,their children be removed front sex education classes, but there's no provi- sion requiring schools to tell them what is being taught. Geller's bill initially called for notification by mail, but that provision was also changed at his request. He said the committee's chair- man, Sen. Don Gaetz, R- Niceville, was worried about mailing costs. Instead, the bill would allow school districts to provide notice through their Web sites or any other "commonly used method of communication." Geller's initial intent was to help parents who may not share the faith that absti- nence-only advocates have in that concept as a means of pre- venting teen pregnancy and sexually transmitted diseases. Abstinence-only programs avoid mentioning other options for contraception and disease prevention such as using condoms. Studies on the effectiveness of abstinence-only have result- ed in inconclusive or contra- dictory results, according to a Senate staff analysis. Staffers also cited a 2005 survey cover- ing 60 of Florida's 67 school districts that indicated 56 per- cent of their middle schools and 45 percent of their high schools used abstinence-only instruction. The bill will help parents decide whether they want to object to what is being taught, remove their children from the classes or take other action, Geller said. "If they find that there's not enough being taught they can have the proverbial birds-and- bees discussion with their chil- dren," he said. The bill has three more com- mittee references. A measure identical to Geller's original version has not yet received a committee hearing in the House.. - ." !.. " Si C Coupons valid WC 15" LCD TV STEREO/SA CLOSED CA TIMER & 50 CONTRAST RATIO After Coupon p. I HITACHI I H~; HITACHI 51" PROJECTION CAPABILITY AUTO CONV & HDMITM IN TVIDE TOSHIB TOSHIBA 14' PLAYER COP PICTURE ZO DIGITAL/DTS VIEWER & RI TOSHIBA *299-31 AT; SHERWOOD POWER AM RECEIVER A AMPS, 5 AU & 25-KEY R #RX4103 PANASONI( POWER HO SYSTEM WI PROGRESS CHANGER, SYSTEM & DIGITAL/DT PRO LOGIC #SC-HT740 After $3 Coupon $ 4J 11 SINCE 1926 . Patrick's Da ,OUPON d through Saturday, March 17, 2007. Coupons cannot be combined with any other merchandise coupon. LCD TVs -4 1 *~~~r y- I ^B ^ -^'^ WITH MTS P, V-CHIP, PTION, SLEEP 0:1 *249 -30 $219 WESTINGHOUSE 32" WIDESCREEN LCD HDTV WITH 1366x768 RESOLUTION, 1000:1 CONTRAST RATIO, 176� VIEWING ANGLE AND HDMI *879 & DVI INPUTS -80 After $799 Coupon SAMSUNG 40" WIDESCREEN LCD HDTV WITH 3000:1 CONTRAST RATIO, 178�/178� VIEWING ANGLES, SRS TruSurround XTT, '1549 PIP & 2 HDMIh -15A INPUTS _ After $1399 Coupon SONY 46" 16:9 BRAVIAT LCD HDTV WITH ATSC DIGITAL TUNER, HDMIT & PC INPUTS, SRS� TruSurroundTM XT, DIGITAL AUDIO AMPLIFIER 24 & LIGHT SENSOR $2499 -200 After 2299 Coupon ., 2 REJECTION TVsr "PLASiMA TVs 'WIDESCREEN N TV WITH HD , SPLIT SCREEN PIP, 'ERGENCE s'79 PUT W879 -80 After $799 Coupon 7 IHITACHII HITACHI 50" UltraVision� LCD PROJECTION HDTV WITH MTS STEREO/SAP WITH dbx�, SPLIT-SCREEN PIP & HDMIT INPUT *1299 -100 After 1199 Coupon 1199 0 COMBOS EVp " FLAT SCREEN TV/DVD IBO WITH DIGITAL $155 OM, DOLBY� , JPEG -16 EMOTE Afte,$ Coupon 24" TV/DVD COMBO..... 0=$269 After Coupon DIO HI-FIZ D 210-WATTS TOTAL 1 /FM STEREO WALL DISCRETE -12 IDIO INPUTS $99 EMOTE After 99 Coupon C 1000W TOTAL ME THEATER ITH 5-DISC IVE SCAN DVD 6-SPEAKER DOLBY� II '349 'I -30 , . -^ IPanasonicI 119 19" TV WITH REMOTE, ON-SCREEN MENUS, V-CHIP, CLOSED CAPTION AND FRONT A/V '111 INPUTS -12 After $99 Coupon 9 PANASONIC 42" 16:9 WIDESCREEN PLASMA HDTV WITH BUILT-IN ATSC/QAM/NTSC TUNERS, SD MEMORY CARD SLOT, HDMI CONNECTOR AND SURROUND *1699 SOUND -150 After $ KR5 Coupon *549 COLOR TVs MAGNAVOX 23" STEREO TV WITH BLACK MATRIX PICTURE TUBE, Smart Sound AND '199 Smart Picture -20 After $179 Coupon .- .-..-...... . HITACHI 55" WIDESCREEN PLASMA HDTV W/PictureMasterTM HD III VIDEO PROCESSOR, 3 HDMIM INPUTS AND TABLETOP STAND *2799 -200 After 25 Coupon 2599 ITOSHIBAI . _ TOSHIBA 32" STD. DEFINITION DIGITAL TV W/BUILT-IN ATSC/ NTSC/QAM TUNERS, MTS STEREO/SAP *429 W/dbx�, SURROUND $ SOUND AND -30 REMOTE Aft$r Coupon 399 FRIGIDAIRE 1.5 CU. FT. STAINLESS STEEL OVER-THE-RANGE MICROWAVE OVEN WITH 11 VARIABLE POWER LEVELS, ONE-TOUCH COOKING, POPCORN SENSOR AND 14" GLASS TURNTABLE F Mvil6SCC FRIGIDAIRE STAINLESS STEEL ELECTRIC RANGE WITH 5.3 CU. FT. SELF-CLEANING OVEN & UPSWEPT CERAMIC COOKTOP * Advanced Bake Cooking System - 2-9" & 2-6" Radiant Elements * Extra Large Glass Oven Window - Electronic Oven Controls. #FEF366EC IiS' Fl I,1 f.90in171VaFIt : FE CRYSTAL RIVER 2061 NW HWY. 19 1/2 Mile North 0f Crystal River Mall 795-3400 * I r' ''r i l I A~i ig FRIGIDAIRE 26 CU. FT. FRIGIDAIRE STAINLESS STEEL SIDE-BY-SIDE WITH PureSource" BUILT-IN DISHWASHER WITH FILTER AND CRUSHEDICUBED ICE 5-LEVEL PRECISION WASH & WATER DISPENSER SYSTEM, BIG TUBT DESIGN * UltraSoft"T Stainless Steel Doors * Ultra- & 100% FILTERED WASH WATER SoftM Handles - 3 SpillSafe" Glass Shelves - UltraQuiet IIT Insulation Pkg. Energy Star@ * 2 Adj. Gallon Door Bins * Humidity Control. Compliant * Stainless Steel Food Disposer. #FRS6R5ESB #FDB1050REC . . . . ; ... . r... . . . ,� I ,'=4~ 9---'" '.'. -" " DVD PLAYERS SUPER SLIM PROGRESSIVE $29 SCAN DVD PLAYER WITH -3 DOLBYl DIGITALIDTS, 2 DVDICDICD-RiCD-RWiMP3 After PLAYBACK & REMOTE Coupon ITOSHIBAl TOSHIBA 5-DISC DVD/CD CHANGER WITH PROGRESSIVE SCAN, MP3 & WMA PLAYBACK, DOLBY� DIGITAL/DTS� 988 COMPATIBLE & UNIVERSAL -9 REMOTE . 7 Coupon S79 CAMCORDERS JVC MiniDV DIGITAL CAMCORDER WITH HG DIGITAL STILLS, 32x OPTICAL/800x JVC DIGITAL ZOOM & 2.5" LCD COLOR MONITOR $299 -30 \ 4- After$269 0 Coupon ""69 . br,. MAJOR APPLIANCES FRIGIDAIRE 16.5 CU. FT. REFRIG.-FREEZER WITH GALLON DOOR STORAGE �- L . i Si',l ..3 r.-l.o r Tr.n tVhite w.], C,-S' *" - Ic ,jr.a ..ier -" - * l,\i Dir, Dci..r . T76Ai 3s399 -30 Coupon0 369 FRIGIDAIRE ELECTRIC RANGE WITH LIFT-UP .-. COOKTOP & OVEN ------- DOOR WINDOW * 2-a .. - ', . i E-,. r.Ii * Chrme Dnp Bcnti * �Jia.: On Isnidiicator - C o.n LIi,9 F.:.,r:.i , Bl~t.r Pir. S I r -ll $319 _ r,.o, J er $289 SCoupon 89 - FRI( DISI 100 WAS * 2.Le L* S i. ., GIDAIRE BUILT-IN WASHER WITH !% FILTERED SH WATER Quit, Siu,','l Pii.;ri e T T,...OA.' V ' ra , -lnm :* P:.I. P, , $219 -22 Atter $197 Coupon FRIGIDAIRE 7.2 CU. FT. . . CHEST FREEZER S. j.r '. I.i)rl Tn .:., Soage . T p. . ' ' S 219 -22 ' |- , AfC $1 7 I -I Coupon 197 , -., AUDIO S -;li _-- RCA AUDIO SYSTEM W/5-CD CHANGER, DIGITAL AM/FM TUNER, DETACHABLE SPEAKER SYSTEM $88 & REMOTE -9 #RS2041 f, 7 After Coupon -I - 3w AyM MICROWAVES i' * ISHARPI " SHARP 1.0 CU. FT. 1100W MICROWAVE OVEN WITH 6 COOK, 6 REHEAT AND 4 DEFROST OPTIONS, MINUTE PLUSTM '66 & TURNTABLE -7 #R-306LK Ae After $ou Coupon 59 ~ar~c1199!1 - I m OUR RAINCHECK POLICY: Occasionally Due To Unexpected Demand Caused By Our Low Prices Or Delayed Supplier Shipments, We Run Out Of Advertised Specials. Should This Occur, Upon BUSINESSES, CONTRACTORS OR Request We Will Gladly Issue You A Raincheck. No Dealers Please. We Reserve The Right To Limit Quantities. - Not Responsible For Typographical Errors. Correction Notices for Errors In This SCHOOLS CALL: 1-800-528-9739 Advertisement Will Be Posted In Our Stores. * This Advertisement Includes Many Reductions, Special Purchases And Items At Our Everyday Low Price. 032 4-PC. FRIGIDAIRE KITCHEN, FICYSTAL RIVER MALL STATE ROAD 44 CAR STEREOS DUAL 120-WATTS TOTAL E POWER AM/FM/CD RECEIVER WITH DETACHABLE FACE * & BASS BOOST $66 #XD5210 -7 After $59 Coupon I L $219F .200 11999 After Coupon THURSDAY, MARCH 1cll .5, 2007 SA CITRUS Coumy (Y FL) CHRONICLE.L STATE FAI~C UL l'aaer\UnSAY IVIARcH 1 ST, ATE I C (F, CRNIL Associated Press i;.WEST PALM BEACH - ,Technical difficulties pro- cduced inaccurate vote tallies (for, Palm Beach County local ,qlptions, leaving many candi- dates wondering who won well into evening before the results weree corrected. ,.The Palm Beach County *Supervisor of Elections Web site displayed inaccurate num- rbers throughout the night, ,sh9wing some candidates lead- ing when they were actually behind and differences in vote lttals in the same precincts. ,Elections Supervisor Arthur Anderson first blamed Tuesday's glitch on a "techni- cality that staff has encoun- -tered," but later said it was .caused by an "unreadable" vote cartridge. . "The staff had to manually ,put those votes in," said Suspect I r tl I The suspect in the robbery Si from a surveillance video. He 40 years old, with brown hair Slight tan shirt and a baseball Matt Taylor at 726-4488, Ext Sat (888) 269-8477. 7-.i Anderson, adding that he did- n't know from which munici- pality the affected cartridge originated. Anderson said Wednesday that the "slight glitch" didn't affect the integrity of the actual results. Palm Beach County was at the center of a 2000 presiden- tial election debacle after dim- pled, pregnant and hanging chads on punch, card ballots held up a final count Florida was eventually decided by 537 votes after the U.S. Supreme Court stepped in, handing the election to George W Bush. The state has since banned the punch cards and moved to all electronic voting machines. By 10 p.m. Tuesday, during the county's latest elections, the supervisor's Web site showed that all 64 precincts for the West Palm Beach mayor's race had reported, but that just over 1,200 votes were cast. Mayor Lois Frankel and challenger Al Zucaro both cele- brated victories briefly, until Frankel eventually won with 58 percent of the vote. "I was just told I won," Zucaro said, celebrating in a downtown bar, before realizing he had in fact lost. Glitches were also seen in. other races throughout the county. Rita Ellis, who won Tuesday's mayoral race in Delray Beach, said the initial numbers from the elections office "just about gave me a heart attack" At about 10 p.m., the num- bers showed Ellis and chal- lenger Virginia Snyder practi- cally tied with all 45 precincts reporting. By the end of the night, the numbers showed Ellis won the race by nearly a 3-1 margin. Norwalk Spring. P"NORWAMIK F-U RN ITU R Terrific Savings On Custom Tailored Styles & Fabrics With 30 Day Delivery. smart interiors / ^ / 694917 694917" 97 W. Gulf to Lake Hwy. Lecanto 352-527-4406 Open Mon.-Fri. 9:30-5:00 Sat. 10:00-4:00 Financing Available 6 months Same As Cash 5141 Mariner Blvd. Spring Hill 352-688-4633 FRIDAY MARCH 16, 2007 9:00am - 5:00pm & SATURDAY MARCH 17, 2007 8:30am - 1:30pm CITRUS COUNTY CHRONICLE Main Lobby 1624 Meadowcrest Blvd Crystal River 100'S OF BOOKS AND GIFTS '*Children's Books ,Cookbooks -*Best Sellers 'Reference Books *Faith-Based Books '*Nature Books *Stationery/ Note Cards 'Photo Albums *Frames *Wedding Books *Books for Women *African-American Collections -Educational Materials r*Toys and Games *'Art Projects *Wall Plaques *Garden Items : Baby Items ,*Decorative Totes ,4Calculators/Binoculars/Pens *i.PSa Products Customers not willing to contribute to the NIE fund will pay 5% less for their purchase. SBooks Are Funr BookFair Wa' Deader.s W l is-st CH'H" O GREENSOUTH Equipment, Inc. I 2006 Model N BLOW OUT SALE! '-^^^^- '^'^ ** $9,599* 24 * 4WD f7kI $12,999"5~~103 '-*dc : 50 HP Full Size Utility Tractor $ Heavy Duty 2WO Axle PoworTechn Diesel Engine ,price does not include attachments) * Power Sleering * Automatic Transmission S2 899 Z225 Residential EZtrak" 899 18HP S42" Deck *7mph *Exceptional Maneuverability OPEN UNTIL 4 ON SATURDAY! OCALA. FL 2157 NE JACKSONVILLE ROAD (352)351-2383 GAINESVILLE. FL 9120 NW 13TH STREET ... (352) 367-262 CHIEFLAND, FL 107 SOUTHWEST 4TH AVENUE (352)493-4121 m.,....sn., NEWBERRY. FL 633 NW 285TH STREET 1352)472-2112 STORE HOURS HASTINGS. FL 100 SOUTH DANCY STREET (194) 62-1538 M-FP F30am - 6.0pm ORANGE PARK, FL 611 BLANDING BLVD. . (904) 272-2272 Sat I30 -4.00pm TALLAHASSEE, FL 2830 INDUSTRIAL PLAZA DRIVE. 850) 877-5522 Sun: Closed THOMASVILLE. GA 12793 US HWY 19 . . . (229) 226-4881 greensouth.com CAIRO, GA 225 US HWY 84 EAST. ... (229) 377-3383 700673 O JOHN DEERE Nothing Runs Like A Deere' Offr ends 3/2507. Prces and model availability may vary by dealer. Som restrictions apply other special rates and ternsmay be available, o soe GreenSouth for details and other financing options, John Doaros green and yellow color scheme, the leaping deer symbol, and JOHN DEERE are trademarks of Deere & Company. Not responsible or typographical or artwork orraor. John Deere dealer resolrve the right to correct errors at point of sale. GSE3x100315CCC 1t Equal OpportunityLender Palm Beach candidates confused by voting snafu in Winn Dixie robbery Courtesy Citrus County Sheriffs Office sunday of a Beverly Hills Winn Dixie is circled in this photo taken is a white male, 5-foot 11 inches to 6-foot, slender build, 35 to and a bushy mustache. He was last seen wearing blue jeans, a cap pulled low over his eyes. If you recognize this man, call Det. 1. 299, or to remain anonymous, call the sheriff's crime tips line New Name. Same Faces. Manyofthe independent John Deere dealersVou knowhave joined forces under the GreenSouth name. BV pooling our resources, we are now able to give Van the absolute best in price, product and customer service - all while keeping the trusted relationships we've built over the past three generations. I bmur~ns CowryY (FL) CHRONICLE STATE I-CIA THURSDAY MARCH 15. 2007 |',i ~~-7b A THURSDAY, MARCH 15, 2007 11A Police free 4 hostages Egypt names first female iudies Associated Press con- firmed per- suaded Bautista to surrender But as the cap- tives piled out of the. courtroom, Bautista apparently changed his mind and tried to jump out a second-floor window before backing off. He fired at a policeman, missing him. The officer fired back and in the confusion, Bautista dropped a grenade, which explod- ed and killed him instantly, Varilla said. TV footage showed Bautista's bloody remains sprawled on the floor, his right hand badly burned. The drama began Tuesday afternoon when Bautista pulled a pistol after a dis- agreement during a preliminary hearing over a land dispute between his partner and another woman, Tinga said. A stenographer was able to escape, but Bautista and his common-law wife held on to the female complainant in the case, the court clerk, another stenographer and a lawyer, city spokeswoman Anna Santos said. "He told the negotiators that he had taken up many causes and this time he wanted to punish an abusive lawyer," Santos told The Associated Press. "He was told (by negotia- tors) to free his hostages because he had tor- mented them enough." Bautista bragged he had four grenades, had killed before and was a member of the Philippine marines, which denied he belonged to their elite unit Aside from the grenade that killed him, police found two other grenades in the courtroom, Tinga said. Bautista was a suspect in at least one mur- der case, he said. Associated Press Television News footage showed Bautista in a red shirt brandishing a pistol and grenade inside the court At one point, he kicked a hostage, gave a menacing stare at journalists gathered outside and briefly pointed his gun at them. Supreme Court Chief Justice Renato Puno arrived briefly at the scene early Wednesday and told negotiators he hoped the standoff would end peacefully. He gave an assurance that the land dispute would be handled fairly. Tinga said earlier the couple made no specific demands, but ABS-CBN television - - - - - - -- a ?- - Associated Press CAIRO, Egypt - Egypt's judiciary chief has named the country's first female judges despite opposition from con- servative Muslims, according to a decree published Wednesday., fear- ing angry reaction from conservative Muslims opposed to a move .they consider un-Islamic. In 2003, Mubarak named a female lawyer, Tahany el- Gebaly, as a judge in the nation's constitutional tribu- nal, a post which does'not include overseeing civil' 6r criminal court cases. It was hot immediately clear what courts the 31 women would preMide over. c'' Some hard-line critics said Shakir's decree contradictsin article in the constitution that states the principal source6'f legislation is Islamic law. Tfiey base their argument oi"-'a Quranic tenet that holds 'that two women are equal to '~te man if they are called as Vit- nesses in a court. A woli'ii, they argue, cannot be a jfdge if she cannot be a sole witness. Yahia Ragheb Daqruri, pres- ident of the judges' syndicate, has vehemently opposed appointing women to 'be judges. "Women must not sit as judges because it would'ie against Sharia (Islamic law) as they would have to spend time alone with men," he was quot- ed as saying in a recent inter- view in the independent al- Masri al-Youm daily. Associated Press Special Weapons and Tactics policemen escort a man who was taken hostage inside a courtroom in suburban Taguig city south of Manila. Philippine police stormed a courtroom to end a two-day hostage cri- sis, killing the gunman and freeing all four captives who were held by a movie stunt- man and his common-law wife. reported the pair demanded a ransom. Tinga and police officials, who negotiated via cell phones, said they wanted to end the drama peacefully but were left with no choice when Bautista opened fire. President Bush eats his way across Latin America Associated Press MERIDA, Mexico - Is any- one feeding the president? At every stop on his seven- day, five-country Latin American trip, including Mexico for- ward to eating some of that good Brazilian food." In Uruguay, at a news con- ferenceber- ries, too. In Colombia, part of Bush's agenda included time with locals growing crops as alter- natives to the illegal coca from which cocaine is made. The vendors' stalls were filled with honey, chocolate and coffee. Next came Guatemala, Get a sure thing where Bush hauled some let- tuce onto a truck - some- thing he later called "one of the great experiences of my presidency." "I'm looking forward to the dinner that you're hosting for Laura and me," Bush told Guatemalan President Oscar Berger in another news con- ference. "I'm not going to talk too long because I might get too hungry." Later, Bush's stomach was either really growling - or it was a ruse to end the ques- tioning. He signaled an end to the joint appearance by asking Berger what was on tap for din- ner. "We have tortillas with gua- camole and beans," Berger assured him. If you're diabetic, Medicare will cover shoes and inserts at little or no cost to you.* *Deductibles & co-pays may apply. Board certified, Fla. licensed pedorthist on staff. CALL FOR DETAILS in. Institution Term APY WORLD 6 Months 5.51% Bank of America 6 Months 2.4100 SunTrust 6 Months 2.55"0 AmSouth 6 Months 3.000o . ------------ WORLD SAVINGS How may we help you?� World Savings rates: 1-800-HOT-RATE (1-800-468-7283) I( IWal-Mart World U SSavings/05A/02/07. � 2007 World Savings N4715-01FW TOBACCO USERS If you or a loved one has smoked cigarettes and suffers from cancer, stroke, peripheral vascular disease, aortic aneurysm, emphysenm or other related illnesses, you may have a claim against the tobacco company for your injuries. K A V 0 U K LI S U IkkI - I-W. 0 1 1( 1,- ') 1 NikK I . N I. LK Il1., P..\. CALL NOW FOR A FREE CONSULTATION 1 (888) 21-NIKKI (64554) . A Main Office I I Soulh Pinellias A've Tarp ,n Sprng.. Flondj Mli:. Ser-. g Net Port Richey. Sprwm Hill. Br.:,,:k '. i . rlc rC .ii. Rie'.er & In.e-rr'ecs THE HIRING OF A LAWYER IS AN IMPORTANT DECISION THAT SHOULD NOT BE BASED SOLELY UPON ADVERTISEMENTS. BEFORE YOU DECIDE, ASK THE LAWYER TO SEND. FREE WRITTEN INFORMATIONABOUT THEIR QUALIFICATIONS AND EXPERIENCE.. NOTICEIi Public Service Announcement The U.S. Mint� has announced the release of the: first Presidential Dollar for 2007. To ensure equal covZ erage in your area, you can receive as many as eigbh uncirculated Presidential Golden Dollars FREE. Log onto for details. - Coin images courtesy ol U.S. Mnf The FREE Presidential Golden Dollars are in Brilliant, Uncirculated condition. Coins in this collec- tor-grade condition cannot be found in your pocket change. These FREE Presidential Golden Dollars can be guar- anteed to your area for the next 48 hours. You must log- on to for complete details. All FREE claims should be made immediately. The original plan was to sell the coins only to known collectors in your area. But it is important that every- one has an equal opportunity to get them FREE. According to U.S. Mint� Director Edmund C. Moy, "Our research indicates that, like the 50 State Quarters coins, the Presidential $1 Coins will be popular with millions of Americans." Collectors are expected to hoard these new coins for their personal collections. As such, these coins are expected to increase in value like the State Quarters. State Quarters are worth 400% more and one has reached an amazing 800% more than face value. Imagine what the new, Presidential Golden Dollars will be worth. GUARANTEED UNCIRCULATED CONDITION Visit for details on how to get your FREE PRESIDENTIAL DOLLARS. learnhow o ge FRE PREIDENIAL COLLAS ati VERTICAL BLIND OUTLET 649 E Gulf To Lake * Lecanto FL S637-1991 -or- 1-877-202-1991 ALL TYPES OF BLINDSlI" an unsure economy. APY* 5. 5 6 month I $10,000 minimum balance rT/Tzeez.,ze'rez/7.,77777/T 36t 21 r///7rrrrii Z"", - ---- Z77;72rrrr Jf o I * -II . II -� L,�1 I I II NATirj[4N/Wcvaui> CIT1RUS COVNTY1'(FL) CH-RONICLEE STOCKS S12A THUrlsAY, MARCH( 15, 2007 Crneus (;OUNrY (FL) CnwoNICI.E MOST ACTIVE (1 OR MORE Name Vol (00) Last Chg FordM 557845 7.51 -.13 Pfizer 471811 24.86 -.08 GenElec 351664 34.31 +.22 CVSCp 349678 32.31 +.41 EMCCp 307118 13.00 +.01 ; GAINERS ($2 OR ORRE) SName Last Chg %Chg "HomeBanc 2.70 +1.23 +83.7 AcMtgpfA 14.36 +6.11 +74.1 ~IlomeBpfA 19.00 +5.30 +38.7 - NovaStar 4.18 +.75 +21.9 NtAustun 48.50 +7.00 +16.9 - LOSERS ($2 OR MORE) .Name Last Chg %Chg Navioswt 2.31 -.38 -14.1 FxcelM 16.57 -1.42 -7.9 99 Cents lf 13.60 -1.03 -7.0 BISYSII 11.57 -.63 -5.2 PopeTal 6.75 -.37 -5.2 Advanced Declined I Unchanged Total issues SNew Highs SNew Lows Volume DIARY 2,024 1,294 136 3,454 35 88 3,719,620,510 MOST ACTIVE ($1 OR MORE) Name Vol (00) Last Chg SPDR 2189117 139.28 +1.03 iShR2Knya1261519 77.25 +.86 SP Fnc 404304 34.88 +.08 SPEngy 351890 57.20 +.65 PrUShQQQ n247539 55.51 -1.72 GAINERS ($2 OR MORE) Name Last Chg %Chg Renlech 2.39 +.39 +19.5 GeoPetron 5.75 +.75 +15.0 JavelinPn 6.89 +.86 +14.3 HanovCap 4.00 +.42 +11.7 MCFCprs 4.80 +.50 +11.6 LOSERS ($2 OR MORE) Name Last Chg %Chg WinlandEl 3.45 -.85 -19.8 Sifco 9.00 -1.49 -14.2 OrleansH 10.79 -.99 -8.4 Microfncd 5.53 -.47 -7.8 Oilsandsgn 2.90 -.20 -6.5 DIARY Advanced Declined Unchanged Total issues New Highs New Lows Volume 560l 563 88 1,211 18 60 703,868,441 MOST ACTIVE ($1 OR MORE) Name Vol(00) Last Chg Nasdl0OTr 1850545 42.99 +.62 SunMicro 835109 6.31 +.16 Microsoft 741986 27.40 +.68 Intel 692730 19.23 +.11 Cisco 526333 25.85 +.35 GAINERS ($2 OR MORE) Name Last Chg %Chg AscentSol 8.79 +4.14 +89.0 AscntSlwtA 2.18 +.98 +81.7 AccHme 6.04 +2.07 +52.1 Fieldlnv 3.47 +.75 +27.6 DayStar 5.31 +1.02 +23.8 LOSERS ($2 OR MORE) Name Last Chg %Chg Proxymed 3.00 -1.97 -39.6 DiamMgmt 11.17 -3.68 -24.8 AudCodes 7.44 -2.10 -22.0 FstConsut 9.46 -2.20 -18.9 SeaChng 7.85 -1.75 -18.2 DIARY Advanced Declined Unchanged Total issues New Highs New Lows Volume 1,647 1,366 151 3,164 24 168 2,234,486,685. n ,,, a , rs Name: SiockI appear alpiiat.Eicaliy by ihr , :',nmparn', lull nijrrAr - g Inro l1s abore..,-,il.nl lj.rre conrii tling :.t ,ir, n ia1 appear al ihe beaginnirig o ol rt. i lilt, I i Last: Pri,: Is c1.: Ir 3 Ir.ain1 a l V'riE r., t . : ri.l - :lose10 E O ior I ea is i Chg: LOs' ,r ga., lI:,r irh 3', rJo cri nrqe a drridj ,lea ob Stock Fo tniotes. : FE I r i r. i .,t .. Id i : ,,.i rE., --- -- ----n -, -m-ni --- ri L - ) p an Idjes* ..i . 4s.v 1.1iJ - L4,,i -r -134 i,.aI .i i.L,'i3 uirE i jnir.'. ire I.T y.-3, .C af . I, 3.1,- .4I 5 -li"e.id a, 3,i- Inga: r,:3i;- ujia r ii 11b3,2l J.i i o Ap + .3r ir, .n ,1 .j ire rrn, j Dividend Footnor. -. ; PT, iI.n ,J' nure p3,1 ta' i i., ..i.r.! i i4 . A..,,i ii p, AlliS .. ir, id .tia IJ.] i n P.d A .u '44. is,, .1 4 pa..t I&i Ci 2 014.111. I . :--r : e. xai 41., i,,ce n,.r I i: ",,: ,3 i .3, I .1,4, ,lr.. x.,' . men. i~~oiqar azer �l ur.-JA I ii -c tlaii.� wpic% lu, Al: ar- : ir. Irco A ! I Pne r. W:c Dividen F ootresdi ... a: i, E i. 3 14. I~jp niuieri eT.,,,3,,i ...l , .11.r I 1.1. .t , y 17..ai . 31 Soure: Te Asociaed Pess Sals fiuresarePnofIcil ISTOC S O LCL NERS YTD Name Div YId PE Last Chg %Chg AT&T Inc 1.42 3.8 BkofAm 2.24 4.5 CapCtyBk .70 2.3 Citigrp 2.16 4.4 Disney .31 .9 EKodak .50 2.2 ExxonMbl 1.28 1.8 FPL Grp 1.64 2.8 FlaRock .60 .9 FordM GenElec 1.12 3.3 GnMotr 1.00 3.3 HomeDp .90 2.4 Intel .45 2.3 IBM 1.20 1.3 Lowess .20 .6 McDnlds 1.00 2.3 20 37.21 11 49.77 17 30.04 11 49.08 16 33.73 22.60 11 71.02 18 58.82 21 66.77 7.51 17 34.31 30.25 13 37.56 22 19.23 15 93.76 16 31.03 15 43.65 -.05 +4.1 +.31 -6.8 -.39 -14.9 +.33 -11.9 +.11 -1.6 -.19 -12.4 +1.11 -7.3 +.51 +8.1 -.11 +55.1 -.13 +.22 -7.8 -.26 -1.5 +.21 -6.5 +.11 -5.0 +1.05 -3.5 +.29 -.4 +.17 -1.5 Name Div YId PE Last MIcrosoll I I - - Microsoft .40 Motorola .20 Penney .72 ProgrssEn 2.44 RegionsFn1.44 SearsHldgs ... SprintNex .10 TimeWarn .22 UniFirst .15 VerizonCml.62 Wachovia 2.24 WalMart .88 Walgrn .31 18 174.08 45 19.40 13 19.45 18 39.87 17 36.28 12 54.44 YTD Chg %Chg +.68 -8.2 +.16 -10,5 -1.76 +1.5 +.54 -.4 +.38 -7.0 -2.41 +3.7 +.36 +2.7 +.03 -10.7 17 45.73 -.23 -1.0 25 44.60 +.46 -2.8 52-Week Net .% YTD 52-wk Hiah Low Name Last Chg Chg % Chg % Chg NEK STAN PD FerO 0 4.97 -.1 GA Oxolch 48.3 +8 HN Hnw:a 6.8 +0 Tkr " Name " Last Chg 'ABB ABBLtd 16.60 -.07 ACE ACE Ld 53.93 +.71 AES AESCorp 20.56 +.03 AFL AFLAC 45.88 +24 AG AGCO 35.65 -.45 ATG AGLRes 40.06 +.16 AKS AKSteel 22.25 +.31 AMR AMR 31.77 -.85 ASA ASALtd 59.19 -.58 T AT&TInc 37.21 -.05 SST AT&T 204125.20 +.05 AUO AUOpron 14.13 -.03 AXA AXA 39.82 -.73 ABT AblLab 53.77 -.34 ANF AberFitc 73.87 ABY Abifbig 2.70 -.02 ACN Accenture 35.46 -22 ADX AdamsEx 13.63 +.03 ( 'KAR Adesa 27.44 +.17 AMD AMD 14.13 +.19 ARO Aeropsu 37.71 +.67 AET Aebta 42.49 -.31 SA Agilent 32.00 +.33 �IAEM Agnicog 37.03 +.34 AGU Agriumg 37.70 +.02 'AHO Ahold 10.09 -.04 ,. APD AirProd 72.83 -.23 AAI AlrTran 9.87 -.29 ' AL Alcan 51.82 +.33 ALU AlcatelLuc 11.93 +.06 SAA Alcoa 33.32 +.57 .AFN AlesooFnd d8.65 +.08 AYE AllgEngy 46.53 +.19 SATI AllegTch 101.50 +1.15 AGN Allergan 108.48 +2.67 -ALE Allete 45.89 +.29 . AWF AlliBGIbHi 13.64 +.01 'ACG AiiBIlno 8.24 -.02 AB AlliBem 82.85 -.45 LNT AliantEgy 43.97 +.42 'AZ Allianz 20.00 -21 AAW AldWaste 1241 +.18 SALL Allsate 59.30 +.17 ,AT Altel 61.56 +.93 ALO Apharma 25.34 -.06 MO Alia 83.90 -.14 MONWI A iawi d63.70 +.60 ABK AmbacF 86.48 -.41 Amneren 49.59 -.01 M.. ANX AMovilL 44.38 +.60 AEO AEagleOs 30.50 +.92 AEP AEP 45.61 +.34 AXP AmExp 55.71 +.96 AHM AmHmMtg 24.28 +2.92 AIG AmlntGp i 67.00 -.36 AOB AnOrBo 8.90 +.38 ASD AmStand 52.68 +.38 CSP AmSIP3 12.02 -.02 AMT AmTower 37.62 -.05 ACF Ameridt d22.04 +.19 APU Amerigas 31.65 +.14 AMP Amenprise 55.06 +.52 ABC AmeriBrg 51.88 +.77 APC Anadarks 40.09 +.01 ADI AnalogDev35.40 -.44 AU AnglogldA 42.28 +.37 BUD Anheusr 50.50 +.45 AXE Anlxter 63.45 +3.38 ANN AnnTayr 35.28 -.58 NLY Annaty 13.80 +.05 AOC AonCorp 36.74 -.09 APA Apache 68.40 +1.24 AIV Apllnv 55.28 +.49 ABI ApplBio 28.77 +.22 AHG Apria 31.00 -.13 WTR AquaAm 21.69 +.14 ILA Aquila 4.07 +.01 MT ArcelorMit 50.57 +.36 ACI ArchCs 30.00 +.29 ADM ArchDan 33.64 +.16 ASN ArchslnSm 53.86 +.17 ARM AvMeit 17.57 +.09 ASH Ashland 62.95 +.19 AEC AsdEstal 14.29 +.04 AZN AstaZen 55.62 -.21 ATO ATMOS 31.36 +.36 AN AutoNatn 21.00 -.23 ADP AutoData 48.32 +.11 AV Avaya 11.85 +.28 AVT Avnet 36.31 +.08 AVP Avon 37.20 +.35 BBT BB&TCp 40.43 +.15 BHP BHPBilut 42.58 +.29 BSG BISYSIf 1157 -.63 BJS ,BJSvcs 27.48 +.36 BMC BMCSft 30.93 +.98 BP BP PLC 59.93 +.18 BRT BRT 29.99 -.28 BHI BakrHu 63.34 -.43 BLL BallCp 45.56 +.54 BBD BcoBrades 37.06 +.40 TU Bncoltau 33.81 +.19 BAC BkofAm 49.77 +.31 BK BkNY 38.49 +.38 CAH CardnlHlth 70.00 -.09 LFC ChinaLfes 40.22 +77 CMA Comerica 58,09 +.46 CFC CntwdFn 34.39 +.90 BCS Barclay 53.73 -55 CMX CaremkRx 61.08 +70 CHL ChinaMble 43,26 +.67 CBH CmcBNJ 32.39 +.09 CVA CovantaH 21.81 -.23 ABX BarickG 27.61 +19 KMX CarMax 49.25 -1.57 CB Chubbs 49.42 +.89 CTV ComScopu41.15 +3.31 CCI CrwnCstle 32.41 -.15 BOL BauschL11 50.80 +59 CCL Canival 45.14 -.15 CHT ChungTel 19.29 +.08 RIO CVRDs 35.08 +.91 CY CypSem 19.19 -.15 BAX Baxter 5074 +.79 CAT Caterpillar 63.64 +.30 CB CiniBell 4.49 +.14 ROp CVRDpfs 29.85 +1.01 BTE BaytexEgndl6.29 +.01 CLS Celesbicg 6.18 +.09 CC CircCity d17.40 -.22 CSC CompSci 51.13 +.10 BSC BearSt 145.29 +2.32 CX Cemexs 32.85 +.10 C Citire 49.08 +.33 CAG ConAgra 24.18 -.15 ONP DNPSelcl 11.08 -.00 BE BearingPIf 7.52 -.02 BZH BeazrHm 32.99 +.97 BDX BedclOd 74.55 +1.07 BBY BesB y 48.15 +.49 BIG BIgLots u30.04 +1.78 BKH BIkHilsCp 3625 +.49 BRF BIkFLO8 14.55 +.05 HRB BlockHR d20.14 +.09 BBI Blockbslr 7.00 +.12 BLU BlueChp 5.99 0 06 BA Boeing 89.98 +.53 BOP Borders 20.48 +26 SAM BostBeer 33.90 +.64 BXP BoslProp 117.66 +.48 BSX BostonSci 15.24 +.16 EAT Brinkers 32.00 -.02 BMY BrMySq 27.02 + 22 BC Brunswick 31.50 -.84 BG BungeLt 75,71 +.02 BKC BurgerKn 20.25 -.35 BNI BuriNSF 78.07 +.16 CA CA Inc 25.19 +.14 CBG CBREIliss 32.21 +.24 CBS CBSB 30.50 -.06 CF CF lnds 40.68 +.03 CHG CHEngy 47.20 +.42 CI CIGNA 139.11 +2.04 CIT CIT Gp 51.17 +.21 CMS CMSEng 16.99 +.08 CSS CSS lnds 34.15 +1.30 CSX CSXs 36.74 -.36 CVS S CVSC 32.31 +.41 CVC CablvNYs 29.99 -.66 COG CabotO&G 66.69 +1.00 CSG CadbyS 46.98 +.98 CCC CalgonIf 7.47 +.20 ELY CallGolI 15.06 +10 CNP CenterPni 17.44 +.04 CZN CitzComm 14.45 -.04 COP ConocPhil 6791 +1.32 DPL DPL 3000 +.02 CCJ Camecogs 37.04 -.05 CTX Centex 44.10 +1.34 CLE ClairesStrs 30.49 +.23 CNO Conseco 16.95 +.38 DHI DRHorton 22.80 +.49 CAM Cameron 58.92 +108 CERp CnLtp 88.00 . CCU ClearChan 35.02 +27 CNX ConsolEs 35.19 +.28 DTE DE 46.32 +.20 CPB Camp~p 39.10 -.14 Cit CnbyTel 43.65 8 +09 CON Coach 48,80 8 +06 ED ConEd 48.48 +.44 DCX DaimlrC 69.19 +.20 CNO CdeNRsg 51.63 +56 CHB ChmpE 9.40 +1.15 CCE CecaCE 20.15 -01 STZ ConstellA 19.30 +18 DHR Danaher 70.48 +.58 CN e bsg - -mnt DR[ Darden 39.61 +.38 CE Cahe 12.3 +02 CKP CheEknt 19.38 -.11 K CocaC 4704 .02 CEG ConslellEn 81.05 3 +74 Dre 69+3 COF CapOne 75.21 +.46 CHK ChesEng 29.86 +.486 CDE Coeur d4.05 +,01 CAL C6AirB 36.62 -.63 F DeanFds 45.67 -.22 CSE CapitSrce 23.30 +.15 CVX Chevron 68.32 +.48 CL CoPal 65.33 -.54 CVG Cnvgys 2464 -.03 oDE Deere 110.69 +1.35 CMOB CapM p 12.70 C2ME ChiMrc 563.97 +13.52 CNB CIBgp 24.73 +.04 GLW Coming 21.60 +.28 DT DeutTdel 16.33 +.05 -.25CHS Chicos d21.94 -.46 CMK Coldlnln 8.41 +.08 CGA CorusGr 23.45 +18 OR DevDv 62.50 -.19 AMERIC AS Tkr" Name " Last FAX AbdAsPac 6.24 AE AdmRsc 36.56 ADH Adherxg .47 ANX Adventx d2.02 AK Aurizong ' 3.21 BBH BiotechT 174.83 BTJ Bolftech 29.60 BDH BrdbdHT 15.95, CNY CarverBcp 16.10 JCS ComSysIf 10.93 COR CortexPh 2.30 DVW CovadCm 1.13 Chg KRY Crystaixg 300 +01 GSX Gascongyd1.71 +.02 +.01 DIA DJIADiaml21.66 +.64 GSS GoldStra 3.99 -.06 -.95 DAR Darling 5.46 -.06 GW GrevWoli 6.58 +.06 +.01 DFC DeltaFncI d7.99 -.54 HEC Harken .41 -.02. +.01 EIV EVlnMu2 15.86 +.07 HH HooperH 4.10 +.03 -.02 EGO EldorGldg 5.61 -.10 IGR 'INGGRE 20.74 +.13 +.42 ECF EllswthFd 8.43 -.07 EWA iSAstlanya 24.57 +.41 - r E4 Endeavor 10.78 -.02 EWG iShGernya 27.00 +02 .'. EMU EgyMgnya10.53 +.32 EWW iShMexnva 50.50 +.90 EEE EvgmEnya 7.22 +.09 SLV iShSilvern 128.01 +1.11 +.38 FPU aPUtil 12.81 -.06 OEF iShSP100cbo63.83 +.37 -.10 FRG FronlrDg 11.55 +.13 AGG iShLeAgBd100.68 -.12 +.01 GRS GamLkg 16.25 -.05 TLT iSh20TB 89.88 -.41 SHY iShl-3TB 80.40 +.02 JAZWS IBB iShNqBio 73.45 +.08 -.01 ICF iShC&SRInya103.49+.13 KOG K IWD iSR1KVnya81.09 +.53 LTS La IWF iSR1KGnya54.82 +.45 LMC L IWN iSR2KVnya78.84 +.93 GD X IWO iSR2KGnva7799 +.59 MEK M IWM iShR2Knva 77.25 +.86 MDF M IWW iSR3KVnya105.72 +.68 MNG M INS InlgSysh 3.82 +.07 NAK N IAH InetArch 41.15 +.37 NTO N JAV JavelinPn u6.89 +.86 NXG N odia adTN undi IktV terne Metre letro liram Dyn Orio Nhgtt JazzTch wt .91 kOgn 474 -10 halFn 2.51 -.12 nMs 1015 +.10 Gold n 37.36 +.21 mac 9.10 +.11 etek 11.51 -44 Hlth 235 -.01 mar 4.20 +.12 Mng 9.85 -.22 mng 4.18 -.04 Mg 3.23 +.02 DVN DevonE 64.01 +.73 DO DiaOffs 76.24 +.42 DDS Dillards 31.80 -.44 DTV DirecTV 22.46 -.04 DIS Disney 33.73 +.11 DG DollarG 21.01 -.09 D DomRes 84.70 -.04 UFS Domtarq 9.50 +.16 RRD DonlleyRR 35.30 -.19 DRL DoralFin d1.21 -.32 DOV Dover 47.30 +.34 DOW DowChm 43.38 +.44 DSL DowneyFn 62.99 +.63 DD DuPont 50.01 -.33 DUK DukeEgys 19.39 +.05 DRE DukeRlty 42.93 +.21 DOE DuqLight 19.77 +.05 DYN Dynegy 8.52 +.02 ECR ECCCaph .41 -.01 EMC EMCCo 13.00 +01 EOG EOGRes 67.39 +1.52 EMN EastChm 59.80 +.15 EK EKodak 22.60 -.19 ETN Eaton 82.59 +1.35 ECL Ecolab 42.61 +.80 EIX Edisonlnt 48.36 +.64 EP EIPasoCp 13.99 +.23 ELN Elan 12.56 +.01 EDS EDS 27.29 -.05 ERJ EBrasAero45.55 +.51 EMR ErersnFJs 42.59 +.38 EDE EmpDist 23.48 +.23 EEP EnbrEPrs 53.81 ECA EnCana 47.03 +.45 ELE Endesa 50.95 +.38 EPL EngyPrt 17.81 +.54 NPO EnPro 36.63 -.12 ESV ENSCO 50.94 +.63 ETR Entergy 98.99 +.44 EOT EqtRes 42.92 -.44 ENN Eqtylnn 15.57 +.31 EQR EqtyRsd 48.10 +.48 ESE EscoTech 44.95 +4.13 EL EsleeLdr 48.25 -.17 EXC Exelon 65.46 +.51 EXR ExtraSpce 19.90 -.02 XOM ExxonMbl 71.02 +1.11 FPL FPLGrp 58.82 +.51 FCS FairchldS 18.15 -.27 FDO FamDIrll 28.77 -.76 FNM FannieM f 53.60 +.66 FDX FedExCp 112.62 -.07 FSS FedSignl 15.00 +.03 FD FedrDSs 43.97 -.13 FGP Ferrellgs 22.75 +,02 FOE Ferro 21.00 -.03 FIS FidNlnfo 44.13 -.19 FAF FstAmCp 51.57 -.01 FDC RrslDatas 24.48 +.10 FF FslFinFd d14.25 +.04 FHN FslHorizon 40.51 -.03 FMD FslMarbs 42.05 -.21 FFA FtTrFid 18.07 -.01 FED FslFed 52.97 +.93 FE FirstEngy 62.08 +.26 FLE ReelEn 7.45 +.20 FRK RaRock 66.77 -.11 FLR Ruor 87.77 -.68 FL FootLockr 22.06 +.12 F FordM 7.51 -.13 FDG FrdgCCT g 22.42 -.20 FRX ForestLab 50.87 +.04 FIG Fortressn 25.14 +.89 FO FortuneBr 77.91 +.04 BEN FrankRes 117.31 +1.17 FRE FredMac 60.69 +.53 FCX FMCG 56.38 +.36 FMT Fremont 6.66 +.48 FBR FriedBR 4.97 +.33 FTO FrontOils 31.18 +.26 FBN FumBrds d15.87 -.04 GMT GATX 45.86 +.18 GAB GabelliET 9.62 +.06 GUT GabUil 9.83 -.26 GCI Gannet 58.85 +.24 GPS Gap 17.46 -.08 GTW Gateway 2.27 +.14 DNA Genentch 80.92 -.38 GD GenDyns 77.58 +.81 GE GenElec 34.31 +.22 GGP GnGrthPrp 63.72 +.62 GIS GenMills 55.32 +.28 GM GnMott 30.25 -26 GBM GMdb32B 20.75 -.15 GPM GMdb33 22.68 -.11 GNW Genworth 34.34 +.08 GGC GaGulf 17.80 +.53 GPU GaPw8-44 25.54 -.33 GGB Gerdaus 16.74 +.35 GSK GlaxoSKIn 54.83 -.42 GSF GlobalSFe 58.80 +.67 GFI GoldFLtd 16.91 +.16 GG Goldcpg 23.77 +.48 GS GoldmanS 200.15 +1.12 OIH OilSvHT 139.2 +1.66 DXD PrUShDown60.85 -.80 KBE sTKbwBk 55.64 +.26 XIK SPTech 22.98 +.21 BQI Oilsandsond2.90 -.20 MZZ PrUShMCn60.50 -.47 KRE sTKbwRBnd47.05 +.17 XLU SPUil 38.25 +19 ONT On2Tech 1.17 . QLD ProUltQQQn78.86 +2.13 XRT SpdrRetn 41.20 -.01 STG Stonepath 25 +.01 OHB OrleansH d10.7 -.99 QID PrUShQQQ n5551-1.72 SMH SemiHTr 34.27 -.07 TGB Taseko 2.51 -.04 PMU PacRim 1.04 -.03 SSO ProUtSPn 81.89 +1.22 SPY SPDR 13928 +1.03 TDS TelD.ta 55.95 -.76 PRZ PainCare d.55 -06 TWM ProUSR2Kn71.59 -1.71 MDY SPMid 150.43 +.64 I TP TiranPhm 223 -.08 PPH PhmnHTr 7597 . QEE Cnstakeg .15 -.00 XLB SPMatls 36.75 +.23 TMY TmsmrEx 290 -.11 PDC PanDril 1213 -.05 RKH RegBkHT 154.83 +.89 I XLV SPHIthC 33.21 +13 UPL UltraPtg 49.05 +.33 PBW PwSCinEn 170 ... RTK Rentech 2.39 +.39 XLP SPCnSt 25.80 +.05 USO USOilFdn 49.14 +.20 PWV PwSLgCV 1926 +.10 RTH RetailHr 9910 +05 XLY SPConsum37.44 -.07 URZ Uranerzn 4.74 -.03 ;PHO PwSWtr 18.27 +.17 RNO RioNarcg 3.47 +.10 XLE SPEnEq 57.20 +.65 VWO VangEmg 74.47 +1.36 SH ProShtS&Pn64.30 -.68 RSP RdxSPEWs47.52 +25 XLF SPFnd 34.88 +.08 VGK VangEur 67.12 +.25 SDS PrUShS&Pn61.30 -.87 XHB SodrHome 3379 +83 XLI SPnds 35.16 +.14 VRA Viraenh d.10 -.02 NASDAQNATIONAL ARE STkr "Name Last Chg ACMR ACMoore 20.42 -.83 i ADCT ADCTelr 16.32 +.44 SAMIS AMISHId 11.47 +.11 ASML ASMLHki 23.03 +.14 SATMI ATMIInc 3202 -.11 ATPG ATPO&G 36.07 -.41 ATSI ATSMed 2.05 -.13 AVII AVIBio 2.70 +24 SASTM ,Aasrom 1.35 CBMX AcaComb .60 -.02 SLENBD AccHme 604 +2.07 APKT AcmePcldn13.97 -82 SACOR AcordaTh 17.74 -.59 rvbACTS ActionSemi 7.00 -.07 r A Acivisn 16.95 +.09 RXT AdamsResp 38.27 +.02 S ADPT Adaplec 3.75 +.12 I DZZA AdezaBio 23.99 +.04 ADBE AdobeSy 39.30 +.65 ADLR AdolorCp 7.94 -.65 ,-ADTN Adtan 23.76 +.31 ',AEIS AdvEnld 20.48 +.12 ' ADVNA Advanta 37.17 +.67 - ADVNB AdvanB 40.70 +.88 ARXX Aerofex 12.99 -.03 AFFX Affymetri 2819 +1.57 AIRN AispanNet 3.82 +21 AKAM AkamaiT 51.85 +.35 AKZOY Akzo 71.44 +1.18 ALDA 'Adila 16.69 +22 ALXN Alexion 37.01 +.73 LGN'j AlignTech 16.70 +.48 1Li Alkerm 15.06 -.15 l. AIscnpls 24.62 -.19 ANY AnylamP 1755 +25 T AllaiNano 3.25 +.05 TR AlteraCpl 21.03 +.13 ATAS Aifirs o32.83 +.02 ALVR Ahvaion 7.47 -20 AFSI AmTrFinn 9.99 +.27 AMRN AmarinCp 249 -.13 AMZN Amazon 38.08 +.26 ABMC AmerBio 1.21 +.13 ACAS AmCapStr 43.04 +.63 ACLI ACmclLnn 33.07 -26 AMMD AmerMed 20.19 -.20 AMSC AmSupr 13.50 -.30 ASCA AmCasino 33.15 +.17 AMGN Amaen 60.69 +.30 AMKR AmkorTil 11.71 +.16 AMLN Amylin 38.44 +.45 ANAD Anadigc 13.02 -.07 ALOG Anlogic 60.04 +.60 SANLY Analysts 1.80 ', ANLT AnlytSurh .73 +.02 'ANDE Andrsonss 40.90 +.30 'ANDW Andrew 10.21 +.22 ANPI Angiolchg d6.09 -.06 AAUK AngloAm 23.27 +.08 APOL ApolloGIl 45.26 +.30 .AINV Apdlolnv 21.17 +.45 AAPL Aolelnc 90.00 +1.60 APPB Applebees. 24.51 -.20 ADSX AppIdOigl 1.46 -.06 AINN Apldlnov 3.36 +.02 AMAT AildMatl 18.39 +,05 .AMCC AMCC 3.41 +.05 AQNT aQuanive 25.98 +.03 ARNA ArenaPhm 11.19 -.25 ARCC AresCap 18.53 +71 ARIA AadP 4.29 -.01 ABFS ArkBest 36.93 +.55 ARRS Anis 12.98 -.13 SARTG ArtTech 2.23 +.04 ARTC ArthroCr 33.93 -.04 AST AscentSol u8.79 +4.14 ASTIW AscnISIwtA 2.18 +.98 ASTIZ AscntSlwtB u.91 +.38 AZPN AspenTc 0 11.82 +.07 ASBC AsscdBanc33.29 +.13 AGIX AthrGnc 8.60 -.42 ATHR Atheros 25.43 -.01 ATML AlmellI 522 -.04 AUDC AudCodes d7.44 -2.10 VOXX Audvox 14.39 +.47 ADSK Aulodeskf 37.76 +.32 AVNX Avanex 1.81 +.04 AVNR AvanirP d1.09- -05 AVID AvidTch 3279 -.10 AVCT AfoclCp 28.34 +.04 AWRE Aware 5.45 +.01 ACLS Axceis 7.35 +.08 BEAV BEAero 30.73 +1.88 BEAS BEASvss d10.95 +.04 BIDU Baiducom 97.37-1.54 BKMU BankMuti 11.07 +.12 BKUNA BnkUtd 21.35 +.89 RATE Bankrate 36.38 +133 BARE BareEscn 34.90 -.50 BECN BeacnRfs d15.56 +.06 BBGI BeasleyB 9.00 -.20 BEBE BebeStrs 17.09 +.26 BBBY BedBath 38.92 +.09 B11B Biogenldc 44.11 +.95 BLTI BioLase 8.92 -.13 BMRN BioMarin 16.22 +.15 BMET Bomellf 4218 +.11 BPUR Biopure .60 +.03 BOBE BobEvn 36.40 -.09 BKHM Bookham 2.36 -.02 BORL Boland '4.96 +.05 CELL Blighlpnt 10.54 +.03 BRCM Broadcom 34.05 +.62 BRCD BrcdeCm 9.80 +.25 BRKL BrklneB d1219 +.11 BRKS BrooksAuto 16.32 +.17 BRKR BrukBio 9.46 -.01 BUCY Bucyruss 50.30 -.23 BOBJ BusnObj 35.97 +1.60 CCBL C-COR 12.70 +.11 CBRL CBRLGrp 47.05 +.08 CHINA CDCCpA 9.00 +.25 CDWC CDWCoip 60.38 +.14 CHRW CH Robins 47.11 +.37 CMGI CMGI 1.80 +.04 CNET CNET 8.29 +.04 CSGS CSGSys 24.71 +.35 CVTX CVThera 9.32 +.22 CACH Cache lnc 18.57 -.03 CDNS Cadence 20.27 +.16 CLMS CalmsAsI 22.41 +.30 CSIQ CdnSolarnd9.33 -1.49 CCBG CapCtyBk 30.04 -.39 CPST CpstTrb .85 -.01 CECO CareerEd 29.48 -.10 CRZO Canizo 29.22 -.13 CATY CathayGend32.85 +.45 CBEY Cbeyond 29.25 +.74 CELG Celgene 52.15 +1.96 CEGE CelGens 2.93 -.01 CTIC CelfThera 1.72 +.10 CENX CenlAl 43.80 +1.11 CEPH Cephin 66.80 +.01 CRON Ceradyne 55.20 +.99 CERN Cerner 53.65 +.58 CHAP Chaparrals 51.32 +1.49 CHIC ChalRsse. 26.94 +.48 CHRS ChrmSh 11.80 -.02 CHTR CharlCm 2.93 +04 CHTT Chattem 5209 -.94 CHKP ChkPoint 21.43 -.08 CKFR ChkFree 35.99 +.31 CAKE Cheesecake 27.34 +.63 PLCE ChildPIcf 55.45 +.26 GRRF ChinaGrTn 9.65 -.54 IMOS ChipMOS 7.51 +.01 CHDN ChrchlD 43.34 +.39 CIEN CenaCprs 25.65 +.25 CINF CjnnFin 42.24- -.06 CTAS Cintas 40.10 +.44 CRUS Cirrs 7.96 -07 CSCO Cisco 25.85 +.35 CRBC CitizBkg 22.71 CTXS CitriSy 31.56 +.34. CLHB CleanH 47.23 -3.67 CLWR Clearwkren 20.76 -.99 CCOI Cogen(C 23.00 -.19 COGT Cogent 11.94 +.47 CTSH CogTech 89.82 +1.13 COGN Cognosg 39.96 +.18 CWTR ColdwlrCrkd17.05 -.23 CMRO Comarco 8.96 +.36 CMCSA Comcasts 25.83 +.32 CMCSK Comnsos 25.59 +.16 CBSS ConpsBc 6722 +31 CCRT CompCrd d27.06 +.92 CPWR Compuwre 9.13 +14 COGO ComtchGr 15.20 +02 CCUR ConcCm 1.43 +.03 CNXT Conexant 1.67 -.03 CNMD Conmed 27.69 +.74 CPRT Copart 27.82 +.07 COCO CorinthC 13.59 +.15 EXBD CorpExc d73:96 -95 CORS CorusBks d16.18 +.28 COSI Cosllnc 5.39 +.29 COST Coslco 5253 -.43 CMOS CredSys 3.54 +.28 CREE Creelnc 16.83 +.09 CRTX Critclher 2.19 +.39 CROX Crocs 44.57 +.09 CRWN CrwnMedia 4.75 -.05 CRYP Cryptgc 25.56 +1.69 CTRP Ciip.coms 6227 +1.63 CBST CubistPh 19.30 -.19 CYMI Cymer 41.30 -26 CYPB CyprsBio 693 -34 CYTR Cytx' - 3.94 -1 CYTO Cytogen 2.05 +00 CYTC Cylyc 3257 -03 DROOY DRDGOLDh d.57 +,01 DADE OadeBeh 4222 +.19 DAKT Daktmicss 24.47 -.05 DANKY Danka 1.28 -.06 DSTI DayStar 5.31 +1.02 DCGN decdGenet 3.95 +.12 DELL Delllnci 2232 +.53 DPTR DlaPtr 18.40 +13 ONDN Dndreon 3.89 -.14 DRTE Dendrite 15.61 +.09 DENN Dennys 4.51 XRAY Denlsplys 31.58 +.47 DTPI DIamMgmt 11.17 -3.68 DIGE DigeneCp ~"- -.56 DRIV DigRiver ,: +.01 DISCA DiscHoldA 16.95 -.02 DSCO DiscvLabs 2.08 -.01 DESC istEnSy d1.52 +.05 DVSA Diversa 6.66 -.01 DCEL DobsonCm 8.41 -.09 DLTR DirTree 35.56 -28 DBRN DressBns 19.60 +.33 DSCM drugsre d2.48 -.06 DRYS DryShips 21.48 -.74 DVAX Dynavax 4.89 -.03 ETFG ETrade 21.94 +.06 EBAY eBav 31.14 +.73 ECIL ECITel 8.16 +.14 EFJI EFJInc 5.31 -.09 EAGL EGLInc 35.17 +.33 EZEM EZEM 16.61 -.30 EGLE EagleBulk 18.92 -.18 ELNK ErhUink 6.69 -.12 EWBC EsIWstBcp 35.33 -.43 DISH EchoStar 42.50 -.43 ECLP Edipsys 18.32 +.03 EBHI EdBauern 8.81 +.32 EPEX EdgePel d11.92 +.11 EDUC EduDv 7.60 +.10 ESIO ElectSd 20.14 +.04 EGLS ElclrgIs d2.37 -.08 ERTS ElecArts 50.23 +.68 EMAG Emagen dlO.63 -.08 EMKR Emcorelf 4.88 +.04 HLTH Emdeon 14.35 -.05 EMIS EmisTch d3.64 -.43 ENCY EncysiveP d2.78 -22 ENDP EndoPhrm 29.05 -.17 ENER EngyConv 31.90 +.64 ENTG Entegris 10.61 +.01 ENZN EnzonPhar 8.09 -.02 EQIX Equinixh 81.99 +.89 ERIC EricsnTI 35.28 +.41 ESPD eSpeed 9.24 +51 ESLR EvrgrSi 9.73 -.09 EXEL Exeixis 9.09 +.13 EXPE Expedia 21.07 -.19 EXPD Expdtnlls 4271 -.23 TXCO Explor d9.08 -.12 ESRX ExpScipts 81.10 -.27 EXTR ExlNetwi 4.20 +.01 EZPW Ezcolps 14.61 +.14 FFIV F5Netwks 71.06 +.17 FEIC FEICo 33.71 -.25 FAST Fastenal 34.87 +.31 FTWR FiberTowrn 5.01 -.10 FICC Fieldlnv 3.47 +.75 FITB ifthThird 38.96 +.30 FNSR Finisari 3.06 -.02 FCGI FstConsult 9.46 -220 FNFG FstNiagara 13.83 +.14 FSLR FslSolarn 54.46 +.74 FMER FslMeri d21.05 +.20 FISV Fsem 51.26 +.65 FLML Flamerr 28.48 -.36 FLEX Flextm 11.10 +.03 .FLOW Rownt 10.90 -.08 FMCN FocusMda 73.36 -.11 FRPT ForcePron 16.47 +.28 FORM FormFac 45.17 -.07 FWLT FoslerWh 54.79 +.14 FORY Foundryt 14.14 -.06 FRT . FmlrAir 6.12 +.05 FSYS FuelSysis 1830 -.82 FCEL FuelCell 6.43. -.06 FULT FulonFncd 15.06 +.20 GFIG GFIGrp 62.06 +2.39 GMKT GMarketn 15.52 +.32 GTXI GTxInc 20.60 -1.87 GRMN Garmins 53.34. +.85 GMST Gemslar 4.09 +.11 GPRO GenProbe 4721 -.27 GENR Genaera h .46 GNBT GenBtolc 1.71 GNSS GenesMcr 9.02- +.2 GNTA Genta .37 -.10 GNTX Gentex 16.37 -.14 GNVC GenVec 2.56 -.16 GENZ Genzyme 60.16 +.69 GERN GeronCp 6.98 +.04 GIGM GigaMed 12.49 +.51 GILD GileadSci 69.56 +.73 GLBC GlobCrsg 26.11 -.56 GISX Globlmngs 19.47 +.02 GLBL Globilnd 1694 +.38 GOOG Gooqle 448.10 4.97 GBBK GdtrBay 26.19 +.19 GTRC GuitarC 44.96 +.66 GYMB Gymbree 38.35 +3.21 HMNF HMNFn 34.25 -.40 HANS Hansnshlf 35.05 +.38 HLIT Harmonic 10.27 -.25 HPOL Harrislnl 5.69 -.01 HTLD HrtlndEs 15.99 -.01 HLYS Heelysn d27.90 -.83 HSIC HSchein 51.29 +.32 HIBB Hibbell 29.42 +.16 HIMX HimaxTcn 5.27 -.05 HOKU HokuSc 4.67 +.11 HEPH HollisEden d2.54 -.23 HOLX Hologic 55.42 +36 HMIN Homelnnsn35.80 +.55 HSOA HomeSol d4.51 +.11 HOTT HotTopic 10.89 +.03 HWCC HoustWCn 24.98 -1.49 HCBK HudsCity 13.39 +.23 HGSI HumGen 10.35 +.05 JBHT HunUB 25.208 -.40 HBAN HuntBnk d22.08 +.18 HTCH HulchT 23.48 +.22 HYDL Hydril u96.03 +27 HYSL HyperSol 51.59 IACI AC Inter 36.48 -.04 IPCR IPCHold 27.82 -.22 ICON IconixBr 19.34 +.02 IKAN Ikanos 8.38 +.37 ILMN Illumina 29.54 +.68 IMAX ImaxCp 528 +.03 IMCL Irmcone 30.20 +.27 IMMR Immersn 8.65 -.02 BLUD Immucrs 28.36 +.20 IMMU Imunmd 4.44 -.15 MAMA Mamma 4.78 +.07 INPC InPhonic 11.81 +.18 MNKD MannKd d14.79 - C C.53Cn INCY Incyte 6.22 +.18 MATK Martek 20.95 -.19 PDLI PDLBio 19.31 +.25 IBCP IndBkMI 20.35 +.32 MRV Mavelsl 17.97 +13 PFCB PFChng 4124 -.65 INSP InfoSpce 25.22 -.13 MXIM Maxim l 32.17 -.08 PLXT PLXTch 10.35 +.14 IFOX Infcrssing 13.66 -.34 ! MXWL ManxIT 1261 +.07 PMCS PMCSra 662 +.21 INFA Infornal 13.18 +01 MEDI Medlmun 30.88 +02 PCAR Pacars 7138 +2.17 INFY Infosyss 51.70 -.41 MEDX Medarex 11.93 -.10 PACR Pacernt 27.47 +56 INWK InnerWkn 11.62 +.09 MCCC Mediacm 7.92 +.18 PEIX PacEthan 15.23 -.07 INSM Insmed .97 +07 MDCI MediActs 2268 +.83 PSUN PacSunT 17.86 -.18 IDTI InlgDv 1609 +.01 MDCO MedCo 24.51 -.79 PKTR Packelr 1190 -27 INTC Inlel 19.23 +.11 MPEL MeloPBLnd15.27 +.70 PAET PaetecHn d963 -.26 IDCC InterDig 31.29 +25 MLNX Mellanoxnd15.88 -1.76 PTIE PainTher d7.05 -.15 ITMN InterMune 22.42 +.50 MENT MenlGr 15.66 +.26 PALM Palmlne 17.30 +.36 INAP InlrNAPrs 16.67 +.08 MRGE MergeTech 3.89 +.03 PAAS PanASl 26.97 +.35 ISCA IntlSpdw 51.84 -.33 MMPI MerueloMn d8.32 -03 PANC Panacos 439 -.19 ISIL Intersi 25.45 -.25 MESA MesaAir 7.54 +.09 PNRA PaneBrd 5984 +.38 INTV Intervoice 6.25 -.07 METH Methode u14.05 +1.04 PTRY Panhy d4269 -23 IVAC Intevac 25.92 -.03 MCRL Mirel 11.42 -.02 PLLL ParPet 2122 +,04 INTU Intuits 28.15 +55 MCHP Microchp 36.56 +.03 PMTC ParamTch 18.82 +.06 SRG intSurg 108.92 +1.02 MSCC MiroSemi 19.93 +.26 PTMK Pathmrk 1251 +.02 SWIM Investols 13.73 -.34 MSFT Microsoft 27.40 +.68 PDCO Patterson 33.02 +.47 ISBC InvBncp 14.61 +.05 TUNE Microtune 4.35 +.28 PTEN PanUTI 21.45 -.15 IFIN InvFnS 56.37 +.70 MVIS Micvisn 3.32 -.21 PAYX Paychex 39.58 +.59 IVGN Invtrgn 61.47 +.46 MLNM MillPhar 10.80 +.08 PENN PnnNGm 43.10 +.12 IOTN lonatrn 5.09 -.02 MLHR MilerHer 36.44 -39 PPCO Penwest d11.33 -.28 ISLN is.onSysn 19.55 -55 MICC Miliconmnt 74.03 +261 PBCT PeopBCT 4238 +.40 ISIS sis 8.95 -.14 MSPD Mindspeed 2.13 -.04 PSPT PeopleSup-13.37 +.45 ITRI Iron 61.85 +.54 MSON Misonix 5.39 +.04 PPHM Peregrine .95 +.07 IVAN IanhoeEn 2.5 -.11 MINI MobileMini 27.21 +.86 PRGO Penigo 16,37 +.02 XXIA Ixia 9.95 +01 MOLX Molex d28.43 +26 PETD PetroDev 5020 +.37 MNTA Momenta 12.31 -.08 PETM PetsMal 30.66 +.63 JCOM j2Globalsi 27.38 +.15 MGRM Monogrm 1.77 ... PPDI PharmPdt 31.09 +.01 JASO .JASalarn 18.90 +01 MNST MonstrWw 47.60 -.16 PLAB Photlln 15.42 +.14 JDSU JDSUnirs 15.25 +18 MOVE Movelnc 5.36 -.33 PXLW Pxhwrks 1.77 +.04 JKHY JackHenry 23.00 +32 MYGN MynadGn 32.44 -.23 PLXS Plexus d1624 +24 JMBA Jamba 8.97 -.02 NABI NABIBio 4.92 -.03 PLUG : PlugPower 2.90 -.02 JMBAWJambawt 3.27 -02 NTGR NETgear 27.19 +.50 PLCM Polycom 33.27 -.08 JBLU JelBlue 11.75 -.12 NIHD NIIHIdg 71.25 +1.15 POOL PoolCop d34.49 +.01 JSDA JonesSoda18.75 -.13 NPSP NPSPhm 3.65 +.10 BPOP Popular d15.86 -.07 JOYG JoyGlbl 41.56 -.39 QQOQ NasdlOOTr 42.99 +.62 PWER Power-One 5.38 +.08 JNPR JnpiNtwII 18.09 +.35 NDAQ Nasdaq 27.50 -.17 PWAV Pownav 4.95 -.01 JUPM Jupinrmed 6.77 +.08 NSTK Naslech d9.82 -.33 POZN Pozen 14.11 -.49 KSWS KSwiss 27.54 +01 NAHC NatAtlH 12.69 +.02 PRST Prestek 5.75 +.28 KLAC KLATnc 51.98 +.48 NAVR Navarre 3.74 +.10 TROW PriceTRs 46.38 +.42 KNXA Kenexa 29.22 +.17 NKTR NeklarTh 11.28 +.08 PCLN pifceline 51.77 +.43 NITE KnghlCap 15.69 +,39 NETC NelSvcrs 11.99 -.07 PGNX ProgPh 22.61 -.62 KNOT Knotlnc 22.90 +.49 NTBK NetBank d2.48 -.06 PGIC ProgGam d5.40 -.25 KOMG Komag 30.94 -.16 NETL NetLogic 26.11 +.65 PILL Proxymed d3.00 -1.97 KRON Kronos 40.77 +.30 NTES Neleases 18.20 -.12 PSYS PsychSol 38.35 +.36 KLIC Kulicke 9.03 +.11 NFLX Neflix 21.11 +.56 OLTI QLT 8.35 -.10 KYPH Kyphon 42.96 +.94 NTAP NetwkA 36.30 +14 XING QiaoXing 16.38 +.35 LCAV LCAV 42.82 -.85 NRMX Neurochg 14.24 +.31 QLGC Qlogic 17.01 +.40 JADE LJInt 9.14 -.34 NBIX Neurcine 10.87 -.18 QCOM Qualcom 43.21 +1.38 LKQX LKQCp 20.76 +.01 NRPH NRvrPhm 63.45 -.01 QSFT QuestSfhlf 15.77 +.08 LYTS LSlInds 16.26 +.02 WAVE Nextwaven 10.29 -.31 QMAR QuinlMai 13.22 -.19 LTXX LTX 6.16 -.11 NOBH NobltyH 23.31 +.67 RFMD RFMicD 7.57 -.07 LJPC LaJollPh 7.40 -.34 NTRS NorTrsl 57.84 +1.02 RACK RackSs 16.72 +.31 LRCX LamRsch 45.45 +.65 NVTL NvtlWrIs u14.57 +.48 RADS RadntSys 11.93 +.78 LAMR LamarAdv 63.77 -.18 NVAX Novavax 2.83 -.10 ROIAK ROneD 6.85 -.05 LSTR Landslar 41:73 +.09 NOVL Novelll 6.94 +.13 RMBS RambusIl 20.23 +.32 LSCC Lallice 6.18 +.21 NVLS Novlus 32.87 -.21 GOLD Randgold 22.45 +.03 LAUR Laureate 59.28 -.23 NUHC NuHoiz 9.75 -.13 RNWK RealNwk d7.67 +.08 LWSN LawsnSIt 7.72 +.05 NUAN NuanceCm 13.37 -.02 REGN Regenm 18.51 +.13 LEAP LeapWirels 68.21 +.12 NTRI NulriSys 45.01 -.37 RCll RenlACt 2632 -.29 LVLT Level3 6.22 +.06 NUVO Nuvelo 3.10 -.02 RJET RepubAir u20.45 +,16 LBTYA UbGlobA 30.28 -.39 NVDA Nvidias 2891 -.14 RSCR ResCare 17.64 +.20 LBTYK UbGabbC 28.50 -.33 OllM 02Micro 7.33 -.05 RIMM RchMotn 135.74 +2,46 LINTA UbMIntAn 21.95 +.51 ORLY OReillyA 32.19 -.40 RVBD Riverbedn 28.89 -.26 LIFC Lifecell 23.87 -.12 OSIP OSIPhrm 31.47 -.08 ROCM RochMeds18.95 +.93 LGND UgandPhn 10.72 -.02 ODFL OldDomF 28.68 +.43 ROST RossStrs 31.46 -.34 LNCR Uncare 36.71 -.21 OMNI OmniEnr 9.86 +20 RGLD RoyGId 30.28 +.40 LLTC LinearTch 33.53 +.08 OVI OmniVisn 1206 +07 RYAAY Ryanairs 42.31 -.14 LQDT Liqidity 17.75 -.31 ASGN OnAssign 1219 -.24 LNET LdgEnt 25.26 -.21 ONNN OnSmond 10.04 +.06 SONE S1Corp 6.08 +.14 LOGI Logilechs 25.80 +26 ONSM OnstreamM 2.28 -.07 SFLK SAFLINKh .10 LOOK LoSumera 4.128 -.1702 ONXX OnyxPh 26.12 +.33 SBAC SBACom 27.13 +.10 LMRA Lumera 4.28 +.02 OTEX OpenTxtl 20.93 +.14 SEIC SEI Inv 58.41 +.49 I? i e] OPWV OpnwSy 8.65 SMTX SMTCCpg u3.08 +.35 MCGC MCGCap 17.16 +35 OPSW Opsware d642 -.07 SPSS SPSS 33.30 +.37 MGEE MGE 33.70 +.16 OPMR OplimalAg 848 +.63 STEC STEC 8.37 -.23 MOGN MGIPhr 20.23 -.17 OPTN OptionCare13.40 -.19 SIVB SVBFnGp46.69 +.08 MIPS MIPSTech 9.01 +.09 OXPS optXpr 22.75 +.16 SFNT SaleNelt 28.56 +.11 MRVC MRVCm 3.53 +.02 ORCL Oracle 16.88 +.23 SLXP SalixPhm 12.41 -.15 MTSC MTS 36.59 -.16 OFIX Orthlx 49.38 -.10 SAFM SanderFm 34.21 -.22 MVSN Macrvsn 22.56 -.44 OTTR OllerTail 32.77 +.35 SNDK SanDisk 40.75 +.47 SANM Sanmina 3.74 +.02 SAFE Sapient 6.2 +.61 SVNT SavlentPh 12.75 -.71 SWS Sawisis 39.93 +.91 SCHN Schnitzer 37.65 +.61 SCHW Schwab 18.19 +27 SCRX SdelePh 22.35 +.03 SGMS SdGames 30.85 -.39 SEAC SeaChng 7.85 -1.75 SHLD SearsHklgsl74.08 -241 SCUR SecureCmp 7.78 +.16 SCSS SelCmfts 17.90 -.47 SIGI Sectllnss d23.85 SMTC Semlechlf 13.60 -.06 SEPR Sepracor 48.38 -.43 SNDA Shanda 21.75 +.07 SHPGY Shire 61.73 -.12 SHFL ShufflMstl 18.04 +.23 SIRF SiRFTch 27.47 -.88 SIFY Siy 8.53 -.22 SIGA SigaTechh 4.33 -.42 SIGM SigmaDglf 27.21 +.19 SIAL SigmAls 40.14 +.13 SIMG Siicnlmg d8.53 -.07 SLAB SicnLab 29.44 +.29 SIMO SionMotn u24.24 +.74 SSTI SST 5.08 +.04 SPIL Slnware 9.18 -.02 SSRI SivSIdg 30.92 +.57 SINA Sina 33.67 +.09 SBGI Sinclair 14.91 +.26 SMDI Sirenza 7.90 -.15 SIRI SiliusS d3.23 -.06 SIRO SironaDenn36.93 -1.04 SKIL SdllSoft 7.36 -.01 SKYF SkyFncl 26.94 +.19 SKYW SkyWest 25.60 SWKS SkywksSol 6.52 -.06 SWHC SmithWes 13.33 +.02 SMSI SmithMiao 15.82 -.78 SSCC SmuifStne 11.48 SOHU Sahu.cm 21.70 -.36 SOLF Soladunn 12,55 +.05 SONC SonicCps 20,85 -.03 SNWL SncWall 8.33 +.23 SONS Sonus 7.10 -.02 SMBC SouMoBc 15.34 -.01 TSFG SoulhFncl d25.24 -.02 SPSN SpansionA 12.12 +.02 HDTV SpaiaLght d.66 +.03 SPLS Slaples 25.45 -.07 STSI SlaScien 1.22 +.08 SBUX Starbucks 29.32 -.04 STLD StIDynas 39.35 +1.45 STTX Sleerlch 29.46 +.03 STEM StemCells 243 -.03 SBIB SleriBcss 11.17 +.01 STSA SIdFWA 30.72 -.11 STEI SlewEnt 7.90 +.10 SUNW SunMiro 6.31 +.16 STKL SunOpla 10.85 +.04 SPWR SunPower 43.63 -.24 SUPG SupeiGen 5.30 -.08 SUSQ SusqBnc d22.65 +.40 SWFT SwillTm 30.57 -.06 SDXC Snitch&Dndl8.01 -.54 SCMR Sycamore 3.61 SYKE SykesEnt 18.62 -.08 SYMC Svmanlec 16.55 +.14 SYMM Symeric 7.85 -.03 SYGR Synagro 5.74 +.01 SNPS Synopsys 26.17 +.14 SYNO Synovis 13.63 -.26 BRLC SyntaxBril 7.68 -.03 AMTD TDAmedir 15.34 +.43 THQI THO 31.74 +.05 TRMM TRMCorp 2.74 -.06 TrMI TTMTch 9.95 +.12 TVIN TVICp 1.48 -.03 TIWO TakeTwo u20.60 +.15 TNOX Tanoxlnc 18.50 +.06 TASR TASER 7.89 +.09 TECD TechDala 35.47 -.08 TKLC Tekelec 12.73 +.34 TSYS TICmSys 3.54 -.16 TTEC TeleTech 34.59 -.11 TLAB Telabs 9.88 +.02 TESOF TescoCp 24.31 +.32 T TEK TelaTc 16.85 +15 TEVA TevaPhn 36.36 +.56 TXRH TexRdhsA 14.72 +.11 KOOL Thrmogn 3.13 +.44 THOR Thorat 19.00 +.35 COMS 3Com 3.80 +.04 TBX TibcoSft 8.94 +.12 TWTC TWTele 21.13 -.11 TIVO TiVoInc 5.96 +.04 TOPP Topps 9.98 +.06 TSCO TractSupp 51.53 -.54 TRAD TrdeStatn 12.36 +.21 TSAI TmsactnSlfd28.72 -.07 TMTA Tmsmeta .65 TXCC TmSwtc 1.42 +.06 TZIX TiZeto 19.11 -.69 TRMA TricoMar 36.20 -.45 TRID TridenlMc 22.76 +.63 TRMB TimbleNs 26.44 -.07 TQNT TriQuint 5.04 +.09 TRST TrstNY d9.52 +.06 TRMK Trustmk d27.65 +53 OVEN TurboCh 14.43 -.37 TFSM 24l7RealM 7.36 -.02 UAUA UAL 37.82 -1.05 UCBH UCBHHId 17.99 +.07 RMIX USCnct 7.29 -.12 USMO USAMobl 1921 +.65 USIH USIHIdg 16.70 +.07 UTSI UTStrcm 8.27 +.02 UCTr UlraClean 16.95 -.25 UNFI UldNtrF 30.00 +.90 UNTO UtdOnln 13.16 +.14 USEG USEnr 5.18 -.10 USPI UldSurg 30.48 +.06 UTHR UldTh p 56.27 +1.82 UFPI UnivFor 48.25 +.72 URBN UbanOut 24.07 -33 VCLK ValueClik 26.71 +.33 VSEA VarianSem 49.21 +.79 VOSI VascoDla 16.51 +.07 VSGN Vasogengh .38 -03 VMSI VenlanaM 40.20 +.44 VRGY Verigyn 23.78-1.03 VRSN Vesign 24.71 +.87 VRTX VerxPh d28.07 -1.04 VWPT ViewptCph d.49 -.12 VIMC Vimrote d531 -.42 VION VionPhm 1.68 +.05 VMED VirgnMdah 25.03 -.06 VPHM ViroPhnm 14.90 -.19 VPRT VislaPd 38.06 +.60 WPTE WPTEnt 4.93 +.65 WRNC Wamaco 27.43 +.17 WCRX WamerChn 13.98 -.47 WRES WarrenRs 10,33 +.08 WGII WashGln 58.82 +2.10 WAVX WaveSysrs 288 -.36 WEBX WebEx 46.20 +1.29 WEBM webMelh 6.92 +.07 WBSN Websenses22.76 +.34 WERN WemerEnl 17.99 +.06 WTSLA WetSeal 5.68 -.01 WFMI WhdeFd 44.20 -.38 OATS Wildats 18.21 -.18 WIND WindRvr 9.61 -.08 WINN WinnDixn 16.06 -.34 WFII WrssFac d1.57 -.05 WITS WitnSys 26.93 +.10 WYNN Wynn 92.62 +1.82 XMSR XMSal 13.02 -33 XOMA XOMA 2.86 +.11 XNPT XenoPod 24.74 -.03 XLNX Xilinx 25.74 +.06 XFML XinhuaFn d10.09 -.71 YRCW YRCWwde 40.61 +.40 YHOO Yahoo 29.86 +.30 ZBRA ZebraT 37.55 +.19 ZHNE ZhoneTch 1.32 +.01 ZION ZinBcp 83.60 +.16 ZRAN Zoran 16.38 +.03 ZUMZ Zumiez 36.21 +.36 GR Goodrich 49.53 +.26 GT Goodyear 27.94 -.31 GRP GrantPrde 46.31 +.93 GXP GIPlajnEn 30.66 +.20 GMP GMP 34.40 +.02 GFF Griffon 23.95 +.35 GPI Groupl 42.23 -.46 TV GTelevsas 28.04 +.27 GSH GuangRy 29.45 -.17 GES Guesss 40.47 -.34 HBC HSBC 86.42 -.08 HAL Hallibins 31.83 +.03 JHS HanJS 14.55 +.04 PDF HanPtDiv 8.92 PDT HanPtDv2 11.36 -.08 HBI Hanesbrdn 27.82 -.79 HC Hanover 21.71 +.54 THG Hanoverlns 45.02 +.32 HAN Hanson 75.80 -1.11 HOG HarleyD 61.00 +.48 HMY HarmonyG 13.27 +.07 HET HarahE 83.91 +.6 HIG HardFn 93.39 +.44 HAS Hasbro 29.15 +.18 HE HawaiiE d25.36 +.12 HW Headwars 21.85 -.10 HCP HthCrPr 36.32 -.48 HCN HICrREIT 44.36 +.24 HMA HIlMgts 10.88 HR H RltrRy 36.09 +.45 HL HedaM 7.98 +.17 HNZ Heinz 45.18 +.90 OTE HellnTel 13.70 -.02 HP HelmPays 28.28 +.61 HES Hesss 51.97 +.88 HPQ HewlettP 39.79 +.24 HIW HighwdPrp 40.70 +.14 HLT Hilton 33.25 -.33 HOC HollyCps 57.87 +1.42 HD HomeDo 37.56 +.21 HMB HomeBanc 2.70 +1.23 HON HonwIllntf 46.90 +.02 HPT HospPT 44.04 +.25 HST HostHoBs 26.14 -.32 HOV HovnanE 26.73 +1.02 HUM Humana 58.38 +.02 IAG IAMGId g 7.58 +.04 IBN ICICIBk 38.87 +.91 EWZ iShBrazil 45.83 +.82 EWH IShHK 15.58 +23 EWJ iShJapan 14.41 -.13 EWY iSh Kor 49.35 +73 EWM iShMalasia 9.78 +.02 EWS iShSing 11.62 -.04 EWT iShTaiwan 13.60 +.14 RI iShChin25 97.75 +2.15 IY iShDJTr 84.74 -.19 IW iShSP500 139.64 +1.07 EEM iShEmMkt 110.37 +1.27 EFA iShEAFE 72.83 +.03 IYR iShREst 85.30 +.40 UR iShSPSmI 65.78 +.64 SFI iStar 45.14 -.26 IDA Idacorp 32.85 +.62 IAR Idearcn 32.69 -1.17 ITW ITWs 49.50 -.14 IMN Imation 40.00 +.51 IMH ImpacMtg 5.03 +.58 NDE Indymac d28.94 +1.96 IFX Infneon 14.90 IR IngerRd 42.75 +.44 ICE IntcniEx 131.93 +2.92 IBM IBM 93.76 +1.05 IGT InlGame 38.52 -.26 IP InlPap 34.88 +.55 IRF IntRect 41.32 -.31 IPG Interpublc 12.38 +.03 IRM IronMtns 26.53 -.02 JCG JCrewn 37.03 -1.02 JPM JPMorCh 47.30 +.60 The remainder of the NYSE lisl- inr, arid all ihe American SIock Exchange listings can De lound rn i re nexl.2744 1.2754 Brazil 2.0975 2.1035 Britain 1.9352 1.9303 Canada 1.1759 1.1732 China 7.7455 7.7515 Euro .7560 .7578 Hong Konq 7.8155 7.8155 Hungary 189.11 190.66 India 44.162 44.096 Indnsia 9259.26 9174.31 Israel 4.2121 4.2080 Japan 116.73 116.52 Jordan .7089 .7085 Malaysia 3.5115 3.5075 Mexico 11.1567 . 11.1912 Pakistan 60.72 60.73 Poland 2.94 2.96 Russia 26.1213 26.1424 Singapore 1.5333 . 1.5288 Slovak Rep 25.72 25.85 So. Africa 7.4275 7.4585 So. Korea 946.07 944.29 Sweden 7.0230 7.0354 Switzerlnd 1.2150 1.2193 Taiwan 33.01 33.00 U.A.E. 3.6722 3.6719..92 4.96 6-month 4.89 4.87 5-year 4.42 4.43 10-year 4.51 4.50 30-year 4.69 4.63 FUTURES Exch Contract Settle Chg LtSweetCrude NYMX Apr07 58.16 +.23 Corn CBOT May07 40434 -2 Wheat CBOT May07 463V14 -31/4 Soybeans CBOT May 07 753V2 -2 Cattle CME Jun07 96.42 -.98 Pork Bellies CME May07106.27 -1.53 Sugar(world) NYBT Jul07 10.28 -.03 Orange Juice NYBT May07 197.20 -1.15 SPOT Yesterday Pvs Day Gold (troy oz., spot) $640.90 $650.60 Silver (troy oz., spot) $12.740 $13.000 Copper (pound) $2.z22U $sz.1iu,133.40 +57.44 +.48 -2.65 +8.24 5,211.42 4,134.72 Dow Jones Transportation 4,716.03 -10.53 -.22 +3.42 +2.71 501.99 380.97 DowJones Utilities 476.60 +2.73 +.58 +4.34 +17.05 9,463.62 7,708.11 NYSE Composite 8,958.61 +31.73 +.36 -1.97 +8.76 2,179.89 1,800.65 Amex Index 2,063.37 -1.62 -.08 +.34 +8.06 2,531.42 2,012.78 Nasdaq Composite 2,371.74 +21.17 +.90 -1.80 +2.59 1,461.57 1,219.29 S&P500 1,387.17 +9.22 +.67 -2.19 +6.46 830.01 668.58 Russell 2000 775.68 +6.56 +.85 -1.52 +4.41 14,828.76 12,249.90 DJ Wilshire 5000 14,046.11 +80.10 +.57 -1.48 +6.97 THE MAKET IREVIE L _� � L I ITRn' re(Cntiiir J 0 Cnnvrrv lIT TSINESS THURSDA- MAcH_15. 2007 13A MUTU aL 3FU 3-Yr. Name NAV Chg %Rtn AIM Investments A: BasValAp 35.8 +.25 +26.6 ChartAp 1529 +.07 +31.0 Constp 25.89 +.11 +19.9 HYdAp 4.55 -.01 +26.1 IntlGrow 29.15 -.15 +76.5 MuBp 8.10 -.01 +10.6 SelEqtyr 20.64 +.10 +29.2 AIM Investments B: CapDvBt 16.87 +.08 +41.0 AIM investor Cl: Energy 38.73 +.53+118.8 SummtPp12.86 6 +29.3 Utiles 17.50 +.10 +85.4 Advance Capital I: Balancp 18.27 +.06 +22.3 Renc. 9.76 -.02 +11.4 Alger Funds B: SmCapGr 5.95 +02 48.0 AllianceBern A: BalanAp 17.77 +.05 +25.0 GlTchAp63.28 +.51 +18.3 InValAp 21.69 -.15 +87.2 SmCpGrA27.18 +.12 +28.3 AllianceBern Adv: LgCpGrAd21.07 +.14 +22.1 AlllanceBem B: CoipBdBp12.36 -.03 +15.3 GbTchBI 56.41 +.45 +15.6 GrothBt 25.23 +.22 +15.2 SCpGrBt 22.59 +.10 +25.3 USGovBp 6.84 -.01 +4.4 AlllanceBem C: SCpGrCt 22.66 +.10 +25.5 Allianz Funds C: GrowthC 21.58 +.16 +27.3 TargetCt 19.13 +.10 +29.3 Amer Beacon Plan: LgCpPIn 22.46 +.12 +492 Amer Century Adv: EqGrpn24.82 +.17 +33.4 Amer Century Inv: Balancedn16.45 +.06 +22.8 Eqlncn 8.43 +.02 +33.9 FLMuBndn10.66 ... +7.1 Growthln 21.86 +.13 +21.5 Heritageln16.45 +.15 +59.8 IncGron 31.82 +23 +32.7 Intiscrn 14.64 -.07 +88.4 In[Groln 1229 -.08 +57.4 LieSldn 5.33 +.02 +12.9 NewOpprn6.66 +.01 +27.1 OneChAgn2.71 +.04 NS RealEslln31.09 +.13 +92.0 Ultan 26.61 +.19 +5.1 LUi ln 16.80 +.08 +77.5 Valuelnvn 7.44 +.02 +35.9 American Funds A: AmcpAp 20.09 +.09 +25.0 AMauAp 29.04 +.14 +33.0 BalAp 18.79 +05 +22.1 BondAp 13.43 -.01 +13.3 CapWAp 19.50 ... +17.8 CaplBAp 6029 -.0 +46.8 CapWGAp41.01 -.13 +60.1 EupacAp 45.74 -23 +68.0 FdlnvAp 39.53 +.04 +49.4 GwthAp 32.46 +.15 +36.4 HITrAp 12.69 -.02 +7.8 IncoAp 20.09 +.01 +37.8 InlBdAp 13.52 ... +8.0 ICAAp 32.98 +.11 +33.6 NEooAp 26.43 ... +40.3 NPerAp 31.03 -.05 +47.1 NwWIdA 47.66 -.05 +86.3 SmCpAp 39.57 +.02 +63.4 TxExAp 12.56 -.01 +11.1 WshAp 34.35 +.19 +30.7 American Funds B: BalBt 18.74 +.05 +19.4 CaplBBt 6029 -.08 +43.4 CpWGrBt4077 -.13 +56.4 GiwthBt 31.40 +.14 +33.3 IncoBt 19.98 +02 +34,7 ICABt 32.86 +.12 +30.5 WashBt 34.11 +.19 +27.7 Ariel MutualFds: Apprec 48.18 +.13 +26.1 Aidel 52.47 +.17 +29.9 Artisan Funds: Intl 28.30 -29 +63.3 MrdCap 30.32 +20 +31.8 MidCapVal 20.61 +.08 +604 Baron Funds: Asset 60.33 +.33 +55.8 Growth 49.72 +26 +45.0 SmCap 22.95 +.12 +42.7 Bernstein Fds: IntDur 13.26 -.01 +10.7 DiMu 14.03 ... +6.0 TxglntlV 25.85 -.13 +65.7 lntVal2 25.46 -.13 +66.4 BlackRock A: AurraA 27.47 +.11 +30.1 CapDevAp4.90 +.10 +20.9 GIAIAr 18.09 -.01 +43.6 Hi[lnvA 821 -.01 +28.7 BlackRock B&C: GWACt 17.09 -.01 +40.3 BlackRock Instl: BaVul 32.95 +.21+35.9 GtbAlocr 18.16 -.01 +44.7 Bramwell Funds: Growthp 18.51 +.13 +19.6 Brandywine Fds: Bmdywnn3424 +.26 +39.5 Brinson Funds Y: HiYdlYn 7.08 -.01 +24.6 CGM Funds: apDvn 28.03 +.17 +58.6 Focusn 3 .61 +25 +67.6 Mutln 26.84 +20 +26.6 Calamos Funds: Gr&lcAp31.04 +.12 +25.1 GrwthAp 53.44 +.43 +24.8 GrowthC 50.46 +.40 +22.0 Calvert Group: Incop 16.97 -.01 +13.4 InlaEqAp 22.64 -29 +583 Munint 10.67 ... +5. SocalAp 3023 +.09 +19.8 SocBdp 15.99 -.01 +14.1 SocEqAp 36.47 +23 +20.4 TxFLt 10.37 ... +42 TxFLgp 16.60 -.01 +.6 TxFVT 15.76 ... +6.6 Causeway Intl: lstulnl.Mrnl927 -24 +59.9 Clipper 88.23+.55+19.8 Cohen & Steers: EPtyShrs 90.85 +.36+105.4 Columbia Class A: Columbia Class Z: AconZ 30.07 +.07 +51.9 AcornlntZ 40.34 -.46+104.1 Credit Sulsse ABCD: ValueAt 17.78 +.09 +39.4 DWS Scudder Cl A: CommAp 23.60 +.05 +57.1 DrHiRA 49.59 +.31 +37.1 DWS Scudder CI S: CapGrthr 50.09 +.30 +22.8 CorPls.c12.77 -.02 +11.7 EmMkn 12.44 ... +462 EmrMkGrr21.15 -.03 +96.0 EuroEq 26.91 -.20 +71.5 GlbBdSr 9.75 +.01 +11.7 GbOpp 42.93 -.07 +74.7 GlThem 32.85 -.05 +802 Gald&Prc 2.31 +.06 +44.5 GrlncS 2.41 +.12 +257 HiYldTx 13.01 ... +16.1 InflxAMT11.14 ...+7.0 InFdS 6036-.44 639 LgCoGro 2678 +16 +19.6 LalAmrEq 56. +74+176.8 MgdMuniS9. 2 ... +10.8 MATFS 14.25 ...+8.6 PacOppsr2.6 -.01 +75.4 ShtTmBdS 9.9 ...+7.5 Davis Funds : NYVenA 37.7 +.16 +35.5 Davis Funds : NYVenB 36.16 +.15+323 Davis Funds CY: NYVenY 3822 .16 +36.6 NYVenC 36.39 6 15 +32. Delaware Invest A: TrendAp 20.06 +.06 +18.2 TxUSAp 11.67 -.01 +12.5 Delaware Invest B: DelchB 3.45 ... +32.4 SelGrBt 24.16 +.28 +21.7 Dimensional Fds: . EmMktV 32.01 +.18+1322 InlSmVan21.72 -.09+103.4 USLgCon40.70 +28 +30.4 USLgVan25.900 +.12 +51.7 USMicro n1541 +.09 +35.1 USSmalln21.10 +.15 +37.6 US SmVa 29.60 +21 +55.9 IntlSmConl9.97 -.04 +90.9 EmgMkdn 25.80 +.14+104.8 Fidn 10.19 ... +6.7 IntVan 22.95 -.11 +91.9 GlbSFxlncn10.65 ... +6.7 TMUSSV25.10 +20 +48.5 TMMMlwV 17.82 +.12 +54.2 DFAREn 32.71 +.15 +91.9 Dodge&Cox: Balanced 87.6 +.22 +33.0 Income 12.77 -.01 +10.9 IntlStk 43.65 -.38 +89.7 Stock 152.59 +.64 +47.5 Dreyfus: Aprec 42.04 +.16 +21.7 DIscp 34.90 +.25 +30.2 Dreyf 1021 +.05 +284 DrSOInt 39.25 +.26 +29.0 EmgLd 34.81 +.19 +29,1 FLIntr 13.00 -.01 +64 InsMutn 1799 -.01 +9.8 Dreyfus Founders: GrowthB 11.49 -.08 +21.7 GrwlhFp 1220 +.08 +25.2 Dreyfus Premlii: CoreEqA t16.23 +.07 +18,4 CorVvp 31.40 +.19 +34.8 UdHYdAp 735 -.01 +24.1 SIrValAr 31.87 +.18 +45.1 TxMgGC 11738 +.08 +16.6 TchGroA 24.75 +.19 8.1 Driehaue Funds: EMklGr 37.72 -.03+127.6 Eaton Vance CIA: ChlnaAp 22.75 -.09 +78.9 AMTFMBI11.15 .. +17.6 GrwthA 9.16 +.05 +42.9 InBosA 6.56 -.01 +27.8 LgCpVal 20.78 +.10 +49.7 NallMun 11.97 ... +24.2 SpEqtA 14.00 +.08 +38.5 TradGvA 7.20 -.01 +8.9 Eaton Vance Cl B: FLMBI 11.14 ... +11,4 HlthSBt 11.51 +.03 +6.5 NatlMBI 11.97 +.01 +21.4 Eaton Vance CI C: GovtCp 7.19 -.01 +6.4 NallMCt 11.97 +.01 +21.4 Evergreen A: AslAllp 14.73 +.03 +30.3 Evergreen B: DvrBdBI 14.51 -.03 NS MuBdBI 7.57 ... +9.6 Evergreen C: AstCI 14.29 +.03 +27.6 Evergreen I: CorBd 10.52 -.01 +10.6 SIMunil 9.94 ... +5.8 Excelsior Funds: Energy 21.94 +.18+115.8 HiYield p 4.79 -.01 +23.8 ValRestr 52.25 +.31 +44.7 FPA Funds: NwMln 10.97 ... +9.5 Faimholme 28.94 -.10+54.6 Federated A: AmldrA 23.39 +.11 +25.7 MidGrStA 37.85 +.13 +38.9 KaufmAp 5.63 -.01 +40.4 MuSecA 10.70 -.01 +10.5 Federated B: SMncB 8.91 -.01 +19.7 Federated Instl: Kaulmn 5.63 -.01 +40.1 Fidelity Adv FocT: EnergyT 40.60 +.55+104.4 HtCarT 21.76 +.14 +27.0 Fidelity Advisor A: DivlnAr 2270 -.10 +60.1 Fidelity Advisor I: Divlntn 23.03 -.10 +61.5 EqG n 53.38 +.37+14.3 Eqlnln 29.96 +.18 +35.8 IntBdin 10.92 ... +8.8 Fidelity Advisor T: BalancT 16.70 +.05 +22.6 DlntTp 22.46 -.10 +58.8 DivGrTp 13.11 +.06 +19.9 DynCATp18.13 +.05 +38.0 EqGrTp 50.39 +.35 +12.5 EqInT 29.53 +.17 +33.7 GrOppT 3523 +.47 +24.2 HilnAdTp 10.69 -.02 +38.9 IntBdT 10.90 -.01 +7.8 MdCpTp 24.86 +.14 +44.1 MulncTp 12.94 ... +10.3 OvrseaT 21.93 -.07 +47.9 STFT 9.45 ... +7,7 Fidelity Freedom: FF2010n 14.67 +.03 +22.7 FF2015n 12.24 +.03+26.6 FF2020n 15.53 +.05 +29.8 FF2025n 12.78 +.04 31.2 FF2030n 15.98 +.06 +33.4 FF2040n 9.45 +.04 +35.6 Fidelity Invest: AggrGrrn19.38 +11 +25.7 AMgr50n 1622 +.02 +19.0 AMgr70n 1628 +.02 +204 AMgO20rnl2.71 +.01 +20.7 Balancn 19.68 +.06 +35.2 BlueChGrn43.34 +.31 +13.5 CAMunn 1239 -.01 +11.0 Canadan 48.12 -.08 +76.8 CapApn 26.83 +.07 +29.8 CapDevOn12.41 +.05 +27.7 Cplncrn 8.98 ... +34.6 ChinaRgn23.63 -.02 +54.3 CngSn 443.26 +2.35 +23.4 CTMunrnll.35 -.01 +7.7 Contran 63.76 +.31 44.7 CnvScn 26.09 +.09 +36.1 DisEqn 28.99 +.16 +39.1 Divlntn 36.34 -.04 +64.1 DivStkOn 15.36 +.08 +29.2 DIGthn 31.10 +.13 +22.0 EmrMkn 23.65 -.07+117.8 Eq Incn 56.73 +.28 +374 EQIn 23.10 +.12 +29.5 ECapAp 2717 -.10 +74.9 Europe 38.19 -.10 +79.0 Exchn 317.77 +1.51 +33.7 Exportn 2293 +.16 +40.4 Fideln 35.65 +.22+30.6 Ftyrn 23.45 +.12 +35.1 RtRateHirn9.98 ... +16.6 FLMurn 11.45 -.01 +92 FrInOen 29.30 +.11 +344 GNMAn 10.81 -.02 +10.9 Govltnc 10.11 -.01 +84 GroCon 68.01 +.50 +34.5 Grolnn 30.49 +.18 +21.1 Grmolclln 11.05 +.06 +26.1 Highlncrn 9.11 -.01 +26.0 Indepnn 21.67 +.14 +36.0 IntBdn 10.34-.01 +8.7 InlGovn 10.04 -.01 +6.8 IntlDiscn 37.13 -.16 +67.7 InllSCprn 25.22 -.04 +82.3 InvGBn 7.42 -.01 +11.4 Japan n 17.35 -.04 +52.0 JpnSmn 12.55 -.02 +28.9 LatAmn 43.71 +.57+195.8 LevCoSlkn30.09 +.20 +70.9 LowPrn 43.05 +.10 +48.0 Magelln 88.96 +.51 +21.0 MDMurn0.89 -.01 +8.9 MAMunn 11.95 ... +11.2 MIMunn 11.84 ... +9.1 Midapn 30.20 +14 +47.9 MN Mu n 11.3 .. +9.0 MtgSecn 11.07 ... +11.3 Munilnn 12.79 -.01 +11.2 NJMunrn1.56 -.01 +10.2 NwMdkrn 14.83 -.01 +38.5 NwMiln 28.73 +.13 +27.9 NYMunn 12.81 -.01 +10.0 OTCn 41.14 +.48 +27.6 OhMunn 11.61 ... +9.9 Ovrsean 44.05 -.07 +57.3 PcBasn 27.13 -.07 +71.6 PAMunrnl.79 -.01 +9.2 Purtnn 19.90 +.06 +28.7 RealEn 37.36 +.16 +95.2 StlntMun 10.21 ... +5.1 STBFn 8.89 .. +8.5 SmCaplndn21.40+.07 +43.7 SmIICpSrn19.13 -.01 +35.7 SEAsian 27.00 -.10 +94.1 StkSIcn 27.51 +.15 +32.6 Strallncn 10.66 -.01 +22.0 StReRtr 10.30 +.01 NS TotalBdn 10.52 -.01 +12.5 Trendn 62.95 +.45 +30.7 USBIn 10.96 -.01 +10.3 Ltlityn 19.55 +.12 +76.7 VasSlratn32.90 +.16 +36.2 Valuen 82.82 +.41 +58.2 Wridwn 20.01 +.02 +46.8 Fidelity Selects: Aimn 49.79 +.03 +681.5 Banldngn 32.46 +.17 +16.5 tiotch n 60.94 +.26 +8.2 Broran 71.30 +.57 +60.4 Chemn 69.97 +.27 +68.7 ConEquipn20.58 +.18 +8.0 Compn 39.54 +.45 +10.0 ConDisn 26.33 -.01 +26.1 ConStapn57.76 +.16 +40.6 CstHon 44.37 +.38 +42.4 DfAern 84.44 +.78 +83.1 Eledrn 45.35 +.12 +8.4 Enrgyn 49.13 +.66+120.0 EngSvn 68.66 +.86+108.0 Envirn 16.80 +.04 +28.4 FinSvn 113.90 +.52 +27.9 Goldrn 34.19 +.06 +64.9 Healthn 124.36 +.55 +29.0 HooFn 45.83 +35 +3.0/ Insurn 68.08 +.05 +30.6 Leisrn 77.61 +.07 +34.3 Material n 50,21 +33 +71.3 MedDIn 50.74 +.27 +83.7 MdEqSys 23.27 +.26 +26.5 Mulkmdn 46.83 +.16 +28.2 NIGasn 39.45 +.55+111.8 Paper 33.74 +.15 +16.9 Pharrmn 10.67 -.01 +23.9 Retalan 53.82 -.19 +42.0 Soltwrn 65.01 +.72 +30.9 Techn 69.40 +.58 +16.7 Telcmn 50.04 -.01 +48.4 Transe _51.60 -.12 +66.6 UBlGrn 58.14 +.35 +82.2 Wirealessn 7.08 +.64 +59.0 Fidelity Spartan: Eqldlnvn49.28 +.33 +30.5 5001nxlnvrn9621 +.64 +305 lnlllnxlnvn43.79 -.15 +68.2 To1Mktlnvn39.10 +25 +34.0 Fidelity Spart Adv: EqldxAdn49.28 +.33 NS 500MAdrn 96.22 +.65 NS ToalMktAdrn39.10 +24 NS First Eagle: GiblA 45.61 -.26 +58.6 OverseasA25.10 -.33 +68.8 First Investors A BIChpAp 23.14 +.14 +21.4 GoblAp 7.40 ... +39.8 GoetAp 10.76 -.01 +9.2 GrolnAp 15.58 +.08 +30.8 IncoAp 3.09 ... +20.5 InvGrAp 9.59 -.01 +7.2 MATFAp 11.75 -.01 +6.6 MITFAp 1221 ... +6.9 MidCpAp 29.15 +.10 +39.9 NJTFAp 12.85 ...+7.0 NYTFAp 14.33 -.01 +6.3 PATFAp 12.88 ... +7.1 SpSilAp 22.88 +.05 +38.1 TxECAp 9.86 ... +5.8 TotRtAp 15.23 +.04 +21.8 ValueBp 7.83 +.02 +39.6: Firsthand Funds: GIbTech 4.52 -.03 0.0 TechVal 38.78 +.08 +25.5 Frank/Temp Frnk A: AGEAp 2.14 ... +27.2 AdJUSp 8.87 -.01 +8.4 ALTFAp 11.49 ... +10.3 AZTFAp 11.14 -.01 +12.2 Ballnvp 68.15 +.39 +69.1 CallnsAp 12.73 -.01 +11.8 CAInAp 11.56 ... +8.5 CeaTFAp 7.38 ... +14.8 CapGrA 11.66 +.08 +14.1 COTFAp 12.08 -.01 +12.3 CTTFAp 11.12 ... +12.9 *OW .* EIADT.HE MTUL FUiD IABLE Here are the 1,000 biggest mulual funds listed on Nasdaq. Tables show the lund name. sell price or Net Asset Value (NAV) and daily net change. as well as one Iotal return figure as follows TUes: 4-wk total return ('%.i Wed: 12-mo total return (I.) Thu: 3-yr cumulalrve total return l"% Fri: 5yr cumulative rolal return ('1) Name: Name of mutual fund and family NAV: Net assel value. Chg: Net change In prce of NAV. Total return: Percent change In NAV lor the time period shown, witn dividends reinvested. II period longer than 1 year, return is cumula- tve Dars Dased on N4V's reponeo to Lipper by 6 pm. Eastern. Footnotes: e - Ex-caplal gains disiniution I - Previous day's quote n - No loaa lund. p - Fund assets used to pa distribution cos-ts r - Redemption lee or contingent deterred sales load may apply s - Slock dividend or split. I - Both p and r. x - Ex-cash dividend NA - No intormallon available NE - Data in question. NN - Fund does not wish to be traced. NS - Fund did not exist at start date Source: Upper, Inc. and The Associated Press CvtScAp 16.40 +.05 +35.7 SmCap 31.26 +.04 +59.2 DbTFA 12.05 ... +12.6 Loomis Sayles: DynTchA 26.70 +24 +18.6 LSBondl 14.54 -.02 +29.5 EqlncAp 21.42 +.13 +29.0 StrlncC 14.96 -.02 +27.3 Fedlntp 11.46 -.01 +7.9 LSBondR 14.49 -.02 +28.4 FedTFAp 12.16 ... +13.0 StrlncA 14.90 -.02 +30.2 FLTFAp 1192 -.01 +11.6 LordAbbettA: FoundAlp13.89 +.01 +41. All0Ap 14.87 +.08 31.1 GATFAp 12.17 -.01 +11.7 BdDebAp 8.03 -.01 +21.2 GoddPrMA30.51 +.03 82.0 GllncAp 6.87 ... +.6 GwthAp 41.56 +21 +38.9 MidCpAp22.47 +.10 +47.6 HYTFAp 11. ... +18.6 MFS Funds A: IncnmAp 2.66 ... +36.3 MITAx 20.07 -.21 +3.0 InsTFAp12.30 -.01 +10.5 MIGA 13.47 +.08+18.3 NYITFp 10.93 ... +6.6 GrOpAx 9.28 +.06 +14.7 LATFAp 11.59 -.01 +10.8 HinA 3.94 ... +25.2 LMGvScA 9.94 -.01 +5.3 InlwDA 27.22 -.15 +84.3 MDTFAp 11.82 ... +12.0 MFLA 10.14 ... +11.9 MATFAp 11.95 . +11.0 TotRA 16.20 +.06 +26.7 MITFAp 12.23 -.01 +10.4 ValueA 26.61 +.13 +44.9 MNInsA 12.14 ...+10.4 MFS Funds B: MOTFAp 12235 -01 +12.2 MIGB 12.21 +.08 +16.0 NJTFAp 12.20 -01 +12.8 GvScBn 9.48 -.01 +6.2 NYlnsAp 11.61 -.01 +10.6 HilnBn 3.95 -.01 +22.5 NYTFAp 11.81 ... +10.7 MulnB 8.61 ... +9.7 NCTFAp 12.36 -.01 +122 ToRB 16.18 +.05 +24.1 OhiolAp 12.63 ... +11.3 MainStay Funds A: ORTFAp 11.91 -.01 +12A HiYIdBA 6.54 -.01 +28.4 PATFAp 10.46 .. +11.6 MainStay Funds B: ReEScAp25.72 +.21 +62. CapApBt 29.74 +.17 +11.1 RisDvAp 35.01 +.13 +27.1 ConvBI 14.73 +.03 +20.3 SMCpGrA38.84 +.20 +37.7 GovtB 8.23 -.01 +4.9 USGovAp 6.44 -.01 +10.4 HYdBBt 6.50 -.01 +25.4 UtlsAp 13.97 +.07 +67.6 In EqB 15.32 -.10 +56.4 VATFAp 11.83 -.01 +11.9 SmCGBp15.41 +.13 +14.8 Frank/Tmp FmrkAdv: ToRtBt 18.56 +.06 +182 InoneAd 2.65 +.01 +37.1 Mairs & Power: Frank/Temp Frnk B: Growth 76.36 +25 +29.7 lnomBlp 2.66 ... +34.3 Marsico Funds: IncomeBt 2.65 . 33.1 Focusp 18.93 +.09 +30.9 Frank/Temp Frnk C: Growp 19.93 +.12 +27.8 FoundAlp13.68 +.01 38.3 MatthewsAslan: IncomCt 2.68 +.01 +34.6 Indiar 1420 -.14 NS Frank/Temp MtlA&B: PacTer 22.79 -.11 +79.3 DiscA 3021 -.15 +642 Mellon Funds: QuaddAt 22.03 -.04 +51.7 nFd 16.56 -2 +582 SharesA 25.84 ... +43.5 MIdas Funds: Frank/TempTempA: MiasFd 4.28 -.05+110.8 DvMktAp 26.49 -.18 +90.0 Monetta Funds: FognAp 13.37 -.09 +51. Mnelan 12.84 +.07 +26.4 GIBdAp 11.04 +.01 +26.9 Morgan Stanley B: GrwthAp 24.95 -.06 +47.7 GlbivB 15.85 -.05 +41.9 Int EMp 19.49 -.16+59.9 StaB 19.96 +.08 +302 WordAp 18.93 -.05 +492 MorganStanley Inst: Frank/Temp Tmp Adv: GIVaEqAn19.89 -.06 +42.1 GhAv 24.98 -.06 +489 InEqn 20.40 -.14 +51.8 Frank/Temp Tnp B&C: Munder Funds A: DevMktC 25.92 -.17 +862 IntemtA 2077 +.08 +22.5 ForgnCp 13.17 -.08 +48 Mutual Series: GrwthCp 24.32 -.05 +44.5 BeacnZ 16.82 -.01 +44 G EElfunS&S: DicZ 30.53 -.16 +65.8 S&SPM 45.44 +26 +27.5 QuaeZ 22.16 -05 +53.2 GMOTrust Ill: SharesZ 26.03 -.01 +44.9 EmMkr 20.40 +10+112.2 Neubrger&Berm lnv: For 1821 -.08 +73.1 Fcs 30.79 +.18 +7.8 IntlnarVt 34.53 -21 +76.1 Genesnst 46.19 +21 +43.7 GMO Trust IV: Indtr 23.68 -.07 +86.8 EmrMkt 20.35 +.10+112.6 Parner 30.49 +27 +492 Foreign 1822 -.08 +73.5 Neuberger&Berm T: Intlln 3452 -20 +76.4 Genesis 4820 +23 42.6 GMOTrust VI: Nicholas Group: EmgMktsr20.36 +.10+112.9 Hilncln 10.91 -.02 +222 USCoreEq14.50 +.07 +204 Nichn 56.79 +.17 +22.4 Gabelll Funds: Northern Funds: Asset 47.78 +.10 +46.0 SmCplcdn10.58 +.09 +36.0 Gartmore Fds D: Technlyn 12.14 +.10 +6.8 Bond 9.62 -.01 +11.3 Nuveen CIR: GvtBdD 10.25 . +9.5 InMunR 10.85 ...+10.2 GrowthD 7.67 +.06 +23.5 OakAssoc Fds: NationwD 18.63 +.12 +29.6 WhikSGn3279+41 -7.3 TxFr r 10.46 ... +9.4 Oakmark Funds I: Gartmore Fds Inst: Eqylncrn221 +.03 + .3 CapApp 5n2. +7 +.o i37n1 MqtyAl4c5n221 +0.9 r3<.3 S&P500ns11.87 +.08 +30.1 Glohalln 25.68 +.04 +61.9 Gateway Funds: In r n 25.55 -.04 +759 Gateway 27.29 +.10 +23.6 Oakmarkrn45.00 +.22 +26.0 Goldman Sachs A: Selectrn 32.01 +21 +222 GrincA 28.93 +.19 +41.9 Old Mutual Adv I: HYMuAp 11.58 -.01 +21.2 Tc&ComZn1l295 +.16 +20.7 MdCVAp 39.07 +20 +56.9 OppenheimerA: SmCapA 43.85 +.44+39.6 ATMu 10.7 ... +22.6 Goldman Sachs Inst: AMTFrNY 13.35 ...+20.0 HYMunin 1.59 ... 22.7 CAMuniAp 1.79 -.01 +26.0 Harbor Funds: CappApp 4625 +.29 +2.0 Bond 11.78 -.01+11.7 CaplncAp13.24 +.02 +28.6 CapAplnst33.09 +.17 +25.4 ChmplncAp9.56 -.03 +22.7 InBr 60.63 -20 +81.4 DvMAp 39.77 +.07+124.0 Hartford Fds A: iscp 46.15 +22 +7.4 AdvrsAp 16.93 +.06 +20.5 EqityA 10.94 +.06 +31.5 CpAppAp37,09 +.18 +492 GlobAp 71.4 +.08 +61.3 DiGthAp 20.57 +.11 +38.1 GlbOppA 34.88 +.03 +53.8 SmIloAp 21.07 +.07 +48.7 Godp 28.40 +.20 +97.6 Hartford Fds C: InBdAp 6.09 +.01 +32.8 CapApCt 33.82 . +17+462 LtdTMu 15.95 ... +18.5 Hartford HLS IA: MnSIFdA 39.85 +26 +28.2 CapApp 52.52 +27 +53.7 MnStOAp14.51 +.09 +323 Div&Gr 22.37 +.12 +402 MSSCAp 2226 +.14 +462 Advisers 22.44 +07 +22.0 MlCapA 18.92 +.10 33.1 Stock 51.62 +28 +29.8 PAMuniAp 13.09 -.01 +21.8 TolRelBd 11.45 -.01 +117 S&MdCpV 37.94 +.09 +654 Hennessy Funds: StrinAp 4.34 ... +242 CorGrow 18.03 +.09 +47.0 USGvp 950 -.01 +9.9 CorGroll 29.33 +28 NS Oppenheimer B: HollBalFdn15.93 +.09+12.2 AMTFMu 10.33 ... +19.7 Hotchkis &Wiley: AMTFrNY 13.35 -.01 +17.2 LgCpVIAp25.06 +.19 +41.2 CpncBt 13.08 +.02 +25.4 MidCpVal 30.02 +.20 +65.1 ChrplncB19.55 -.03 +20.0 HussmnStrGr 15.80-.03 EquyB 10.38 +.05 +28.0 +12.6 StrncBt 4.35 ... +21.1 ICON Fds: Oppenhelm Quest: Enegy 31322 +.41 +96.9 QBaIA 18.55 +.08 +19.8 Hihcare 16.68 +.09 31.5 Oppenheimer Roch: IS1 Funds: LtdNYAp 3.40 -.01 +14.2 NoAmp 7.34 -.02+11.1 RoMuAp 18.88 -.01 +23.3 IXIS Advisor CIA: RcNtMuA 12.86 -.01 +29.9 TarEqty 10.32 +.06 +29.0 PIMCO Admin PIMS: IvyFunds: TolRtAd 10.49 -.01 +11.1 GINatRsAp30.06 +.22+102.0 PIMCO Instl PIMS: JPMorgan A Class: AllAsse 1275 ...+21.6 MCpValp 25.94+.0 +647.9 ComndRR 1423 ... +23.8 JPMorgan Select: DevLcMkr10.651 +.03 NS IntEqn 36.84 -.08 +56.8 Flfncr 10.51 -.01 NS JPMorgan Sel CIs: DHiY 9.94 -.02 +26.7 lnWAmern27.59 +.16 +40.0 LowDu 9.97 ... +8.4 Janus: RealRtnl 10.89 -.01 +10.3 Balanced 24.40 +.02 +27.7 Tt 10.49 -.01 +11.9 Contrarian 17.40 -.01 +77.3 PIMCO Funds A: Enlerpr 48.43 +.25 +50.7 ealRtAp 10.89 -.01 +8.8 FedTE 7.4 ... +7.9 TotRA 10.49 -.01 +10.3 FBnd 9.49 -.01 +9.0 PIMCO Funds D: Fund 28.28 +.18 +24.6 TRtnp 10.49 -.01 +10.8 FundaEq 25.38 +.15 +42.6 PhoenixFunds A: GlUfeSd 20.13 +.06 +20.0 BalanA 14.58 +.05 +19.4 GIfechr 13.04 +05 +24.0 CapGrA 16.41 +.08 +6.0 Grine 37.46 +.15 +32.3 InA 13.70 -.07 +63.7 MdCpVal 24.11 +.10 +46.1 Poneer Funds A: Orion 10.00 +.05 +62.6 BondAp 9.18 -.01 +11. Ovrseasr 45.85 -.02+120.3 EqlncAp 31.79 +.16 +49.4 Research 25.87 +.14 +31.4 EurSelEqA40.71 -.33 +71.7 ShTmBd 2.90 ... +.3 GrhAp 13.39 +.10 +16.9 Twenty 54.42 +.40 +46.0 IntalA 24.12 -.14 +66.6 Venlur 63.05 +.07 +46.8 MdCpGrA 15.39 +06.0+1. WdWr 50.28 +.19 +29.7 MdCVAp23.16 +.12 +44.4 JennlsonDryden A: PionFdAp47.69 21 +1 +3.9 BlendA 19.46 +.11 +423 TxFreAp 11.76 ... +12.3 HiYdAp 5.84 -.01 25.1 ValueAp 16.47 +.08 +3.5 InsuredA 10.80 -.01 +8,3 Pioneer Funds B: UBTIyA 14.20 +.09+108.9 HYIdBt 11.11 ... +18.9 JennlsonDryden B: MdCpVB 19.68 +.10 +41.4 GroiwIB 14.84 +.07 +21.1 Pioneer Funds C: HiYkl81 5.83 -.01 +23.3 HiYIdCt 11.21 -.01 +18.8 InsuredB 10.82 ... +7.5 Price Funds Adv: John Hancock A: Growthpn30,86 +.13 +29.9 BondAp 14.95 -.03 +10.8 Price Funds: ClassicVlp26.84 +.12 +36.9 Balancen 2124 -.01 +30.3 SirlnAp 6.59 -.01 +17.5 BIChipn 35.07 +.25 +23.3 JohnHancockB: CABondn 11.07 ... +11.1 SIrlncB 6.59 -.01 +15.2 CapApp n 20.57 +.08 +38. JohnHancockCI 1: DivGmn 24.93 +.11 +31.0 LSAggr 14.50 ... NS EmEurp 31.50 -.44+14r.7 LSBalanc 14.28 +.01 NS EmMklSn31.02 -.30+1111.5 LSGiwth 14.58 +.01 NS Eqlncn 29.20 +.16 +3.1 Julius Baer Funds: Eqlndexn 37.34 +.25 +29.6 InllEqlr 42.91 -.21 +8.2 Europe n 19.89 -.38 +62.3 InlEqA 42.01 -.21 +86.7 GNMAn 9.42 ... +1.7 InlEqlllr 14.93 -.08 NS Growlhn 31.11 +.13 +30.7 KeelSmCp p25.96+.20+73.4 Gr&lnn 21.72 +.13 +28.6 LSWalEqn18.93 +.09+51.8 HlthSdcin 26.10 +.03 +33.4 Lazard Instl: Hiesidn 7.09 -.01 +25.8 EmgMlidl 20.14 -.09+128.4 ForEqn 19.87 -.34 +52.7 Legg Mason: Fd lalBondn 9.73 +.03 +12`6 OpporTrl 19.17 +.15 +354 InlDisn 47.29 -.66 +92.7 Splnvp" 39.96 +23 +33.0 In|Slkn 16.37 -.28 +62.0 ValTrp 70.33 +.48 +23.8 Japann 10.85 -.16 +48.1 Legg Mason Instl: LatAmn 37.10 +.31+218.1 VaTrlnst 78.36 +.54 +27.6 MDShrtn 5.14 ... +4.5 Legg Mason PtrsA: MDBondnlO.68 -01 +10:1 AgGrAp 111.59 +.62 +23.2 MIdCapn 54.31 +.24 +442 ApprAp 15.04 +.09 +24.6 MCapValn25.69 +.11 +651.6 HllncAl 6.99 -.02 +26.6 NAmnern 31.15 +.2 +21.6 InAICGAp4.05 -.18 +65.7 NAsian 13.66 -.23 +89.1 LgCpGAp23.6 +.15 +4.9 NewEran4.08 +.32 +92.3 MgMuAp 15.67 ... +12.7 NHordzn 32.45 +.14 +34.3 Legg Mason Ptre B: NIncn 8.98 -.01 +11.0 CplncBt 16.73 +.06 +25.9 NYBondn 11.38 -.01 +10.4 LgCpGBt21.49 +.15 +2.6 PSIncn 15.92 +.01 +2.2 Longleaf Partners: RealEsln 25.92 +.09+1035 Partnerm 34.70 +.16 +33.9 R2010n 15.84 +.02 +3M.9 Int 19.14 -.05 +43.9 R2020n 17.24 +.02 +35.5 R2030n 18.42 +.02 +39.9 SaTecn 21.20 +.14 +16.5 ShtBdn 4.71 ... +7.9 SmCpStkn3420 +.21 +40.2 SmCapValn41.41 +.23+52.2 SpecGrn 20.12 +.02 +41.2 Specinn 12.16 +.01 +19.2 TFIncn 10.06 -.01 +11.5 TxFHn 1217 .. +18.8 TxFSI n 5.34 ... +4.9 USTInn 5.32 ... +4.9 USTLgn 11.54 -.05+10.3 VABondn 11.69 -.01 +10.3 Valuen 26.66 +.12 +42.7 Principal Inv: LgGrlN 7.78 +.07 +30.7 Putnam Funds A: AmGvAp 8.90 -.01 +5.9 AZTE 9.21 ... +9.0 scEqAp 14.76 +.09 +27.7 Conep 19.84 +.05 +29.2 DiscGr 20.47 +.13 +25.9 DvrlnAp 10.02 -.01 +19.3 EqlnAp 17.23 +.11 36.4 EuEq 29.20 -.18 +71.4 GeoAp 17.91 +.07 +23.8 GIGvAp 12.26 +.02 +11.5 GIbEqtyp 10.87 -.01 +47.6 GrnAp 19.54 +.11 +30.0 HIlhAp 57.94 ... +23.8 HiYdAp 8.20 -.01 +26.8 HYAdAp 6.35 -.01 +30.2 IncrmAp 6.81 ... +9.7 IntEqp 30.69 -.22 +63.3 IntGrlnp 15.31 -.13 +71.1 InvAp 14.95 +.10 +33.5 MITxp 9.03 ... +9.3 MNTxp 9.00 ... +8.9 NJTxAp 9.28 -.01 +10.3 NwOpAp 49.36 +.34 +28.6 OTCAp 9.13 +.06 +32.5 PATE 9.15 ... +10.2 TxExAp 879 ... +10.5 TFInAp 14.88 ... +.5 TFHYA 13.12 -.01 +17.9 USGvAp 13.12 ... +.7 USlAp 13.98 +.04 +67.0 VstaAp 1122 +.07 +35.8 VoyAp 17.93 +.13 +13.9 Putnam Funds B: CapAprt 20.84 +15 +33.3 CIscEqBI 14.63 +.09 +24.8 DiscGr 18.69 +.13 +23.1 DvlnBt 9.94 -.01+16.6 Eqlnct 17.05 +10 +33.4 EuEq 2828 -.18 +67.6 GeoBt 17.73 +.07 +21.0 GllncBl 12.21 +.02 +9.0 GIbEqt 9.92 -.01 +442 GINIRst 27.66 +.23 +932 GrnB 19.24 +.10 +27.1 HlhBt 51.35 -.01 +21.0 HiYdBt 8.16 -.01 +4.1 HYAdBt 627 -.01 +274 IncmBI 6.76 -.01 +7.1 IntGrint 15.05 -.13 +67.2 IntlNopt 15.80 -.11 +644 InvB 13.66 +.09 +30.7 NJTxBt 927 -.01 +82 NwOpBt 43.87 +.31 +257 NwValp 18.61 +.12 +32.5 NYTxBt 8.65 ... +7.8 OTCBt 7.98 +.05 +29.5 TxExBt 8.79-.01 +8.3 TFHYBt 13.15 ... +15.7 TFlnBt 14.90 ... +64 USGvBt 13.06 +.01 +7.3 UtilBt 13.89 +.04 +63.3 VistaBI 9.69 +.07 +32.9 VoyBI 15.55 +.12 +11.4 RS Funds: CoreEqA 37.47 +.24 +28.6 IntGrA 18.50 -.03 +61.9 RSNtRsp 31.34 +.24+100.9 RSParD 35.44 +.18 +54.6 Value 28.08 +.05 +63.9 Rainier Inv Mgt: SmMCap 37.61 +.32 +57.4 RiverSource A: DEl 12.60 +.05 +54.9 DvOppA 8.86 +.01 +50.2 Growth 31.37 +11 +29.1 HiYdTEA 4.42 ... +9.4 LgCpEqp 5.76 +.03 +262 Royce Funds: LwPrSkSvr 16.96 +.07 +41.5 MiroCapl 17.43 +.06 +48.0 PennMulr11.60 +.07 +48.8 Premerilr 18.01 +.07 +52.3 TolRellr 13.75 +.07 +41.7 Russell Funds S: DivEqS 47.83 +.31+32.8 IntfSecS 73.75 -1.16 +626 MsTBdS 10.41 -.01 +10.5 uantEqS 40.20 +.24 +29.8 Rydex Advisor: OTCn 11.05 +.13+17.6 SEI Portfolios: CoreFxAnlO.39 -.01 +11.0 IntEqAn 1421 -.19 +66.3 LgCGroAn20.91 +.15 +21.0 LgCValAn22.49 +.13 +424 TxMgLCn13.29 +.09 +31.3 STI Classic: CpAppAp 11.94 +.06 +9.8 CpAppCp11.12 +.06 +8.1 LCpVEqA 14.72 +.08 +39.2 uGrStkCt124.50 9 . +10.8 'TxSnGrlp26.49 +.20 +14.2 Schwab Funds: lO0Invr 40.65 +.23 +31.8 10OSel 40.64 +.23 +32.4 S&Plnv 21.45 +.15 +29.8 S&PSel 21.52 +.15 +30.4 SmCplnv 23.51 +.17 +39.1 YIdPsSI 9.69 ... +12.4 Selected Funds: AmShD 44.99 +.19 NS AmShSp 44.95 +.18 +33.7 Sellgman Group: ComunAt 33.23 +.29 +40.4 FrotrAt 13.49 +.01 +26.4 FronriOt 11.47 +.01 +23.6 GIbSmA 16.99 +.04 +56.3 GlbTchA 16.21 +.11 +34.2 HYdBAp 3.40 ... +20.5 Sentinel Group: ComS A p 32.32 +.21 +33.7 Sequoian150.67-1.12 NE Sit Funds: LrgCpGr 40.07 +.24 +30.4 SoundSh 38.49 +.21+37.3 St FarmAssoc: Gwth 56.26 +.20 +32.8 Stratton Funds: Dividend 38.66 +.24 +52.1 Mua-Cap 42.85 +.30 +40.0 SmCap 48.34 +.45 +51.9 SunAmerlca Funds: USGvBt 9.30 -.02 +5.6 SunAmerlca Focus: FLgCpAp 18.25 +.13 +5.1 TIAA-CREF Funds: BdPlus 10.15 -.02 +10.3 Eqlndex 9.91 +.07 +32.5 Groinc 14.60 +.09 +33.0 GroEq 10.01 +.07 +16.5 HiYBd 9.33 -.01 +23.0 InlEq 14.16 ... +74.1 MgdAlc 11.96 +.03 +28.3 ShtTrBd 10.37 ... +7.5 SocChEq 10.47 +.07 +32.2 TxExBd 10.81 -.01 +8.7 Tamarack Funds: EnlSmCp 30.32 +.19 +35.1 Value 38.79 +.24 +28.8 Templeton Instit: EmMSp 19.36 -.12 +91.7 FoiEqS 26.17 -.22 +74.1 Third Avenue Fds: Inlr 21.57 -.16 +64.9 RIEslVIr 34.86 +.04 +80.5 Value 59.48 -.23 +61,2 Thornburg Fds: IntValAp 27.93 -.40 +08.7 InlValuel 28.47 -.41 +70.9 Thrlvent Fds A: HIYlO 5.18 -.01 +25,2 Inom 8.69 -.0 +10.9 LgCpStk 27.50 +.16 +24.1 TA IDEX A: JanGowp ...... 0.0 GCGIobp 29.60 -.02 +29.9 TrCHYBp .9.38 -.01 +21.0 TAFoxlnp 9.52 -.03 +11.1 Turner Funds: SmlCpGrn28.85 +.19 +32.2 Tweedy Browne: GlobVal 30.77 -.54 +53.5 UBS Funds Cl A: GlobAlol 14.06 +.03 +35.1 UMB Scout Funds: Inll 3253 -.24 +67.8 US Global Investors: AIIAm 25.24 +.14 +31.5 GIbRs 14.35 -.02+123.8 GIdShr 14.73 -.02 +65.9 USChlna 9.83 -.07 +65.7 aFm~ h.- N N * sI tes S r , 1 .451 - , - I'.9~~h *s- 05 a snjr ar d �r iueii, e 104;.�.~ 4a .Y;y� N- '.4 r -t a -u PLrbI 5-*0'5L WkdPrcMn25.77 -.13 +96.1 USAA Group: AgvGt 32.78 +.19 +26.1 CABd 11.12 ... +12.1 CmstStr 26.49 -.04 +31.5 GNMA 9.57 -.01 +10.7 GrTxStr 14.15 +.04 +25.1 Gnwth 15.07 +.13 +22.4 Gr&lnc 18.03 +.09 +28.6 IncSk 16.42 +.08 +34.1 Inco 1225 -.02+11.3 Int 26.56 -40 +64.4 NYBd 12.05 -.01 +11.6 PrecMM 26.79 +07 +89.1 SciTech 11.39 +.05 +23.8 ShtTBnd 8.92 ... +9.4 SmCpSBk 15.04 +.12 +45.8 TxEt 1324 -.01 +10.7 TxELT 13.99 -.01 +12.5 TxESh 10.62 ... +6.6 VABd 11.60 -.01 +10.3 WIdGr 19.57 -.14 +51.7 VALIC: MdCpIdx 23.86 +10 +41.3 Stkdx 35.97 +.24 +29.5 Value Line Fd: LevGtn 21.03 +.10 +31.6 Van Kamp Funds A: CATFAp 18.60 ... +10.0 CmstApx 18.70 -.14 +35.9 CpBdAp 6.62 01 +11.4 EqlncApx 8.90 -.06 +31.0 Exch 407.72 +1.35 +29.1 GrinApx 21.28 -.04 +38.5 HarbApx 15.66 -.11 +21.0 HiYkdA 10.73 -.02 +22.0 HYMuAp 1120 ... +22.6 InTFAp 18.56 -.01 +102 MunlAp 14.85 -.01 +11.1 PATFAp 17.44 -.01 +11.1 StMunlnc 13.67 ... +21.9 US MIgeA 1337 -.02 +10.6 UlilApx 22.72 ... +66.5 Van Kamp Funds B: EnterpBI 12.72 +.09 +16.9 EqilcBtx 8.75 -.05 +282 HYMuBt 1120 ... +19.9 MulB 14.83 -.01 +8.6 PATFBI 17.39 ... +.7 StGwth 35.72 +22 +142 StrMunnc 13.66 ...+192 USMtge 13.32 -.01 +7.9 UbIBx 22.63 +.03 +62.8 Vanguard Admiral: CAITAdmnll.04 ... +7.8 CpOpAdin82.69 +.53 +412 Energyn 117.48 +1.02+117.3 ExpAddn70.03 +.35 +33.4 ExIdAdmn39.08 +.18 +44.9 500Admln12825 +.86 +30.6 GNMAAdn125 ... +12.3 GnwAdmn29.58 +20 +21.3 HthCrn 61.70 +.06 +37.8 HiYdCpn 625 -.02 +209 TBdAdmln10.36 -.02 +9.4 IntGrAdmn74.77 -22 +67.6 FAdmnn 13.38 ... +8.7 ITGrAdmn 9.82 -.01 +10.7 UdTrAdn 10.73 ... +5.8 MCpAdmln91.37 +.44 +542 MuHYAdmn10.91 ... +14.0 PrmCaprn70M3 +.46 +32.3 ReitAdmrn112.02+.48 +88.1 STsyAdmln1.33 -.01 +7.4 STBdAdmlrn9.95 -.01 +7.3 ShtTrAdn 15.59 ... +6.5 STIGrAdn 10.62 -.01 +10.0 SmCAdmn32.71 +23 +42.5 TxMCaprn66.93 +41 +33.8 TtlBAdmlnlO.06 -.01 +10.4 TSkAdmn 33.67 +22 +33.9 ValAdmn 26.00 +.15 +45.6 WesLAdmrn53.32+.04 +22.8 WelnAdmn 55.64 +.4 +33.5 WTndsr n 62.02 +.36 +38.3 WdstlAdn60.85 +.23 +42.9 Vanguard Fds: AsselAn 28.35 +.17 +30,5 CALTn 11.80 -.01 +11.6 CapOppn 35.78 +.23 +40.8 Convdn 13.78 +.02 +25.7 DidGron 1426 +.06 +332 Energy 62.55 +.55+116.9 Eqlncn 24.93 +.10 +39.6 Exprn 75.20 +.38+32.8 FLLTn 11.64 -.01 +94 GNMAn 1025 ... +12.1 GlobEqn 22.92 +.01 +62.5 Gmlncn 35.46 +21 +31.1 GrthEqn 11.00 +.09 +1.7 HYCorpn 6.25 -.02 +20.5 HBhCren146.15 +.12 37.4 InfaPron 12.07 -.01 +9.5 InlExIrn 21.48 -.08 +98.3 IntlGrn 23.49 -.07 +66.6 InValin 39.94 -.05 +75.8 mGraden 9.82 -.01 +10.3 ITTsryn 10.88 -.01 +7.7 LfeConn 16.62 +.03 +22.4 LifeGrmn 23.64 +.10 +35.7 Ufelncn 14.03 +.01 +162 UfeModn 20.29 +.07 +29.1 LTiGraden 9.35 -.04 +14.0 LTTsryn 11.26 -.05 +12.0 Morgn 18.72 1 . +30.0 MuHYn 10.91 ...+13.8 MulnsLgn 12.66 .. +10.6 Mulntn 13.38 ... +84 MuLtdn 10.73 .... +5.6 MuLongn 11.34 -.01 +10.5 MuShin 15.59 ... +6.3 JLTn 11.92 ... +10.7 NYLTn 11.33 ... +10.1 OHLTTEn2.01 -.01 +9.8 PALTn 11.37 -.01 +9.9 PrecMllsrn28.07 -.05+124.5 PrmcpCorn12.55 +.05 NS Prmcprn 68.33 +.44 +37.6 SelValurn21.26 +.02 +55.1 STARn 20.95 +.03 +30.4 STIGraden10.62 -.01 +9.6 STFedn 10.34 .. +7.7 SIalEqn 24.01 +.12 +472 TgtRe2025n12.97+.05 +28.0 TgtRe2015n12.45 +.03 +24.6 TgtRe2035 n13.75+.05 +33. USGron 18.15 +.14 +19.1 USValuen 14.38 +.06 +30.8 Wellslyn 22.00 +.01 +22.4 Willtnn 32.20 +.08 +32.9 Wndsrn 18.38 +.11 +37.9 Wndslln 34.27 +.13 +42.4 Vanguard Idx Fds: 500 n 12823 +.86 30.3 Balancedn21.35 +.07 +24.1 DevMktn 12.53 -.03 +69.6 EMkIn 23.44 +.02 +98.7 Europe n 35.40 -.21 +72.5 Extendn 39.05 +.18 +44.3 Growth n 29.57 +.20 +20.9 ITBndn 10.36 -.02 +9.1 LgCaplxn 25.05 +.16 +32,6 MidCapn 20.13 +.09 +53.8 Pacificn 12.75 +.05 +63.3 REITrn 2625 +.11 +87.7 SmCapn 32.69 +23 +42.1 SmlCpVIn 16.90 +.14 +47.0 STBndn 995 -.01 +7.1 TolBndn 10.06 -.01 +10.1 Totllnlln 17.51 -.04 +72.8 TotSlkn 33.66 +.21 +33.5 Valuen 25.99 +.15 +45.1 Vanguard Instl Fds: Ballnstn 21.36 +.07 +24.5 DvMklnstn1242 -.04 +70.4 EuroneN m 35.44 -22 +73.2 Extlnn 39.10 +.18 +45.1 Inslldxn 12728 +.87 +30.98 InPIn 127.29 +.87 +30.9 ToelBdeI n50.71 -.06 +10.4 lnsTSIPlusn30.34 +.20 +34.2 MidCplsln20.19 +.09 +54.4 SClnstn 32,72 +.22 +42.7 TBIsln 10.06 -.01 +10.5 TSInstn 33.68 +.22 +34.0 Vantagepoint Fds: Growth 9.39 +.06 +15.8 Victory Funds: DvsStA 17.65 +.11 +34.4 Waddell & Reed Adv: CorelnvA 6.05 +.03 +40.7 Wasatch: SmCpGr 36.64 +.11 +27.8 Waltz Funds: Value 39.38 +.23 +26.8 Wells Fargo Adv: CmSlkZ 2034 +.09 +42.3 Opptylnv 41.90 +14 +36.8 SCApValZYp31.07 +31 +60.5 Western Asset: CorePlus 10.62 -.02 +16.6 Core 11.42 -.02 +13.1 William Blair N: GrowthN 11.48 +09 +32,8 InUGlhN 27.48 -.06 +7359 Yactman Funds: Fundp 15.39 +.07 +21,0 Stocks dip briefly; numbers rebound Investors worry about mortgages Associated Press NEW YORK - Wall Street gyrated and then steadied itself Wednesday, closing with a respectable advance although the Dow Jones industrials fell as much as 136 points and briefly dropped below the 12,000 mark before recover- ing. Stocks bounced back and forth a day after con- cerns about faltering subprime mortgage lenders sparked a M broad selloff. H&R Block Inc. arke had added to Wall Street's March 1 uneasiness by announcing after the closing bell Tuesday its fiscal n riaowones third-quarter losses would rise Inlustrlals because of a $29 million write- down at its mortgage arm. Nasdaq The anxiety over mortgage " composite lenders, particularly the sub- Standard & prime lenders that make loans Poor's 500 to people with poor credit, pushed the Dow down by more Russell than 240 points Tuesday, its sec- 2000 ond-biggest drop in nearly four years. Such concerns jostled NYSE stocks for much of Wednesday's NY session. Advanced: 2,( "I think the market got below Declined: 1,: 12,000 and buyers came in," said Unchanged:- Todd Leone, managing director of equity trading at Cowen & Co. Volume: The Dow rose 57.44, or 0.48 Nasda percent, to 12,133.40. The Dow first climbed above Advanced: 1,( the 12,000 level on Oct 18, after a Declined: 1,: meandering, 7 1/2 year journey Unchanged: from the 11,000 mark Duringthat Volume: time, Wall Street dealt with the dot-com bust, recession and the aftermath of the 2001 terror attacks. Tuesday's drop echoed a 416-point drop com- t 14 Id 02 29 13 3, 64 36 2t posite th after indexes neared technical watch levels and that the higher close , 2007 in crude prices lent a boost to +57.44 energy stocks. Exxon Mobil Inc. rose $1.11 to $71.02, while 12,133.40 ConocoPhillips rose $1.32, or 2 +21.17. percent, to $67.91. After Tuesday's big decline, S2,371.74 the market appeared to have +92 been awaiting further economic data - notably Thursday's pro- 1,387.17 ducer price index and Friday's .-.s. consumer price index - for sig- nals about the economy's health 775.68 and whether an interest rate cut diary might be in the offing. Lower i interest rates would make 24 New highs access to capital cheaper and 94 35 perhaps inject strength in the New lows housing market 36 88 Wall Street's turbulence came 3,719,620,510 as stocks in Europe closed q diary sharplylower, apparently seeing New highslittle room for optimism U.S. 17 2N hs markets would rebound. 66 New lows Britain's FTSE 100 fell 2.61 per- 51 168 cent, Germany's DAX index lost 2.66 percent and France's CAC- ,234,486,685 40 fell 2.52 percent. Japan's AP Nikkei stock average closed down 2.92 percent, while Hong Kong's Hang Sang index fell 2.57 percent and the sometimes volatile Shanghai Composite Index fell 1.97 percent Advancing issues outnumbered decliners by about 3 to 2 on the New York Stock Exchange, where consolidated volume came to 3.72 billion shares from 3.49 billion on Wednesday NEW YORK STOCK EXCHANGES Tkr "Name Last Chg JBL Jabillf 26.20 +.68 JNS JanusCap 19.87 +.44 JNJ JohnJn 60.71 -.06 JCI JohnsnCt 93.88 -.41 KBH KBHome 45.60 +1.74 KDN Kaydon 40.96 K Kellogg u50.67 +.13 KWD Kellwod 31.15 +.59 KEY Keycorp 36.67 KSE KeySpan 40.80 +.20 KMB Kimblk 66.97 +.43 KIM Kimco 48.13 +.08 KMP KindME 51.69 +.09 KG KingPhrm 18.64 +24 KGC Kinmossg 12.71 +.07 KSS Kohls 70.75 -.78 KFT Kraft 30.20 -.73 KFTWIKraftwi d29.80 -1.00 KKD KrispKrm 9.81 -25 KR Kroger 26.57 +.28 LL L-3Corn 82.65 +.09 LRT LLE Ry 2.34 +.01 LSI LSI Log 9.91 +.14 LTC LTCPrp 24.99 +.45 LZB LaZBoy 14.02 +.22 LH LabCp 70.25 -.10 LG Ladede d29.84 +.34 LVS LVSands 85.24 +2.26 LM LeggMason96.95 +1.24 LEG LeggPla 23.12 +.04 LEH LehmnBrs 71.72 -.28 LEN LennarA 45.18 +1.35 ASG LblyASG 5.30 -.04 LLY UllyEli 51.90 -.17 LTD limited 25.44 -.32 LNC UncNat 65.85 +.11 LNN Undsay 33.64 +.77 LMT LodkhdM 98.14 +1.27 LTR Loewss 43.59 +.10 LPX LaPac 19.66 +.28 LOW Lowess 31.03 +.29 LYO Lyondell 30.47 +.18 MTB M&TBk d114.04 +.40 MBI MBIA 64.63 +.40 MDC MDC 49.35 +1.60 MDU MDURees 25.90 +.17 WFR MEMC 55.05 -.14 MCR MCR 8.51 -.02 MTG MGIC 56.65 -.86 MGM MGMMir 66.98 -.17 MAC Macerich 91.16 -.25 MAD Madeco 11.42 -.19 MGA Magnalg 74.13 +.58 MTW Manitows 54.36 -1.07 MFC Manulifgs 33.17 -24 MRO Marathon 93.41 +1.57 MAR MarlntAs 47.74 -.12 MMC MarshM 28.74 +.25 MI Marshlls 46.18 -.20 MSO MStewrt 17.26 -.50 MAS Masco 28.41 +.54 MEE MasseyEn 23.17 +.59 MA MastleCdn105.50 +1.64 MSC MaleridalSd 9.91 -.22 MAT Matel 27.36 -.02 MCD McDnlds 43.65 +.17 MHP McGiwH 62.17 +.31 MCK McKesson 54.81 +.39 MFE McAfeell 29.34 -.03 MWV MeadWco 29.15 +.09 MHS MedcoHlth 68.92 +.53 MDT Medtmic 49.63 +.38 MEL MellonFnc 41.05 +.37 MRK Merck 43.27 -.10 MDG MeridGd 24.20 +.10 MTH Meritage d32.16 +.39 MER MeillLvn 79.22 -.52 MET Metife 61.61 +.69 MU MlronT 11.59 +.33 MAA MdAApt 54.62 +1.25 MDS Midas 20.54 -.46 MZ Milaron .65 -.05 MIL Mllnpore 71.35 +1.25 MLS MillsCplf 25.06 MIR Mirant 38.47 +.32 MTU MitsuUFJ 11.74 +10 MBT MobieTel 50.96 +1.79 MHK Mohawk 83.20 -.10 MON Monsantos 52.91 +.43 MCO Modys 60.23 +.67 MS MorgSan 73.81 +1.73 MSF MSEmMkt 25.28 -.28 MOS Mosaiclf 26.97 +.28 MOT Motorola 18.40 +.16 MUR MurphO 51.81 +.76 MYL MylanLab 19.55 -.01 NCR NCRCp 47.77 +.82 NRG NRGEgy 69.21 +1.05 NYX NYSEGrp 82.31 -1.35 NBR Naborss 29.46 +.33 NCC NalCIty 35.69 -.06 NFG NatFuGas 41.10 +.16 NGG NatGrid 73.42 +.08 NOV NOilVarco u74.37 +1.92 NSM NatSemi 25.27 -.17 NHP NatwHP 30.67 +.21 HYB NewAm 2.33 +.01 NJR NJRscs 49.12 +.28 NXL NPlanExl 33.25 -.01 NYB NYCmtyB 16.75 -.01 NYT NY times 24.46 +.81 NCT Newcse 25.54 -.06 NWL NewelRub 30.86 +.19 NFX NewldExp 40.25 NEM NewmlM 41.44 +.02 NR NwpkRsIl 6.14 +.05 NWSIANewsCpA 22.44 -.01 NWS NewsCpB 23.77 NXY Nexengs 55.01 +.52 NI NiSource 23.52 +.08 GAS Nicer 47.01 +.78 NKE NikeB 104.82 +.22 NDN 99Centsf 13.60 -1.03 NE NbleCorp 74.02 +.92 NBL NobleEn 57.85 +1.59 NOK NokiaCp 21.33 +.03 JWN Nordstn 51.02 -1.2 NSC NoCfkSo 47.18 -.83 NT Noatel Is 27.03 +.26 NU NoestUt u30.10 +.40 NOC NomhropG 72.79 +.05 NRF NStarRIt 14.01 +.10 NFI NovaStar 4.18 +.75 NST NSTAR 33.68 +.01 NUE Nucors 63.32 +265 NQF NvFL 14.10 -.05 NP0 NvIMO 14.90 +.02 JPC NuvePCv 13.86 -.14 JPS NuvQPf2 14.52 -.06 OGE OGE Engy 37.35 +.24 OXY OcdPels 46.36 +.84 ODP OffcDpl 34.14 -.27 OLN Olln 16.41 +.19 OMC Omnlcom 104.40 +.31 OKS ONEOKPt 65.38 -.82 OSK OshkoshT 49.86 -.33 01 OwensIll 24.39 +.17 PCG PG&ECp 45.79 +.10 PMI PMIGrp d4229 -.42 PNC PNC 69.73 -.17 PNM PNMRes 30.20 +.36 PPG PPG 68.26 +.46 PPL PPLCorp 37.74 +.28 PKG PackAmer 24.14 -.26 PKD ParkDd 8.68 +.16 PSS PaylShoe 32.,85 -.58 BTU PeabdyE 38.25 +,44 PGH Pengrth g 16.12 +.08 PVR PennVawi 25.25 JCP Penney 78.50 -1.76 PBY PepBoy 15.25 +.25 PEP PepsiCo 62.69 +.53 PAS PepslAmer 21.31 +.15 PBT Pum1an 13.74 -.03 HK Petrohawk 12.37 -.10 PBR/APelrbrsA 79.00 +.89 PBR Petrobrs 88.16 +.96 PFE Pizer 24.86 -.08 PD PhepD 125.71 +.46 PNY Pied 26.06 +.55 PIR Pier 7.32 +.31 RCS PimnoStrat 11.14 +.12 PXD PioNm 38.83 +.57 PBI PitnyBw 45.44 -.29 PXP PlainsEx 43.64 +.35 PCL PlumCrk 38.07 +.48 PPP PogoPd 47.82 +.54 PII Polis 48.74 -.37 PPS PostPrp 47,34 +.32 POT Potash 156.12 +.79 PX Praxair 60.77 +71 PCP PrecCastpt 98.17 +1.12 PDE Pridelnt 28.31 +.41 PG ProdGam 61.36 +.19 PGN ProgrssEn 48.86 +.54 PGR ProgCps d21.28 -.50 PLD ProLogis 64.21 +.24 PHY ProsStiln 3.16 +.01 PVX ProvETg 10.68 +.05 PRU Pndentl 88.66 +.75 PEG PSEG 77.01 +.97 PSA Pubsig 95.74 +.84 PSD Pugetg 24.55 +.23 PHM PuIteH 26.52 +.53 PYM PHYM 7.54 PGM PIGM 1027 -.02 PPM PPrT 6.61 +.03 Ql Qinodan 14.43 -.31 NX Quanex 40.91 +.74 QTM QtmDSS 2.60 +.05 DGXA Qstiag d48.73 -.02 STR Questar 84.71 +.99 ZQK Quiksilvr 11.20 Q OweslCm 8.57 RAS RAITFn 28.17 +.72 RPM RPM 22.23 +.12 RDN Radian 53.17 -.89 RSH RadioShk 25.18 +.04 RAH Raklmop 59.69 +74 RJF RJamesFs 28.32 +.57 RYN Rayonier 42.51 +.07 RTN Raytheon 52.28 +.54 H Realgyn 29.36 +.41 O Rltylno 27.66 +.33 RHT RedHat 22.52 -.19 RF ReionsFn 34.77 +.38 RRI ReliantEn u8.70 +.49 REP Repsd 30.91 -.13 RSG RepubSv 39.91 -.14 VI RetailVent 20.22 -.12 REV Revon 1.05 -.05 RAI ReynAms 59.66 +.37 RAD RieAld 5.67 -.03 RHI RobHaB 36.52 +.41 ROK RodnAut 60.47 +.58 ROH RoHaas 50.62 +.04 RDC Rowan 30.18 +.46 RCL RylCrb 40.64 -.40 RDS/ARoyDShlA 64.29 +.51 RV Royce 22.36 +.11 RVTpBRoycep0B 24.70 +.10 RYI Ryersoa 38.90 +.90 RYL Ryland 44.79 +1.69 SAP SAPAG 45.28 +.28 SCG SCANA 40.83 +.28 SKM SKTlan 23.18 +.35 SLM SLMCp 41.22 FEU sTDJStx50 46.74 -.02 STM STMicro 19.06 +.04 TSG SabreHold 32.40 +.02 SWY Safeway 34.68 -.06 JOE StJUoe 54.02 +.97 STJ SUude 38.50 +.12 SKS Sakss 19.37 -.18 CRM Salesforce 41.99 -.17 SJT SJuanB 30.56 +.33 SLE SaraLee 16.47 +.12 SAY Salyama 21.05 -.29 SGP gP 23.15 -.13 SLB 64.93 +.62 SPI ScolPwrn 59.35 +1.11 STX SeagateT 24.32 +.27 SRE SempraEn 60.14 +.53 SXT Senaint 24.42 +.14 SHW Sherwin 65.64 -.98 SID SlderNac 37.04 +1.81 SIE SierraHS 41.31 +.06 SRP SielrPac 16.82 +.03 SLW StWhtng 9.24 +.20 SPG SimonProp109.65 -.19 SIX SixFlags 6.30 +.06 AOS SmithAO 38.10 +.14 SII Smithlnt 44.53 +1.07 SLR Solectm 326 +.08 SNE SonyCp 50.56 -.71 SJI SoJalend 34.52 +.60 SO SouthnCo 35.32 +.28 PCU SthnCopps66.04 +2.04 LUV SwstAi d14.88 .+.10 SWN SwstnEngy 38.61 +.74 SOV SovrgnBcp 24.46 +.27 SE Spectran 24.32 +.30 SPC S Bds 6.67 -21 SFC SpirtFn 14.53 +.02 S SointNex 19.40 +.36 SPF StdPac 22.71 +.71 SXI Standex d26.70 +.84 SWK StanlWk 54.45 -1.11 HOT SnrdHtln 63.29 +.12 STT StateSt 63.11 +.3 STE Sters 25.37 +.33 GLD sTGold 63.94 +.22 SYK Stlyker u64.35 +.67 RGR SturmRug u12.01 +.05 SPH SubPpne 41.92 -.22 SUI SunCmIs 30.35 +.10 SU Sunor g 69.11 -.24 SUN Sunoco 67.21 +.99 STP Suntech 36.31 -.60 STI SunTrst 82.69 +.50 SVU Supvalu 37.81 +.02 SNV Synovus 32.10 +.18 SYY Syso� 32.20 +.53 TAM TAMSA 26.63 -.23 TCB TCFFnd 26.05 +21 BNK TDBknofih 32.14 -.02 TE TECO 16.48 +.04 TJX TJX 26.00 -.07 TXU TXUCorp 62.81 -.20 TSM TaiwSemi 11.06 +.10 TLB Talbots 24.85 -.04 TLM TalismEgs 16.27 +.06 TGT Target 59.30 -1.17 TNE TelNorl 13.53 +.26 NZT TelcNZ 25.91 -.42 TMX TelMexL 29.67 +.07 TIN Templeln 58.08 +.62 TPX TempurP 26.25 +.04 TS Tenadiss 42.35 +.24 THC TeneHllh 6.31 +.10 TPP Teppco u43.70 TER Teradyn 16.30 +.0 TRA Tera 17.97 +.01 TNH TerraNito 51.80 +.15 TSO Tesomr 97.54 -.08 TI TeBaTs 22.93 +.17 TXN Texinst 31.67 -.07 TGX Theragen 4.34 -.02 TMO Thernos 45.08 +.14 TNB ThmBet 50.01 +1.25 TMA Thombg 24.52 +1.14 MMM 3MCo 75.80 +1.03 TDW Tirvb 53.73 +.54 TIF Tiffany 42.37 -.03 TW W Cable n 36.50 +.04 TWX 1TmeWam 19.45 +.03 TKR Timken 28.79 +.10 TIE TtanMts 34.25 +.55 THE Todo 33.36 +.51 TOD ToddShp 18.78 -.37 TOL ToilBos 28.33 +.99 TRU TorchEn 6.28 -.08 TMK Trfnmrk 63.09 +.26 TD ToDOBkg 57.55 -.68 TOT TotalSAs 65.25 +.41 TSS TotalSys 30.69 +.02, RIG Transocn 76.39 +.63 TRV Travelers 49.74 +.15 TPK Travh32dd 25.65 -.01 TG Tredgar 2233 +.42 TY TriCoB 2221 +.03 TRI TriadH 4924 +21 TSL TrnaSoln 436 +3.32 TRN Trinitys 39.72 -.14 TKC Turkcell 13.08 -.18 TYC Tycolnt 30.85 +.64 TSN Tyson 18.00 +.15 UBS UBSAGs 56.54 +.52 UIL UILHolds 34.65 +.60 LCC USAinvy 45.78 -1.66 USG USG 48.52 -.12 UST USTIrc 55.27 UBB UUniao 84.65 +.4 UNF UniFrst -39.87 -24 UNP UnionPac 97.57 -.49 UIS Unisys 8.25 -.04 UAG UtdAutos 20.72 -.29 UDR UDomR 30.71 +23 UMC UtdMicro 3.31 +.08 UPS UPS B 70.23 +.32 USB USBancrp 34.90 -.10 X USSteel 89.29 +2.15 UTX UdTech 64.75 +44 UNH Utdh~Gp 53.37 +.37 VN Uniavioi 36.02 +03 UNM UnumGrp 21.84 +.02 VRX ValeantPh 17.43 +.29 VLO ValeroE 61.27 +1.08 VAL Valspar 26.73 -.36 WC Vectren 27.98 +.21 VE VeaoiaEnv 69.35 +.35 VZ VeizonCm 36.28 +,15 VAWB VacomB 39.87 +.39 VIP VenpelCm 85.63 +1.69 VSH Vishay 13.75 +.06 VC VseMeon 8.40 +.12 VIV VNioPart 3.57 +.07 VOD Vodalone 26.44 +.01 VNO Vomado 122.00 +1.84 VMC VulcanM 115.36 -.65 WHI WHoding d4.78 -.11 WCI WCICmts 21.47 -.33 WNC Wabash 15.91 +.28 WB Wachovia 54.44 +.56 WMT WalMart 45.73 -.23 WAG Wamn 44.60 +.46 WM WA d39.93 +.14 WMI WsteMInc d33.36 +.52 WFT Weathldlnt 43.89 +.99 WRI WeinRIt 46.73 +.35 WLM Wellmn 3.05 +.02 WLP WellPoint 78.09 +.19 WFC WllsFoos 33.65 +.18 WEN Wendyss 30.56 -.05 WR WestarEn 25.85 +.07 EDF WAEMInc2 12.89 MHY WstA dHi 6,85 -.05 W1 WAsTIP2 11,67 -.01 WDC WOgilf 17.70 +.01 WU WstnUnn 21.27 +10$ WY Weyerh 7883 - WHR "Whrl 84.19 WTU WrlmCS 10.64 .04 WMB WmsCos 27.02 .41 WSM WmsSon 34.59 +.63 WIN Windsnbm 14.18 +.08, WGO Winnbgo 30.56 +.27, WEC WIscEn 47.70 +.19, WOR Wortgt 18.76 +.31 WWY Wrigleys 51.35 +2.29 WYE Wyeth 48.88 -.0f8 WYN Wyndhamn 32.60 -.87- XL XLCap 68.12 -.88- XTO XTOnigy 51.11 +.9' XEL XcelEngy 23.92 . +J XRX Xerox 16.84 +,02- AUY Yamanag 13.54 +.25' YUM YumBR s 57.60 +5,, ZMH Zimmer 85.48 +.65 ZIR ZwelgTI 5.61 +.014 TiiURSDAY, MARCH 15, 2007 13A lTBUSINrSS C COUNTY FL) CHRON E 'II ) / - � \ i li S"They have sown the wind, and they shall reap the hirlwind. " Hosea 8:7 --1.- L - � CITRUS COUNTY CHRONICLE SE~ D "t 0~ ~~EfT A aL BOARD Gerry Mulligan ..............................publisher Charlie Brennan ............... ............. editor Neale Brennan ...... promotions/community affairs Kathie Stewart ..................circulation director ca.-F . Mike Arnold ........................... managing editor Founded in 1891 Curt Ebitz ...............................citizen member by Albert M. williamson Mac Harris ............................citizen member "You may difer with my choice, but not my right to choose." S- sDavid S. Arthurs publisher emeritus CAPITALL CRIME Recommended sentence is the right call ITT hen John Couey chose the mental wherewithal to ini- to kidnap, sexually tially avoid authorities by flee- i assault, then murder ing the state. SJessica Marie Lunsford, Florida Judge Ric Howard, who ilaw was clear that such a crime presided over this case, will ' is deserving of a death sentence. decide whether or not to support That's exactly what jurors rec- the recommended verdict. Given Commended on Wed- the horrific circum- Snesday evening. stances of this case Those who sup- THE ISSUE: and existing law, port and oppose the the judge should !death penalty will Couey trial support the adviso- Icontinue to debate penalty phase. ry sentence. Ithe appropriate- There are legiti- jness of the punish- OUR OPINION: mate arguments Iment - and that's a Crime qualifies for against the death worthy debate. depth penalty. penalty, and many At present, how- would agree that it ever, there's no YOUR OPINION: Go to has been used to *question that our r.r,rnJeonirie .:-,m t. excess. That debate, 'law allows for those .mment about to. , encompassing seri- Chronicle editrt ' t. ;who willfully rape ous ethical and and murder chil- moral issues, will dren to be put to death. The sen- and should continue. tence handed down clearly indi- In the case of John Couey, how- icates thaf jurcirsl lt C'-uev w\as ever, the law was clear and his Sc-alc~lating in is brutalization' actions w ere abominable. He Sof a ]'Klpless 9-year-old, having should suffer the consequences. Vote with remote S I'm a happier person Snow that I have decided tc. ;vote with my reriote. In n, pretty handy with it :Inid since I feel that presiden- tial ei.., in s :, Uld i o-L t t.e started until next year and I am disgusted by the CALL early campaigning, I feel 63 much better now that I 5 have promised myself to flip the channel as soon as presidential politics or presidential campaigning starts. Join me. Report rudeness In reference to the letter to the editor in reference to rude customer s-r v.,:e by ,o.ur cable company. Yu can call the Citrus County Board of C.omnissioners and report that. They are the gowCr ning traiichise ... and the) will take care of those type cf problems It doeS, help Slow drivers You should not be driving on ,Turner Camp Road it you can't go tie speed limit of 45 mph. That really isn't too tast. Almost every time I go to town anymore, I get stuck behind someone going 30 mph. These are probably the same people that sit at four-way stops - 'that just sit there and wait 'til all three roads are completely clear before they proceed. They don't care who they hold up - they're retired. Empty parkway A few-weeks ago,.I.was coming... Back from Largo and we got to Clearwater and the road was backed up supposedly, according to fthe television, for about 17 1/2 Smiles, that they were trying to get a fugitive in a motel along (U.S.) 19. Vie get up to Tarpon Road and we Sid enough was enough, going a . iterlf a car length each time, so we Itrned oil and took Tarpon Road to Jie Suncoast Parkway, and we went tthe parkway. 0,#Guess what? We went from there i .Crystal River without seeing mother car going in our direction Sad we weren't even traveling the seed limit ol 70 mph. So much for Sthe use of the parkway in case of a storrr, a tornado, a hurricane com- rig across Tampa Bay. It would be ' ,iculous to go in that direction in Sthe first place You're going clear iout to the storm instead of going i1 , . * , ,; across the state. But the parkway is supposedly to relieve the traffic, so how come it didn't do it in this instance? SNo meds in jail I've got a comment c about the so-called jail in Lecanto. My son has to be 0579 in jail in Lecanto and he's S not complaining about that or the food, but he needs his medication. He's been in there over a week now and they will not give him his medication and I just don't understand that. You've got a guy up for rape and murder anid kidnapping and he gets~a color. ing book to take to court Then this jail here in Citrus County is run by a private organization and they've got. a so-called nurse up there and all she does is give him a couple of Advils. Give me a break. The lawyer can't get through to him, the doctor that, these inmates have, the private doc- tors, they're not allowed to recom- 'mend anything up there. This thing really needs to be investigated by the state or whoever's in charge of it. There's no reason in the world why anybody, even though they did wrong, why they cannot get their proper medication. It just doesn't make sense. What's wrong with this Citrus County? I mean, what is wrong? For God's sake, what's wrong with it? Airboat noise I'm calling about the airboat noise on our waterways. I, too, am a homeowner who lives on the water. I don't understand why the people who drive these airboats feel they have every right to disturb every person's peace and quiet for miles around because they want to ride fast and make a lot of noise. We pay higher taxes to live on the water. I wager a lot of these people don't even live around here, yet they feel they have a right to make noise for hours on end, as loud as a jet airliner. And I am not just talking about disturbing people here. What gives you the right to disturb every living creature in and out of the water so you can have some so- called fun? We are a "me" society. These types don't give a hoot about the cares of anyone else. A true conservative woman T he attention-grab- bing vocabulary of Ann Coulter is not what conservatives want as a newsworthy talking point. ;' Instead of shocking the public into listening with unfortunate comments, how about grabbing atten- tion by celebrating the party's positives - like Jennifer Gratz? Instead of Kathry: the stand-up-and-outrage- OTB them message Coulter typi- VOI cally exudes, Gratz coun- sels: "I'd give the same advice my parents gave: Stand up for your beliefs. And I'd add that you real- ly dis- criminating or granting preferential treatment based on race, sex, color; ethnicity, or national origin." With 52 percent of the vote, its passing was no small victory. But Gratz's other contri- butions should not go unnoticed. Before November, Gratz already had a place in the history books. She is the Gratz of the 2003 Supreme Court deci- sion Gratz v. Bollinger, which struck down the University of Michigan's n ED racial-preference program. Gratz had been rejected unfairly by the school despite a stellar academic .. record. Turns out it was reverse discrimination - .. thanks to the positive- sounding "affirmative action" policy in place there. The experience encouraged her to become Lopez a civil-rights leader. IER But she does not have to DES give any specific advice to leaders in training: They just have to watch her. Gratz's leadership stands in dramatic contrast to the misleading and hyper- bolic rhetoric of her opponents in Michigan. One of the ads, for instance, that dropped in the fall by the opposi- tion declared: "If you could have prevented 9/11 from ever happening :;. would you have?" "If you could have prevented Katrina from ever happening ... what would you have done?" "On Nov. 7th, there's a national dis- aster headed for Michigan ... the elim- ination of affirmative action.". "And on Nov. 7th, there's only one way to stop this disaster... by voting No on Proposal 2." But these cheap attacks haven't thwarted Gratz. And they haven't dis- couraged cam- paign against the MCRI. Jennifer and Ward prevailed in spite of the opposi- tion of most Republican leaders, including gubernatorial candidate Dick DeVos. I was completely impressed with Jennifer's natural skill, maturity, good judgment and courage under fire. No matter what was thrown at her, she never lost her poise and determination." The conservative moment is ground- ed in ideas. We believe those ideas, as expressed and as acted upon, have consequences - because they do. Every politically interested college student knows Coulter; many have heard her on campus. They should know and hear Jennifer Gratz. ----H-- Kathryn Lopezis the editor of National Reviei' Online. She can be contacted at klopez@nationalreview.com. LETTERS to the Editor Incompetence shows Incompetence is not a word I use often, but it is the only word that comes to mind when considering the work on the Halls River Road sewer project. 'This project has been going oin for close to two years. Last week. I observed three different large, back- hoe-type digging machines working at different locations. There was a new hole dug yesterday and they are dig- ging anew hole today, March 6. Yes, they were digging up the same holes that they have dug up on several pre- vious occasions, so it appears. These holes have sometimes closed roads and have annoyed residents with noise and dust No one seems to be in charge of inspections or quality control. The contractor should run this job well. But, he does not seem to be doing it. The county has not found a person who appears to know how to do this job right the first time. Surely, installing sewer lines sever- al feet deep in porous limestone can- not be a new concept in Florida. Sewers are everywhere, but this-accu- mulated engineering knowledge seems to be ignored or unknown. I have little confidence in our com- mission choosing knowledgeable peo- ple to run such projects. Just look at the problems with the new county building in Inverness, or the County Road 486 repairs on ripping up and rebuilding parts of a brand-new road, etc., all costing taxpayers extra money. I am reminded of this.cloud of incompetence every time I drive over about 14 bumpy asphalt patches cut across Halls River Road and the swirling dust clouds. I would like to ask those running these projects to please "Get your act together" and find someone who knows how to run a job the right way from beginning to end and to do it right the first time. We have many OPINIONS INVI * The opinions expressed in C trials are the opinions of t board of the newspaper. * Viewpoints depicted in polit toons, columns or letters dc sarily represent the opinion rial board. . " Groups or individuals arei' et'pre.:. their opinions in a I editor. I Persons wishing to address board, which meets weekly, Linda Johnson at (352) 563 * All letters must be signed a phone number and hometo letters sent via e-mail. Nam hometowns will be printed; bers will not be published o * We reserve the right to edit Length, libel, fairness and g( a Letters must be no longer tl words, and writers willbe li three letters per month. 8 SEND LETTERS TO: The Edit Meadowcrest Blvd., Crystal 34429. Or, fax to (352) 563 mail to lettersi@chronlcleoe future public projects and ers want them carried out rect way. We need to shake thinking in design, engineE ting contracts, staff oversig tions, etc., and to get peop] who actually know what th doing. SBasic belief Marilyn J. Day's letter, " morality," written in respo ter I previously wrote, "Pr faith," was extremely inter I suppose I should shave and run down the street in bag because my philosophy ates from hers. She writes, the liberal ju desperately trying to main Constitution against the "I Right," which seeks to imp morality on all. Oh, please! Men and wor have just as much right in TED public opinion as pro-abortion and Chronicle edi- pro-homosexual people. he editorial Early American history is all about pilgrims who left Europe to be free ical car- from religious persecution. o not neces- of the edito- Our Constitution was written by pmen who either were of faith or had a vitea'tot 'e high regard for faith. better to the For instance, Thomas Jefferson took the editorial monies out of the U.S. treasury and should call gave to the missionaries to preach the 3-5660. gospel to the Indians. He built houses nd include a of worship and a lot of Jefferson's wn, including es and authentic writings are signed, "In the phone num- year of our Lord Christ" r given out. The inscription on the Liberty Bell letters for ood taste. in Philadelphia, "Proclaim liberty han 350 throughout all the land, to all the mited to inhabitants thereof," is a Bible verse from Leviticus. tor, 1624 N. River, FL The song, "My Country, 'Tis of 3-3280; or e- Thee," speaks of God as being the llne.com. Author of Liberty. You see, Miss Day, our forefathers we taxpay- most certainly did fear the judgment in the cor- of God on our land because of slavery Sup the (see History Channel, TV), as I fear ring, let- God's judgment because of abortion h, ingspec- and the teaching of America's chil- h[e, inspc dren that homosexuality is OK le in charge iey are I there are no moral juigments on man's deeds, then rape, murder, pedophilia, adultery and stealing are Karl Schulz all acceptable! Homosassa Some things are simply moral or immoral. fS You also stated Washington and Lincoln were not believers in the Imposing Christian faith. nse to a let- I know you like to rewrite history. otecting Anyone can simply read the writings testing ! on the walls of the Lincoln Memorial e my head or the Jefferson Monument in i a paper Washington, D.C. Read books on the y differenti- upbringing of Lincoln and Washington. idges are You and the liberal judges have a tain the different intent for our Constitution religious than our forefathers. ,ose its Frankly, it's scary! men of faith the court of Mary C. Seader Inverness IE CHRONICLE invites you to call "Sound Off" with your opinions on any subject. You do not need to leave your name and have up to 30 seconds to.record. 'OMMENTS'will be edited for length, personal attacks and good taste. Editors will cut libelous material. OPINIONS expressed are purely those of the callers. I'�,. MIAKI H 5., 2007 � . i.r ,-,--i ~.,i . ... ,, TH C C=========3 ~p~s~ >* , t" ( OTRuS tOUNIY (FL) L RVONCLE '' I I "A Real Estate Brokerage You Can D In today's real estate market, it's difficult for homeowners to tell who will always be there to help them with their real estate needs. Many companies have come and gone in the past few years- and there's always the question: "Who can you depend on?" The Hedick Group, Real Estate Services, understands the need for a reliable real estate company in Citrus County. They have been in their current location for over 12 years, and continue to assist the community in all of their real estate needs. Unlike larger companies, who take on so many listings and clients you become a number rather than a person, The Hedick Group takes a far more personal approach to real estate. Whether you're looking to sell your property or find a new home, they help you with what's in your best interests by building close, personal relationships. They hold themselves to extremely high personal standards and seek to provide the best service in the county. While larger brokerages have many agents working under a single broker, The Hedick Group's select knowledgeable professionals have a one on one rapport with broker/owner Robert W. Hedick, Jr; that provides you with the most up-to- date advice and market analysis. "I consult and advise our team on a day to day basis on their listings and prospects so we always have an individualized strategy for each client's needs. That's a vital part in assisting the client in some of the biggest decisions of their life," Hedick shares. The market boom we saw led to an influx of agents looking to depend On" make their fortune in the real estate market. Today, many of those agents have since left the business. The Hedick Group makes their mark in dedicated service that lasts a lifetime. When asker how they've stayed in the business so long, Hedick responded "We're' here because we know how to make it through the market highs, and the cooling down period we're seeing now. We know how to handle every market, and how to help every client get the best of any situation." Bob & Dawnya Hedick Broker/Owner (352) 634-4286 Sara Malmtgren Home Buyer's Specialist (352) 422-1432 SEllen Aroneo Realtor* (352) 634-2345 Lynn Davis Property Management (352) 422-2522 Jason Morgan Luxury Homes Specialist (352) 422-8095 Pat Wadsworth Realtor* (352) 634-2209 Dea Kershaw Realtor' (352) 270-2015 CIUSC .U- . T-- ^A J1IXVhhY ~amu'~.gJ~J1,.- .1 For Your Continued Business e appreciate our community and would like to show you Come oin Us For Breakfast At Our Broker's Open House! Free Gift while su"nlies last! Fri., Mar. 16th at 9:00 am Come enjoy free doughnuts and coffee and take this wonderful opportunity to meet our agents and see what our firm is all about! ,tgC tite uj' 5 William Tell Ln. Beverly Hills, FL 34465 746-3390 THURSDAY. MARCH 15, 2007 15A V. A ,I / N �- � � � �-����-� ���� - 117TI.. ( 1 2 iii r - [ � �k- IS Weic,,,.me �e +i��r' 1-: r:J 16A THURSDAY MARCH 15, 2007 'PP~:G~i~*~i~E;~~llrW .l'i~'aX~~ ~ �44~;~-.�~ ;xlvAsr~ 'A8W1~F ~*~ ..~~ .. .... A: Critics want Gonzales gone Nation BRIEFS Joey Bush says he backs Attorney General .. Associated Press WASHINGTON - Sen. John Sununu of New Hampshire on Wednesday Became the first Republican in SCongress character- ized as a politically motivated purge. Support from many Republicans had been muted, but there was no outright GOP call for his dismissal until now. "I think the president should replace him," Sununu said in an interview with The Associated Press. "I think the attor- ney general should be fired." Bush, at a news conference in Mexico, told reporters when asked about the controversy: "Mistakes were made.And I'm frankly not happy about them." But the president expressed confi- dence in Gonzales, a longtime friend, and defended the firings. "What Al did and what the Justice Department did was appropriate," he said. Still, Bush left himself room to sack : 'Associated Press Attorney General Alberto Gonzales speaks during a news conference Tuesday at the Justice Department In Washington, D.C. the attorney general. "What was mishandled was the explanation of the cases to the .Congress," Bush said. "And Al's got work to do up there." The developments unfolded as presi- dential aides labored to protect White House political director Karl Rove and former counsel Harriet Miers from con- gressional subpoenas. The White House dispatched presi- dential counsel Fred Fielding to Capitol Hill to negotiate the terms of any testi- mony by White House aides in an insti- tutional tug of war reminiscent of the Watergate and the Iran-Contra scandals. Sununu has long been a critic of what he has said were the White House's dis- regard for civil liberties in its war on terrorism and played a large part in forcing the administration to accept new curbs on its power during the reau- thorization of the Patriot Act last year. On Tuesday, he said firings of the prosecutors, together with a report last Friday by the Justice Department's inspector general criticizing the admin- istration's use of secret national securi- ty letters to obtain personal records in terrorism probes, shattered his confi- dence in Gonzales. "We need to have a strong, credible attorney general that has the confi- dence of Congress and the American people," said Sununu, who faces a tough re-election campaign next year. "Alberto Gonzales can't fill that role." The White House response was curt. "We're disappointed, obviously," said White House spokesman Tony Snow. A Justice Department spokeswoman refused to comment on Sununu's remarks. only limited involve- ment in the firings. Senate Majority Leader Harry Reid, D-Nev., predicted Wednesday that Gonzales would soon be out. "I think he is gone. I don't think he'll last long," Reid said in an interview with Nevada reporters. Asked 'how long, Reid responded: "Days." Soldier oo f * I accuses Signs of progress Iraq? sergeant - intrial . Associated Press - S FORT CAMsPBELL, Ky. -A ,staffsergeant gave soldiers the pton of taking part in the -qaooting of three Iraqi ' ". .ld-etainees before the killings 'took place, a soldier testified Wednesday - Staff SgL Ray Girouard. 24. called members of his squad into a meeting near Samarra. Iraq, in May and said the three men were going to be shot after they were freed, Pfc. Juston Graber test ified. Girouard said Spc. William :Husaker and Pfc. Corey Clagett were going to shoot the nen, but other soldiers had the option to take part or leave e. Graber said. , Girouard, 24, who is charged ,with murder, is the last and ..most senior soldier from the Associated Press trial in the killings during a Children gather around a U.S. Army soldier Wednesday in Baghdad's Shiite enclave of Sadr City, Iraq. ,. iMay 9 raid on a suspected Hop s i nsr , r tio b tt - insurgent camp. He is accused butmiltaryremancaut usa ou .of ordering soldiers in his o p squad to kill the men and Cover up their crime as self- Associated Press by overly optimistic forecasts, have ing the country's main source of income defense. been cautious about declaring the oper- - oil - is bogged down in parliamen- The prosecution rested its BAGHDAD - Bomb deaths have action a success. Another reason it seems tary squabbling. ,ease Wednesday afternoon, gone down 30 percent in Baghdad since premature: Only two of the five U.S. Nevertheless, there are encouraging .and defense lawyers planned the U.S.-led security crackdown began a brigades earmarked for the mission are signs. -to continue their case when month ago. Execution-style slaying are in the streets, and the full complement Gone are the "illegal checkpoints," the trial resumed Thursday. down by nearly half. of American reinforcements is not due where Shiite and Sunni gunmen Graber pleaded guilty in The once frequent sound of weapons until late May. stopped cars and hauled away members .January to aggravated assault has been reduced to episodic, and A Pentagon report released of the rival sect - often to a gruesome for shooting one of the three downtown shoppers have returned to Wednesday in Washington even used for torture and death. Detainees who had been outdoor markets - favored targets of the first time the term "civil war" to The rattle of automatic weapons fire or wounded and was sentenced car bombers. describe some of the violence here. But the rumble of distant roadside bombs to nine months in a military There are signs of progress in the it stressed that the term does not cap- comes less frequently. Traffic is beginning -: ai . campaign to restore order in Iraq, start- ture Iraq's complex situation, and its to return to the city's once vacant streets. :": Graber said that after the ing with its capital city. assessment was based on the final three "People are very optimistic because detainees were shot, he But while many Iraqis are encour- months of 2006, which it said was the they sense a development The level of walked over to two who aged, they remain skeptical how long most violent three-month period since sectarian violence in streets and areas appeared to still be alive. the relative calm will last. Each bomb- the U.S.-led invasion. has decreased," said a 50-year-old "There was one that was ing renews fears the horror is returning. U.S. officials say that key to the secu- Shiite, who gave his name only as Abu kingig up blood and had ago- Shiite militias and Sunni insurgents are rity crackdown's long-term success is Abbas, or "father of Abbas." "The activ- o*nizing breathing," Graber said still around, perhaps just lying low or the willingness of Iraq's sectarian and cities of the milit las have also decreased. g1 t Girouarb d said.Gao ahead hiding outside the city until the opera- ethnic political parties to strike a The car bombs and the suicide attacks :ald . put him out of his misery.' tion is over. power- and money-sharing deal. That are the only things left, while other e felt it was the right thine to U.S. military officials, burned before remains elusive: A proposal for govern- kinds of violence have decreased." Poll:U.S. less concerned than others about climate change -I.- Associated Press not critical threat," in the survey ing from June to December The survey was conducted in developing countries - really C1" CG conducted by The Chicago More than 20,000 people were 17 countries - a total area rep- absorbing that there is some- I Flo CHICAGO - A survey on cli- Council on Global Affairs and polled. The margin of error resenting more than 55 percent thing to address here," Kull -;,ate change conducted in WorldPublicOpinion.org, in ranged between 3 and 4 percent of the world's population. Not said. "It's really quite phenom- m,*ore than a dozen countries cooperation with other polling The survey, which was all questions were asked in all enal that this kind of change :fund that a majority of people organizations. released Tuesday, was first countries. can happen." 12i nations including South Among the other countries conducted in the United Kull said he was struck by Another set of questions S;Ikorea, Australia. Iran and where the question was asked, States, China and India. When the widespread concern over found strong support from resi- ,:, ITexico - but not the United the Ukraine was the only organizations in other coun- climate change. dents in the United States, ':States - view global warming nation where less than four in tries expressed interest, the "If you think about the fact Poland and the Ukraine for the ,as a critical threat 10 participants found global effort was expanded, said that just two decades ago, hard- idea that developed countries , In the U.S., about 46 percent warming to be a critical threat. Steven Kull, an editor at ly anyone knew what climate should provide substantial aid : f those questioned said global There, it was 33 percent. WorldPublicOpinion.org who change or global warming was, to developing countries that *'- arming is critical, while fourin The polling was conducted took the lead in managing and and now you have people all commit to limiting their green- 10 labeled it "an important but lastyear, with field periods vary- analyzing the poll results. around the world - even in house gas emissions. Associated Press A seven-month-old baby koala clings to his mother, Colliet, Wednesday at the Cleveland Metroparks Zoo in Cleveland, Ohio. The joey is the 11th koala born at the zoo since 1999. 9/11 mastermind allegedly confesses WASHINGTON - Khalid Sheikh Mohammed, the sus- pected mastermind of the Sept. 11 attacks, confessed to that attack and a string of others dur- ing a military hearing at Guantanamo Bay, Cuba, according to a transcript released Wednesday by the Pentagon. "I was responsible for the 9/11 operation from A to Z," Mohammed said in a statement that was read during the ses- sion, which was held last Saturday. Mohammed claimed respon- sibility for planning, financing and training others for bombings ranging from the 1993 attack at the World Trade Center to the attempt by would-be shoe bomber Richard Reid to blow up a trans-Atlantic flight with explo- sives hidden in his shoes. In all, Mohammed said he was responsible for planning 28 individual attacks, including many that were never executed. The comments were included in a 26-page transcript released by the Pentagon, which blacked out some of his remarks. Associated Press An unidentified bishop uses his compact camera Wed- nesday during Pope Benedict XVI's weekly general audi- ence in St. Peter's Square. British lawmakers OK new nuke subs LONDON - Prime Minister Tony Blair survived a rebellion by lawmakers in his own party Wednesday when Parliament approved his program to replace Britain's fleet of four nuclear- armed submarines. Blair's proposal survived a rebellion by 95 lawmakers in his own party, making it the biggest revolt among his ranks since the Iraq war. Overwhelming support from Conservatives assured approval of Blair's plan Wednesday, with the motion passing by a vote of 409-161. His Labour Party has a majority of 67 seats in the House of Commons. Critics said the $40 billion pro- gram could harm efforts to stem the weapons ambitions of Iran and other countries. But before the vote, Blair told the House of Commons that the submarines - due to be phased out starting in 2022 - should be replaced to meet possible future threats from rogue regimes and state-spon- sored terrorists. "I think it's right we take the decision now to begin work on replacing the Trident sub- marines, I think it's essential for security in an uncertain world," Blair said. - From wire reports - ,..,-. I�-; _� I MARCH I 5, 2007 " MuSeurri ph-)tos 2B " NHL 3B " Scuriboar1 3B " MLEE IJEA 4B * C'utdcjur 5B, 6B PHOTOS BY JOHN COSCIACrror,,.:- Claudia Williams, left, daughter of Ted Williams and Linda Ruth Tosetti, granddaughter of Babe Ruth, met for the first time Tuesday night at the grand reopening of the Ted Williams Hitters Hall of Fame museum. It was the first time in 26 years that Claudia has seen the ball that Babe Ruth signed for her father some 64 years ago at a charity game. Williams' daughter, Ruth's granddaughter meet at museum JOHN COSCIA jcoscia@chronicleonline.com Chronicle ST. PETERSBURG - It's been more than six decades since a young, energetic Ted Williams gotup the nerve to ask his boyhood idol, Babe Ruth for an autograph while the two baseball greats competed in a charity baseball game. Ruth generously granted that request, signing the baseball, 'To my pal, Ted Williams, Babe Ruth'. It was a moment that Williams would cherish the rest of his adult life. So 26 years ago, when that baseball was stolen from Ted's home, you can just imagine how broken-hearted Williams must have been. Two months ago, however, thanks to the industriousness of a few Ted Williams Museum the two men tied to that ball" years that Ihave seen averyspe- board members, that ball was were now being represented by cial piece of my dad's history. recovered. their very own. "Sixty-four years ago, Ted On Tuesday night, Claudia Summing up what it meant to Williams, 'the splendid splin- Williams. Ted's youngest daugh- her personally, Claudia was not ter', 'the kid' asked one person ter; announced to for an autograph. That person the crowd of over was Babe 500 gathered at Ruth," she Tropicana Field That ball was meant to come a d d e d for the grand re- "Tonight, 26 opening of the home because that is unheard of... that years after Ted Williams being stolen Hitters Hall of was meant to be home. from my dad, Fame Museum it is returned and inductionLinda Ruth Tosetti to be dis- ceremony, that Babe Ruth's granddaughter played in the the ball was being Ted Williams put on display at museum. the museum for all to enjoy. without emotion as she "I'm very proud to share this Making it a perfect night for expressed her feelings, special ball with all of you who such a unique ceremony was a "Tonight is a very special have loved my dad, followed his special guest also in attendance evening and I would like to life, his career and his life's - Babe Ruth's granddaughter, thank all of you for being here to accomplishments," Williams Linda Ruth Tosetti. share the grand re-opening of admitted. "I also want to thank Not only was the ball back in the Ted Williams museum. those that joined my father in its rightful owner's hands, but Tonight is the first time in many defending our country, the U.S. Marines. This baseball signifies one. of the most special moments in baseball." Ruth's granddaughter also felt the emotions flowing. "That ball was meant to cone: home because that is unheard of and all the hard work of every- body, that was meant to: be home," Tosetti said. "And the story about it being the only ball that Ted had is true because ed told me that himself. I was able to talk to him at the Hall of Fame: like two years before he passed& And he said, 'There's only one:I wanted, only one I had."' On the occasion when Tosettil met Ted Williams, she also tried: to tap into his knowledge ofhher grandfather. Williams did 'his: best to comply. "I wanted him to make Babe, flesh and blood to me because: Please see '*;...!:" '.'-/Page 2R ,� o .. Newest Hall of Famers Dale Murphy, Fred McGriff newest inductees into Ted Williams Hitters Hall ofFame JOHN COSCIA jcoscia@chronicleonline.com Chronicle ST. PETERSBURG - On a night that surrounded the showcasing of a baseball that Babe Ruth signed for Ted Williams some 64 years ago, Dale Murphy and Fred McGriff were honored for their ability as two of the game's best hitters of all time. Murphy and McGriff were the 2007 inductees in the Ted Williams Hitters Hall of Fame in front of a healthy crowd of 500 onlookers at Tropicana Field Tuesday. Murphy, who attended high school in Portland, Oregon, wound up in Atlanta for most of his career. He was a great one for the Braves, a 7-time All-Star with five Gold Gloves to his credit and back-to- DALE Fr. F'PH' back National League MVP honors in 1982 and 83. "It's hard to put into words how I feel tonight. But, I can just tell you that I'm overwhelmed and honored to be in this select group," Murphy admitted. "As I look back and understand a little about Ted Williams' life, I can't put into words how much I appreciate and honor his life not only as a baseball player but as an American." Murphy then thanked his wife Nancy "My wife through my career was part psychologist, part hitting coach and put up with a lot of 0-for-4's and also in the process raised eight kids during my career. I think that she's a Hall of Famer," Murphy said. "We were going to bring all of our kids out but we couldn't afford it. Actually Dave (McCarthy) Please see - ' ,*- :' ~'-Page 2B FRED ICGRIFF 2B 'I'llulsA, ,A MARCH 15, 2007 Former Yankees great Mickey Rivers. signs an autograph for a fan at Tropicana Field on; Tuesday. . Former Yankee Goose Gossage. also honors a fan's request for a signature. Former Yankee Reggie Jackson, far left, walks through the Ted Williams Hitters Hall of Fame with daughter Kimberly, center, museum worker John Papelbon, background, and Devil Rays president Matt Silverman, right. Photos by JOHN COSCIA/Chronicle New York Yankees reliever Mariano Rivera, left, views the Ted Williams Hitters Hall of Fame with museum director Dave McCarthy. INDUCTION Continued from Page 1B offered to fly them all out here." Murphy also thanked the Braves and Bobby Cox. "It's times like this that I look back and I'm proud to be part of the community of baseball. There was something that brought our country together following the tragic events of 9/11. Being in New York and at Yankee Stadium as we replaced 'Take me out to the ballgame' with God Bless America," he continued. "There's something about this Special game that is just great to be a part of." Murphy then reflected on how he got his start in the game. "As an eight-year-old when I was starting off playing base- ball I got one hit the whole year, my whole year, of my eight-year-old year. My dad was the scorekeeper so probably an error but he gave me a hit," said Murphy as the crowd laughed along with him. "I think my dad thought I could use some help so in 1972 when I was a sophomore in high school he bought me this book, 'The Science of Hitting' by Ted Williams. I read this book and -thought, 'Boy, that looks like Murphy then recalled the 'first time he ever met Ted Williams. "It was sometime in the mid- 880's. The Braves were playing Sin the Hall of Fame game, an exhibition game in �Cooperstown. And there was Ted at home plate, part of the opening ceremonies. I thought tto myself, 'I got to go introduce ,myself to Ted Williams,"' 'Murphy recalled. "So I got the courage to go up and I said 'Ted, you know, Dale Murphy, good to meet you.' Ted just looks at me and he says, 'Dale Murphy. You got to get more strikes to hit.' He watched a lot of our games on TBS and Ted never swung at a ball. And I felt like saying, 'Hey you're Ted Williams, I'm just Dale Murphy I'm just trying. But he was nice to give me that encouragement" A few years later while with the Phillies, Williams and Murphy's path would cross again while enjoying pancakes in Clearwater. "I thought to myself again, 'Here I am again in the same room as Ted Williams. I've got to go introduce myself," Murphy remembered. "'Dale sit down, let's talk.' I can't tell you what that meant to have that connection with Ted Williams. And now to be in the same room again with Ted Williams is again an honor that I am just so grateful for." Then there was the introduc- tion of baseball great McGriff by Dewayne Staats, the master of ceremonies. "It's magic in one way or another to all of us. And I know it's magic to our next inductee, Fred McGriff. It's hard to believe when you would see Fred hit homeruns that he arrived a little early," Staats said. "How can that be? How can a guy so big start out so small? But he did. He went to Jefferson High School in Tampa and here he is on the verge of entering this Hall of Fame with names like Ruth and.DiMaggio and Aaron's and Ted Williams. Now he becomes one of the greats." McGriff then recalled how much baseball has given back to him. "I've truly been blessed. Every day, I wake up and count my blessings. I've lived a dream It was always my dream to play one day in the big leagues," he admitted. "That was my whole goal. I was blessed to have long career It's an honor to be among the game's greats. It's awesome. Thanks to my mom in the audience tonight. My father, he's up in heaven, he's looking at me right now and he's proud of his son. I want to thank him. My sister Terry is my number one critic, but she loves me," McGriff said. "When I was going to Jefferson High School, they had a pretty good first baseman so I decided to try out for the outfield. As you probably guessed, a fly ball went over my head and eventually coach had to cut me." But instead of quit, McGriff decided it was time to buckle down even more. "That made me more deter- mined than ever to keep work- ing hard. Keep practicing and work hard. Being up here tonight is so special because I just know how much hard work went into the years. Some nights up at the late everything so perfect. I've got it. I've got it figured out. The next night, nothing. Man I thought I had it figured out. "So, just to be considered among the greatest hitters of all time is such an honor now," he said. "It's an honor to be here tonight. I was a little speechless but someone told me just say what's on your mind so that's what I did." The director of the Ted Williams Hitters Hall of Fame, Dave McCarthy, then closed the ceremonies saying, "I was very honored because with two hitters like Dale Murphy and Fred McGriff they're not just great hitters, they're great peo- ple. So it makes it real easy to stand up here right now." Devil Rays president Matt Silverman speaks at the induction ceremony for the Ted Williams Hitters Hall of Fame. Claudia Williams, Ted Williams' daughter, cuts the red tape the grand reopening of the Ted Williams Hitters Hall of Fame museum. MUSEUM Continued from Page 1B he met the man. And all he said was, 'He's the greatest. That's all I can tell you is he's the greatest.' "He told me that Babe was his idol and it was kind of cool and of course 'Shoeless' Joe (Jackson) was my father's idol and if you look at the stances of all three, it's amazing how close they are," Tosetti contin- ued. "I tell everybody that Ted was the Babe Ruth of his era. It was incredible what he could do with that ball. How awe- some is it. I'm the granddaugh- ter. I didn't hit the ball but I'm at a wonderful event. This is awesome and I get to represent my grandfather. He'd be 112 this year."' Matt Silverman, the presi- dent of the Tampa Bay Devil Rays and an integral part of making the museum's expan- sion, was also quick to point out the night's significance. "It's a great attraction for any ballpark. We're honored to have it here at Tropicana Field and baseball fans no matter what team they support will love this museum. It appeals to the history of baseball," Silverman said. "It speaks to the greatness of the game, one of the greatest players of all time. It really celebrates base- ball. The Rays are really happy to have it here. "It's more of a natural fit than you might imagine, espe- cially with Ted having resided in this area for so long and throwing out the first pitch in Rays history," he added. "And one of the things that we do here within the Rays organiza- tion is celebrate baseball, the tradition and the magic of baseball. And the Ted Williams Museum and Hitters Hall of Fame allows us to do that and gives us national exposure." The uniqueness of the night and the absolute magnitude of the event could be summed up no better than in Ted's daugh- ter's own words. "I'm especially proud and honored to put this ball on dis- play here at Tropicana Field, home of the Tampa Bay Devil Rays," said Claudia as her. emotions welled up inside of her. "You have brought back t6 me a small piece of my family and a treasured piece of sports history." TO BUY A PHOTO * Photos .h,.t by Chrromcle staff photographers are available for sale as 8 by 10 c.lor prints * To order reprints, go to vww ChronicleOnline.com and click on the ad tor dotPhoto., ------------------------------ !I CI'17?US COUNTY (FL) CimoNicu.; SPORTS SAIRTS THURSDAY, M c(-1 15, 2007 3 t| BASEBALL SMLB Spring Training Glance S , All TimesEDT �3 AMERICAN LEAGUE W L Pct New York 9 4 .692 L~sAngeles 11 5 .688 Texas 8 5 .615 Cleveland 9 6 .600 D4troit 9 6 .600 Btit Oincinnati 11 2 .846 f~uston 9 4 .692 Aizona 9 5 .643 s Angeles 10 6 .625 A)anta 8 5 .615 S. Louis 8 5 .615 � lorado 8 6 .571 $pn Francisco 9 7 .562. S Tuesday's Games tforonto 1, Boston 0 : Florida 4, Baltimore 1 N.Y. Mets 6, Cleveland 5 L.A. Dodgers 4, Detroit 3 NMinnesota 5, St. Louis 2 [Philadelphia 11, Tampa Bay 8 San Diego 5, Colorado 5, tie, 10 innings SSeattle 4, Milwaukee 2 Arizona 6, Chicago Cubs 5 : Chicago White Sox 12, Texas 8 SL.A. Angels 13, Kansas City 7 : ,Houston 11, Atlanta 3 SCincinnati 6, N.Y. Yankees 3 : Oakland 7, San Francisco 4 Wednesday's Games ! Cleveland (ss) 8, Toronto (ss) 1 'Delroa 2, N.Y. Mets 0 -Houston 4, Atlanta 2 *Pittsburgh 3, Boston 2 Florida 5, Baltimore 1 S'Wash;ngion's Games SFlorida vs. Houston at Kissimmee, 1:05 p.m. Baltimore vs. Minnesota at Fort Myers, 1:05 p.m. L.A. Dodgers vs. St. Louis at Jupiter, 1:05 p.m. Cincinnati (ss) vs. Pittsburgh (ss) at Bradenton, 1:05 p.m. Texas vs. Arizona at Tucson, Ariz., 4:05 p.m. Oakland vs. Colorado at Tucson, Ariz., 4:05 p.m. L.A. Angels vs. Milwaukee at Phoenix, 4:05 p.m. Seattle (ss) vs. Chicago Cubs at Mesa, Ariz., 4:05 p.m. San Francisco (ss) vs. Kansas City at Surprise, Ariz., 4:05 p.m. -- ... ...-.. Toronto vs. Philadelphia at Clearwaler 7:05 p.m. Detroit vs. Washington (ss) at Viera, 7:05 p.m. Tampa Bay vs. Cleveland at Winter Haven, 7:05 p.m. Pittsburgh (ss) vs. Cincinnati (ss) at Sarasota, 7:05 p.m. Washington (ss) vs. L.A. Dodgers (ss) at Vero Beach, 7:05 p.m. Boston vs. N.Y. Mets at Port St. Lucie, 7:10 p.m. Atlanta vs. N.Y. Yankees t Tampa, 7:15 p.m. San Francisco (ss) vs. battle (ss) at Peoria, Ariz., 10:05 p.m. HOCK Y NHL Standings All Times EDT S EASTERN CONFERENCE Atlantic Division W LOT PtsGF GA New Jersey 42 20 8 92186 170 Pittsburgh 39 21 10 88240 217 N.Y. Islanders 34 25 10 78207 195 N.Y. Rangers 34 28 8 76200 193 PenguiI : Red Wigs devour Pretators S Associated Pess , EAST RUTHERFORD, N.J. - Jocelyn Thibault stopped 25 s ots for his first shutout in more than three years and the Pittsburgh Penguins complet- ed a two-night sweep of the top two teams in the Eastern Conference with a 3-0 victory over the New Jersey Devils on Wednesday night. Jarkko Ruutu scored a fluky game-winner off a Devils' stick and set up an insurance tally by Erik Christensen as the Penguins won their third straight and for the fifth time in six games (5-0-1). Jordan Staal also scored. , One night after a 5-4 shootout win over Buffalo, Pittsburgh pulled to within four points of the first-place Devils (92) in the Atlantic Division. Both teams have 10 games left in the regular season. Martin Brodeur made 19 saves for New Jersey, which had a two-game winning streak snapped and missed a chance to tie Buffalo for first overall in the East John Madden had the Devils' best chance on a short-handed, second-period breakaway after Penguins defenseman Sergei Gonchar fell down at the blue line in the New Jersey zone. T ." -".':, -- " - ." -., - - On the AIRWAVES TODAY'S SPORTS BASEBALL 8 p.m. (47 FAM) Caribbean World Series - Dominican Republic vs. Puerto Rico. (Taped) MENS COLLEGE BASKETBALL 12:10 p.m. (6, 10 CBS) NCAA Tournament First Round - Davidson vs. Maryland. 2:30 p.m. (6, 10 CBS) NCAA Tournament First Round - Belmont vs. Georgetown. 7 p.m. (6, 10 CBS) NCAA Tournament First Round - Duke vs. Virginia Commonwealth. 9:30 p.m. (6, 10 CBS) NCAA Tournament First Round - Eastern Kentucky vs. North Carolina. 12 a.m. (ESPN2) NIT Tournament First Round - Teams TBA. NBA 8 p.m. (TNT) NBA Basketball Miami Heat at New Jersey Nets. 10:30 p.m. (TNT) NBA Basketball Los Angeles Lakers at Denver Nuggets. GOLF 9:30 a.m. (GOLF) European PGA Golf TCL Classic - First Round. (Same-day Tape) 3 p.m. (GOLF) PGAAmold Palmer Invitational - First Round. HOCKEY 7:30 p.m. (FSNFL) Buffalo Sabres at Florida Panthers. SKATING 9:30 p.m. (ESPN) Figure Skating State Farm U.S. Championships - Men's Free Program. (Taped) TENNIS 2 p.m. (ESPN2) ATP Pacific Life Open - Round of 16. 10 p.m. (ESPN2) ATP Pacific Life Open - Round of 16. Prep CALENDAR TODAY'S PREP SPORTS BASEBALL 4:30 p.m. Lecanto at Wildwood 5 p.m. Bell at Seven Rivers 7 p.m. Citrus at Belleview BOYS TENNIS 2 p.m. Crystal River at Buchholz 4 p.m. Lecanto at West Port GIRLS TENNIS 4 p.m. Lecanto at North Marion SOFTBALL 7 p.m. North Marion at Lecanto TRACK AND FIELD 3 p.m. Citrus in Raider Relay at South Sumter 5:45 p.m. Lecanto at Forest BOYS WEIGHTLIFTING 3 p.m. Nature Coast, Lecanto at Citrus Philadelphia 19 40 11 49185 262 Northeast Division W LOT Pts GF GA Buffalo 44 19 6 94260 205 Ottawa 40 23 7 87241 193 Toronto 34 27 9 77219 227 Montreal 35 30 6 76208 223 Boston 33 31 5 71198 241 Southeast Division .W LOT Pts GF GA Atlanta '37 24 i0 84219 213 Tampa Bay 39 28 4 82223 219 Carolina 35 28 8 78206 212 Florida 29 28 13 71202 220 Washington 24 34 12 60203 251 WESTERN CONFERENCE Central Division W LOT PtsGF GA Detroit 45 17 9 99227 177 Nashville 46 20 6 98246 190 St. Louis 29 29 11 69183 212 Columbus 27 35 7 61169 212 Chicago 26 34 9 61173 217 Northwest Division W LOT PtsGF GA Vancouver 41 23 6 88188 176 Minnesota 40 24 7 87203 176 Calgary 37 22 10 84225 189 Colorado 34 29 6 74225 216 Edmonton 30 34 6 66177 210 Pacific Division W LOT PtsGF GA Anaheim 42 17 11 95224 178 Dallas 41 23 5 87183 166 San Jose 42 25 3 87211 172 Phoenix 28 38 3 59186 235 LosAngeles 23 34 13 59197 242 Two points for a win, one poi-nl for over- time loss or shootout loss. Tuesday's Games Carolina 3, Florida 1 Ottawa 3, N.Y. Rangers 2 Pittsburgh 5, Buffalo 4, SO Montreal 5, N.Y. Islanders 3 Toronto 3, Tampa Bay 2 Detroit 5, Nashville 2 Dallas 3, Philadelphia 2 Minnesota 3, Vancouver 2, OT San Jose 7, Chicago 1 Wednesday's Games Detroit 4, Nashville 2 Pittsburgh 3, New Jersey 0 Calgary at Colorado, late Columbus at Anaheim, late Today's Games Washington at Boston, 7 p.m. Atlanta at Philadelphia, 7 p.m. New Jersey at Carolina, 7:30 p.m. Buffalo at Florida, 7:30 p.m. N.Y. Islanders at Ottawa, 7:30 p.m. Calgary at Dallas, 8:30 p.m. Minnesota at Edmonton, 9 p.m. San Jose at Phoenix, 10 p.m. St. Louis at Vancouver, 10 p.m. Chicago at Los Angeles, 10:30 p.m. BASKETBALL NBA Standings All Times EDT EASTERN CONFERENCE Atlantic Division W L Pct Gi Toronto 36 29 .554 - New JereV/ 30 35 .462 . New York 29 35 .453 6, Philadelphia : 25 40 .385 1 ice Devils, 3-0 Associated Press New Jersey's Scott Gomez (23) shoots the puck wide of the net past Pittsburgh Penguins goaltender Jocelyn Thibault during the first period Wednesday in East Rutherford, N.J. However, Madden's shot went over the crossbar. Ruutu gave the Penguins the lead with less than 3 minutes left in the period with a shot from deep in the corner. Sidney Crosby earned his NHL-leading 104th point on the play with the primary assist Red Wings 4, Predators 2 DET mak- Boston 19 45..297 16% Southeast Division W L Pct GB Washington .... ,35 28 .556 - Miami 34' 29.540 1 Orlarido 30 36 .455 6% Atlanta 26 40 .394 10% Charlotte 24 41 .369 12 Central Division W L Pct GB Detroit 40 22 .645 - Cleveland 40 25 .615 1'; Chicago 39 28 :582 3'; Indiana 29 35 .453 12 Milwaukee 23 41 .359 1P WESTERN CONFERENCE Southwest Division W L Pct GB x-Dallas 52 10 .839 - San Antonio 46 18 .719 7 Houston .40 25 .615 13: New Orleans 28 36 .438 25 Memphis 16 50 .242 e3 Northwest Division W L Pct GB Utah ':."43 21 .672 - Deiver 31 31 .500 '1 Minnesota 28 35 .444 14' Portland 26 37:.413 16'; Seattle 25 39 .391 18 Pacific Division SW L Pct GB x-Phoenix .' '49 14 778 - LA: Lakers 33 31 516 16'. Golden Stale 30 36 455 20" LA: Clippers 29 35 .453 20.: Sacramento 28 36 .438 21' x-clinched playoff spot Tuesday's Games Atlanta 104, Philadelphia 92 Cleveland 124, Sacramento 100 Miami 88, Utah 86 Minnesota 86, Indiana 81 New Jersey 112, New Orleans 108 San Antonio 93, L.A. Clippers 84 Chicago 95, Boston 87 Allania 88 SCleveland 118 Mempns 96 Housion 109 LA Clippers 105 Phoenix at Dallas, late . Detroit at Portland, late Today's Games San Antonio at Milwaukee, 8 p.m. Miami at New Jersey, 8 p.m. L.A. Lakers at Denver, 10:30 p.m. Mens NIT Glance All Times EDT First Round NORTH Tuesday, March 13 Florida State 77, Toledo 61 Michigan 68, Utah State 58 Mississippi State 82, MVSU 63 Wednesday, March 14 Bradley 90, Providence 78, OT EAST Tuesday, March 13 West Virginia 74, Delaware State 50 N.C. State 63, Drexel 56 Massachusetts 89, Alabama 87, OT Marlst 67, Oklahoma State 64 WEST Wednesday, March 14 Georgia 88, Fresno State 78 Kansas State 59, Vermont 57 DePaul 83, Hofstra 71 . Austin Peay (21-11) atAir Force (23-8), 11 p.m. SOUTH Wednesday, March 14 Clemson 64, ETSU 57 ' Syracuse 79, South Alabama 73 F . r fpFrpi 73, Appalachian State 59- *.- San Diego State (21-10) at Missouri State (22-10), 10 p.m. Second Round NORTH Thursday, March 15 Michigan (22-12) at Florida State (21- 12), 7 p.m. Saturday, March 17 Bradley (22-12) at Mississippi State (19- 13), Noon EAST Thursday, March 15 Massachusetts (24-8) at West Virginia (23-9), 9 p.m. Friday, March 16 N.C. State (19-15) vs. Marist (25-8), 9:30 p.m. WEST Monday, March 19 Austin Peay-Air Force winner vs. Georgia (19-13), TBA DePaul (19-13) vs. Kansas State (23-11), TBA SOUTH Monday, March 19 Mississippi (21-12) at Clemson (22-10), TBA San Diego State-Missouri State winner vs. Syracuse (23-10), TBA 'Cuse holds off South Alabama -9 A; :ociated Pr;: South Alabama's Demetric Bennett drives against Syracuse's FEic Devendorf during the second half of the NIT Wednesday' i Syracuse, N.Y. Georgia, Clemson move on at NIT Associated Press SYRACUSE, N.Y. - Eric Devenldorf scored a career- high 34 points and Deietris Nichols added 15 to help Syracuse rally for a 79-73 victo- ry over South Alabama in the first round of the NIT on Wednesday night The Orange (23-10) trailed 59-50 with 11:23 to play, but scored 18 straight points to go up 68-59 with 4:59 to play. Daon Merritt broke the run with a free throw at the 4:03 mark The Jaguars went without a field goal for more than 9 min- utes until Ernest Little's dunk with 2:10 left to play. Demetric Bennett led South Alabama (20-12) with 23 points, going 7-for-ll from 3-point range. Kansas St. 59, Vermont 57 MANHATTAN, Kan. - David Hoskins drove for the go-ahead bucket with 33 seconds left, cap- ping a second-half comeback that carried Kansas State past Vermont. .. - Vermont led 51-39 with about 10:30 left after trailing by as many as eight in the first half. But the Catamounts missed eight shots and had three turnovers in the final 5:09, allowing Kansas State to go on a 9-0 run. Cartier Martin had 19 and Hoskins 13 for Kansas State (23- 11), who advances to a second- round game Monday against DePaul, which beat Hofstra 83-71. Martin Klimes led Vermont (25- 8) with 16 points. Clemson 64, E. Tenn. St. 57 CLEMSON, S.C. - K.C. Rivers finished with 17 points and 14 rebounds, and Trevor Booker had 11 points and 11 boards to lift Clemson over East Tennessee State. The Tigers (22-10) have won the past seven NIT games played at . Litllejohn Coliseum. The South region's No. 1 seed' will get a chance to keep that : stnng going when they play hostIe Mississippi in a second-round " matchup Monday night. Courtney Pigram, the Atlantic'- Sun Conference's player of the year, led ETSU (24-10) with 25 points. Ole Miss 73, Appalachian St. BQ OXFORD, Miss. - Todd : Abernethy scored 18 points and : Mississippi held Appalachian Stai scoreless for nearly 6 minutes in i the second half to pull away for te victory. Clarence Sanders' steal and layup with 10:15 remaining began: a 19-2 run that put the Rebels :- ahead to stay. Fourth-seeded Mississippi (21-4i 12), got 14 points and eight rebounds from Dwayne Curtis, and. 13 points and 11 rebounds from , Kenny Williams. Sanders scored it. D.J. Thompson scored 17 poise and Donte Minter added 14 for �. Appalachian State (25-8): . .. Georgia 88, Fresno State 78 ATHENS, Ga. - Levi Stukes contributed to a deluge of 3-point- ers, finishing with a season-high 30 points in Georgia's victory over Fresno State. The schools combined to hit 31 of 62 shots from beyond the arc. Stukes was 8-for-9 on 3s and, Takais Brown added 21 points for Georgia (19-13), which had dropped three of four, including a blowout to No. 3 Florida in the sec- ond round of the Southeastern Conference tournament. They will play the winner of Austin Peay-Ajr Force on Monday. Hector Hemandez and Dominic McGuire had 21 points apiece, hit- ting seven 3s each for Fresno State (22-10), which set a school record with 18 3-pointers. ing it 2-all with 3:37 left in the sec- ond. The Red Wings beat Nashville on back-to-back nights, giving them one more point in the division and a league-high 99. Both teams competed with play- off-like intensity and that led to plenty of checking, shoving, swing- ing. THURSDAY, MARCH 15, 2007 3B SPORTrS RTIC us CouNTY (FL E S�offs GiuMARCHNJ (FL)CHRNICL -- TIMS VMRH1-20 Atlanta falls to Astros, 4-2 Braves starting pitcher Tim Hudson throws against the Houston Astros Angels'Matthews hits homer after S Associated-Press . Giambi had RBI doubles for the Yankees. SGary Matthews Jr. had one of jhis best games of spring train- ing just hours after denying for the first time that he ever took human growth hormone. Matthews went 2-for-3 with a home run in the Los Angeles Angels' 4-3 win over the San Francisco Giants on Wednesday. Matthews, who was allegedly sent HGH in 2004 from a phar- macy that's part of a wide- spread steroid investigation, issued a statement before the game denying he ever took the substance. The Angels had been press- ing Matthews to explain why The Times Union of Albany, N.Y., reported he was listed as a: customer: of Applied' Pharmacy Services in Mobile, Ala. inves- tigation for doing so." Matthews did not comment other than his statement issued by the team. He starred on the field, lead- ing off the bottom of the first with a single off Russ Ortiz. He stole second, but was stranded there. In the third, Matthews hit his second homer of the spring. He grounded out to end the fourth inning. "He was' relieved," manager Mike Scioscia said in Tempe, Ariz. "I think we're relieved that the release will let us start to move forward and turn the' page on this. I think, Gary's statement is a step in that direction." Barry Bonds returned to the Giants' lineup after 'taking Tuesday night off and went 0- for-2 with a walk as the desig- nated hitter. Bonds flied out to right in the first inning and then struck out swinging against Kelvim Escobar in the third. He walked in the fifth before being replaced by pinch-runner Ryan Klesko, who played for :the first time since injuring his :left side last week Reds 2, Devil Rays 1 SAt Sarasota, Reds manager Jerry Narron said Ken Griffey Jr needs to gel into a game soon so he can be ready for opening day. iGriffey broke his left hand in ,December. He has taken batting practice during spring training but has yet to play a game. t "It's March 14 and he hasn't played," Narron said. "You need ,some spring training." SRangers 9, Padres 5, 10 inn. At Peoria, Ariz., Padres ace Lake Peavy turned in his best out- ling of the spring, yielding one run "and two hits in five innings. Ramon Vazquez and lan Kinsler homered for Texas. S Yankees 4, Twins 1 SAt Tampa, Minnesota left fielder,.. :Rondell White left in the fifth with a 'bruised left knee and is day to day He was hit by pitch from Chase Wright. Robinson Cano and Jason Tigers 2, Mets 0 At Lakeland Fla., Curtis Granderson went 4-for-4 with a 'home run, and Kenny Rogers went five innings for Detroit. Mets right- hander John Maine allowed one run and three hits in four innings. Astros 4, Braves 2 At Kissimmee, Chris Burke had two hits, including a home run, and Jason Jennings pitched four innings for Houston. White Sox 11, Brewers 8 At Tucson, Ariz., Eduardo Perez strained his right calf rounding first base after hitting a three-run homer in the first inning for the White Sox. Perez was unable to round the -bases butjsaid he expectstoabe back on the field within the next few days. Pirates 3, Red Sox 2 At Fort Myers, Pirates starter Zach Duke gave up four hits, including a two-run homer to Mike Lowell in the fourth. lan Snell pitched three hitless innings for Pittsburgh, striking out four and walking one. Marlins 5, Orioles 1 At Fort Lauderdale, Marlins left- hander Scott Olsen allowed two hits over five scoreless innings. Cardinals 2, Nationals 2, 10 innings At Jupiter, Scott Rolen homered for the Cardinals and Anthony Reyes tossed 4 1-3 shutout innings. Jason Simontacchi, bidding for a spot in the Nationals' rotation after being out of the major leagues the last two seasons, worked five innings. Indians (ss) 0, Blue Jays (ss) 0, 10 innings At Dunedin, Cleveland's Josh Barfield went 2-for-4 at the spring training home of his father's former team. Jesse Barfield was drafted by Toronto in 1979 and was with the Blue Jays until they dealt him to the New York Yankees in 1989. Indians (ss) 8, Blue Jays (ss) 1 At Winter Haven, Victor Martinez, Cleveland's regular catcher, made three strong defen- sive plays in the field in his first start of spring training at first base. He also hit one of the Indians' four home runs. Royals 6, Rockies 2 At Surprise, Ariz., Zack Greinke struck out six in four scoreless innings The Royals right-hander gave up four hits, walked none and lowered his spring ERA to 4. Indians' Sabathia pitches for more black players WINTER HAVEN -," on Wednesday in Lake Buena Vista. denying HGH use Sabathia said of his offseason .limebor Diversity and Ethics in Sport, only 8.5 percent of major leaguers, were African American - the lowest percentage since the report was initiated in the mid- 1980s. By contrast, whites com- prised. Associated Press ORLANDO - Dwight Howard had 31 points and 15 rebounds, and the Orlando Magic ended a three-game losing streak with a 101-90 victory over the Utah Jazz on Wednesday night. Hedo Turkoglu chipped in 22 points and eight rebounds for Orlando, while Grand Hill scored 12 points. Bulls 88, 76ers 87 PHILADELPHIA- Kirk Hinrich made the go-ahead jumper with 26.7 seconds left and Luol Deng scored 20 points to lead the Chicago Bulls to their fourth straight victory, 88-87 over the Philadelphia 76ers on Wednesday night. Andre Iguodala made all 10 free throws and scored 19 points. Willie Green had 16 points and Samuel Dalembert added 15 for the Sixers, who lost their second straight and saw their playoff hopes continue to dim. SHinrich finished with 14 points, and Ben Wallace had 10 points and 11 rebounds. The Bulls out- rebounded the Sixers 45-30. Wizards 112, Pacers 96 INDIANAPOLIS - Gilbert Arenas scored 28 of his 35 points in the second half as the Washington Wizards extended the Indiana Pacers' losing streak to 11 games with a 112-96 win on Wednesday night. Antawn Jamison added 27 points and eight rebounds for the Wizards, who had lost their previ- ous three games by a combined six points. Jermaine O'Neal had 24 points and seven rebounds in 30 minutes. Danny Granger scored 19 * Find out what's happening in area schools in the Education section. WEDNESDAYS Utah Jazz center Jarron Collins, left, tries to stop a drive to the basket by the Magic's Dwight Howard in the first half Wednesday in Orlando. points and Troy Murphy added 17 for the Pacers. Bobcats 111, Kings 108 CHARLOTTE, N.C. - Sean May had 20 points and 12 rebounds, and hit the go-ahead 3-pointer with 16 seconds left, leading the Charlotte Bobcats to a 111-108 victory over the Sacramento Kings on Wednesday night. May, who had been 0-of-6 on 3s in his two-year career, hit both of his 3-point attempts. Matt Carroll added 22 points and Raymond Felton scored 16 points, including two free throws with 9 seconds left to put Charlotte ahead by 3. Kevin Martin scored 26 points for the Kings and Ron Artest added 21 points. Raptors 104, Knicks 94 TORONTO - Chris Bosh scored 22 points, T.J. Ford matched a career high with 18 assists, and the Toronto Raptors beat the New York Knicks 104-94 on Wednesday night to strength- en their hold on the Atlantic Division lead. Jorge Garbajosa had a career- high 20 points, while fellow rook- ie Andrea Bargnani added 18 for Toronto (36-29). Ford also scored 18 points for the Raptors, includ- ing an 8-for-8 showing at the free throw line.. Stephen Marbury led the Knicks (29-35) with 31 points and nine assists. Celtics 109, Hawks 88 BOSTON -Al Jefferson had 23 points to lift the Boston Celtics to a 109-88 victory over the Atlanta Hawks on Wednesday night. Boston won for the fifth time in, the past seven home games despite a 9-23 overall mark. Paul Pierce had 17 points for Boston, which improved to 2-4 in,. its past six games against Atlanta. Rajon Rondo finished with 13: - points and 10 assists. Josh Smith led the Hawks with. 19 while Marvin Williams added 17 with eight rebounds. Cavaliers 118, Grizzlies 96 MEMPHIS, Tenn. - LeBron James recovered from a back injury to score 29 points, leading ; seven Cavaliers in double figures to help Cleveland win its seventh straight on Wednesday night and' defeating the Memphis Grizzlies 118-96. James, who sat out Cleveland's 124-100 victory over Sacramento on Tuesday night with back spasms,. Boa 4ngel FREE 2-NIGHT VACATION! Donate Car * Boat * RV * Motorcycle 1-800-227-2643 STOP LEG CRAMPS BEFORE THEY STOP YOU. CaKet Trple Calcium S, ' S - .- - Itsj nst lieiB a...iente itsjthiejexperlence!J -BCCT' -rf .tCr-'-- -,^-�, �> ^ �ai.t--l��-�^;�<�~�f. SSELF BAILING COCKPIT .31 GALLON FUELTANK .94 QT.COOLER SEAT - AUTOMATIC BILGE * AERATED LIVEWELL * PULL UP CLEATS * FIBERGLASS SWIM PLATFORM PUMP ANCHOR LOCKER WITH ANCHOR $15,995.00 pp~ Iv Magic tune out Jazz Your Road Service At SeaT Sea Tow. Yellow. The color boater's trust , 352) 795-2236 Near many National & State Forests where you can hunt, fish, camp or canoe. Horses OK. Ideal for permanent, vacation or retirement From 89,900 m 4,995 Don Flexible Owner Financing I COSG ECSTS I First Come, First Served You're A Winner! ,Whether you relax at Champions Restaurant with your own table s. $monitor among private betting windows, or join friends in front of wide screens with your Racing Form and a favorite snack, ITW Teletheathre has YOUR winning combination for Thoroughbred Racing a FUN! Chw~us Comy'I (FL) CHRONICLE SPORTS g+3 I -lus I^ �j 5B tT i .,.THUliRSDAY MARCH 15, 2007 ess o e Outdoor BRIEFS _____ Cobia tournament to be held in Homosassa The 23rd Annual Cobia "Big Fish" Toumament will be held June 9-10 at MacRae's of Homosassa. The tournament offers over $14,000 in cash and prizes. Entry fee is $125 per boat with a limit of 200 entries. For more information, call 352-628-0200 or 352-628- 2602. Sign ups for Citrus County Bass Challenge Entry forms are available for the third annual Citrus County Big Bass Challenge scheduled for Saturday, April 28, on the Withlacoochee River at the Dunnellon public boat ramp on the west side of U.S. 41. Anglers will enjoy a guaranteed payout of more than $12,000 in cash and prizes based on a 100 boat field. Big bass is guaranteed at $1,000 with sec- ond big bass at $500. Many busi- nesses are sponsoring additional cash for tournament placement and special awards. Entry fee is $135 per two-man team. Call 527-8228 or visit.. March 23-25 - Spring Turkey Hunt - Green Swamp Wilderness Preserve, Polk May 12 - Fishing Event - Edward Medard Park and Reservoir, Hillsborough Those who participate in Wheelin' Sportsmen events are pre-selected through an application process. For more information about participating in these events, visit the National Wild Turkey .Federation Web site at Wiw.nwtf.org. ,,The Wheelin' Sportsmen is dedi- cated to providing all people with liabilities the opportunity to enjoy .{h great outdoors. The group :ioranizes hunting and fishing -tfents, recreational shooting and dther outdoor activities. More than ,-2 vents are held throughout Florida each year. G.P.S. Class at W. tiheGlobal Positioning System and ahwdoes it work; understanding tle-G P.S. displays; using/creating routes, tracks, charts, way points, data fields, WAAS & tide stations; thle'best ways to navigate while fishing or kayaking in our coastal waters; how to use aerial photo- graphs available on the Web as an aid to the G.P.S. and navigation; and purchasing decisions. S Cost is $10 per workshop. Seating is limited. For information or to register, call 795-3831. Circle hooks for all Before I get to the meat of today's Tight Lines, let me get two pieces of housekeeping out of the way. First, I'm compiling a list of fishing clubs in this area and would like your help. If you belong to a club based in Citrus or Levy County, please contact me with the name of the club, its primary aim (as in a particular species or type of fishing) and contact information prospective members can use. The best way to reach me is the e-mail at the bot- tom of the column. Thank you. Second, there's a redfish tourna- ment coming up called the March Re d fi s h Challenge. The tourney will be Saturday, March 24, out of Twin Rivers Marina. You can launch R. G. Schmidt anywhere in the TIGHT county, just be at LINES the marina by 3:30 p.m. for the weigh-in. Weights will be determined by a two- fish maximum, with no more than two anglers per boat, and there will be a deduction of 1/2-pound for a dead fish, so be certain your live well is working properly. - The entry fee is $50 per boat. You can register at the captains' meeting at the marina at 6 p.m. Friday or no later than 6:30 a.m. at the marina Saturday. Call the marina at 795-3552 or Captain Patrick Lewis at (352) 423-0650. I once asked a local guide if he ever used circle hooks. "Only," he said, "for women and kids." I'd like to think he was kidding, but a few months later, when the subject came up in a group bull session, he said he thought he might start using them, so I believe he was serious when he said it. I attribute his attitude to the mistak- en belief shared by many anglers that circle hooks benefit mainly those who are frequently late in setting the hook when a fish nibbles at their bait This is a common problem among those who don't fish very often - for example; women and children. The fact is, the purpose of circle hooks is not to make it easier to hook a fish, but to make it eas- ier to release one. Not only is it not necessary to set the hook when one gets a hit on bait using a R.G SCHMIDT/For the Chronicle Captain Joey Smith stands with a nice three-pound trout, one of about two dozen a camera-shy client caught on the flats north of Shell Island. circle hook, it's actually not a good idea to set at all. The reason is the design of the hook, and I should point out that there's a great deal of confusion on just what con- stitutes a "circle hook," by definition. In fact, the National Marine Fisheries Service, that group of government watchdogs that decides such Specia things as what tackle can The Ea legally be used to take fish, 2004EL C has no clue about the mat- Note how ter Reassuring, right? "We nary line ft don't know what a circle the point hook looks like, but that's will descil the only kind you can legally use in a billfish release tournament" Oh, OK, thanks for clearing that up. But I digress. Basically, two things distinguish a cir- l t g ;i r mn to ib cle hook from a 'T' hook First, the point is bent inward to the extent that if a line were drawn from the point's tip to the shank of the hook, the line would literal- ly close a circle; second, there is no offset A J-hook with an offset bend will snag on anything. If a fish swallows one and to the chronicle you set the hook, or the fish le Claw turns away, the hook will rcle Hook. lodge in the gut or esopha- an imagi- gus, or wherever it happens m the tip of to be when the line comes )the shank tight, and you have a "gut- e a circle, hooked" fish. Best bet if you want to release the fish is to cut off the hook and hope Mother Nature takes care of things. (Survival rate is very high.) Because of the design of the bend and hook point, and the lack of an offset, a circle hook will actually slide up and out the esophagus without snagging on anything, until the fish turns; then the hook will lodge in the corner of its mouth. Setting the hook may well result in simply pulling the hook through the esophagus and out of the fish's mouth before it can catch the corner of the mouth. When you get a bite using a cir- cle hook, simply start reeling; the hook does the rest Please consider using circle hooks any time you use bait; I haven't used a J-hook in so many years, I don't remem- ber when the last time was. And it has- n't cost me any lost fish; in fact, it's prob- ably added to my catch. I rarely use bait, but even with artificial such as shrimp tails or other soft plastics used under a float, I've gone entirely to circle Please see LINES/Page 6B Bass fishing on Lake Kissimmee For several years now (each spring around the full moon in February or early in March), Joe Strickland, the mayor of Bushnell, David Calloway, a retired State Trooper from Thomason, Ga., and I make a jun- ket down to Lake Kissimmee for a cou- ple of days to do some serious large- mouth bass fishing. This year, for a change, we decided to split the trip up into half bass fishing and half speck (or crappie, as you Yankees call this species of freshwater game fish). Don Brown, our guide for many years, is well-known for his uncanny abilities not only to put his clients on great bass fishing action, but he might even be better yet with his mystic skills of locating and helping his clients get limits of big specks. On our first day of bass fishing, we were joined by my eldest son Jimmy, who is a wildlife officer in Lake Wales and often water patrols Lake Kissimmee and the other lakes making saw them do during the two days we up the beautiful Kissimmee River were down there was run around the Chain. Jimmy is also an avid lakes, shooting up big roos- bass fisherman and, like our ter tails of water as they guide Don, is very .familiar . raced from one part of the with the lakes and where T lake to another. the fish are biting in that . I have to wonder if any of part of the state. them caught very many bass, There was a huge bass . -but it was for sure that they fishing contest taking place .. were covering a lot of terri- on the whole Kissimmee ' 1 a tory. Chain during our fishing The folks who were in the trip. I don't know what big high-dollar tournament group they were represent- Jamie Adams probably would look down ing, but it was for sure there on our group because we use were a bunch of serious ADAMS live wild golden shiners bass fishermen taking part OUTDOORS instead of some man-made in the tournament I heard fancy artificial bait The big one of the participants say difference for my part is that that the grand prize for winning the. those of us who fish with live bait catch contest was $50,000 and a new bass boat a lot of bass whereas those using artifi- to boot cial bait don't have near the luck Most of the fishermen in the contest Oh, well, everybody has their dislikes had great, big, fancy boats with giant and likes when it come to bass fishing. I outboard motors for power, and all I do some artificial bait fishing from time to time, but, for real rod-bending action where you catch monster bass, you can best believe I am going to be using shin- ers. We fished on the north end of Tiger Lake where Don had scouted out a place where the hydrilla grass had made a comeback after being all but wiped out with the recent hurricanes. These hydrilla patches are excellent places to catch both big bass ands specks to boot The way we fished was to drag a shin- er behind the boat under a cork run- ning about 2 1/2 feet deep at about two to three miles per hour. This allows you to cover a lot of territory and, conse- quently, present your shiner to a lot more bass. We had nonstop action all day but we only hung a couple of really big bass. Apparently we had just missed fishing while the sow bass were just starting to Please see ADAMS/Page 6B TI dePieSD COUNTY r HTide charts Tide charts Crystal River** High/Low Homosassa*** Withlacoochee* High/Low High/Low THURS 2:43 a.m. 12:10 a.m. 1:04 a m 9.32 am. 1 53 am 11:09 a.m. 1:23 p.m. 7:20 a.m. 3s 5:15 p.m. 3:36 p.m. 9:24 p.m. 4:25 p.m. 11:01 p.m. 7:12 p.m. 357 a m. 1202am 2 18 a.m 542pm 1256pm 403pm 10 18 am 3-07 a m 10 16 pm 4-52 p m 4 57 am 1254am 318 am 1058am 6:07 p.m. 1:36 p.m. 4:28 p.m. 11:03 p.m. 551am 141 am 4 12 a.m 1136am 6:32 p.m. 2:14 p.m. 4:53 p.m. 11:46 p.m. 4-07 a m 5:17 p.m. 501 am 5:42 p.m. 11:55 a.m. 12:05 a.m. 8:06 a.m. 11:53 p.m. 1:50 p.m. 8:04 p.m. 12:35 p.m. 1:05 a.m. 2:15 p.m. 12 40 a.m 1:59 a.m. 1:13 p.m. 2:40 p.m. 8:46 a.m. 8:51 p.m. 9:24 a.m. 9:34 p.m. MON . 641am 224am 5:02 am. 1211pm 551 am. 123a.m 2.49 a.m 9.59a.m 319 657pm 249pm 5-18 pm. -- 6.07 pm 1.48 p.m 3'05 pm 10:18 pm 7:30 a.m. 3:08 a.m. 5:51 a.m. 12:30 a.m. 6:40 a.m. 2:07 a.m. 3:38 a.m. 10:32 a.m. 7:24 p.m. 3 22 pm 5:45 p.m. 12:44 p.m. 6 34 p.m. 2:21 p.m. 3:32 p.m. 11:01 p.m. 351 am 640am 3:55 p.m. 6:14 p.m. 1 13am 729am 2 50 a.m. 4:27 a.m. 11:05 a.m. 1:17 p.m. 7:03 p.m. 2:54 p.m. 4:01 p.m. 11:47 p.m. 'From mouths of rivers. "At Kings Bay. "'At Mason's Creek. JAIMt AUAMr-FOr me Cnronicle Joe Strickland poses with a buck largemouth bass caught on Tiger Lake. Chassahowitzka* High/Low TUES 3/20 'WED <3/21 8:19am 7:53 p.m. I -------------- GB THURSDAY MARCH 15, 2007 OUTDOORS CITRUS COUNTY (FL) CHRONICLE Special .> Ine Crronicle Floral City Anglers club member Larry Wade stands with a nice 8 Ibs., 6 oz. largemouth bass. The fish was caught on a Culprit red shad stinger worm out of Lake Hernando recently.''. .4.2w � i ADAMS Continued from Page 5B go on their spawning beds. The buck bass, from all indi- cations, were guarding the beds, and that is what we hung into all day long. The buck bass, on average, weighed in around two to four pounds and we must have boated 25 or 30, which were all returned to the lake unharmed. We all had a great time bass fishing even though, this year, we did not catch a 10-pounder. We have every year in the past, and just the week before, Don had put clients of three big bass that weighed more than ten pounds. The Kissimmee Lake Chain is in great shape and the water quality is as good as it has been in years. The hurri- canes we had a couple of years ago did a lot of damage to the aquatic vegetation but, for the most part, it has come back. Don believes the fishing will even be better in the future. Nature has a wonderful way of helping itself and, along with the fine work the FWC has been doing on the Kissimmee Chain with the ongoing fish management pro- grah, there will be many.years of excellent fishing down the road to look forward to. By the way, we caught a bunch of monster specks that I will tell you all about in the next article or two. ---*-~ac--- Jamie Adams, Chronicle out- doors columnist, can be reached at struting57@hughes.net Outdoors BRIEFS Nautical Chart Course in Crystal River The Crystal River Power Squadron is conducting a three session Nautical Chart course on March 24, 31, and April 7, Saturday from 9 a.m. to 1 p.m. at 845 NE 3rd Avenue, Crystal River. This is a preliminary navigation course to help keep you safe in our local waters. By completing the three sessions, you will leam how to use a nautical chart, how to plot a course and how to determine your position. If you fish or cruise in our local tidal waters, this course is a must. The course fee is $35 for materi- als. There is no charge for instruc- tion. For more information or to enroll, call Jack Flynn at 352-527-8038 Redfishing 101 Seminar There will be a refish seminar on Thursday, March 29 from 6-9 p.m. at the Homosassa Lions Club. The seminar will focus on fishing for the Sciaenops ocellatus, other- wise known as the well sought after Nature Coast Redfish! Targeting the right time and the right habitat such as the backcoun- try, flats, islands and points will be discussed as well as the impor- tance of tides and moon phases. Leam valuable information on the history, biology, management and migration. Learn what live and arti- ficial tackle to best use, and how to rig it. What rods, reels, lines, lead- ers and knots, and how to rig your boat to target the redfish along with proper catch and release tech- niques are scheduled. Participants will receive tackle packs, maps and hotspots of Redfish areas, literature and refreshments, along with on going door prizes. Please contact Citrus County Parks and Recreation at (352) 527- 7677 to reserve your slot- $25 fee. 12th Annual CCBA Fishing Tournament The Citrus County CC Builders Association Saturday 22nd, & Sunday *Based on 125 paid boat entries there 7/J" will be over S12,500 in cash and prizes' df W I Open to ALL ANGLERS this year, guides, too! For additional Information, and an contact the CCBA (352) 746-9028 email donnab@citrusbuilders cona or visit us on-line at corn I cctrusCountyBuilders Aszoclmklot Winners determined by weight in all categories except for Redish - "Most Sots". Locanto Bl n361F3 SUNTRUST MORTGAGE Sheldon Palmes Insurance I :~iQ~FljII1 Cruise on over to P&J Marine March 16 -18 for new boats, quality pre-owned boats, and special deals on 2006 model year closeoutsl 10lrj Fin3r nciig Avail3 ble * flexible PaymlentliTeiis A ,.oafn Aipr.ovjl inl MIinutes Fri. 8-6 Sat. 9-4 Sun. 11-4 Jl Marine OU NE 23rd Ave , Gainesville (.52) 372-4900 "Subicf. I1 Lirdil appioll Rale� Bac. d on Lrell Ilhlary lrrmis ibased mi V,3i ol 1 li atl alld luaii anlolIrl F - Presented by t-~.w'~bNi . . I.I. II 'I * . >-iI i'. "It . We've all known someone who has lost the battle... ...Or know someone who's fighting hard now... This is an opportunity to show you really care... $100 Hole Sponsorship $400 Team + Hole Sponsorship Send completed form to: Golf Toumament 522 N. Lecanto Hwy Lecanto. Fl. 34461 HOLE SPONSORSHIP Sponsor's name:_ Sponsor's address: Sponsorship in Memory of: or Sponsorship in Honor of: SI All hole sponsorships must be received by 3/30/07 pI April 21 st & 1st 2 snd a 3rd Trout 91600 $1070 $670 Redflsh $1570 $1070 $670 brouIer - - -----. $t27o - 670 $370 Cobta $1170 $670 $370 Redfish (mostpots) $670 $420 no third Catfish $150 $90 no third PLATINUM IPOCSOR SPONSORED BY: ICHftNiaE Thi B11.HS MAR52) 7552 (352) 795-3552 FI-BI CENTUAL AMMLOMIDM 4vw1s-.--* Israne, Inc. ie.'wwwCitrusx.oom Hewitt Environmental Systems Swing ForA Cure GOLF TOURNAMENT Friday, April 6, 2007 - 12 Noon shotgun 7 Rivers Golf & Country Club For information call 527-0106 (leave message) $75 Entry Per Name D atme USGA erhoneNo. Handicap Golfer Financing Prouided by: Cp1t Florida fiCredit Union Call tuddy for pre-approval and spin the prize whliell (352) 377-4141 LINES Continued from Page 51:. hooks. Look closely at the nexfc package of circle hooks you, buy, and try to imagine that! line from the hook point to thqe shank. If it doesn't create a ct r,- cle, that isn't a circle hook. it'll' simply a J-hook with a beni point. Accept no substitutes. Tight Lines to you. ~------ R.G. Schmidt, Chronicle , outdoors columnist, can be reached at Schmidt@isgroup.net SRead about local business- es in the Business Digest SUNDAYS' ~""II~IIIII"XIIIIIII-- _ i 11__1_ ~ 111.. - -- kit OnTIus CouNTn (FL) CI-IRONICL OB THURSDAY, MARCH 15, 2007 OUTDOORS i ll^Jil/<��.jlJLl Wine talk Ron Drinkhouse started column because he missed wine talk. PAGE 2C C THURSDAY MARCH 15, 2007 www chronicleonline.com 0in Great recipes and Sfood-coloring make St. Par ick's Day festive "lMay . ou have i\arm itoords on a cold evening. a ti3ll moon on a dark night and the road do hill all the -may to t our door. " .-tn Irish toast bonnyblu@earthlink.net SCliro. i'lch Sf you can't get to Dublin, Ireland. Savannah, Ga.. Chicago. Boston or Neiw York City on St. Patrick's Day, the Snext best thing is celebrating \vith a menu of traditional IIrish dishes sure to please e\en the most jaded descen- dants of the Auld Sod. Cities mentioned above are where some of the largest St Patrick's Da\ observances occur each eartht complete a ith parades, entertainment and all things Irish. Coinciding nicel. witth the emering green or spring, the lMarch 17 holiday inspires the wearing of shanirocks, sipping green beer and watelhing out tor leprechauns Everyone wants to be Irish on this saint's day. and it's not alhIwas difficult to find an ancestor' S \\ho emuigated to Ameriica i'rom the Emerald Isles. since millions of those native to the soil cast their lot %% Ith the New W\orld following the devastating t;od famine in tlhe 1800s The third and largest Irish miEration w\ave infused this country with hardd-working, fu n-iov'- iz people. -ek relief t ' to m ne.-ir tariaton Thee Iiish wv. ho entered the United States hetxw een 1820 and 1830 swelled in the 18-10s. ci ith nearitl 2 million airi~ ing in that decade The flow persisted increasingly for another five ~ears, as the first immigrants began to earn the means of sending for relatives and friends In the decade after 1855. the movement subsided, but smaller numbers continued to arriive after' the Ci\ l W\ar A.-toeether: almost 3.5 million SPUT ON THE GREEN Food 12 ounces Beer 8 ounces Lemon-lime soda 1. 2 cup Non-ndairy whipped topping 1 2 cup Blue cheese dressing 1 '2 cup Ranch dip Icing-glaze - 1 2 cup contectioner's sugar, plus 2-3 tea spoons milk. Rice cereal treats - 10 ounces marsh mallows, 6 cups crisp rice cereal Drops of Food Color 5 green 6 green 12 green plus 2 yel- low 12 green 20 green plus 3 yel low 13 green 50 green (1 2 tea- spoon plus 10 drops r,,c,, rmrK . p.:e� You won't need a little green. D marshmallow tr Food Color (see Irishmen entel 1820 and 1881) Irish traditi XAmericans. \wh holidays, music "Erin go bragh hearts ot'desce Indeed, their County de oted the St. Patrick good Irish food are recipes sur Cinnamon Irisl A ribbon of ( flavor and aron glaze, made \\it tive touch that': Streusel Top' t" 1 cup flour W 1 cup firmly r~ 1 tablespoon a 1/2 cup (1 I 1 cup chop Cake: I 2/3 cup but *2 cups sug * 2/3 cup soi i 4 eggs ~i 1 tablespoc i 2 cups flou I. 1/4 teaspoc Glaze: , 1 cup powc . 1 tablespoc - 2 to 3 teasi Irish luck to dazzle family and friends witn restive rooas tis st. ratricK s ay. Just auu ressings for hot wings and a veggie platter, whipped topping for fruit salad, rice cereal eats and beer can all be as green as the Emerald Isle with a few drops of McCormick I ? accompanying chart for directions). i red the United States between Preheat oven to 325 degrees. For Streusel Topping. mix. Hour. brown sugar and cinnamon ons \weire eagerly adopted by in medium bowl Cut in cold butter with pastry : o quickly embraced Irish tods, blender or tuo knives until mixture resembles : * and folklore So the Irish saying coarse crumbs. Stir in pecans. Set aside. ireland forever)," lives on in the For cake: Beat butter, sugar and sour cream in ; ndants of Eire. large bow7l with electric mixer on medium speed e are a number of clubs in Citrus until light and t7ulTi. Add eggs. 1 at a lime, beat- Ito those \\�th Irish heritage and ing well after each addition. Mix in vanilla. 's Day observance will focus on Gradually beat in flour and baking soda on low d and entertainment. Following speed until uell mixed. Sprinkle 12 of the , e to please- Streusel Topping evenly over bottom ol'greased and floured 12-cup Bundt pan. Spoon 12 of the r Streusel Cake with batter over Streusel Topping. Repeat layers. ! h Cream Glaze Bake 1 hour or until toothpick inserted in cen- cinnamon weaves a warm, sweet ter comes out clean. Cool in pan 10 minutes. ia through this cake Adistinctive Remot' e trom pan. Cool completely on wire rack. h I'ish cream Ilquelu: adds a fes- Prepare glaze, mixing all ingredients in small s perfect for a special occasion. bouluntilsmooth Spoonevenly over cooled cake. ping: Let stand until glaze is set. Makes 18 sern nes. i; y packed light brown sugarCrisp potato cakes *Crisp potato cakesi ii on ground cinnamon .. 1/2 pound hot cooked potatoes stick) butter ~iP 112 pound grated raw potatoes ped pecans ,' 2 cups flour t 1 teaspoon baking soda tter, softened L 1 1/ 2 cups buttermilk ur cream 0 Butter for frying 1 Jrcream 9 Salt and pepper Drain, peel and mash the hot potatoes. Stir in on McCormick Pure Vanilla Extrac the ra potatoes. flour and baking soda. Add salt r and pepper to taste. rMx tell iiith enough but- on baking soda termilk to make a stilffbatter Shape into 3-inch patties about 1 4-inch thick. Fry on hot greased ered sugar griddle until crispy and golden on both sides. der~ed sugar Alakes 12. Makes 12. on Irish cream liqueur poons milk Please see '"'./Page 3C =.- . -- ----. - -- -- - -- . - ---..: "----- -....- - -.----- --. ... Julianne Munn OVER EASY Get taste of luck E everyone likes to sample some sort of food relat- ed to Ireland on St. Patrick's Day and there is no. lack of tempting dishes. Corned beef and cabbage is a traditional favorite, as is col- cannon and Irish soda bread. Be sure and try today's recipes in Flair for Food for a festive salute to the Auld Sod. Easy Irish Hash * 1 15-ounce can corned beef hash * 8 ounces sauerkraut, drained * 1/4 cup margarine N 4 slices baby Swiss cheese Preheat oven to 450 degrees. Chill the can of corned beef hash. Remove top and bottom lids and push hash onto a plate. Slice hash into 4 sec- tions. Stir sauerkraut and mar- garine together in bowl. Place hash patties in a shallow bak- ing dish and heat for 10 min- utes in oven, turning once. Remove patties from pan and arrange equal mounds of the sauerkraut mixture in baking dish and top with hash patties. Put a slice of Swiss cheese on each pattie and bake 5 to 8 minutes longer. Irish Soda Bread a 2 cups white flour * 2 cups whole-wheat flour * 1/2 cup sugar * 2 teaspoons baking soda S 1 teaspoon salt I 4 tablespoons butter, chilled a 1 cup raisins E 1 1/2 cups buttermilk Heat the oven to 350 degrees. In a bowl, combine the dry ingredients. Cut in the butter until it is pea-sized. Stir in the raisins and buttermilk Turn the dough onto a floured surface, knead 1 minute, and shape into a disk Cut an "X"in the top and bake on a greased baking sheet for 45 to 50 min- utes. Makes 1 8-inch-wide loaf ONE Rice is nice - with just about everything from salads and entrees to desserts. So mark your calendar to enter the annual "Rev Up Your Rice" competition, sponsored by The USA Rice Federation. The quest is on for your tasti- est, most innovative, easy-to- prepare rice recipes. Please see EASY/Page 3C IN MORE WAYS THAN YOU REALIZE, PUBLIC PEOPLE... *.- � � , -. __ - !'.A~ .� .. �: : �. I *,- ., i Whether sharing cooking tips or carrying out your groceries, you count on Publix associates to treat you right. No wonder many volunteer to help their neighbors. building Habitat for Humanity homes, serving as Big Brothers and Big Sisters, delivering Meals On Wheels .. We're proud of the invaluable difference they make in our community. r ~u~~lrR "'M WOW r " MAK ADIFERNC :- � � - �� " �' - ' -� -;;~'~--~~" ~"'""''~'~'' ----- --- -- F-rc-10 ccurl, : i utr Mccorml.:F Splcrz ..AA. A- C 0-.A.W� %-. 1- A '-r ~; ..? THIIR.lVSA( MARCHl - 20FO F D' C l L -N -"OCC Writing substitutes Time ripe for pear flavors for wine talk hirteen years ago, when Bev and I moved down here, W nobody, myself included, . would have believed the wine explosion Citrus S County has experienced in that brief time. In 1993, there wasn't a soul with whom I Ron Drinkhouse swapped wine talk This WINES was one reason I asked & SUCH the Chronicle for a chance to write about the stuff, thinking maybe a few weekly words might attract kindred spirits. It did, indeed, in a variety of ways. The first interest came from a group of Citrus Hills folks who wanted to learn a bit more about wine tast- ing. Most of this crowd was into a basic system of rating wine called the "I like it or I don't" method. We conducted a series of tasting featuring varietal wines to introduce people to new fla- vors. Once daunting names, such as chardonnay and cabernet sauvignon, quietly arrived as new friends. The mystique of wine as an elite symbol began to fade. These early events going back to the mid-90s were followed by dozens of supervised tasting for all kinds of groups. Civic organizations asked for wine talks. People wanted to know about the potential health benefits of moderate wine drinking fos- tered by the TV icon "60 Minutes" and the show's exploration of something called "The French Paradox." Another development was the wine and food pairing dinner I hosted a bunch of these happy events where enthusiasts would enjoy a multi- course meal accompanied by a different wine selection for each dish. We would, in the process, explain a bit about the wine's origins and characteristics. The saying: "You can't educate people" is just not true. Local folks, it seems, couldn't get enough information. Of course, the marketing world had to be heard. Package stores started holding tasting on a regular basis, and the offerings are not just run-of-the-mill, everyday table wines. In fact, any number of first-class, trophy-level labels are presented. Then, along came Rodney and Jennifer Carr .with their fabulous Crystal River Wine and Cheese Co. The novelty here, besides serving delicious food, was an attached wine shop with a brilliant collection of materials from around the world. Customers could select from this assortment and for $5 more take the wine into dinner Great notion! Some of you may have been reading my recent stories about Frank and Carol Ascolillo, another amazing couple who have created the very first Citrus County vineyard, using locally grown grapes of the Muscadine family, and recently presenting the County with a nifty wine shop where tasting are held on a regular basis. It's called Pine Knoll Winery. Call 382-4900 for information and directions. I would be remiss not to give credit to the big stores for the superb selection of wine they have brought to the area. ABC Liquors' enormous inventory of product from every corner of the world and in every price range is unmatched for diversity, completeness and quality. Wine con- sultants are on hand to help, and this is a big plus for me. Hats off also to the supermarkets, Publix and "Wine" Dixie! These chain stores have upgrad- ed their stock and priced them reasonably. My only quibble with shopping concerns help. With one exception, there is usually no one to assist And for those good people over in Eastern Citrus, Chuck Doolittle is on hand at his well- stocked Citrus Liquors on U.S. 41 to help one and all. Finally, there are today at least seven groups of true enthusiasts who meet regularly for an evening of wine sampling, using a mix of themes. My advice has always been: Keep pop- ping those corks; it is the way not only to gain knowledge, but also to enjoy. As the ad people keep telling us: "You've come a long way baby!" Did you all get the answer to last week's ques- tion? What grape is used to make Chianti? Answer: Sangiovese. Question for today: Is cooking sherry just an inexpensive type ofsherry? ---)--m-- Oak Ridge resident Ron Drinkhouse was a buyer and seller of wines in his native Connecticut He welcomes inquiries, and can be reached via e-mail at ronoct9@earthlinknet or via telephone at (352) 489-8952. Beginning to seem as if winter wants to linger W e had a crisp, cold 8 degrees early this morning. Now, at 10:30 a.m., it is already up to 19 degrees. We also had single- digit lows a few days ago and then a few more inches of snow. Winter doesn't want to let go, even as we head into mid- March. The trees, though, looked so lovely with the snow sticking to all the branches. I keep hoping it'll warm up for at least a day or so. I need to wash curtains, quilts, rocking chair covers, and I ke other extras that we usually wash hoping when we do a thor- ough cleaning. We Wa are now preparing for upcoming Up f( church services least that have been set for our home a or week from Sunday. It would also be nicer to clean the windows with warmer weather God con- trols the weather, though, and we need to be satisfied with what "he" sends us. Yesterday, sisters Verena and Susan helped me get the base- ment cleaned. We will hold the services in the basement of our new home. We still need to wash the windows down there. I also still have a lot of things to sort through that we carried over from the old house on Saturday. Jacob, Emma, and family and Verena and Susan were here on Saturday helping with all the things that need to be done before church can be held here. For instance, we carried all my canned food over from the old house and cleaned the jars. They tend to get dusty sitting on the shelves. Jacob helped Joe clean the rest of the barn out. We now have a big pile of manure wait- ing to be hauled and spread in the fields. Joe keeps hoping for a few warmer days to haul it. .Right now, though, it's frozen from the cold weather It's sur- prising how quickly the manure adds up over winter With the horses being in their stalls overnight, manure piles up much faster Morning chores are so much more pleasant with the barn all cleaned out now. The chicken coop looks a lot better, too. The eggs look a lot cleaner We are getting anywhere from eight to 12 eggs a day, depending on the weather When it gets colder g r a sl The Amish Cook: Lovina Eicher they don't lay as much. I still had some leftover white curtain mate- rial from the last ep time I made new curtains. I was sur- Sit'll prised that there was enough to make rm seven new curtains. Sister Emma took r at the material home day and is sewing them S for me. She babysits S for Loretta's teacher during the day, a 1- year-old girl and a 2- year-old boy. She enjoys them and so does Emma's 4-year-old Benjamin. Emma can't come over as easi- ly to help, but it really will assist me to have her sew the curtains. Emma, Verena and Susan will also pitch in with baking loaves of white and wheat bread and cookies for church. I want to thank all the read- ers who took time to send us a "welcome to your new house" card. I appreciate your thoughtfulness. A few readers have written asking for a good fried chicken recipe. Try this delicious one, you just put in a bag, shake, and fry. Sack N Shake Fried Chicken M 1/3 cup vegetable oil * 1/3 cup butter 0 1 cup all-purpose flour .U 1 tsp. salt * 2 tsp. black pepper N 2 tsp. paprika l 1 tsp. garlic salt * 9 pieces chicken Place oil and butter in a shal- low cooking pan and place in 375 degree oven to melt butter, set aside. In a large paper sack com- bine dry ingredients. Roll the chicken pieces 3 at a time in butter and oil then drop into a sack and shake to fully coat chicken pieces. Place on a plate until all pieces are coat- Los Angeles Times The pear may be one of nature's� most sensuous fruits. Having a shape that suggests both a ripe bosom and a lus- cious bottom and a flavor pro- file that is at once honeyed and magnificently perfumed, it is as romantic as a fruit can get. And yet the pear isn't as widely embraced in America as it is in Europe, where drink- ing pear wines and brandy and cooking with pears is more commonplace. That's changing now. The pear may be poised to become the next major player in the flavor market, thanks to the recent introduction of two pear-flavored vodkas. Absolut Pear, launched in January, and Grey Goose La Poire, out last month, are two high-profile ed.. ---*-)--- Lovina Eicher (pronounced Luh-Vine-Uh Eye-ker), along with her husband, Joe, are raising eight children on their rural Michigan homestead. Lovina inherited the Amish Cook column from her mother, Elizabeth Coblentz. Lovina, in much the same way her mother did for 10 years, shares snippets ofher traditional Old Order Amish life. Readers with culinary or cultural questions can go to or write: Oasis Newsfeatures, P.O. Box 2144, Middletown, OH 45042 L "Check This Out" * CARPET * TILE * WOOD * LAMINATE * VINYL entries into a spirits market that isn't exactly hurting for new taste trends. Yet if previous vodka lainch- es are any indication (look at the flavor explosions the cock- tail culture created with green apple and pomegranate), the pear is on its way up. Already, there is a pear-flavored water from Hint Inc.; Snapple Green Tea drink, flavored with Asian pear; Izze Sparkling Pear Juice; a pear- and lemon-fla- vored malt beverage from Peels; and in May, Hiram Walker is coming out with a pear schnapps that will allow mixologists to create any man- ner of pear drinks with vodka, gin and tequila. "The thing about pear is that it's very old. It's familiar It's not exotic or scary looking. And it's tasty," said trend spotter Marian Salzman, co-author of "Next Now: Trends for the Future." "It's also sensual in terms of what it looks like." Yeah, but why pear? Why now? "We introduce flavors when the timing is right," said Tim Murphy, Absolut brand direc- tor. "We noticed a trend in decadent dessert pairings and innovative dessert cocktails made with pears. On the flip side, we've also seen pears fea- tured in home decorations such as candles, plates, etc." Maybe timing is everything. Or the market was simply ready for something new. "I think these mini-trends come along solely because other fla- vors have become tired," said food critic John Mariani, who writes for Esquire magazine. If Shop all the rest then come and buy the BEST. Generally for less! 3288 MUSTANG DR 5165 COMMERCIAL WAY 3232 E. THQMAS ST. BROOKSVILLE, FL 34604 SPRING HILL, FL 34606 INVERNESS, FL 34453 352-848-0770 352-597-6463 352-344-1500 7n0_25_0 _______________________ _ _ _______________________- - - -------- *Of expires Marh 31.2007. Must be Installed by March 31,2007 to receive special offer Prices do not include applicable taxes or fees, Promotional rates may not be combined with other offers Prmotonal cable oer available to new resdental customers located In Comast cable wired and serviceable areas onl (or to forer residential customers whose accounts are n good standing and who ve not had Comcast service during the past 60 dys. Basic Service subscription s required to receive other levels of service. Preferred Service subscription Is required to receive Digital Cable. $29.95 Digtal Cable offer Includes Preferred Service and Digtal Plus subscriptionsAfer the promoonal period, regular service and equipment charges apply unless service is cancelled by calling -888-COMCAST Cerain services are available separately or as a part of other levels of servce.A converter and remote control are required to receive certain services. Equipment charges apply to any equipment not Included In the offer. Pricing, content and programming may change. Not all channels available in l areas. Side grades and downgrades do not quality for promotional offer. Not all pgramming or services available In all areas. Promotionalstallation charge of $19.95 applies to standard nstallon on one existing primary cable outlet. Custom Intallation charges are additional. Pricing and progrmmng may change. May not be combined wh other ofers.A credit check and deposit may be required to receive certain services. Call your local Comast office for restricton and complete details about service, prices e and equipment. Service Is subject to terms and conditions of Comcast Cable Subscriber Agrement ORL Call Today! 1-888-683-1000 I� I Travel Fih/,"?/jance LJ'fe CITRUS COUNI'V (Fl) C~nHRON[CL FIAMI F40R F40401 2C THURSDAY.na MARCH 15, 2007 I-AL~m s veni ounv ( ) ERIN Continued from Page 1C Dublin Bay Prawn Cocktail * 4 heaping tablespoons homemade or Hellman's or Duke's Mayonnaise (not salad dressing) * 1 tablespoon (or less) ketchup (just enough to make the mayonnaise pink) * Lemon juice * Pinch cayenne pepper * 1 tablespoon cream (or enough to give desired thickness depending on preference) * Medium cooked and peeled prawns (shrimp) Divide the sauce equally between cocktail glasses. Stir prawns gently into sauce. Chill and serve. Or, hook prawns over the edge of the bowls and dip. Irish Beef Stew with Guinness , Stout * 2 tablespoons olive oil * 3 b'ay leaves * 2 pounds beef stew meat, cut into 1 1/2-inch chunks with some fat left on the meat 0 1 large yellow onion, peeled and cut into 1/4-inch pieces 3 2 cloves garlic, peeled and chopped ' 1 teaspoon dried thyme a 1 teaspoon dried rose- mary I 3 tablespoons all-purpose flour * 3/4 cup beef stock, home- made or canned * 1/2 cup Guinness stout * 1 tablespoon parsley, chopped * 1/2 pound carrots, sliced 8 Salt and freshly ground black pepper to taste Heat a 6-quart stovetop casserole or ovenproofpot and add the oil and the bay leaves. Cook the bay leaves for a moment and then add the meat Brown the meat on both EASY Continued from Page 1C SAll recipes must be received or postmarked by 11:59 p.m., April 15. One amateur cook will be awarded a $5,000 cash prize -and six finalists, including the "Best Whole Grain Rice Recipe" will receive $1,000 each. All winners will also receive an Aroma 10-cup Sensor Logic Deluxe Rice Cooker. Only original and unpub- lished rice recipes - including appetizers, soups, salads, side dishes, entrees or desserts are eligible for the contest. Food professionals will judge entries based on taste, ease of preparation, appearance and creativity. Recipes must be pre- pared in 30 minutes or less with no more than six ingredi- ents (excluding butter, mar- garine, cooking oil, water, salt, and ground black pepper), and must use at least 1 cup of uncooked U.S.-grown rice - or three cups of cooked rice. The contest is open to adults 18 years and'older who are res- idents of the United States. Food professionals, including chefs, food writers, food home Economists, dietitiansand food educators, as well as employ- ees/members of the rice indus- - try or USA Rice Federation are not eligible to compete. You can enter your recipe online at: /consumer/contest2007 or send ;your original rice recipes to "Rev Up Your Rice!" 2007 Recipe Contest, USA Rice Federation c/o Public Consultants/PR, 424 Second :Ave. W, Seattle, WA 98119. SEnter as many recipes as you wish. Here is a nice rice recipe you might like for inspiration: Florida Rice and Avocado Salad 1 3 cups cooked rice, cooled 3 2 cups chopped cooked chicken 8 2 avocados, peeled and cut into 1/2-inch cubes al 1 cup diagonally sliced celery I 1/2 green bell pepper, cut into julienned strips [ 1/4 cup minced onion I 3 tablespoons lemon juice 3 2 tablespoons vegetable oil I 1 1/2 teaspoons salt [ 1 teaspoon sugar sides on high heat Add the onion and cook for a few min- utes until it is clear. Reduce the heat to low and add the gar- lic, thyme, rosemary and flour and stir until smooth. Add the beef stock and stout; simmer, stirring until the stew thickens a bit Add the remain- ing ingredients and cover. Place the pot in the oven at 275 degrees for about 2 hours, stir- ring a couple of times. Check seasonings (salt and pepper) before serving. Makes 6 serv- ings. County Cork Cornish Pastries * 2 large baking potatoes I 1 tablespoon bacon grease 0 1/2 cup chopped onion * 1 to 1 1/2 cups water M 1 (12-ounce) tin corned beef (not hash) * Salt and plenty of pepper * Piecrust pastry * 1 egg Traditional Irish Curach I 1 1/2 cups oatmeal * 1 cup chopped rhubarb I 2 cups raspberries 0 3 tablespoons honey, * 1/4 teaspoon ground white pepper * 1 clove garlic, minced * Hot pepper sauce to taste I Salad greens (optional) * Tomato wedges or roses for garnish Combine rice, chicken, avo- cados, celery, green pepper and onion in large bowl. Place lemon juice, oil, salt, sugar, white pepper, garlic and pep- divided N 2 cups heavy whipping cream M 4 tablespoons whiskey Preheat the oven to 400 degrees. Spread the oatmeal indi- vidual glasses some of the cream mixture, some toasted oatmeal, the rhubarb mixture, and some fresh raspberries. Then repeat. Garnish with fresh raspberries and mint leaves ifdesired. Serve at room temperature or chilled. Makes 6 servings. Dublin Coddle a pinch ofm ustard powder and parsley. Pour reserved liquid over meat and vegetables. Add bay leaf Simmer gently for about 1 1/2 hour to 2 hours, until ingredients are tender, and liquid has thickened some- what Makes 4 servings. per sauce in small jar with lid; shake well. Pour over rice mix- ture. Toss lightly. Cover and refrigerate 1 to 2 hours. Adjust seasonings, if necessary. Serve on salad greens. Garnish wil tomato wedges. ..Julianne Munn is food editor for the Citrus County Chronicle. Her e-mail address is bonnyblu@earthlinknet - .... - . ."ish Saturday, March 17. 20b . if Cocktails at 5:30pm Starring Live Music By The: "Guinness the Duo" Featuring: Corned Beef & Ham Cabbage & Traditional Vegetables Soda Bread and more... I rish Beer & Whisky at the Cash Bar ' $38 00 per person Tax & graluity included SCall for reservations (352) 527-4100 or (352; -176-4242 To be held a: Besl Western Holde, Rt 86 Hernando Tclets are S75 per person per sow., Special dietary meak available upon request All Musical Dinner show times are 7:30p.m. (doors open 7:00 p.m) at the Citrus Hills Golf and Country Club. 505 East Hartford Street, Henando, FL 34442, Fo ticket information contact the Centers at 352-291-5462 or SPONSOR: SPONSOR: '621trwi a -"j. us b-RP COMMUNITY Seoenolc (:i- -ti. ii-r. -7�e~, m Anxious for opening day? Enjoy these ballpark dogs Associated Press If opening day seems far away, it's possible to get a taste for Major League Baseball even without a game to watch. And it's easy to accommo- date an appetite for just about any team. That's because most ballparks have signature hot dogs inspired by regional foods that are favorites of fans. This is a long way from ketchup, mustard and relish. These hot dogs are seriously endowed, sporting many- and by some tastes many unusual - toppings, including sauer- kraut, diced tomatoes, chili and coleslaw. To get you started, here are adaptations of the hot dogs served at the home ballparks of five Major League teams - the Atlanta Braves, Chicago Cubs, Colorado Rockies, New York Mets and Houston Astros. * Atlanta Braves For a taste of the Georgia Dog that Braves fans enjoy at Turner Field, try a hot dog topped with coleslaw, chili and Vidalia onion relish. If you can't find onion relish, try mix- ing a bit of diced raw onion with pickle relish. * Chicago Cubs Talk about serious hot dog toppings. Cubs fans enjoy boiled beef dogs piled with diced onions, diced tomatoes, banana peppers, mustard, a dash of cel- ery salt and a dill pickle spear on a poppy seed bun. * Colorado Rockies Rockies fans at Coors Field like their dogs - called the Rockie Dog- big. Top a grilled extra-long (the real deal meas- ures a foot) hot dog with sauer- kraut and grilled onions and peppers. * New York Mets At Shea Stadium, Mets fans ate some 26,000 hot dogs on opening day last year. To make your own New York Dog, try a hot dog topped with sauer- kraut, diced onions and deli- style mustard. * Houston Astros The Texas Dog at Minute Maid Park brings a bit of heat to the mix. Top these dogs with chili, t PS -d: cheese and jalapeno peppers. For information about fan foods at Major League ball- parks, check out Aramark (runs concessions at many ballparks) at. Learn How to Hear Better FREE SEMINAR Wed., March 21st 9:30am and 1:30pm Plantation Inn Master Audiologist Dan Gardner, M.S. will share information about recent advances in surgical implants and nano-digital hearing aid technology. He will also demonstrate economical products that will improve your ability to hear television and cell phones more clearly. Seating is limited Please RSVP to 795-5700 Spouses are encouraged to attend. Cardrcr Audi.'.I: i- u I.C,:a-li ,, otnd arid naul:rnall] kri,:.Ti D ar , (, rd nr e r. , s .. �' -' tzn A ho audil]:': | : L'rnini r'nv ,:1' S uthl Fl. nda. He he. i 1/3 cup milk A 8 pork sausages, about 1 Peel potatoes and slche into ," pound 1/4-inch slices. In a saucepan "' 1/2 pound thick slices of heat the bacon grease and smoked pork butt or slightly saute te onion. Add Canadian bacon, cut into the sliced potatoes and cover A ' pieces with water. Bring to a boil. M Water or stock Reduce the heat, cover, and 1 pound onions, peeled simmer until the potatoes are and chopped fork tender, about 15 minutes. Drain any remaining water, 2 pound potatoes,liced and add the corned beef Stir well. Slightly mash some of the U 1/2 teaspoon pepper potatoes as you stir. Add the N Mustard powder salt and pepper. Let the mix- ture cool to room temperature. m 2 tablespoons chopped parsley Roll the piecrust into indi- vidual 8- to 9-inch circles. l1 bay leaf Place 1 cup of the meat and In medium saucepan, cover potato mixture on half of each sausages and ham or bacon circle, fold over, and press the with water or stock; bring to edges to seal. Beat together the boil and gently boil for 5 min- egg and milk and brush over ~ites.-Remove meat and reserve the pasties. Place on a baking liquid. sheet Bake at 350 degrees for In a deep pan, layer meat, about 45 to 50 minutes or until sausages, onion and potatoes. light brown. .Seaon oach 7lavprwith nPnner ' Oth B/e.n/na QFILCShow Creative Quilters present Crazy Fr March 16 and 17, 2007 10 to 5 p.m. Admission $5.00 Crystal River Armory Crystal River Demonstrations ~ Quilt Boutique ~ Merchants Markets ~ and much more For information call Karen Crosby at 795-6806 Clll~Y('dtL 660744 Eat your veggies. National Cancer Institute studies show that adults who eat five or more servings of vegetables per day reduce their risk of cancer by one half. So be sure to eat your veggies and follow these preparation tips: * Steam vegetables until crisp rather than boil until soft to retain vitamins. * Pare sparingly, because most vitamins are concentrated around the skin. * Thaw frozen vegetables under cold running water. In all great meals the main ingredient is Publix. 691630 Ti-wiisDADIY, MM~ccri 15, 2007 3C -�;' --1 - , - z FLAmR iFcR FcOcOi C C y FL CHRONICLE . ENTERTAINMENT 44%;-TutJRSIAY, IVIAURI15, 20, 7 -'"-- THURSDAY EVENING MARCH 15, 2007 C: Comcast,Citrus B: Bright House D: Comcast,Dunnellon I: Comcast, Inglis C B D I 6:00 6:30 7:00 7:30 8:00 8:30 9:00 9:30 10:00110:3011:00 11:30 19 19 News 825 NBC News Entertainme Access The Office (In Stereo) '14, Scrubs (N) Andy Raines "Pilot" (N) PG' 91 News Tonight S19 1919 nt Hell wood L 6641 '14' 36816601Barker, P.I. 95922742047 Show [WEU BBC World Business The NewsHour With Jim Up Close WEDU Sinatra: Vegas Live From Rockabilly Legends: They Called It Elvis Lives: PB 3 News'G' Rpt Lehrer B 4047 Wit Interview Caesars Palace PG' RockabillyLon Before 25th WUFT BBC News Business The NewsHour With Jim Sinatra: Vegas Live From Great Performances "Loreena McKennitt: Nights Capitol Tavis Smiley BS 5 5 5 1757 Rpt Lehrer (N) 29776 Caesars Palace'PG' From the Alhambra" 'G' I[ 43793 ,Update 'G' G' 58399 WF 8 A8 News 4467 NBC News Entertainme Extra (N) The Office (In Stereo)'14, Scrubs (N) Andy Raines "Pilot" (N) 'PG' [ News Tonight 8 8 8 8 nt 'PG' 9 L' 21134 '14' 6503009 Barker, P.I. 11757 9871554 Show [Wr FV 202 0 News 1 ABC WId Jeopardy! Wheel of Ugly Betty "Icing on the Grey's Anatomy (N) (In October Road "Pilot" (N) News Nightline ABC 20 20 20 20 5979 News 'G' 1660 Fortune (N Cake" [ 61776 Stereo) 9 9586919 1'PG, D.L' 1 51399 7646134 35541554 W s 10 10 1 0 News 6221 Evening College Basketball NCAA Tournament First Round - Teams TBA. College Basketball NCAA Tournament First Round - Teams TBA. CIBS B 10 10 10 News (Live) 9 800318 (Live) 9 537950 Wiv3 News 997738 The Bernie King of the Are You Smarter Than a Family Guy Family Guy News El 91931 News M*A*S*H FOX 13 13 Mac Show Hill 'PQ V 5th Grader?'PG'78080 '14, DL' '14 L, SV' 4504931 'PG' 'WCJB News 43399 ABC Wid Entertainme Inside Ugly Betty "Icing on the Grey's Anatomy (N) (In October Road "Pilot" (N) News Nightline ABC 11 11 News nt Edition 'PG' Cake" 47738 Stereo) ] 5109775 'PG D.L' c 60689 2176399 34838931 C 12 2 Richard and Lindsay Dr. Blow- Van Impe Gods News Life Today Worship The 700 Club 'PG' 90 Christians & Purpose for D 2 2 Roberts 'G' 9 9832405 Lindstrom Trumpet Pres I'G'1890863 Center 6874134 Jews Life iFTS] News 16283 ABC Wid Inside The Insider Ugly Betty "Icing on the Grey's Anatomy (N) (In October Road "Pilot (N) News Nightline ABC 11 11 News Edition 'PG' 36047 Cake" 43950 Stereo) [ 8309115 'PG, D,L' 9 33573 5492554 35127047 MOR Will & Grace Frasier 'PG, Still Access Movie: * * "My Life" (1993, Drama) Michael Keaton. A cancer Will & Grace Frasier 'PG' Still IN 12 12 '14' D'10660 Standing Hollywood victim confronts his illness and his past. 364467 'PG 37825 Standing (WTTA 1 Sex and the Every- Every- Seinfeld Movie: **"Fled"(1996, Action) Laurence Scrubs '14' Scrubs'14' Seinfeld Sex and the MNTB 6 6 6 6 City '14, Raymond Raymond 'PG' iFishburne, Salma Hayek. 9 3546919 4258115 4267863 'PG' City '14, ( WTO 4 The Malcolm in The Friends 'P, Smallville "Promise" (N) Supernatural "Road Kill" The King of The King of According to According to CW 4 4 4 4 Simpsons _the Middle Simpsons D' 2047 c 57450 (N) 96486 Queens Queens Jim 'PG, D' Jim 'PG, D' (WYKE 1616 News Franklin County Community Baseball Caribbean World Series -- Dominican Republic vs. Puerto Rico. News 44115 County FAM 16 16 16 16 636080 Realty Court Theatre (Taped) 9 162221 Court IWOX ' Seinfeld King of the The The Are You Smarter Than a FamiluyGuy Family Guy News (In Stereo) 9 Seinfeld Home FOX 13 13 'PG' c Hill'PGV Simpsons Simpsons 5th Grader? 'PG' 56844 '14, DL' '14, L,S,V 46467 'PG' 24757 Improvemen (cx) Rico Sharp The 700 Club 'PG' E Tim Gilligan Variety 3486 Faith Variety Mark Andrew Dr. Leroy Claud Bowers 74825 S21 21 6825 755009 6689 Builders 65080 Chironna Wommack Thompson (WViEA) Noticias 62 Noticiero Duelo de Pasiones La Fea MAs Bella (N) Mundo de Fieras (N) '14' Aqui y Ahora 430660 Noticias 62 Noticiero UNI 15 15 15 77950 Univisibn 448689 PG'424009 437573 794370 Unisibn IwxPi Green Acres Green Acres GrGrowin g rowing Mama's Mama's Diagnosis Murder (In Charlie's Angels "Angel in Time Life Paid 17 G' 'G' Pain'G'G' Pains 'G' Family 'PG' Family'PG' Stereo'P' 99432 a Box" 'PG' 19979 80979 Proam SCrossing Jordan "Bombs CSI: Miami "Game Over" CSI: Miami "Sex & Taxes" The First 48 (N) '14, L' Intervention "Chuckle" Real Premonitions 'PG' S54 48 54 54 Away'14'751399 '14, S' 115711 '14, S,V' 315919 715775 '14, L' 565252 19472405 AM6 455 6 5 Movie: **' "MagnumForce"(1973, Drama) Movie *** "Toral Toral Toral"(1970) Martin Balsam, Soh Yamamura. Movie: "Flyng 4 Clint Eastwood, Hal Holbrook. 631863 History of Pearl Harbor attack, seen from both sides. 473196 Leathernecks"1753318 AN 2 35 52 152 The Crocodile Hunter 'G' The Most Extreme 'G' ] Movie: "Ghost Cat" (2003, Mystery) Michael Animal Planet Heroes Movie: "Ghost Cat" 52 35 52 52 98348636877221Ontkean, Ellen Page, Shirley Knight.'PG' 6864757 Phoenix 'PG' ] 6876592 2003) 'PG' 3753825 BRAV- Top Design Uncommon Top Design "Garage Top Design "Life of the The Real Housewives of The Real Housewives of Grease: You're the One Materials. c 621950 Band"'14' 9 240009 Party"'14' 9 259757 Orange County'14' Orange County'14' That I Want 'PG' l[ 27 61 i 27 27 "Planes, Trains and Scrubs'14' Scrubs '14' Daily Show Colbert Mind of South Park South Park David Daily Show Colbert A utomobiles"44738 21509 18202 Report Mencia'14' 'MA L' 'MA'57202 Spade Report (CM ) 98 45 98 98 Top 20 Countdown (N) (In Dukes of Hazzard To Be Announced 81134 Foxworthy's Foxworthy's Foxworthy's Foxworthy's To Be Announced 89912 _ 98 _45 _989 Stereo) 423844 "Double Sting" 'G'72486 E TN 5 65 9 5 Lenten Glendaloug Daily Mass: Our Lady of Life on the Rock 'G" Parable The Holy Back Stage The Pure Web of Faith 'G' 6792825 S 65 95 95 Reflections h the Angels 'G' 1256660 1232080 9470979 Rosary 'G' Life I FAI 52 29 29 7th Heaven "Sympathy" Smallville "Vortex" (In Movie ** "Uptown Girls" (2003, Comedy) Whose Whose The 700 Club'PG' BB 'G' 9 931573 Stereo)'PG L,V 9 Brittany Murphy, Dakota Fanning. 0 589134 Line? Line? 636641 S0 3 King of the Kingofthe That'70s That'70s Movie: ** "There'sSomethingAboutMary"(1998, Movie: ** "There's Something S 3 0 0 Hill 'PG L' Hill 'P LV' Show '14, Show'14, Romance-Comedy)Cameron Diaz Matt Dillon. 9907689 About Mary (1998) 345825 HTV 23 57 23 23 Look What I Small Space If Walls House Designed to Buy Me 'G' ivie Designers' House House Over Your Don't Sweat SI57 Didi 'G' ICould Hunters 'G Se 'G' 440992 Desin'G' Challenge Hunters 'G' Hunters 'G' Head'G' It'G' HIT 5125 51 51 Modem Marvels Modern Marvels 'G' 9 Lost Worlds 'PG' [ Decoding the Past (N) Modem Marvels "Metal" Modern Marvels "Copper" SHangars" 'G' 5845689 1261592 1247912 'PG' [ 1267776 'G' [ 1260863 Copper. 'PG' 6707757 24 382424 eba'PG' Reba'PG' Still Still Reba'PG' Reba'P Movie: "Another Day" (2001, Suspense) Shannen Will& Grace Will& Grac S38 24 4825 87640 Standing Standing 131486 D' 143221 Doherty, Max Martini. 'PG' [ 591979 'PG' 'PG' NIK 28 362828 Ned's Fairly Fairly Jimmy SpongeBob Full House Fresh Fresh Fresh Fresh Fresh Fresh i_ 2 36_ 28 28 School OddParents OddParents Neutron 'G'690554 Prince Prince Prince Prince Prince Prince 1S15931 31 StargateSG-1 "Smoke Movie: *s "From Dusk Till Dawn 2: Texas Blood Movie: **i "From Dusk Till Dawn 3: The Movie: "Dead Men 31 59 31 31 and Mirrors" 'PG' 6699134 Money" (1999, Horror) 8338115 Hangman's Daughter" (200) Ara Celi 8133134 Walking" 2092592 SPIK 43 37 37 CSI: Crime Scene CSI: Crime Scene CSI: Crime Scene TNA iMPACT! (N) (In Pros vs. Joes (N) (In Bullrun (In Stereo)'PG' P 37 43 37 37 Investigation'14 LS, Investigation'14DL est 4, D,L S,V Stereo)'14, D,L,V ] Stereo)'PG'354641 771554 1 231491 49 Seinfeld Seinfeld Every- Every- Friends'14' Friends 'PG' Friends'14, Friends 'PG' Movie: *** "Charlie's Angels" (2000, Action) S'PG' 218009 'PG 232689 Raymond Raymond 588370 507405 D' 961689 396486 Cameron Diaz, Lucy Liu. c9 945641 M 53 Movie: "Dark Victory" All About Bette Davis: Movie *** "Battle of Britain" (1969) Laurence Movie: **it "The End of the Affair" (1955) ( i 53i (1939) 4247009 Life & Films Olivier, Michael Caine. 48903660 Deborah Kerr, Van Johnson. 5435405 ~ 5 34 53 53 It Takes a Thief Antique Man vs. Wild Kenya.'P, Man vs. Wild "Mount Man vs. Wild Rain forest. Man vs. Wild "Sierra Stunt Stunt S3 4 5 dealer. 'PG' 759931 V' [ 410383 Kilauea"'PG V [M 'PG, V 466237 Nevada" 'P V l0 Junkies Junkies 50 461 50 50 Flip That Flip That Monster Garage 'PG' American Hot Rod "57 American Chopper NASA Biker Build-Off (N) 'PG L' American Chopper NASA SI House 'G' House'G' 357738 Chevy 2" (N) 'PG' 366486 tribute. 'PG' 379950 356009 tribute. 'PG' 799950 8 331 48 48 Without a Trace "Coming Without a Trace NBA Basketball Miami Heat at New Jersey Nets. From NBA Basketball Los Angeles Lakers at T 48 33 48 48 Home"'14, L,V' 837216 "Exposure"'PG f' [ Continental Airlines Arena in East Rutherford, N.J. 9 679738 Denver Nuggets. 683931 T V 54 9 9 Million Dollar Yachts'PG' Luxurious Log Homes Passport to Passport to Earth's Natural Wonders Earth's Natural Wonders Passportto Passport to AV) 9 54 9 9 2497776 'PG' B 7790793 Europe Europe 'G' [M 1390757 'G' 0 8140234 Europe Europe T75 32 32 Little House on the Gunsmoke "The Andy GriGriffith riffith MA'S'H M'A'S'H Sanford and Sanford and Three's Three's ,_3 , Prairie 'G' 9 9829931 Wreckers"'G' 6879689 'PG' 'PG' Son'G' Son'G' Company Company A 32 47 47 Law & Order: Criminal Law & Order: Criminal Law & Order: Special Law & Order: Special Law & Order: Criminal Law & Order: Special 47 32 47 47 ntent'14' 382283 Intent '14' 687115 Victims Unit'14'696863 Victims Unit '14' 683399 Intent '14' 686486 Victims Unit'14' 117919 S18 18 18 Home Home America's Funniest Home Movie: **x "Mystery, Alaska"(1999, Comedy- WGN News at Nine (In Sexand the Scrubs'14' -i 1J 18 18 18 Improvemen mprovemen Videos 'PG L'260863 Drama) Russell Crowe. 0 257399 Stereo) 9 269134 City'14, 699486 THURSDAY EVENING MARCH 15, 2007 C: ComcastCitrus B: Bright House D: ComcastDunnellon : Comcast, nglis c BD I 6:00 6:30 7:00 7:30 8:00 8:30 9:00 9:30 10:00 10:30 11:00 11:30 DISN 46 ck&Cody That's So Philof the Zack & Cody Movie: "Mulan I" (2004) Voices Replacemen Life With Philof the Zack& CodyThats So 4640 4646 Raven'G' Future'G' Jof Ming-Na.320979 Is Derek'G' Future'G' Raven'G' S 39 68 3939 M*A*S*H M*A*SH Walker, Texas Ranger'14, Walker, Texas Ranger Movie: "The Long Shot"(2004) Julie Benz. An acci- Movie: "Sarah, Plain and 'PG 3259202 '' 3240554 V 6860931 Fight or Die" '14, V dent blinds an equestrian's horse. 'PG' 6856738 Tall"'G' [ 3779863 S"Red Eye" Movie: *** Batman Begins" (2005) Christian Bale. Bruce Addiction (N) (In Stereo) '14' 780776 Barrera- Taxicab Confessions: New _ ' *-_990486 Wayne becomes Gotham City's Dark Knight. 622115 Marquez York, New York 'MA XMovie: *** "Clueless" Movie: **Y "Alien Nation: Body and Movie: *s "Billy Madison"(1995) Movie: ** "Running Scared" (2006, Crime Drama) 93447950 Soul" (1995) 'PG' 930950 Adam Sandier. N] 433414 Paul Walker. 01 9822318 fNv 97 66 97 97 Exposed Exposed Bam's Barn's Juvies Lapse in judgment. True Life 'mAutistic" Juies Running from TrueLife (In Stereo) 872221 1863573 Unholy 9Unholy 576660 Autism. (N) 563196 police. (N) 566283 634283 7NGC Man-Made "The Can" Crash Science "Air Impossible Bridges (N) Ultirate Factories "John Impossible Moves Imossible Bridges 6 A71 4529318 Shows" 'G' 2469739 616347 Deere" 'G' 6269991 "Houses'(N) 7314680 7061370 PLEX :"Intent to Movie: ** 'The Snow Walker"(2003, Adventure) Movi***t "Octopussy"(1983, Action) Roger Moore, Maud Movie: "The Three ) 62 "(1993) Bany Pepper. 57742196 Adams, Louis Jourdan. 0 61794844 Musketeers"68467196 CNBC 4342 3 43 Mad Money 3009863 On the Money 9985738 Fast Money 9994486 Deal orNo Deal(In TheBig Idea With Donny Mad Money 7497028 Stereo) '14' 09907950 Deutsch ( ) 40 29 40 40 LouDobbs Tonight c9 The Situation Room Paula Zahn Now M] Larry King Live Z 681931 Anderson Cooper 360 'PG' 9 958115 S397115 692047 678467 5COURT 2 5 Forensic Forensic Cops '14, Cos'14, Hot Pursuit Hot Pursuit World's Scariest Police Forensic Forensic Pschic Hollood 25 55 25 FilesPG L, 1971738L,9725950 '141980486 14192221 Chases2'14,V9909318 Files'PG' Files'PG' Deectives HeaN '14' 7 1 47 A A Special Report (Live) L The Fox Report With The O'Reilly Factor (Live) Hannity&Colmes (Live) On theRecord With Greta The O'ReillyFactor S 6684202 Shepard Smith 9 0 8125115 9 8145979 Van Susteren 8329467 MSNB2 4 Tucker 669777 Hardball [0 8112641 Countdown Wih Keith Scarborough Country Killing on Keithwood Court Crime & Punishment'14' 42 1 4Olbermann 8138689 8118825 8111912 0 8325641 ESPN) 33 27 33 33SprtsCenter (Live) [ 276283 Figure Skaing European Championships. From Warsaw, Poland. 0 748912 FigurSkating: U.S. Champ. - Men's 2ESPN1 34 'Import NASCAR U.S. Poker Championship U.S. Poker Championship U.S. Poker Championship ATP Tennis Pacific Life Open - Round of 16. From S3 Racers (N) Now (Live) c 7990991 0] 5990711 [91590955 Indian Wells, Calif. (Live) ] 4197738 FSNFLI 35 'Inside the Inside the Panthers NHL Hockey Buffalo Sabres at Florida Panthers. From the The Sports Final Score Best Damn PRIDE Special 35 35 Panthers Panthers Tonight BankAantic Center in Sunrise, Fla. (Live) 137202 List - Part 3 979134. S LPost Game Big Break VII: Reunion Top 10 Top10 PGA Goif Amold Palmer Invitational -First Round. From Bay Hill Club & Lodge in 19thHole S) how 8853370 9709912 1997776 Orlando, Fla. 00 6317405 9250283 36 36 36 Around SEC TV Florida Fishing Report (Live) 327080 Sport Sprtsman Sawater Fishing the Florida Fishing Report 647221 36313636Track 81573 Fishin Adv. JournalG' Flats. Couple consider using sperm donor Dear Annie: A year ago, my hus- band and I discovered that he is unable to father children, so we have decided to use a sperm donor. If I should get pregnant, we agreed to tell the child how he/she was conceived. However, my hus- band is somewhat sensitive about telling anyone else. Are we obligated to tell peo- ple? - Open for Suggestions Dear Open: Of course not. This is intensely personal. However, do keep in mind that the information could get out despite your efforts, and we hope you will be pre- pared to deal with it without embarrassment. Please con- tact Resolve (resolve.org) at ANN 7910 Woodmont Avenue, MAIL Suite 1350, Bethesda, MD 20814, for support. Dear Annie: My wife and I have been together for over 25 years, and we have a great .relationship in all areas with one exception. "Helen" is the prover- bial "Little Old Lady from Pasadena." She has no road sense, but insists on being behind the wheel. I try to keep from sounding off, but after a while, I need to express my opinion of what she is doing wrong. If I want to drive, Helen says my road skills scare her. I consider myself a safe driver. I am assertive, but not reckless. However, when Helen is on a highway, she will invariably get into the lane that's traveling under the speed limit and just stay there. We generally get over the driving experience fairly quickly, and each time, I swear I will not sound off again, but I just can't help it. How should I handle this? - California Charger Dear California: Helen drives too slowly, and you are too aggressive for her. It really doesn't matter if you think you're the better driv- er, we're going to let Helen win, because her terror trumps your annoyance. Get a set of headphones, plug yourself into something you like, close your eyes and take I1E'S a nap. It will be good for your .BOX blood pressure, as well as your marriage. Dear Annie: My dog died a short while ago, and I remember the essay called, "A Dog's Plea." It would mean a lot if you could print it. - Sweetie Girl in Hawaii Dear Hawaii: Our condolences. We hope this helps: understand- ing ani- mal, no longer accustomed to bitter ele- ments. bid- ding, to walk by your side and stand ready, willing and able to protect you with my life, should your life be in dan- ger And, my friend, when I am very old, and I no longer enjoy good health, hear- ing and sight, do not make heroic efforts to keep me going. I am not having any fun. Please see that my trusting life is taken gently. I shall leave this Earth knowing with the last breath I draw that my fate was always safest in your hands. ---ff---- E-mail your questions to anniesmail- box@comcastnet, or write to: Annie's Mailbox, P.O. Box 118190, Chicago, IL 60611. To find out mpre aboutAnnie's Mailbox, visit. CIimis COUN-7Y (FL) CIIRONICAI Local RADIO WJUF-FM 90.1 National Public Radio WIFL-FM 104.3 Adult Mix WHGN-FM 91.9 Religious WJQB-FM 106.3 Oldies WXCV-FM 95.3 Adult Contemporary WXCV-FM 96.3 Adult CMix WFJV-FM 103.3 '50s, '60s, '70s WRGO-FM 102.7 Oldies WRZN-AM 720 Adult Standards r Unscramble these four Jumbles, one letter to each square, to form four ordinary words. I POCUR I SHELIC SLAQUL I , L I S THAT SCRAMBLED WORD GAME by Henri Arnold and Mike Argirion Now arrange the circled letters to form the surprise answer, as suggested by the above cartoon. Answer: L I I . (Answers tomorrow) SYest Jumbles: BEFOG ADMIT KILLER INDOOR Answer: What the sugar daddy did when she shopped for shoes - "FOOTED" THE BILL Rirda ' I PHILLIP ALDER Newspaper Enterprise Assn. Have you ever seen spots in front of your eyes? Perhaps it hap- pened when your photograph was taken using a flash. Or, at the bridge table, maybe you held an array ofnoncourt cards. One of the key skills of a bridge expert is making maximum use of his spot- cards. This deal is an excellent example. South was in four spades. West led the diamond three. South, hoping the lead was away from the queen, called for dummy's jack, then took East's queen with his ace. How did South continue? Some Norths would respond one no-trump, especially if playing the bid as forcing for one round (a popular treatment in the tourna- ment world). They plan to rebid two spades, showing only two-card support or a really weak three- .card raise. If North did that here, maybe South would rebid three no-trump, a contract that cannot be defeated. Declarer had only nine sure tricks: five Spades, one heart, two diamonds and one club. The best bet for a 10th was to find East with the heart king. But South needed dummy entries so that he could lead toward his heart queen, and eventu- ally could reach the heart ace. ACROSS 1 Core 5 Selflessly 10 Ms. Fawcett 12 Illinois city 13 Pungent 14 Fix a shoe 15 Tijuana coin 16 Forest creature 18 Expected any time 19 Castle wall 23 Tarzan's nanny 26 Household member 27 Tech magazine 30 Foresight 32 Rub against 34 Obtain via shakedown 35 String instrument 36 Gape open 37 Type of stripe 38 Showed the way 39 Relieve 42 Overalls part 45 Diligent insect 46 Hot tub inlets 50 Depleted (2 wds.) 53 Spotted animal 55 Icy downpours 56 Cookbook entry 57 Salon tint 58 Frat letters DOWN 1 Glazier's unit 2 Lens opening 3 Go crowding in 4 Leia's rescuer 5 Born as 6 Cry of delight 7 Multiplied 8 "Instead of" word North 03-15-07 4 10 9 3 VA95 * J 5 4 J 9 7 2 West East 4 7 4 4 A8 S J 8 6 3 V K 1072 S10 7 6 3 * Q98 4 K 8 5 4 Q 10 6 4 South 4 K QJ 6 5 2 *AK2 4 A 3 Dealer: South Vulnerable: Both South West North East 1 6 Pass 2 Pass 4 4 Pass Pass Pass Opening lead: * 3 After winning trick one, declar- er played his spade five tO dummy's nine. East took the trick and shifted to a club. South won, led his spade six to dummy's 10, and called for a heart East went in with his king and played another club, West winning with his king and returning a diamond. Declare won ii his hand, cashed the heart queen, overtook his spade two with dummy's three, and discarded his last diamond on the heart ace. 9 Type of lock 10 Vain fellow 11 Water source 12 Get ready 17 Nose-bag morsel GET MORE in the new "Just Right Crossword Puzzles" series from Quill Driver. Call 800-605-7176. � 2007 by NEA, Inc. IVI IUIIL E IT EfND I IVIE LGAIPIE[D 20 Potential oaksi 21 On the wane 22 Beginner 23 Livy's hello 24 Elf 25 Is, to Pedro 28 Lofty 29 McClurg of sitcoms 31 Des Moines locale 32 Crop duster 33 Wrap up 37 Groaner, maybe 40 Drains, as energy 41 Cockpit button 42 Wild country 43 Castaway's refuge 44 "- here long?" 47 He directed Marion 48 Exceeds 49 Sault -Marie 51 Study 52 Hagen of "The Other" 54 Fair grade A e-�---X-.- -C CELEBRITY CIPHER by Luis Campos Celebrity Cipher cryptograms are created from quotations by famous people, past and present. Each letter in the cipher stands for another. Today's clue: B equals U "FMV UVOHLHX CZ UP NCJE LW FMOF LF LW LHIBWFJLOA; LF'W NMOF OAA FMV NCJAI NLAA WCCH GVRCUV." - JCP ALRMFVHWFVLH PREVIOUS SOLUTION -"The Youth of a Nation are the trustees of Posterity." - B. Disraeli "Only the young die good." - Oliver Herford (c) 2007 by NEA, Inc. 3-15 i A � D goiwigW igo WN p: o oo;i M o D I- I. ' P G : A I L ITRUS CniN-YV , (,sr'nMTM 1 Garfield For Better or For Worse OMJ N CHLt.H YOU TrH .,WG1'PON'f UNDER- r� I-... &--r AIRMY 1AED') IN.... SPFAL NEED" KNOW- - --ST-DON'T- m F-FAUL: Ir.4Ey.... -JONE-G31ANCA.... ITHA. IAVA ..MIRIAM AN'THAT 1H55M FC, 12 -T1HtW I&NC12ANT AN' IHFE\Ii ~YYI-~O~~E~RC~5L~iI$ ANAN ; IN ,"II Beetle Bailey The Grizzwells !The L- n~Loser T NOTE FROP\ UTU5Nk) 1 CNE IN,� DtuETOkFAMNILCOAKIoTr \NT, I W IMNOT KE. 5LE.TO CO AE IRTO W'~4ORK kR4E-\IEF, WIEN I SkY TOt>� I fEPN TOAOFMA4, mECAV5E U4AWRKITING TR\$ "E5TERZAY'! )it 'N' Carlyle Rubes Dennis the Menace The a-.-riyj Circus Dist. by ng Feat es Synd . 'D"- .)I1. '-15 w amiyccus corn T YOU TO PLAY ROMEO, NOTQOPEO!" "Shouldn't it be called 'Open SCHOOL'?" Betty Citrus Cinemas 6 - Inverness Box Office 637-3377 "300" (R) 12:45 p.m., 3:50 p.m., 7:15 p.m. Digital. No passes or super savers. "Zodiac" (R) 12:30 p.m., 4 p.m. 7:40 p.m. "Wild Hogs" (PG-13) 1:10 p.m., 4:15 p.m., 7:50 p.m. "The Number 23" (R) 1:25 p.m., 4:40 p.m., 8 p.m. "Ghost Rider" (PG-13) 1:15 p.m., 4:30 p.m., 7:30 p.m. "Bridge to Terabithia" (PG) 1:30 p.m., 4:45 p.m., 7:20 p.m. Crystal River Mall 9; 564-6864 "300" (R) 1:40 p.m., 4:20 p.m., 7:20 p.m., 10 p.m. Digital. No passes or super savers. "Zodiac" (R) 1 p.m., 4:30 S p.m., 8 p.m. Digital. "Black Snake Moan" (R) 1:30 p.m., 4:10 p.m., 7:10 p.m., 9:50 p.m. "Wild Hogs" (PG-13) 1:20 p.m., 5 p.m., 7:40 p.m., 10:10 p.m. Digital. "The Number 23" (R) 1:50 p.m., 4:50 p.m., 7:45 p.m., 9:55 p.m. Digital. "Reno 911: Miami" (R) 4:40 p.m., 10:15 p.m. "The Astronaut Farmer" (PG) 9:40 p.m. "Ghost Rider" (PG-13) 2 p.m., 4:45 p.m., 7 p.m., 10:05 p.m. Digital. "Bridge to Terabithia" (PG) 1:10 p.m., 4 p.m., 7:30 p.m., 9:45 p.m. Digital. "Music and Lyrics" (PG-13) 1:45 p.m., 4:15 p.m., 7:15 p.m. "Norbit" (PG-13) 1:15 p.m., 7:50 p.m. Times subject to change; call ahead. Arlo and Janis Today HOROSCOPE Your Birthday: Life may take on new meaning for you when numerous opportunities present themselves to bring out the best that is in you. Handled wisely, things could make a dramatic difference in your posi- tion and status. Pisces (Feb. 20-March 20) - Don't leave anything important to you up to chance. If you find something disturbing, take the bull by the horns and corral the beast into pastures you can control. Aries (March 21-April 19) - This could be a pros- perous day for you when it comes to business dealings, stemming from a re-awakening of a project you thought had run its course. It might be ignited by a new idea. Taurus (April 20-May 20) - You could be fortunate in getting associates to cooperate in helping to fulfill a big ambition you've been nurturing. Once they're on board, they could turn into fireballs of enthusiasm. Gemini (May 21-June 20) - Seize the initiative. Some knowledge you've recently acquired can be put to fantastic uses that'll bring big rewards. Cancer (June 21-July 22) - Regarding a financial prospect that looks good, it's best not to let any more grass grow under your feet. If you stay within your own bailiwick when dealing with others you'll do fine. Leo (July 23-Aug. 22) - Team effort is always required if you hope to be successful when dealing with others, especially your mate. Virgo (Aug. 23-Sept. 22) - Your powers of con- centration are apt to be a bit sharper than usual, so be sure to put them to good uses. Focus your efforts on finding new ways to increase your productivity. Libra (Sept. 23-Oct. 23) -A change of pace might be just what you need. If you can spend a little time doing something pleasurable, by all means do so. Scorpio (Oct. 24-Nov. 22) - It looks like something exciting could be developing for you that will be of per- sonal benefit. Sagittarius (Nov. 23-Dec. 21)- You are the type of person who needs to be footloose and free of restric- tions, which may be more important to you than usual. Capricorn (Dec. 22-Jan. 19) - Be alert in financial affairs, because things are developing fast around you and you won't want to miss out on where the opportu- nities and advancements are all taking place. Aquarius (Jan. 20-Feb. 19) - You are in a favor- able cycle where your personal interests are conceded with life happening rapidly about you. This could be an exciting day if you don't take on too much. .Peanuts Blondie Today MOVIES THURSDAYu MARCH- 15, 2007 SC C S COUNTY (FL) CHR E :I CO>MITCS 3EDS (nCirus COUNTY (F'L) CHRONICLE To place an ad, call 5635966 Classifieds In Print and Online All The Time Ir.ANNA F%- "If i m .JU'.Wknw- - - -- Fa: 32)53-66 TlFe: 88)85-34 1E ai:cls i 9 * -hro icenl 6 *om I we * S *w~cro ic * n Inne.co I~~~eroa L ' �S96 -auran-. t- Lot 9c nnunee18sEn Beu c Mdca . Mdial 14bPrfssonl______eC=Sle Hl Retired Single White Male 63 yrs. old, 6ft. 185 Ibs. Looking for Slim Single Female compan- ion, 55-65 yrs old for Travel & Camping Please Call 352-697-9171 WM, 52, 5'8", 175 Ibs. would like to meet a nice lady, 38 and older to go out and have fun Please call 352-637-6449 WWF. Early 60's, likes theater, dining out, travel, oldies music, sports, line-dancing, looking for WM com- panion in 60's with similar likes. Reply to: Citrus County Chronicle 1624 N. Meadowcrest Blvd., Blind Box 1282M Crystal River, Fl 34429 O , Your Disappear.. Simply advertise in the Classifieds and get results quickly! (352) 563-5966 3 $$CASH WE BUY TODAY Cars, Trucks, Vans - rt FREE Removal Metal, Junk Vehicles, No title OK 352-476-4392 Andy Tax Deductible Recelot 3 SLIDING DOOR PANELS 4'x8' Triple pane, very heavy, bring help. (352) 628-7487 $$CASH PAID$$ Wanted Vehicles Dead or Alive, Dale's Auto Parts 352-628-4144 $$ CASH PAID $$ Are you having , Code Enforcement problems w/ Junk Vehicles in your yard?(352) 860-2545 ADULT CAT neutered, declawed, well behaved, not used to kids. Free to good home. 352-527-8638 COMMUNITY SERVICE The Path Shelter is available for people who need to serve their community service, (352) 560-6163 or (352) 746-9084 Leave Message FREE BOBCAT Free to good home, doesn't bite much. 555-1212 FREE GROUP COUNSELING Depression/ Anxiety (352) 637-3196 or 628-3831 FREE Hospital Bed, only used 3 days (352) 628-2638 FREE Large, wood, Cage 4 ft x 2ft x 2 ft. great for small animals (352) 344-2372 *FREE REMOVAL OF* Motorcycles, mowers, cars, 4&3 wheelers, RV's, jet skis, ATV's trailers, boats? 628-2084 FREE REMOVAL of unwanted househid & garage sale items, Call (352) 726-9500 FREE SEASONED CEDAR Cut & dried. Mini Farms. (352) 795-9085 FREE SEASONED OAK Hardwood, cut. (352)464-0316Gospel Is. Quick free removal of riding mowers, and an- ything w/sm.eng. 352-601-5277/726-4290 REFRIGERATOR 6yr old, side-by-side, needs compressor Call after 4pm (352) 637-0367 The Path Shelter will pick up your unwanted vehicle Tax deductible receipt given (352) 527-6500 Unwanted Vehicles ** REMOVED **- CALL (352) 220-0687 $ $ CASH $ $ JUNK CARS, TRUCKS, VANS (352) 228-9645 BORDER COLLIE, male, BIk/wht. Chain collar, Vic. Grover Cleveland/ Alabama. Homosassa CASH REWARD (352) 628-5676 CHIHUAHUA BLK/WHT Hayes/Fatima Ave, Hernando, long-hair, female, child's pet 352-220-3788 S~L69t,IE E: r,6� C- -8 IL T z t'8Z I z 6-E 9s Z 6 E19 S Zit; 8 T SUdokU *****- 4puz.com 4! 9 2 3 8 i !2- i 3 8 2 [18 6 3 8 76 9 . - F -8 ' I I 5 ___ S __ LOST BOSTON TERRIER one blue eye, one brown eye, no collar, vicinity: Hill St., Inverness Mon eve. Nov. 27, 2006. Needs medication. $500 Reward, (352) 464-3703 MINIATURE PINSCHER Black & tan, lost Mon. Vic. on Green Acres. 727-460-6433 or 352-795-0216 SET OF KEYS Vic. of Turner Camp Rd. or HWY 41 North (352) 465-7755 BOXER, MALE Approx, 1 yr. Vic. off Oak Lawn, Homosas. Mid Feb. (352) 257-0014 CHILD'S RX GLASSES Found Ernie Mill's Children's Park, Dunn. 3/11. (352)489-2201 Dunn. Police Dept. DOG Black & white, male, behind Kash-n-Karry Homosassa (352) 613-0188 Found small dog, Inverness Highlands area. Call to identify (352) 464-2486 SMALL TRI-COLOR DOG found vicinity of US 19 & Green Acres Blvd. (352) 621-0175 $5.00 BINGO Transoort Daily Trips to Mt. Dora 1st come/lst serve. Exc. pkgs. (352)527-1122 Divoices Bankruptcy i * NmeChange SChildSupport Train for high paying Aviation Maintenance Career. FAA approved program. Financial aid if qualified. Job placement assistance. CALL Aviation Institute of Maintenance (888) 349-5387 FCAN ATTEND COLLEGE ONLINE from home AMedical, Mon, Wed, Sat. Inverness & Crys- tal River, Call for appt. 352-344-5207 DO YOU HAVE A HOG PROBLEM? I'll bring the traps, You bring the camera (352) 341-5408 EXP'D CHURCH CHOIR DIRECTOR Available for Service. Bill (352) 344-2091 ROBERT CHITTEM'S Full Concierge Service Licensed & Insured Errands & Deliveries 352-533-3149/445-9601 * SOD * SOD * SOD* BANG'S LANDSCAPING Sod, Trees, Shrubs (352) 341-3032 What Destroys Relationships? Answer pg 446 Buy and Read Dianetics by L. Ron Hubbard Send $8 to: Hubbard Dianetics Foundation, 3102 N. Habana Ave., Tampa, FL 33607 (813) 872-0722 FCAN wwwadofota rescued et.com View available pets on our website or call (352) 795-9550 Need help rehoming a pet - call us Adoptive homes available for small dogs Reauested donations are tax deductible PET ADOPTION Friday, March 16th 10am-12pm Regions Bank Lecanto Hway, Beverly Hills Saturday, March 17th 10am-12pm Nature Coast Lodge Rt. 491, lecanto Your accredited High School Diploma in 30-days or less. No classes. FREE evaluation.. coam (866) 290-6596 FCAN MR CITRUS COUNTY REALTY DP. . ALAN NUSSO 3.9% Listings INVESTORS BUYERS AGENT BUSINESS BROKER (352) 422-6956 ANUSSO.COM - 4 MED/PRVT. Duty Care Appts., respite, day or night, Lic. w/ref. (352) 400-1448 Aromathierapy/ LIC. Massage Therapy Stress Relief Mgt. (352) 628-1036 Terri 2 Cremation Niches y Se by Side (307308) eye level, opening & closing costs, flower dishes. $4.500/both. Lorene @ Memorial Gardens, Beverly Hills (352) 746-4646 BRIGHT BEGINNINGS PRESCHOOL Is Accepting Applications For: EXP TEACHERS' ASSISTANT, F/T (352) 795-1240 CHILD CARE GIVER NEEDED P/T & F/T CDA nol req Experience preferred (352)637-3332 9a-11 a F/T 2 YR OLD TEACHER Exp Required. CDA preferred, Todays Child/Tadpoles (352) 560-4222 JOBS GALORE!!! EMPLOYMENT.NET C.R. Salon Seeking EXP'D HAIR STYLIST (352) 795-5859 COSMETOLOGIST Benefits. Hair/Nails, (352) 344-8282 i Nail Technician 1 I & Esthetician I * With exp. Renee's Fountain of Youth _ (352) 628-4404 Housekeeper P/T Experienced. Ref. required. Homosassa Call (352) 628-5549 CC Licensed Practical Nurse (12am-8am) nights (Full Time) GREAT BENEFITS!!" Paid Vacation, Holidays, Health Insurance & 401K Ready foi a change? The best kept secret In nursing is in Correctional Nursing, Current FL LPN license & valid Drivers license required Also hiring PRN's due to facility expansion To apply for a new challenging career visit our facility M-F 8:30am - 4:30pm 2604 W. Woodland Ridge Drive Lecanto, Fl 34461 To apply via internet corp.com M/F/VET/HP E.O.E.. Drug Free Workplace of Citrus County A Skilled Facility has openings for: RNS/LPNS F/T PRN 7-3 & 3-11 Health & Dental Bule Cross/Blue Shield of FI. 2 wks. pdtvacation after 1 yr. Come join our exceptional teamnl1 Fax Resume (352) 746-0748 or Apply in person Woodland Terrace 124 Norvell Bryant Hwy. Hernando (352) 249-3100 ARNP F/T or P/T For Doctors office and Nursing Home. Send Resume To: (352)795-7898 BRENTWOOD Retirement/ Assisted Living Has the following positions available All Shifts * FT TRANS DRIVER Must have valid CDL * PT WAITSTAFF * PT DIETARY AIDE * FT MAINT. WORKER * TEMP PT MAINT WORKER Benefits after 60 days Vacation After 90 days. CNA's Sign-on Bonus, paid by experience. Apply In Person: Brentwood Retirement Community Commons Build. 1900 W. Alpha Ct. Lecanto 352-746-6611 DFWP/EOE AIDE Nights, 40 hrs. Nursing Home Exp., some lifting. (352) 795-3117 CNA or MA Needed for busy physician's office. F/T 8- 5. Must be able to travel between Ocala & Inverness on a weekly basis, Competitive pay, health benefits, paid holidays & paid vacation. Fax resume to: (352)750-9947 or Email: pgrisales@ cfpain.com CNA's 3-11 & Rehab 611 Turner Camp Rd Inverness, FL EOE DENTAL ASSISTANT Full Time Team Player, must have experience, Benefits, (352) 746-3525 offers 2730 W Marc Knighton Ct Lecanto, FL DONOR SPECIALIST LIfeSouth Community Blood Centers is coming to the Dunnellon area & seeking enthusiastic Donor Specialists (Phlebotomists) to join our teamil Responsibilities Incl. Registration of donors, Phlebotomy, & the preparation of collected whole blood units for transport to hospitals. Must have Exc. Customer Service skills. Will provide on the job training. Background check req'd. I yr. prior Phlebotomy exp. prer'd. Email your resume to: caonsardl@ lifesouth. org EOE/DFWP EARN AS YOU LEARN Neede for a Exp. preferred. Apply ui person at JoCitrus Health art-timd Rehab Centery/ 701 Medcal CHousekeepingrt East, Inverness (352) 860-0200 Drug Free Workplace EOE LPN/ Medical Assistant Wanted for busy family practice. F/l. Exp. needed. Must be a self starter. Excel. salary & benefits. Fax resume to (352) 522-0098 Aft: Mark Barnhurst LPN / MA Busy Physicians office. Experience preferred Fax Resume & Salary requirements to 352-746-1972. MEDICAL BILLER/ TRANSCRIPTIONIST Fax to 352-563-2438 - or email cfcr@atlantlc.net Or call for an appt. (352) 795-4114 MEDICAL BILLING SPECIALISTScruitlna@ theraovmamt P/T PHYSICAL THERAPIST Flex schedule. Excellent pay rate, Interim Health Care (352) 637-3111 PA or Nurse .Practitioner F/T or P/T, For Busy Medical Office. Fax Resume to: 352-563-2512 PT/PTA WANTED For Outpatient Clinic Please Fax Resume To (352) 527-2087 or call (352) 527-8489 RN 25-35 hrs. per week. Class/Clinical Instructor for Marion/ Citrus Co. BSN or MSN. AM/PM Fax Resume to: (352) 245-0276 or Call (352) 245-4119 RN/LPN CNA/HHA'S New competitive pay rates. Call Interim Health Care (352) 637-3111 Serious about Work? LPN * CNA's Needed. Apply Mon. - Fri. 8a-4p Nursetemps (352) 344-9828 nurse-temps.com GjheGV1lage8 COPY MANAGER Looking for motivated Individual. Responsible for: Meeting plan sales goal for dealer, rack sales goal, providing accurate timely sales reports and works with design & distributing point of purchase material. Newspaper exp. preferred. Full benefit package. Apply @ 1180 Paige Place For info: (352) 750-5152 Fax to: 352-753-5664 careersinthe vlllages.com TEXPD stERVEt & KITCHEN HELP ATTORNEY WANTED To Resolved Easement Issues, for private prop- erty owners, Crystal River (813) 468-0049 HOME DELIVERY MANAGER Needed for fastest growing newspaper! Full time position to oversee our home de- livery operations. Mini- mum requirements: 2 years management exp. , demonstrated written, verbal, and communication skills. Proficient with Microsoft Word, Excel, and Outlook. Valid FL Drivers License, and auto insurance. Flexible schedule Great benefit package! Apply @ 1180 Palge Place For more information: Call (352)750-5152 Fax to: (352) 753-5664 careersinthe v llaCes.com SEALESTATE CAREER Sales Lic. Class $249 I Start 03/13/07 * CITRUS REAL ESTATE L SCHOOL, INC. * (352)795-0060* I DELI CLERK & 1 PIZZA PERSON F/T & P/T Exp'd Only Busy Workplace Apply in Person 2-4 Monday - Saturday: FERRARA'S DELI 3927 N. Lecanto Hwy. Bev. Hills 746-3354 ALL POSITIONS Apply Within MARGUERITE GRILL (352) 628-1336 BACK WATER JACKS BAR & GRILL IMMEDIATELY HIRING! Servers up to$4.50 NEW OWNER W. Main St., Inv. 11582 N. Williams St., Dunnellon EOE DOMINO'S PIZZA Is now hiring @ all Citrus Co, locations including our newest store in Beverly Hills. MANAGEMENT PIZZA MAKERS CSRS DRIVERS Please apply @ our Inverness or Crystal River locations, EXP. WAIT STAFF Apply at: CRACKERS BAR & GRILL Crystal River F/T or P/T GREAT benefits Apply In person at Sandwedge Cafe13601 SW 115th Avenue(Hwy. 200 near 484) (352) 861-7071 F/T WAITER, or WAITRESS Must be flexible, dependable .w/ transportation, Serious applicants only! 352-344-9900 352-228-1440 Front Desk Experienced Line Cooks, Servers, Bartenders & Dishwashers Apply in person Port Hotel & Marina 1610 SE Paradise Cir MC DONALD'S IN CRYSTAL RIVER ALL SHIFTS Apply in Store NOW HIRING! PREP COOKS & LINE COOKS, Experienced Only Apply within. Peck's Old Port Cove 139 N. Ozello Trail Crystal River. On Top of The World Communities Inc. & Related Entities LINE COOK Exp. line Cook Full Time SERVERS & WAIT STAFF Full & Part Time positions Available BENEFITS 401K.Medical. Dental*Vision.Life Applications available at Human Resources of Hospitality Office 9860 SW 84th Court Ocala, Fl 34481 "Come Find your place in the world" DFWP/EOE Position Available MANAGEMENT COMPETITIVE PAY 401K, Health Insurance & other benefits! Call for Directions & Details (352) 489-4620 2SR20 (352) 854-4005 or Send Resume to: humanresources@asc enterorises.com PREP COOKS LINE COOKS DISHWASHERS Apply In person 9:30am-1pm, M.- F at ROMANO'S 5705 Gulf to Lake Hwy. (352) 564-1211 VAN DER VALK FINE DINING HIRING -" Servers w" Restaurant Manager " Bartender Experience Required APPLICATIONS Accepted 10am-8pm (352) 637-1140 WAITSTAFF P/T Exp. preferred. 1855 S Suncoast Blvd. Homosassa 352-795-7030 $$$$$$$$$$$$$$$ WRITE YOUR OWN PAYCHECK Exp. phone Sales Reps Needed. Call 352-628-0187 AFLAC MANAGEMENT POSITIONS AVAILABLE Full time or Part time us.aflac.com CUSTOMER SERVICE Now hiring In your area On the job paid train- ing. P/T Flexible hrs. Call (902) 412-1840 FRIENDLY ENERGETIC SELF-MOTIVATOR With a willingness to learn all facets of operation. Apply in person: BADCOCK HOME FURN., CRYSTAL RIVER IN OFFICE SALES CAREER Mon-Fri. 9-5. Potential to earn 50K per year Motivated self-starter. Comm. & paid training. Ph blwn 10-12 or 1-4. Toll free 1-866-777-1166 or Local 352-560-0056 : doso sandersonbav.com All information is confidential. SanderSon Bay Fine Homes REAL ESTATE CAREER Sales Lic. Class $249 Start 03/13/07 CITRUS REAL ESTATE I SCHOOL, INC. * (352)795-0060* SALES/CASHIER Seasonal Positions Fast paced upscale Citrus Shop. Couples & Retirees welcome. Will train. Travel expenses paid. Call for interview. 352-572-2452 We are Expandingi We are looking for 2 Professional R/E agents. 1 Pro and 1 New Licensee AndAuctlon.com 866- 907-0199 or 352-220-0801 *Fine Homes * Acreage *Waterfront * Commercial F lorida Realty A/C INSTALLER/ SERVICE TECH Expereinced. TopPay & Benefits Call 352-628-5700 CAPTAIN Wanted For Crystal River Manatee Tours (352) 628-3450 CHET'S SEPTIC Looking for able bodied person for PUMP TRUCK CDL Class B licensed needed but not required @ first. F/T Position Apply at: 1101 Middle School Rd., Inverness Btwn 7:30 am-4:00 pm (352) 637-1411 DRIVER NEEDED Class A CDL Required Must have moving experience. Contact Dicks Moving Inc. (352) 621-1220 DUALLY DRIVER WANTED OWNER OPERATOR F-450 or bigger. No 4 X 4s. Class A CDL required. Medical card. No points. Top payl!! (352) 212-7712 FOREMAN & CREW NEEDED To run an asphalt milling machine operation with a min. of 5 years exp. Call 352-797-3537 or Fax 352-797-9223 401K/Health/Ins. EOE/DFWP LOCAL TOWER SERVICE COMPANY In search of motivated Individual capable of ascend and servicing tall broadcasting towers. Electronic/ electrical experience a plus- Training provided. Travel throughout the Southeastern U.S. Company vehicle/ fuel/hotel provided for travel. Good Pay-Health Benefits - Per Diem-Vacation & Bonuses Includedl Require clean drivers li- cense and background check. Apply in person at: Hlllghts Inc. 4177 N. Citrus Ave. Crystal River, Fl 34428 Fill In the squares so that each row, column, and 3-by-3 box contain the numbers 1 through 9. 699713 I I CIFR.US COUNTi (1L) CURONIVCLE Exp. Rock Hauler With clean Class A CDL license. (352) 341-0747 F/T MECHANIC Needed, good pay, stait immediately. (352) 746-4693 HEAVY HAUL TRANSPORT DRIVER 2 yrs, min, exp. Away up to 2 weeks. (352) 799-5724 MASONS MASON TENDERS & LIFT OPERATOR Steady Local Commercial Work. (352) 302-6641 MECHANIC For Truck Trailer Shop in Wildwood. Must have own tools. Evening shift M-F. Benefits. (352) 748-5500 ext. 224 or 232 Motor Oil DELIVERY DRIVER Must ihave Ciass B CDL with Hazmat. Apply S Whetstone Oil Co. 1021 SE Hwy 19 (352) 795-3469 Painter A entice NEEDED Fast paced environment with c work. iul or POrt :: Call (352) 400-0967 PAINTERS WANTED Citrus Cty. area. Must have own trans. Call 352-601-4582 Rainey Construction is seeing a Class A/B Hazmat Fuel Truck Driver Clean MVR Driver is to tuel and do some small maintenance on vehicles/Equipment on and off site. Good Pay and Benefits DFWP. Call 352-748-0955 TOWER HAND Starting at S9.00/hr BIdg Communication powers, Travel, Good Puy & Benefits. OT, 352-694-8017 Mon-Fri VEHICLE ALIGNMENT TECHNICIAN Able To do tires & geie iral ai uenance. Beasley Tire (352) 563-5256 $$$$$$$$$$$$$$$ WRITE YOUR OWN PAYCHECK! Exp. phone Sales Reps Needed. Call 352-.628-0187 fleGV IIage& DOCK HELP 11PM-7AM I.,!, v. �kncid. Duties le ii; ,.de iuading bt :n'i..l . troln inserter machine into cages '- ..nii s to pick up. A',ist Distnct MJnag- ers with 'oi ius duties. Distribution or newspapers, n agidines. $9/hr. Valid FL DL. App'l; 1180 Paige Place. (352) 750-5152 Fax: (352) 753-5664 careersinthe EXP. GROOvMER For Busy Shoe Must have References 352-726-1006, 795-3260 FRONT DESK Hotel experience required. Greri ber.efits. Filltiir,c. Apply in person. BEST WESTERN 614 NW Hvy i9, Crystal Riveci HOUSE KEEPER PT. Mon through Thurs. Mail Letter, Refrences & Salary to: Citrus County Chronicle Blind Box1281M 1624 N. Meadowcrest Blvd Crystal River, Fl 34429 Exp'd Housekeeper Apply in person, CENTRAL MOTEL Inverness, DFWP Imnnediate Openings .PORTA TOILET TRUCK DRIVER .HEAVY EQUIP. OPERATOR *MECHANIC Good Fella's Roll offs/ Sumter Recycling/ ACMS Please Fax Resume to: 352-568-0110 NEEDED: SCRABBLE SETS Full sets of Scrabble games are needed for a tournament to benefit the Newspaper in Education Program. If you have a set you would be willing to donate, please bring it to any of the � Chronicle offices: 1624 N. Meadowcrest Blvd. Crystal River 106 W. Main Street Inverness Or Call Annie at 563-6363 x1319. (All!1)N\(A T HELP WANTED No Exp Necessary, Travel The Country, Drivers License a plus Gd. Pay (352)603-1053 JOBS GALORE!!! EMPLOYMENT.NET K & K GLASS Now Hiringl GLAZIERS Commercial, storefront, Exp. required Call (352) 795-6446, ex 2206 P/T SECURITY OFFICERS Class D Security License required. Local. Starting Rate $7.25/hr. 352-726-1551 Ext. 1313, call between 7a-2:30p Mon-Fri. PEST CONTROL /LAWN TECH Full Time $7.50 - $10/hour, 18+ yrsold, clean driving record. Clear background check. 564-1800 SECRETARY/ HOSTESS P/T for Builders Model. Sun. thru Wed, Of every Week. 10a.5p $6.75/hr. (352) 527-7171 TIRE CHANGER Tire changer wanted must have experience and able to to work M-F 8 to 5 and every other Saturday. Must have a valid FI Drivers License Only serious applicants need apply Call Bobbie Jo to fill out an Application at 352-697-2156 Small Boat Manufacturing Co Now hiring for general fiberglass grinding, sanding, lamination. Call 352-447-1330 VAN DER VALK FINE DINING HIRING RESERVATION ASSISTANT APPLICATIONS Accepted 10am-8pm (352) 637-1140. CHI)NICLE CLASSIFIED EA General CA c= Help cI eea lel CASHIER PT Experienced/ Lottery/ Niahts/wknds a must 352-527-9013 Your orhll fslrl $7-$**/ r A/C Tune up w/ Free permanent filter + Termite/Pest Control Insp. Lic & Boned Only $44.95 for both. (352) 628-5700 caco36870 60FT Bucket JOE'S TREE SERVICE All types of tree work Lic.& lns.344-2689 A TREE SURGEON Lic.&lns.-Exp d friendly, serve. Lowest rates Free estimates,352-860-1452 JOHN MILL'S Tree Serv Trim, top, remove Bob- cat work, clearing. Ins. ic.13732 352-341-5936 R WRIGHT TREE SERVICE, tree removal, stump grind, trim, Ins.& ic #0256879 352-341-6827 Tree Trimming, land clearing, clean-ups. Tractor Service Con- crete slabs & masonry. #CBC059346 302-8999 TREES TREES TREES All types of debris removal. Bob Cat service (352) 400-5340 COMPUTER TECH MEDICS Hardware & Software Internet Specialists (352) 628-6688 CARPET FACTORY Direct Restretch,clean, repair - - Vinyl, Tile, Wood, (352) 341-0909 Shop at home REPAIR SPECIALIST Restretch * Installation Call for Fast Service C & R SERVICES Sr. Discount 586-1728 S#1 A+ Mr Fix -It I Prof. painting, Pres- I Sure washing, Home repairs. Gutter cing S & Screen repair. I 220-9326/382-3647 Lic#99990255609 . /Chris Satchell Painting & Wallcovering.AII work 2 full coats.25 yrs. Exp. Exc. Ref. Lic#001721/ S Ins. (352) 795-6533 CALL STELLAR BLUE for all Inti Ext. painting needs. Lic. & Ins. FREE EST (352) 586-2996 A# 1 L&L HOUSEHOLD REPAIRS & PAINTING No job too small! 24/7. Lic. 3008 352-341-1440rll WhatsV Missing? Sy Your Business S Ad! Cal (3sS 2).^^^ 56-29o wW LOVING CARE w That makes a difference. Will care for elderly person in my home or yours 24 hr. care. Louisa, 201-1663 AFFORDABLE, complete professional caregiver for services in your home Refs.. ,ec352-447-5952 MED/PRVT. Duty Care Appts.. respite, day or night. Lic w/ref. (352) 400-1448 PERSONAL CARE GIVER Licensed & Bonded References. Call Janis (352) 613-0078 THE OLD FOLKS HOME Vacancy; Prvt. home operated by F/T RN. (352) 621'-3868 home net A Home Daycare in Bev. Hills. Call Tara @ 270-3047 HOME DAYCARE CDA Cert. Enrollment limited. Loving environ. 352-249-8205/270-3493 P/T DAYCARE in my HOME. Taking all ages. Days/Nights. CPR Cert. i'V;Ii A;* -r m 1,- ,^^ v'Chris Satchell Painting & Wallcovering. All work 2 full coals.25 yrs. Exp. Exc. Ret. Lic#001721/ Ins. (352) 79F 6533 Artisitic Housecleaning Excellent Results! Years exp. & ref. Ellie (Cell) 586-5968 The Window Man Free Est., Com./residential, new construction Lic. & Ins. (352) 228-7295 Spiffy Window Cleaners Also Blinds, Free esti- mates, Springs Special lin� & Ins. (352)503-3558 AFPFURABLE CABINETS & COUNTERTOPS (352) 586-8415 Additions/REMODELING New construction Bathrooms/Kitchens Lic. & Ins. CBC 058484 (352) 344-1620 Additions/REMODELING New construction Bathrooms/Kitchens Lic. & Ins. CBC 058484 (352) 344-1620 DOTSON Construction 25 yrs. in Central FL. Our own crews! Specializing in additions, framing, trim, & decks. Lic. -CRC1326910 (352) 726-1708 FRAMING CARPENTRY Additions, Remodels & Repairs, etc., Ins./Lic #CC2358, 352-634-0432 ROGERS Construction New HomesAdditions Florida Rooms. 637-4373 CRC 1326872 WHY MOVE? IMPROVE! with Craftmen Builders Remodeling, Additions, Home improvements, Garages & Decks 427-2766 #CRC057657 FL RESCREEN 352-563-0104/257-1011 1 panel or comp. Pool cage rescreen, Family operated for 30 yrs. MARCH SPEC. WILL MEET OR BEAT ANY LEGIT EST. Screen rms,Carports, vinyl & acrylic windows, roof overs & storm panels, garage screen doors, siding, soffit fascia, Lic#2708 (352) 628-0562 #1 A+ Mr Fix- Itl I Prof. painting, Pres- I sure washing, Home | repairs, Gutter clng I & Screen repair. I S220-9326/382-3647 Lic#99990255609 A CAILL STELLAR BLUE for all Int/ Ext, painting needs. Lic. & Ins. FREE EST. (352) 586-2996 A# I L&L HOUSEHOLD REPAIRS & PAINTING No job too small! 24/7. Lic. 3008 352-341-1440 #734025092 'I, E I :!1' PUAIR:N Ba atr -hoinainSsesIro ites1sotnrs1-. nt. Lic. & Reasonable. 560-3265 F #1A+Mr. Fix- lt'1 I Prof. painting. Pres- I sure washing, Home repairs, Gutter clng I & Screen repair. I I 220-9326/382-3647 Lice99990255609 L IM #1 A+TECHNOLOGIES All home repairs. Also Phone, Cable, Lan & Plasma TV's installed. Pressure wash & Gutters Lic.5863 (352) 746-0141 #1 IN HOME REPAIRS, paint, press.wash, clean roof&gutters, Reliable, ,#0169757 344-4409 V Call me for sm.home repairs big contractors e A# 1 L&L HOUSEHOLD REPAIRS & PAINTING No job too small! 24/7. Lic, 3008 352-341-1440 BAKER REPAIR & MAINTENANCE - 2Cor. 8:21 "For we take thought befoce- hand and aim to be honest, and absolutely above suspicion, not only in the sight of the Lord but also in the sight of men.(Amp) Integrity, Quality & Experience All aspects of home repair and maintenance. Prompt Courteous Service Reasonable prices Call 352-563-5891 Lic. 0257482 andInsured.. Li1024. (352) 637-6255 Wall & Ceiling Repairs Drywall, Texturing, Painting, Tile Work, Framing. 30 yrs. exp. 344-1952 CBC058263 *++ B-COOL *+ All A/C & heat work Sales & Serv., Free Est. Lic.& lns serve Furn., apple, trash, brush, 726-2264 201-1422 Furn. Moving / Hauling Dependable & Exp. CALL LARRY 352-270-3589, 726-7022 J&J Moving & Hauling" Clean Outs, Relocations Odd Jobs, Yard Work (352) 628-9370 TREES TREES TREES All types of debris removal. Bob Cat service (352) 400-5340 WE MOVE SHEDS 352-637-6607 S#1A+ Mr. Fix - It1 IProf. painting, Pres- I sure washing, Home ! repairs. Gutter clng I & Screen repair, I I 220-9326/382-3647 *Lc .990255609 Serving Citrus Co. Since 1973. Free Estimates (352) 726-9260 Rhonda Mains Cleaning Services Residential * Business Rentals Weekly - BiWeekly - Monthly References * Licensed B.-.idc-i * In-u re.] Call for Free Estimates 352-682-7700 I BEACH FENCE Free est., Lic. #0258336 (352) 628-1190 813-763-3856 Cell #1 Rema Rates Free est. Ftoudto Serve You. ccc 1325492. 795-7003/800-233-5358 All Tractor & Dirt Service Firewood, Land Clear, Tree Serv., Bushhogg, Driveways 302-6955 BIANCHI CONCRETE Driveway-Patio- Walks. Concrete Specialists. Lic#2579 /Ins. 746-1004 CONCRETE WORK. SIDEWALKS, patios, driveways, slabs. Free estimates. Lic. #2000. Ins. 795-4798. CONCRETE WORK. SIDEWALKS, patios, driveways, slabs. Free estimates. Lic. #2000. Ins. 795-4798. ROB'S MASONRY & CONCRETE Slabs, driveways & tear outs Lic.1476 726-6554 Tree Trimmlng,land clearing, clean- ups. Tractor Service Con- crete slabs &masonry. ##CBC059346 302-8999 DOTSON Construction 25 yrs, in Central FL. Our own crews! Specializing in additions, framing, trim, & decks. Lic. #CRC1326910 (352) 726-1708 A TILE DOCTOR Tile & marble repairs & cleaning. 35 yrs. exp. Lic/Ins #2441 Ph.613-TILE CERAMIC TILE INSTALLER Bathroom remodeling, handicap bathrooms. Lic/Ins. #2441 795-7241 CUTTING EDGE Ceramic Tile. Lie. #2713, Insured. Showers. Firs, Counters Etc. (352) 422-2019 REPAIRS, Wall & ceiling sprays. Int/Ext Painting Lic/ins 73490247757 352-220-4845 ROCKMONSTERS, INC. St. Cert. Metal/Drywall Contractor. Repairs, Texture, Additions, Homeowners, Builders Free est. (352) 220-9016 Lic.#SCC131149747 Wall & Ceiling Repairs Drywall, Texturing, Painting, Tile Work, Framing. 30 yrs. exp. 344-1952 CBC058263 FILL, ROCK, CLAY, ETC. All tvoes Dirt, Rock, Hauling, Mulch, Tractor work, Ins. Lic. Reasonable rates. (352) 302-7325 #1 BOBCAT For HIrel Light clearing, site work, grading, etc. NO JOB too small Lic. & Ins. (352) 400-0528 New & Re-Roofs * Flat & Low Pitch SRoof Repairs * Commercial Residential Shingle - Metal - Built Up Roof Torchdown - Shakes I n tst all ati i a o s (352) 628-2557 Lucksroof.com Lifetime Workmanship Warranty Drug Free Workplace Stale Certiliod Lic. #CCC1327843 All Tractor/Dirt Service Firewood. Land Clear, Tree Serv., Bushhogg, Driveways 302-6955 ALPINE TRACTOR Land Clearing, Tree Ser. Fences, Bushhogging Sean (352)220-8723 DONALD KERNZ'S M.H. demolition, red tag cleanup, land clearing (352) 634-0329 RMD SERVICES Hauling, clearing, grading, and jobsite cleanup. 352-628-2534 TREE REMOVAL, Landclearing, Fill Dirt, Bush hogging, (352) 563-1873 TURTLE ACRES BUSHHOG SERVICE Stump Grinding & Cl. ups. No job too small Lie. (352) 341-3032 Bruce's Lawn Service Snowbird special (352) 637-5331 496-5603 cell C & R LANDSCAPING Lawn Maint., clean ups Mulching, We Show Up 352-503-5295, 503-5082 DOUBLE J STUMP GRINDING, Mowing, Hauling.Cleanup, Mulch, Dirt. 302-8852 HALLOCK & SON LAWN CARE, $20 & up. Atten- tion to Detail, reliable, 12 yrs. All Citrus County. lic./Ins. Lic. Ins. 352-465-3985 FIBERGLASS POOL Resurfacing, 25 yr. warr. Free est., lic. Ins. & ref (352) 341-4515 Greg's Marcite: New Pools/ Remodels. FREE ESTIMATE. CCFF 2636 Lic. & Inc. 746-5200 POOL BOY SERVICES Total Pool Care Acrylic Decking S352-464-3967 POOL LEAKING?? Pool Leak Detection Since 1964 352-302-9963/357-5058 POOL LINERS! 15 Yrs. Exp. Call for free estimate (352) 591-3641 All Tractor/Dirt Service Firewood, Land Clear, Tree Serv., Bushhogg, Driveways 302-6955 WATER PUMP SERVICE & Repairs on all makes & models. Anytime, 344-2556, Richard Donna's Errand Service Groceries, banking, P.O., misc. References 352-563-6680/220-9161 MR CITRUS COUNTY REALTY - ALAN NUSSO 3.9% Listings INVESTORS BUYERS AGENT BUSINESS BROKER (352) 422-6956 ANUSSO.COM PERSONAL CHEF - Will Shop, Cook, Serve & Clean. 20+ yrs of exp. Sharon 352-585-4625 0 RAINDANCER 0 6" Seamless Gutter 7" Commercial Copper & Aluminum Best Job Lic. & Ins. 352-860-0714 ALL EXTERIOR I ALUMINUM I Quality Price! 6" Seamless Gutters Lic & Ins 621-0881 I---1q - J PRO EXTERIOR SYSTEMS Safe & effective Low pressure roof cleaning 5yr. warr 352-400-5028 I~ HOME LC REPIR I IC Lic. #2776 , u C ionsc] K Insmied 4ture Coast HOME REPAIR & MAINTENANCE,INC. "Caringfor Your Home is Our Business" - Offering A Full Range of Services - Residential - "G Commercial id 628-4282 Mc,,ner, 3-15 0 LaughingStock Intemational Inc./dist by Unted Media, 2007 "He fetched it upside down again." 699714 THURSDAY, MARCH 15, 2007 7C _' AMERICA'S DRIVING ACADEMY Start your driving career today Offering courses in CDL A Low tuition feel Many payment options! No registration fee! (866) 889-0210 info@americasdriving academy.com FCAN Area Coordinators needed for High School Exchange Program. Part-time on a contract basis. Call (888) 446-5437 for additional information or fax resume to (405) 810-8714 FCAN Over 3.000 Homes and Properties listed at homerront.com DRIVER- BYNUM TRANSPORT Needs qualified drivers for Central Florida Local & National OTR positions. Food grade tanker, no hazmat, no pumps, great benefits, competitive pay & new equipment. (866) GO-BYNUM. Need 2 years experience FCAN d F ~JI ~srr~li . " mRSDAYmRCH15e2 -=nf c An iues Driver- Class-A CDL Drivers- Now hiring OTR & local drivers- New equipment; great ben- efits; premium pay package. Call Oakley Transport (877) 882-6537 FCAN Driver: DON'T JUST START YOUR CAREER Start it right! Company sponsored CDL training in 3 weeks. Must be 21. Have CDL? Tuition reimbursement! CRST, (866) 917-2778, FCAN DRIVERS ACT NOWI 21 CDL-A Drivers needed * 36-43cpm/ $1.20pm '$0 lease NEW trucks CDL-A + 3 mos OTR (800) 635-8669 FCAN HEAVY EQUIPMENT OPERATOR Training for employment: Bulldozers, Backhoes, loaders, dump trucks, graders, scrapers, excavators; National Certification, Job Placement Assistance; Associated Training Services (800) 251-3274 operator.com FCAN REALESTATE CAREER SSales Lic. Class $249 I Start 03/13/07 CITRUS REAL ESTATE S SCHOOL, INC. * (352)795-0060* Sales/Sales Managers No-Fee Distributors $9K wk high/$100K Yr $1 Million Yr/Future 2-3 Pre-set leads daily- overrides/Bonuses/ Mgrs. Not multi-level (800) 233-9978 FCAN ALL CASH CANDY ROUTE. Do you earn $800/day? 30 machines, free candy, All for $9,995, (888) 629-9968 802000033 CALL US: We will not be undersold FCAN APTS. FOR SALE 9 UNITS ALL 2/1, Crystal River, $500,000. By Owner 352-634-4076 Billboard Connection- Exciting "home based" franchise opportunity In the outdoor advertising industry. Low invest- ment with unlimited potential. For further information please contact Anthony Foley at (866) 257-6025 FCAN Cash for your American Coin Collection, gold jewelry, military items & old paintings. Traveling throughout Florida & paying premium prices. For appointment call Ralph (800) 210-2606 FCAN FLOWER SHOP FOR SALE Located In busy plaza. Great clientelle & business. Van inc. $75K (352) 697-0843 Investors Needed ASAP $200,000. Will Pay 12% Interest or can convert to stock within 6 months as we are doing a $15 million dollar stock offering. Secured by over $3 million dollars worth of Real Estate & Equip. Good Business & Personal credit. (352) 344-2829 Learn to buy Foreclosures, tax liens, and rehabs for pennies on the dollar. Mentor walks you through each deal A-Z to ensure SUCCESS (800) 433-4556 FCAN VENDING ROUTE: Snacks/Soda, All brands. All sizes Energy & Healthy tool Great equipment! Great Support Financed, w/$6,500 down (877) 843-8726 local #B02002-037 FCAN Decorative Concrete Business for sale, Truck, Trir, all equip. Will train all phases of business. Brandon (352) 302-8825 Thriving Pizza & Sub Take-out business Lg. cust. base. growth opp. for hands on owner. PROFITABLE. Owner will train$154,900. Call Doris Miner at C-21 JW Morton RE for more Info. 344-1515/726-6668 VENDING MACHINE BUSINESS FOR SALE Easy route, earn $900-$1000/month Crystal River area, $5000 for all (352) 628-0844/634-3904 - . Facing ForeclosurellI Delinquent mortgage or bad credit? Get help today. Call (800) 632-6977 Madison Equity Corporation, Time for a fresh start. Ref#NP100 Great Lakes 4 seater Hot tub w/ cover, blue tub, wood like skirt, Includes electrical hookup parts, like new A/C & HEAT PUMP SYSTEMS. 13th SEER & UP. New Units at Wholesale Prices -- 2 Ton $780.00 - 2-1/ ton $814.00 - 3 Ton $882.00 *Installation kits; , *Prof, Installation; *Pool Heat Pumps Also Available Free Deliveryl 18000btu cooling,1200btu heat $500 Day 352-628-2112/ Night 628-6934 GE refrigerator, almond 21.8 cu.ft., dishwasher, stove & microwave, $275 for all (352) 228-7670 GE STOVE Range top, self cleaning, bisque color, NEVER BEEN USED! $500 352-746-4628/400-1528 KENMORE Sears best, stacked washer/dryer, 110v good cond., Barely used $250 352-726-4217 Kenmore Washer & Dryer, exc. cond. $200; (352) 795-1085 REFRIGERATOR Amanna, 20 cubic ft, freezer on bottom, $300 0B0. (352) 697-1604 STOVE/MICROWAVE COMBO (1 piece) Good Cond. $75 neg. (352) 489-0018 Washer, $125 Dryer, $125 Will Deliverl (352) 564-0903 2 SALES DESKS Wood, Exc. Cond. $50/ea. (352) 422-0226 CHERRY FILE CAB. 29"w x 29"h x 20"d Uke new $60 860-0444 COMPUTER KNEELING CHAIR $125, Unused (352) 564-0123 Contents of Gift Shop AUCTION THURS. MARCH 15 4000 S. Fla. Ave. Hwy. 41-S, Inverness Auction: 5 PM Incl: new custom clothing, handbags & jewelry Longenberger baskets, 13 guitars, 4 clarinets, amps. Suede 3-pc LR set, riding mower, plus complete Inverness estate! Web; www. dudleysauctlon.com (352) 637-9588 AB1667 AU2246 12%BP 2%Disc ca/ck ST. PATTY'S DAY ONSITE ESTATE AUCTION SAT. 3/17 9AM Highland St., off US 19 Crystal River Antique oil lamps, Eastlake marble top table, 300+ pcs. creamers & pitchers, Bow front cabinet, stacking book case, bottles & barn treasures stacked to rafters, unpacking this weekly Also '54 GMC Box truck dudleysauction.com AB1667 AU2246 10%BP 48" STONE TROWELING Machine, 18mos. old. Used 10hrs, $1500. (352) 628-3337 Air Compressor Craftsman 5HP, 30gal., 120V, 7.5 amp 200psi, 50ft. rubber hose, 3 attachments $250. (352) 527-1138 Chain Saw Runs Good $75. (352) 464-2172 LITTLE GIANT LADDER SYSTEM Never used $275 (352) 344-9426 36" SONY TV 36" Sony Trinitron, excel- lent condition.$250 call 352 527 6959 52" RCA COLOR TV Good Cond, $550 0B8 (352) 726-0483 METAL ROOFING SAVE $$$ Buy Direct from Manufacturer. 20 colors in stock with all accessoles. Quick turn around Delivery available. (352) 498-0778. Toll free (888) 393-0335 code 24. com FCAN COLLECTORS VCR TAPES Viewed very little Over 150 tapes Sell $1 ea.. min. 30 tape purchase 352-344-3112 COMPAQ WIN XP Internet ready $250, scanner $20, printer $20. more Info call Joe @352-527-6433 COMPUTER E MACHINE Win, XP, Front USB Ports, 256MB. 17" Xerox Flat Screen LCD monitor, Plug In Sony DVD-RW Plus extras. Exc. cond. $250 352-637-5227 Computer Desk, (352) 795-1085$20: L-Shaped Computer Desk, $20; (352) 795-1085 COMPUTER Windows XP works great all hardware and printer Included $300 obo call 352-476-6388 DELL PENTIUM 3 WINXP Office 2000, monitor. $100 352-245-4632 DIESTLER COMPUTERS " Internet service, New & Used systems, parts & upgrades. Visa/ MCard 637-5469 Game Bundle, 45 PS2 games, w/ memory cards, 2 controllers and PS2 system $325. (352) 726-1593 PENTIUM computer Internet ready. Case, monitor, keyboard, mcwjq. Sfrtt75 oho '83, 850 JON DEERE w/loader, bushhog, box blade, disc, $5,900. obo (352) 860-0134 Cub Lowboy154 Tractor 5FT belly mower 3 point hitch, 4-cyl., $2,600 abo (231) 852-0061 Homosassa area PORCH LOVESEAT Chair, & Floor Lamp. $150. Meadowcrest (352) 563-1248 White wrought iron glasstop round table, 4 chairs, $125 2 lounge chairs, I upright w/cushions, $65 (352) 586-5114 2 LOVESEATS, I CHAIR, 1 OTTOMAN Pale pink leather. Good Cond. $200 (352) 726-7106 2SETSII Blue Sofa & Loveseat w/huge pillows! (Lg.) Very good cond. $750; 5 PC. Wicker Set $179 352-794-0265/270-1888 3 LT. WOOD BAR STOOLS Uphold. Seats $75/set. (Less than 3 mos. old). (352) 465-8332 3 PC. BEDROOM SET Inc. Bed, frame, dresser, & night stand, $275; COUCH & LOVESEAT Floral, good cond. $100 (352) 795-4864 4 kitchen chairs, $40 La-Z-Boy recllner, $35 (352) 560-7783 4 PC. LIV. ROOM SET Like Newl, $175 3 TIER BLK. BEVELED GLASS Plasma STAND $175 BEDS + BEDS *:- 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 Blonde entertainment center with lights, fits 52" TV, $225 2 blonde end tables, $80 All In exc. cond. (727) 858-0607 Broyhlll Dusty Green sectional sofa, 2-seat unit with arm, 1 chaise unit with arm plus 1 Irg. matching chair, $975 firm (352) 382-7086 BUTCH BLOCK TABLE Solid maple w 4/chairs Like Newl $325 obo; CHEST OF DRAWERS Exc. Cond. $125; (352) 746-6144 CHERRY END & OAK END TABLES SETS $150/SET 0B0 (May divide) WINDOW AC Whirlpool 12,000 B1U $150 obo (352) 746-6144 CORNER HUTCH OAK Made In N.C, Looks brand newly New $800/Sell $250 RECLINER Lazy Boy Slim Line $140 obo (352) 465-6112 COUCH & LOVESEAT matching with fold out BED, off wht with pattern, $300 obo, call 628-1732 DINETTE SET Rd, It. wood, w/4 chairs & leaf. < 6 mos. old. $250; DINING ROOM SET Rect., it. wood, 4 chairs, uphold. seats w/buffet & hutch. $450 (352) 465-8332 Dining set, heavy pine, table, 5 chairs & bench, $600 obo. Loveseat & Hutch, $80 (352) 726-7849 Made, white washed. Pecky cypress. Holds 27" TV. 5'X5' $250obo (352) 746-7261 Executive Desk, 24X54" $50; Bakers Rack $10; (352) 795-1085 KITCHEN SET Wicker,Glass top, 4 chairs, Exc. Cond. $150 (352) 270-1966 Lexington Sofa & Chair, tan (gold) like new $600 firm. Matching coffee/sofa tables, gold $250. (352) 522-0103 Loveseat hide-a-bed, $50. China cabinet 84"H, 75"L, 16" deep, 2pc. w/coffee table, $245. (352) 228-7670 Preowned Mattress Sets from Twin $30; Full $40 Qn $50; Kg $75. 628-0808 QUEEN SIZE BED w/lighted headboard, "-.-,-l -,_ 3.: y J' complete (352) 795-2754 ROCKER/RECLINERS Matching Mauve $50ea/$80 both QUEEN/FU. HDBR. Cherry Finish $60 Good Cond. 382-4557) Like Newl Exc. Cond. $300 (352) 628-5598 TABLE AND CHAIRS In/Out Dr use. Fiberglass wicker, oval, glasstop. $175 (352)465-6051 MR CITRUS COUNTY REALTY ALAN NUSSO 3.9% Listings INVESTORS BUYERS AGENT BUSINESS BROKER (352) 422-6956 ANUSSO.COM Plant stand $5 8x11 braided rug $75 (352) 560-7783 The Path's Graduates, Single Mothers, Needs your furniture. Dining tables, dressers & beds are needed, Call (352) 746-9084 TWIN BEDS Two complete beds w/ Serta box spring & matt., lyr old, all linens Incl, $350 firm (352) 344-0424 3 Mowers, 2 runs, 1 needs primer button, Chain All for $100. (352) 637-0046 BRUSH HOG 6' International, Heavy duty. Good Shape $695. OMO 352-563-0205 BUSH HOG 4ft, $350 (352) 628-0824 Chipper Shredder Yardshark, 8HP, $165. Walk behind weed eater, craftsman, 6.5 HP, $115. (352) 586-9498 COMMERCIAL GAS BLOWER Redmax, backpack EBA430, elec. start 60hrs. Start/runs like new $150 352-746-2968 COMPOST TUMBLER Very good cond. $175. 341-7777 *FREE REMOVAL OF* Motorcycles, mowers, cars, 4&3 wheelers, RV's, Jet skis, ATV's trailers, boats? 628-2084 Garden trailer, Sears dump type for lawn tractor paid $130 new, will sell for $70. Excellent cond., (352) 860-1541 RIDING LAWN MOWER Bagger, trailer, mulcher, 14HP, $750. (352) 746-2887 SPRING MOWER REPAIR Hernando, Pick up & Delivery, Quick Service, Don Mead 400-1483 WILL HAUL AWAY Unwanted riding lawn mowers In East Citrus Co. (352) 726-7362 #1 BEVERLY HILLS 2 Family Thurs -Sat. 8-3 Brick a Brack & Collect. 506 California (Off SJ Kelner) #2 BEVERLY HILLS Thurs. & Fri. 8-2 Sat.8-12 Multi-Family Sale! Scoop to Nutsl 4363 N. Sacramento #3 CITRUS HILLS Thurs. - Sat. 9-3 Furn., Paintings, dolls, glassware, tools. 2249 E Celina st. off Croft Ave. #4 FLORAL CITY Moving sale, furniture & furnishings, Sat. & Sun. 9a-3p Singing Forest MH Park, Lot 285 #5 HERNANDO Fri. & Sat. 7-? Everythina must ao! Off 200 or 491 to Dawson follow the signs. Rain or shine 3349 E Nancy Ct. #6 HOMOSASSA Thurs. Fri. 9-5, Sat. 9-2 Multi Family Yard Sale 4825 W Oaklawn St. Lots of New & Old Items. #7 HOMOSASSA Thurs. - Sat. 9-3 Music equip.,lots of misc. & collectibles 8190 Chassahowitzka St #8 HERNANDO Thurs. Fri. Sat., 8am 5 FAMILY, Guy stuff, turn. hshld, kids stuff plants, end of lake front drive follow pink signs #9 INVERNESS MULTI-FAMILY Sat. & Sun. 8-2 Furn, kid's toys & clothes Etc. 7745 E. Allen Dr. #10 INVERNESS Thursday, Friday, & Sat. March 15, 16 & 17 HO Trains & misc. items 1339 S Bea Ave. #11 INVERNESS 2 FAMILY SALE Fri. & Sat. 8-3 4741 S. Cascade Ave. #12 LECANTO Thurs.-Sat. 9-Noon Office Furniture, & Supplies 2067 N. Lecanto Hwy. #13 PINE RIDGE Fri., Sat. Sun. 9a-2p, Hunting, archery fishing, general Household. 2625 W. Axelwood Dr. #14 PINE RIDGE 4 CAR GARAGE FULL Furn, Jewelry, lots of new stuff. Fri. Sat. Sun 9-4. 2955 W. Mustang BEVERLY HILLS ESTATE SALE Rain/Shine Fri. & Sat. 8-4 185 W. Royalfern PI. CITRUS SPRINGS Whole House of Furn. Tools, Patio Set, Pictures, Knick Knacks, etc. (352) 527-3530 CRYSTAL RIVER Fri. & Sat. 16 & 17, 8-5 7915W. Rlverbend Rd. HERNANDO 2 family. Fri. Sat. & Sun. 7am-? Misc. tools, household furn., clothes, etc. 1926 E. Evelyn St. off Page Ave HOMOSASSA House Moving Sale Furn, glassware, linens, Hshld. Items, misc. Thurs & Fri. 8am-? 6139 S Royal Dr. 352-628-6915 INVERNESS Yard Sale. Thurs. & Fri. 8-2 Books, household Items & misc. 2501 E. Mars St. behind Bealls INVERNESS 1766 S Paradise Point Yard Sale, Fri. Sat. INVERNESS Lake Tsala Gardens Annual Yard Sale Frl. 8a-3p Sat. 8a-Noon Huge amt of misc Items Bake sale, coffee, donuts, hot dogs, 44-E, 1/2 ml. from Cox Lum- ber. Follow large pink signs to Clubhouse. No early birds INVERNESS Thurs. Fri. & Sat. 1339 S. Bea Ave. INVERNESS Yard Sale, Fri. & Sat. 16 & 17 8am-4pm Multi families. Inverness Landings take 41-S to Mossy Oak Dr., Furniture Deoot. blue building on 3 BEAUTIFUL PROM GOWNS, SIZE 7, 8 & Med, $40 each. (352) 586-3781 PROM GOWN Elegant, Strapless gown, by Jessica McClintock, For Gunne Sax 5-1/2 $200 352-726-1526 2 TV Stands, $5 each; Sharp Vacuum Cleaner, $10; 2 Lg. Table Lamps, $10@. (352) 795-1085 6 x 9 x 6 Dog Kennel $50. Swing Set $40 (352) 628-4414 120 GAL. MOBILE HOME PROPANE TANK Exc. cond. includes accessories. $200/obo (352) 621-3627 AIR COMPRESSOR Small $60 (352) 637-3973 ART LESSONS Very patient, very areas. Call after 5pm (352) 726-3089 BEGINNER WEIGHT BENCH SET $25 FULL SIZE BASKETBALL HOOP $40 Both in good Cond. (352) 746-5441 Brass Chandelier 10 candle, excel. cond. $50. (352) 382-4559 Delta Commercial Table Saw $300. oper- ates on 110V or 220V, Rattan By Broyhill 5 pc. liv/Fla. Rm. Set. $350 (352) 400-0981 FIREPLACE MANTLE Solid wood, painted, $175.00 HARMONY UNIVERSAL REMOTE, $100 (352) 563-9987 FOR SALE 1Fabric Ducky Shower Curtain w/Rings & Mats .All for $25.00 352-220-6281 GARDEN TUB Heated, jetted beige tub, like new $200 (352) 746-1184 GENERATOR 9hp,120/220 output 20amp 6.5 gallon tank. Great shapel $350 Call anytime (352) 489-4301 GENERATOR Coleman 5K, 10 hp. B& S. Runs well $200 Lecanto (352) 637-1527 GO-CART 6.5HP, lows hrs,, runs good, $550 0OB Call after 10am (352) 249-1125 HOMEOWNERS Did you sell your property? Are you still receiving payments from that sale? Wouldn't you rather have all cash now instead of those payments & possible problems In the future? If so call Fred Farnsworth (352) 726-9369 --IRRIGATION-- New Systems & Repairs. Ins. Lic.3000 *Q.- ALL VARIETIES Cut outs & New Homes. Installed & Rolled. A.L. EVANS (352) 637-5825 KENMORE Washer & Dryer Set Very Good cond, $165 for beth. NEC CRT MONITOR 17" flat screen $65 (352) 465-2853 New Generator, diesel, portable commercial, HDY 5000, LX, Rated Power 4.8KVA, peak power 5.5 KVA, 120/240-12V $1,500. (352) 795-7172 (352) 228-2112 NEW STATIONARY MASSAGE BED. $900. (352) 794-0100 Persian rug, Handmade red, blue, cream. 9' 9"x12' 2" Cost $3,200 Exc. $1,200 (352) 341-0787 Pool Round 18ft. new motor, & extras Must take all. $100. (352) 527-1554 SCREEN DOOR - For 3'0"X6'8" door, (Bronze) Gd. cond. $20.00 STOVE HOOD VENT - (White) 30" almost new $25. (352) 382-1154 SHOWER BASE - New Fiberglass 34X48" Cost $150 - sell $50. (352) 563-0205 SOD. ALL VARIETIES Bahla, $80 pallet, St Augustine, $150 pallet. Install & Del. Avail. 352-302-3363 SOFA: 2-tone beige check, exc. cond 91" $350 obo 15" Dell moni- tor, 2001 model, black w/speakers, $75 obo (352) 344-2570 Iv.msg. Ventless Propane 'Gas Heater N.IB. 7700-19,000 Btu, Includes fan, kit & legs $100. (352) 563-0205 WANTED: 10 HOMES To show off our new Ufetime Exterior Paint. Call now to see if your home qualifies. (800) 961-8547 (Lic# CBC0101 11) FCAN Blk&Wht,16-20 pges per min.muti funct.$850 call 352-341-4244 you pk up Adjustable Bed w/ comfort massage like new, $700. (352) 726-2596 HOVEROUND MPV 19" reclining seat, user friendly joy stick, anti tip wheels, excel, cond. $800. (352) 621-0320 Motorized WHEELCHAIR Orig. $2,500/Sell $1,000 CHAIR LIFT $500 Both Exc. Cond. (352) 527-9391 RASCAL 4 WHEEL ELECTRIC MOBILITY CART - Elevating seat, new batteries, very good cond. $450/obo (352) 628-7381 CONGO BONGO Professional $400/Set; UPRIGHT VINTAGE PIANO Needs tuning, all keys work. $100 OBO 352-249-1149/208-2212 GUITAR LESSONS Specializing In Finger style playing. Reas.Very patient. Two openings left for the year 352-726-3089 after 5pm CInmus COUNmY (FL) CHRONICLE Stainless Double Sinks (3) some w/ faucets $120. for all Whirlpool Dish Washer Black $45. (352) 586-9498 , 203 SCHWINN RECUMBENT EXERCISE BIKE Exc. Cond. Pd. $400/Sell $350 obo (352)447-2020 EXERCISE BIKE Pro-Form 928L Barely Usedl $200 TREADMILL Pro-Form 765 EKG. $500 Both Exc. Cond. (352) 527-9391 Fitness Machine Electric weight adjustment, was $550. Now $120. (352) 621-6890 Nordic Track Ski New $600. Now $65. Leisure Walk 5000 MPEX, manual treadmill $40.(352) 586-9498 BICYCLES: Men's Diamondback Fleetstreak. Women's Specailized Hard Rock. $100 ea. Call (352) 726-7949 before 7pmr GOLF CARTS From $1,000. Sales, Service, Customizing BAY BREEZE GOLF CARTS 5164 S. Fl. Ave. 400-4945 GOLF CLUBS Orlimar Tri-Metal 3, 5, & 7 woods, $20. ea. All 3 $ 50. Reg. graphite good condition (352) 527-6804 RUGER REDHAWK Stainless steel, 44mag, like newly $450 (352) 422-5922 SHOTGUN Beretta 12 go. Blue Onyx. Uke,OOOLB AXLE, lumber rack, toolbox, gd. shape w/new fires, $1500. (352) 628-3337 2 IN 1 CRIB W/ MATTRESS White. Excellent condition $50 (352) 746-4341 BASSINET - Winnie the Pooh $40; WATERFALL SWING $55 Both very good cond. (352) 795-4864 CRIB, Winnie the Pooh (near new) Electronic, converts to youth bed $100; LG. ROCKING CHAIR $40 (352) 795-48 WROUGHT IRON BIRD CAGES Both $125. (352) 465-0721 AKC Apricot toy poodle, female, with chip, 3-yrs old. Asking $800 (352) 726-8149 CHIHUAHUA PUPS Reg. 2 Female $300/each (352) 344-5397 Home Raised Pups, Maltese, Yorkle, Shih-Tze, Chihuahua & mixes 352-347-5086 Mon, Wed, Sat. Inverness & Crys- tal River. Call for appt. 352-344-5207 Humanitarians of Florida Low Cost Spay & Neuter by Appt. Cat Neutered $20 Cat Spayed $25 Doa Neutered & Spayed test test test test WANTED - 2 Horse Bumper Pull Trailer, Good cond. Reas. (352) 628-4121 IBR unfurn. $400 mo I BR RV Park Model, turn., $325 1BR, scr. rm, carport, $525. No pets/ Smoking 352-628-4441 CRYSTAL RIVER 2/1I/2, SW w/scm. porch, on /2 acre. $600 mo.,Ist/last/sec. no pets/smoking, ref. req. (352) 795-8705 CRYSTAL RIVER Country Living, 2BR/IBA Large Lot, close to downtown, pets wel- come, $450. mo. 1st & last 613-0370, 212-2668 DUNNELLON Large 1BR on, st & 1984 CHAMPION 2/1, $5,000 OBO You move (352) 628-1036 NEW MANUFACTURED HOMES Hwy. 441 Ocala,- Doublewides start $39,900/$500 down, EZ financing. $5,000 in FREE furniture ROOMS-TO-GO! Free delivery. FL Kinder Homes (352) 622-2460 or FCAN Over 3,000 Homes and Properties listed at homefront.com PALM HARBOR HOMES Certified Modular & Mobile Home Specialists. Call for FREE Color Brochures (800) 622-2832 FCAN REPO'S, REPO'S, REPO'S WE HAVE REPO'S 3 & 4 bedroom homes. $500 down or no closing costs. CALL FOR MORE INFO.352-621-9182 4/3 ON 1.75 ACRES Price REDUCED! On waterfront canal to Lk. Rousseau. 2002 Updated! $167,900 (352) 302-4057 CLASSIFIED kCC4.4 arae^ L-JYrd SleiRa **. A win/win for everyone! -/Call Susan 563-3282 B9B37 Seven Special Garden & Lawn Supplies Category 328 IF YOU DO NOT SELL YOUR ITEM IN 10 DAYS WE WILL GIVE YOU 7 DAYS FOlR FREE. (Restrictions apply, private party only) Good for the month of March Call / (352)563-5966 c~rtGeneralt^ WORDY GURDYBY TRICKY RICKYKANE 1. March 15th women saying "I do" (1) Every answer is a rhyming S pair of words (like FAT CAT and DOUBLE TROUBLE), and 2. Swarth Antony, ally of Julius (1) they will fit in the letter ffjj]-- lfT iu ~ squares. The number after the Definition tells you how many 3. Assassinate yet even today (1) syllables in each word. To win |- | I| - m l l $10, send your original rhymes with your definitions to this 4. Basic belief of Julius's council (2) newspaper. All entries become I I I II I1 1 I I I the property of UFS, Inc.' ' 5. Stellar performer from Julius's land (2) 2007UnitedFeatureSyndcate, Inc. ____________________ - -- - Thanks and $10 to Julian Ochrymowych of 6. Meal giver to a state head like Julius (2) Basking Ridge, NJ for n#7. Send your entry to I 1 this newspaper. 7. Huggers of Julius, murdered this day in 44 B.C. (2) SHazaanbS SSHVavo L HAA H~ [ gV T' 9 NVWMOHS NVWOT " LaN .H aiVNHas I' TISJ TIIS XHVP Xm HV g' SHC(IF SaaI "1 3-15-07 SaSNSV CITRUs Covirn (FL) CHR.ONICLE FISHERMAN'S DELIGHT INVERNESS 2/1 FURN. Concrete Sea Wall, Ready to move in, 80'x100' lot. Rm for RV. $89,500. (352) 341-4609 Older, fixer upper, 2 BR, w/ addition & fishing pier, where Canal meets River in Nobleton, $48,350 obo (352) 726-9369 Over 3,000 Homes and Properties listed at homefront.com 4 x 40 DW, /2, Large lot, Old Homosassa, less than 1 mi./Homosassa River, appl's included $65,500. (352) 382-1168 (352) 302-0436 1/1 SW HERNANDO Near Lake! Appl's, scrn prh, RV crprt w/wrkshp. $35,000. Owner fin, w/apprv. cred & down pymnt. /1V2 DW 2005, Jacobson 3/2 w/ carport & shed Villa Terr- Homosassa $150,850. Realty Choice (352) 628-9341 Cell (352) 212-6991 FLORAL CITY 14x60 MH on 1/2 acre lot 2B/2B, CHA, near Withlacoochee River $55900 863-412-6306 or 863-559-8096 HERNANDO OWN A HOME < $50K For 2 weeks only! Call now! This won't last! 2/2 w/land near water! (352) 746-5918 Holiday Heights Cry Riv 1995 Merit Home, DW, 3/2, 2 car carport,dbi lot 160' frontage, new carpet, 3sheds, close to mall, 5min. from Lake Russo, 352 795-4272 HOMELAND MUST SELL! New 3/2 on 1/2 acre. Nice oak trees, quite, good location. Sell @ $105,900 or $2,000 down, $688.20/mo.@ 6% int. W.A.C. 352-621-9182 HOMOSASSA 3/2 on 1.25 ac. Over 2,000 sf. Carport, Ingr. Pool, Scr. Encl., too many options to list. $149,900 $159K (352) 746-5912 HOMOSASSA New 3/2 on 1/2ac >1800 Sf. Drywall finish, privacy fence, apple. $129K (352) 746-5912 INVERN. 3/2 ,.25 Ac. Exc. Cond. RENT TO OWN! 10% dn. $670/mo 352-464-7650 INVERNESS 2/1 on 1/2 Ac. Newly renovated. Must Sell. $59K (352) 746-5918 INVERNESS, 2or3BR/2BA double carprt, scr rm 1/2 AC, great condition $59,500 (352) 586-1505 on 1 acre. Large family room, F/P, wet bar, eat in kitchen w/ island, deck, driveway, 5yr. warranty, 5% int., $838.00/mo. W.A.C, Call for directions 352-621-9183 OPEN HOUSE March 3, 3/2/2, DW 1 ac, XXL Pool, Jacuzzi, gazebo, 2 decks, pondcarIl 5 *, 55+ Community Phone 352-795-7161 14x60, 2/2, in 55+ Park, Furnished, Lrg. screen porch, good cond., $22,500 (352) 344-1094 or 344-1002 2/2 Furn. Singing Forest 55+ Fun park, too many activities to list. New furnace, A/C, hot water heater. $15,750 352-344-2420 2/1/1 SW, 55+ fully furnished, Lecanto Hills, $15,000. (931) 260-7002 312 SW in 55+ PARK Fully turn. Roofover, CHA. SHARP! $19,500 (352) 476-2902 55+ Park, Crys. River '84 2+2 14x66' w/12X30 add-in CHA. Covered prkg. Furn, quiet, lots of rm, shed, deep drvwy. $14,900 352-795-2894 BEAUTIFUL 55+ PARK Quality, new DW 2/2, * 2x6" walls, carport, porch, shed, etc, $64,500 (352) 726-5789 Crys. River VIg. 55+ 2/2 W/D, scrn. crprt/shed clbhs & pool. $39,900. Neg. (352) 795-1744 CRYSTAL RIVER '00, 3/2, attached dbl. carport, huge 500 + sqft unattached work shop, lanai & courtyd in back Gated Community $115,900. 352-563-5648 Crystal River Village 2003 24' x 40' 2/2 carport, porch, shed Upgrades, $60,000. 352-697-0295/634-4921 CRYSTAL RIVER VILLAGE Beautiful 24X62 home Overlooks lake. Sun porch & lanai. Near shopping, Nice golf cart incl. $55,000 (352) 563-0557 CRYSTAL RIVER VILLAGE Spacious 2BD/2BA, DW, Adult Community Corner Lot, close to shopping, hospital $39,500 (352) 302-0261 (352) 564-2799 DRIFTWOOD 55+ on Lk. Rousseau; 1/1 Great view & fishing Camp. turn, Fl. Rm., shed, crpt, Exc. Cond, $23K (352) 447-4830 FOREST VIEW ESTATES '85 Palm Harbor Great Loc. Pool, clbhs. & more. Move-in ready, comp. turn. 2/2 DW, whichr. acc. New sod & sprklr. $56,900. (352) 563-6428/ 352-563-1297 Forestview Estate '98, Palm Harbor 2/2 DW, lanai, on water, ext. long. DW, shed, sprk. sys., W/D, move in ready, turn. neg. $82.K (352) 257-9001 Forestview Estates 1998 2/2 DW, on pond, turn., exc. cond., $68,000 obo (352) 563-2676 HOMOSASSA, nice 2004 DW, Shed, $46,500; Cozy 2/1 C/P, shed, furnished right down to linens. $14,900 In quiet 55+ Park. 352-628-5977 INVERNESS 2/2/crpt 55+, new LR carpet & vinyl, camp. turn. apple's, CHA srn. rm. shed , roofover $23K 352-560-3302/344-1002 LAKEVIEW Furnished 12 x 50 MH 1/1, camp. remod., new carpet & paint in/out. Ceramic tile. $12,900.1-888-202-1718 apple , WEEK WACHEE 55+ 2+/2, shed, scrnd prch, W/D, LR, DR, crnr, prop. Storm windows & new insullation. $50K (352) 597-8207 Over 3,000 Homes and Properties listed at hometfront.com HOMOSASSA Manatee Camoground 2 Trailers $550/mo. or Purchase for $3,000 + $450/mo. lot rent. Boat Slips $150/mo. Call for Details (352)628-5337 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 info@DroDeriv managmentgrouo. coam CRYSTAL RIVER 2/1 $600/month (352) 228-7328 CRYSTAL RIVER Newly Renovated 1 bedrm efficiencies w/ fully equip kitchens. No contracts necessary. Next to park/ Kings Bay Starting @ $35 a day (includes all utilities & Full Service Housekeeping) (352) 586-1813 3/2/2 Awesome Rent to Own Termsl Brand Newl $995./mo Low down. Move in ready! (407) 227-2821 Crystal Palms Apts. 1 & 2 Bdrm Easy Terms. Crystal River. 634-0882 CRYSTAL RIVER & INVERNESS 1 & 2 Bdrm & Studio (352) 795-2626. INVERNESS 2/1 CHA, W/D hkup, gar. Ig, clean & prvt. $695/mo, (352) 422-3217 Crystal Palms Apts. 1 & 2 Bdrm Easy Terms. Crystal River. 634-0882 GARDEN VIEW APTS Under New Mngmnt 211, New paint, new carpel. W,'D. Water, sewe & garbage Included. Several to choose from Call C-21 Nature Coast (352) 795-0021 www-c21naIure BEVERLY HILLS, Been turned down? Do you have cash, a good job & want to be a homeowner? We have many properties available for lease option, and we have the people who can help you fix your credit. Please call (954) 553-2074 2700+ sq ft Bldg. Can divide into Med/Prof/Retail Pine Ridge. Your floor plan. (352) 527-9013 COMM. STOREFRONT Hwy 44 Crystal River, high traffic. All until. included in $424/mo. 352-563-1717/400-1375 Crystal River US 19 office/ warehouse space 800 + 1000 sq. ft. avail. $850-$1800. mo, + tax 352-634-0129 Broker/Owner CRYSTAL RIVER New Office/Retail spaces for lease/rent. Hwy 19 frontage, 326 to 1075 sq ft. Waybright Real Estate Inc. (352) 795-1600 HOMOSASSA Indust. Bldg Loc. Rooks Industrial Prk. 972 sf., water, sewer, 1/2 ba, AC, Ig. bay door. $650/mo + elec. 352.382.2700.302.3574 New Industrial Bldg. Prime Location Citrus Industries Industrial Pk, Off Rt. 41 1250 to 5000 sq.ft. i2 bath, hot water, 200 amp sep. electric each bay, large Bay Doors, Fully insulated. Avail. Immediately 352-726-5832 NEW PROFESSIONAL OFFICES 1,320 sf. Fully completed & ready to move in toa Located Hwy, 44, Lecanto $1,300/mo. + CAM Call today 352-634-1776 For more information Cit. Hills MEADOWVIEW 2/2/1 Villa avail immed $895+ sec. 352-746-1094 CITRUS HILLS Condo, 2/2, long term/ short term, Min. 3 mo. Jorge (352) 484-4815 INV. GOSPEL IS. 2/2/2/1 Twnhs. clean, 1500 sf. Incl. trash, lawn $825 mo (352) 201-2800 INVERNESS 2/2/1, LANDINGS Asking $950. Annual Judy B. Spake, LLC Shown (727) 204-5912 INVERNESS 3/2 Beautiful new T.H.. $920/mo,. st/last/sec. (352) 476-1663 Sugarmill Woods On Golf course. Beauti- fully updated, 2/2/1, scrn prh. Nice view, year lease. $750 mo. (352) 544-8070 CRYSTAL RIVER & INVERNESS I & 2 Bdrm & Studio (352) 795-2626 FLORAL CITY 2/1 Dead end st. Laun. rm. No smoking/pets, $550 inc. wtr. + sec. deposit Avail 4/I 352-428-6057 INVERNESS 2/1 W&D H.U, Priv. st. no pets/smoking, $550+1st & sec. (352) 637-5598 INVERNESS 2/1 CHA, W/D hkup, gar. Ig, clean & prvt. $695/mo. (352) 422-3217 INVERNESS 2/1 Crprt. Backs up to Golf Course, redecorated. $750/m0.352-563-8868 478-456-5254 LECANTO New duplex, 2/2, Ig yard, $625/mo. No pets (352) 489-5075 SUGARMILL WOODS 2/2, incl. water, yard, Scr Prch, private.$725 mo. (352) 382-1866 CRYSTALRIVER LANDINGS.COM 8 - IBR Suites, 795-1795 HERNANDO 1/1 Comp. furnished. $500 moves you In. 352-465-0871/344-8268 -BH r NO CREDIT CHECKII Rent to Own 2-3 BR's 352-484-0866 visit jademisslonl Brand Newl $995./mo Low down. Move In ready (407) 227-2821 CITRUS SPRGS 4/2/2 $1050/mo. 1st. i2acr lot. $900, (352) 795-2204 GORGEOUS 2/2/2 SMW sm pets Ok, $800/ mo. 352-592-9811 fv If you can rent You Can Own - Let us show you how. Self- employed, all credit Issues, bankruptcy OK Associated Mortgage 352-344-0571. coam INVERNESS 2/1 New CT/paint. very clean, Sm. Pets ok. $720 Sec neg. 561-632-3372. or 954-415-5579 INVERNESS 2/2/1, close to shop, no pets or smoking $775mo.(352) 344-2500 CITRUS COUNTY REALTY SERVICES * Residential * Commercial leases * Vacant Land Sales Property Management * Weekly/Monthly S Rentals " Seasonal Rentals " Efficiencies " Remodeling " Handyman Services (352) 726-5050. homestead.com RENTAL HOMES AVAILABLE All Areas. Great American Realty (352) 637-3800 BEVERLY HILLS 1/1 Fl. Rm H20 & Garb, ncl. $695/mo.First & Last No Smoking. Pets Neg. 352-249-1149/208-2212 BEV. HILLS 2/1/1 *Lg. Scrn Rm., Fl, Rm* * $695 352-400-4275 * BEVERLY HILLS 1/1 Fl FIRm, Scr Rm. & Util, Rm, CHA, $560 mo. (352) 527-0160 BEVERLY HILLS 29 N Lee t 2/1 ,$750mo 49 Roosevelt. 2/1/1. Irg fenced yard, $750mo. 59 S Monroe2/1, $725 mo. 15 S.Monroe. 2/1.5/1, $775,mo I1st, last & Sec. 352-476-5235 Condo, Pool priv. $775/mo. 810E. GfIcrist (352) 697-1907 CITRUS HILLS 2/2/2 Caged Pool, 1 ac, Mint! $975/mo. Option or sale 352-564-1436/586-1255 CITRUS HILLS 3/2/2 Pool, very clean, lease option. $1250/mo. 1st. Sec. (352) 527-0033 CITRUS SPGS 5/3+ 4,800 sf $1,795. mo (954) 325-9878 opt to buy+ (352) 465-8239 CITRUS SPRINGS 3/2/2, Fam nrm. Gazebo lawn inc. $975. (352) 697-1336 or 697-0746 CITRUS SPRINGS 2050 Howard Place 2/1.5, W/D, $700. 1st, last & Sec. 352-476-5235 CITRUS SPRINGS New 4/2/2, 2200 sq. ft. $1,000. mo.341-1859 CITRUS SPRINGS NO First/Lost/Sec. Lease Option Purchase FIRST MONTH FREEII $3K dwn, $995/mo New 3/2.5/2 (772) 408-7287 CR/Hom 2/2/1 Scr. porch, fenced yrd, CH/A, $715. 212-2051 CRYSTAL RIVER 3/2 house In nice neigh- borhood near Golf and water. $750/month. 352-686-9355 for details. HERNANDO 3/2/2 G.C. home,1,800 sf., FP, $1 K/mo. (352)228-0192 HOMOSASSA 3/2/2 Pond view, 1500sf, pets, $750+DEP, 352-489-2967 HOMOSASSA SMW New 2/2/2 & 3/2/2 From $875/mo, (352) 382-4044 If you can rent You Can Own - Let us show you how. Self- employed, all credit Issues, bankruptcy OK Associated Mortgage 352-344-0571. comr 4/2/2 Gospel Island $1,000/mo. 2/2/2 Chain of lakes $850 (954) 663-0405 INVERNESS Nice 3/1 on V2ac. New appliances, $875 + 1st, last & sec. 1011 S Arlene Ave 352-476-5235 Lecanto 2+/2 Bonus room, optional detached gar, clean, . Fireplace. 1500 sq. ft., $900/mo 302-9793 RENTERS WANTED Own your home $500. dwn, pymt From $850. per mth Free approval less than perfect credit O.K., Limited time. Call (352) 390-8083 SUGARMILL WOODS I YEAR NEWI 4 BR/2BA/2CG $189,900 or Lease Opt. Owner/Broker (813)781-1341 SUG. Ist mo. FREE! (954) 629-6991 SUGARMILL WOODS NEW beautiful house 4/2/2 2700 SQFT. $1250/mo. Call 954-214-8586 CRYSTAL RIVER 2/1, canal, nice Duplex No pets, $650+ dep.' (813) 986-6630 DIXIE SHORES 3/2 Seawall/ dock, No smoking. 1st/last $1100 p.m. Long lease less. 352-795-0102,lv. msg. FLORAL CITY 3/2/2 Newer open lakefront no pets/no smoking $1,100/month (352) 344-2500 HERNANDO 2/2/2 Recently renovated. $950/mo (352) 622-3555 INVERNESS 2/1., Fam. Rm., Liv. Rm. City Limits, near shop- ping center, $725.mo (352) 344-2440, (352) 726-4783 INVERNESS Pritchard Island 2bed/2bath townhouse with lake view first, last, security deposit r red 750/month contact 352-637-4069 OZELLO 3/2 Remod. Gorgeous gulf view. Fantastic fishing & private. $1,100 mo. 727- 856-3020 PRITCHARD ISLAND 3/21/2 wtrfrnt Twnhs. W/D pool, fishing, $1000/mo 352-237-7436/812-3213 WATERFRONT APTS. 1/1 Rent includes water, sewer & trash. 1st mo. & sec.. No pets: Avail. now. (352)563-5004 BEVERLY HILLS Ref. req'd. $400 + until. (352) 746-0391 CITRUS SPRINGS 4,000 sf. home $399/mo.(954)325-9878 1-3 STUNNING NEW CIT. SPRGS HOMES FOR RENT or RENT TO OWN Poss. 4th BR/den 2,458sf. $900/ mo & UP. 352-239-3700 Buy/Rent to Own In B. Hills, 2/1, or 2/2, Several To Choose, Startlng at $94,900.(352) 489-8124 CITRUS SPRINGS New HomesI Deborah K.W 352-362-5583 CRYSTAL RIVER MH Priv. bath, Full house access. (352) 794-7640 HOMOSASSA Mobile to share, $75 Wk 352-628-9412 INVERNESS $150 wkly. incl. util. (352) 423-0981 ROOMMATE WANTED Single male looking to share house on 1 ac. In liO,.0 lg, $150/wk. includes until, laundry (352) 628-2643 oceanlN Rent new, beautiful, private oceanfront home. Close to Myrtle Beach and historic Wilmington. Perfect for larger group retreat. DeChef.com (910) 579-3535 FCAN 5BR $59,9001 3BR $10,000 Bank foreclosures availl For Listings 800-366-9783 Ext F012 DIKSMOIN PUBLISHER'S NOTICE: All real estate advertising in this newspaper is subject to Fair Housing Act which makes it illegal to advertise "any preference, limita- tion or discrimination based on race, color, religion, sex, handi- cap, fqlnillal BUSINESS BROKER (352) 422-6956 ANUSSO.CQM ACROPOLIS MORTGAGE *Good Credit *Bad Credit/No Credit *Reduce your Pymnts *Purchase/ Refinance *Fast Closings Free Call 888-443-4733 1596 SF on 1.3 Acres Homosassa, near 19. Great office potential! Possible Owner finance. $199,900 Ron McEvoy, EXIT(352) 586-2663 5,000 SF BUILDING Has everything Great for Car Lot, AC Co., Retail. Zoned light indust, on busy hwy. in Inverness. Terry McPherson. Era Suncoast 352-220-1443 1,1Q00F QONED GNC Block bidg.Extra Lg Lot, $181,000 INVERNESS 352-795-7541/302-7667 LECANTO Nearly 10,000 sf. (352) 795-0800 For more Information. Michael Harris Fine Homes, Acreage, Waterfront, Commercial (352) 220-0801 FloridaRealtvand Auction.com RFlrida Realty . Auedon, Ina c., extra 14X20 garage/workshop. Ready to move In. $135,000. Virtual tour 352-489-0386/208-0714 9572 N Travis Drive 3/2/2 Awesome Rent to Own Termsl Brand Newl $995./mo Low down. Move In readyl (407) 227-2821 A STEAL @ $165K 3/2/2 w/2,215 sf., built 2007. (352) 746-6161 Brand New "Country Style" Home for Sale 1 ac. MOL, crnr, lot. 3/2/2 2300SF. Price re- duced $189K for quick sale" NO" Real estate commissions "NO" Im- pact fees. Builder pays closing cost. Appliance allowance, Financing available, See at 4402 W Gallagher St. (352) 564-8222 FOR SALE BY OWNER I 2/2/1, ScrnRm. All I | App.Move-n Cond. _ $125K (352)746-2957 I .- ,-, - mmJ i BEAUTIFUL 3/3/2 POOL HOME w/Prlv. guest suite. $334,900. View at ad ID 20191355 352-746-6451/425-2358 Best Deal in Pine Ridge 3/2/21/2, $289,900. 5479 Nakoma Dr., See Home at www. bvownercltrus.com 772-913-4338, 527-8339 BETTY MORTON C=Eh MRO Lic. Real Estate Agent More Service Less Cost Reali;'tect (352) 795-1555 GORGEOUS POOL HOME 3/2/2 newer pool home on 1.2 acrs. 3000 tot sqft/2000 S.F.L.A. New stainless steel kitch apple, cent. vac/ tile/carprt. Quiet beaut, area. Must see. Asking $299,000 obo/lease opt or owner fi- nan. Call (352) 573-8068 Need a mortgage & banks won't help? Self-employed, all credit Issues Bankruptcy OK. Associate Mortgage 352-344-0571. corn NEW 4/3/2+ Pool Home Surrounded by beauti- ful oaks. 3,580 sf. 10' ceilings, Corian Coun- ters. $435K (352) 746-6161 .9o LISTING Full service/MLS Why Pay More??? No Hidden Fees 25+Yrs. Experience $150+Mllion SOLDIII Please Call for Details & Market Analysis RON & KARNA NEITZ BROKERS/REALTORS CITRUS REALTY GROUP (352)795-0060 POOL HOME 3/2 split Ranch style home onr 1 acre for $269,000. 407-566-8637. $0 Down, Move In approx. $700 mo. 2 or 3 Bed, 1 bath, New roof, new C/H/A, New car- pet, New hrdwd. floors, fresh paint, new bathrm (352) 201-9003 w NO CREDIT CHECKII Rent to Own 2-3 BR's 352-484-0866 visit Jademission.com 100% FINANCING 2/1 CHA, Remodeled, Tile, new roof. $95K (352) 527-3017 2/1/Carport 89 S. Adams St., New carpet & apple's, Totally turn., dishes, linens, etc. $95,000. (352) 302-8810 2/2/1 Partly Furnished new heat, air & refrigerator, $109,900. (763) 482-9099 3949N. Blazingstar Way 2/2/2, Austin Model $144,900., Corner Lot Move in condition, OPEN HOUSE This Sunday 1-4pm (352) 746-7215 Buy/Rent to Own In B. Hills, 2/1, or 2/2, Several To Choose, Starting at $94,900. (352) 489-8124 NO MONEY DOWNII 2/1/1 w/Fam. Rm. 1,210 la., Brand new: bath, kit. w/appls., paint, carpet, tile, etc. See photos @ miscitrus.com; Public access; #312994 $104,900 (352)464-2160 LISTING Full service/MLS Why Pay More??? No Hidden Fees 25+Yrs. Experience $150+Million SOLDIII Please Call for Details & Market Analysis RON & KARNA NEIIZ BROKERS/REALTORS CITRUS REALTY GROUP (352)795-0060 QUICK $$$ FOR HOMES any area, any cond. Dan 352-601-3863 TRADE: car,boat,rv,etc Down. Owner Fin. 3bed/2bath Carport New kitchen, baths, carpet, paint, tile, appliances $129,900. 352-637-2973 www. 1 homesold.com 3/1/1 BLOCK HOME on approx. 1/2 Ac. Recently remodeled, $99,900 (352)624-1987 3/2/2 KENNS1NGTON 1 Ac, Heated, Caged Pool, Summer Kit., Lg. Lanai. Vinyl Enc. Circle decor. dr.$289Kobo. No Deed Res.352-341-3071 3/2/2 POOL HOME START PACKINGIII Cul-de-Sac, Crystal Oaks. Alarm, Fruit trees $224,000 John Malsel III Exit (352)794-0888 Bonnie Peterson Realtor Your Satisfaction Is my Future (352) 794-0888 (352) 586-6921 Exit Realty Leaders of Crystal River TIMBERLANE ESTATES 2 TENNIS COURTS w/Great 3/2/V2/2 Home Call (352) 746-4063 or view a virtual tour ID TPG3087 FSBO $325K THURSDAY, MARCH 15, 2007 9C, FAIRMONT VILLA 2/2/2 Furn., Spacious, Great Location $199K Near Clubhouse & Pools C21 Alliance. Kathy Haines 352-422-4283/249-4433 Fairmont Villa 3/2/2 Malnt. free, living, Fire- place, app. u grades Must Sel Realtor forsale.com ERA AMERICAN FSBO Brentwood 2/2/2 "Shows Uke Newl" Loaded w/upgrades. A MUST SEE! Won't last @ $179,900. (352) 422-4086 GOLF VILLA 2/2/2+ Terra Vista Cust. Home 5th Green Skyview G.C. $359K Jim Zlligen Franklin Realty Consult. (352) 746-7512 MEADOWVIEW VILLA in CITRUS HILLS 2/2/1 w/FI. rm. New appil's. Flooring & mechanicals new In '03. turn, neg. 2324 N Santa Rosa Pt. $159,000. 217-898-6961 LISTING Full service/MLS Why Pay More??? No Hidden Fees 25+Yrs. Experience $150+Million SOLDIII Please Call for Details & Market Analysis RON & KARNA NEITZ BROKERS/REALTORS CITRUS REALTY GROUP (352)795-0060 $259,900 (352) 746-1673 CANTEBURY LK ESTATES 3/2/2 Brand Newl Pool, Clb hs, golf.$164,900. 401-744-4077 2 or 3BR, 2BA Screen porch, Old oaks, citrus trees, access to lakes, $125,000. 1850 S. Westlake Dr. (352) 212-4835 Owner/Agent 2/2/2, family rm, vinyl enclosed lanai. NEW CH/A & windows. Completely remodeled $155,000 352-344-8892 buyowner.com #62274 2/2 Town House, city w/s, very clean nice location, $86,900. 100% fin. (352) 860-2554 3/2/2 POOL HOME Highlands on 1/3 ac., Open Split Plan, 16 X 32 Inground pool. Moving, Make offer $149,900 (352) 726-0437 3/2/2 $125,900 1006 Princeton Lane Fam. rm. fenced yard Open Sat. & Sun. (352) 344-1907 (352) 563-4169 BETTY MORTON Lic. Real Estate Agent More Service Less Cost Citrus.com (352) 795-1555 4/2/2 Pool Home, 1 Ac. 3,600 sf undr rf. $195K A MUST SEEI 352-249-8205/270-3493 See @ #161692 Beautiful Golf Community home, 3/2/2, split plan w/cath. ceilings, lanai, close to everything, $209,900. 352-726-6075 Highlands, 2/1.5/1 - $129,000 (352) 220-6227 Remodeled Kitchens & Bathrooms & More; New Carpet & Fans & Fresh Paint Galore; Floors made of Tile & Countertops Tool A House Completely Remodeled & Looks Just Like New! Large fenced backyard through the French doors you'll find a little slice of Heaven & Some piece of mind, Rush to the Bank & Get a Small Loan & Come Buy Our House & Make it YOUR HOME HOME FOR SALE On Your Lot, $110,900. 3/2/1 w/ Laundry Atkinson Construction 352-637-4138 Llc.# CBC059685 Inverness Golf & Country Club area 3/2/2- master suite, double sinks, walk in closets. Lots of updates 1/2 acre cul-de-sac $237,500. Make offer (352) 344-3948 * REDUCED ** GOLDCREST, 6/31/2/22, 7 Lakes Subdivision Caged Pool, Gas FP, Den, 3,624 sf. $309,000. county appraisal, need to relocate, (352) 201-1265 3/2/2 SPLIT PLAN CBS home on oversized lot In quiet area. Fully remodeled and sur- rounded by Ig. oaks, this home is ready for you. All for only $140K Agent owned. (352) 344-4811 i QUICK $$$ FOR HOMES any area, any cond. Dan 352-601-3863 REDUCED - LIKE NEW 3/2/2, new roof, Ig. lot 418 Hiawatha Ave. $168,900 (352) 527-9268 Reduced, Owner must relocate. 3/2, 2100 sq.ft. New roof, St "Lot of house for the money" LMS 313-017 SELL YOUR HOME Place a Chronicle Clasfied ad 6 lines, 30 days $51.95* Call 726-1441 563-5966 Non-Retundable Private Party Only *~5 per aadflonao llrne Some Pshlctilons May apply) Villa 2/2/1 Spacious w/Cathedral ceiling. Furnished with new appliances & carpet. $144,000. (352) 341-5838 Want to be Close to Everything? Nice 2/2/1 with new roof, new heat & air plus a fenced yard. Asking for appraised value of $115,000. (352) 344-2752 or 400-2476 Whispering Pines Villa 2-3Bdrm. 2Bath, IGarage, new flooring & paint outside main- tenance provided, re- locating out of State will sell furnished or un- furn. $129,000. obo 352-586-5064, 419-852-0990 A GREAT DEALII CUTE LITTLE HOUSE w/adj. lotl $120K 9071 S. Tara Point. comn Crossland Realty Inc. (352) 726-6644 GREAT HOME ON 1 AC.I/1 on 1/4 ACRE Block home, 6 X 24 Scrnd room., FP, Newer carpet & apple. Inc. W/D $135K (352) 212-7269 $50k BELOW APPRAISAL Like new 3500 sf., Coun- try Ranch, on 2.4 acre corner lot, w/ attached 2 story garage apt. Reduced to $360.k Contact owner 352-220-8310 I BETTY MORTON I Bonnie Peterson Realtor Your Satisfaction is my Futurel (352) 794-0888 (352) 586-6921 Exit Realty Leaders of Crystal River CAPE CODE 2 STORY NEW 5/2.5/2, 2,900 SF, front porch, $299K Alex Choto, Fl. Realty & Auction.(352) 628-0968 Charming 3/1, On large water accessible lot, completely renovated and move in ready. 100% Financing avail. $130,000. (352)628-1062. Home on Beautiful 7 Rivers.Golf & C.C., Private course. Choice location! Seeing is be- lieving!(352)563-5080 Lake, River, ponds, pool & spa. Don't buy till you see this house at buyowner.com TPA-62724 audio tour @ 1-877-940-7777 TPA-62724 Open Sat & Sun. 1-4pm Need a mortgage & banks won't help? Self-employed, all credit Issues Bankruptcy OK. Associate Mortgage 352-344-0571. com 3.9% LISTING Full service/MLS Why Pay More??? No Hidden Fees 25+Yrs. Experience $150+Mllillon SOLDII! Pis Call for Details & Market Analysis RON & KARNA NEITZ BROKERS/REALTORS CITRUS REALTY GROUP (352)795-0060 POOL 3/2/2 on 1 AC. * CRYSTAL MANOR * Reduced to $269,900. CrvstaiRiverHotDeal. cam Palm Breeze RIty & Inv (352) 302-8007 TRADE:car,boat,rv,etc Down. Owner Fin. 3bed/2bath/1garage New carpet, paint, tile, $139,900. 352-637-2973 '03, HOMES OF MERIT 1600sf, 3/2 on 2 acres, paved driveway, front & rear decks, carport, no Brokers, $145,000. (352) 628-2541 2/1/I CB, 1.2 acres, fenced' lanai, 2 sheds, new paint, flooring & appliances, $115,000 1/2 acre, sprinkler sys., quiet dead end street. Cash or lease opt. $169,000. (352)503-3333 3/2/3 Royal Coachmanl 2031 sf. Tray Ceilings, Coriaon, Tile, $239,000 Charlene & Peggy EXIT Realfy(352) 464-4179 FSBO 4/21/2/3 Solor heated pool home. 2200sqft on halt acre fenced, fireplace, for sale/lease. $220K BEAUTIFUL 5/3/2 (2 La Master Sutfes)+Million SOLDIII Please Call for Details & Market Analysis RON & KARNA NEITZ BROKERS/REALTORS CITRUS REALTY GROUP (352)795-0060 CLASSIFIE.DS M"Inverness ca Homes "^H"Crst i v|ei rik lf I olmfirs^ 1� Fi 10C THURSDAY, MARCH 15, 2007 w -I0Le~s ~ KIi]1 S2/2/2 SALE/LEASE SNew, $149,000 352-592-9811/428-4507 SUGARMILL WOODS 1 YEAR NEWI 4 BR/2BA/2CG $189,900 or Lease Opt. Owner/Broker (813)781-1341 SWEETWATER POOL HOME IN THE ENCLAVE model home condition 2746 Sq. ft,, see It @, ID#AMA0299 $375,000. 352-382-3879 - I RIVER 3/2 on 5 ac. Stables, Shed, fncd. w/2 pastures. Paved road front w/ paved drive. Lg. Oaks $159K (352) 746-5918 HOME FOR SALE On Your Lot, $110,900. 3/2/1, w/Laundry Atkinson Construction 352-637-4138 Uc.# CBC059685 JUST REDUCED $25,000. 10 acres 3/2 DW, 1850 sf fenced w/ stalls, -Steal it for $210,000; ',' Michele Rose REALTOR "Simply Put- I'll Work Harder" 352-212-5097 thorn@attantic.net Craven Realty, Inc. 352-726-1515 3.9% LISTING Full service/MLS Why Pay More??? No Hidden Fees 25+Yrs. Experience $150+Milllon SOLDI!! Please Call for Details & Market Analysis RON & KARNA NEITZ BROKERS/REALTORS CITRUS REALTY GROUP (352)795-0060 CITRUS COUNTY REALTY SERVICES * Residential * Commercial leases * Vacant Land Sales Property Management * Weekly/Monthly * Rentals * Seasonal Rentals * Efficiencies * Remodeling * Handyman Services (352) 726-5050 Over 3,000 Homes and Properties listed at homefront.com -QUICK $$$ FOR HOMES any area, any cond. Dan 352-601-3863 r-' T-' REAL ESTATE CAREER I Sales Lic. Class $249 I Start 03/13/07 CITRUS REAL ESTATE I S SCHOOL, INC. 1 (352)795-0060* Vic McDonald (352) 637-6200 --. . . " ,. r^ -'" - � i';* SELL YOUR HOME Place a Chronicle Classified ad 6 lines, 30 days $51.95" Call 726-1441 563-5966 Non-Relundable Private Party Only "S5 pe-r aJdlTlor. [ince (6ome Re,-lctlon. May aRpply) MR CITRUS COUNTY REALTY ALAN NUSSO 3.9% Listings INVESTORS BUYERS AGENT BUSINESS BROKER (352) 422-6956 ANUSSO.COM ONE OF A KIND Bring your horse! 3/2/2 on 2 ac. 2 paddocks, FP Ig. cgd pool, fiberoptic lights, spa, many extras! $255K (352) 726-8348 Over 3,000 Homes and Properties listed at homefront.com 3/3/2 WATERFRONT Country Neighborhood So many posslbilitiesi 1.02 Acres $184,900 Harley Hough, EXIT REALTY(352) 464-4179 Lease Option, Inglls,/2V2, $99.800. SUPER BUVl (352) 860-2554 3/2/1 new paint, tile, carpet, W/D, glass enc lanal. watervlew villa. Low maint, fee, adj. 9-hole golf, free RV & boat strg. Comm pool. 15- mins from 1-75. $135K Best Deal in Moorings Call 352-201-2800 CH, Forest Ridge 2/2/1,. $132K memb. avail., (352) 726-1812 HUNTER SPRINGS One bedroom, 1st floor, central air/heat, com- pletely remodeled, new appliances, granite counter tops, boat slip, common area Tiki Hut, private swimming area, covered parking, beau- tiful view, $265,000 - (352) 207-8463- appointment only INVERNESS VILLAGE 2/2, 1st floor, remod., encl. lanai, strg., fully furn. Asking $89,900 (352) 344-2325 (904)716-7524 NATURE PRESERVE VIEW! THE ISLANDS of CRYSTAL RIVER Waterfront, 2/2, 1,600 sf. furn., Asking $295,000 (352) 563-0103 TSALA LAKE ACCESS Turn- furn. $129,000. obo 352-586-5064, or 419-852-0990 Over 3,000 Homes and Properties listed at homefront.com SEE Home on Beautiful 7 Rivers Golf & C.C., Private course. Choice Location Seeing Is be- llevlng!(352)563-5080 AAHI Cool Mountain Breezesl Murphy, North Carolina, Affordable land, homes, mountain cabins, on lakes, mountains & streams. FREE BROCHURE (877) 837-2288 Exit Realty Mountain View Properties FCAN Ashe High Country Is an Investors paradise. Discover the NC Mountains. Vacation homes, log homes, river tracts, view lots & farms. Century 21 Heritage Realty (800) 865-4221 realty.com FCAN BEAUTIFUL NORTH CAROLINA. Winter season Is here! Must see the beautiful peaceful mountains of Western NC mountains. Homes, Cabins, Acreages & Investments. Cherokee Mountain Realty GMAC Real Estate. mountainrealty,com Call for Free Brochure (800) 841-5868 FCAN BUY NOWI Coastal North Carolina Land or Homes. Low Taxes & Insurance. Call Today! Coastal Carolina Lifestyle Realty (800) 682-9951 Lifestyle.info FCAN Gated NC Mountain Property Reservation only Summer Grand Opening Fiber Optic Community has 3 lifestyle home choices. Start S50K. One half to 3.5 acre sites. highlandsatwalnut creek.com (888)625-8950 HOT SPRINGS, NC Gated residential community surrounded by National Forest. Paved roads, clubhouse, waterfall, pond, hiking trails and more. Lots starting at $60K. Call (877) 477-3473 FCAN Owner Held Financing Available. 10 single family homes rented and making money. For sale by owner. All cen- tral heating/ AC, 2006 upgrades. Seller will manage. All In 3 mile radius In south St. Pe- tersburg, Florida, Pinellas County. $9,500 per month net Income less $50 management fee/expenses. Call Jay Vernette (813) 477-9551 FCAN UPSTATE NY CATSKILL Mountain Sacriflcel 5 acres- $59,900, NOW $39,900. Valley views, fields, & woods on country road Near skiing & lake Terms! (888)918-6264 www. upstateNYland.com Waterfront 116' Scottsboro, AL Elegant 5000 sq.ft. Brick Home. Media room, formal areas. Fireplace, 5 bedrooms, 4 baths, 1 acre, $699,900. Debbie Mathis Realty (888) 574-2525 (256) 599-5910 FCAN U:;=81- . Deb Infantine EXIT REALTY LEADERS (352) 302-8046 2 TOWN HOMES 3/21/2 $197,500 2/2 $185,000 'Dock, Comun. Pool, all Appli's., scrn prch. more 352-237-7436/812-3213 2/1 CONDO Waterfront Community. Dock, Pri- vate Lanai $69,000 8740 E, Moonrise Ln. Floral City (352) 344-0151 2/2 (2003) BY OWNER on Ozello Deep/Wide Canal. Stilt home, new dock, boat ramp. Dbl, lot. Bonus rm. Immac. Cond. Furnished $385K/ Unfurnished $379K (352) 795-3366/ (904) 673-2427 2/2, FL Rm., Open Lake, Boat Dock, city water/ swr. 1214 Lakeshore Dr. nyv. $249K 352-341-0509 (434) 489-1384 Cell 4/3.5/2 In YANKEETOWN 3,514 sf. Formal areas, French Drs. gazebo & guesthouse.$1,285,000 Nancy Lewis, EXIT REALTY(352) 302-6082 I BETTY MORTON I Lic. Real Estate Agent More Service Less Cost Reoa* iect pmutot.�" ChuckTomberlin Fine Homes, Acreage, Waterfront, Commercial (352) 795-1182 FloridaRealtvand Auction.com ,F Plorida Realty Auctlanr, Inc. Direct Riverfront Homosassa Dock, cvr'd slip, approx. V1 ac. 2400 sf. 2/2/2, $599,000. 352-220-4304 Lk. Henderson, Invern. 702 S. Juniper Wy. $229K (352) 341-0509 (434) 489-1384 Cell Over 3,000 Homes and Properties listed at homefront.com RIVERHAVEN VILLAGE 2/2 ! 352-637-2973 1homesold.com Alex Choto Fine Homes, Acreage. Waterfront, Commercial (352) 628-0968 FloridaRealtvand Auction.com Plxorida Realty & Aveusion, [nc. -. ECtu sCut 2 CLEARED LOTS 80'x120' ea. On hard rd w/access to River Boat ramp. $26,500 both /obo (352) 726-4222 CIT. HILLS-FAIRVIEW EST. V WOODED 1 ACRE V Quiet Area * $85,000. " (352) 220-3769 r CRYSTAL RIVER Mini Farms 2.5 Acre Lot Well, Septic & Impact fees paid. $47,900. (352) 586-9349 GOLF COURSE LOT#9 Hillside in Terra Vista, Skyvlew CC, $95,000 Call (352) 638-0905 A * A + AA GOOD LAND IS HARD TO FIND! IT'S OUR SPECIALTY SINCE 1989 realty. com Crossland Realty Inc. (352) 726-6644 AIOALot 2 LOTS on Galveston Rd. E. of Rt. 41 90x125 & 80x125 Lot 4 & 5 bl. 1625. $35K ea. 386-569-3998/693-3214 Buy One Get One Free Financing Avail. Free Weekend getaway flnance.com (732) 996-3785 CITRUS SPRINGS - Prime Bldg. Lots.Triple lot, HI&Dry, area of new homes. $13K ea. Sngl. Lot 1 Str over, hi & dry, $13K. 352-621-5006 CITRUS SPRINGS MUST SELLII 40 W. Vlnce PI. Unit 18, 0.23 Ac =12K Zoned RS2, Paved Road (214) 228-6458 CRYSTAL MANOR AREA off Rt.488 2 Lots, Side by side. 80X120 ea. $12K ea. (352) 563-5170 (775) 230-2240 CRYSTAL RIVER Deep Water Canal, quick access to CR & Gulf, Surveyed/water, 85 x 115, $295,000. obo (352) 220-6056 INVERNESS TWO - Residential 1/2 AC. LOT Truck & Crosby Ct. Suited to home/MH .'.3 (352)341-3300 Los fo Sale' SUGARMILL WOODS Dbl. Crnr Lots. Prime Bldg. Lots. Closest to Suncst Pkwy. HI-dry, quiet, $38K ea. 352-621-5006 ASHEVILLE, NC AREA Breathtaking mountain view & river parcels. 1 to 8 acres from the $80's. Nature trails, custom lodge, river walk & more. 5 mln from town of Hot Springs. Call (866) 432-7361 FCAN Coastal GA. 135+ AC, $249,9001 GA/FL border. Mature pines, abundant wildlife. Only an hour from Jacksonville, FL! Call now (904) 206-5114 ext. 1195 FCAN FL Land Bargains 5 to 100 acres 30% to 50% below market. Call (866) 352-2249 ext. 1200 FCAN GA/FL BORDER 23.55 AC, only $109,900 (was $124,900) coastal region. Wooded, loaded w/wildlife. Easy drive to St. Simons Island! Subdivision potential CALL NOWI (800) 898-4409 ext. 1178 FCAN Got North GA Mountain Fever? We have the cure... We can help you find the perfect place here. Sales and rentals, Toccoa Wilderness Realty & Cabin Rental, LLC, WlldernessRealtyand CabinRental.com (706) 632-2606 or (706) 435-8735 NorthGeorgla4Sale@ tds.net FCAN GRAND OPENING Save $20,000 "One Day Only" Sat. FCAN Lake Access Bargain 1+ Acres, $34,900 with FREE Boat SlipsI RARE opportunity to own land on spectacular 160,000 acre. recrea- tional lake Mature oak & hickory, park-like setting with lake access. Paved rd,, underground utilities. Excellent financing. Prime waterfronts available. Call now (800) 704-3154, ext. 915 FCAN NC MOUNTAINS Large 2 to 10 acre tracts in last phase of popular gated moun- tain community with great view, trees, waterfall & large public lake nearby, paved private access, $69,500 and up. Call now GA LAND BARGAINS 20+ AC Great price, location and financing! FCAN NEW Coastal Georgia Community 1/2 to 2 acre homesites starting In the $200s. Marsh front with live oaks, palm trees and panoramic views. Perfect for family retreat, weekend getaway or retirement. Showing March 24th by appt. only. Call (866) 432-7318 FCAN NEW PRICE 10+ AC, $299,000 Upscale Equestrian Gated Community! 200 Year old Oaks. Established lush pastures. Paved private rds., u/g utilities. 2 miles from HITS! Excellent financing! Call (866) 352-2249 ext. 1156 FCAN Owner Says Selll 10 acres, $150,000, 50% below cert. appraisal. Great location in So. Central FL. Paed rd, util's, exc. financing. Call (866) 352-2249 ext. 1000 FCAN Owner Says Selll 36+ AC- $197,000 50% BELOW recent Cert. Appraisal Nicely wooded acreage In private, secluded setting. Mature oaks & pines, abundant wild- life, gated community. Registered survey, power & phone. Excellent financing. Must see! Call owner now (866) 352-2249 ext. 1179 FCAN SO. CENTRAL FL Waterfront land sale 1 to 3 acre from $199,900. So. Cent FL's finest lakefront community. Enjoy two large natural lakes & numerous man-made lakes & ponds In a great location Gated, private. Excellent financing, Call now (866) 352-2249 ext. 1183 FCAN Tennessee Lake Bargain 3+ acres, $19,900. FREE Boat slips! Save $5,000 during pre-construction sale! Enjoy access to private, Jimmy Houston endorsed bass lake. Paved roads, utilities, soils tested. LAKEFRONT available. Excellent financing. Call now (866) 685-2562 ext. 1006 FCAN THE BEST LAND VALUES IN COASTAL GEORGIAI As much as 30% below recent appraisals. 1+ acre marsh view from $49,900 1+ acre marshfront from $124,900 Gated entrance, marina access & more 90 mins Jacksonville/30 mins Savannah GRAND OPENING SALE Sat. March 31st call nowl (888) 525-3725 ext. 2228 f, -IJ CiuiCraft COUNJY(L HO~ RARE! NATIONAL FOREST FRONTAGE & Trophy Trout Stream. Large acreage parcels new to market. ForestLand.com FCAN Won't last! Price Reduced 50% 29 acres, $195,000 Great location close to Cedar Key. Nice meadow, scattered pine & oak, abundant wildlife. At end of private rd. Utilities, survey, excel Fin. Call (866) 352-2249 ext. 1192 FCAN ADJACENT LAKE LOTS Water is down, so are prices. Up to 6 lots (941) 400-3745 AWESOME DIXIE BAY 80 X 108 Lot, Seawall $275,000 Owner Fin. Ron Egnot,lst Choice Coldwell Banker. (352) 287-9219 Buy One Get One Free Financing Avail. Free Weekend getaway flnance.com (732) 996-3785. LAKE ROUSSEAU 144' canal frontage w/view of lake. $110K (352) 563-5170/ (775) 230-2240 OZELLO - Gulf w/no bridges. Beautiful sunset view Cleared lot. $129K (813) 996-0239 1993 115HP YAMAHA Rebuilt w/warr. 1987 225HP EVINRUDE Rebuilt w/warr. $2750 each. (352) 564-1324 1999 MERCURY 50HP, 4 stroke, runs great, comes w/ Free boat title & trailer. $3,950. (352) 621-0848 NISSAN 1990 25HP Outboard Good Shape! $700 (352) 697-2993 TRANSOM MOUNT POLING PLATFORM Never used $425 OBO (352) 228-2231 9AM-6PM *FRI. 16TH 9AM-6PM *SAT. 17TH 9AM-6PM SUN. 18TH 10AM-5PM iuih, & From Kayak Klepper Folding Kayak like new, single seat expedition, model opt. sails and rigging $1,000. Tel. (352) 621-6890 YAHMAHA '94, 750SS, tandem trl, good cond., low hrs $1,200 OBO (352) 637-6407 YAMAHA WAVERAIDER Jet Skis. 95 & 96 w/trlrs. exc. runners adult driven $3,700 for both 352-302-5300/795-1013 IARG[ff Boat Show on the Nature Coast Kings Bay Plaza U.S. Hwy. 19 Crystal River I *Home Finder* *Home Finder* *Home Finder*I Citrus Ridge Realty 3521 N. Lecanto Hwy. Beverly Hills, FL 34465 700229 1-888-789-7100 Ij N.~ t. Chronicle Classifieds In Print & Online )%, (352) 563-5966 AA7. / r .40 f I t'I 'ii I I ':7, 1 + ,' I I . 'i Cl-ASSI]FIED )S '00 Bass Hound 10.2 ft, 4HP, Yamaha motor, 4 cyl., trolling motor, battery, trailer, Included $1,500. obo (352) 489-2710 V V NEWT-TOPS V V 26 NEW leftovers. Far Below Manufacturers Cost! Call with width of console & we will give you a price Below Anyone Elsel *MONROE SALES. 527-3555 Mon-Fril9-5 18 FT. MONTEREY BOAT 1998 3.OL 190 HP Mercruiser w trailer,pwr tilt-trim, life vests,skis 352-447-2385 after 5pm, $5000 obo 12' FIBERGLASS BOAT 18 hp. Evinrude mtr. & Trailer. $700 (352) 697-2323 14'-28' Let us sell your clean used boat. THREE RIVERS MARINE w-4 (352) 563-5510 15' BOMBER BASS BOAT, 70HP John- son, Trolling mtr. Trailer & cover. Clean, $2695/ obo. (260) 519-3920 16' OUTBOARD no motor, on trl with title, Good condition' $275 (352) 637-6407 171/2' FISHING BOAT '89. 70HP Yamaha/ rebuilt. New trir. Bim. top. CC, Tunnell hull. $3500 (352) 601-3851 18' POLAR Tunnel drive, 90HP Yamaha & trailer, 39Hrs. $9500. (352) 341-2320, after 4p.m. 11 oo2 4 r CITRUS COUNTY (FL) CHRONICLE 25' SPORTCRAFT W/traller. Mercruiser I/O, 350HP. Runs good, Cuddy cabin, Ready. $4,900. (352) 613-6834 32' SCARAB SPORT By WellCraft. T-top, (2) 225 hp. Merc Black Max Offshore Motors. Alum. 3 axel trlr. $15,000 OBO 352-302-3982/447-2240 '97 MONARK JOHN Boat, 16', 20HP Merc. Jet foot, Bimini, top. Galv. trailer. $3,300/ obo (352) 634-2516 '99, 18' Sea Ray Bowrlder w/ trailer, 115 Merc, OB, Tilt & Trim, Extras. Asking .$8,900. (352) 628-9056 AIR BOAT 13', 6 CYL Continental w/ Trailer $4,900 (352) 613-6834 AIRBOAT 13FT4 cyl, Cont. Aircraft eng., no trailer, $3,995 (352) 344-9582 AIRBOAT 15', Fiberglass Hull, side rod boxes, Cadillac V8, Incl. trl $8000 (352) 726-6763 AIRBOAT 20 X 8 454 2 tol belt w/ wood prop, comm. grade hull, exc. fish/ride& tri $14,500 352-628-5222 ALUMINUM BOAT 2072 G-3 2003,115hp, 4 stroke, trailer, 85hrs $14,000 OBO (352) 302-2392 **** ** ****** AREAS LARGEST SELECTION OF PONTOONS & DECK BOATS Crystal River Marine (352) 795-2597 BASS HUNTER '95,4' X 8' Pontoon. 3 hp elect. motor. Paddle, jacket, battery. $450 (352) 795-9341 CABIN CRUISER 32', twin V8, low hrs, gaily, head w/ shower, turn key, A/C,could be live aboard, will trade for sailboat. $14,500. (352) 613-6834 CENTURY AEROGLASS '88,21', Merc. 260 Hp, Cuddy, Freshwater boat $4,900 (352)613-2226 CHAPPARAL 25' '96 Sunesta Deck Boat, w/trlr. New 350 MPI Mercruiser w/5 hrs. Needs cushions & bimini top & some wiring. $8,500 352-436-4143/302-1658 CRIS CRAFT 23' I/O, w/ brand new 350 Chevy engine, cuddy cab. Runs beautiful! $8,000 (352)621-1207 Glastron '68, 55HP,Yamaha, new bimini top w/ trailer, good cond. $1,400. obo (352) 637-6106 HARRIS DECTCRAFT 1978, 17', w/Bimini top, 80hp motor, runs good $1400 419-343-7234 MUST SELL Mariah 95,18ft In/Out- board, Fiberglass& Trailer ury 3.0LX Mtr $5000.00. 352-637-6647 AAA BOAT DONATIONS Tax Deductible @ appraised value when donated to a 43 year old * non-reporting 501-C-3 Charity. Maritime Ministries (352) 795-9621 SEA RAY 185 '99, w/4.3 Mere. I/O. Just Serviced & runs great. Very Clean, $1,500(352) 621-0848 THUNDERCRUISE 15-V2FT fiberglass VA8HP Evinrude, galv. trailer, trim & tilt, depth finder, Exc. $3,000 212-1648 WELL CRAFT 19' 200 Bite, 350 1/O, '84, Kentucky Riverboatl Been in Saltwater twice $3,900 (352) 270-3358 Well Craft '85, 19ft, cuddy cabin, alum. magic tilt trailer 140HP, In/outbrd $1,500 obo (352) 522-0103 WELLCRAFT '96 "Eclipse" 19FT Cuddy cabin, Mercruiser I/O Boat & trailer in great shape, plus extras, $5,800 (352) 726-4490 A WHEEL OF A DEAL 5 lines for only $37.95!" *2 weeks in the Chronlclel *2 weeks Onllnel .Featured in Tues. "Wheels" Sectioni Call Today (352) 726-1441 or (352) 563-5966 For details. $5 per additional line Some Restrictions May Apply CHEVY 35' 1986 Conversion Bus/RV. Ouffitted w/facilities & cabinetry. $2900/ obo. (352) 341-5777 DOLPHIN 29' 1988,454 w/low miles, generator, roof AC, new tires. Clean cond. $7,800 (352) 621-0848 Euro Coach '89,460 Ford, 51k ml., 2 yrs. new, 7 new tires, brakes, water pump, belts, hoses, all new leather furn., 3 new batteries, Satellite Dish, new carpet ect. Quality Coach$15,500 obo 352-212-6182 ecretnlion6 -&^^T^ Veicle I^^^ FORD 1986 Shasta, 27ft Motor Home. 95k mi. $6,250. (352) 586-9498 GEORGE TOWN XL '06, 32', 2 slides, loaded 7k mil, under warranty $70,000. like new Port Rlch.(276) 466-6727 GULFSTREAM 32' Sun Voyager, '98 Diesel pusher, qu. bed, 2 AC's, W&D, 23,500ml $37,900/ obo. (352) 628-4053 HOLIDAY 2003, Rambler, Class A, 34', Diesel, pusher, 16,000ml, loaded, Immaculate, $85,900. 352-302-5754 HOLIDAY RAMBLER 1981,30'. Low miles. good running order. $7,000 (352) 503-3511 MARCH MADNESS RV SELLOFFI March 16th-19th. Nation's #1 selling- MONTANA- 5th wheels. All on sale! Suncoast RV, 12201 W. Colonial Drive, Winter Garden (866) 482-7220 FCAN MONARCH 2000,34', w/slide, 30K, V-10, NS, Spotless! Just serviced. $47,000 Lecanto (352)746-9457 Search 100's of Local Autos Online at wheels.com ' It i S Jp.,. Carrilite 1997, 31 ft., 5th Wheel $13,500 Call (352) 220-4192 DREAMS 2005 31FT TRAVEL TRAILER Recreation by Design, like new, needs appliances and some work. Asking $5,500 352 447-2759 FLEETWOOD 1986,29ft, new A/C, new roof, new tires $3,000 firm (352) 503-3969. Jayco 1992, Eagle, 26ft, 5th wheel, 1 slide, very nice cond.. $5,500. Rock Crusher RV Park (715) 281-7070 LAYTON 29' Sips. 6, New refrig. & tires, fully equipped w/'98 Dodge Durango. New tires, 4X4, V-8, Exc. cond. $13,900. Call (352)601-4647 LAYTON '93, 20FT 5th wheel, exc. cond., self contained, $5,000 (352) 560-7704 cell, 352-220-3220 PROWLER 32' '93, 1 slide, rear BR, very clean. Great Price! $7,800 (352) 621-0848 TRAVEL TRAILER '07 33FT 16ft Super slide cent. air, qu. bed, W/D Must sell Will deliver! $19,200 (863) 660-8539 6W 2'GMC NEW BEDLINER for % Ton Truck, $150. (352) 628-7226 '86 Isuzu Pickup for Paris, $100. Cherry picker, $200. (352) 464-2172 AMERICAN RACING MAGS w/tires, 17". 5 hole, for Ford Pickup $550. 352-344-9810 813-404-2216 CAR SEAT Exc. cond., Light blue, out of a 7 passenger van. $150 obo (352) 746-9573 Car Trailer 1 yr. old 16', all steel w/ slide in ramps, remova- ble fender, spare tire, dual axle, 9000lb. elect. winch w/ 100' cable Must sell $2,300. firm (352) 341-0483 DIAMOND PLATE TOOL BOX Fu. Sz. Trk. blk. $100 4 TIRES & WHEELS 14" Like Newl Off Ford Ranger $100 (352) 634-0432 KAR KADDY $450. 781-831-7569 S10 Flat Fiberglass Tone Cover, $800 (352) 220-9883 TIRES W/ RIMS Five BF Goodrich AT tires on Cragar 15" rims. Size 325x60. Great condition, about 1/2 wear. $700 Call - 352-212-9373 TRUCK TOPPER From 6' bed. Exc. Cond. $250 (352) 220-3273 WHEELS & TRAILER TIRES 5-15" FORD VAN ALLOYS W/CENTERS LIKE NEW $ 250 4-ST205/75D15 TRAILER TIRES LIKE NEW $120 352-229-3661 $$CASH PAID$$ Wanted Vehicles Dead or Alive, Dale's Auto Paris 352-628-4144 '03, Pontoon Boat Bennington, 22', w/ 25" dia., pontoon, 60HP 4 strk. Yamaha motor, stereo marine radio, less than 80 hrs., A dream buy, $16,000. May deliver to Crystal River area (706) 374-1397 __ Gm Tinted wndws, Warr. $12,900. (352) 382-8910 NISSAN SENTRA '98 GXE, 119K, 4 cyl. Auto, Runs great, many new parts, In Homosassa $3000. 585-300-7314 PONTIAC BONNEVILLE SSE 1993 130k. Red,A/C,Dual alr bags, AM/FM/Cass, 16" alloy, $2000 564-9192 PONTIAC GRAND AM SE 96', looks/drives exc.. Ice cold A/C, new trans., Ist $1,900 352-422-5685 CASH BUYER for Trucks, Vans & Cars Larry's Auto Sales Hwy 19 S. Crystal River Since 1973 564-8333 CASH FOR WRECKED OR JUNKED CARS & TRUCKS. Joe (352) 302-8009 *FREE REMOVAL OF- Motorcycles, mowers, cars, 4&3 wheelers, RV's, Jet skis, ATV's, trailers, boats? 628-2084 ttt We wish to give @ least 30 Cars to BATTERED WOMEN'S SHELTER this year. Tax Deductible Available. HELP US. MARITIME MINISTRIES 9 (352) 795-9621 9 $500 POLICE IMPOUNDS Cars from $5001 Tax repos, US Marshal and IRS sales! Cars, trucks, SUV's, Toyota's, Honda's Chevy's and morel For listings call (800) 425-1730 ext. 2384 FCAN '01 Buick LaSabre Custom, V6, Silver, all pwr AC/ new tires, Excel. cond. 73k ml. $6,800. (352) 527-1810 $5001 Police Impounds For sale Cars from $5001 For listings call 1-800-366-9813 ext 7374 A WHEEL OF A DEAL 5 lines for only $37.95!* *2 weeks in the Chronlclel .2 weeks Onllnel .Featured In Tues. "W els" Sectlonl Call '95, Riverla, 118k mi. $1,250. (352) 212-8855 After 2pm BUICK '97, Century Umited. only 66k ml., leather, excel. cond. $3,995. (352) 527-1568 CHEVY CORVETTE '00 Convert. 40K, Vipor serv. sys, ground ef- fects, cust. seats, mag- netic red metal flake, $28,500 (352) 344-1562 CHRYSLER LHS '95 Loaded, sunroof, exc. cond. 142K mi. $2,800. (352) 464-4686 CHRYSLER SEBRING '98 Convert, auto, AC, very dependable. 30MPG, $3300. Crys. River. (727) 207-1619 CORVETTE '91, Coupe, burgundy good tires, paint & in- ter. runs & drives excel. $6,800. (352) 302-2191 DODGE '94 Intrepid 157K mi., new tires, good cond., $1,500 obo 052) 726-3456 HONDA CIVIC '98 150K, 3500 , Gr, KIA RIO '01 NEEDS ENGINE $500/best offer (352) 464-4936 LEXUS '03, SC 430, Hard top Convertible, 45K, GPS, Fully loaded! $33,500 (352) 302-7042 LINC. TOWNCAR '94, been In accident, body nds work. Engine great. $1000 or make offer. (352) 601-5593 Lincoln Towncar '98, Executive, 4Dr. Sedan. Black, runs gd, 73.500 ml. $4800. 352-489-9917 seats. $8500/ obo (352) 628-4022, Iv. msg. 1 Ili ,'. J l, TOYOTA 4-RUNNER 2001, AC, pwr windows. mirrors, locks, keyless, cruise, new tires. $7,900 (352) 628-6537 PONTIAC GRAND AM '91 2dr, SE, AC. 78K. Auto, Cass. Clean $2575. (352) 212-4882 Search 100's of Local Autos Online at wheels.com TOYOTA CAMRY 1996,160K, good cond. clean] 3,500 (352) 400-1193 VOLKSWAGEN '03 Beetle, GL, auto., 40K, silver, sunroof, spoiler, alloy wheels $13,900 (352) 341-5978 '03 MERCURY SABLE GS I Ower, loaded.............$8,995 '02 TOYOTA CAMRY LE Pwr. Options, oly...........$9,995 '03 NISSAN ALTIMA S Loaded, LLt. Green......$12,990 Your Donation of A Vehicle Supports Single, Homeless Mothers & Is Tax Deductible Donate your vehicle TO THE PATH (Rescue Mission for Men Women & Children) at(352)527-6500 $ $ CASH $ $ JUNK CARS, TRUCKS, VANS (352) 228-9645 CHEVY '81, EICamino, new paint all new Interior, great deal, $4500 OBO. (352) 341-5206 FORD Shay Replica '29 Model A Roadster, 10250 miles, 4 cyl., Pinto 4 spd. $11,900 (352) 422-0226 MERCEDES Convertible, 450SL Garage Kept, Beautiful, Ssea mist green, saddle interior, much work done, Must Seel $11,500. (352) 586-9498 PLYMOUTH '41 "Business Coupe" All original. Runs & in beautiful shape $18K (352)621-1207 VW BEETLE '71, Partly Restored Convertible. Have all parts. Runs. $3,500 obo (352) 795-9341 A WHEEL OF A DEAL 5 lines for only $37.95!* .2 weeks In the Chroniclel .2 weeks Onlinel *Featured In Tues. "Wheels" Sectlonl Call Today (352) 726-1441 or (352) 563-5966 For details. '$5 per additional line Some Restrictions May Apply CHEV. S-10 '95 V-6,5 speed, Ext. cab. Exc. cond. Call (352) 726-3501 DODGE RAM 2500 2000,4 DR,/ 4 WD, / All power. auto, leather, Laramie Pkg. $9,400. (352) 637-5131 GMC '86 1500 2WD, 350 auto., nice wheels, exc. body low ml., $3,300 obo (352) 586-5462 GMC Sierra 1500 '00 SL Reg. cab, 8FT bed, tow pkg. exc, cond 1 owner, 223K hwy miles. $6,000 (352) 341-0734 (813) 334-2181 cell MAZDA 1989 pickup Need motor $250. w/ cap. $300.' Must Sell (352) 341-0483 NISSAN 1990, 300CX, exc cond. 125K, $5,000. (352) 621-1206 Search 100's of Local Autos Online at wheels.com TOYOTA 1994 R22 engine, fuel injection, 5-spd, New tires, bedliner, air, 39K, 1 Sr. owner, mint cond. $4,600 (352) 726-1172 TOYOTA '96, Tacomai, extra cab, 91.500 ml. 4 cyl. w/ topper $4900/ obo (352) 860-0134 DODGE DURANGO '00, excc. dnd. 66K orig. ml. Dual air, 3 rows CHRYSLER Town & Country, 7 seat, 82K, $3,200 AC, bucket, CD, tint, power, good cond (352) 746-4789 '98 E-250 utility bins & drawers, ladder rack. Exc. shape. $6,500 (352) 422-0716 FORD E-350 '91. 1-ton work van, ex painters van, $900 obo (305) 812-0523 Search 100's of Local Autos Online at wheels.com TOYOTA SIENNA '01,97k, ac, P/W, P/L, P/M, keyless, CD. CC, rear AC, $7,500 (352) 628-6537 MR CITRUS COUNTY REALTY ALAN NUSSO 3.9% Listings INVESTORS BUYERS AGENT BUSINESS BROKER (352) 422-6956 ANUSSO.COM 2006 Kawasaki KX250T6F. Less than 20 hrs, over $4K worth of extras (racing head, pistons, valves, suspen- sion, exhaust, etc.), service contract, will sacrifice for $7,500. OBO (352) 465-9393 *FREE REMOVAL OF* Motorcycles, mowers. cars, 4&3 wheelers, RV's, Jet skis, ATV's, trailers, boats? 628-2084 2000 H/D PARTS & Titan Phoenix, ZRM Low Rider S&S,1570 CC, LED Lights, 2 seats, solo /2 up, recent tires & brakes $4,000 In upgrades, yellow & chrome. All must Go $11,500. (352) 382-7039 2000 HARLEY FX DWG 1 '76 HONDA CB550 $650. (352) 586-2741 A WHEEL OF A DEAL 5 lines for only $37.951" *2 weeks in the Chroniclel *2 weeks Qnllnel *Featured In Tues. "Wheels" Sectloni Call Today (352) 726-1441 or (352) 563-5966 For details. '$5 per additional line Some Restrictions May Apply BOREEM SCOOTER 2004 Needs battery $100. (352) 586-5114 *FREE REMOVAL OF- Motorcycles, mowers, cars. 4&3 wheelers, RV's, jet skis ATV's trailers, boats? 628-2084 A WHEEL OF A DEAL 5 lines for only $37.951" *2 weeks In the *2 weeks Onlinel *Featured In Tues. "Whels" SectionI Call Today (352) 726-1441 or (352) 563-5966 For details. '$5 per additional line Some Restrictions May Apply CHEVY S-10 2001, 4 x 4, V-6, 3 Doors, ext. cab., Only14KI $15,900. (352) 746-1126 CHEVY TAHOE 1998, Leather int. all pwr. 2K on new motor. $6,500 352-476-3775/637-2437 JEEP '05 Wrangler 4cyl., 6spd, impact orange, still under fact. warr.. $5,500 (352) 465-8332 Search 100's of Local Autos Online at wheels.com In l"I'lloQ 587-0315 THCRN Notice to Creditors Estate of Wanda Kathleen Howell PUBLIC NOTICE IN THE CIRCUIT COURT FOR CITRUS COUNTY, FLORIDA DIVISION PROBATE File No. 2007-CP-126 Division: PROBATE IN RE: ESTATE OF WANDA K. HOWELL WANDA KATHLEEN HOWELL Deceased. NOTICE TO CREDITORS The administration of the estate of WANDA K. HOWELL, deceased, whose date of death was April 18, 2006, Is pending In the Circuit Court for CIT- 8, 2007. Personal Representative: /s/ SUSAN ABELS P.O. Box 714 Yulee, FL 32041-0714 Attorney for Personal Representative: /s/ GLEN C. ABBOTT Florida Bar No. 235911 P.O. Box 2019 Crystal River, Florida 34423-2019 Telephone: (352) 795-5699 HARLEY DAVIDSON 2002, Elect Glide Classic 5,300 ml. $13,500 Loaded LIKE NEWI (352) 621-5153 HARLEY DAVIDSON 2006, Street Glide, 1450CC, Uke Newl 2,150 ml, bik, $16,500 obo (352) 400-0360 Harley Davidson '97, Sportster, 883, w/ 1200 screaming eagle kit. Runs greatl$4,995 obo (352)637-0397 HARLEY DAVIDSON Classic 1972 FLH Big Twin, Electrogllde $9,800 (352) 726-2869 HONDA '05 Shadow, 600 VLX, showroom perfect 2,300 ml. $4,300 (352) 341-4755 HONDA '05, VTX, 1300S, 3300 ml. red, has light bar, LED lights, eng, guard, wind shield, Mustang seat $7,800. 352 527-3641 HONDA '06 VT750 217 ml., retail $5,800. Sell for $5,200 (563) 260-3548, Inverness HONDA 1974 CB750, low mileage, 2 helmets, $1,495 obo (352) 422-5714 HONDA HELIX 1999, 250, less than 6K ml., $2,500 (352) 476-3231 KAWASAKI 2003, KX-60 FMF Pipe, Exc. Cond. $1,000 OBO (352) 464-7650 KAWASAKI VULCAN 1997 750cc 9K mi. Red & Blk Org. Adult Owner $3400. (352)382-4205 MOTOR SCOOTER '04, Good Cond. Elec. Start, 4 cycle, 49CC, low miles. $575 (352) 795-9341 Search 100's of Local Autos Online at wheels.com Suzuki '06, Bergman 650 In warr. 800 mi. new, white, extras. $6,000. (352) 465-7755 SUZUKI 2005, Katana600, red, garage kept, 2,300ml, $55000BO. 352-634-4708 SUZUKI Boulevard 2006, C50T. Like Newl $6,250 (352) 726-5429 TANK SCOOTER '06 150CC $1195 or trade for 60+hp outboard 352-228-2156 VW Trike 1835CC Sweet Running Motor, Fl. Title. 90% com- plete needs fenders and F/G saddlebags at- tached, can drive as Is Have parts to complete $4,000. (352) 341-0483 YAMAHA '05 V-Star 1100 Classic 2.400 mi., The date of flrst publi- cation of this notice Is March 15.2007. Person Giving Notice: /s/ JENNIFER LYNN THOMAS c/o 452 Pleasant Grove Road Inverness, Florida 34450 Attorney for Person Giving Notice: HAAG. HAAG & FRIEDRICH, P.A. 452 Pleasant Grove Road Inverness, Florida 34452 (352) 726-0901 (352) 726-3345 (Fasclmlle) Florida Bar Number: 0196529 /s/ JEANETTE M. HAAG Attorney for Estate Published two (2) times In the Citrus County Chroni- cle, March' 15 and 22, 2007. 591-0322 THCRN Notice to Creditors Published two (2) times In the Citrus County Chroni- cle. March 8 and 15, 2007. 588-0322 THCRN Keepit Safe Storage PUBUC NOTICE This Is to notify Bill Hlnson that the entire contents of your storage lot will be consigned to auction If payment In full Is not re- celved by 4:00 P.M. on March 29. 2007, at Keepit Safe Storage & Moving Center, 5050 Norvell Bry- ant Highway, Crystal River, FL. /s/ Amy Kellner Keepit Safe Stg. & Mvg. (352)746-6683 Published two (2) times In the Citrus County Chroni- cle, March 15 and 22, 2007. 589-0322 THCRN Notice to Creditors (Summary Administration) Estate of Virginia F. Kell PUBLIC NOTICE IN THE CIRCUIT COURT FOR CITRUS COUNTY, FLORIDA PROBATE DIVISION File No. 2007-CP-205 IN RE: ESTATE OF VIRGINIA F. KEIL DECEASED, NOTICE TO CREDITORS (Summary Administration) TO ALL PERSONS HAVING CLAIMS OR DEMANDS AGAINST THE ABOVE ES- TATE: You are hereby noti- fied that an Order of Sum- mary Administration has been entered In the Es- tate of VIRGINIA F. KEIL, deceased, File Number 2007-CP-205, by the Cir- cuit Court for Citrus County, Florida, Probate Division, the address of which Is 110 North Apopka Avenue, Inver- ness, Florida 34450: that the decedent's date of death was JANUARY 24, 2007: that the total value of the estate Is SNONE and that the names and address of those to whom It has been assigned by such order are: DIANE K. WATSON, 4339 TREMONT COURT, DULUTH, GEORGIA 30096 Administration March 15,2007. Person Giving Notice: S/s/DIANE K. WATSON 4339 TREMONT COURT DULUTH. GEORGIA 30096 /s/ Attorney for Person Giving Notice BRADSHAW & MOUNTJOY, P.A. /s/ Michael Mountfoy, Esquire 209 Courthouse Square Inverness, FL 34450 Florida Bar Number: 157310 Telephone: (352) 726-1211 Published two (2) times In the Citrus County Chroni- cle, March 15 and 22. 2007. 590-0322 THCRN Notice to Creditors Estate Of James E. Thomas, Jr. PUBLIC NOTICE IN THE CIRCUIT COURT FOR CITRUS COUNTY, FLORIDA PROBATE DIVISION CASE NO. 2007-CP-186 IN RE: ESTATE OF JAMES E. THOMAS, JR., DECEASED, NOTICE TO CREDITORS The administration of the Estate of James E. Thomas, Jr., deceased, whose date of death was January 9, 2007,- �tice has been. IN RE: THE ESTATE OF CRAWFORD EUGENE PEACOCK, Deceased. NOTICE TO CREDITORS The administration of the estate of CRAWFORD EUGENE PEACOCK. de- ceased. File Number 2007-CP-159,. Includ- Ing unmatured, contin- gent or unliquid persons having claims or demands against decedent's estate. Includ- ing unmatured, contin- gent or unllquidated claims, must file their claims with this court WITHIN 3 MONTHS AFTER THE DATE OF THE FIRST PUBLICATION OF THIS NO- TICE. FILED WILL BE FOREVER BARRED. The date of the first publi- cation of this notice Is March 15, 2007. Personal Representative: VICTORIA LYNN HAYES 1516 Lochinvar Lane Tallahassee, FL 32317 Attorney for Personal Rep- resentative: /s/ AVONELLE R. MACKERELL, P.A. Florida Bar # 521980 20743 W. Pennsylvania Ave. P.O. Box 717 Dunnellon, FL 34430 352-489-2264 FAX 352-489-6890 Published two (2) times In the Citrus County Chroni- cle on March 15 and 22, 2007. CSIateW o Ralph H. Sharpshalr PUBLIC NOTICE IN THE CIRCUIT COURT FOR CITRUS COUNTY, FLORIDA PROBATE DIVISION File No.: 2007-CP-210 IN RE: ESTATE OF RALPH H. SHARPSHAIR Deceased. *1 NOTICE TO CREDITORS The administration of the estate of Ralph H. Sharpshair, deceased. whose date of death was February 13. 2007. 15,2007. Personal Representative: /s/ Leslie W. Hawkins f/k/a Leslie W. Stone 1575 Ingram Wells Road -Ohatchee, Alabama 32671 Attorney for Personal Representative: /s/ Thomas E. Slaymaker Florida Bar No. 398535 Slaymaker and Nelson, PA. 2218 Highway 44 West Inverness, Florida 34453 Telephone: (352) 726-6129 Published two (2) times In the Citrus County Chroni- cle. March 15 and 22, 2007. 592-0322 THCRN Notice to Creditors Estate of Larry E. Roberts PUBUC NOTICE IN THE CIRCUIT COURT OF CITRUS COUNTY, FLORIDA PROBATE DIVISION FILE NO.: 2007CP212 IN RE: ESTATE OF LARRY E. ROBERTS, Deceased. NOTICE TO CREDITORS The administration of the estate of LARRY E. ROBERTS, deceased, whose date of death was August 15, 2006, and whose Social Security Number Is 395-44-9547, 15, 2007. Personal Representative: /s/ DAVID E. ROBERTS 21905 Fox'Haven Run, Bldg. #8 Waukesha, WI 53186 Attorney for Personal Representative: /s/CARL A. BERTOCH Florida Bar No.: 0109958 7655 W. Gulf to Lake Hwy. #6 Crystal River, Florida 34429 Telephone: (352) 564-8220 Published two (2) times In the Citrus County Chroni- cle, March 15 and 22, 2007. 593-0322 THCRN Notice to Creditors Estate of Crawford Eugene Peacock PUBLIC NOTICE IN THE CIRCUIT COURT OF THE FIFTH JUDICIAL CIR- CUIT IN AND FOR CITRUS COUNTY, FLORIDA PROBATE DIVISION FILE NO.: 2007-CP-159 573-0315 THCRN Notice of Action The Deltona Coporatlon v;. Sky Development, LLC, et al., PUBLIC NOTICE IN THE CIRCUIT COURT OF THE FIFTH JUDICIAL CIRCUIT, IN AND FOR CITRUS COUNTY, FLORIDA CIVIL DIVISION CASE NUMBER: 2007-CA-129 THE DELTONA CORPORATION, a Delaware Corporation, Successor by Merger to THE CITONY DEVELOPMENT CORPORATION, a Florida Corporation Plaintiff, vs. SKY DEVELOPMENT GROUP, LLC . 6 11,in459-0322 THCRN Citrus County Sheriff's Office PUBLIC NOTICE NOTICE OF SHERIFFS SALE NOTICE IS HEREBY GIVEN that pursuant to a Writ of Exe- cution Issued In the COUNTY Court of CITRUS County. Florida, on the 151 day of JUNE, 2006, In the cause whereln BENEFICIAL FLORIDA, INC, A CORPORATION, was plaintiff, and YOLANDA L. CLARK was Defendant, being Case No. 2006-CC-676 In the said Court. I. JEA- FREY J. DAWSY. as Sheriff of Citrus County. Florida, have levied upon all the right, title and Interest of the above-named Defendant(s), YOLANDA L CLARK, In and to the following described personal or real prop- erty. to-wit: DESCRIPTION OF PROPERTY: 2000, GMC SIERRA C1500. GREEN, PICKUP VIN: 1GTEC14W1YZ228226, TAG NUMBER: H06ZTS and on the 3RD day of APRIL, 2007 at ADVANCED TOW- ING AND STORAGE AT 4875 HIGHWAY 41 SOUTH, in IN- VERNESS, Citrus County, Florida, at the hour of 11:00 a.m. or as soon thereafter as possible, I will offer for sale all of the said Defendant(s), YOLANDA L CLARK, right, title and interest In the aforesaid property at public out- cry Jacki Martin DEPUTY SHERIFF Published four (4) times In the Citrus County Chronicle, March 1, 8,15 and 22, 2007. 572-0315 THCRN Notice ofAction The Deltona Coporation vs. Sky Development. LLC. et ol., PUBLIC NOTICE IN THE CIRCUIT COURT OF THE FIFTH JUDICIAL CIRCUIT, IN AND FOR CITRUS COUNTY, FLORIDA CIVIL DIVISION CASE NUMBER: 2007-CA-128 THE DELTONA CORPORATION, a Delaware Corporation. Successor by Merger to THE CITONY DEVELOPMENT CORPORATION, a Florida Corporation Plaintiff, vs. SKY 10,S 2007. - - 568-0315 THCRN Notice of Action The Deltono Coporafion vs. Sky Development, LLC, et oa., PUBLIC NOTICE IN THE CIRCUIT COURT OF THE FIFTH JUDICIAL CIRCUIT, IN AND FOR CITRUS COUNTY, FLORIDA CIVIL DIVISION CASE NUMBER: 2007-CA-124 1315, of CITRUS SPRINGS UNIT TWENTY-SEVEN, according to the Plat Book 9. at Pages 54 through 70,79-0315 THCRN Notice of Foreclosure Sale GMAC vs. Falkowski, etal., PUBUC NOTICE IN THE CIRCUIT COURT OF THE 5TH JUDICIAL CIRCUIT, IN AND FOR CITRUS COUNTY, FLORIDA GENERAL JURISDICTION DIVISION CASE NO.: 2006-CA-4546 GMAC MORTGAGE CORPORATION PLAINTIFF VS. WOJCIECH FALKOWSKI; UNKNOWN SPOUSE OF WOJCIECH FALKOWSKI, IF ANY; ANY AND ALL UN- KNOWN PARTIES CLAIMING BY, THROUGH, UNDER AND AGAINST THE HEREIN NAMED INDIVIDUAL DEFENDANTS) WHO ARE NOT KNOWN TO BE DEAD OR ALIVE, WHETHER SAID UNKNOWN PARTIES MAY CLAIM AN INTEREST AS SPOUSES, HEIRS, DEVISEES, GRANTEES, OR OTHER CLAIM- ANTS; CITRUS SPRINGS CIVIC ASSOCIATION, INC., JOHN DOE AND JANE DOE AS KNOWN TENANTS IN POSSES- SION. DEFENDANTS) NOTICE OF FORECLOSURE SALE NOTICE IS HEREBY GIVEN pursuant to a Summary Fi- nal Judgment of Foreclosure dated February 28, 2007. entered in Civil Case No. 2006-CA-4556 of the Circuit Court of the 5TH Judicial Circuit in and for CITRUS County, INVERNESS. Florida, I will sell to the highest and best bidder for cash at THE JURY ASSEMBLY -ROOM IN THE NEW ADDITION to the NEW CITRUS COUNTY COURT- HOUSE at the CITRUS County Courthouse located at 110 N. Apopka Avenue in Inverness, Florida. at 11:00 a.m. on the 29th day of March, 2007 the following de- scribed property as set forth in said Summary Final Judgment, to-wit: LO1 2, BLCCK 91e O CIIRuS SPRINGS ,JWIU I AC- CORDIItG 10 -IE PLA THEREOF. AS REC0ItDE.fl PLAT BOOK' 6'%AGE 96 OF THE-PUBlhG RECORDS OFl TRuIS COuNTr, FLORIDA. Any person claiming an interest in the surplus from the sale, If any. other than the property owner as of the date of the lis pendens, must file a claim within 60 days after the sale Dated this 1st day of March, 2007. (CIRCUIT COURT SEAL) BETTY STRIFLER BETIY STRIFLER, Clerk of Courts Clerk of the Circuit Court By: is/ Judy Ramsey Deputy Clerk IN ACCORDANCE WITH THE AMERICANS WITH DISABILI- TIES ACT, persons with disabilities needing a special ac- commodation should contact COURT ADMINISTRA- TION, at the CITRUS County Courthouse, at 1-800-955- 8771 CDD) or 1-800-955-8770, via Florida Relay Service. Published two (2) times in the Citrus County Chronicle, March 8 and 15, 2007. 06-59275 (GMAP) 585-0315 THCRN Notice of Sale Pursuant to Ch. 45 Citrus Hills Property Owners Association, Inc., vs. Mpg- doleno T Dela Cruz, etal,, PUBLIC NOTICE IN THE COUNTY COURT OF THE 5TH JUDICIAL CIRCUIT IN AND FOR CITRUS COUNTY, FLORIDA CIVIL DIVISION CASE #: 2006-CC-4388 CITRUS HILLS PROPERTY OWNERS ASSOCIATION, INC., a Florida not-for-profit corporation, Plaintiff, vs. MAGDALENA T. DELA CRUZ, UNKNOWN SPOUSE of Magdalena T. Dela Cruz, Defendant, NOTICE OF SALE PURSUANT TO CHAPTER 45 NOTICE IS HEREBY GIVEN pursuant to a Final Judg- ment of Foreclosure dated March 1, 2007, and entered in Case No 2006-CC-4388 of the County Court of the Fifth Judicial Circuit in and for Citrus County, Florida, wherein CITRUS HILLS PROPERTY OWNERS ASSOCIATION, INC., a Florida not-for-profit corporation is Plaintiff, and MAGDALENA T. DELA CRUZ, UNKNOWN SPOUSE of Magdalena T, Dela Cruz, n/k/a FELICIANO DELA CRUZ are Defendants, I will sell to the highest bidder for cash at 11:00 a.m. In the jury assembly room in the new ad- dition to the Citrus County Courthouse, 110 N. Apopka Ave., Inverness, FL on the 29th day of March, 2007, the following property as set forth in said Final Judgment. to wit: Lot 34, Block 54, Citrus Hills, First Addittlon, according to the Plat thereof as recorded in Plot Book 9, Pages 73 through 83, inclusive, Public Records of Citrus County, Florida. I HEREBY CERTIFY that a true and correct copy of the foregoing was sent via U.S. Mall to Magdalena T. & Feliciano Dela Cruz, 429 Arbor Lane, Westmont. JL 60559, and Robert L. Tankel, PA., 1022 Main St., Suite D, Dunedin, FL 34698, this74-0315 THCRN Notice of Action The Delfona Coporation vs. Sky Development, LLC, et al,, PUBLIC NOTICE IN THE CIRCUIT COURT OF THE FIFTH JUDICIAL CIRCUIT, IN AND FOR CITRUS COUNTY, FLORIDA CIVIL DIVISION CASE NUMBER: 2007-CA-130, though, under, or against them and all other persons claiming any right, title or interest in the real property described below. YOU ARE HEREBY NOTIFIED thai an action to fore- close a mortgage on the following property In Citrus County. Florida: Lot 12 Block 1417, of CITRUS SPRINGS UNIT TWENTY-ONE, according to the Plat Book ?, dare) -i -. i, itr.-. .irnu County Chronicle on March 8 and 15 00uu... 577-0315 THCRN S'J.: 1.: - .-Fi Bankof America . Tr..,r.naa' le u;;i, et al., . PUBLIC NOTICE IN THE CIRCUIT COURT OF THE FIFTH JUDICIAL CIRCUIT OF FLORIDA IN AND FOR CITRUS COUNTY CASE NO. 07-CA-40 BANK OF AMERICA, N.A., Plaintiff, vs.ANDA K. LEVESQUE; UNKNOWN TENANT;, Defendants NOTICE OF FORECLOSURE SALE NOTICE IS HEREBY GIVEN pursuant to a Final Judg- ment of Foreclosure dated February 28, 2007. and en- tered in Case No. 07-CA-40. of the Circuit Court of the Fifth Judicial Circuit in and for Citrus County, Florida , wherein BANK OF AMERICA, N.A., is a Plaintiff andANE- iE LE.E-l.UE UNKNOWN TENANT;, are the Defendant: i ..iii eii.,- : i ri it,ate i and best bidder for cash at .lu,~ -. i-r.lI, I.:.:. T, 1.1 ir New Ad- dition to the New Ciiu. C.:,.r, C.: rthouse. 110 N. Apopka Avenue, In\.r' .- icnja r 11:00 a.m. on March 29, 2007 the -:.I:..i .j a. -.rlit- property as set forth in said Final Judgment to wit: LOT 23, BLOCK 178, OF BEVERLY HILLS UNIT NO. 8. PHASE NO. 1, ACCORDING TO THE MAP OR PLAT THEREOF AS RECORDED IN PLAT BOOK 12, AT PAGES 147 THROUGH 149, As Clerk of the Court By: is/ Judy Ramsey As Deputy Clerk Dated this 1st day of March, 2007. IMPORTANT in accordance with the Americans with Disabilities Act, persons needing a reasonable accommodation to participate in this _',.,:� }vg .r..: jr, no later than seven (7) days prio .:,r.i Cl r,e .i.i,i of the Court's disability coordinatc.e, :,r . , . ,10 N. APOPKA AVE, INVERNESS, FL 34450-4299 If hearing Impaired. contact (TDD) via Florida Relay System. Published two (2) times In the Citrus County Chronicle, March 8 and 15, 2007. 580-0329 THCRN Notice of Action for Dissolution of Marriage Deanna Lyn and David William Kistner PUBLIC NOTICE iN THE CiRCUIT COURT OF THE FIFTH JUDICIAL CiRCUIT, iN AND FOR CITRUS COUNTY FLORIDA Case No.: 07DR1026 DEANNA LYN KISTNER, Petitioner and DAVID WILLIAM KISTNER. Respondent. NOTICE OF ACTION FOR DISSOLUTION OF MARRIAGE TO: DAVID WILLIAM KISTNER UNKNOWN, UNKNOWN. .. YOU ARE NOTIFIED that an : oi..;.' r.,,u. icr-a filed against you and that you are required to serve a copy of your written defenses, If any, to it on DEANNA LYN KISTNER, whose address is 5700 S MAGNOLIA AVE, HOMOSASSA, FL 34448, on or before April 9, 2007, and file the original with the clerk of this Court at CITRUS COUNTY COURTHOUSE, 1.10 1,2007. BEITY STRIFLER, Clerk of Court- CLERK OF THE CIRCUIT I:..- i By: /s/ Vlvlan Cancel DEANNA LYN KISTERN, who Is the petitioner, fill out this form, : Published four (4) times In the Citrus County Chronicle March 8, 15, 22 and 29, 2007. 584-0315 THCRN Notice of Sale Pursuant to Ch. 45 Citrus Hills Property Owners Association, Inc., vs. Christine G. Gray, et al., PUBLIC NOTICE IN THE COUNTY COURT OF THE 5TH JUDICIAL CIRCUIT IN AND FOR CITRUS COUNTY, FLORIDA CIVIL DIVISION CASE #: 2006-CC-4414 CITRUS HILLS PROPERTY OWNERS ASSOCIATION, INC., a Florlda not-for-profit corporation, Plaintiff, vs. CHRISTINE G. GRAY, UNKNOWN SPOUSE of Christine G. Gray. and UNKNOWN TENANT, Defendant. NOTICE OF SALE PURSUANT TO CHAPTER 45 NOTICE IS HEREBY GIVEN pursuant to a Final Judg- ment of Foreclosure dated March 1, 2007. and entered in Case No 2006-CC-4414 of the County Court of the Fifth Judicial Circuit in and for Citrus County, Florida, wherein CITRUS HILLS PROPERTY OWNERS ASSOCIATION, INC., a Florida not-for-profit corporation is Plaintiff, and CHRISTINE G. GRAY are Defendants, I will sell to the highest bidder for cash at 11:00 a.m. In the jury assem- bly room in the new addition to the Citrus County Courthouse, 110 N. Apopka Ave., Inverness, FL on the 29th day of March. 2007, the following property as set forth In said Final Judgment, to wit: CLASSIFIED Lot 6, Block 39, Citrus Hills, First Addittion, according to the plot thereof as recorded Ii Plat Book 9, Pages 73 through 83, Inclusive, Public Records of Citrus County, Florida, I HEREBY CERTIFY that a true and correct copy of the foregoing was sent via U.S. Mall to Magdalena T. & Fellclano Dela Cruz, 429 Arbor Lane, Westmont, IL 60559, and Robert L. Tankel, PA., 1022 Main St., Suite D, Dunedin. FL 34698, Ihls69-0315 THCRN Notice of Action The Deltona Coporation vs. Sky Development, LLC, et al, PUBLIC NOTICE IN THE CIRCUIT COURT OF THE FIFTH JUDICIAL CIRCUIT, IN AND FOR CITRUS COUNTY, FLORIDA CIVIL DIVISION CASE NUMBER: 2007-CA-125 3. Block 356, of CITRUS SPRINGS UNIT FOUR, accord- ing to the Plat Book 5, at Pages 133 through 152. of the Public Records of Citrus County, Florida. has been tiled Counry Chronicle on March 8 and 15. 2007. 571-0315 THCRN Notice of Action Ihe Deltona Coporation vs. Sky Development, LLC, et al.. PUBLIC NOTICE IN THE CIRCUIT COURT OF THE FIFTH JUDICIAL CIRCUIT, IN AND FOR CITRUS COUNTY. FLORIDA CIVIL DIVISION CASE NUMBER: 2007-CA-127 THE DELTONA CORPORATION, a Delaware Corporation, Successor by Merger to THE CITONY DEVELOPMENT CORPORATION, 3 FI.: ril 3 C-. r r-r tir, SK0 beiow. YOU ARE HEREBY NOTIFIED that or, action to rore- close a mortgage on the following property in Citrus County, Florida: Lot 9, Block 1417, of CITRUS SPRINGS UNIT TWENTY-ONE, according to the Plat Book 7 at Pages 73 through 83, wvill be rntersd agaln't you for the relief demanded in -r, . .:.Ti1 .lh3 ii',ll 1 .i r..'i.,78-0315 THCRN Notice of Sole Wachovia Bank vs. April Trimble, et al., PUBLIC NOTICE IN THE CIRCUIT COURT OF THE 5TH JUDICIAL CIRCUIT OF FLORIDA, IN AND FOR CITRUS COUNTY SCASE #: 2006-CA-5666 Division #: UNC: Wachovia Bank, N.A., as Trustee for the registered holders of'Aegis Asset Backed Securities Trust, Mort- gage Pass-Through Certificates. Series 2005-5, Plaintiff. -vs.- April Trimble; Wachovia Bank, N.A,, as Trustee for the registered holders of Aegis Asset Backed Securities Trust, Mortgage Pass-Through Certificates. Series 2005-5 Defendant(s). NOTICE OF SALE NOTICE IS HEREBY GIVEN pursuant to an Order of Final Judgment of Foreclosure dated February 28, 2007 en- tered In Civil Case No. 2006-CA-5666 of the Circuit Court of the 5th Judicial Circuit In and for Citrus County, Florida, wherein Wachovia Bank, N.A., as Trus- tee for the registered holders of Aegis Asset Backed Se- curities Trust, Mortgage Pass-Through Certificates, Series 2005-5, Plaintiff and April Trimble; Wachovia Bank, N.A., as Trustee for the registered holders of Aegis Asset Backed Securities Trust, Mortgage Pass-Through Certifi- cates, Series 2005-5 are defendantss, I will sell to the highest and best bidder for cash, FRONT STEPS OF THE COURTHOUSE TO THE JURY ASSEMBLY ROOM IN THE NEW ADDITION TO THE NEW CITRUS COUNTY COURT- HOUSE on March 29, 2007, the following described property as set forth in said Final Judgment, to-wit: LOTS 9 AND 10, BLOCK "C", CRYSTAL RIVER HIGHLANDS, ACCORDING TO THE PLAT THEREOF AS RECORDED IN PLAT BOOK 3, PAGE 143, WORK- ING DAYS OF YOUR RECEIPT OF THIS NOTICE OF SALE: IF YOU ARE HEARING IMPAIRED CALL: 1-800-955-8771; IF YOU ARE VOICE IMPAIRED CALL: 1-800-955-8770 DATED at Inverness, Florida, this 1st day of March, 2007. BETTY STRIFLER CLERK OF THE CIRCUIT COURT Citrus County, Florida By: /s/ Judy Ramsey Deputy Clerk Published two (2) times in the Citrus County Chronicle, March 8 and 15, 2007. 06-72435T 570-0315 THCRN Notice of Action The Deltona Coporation vs. Sky Development, LLC, et al., PUBLIC NOTICE IN THE CIRCUIT COURT OF THE FIFTH JUDICIAL CIRCUIT, IN AND FOR CITRUS COUNTY, FLORIDA CIVIL DIVISION CASE NUMBER: 2007-CA-126 1, of CITRUS SPRINGS UNIT ONE, according to the Plat'Book 5, at Pages 89 through 106, of the Pub- lic62-0322 THCRN Notice of Action for Dissolution of Marriage Arnold E, and Ulllan J. Johnson PUBLIC NOTICE IN THE CIRCUIT COURT OF THE FIFTH JUDICIAL CIRCUIT, IN AND FOR CITRUS COUNTY, FLORIDA CaseNo.:2007-DR-899 Division: ARNOLD E. JOHNSON, Petitioner and LILLIAN JANE JOHNSON, Respondent. NOTICE OF ACTION FOR DISSOLUTION OF MARRIAGE TO: LILLIAN JANE JOHNSON 722 W. Barrymore Dr. Beverly Hills, FL 34465 YOU ARE NOTIFIED that an action has been filed against you and that you are required to serve a copy of your written defenses, if any, to it on ARNOLD E. JOHNSON. whose address Is 722 W. BARRYMORE DR., BEVERLY HILLS, FL: 34465 on or before 3-31-07, and file the original with the clerk of this Court at 110 N. Apopka Avenue. Inverness, FL 34450. before service on ' -ll.;.i',,., IrT ,iT,.3 ]riI, Irr.. n-, If you fall ro do so, a deftun m r 'be a I % f rlne roliel de Copies 01 all couii aOcu'T'rnr in In,; ,a6e, IirSncla- ing orders, are available at the Clerk of the Circuit Court's office. You may review these docwneafo upoa. Published four (4) times In the Citrus County Chronicle on March 1,8. 15. and 22, 2007. 576-0315 THCRN Notice of Sale Blue View Corporation vs. Ronald S. Koller, et al, PUBLIC NOTICE IN THE CIRCUIT COURT OF THE FIFTH JUDICIAL CIRCUIT 'tr NJD FOP CITPI.I? ,Cij.IrT,' FLORlID, , ,1 .t - ,- I.: I.l J ,- :..I I J. I:,'-. CA-4990 BLUE VIEW CORPORATION Plaintiff Vs. RONALD S. KOLLER, et al. Defendant(s) NOTICE OF SALE Notice Is hereby given that, pursuant to a Final Judgment of Foreclosure or Order dated February 28, 2007, entered in Civil Case Number 2006-CA-4990, In the Circuit Court for CITRUS, Florida, wherein BLUE VIEW CORPORATION Is the Plaintiff, and RONALD S. KOLLER, et al, are the Defendants, I will sell the property situated in CITRUS County, Florida, described as: Lot 4, Block A. SPRING GARDENS, UNIT 1, according to the Plat thereof recorded In Plat Book 11, Page 98, Public Records of Citrus County. Florida. at public sale. to the highest and best bidder, for cash, at the Citrus County Courthouse, 110 North Apopka, In- verness, FL 34450, at 11:00 a.m. on the 29th day of March. 2007. Any person claiming an Interest In the sur- plus from the sale, If any, other than the property owner as of the date of the I1s pendens must file a claim within 60 days after the sale. Dated: March 1,2007. Betty Strlf, March 8 and 15. 2007. 575-0315 THCRN Notice of Action The Deltona Coporaftion vs. Sky Development, LLC, et al,, PUBLIC NOTICE IN THE CIRCUIT COURT OF THE FIFTH JUDICIAL CIRCUIT. IN AND FOR CITRUS COUNTY, FLORIDA CIVIL DIVISION CASE NUMBER: 2007-CA-128 THE DELTONA CORPORATION. a Delaware Corporation, Successor by Merger to THE CITONY DEVELOPMENT CORPORATION, a Florida Corporation Pialntiff, vs. SKY DEVELOPMENT GROUP, LLC a Florida Limited Liabllity CIRwus COUNTY (FL) CHRONICLE real property described below. YOU ARE HEREBY NOTIFIED that an action to fore- close a mortgage on the following property In Citrus County. Florida: Lot 3, Block 1593, of CITRUS SPRINGS UNIT TWENTY-TWO, according to the Plat Book 7, at Pages 93 through 109. of the Public Records of Citrus County, Florida. has been filed against you ,and you are required to serve a copy of your writteri'defenses, if any, to it on Charles E. Berk, Esquire, the 'Plaintiffs attorney, whose address Is 2603 Southeast Seventeenth St., Suite C, Ocala, Florida 34471, and file the originalwith. Mlchel86-0315 THCRN Notice of Sole Candace J. Boothe vs. Debra J. Peterson PUBLIC NOTICE IN THE CIRCUIT COURT FOR CITRUS COUNTY, FLORIDA CIVIL DIVISION CASE NO. 2006 CA 5379 CANDACE J. BOOTHE, Plaintiff, vs. DEBRA J. PETERSON, Defendant. NOTICE OF SALE Notice Is hereby given that, pursuant to the Order or Summary Judgment entered In this cause In the Cir- cult Court of Citrus County, Florida. I will sell the prop- erty situated In Citrus County, Florida, described as: The East 122.36 feet of the West 244.72 feet of Lot 16, Block "A", Mayfair Garden Acres, according to the map or plot thereof, recorded in Plat Book 2, Page 141, Pub- llc Records of Citrus County, Florida, being Lot 2, LESS AND EXCEPT, the South 13.0 feet thereof. SUBJECT TO an easement across the North 20.0 feet thereof for the purpose of Ingress and egress. TOGETHER with 1976 SKYL MH ID#0361831J title #13377621 located thereon at public sale, to the highest and best biddeL for cash, at the Citrus County Courthouse. 110 N. Apopka Ave- nue. Jury Assembly Room, Inverness. Florida, at 11:00 A.M., on the 29th day of March, 2007. Any person claiming an interest in the surplus from the sale, if any, other than the property owner as of the date of the Us Pendens must file a claim within 60 days after the sale. BETTY STRIFLER As Clerk By: /s/ Judy Ramsey Deputy Clerk Published two (2) times in the Citrus County Chronicle on March 8 and 15,2007. 581-0329 THCRN Notice of Action Robert P. Russo, v. Cheng Chic Cheng. et al., PUBUC NOTICE IN THE CIRCUIT COURT OF THE FIFTH JUDICIAL CIRCUIT, IN AND FOR CITRUS COUNTY, STATE OF FLORIDA CIVIL DIVISION CASE NO.: 2007 CA 000864 ROBERT P. RUSSO, Plaintiff, V. CHENG CHIA CHENG as to Parcel 1 EDNA M' DAVIES as to Parcel 2 GEOGE DAyjES as to Parcel 2 rind ;dm. or"0 :6 . w n Spouse h .e.i' *-tseer. gianrees cilew-K. Trcliar- 'es. and all olnei pan-es clailmng by through unaei or against them, and all parties having or claiming to have any right, title or interest in the property herein described, Defendants. NOTICE OF ACTION TO: CHENG CHIA CHENG (as to Parcel 1) EDNA M. DAVIES as to Parcel 2 GEORGE DAVIES as to Parcel 2 YOU ARE NOTIFIED that an action to quiet title to the following property in Citrus County. Florida: Parcel 1: CITRUS SPRINGS UNIT 22 LOT 8 BLK 1583 PB 7 PG 93 DESC IN OR BK 1382 PG 225- Public Records of Citrus County. Florida; Property Identification #2207736 Parcel 2: CITRUS SPRINGS UNIT 1 LOT 16 BLK 18 DESC IN OR BK 730 PG 958, Public Records of Citrus County. Florida; Property Identification #1211654 has been filed against you and you are required to serve a copy of your written defense, If any, to Robert P. Russo, Plaintiff, 1859 W. Tacoma St., Hernando, FL, 34442. on or before April 9, 2007. and file the original with the clerk of this court either before service on the Plaintiff or Immediately or Immediately thereafter, oth- erwise a default will be entered against you for the re- lief demanded In the complaint or petition. Dated: March 5, 2007. BETTY STRIFLER As Clerk of the Court By: /s/ M. A. Michel As Deputy Clerk Published four (4) times in the Citrus County Chronicle on March 8, 15. 22 and 29, 2007. 583-0329 THCRN Notice of Action for Dissolution of Marriage Richard and Julia Ann Petrucci PUBLIC NOTICE IN THE CIRCUIT COURT OF THE FIFTH JUDICIAL CIRCUIT. IN AND FOR CITRUS COUNTY, FLORIDA Case No.: 2007 DR 1073 Division: RICHARD PETRUCCI. Petitioner and JULIA ANN PETRUCCI. Respondent. NOTICE OF ACTION FOR DISSOLUTION OF MARRIAGE TO: JULIA ANN PETRUCCI. UNKNOWN, UNKNOWN YOU ARE NOTIFIED that an action has been filed against you and that you are required to serve a copy of your written defenses, if any, to It on RICHARD PETRUCCI, whose address is 443 N. CHARLES AVE, IN- VERNESS, FL 34450, on or before April 9. 2007, and file the original with the clerk of this Court at CITRUS COUNTY COURTHOUSE, 110 5, 2007. BETTY STRIFLER CLERK OF THE CIRCUIT COURT By: /s/ M.A. Michel RICHARD PETRUCCI, who Is the petitioner, fill out this form. Published four (4) times In the Citrus County Chronicle on March 8, 15, 22. and 29,2007. THURSDAY, MARCH 15, 2007 13C CITRUS COUNTY (FL) CHRONICLE OCALA SL . A . W NISSAN& OCALAMISUBI KNOCK KS THE BOTTOM OFF LOW PRICES ,S ITH THI l LOWE ST PRICES EVER! ASII . ............. . '07 TITAN '07 ALTIMA '07 MUSTANG CONV. '07 FUSION I * I I -- - ----- '07 OPTIMA 8-, 850 13,850 '07 TAURUS t~ii~i~E '444' w W '07 GRAND MARQUIS '*1,950 '07 300M - - I '07 YUKON '28,980 '06 SENTRA *10,475 '06 SONATA 11,980 '06 INFINITI M45 '07 TAHOE *28,980 '07 NITRO S21,880 '07 TOWN CAR �4~L ' '27,980 I 1. 4 '06 LANCER *10,875 I---- I -- 4 I . n- -I- I ' '06 DAKOTA '15,875 '06 ACCORD '06 JAGUAR *il4,97 '06 TRAILBLAZER 2. *'M IN&.'^ *' 4BJMM R�H 151,950 '06 LIBERTY '*15,950 '07 SONATA '07 GRAND CHEROKEE '19,950 '07 CADILLAC *27,950 '06 FRONTIER *13,950 '06 CAMRY '14,950 S'06 COROLLA '06 DURANGO '06 MAXIMAI'06 PATHFINDER - ^--"""' ', .d*', V J; '^ '12,980 *15,975 '20,950 I II I 70842 2200 SR 200 622-411 (800)342-3008 USIAE TAX. FM CUISE F.RUWlAlINFMiCE C f ME8 N N TES1NPISANOCOMtIAICIFf AMADffMONTOADYRTSPSCSVVETRPWMVMW OMIfAUSWM TOAVMAUfl. ITIC FMKISRAlN6NY.P YIENtS C YS8% LAP, WRTHAPMPROWO I8T PPM SICOE$'1,OOCASOR MOAE EUtJP DOWN I ' I � -I- ............... 1 I I I I Aft Aft Af " rtrrtrrtrrtrtt L AML rtrrtMrtr ~i~i~e~;gb~e~ -I �. Z � E=_7 413,o~ $13j850 420tSSO Ank m Am $22811 -1 414,,950b 42109500 *32v95O0 CITImUjs COLNTY'I (F.) CIIJONICLE 14C THURSDAY, MARCH 15, 2007 ..jf MleEL- F SS-J60739A *Prices and payments exclude tax, tag, title and dealer fee (399.50). See Dealer for Details. s 19,888" Photos for illustration purposes only. THREE CONVENIENT LOCATIONS i - 04 FORD F&350 & - o XLT 1005 South Suncoast Blvd., Homosassa, Florida tg 0 2988"* (352) 563-2277 *Prices and payments exclude tax, tag, title and 2077 Highway 44 West, Inverness, Florida dealer fee (399.50). See Dealer for Details. 7 6 Photos for illustration purposes only. (352) 7261 238 2021 S. Suncoast Blvd. 14358 Cortez Blvd., Brooksville, Florida Homosassa, Florida (352) 597-1265 (352) 628-4300 .--T '~~~ ~~~~~~~~~~ ii ,W~ ' +,'' ' '.:'..tj . '% +I . .. .. .. .. ... .. .. ~ rB~ ~ ~b~ ~ Jeep Contact Us | Permissions | Preferences | Technical Aspects | Statistics | Internal | Privacy Policy © 2004 - 2011 University of Florida George A. Smathers Libraries.All rights reserved. Acceptable Use, Copyright, and Disclaimer Statement Last updated May 24, 2011 - Version 3.0.0 - mvs | http://ufdc.ufl.edu/UF00028315/00822 | CC-MAIN-2017-34 | refinedweb | 85,083 | 77.94 |
In this tutorial we will check how to serve an image from the ESP32 file system to a HTTP client. The tests of this ESP32 tutorial were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board.
Introduction
In this tutorial we will check how to serve an image from the ESP32 file system to a HTTP client. We will use the HTTP async web server libraries in order to setup the server and we will use the ESP32 SPIFFS file system.
From a previous tutorial on how to serve HTML from the file system with the HTTP async web server libraries, please check here.
The tests of this ESP32 tutorial were performed using a DFRobot’s ESP-WROOM-32 device integrated in a ESP32 FireBeetle board.
Uploading the image
Before starting to code and uploading the program to the ESP32, we will need to upload the image to the file system. In order to do so, we will use this Arduino IDE plugin, which allows to upload files to the ESP32 SPIFFS file system from a folder in a computer.
For a detailed tutorial on the procedure, please check this previous post, which contains step by step instructions with images.
As a short summary, after installing the mentioned plugin, we need to create a new Arduino sketch, save it and, on the sketch folder, create a new folder called “data“. In that folder, we should put the image, like shown in figure 1.
Figure 1 – Putting the image in the “data” folder.
Note that we need to be careful regarding the file name and extension, since they will compose the name of the file that will be uploaded to the SPIFFS file system of the ESP32.
For example, I’m using an image that is listed as JPEG, but the actual file has a .jpg extension, and thus we will need to look for a file named “test.jpg” in the ESP32 code.
The easiest way to confirm the correct file name is navigating to the “data” folder using the command line of your operating system and listing the files of that folder. Figure 2 shows this on Windows and, as can be seen, the file is listed with the .jpg extension.
Figure 2 – Image listed in Windows file system.
Note that the size of the SPIFFS file system is limited, so you should not upload images too big. Even if the image doesn’t exceed the maximum size allowed for a file, the HTTP web framework may not work well with very large files, although I haven’t yet tested for these scenarios. Nonetheless, I have tested with images around 20 KB and everything worked fine.
For reference, below you can see the image I have used for the test shown in this tutorial.
Figure 3 – Image used in the tests.
To finalize, go back to the Arduino IDE and, on the “tools” menu, click the ESP32 Sketch Data Upload menu item. Wait for the procedure to finish and, after that, the image should be in the file system of the device.
Take in consideration that the file will be created in the root directory of the SPIFFS file system, so its full path will be “/test.jpg“. In order to confirm if it was correctly created in the file system, you can follow this tutorial to fetch the file size, thus confirming that the file was indeed created.
The code
We will start our code by doing all the necessary library includes. In order to connect the ESP32 to a WiFi network, we need the WiFi.h library. To be able to setup the async HTTP web server, we will also need the ESPAsyncWebServer.h library.
Finally, we will need the SPIFFS.h library, since we are going to interact with the file system in order to retrieve the image.
Following the usual procedure when setting up a web server on the ESP32, we need to declare the WiFi credentials so we can connect the device to the network.
We will also need an object of class AsyncWebServer, which we will be using to setup the routes of the server. Remember from previous posts that the constructor for this class will receive as input the number of the port where the server will be listening to incoming HTTP requests.
#include "WiFi.h" #include "SPIFFS.h" #include "ESPAsyncWebServer.h" const char* ssid = "yourNetworkName"; const char* password = "yourNetworkPassword"; AsyncWebServer server(80);
Moving on to the Arduino setup function, we will start by opening a serial connection to output some content from our program.
Next, we will mount the SPIFFS file system, so we can later access the image we are going to serve to the client. We do this by calling the begin method on the SPIFFS extern variable, which becomes available after importing the SPIFFS.h library.
Remember from the previous post that we can pass a Boolean value indicating if we want the file system to be formatted in case mounting fails. In our case we don’t want this to happen because if we format the file system, then our image will be lost. So, if an error occurs while mounting, then the best approach is to re-upload the file.
Taking this in consideration, we don’t need to pass any value as input of the begin method since the mentioned formatting Boolean value will default to false.
Serial.begin(115200); if(!SPIFFS.begin()){ Serial.println("An Error has occurred while mounting SPIFFS"); return; }
Moving on, we will connect the ESP32 to the WiFi network and print the local IP assign to the device after the procedure finishes. This IP will be needed by the client that will reach the server.
while (WiFi.status() != WL_CONNECTED) { delay(1000); Serial.println("Connecting to WiFi.."); } Serial.println(WiFi.localIP());
Now we will take care of setting up the route that will be serving the image. As we have been doing in all the previous tutorials, we do this by calling the on method on the AsyncWebServer object.
As first input of the method, we will pass a string with the route, which will be “/img” for this example. You can use other route if you want, as long as you use that one when accessing the server.
As second parameter we will specify the HTTP methods allowed. We will only listen to HTTP GET requests in this route.
Finally, as third parameter, we will specify the route handling function, which will be executed when a request is made.
Our handling function will correspond to sending the image back to the client as answer to the HTTP GET request. To do it, we simply need to call the send method on the AsyncWebServerRequest object pointer that is passed by the HTTP web server framework to our handling function.
Note that the send method is overloaded and it has many formats that we can use. In our case, we will use the format that receives as input an object of class FS (from File System), as second a path to a file in the file system, and as third the content-type of the response.
The SPIFFS extern variable that we use to interact with the file system is of class SPIFFSFS, which inherits from the FS class, which means we can use it as first input of the send method.
As second input we will pass string “/test.jpg”, which is the path of the image we uploaded to the file system. Finally, we will set the content-type to “image/jpeg”, so the browser knows how to correctly interpret the content we are going to return.
server.on("/img", HTTP_GET, [](AsyncWebServerRequest *request){ request->send(SPIFFS, "/test.jpg", "image/jpeg"); });
The final source code can be seen below. It already includes a call to the begin method on our AsyncWebServer object, so it starts listening to incoming requests. Note also that we left the main loop empty since the server works asynchronously, which means we don’t need to periodically poll it for clients.
("/img", HTTP_GET, [](AsyncWebServerRequest *request){ request->send(SPIFFS, "/test.jpg", "image/jpeg"); }); server.begin(); } void loop(){}
Testing the code
To test the code, simply compile it and upload it to your ESP32 device using the Arduino IDE. Once the procedure finishes, open the Arduino IDE serial monitor and wait for the the local IP assigned to the ESP32 to be printed, which will happen then the device connects to the WiFi network successfully. Copy that IP address.
Next, open a web browser of your choice and access the following URL, changing #yourIP# by the IP you have just copied:
The image previously uploaded to the file system should be returned to the browser, like shown in figure 4.
Figure 4 – Image from the ESP32 file system returned to the client.
Related Posts
- ESP32 Arduino SPIFFS: File upload IDE plugin
- ESP32 Arduino SPIFFS: Getting the size of a file
- ESP32 Arduino SPIFFS: Append content to file
- ESP32 Arduino SPIFFS: Reading a file
- ESP32 Arduino SPIFFS: Writing a file
3 Replies to “ESP32 HTTP web server: serving image from file system” | https://techtutorialsx.com/2018/08/24/esp32-http-web-server-serving-image-from-file-system/ | CC-MAIN-2020-40 | refinedweb | 1,528 | 68.7 |
At the same time, a class is a collection of bytes stored on disk somewhere, which must be loaded before it can be run. This is the runtime-oriented view of a class.
A Classloader is an object that converts a class from a collection of bytes into a Java class and is generally responsible for reading those bytes from a disk or some other permanent storage medium. A Classloader, thus, crosses the boundary between the language-oriented view and the runtime-oriented view of what a class is. Working with Classloaders requires you to understand the guts of the runtime environment, as well as other issues that you generally don't have to deal with.
The System Classloader
Fortunately, you don't normally have to worry about Classloaders. When you run your Java program, the JRE automatically creates a Classloader and uses it to load all the classes from disk. Or in the case of an applet, the browser's JRE automatically creates a Classloader that loads the classes over the network. You (and your program) are none the wiser.
The default Classloader that the JRE provides is called the system Classloader, and its job is to load classes from disk, searching directories and JAR files in the user's path to find the necessary classes.
Custom Classloaders
Just as a browser has a special Classloader that loads classes from the network, you can create a custom Classloader to deal with your own special circumstances. For example, we want to load classes from disk as usual, but we want to track which classes are loaded while we do that. For that, we need a custom Classloader.
A Classloader is actually pretty simple to understand. When you create a custom Classloader, you create a class that extends Classloader and you implement one method:
public class JMClassLoader
extends ClassLoader {
public Class loadClass(
String name,
boolean resolve ) {
// ...
}
}
Any Classloaderregular or customis used by first asking it for a class, like this:
Class theClass =
Class.forName( name, true, jmcl );
Once you've done that, if this class requires any other classes, it uses the same Classloader to load them. If you load the first class in an application using a custom Classloader, then the entire application will loaded through that Classloader.
Our Custom Classloader
The custom Classloader for this project is called JMClassLoader, where JM stands for 'JarMaker.' Remember, you want to create a ClassLoader that tracks the classes that are loaded and creates a JAR file containing only those classes.
Listing 1 contains the code for JMClassLoader.loadClass(). The line-by-line comments explain how it works.
The most important thing to understand about this Classloader is that it doesn't do anything strange in the actual loading of the classes. To load a class, it simply looks in the current directory (or in subdirectories of the current directory). What makes this Classloader different is that, after it loads the class, it remembers that it loaded it by storing a reference to it in a collection called loadedClasses. Later, it uses this set to generate the JAR file.
Please enable Javascript in your browser, before you post the comment! Now Javascript is disabled.
Your name/nickname
Your email
WebSite
Subject
(Maximum characters: 1200). You have 1200 characters left. | http://www.devx.com/Java/Article/17674/0/page/2 | CC-MAIN-2017-04 | refinedweb | 546 | 61.97 |
Rotational Input From Arduino Using LDR(light-dependent Resistor) to Unity
Introduction: Rotational Input From Arduino Using LDR(light-dependent Resistor) to Unity
from my experience , a lot of rotary input devices in Arduino depend on a potentiometer which provides a variable resistance. in this instructable, we will try to achieve the same effect using an LDR, LED and a Strip of paper that has various shades of a given color, could be white to black, attached to some form of a rotary mechanism(let's call it the color wheel) .
the main Idea behind this, is that the LED would shine a light on the Color wheel, which is reflected back to the LDR . and depending on which shade of color was in focus and the amount of absorption, a different intensity of light is reflected. we will use this variation to rotate a 3d object in unity as tool to Visualize the process.
Step 1: Lets Collect the Components
1- LDR
2- LED, preferable white but any color would do
3- 2 Resistors
4- a tape to mount our color paper on.
5- a strip of paper containing a gradient shading of any color, could be printed or cut from a book. just make sure the length of the paper is enough to cover the diameter of the tape, or which ever rotary mechanism you have in mind , and enough width to ensure good reflection. I used 2.4cm wide.
6- 7 male - male wires
7-some rotary mechanism to rotate our color wheel on.I used lego.
Step 2: Lets Assemble Our Color Wheel :)
1- find or print a strip of paper containing a gradient shading of any color. just make sure the length of the paper is enough to cover the diameter of the tape, or which ever rotary mechanism you have in mind , and enough width to ensure good reflection. see picture
2-wrap the paper around the tape and tape it.
3-let your creativity run wild and find a rotary mechanism to rotate your tape, I was lucky to find lego pieces that fit exactly .
Step 3: Lets Make Our Arduino Circut
please see the pictures included
Step 4: Time to Code : Arduino Part1
the code is simple but the values are most likely to be different depending on your LDR, lightning of your environment and the color you picked. so what we need to find out first is the range of LDR readings at the brightest shade and darkest one. simply observe the value on your serial Monitor using the following code:
void setup() { // put your setup code here, to run once: Serial.begin(9600); } void loop() { // put your main code here, to run repeatedly: int data = analogRead(A0); Serial.println(data); delay(20); }
Step 5: Time to Code: Arduino Part2
once you have written your range of LDR readings it's time to make sense of the data, we are going map our lowest reading to 0 and our highest to 360 so that it corresponds directly to rotation in Unity. then to make sure that our values are within our range we constrain the value , here's the code:
void setup() { // put your setup code here, to run once: Serial.begin(9600); }void loop() { // put your main code here, to run repeatedly: int data = analogRead(A0); data= map(data,455,600,0,360); data=constrain(data,0,360); Serial.write(data); delay(20); }
Step 6: Our Unity Code :)
please make sure that your unity projects allows serial Communication by
1- edit>project settings>player> scroll down to optimization and change api compatibility to .NET 2.0
2- create a 3dObject of your choice
3- and attach the following script to it which reads the values and sets the angle.
<p>using UnityEngine;<br>using System.Collections; using System.IO.Ports; public class Rotate : MonoBehaviour { public float speed; private int angle=0; private SerialPort port = new SerialPort(@"\\.\"+"COM11",9600); void Start () { port.Open(); port.ReadTimeout = 25; } void Update () { if (port.IsOpen) { try { angle = port.ReadByte(); } catch (System.Exception) { } } transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.Euler(0f, angle, 0f),speed*Time.deltaTime); } } | http://www.instructables.com/id/Rotational-Input-From-Arduino-Using-LDRlight-depen/ | CC-MAIN-2017-34 | refinedweb | 691 | 59.94 |
Opened 4 years ago
Closed 4 years ago
Last modified 4 years ago
#25698 closed Uncategorized (invalid)
App without migrations depending on app with migrations fails on initial migrate call (postgres)
Description (last modified by )
Simple test example:
In a new project add 'django.contrib.sites' and your main app to the
INSTALLED APPS setting.
Use postgres as database.
Make a model in your main app that uses a relation to django.contrib.sites:
from django.contrib.sites.models import Site class MyModel(models.Model): my_site = models.ForeignKey(Site)
Migrate the project:
python manage.py migrate
It will fail to migrate with the message:
django.db.utils.ProgrammingError: relation "django_site" does not exist. This is because it tries to migrate the apps without migrations before the apps with migrations.
To solve the problem, the app should have at least one migration. But maybe this needs to be documented. I couldn't find it in the documentation.
Change History (5)
comment:1 Changed 4 years ago by
comment:2 Changed 4 years ago by
comment:3 Changed 4 years ago by
comment:4 Changed 4 years ago by
It is correct behaviour indeed, only the error message could be improved.
This is a documented limitation. | https://code.djangoproject.com/ticket/25698 | CC-MAIN-2019-39 | refinedweb | 204 | 59.8 |
ASP.NET Spiced: AJAX
Karl Seguin
September 2005
Applies to:
AJAX (Asynchronous JavaScript And XML)
Microsoft AJAX.NET
Microsoft ASP.NET
Summary: Learn how AJAX (Asynchronous JavaScript And XML) can be used to make your Microsoft ASP.NET applications more dynamic and responsive. (17 printed pages)
Download the code sample for this article, AjaxASPNETCS.msi in C#
Download the code sample for this article, AjaxASPNETVB.msi in Visual Basic
Contents
Introduction
What Is AJAX?
AJAX for ASP.NET
AJAX Hands-On
AJAX and You
Conclusion
Introduction..
AJAX for ASP.NET
A lot of plumbing goes into making AJAX tick. Chances are that you don't want to spend hours or days figuring out the internals of AJAX, but would rather start creating AJAX-enabled applications today, to meet existing demands (and if you do want to know how it works internally, I'm certainly not the person to ask). There are a number of tools developers can use to get started quickly. Specifically, we'll look at the free and open-source Ajax.NET written by Michael Schwarz. Ajax.NET takes care of all the implementation details, is .NET-aware, and can be extended. Microsoft ASP.NET 2.0 introduces its own flavor of asynchronous callbacks through the Client Callback functionality, and it was recently announced that an AJAX implementation, code-named "Atlas," was in the works.
The terminology might be confusing, but when I talk about AJAX, I'm talking about the overall framework for asynchronously calling server-side functions from the client. When I mention Ajax.NET, I'm referring to a specific implementation that helps you build solutions that take advantage of the AJAX framework.
To learn more about the Client Callback functionality of ASP.NET 2.0, make sure to visit Bertrand Le Roy's blog.
AJAX Hands-On
The remainder of this article will mostly be devoted to three meaningful examples that utilize the power of AJAX using Ajax.NET. The guide will contain code in both Microsoft C# and Microsoft Visual Basic .NET, sometimes both will be provided, and sometimes only one or the other. The code to make all this happen is so easy, that C# developers should be able to easily follow the Visual Basic .NET-only code, and vice versa! Sample C# and Visual Basic .NET projects are included with this article for download, and provide working and running code. Before we get to the examples, a primer on setting up and working with Ajax.NET is necessary.
Ajax.NET
The AJAX.NET documentation and Web site do a good job at getting developers up and running. We'll briefly go over the core steps you need to know before looking at some concrete examples of this technology in use.
Start by downloading and unzipping the AJAX file from the AJAX.NET project Web site, creating a new ASP.NET project (in either Visual Basic .NET or C#, whichever you prefer) and adding a reference to the AJAX.dll file. The only configuration step beyond that is to add the following code in the web.config file, inside the <system.web> element.
<configuration> <system.web> <httpHandlers> <!-- Register the ajax handler --> <add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax" /> </httpHandlers> ... ... </system.web> </configuration>. Don't worry if it sounds complicated; it's really only two extra lines in your code. Let's look at an example.
//C#
public class Sample : System.Web.UI.Page { private void Page_Load(object sender, System.EventArgs e) { //Register the class containing the server-side function //we are interested in Ajax.Utility.RegisterTypeForAjax(typeof(Sample)); } [Ajax.AjaxMethod()] public string GetMessageOfTheDay() { return "Experience is the mother of wisdom"; } } 'VB.NET Public Class Sample Inherits System.Web.UI.Page Private Sub Page_Load(sender AsObject, e As EventArgs) Handles MyBase.Load 'Register the class containing the server-side function 'we are interested in Ajax.Utility.RegisterTypeForAjax(GetType(Sample)) End Sub <Ajax.AjaxMethod()> _ Public Function GetMessageOfTheDay() As String Return "Experience is the mother of wisdom" End Function End Class
The above example first tells Ajax.NET to look at the Sample class for Ajax-friendly methods. This happens to be the same class as the actual page, but it could be any .NET class, or multiple classes could be registered. Ajax.NET will then look through the specific class for any methods that are marked with the AjaxMethodAttribute, of which the Sample class has one, GetMessageOfTheDay.
With that done, the only thing left to do is to make use of it in JavaScript. Ajax.NET automatically creates a JavaScript variable named the same as the registered class (in this example it will be Sample) that exposes functions named the same as the AjaxMethod (in this example, GetMessageOfTheDay). Here's what it looks like.
<script language="javascript"> Sample.GetMessageOfTheDay(GetMessageOfTheDay_CallBack); function GetMessageOfTheDay_CallBack(response) { alert(response.value); } </script>
The JavaScript GetMessageOfTheDay expects the same parameters as its server-side counterpart (in this case, none) in addition to the JavaScript callback function to execute and pass the response to when done. Here we see the asynchronous nature of AJAX at work, since the call to GetMessageOfTheDay doesn't prevent other JavaScript code from executing, nor does it prevent the user from continuing to work on the page. When the server-side processing is done, Ajax.NET calls the specified callback function, GetMessageOfTheDay_CallBack, and passes it the response that comprises the server-side's return value.
The mapping between server-side code and JavaScript code might be confusing. Figure 1 shows the outline of both server-side code and JavaScript code, along with the mapping between the two.
Figure 1. Mapping between server-side code and JavaScript code
There's certainly more to Ajax.NET that's of interest, such as the support for .NET types and the richness of the callback response (it's more than just a value). The following examples will hopefully highlight some of the features and help you envision how AJAX might help you create a successful application.
Sample 1: Linked Drop-Down List
The beginning of this article briefly discussed the two traditional approaches used for linking one DropDownList to another. Either the page is posted back when the selected index changes, or all the possible data is loaded into JavaScript arrays and dynamically displayed. Hopefully you can see how AJAX might be used as an alternative to both of these solutions.
First, let's look at our data interface and drive the example from there. Our data access layer will expose two methods: the first will retrieve a list of countries our system supports, while the second will take a country ID and return a list of states/provinces. Since this is pure data access, we'll just look at the method signatures.
//C# public static DataTable GetShippingCountries(); public static DataView GetCountryStates(int countryId); 'VB.NET Public Shared Function GetShippingCountries() As DataTable Public Shared Function GetCountryStates(ByVal countryId As Integer) As DataView
Now, let's flip to the opposite layer and create our simple Web form.
<asp:DropDownList <asp:DropDownList <asp:Button
The Page_Load event is equally straightforward, and is as common as the preceding Web form. We use our data access layer to retrieve the available countries and bind that to our countries DropDownList.
//C# if (!Page.IsPostBack) { countries.DataSource = DAL.GetShippingCountries(); countries.DataTextField = "Country"; countries.DataValueField = "Id"; countries.DataBind(); countries.Items.Insert(0, new ListItem("Please Select", "0")); }
This is where our code stops being typical. First, we'll create our server-side function that we want to call from JavaScript.
'VB.NET <Ajax.AjaxMethod()> _ Public Function GetStates (ByVal countryId As Integer) As DataView Return DAL.GetCountryStates(countryId) End Function
This is like any other function you'd normally have: it expects the ID of the country we want to get, and passes the request to the DAL. The only difference is that we've marked the method with the AjaxMethodAttribute. The last server-side step left to do is register our class containing the above method (in this case it's our code-behind) with Ajax.NET through a call to RegisterTypeForAjax.
//C# Ajax.Utility.RegisterTypeForAjax(typeof(Sample)); 'VB.NET Ajax.Utility.RegisterTypeForAjax(GetType(Sample))
We're almost done; all that's left is to call the GetStates method from JavaScript and handle the response. We logically want to call GetStates when the user selects a new item from the list of countries. To do so, we'll hook into the JavaScript onChange event. Our Web form code thus changes slightly.
<asp:DropDownList
The JavaScript LoadStates function will be responsible for issuing the asynchronous request through the proxy created by Ajax.NET. Remember that, by default, the proxy Ajax.NET created is of the form <RegisteredTypeName>.<ServerSideMethodName>. In our case, that'll be Sample.GetStates. We'll also want to pass in our country ID parameter and the callback function that Ajax.NET should call once the server-side function is done.
//JavaScript function LoadStates(countries) { var countryId = countries.options[countries.selectedIndex].value; Sample.GetStates(countryId, LoadStates_CallBack); }
Finally, the last step is to handle the response in our LoadStates_CallBack function. Probably the most productive feature of Ajax.NET is its support for a number of .NET types (I've mentioned this a few times already). Recall that our server-side function returned a DataView. What does JavaScript know of DataViews? Nothing, but JavaScript is an object-oriented language, and Ajax.NET takes care of not only creating an object similar to the .NET DataView, but also maps the return value from the function to the JavaScript clone. You should keep in mind that the JavaScript DataView is merely a replica of the actual DataView, and doesn't (currently) support much more functionality than looping through the rows and accessing the column values (functionality such as setting the RowFilter or Sort properties).
function LoadStates_CallBack(response) { //if the server-side code threw an exception if (response.error != null) { //we should probably do better than this alert(response.error); return; } var states = response.value; //if the response wasn't what we expected if (states == null || typeof(states) != "object") { return; } //Get the states drop down var statesList = document.getElementById("states"); statesList.options.length = 0; //reset the states dropdown //Remember, its length not Length in JavaScript for (var i = 0; i < states.length; ++i) { //the columns of our rows are exposed like named properties statesList.options[statesList.options.length] = new Option(states[i].State, states[i].Id); } }
After a bit of error checking, the preceding JavaScript gets the states drop-down list, loops through the response's value, and dynamically adds options to the drop-down list. The code is clean, straightforward, and eerily similar to C# and Visual Basic .NET. Personally, as a developer who's created JavaScript arrays based on server-side variables and linked them together, I still have a hard time believing it actually works.
There is one major issue that might not be obvious. Since the DropDownList was dynamically created in JavaScript, its items aren't part of the ViewState and won't be maintained. That means that our button's OnClick event handler needs to do some extra work.
'VB.NET Private Sub submit_Click(sender As Object, e As EventArgs) Dim selectedStateId As String = Request.Form(states.UniqueID) 'should do some user validation... states.DataSource = DAL.GetCountryStates(Convert.ToInt32(countries.SelectedIndex)) states.DataTextField = "State" states.DataValueField = "Id" states.DataBind() states.SelectedIndex = states.Items.IndexOf(states.Items.FindByValue(selectedStateId)) End Sub
First, we can't use the states.SelectedValue property and must use Request.Form. Second, if we want to redisplay the list to the user, we need to bind the states DropDownList, thankfully reusing the same data access method. Finally, the selected value has to be programmatically set.
Sample 2: Document Locker
For our next example, we'll take a more complete feature and improve it with AJAX. This example will be of a simple document management system. Like any decent document management system, we have to provide concurrency management. That is, we need a way of handling two users trying to edit the same document. We'll do so by creating some type of locking mechanism that prevents one user from editing a document already being edited. We'll use AJAX to make the user's experience with our locking mechanism more pleasant. First, we'll create a queue of documents the user tried to edit but couldn't (because it was already being edited), and automatically notify him or her when they become available. Second, we'll make sure to unlock a document if the user closes his or her browser or navigates away. This last feature helps ensure that documents don't stay forever locked. For the purpose of this guide, we'll skip the functionality not related specifically to the AJAX implementation; however, the downloadable project contains everything.
First, when a user tries to edit a document, we'll try to acquire an exclusive lock on it and, failing that, we'll add the document to the user's queue and send him or her back to the main page. There's nothing specific to AJAX here, but we'll look at the code in order to give the example the necessary context. In the OnLoad event of the Page used for editing, the following is added.
//C# if (!Page.IsPostBack) { //should validate user input Document document = GetDocument(Request.QueryString["id"]); //We have the document, but can't edit it! if (!Locker.AcquireLock(document)) { //let's add it to the user's list of docs to watch User.CurrentUser.AddDocumentToQueue(document.DocumentId); Response.Redirect("DocumentList.aspx"); } //ok, we have the document and CAN edit it //... }
The key line is where the document is added to the current user's queue, which adds it to the session. Next, we'll create a user control, which can be placed on any page, used to notify the user when a queued document has become available. This user control will contain a single AJAX method, along with the code necessary to register the class with AJAX.
'VB.NET Private Sub Page_Load(s As Object, e As EventArgs) Handles MyBase.Load Ajax.Utility.RegisterTypeForAjax(GetType(UnlockNotifier)) End Sub 'Loops through the queued documents and checks if they're available <Ajax.AjaxMethod()> _ Public Function GetUnlockedDocuments() As DocumentCollection 'Get all the queued document ids belonging to the user Dim queuedDocument As ArrayList = User.CurrentUser.DocumentQueue Dim unlocked As DocumentCollection = New DocumentCollection For Each documentId As Integer In queuedDocumentIds 'If the queued document is no longer locked If Not Locker.IsLocked(documentId) Then unlocked.Add(Document.GetDocumentById(documentId)) End If Next Return unlockedDocuments End Function
All that's needed now is some JavaScript to make the request and handle the response. We'll place the released document information, if any, inside a table that we'll dynamically build, based on the response. To do so we'll start off with our HTML.
<div id="notifyBox" style="display:none;"> <b>The following queued documents can now be edited</b> <table cellpadding="5" cellspacing="0" border="0" style="border:1px solid #EEE;" id="notifyTable"> </table> </div>
We use the DIV tag to hide everything when no documents are available (or maybe none are queued for the user), and the TABLE tag to display the results. We'll use a polling system to see if any queued documents are available. Basically, this means we'll keep calling the server-side method, with a delay, and display the results. The first call will simply occur when the page loads, and subsequent calls will be timed to happen every X seconds.
<script language="javascript"> window.setTimeout("PollQueue();", 2000); //fires every 2 seconds to check if a queued document was released //in a real system with a lot of users, 2 seconds might put too high //a load on the server. We could even check first to see if the user //even has anything queued, but we'll certainly need to do some //performance testing function PollQueue() { //UnlockNotifier is the type we registered with Ajax.NET //GetUnlockedDocuments is a method within that type marked with //the AjaxMethod attribute UnlockNotifier.GetUnlockedDocuments(PollQueue_CallBack); //calls itself every 2 seconds window.setTimeout("PollQueue();", 2000); } </script>
All that's left is to handle the response. This is similar to the code from the previous example. First, check for any errors, get the response, loop through the available documents, and dynamically build our HTML, in this case adding rows and columns to our table.
function PollQueue_CallBack(response) { var notifyBox = document.getElementById("notifyBox"); var notifyTable = document.getElementById("notifyTable"); //if we couldn't find our table notification box if (notifyBox == null || notifyTable == null) { return; } //if the server-side code threw an exception if (response.error != null) { notifyBox.style.display = "none"; alert(response.error); //we should probably do better than this return; } var documents = response.value; //if the response wasn't what we expected if (documents == null || typeof(documents) != "object") { notifyBox.style.display = "none"; return; } for (var i = 0; i < notifyTable.rows.length; ++i) { notifyTable.deleteRow(i); } for(var i = 0; i < documents.length; ++i) { var row = notifyTable.insertRow(0); row.className = "Row" + i%2; var cell = row.insertCell(0); cell.innerHTML = documents[i].Title; cell = row.insertCell(1); var date = documents[i].Created; cell.innerHTML = date.getDay() + "/" + date.getMonth() + "/" + date.getYear(); cell = row.insertCell(2); cell.innerHTML = "<a href='DocumentEdit.aspx?id=" + documents[i].DocumentId + "'>edit</a>"; } notifyBox.style.display = "block"; }
The last quick improvement we'll look at is to automatically unlock a document being edited if the user closes his or her browser, navigates to another link, or clicks the back button. Typically, this is achieved by hooking into the JavaScript OnBeforeUnLoad event or OnUnload event, opening a new small popup that does some cleanup on page load, and then closes itself down. While your own use of popups might be legitimate, others don't play so nice, resulting in popup blocking and documents that stay locked forever. To solve this problem, we'll still rely on the two JavaScript events, but instead of launching a popup, we'll execute a server-side method through AJAX. On our page used to edit a document, the one that places a lock, we add some simple JavaScript.
<script language="javascript"> //Makes sure the document is unlocked if the user closes the //browser or hits the back button window.onbeforeunload = ReleaseLock; function ReleaseLock() { Locker.ReleaseDocument(<%=DocumentID%>); } </script>
Here, DocumentId is a variable defined and set in code behind. Alternatively we could store DocumentId in the session and access that in the server-side ReleaseDocument. ReleaseDocument basically removes the document from the list of locked documents.
Sample 3: Forums Subject Search
The last example we'll look at will be the modification of an existing app. I heard this idea first proposed by Josh Ledgard as a feature being played with for the MSDN forums. The goal of it is to try to help users with questions help themselves, as well as to curb the number of duplicate posts. Basically, when a user goes to ask a new question in the forum, he or she enters a subject and a question, all too often not doing a search to see whether the question was already asked and answered. Enter AJAX. After the user finishes entering the subject (and tabs out of the field), we'll asynchronously search the forums, based on the subject, and non-obtrusively present the results to the user. Sometimes the results will be helpful, sometimes not.
To accomplish this, we'll modify the asp.NETPRO Reader's Choice Award for Best Forum Application, CommunityServer. The downloadable samples doesn't include the code in this section (or the forums), but you can learn more about CommunityServer at and apply the following code snippets to it.
With CommunityServer installed and Ajax.NET configured (references and handler added to web.config), we need only make a few changes to get the desired functionality. First, we'll go to the CreateEditPost.cs file in the CommunityServerForums project. Think of this as the code-behind for the page where users go to add a new post. Here we'll add our AJAX-enabled function.
//C# [Ajax.AjaxMethod()] public static ArrayList Search(string search) { SearchQuery query = new SearchQuery(); query.PageIndex = 0; //get the first 10 results query.PageSize = 10; query.UserID = Users.GetUser().UserID; query.SearchTerms = search; return new ForumSearch().GetSearchResults(query).Posts; }
We are able to leverage the search functionality already built into CommunityServer and simply have our function wrap around it. As always, the type must be registered with Ajax.NET. We'll do this in the InitializeSkin function of the same file (think of it as Page_Load).
//C# Ajax.Utility.RegisterTypeForAjax(typeof(CreateEditPost));
Before we can jump into JavaScript, we need to make one final server-side change. Custom classes returned to Ajax.NET, such as the ForumPost contained in the ArrayList we are returning, must be marked with the Serializable attribute. All we do is go into the Components/ForumPost.cs file of the CommunityServerForums project, and add the attribute.
//C# [Serializable] public class ForumPost : Post { ... }
At the presentation side, we need only modify Themes/default/Skins/View-EditCreatePost.cs in the CommunityServerWeb project. First, we'll hook into the onBlur event of the subject's textbox.
<asp:textbox onBlur="Search(this.value);" id="PostSubject" runat="server" ... />
Next, we write the JavaScript Search method so that it calls our server-side Search.
var oldValue = ''; function Search(value) { //don't search again for something we just searched //would happen if the user is tabbing back and forth if (value != oldValue) { CreateEditPost.Search(value, Search_CallBack); oldValue = value; } }
Finally, all that's left is to handle the response. Since the previous example showed a slightly more elegant way to display results in a table, we'll merely create some dynamic HTML and stick it into a fictitious DIV.
function Search_CallBack(response) { //since the search functionality automatically redirects if there //are no results, we can't rely on response.error var results = response.value; //if we didn't get a result if (results == null) { return; } //a div that we'll use to put our results var someDiv = document.getElementById("someDiv"); var html = ""; for (var i = 0; i < results.length; ++i) { var result = results[i]; html += "<a target=_blank"; html += result.Subject; html += "</a><br />" } someDiv.innerHTML = html; }
By making minor modifications to three files (plus the web.config for configuration) of the CommunityServer application, we were able to add some pretty nifty functionality. However, do be cautious about simply adding AJAX-enabled functionality to an existing application. The preexisting ForumSearch class doing the actual search might not have been designed for the type of use we've introduced. Our code will likely result in a number of extra searches being performed, and the impact could be significant.
AJAX and You
How and where AJAX fits into your applications, and whether they already exist or not, is going to be very situational. Although we've seen how easy it is to create AJAX-enabled solutions with Ajax.NET, there are other considerations to take into account. A serious concern is the impact on the overall architecture and maintainability of your application. AJAX can further blur the line between your system's layers, notably the presentation, presentation logic, and business layers. This isn't an issue with AJAX itself, but rather with how you'll make use of it. As long as you are aware of how easy it might be to cause some bleeding between layers, and only do so calculatingly, all should be good.
Will an application that uses AJAX be harder to maintain? The answer largely depends on how much JavaScript you are already using, and how good you are at organizing and maintaining it. Many developers feel that JavaScript is harder to write, test, and debug (not because of JavaScript itself, but because of tool support and developer knowledge). If you are currently implementing a linked drop-down list using JavaScript, and switch to AJAX, your code will probably get easier to maintain (Ajax.NET's support for .NET types and arrays is a big reason for this). However, if you are going the post-back route, you'll now be introducing a whole new language to your application (JavaScript), and you'll have to deal with having some data not participating in ViewState (as we saw in the button click event).
Another consideration is the impact AJAX will have on the usability of your Web site. Even though the ultimate gift of AJAX is to create more responsive interfaces, developers should keep two things in mind. First, and most obviously, AJAX is dependent on JavaScript. We all know that some users disable JavaScript, and that some standards (such as the Canadian government Common Look and Feel [think Canada's 508]) require that Web sites work with or without JavaScript. So, you shouldn't assume that the AJAX functionality is working, and you should have your application fall back to more normal Web processing if it isn't available. Second, AJAX applications might be unfamiliar (even if it's superior) to the way users are used to using applications. An example of this is that a page that does various things through AJAX might not behave with the Back button, Favorites menu, and other browser features in the way a user thinks it should.
Conclusion
AJAX isn't just a hyped upcoming technology; instead, it's a concrete framework that can provide you with alternative solutions for your everyday problems when building Web applications. Ajax.NET makes it easy for ASP.NET developers to embrace AJAX. The three examples we looked at, along with the downloadable projects, are meant to help you understand how to use AJAX and Ajax.NET, and also provide a simple playground for you to try out some of your own ideas. AJAX is about more than creating neat and cool applications; it can truly lead to improved customer satisfaction and a competitive advantage. Some of the high-level concepts being discussed for Atlas could significantly improve on the products we deliver. Personally, the best implementations of AJAX I've seen are fairly lightweight and just feel right. Your own implementations should be an equally positive experience for your users. Remember though, given a problem, AJAX probably won't be the only solution, and it might not be the best. Now, let's prove that the ASP.NET community is second to none, and let's clean house.
About the authorAbout the author
Karl Seguin spends much of his time in the Microsoft ASP.NET newsgroups helping other developers and looking for helpful topics to write about. When he's not working or helping, he's relentlessly cleansing Azeroth of the Gnomish plague. | https://msdn.microsoft.com/en-us/library/aa479042.aspx | CC-MAIN-2016-50 | refinedweb | 4,468 | 57.16 |
Complete newby here. I’m having a problem getting my code to respond in the way that I expect it. I imagine it probably has to do with my variable use.
What I’m trying to accomplish:
I’m using the IR Remote and LiquidCrystal libraries, basically using the tutorial’s code with a few modifications. I’m trying to build a simple reader that will read a variety of IR codes from remotes. I need to be able to take it to a location and read the response from dozens of remotes in different locations. Because of that, want my 1602 LCD to display the code so that I can make note of it for later. I plan to use the codes to create an IR blaster button box that will turn on all of my devices at once (multiple projectors and TVs, multiple manufacturers).
My questions/problems:
Question #1: will this even work to get the codes that I can create a IR transmitter?
Question #2: The Serial Monitor responds fine (formatted the way I want and everything). The LCD simply returns “0”. So I know that it is looping properly, but is somehow not interpreting the data. My gut says that it’s in the variable value “results” somewhere, but I really don’t know. How can I get the LCD to give me a meaningful reading of my remote’s code?
Question #3: Is there a way to store the inputs to retrieve later? For instance, if I go around and gather all of my remotes and get all of their codes, is there any way to download the data when I get back to my computer?
Here is my code:
#include <IRremote.h> #include <LiquidCrystal.h> int IR_RECEIVE_PIN = 7; // Receive on pin 11 LiquidCrystal lcd(12, 11, 5, 4, 3, 2); decode_results results; void setup() { Serial.begin(9600); lcd.begin(16,2); lcd.print("New Line"); IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK); // Start the receiver, enable feedback LED, take LED feedback pin from the internal boards definition } void loop() { if (IrReceiver.decode()) { IrReceiver.printIRResultShort(&Serial); lcd.clear(); lcd.print(results.value, HEX); delay(500); IrReceiver.resume(); // Continue receiving } } | https://forum.arduino.cc/t/using-ir-remote-with-lcd/699484 | CC-MAIN-2021-43 | refinedweb | 361 | 65.32 |
Distributed Computing with Workers
Cloudera Data Science Workbench provides basic support for launching multiple engine instances, known as workers, from a single interactive session. Any R or Python session can be used to spawn workers. These workers can be configured to run a script (e.g. a Python file) or a command when they start up.
Workers can be launched using the launch_workers function. Other supported functions are list_workers and stop_workers. Output from all the workers is displayed in the workbench console of the session that launched them. These workers are terminated when the session exits.
Using Workers for Machine Learning
The simplest example of using this feature would involve launching multiple workers from a session, where each one prints 'hello world' and then terminates right after. To extend this example, you can remove the print command and configure the workers to run a more elaborate script instead. For example, you can set up a queue of parameters (inputs to a function) in your main interactive session, and then configure the workers to run a script that pulls parameters off the queue, applies a function, and keeps doing this until the parameter queue is empty. This generic idea can be applied to multiple real-world use-cases. For example, if the queue is a list of URLs and the workers apply a function that scrapes a URL and saves it to a database, CDSW can easily be used to do parallelized web crawling.
Hyperparameter optimization is a common task in machine learning, and workers can use the same parameter queue pattern described above to perform this task. In this case, the parameter queue would be a list of possible values of the hyperparameters of a machine learning model. Each worker would apply a function that trains a machine learning model. The workers run until the queue is empty, and save snapshots of the model and its performance.
Workers 3
import cdsw workers = cdsw.launch_workers(n=2, cpu=0.2, memory=0.5, code="print('Hello from a CDSW Worker')")
R
library("cdsw") workers <- launch.workers(n=2, cpu=0.2, memory=0.5, env="", code="print('Hello from a CDSW.
Example: Worker Network Communications CDSW CDSW("CDSW_MASTER_IP")) con <- socketConnection(host=Sys.getenv("CDSW_MASTER_IP"), port = 6000, blocking=TRUE, server=FALSE, open="r+") write_resp <- writeLines("Hello from Worker", con) server_resp <- readLines(con, 1) print(paste("Worker received: ", server_resp)) close(con)
Python 3) | https://docs.cloudera.com/documentation/data-science-workbench/1-6-x/topics/cdsw_parallel_computing.html | CC-MAIN-2022-21 | refinedweb | 400 | 54.63 |
PyCharm has been updated to support the new language features of Python 3.3:
- New
yield fromexpression for generator delegation
- The
u'unicode'syntax is accepted again for
strobjects
- New
raise ... from Nonesyntax for suppressing exception context
- Reworked I/O exception hierarchy
- New
venvstandard library module (Python virtual environments, as in the popular
virtualenvpackage)
- Native support for implicit namespace packages
We’ve recorded a screencast What’s New in Python 3.3 as a quick introduction to the new features:
The source code used in this screencast is hosted on GitHub.
Back to School Sale!
Get up to 50% OFF personal licenses for PyCharm and other JetBrains products before September 14th.Get up to 50% OFF personal licenses for PyCharm and other JetBrains products before September 14th.
Special offer details.
I have a question, i work in a linux box with pycharm, the java version is number 6, can i upgrade to java 7?
Thanks for you great work !!
Thank you. Oracle Java 7 should be fine.
I installed java sdk 7, but pycharm still uses java 6.
How i say pycharm to use java 7?
Thanks
Set the
JAVA_HOMEenvironment variable to point to your Oracle 7 SDK path. Setting it so that the PyCharm launcher can see it during its start-up is OS-dependent. In Linux you can put it into the bash start-up script (~/.bashrc or ~/.bash_profile in various Linux distros).
Thanks ! | http://blog.jetbrains.com/pycharm/2012/09/python33-support/ | CC-MAIN-2014-10 | refinedweb | 236 | 58.08 |
directory
1. Create a new simple window
2. Write the keys in the window
3. Simple key operation
1. Flow layout manager:
2. Static text box:
IV. window drawing
v. window mouse response
6、 Summary
ok, stop!
what about us
cough
I. create a new simple window
in Java, “Java. AWT” will be used to create a new window. You can refer to the API document
Import Java. AWT. *;// contains all classes used to create user interfaces and draw graphics and images.
this is the download link of API documents;
API download address
I wrote it in notpad + +, so I used this to demonstrate it directly to iron workers;
First, we write simple window Codes:
import Java. AWT. *;
public class chuangko{
public static void main (string args []) {
frame P = new frame ("hello");// define the window name
p.setsize (500500);// set the window size (length, width)
p.setlocation (300200) ;// set the interface position (length, width)
p.setbackground (color. Blue) of the upper left corner of the window;// set the internal color
p.setvisible (true);// display the window
}
}
the operation effect is as follows:
now we have mastered the most basic window coding;
PS: it doesn’t feel difficult. Hey
II. Write the keys in the window. In a window code, we not only display the window, but also realize its value. Therefore, adding window keys is an essential method!
We continue to modify the above code;
first, we find the button class in the API document;
public class button
extends component
implements accessible
// this class creates a label button. When the button is pressed,
this is a common method of the button class;
fill in the original code:
import Java. AWT. *;
public class chuangko{
public static void main (string args []) {
frame P = new frame ("hello");
p.setsize (1000500);
p.setlocation (300200);
p.setbackground (color. Blue);
p.add (New button ("!");// display, create a new key, and define the key name
/* or:
button B = new button ("!");
p.add (b);
*/
p.setvisible (true);
}
}
so that we can simply write a key, but it’s not enough!
we will the key layout:
import Java. AWT. *;
public class chuangko{
public static void main (string [] args) {
frame f = new frame ("hello");
f.setlayout (New GridLayout (2,1));// initialize the key layout style, two rows and one column
f.setsize (300200);
f.setbackground (new color (200,50104));// define the window background color, and the value in parentheses represents the color value
f.setlocation (500400);
panel a = new panel (New borderlayout());// define the upper half
panel B = new panel (New borderlayout());// define the lower half
panel A1 = new panel (New GridLayout (2,1));// define a value A1, which is two rows and one column
panel B1 = new panel (New GridLayout (2,2));// define a value B1, which is two rows and two columns
A.add (New button ("0"), borderlayout. West);// place it on the west of part a
A.add (New button ("0"), borderlayout. East);// place it on the east of part a
a1.add (New button ("0");// the first row in the middle
a1.add (New button ("0");// the second row in the middle
A.add (A1, borderlayout. Center) ;// put A1 in the middle of part a
b.add (New button ("0"), borderlayout. West);// put it in the west of Part B
b.add (New button ("0"), borderlayout. East);// put it in the East of Part B
for (int i = 0; I <4; I + +)
{
b1.add (New button ("0");// evenly distribute
}
b.add (B1, borderlayout. Center);// put B1 in the middle of Part B
f.add (a);// define the upper part
f.add (b);// define the lower part
f.setvisible (true);// display
}
}
irons. Don’t panic when you see such a long code. In fact, it is very simple to carefully understand
the code runs as follows:
In this way, we understand the key layout, but we find that pressing the key does not respond, so we need to write a monitoring method to operate the key;
let’s first understand what monitoring is;
first, we find in the API document: Monitor
public abstract class monitor
extends notification broadcaster support
implements monitormbean, mbenregistration
// defines the common part of all monitor MBeans.
we call it with the interface” actionlistener “;
After understanding the monitoring method, let’s try to write a simple program;
the code is as follows:
import java.awt.*;
import java.awt.event.*;
public class jt{
public static void main (string [] args) {
frame f = new frame ("listen");
button B = new button ("!!!");
monitor BH = new monitor();// listen, new who calls who
b.addactionlistener (BH);// passive listen, hook function
f.add (B, borderlayout. Center);// key
f.pack () ;// set the page reasonable size according to the key
f.setvisible (true);
}
}
class monitor implements actionlistener// interface
{
public void actionperformed (ActionEvent E)// encapsulate
{
system.out.println ("OK");// listen for expression
}
}
code operation effect:
When we click the button, “OK” will be displayed in the command prompt;
therefore, we have mastered a certain method of key writing!!!
III. simple key operation
after understanding the above knowledge, we try to write an addition program and display it in a window;
before writing, we need to master the following knowledge points:
1. Flow layout manager:
class: flowlayout
we can query
in the API document
2. Static text box:
found in API document: label
format is as follows:
label a = new label (" ");
after understanding the above knowledge, we can start to write the addition program
code, which is analyzed as follows:
import Java. AWT. *;
import Java. AWT. Event. *;
public class jiafa{
public static void main (string [] args) {
new tfframe(). Launchframe();
}
}
class tfframe extends frame{
textfield TF, TF1, TF2;// it is defined externally, otherwise it cannot be called!
public void launchframe()// run
{
TF = new textfield (10) ;// allows you to edit the text component of single line text. Set the width
TF1 = new textfield (10);
TF2 = new textfield (20);
label lblplus = new label ("+");
// enter static text, which is a component that can place text in the container. A label displays only one line of read-only text. The text can be changed by the application, but users cannot edit it directly.
Button B = new button ("=");// set the key
b.addactionlistener (New mymonitor());
setlayout (New flowlayout());// use the flow layout manager
add (TF);// write add
add (lblplus);
add (TF1);
add (b);
add (TF2);
tf.addactionlistener (New tfactionlistener());// create a new interface
tf1.addactionlistener (New tfactionlistener());// create a new interface
pack();
setvisible (true);// display the input box
}
// declared inside the class, outside the method!!!
private/* you can only access */class mymonitor implements actionlistener// directly define the internal class, and you can access it directly!!!
{
public void actionperformed (ActionEvent E)// encapsulation
{
int N1 = integer. ParseInt (TF. Gettext());// call integer
int N2 = integer. ParseInt (TF1. Gettext());
TF2. Settext ("" + (N1 + N2));// define the operation of the value
}
}
}
}
so that we have written the basic addition code;
run and try:
——————————————————————————-
After learning the above knowledge, we can try to write a window program to calculate the square;
put the answer at the end of the article, iron men;
careful ironmen may find that all windows cannot be closed, so we need a window closing code;
I won’t elaborate on this. I have explained it in previous blogs. Go directly to the code!
this.addWindowListener(
new WindowAdapter()
{
Public void windowclosing (windowevent E)// encapsulates the window closing type
{
setVisible(false);
System. Exit (0);// display good }
}
);
this string of codes can be directly put behind the export code of the output display!
IV. window drawing
originally does not belong to the aspect of creating a new window, but this is too simple. I’ll say it directly together, irons;
PS: Yes, it’s really simple. Hey;
public class color
extends object
implements paint, serializable
// color class is used to encapsulate the colors in the default sRGB color space, or to encapsulate the colors in any color space identified by colorspace
public abstract class graphics
extends object
color class is used to set image color; graphics class is used to set image type;
after that, we found the interface paint;
public void paint (graphics g)
{
}
master the above knowledge points. We can try to write a small program;
import java.awt.*;
import java.awt.event.*;
public class ht{
public static void main (string [] args) {
new painframe(). Launchframe();
}
}
class painframe extensions frame {
public void launchframe() {
setboundaries (200,0640480);// define the interface location and its size
setvisible (true);
// bring it to you
addwindowlistener
(
new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
setVisible(false);
System.exit(0);
}
}
);
}
public void paint (graphics g)// draw objects and draw on images
// the graphics class is an abstract base class for all graphics contexts, allowing applications to draw on components (implemented on various devices) and closed screen images.
{
color C = g.getcolor();// define a new color
g.setcolor (color. Red) ;// color
g.filloval (50,60,50,50);// define the image style, position and size
g.setcolor (color. Blue);
g.fillrect (200360,80,50);
g.setcolor (c);// reply to the scene (habit)
}
}
operation effect:
although it looks rudimentary, it has at least mastered the most basic window drawing;
window mouse response
yesterday was the Tanabata Festival. I’m sure many iron people were lonely; (/ dog me too)
But!
don’t lose heart, iron men, we can write a window to express ourselves;
NAH! This is what I wrote; (/ dog heart painting is a little ugly, almost look at it)
iron men want to try this;
this window is actually very simple, that is, the window written with the mouse response method!
first
We still need to use API document query!
to find class point;
construct method summary
point()
construct and initialize a point at the origin (0,0) of coordinate space.
point (int x, int y)
specified in coordinate space (x, y) Position constructs and initializes a point.
point (point P)
constructs and initializes a point with the same position as the specified point object.
there is also an interface: mouselistener
method summary
void mouseClick (mouseevent E)
Called when the mouse button is clicked (pressed and released) on the component.
void mouseentered (mouseevent E)
called when the mouse enters the component.
void mouseexisted (mouseevent E)
called when the mouse button leaves the component.
void mousePressed (mouseevent E)
called when the mouse button is pressed on the component.
void mousereleased (mouseevent E)
the mouse button is called when it is released on the component.
if you find the above two, it’s all but patchwork. Hahaha
let’s write this Code:
Import Java. Util. *;
import Java. AWT. *;
import Java. AWT. Event. *;
public class shub {
public static void main (string [] args) {
new MyFrame ("orphan");// window name
}
}
class MyFrame extensions frame {
ArrayList <point> points = null.// initializing the interface, <point> specifies that only types can be loaded
MyFrame (string s) {
super (s);
points = new ArrayList <point> ();// put the space (x, y) into the interface, <point> specifies that only the type
setlayout (null);
setboundaries (600200520520);// text box size position
this. Setbackground (new color (255100100));
setvisible (true);
/**///close the window and write it behind the display window!
this. Addwindowlistener (
new WindowAdapter()
{
Public void windowclosing (windowevent E)// encapsulates the window closing type
{
setVisible(false);
System. Exit (0);// display good }
}
);
/* */
this. AddMouseListener (New monitor());// addMouseListener adds a specified mouse listener to receive mouse events sent from this component.
}
public void paint (graphics g)// draw (mouse click style)
{
iterator <point> a = points. Iterator();// specify that only point
while (a.hasnext()) //Each point produces a pattern once. Loop
{
point P = (point) a.next();
g.setcolor (color. Red);
g.filloval (p.x, p.y, 10,10);
}
}
public void addpoint (point P) {
points. Add (P);// add the new mouse point
}
}
class monitor extensions mouseadapter// the abstract adapter class that receives mouse events.
{
public void mousePressed (mouseevent E)// after receiving, the method type is encapsulated in
{
MyFrame f = (MyFrame) e.getsource();// get the MyFrame event source
f.addpoint (new point (e.getx(), e.gety());// point represents a point in the (x, y) coordinate space, which is specified with integer precision. Each click of the mouse will create a new point object
f.repeat() ;// redraw the frame and redraw the component.
/* repeat update() - paint(), call order (double buffering) */
}
}
what about this;
this seemingly complex code will be solved;
so the code, which seems complex, is actually a paper tiger. Ah!
VI. summary
irons, these are the basic knowledge points for the introduction of Java window;
If the ironies have time, they can try it. These codes are put together; (/ fishing)
finally!
one more thing!
is very important!
help my brother find an object, ha ha
! Facial expression package attached!!! (PS: you can contact me by private letter, HXD)
Oh, yes! Forget the business!
I attached the square code practiced above. Remember to look at it after writing it!
code is as follows:
import Java. AWT. *;
import java.awt.event.*;
public class pf{
public static void main (string [] args) {
// new MyFrame ("square");
new tfframe(). Launchframe();
}
}
class tfframe extensions frame {
textfield N1, N2;
public void launchframe()
{
// frame f = new frame ("square");
N1 = new textfield (10);
N2 = new textfield (15);
Label f = new label ("square");
button B = new button ("=");
B. addactionlistener (New mymonitor());
setlayout (New flowlayout());
add (N1);
add (f);
add (b);
add (N2);
N1. Addactionlistener (New tfactionlistener());
pack();
setvisible (true);
addwindowlistener
(
new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
setVisible(false);
System.exit(0);
}
}
);
}
private class mymonitor implements actionlistener {
public void actionperformed (ActionEvent E) {
int a = integer. ParseInt (N1. Gettext());
N2. Settext ("" + (a * a));
}
}
}
}
remember! Remember! If you don’t understand, ask me in the comment area or in a private message There’s also the question of seeking Bo’s attention. I’m working hard every day. Iron and steel, life is not easy!
This is the end of this article on the detailed and comprehensive explanation of Java window. For more relevant Java window content, please search the previous articles of script home or continue to browse the relevant articles below. I hope you will support script home!
in the future | http://www.itworkman.com/239993.html | CC-MAIN-2022-21 | refinedweb | 2,309 | 65.52 |
recent
article on the O'Reilly Network showed how to edit XML using
Word 2003, as long as your target XML format was not too far-removed
from the built-in structural limitations of a word processor, and last
year there was a survey of
solutions on XML.com. But since Word 2000d, it has been possible to
"export as XML" if you are up for a little bit of post-processing.
In fact, Rick Jelliffe blogged about this
year's Open Publish conference: "If I were to pick a theme or meme, it
was that the decision on whether and how to support Word was by
far the most critical decision for most large XML deployments." The
"whether" is a big question, but here's something about how to support
Word in an XML project.
In this article, I will show you how to take the frighteningly
messy result of Word's "Save as Web Page" and turn it into well-formed XML,
using a few lines of Python and a touch of XSLT. Grab the sample Python application, and if you have
libxml2 installed, you can type:
libxml2
python wordconverter.py mydoc.htm > mydoc.xml
python wordconverter.py mydoc.xml > mynewdoc.htm
(Ignore the complaints from the libxml2 parser.)
Even if you do use Word 2003 (and many of us don't), you may find
that this is a more useful approach than WordprocessingML&--the Word
2003 XML format--particularly if you are producing web pages. One
major advantage of the hack I will show here is that it gives you
pre-rendered, web-ready versions of your images, equations, graphs, and
so on, nicely linked in img elements. You just have to
remove the non-HTML parts.
img
I have been using this technique for more than four years, both with a
commercial-but-free-to-use
processor that I helped specify, and with a .NET version that I
worked on for a former employer. These techniques are well tested on
thousands of documents.
To be really useful, you will need to create templates for your
authors so that you have predictable outputs to turn into
XML. Unfortunately, good template design, and the benefits of basing
your custom document types on HTML, are topics beyond the scope of a
single article. There is more about template design, particularly for
HTML output, at my site, in my Word Processor
Interoperability project.
If you "Save as Web Page" in Word 2000 or beyond and open the
result in a text editor, you will see something that is nearly XML, but
with some craftily designed hacks to make the document accessible
from a web browser (well, Internet Explorer, anyway) while containing enough embedded code to reconstitute a Word document in almost all of
its glory. This widely reviled format is classic Microsoft. When
first introduced, it used to crash or confuse competing browsers.
The goal for this little project is twofold: first, to figure out
how to get from Microsoft's format to well-formed XML (we will not be
validating this format with a schema or DTD), as from there it is
straightforward to use XSLT or the language of your choice to
transform the document, probably for rendering. For rendering, the
trick is to simply discard most of the proprietary, undocumented Word
features and transform the basic HTML paragraphs and tables into
something useful, maybe even valid XHTML.
The second part of the goal is to be able to reverse the process, and
turn the XML back into a Word document. You could use this to make
minor changes to an existing document, such as changing metadata or
incorporating comments from a web site. Or you could create
entirely new documents, based on a shell, and use Word to render
or edit them.
Now to work. The HTML head element starts off with some
pretty standard stuff. All we need to do here is quote the attribute
values, and close the unclosed elements meta
and link. For this, I have settled on libxml2's HTML
document parser, as
discussed
recently on XML.com over the more obvious alternative of Python's
own standard sgmllib. The main problem with sgmllib is that it turns all characters in
element names into lowercase. So to round-trip the document back into
Microsoft's format, we would need to use a big lookup table, or use a
hacked version of the library.
head
meta
link
sgmllib
<head>
<meta http-equiv=Content-Type
content="text/html;
charset=windows-1252">
<meta name=ProgId content=Word.Document>
<meta name=Generator
<meta name=Originator
<link rel=File-List
<link rel=Edit-Time-Data
Parsing an HTML document in libxml2 is one-line simple (assuming
that doc contains your document as a string), and it
deals with both attributes and empty elements with aplomb:
doc
import libxml2 htmldoc = libxml2.htmlParseDoc(doc, None)
This gives you an XML document, htmldoc, that you can
process like any other XML document. But it's not that simple. There are
some limitations to libxml2's considerable powers, starting with the
fact that that it does not seem to understand the XML-style namespace
declarations that Word puts in at the top of the document, even though they are fine
in XML. You may also run into issues with encodings, particularly when
using fonts such as Wingdings and the like. I have not attempted to deal with
this issue in detail, but there is a commented hack in the sample file
that should get you started.
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:
So when libxml2 encounters bits of a document like this in the office
namespace:
office
<o:p> </o:p>
it complains, and turns them into this:
<p/>
We can't have elements moving between namespaces, from the office
namespace to the default HTML namespace, but there is a simple
solution, which involves replacing the : character with a _ character--and then
putting it back later. The latter bit we'll do using XLST.
:
_
#Hide namespaces from libxml2's HTML parser
qualifiedname = '<(/?)(\w):(\w)'
hackedname = r'<\1\2_\3'
doc = re.sub(qualifiedname, hackedname, doc)
The namespace issue is a bit ugly, but nothing compared to the horror of
what I like to call the Mutant Markup Declaration (MMD), which is the
dirty trick used to hide proprietary Word data in an HTML file. There
are two variants of the MMD.
This kind of MMD that starts with <!--[if some-condition
]> and ends with <![endif]--> is a
species of comment, to hide things from "normal" software:
<!--[if some-condition
]>
<![endif]-->
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
…
<o:Author>Peter Sefton</o:Author>
…
</o:DocumentProperties>
</xml><![endif]-->
Ironically, inside of the comment is pure, well-formed XML, thoughtfully
wrapped in <xml> tags to emphasize the point. This
is just a couple of regular expressions away from being XML. But how
to do it? The most obvious way would be to turn the MMDs into processing
instructions (PIs), as that is really their function. Unfortunately, though,
libxml2 ignores PIs when parsing HTML, so I settled on the ugly-but-safe approach of using empty elements, and made-up ones at that.
<xml>
Two substitutions will fix the MMDs:
startComment = r"<\!--\[(.*?)\]\>";
startCommentReplace = r"<<div language='mso-conditional'>";
doc = re.sub(startComment, startCommentReplace, doc)
endComment = r"<!\[(.*?)\]-->";
endCommentReplace = r"</div><mmd value='\1' comment='end' />";
doc = re.sub(endComment, endCommentReplace, doc)
Here's an example that illustrates a few more challenges. If you have
a style that you use for lists in Word, called L1* (for list, first
level, with a bullet), it might look something like this:
L1*
In Word's format, each paragraph looks like this (don't look at this if
you're squeamish; it's not pretty):
<p class=L10>
<![if !supportLists]>
<span lang=EN-AU style='font-family: Symbol;
mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol'><span
style='mso-list:Ignore'>•<span style=
'font:7.0pt "Times New Roman"'>...some spaces...
</span></span></span>
<![endif]>
<span lang=EN-AU>Bullet point</span></p>
There is a Mutant Markup Declaration in here marking the beginning
and end of some rendering information that uses non-breaking spaces
for rendering the list. This works (sort of) in conjunction with a CSS
stylesheet embedded in the document's head. The MMDs are easily dealt
with:
startMMD = r'<\!\[(.*?)\]\>'
startMMDReplace = "<mso-declaration"
doc = re.sub(startMMD, startMMDReplace, doc)
endMMD = r'<\!\[endif\]>'
endMMDReplace = "<m so-declaration"
doc = re.sub(endMMD, endMMDReplace, doc)
Now we can put it all together:
def parsehtmlfile(self, htmfilename):
self.htmfilename = htmfilename
self.doc = open(htmfilename).read()
#Remove mutant markup using regular expressions
self.doc = EscapeMMD(self.doc)
#Create a libxml2 XML document
self.htmldoc = libxml2.htmlParseDoc(self.doc, None)
There is one more complication to deal with. The list items in the
original Word document had the style L1*, but the
paragraph here is marked as class="L10". We need to look
in the CSS stylesheet, in the head, to resolve this
indirection. Here you will find a CSS rule that contains the
property we are looking for: mso-style-name. The trick here is to
extract the stylesheet and build a lookup table of class names, so you
can say getstylename('L10') and get the
answer L1*.
class="L10"
mso-style-name
getstylename('L10')
p.L10, li.L10, div.L10
{mso-style-name:L1*;
mso-style-parent:B1;
margin-top:6.0pt;
...
mso-ansi-language:EN-AU;}
styleNodes
styleNodes = self.htmlDoc.xpathEval("//*[local-name() = 'style']")
styles = ''
for styleNode in styleNodes:
styles += styleNode.serialize()
And call something to extract the style names and store them in a
dictionary:
self.extractstyles(styles)
Then it's a matter of using the magic of XPath to visit every node in
the document that has a class attribute, and if there is one, add
another made-up attribute: mso-style-name.
classNodes = self.htmldoc.xpathEval('//*[@class]')
for classy in classNodes:
className = classy.prop('class')
msoStyle = self.getStyleName(className)
if msoStyle:
classy.newProp('mso-style-name', msoStyle)
Now we have a libxml2 document object ready to serialize. The weird Microsoft markup has been escaped into mmd elements,
and namespaces have been escaped. The final step is to use a little bit of XSLT
to serialize the document. The only interesting part of this is the
part that puts the namespaces back, by matching elements that have an
underscore in their names and doing some string manipulation to
reinstate the namespaces.
mmd
<xsl:template
<xsl:variable name="new-name" select="concat(substring-before(local-name(), '_'), ':',
substring-after(local-name(), '_'))"/>
<xsl:element
<xsl:apply-templates
</xsl:element>
</xsl:template>
Finally, as promised, the return trip. There are only a few lines of
Python, because I did it in XLST. This makes it portable across
programming languages.
class xmltoword:
xmldoc = ''
styledoc = libxml2.parseDoc(wordxml2html)
style = libxslt.parseStylesheetDoc(styledoc)
def __init__(self):
pass
def parsexmlfile(self, fileName):
self.xmldoc = libxml2.parseFile(fileName)
def output(self):
return self.style.applyStylesheet(self.xmldoc, None).serialize()
This kind of hackish transformation is but one way to approach the
issue of getting Word documents into XML. One limitation is that while the round
trip gives you a document that Word will accept, there are changes to
whitespace and character encodings that mean you cannot automate
testing across a large set of documents. To build a higher-fidelity
version would require a custom parser. There are also ways of
extracting XML from .doc files, and macro-based approaches, even using
the OpenOffice.org word
processor, which can read Word files (give or take a bit) and natively saves
documents in XML. But as far as I know, my approach gives you
the best crack at round-tripping documents, rather than siphoning off
XML, provided you leave the proprietary stuff intact.
Before using this technique or the sample code on too many documents,
try it out with a representative sample of real material from your
users. And do be careful: my doctor friends tell me that they are
still seeing a lot of injuries from the sharp edges on the inside of
Microsoft Office files.
© , O’Reilly Media, Inc.
(707) 827-7019
(800) 889-8969
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. | http://www.xml.com/pub/a/2004/12/08/word-to-xml.html | CC-MAIN-2015-40 | refinedweb | 2,061 | 54.52 |
A configurable sidebar-enabled Sphinx theme
Project description
What paramiko.org, fabfile.org and pyinvoke.org.
A changelog can be found at the bottom of this page.
Features
Specifically, as compared to Kenneth’s theme:
- Easy ability to install/use as a Python package (tip o’ the hat to Dave & Eric’s sphinx_rtd_theme for showing the way);
- Style tweaks, such as better code-block alignment, Github button placement, page source link moved to footer, improved (optional) related-items sidebar item, etc;
- Many customization hooks, including toggle of various sidebar & footer components; header/link/etc color control; etc;
- Improved documentation for all customizations (pre-existing & new).
Installation
The bare minimum required to install is as follows:
pip install alabaster (or equivalent).
Enable the ‘alabaster’ theme, mini-extension, and sidebar templates in your conf.py:
import alabaster html_theme_path = [alabaster.get_path()] extensions = ['alabaster'] html_theme = 'alabaster' html_sidebars = { '**': [ 'about.html', 'navigation.html', 'relations.html', 'searchbox.html', 'donate.html', ] }
That’s it! You now have the standard Alabaster theme set up. Read on for more configuration options/concerns.
Theme location
The function alabaster.get_path dynamically returns Alabaster’s install location, ensuring that Sphinx can find and load it regardless of where/how you installed Alabaster. Using it is highly recommended.
If you’ve manually installed Alabaster and/or are doing funky things to your PYTHONPATH, you may need to replace the alabaster.get_path() call with your own explicit string, as per the Sphinx config docs.
Images
If you’re using either of the image-related options outlined below (logo or touch-icon), you’ll also want to tell Sphinx where to get your images from. If so, add a line like this (changing the path if necessary; see the Sphinx docs for ‘html_static_path’):
html_static_path = ['_static']
Theme options
Alabaster’s primary configuration route is the html_theme_options variable, set in conf.py alongside the rest. A brief example (note: snippet doesn’t include all possible options, see following list!):
html_theme_options = { 'logo': 'logo.png', 'github_user': 'bitprophet', 'github_repo': 'alabaster', }.)
body_text_align: Which CSS text-align value to use for body text (if there is any.)
description: Text blurb about your project, to appear under the logo.
description_font_style: Which CSS font-style to use for description text. Defaults to normal._type: Defaults to watch.
- github_count: Defaults to true.
github_banner: true or false (default: false) - whether to apply a ‘Fork me on Github’ banner in the top right corner of the page.
- If true, requires that you set github_user and github_repo.
- May also submit a string file path (as with logo, relative to $PROJECT/_static/) to be used as the banner image instead of the default.
travis_button: true, false or a Github-style "account/repo" string - used to display a Travis-CI build status button in the sidebar. If true, uses your github_(user|repo) settings; defaults to false.
codecov_button: true, false or a Github-style "account/repo" string - used to display a Codecov build status button in the sidebar. If true, uses your github_(user|repo) settings; defaults to false.
gratipay_user: Set to your Gratipay username if you want a Gratipay ‘Donate’ section in your sidebar.
- This used to be gittip_user before that service changed its name to Gratipay; we’ve left the old setting in place as an alias for backwards compatibility reasons. It may be removed in the future.
- If both options are given, gratipay_user wins..
show_powered_by: Boolean controlling display of the Powered by Sphinx N.N.N. & Alabaster M.M.M section of the footer. When true, is displayed next to the copyright information; when false, is hidden.
show_related: Boolean controlling whether the ‘next/previous/related’ secondary navigation elements are hidden or displayed. Defaults to false since on many sites these elements are superfluous.
page_width: CSS width specifier controlling default content/page width. Defaults to 940px.
sidebar_width: CSS width specifier controlling default sidebar width. Defaults to 220px..
- pink_1: Light pink.
- pink_2: Medium pink.
- ‘Go’ button.
- sidebar_list: Foreground color of sidebar list bullets & unlinked text.
- sidebar_hr: Color of sidebar horizontal rule dividers. Defaults to gray_3.
- anchor: Foreground color of section anchor links (the ‘paragraph’.
- seealso_bg: Background of .. seealso:: blocks. Defaults to gray_2.
- seealso_border: Border of same.
- warn_bg: Background of .. warn:: blocks. Defaults to pink_1.
- warn_border: Border of same. Defaults to pink_2.
- footnote_bg: Background of footnote blocks.
- footnote_border: Border of same. Defaults to gray_2.
- pre_bg: Background of preformatted text blocks (including code snippets.) Defaults to gray_2.
- narrow_sidebar_bg: Background of ‘sidebar’ when narrow window forces it to the bottom of the page.
- narrow_sidebar_fg: Text color of same.
- narrow_sidebar_link: Link color of same. Defaults to gray_3.
- code_highlight: Color of highlight when using :emphasize-lines: in a code block.
Fonts
- font_family: Font family of body text. Defaults to 'goudy old style', 'minion pro', 'bell mt', Georgia, 'Hiragino Mincho Pro', serif.
- head_font_family: Font family of headings. Defaults to 'Garamond', 'Georgia', serif.
- code_font_size: Font size of code block text. Defaults to 0.9em.
- code_font_family: Font family of code block text. Defaults to 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace.
Project background
Alabaster is a modified (with permission) version of Kenneth Reitz’s “Kr” Sphinx theme (no official repo, but it’s the one used in his Requests project). Kenneth’s theme was itself originally based on Armin Ronacher’s Flask theme. Many thanks to both for their hard work.
Implementation notes
- Fabric #419 contains a lot of general exposition & thoughts as I developed Alabaster, specifically with a mind towards using it on two nearly identical ‘sister’ sites (single-version www ‘info’.
Changelog
0.1.0 (2013-12-31)
- First tagged/PyPI’d version.
0.2.0 (2014-01-28)
- Allow control of logo replacement text’s alignment.
- Add customized navigation sidebar element.
- Tweak page margins a bit.
- Add a 3rd level of medium-gray to the stylesheet & apply in a few places.
0.3.0 (2014-02-03)
- Display Alabaster version in footers alongside Sphinx version. (This necessitates using a mini Sphinx extension).
- Other footer tweaks.
0.3.1 (2014-03-13)
- Improved Python 3 compatibility.
- Update styling of changelog pages generated by bitprophet/releases.
0.4.0 (2014-04-06)
- Add an option to allow un-hiding one’s toctree.
0.4.1 (2014-04-06)
- Fix an inaccuracy in the descriptin of logo_text_align.
- Update logo & text styling to be more sensible.
0.5.0 (2014-04-09)
- Add support for sidebar Travis status buttons.
0.5.1 (2014-04-15)
- Fix a bug in the new Travis support, re: its default value.
0.6.0 (2014-04-17)
- Allow hiding the ‘powered by’ section of the footer.
- Fix outdated name in setup.py URL field.
0.6.1 (2014-09-04)
- Update Gittip support to acknowledge the service’s rename to Gratipay.
0.6.2 (2014-11-25)
- Make .. warn:: blocks have a pink background (instead of having no background, which was apparently an oversight of the themes Alabaster is based on) and also make that color configurable.
0.7.1 (2015-02-27)
Note
There is no 0.7.0, there was some PyPI fun and replacing sdists isn’t permitted :)
- Finally add a changelog. To the README, for now, because a full doc site isn’t worthwhile just yet.
- Allow configuring a custom Github banner image (instead of simply toggling a default on or off). Thanks to Nicola Iarocci for the original patch.
- Explicitly note Python version support in the README and setup.py.
- Update Github button image link to use the newly-available HTTPS version of the URL; this helps prevent errors on doc pages served via HTTPS. Thanks to Gustavo Narea for the report.
- Add control over the font size & family of code blocks. Credit to Steven Loria.
- Allow control over font family of body text and headings. Thanks to Georg Brandl.
- Stylize .. seealso:: blocks same as .. note:: blocks for consistency’s sake (previously, .. seealso:: used the Sphinx default styling, which clashed). We may update these again later but for now, this is an improvement! Thanks again to Steven Loria.
- Allow control over CSS font-style for the site description/tagline element. Credit: Steven Loria.
- Add styling to disable default cell borders on .. bibliography:: directives’ output. Thanks to Philippe Dessus for the report.
0.7.2 (2015-03-10)
- Updated CSS stylesheets to apply monospace styling to both tt and code elements, instead of just to tt. This addresses a change in HTML generation in Sphinx 1.3 while retaining support for Sphinx 1.2. Thanks to Eric Holscher for the heads up.
0.7.3 (2015-03-20)
- Hide shadow related styles on bibliography elements, in addition to the earlier change re: border. Thanks again to Philippe Dessus.
0.7.4 (2015-05-03)
- Add code_highlight option (which includes general fixes to styling of code blocks containing highlighted lines). Thanks to Steven Loria.
0.7.5 (2015-06-15)
Honor Sphinx’s core html_show_copyright option when rendering page footer. Thanks to Marcin Wojdyr for the report.
Pre-history versions of Alabaster attempted to remove the “related” sub-navigation (typically found as next/previous links in other themes) but this didn’t work right for mobile-oriented styling.
This has been fixed by (re-)adding an improved sidebar nav element for these links and making its display controllable via the new show_related theme option (which defaults to false for backwards compatibility).
NOTE: to enable the related-links nav, you’ll need to set show_related to true and add relations.html to your html_sidebars (we’ve updated the example config in this README to indicate this for new installs).
Thanks to Tomi Pieviläinen for the bug report.
Update the “Fork me on Github” banner image to use an https:// URI so sites hosted over HTTPS don’t encounter mixed-content errors. Thanks to @nikolas for the patch.
Remove an orphaned </li> from the footer ‘show source’ section. Credit to Marcin Wojdyr.
0.7.6 (2015-06-22)
- Update how setup.py handles the README.rst file - load it explicitly as UTF-8 so the changelog containing non-ASCII characters doesn’t generate UnicodeDecodeError in terminal environments whose default encoding is not UTF-8 or other Unicode-compatible encodings. Thanks to Arun Persaud for the report and Max Tepkeev for the suggested fix.
- Fix left-margin & padding styling for code blocks within list-item elements, making them consistent with earlier changes applied to top-level code blocks.
- Expose page & sidebar widths as theme options page_width and sidebar_width. Their defaults are the same as the previously static values.
0.7.7 (2015-12-21)
- Add some margin-bottom to table.field-list p so field lists (e.g. Python function parameter lists in docstrings) written as multiple paragraphs, look like actual paragraphs instead of all globbing together.
- Fix incorrect notes in README re: renamed github_button_* options - the button_ was dropped but docs did not reflect this. Thanks to Nik Nyby.
- Fix sidebar_hr setting - stylesheet wasn’t correctly referencing the right variable name. Thanks to Jannis Leidel.
- Allow configuring body text-align via body_text_align. Credit to Marçal Solà.
- Fix a handful of mismatched/unclosed HTML tags in the templates. Thanks to Marvin Pinto for catch & patch.
- Add Codecov badge support to sidebar.
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/alabaster/0.7.7/ | CC-MAIN-2018-51 | refinedweb | 1,879 | 61.12 |
.
The “Bluehill” software that controls the Instron machine outputs results in different formats. Natively, it produces a binary blob and UTF-16 encoded XML. With some open-source (xmllint and unidecode) I could read that as shown below.
xmllint --format getalit-05.is_tens | unidecode -e UTF-16 | less
This is somewhat readable and contains all the settings and results as far as I can tell. However, I consider XML a pain in the ass to work with and will use it only when no other alternatives exist.
Fortunately, I had also instructed the software to save the data in csv format. The summary was saved in a file with the extension <testname>.is_tens_Results.csv, while the raw data was saved in files in a subdirectory <testname>.is_tens_RawData/Specimen_RawData_<N>.csv, where <testname> is the name you have given the test, and <N> is the specimen number.
The contents of the is_tens_Results.csv file contain whatever data you instructed the program to save. In this case, I saved (among other things) the Young’s modulus and the breaking stress of tensile test samples. I didn’t explicitly save the breaking strain, so I calculated that from the modulus and breaking stress.
Data from six different tests has to be gathered and plot in a single graph. To facilitate this, I made tuples of file numbers and labels describing the samples. But first the subprocess module is imported to use later.
import subprocess combinaties = (('01', 'gedroogd, lengte, 0,5 mm'), ('02', 'onbehandeld, lengte, 0,5 mm'), ('03', 'benat, lengte, 0,5 mm'), ('04', 'gedroogd, breedte, 0,5 mm'), ('05', 'onbehandeld, breedte, 0,5 mm'), ('06', 'benat, breedte, 0,5 mm'))
Next I defined some format strings that I will use later, and a translation dictionary.
fn = 'getalit-{}.is_tens_Results.csv' pl = '"-" with points ls {} title "{}",' tr = {ord('"'): None, ord('.'): None, ord(','): '.'}
The commands for gnuplot will be defined as a list of strings.
gpcmds = ['set terminal pdfcairo enhanced color dashed ' # Single line, no comma! 'font "Alegreya, 11" ' # Single line, no comma! 'rounded size 12.8 cm, 7.0 cm', 'set xlabel "ε [%]"', 'set ylabel "σ [MPa]"', 'set key right bottom', 'set xtics 0.1', 'set output "overzicht-trektesten.pdf"']
Note how the first two lines have no trailing comma. The first three lines should be one line for gnuplot!
Separate lists will be used for the actual plot commands (since they too should be on one line) and the inline data.
gpplots = ['plot'] gpdata = []
Next comes the heart of the script; the loop for reading and processing the data.
for num, (k, v) in enumerate(combinaties, start=1): try: with open(fn.format(k), encoding='ISO8859-1') as datafile: lines = datafile.readlines() data = [ln for ln in lines if ln[0] in '0123456789'] specimendata = [] for ln in data: ln = ln.translate(tr).split(';') E, σ = [float(n) for n in ln[1:3]] ε = σ/E*100 specimendata.append('{:.5f} {:.2f}'.format(ε, σ)) specimendata.append('e') gpplots.append(pl.format(num, v)) except FileNotFoundError: pass # Skip this file else: gpdata += specimendata gpplots[-1] = gpplots[-1][:-1] # Remove ',' gpcmds.append(' '.join(gpplots)) gpcmds += gpdata gpcmds = '\n'.join(gpcmds)
First the data is read into lines. The lines of data that matter have the following format (presumable because this software was configured for a Dutch locale where the comma is used as the decimal separator):
2;"8.741";"76,11";"896";"100";"0,58";"20,3";"11,77"
They start with a number, then contain values in double quotes separated by semicolons and using a decimal comma and a point as the thousands separator. The first number is the specimen number. The second number is the Young’s modulus and the third number is the tensile stress.
After reading all the lines in the file, we restrict the data to those lines that start with a number. This format is still not suitable for parsing, so I use a custom translation (the tr dictionary shown earlier).
In short, this translation removes the quotes and the full stops used as thousands separators and replaces the decimal comma’s with decimal points. After the translation the string is split on the semicolons. The Young’s modulus (E) and breaking stress (σ) are extracted from the data. After that, the breaking strain (ε) is calculated. This takes advantage of the ability of Python 3 to use Unicode identifiers. The strain and stress are formatted as a string which is finished with a line containing just an e and then appended to the specimendata list. Once a file has been successfully processed, the specimen data are added to the total data list. A line for plotting this data is appended to the gpplots list.
Once all the data has been processed, the comma at the end of the last gpplots string is removed, and all the commands are join-ed with spaces. The resulting string is appended to the gpcmds list. The last addition to gpcmds is the total gpdata list. Finally, gpcmds is converted into a string by joining the lines with a newline.
# Write gnuplot commands to a file for debugging with open('overzicht-trektesten.gp', 'w') as gpfile: gpfile.write(gpcmds) # Run gnuplot p = subprocess.run(['gnuplot'], input=gpcmds.encode('utf-8')) if p.returncode != 0: print('gnuplot failed with error code', p.returncode)
To aid in debugging, the complete list of gnuplot commands is written to a file.
Finally, the gnuplot commands are encoded as UTF-8 and provided to the standard input of a gnuplot process, which produces a PDF file. An image of the graph in shown below.
Note that the styles are not gnuplot‘s defaults. The line styles are from set1.pal from the gnuplot-palletes repository. | http://rsmith.home.xs4all.nl/programming/using-gnuplot-from-python.html | CC-MAIN-2017-30 | refinedweb | 957 | 66.84 |
How To: Repeat run a model by calling the model from a Python script and passing arguments to it
Summary
This article provides a procedure to repeat run a model by calling the model from Python within a loop and pass arguments to it. It is one of two methods available to create batch style processes so that geoprocessing models can be repeated.
Another method of batching geoprocessing tasks is to create a model of the basic task, export that to a script and then add Python code to perform looping. See the link in the Related Information section for more information on this method.
Note:
While the geoprocessing environment of ArcGIS 9.x supports Python, VBScript, JScript, and Perl scripting languages,any scripting language that is COM compliant can be used to create successful geoprocessing scripts.
While tracing through the script below there are a number of important things to note.
· First, the script sets the workspace property of the geoprocessor object to a path. This tells the geoprocessor object that all data can be found in this location unless otherwise stated.
· The script then calls the ListFeatureClasses method, which returns a list of all the feature classes in the workspace. This list can be stepped through and various operations applied to the contents of the list. To step through the list, the script uses the '.next' method of the list in conjunction with a 'while' loop. The while loop says, "While the position in the feature class list (fc) contains something, execute the lines of code in the loop".
· The code demonstrates the simple formula for performing batch operations: get a list of the objects to which to apply operations, and use a while loop to iterate over this list.
Procedure
The code example below uses the example model called 'MyClipTool'. It resides in a toolbox called 'MyToolbox'. MyClipTool has two arguments: an input shapefile and an output shapefile. The script loops through each file in 'C:\mydata\input_folder\'. For each iteration of the loop, it executes MyClipTool passing in an input shapefile and writing the output to 'C:\mydata\output_folder\'.
Code:
# Import system modules
import sys, string, os, win32com.client
# Create the Geoprocessor object
gp = win32com.client.Dispatch("esriGeoprocessing.GpDispatch.1")
# Load required toolboxes...
gp.AddToolbox("C:\\mydata\\MyToolbox.tbx")
gp.overwriteoutput = 1
gp.workspace = "C:\\mydata\\input_folder\\"
outfolder = "C:\\mydata\\output_folder\\"
try:
fcs = gp.ListFeatureClasses()
fcs.reset()
fc = fcs.Next()
while fc:
gp.MyClipTool(fc, outfolder + fc)
fc = fcs.Next()
print "done"
except:
print GP.GetMessages(2)
For more information on getting started with writing geoprocessing scripts, see the 'Writing Geoprocessing Scripts' white paper. It is available on the ESRI Library CD and is entitled Writing_Geoprocessing_Scripts.pdf.
Related Information
- Use scripting in ArcGIS Desktop to run custom tools and repetitive geoprocessing workflows and tasks | https://support.esri.com/en/technical-article/000008276 | CC-MAIN-2019-30 | refinedweb | 468 | 57.67 |
#include <mitkVector.h>
Definition at line 28 of file mitkVector.h.
Default constructor has nothing to do.
Definition at line 34 of file mitkVector.h.
Copy constructor.
Definition at line 38 of file mitkVector.h.
Constructor to convert from itk::Vector to mitk::Vector.
Definition at line 53 of file mitkVector.h.
Constructor to convert an array to mitk::Vector.
Definition at line 63 of file mitkVector.h.
Constructor to initialize entire vector to one value.
Definition at line 71 of file mitkVector.h.
Constructor for vnl_vectors.
Definition at line 76 of file mitkVector.h.
Constructor for vnl_vector_fixed.
Definition at line 92 of file mitkVector.h.
Copies the elements from array array to this. Note that this method will assign doubles to floats without complaining!
Definition at line 108 of file mitkVector.h.
User defined conversion of mitk::Vector to vnl_vector. Note: the conversion to mitk::Vector to vnl_vector_fixed has not been implemented since this would collide with the conversion vnl_vector to vnl_vector_fixed provided by vnl.
Definition at line 131 of file mitkVector.h.
Pass-through assignment operator for the Vector base class.
Definition at line 44 of file mitkVector.h.
Copies the values stored in this vector into the array array.d
Definition at line 121 of file mitkVector.h. | https://docs.mitk.org/nightly/classmitk_1_1Vector.html | CC-MAIN-2021-39 | refinedweb | 211 | 54.9 |
generate all possible math expr of one term
Discussion in 'Perl Misc' started by xahlee@gmail15
- Chris Uppal
- Mar 2, 2004
generate all possible math expr of one term, May 15, 2008, in forum: Java
- Replies:
- 1
- Views:
- 321
- Tom Anderson
- May 15, 2008
generate all possible math expr of one term, May 15, 2008, in forum: Python
- Replies:
- 0
- Views:
- 259
Syntax bug, in 1.8.5? return not (some expr) <-- syntax error vsreturn (not (some expr)) <-- fineGood Night Moon, Jul 22, 2007, in forum: Ruby
- Replies:
- 9
- Views:
- 353
- Rick DeNatale
- Jul 25, 2007
Math.random() and Math.round(Math.random()) and Math.floor(Math.random()*2)VK, May 1, 2010, in forum: Javascript
- Replies:
- 15
- Views:
- 1,431
- Dr J R Stockton
- May 2, 2010 | http://www.thecodingforums.com/threads/generate-all-possible-math-expr-of-one-term.907420/ | CC-MAIN-2015-18 | refinedweb | 128 | 65.05 |
Android Intents are objects used to trigger actions from other Android Activities. One of the most common uses of Intents is to open a new Activity in your app. Often, you will want to pass information to the new Activity. In this post, I’ll discuss a few ways to pass data between Activities using Intents, including passing primitives, Strings, and object types.
Intent Extras
Intent objects all have an extras property. This is a Bundle, storing key value pairs in which keys are Strings. It’s the same structure you see every time you override an Activity’s
onCreate method. The bundle is one of the mechanisms through which Intents transfer data to other activities, and it is my main focus in this post.
Primitives, Strings, and Arrays
Primitives and Strings can easily be put into Intents. For example, the following code will store an int variable called intToSend in an Intent, giving the int the key “my-int.”
Intent intent = new Intent(this, NextActivity.class); int intToSend = 42; intent.putExtra("my-int", intToSend);
You can do the same with other primitive types, Strings, or arrays of primitives or Strings.
At this point, you can signal that we intend to start a new Activity that will receive the Intent we just made, as you normally would with:
startActivity(intent);
A quick digression: In case you didn’t realize this,
putExtra returns the calling object. This means you can choose between writing code like the example above or chaining calls, like this:
startActivity(new Intent(this, NextActivity.class) .putExtra("my-string", "hello intent!") .putExtra("is-snowing", true));
Okay, so at this point, things are pretty simple. Now, let’s see what happens if you try to pass arbitrary objects using the Intents. Say we have a
Computer class, and we have an instance called
computer.
If you write:
intent.putExtra("my-computer", computer);
you should see an error; Bundles–and so Intents–can’t hold just any type of object. But if you need to pass objects between Activities, there is still hope!
Serializables
One way to pass objects in Intents is for the object’s class to implement Serializable. This interface doesn’t require you to implement any methods; simply adding
implements Serializable should be enough. To get the object back from the Intent, just call
intent.getSerializableExtra. You’ll probably want to cast the return value to the expected value type.
This is a very simple approach. Unfortunately, it can be slow.
Parcelable
Another approach to sending objects is to implement Android’s Parcelable interface. This interface requires three things: a
public void writeToParcel method, a
public int describeContents, and a non-static field called
CREATOR that implements
Parcelable.Creator.
writeToParcel is responsible for serializing the data, and the Creator is responsible for deserializing it to reconstruct the original Parcelable object.
I’ve created a simple class called
Sample to illustrate how this works. It has two data members: foo, and bar. Here’s what the code looks like:
public class Sample implements Parcelable { private int foo; private String bar; public Sample(int foo, String bar) { this.foo = foo; this.bar = bar; } protected Sample(Parcel in) { foo = in.readInt(); bar = in.readString(); } @Override public String toString() { return String.format("[Sample: %d, %s]", foo, bar); } public static final Creator
CREATOR = new Creator () { @Override public Sample createFromParcel(Parcel in) { return new Sample(in); } @Override public Sample[] newArray(int size) { return new Sample[size]; } }; @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel parcel, int i) { parcel.writeInt(foo); parcel.writeString(bar); } }
Breaking It Down
Let’s take a quick look at what’s going on. The
writeToParcel method writes instance variables to its
parcel argument. The protected constructor does just the opposite; it reads data from its argument, and stores it in instance variables.
describeContents can be used to set bitwise flags indicating special data types. The Creator is used to take in an input Parcel to be deserialized. In this case, it calls the constructor, passing in the Parcel.
This is a lot of code for such a seemingly simple task. However, using Android Studio–and likely other IDEs if you choose–almost all of the code is written for you. In fact, the only part of the code above that I wrote myself is:
public class Sample implements Parcelable { private int foo; private String bar; public Sample(int foo, String bar) { this.foo = foo; this.bar = bar; } }
One last point: Why would anyone use Parcelables when they take more work than Serializables? The main reason is that Parcelizables work much faster than Serializables. Experiments in this blog post show Parcelables to be 10 times faster in serializing objects than Serializables. The speed difference is due to Serializables using reflection to determine the serialization.
Well, that’s it for the basics of transferring data between Intents using extras. Happy data sending!
By commenting below, you agree to the terms and conditions outlined in our (linked) Privacy Policy3 Comments
There is a little mistake. “This interface requires three things: a public void writeToParcel method, a public int describeContents, and a non-static field called CREATOR that implements Parcelable.Creator. “
I think it must be static field called CREATOR. But you wrote non-static
“This interface requires three things: a public void writeToParcel method, a public int describeContents, and a non-static field called CREATOR that implements Parcelable.Creator. “. This must be not-null static field not a non-static field;
Perhaps if Serializable was done manually, it would be faster than Parcelable as shown in | https://spin.atomicobject.com/2016/11/28/sending-data-actions-android/ | CC-MAIN-2019-51 | refinedweb | 927 | 56.86 |
I have been using the apache.poi.hssf package for my project, version 1.10.0. I
have made an excel sheet using HSSFSheet class in org.apache.poi.hssf.usermodel
package.
This class has the following 2 member functions for setting properties of
gridlines on the sheet.
void setGridsPrinted(boolean value)
void setPrintGridlines(boolean newPrintGridlines)
I tried to hide the gridlines using both these functions but they are not
working. On the printout there are no gridlines but on the excel sheet that i
view on my PC i still see them in the background. Where am i going wrong?
The code is given below.
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
import org.apache.poi.hssf.usermodel.*;
import org.apache.poi.hssf.util.*;
HSSFWorkbook wb;
HSSFSheet sheet;
HSSFRow sheet_row;
.....
{ ....
FileReader fr= new FileReader("abc.txt");
BufferedReader br = new BufferedReader(fr);
String sheetName="abc";
String fileName ="xyz.xls";
FileOutputStream fileOut = new FileOutputStream(fileName);
wb = new HSSFWorkbook();
sheet = wb.createSheet(sheetName);
/* Problem area */
sheet.setGridsPrinted(false);
sheet.setPrintGridlines(false);
....
....
wb.write(fileOut);
fileOut.close();
fr.close();
}
I really wish you'd begin by asking this as a question on the list and verify that these do what you
think before filing a bug.
Keyword in the code below is print. That only turns gridlines off in the
printout. To answer the question, it is not possible with the current code.
Give me about 30 more minutes and it should be implemented.
please don't stick this in 2.0 unless its stable and innoculous. We need to work towards having
less bugs in 2.0 so we can release it and focus on 3.0. Its you're call of course.
Didn't get your email until after the commit but it meets your conditions. It
is just more code of the type I'm good at.
1. Catch a record object and keep the reference (both in create and load).
2. Add a couple of procedures that access values in the record object
3. Give usermodel to said methods.
I did go a step further and found where the particular reference to the record
was being retreived in a search and switched these over. All hssf test cases
ran and I can say that I improved performance (not enought to see but it is
still an improvement).
So......
In answer to the question, to turn the display of gridlines off in the viewer,
i.e. Excel, etc, make the following addition to your code.
sheet = wb.createSheet(sheetName);
/* Problem area */
sheet.setGridsPrinted(false);
sheet.setPrintGridlines(false);
+sheet.setDisplayGridlines(false);
All of this brings up another issue, we have two methods that do the exact same
thing, setGridsPrinted and setPrintGridlines in HSSFSheet, but that is another
issue.
In which version can i find this newly added function. Currently i am using
1.10. Should i look for it in 2.0
Either in the CVS REL_2_0 branch (check it out and build it) or wait a few days for the 2.0-pre3
release. | https://bz.apache.org/bugzilla/show_bug.cgi?id=21884 | CC-MAIN-2020-45 | refinedweb | 504 | 68.36 |
XML Transformations with CSS and DOMby Scott Andrew LePera and Apple Developer Connection
10/15/2002
As the adoption of XHTML continues to expand in Web development circles, the inevitable question arises: Can't we just skip over the browser-specific cruft of HTML and create our documents in pure XML?
XML in the browser has been the subject of many spirited discussions about bleeding-edge Web development. Some feel that XML in place of HTML isn't ready for prime time due to the lack of user agents that can properly parse and render it. Others feel that XML really belongs on the server or used solely as a descriptive framework for data and has no place in the visual world of the Web, which is already adequately served by HTML.
Despite this, the newest generation of browsers possess powerful XML capabilities. The recent releases of Mozilla offer a parser and a rendering engine that support XML technologies such as XML stylesheets, XML namespaces, XLink, SVG, and MathML. Along with its native support for SOAP and forthcoming implementations of WSDL and XSLT, Mozilla is poised to become a power player among XML client software.
Mozilla also permits XML to be rendered in the browser with CSS, and manipulated with the DOM. This is a real boon to those of us eager to experiment with XML transformations (both visual and structural) without having to delve into unfamiliar technologies such as XPath, the verbose traversal language of XSLT. If you're already familiar with CSS and DOM, you're more than halfway to achieving XML transformations in Mozilla.
This article demonstrates how to render XML in the browser with a minimum of CSS and JavaScript. The examples that follow were written for and tested with Mozilla 1.0 for Mac OS X and Windows 2000. This article is not a comprehensive tutorial on DOM, CSS, or XML, and a basic understanding of each of these technologies is required.
The Sample XML File
I chose a pared-down RSS file to provide the sample XML for this article. I could have chosen any arbitrary XML document, but RSS serves a particular purpose of syndicating content, often news and Weblog items, and is ideal for demonstrating basic transformations with CSS and DOM. Throughout this article, I'll show how to use CSS to apply formatting style to the RSS elements, and how to use the DOM Level 2 interface to traverse and transform the output. By the end of this article, I'll have created a (admittedly crude) browser-based RSS reader application using the RSS feed itself.
The first order of business is to format the existing XML elements with CSS. As with HTML, this is accomplished with a linked stylesheet.
Applying Style
An XML stylesheet is typically imported via an
xml-stylesheet processing instruction in the prologue of the XML document. This is analogous to using the
link tag in HTML to import CSS, and the syntax is similar:
<?xml version="1.0"?> <?xml-stylesheet href="rss.css" type="text/css"?>
Unlike HTML, no assumptions are made about the formatting of XML elements on the part of the processor. A browser understands (either implicitly or otherwise) that an HTML
<p> element is a block element, while an
<em> is an inline container. Likewise, a browser can safely assume that boldface is the default formatting of text inside an HTML
<strong> element. Not so with raw XML—by linking in a CSS document, the basic rules for visually formatting each element and its contents can be supplied to the processor.
I first have to decide which elements to format as block elements. Since all elements are displayed as inline by default, I only need specify the block elements in the stylesheet. I'll start out by defining the display, font, and box properties of the
rss,
channel, and
item elements:
rss { display:block; margin:10px; } channel { display:block; height:300px; width:280px; border:1px solid #000; overflow:auto; background-color:#eee; font: 12px verdana; } item { display: block; padding:10px; margin-bottom:10px; border-top:1px solid #ccc; border-bottom:1px solid #ccc; background-color:#fff; }
At this point, I'm not really interested in some of the
channel metadata elements, so I'll use
display:none to remove them from the visual output. Note that this doesn't remove the elements from the document; if I wanted to do that, I'd use the appropriate DOM method and remove them programmatically. I'll get to that a bit later on. I want to keep the channel's
title and
description elements, though, so I'll toss them some CSS as well:
channel>title, channel>description { display: block; margin-left:10px; margin-top:10px; background-color:#eee; font-weight:bold; } channel>title { font-size:16px; } channel>description { font-size:10px; margin-bottom:10px; } item>title { font-weight:bold; } item>link, channel>link, channel>language { display: none; }
To check my formatting style, I fire up Mozilla 1.0 and point it at my RSS document. Here are the results so far:
As you can see, formatting XML with CSS is as simple as doing the same with HTML. But I have a problem: None of my links are actual links. That is, they don't behave as HTML links when you click on them. I need to find a way to transform the RSS
link elements into working links. CSS is ill-suited for providing this kind of functionality, but I do have another tool at my disposal: DOM.
| http://archive.oreilly.com/pub/a/mozilla/synd/2002/10/15/xml_transformations.html | CC-MAIN-2015-14 | refinedweb | 925 | 57.3 |
view raw
Being somewhat lazy, I was rather happy to find that I could create a new servlet source code by going New -> Servlet, instead of going New -> Class and then editing the class into a servlet.
However, I have discovered that every time I create a new servlet in Eclipse, Eclipse modifies my web.xml.
Specifically, it modifies the top element to:
<web-app
xmlns:xsi=""
xmlns=""
xmlns:javaee=""
xmlns:jsp=""
xmlns:web=""
xsi:
<display-name>ShowLifecycles</display-name>
<javaee:display-name>ShowLifecycles</javaee:display-name>
cvc-complex-type.2.4.a: Invalid content was found starting with element 'javaee:display-name'. One of '{"http://
java.sun.com/xml/ns/j2ee":description, "":display-name, "
j2ee":icon, "":distributable, "":context-param, "http://
java.sun.com/xml/ns/j2ee":filter, "":filter-mapping, "
j2ee":listener, "":servlet, "":servlet-mapping, "http://
java.sun.com/xml/ns/j2ee":session-config, "":mime-mapping, "
j2ee":welcome-file-list, "":error-page, "":jsp-config, "http://
java.sun.com/xml/ns/j2ee":security-constraint, "":login-config, "
j2ee":security-role, "":env-entry, "":ejb-ref, "http://
java.sun.com/xml/ns/j2ee":ejb-local-ref, "":service-ref, "
j2ee":resource-ref, "":resource-env-ref, "":message-
destination-ref, "":message-destination, "":locale-
encoding-mapping-list}' is expected.
I have never seen this before, but this indicates that your Eclipse project is really messed up. At least the
web.xml root declaration makes no utter sense. It look like a mix of Servlet 2.4 and 2.5 specifications. Maybe Eclipse is getting confused because the root namespace (
xmlns) is pointing to the Servlet 2.4 one (with
j2ee URI) while the web project itself is set as Servlet 2.5 or newer (which should be using the one with
javaee URI).
Also, when your web project is set to Servlet 3.0 during creation, by default no
web.xml will be generated by Eclipse because of the new Servlet 3.0 annotations like
@WebServlet,
@WebFilter, etc.. which makes the
web.xml superfluous. When you create new servlets by New > Servlet, Eclipse will already autogenerate those annotations. Probably you've attempted to create the
web.xml yourself based on misinformation.
I'd suggest to backup some code if necessary, throw the whole project away and create a new one with the proper settings and do not touch the
web.xml root declaration.
Assuming that you're using the latest Eclipse version, Helios SR1 for Java EE developers, rightclick Eclipse's Project Explorer, choose New > Dynamic Web Project and just fill the project name and keep everything default. Click Next until the last step and then tick Generate web.xml deployment descriptor checkbox to let Eclipse generate one. The root declaration should then look like this:
<web-app xmlns: | https://codedump.io/share/lhgLtiTu3KcH/1/why-is-creating-servlets-in-eclipse-breaking-my-webxml | CC-MAIN-2017-22 | refinedweb | 451 | 60.31 |
I created a Netflix clone using Piral: an open-source framework for creating modular applications.
In this article, I will go over what microfrontends are, why they are useful, and what frameworks exist to make implementing them easier. I'll also share my experiences creating a project by myself using React and Piral: two technologies I had previously never touched. I will cover what I did, and how I did it. Finally, I will present some closing thoughts, opinions, and personal notes about this endeavor.
The "How I did it" section will be written in a way where every developer, regardless of skill level, should be able to follow. Be sure to give Piral or microfrontends as a whole a try, and let me know how it went!
Contents
- What are microfrontends?
- Why microfrontends?
- Microfrontend frameworks
- Piral
- The project
- Final thoughts
- Quick links to all code
What are microfrontends?
Microfrontends try to extend the idea and the benefits of microservices into the frontend space. In essence, this architecture pattern comes down to "splitting up the frontend monolith" into smaller, more easily manageable pieces.
This allows fully cross-functional teams to work on these, focussing on a specific business feature or company mission. Rather than "horizontal" teams, per layer or technology; these teams manage the "vertical" slices of the application. Each team is autonomous, and has end-to-end – from the database to the UI – responsibility for the features they develop.
Teams should be able to independently create and deploy these microfrontends. This cuts down on inter-team communication; which could then also enable distributed development.
This is especially beneficial for larger companies and projects, where the Jeff Bezos "Two Pizza Team" rule (i.e. the whole team can be fed by two pizzas) can be helpful. Spotify for example, calls these smaller feature teams "squads". Interesting read here.
Why microfrontends?
Microfrontends make teams more agile
When comparing the characteristics and benefits of microfrontends with the 12 Agile Principles, lots of overlap emerges:
Autonomous teams
Autonomous teams satisfy lots of these agile principles. In short: teams that can operate on their own are less prone to being slowed down, can make changes quickly, and feel a greater sense of ownership.
Incremental upgrades
By being decoupled and decentralized, the microfrontends architecture pattern ensures that the incremental and iterative process of agile software development can succeed.
Independent deployment
Microfrontends can be deployed independently. This can enable shorter release cycles, because all different parts don't have to be in sync with each other.
Simple and decoupled codebases
Simplicity is essential to agility: this makes it easier for the whole team to be on board and iterate fast. Decoupling makes using different technologies possible; but even when using the same technologies throughout the app it can still be very beneficial for efficiency of development.
Microfrontend frameworks
While you could take the microfrontend principles and devise your own solution to manage them (in fact, that's kinda what my bachelor thesis will be about); there are lots of frameworks already out there that can do some of the heavy lifting for you.
Florian Rappl outlines and categorizes a lot of these frameworks in the following blog post:
Six Patterns for Microfrontends
Florian Rappl ・ Nov 21 '19 ・ 17 min read
Popular options include Single SPA, Open Components, Mosaic, Podium, Luigi and Piral.
Rather than competing frameworks, most of these exist side by side, and they each provide a different way of creating these microfrontend solutions. They differ in key properties such as completeness (just solving some problems such as routing vs providing a full end-to-end solution with error boundaries, tooling, eco-system, etc.) or architecture style (e.g., build-time composition vs client-side composition vs server-side composition).
Piral
Piral is an open-source framework for fully flexible modular applications. It is built on top of React, but has lots of plugins available for other frameworks and technologies.
Building blocks and terminology
An application built with piral consists of multiple parts.
If you have no experience with microfrontends, this section can be confusing. Don't be alarmed: the section "The project" below will turn the abstract into the practical, which will be easier to follow.
The Pilets (feature modules)
These are the individual feature modules, also known as microfrontends. They each include their own dependencies and assets, and are completely independent of each other.
Pilets can define how the integration of their components will happen. Does the pilet need a dedicated page, or will the content be rendered inside an already existing pilet? Maybe we need a dedicated page, and also register a button somewhere else that will link to the page? It is all possible.
The feed service
Pilets are usually published to a feed service (e.g. a REST API). Piral provides its own feed service over at piral.cloud.
It should be noted that Piral can work without a feed service but a feed service makes deployments easy and consumption very dynamic; showcasing all the advantages of Piral.
The Piral Instance (app shell)
This is the place where all feature modules will be integrated. The piral instance will pull all registered pilets from the feed service, and put them where they need to go as defined by the pilets themselves. The app shell also is the place to put your basic layout: navbars, headers, footers, and shared components.
The result of building the app shell is a
dist/release directory for hosting, and a
dist/emulator directory with a tarball which can be published to an NPM registry to aid in the development and the debugging of the individual pilets.
(Component) extensions, pages and menu items
The piral API supports registering extensions in your pilets and Piral instance. Let's say for example we have a webshop with 2 pilets: a discover pilet that lists products and a checkout pilet that enables users to purchase these items (this is by the way a classic example for microfrontends, read more here). The discover pilet should include a button to purchase items, but since that is not the responsibility of this team, the checkout team will create this button and register it as an extension that all pilets can use. The discover pilet will then just register an extension slot where the app shell will integrate the right extension into.
Piral also has a built-in way to register pages and menu items. These can also be seen as extensions, but where the work is already done for you.
The project
What I did
Application overview
You can find the application online on netflix.deruwe.me.
This application is a Netflix clone with some basic functionalities. There is a
Browse page where the user can discover showcases of trending series and movies, top-rated ones, etc.
Of course, to find a specific movie or series, the user can also use the provided
Search bar.
Every media tile also has a
Favorites toggle in the top right corner. Clicking it adds the series or movies to the user's favorites list, to be found on the favorites page.
The user can switch accounts via the
Profile option in the top right. All favorites are linked to the specific account.
It is worth noting that this demo project does not come with a custom backend: all data is coming from a 3rd party API, the accounts are dummy accounts, and the favorites are stored in local storage.
Impressions
Structure of the application
The app shell
The app shell contains only the logo, navigation, and footer. All the other components are provided by the pilets in the form of extensions, pages, and menu items.
The pilets
How I did it
Throughout the creation of the project using piral, obviously, the Piral documentation was my main source of inspiration. There, they also have video tutorials on lots of topics regarding Piral.
The Piral documentation also talks about the 3 phases of the development workflow. This is also the way I tried to develop my application. Of course, to be able to experiment, I sometimes stepped a bit of out bounds.
0. The planning phase
But before following any of the laid-out steps provided by Piral, I looked out for a sample project that I could build upon. I'm not a designer, so looking for a React project with good styling was the easiest option. I found this project, which was written using an older React syntax, and was all in one big
App module. I converted everything into separate React functional components. This was a great way to learn how React works.
You can see the results in the following repo. The commit history here shows what I did.
DanteDeRuwe
/
react-netflix-clone
Learning React by creating a simple Netflix clone. (I transformed this into a microfrontend solution! See)
1. The setup phase
What needs to be done in this phase?
- Develop the piral instance
- Set up a feed service and connect the piral instance to it
- Distribute an emulator package
1.1. Creating the Piral instance (app shell)
You can find the code on github
Following the documentation showed me how to get this up and running. Install the Piral CLI globally by running:
npm install piral-cli -g
(one could also use npx to avoid unsafe global installations, see below)
The CLI exposes commands starting with
piral and
pilet. In this phase, of course, we will need the
piral commands.
To create a Piral instance (app shell) called netflix-piral, let's run
piral new --target netflix-piral
We can run the newly created Piral instance with the following command:
piral debug # or, if you want to open the browser automatically: piral debug --open
– using
npx–
Instead of a command like
piral debugwhich only works inside a directory with a
package.jsonor if you have the Piral CLI installed globally, you can also use
npx:
- if the given name is not available in (modified) path (e.g., global path or
node_modules/.bin), npx will try to get the command from NPM and run it (non-globally i.e. from user privileges)
- if the given name is available it will just run it from there (also from user privileges)
Let's have a look at one of the most important files,
index.tsx:
The
renderInstance function outlines the responsibilities of the app shell: it takes care of the layout, the error layout, and requests the pilets from a feed service. As we can see on line 6 - by default - it's just pulling from an empty feed.
In fact, the only thing that will change in this file, is the feed URL. To be able to do that: let's first set up a feed.
1.2. Setting up the feed service
While you could (and in some circumstances, should) set up your own feed service, most of the time the service provided by the Piral team itself will suffice. For development purposes, you get multiple feeds for free! This service can be found on piral.cloud.
▸ Creating a feed on piral.cloud
Sign in to the service and you'll see the following screen
Of course, we're going to click
+ New Feed.
Next, we'll give the feed a unique name (which cannot be changed), and optionally, a description so it's clear for what this feed will be used.
You can also configure the allowed hosts.
You'll see the result on the overview:
- To be able to publish pilets later, we'll need an api key. You can manage them by clicking
- To get the feed url for the app shell, we can click the feed title. The url will be displayed:
We'll copy the feed url and place it where we wanted it before: in the
index.tsx of the Piral instance (line 6).
1.3. Creating the app shell layout
We have an app shell now which pulls from our own (still empty) feed! We'll add pilets to this feed later. But first, maybe we should customize the layout of this app shell. As written before, the main responsibilities we want for this app shell are the logo, the navigation, and the footer.
After scaffolding, the
layout.tsx file contains a lot of components and also combines them in a
layout object to be used by the
index.tsx. While this is fine, I like to split up all my components using a single file per component, so the result looks like this:
We'll put the layout in
./components/App.tsx, the navigation template in
.components/Navigation.tsx and for the menuitems, they are just rendered using
<li>...</li>.
Remember what I mentioned before:
The app shell contains only the logo, navigation, and footer. All the other components are provided by the pilets in the form of extensions, pages, and menu items.
This is absolutely the case, but we do however need to define where the pilets need to render these extensions! Here is a quick wireframe diagram for the app shell.
The pages registered by the pilets will just be given to the
App component as
children. We can use a react-router to surround them.
As for the extensions: The key to being able to integrate these is an
ExtensionSlot with a specific name. The pilets are then able to register extensions, providing a name, and the app shell will put them in the right slot.
The code for the
App component is below. On line 14 the extension slot with
name="header-items" is registered, on line 19, the different pages will be rendered.
The menu items are standardized in Piral. The component registered in
index.tsx as the
MenuContainer (= in our case, the
Navigation component) will get menu items as
children when pilets register them.
1.4. Deploying the app shell on Netlify (or somewhere else)
If you already know how hosting works, here's a TLDR: execute
piral build --type releaseand publish the
dist/release/folder! You could of course set up CI/CD to do this for you. Don't forget a
_redirectsfile for routing!
To deploy the application for the world to see, we need to publish it somewhere. To me, the best place to do this is Netlify. One could of course choose Azure Static Web Apps, Github pages, or another hosting platform, but Netlify is easy to use and has a lot of great features that are completely free.
To get started, create an account on Netlify. I like to use my Github account because this way the accounts are already linked.
Next, create a "New site from git" in the sites tab of the interface.
Find the Github repository of your app shell. If you don't have one already... you should create one ;)
Now configure the build settings as follows:
- set a branch (I use master, you could also create a custom
releasebranch)
- set the build command to
npm run buildor
piral buildor
piral build --type release
- set the publish directory to
/dist/release/(don't skip this step!)
Then you are ready to deploy your site with the click of a button! Now every time you push your code to the selected branch, the site will be updated! CI/CD for the win!
▸ The
_redirects file
When you deploy the app shell for the first time, you will not notice it, but the routing is not perfect. To save yourselves some headaches later on, you best follow the next steps already, so you won't have to touch your app shell again.
If you go to yourwebsite.netlify.app/test, Netlify will try to find a
test.html page to serve you, will not find it, and show an error message. We want React Router to deal with routes. We have to redirect all routes to the
index.html... To do this, we create a folder with path
/src/static/ and put a
_redirects file into it:
/* /index.html 200
To make sure this file is copied to the
release directory on build, we need to configure webpack to do so.
Install the CopyWebpackPlugin
npm install copy-webpack-plugin --save-dev
In the root folder of your project, create
webpack.config.js
This will copy everything from the
src/static/ directory to the build directory. This means you can later on also add images and other files to this
static directory if you so desire.
1.5. Publishing the emulator
▸ What is the purpose of the emulator?
Now, we have our app shell up and running. When pushing Pilets to our feed service, the app shell can access these immediately and the site will be updated. But what if we want to develop new pilets? Surely we won't be publishing them a hundred times to see how they look, right?
Luckily, Piral has a good solution to this: an app shell emulator. The pilets can use the emulator to see how they will look when integrated into the app shell, to be able to quickly debug the pilets.
To create an app shell emulator, run
piral build --type emulator
The emulator is a
.tar.gz or
.tgz file (a so-called "tarball") and can be found in the
/dist/emulator/ directory.
Great. Now we have a file. If we are creating pilets alone, on one pc, this is no big deal. But ideally, we want the emulator to be accessible from every pilet, and also be able to update the emulator when a new version of the app shell is necessary. That's why it makes sense to publish the emulator.
▸ publishing the emulator package to npm
If you have experience with npm, here's a TLDR: run
npm publish dist/emulator/<emulator_file>.
To be able to access the emulator from everywhere, we are going to use the node package manager or npm. First, go to npmjs.org and create an account if you don't already have one.
Next, in your terminal, run
npm login
and log in using your username and password. Next, you can run
npm publish dist/emulator/<emulator_file>
The
<emulator_file> will in our case be
netflix-piral-1.0.0.tgz or something similar. If you get an error (which could mean the name you chose is already taken), refer to this article or the npm docs.
If you look at your registered packages on npmjs.org, you should be able to see the published emulator package! This will be very useful in the next phase: the feature phase, where the development of the pilets will be addressed.
2. The feature phase
What needs to be done in this phase?
- Build and publish pilets to enable functionalities in the app.
- Manage separation of concerns
- extract app shell functionality into pilets
- split larger pilets or merge smaller ones
2.1 Scaffolding a pilet
Creating a pilet is really straightforward. The piral CLI provides an easy way to scaffold a pilet based on a piral instance. For us the workflow will look like this:
mkdir browse cd browse pilet new netflix-piral
This will create a folder
browse, and put a new pilet called "browse" – which is based on the Piral instance
netflix-piral – inside of it.
2.2 The first version of the
browse pilet
Let's create some functionalities! The home page of this app will be the "browse" page. Since discovering new series and letting the user browse through series and movies is a pretty big part of the app, this will be the responsibility of one pilet (and, by consequence, a separate dev team).
The file structure looks like this:
A pilet is very lightweight. The only file to look at is the
index.tsx, where some interesting examples of the Piral API are shown:
The setup function is the heart of the pilet. This is where the app shell will look for instructions for integrations.
We won't need the notifications or the tiles. You can learn more on these from the Piral documentation.
The most interesting method for us is
registerMenu, we'll need this for the "Browse" menu item:
app.registerMenu(() => <Link to="/browse">Browse</Link>);
And to register a page where this menu item can link to, we will need to add
app.registerPage('/browse', Browse);
Where this
Browse is just a regular React component (for now). The structure looks a bit like this:
Browse ├── Hero ├── Showcase │ ├── MovieTile │ └── ... #more movietiles └── ... #more showcases with movietiles
▸ Debugging the pilet in isolation
To be able to test how the pilet will look after integration into the app shell, of course, we could just publish it and look at the live website. However, I won't have to explain why "testing in production" is not the best idea ever.
So, Piral offers a way to debug the pilet, this is where the emulator comes into play. To debug the pilet, you can run
pilet debug
After the build process is complete, the CLI will let you know on what local address you can look at the result (usually).
It's interesting to note that this command is almost identical to the one for the app shell, but there we used the
piral keyword, and now we use
pilet.
This section is called "debugging the pilet in isolation", which seems logical since we only have one pilet defined. Later on, I'll discuss a great feature that enables you to debug one pilet that is part of an application with multiple pilets.
▸ Publishing the pilet
We already published the piral instance (app shell), and the fun thing about working with Piral is that this app shell will pull every pilet from a feed and integrate them client-side.
This means, to publish a pilet, we won't have to touch deployment stuff. We just need to publish the pilet to the feed we created earlier.
We can do this by:
pilet publish --fresh --url <feed_url> ---api-key <feed_api_key>
Tip: I saved this snippet as a script called
publish.sh, added it to
.gitignore(so my API key won't be on Github), and then ran the script whenever I wanted to publish.
The
--fresh flag makes sure that before publishing, a fresh build is made to include any changes made after the last build.
The feed url and API key, as mentioned before, you can find in the piral feed service dashboard. The direct url is:<feed_name>/api-keys
2.3 The
profile pilet
Next, let's tackle a more interesting case. The
profile pilet. This pilet will again register a page,
/profile, but will also do something else: it will register a component extension.
When looking back at the app shell, this component extension has to be put in the extension slot
header-items. so that's what we will do.
The
index.tsx of the profile pilet will then look like this:
Where
ProfileExtension and
ProfilePage are just regular React components.
As is the deal with component extensions: the app shell will integrate the registered extension into the right
ExtensionSlot (the one with a matching name).
2.4 The
favorites pilet
Here we start to run into an interesting thing. We want to introduce the favorites as a page where we can find all the favorite series or movies. This means multiple things:
- Just like in the Browse component, we will need a way of displaying media (
MovieTile)
- We will need to provide a
FavoritesTogglebutton in every
MovieTile, to be able to toggle this item as a favorite
▸ The
MovieTile and thoughts about code duplication
We could just copy over the
MovieTile code from the browse component and reuse it here. This would be a very viable strategy, and it's also the one I used when you look back in the commit history.
– "Don't repeat yourself" ? –
While it is true that the DRY principle can result in cleaner code within the scope of one solution; it sometimes limits the desired decoupling of applications. Especially in microfrontends, sometimes repeating yourself cán be useful, and the reverse is often more difficult and undesirable. There is an interesting article to be read here
That being said, later on in the project, I looked back at this part in the Piral docs:
"Determine when to split pilets and potentially split larger pilets or merge smaller ones."
That's when it started making sense to extract the
MovieTiles into a separate
watch pilet, where they are registered as component extensions. I'll talk about the watch pilet in the next section.
▸ The
FavoritesToggle
We'll offer the favorites button as a component extension, so all pilets or the app shell can integrate this button wherever they want them.
For that, we need this in the
setup function of the favorites pilet:
app.registerExtension('ListToggle', props => <FavoriteToggle {...props.params}></FavoriteToggle>);
This is where passing parameters into component extensions becomes interesting. A very basic
FavoriteToggle component may look like this:
(If you want to see the full code, check the github repo, I'm omitting stuff for brevity)
For this toggle function, it is important that the button gets some properties. Using a favourites toggle may look like this:
<FavoritesToggle movieId="15165" media_type="tv" />
or something similar. All this introduction leads us to the main question: how to pass parameters to component extensions when using them across pilets?
Well, it's pretty easy: the
Extensionslot component has a property
params. Whenever we want to use an extension, we give the slot the params, and piral will pass these params to the extension that will end up in that slot. This means, a registered extension will have
props.params, which will come from wherever we defined the extension slot.
If we want to use this component extension from other pilets, the extension slot will have to look something like:
<ExtensionSlot name="ListToggle" params={/*an object with the params here*/}/>
We will see an example and best practices about this in the next section:
2.5 the
watch pilet
This pilet would have 2 things registered:
- the
MovieTilewe talked about earlier.
- this should have a spot where our
FavoritesTogglecomponent extension can fit into!
- the
Player(which is just a simple page and we won't discuss further)
▸ The MovieTile
This was an interesting lesson in what I like to call extensionception: we'll register a component extension, but within that extension, we'll use an
ExtensionSlot where another component extension will fit into:
The eventual result on for example the favorites page will look like this:
Ok, let's look at the
MovieTile component:
This component accepts a whole bunch of properties to be able to display the movie tiles with all the information. It's a purely presentational component.
▸ Passing extension dependencies via props
On line 11 you can see that the
MovieTileProps also contain a definition for a React component reference: this will be the
FavoritesToggle we defined before.
But why don't we just put
<Extensionslot name="ListToggle"/> there? Well, it's because of what I learned while reading the Pilet best practices on using extensions
Using components provided from other pilets is done via "extensions". The problem is that the extensions require the Extension component of the Pilet API to be integrated.
Indeed. We would need to do this at the top of our component extension file
import { ExtensionSlot } from 'piral';
This is a bad practice: we couple our components to the Pilet API, and now they are no longer reusable, testable, and generic.
The fix comes down to this: The only file in a pilet that should depend on the Piral framework is the
index.tsx file with the
setup function. From there, we can pass down the needed dependencies. For the
MovieTiles, it looks like this:
On line 10, we use
app.Extension, which has the same purpose as an
ExtensionSlot. We use the result of that to have a component to pass into another component. This way, the
MovieTile has
props.Toggle defined, and can use it just like any other React component.
▸ Debugging one pilet and seeing the interaction with the other pilets too
While developing the
browse pilet, the section where I talked about debugging was called "debugging the pilet in isolation". Now, we're going to do something more powerful.
Let's recall what happens when we run
pilet debug. We have an app shell emulator in which the pilet will be integrated. That's it – 2 parts:
- the app shell (emulated)
- the pilet that's being debugged
But what if we want to see the already published pilets too, to see how the pilet that we are debugging will fit into them? (mainly, in this case, we want to see how the extensions integrate)
At the time of writing, the Piral CLI is still in version
v0.12.4, but I got the recommendation to switch to the
v1.0.0 preview version (the
@next version). This version of the CLI provides in my opinion a major game-changing feature: the ability to debug pilets, while also being able to include remote pilets from the feed!
It's also very easy to do:
pilet debug --feed <feed_url>
And voila! We can see how the new pilet will fit into the app shell and the already defined pilets in the feed! Amazing!
Honestly, since learning about this feature, I never ever used debugging in isolation again. It's so much easier to see how the pilet will fit into the application when also including other pilets into view.
To make my life easier, this is what my
scripts looked like in every pilet's
package.json:
"scripts": { //... "debug": "pilet debug --feed <feed_url>" },
This way, I could just run the command
npm run debug!
2.6 The
search pilet
This pilet just registers one component extension. We'll also set it to render into the
header-items slot. This way: we will get the search and the profile extension both in there.
3. The maintenance phase
This is mainly bug fixing and doing optimizations.
Persisted state
This has nothing to do with Piral, but I wanted to store some data via local storage and I ran into a pretty cool way to do this by using this custom react hook.
Lazy loading
In the pilet setup function, we can set pages to lazily load. This is related to bundle splitting: more info here.
e.g.
const ProfilePage = React.lazy(() => import('./components/ProfilePage')); app.registerPage('/profile', ProfilePage);
Making changes to the app shell
If time was spent thinking about the responsibilities of the app shell before developing the first pilets, you can save yourself a lot of headaches. Though it is possible that the app shell needs to be updated. Of course, the pilets that depend on the app shell emulator for debugging would need to get an update as well!
Luckily, this is fairly simple
- the app shell is updated, built, and the update is pushed to npm
- in the pilet, run
pilet upgradeto pull in the latest version of the emulator
Final thoughts
While I had 0 experience using React and Piral before doing this project, I think the project turned out really well.
When working with microfrontends, the biggest hurdle is getting to the big picture. To me, it was really complicated to imagine how all the microfrontends would come together.
▸ The "black box method" for learning concepts
I saw this video recently and it really stuck with me. When trying to understand hard concepts: treat them like a black box first, and learn how to use them, before learning about how they work.
The experience you get by using a concept will give you a major advantage while learning how they work because you will already understand the desired outcome.
The key to understanding microfrontends – in my opinion – is to build some! Once you see visually how they all come together, it's easier to imagine how this integration is happening. This is why a microfrontend framework is valuable. Not only does it provide the best developer experience, but also: lots of stuff is already done for you, and you can get started easily.
This analogy, by the way, also makes sense when explaining how I learned to work with React in just one week. Rather than starting from scratch, I just tweaked an already existing project, and that already got me to understand lots of the concepts. (Of course, my experience with Angular helped a little as well)
Discussion (5)
Potential food for your thesis: You should definitely look at how Microsoft is solving problems around the Azure Portal front end and also VSCode to interop with a large plugin ecosystem. Essentially they have to deal with lots and lots of teams spanning a very long time.
Finally! Someone else talking about micro-frontends. lol
I use micro-frontend approach in my web-application, though I had to roll our own solution since I use MithrilJs and I needed a middle-tier architecture.
There are so many ways to deal with microfrontends, so I guess there's something for everyone! Pretty neat you created a custom solution, I would imagine it's not that straightforward
Great stuff and very good illustrations. Thanks for sharing!
Thanks for reading! | https://dev.to/dantederuwe/my-experiences-creating-a-netflix-clone-using-microfrontends-1n46?utm_campaign=sebastien_lorber_newsletter&utm_medium=email&utm_source=Revue%20newsletter | CC-MAIN-2021-39 | refinedweb | 5,550 | 62.27 |
This documentation is archived and is not being maintained.
checked_fill_n
Visual Studio 2005
Same as fill_n, but enforces the use of a checked iterator as output iterator. checked_fill_n is defined in the stdext namespace.
Parameters
- _First
An output iterator addressing the position of the first element in the range to be assigned the value _Val.
- _Count
A signed or unsigned integer type specifying the number of elements to be assigned the value.
- _Val
The value to be assigned to elements in the range [_First, _First + _Count).
See fill_n for a code sample.
For more information on checked iterators, see Checked Iterators.
ReferenceStandard Template Library
Other Resources<algorithm> Members
Show: | https://msdn.microsoft.com/en-US/library/aa985864(v=vs.80).aspx | CC-MAIN-2017-34 | refinedweb | 109 | 50.84 |
Sorry, just starting out with TG… and pyTigerGraph. I’ve built the sample person-friend graph using the GQSL command line. Now, I’m trying this on my local machine to try to talk to my remote Azure TG DB based on this pyTigerGraph/GSQL101 - PyTigerGraph.ipynb at master · pyTigerGraph/pyTigerGraph · GitHub
I also don’t understand much about security but the file tigergraph_key.pem does exist (and I know enough to keep it secret!)
import pyTigerGraph as tg graph = tg.TigerGraphConnection( host = '', # hiding exact IP graphname="social", username='tigergraph', password='tigergraph' ) graph.getEndpoints() # returns a lot of stuff graph.getVertices('person') # returns persons from the example data graph.getEdgeTypes() # returns ['friendship'] graph.getVertexCount('person') # returns 7 graph.getVersion() # returns release_3.0.5_09-05-2020
BUT when I try this,
graph.initGsql(certLocation=‘tigergraph_key.pem’)
I get “Connection reset by peer” (after waiting a bit.)
I’m not sure what noob mistake I’m making…
My configuration on (Virtual Machine on remote Azure)
TigerGraph Developer version release_3.0.5_09-05-2020
I’ve opened up the ports 9000 and 14240, so I can see the example DB in Graph Studio
Ubuntu 18.04.5 LTS
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
Also…
If I login remotely and use host=‘127.0.0.1’ and then do:
graph.initGsql()
I get “Connection refused”
Thanks in advance. | https://dev.tigergraph.com/forum/t/connection-reset-by-peer-when-using-pytigergraph/1178 | CC-MAIN-2022-27 | refinedweb | 236 | 61.33 |
I have seen a code like this:
and what I get is *p1++==100, *++p2=300, (*p3)++=200and what I get is *p1++==100, *++p2=300, (*p3)++=200Code:
#include <stdio.h>
int data[2]={100,300};
int moredata[2]={200,400};
int main(void)
{
int *p1,*p2,*p3;
p1=p2=data;
p3=moredata;
printf("*p1++=%d, *++p2=%d, (*p3)++=%d\n",*p1++,*++p2,(*p3)++);
return 0;
}
from what I know, ++(postfix) has higher precedence than *, why I do not get *p1++=300? and the associativity of ++(postfix) is left to right, for * is right to left, so how can I determine the associativity here? does (*p3)++ mean adding 1 to the value p3 is pointing to? why i did not get (*p3)++=201?
thanks for help! | https://cboard.cprogramming.com/c-programming/86500-precedence-problem-printable-thread.html | CC-MAIN-2017-09 | refinedweb | 126 | 80.41 |
Among Amazon’s multiple cloud offerings is “SimpleDb” – a cloud database service
where the data is hosted on Amazon servers. SimpleDb is not a relational database;
it stores items in what Amazon refers to as a Domain.
Each “item” has key-value pairs called attributes, along with a Guid unique key.
You could probably think of a Domain as a kind of big Dictionary of whatever
type you are working with. Since there are no “tables” as in the sense of say,
SQL Server, there are no relations between tables or joins.
However, the Amazon SimpleDb service provides an API that includes a Select syntax
that is remarkably similar to the SQL Statements you are used to writing, so
the learning curve is extremely easy. Many common SQL keywords are available,
so, for example, you could write a query using the “INTERSECT” keyword that queries
on multiple conditions.
You start by signing up with Amazon Web Services here, and you get an Application Key and a “Secret key” that you’ll use in your applications.
Amazon charges by what it calls “block usage”, but don’t worry. With moderate
usage you will never get billed. Of course, if you develop and publicly deploy
an Amazon SimpleDb application and it becomes very popular, then you have a financial
decision to make. But for most applications, that’s not a worry. The downloadable
solution that I provide at the end of this article has placeholders in the web.config
appSettings section where you can insert your own keys, and off to the races
you go!
SimpleDb is fast, and Amazon provides both C# and VB.NET libraries that make using
the service very uncomplicated.
I started out by asking myself, “What would I use this for?”. Obviously, yet another
“phonebook” application wouldn’t be very interesting. The answer came pretty
fast – how about a simple CodeSnippet repository where I can store various code
snippets I need to have access to, along with a title and a set of searchable
“tags”, or keywords.
So I started out with a simple ASP.NET app to test the various API Methods. Then,
I reasoned that I’d like to have a Silverlight version. So I created a Silverlight-enabled
WCF service that simply “wraps” the needed API calls. In the solution I’m providing,
there is already a copy of the Amazon.SimpleDb project that Amazon supplies,
so I won’t go into detail on that.
Once you’ve created your project, you need to reference the Amazon.SimpleDb project,
and include the following namespaces:
After authentication, we can use the client object to call any of the SimpleDB methods.
The first step in order to use our new Domain is to create it. This is a one – time
operation:
The response object for each operation will have various useful fields you can capture,
such as the unique identifier for the object. Once the domain is created, we
can begin calling various operations on it. For example, here is a complete "putRequest"
that creates a new CodeSnippet Item and stores it in the cloud:
You can see some "funky code" in the above method. It seems that the maximum
length for an attribute is 1024 characters. So, if my code snippet is longer,
I just "chunk it up" into multiple attributes (Snippet0, Snippet1,
etc.). On the way back, it's easy to use .Contains("Snippet") to reassemble
the text. An annoyance, certainly, but not a show-stopper.
And here is an example of doing a Search on stored Snippets using the SQL-like Select
query:
protected void Button1_Click(object sender, EventArgs e)
{
string srch = TextBox1.Text;
string key = ConfigurationManager.AppSettings["AmazonKey"];
string secretKey = ConfigurationManager.AppSettings["AmazonSecretKey"];
var client = new AmazonSimpleDBClient(key, secretKey);
var selectRequest = new SelectRequest();
selectRequest.SelectExpression = "SELECT * FROM CodeSnippets where Title LIKE '%" + srch + "%' OR Tag ='" +
srch + "'";
SelectResponse response = client.Select(selectRequest);
List<Item> items = response.SelectResult.Item;
var displayItems = new List<DisplayItem>();
foreach (Item itm in items)
{
var disp = new DisplayItem();
disp.Id = itm.Name;
foreach (Attribute att in itm.Attribute)
{
if (att.Name == "Title")
{
disp.Title = att.Value;
}
if (att.Name == "Tags")
disp.Tags += att.Value + " ";
if (att.Name.Contains("Snippet"))
disp.Snippet += att.Value + " ";
}
displayItems.Add(disp);
}
GridView1.DataSource = displayItems;
GridView1.DataBind();
}
You can scale up to millions of items with this ultra-simple cloud database service.
And if you decide later that you want to add additional attributes (think: "columns")
all you have to do is modify your putRequest and everything will work out fine.
The final step in my SimpleDB experiment was to implement the Silverlight-enabled
WCF service and add a SilverLight 3 Navigation app to the solution. The service
is ultra-simple:
You can download the entire solution including the Silverlight 3 Client app here. | http://www.nullskull.com/a/1371/silverlight-3-wcfenabled-codesnippet-app-with-amazon-simpledb.aspx | CC-MAIN-2014-10 | refinedweb | 798 | 57.47 |
Algorithms for Dart
Trie
Trie implementation for Dart. Tries are especially good for prefix searches. This implementation is copied from mdakin's TrieDart library.
Usage example:
import 'package:poppy/trie.dart'; ... var words = ["april", "apron", "apricot", "hello", "goodbye"]; Trie<String> trie = new SimpleTrie(); for(var str in words) { trie[str]= str; // we put the key as the value. could be something else } print(trie.getValuesWithPrefix("apr")); Output: [apricot, april, apron]
Minimal Perfect Hash Function (Mphf)
Mphf class is a Minimal Perfect Hash Function (MPHF) implementation.
A Mphf () is generated from a defined set of unique keys. It produces a distinct integer for each key in the range of
0..keycount-1.
Generated hash function does not store key data in the structure therefore they are very compact. This particular implementation uses around 3.2 bits per key.
Mphfs may be useful for very large look-up structures such as the ones used in language model compression. Mphf generation is a slow operation, therefore it is generally suggested storing the hash data once it is generated and using it from the storage afterwards. Dart implementation does not provide this functionality yet.
Usage example:
import 'package:poppy/mphf.dart'; ... var fruits = ["apple", "orange", "blueberry", "pomegranate"]; var mphf = new Mphf.fromStrings(fruits); for(var fruit in fruits) { print("$fruit = ${mphf.getValue(fruit.charCodes)}"); } Output: apple = 3 orange = 2 blueberry = 1 pomegranate = 0
Bloom Filter
BloomFilter is a simple Bloom Filter () implementation. This structure guarantess if a key was "not" added to it. However it cannot guarantee if a key really added before. A Bloom filter can be constructed with number of keys to add, bits per bucket or maximum expected false positive ratio. Parameter estimation code is converted from commoncrawl project.
Usage example:
import 'package:poppy/bloom_filter.dart'; ... var fruits = ["apple", "orange", "blueberry", "pomegranate"]; var bloom = new BloomFilter(fruits.length); for(var fruit in fruits) { bloom.add(fruit); } var newFruits = ["apple", "orange", "guava"]; for(var fruit in newFruits) { if(bloom.check(fruit.charCodes)) print("$fruit may exist in bloom filter."); else print("$fruit does not exist in bloom filter."); } Output: apple may exist in bloom filter. orange may exist in bloom filter. guava does not exist in bloom filter.
SimHash
This is a special hash function that generates similar hash values for similar items. This means bit positions of two hash values matches better for similar items (smaller Hamming distance). For example:
import 'package:poppy/simhash.dart'; ... var simHasher = new SimHash(); int h1 = simHasher.getHashFromString("Small rabbit was very sad"); int h2 = simHasher.getHashFromString("Small cute rabbit was very sad"); int h3 = simHasher.getHashFromString("Because his brother was laughing at him"); print ("h1-h2 Hamming distance: ${hammingDistance(h1,h2)}"); print ("h1-h3 Hamming distance: ${hammingDistance(h1,h3)}"); output: h1-h2 Hamming distance: 9 h1-h3 Hamming distance: 31
For each input a 64 bit hash is generated. This hash can be used in tasks like near duplicate detection and clustering of documents. This idea is represented in Charikar's "Similarity Estimation Techniques from Rounding Algorithms" paper.
CountSet
CountSet class in count_set.dart is used for counting objects. Similar structures are also known as MultiSet or Bag. This structure is possibly more compact than using a map structure. It also provides count related methods.
import 'package:poppy/count_set.dart'; ... var fruits = ["apple","apple","orange","apple","pear","orange"]; var set = new CountSet<String>()..addAll(fruits); for(String fruit in new Set()..addAll(fruits)) { print("Count of $fruit is ${set[fruit]}"); } print("Non existing item papaya's count:${set['papaya']}"); Output: Count of apple is 3 Count of orange is 2 Count of pear is 1 Non existing item papaya's count:0
Sparse Vector
SparseVector class in sparse_vector.dart can be used for representing large sparse vectors where most of its values are zero. This structure only hold non-zero elements in it. Therefore it is compact.
Internally it is actually a hash table that uses linear probing. It is more efficient than using Map<int,num> structure. Most vector arithmetic operations are not yet added to the code.
Integer Set
A simple implementation of an integer set. This is actually similar to SparseVector class. It is suppose to be sligthly faster and memory efficient than Set<int> structure.
Change List
0.1.13 Dart M5 (Beta) changes. 0.1.12 Eliminate ? symbol. Make mphf work with String keys directly. 0.1.11 Dart M4 changes. Use 0x3fffffff for MPHF and BloomFilter bounds. Remove Base64 since there is a full Base64 codec available in Dart. Trie returns an Iterable instead of Collection. 0.1.10 Add decodeUnsafe method Base64. Also it is faster now. 0.1.9 Base64 api change 0.1.8 Introduce Base64 codec. Add String methods to BloomFilter. 0.1.7 Fix an error slipped to 0.1.6 in mphf lib definition. Some cleanup 0.1.6 CountSet is introduced. Dart M3 changes. | https://www.dartdocs.org/documentation/poppy/0.1.13/index.html | CC-MAIN-2017-09 | refinedweb | 812 | 53.37 |
Over the years I have been here, many of you have probably despaired that I would ever get anywhere. I was so afraid of making modules because they looked so complicated, and I complained bitterly about them. I finally made one however, and I wonder why I was so timid about them in the first place. This module is rather simplistic and only usable by a very very small fraction (maybe .01%) of the Perl programmers out there that I have not decided whether or not I will ever upload it to CPAN.
This module started when I finally decided to read and learn how to use both map and grep about 2 weeks ago. It was a long time in coming. I may not be too much farther along, but any progress is better than none, I hope. maping and grepping will save me a lot of time and energy in the future. I am happy with the results of this little module. Sorry it is not tidier.
package Games::Random::Alignment;
use strict;
use warnings;
use diagnostics;
use base 'Exporter';
our @EXPORT_OK = qw(random_alignment);
=head1 Alignment
This module generates random alignments for AD&D 2nd Edition.
=head2 Authors
Lady Aleena with lots of help from DrForr, whoppix, and rindolf in the
+ #perlcafe on freenode.
=head2 Use
To use this module, please enter the following.
use Games::Random::Alignment qw(random_alignment);
When you want to generate a random alignment with this module, you can
+ choose from any of the alignment axes.
random_alignment("parts") will generate lawful, chaot
+ic, good, evil, or neutral.
random_alignment("good_vs_evil") will generate good, neutral
+, or evil.
random_alignment("lawful_vs_chaotic") will generate lawful, neutr
+al, or chaotic.
random_alignment("evil") will generate lawful evil,
+neutral evil, or chaotic evil.
random_alignment("good") will generate lawful good,
+neutral good, or chaotic good.
random_alignment("chaotic") will generate chaotic good,
+ chaotic neutral, or chaotic evil.
random_alignment("lawful") will generate lawful good,
+lawful neutral, or lawful evil.
random_alignment("neutral_lc") will generate lawful neutra
+l, true neutral, or chaotic neutral.
random_alignment("neutral_ge") will generate neutral good,
+ true neutral, or neutral evil.
random_alignment("any") will generate any two part
+alignment.
=cut
my @parts = qw(lawful chaotic good evil neutral);
my @good_vs_evil = qw(good neutral evil);
my @lawful_vs_chaotic = qw(lawful neutral chaotic);
my @evil = map($_." evil",@lawful_vs_chaotic);
my @good = map($_." good",@lawful_vs_chaotic);
my @chaotic = map("chaotic ".$_,@good_vs_evil);
my @lawful = map("lawful ".$_,@good_vs_evil);
my @neutral_lc = (map($_." neutral",grep {$_ ne "neutral"} @lawful_vs_
+chaotic), "true neutral");
my @neutral_ge = (map("neutral ".$_,grep {$_ ne "neutral"} @good_vs_ev
+il), "true neutral");
sub full {
my $prefix = $lawful_vs_chaotic[rand @lawful_vs_chaotic];
my $suffix = $good_vs_evil[rand @good_vs_evil];
if ($prefix eq $suffix) {
return "true neutral";
}
else {
return $prefix." ".$suffix;
}
}
sub random_alignment {
my $type = shift;
if ($type eq 'parts') {
return $parts[rand @parts];
}
elsif ($type eq 'good_vs_evil') {
return $good_vs_evil[rand @good_vs_evil];
}
elsif ($type eq 'lawful_vs_chaotic') {
return $lawful_vs_chaotic[rand @lawful_vs_chaotic];
}
elsif ($type eq 'evil') {
return $evil[rand @evil];
}
elsif ($type eq 'good') {
return $good[rand @good];
}
elsif ($type eq 'chaotic') {
return $chaotic[rand @chaotic];
}
elsif ($type eq 'lawful') {
return $lawful[rand @lawful];
}
elsif ($type eq 'neutral_lc') {
return $neutral_lc[rand @neutral_lc];
}
elsif ($type eq 'neutral_ge') {
return $neutral_ge[rand @neutral_ge];
}
else {
return full;
}
}
1;
[download]
My second module is similar to the first, randomly generating more stuff. :)
package Games::Random::Effect;
use warnings;
use strict;
use diagnostics;
use base 'Exporter';
our @EXPORT_OK = qw(random_effect);
=head1 Effect
This module generates random effects for AD&D 2nd Edition.
=head2 Author
Lady Aleena
=head2 Use
To use this module, please enter the following.
use Games::Random::Effect qw(random_effect);
When you want to generate a random effect with this module, you can ch
+oose from the following.
random_effect("general") will generate any of the effects listed b
+elow.
random_effect("gaze") will generate paralysis, stone, stun, or
+death.
random_effect("range") will generate acid, cold, electricity, fi
+re, gas, or sonic.
random_effect("touch") will generate acid, cold, electricity, fi
+re, poison, or energy drain.
random_effect("vocal") will generate deafen, fear, terror, or fl
+ight.
=cut
my @part = qw(acid cold electricity fire);
my @gaze = qw(paralysis stone stun death);
my @range_part = qw(gas sonic);
my @range = (@part, @range_part);
my @touch_part = qw(poison energy_drain);
my @touch = (@part, @touch_part);
my @touch_special = qw(befouls purifies nullifies_holy_water nullifies
+_unholy_water);
my @vocal = qw(deafen fear terror flight);
my @general = (@part, @gaze, @range_part, @touch_part, @vocal);
my $result;
sub random_effect {
my $type = shift;
if ($type eq 'general') {
$result = $general[rand @general];
}
elsif ($type eq 'gaze') {
$result = $gaze[rand @gaze];
}
elsif ($type eq 'range') {
$result = $range[rand @range];
}
elsif ($type eq 'touch') {
$result = $touch[rand @touch];
}
elsif ($type eq 'vocal') {
$result = $vocal[rand @vocal];
}
else {
$result = $general[rand @general];
}
$result =~ tr/_/ /;
return $result;
}
1;
[download]
I have a third in the works right now, but I overcomplicated it, I think.
Welcome to the world of module writers! You have made a big step, it is almost as a rite of passage.
An important part of module writing is choosing a good name for your modules. As you are likely to write many more modules, the naming should both be consistent and clearly convey the use of the module.
Perhaps another name for your modules could be Games::ADD::Alignment::Random and Games::ADD::Effect::Random.
And later you could add other modules, all under the Games::ADD::... namespace, such as Games::ADD::Utilities which can contain various subroutines (or methods) useful in all your other modules, such as a general subroutine which does the $attribute[rand @attribute] choosing.
If you want to avoid the if ... then ... elsif ... elsif ... else ... you can think of another data-structure where you use a hash whose keys are the attribute names and whose values are an array-reference to the list of possible attribute values. It would then become trivially easy to expand the list of attributes, just by adding to the data-structure, without having to edit the if ... then ... elsif ... elsif ... else ... code. One could even consider putting the attribute values into a configuration file, so your code doesn't even have to change one bit when you change the attributes.'ve come a long way, baby!
Egads! White space. Lots of it! strict, warnings, polite use of Exporter (with @EXPORT_OK), consistent use of indenting, documentation. All good!
Count Zero has made great suggestions. Here's one more. There are some standard conventions about how sections of POD are organized. Here's how I would revise your pod to use more standard headings and organization. However, there are many styles out there and I encourage you to check CPAN for further examples, as well.
=pod
=head1 NAME
Games::Random::Alignment - generates random alignments for AD&D 2nd Ed
+ition.
=head1 USAGE
use Games::Random::Alignmnet qw(random_alignment);
# generate lawful, chaotic, good, evil or neutral
random_alignment("parts");
# generate good, neutral or evil
random_alignment("good_vs_evil");
# generate lawful, neutral, or chaotic
random_alignment("lawful_vs_chaotic");
# generate lawful evil, neutral evil, or chaotic evil.
random_alignment("evil");
# generate lawful good, neutral good, or chaotic good.
random_alignment("good");
# generate chaotic good, chaotic neutral, or chaotic evil.
random_alignment("chaotic");
# generate lawful good, lawful neutral, or lawful evil.
random_alignment("lawful");
# generate lawful neutral, true neutral, or chaotic neutral.
random_alignment("neutral_lc");
# generate neutral good, true neutral, or neutral evil.
random_alignment("neutral_ge");
# generate any two part alignment.
random_alignment("any");
=head1 DESCRIPTION
This module generates random alignments for AD&D 2nd Edition. When yo
+u want to generate a random alignment with this module, you can choos
+e from any of the alignment axes. For examples, see the L</USAGE> se
+ction above.
=head1 AUTHORS
Lady Aleena with lots of help from DrForr, whoppix, and rindolf in the
+ #perlcafe on freenode.
=cut
[download]
As you have already probably figured out indenting pod
causes it to be formatted as code, so all of the usage section will look like code samples. L</Some heading name here> lets you create a link to any other heading (a name introduced by =head1, =head2, etc) in your pod. See perlpod for all the gory details.
Best, beth
However, it appears that there's sufficient in common between the 2 modules to warrant a single abstraction (or base class) utilising 2 config files (or sub-classes) ... or maybe even both as an extended learning exercise ?
Just a thought from 1st impressions ...
What exactly is the assignment? :)
my @evil = map($_." evil",@lawful_vs_chaotic);
return $prefix." ".$suffix;
[download]
to:
my @evil = map("$_ evil",@lawful_vs_chaotic);
return "$prefix $suffix";
[download]
I have not decided whether or not I will ever upload it to CPAN
If the answer to any of these questions is 'yes', then I would say it is a candidate for CPAN. In that case, your next step is to create a test suite. And to finish things off, I second ELISHEVA's advice regarding more standard POD sections.
The only reason I go with concatenation is that it is easier to see in my text editor which color codes everything. Everything between "" and '' is in gray. To find scalars and other code faster while debugging, it is just simpler to concatenate. Every once in a while I will use qq{} for really long strings with some scalars and code in it, but that is rare. I am not too partial of the color my text editor has for hashes. I really should change that. :)
I haven't really looked on CPAN for these, but I doubt that there are any modules that have this level of specificity. They are not too functional outside of their specific topics. I haven't checked speed, but they are small, so it stands to reason that they are fast. Well, at least my reasoning anyway. I am not sure how robust they are, but I tried to cover all the bases under the specific topic. They are pretty portable, I think, as I did not make them specific to one platform such as loading them down with HTML. I will have to look into what a test suite is.
Thank you for searching CPAN on my behalf, I appreciate it. One day I may make a presence for myself there, but I am not quite that good yet. :)
It is isn't a question of "that good" but rather "good enough" and "useful". If there are other people that want to build AD&D games using Perl, then they might find your module useful.
Good enough means using good programming practices (you are), a not-too-unconventional documentation style, and, of course, a test suite that passes. See Test::Simple and Test::More for more information on how you can use Perl to test your software. Testing sounds intimidating but it is really quite easy.
The only other question is do I have the time to update it as I add new features and to maintain it if someone reports problems? A module is more likely to be used if it looks like it is being well taken care of.
" use Games::Random::Alignmnet qw(random_alignment);"
Spelling error here ---^
Cheers.
[download]
Spelling error fixed. Thanks for catching that!
A simplification of your code. You are repeating the same action using different data. So rather than have lots of code lets focus on a data structure that uses the same code.
my %effects = (
part => [qw(acid cold electricity fire)],
gaze => [qw(paralysis stone stun death)],
range_part => [qw(gas sonic)],
touch_part => ['poison', 'energy drain'],
touch_special => ['befouls', 'purifies', 'nullifies holy water', 'nu
+llifies unholy water'],
vocal => [qw(deafen fear terror flight)],
);
$effects{'range'} = [@{$effects{'part'}}, @{$effects{'range_part'}}]
+;
$effects{'touch'} = [@{$effects{'part'}}, @{$effects{'touch_part'}}]
+;
$effects{'general'} = [@{$effects{'part'}}, @{$effects{'touch_part'}},
@{$effects{'gaze'}}, @{$effects{'range_part'}},
@{$effects{'vocal'}}];
sub random_effect {
my $type = shift;
return 'unknown' if not exists $effects{ $type };
return $effects{ $type }[ rand @{$effects{ $type }} ];
}
print random_effect('misspelled') . "\n";
print random_effect( 'touch' ) . "\n";
print random_effect( 'touch' ) . "\n";
print random_effect( 'general' ) . "\n";
print random_effect( 'general' ) . "\n";
[download]
Now if you want to add a effect type, you only need to add an entry into %effects. You could probably do something similar for the alignments.
Thanks for simplifying my code. While I didn't do exactly what you did above, I did use the hash.
For Alignment.pm...
For Effect.pm...
If there are any further improvements you can think of, please let me know. Thanks again!
You're using one of my pet-peeve style errors:
sub random_alignment {
my $type = shift;
if ($type eq 'parts') {
return $parts[rand @parts];
}
elsif ($type eq 'good_vs_evil') {
return $good_vs_evil[rand @good_vs_evil];
}
elsif ($type eq 'lawful_vs_chaotic') {
return $lawful_vs_chaotic[rand @lawful_vs_chaotic];
}
[download]
After a return there can never be an else. the sub returns, so this much better reads like this:
sub random_alignment
{
my $type = shift;
if ($type eq 'parts') {
return $parts[rand @parts];
}
if ($type eq 'good_vs_evil') {
return $good_vs_evil[rand @good_vs_evil];
}
if ($type eq 'lawful_vs_chaotic') {
return $lawful_vs_chaotic[rand @lawful_vs_chaotic];
}
[download]
And personally, I'd go even further:
sub random_alignment
{
my $type = shift;
$type eq "parts" and return $parts[rand @parts];
$type eq "good_vs_evil" and return $good_vs_evil[rand @good_vs_
+evil];
$type eq "lawful_vs_chaotic" and return $lawful_vs_chaotic[rand @law
+ful_vs_chaotic];
[download]
Clean, short code. Beautiful, right?
Now you are doing one of my pet peeves, using to much syntax which is not clarifying the code at all. This is better,
my $type = shift;
return $type eq 'parts' ? $parts[ rand @parts]
: $type eq 'good_vs_evil' ? $good_vs_evil[ rand @good_v
+s_eval]
: $type eq 'lawful_vs_chaotic' ? $lawful_vs_chaotic[ rand @lawful
+_vs_chaotic]
? q{}
[download]
That kind of code will only work of there is just one return, and "" (or the hideous q{} from PBP) is the only possible alternative.
My example just simplifies the pre-emptive returns, and lives in the assumption that the default (after all the returns were done) still needs some real coding.
Personally, I like brevity, and both my code and yours are terse. I do not however think that your code is any clearer than mine. Both are clearer than the code of the OP though.
With what Herkum suggested in Re: Lady Aleena's first working module, using a hash instead of a lot of arrays, I was able to cut down on the redundant code a bit. You can see my changes in Re^2: Lady Aleena's first working module. I am a bit confused as to why you would put the closing bracket of the if on the next level down from it. I am of the mind that the closing bracket should be on the same level as where it was opened. I am also not a big fan of condensing the if, but that is because I don't want it to get lost. That is the same reason I concatenate over interpolate.
In my humble but very honest opinion, indenting the closing brace to that level is the only logical thing to do. I have tried to explain that (and some other style issues) in here. I know many won't agree, but you have to admit I at least gave it a lot of thought and I'm not one of those people that just blindly follow what their favourite editor thinks to be the best style today.
My savings account
My retirement account
My investments
Social Security
Winning the lottery
A Post-scarcity economy
Retirement?! You'll have to pull the keyboard from my cold, dead hands
I'm independently wealthy
Other
Results (76 votes),
past polls | http://www.perlmonks.org/?node_id=799163 | CC-MAIN-2014-42 | refinedweb | 2,550 | 63.39 |
Once you know how to create and draw a shape, filling it is easy. You just call the fill() method for the Graphics2D object and pass a reference of type Shape to it. This works for any shape but for sensible results the boundary should be closed.
Let's try it out by modifying the applet example that displayed stars.
To fill the stars we just need to call the fill() method for each star in the paint() method of the StarPane object. Modify the paint() method as follows:
public void paint(Graphics g) { Graphics2D g2D = (Graphics2D)g; Star star = new Star(0,0); // Create a star float delta = 60; // Increment between stars float starty = 0; // Starting y position // Draw 3 rows of 4 stars for(int yCount = 0 ; yCount<3; yCount++) { starty += delta; // Increment row position float startx = 0; // Start x position in a row // Draw a row of 4 stars for(int xCount = 0 ; xCount<4; xCount++) { g2D.setPaint(Color.blue); // Drawing color blue g2D.draw(star.atLocation(startx += delta, starty)); g2D.setPaint(Color.green); // Color for fill is green g2D.fill(star.getShape()); // Fill the star } } }
We also need an import statement for the Color class name:
import java.awt.Color;
Now the applet window will look something like that shown here – but in color of course.
How It Works
We set the color for drawing and filling the stars separately, simply to show that we can get both. The stars are displayed in green with a blue boundary. You can fill a shape without drawing it – just call the fill() method. You could amend the example to do this by modifying the inner loop to:
for(int xCount = 0 ; xCount<4; xCount++) { g2D.setPaint(Color.GREEN); // Color for fill is green g2D.fill(star.atLocation(startx += delta, starty)); // Fill the star }
Now all we will get is the green fill for each shape – no outline.
You are not limited to filling a shape with a uniform color. You can create a GradientPaint object that represents a graduation in shade from one color to another and pass that to the setPaint() method for the graphics context. There are four GradientPaint class constructors:
Points off the line defining the color gradient will have the same color as the normal (that is, right-angle) projection of the point onto the line.
This stuff is easier to demonstrate than to describe, so here's the output from the example we're about to code:
We create an example similar to our star applet that will draw rectangles with GradientPaint fills. Here's the complete code:
import javax.swing.JComponent; import javax.swing.JApplet; import java.awt.*; import java.awt.geom.*; public class GradientApplet extends JApplet { // Initialize the applet public void init() { getContentPane().add(pane); // BorderLayout.CENTER is default position } // Class defining a pane on which to draw class GradientPane extends JComponent { public void paint(Graphics g) { Graphics2D g2D = (Graphics2D)g; Point2D.Float p1 = new Point2D.Float(150.f, 75.f); // Gradient line start Point2D.Float p2 = new Point2D.Float(250.f, 75.f); // Gradient line end float width = 300; float height = 50; GradientPaint g1 = new GradientPaint(p1, Color.white, p2, Color.DARK_GRAY, true); // Cyclic gradient Rectangle2D.Float rect1 = new Rectangle2D.Float( p1.x-100, p1.y-25, width,height); g2D.setPaint(g("Cyclic Gradient Paint", p1.x-100, p1.y-50); g2D.drawString("p1", p1.x-20, p1.y); g2D.drawString("p2", p2.x+10, p2.y); p1.setLocation(150, 200); p2.setLocation(250, 200); GradientPaint g2 = new GradientPaint(p1, Color.white, p2, Color.DARK_GRAY, false); // Acyclic gradient rect1.setRect(p1.x-100, p1.y-25, width, height); g2D.setPaint(g("Acyclic Gradient Paint", p1.x-100, p1.y-50); g2D.drawString("p1", p1.x-20, p1.y); g2D.drawString("p2", p2.x+10, p2.y); } } GradientPane pane = new GradientPane(); // Pane containing filled rectangles }
If you run this applet with the following HTML, you should get the window shown above.
<applet code="GradientApplet.class" width=400 height=280></applet>
Note that to get a uniform color gradation, your monitor needs to be set up for at least 16 bit (65536 colors) colors, preferably 24 bits (16.7 million colors).
How It Works
To import the individual class names that are used in this example needs nine import statements so here we just import all the class names in each of the three packages. As a rule, it is better practice to only import the class names that you use in your code, but we will use the * form to import all the names in a package when this reduces the number of import statements significantly.
The applet displays two rectangles, and they are annotated to indicate which is which. The applet also displays the gradient lines, which lie in the middle of the rectangles. You can see the cyclic and acyclic gradients quite clearly. You can also see how points off the gradient line have the same color as the normal projection onto the line.
The first block of shaded code in the paint() method creates the upper rectangle where the GradientPaint object that is used is g1. This is created as a cyclic gradient between the points p1 and p2 varying from white to dark gray. These shades have been chosen because the book is in black and white, but you can try any color combination you like. To set the color gradient for the fill, we call setPaint() for the Graphics2D object and pass g1 to it. Any shapes drawn and/or filled subsequent to this call will use the gradient color, but here we just fill the rectangle, rect1.
To make the outline and the annotation clearer, we set the current color back to black before calling the draw() method to draw the outline of the rectangle, and the drawString() method to annotate it.
The code for the lower rectangle is essentially the same as that for the first. The only important difference is that we specify the last argument to the constructor as false to get an acyclic gradient. This causes the colors of the ends of the gradient line to be the same as the end points. We could have omitted the Boolean parameter here, and got an acyclic gradient by default.
The applet shows how points off the gradient line have the same color as the normal projection onto the line. This is always the case regardless of the orientation of the gradient line. Try changing the definition of g1 for the upper rectangle to:
GradientPaint g1 = new GradientPaint(p1.x, p1.y – 20, Color.white, p2.x, p2.y + 20, Color.DARK_GRAY, true); // Cyclic gradient
You will also need to draw the gradient line in its new orientation:
g2D.draw(rect1); // Fill the rectangle //g2D.draw(new Line2D.Float(p1, p2)); g2D.draw(new Line2D.Float(p1.x, p1.y - 20, p2.x, p2.y + 20));
The annotation for the end points will also have to be moved:
g2D.drawString("p1",p1.x – 20,p1.y – 20); g2D.drawString("p2",p2.x + 10,p2.y + 20);
If you run the applet with these changes, you can see how the gradient is tilted, and how the colors of a point off the gradient line matches that of the point that is the orthogonal projection onto it. | http://www.yaldex.com/java_tutorial/0203196876.htm | CC-MAIN-2016-44 | refinedweb | 1,222 | 64.91 |
Hello guys, I think, we need just "a few lines of code" to enjoy tagging within zim. Could you comment my ideas?
Advertising
What ve have 1. We have a namespace for tags, i.e. :tags (could be defined in prefs). 2. Every inserted tag have to be located in this namespace, i.e. :tags:kde, :tags:gnome, :tags:family, :tags:work What we need 1. Displaying the tag's page - we need a macro command (or something similar), which displays the backlinks. So the page would be generated and would contain links to pages, which contain corresponding tag. When the user clicks the tag in the sidebar, the list will update. 2. Some kind of cloud or so on page :tags. But that's not urgent - we still can use the sidebar to access the tags. I think some kind of automatic routines like "table of content" or "index" will be great. What do you mean about it? Thanks for such a great program. -- Vlastimil Ott _______________________________________________ Mailing list: Post to : zim-wiki@lists.launchpad.net Unsubscribe : More help : | https://www.mail-archive.com/zim-wiki@lists.launchpad.net/msg00089.html | CC-MAIN-2018-22 | refinedweb | 180 | 78.35 |
Beacon is built with Swift on the server. Since we have all of the niceties of Swift in this new environment, we can use our knowledge and experience from building iOS app to build efficient server applications. Today, we’ll look at two examples of working with sequences on the server to achieve efficiency and performance.
Over the network
For its social graph, Beacon needs to find your mutual Twitter followers — that is, the people you follow that follow you back. There’s no Twitter API for this, so we have to get the list of follower IDs and the list of following IDs, and intersect them. The Twitter API batches these IDs into groups of 5,000. While people rarely follow more than 5,000 people, some users on Beacon have a few hundred thousand Twitter followers, so these will have to be batched. Because of these contraints, this problem provides a pretty interesting case study for advanced sequence usage.
We do this on the server instead of the client, because there will be a lot of requests to the Twitter API, and it doesn’t make much sense to perform those on a user’s precarious cellular connection. For our backend, we use the Vapor framework, and Vapor’s request handling is completely synchronous. Because of this, there’s no sense in using completion blocks for network requests. You can just return the result of the network request as the result of your function (and
throw if anything goes wrong). For an example, let’s fetch the IDs of the first 5,000 people that someone follows:
let following = try client.send(request: TwitterFollowingRequest())
To perform the batching, the Twitter API uses the concept of cursors. To get the first batch, you can leave off the cursor, or pass
-1. Each request returns a new
next_cursor, which you give back to Twitter when you want the next batch. This concept of cursors fits nicely into Swift’s free function
sequence(state:next:). Let’s examine this function’s signature:
func sequence<T, State>(state: State, next: @escaping (inout State) -> T?) -> UnfoldSequence<T, State>
This function is generic over two types:
T and
State. We can tell from the signature that we need provide an initial
State as a parameter, and we also provide a closure that takes an
inout
State and returns an optional
T.
inout means we can mutate the
state, so this is how we update the state for the next iteration of the sequence. The
T that we return each time will form our sequence. Returning
nil instead of some
T ends the sequence.
Because the Fibonacci sequence is the gold standard for stateful sequences, let’s take a look at using
sequence(state:next:) to create a Fibonacci sequence:
let fibonacci = sequence(state: (1, 1), next: { (state: inout (Int, Int)) -> Int? in let next = state.0 + state.1 state = (state.1, next) return next })
The
state in this case has type
(Int, Int) and represents the last two numbers in the sequence. First, we figure out the
next number by adding the two elements in the tuple together; then, we update the
state variable with the new last two values; finally, we return the
next element in the sequence.
(Note that this sequence never returns nil, so it never terminates. It is lazy, however, so none of this code is actually evaluated until you ask for some elements. You can use
.prefix(n) to limit to the first n values.)
To build our sequence of Twitter IDs, we start with the state
"-1", and build our sequence from there.
let lazyFollowerIDs = sequence(state: "-1", next: { (state) -> [Int]? in })
We need to send the request in this block, and return the IDs from the result of the request. The request itself looks a lot like the
TwitterFollowingRequest from above, except it’s now for followers instead.
let lazyFollowerIDs = sequence(state: "-1", next: { (state) -> [Int]? in let result = try? self.client.send(request: TwitterFollowersRequest(cursor: state)) return result?.ids })
Right now, this request never updates its state, so it fetches the same page over and over again. Let’s fix that.
let lazyFollowerIDs = sequence(state: "-1", next: { (state) -> [Int]? in let result = try? self.client.send(request: TwitterFollowersRequest(cursor: state)) state = result?.nextCursor ?? "0" return result?.ids })
For the last page, Twitter will return
"0" for the
next_cursor, so we can use that for our default value if the request fails. (If the request fails,
result?.ids will also be nil, so the sequence will end anyway.)
Lastly, let’s put a
guard in place to catch the case when Twitter has shown us the last page.
let lazyFollowerIDs = sequence(state: "-1", next: { (state) -> [Int]? in guard state != "0" else { return nil } let result = try? self.client.send(request: TwitterFollowersRequest(cursor: state)) state = result?.nextCursor ?? "0" return result?.ids })
(If we added a little more error handling here, it would look almost identical to the actual code that Beacon uses.)
This sequence is getting close. It’s already lazy, like our Fibonacci sequence, so it won’t fetch the second batch of 5,000 items until the 5,001st element is requested. It needs one more big thing: it’s not actually a sequence of IDs yet. It’s still a sequence of arrays of IDs. We need to flatten this into one big sequence. For this, Swift has a function called
joined() that joins a sequence of sequences into a big sequence. This function (mercifully) preserves laziness, so if the sequence was lazy before, it’ll stay lazy. All we have to do is add
.joined() to the end of our expression.
To get our mutual follows from this
lazyFollowerIDs sequence, we need something to intersect the followers and the following. To make this operation efficient, let’s turn the
following IDs into a set. This will make
contains lookup really fast:
let followingIDSet = Set(following.ids)
We make sure to filter over the
lazyFollowerIDs since that sequence is lazy and we’d like to iterate over it only once.
let mutuals = lazyFollowerIDs.filter({ id in followingIDSet.contains(id) })
This reads “keep only the elements from
lazyFollowerIDs that can be be found in
followingIDSet”. Apply a little syntactic sugar magic to this, and you end up with a pretty terse statement:
let mutuals = lazyFollowerIDs.filter(followingIDSet.contains)
Off the disk
A similar technique can be used for handling batches of items from the database.
Vapor’s ORM is called Fluent. In Fluent, all queries go through the
Query type, which is type parameterized on
T, your entity, e.g,
User. Queries are chainable objects, and you can call methods like
filter and
sort on them to refine them. When you’re done refining them, you can call methods like
first(),
all() , or
count() to actually execute the
Query.
While Fluent doesn’t have the ability to fetch in batches, its interface allows us to build this functionality easily, and Swift’s lazy sequence mechanics let us build it efficiently.
We know we’ll need a function on every
Query. We don’t know what kind of Sequence we’ll be returning, but we’ll use
Sequence<T> as a placeholder for now.
extension Query { func inBatches(of batchSize: Int) throws -> Sequence<T> { } }
First, we need to know how many items match our query, so we can tell how many batches we’ll be fetching. Because the object we’re inside already represents the query that we’re going to be fetching with, and it already has all the relevant filters and joins, we can just call
count() on
self, and get the number of objects that match the query.
extension Query { func inBatches(of batchSize: Int) throws -> Sequence<T> { let count = try self.count() } }
Once we have the count, we can use Swift’s
stride(from:to:by:) to build a sequence that will step from 0 to our count with a stride of our
batchSize.
extension Query { func inBatches(of batchSize: Int) throws -> Sequence<T> { let count = try self.count() stride(from: 0, to: self.count(), by: batchSize) } }
Next, we want to transform each step of this stride (which represents one batch) into a set of the objects in question.
extension Query { func inBatches(of batchSize: Int) throws -> Sequence<T> { let count = try self.count() stride(from: 0, to: self.count(), by: batchSize) .map({ offset in return (try? self.limit(batchSize, withOffset: offset).all()) ?? [] }) } }
Because
.all() is a throwing function, we need to handle its error somehow. This will be a lazy sequence, so the
map block will get stored and executed later. It is
@escaping. This means that we can’t just throw, because we can’t guarantee that we’d be in a position to catch that error. Therefore, we just discard the error and return an empty array if it fails.
If we try to execute this as-is, the
map will run instantly and fetch all of our batches at once. Not ideal. We have to add a
.lazy to our chain to ensure that that each fetch doesn’t happen until an item from that batch is requested.
extension Query { func inBatches(of batchSize: Int) throws -> Sequence<T> { let count = try self.count() stride(from: 0, to: self.count(), by: batchSize) .lazy .map({ offset in return (try? self.limit(batchSize, withOffset: offset).all()) ?? [] }) } }
The last step here, like the Twitter example, is to call
.joined() to turn our lazy sequence of arrays into one big lazy sequence.
extension Query { func inBatches(of batchSize: Int) throws -> Sequence<T> { let count = try self.count() return stride(from: 0, to: self.count(), by: batchSize) .lazy .map({ offset in return (try? self.limit(batchSize, withOffset: offset).all()) ?? [] }) .joined() } }
When we run this code, we see that the our big Sequence chain returns a
LazySequence<FlattenSequence<LazyMapSequence<StrideTo<Int>, [T]>>>. This type is absurd. We can see all the components of our sequence chain in there, but we actually don’t care about those implementation details. It would be great if we could just erase the type and be left with something simple. This technique is called a type erasing and it will hide these details.
AnySequence is a type eraser that the Swift standard library provides for this exact purpose.
AnySequence also will become our return type.
extension Query { func inBatches(of batchSize: Int) throws -> AnySequence<T> { let count = try self.count() return AnySequence(stride(from: 0, to: count, by: batchSize) .lazy .map({ (offset) -> [T] in return (try? self.limit(batchSize, withOffset: offset).all()) ?? [] }) .joined()) } }
We can now write the code we want at the callsite:
try User.query().sort("id", .ascending) .inBatches(of: 20) .forEach({ user in //do something with user })
This is reminiscent of Ruby’s
find_in_batches or the property
fetchBatchSize on
NSFetchRequest, which returns a very similar lazy
NSArray using the
NSArray class cluster.
This is not the first time I’ve said this, but Swift’s sequence handling is exceptionally robust and fun to work with. Understanding the basics of Swift’s sequences enable you to compose those solutions to tackle bigger and more interesting problems. | https://khanlou.com/2017/06/advanced-sequences-on-the-server/ | CC-MAIN-2020-34 | refinedweb | 1,857 | 66.23 |
grampg 0.1.3
Simple and flexible password generation library.
ABOUT
The grampg (cue to Grumpy Admin Password Generator, and pronounced “grummpeegee”) is a small python2 library which allows to generate passwords according to (possibly complicated) user specs. The idea is simple: build an instance, feed it your desired specifications, then generate as many passwords as you want. Each password generated will be independent of the others, except from the fact that all of them will comply with the specs.
The objectives for the grampg are flexibility and easy of use. grampg fulfills by providing a kind interface to the user: When building the password generator the user writes the spec as if it were being pronounced. In this fashion, a set of complex rules is expressed in a declarative line.
USAGE
Typical usage follows the pattern outlined before: build a generator instance, feed it your specs, collect your passwords. This brief explanation fails to explain how, which is the main attractive of the grampg. As an example, consider the following:
Your admin needs your system to produce passwords of between 5 and 10 letters, at least 4 numbers, adding up to 10 characters total. Oh, and since this passwords may be used in some-mail-system, they should start with a letter.
The constrains, or specs, are quite contrived, but they can be fed to grampg simply:
from grampg import PasswordGenerator passwords = (PasswordGenerator().of().between(5, 10, 'letters') .at_least(4, 'numbers') .length(10) .beginning_with('letters') .done()) return [passwords.generate() for i in xrange(so_many_passwords)]
Only one generator instance is created, and then used to produce as many passwords as are required.
Other character sets available by default are ‘lower_letters’, ‘upper_letters’, and ‘alphanumeric’, but the user is free to build generator instances with any character sets desired (as well as overriding the defaults). For example:
passwords = (PasswordGenerator({'special': list('%$#!*'), 'letters': list('abcde')}) .of().exactly(3, special).at_most(2, 'special').done())
For more examples, execute and read the many_passwords.py program (which lives in grampg/demo), a simple program that spits passwords according to somewhat realistic specifications. There is also the usecases.py file, which consists of many uses of the grampg and their expected output (both valid and not).
TESTS
The grampg package includes the following files which purpose is to serve as test bed:
- tests.py
- Unit test suite.
- usecases.py
- Integration tests.
- regression.py
- Regression tests. Like integration, but actual examples that went awry and are now fixed.
ABOUT THE NAME
The name sucks, I know. It’s meant as a silly joke to the person who inspired the code creation.
LICENSE
The grampg software package (including tests, documentation and demonstration programs) is licensed under the GNU Affero GPL version 3.0. A copy of the license is included with the grampg package. For details about the license, visit.
- Author: Elvio Toccalino
- Keywords: grumpy admin password generator
- License: GNU Affero General Public License (LICENSE.txt)
- Package Index Owner: etoccalino
- DOAP record: grampg-0.1.3.xml | https://pypi.python.org/pypi/grampg/0.1.3 | CC-MAIN-2016-30 | refinedweb | 498 | 57.16 |
We have the following datacontract which represents a surface size expressed in Ha, A and Ca:
[DataContract(Namespace = Constants.SCHEMANAME + "Perceel")] public class SurfaceSize { [DataMember(IsRequired = false)] public int? Ha { get; set; } [DataMember(IsRequired = false)] public int? A { get; set; } [DataMember(IsRequired = false)] public decimal? Ca { get; set; } }
We noticed that only the Ha value was saved into the database. We looked at the NHibernate mapping files, the domain mapping code, the queries,… everything looked okay. So we took a look at the only place that was left, the message communication itself.
The following message data was send to us:
<c:SurfaceSize> <c:Ha>99</e6:Ha> <c:A>9</e6:A> <c:Ca>10</e6:Ca> </c:SurfaceSize>
We discovered that changing the order of the parameters inside the message solved the problem:
<c:SurfaceSize> <c:A>9</c:A> <c:Ca>10</c:Ca> <c:Ha>99</c:Ha> </c:SurfaceSize>
No idea why WCF ignores the parameters when the order has changed. We are not using the Order attribute on our DataContracts.
Anyone who has a clue?
2 comments:
Maybe this link is helpful
Thanks for the link! It gives some extra inside into the problem(unfortunately no solution :-() | http://bartwullems.blogspot.com/2012/04/soap-message-properties-are-ignored-in.html | CC-MAIN-2017-47 | refinedweb | 202 | 57.27 |
Creating a Service with Windows Communication Foundation and LINQ to SQL
Introduction
The .NET framework has thousands of discrete classes that are well-organized by namespaces. The .NET framework also has large chunky bits that are whole sub-systems within the framework. When you start combining these sub-systems, you get powerful solutions very quickly. In this article, you'll combine Windows Communication Foundation (WCF) introduced in .NET 3.0 and LINQ to SQL introduced in .NET 3.5 and learn how to implement a service on top of LINQ and SQL server with astonishingly few lines of code.
Using the WCF Service Application Applet
When the concept of wizards first showed up, I didn't like them that much. They seemed to produce a bunch of code that looked like magic, but this code was sometimes hard to modify and hard to reproduce. Newer wizards in Visual Studio with the .NET framework use framework code, producing lucid, and easy to follow bits of code. So, although you could create a WCF solution from scratch, let Visual Studio generate the starter code for you.
WCF uses the concept of a ServiceContract and a DataContract. The ServiceContract specifies the behaviors provided by your service and the DataContract describes data that will be introduced by the service. If you select File|New Project and pick WCF Service Library—in Visual Studio 2008—the templates and wizards will stub out all of the basic elements, demonstrating a sample ServiceContract and DataContract. This stubbed solution is ready to compile and test.
The WCF template defines an interface attributed with the ServiceContractAttribute, a class that is attributed with the DataContractAttribute, and a second a class that implements the ServiceContract interface. The DataContract class is a dummy class representing a composite type showing you how to implement custom types to be used in your service. Each behavior that you want to publish is described in the ServiceContract as a method and attributed with the OperationContractAttribute. Each property that you want to be serialized in the composite type—the DataContract—is attributed with the DataMemberAttribute. In short, OperationContractAttributes are callable by service consumers and DataMemberAttributes are serialized and accessible by those same consumers.
Because Visual Studio stubs out all of this for you, you can move on to the code you have to write to implement a useful service.
Programming with LINQ to SQL Behind a WCF Service
Suppose now that you want to use LINQ to SQL behind the service. You will need a database (you'll use Northwind) and some basic plumbing for LINQ to SQL. The two basic LINQ to SQL elements you will need are a DataContext, representing the connection to the database, and an entity class (or DataSet) attribute with the TableAttribute. The TableAttribute indicates that the annotated class can be populated by the LINQ to SQL plumbing.
The key here is that the DataContract and the LINQ to SQL entity can be the same composite type. That is, you define one class and attribute it with WCF and LINQ to SQL attributes, resulting in both technologies being supported in the same class.
For your purposes, you will define a service that looks up a customer in the Northwind Traders database. The code that follows is bootstrapped with the WCF Visual Studio wizard template and the LINQ to SQL code was added. Listing 1 starts you off with the WCF ServiceContract.
Listing 1: The WCF ServiceContract definition (an interface).
<ServiceContract()> _ Public Interface ICustomerService <OperationContract()> _ Function GetCustomer(ByVal customerID As String) As Customer End Interface
Listing 2 implements the ServiceContract by providing an implementation of for GetCustomer.
Listing 2: A simple WCF ServiceContract that means you will be defining a service that returns customers by CustomerID.
Imports System.Data.Linq Public Class CustomerService Implements ICustomerService Public Sub New() End Sub Public Function GetCustomer(ByVal customerID As String) _ As Customer Implements ICustomerService.GetCustomer Dim northwind As Northwind = New Northwind() Dim customers As Table(Of Customer) = _ northwind.GetTable(Of Customer)() Dim customer = (From cust In customers _ Where cust.CustomerID = customerID _ Select cust).First() Return customer End Function End ClassTo suport the LINQ code, a refernce to System.Data.Linq is added to the WCF library project. The LINQ code is a SQL-like query that shows (among other things) that you will need a class Northwind and a Table Customer. The rest is a LINQ query.
LINQ queries start with the From clause and end with a Select statement. You can think of this query as slecting customer by CustomerID. The .First() method call is an agrgegate operation that returns the first customer from the result set. (Because CustomerIDs are unique, this code should return just one Customer as long as the ID is valid.)<< | https://www.developer.com/net/vb/article.php/3762636/Creating-a-Service-with-Windows-Communication-Foundation-and-LINQ-to-SQL.htm | CC-MAIN-2019-22 | refinedweb | 796 | 54.52 |
Suppose two friends Amal and Bimal are playing a game with a sorted list of numbers called nums. In this game in a single turn, Amal chooses any three numbers. Bimal removes one of them, and then Amal removes one of them. The list starts out with an odd number of elements. Here Amla wishes to minimize the number of turns required to make the list contain no repeated elements, Bimal wishes to maximize the number of turns. If Amal and Bimal act optimally, we have to find how many turns are needed for this game.
So, if the input is like nums = [1, 1, 2, 3, 3, 3, 4], then the output will be 2, as If Amal selects [1, 1, 3], then Bimal removes 3 to maximize turns, the array is [1, 1, 2, 3, 3, 4], Amal removes 1, so array is [1,2,3,3,4], then in the next turn Amal selects [3,3,4], then Bimal will remove 4 to maximize turns. So then Amal can remove 3 and array will be [1,2,3], there is no duplicate elements.
To solve this, we will follow these steps −
repeats := 0
for i in range 1 to size of nums, do
if nums[i] is same as nums[i-1], then
repeats := repeats + 1
return quotient of (repeats + 1) / 2
Let us see the following implementation to get better understanding −
class Solution: def solve(self, nums): repeats = 0 for i in range(1, len(nums)): if nums[i] == nums[i-1]: repeats += 1 return (repeats + 1) // 2 ob = Solution() nums = [1, 1, 2, 3, 3, 3, 4] print(ob.solve(nums))
[1, 1, 2, 3, 3, 3, 4]
2 | https://www.tutorialspoint.com/program-to-find-number-of-moves-to-win-deleting-repeated-integer-game-in-python | CC-MAIN-2022-21 | refinedweb | 284 | 70.06 |
CFD Online Discussion Forums
(
)
-
FLUENT
(
)
- -
Pls Help on DPM BC Partial Evaporation
(
)
xc
January 13, 2006 13:30
Pls Help on DPM BC Partial Evaporation
DEar All,
I tried to use a UDF to make the droplet evaporate partially on the wall and rebounce back as a smaller droplet. There is no problem to set the droplet to a smaller one. However, it looks like that the latent heat does not go to the air flow. Anybody knows how to do this? Thanks.
xc
RoM
January 15, 2006 04:02
Re: Pls Help on DPM BC Partial Evaporation
If you change the particle diameter in your bc-udf you will have to do write an additional dpm_source udf which will add the mass source and the energy source to the continuous phase. In the udf manual chpater 4.6.12 (description of dpm_switch macro) is a sample that will be helpful.
Good luck, RoM
xc
January 16, 2006 12:34
Re: Pls Help on DPM BC Partial Evaporation
Thanks, RoM. I am trying it although it does not work so far.
What I don't understand is that DEFINE_DPM_SOURCE should be for the whole field rather than the wall boundary. In addition, the existing function in Fluent should already take care of the latent heat from droplet to the continuous phase. Is there any conflict to add extra source term?
I checked the example in Fluent UDF manual 4.6.12. However, it looks like this function does not work for my case. Should I pay attention to any special issue?
Thanks
xc
#define C_DPMS_ENERGY(c,t)C_STORAGE_R(c,t,SV_DPMS_ENERGY)
DEFINE_DPM_SOURCE(dpm_source,c,t,S,strength,p) { real mp_dot; Material *sp = P_MATERIAL(p);
/* mp_dot is the (positive) mass source to the continuous phase */ /* (Difference in mass between entry and exit from cell) */ /* multiplied by strength (Number of particles/s in stream) */
mp_dot = (P_MASS0(p) - P_MASS(p)) * strength;
C_DPMS_YI(c,t,0) += mp_dot; C_DPMS_ENERGY(c,t) -= mp_dot* MATERIAL_PROP(sp,PROP_Cp)*(C_T(c,t)-298.15); C_DPMS_ENERGY(c,t) -= mp_dot* MATERIAL_PROP(sp,PROP_latent_heat); }
RoM
January 17, 2006 09:41
Re: Pls Help on DPM BC Partial Evaporation
You are right that the standard law takes care of all mass and heat exchange. Maybe the error is in you bc udf. You can use the small udf below as a template. The mass change of the particle (dmdt) is set to zero, you will have to add your source here. Unit of dmdt is kg/s.
#include "udf.h"
DEFINE_DPM_BC(udf_reflect,p,t,f,f_normal,dim)
{
real dmdt;
/* call standard reflection law */
Reflect_Particle(p,f_normal,dim,f,t);
if(P_CURRENT_LAW(p) == DPM_LAW_VAPORIZATION)
{
dmdt =0.;
P_MASS(p) -= dmdt*P_DT(p);
P_DIAM(p) = pow(P_MASS(p)*6./(P_RHO(p)*M_PI),1./3.);
}
return PATH_ACTIVE;
}
Hope it helps, RoM
Allan Walsh
January 18, 2006 15:53
Re: Pls Help on DPM BC Partial Evaporation
There are several ways to do this. I assume that you are using a variation of the Define_DPM_BC macro for changing the drop to a "smaller" one?
If you are keeping track of the drop mass, and the mass of the second phase represented the drop, you can use this variable to represent a heat sink. What I have been doing is defining the product of evaporation to be a liquid - if it is water, then have a species for water vapor and one for liquid water. You can directly add the mass of liquid evaporated to the cell storage variable C_Storage_R(thread, cell,...etc. Then in the species transport model, have the liquid species go to the gasesous species with minimal mixing or kinetic limations. Specifying the correct HOF for species will allow Fluent to take care of enthalpy.
Alternatively, I have directly added the latent heat of vaporization to the storage variable for sensible enthalpy. Look in the dpm.h header file for these variables.
I had planned to use the define source macro at one time, but things seem to work out fine with the more direct approach.
Plan on spending lots of time looking at the sum of volume sources and mass&energy balances as you debug you udf's.
All times are GMT -4. The time now is
09:03
. | http://www.cfd-online.com/Forums/fluent/39239-pls-help-dpm-bc-partial-evaporation-print.html | CC-MAIN-2014-23 | refinedweb | 704 | 62.68 |
Sample CSE8A midterm Multiple Choice (circle one)
- Ashlyn Cameron
- 2 years ago
- Views:
Transcription
1 Sample midterm Multiple Choice (circle one) (2 pts) Evaluate the following Boolean expressions and indicate whether short-circuiting happened during evaluation: Assume variables with the following names and values: int moos = 49; int quacks = 8; int temp = -5; Expression 1: ((quacks % 3) == 2) && (temp > -5) (moos == (quacks+41)) 1. The Boolean expression above evaluates to which? true false 2. In the evaluation of that Boolean expression, did ANY short-circuiting of evaluation occur? YES NO 3. (1pt) What does the solitary. stand for in the Unix command below? Choose the most precise answer. cp MyStuff/J.java. (a) The current file. (b) The destination file. (c) The home directory. (d) The current directory. (e) A file created for our Lab classes. (f) The directory above the current directory. (g) The directory below the current directory. 4. (2pts) How many lines of output would be printed by the following code? for (int i = 0; i <= 40; i++) for (int j = 0; j < 3; j++) System.out.println("Ha!"); (a) 3 (b) 4 (c) 40 (d) 41 (e) 43 (f) 44 (g) 120 (h) 123 Page 1
2 5. (2pts) What is the result of running the following code? int x = 33; int y = 34; if (++x == y) System.out.println( x: + x + y: + y--); else System.out.println( y: + y-- + x: + x); Program Output: A) x: 34 y: 34 B) y: 34 x: 34 C) x: 33 y: 34 D) y: 34 x: 33 E) x: 34 y: 33 F) y: 33 x: 34 G) x: 33 y: 33 H) y: 33 x: (2pts) Which of the following code fragment prints out all the numbers from [100,0] that are both multiples of 7 and multiples of 2? (a) int i = 100; while (i == 0) if ( i%7==0 && i%2==0 ) (b) int i = 100; while (i >= 0) if ( i%7==0 && i%2==0 ) (c)int i = 100; while(i == 0 && i%7==0 && i%2==0) (d)int i = 100; while(i >= 100 && i%7==0 && i%2==0) System.out.printl(i); (e) int i = 100; while (i == 0) if ( i%7==0 i%2 ==0 ) (f) int i = 100; while (i >= 0) if ( i%7==0 i%2==0 ) (g)int i = 100; while(i == 0 i%7==0 i%2==0) (h)int i = 100; while(i >= 0 i%7==0 i%2==0) Page 2
3 (6pts total) The following code will be used to answer the next few questions. READ IT CAREFULLY. import java.util.scanner; public class Test public static void main(string [] args) Scanner in = new Scanner(System.in); String foo = in.nextline(); if (foo.length() % 2 ==0) if (foo.indexof("!") >=0) System.out.print("Hurray "); else if (foo.charat(foo.length()-1) == '?') System.out.print("What "); System.out.print("Oh, yeah"); else int i = foo.indexof("*"); int j = foo.indexof("*", i+1); System.out.println(foo.substring(i,j)); 7. (2pts): What does this program do when the user inputs: *Java* is Fun A)Hurray Oh, yeah B) Oh, yeah C) What D) What Oh, yeah E) *Java* F) *Java G) is Fun H) * is Fun 8. (2pts): What does this program do when the user inputs: Rocks? A)Hurray Oh, yeah B) Oh, yeah C) What D) What Oh, yeah E) *Java* F) *Java G) is Fun H) * is Fun Page 3
4 9 (2pts): Which of the following statements MOST ACCURATELY AND PRECISELY describes the conditions under which Hurray is printed? A) The length of the entered String is even and the String ends with an exclamation point B) The length of the entered String is even and the String does not end with an exclamation point C) The length of the entered String is even and the String contains an exclamation point D) The length of the entered String is even and the String does NOT contain an exclamation point E) The length of the entered String is odd and the String ends with an exclamation point F) The length of the entered String is odd and the String does not end with an exclamation point G) The length of the entered String is odd and the String contains an exclamation point H) The length of the entered String is odd and the String does NOT contain an exclamation point 10 (2pts). Which of the following codes correctly implement a validation loop to ensure that the user enters a number between 1 and 9 inclusive? MORE THAN ONE ANSWER MAY BE CORRECT. Assume this line has already been executed: Scanner in = new Scanner(System.in); CIRCLE ALL CORRECT ANSWERS FOR FULL POINTS! A) int ans; while (ans > 0 && ans < 10) C) int ans; while (ans <= 0 && ans >= 10) E) int ans; do while(ans <= 0 && ans >= 10); B) int ans; while (ans > 0 ans < 10) D) int ans; while (ans <= 0 ans >= 10) F) int ans; do while(ans <= 0 ans >= 10); Page 4
5 WRITE YOUR ANSWERS ON THIS PAGE 11. (3 pts) If you want to convert Celsius to Fahrenheit, the mathematical equation is Below, write a short, legal, Java code segment to declare appropriate variables (with good style, naming convention, and appropriate type), read in the Celsius value from the user, and calculate and store the value in a variable. 12. (2pts) What is the output produced when the following code is executed? String foo = "Java!"; String bar = ""; for (int i = 0; i < foo.length(); i+=2) bar = foo.charat(i) + bar; System.out.println(bar); Output: 13. (2pts) Write a single line of legal Java code to declare an array of 25 ints named foo. Answer: Page 5
6 WRITE YOUR ANSWER ON THIS PAGE 14. (3pts) Explain what the following code does in plain English sentences. State your answer SUCCINCTLY telling us at a HIGH LEVEL what the code does overall. public static void main(string[] args) double x, y; Scanner in = new Scanner(System.in); x = in.nextdouble(); y = -1.0; while ( x >= 0.0 ) if ( y < x ) y = x; x = in.nextdouble(); System.out.println(y); Page 6
7 WRITE YOUR ANSWER ON THIS PAGE 15. (8pts) Write a program which reads in values from the user until they enter the sentinel The program should calculate and output the average of all the even numbers entered. The program should also count and output how many of the values entered by the user were negative (not including the sentinel value). Style, conciseness, and appropriate use of programming constructs will be graded in conjunction with correctness. import java.util.scanner; public class UserTest public static void main(string[] args) Scanner in = new Scanner(System.in); Page 7
8 USEFUL STRING CLASS METHODS (from pages in the text) int length() Returns the length of the calling object (which is a string) as a value of type int. int indexof(a_string) Returns the index (position) of the first occurrence of the string A_String in the calling object string. Positions are counted 0,1,2, etc. Returns -1 id a A_String is not found. int indexof(a_string, Start) Returns the index (position) of the first occurrence of the string A_String in the calling object string that occurs at or after position Start. Positions are counted 0,1,2, etc. Returns -1 id a A_String is not found. char charat(position) Returns the character in the calling object strong at the Position. Positions are counted 0,1,2, etc. String substring(start,end) Returns the substring of the calling object string starting from position Start through, but not including, position End of the calling object. Positions are counted 0,1,2, etc.
AP Computer Science Static Methods, Strings, User Input
AP Computer Science Static Methods, Strings, User Input Static Methods The Math class contains a special type of methods, called static methods. A static method DOES NOT operate on an object. This is because
J a v a Quiz (Unit 3, Test 0 Practice)
Computer Science S-111a: Intensive Introduction to Computer Science Using Java Handout #11 Your Name Teaching Fellow J a v a Quiz (Unit 3, Test 0 Practice) Multiple-choice questions are worth 2 points
CSE 1223: Introduction to Computer Programming in Java Chapter 2 Java Fundamentals
CSE 1223: Introduction to Computer Programming in Java Chapter 2 Java Fundamentals 1 Recall From Last Time: Java Program import java.util.scanner; public class EggBasket { public static void main(string[]:
Introduction to Java
Introduction to Java The HelloWorld program Primitive data types Assignment and arithmetic operations User input Conditional statements Looping Arrays CSA0011 Matthew Xuereb 2008 1 Java Overview A high
Section 6 Spring 2013
Print Your Name You may use one page of hand written notes (both sides) and a dictionary. No i-phones, calculators or any other type of non-organic computer. Do not take this exam if you are sick. Once
Part I. Multiple Choice Questions (2 points each):
Part I. Multiple Choice Questions (2 points each): 1. Which of the following is NOT a key component of object oriented programming? (a) Inheritance (b) Encapsulation (c) Polymorphism (d) Parallelism ******
Intro to Programming in Java Practice Midterm
600.107 Intro to Programming in Java Practice Midterm This test is closed book/notes. SHORT ANSWER SECTION [18 points total] 1) TRUE/FALSE - Please circle your choice: Tr for true, Fa for false. [1 point
JAVA ARRAY EXAMPLE PDF
JAVA ARRAY EXAMPLE PDF Created By: Umar Farooque Khan 1 Java array example for interview pdf Program No: 01 Print Java Array Example using for loop package ptutorial; public class PrintArray { public static
CS170 Lab 11 Abstract Data Types & Objects
CS170 Lab 11 Abstract Data Types & Objects Introduction: Abstract Data Type (ADT) An abstract data type is commonly known as a class of objects An abstract data type in a program is used to represent (the
As activity directory at Lake LazyDays Resort, it is your job to suggest appropriate activities to guests based on the weather:
Chapter 5: Conditionals and Loops Lab Exercises Activities at Lake LazyDays As activity directory at Lake LazyDays Resort, it is your job to suggest appropriate activities to guests based on the weather:
COUNTING LOOPS AND ACCUMULATORS
COUNTING LOOPS AND ACCUMULATORS Two very important looping idioms are counting loops and accumulators. A counting loop uses a variable, called the loop control variable, to keep count of how many cycles
Introduction to Computer Programming, Spring Term 2014 Practice Assignment 3 Discussion 15.3.2014-20.3.2014
German University in Cairo Media Engineering and Technology Prof. Dr. Slim Abdennadher Dr. Ahmed Gamal Introduction to Computer Programming, Spring Term 2014 Practice Assignment 3 Discussion 15.3.2014-20.3.2014
CompSci
Topic 11 Scanner object, conditional execution
Topic 11 Scanner object, conditional execution "There are only two kinds of programming languages: those people always [complain] about and those nobody uses." Bjarne Stroustroup, creator of C++ Copyright
Iteration CHAPTER 6. Topic Summary
CHAPTER 6 Iteration TOPIC OUTLINE 6.1 while Loops 6.2 for Loops 6.3 Nested Loops 6.4 Off-by-1 Errors 6.5 Random Numbers and Simulations 6.6 Loop Invariants (AB only) Topic Summary 6.1 while Loops Many
Homework/Program #5 Solutions
Homework/Program #5 Solutions Problem #1 (20 points) Using the standard Java Scanner class. Look at as an exampleof using the
Chapter 2 Introduction to Java programming
Chapter 2 Introduction to Java programming 1 Keywords boolean if interface class true char else package volatile false byte final switch while throws float private case return native void protected break
IRA EXAMPLES. This topic has two examples showing the calculation of the future value an IRA (Individual Retirement Account).
IRA EXAMPLES This topic has two examples showing the calculation of the future value an IRA (Individual Retirement Account). Definite Counting Loop Example IRA After x Years This first example illustrates
Chapter 3. Input and output. 3.1 The System class
Chapter 3 Input and output The programs we ve looked at so far just display messages, which doesn t involve a lot of real computation. This chapter will show you how to read input from the keyboard, use
Basics of Java Programming Input and the Scanner class
Basics of Java Programming Input and the Scanner class CSC 1051 Algorithms and Data Structures I Dr. Mary-Angela Papalaskari Department of Computing Sciences Villanova University Course website:
CSE 8B Midterm Fall 2015
Name Signature Tutor Student ID CSE 8B Midterm Fall 2015 Page 1 (XX points) Page 2 (XX points) Page 3 (XX points) Page 4 (XX points) Page 5 (XX points) Total (XX points) 1. What is the Big-O complexity
CS 106 Introduction to Computer Science I
CS 106 Introduction to Computer Science I 01 / 21 / 2014 Instructor: Michael Eckmann Today s Topics Introduction Homework assignment Review the syllabus Review the policies on academic dishonesty and improper
Java How to Program, 9/e
Java How to Program, 9/e Education, Inc. All Rights Reserved. 1 Any computing problem can be solved by executing a series of actions in a specific order. An algorithm is a procedure for solving a problem
Q2: Which of the following are valid Java identifiers? If not explain why
Java Programming 1 (Revision) Name: Section#: ID: Q1: True/false 1. A Java identifier can start with a digit. (F) cannot 2. Hello, HELLO, and hello are considered as different identifiers. (T) 3. The name
LOOPS CHAPTER CHAPTER GOALS
jfe_ch04_7.fm Page 139 Friday, May 8, 2009 2:45 PM LOOPS CHAPTER 4 CHAPTER GOALS To learn about while, for, and do loops To become familiar with common loop algorithms To understand nested loops To implement
Chapter 2 Elementary Programming
Chapter 2 Elementary Programming 2.1 Introduction You will learn elementary programming using Java primitive data types and related subjects, such as variables, constants, operators, expressions, and input
Introduction to Java. CS 3: Computer Programming in Java
Introduction to Java CS 3: Computer Programming in Java Objectives Begin with primitive data types Create a main class with helper methods Learn how to call built-in class methods and instance methods
Introduction to Programming
Introduction to Programming Lecturer: Steve Maybank Department of Computer Science and Information Systems sjmaybank@dcs.bbk.ac.uk Spring 2015 Week 2b: Review of Week 1, Variables 16 January 2015 Birkbeck
CSE 142, Spring 2009 Midterm Exam Answer Key
CSE 142, Spring 2009 Midterm Exam Answer Key 1 of 9 1. Expressions For each expression in the left-hand column, indicate its value in the right-hand column. Be sure to list a constant of appropriate type
Program Elements. Notes. Exercises CHAPTER 3
CHAPTER 3 Program Elements Notes Chapter 3 introduces the program elements that are the underlying constructs used inside an object to define the services it contributes to a program. Without these constructs,
Lecture Set 2: Starting Java
Lecture Set 2: Starting Java 1. Java Concepts 2. Java Programming Basics 3. User output 4. Variables and types 5. Expressions 6. User input 7. Uninitialized Variables CMSC 131 - Lecture Outlines - set
CSCE 111 Exam 1 TRUE/FALSE
CSCE 111 Exam 1 FORM B TRUE/FALSE 1. Java runs differently on different CPU architectures. F 2. A declared variable is always visible to the entire method in which it is declared. F 3. Because the operator
AP Computer Science Java Subset
APPENDIX A AP Computer Science Java Subset The AP Java subset is intended to outline the features of Java that may appear on the AP Computer Science A Exam. The AP Java subset is NOT intended as an overall
Java iteration statements
Java iteration statements Iteration statements are statements which appear in the source code only once, but it execute many times. Such kind of statements are called loops. Almost all the programming
Building Java Programs
Building Java Programs Chapter 4 Lecture 4-1: Scanner; if/else reading: 3.3 3.4, 4.1 Interactive Programs with Scanner reading: 3.3-3.4 1 Interactive programs We have written programs that print console
CS 101: Practice Questions for Test 2 SOLUTIONS
CS 101: Practice Questions for Test 2 SOLUTIONS 1. Write a Java application which prompts the user to enter integers from the screen until the end of file character is entered, computes the sum of
Java Review (Essentials of Java for Hadoop)
Java Review (Essentials of Java for Hadoop) Have You Joined Our LinkedIn Group? What is Java? Java JRE - Java is not just a programming language but it is a complete platform for object oriented programming.
Part I:( Time: 90 minutes, 30 Points)
Qassim University Deanship of Educational Services Preparatory Year Program- Computer Science Unit Final Exam - 1434/1435 CSC111 Time: 2 Hours + 10 Minutes 1 MG Student name: Select the correct choice:
Software and Programming 1
Software and Programming 1 Lab 3: Strings & Conditional Statements 20 January 2016 SP1-Lab3.ppt Tobi Brodie (Tobi@dcs.bbk.ac.uk) 1 Lab Objectives This session we are concentrating on Strings and conditional).
Continuous Integration Part 2
1 Continuous Integration Part 2 This blog post is a follow up to my blog post Continuous Integration (CI), in which I described how to execute test cases in Code Tester (CT) in a CI environment. What I
15-214: Principles of Software Construction 8 th March 2012
15-214 Midterm Exam Andrew ID: SOLUTIONS 1 / 13 15-214: Principles of Software Construction 8 th March 2012 Name: SOLUTIONS Recitation Section (or Time): Instructions: Make sure that your exam is not missing
Using Files as Input/Output in Java 5.0 Applications
Using Files as Input/Output in Java 5.0 Applications The goal of this module is to present enough information about files to allow you to write applications in Java that fetch their input from a file instead
Java Basics: Data Types, Variables, and Loops
Java Basics: Data Types, Variables, and Loops If debugging is the process of removing software bugs, then programming must be the process of putting them in. - Edsger Dijkstra Plan for the Day Variables
Example of a Java program
Example of a Java program class SomeNumbers static int square (int x) return x*x; public static void main (String[] args) int n=20; if (args.length > 0) // change default n = Integer.parseInt(args[0]);
Comp 248 Introduction to Programming
Comp 248 Introduction to Programming Chapter 2 - Console Input & Output Dr. Aiman Hanna Department of Computer Science & Software Engineering Concordia University, Montreal, Canada These slides has been
Introduction to Java Applications. 2005 Pearson Education, Inc. All rights reserved.
1 2 Introduction to Java Applications 2.2 First Program in Java: Printing a Line of Text 2 Application Executes when you use the java command to launch the Java Virtual Machine (JVM) Sample program Displays
Visual Basic Programming. An Introduction
Visual Basic Programming An Introduction Why Visual Basic? Programming for the Windows User Interface is extremely complicated. Other Graphical User Interfaces (GUI) are no better. Visual Basic provides
Arrays. Introduction. Chapter 7
CH07 p375-436 1/30/07 1:02 PM Page 375 Chapter 7 Arrays Introduction The sequential nature of files severely limits the number of interesting things you can easily do with them.the algorithms we have examined
Data Structures Lecture 1
Fall 2015 Fang Yu Software Security Lab. Dept. Management Information Systems, National Chengchi University Data Structures Lecture 1 A brief review of Java programming Popularity of Programming Languages
1. Writing Simple Classes:
The University of Melbourne Department of Computer Science and Software Engineering 433-254 Software Design Semester 2, 2003 Answers for Lab 2 Week 3 1. Writing Simple Classes: a) In Java systems, there
Install Java Development Kit (JDK) 1.8
CS 259: Data Structures with Java Hello World with the IntelliJ IDE Instructor: Joel Castellanos e-mail: joel.unm.edu Web: Office: Farris Engineering Center 319 8/19/2015 Install
Beginning Programming (Java) Test 1/Version 1 CMSC 1513 Spring 2013
1. Record your answers on SCANTRON form 882-E (It is green!) 2. Print your name on your scantron in the space labeled NAME. 3. Print CMSC 1513 in the space labeled SUBJECT. 4. Print the date, 2-14-2013,
Using Two-Dimensional Arrays
Using Two-Dimensional Arrays Great news! What used to be the old one-floor Java Motel has just been renovated! The new, five-floor Java Hotel features a free continental breakfast and, at absolutely no
Chapter 2 Basics of Scanning and Conventional Programming in Java
Chapter 2 Basics of Scanning and Conventional Programming in Java In this chapter, we will introduce you to an initial set of Java features, the equivalent of which you should have seen in your CS-1 class;
Interactive Applications (CLI) and Math
Interactive Applications (CLI) and Math Interactive Applications Command Line Interfaces The Math Class Example: Solving Quadratic Equations Example: Factoring the Solution Reading for this class: L&L,
Object-Oriented Programming in Java
CSCI/CMPE 3326 Object-Oriented Programming in Java Class, object, member field and method, final constant, format specifier, file I/O Dongchul Kim Department of Computer Science University of Texas Rio
Statements and Control Flow
Contents 1. Introduction 2. Types and Variables 3. Statements and Control Flow 4. Reading Input 5. Classes and Objects 6. Arrays 7. Methods 8. Scope and Lifetime 9. Utility classes 10. Introduction to
Building Java Programs
Building Java Programs Chapter 3 Lecture 3-3: Interactive Programs w/ Scanner reading: 3.3-3.4 self-check: #16-19 exercises: #11 videos: Ch. 3 #4 Interactive programs We have written programs that print
CS 307 Midterm 1 Fall 2009
Points off 1 2 3A 3B 4A 4B Total off Net Score CS 307 Midterm 1 Fall 2009 Your Name Your UTEID Circle yours TA s name: Oswaldo Rashid Swati Instructions: 1. Please turn off or silence your cell phones.
For live Java EE training, please see training courses
2012 Marty Hall Basic Java Syntax Originals of Slides and Source Code for Examples: com/course-materials/java html 3 Customized Java | http://docplayer.net/18043243-Sample-cse8a-midterm-multiple-choice-circle-one.html | CC-MAIN-2018-43 | refinedweb | 3,669 | 52.9 |
SvelteKit is the upcoming full-stack application framework for Svelte, the UI framework that builds your app at compile time to produce smaller, faster JavaScript. While SvelteKit allows you to write server-side logic using endpoints, it's up to you how you want to persist your application's data.
In this post, I will show how to store data using Redis in a SvelteKit application. We'll use Redis to cache movie API responses and display a random movie, using data from The Movie Database (TMDB) API.
You will either need a Redis connection string or run Redis locally to follow along with the demo. If you don't already have a Redis instance, I recommend Upstash. Like SvelteKit, it's optimized for serverless applications and is free if you aren't making a lot of requests (the cap is 10k/day at time of writing). Regardless of where you get your Redis instance, you should make sure it is located close to where your application is deployed to reduce latency.
Prerequisites
- Basic familiarity with SvelteKit (e.g. pages vs endpoints, loading, retrieving query and params for a given page)
- A TMDB API key and Redis instance (e.g. on Upstash) if you want to run or deploy the demo
Starter overview
Clone the starter repo. The
main branch has the end result, so checkout the
initial branch to follow along with this post. If you want to push your changes, fork the repo first.
git clone
cd movie-search-redis
git checkout initial
This is a small SvelteKit application that allows searching for movies and viewing their details using the TMDB API. It uses TypeScript to make interacting with the API responses easier, but this is not a requirement to use Redis or SvelteKit. The following routes already exist (corresponding to the files in
src/routes):
/renders the home page
/searchrenders a list of search results. It takes
queryand
pageas query params, e.g.
?query=star wars&page=3shows the third page of results for "Star Wars"
/search.jsonis a server endpoint that queries the TMDB API and returns the list of results. It takes the same query parameters as
/search
/movie/[id]renders details for a movie with the given ID, e.g.
/movie/11
/movie/[id].jsonis a server endpoint that returns movie details from the TMDB API. Since the TMDB response returns more data than we use on the page, we adapt the response to return a subset of the data.
You can see the demo running on Netlify.
Note that the TMDB API calls only happen in the server endpoints. This is so our API key is not exposed to the client.
To run the demo locally, create a
.env file in the root of the project and add your TMDB API key and Redis connection string (sample below). Then run
npm install to install dependencies and run
npm run dev to run the app.
TMDB_API_KEY=KEY_GOES_HERE
REDIS_CONNECTION=CONNECTION_GOES_HERE
At runtime, we can access these values using
process.env['TMDB_API_KEY'] or
process.env['REDIS_CONNECTION']. The values are read from the
.env file using dotenv in
hooks.ts.
Caching the API response in Redis
One improvement we can make to the existing project is to cache the API response for an individual movie in Redis. Currently, the app makes a request to the TMDB API every time a movie page is loaded. When we first make a request, we can store the API response in Redis so that we don't need to keep requesting the data from TMDB.
While the TMDB API is fast and doesn't necessarily need to be cached, this can be a useful technique for APIs that take a while to respond or that have request limits. It also provides a level of resiliency if the API were to go down.
We've already added ioredis as a dependency. This is a Redis client for Node that will help us interact with our Redis database.
Create the file
src/lib/redis.ts. This file initializes the Redis client and exports it for use by other functions. It also contains some helper functions for getting keys. Add the code below to the file.
import Redis from "ioredis";
const connectionString = process.env["REDIS_CONNECTION"];
export const MOVIE_IDS_KEY = "movie_ids";
/** Return the key used to store movie details for a given ID in Redis */
export function getMovieKey(id): string {
return `movie:${id}`;
}
export default connectionString ? new Redis(connectionString) : new Redis();
Note that this implementation creates a single Redis client per serverless instance. Another option is to create and close a Redis connection per request. Upstash also has a REST API that does not require you to initialize a Redis connection. The best option depends on your app's latency and memory requirements.
Go to the
/src/routes/movie/[id].json.ts file. Import the Redis client and the
getMovieKey function from
redis.ts.
import redis, { getMovieKey } from "$lib/redis";
Take a look at the
getMovieDetailsFromApi function. It calls the TMDB API to get movie details and credits and returns them. Before returning the data, we want to store it in our Redis cache so that next time we retrieve the cached version instead of calling the API. Add a new
cacheMovieResponse function to the file to cache the data in Redis.
async function cacheMovieResponse(id: number, movie, credits) {
try {
const cache: MovieDetails = {
movie,
credits,
};
// store movie response for 24 hours
await redis.set(getMovieKey(id), JSON.stringify(cache), "EX", 24 * 60 * 60);
} catch (e) {
console.log("Unable to cache", id, e);
}
}
Each movie ID will be stored under a different key. For example, if we were retrieving information on the movie with ID 11, the key would be
movie:11. The last two arguments to
redis.set say that we should only cache the data for 24 hours (86400 seconds). We shouldn't cache the data forever—it violates the terms of use, and the data will eventually become stale.
Note that you need to stringify the JS object before you can store it in the cache. We also catch any exceptions thrown during this operation to make our endpoint more resilient. If we can't cache the data, we should still return the data from the API instead of throwing an unhandled exception.
We can now use the new
cacheMovieResponse function inside
getMovieDetailsFromApi to store the API response in the cache.
async function getMovieDetailsFromApi(id: number) {
const [movieResponse, creditsResponse] = await Promise.all([
getMovieDetails(id),
getCredits(id),
]);
if (movieResponse.ok) {
const movie = await movieResponse.json();
const credits = await creditsResponse.json();
// add this line
await cacheMovieResponse(id, movie, credits);
return {
movie,
credits,
};
}
return {
status: movieResponse.status,
};
}
Now we have stored data in the cache, but we still need to retrieve the cached data. Let's add a function to read the movie details from the cache.
async function getMovieDetailsFromCache(
id: number
): Promise<MovieDetails | Record<string, never>> {
try {
const cached: string = await redis.get(getMovieKey(id));
if (cached) {
const parsed: MovieDetails = JSON.parse(cached);
console.log(`Found ${id} in cache`);
return parsed;
}
} catch (e) {
console.log("Unable to retrieve from cache", id, e);
}
return {};
}
Because the data was stored as a string, we need to parse it into an object to make it usable. Similar to the previous function, we log any exceptions, but do not allow them to escape the caching function. We can always fall back to retrieving data from the API.
Finally, we can call our caching function in the main request handler. If we find the data in the cache, we return it right away; otherwise, we read from the API as before.
export const get: RequestHandler = async function ({ params }) {
const { id: rawId } = params;
// validate and sanitize the input
const id = parseInt(rawId);
if (isNaN(id)) {
return {
status: 400
};
}
// add these lines
const { movie, credits } = await getMovieDetailsFromCache(id);
if (movie && credits) {
return {
body: adaptResponse(movie, credits)
};
}
// fallback to the API
const result = await getMovieDetailsFromApi(id);
You can see the final code for this endpoint in the demo repo.
With these changes, try navigating to a movie's page. When you refresh the page, you should see "Found id in cache" in the console log, indicating that we successfully stored and retrieved that movie from the cache.
Retrieving a random movie
Redis can do more than just caching API responses. Let's look at how we can build a route that will redirect the user to a random movie.
This isn't as simple as picking a random number between 1 and 300000 and using that as the movie ID. Not every number in that range will correspond to a movie—for instance, there is no movie with an ID of 1 or 1000. It would also be tricky to keep track of what the maximum possible ID is, since that will always be changing as new movies are added. Instead, we'll select random movies using a two step process:
- When a search query is performed, place all the IDs returned in a Redis Set.
- When the
/movie/randomroute is requested, retrieve a random member of that set and redirect to the corresponding movie detail page.
The possible random movies returned will start small, but grow larger as more searches are performed.
To populate the random set, update
/src/routes/search.json.ts to the following.
import type { RequestHandler } from "@sveltejs/kit";
import type { SearchResponse } from "$lib/types/tmdb";
import redis, { MOVIE_IDS_KEY } from "$lib/redis";
const VOTE_THRESHOLD = 20;
export const get: RequestHandler = async function ({ query }) {
const searchQuery = query.get("query");
const page = query.get("page") ?? 1;
const response = await fetch(
`{process.env["TMDB_API_KEY"]}&page=${page}&include_adult=false&query=${searchQuery}`
);
const parsed: SearchResponse = await response.json();
// add these lines
const filteredMovies = parsed.results.filter(
(movie) => movie.vote_count >= VOTE_THRESHOLD
);
if (filteredMovies.length > 0) {
try {
await redis.sadd(MOVIE_IDS_KEY, ...filteredMovies.map((r) => r.id));
} catch (e) {
console.log(e);
}
}
return {
body: parsed,
};
};
Note that we aren't adding every movie returned to the set. I chose to filter out movies that don't have many votes, since those movies are less likely to be vetted by users. You can adjust
VOTE_THRESHOLD to your liking.
With this change, searching for movies will start populating the set of movie IDs. Perform some searches to add some IDs to the set. For example:
After performing a few searches, you should have a set of random IDs stored in Redis. Let's create routes for the
/movie/random endpoint and page.
src/routes/movie/random.json.ts
import type { RequestHandler } from "@sveltejs/kit";
import redis, { MOVIE_IDS_KEY } from "$lib/redis";
export const get: RequestHandler = async function () {
const randomId = await redis.srandmember(MOVIE_IDS_KEY);
return {
body: randomId,
};
};
This server endpoint uses SRANDMEMBER to pick a random ID from the movie ID set.
src/routes/movie/random.svelte
<script context="module" lang="ts">
import type { Load } from "@sveltejs/kit";
export const load: Load = async function ({ fetch }) {
const result = await fetch(`/movie/random.json`);
if (result.ok) {
const id = await result.json();
return {
redirect: `/movie/${id}`,
status: 303,
};
}
return {
status: result.status,
error: new Error("Could not retrieve random id"),
};
};
</script>
The corresponding Svelte page only needs a load function since it does not render any UI. It calls the server endpoint we just added and redirects to the corresponding movie page.
That's all there is to it! Now, navigate to. You should be automatically redirected to a random movie from the previous searches you performed. To make accessing this route easier, you can add it to the navigation in
/src/routes/__layout.svelte
<header>
<nav>
<a href="/">Search</a>
<a href="/movie/random">Random</a>
</nav>
</header>
You can see this working in the live demo.
Wrapping up
There are many more ways to use Redis, but I hope this post gave you a good understanding of the basics of integrating Redis in a SvelteKit app. You can see the final code on GitHub and the live demo on Netlify.
Have any questions? Reach out on Twitter. You can also find my other writing about Svelte on my blog. | https://blog.upstash.com/svelte-with-serverless-redis | CC-MAIN-2022-05 | refinedweb | 2,006 | 65.32 |
perf-probe - Man Page
Define new dynamic tracepoints
Synopsis
This command defines dynamic tracepoint events, by symbol and registers without debuginfo, or by C expressions (C line numbers, C function names, and C local variables) with debuginfo.
Options
- -k, --vmlinux=PATH
Specify vmlinux path which has debuginfo (Dwarf binary). Only when using this with --definition, you can give an offline vmlinux file.
- ). Can not use with -q.
- -q, --quiet
Be quiet (do not show any messages including errors). Can not use with -v.
- -a, --add=
Define a probe event (see Probe Syntax for detail).
- -d, --del=
Delete probe events. This accepts glob wildcards(*, ?) and character classes(e.g. [a-z], [!A-Z]).
- -l, --list[=[GROUP:]EVENT]
List up current probe events. This can also accept filtering patterns of event names. When this is used with --cache, perf shows all cached probes instead of the live probes.
- .
- --no-inlines
(Only for --add) Search only for non-inlined functions. The functions which do not have instances are ignored.
- -F, --funcs[=FILTER]
Show available functions in given module or kernel. With -x/--exec, can also list functions in a user space executable / shared library. This also can accept a FILTER rule argument.
- -D, --definition=
Show trace-event definition converted from given probe-event instead of write it into tracing/[k,u]probe_events.
- -.
- --cache
(With --add) Cache the probes. Any events which successfully added are also stored in the cache file. (With --list) Show cached probes. (With --del) Remove cached probes.
- --max-probes=NUM
Set the maximum number of probe points for an event. Default is 128.
--target-ns=PID: Obtain mount namespace information from the target pid. This is used when creating a uprobe for a process that resides in a different mount namespace from the perf(1) utility.
- -x, --exec=PATH
Specify path to the executable or shared library file for user space tracing. Can also be used with --funcs option.
- --demangle
Demangle application symbols. --no-demangle is also available for disabling demangling.
- --demangle-kernel
Demangle kernel symbols. --no-demangle-kernel is also available for disabling kernel demangling.. FUNC specifies a probed function name, and it may have one of the following options; +OFFS is the offset from function entry address in bytes, :RLN is the relative-line number from function entry line, and %return means that it probes function return. And ;PTN means lazy matching pattern (see Lazy Matching). Note that ;PTN must be the end of the probe point definition. In addition, @SRC specifies a source file which has that function. It is also possible to specify a probe point by the source line number or lazy matching by using SRC:ALN or SRC;PTN syntax, where SRC is the source file path, :ALN is the line number and ;PTN is the lazy matching pattern. ARG specifies the arguments of this probe point, (see Probe Argument).
Line range is described by following syntax.
"FUNC[@SRC][:RLN[+NUM|-RLN2]]|SRC[:ALN[+NUM|-ALN2]]"
FUNC specifies the function name of showing lines. RLN is the start line number from function entry line, and RLN2 is the end line number. As same as probe syntax, SRC means the source file path, ALN is start line number, and ALN2 is end line number in the file. It is also possible to specify how many lines to show by using NUM. Moreover,
The lazy line matching is similar to glob matching but ignoring spaces in both of pattern and target. So this accepts wildcards('*', '?') and character classes(e.g. [a-z], [!A-Z]).
e.g. a=* can matches a=b, a = b, a == b and so on.
This provides some sort of flexibility and robustness to probe point definitions against minor code changes. For example, actual 10th line of schedule() can be moved easily by modifying schedule(), but the same line matching rq=cpu_rq* may still exist in the function.)
Filter Pattern
The filter pattern is a glob matching pattern(s) to filter variables. In addition, you can use "!" for specifying filter-out rule. You also can give several rules combined with "&" or "|", and fold those rules as one rule by using "(" ")".
e.g. With --filter "foo* | bar*", perf probe -V shows variables which start with "foo" or "bar". With --filter "!foo* & *bar", perf probe -V shows variables which don’t'
See Also
perf-trace(1), perf-record(1), perf-buildid-cache(1)
Referenced By
perf-buildid-cache(1). | https://www.mankier.com/1/perf-probe | CC-MAIN-2021-17 | refinedweb | 734 | 67.65 |
[
]
John Kinsella updated INFRA-5195:
---------------------------------
Comment: was deleted
(was: Shane (from trademarks@) gave us blessing to use
(pasting email below for the record, I had previously CCed Daniel on it).
Any thoughts on timing on when INFA can work on this would be appreciated.
On Oct 19, 2012, at 5:11 PM, Shane Curcuru <asf@shanecurcuru.org> wrote:
Thanks for the patience and thoughts from a number of people on this one. There are two issues
from the branding point of view:
1- Apache projects should live on *.apache.org domain names. I've commented in INFRA-5195
to note this. So planet.cloudstack.org is not appropriate. Using a consistent project/product
and domain name in the form of "Apache Foo / foo.apache.org" is a fundamental part of ASF
branding.
Personally I like planet.apache.org/cloudstack, but the details of whatever name format on
*.apache.org you want is up to the PPMC and Infra to figure out.
2- I'm presuming that this is a feed that (P)PMC members will actively curate, so that only
"quality" feeds are being included - things that normal users of Apache Cloudstack would be
interested in reading (in general, I mean we all include blog posts of our cats or kids now
and then!). But only a committer can actually directly add a new feed, not just anyone.
I think this is OK on (for example) planet.apache.org/cloudstack AS LONG AS there's a disclaimer
on the aggregation page that the individual feeds are available under separate licenses.
As long as we do due diligence to let users know that various feed contents come from $random
people, and are not necessarily under the Apache license, it should be fine - even if some
feeds are from non-committers.
Heck, an auto-icon that differentiates committer posts from non-committer posts would be really
cute (but not required).
Does that make sense?
----
(Discussion) Licensing and submissions and feeds, oh my! At the higher level, and important
concept in ASF policies is that we license *all* of our software under the Apache license.
The principle of least surprise is important: when someone grabs code from any *.apache.org
domain, they can expect that it will be available under the Apache License unless it has BIG
RED SCREAMING LETTERS that obviously warns them otherwise.
This is easy with code: only iCLA holders can checkin, and even patches from outsiders should
be obviously "Contribution" as defined in the AL2.0. It's usually easy with websites, since
they're typically in SVN, or are in a wiki that requires signup that again assures us the
submitter knows it's a "Contribution".
Aggregating feeds is different, since there's not necessarily a purposeful donation from the
author of the feed. I.e. an author may say today that they use CC-BY on some post - but that
doesn't necessarily mean the whole feed will always be that. Likewise, if PMC members add
feeds of non-committers, it's not necessarily clear that the original feed's posts' author
is intending all it's contents to be a "Contribution".
That's not to say we can't make this work, just an explanation of why this is an important
thing to label and make clear to users.
- Shane Curcuru
VP, Brand Management
The Apache Software Foundation
)
> Create a planet instance to host.**.apache.org
> -----------------------------------------------------------------------
>
> Key: INFRA-5195
> URL:
> Project: Infrastructure
> Issue Type: Task
> Security Level: public(Regular issues)
> Components: VMWare
> Reporter: John Kinsella
>
> Greetings. The CloudStack community would like to set up a "planet" blog aggregator.
Due to one of our goals of allowing feeds from non-committers, we intend to point planet.cloudstack.org
to the server, so as to not use the apache.org namespace.
> Based off an irc descussion in #asfinfra last week, we'd like to host this in a VM on
ASF infrastructure. We held a VOTE on the topic to move forward in this direction. The results
(+7) are in the email thread at the URL below.
>
> Happy to provide any additional details that are needed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: | http://mail-archives.apache.org/mod_mbox/www-infrastructure-issues/201211.mbox/%3C1729996698.69505.1352136972153.JavaMail.jiratomcat@arcas%3E | CC-MAIN-2017-39 | refinedweb | 713 | 63.49 |
. While this may present a superficially simpler start-up process for new users creating their first application, it will create the impression that TAPs are something esoteric that you shouldn't necessarily be using if you're just building a canonical Twisted server. I'm afraid that I've already created that impression, though. In going through various projects I'm aware of that use Twisted, very few of them use TAPs. Sadly, a few of the projects that I tried which use Twisted don't work at all! (I'm not listing those here.) It seems like this framework is more popular for internal development than open source work. The two public projects that I know of which use TAPs well are: * Bannerfish: * CVSToys: Both of these are written by Twisted development team members that I have gotten to scream at personally :-). * The Hep Message Server: No use of TAPs or twistd whatsoever, it uses its own start-script. Accordingly, the "daemon" responds badly to signals, and doesn't daemonize on UNIX. On the other hand, this may not just be a case of poor advocacy. There is also an INI file, no use of distutils, and the package structure is scattered across the top level namespace with unique and distinctive names like "servers", "messaging", and "agents". Abe has produced a nice message server demo here but appears singularly unconcerned with integration of any kind :). * apt-proxy v2: This project uses a collection of scripts which can either be used as standalone daemons or arguments to the "--python" option to twistd. It's understandable given the low-level platform-specific nature of this code, and they still get about half the benefits of twistd. * khashmir: I can't figure out what's going on here. I _think_ from the README that you're still expected to type python expressions at a prompt and get results. Given that there are no releases of this yet it's probably premature to guess whether taps will be used or not ;-). There are two conclusions I can draw from this brief survey: 1. Not very many mature projects use Twisted yet. 2. Everybody hates TAPs unless I've personally explained why they shouldn't. I get the impression that both conclusions are valid. Not much can be done about #1 except to stay the course. If you are currently writing tap-less code, has this thread convinced you to take another look at plugins? Or at least wait and see what the next iteration of COIL will be like? Another thing that I notice here is that Twisted's internal TAP plugins need to provide slightly more expansive descriptions of what they do, for the browsing functionality I've described to be useful. For example: glyph at zelda:~% mktap --help portforward [ ... ] Port Forwarder. -- | <`'> | Glyph Lefkowitz: Traveling Sorcerer | | < _/ > | Lead Developer, the Twisted project | | < ___/ > | | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : | http://twistedmatrix.com/pipermail/twisted-python/2003-February/002840.html | CC-MAIN-2015-27 | refinedweb | 503 | 62.68 |
Hi there fellas. Today in this post i am going to show you how we can use python to make bulk urls tiny. Let me clear that we are not making a url shortening SERVICE instead what we are going to do is that we are going to unofficially use the tinyurl api (Tinyurl is a url shortening service). There’s not any official python api released by tinyurl. So lets begin with this:
The First Step :
So first of all we have to do some imports. We have to import 7 libraries to make this work.
We could have imported just one library to make this work but in order to make a good url shortener we have to import these seven libraries.
The Second Step :
So now we have to start making a method that will handle the url shortening. Watch the code closely because it is self explanatory but however i will explain it later.
def make_tiny(url): request_url = ('?' + urlencode({'url':url})) with contextlib.closing(urlopen(request_url)) as response: return response.read().decode('utf-8')
Did you manage to understand the code ? Let me explain it to the beginners. First of all we define a
make_tiny function which takes a url as an input. After that we start defining the working of our function. The
url_encode takes a url as an input and encodes it i.e escapes it. After that we append the escaped url to the end of tinyurl’s api url. Then we open the request_url using urlopen. And lastly we read the response after converting it to utf-8. Why did we convert the response to utf-8 ? The reason for this is that the urlopen function returns a stream of bytes rather than a string so in order to print it and alter it we have to convert it into utf-8. Was that difficult ?
So now the next step is to get the input from the user. For this we are going to use the sys library.
The Third Step :
So lets write the main() function for our little script. Here’s the code for it:
def main(): for tinyurl in map(make_tiny, sys.argv[1:]): print(tinyurl)
So what are we doing here ? We are getting the user input by using sys.argv . We have not limited ourself to only one url as an input instead we are saying that give us as many urls as you want, we will crush them and make them tiny. What sys.argv[1:] does is that it leaves the first two arguments (counting starts from 0) and takes all the rest of the arguments and produces a list of those arguments. For example if you type:
$ python script.py url1 url2 url3
then sys.argv[1:] will leave
python and
script.py and will produce the following list:
[url1,url2,url3]
Wait! what is that map() function over there ? Most beginners will feel confused as most of them have never used map. Map() is a simple way of looping over a list and passing it to a function one by one. The map() function above there is equivalent to :
def main(): urls = sys.argv[1:] for url in urls: tinyurl = make_tiny(url) print tinyurl
I hope the above code example cleared away any confusions about map() function.
The Fourth Step :
Now lets wrap up our code. The only thing left is this :
if __name__ == '__main__': main()
Add this to the end of your code. This tells us whether the script was executed independently from the shell or was it called by another script. This is pretty handy if you want to use this script later in any other project.
Finally :
So here’s the complete script: def make_tiny(url): request_url = ('?' + urlencode({'url':url})) with contextlib.closing(urlopen(request_url)) as response: return response.read().decode('utf-8') def main(): for tinyurl in map(make_tiny, sys.argv[1:]): print(tinyurl) if __name__ == '__main__': main()
Considering that you have saved this script as url_shortener.py you have to run it like this from the shell:
$ python url_shortener.py url1 url2 url3
If you want to save these tinyurls into a txt file then issue this command:
$ python url_shortener.py url1 > urls.txt
I hope you liked today’s post. This script can work on python 2 and python 3 both. It was primarily aimed at two kind of audience. Firstly those who are learning python and want to learn how to make a simple yet useful script and those who want to learn how to make a url shortener in python. Do share your view in the comments bellow and stay tuned for the next post. If you want regular dose of python tips and tutorials delivered to your doorstep then consider following my blog.
You might also like:
* 5 quality screencasts worth watching
* Packaging and distributing your python libraries
* 10 inspirations for your next python project
10 thoughts on “Making a url shortener in python”
I am genuinely glad to read this webpage posts which includes
plenty of helpful information, thanks for providing
these kinds of information.
Very useful lesson! I use python for scientific/engineering computations. Learning how to apply the same set of tools (i.e. Python) to the web is great.
Thanks for the nice tutorial!
awesome
Excellent tutorial…!!!
Perfect explanation of making shorter URL as prospect from the beginner python.Very interesting. Thank you for sharing information and making things simpler.
Thanks for sharing this tutorial. A definite great resource for python beginners looking for general ideas to build his python side projects. Thanks a lot! | https://pythontips.com/2013/08/03/a-url-shortener-in-python/ | CC-MAIN-2018-26 | refinedweb | 935 | 75.81 |
Horizontal join
Project description
Early-stage code for horizontal text joining. That means obeying the line breaks and implicit columns in the given strings, rather than simply appending them linearly.
from hjoin import * from colors import * r = red('this perhaps\nand\nthat') b = blue('and\none\nmore\nthing') g = green('yet\nanother\n') print(hjoin([r, b, g]))
Notes
- This module is not ready for prime time. It’s currently published solely to enable distributed testing (CI pipeline). You shouldn’t use it, depend on it, or expect anything specific from it. Especially don’t expect its API will remain constant.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hjoin-0.2.0.tar.gz (3.7 kB view hashes)
Built Distribution
hjoin-0.2.0-py3-none-any.whl (3.7 kB view hashes) | https://pypi.org/project/hjoin/ | CC-MAIN-2022-05 | refinedweb | 158 | 59.8 |
I tried a little test to investigate the directory situation. I created a
foo/ directory in web server's root directory. I go to my browser and enter:
The index of the directory shows up and the URL is refreshed to:
This is pretty close to what I expected. The trailing slash is necessary if
relative links on the page for 'foo' are going to be correct.
Earlier someone speculated that the server sent a 302 Temporary Redirect to
achieve this. Sounded reasonable, so to see that I then went to the Python
interpreter:
import urllib
f = urllib.open('';)
s = f.read()
s
Turns out that the resulting string is not a redirect at all, but the
contents of the HTML.
So how does my browser know to put the extra / at the end of "foo"? And for
that matter, why does it change the host name to "localhost"?
Unless read() automatically handles the redirects...
-Chuck
Chuck Esterbrook wrote:
> Unless read() automatically handles the redirects...
Bingo. You can get around the automatic redirect by using the URLopener class:
def tryurl(url):
import urllib, pprint
try:
u = urllib.URLopener()
f = u.open(url)
pprint.pprint(f.headers.dict)
print f.read()
except IOError, info:
print 'Exception: ' + str(info)
pprint.pprint(info[3].dict)
>>> tryurl('';)
('http error', 301, 'Moved Permanently', <mimetools.Message instance at 82be30>)
{'connection': 'close',
'content-type': 'text/html; charset=iso-8859-1',
'date': 'Fri, 23 Jun 2000 14:08:28 GMT',
'location': '';,
'server': 'OpenSA/0.20 Apache/1.3.12 (Win32)'}
--
- Geoff Talvola
Parlance Corporation
gtalvola@... | http://sourceforge.net/p/webware/mailman/message/5307174/ | CC-MAIN-2015-11 | refinedweb | 257 | 59.4 |
three of my four Restful Web columns, I've been describing the design
of a REST web service for creating and managing web bookmarks. It's now time
to get down to some coding. The major part of creating such a service is
implementing the method of dispatching: how does an incoming HTTP request
get routed to the right piece of code?
As a quick recap, here is the table summarizing the resources in
our bookmark service. You will notice that the second column,
Representations, now lists the media types of the representations we
will accept at each of our resources. For now we'll assume that
application/xbel+xml is a valid media type, even though it is
not, in fact, registered. IANA maintains a list of the registered
media types. If it's not on that list, it's not really a valid
type. If you want to officially register a media type, the IANA has a
web page for doing
so.
application/xbel+xml
For the simple format that we are using as the representation
of [user]/config, we will use the
media type application/xml. See RFC 3023 and
Mark Pilgrim's XML.com article XML on the Web Has Failed to
learn why we don't use text/xml.
[user]/config
application/xml
text/xml
URI
Representations
Description
/
A list of all the "tags" a user has ever used
The first confusion to get out of the way is MIME versus media. In many discussions of HTTP you will see reference to both
MIME types and media types. What's the difference? MIME stands for
Multipurpose Internet Mail Extensions, which are extensions to RFC 822
that allow the transporting of something besides plain ASCII text. If you are going
to allow other stuff--that is, other media besides plain text--then you will
need to know what type of media it is. Thus RFC 2054 gave birth to MIME
Media-Types. They have spread beyond mail messages--that is, beyond MIME--and that includes HTTP. The list of types is used by both MIME and HTTP, but
that doesn't mean the HTTP
entities are valid RFC 2045 entities--in fact, they aren't.
So where does that leave us? MIME Media-Type is rather awkward, so
it's often shortened to MIME type or media type. For our purposes here, they
are the same
thing.
One of the benefits of using HTTP correctly is that we can
dispatch on a whole range of things. To make the discussion more
concrete, let's look at an example HTTP request:
GET / HTTP/1.1
Host: 127.0.0.1:8080
User-Agent: Mozilla/5.0 (...)
There are three items of interest here. First, the HTTP request method
is GET. Second, the URI is carried in two locations. The path and query
parameters are on the first line of the request. The remainder of
the URI, the domain name of the server, is carried in the Host
header. Third, the media type is carried in the Accept header
because this is a GET request. For other POST or
PUT requests, the
Content-Type header in the request carries the media type of the
entity body.
GET
Host
Accept
PUT
Content-Type
When requests come into our service, we can route them
based on the URI, the method, and the media type. We'll return to
dispatching on the URI and the HTTP method later. The media type is
what we are concentrating on right now. It turns out that dispatching
on media types isn't as simple as it sounds. It's not really
that complicated--we'll be doing it by the end of this
article--but it's not trivial either.
GET
Accept
HEAD
PUT
Content-Type
DELETE
n/a
If an entity is involved in the request--that is, a POST or PUT,
then the media type is contained in the Content-Type header. If the
request is a HEAD or GET, then a list of acceptable media types for
the response is given in the Accept header. That's actually not
true, but I'll discuss the falseness of that claim below. First, let's look
at the Content-Type header. Here is the
definition straight from the HTTP specification (RFC 2616):
HEAD
Content-Type = "Content-Type" ":" media-type
media-type = type "/" subtype *( ";" parameter )
parameter = attribute "=" value
attribute = token
value = token | quoted-string
quoted-string = ( <"> *(qdtext | quoted-pair ) <"> )
qdtext = <any TEXT except <">>
quoted-pair = "\" CHAR
type = token
subtype = token
token = 1*<any CHAR except CTLs or separators>" | "@"
| "," | ";" | ":" | "\" | <">
| "/" | "[" | "]" | "?" | "="
| "{" | "}" | SP | HT
CTL = <any US-ASCII ctl chr (0-31) and DEL (127)>
I've gathered up all the pertinent pieces, but really the thing
we'll be using the most is the definition of media-type. That
definition states that a media type contains a type,
subtype, and parameter, which are separated by "/" and
";" characters, respectively. We can decompose a media-type
into its component parts using Python code like this:
media-type
type
subtype
parameter
"/"
";"
(mime_type, parameter) = media_type.split(";"); (type, subtype) = mime_type.split("/")
(mime_type, parameter) = media_type.split(";"); (type, subtype) = mime_type.split("/")
I said the Accept header contained a list of all of
the media types that the client was able to,
well, accept. That isn't quite true. Accept is a
little more complicated, allowing the client to list multiple
media ranges. A media range is different from a media type: a
media range can use wildcards (*) for the type and subtype and can
have multiple parameters. One of the parameters that can be used is
q, which is a quality indicator. It has a value, from 0.0
to 1.0, that indicates the client's preference for that media
type. The higher the quality indicator value, the more preferred
the media type is. For example, application/xbel+xml could
match application/xbel+xml, application/*,
or */*.
*
q
application/*
*/*
Microsoft's Internet Explorer browser typically uses the
following Accept header: Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, */*, while Mozilla Firefox
typically uses Accept: text/xml, application/xml, application/xhtml+xml,
text/html;q=0.9, text/plain;q=0.8, image/png,*/*;q=0.5.
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, */*
Accept: text/xml, application/xml, application/xhtml+xml,
text/html;q=0.9, text/plain;q=0.8, image/png,*/*;q=0.5
One thing that makes our lives a little easier is that mime-type, as defined for the
Content-Type header, is also a valid media range for
an Accept header. So we only have to parse strings
defined by mime-type. If we do that well, then we will be able to parse
Accept headers without much additional work.
mime-type
Our first function is parse_mime_type:
parse_mime_type
def parse_mime_type(mime_type):
parts = mime_type.split(";")
params = dict([tuple([s.strip() for s in param.split("=")])
for param in parts[1:] ])
(type, subtype) = parts[0].split("/")
return (type.strip(), subtype.strip(), params)
Let's follow the code by watching how a media range would be
dissected. If our media range is application/xhtml+xml;q=0.5,
then
application/xhtml+xml;q=0.5,
parts = ["application/xhtml+xml", "q=0.5"]
params = {"q": "0.5"}
(type, subtype) = ("application", "xhtml+xml")
and the function returns the tuple ("application",
"xhtml+xml", {"q": "0.5"}).
("application",
"xhtml+xml", {"q": "0.5"})
Now remember that the difference between a MIME type and a
media range is the presence of wildcards and the q parameter.
Our parse_mime_type function doesn't actually care about
wildcards and will happily parse them. All that's left is to ensure
that the q quality parameter is set, using a default value of 1 if
none is given.
1
def parse_media_range(range):
(type, subtype, params) = parse_mime_type(range)
if not params.has_key('q') or not params['q'] or \
not float(params['q']) or float(params['q']) > 1 \
or float(params['q']) < 0:
params['q'] = '1'
return (type, subtype, params)
So we can parse media ranges, and now we need to compare a target
media type against a list of media ranges. That is, if we know our
application supports image/jpeg, and we get a request that contains
an Accept header--image/gif, image/x-xbitmap,
image/jpeg, image/pjpeg, application/x-shockwave-flash, */*--will the client be able to accept a response with a MIME type
image/jpeg? And what is the quality value associated with that
type?
image/jpeg,
image/gif, image/x-xbitmap,
image/jpeg, image/pjpeg, application/x-shockwave-flash, */*
image/jpeg
This is where things get a little tricky. Here are the
rules for how to match a media type to a list of media ranges, which
are distilled from Section
14.1 of RFC 2616:
application/foo;key=value
application/foo,
application/*,
Once we have this match function working, then matching up the
media types we accept is easy: just pass each one to
the match function; the one that comes out with the
highest q value is the winner and, therefore, the MIME type of the
representation we are going to return. I like to turn these kinds of
comparisons into math problems. (It's the kind of thing I do.) To find
the most specific match, we'll score a media range in the following
way:
match
Now we just score each media range, and the one with the highest
score is the best match. We return the q parameter of the best
match.
def quality_parsed(mime_type, parsed_ranges):
"""Find the best match for a given mime_type against a list of
media_ranges that have already been parsed by
parse_media_range(). Returns the 'q' quality parameter of the
best match, 0 if no match was found. This function bahaves the
same as quality() except that 'parsed_ranges' must be a list of
parsed media ranges."""
best_fitness = -1; best_match = ""; best_fit_q = 0
(target_type, target_subtype, target_params) = parse_media_range(mime_type)
for (type, subtype, params) in parsed_ranges:
param_matches = sum([1 for (key, value) in \
target_params.iteritems() if key != 'q' and \
params.has_key(key) and value == params[key]])
if (type == target_type or type == '*')
and (subtype == target_subtype or subtype == "*"):
fitness = (type == target_type) and 100 or 0
fitness += (subtype == target_subtype) and 10 or 0
fitness += param_matches
if fitness > best_fitness:
best_fitness = fitness
best_fit_q = params['q']
return float(best_fit_q)
The best_match function , which ties all of this
together, takes the list of MIME types that we support and the value
of the Accept: header and returns the best match.
best_match
Accept:
def best_match(supported, header):
"""Takes a list of supported mime-types and finds the best match
for all the media-ranges listed in header. The value of header
must be a string that conforms to the format of the HTTP Accept:
header. The value of 'supported' is a list of mime-types.
>>> best_match(['application/xbel+xml', 'text/xml'],\
'text/*;q=0.5,*/*; q=0.1')
'text/xml' """
parsed_header = [parse_media_range(r) for r in header.split(",")]
weighted_matches = [(quality_parsed(mime_type, parsed_header), mime_type)
for mime_type in supported]
weighted_matches.sort()
return weighted_matches[-1][0] and weighted_matches[-1][1] or ''
The full Python module, which includes comments and unit tests, is
available from
bitworking.org.
So now let's loop back to where we started. When we receive an HTTP
request, part of our dispatching is going to depend on the media
type. The header we need to look at depends on the type of the request
or response. Using our newly created module, we can parse both
the Content-Type and Accept headers. In the
next column we'll jump into the meat of dispatching our incoming
requests.
> We can decompose a media-type into its component parts using Python code like this:
> (mime_type, parameter) = media_type.split(";"); (type, subtype) = mime_type.split("/")
No, you can't. Parameters may include quoted strings as values, and quoted strings may include separators such as ';', ',', and '/', as well as backslash-escaped characters including escaped quotes "\"".
> (mime_type, parameter) = media_type.split(";"); (type, subtype) = mime_type.split("/")
No, you can't. Parameters may include quoted strings as values, and quoted strings may include separators such as ';', ',', and '/', as well as backslash-escaped characters including escaped quotes "\"".
Thanks Joe for this great article. I think you are covering here the real substance of REST: it's flexible ability to negociate resource representations. Great work! Jerome
© , O’Reilly Media, Inc.
(707) 827-7019
(800) 889-8969
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. | http://www.xml.com/pub/a/2005/06/08/restful.html?page=last&x-showcontent=off&x-maxdepth=0 | CC-MAIN-2014-15 | refinedweb | 2,082 | 56.45 |
#include "ntw.h"
Go to the source code of this file.
The image widget is a widget that displays an image created either from a file or an image buffer. The only difference is that the client saves image buffer data, so many of the same image can be created quickly from a buffer. Also, image buffers can be pre-loaded to the client so that images can later be created without sending the pixel data.
Creating an image from a file is simple, and can be done from many different file types. JPEG and PNG are recommended, however, as other types may not be supported on all machines. | http://ntw.sourceforge.net/Docs/CServer/image_8h.html | CC-MAIN-2018-05 | refinedweb | 109 | 61.87 |
On Fri, 2003-09-26 at 22:35, Dustin Sallings wrote: > > On Friday, Sep 26, 2003, at 22:25 US/Pacific, Robert Anderson wrote: > > >> For example, I use ctags. One of the projects I imported has a bunch > >> of .c files in the top level directory, and a few in subdirectories. > >> ``ctags -R .'' works fine in CVS. I'm fine with modifying that to be > >> ``ctags -R *'' since it's roughly about the same to type. In order to > >> do this with the {arch} directory, I need to do something like ``ctags > >> -R [A-z0-9]*'' Or ``tla inventory --files | ctags -L -'' > > > > Note that the presence of pristine trees is orthogonal to the name > > "{arch}". > > Well, * matches {arch}, but does not match .arch, which is my point > here. > > >. > > This is exuberant ctags 5.3 (see ctags.sf.net). -R is recurse, and -L > is used to supply a list of source filenames. Ok, so it's "recurse" and "list of files". So, what does this version of ctags do about files of the form file.c~ in my tree (i.e. emacs autosave files)? Does it tag those, or does it have a built-in convention that it shouldn't? What about things more idiosyncratic to your tree that ctags doesn't have a built-in convention for? That what the --regex option is for, right? There are lots of potential special cases of this form that you need to work with not only ctags, but lots of auxilliary tools for working with the sources in a tree. But you pointed out a great example with ctags - I use it too. You see, one really nice thing about tla is that it centralizes all the otherwise-crufty assumptions that tend to build up around scripts that do things like feed files to ctags, by standardizing on a reasonable set of logical file categories for source code trees: source, backups, and junk are three examples. I know that I always want to send the logical set of files "source" to ctags. I also know that what comprises "source" in one tree is not necessary the same as another tree. But if I have a trivial, once-and-only-once script: mktags: #!/bin/sh tla inventory --source | ctags -L - I know that will work in all of my trees, and I won't have to go in and tweak a list of regexps in a find . -name -prune expression every time I switch trees. It's automatically parameterized per tree, thanks to tla's naming convention facilities. So what I think you've pointed out is in fact one of the main reasons why: 1) such namespace discipline is very powerful 2) given that, your complaints about the particulars of the {arch} convention don't hold any water. Yes, you should _do_ 'tla inventory --source | ctags -L', but for goodness sake don't _type_ it. 'mktags' has sat well with me for about the last decade. Try it. Bob | https://lists.gnu.org/archive/html/gnu-arch-users/2003-09/msg01798.html | CC-MAIN-2019-43 | refinedweb | 497 | 81.02 |
This article is about a new extension to the C++ language, the Standard Template Library, otherwise known as STL.
When I first proposed the idea of an article on STL, I must say I somewhat underestimated the depth and breadth of the topic. There is a lot of ground to cover and there are a number of books describing STL in detail. So I looked at my original idea and refocussed. Why was I writing an article and what could I contribute? What would be useful? Was there a need for another STL article.
As I turned the pages of Musser and Saini I could see programming time dissolving in front of me. I could see late nights disappearing, and on target software projects reappearing. I could see maintainable code. A year has passed since then and the software I have written using STL has been remarkably easy to maintain. And shock horror, other people can maintain it as well, without me!
However, I also remembered that at the beginning it was difficult wading through the technical jargon. Once I bought Musser & Saini everything fell into place but before that it was a real struggle and the main thing I yearned for was some good examples.
Also the third edition of Stroustrup which covers STL as part of C++ was not out when I started.
So I thought it might be useful to write an article about real life use of STL for new STL programmers. I always learn faster if I can get my hands on some good examples, particularly on new subjects like this.
The other thing is, STL is supposed to be easy to use. So theoretically we should be able to start using STL straight away.
What is STL? STL stands for the Standard Template Library. Possibly one of the most boring terms in history, for one of the most exciting tools in history. STL basically consists of a bunch of containers - lists, vectors, sets, maps and more, and a bunch of algorithms and other components. This "bunch of containers and algorithms" took some of the brightest people in the world many years to create.
The purpose of STL is to standardise commonly used components so you don't have to keep reinventing them. You can just use the standard STL components off the shelf. STL is also part of C++ now, so there will be no more extra bits and pieces to collect and install. It will be built into your compiler. Because the STL list is one of the simpler containers, I thought that it might be a good place to start in demonstrating the practical use of STL. If you understand the concepts behind this one, you'll have no trouble with the rest. Besides, there is an awful lot to a simple list container, as we'll see.
In this article we will see how to define and initialise a list, count elements, find elements in a list, remove elements, and other very useful operations. In doing so we will cover two different kinds of algorithms, STL generic algorithms which work with more than one container, and list member functions which work exclusively with the list container.
Just in case anyone's wondering, here is a brief rundown on the three main kinds of STL components. The STL containers hold objects, built in objects and class objects. They keep the objects secure and define a standard interface through which we can manipulate the objects. Eggs in an egg container won't roll off the kitchen bench. They are safe. So it is with objects in STL containers. They are safe. I know that sounds corny but it's true.
STL algorithms are standard algorithms we can apply to the objects while they are in the container. The algorithms have well known execution characteristics. They can sort the objects, remove them, count them, compare them, find a particular one, merge objects into another container, and carry out many other useful operations.
STL iterators are like pointers to the objects in the containers. STL algorithms use iterators to operate on containers. Iterators set bounds for algorithms, regarding the extent of the container, and in other ways. For example some iterators only let the algorithms read elements, some allow them to write elements, some both. Iterators also determine the direction of processing in a container.
You can obtain iterators to the first position in a container by calling the container member function begin(). You can call the container end() function to get the past the end value (where to stop processing).
This is what STL is all about, containers, algorithms, and iterators to allow the algorithms to work on the elements in the containers. The algorithms manipulate the objects in a measurable, standard way, and are made aware of the precise extent of the container via iterators. Once this is done they won't ever "run off the edge". There are other components which enhance the functionality of these core component types, such as function objects. We will also look at some examples of these. For now, lets take a look at the STL list.
We can define an STL list like this.
#include <string> #include <list> int main (void) { list<string> Milkshakes; }Thats to it. You've defined a list. Could it have been any easier? By saying list<string> Milkshakes you've instantiated a template class list<string>, and then instantiated an object of that type. But lets not fuss with that. At this stage you really only need to know that you have defined a list of strings. You need the header file list to provide the STL list class. I compiled these test programs using GCC 2.7.2 on my Linux box. For example:
g++ test1.cpp -otest1Note that the include file iostream.h is buried in one of the STL header files. Thats why it is missing in some of the examples.
Now that we have a list, we can start using it to hold things. We'll add some strings to the list. There is an important thing called the value type of the list. The value type is the type of the object the list holds. In this case the value type of the list is string, as the list holds strings.
#include <string> #include <list> int main (void) { list<string> Milkshakes; Milkshakes.push_back("Chocolate"); Milkshakes.push_back("Strawberry"); Milkshakes.push_front("Lime"); Milkshakes.push_front("Vanilla"); }We now have a list with four strings in it. The list member function push_back() places an object onto the back of the list. The list member function push_front() puts one on the front. I often push_back() some error messages onto a list, and then push_front() a title on the list so it prints before the error messages.
It is important to know if a list is empty. The empty() list member function returns true if the list is empty. Empty is a deceptively simple concept. I often use it in the following way. Throughout a program I use push_back() to put error messages onto a list. Then by calling empty() I can tell if the program has reported any errors. If I define one list for informational messages, one for warnings, and one for serious errors, I can easily tell what types of errors have occurred just by using empty().
I can populate these lists throughout the program, then smarten them up with a title, or maybe sort them into categories, before printing them out.
Here's what I mean.
/* || Using a list to track and report program messages and status */ #include <iostream.h> #include <string> #include <list> int main (void) { #define OK 0 #define INFO 1 #define WARNING 2 int return_code; list<string> InfoMessages; list<:string> WarningMessages; // during a program these messages are loaded at various points InfoMessages.push_back("Info: Program started"); // do work... WarningMessages.push_back("Warning: No Customer records have been found"); // do work... return_code = OK; if (!InfoMessages.empty()) { // there were info messages InfoMessages.push_front("Informational Messages:"); // ... print the info messages list, we'll see how later return_code = INFO; } if (!WarningMessages.empty()) { // there were warning messages WarningMessages.push_front("Warning Messages:"); // ... print the warning messages list, we'll see how later return_code = WARNING; } // If there were no messages say so. if (InfoMessages.empty() && WarningMessages.empty()) { cout << "There were no messages " << endl; } return return_code; }
We will want to be able to iterate through any list, to, for example, print all the objects in the list to see the effect of various operations on a list. To iterate through a list, element by element we can proceed as follows
/* || How to print the contents of a simple STL list. Whew! */ #include <iostream.h> #include <string> #include <list> int main (void) { list<string> Milkshakes; list<string>::iterator MilkshakeIterator; Milkshakes.push_back("Chocolate"); Milkshakes.push_back("Strawberry"); Milkshakes.push_front("Lime"); Milkshakes.push_front("Vanilla"); // print the milkshakes Milkshakes.push_front("The Milkshake Menu"); Milkshakes.push_back("*** Thats the end ***"); for (MilkshakeIterator=Milkshakes.begin(); MilkshakeIterator!=Milkshakes.end(); ++MilkshakeIterator) { // dereference the iterator to get the element cout << *MilkshakeIterator << endl; } }In this program we define an iterator, MilkshakeIterator. We set MilkshakeIterator to the first element of the list. To do this we call Milkshakes.begin() which returns an iterator to the beginning of the list. We then compare MilkshakeIterator to the end of list value Milkshakes.end(), and stop when we get there.
The end() function of a container returns an iterator to the position one past the end of the container. When we get there, we stop processing. We cannot dereference the iterator returned by a container's end() function. We just know it means we have passed the end of the container and should stop processing elements. This holds for all STL containers.
In the above example at each pass through the for loop we dereference the iterator to obtain the string, which we print.
In STL programming we use one or more iterators in every algorithm. We use them to access objects in a container. To access a given object we point the iterator at the required object, then we dereference the iterator.
The list container, in case you're wondering, does not support adding a number to a list iterator to jump to another object in the container. That is, we cannot say Milkshakes.begin()+2 to point to the third object in the list, because the STL list is implemented as a double linked list, which does not support random access. The vector and deque containers, other STL containers, do provide random access.
The above program printed the contents of the list. Anyone reading it can immediately see how it works. It uses standard iterators and a standard list container. There is not much programmer dependent stuff in it, or a home grown list implementation. Just standard C++. That's an important step forward. Even this simple use of STL makes our software more standard.
Even with an STL list and iterator we are still initialising, testing, and incrementing the iterator to iterate through a container. The STL generic for_each algorithm can relieve us of that work.
/* || How to print a simple STL list MkII */ #include <iostream.h> #include <string> #include <list> #include <algorithm> PrintIt (string& StringToPrint) { cout << StringToPrint << endl; } int main (void) { list<string> FruitAndVegetables; FruitAndVegetables.push_back("carrot"); FruitAndVegetables.push_back("pumpkin"); FruitAndVegetables.push_back("potato"); FruitAndVegetables.push_front("apple"); FruitAndVegetables.push_front("pineapple"); for_each (FruitAndVegetables.begin(), FruitAndVegetables.end(), PrintIt); }In this program we use the STL generic algorithm for_each() to iterate though an iterator range and invoke the function PrintIt() on each object. We don't need to initialise, test or increment any iterators. for_each() nicely modularises our code. The operation we are performing on the object is nicely packaged away in a function, we have gotten rid of the loop, and our code is clearer.
The for_each algorithm introduces the concept of an iterator range, specified by a start iterator and an end iterator. The start iterator specifies where to start processing and the end iterator signifies where to stop processing, but is not included in the range.
The STL generic algorithms count() and count_if() count occurrences of objects in a container. Like for_each(), the count() and count_if() algorithms take an iterator range.
Lets count the number of best possible scores in a list of student's exam scores, a list of ints.
/* || How to count objects in an STL list */ #include <list> #include <algorithm> int main (void) { list<int> Scores; Scores.push_back(100); Scores.push_back(80); Scores.push_back(45); Scores.push_back(75); Scores.push_back(99); Scores.push_back(100); int NumberOf100Scores(0); count (Scores.begin(), Scores.end(), 100, NumberOf100Scores); cout << "There were " << NumberOf100Scores << " scores of 100" << endl; }The count() algorithm counts the number of objects equal to a certain value. In the above example it checks each integer object in a list against 100. It increments the variable NumberOf100Scores each time a container object equals 100. The output of the program is
There were 2 scores of 100
count_if() is a much more interesting version of count(). It introduces a new STL component, the function object. count_if() takes a function object as a parameter. A function object is a class with at least operator () defined. Some STL algorithms accept function objects as parameters and invoke operator () of the function object for each container object being processed.
Function objects intended for use with STL algorithms have their function call operator returning true or false. They are called predicate function objects for this reason. An example will make this clear. count_if() uses the passed in function object to make a more complex assessment than count() of whether an object should be counted. In this example we will count toothbrushes sold. We will refer to sales records containing a four character product code and a description of the product.
/* || Using a function object to help count things */ #include <string> #include <list> #include <algorithm> const string ToothbrushCode("0003"); class IsAToothbrush { public: bool operator() ( string& SalesRecord ) { return SalesRecord.substr(0,4)="); int NumberOfToothbrushes(0); count_if (SalesRecords.begin(), SalesRecords.end(), IsAToothbrush(), NumberOfToothbrushes); cout << "There were " << NumberOfToothbrushes << " toothbrushes sold" << endl; }The output of the program is
There were 2 toothbrushes soldThe program works as follows: A function object class is defined, IsAToothbrush. Objects of this class can determine whether a sales record is a toothbrush sales record or not. Their function call operator () will return true if a record is a toothbrush sales record and false otherwise.
The count_if() algorithm will process container objects in the range specified by the first and second iterator parameters. It will increment NumberOfToothbrushes for each object in the container for which IsAToothbrush()() returns true.
The net result is that NumberOfToothbrushes will contain the number of sales records where the product code was "0003", that is, where the product was a toothbrush.
Note that the third parameter to count_if(), IsAToothbrush(), is a temporary object constructed with it's default constructor. The () do not signify a function call. You are passing a temporary object of class IsAToothbrush to count_if(). count_if() will internally invoke IsAToothbrush()() for each object in the container.
We can further develop the idea of the function object. Assume we need to pass more information to a function object. We cannot do this using the function call operator, because that must be defined to take only an object of the value type of the list. However by specifying a non-default constructor for IsAToothbrush we can initialise it with whatever information we need. We might need to have a variable code for a toothbrush for example. We can add this extra information into the function object as follows:
/* || Using a more complex function object */ #include <iostream.h> #include <string> #include <list> #include <algorithm> class IsAToothbrush { public: IsAToothbrush(string& InToothbrushCode) : ToothbrushCode(InToothbrushCode) {} bool operator() (string& SalesRecord) { return SalesRecord.substr(0,4)==ToothbrushCode; } private: string"); string VariableToothbrushCode("0003"); int NumberOfToothbrushes(0); count_if (SalesRecords.begin(), SalesRecords.end(), IsAToothbrush(VariableToothbrushCode), NumberOfToothbrushes); cout << "There were " << NumberOfToothbrushes << " toothbrushes matching code " << VariableToothbrushCode << " sold" << endl; }The output of the program is
There were 2 toothbrushes matching code 0003 soldThis example shows how to pass information to the function object. You can define any constructors that you like and you can do any processing in the function object that you like, well, that the compiler will tolerate anyhow.
You can see that function objects really extend the basic counting algorithm.
At this stage we have covered
These examples were chosen to show commonly needed list operations. If you understand these basic principles you will have no trouble using STL productively. Mind you it does take some practice. We'll now extend our knowledge with some more complicated operations, both list member functions and STL generic algorithms.
How do we find something in a list? The STL generic algorithms find() and find_if() will do that. Like for_each(), count(), and count_if(), these algorithms take an iterator range, specifying what part of a list or any other container for that matter, to process. As usual the first iterator specifies where to start processing, the second iterator specifies where to stop processing. The position specified by the second iterator is not included in processing.
Here's how find() works.
/* || How to find things in an STL list */ #include <string> #include <list> #include <algorithm> int main (void) { list<string> Fruit; list<string>::iterator FruitIterator; Fruit.push_back("Apple"); Fruit.push_back("Pineapple"); Fruit.push_back("Star Apple"); FruitIterator = find (Fruit.begin(), Fruit.end(), "Pineapple"); if (FruitIterator == Fruit.end()) { cout << "Fruit not found in list" << endl; } else { cout << *FruitIterator << endl; } }The output of the program will be
PineappleIf find does not find the specified object, it returns the past the end iterator Fruit.end(). Otherwise it returns an iterator to the found list object.
There is another more powerful version of find(). This example demonstrates find_if(), which accepts a function object as a parameter, and uses it to make a more complex assessment of whether an object is "found".
Say we have records containing events and dates stored in chronological order in a list. We wish to find the first event that took place in 1997.
/* || How to find things in an STL list MkII */ #include <string> #include <list> #include <algorithm> class EventIsIn1997 { public: bool operator () (string& EventRecord) { // year field is at position 12 for 4 characters in EventRecord return EventRecord.substr(12,4)=="1997"; } }; int main (void) { list<string> Events; // string positions 0123456789012345678901234567890123456789012345 Events.push_back("07 January 1995 Draft plan of house prepared"); Events.push_back("07 February 1996 Detailed plan of house prepared"); Events.push_back("10 January 1997 Client agrees to job"); Events.push_back("15 January 1997 Builder starts work on bedroom"); Events.push_back("30 April 1997 Builder finishes work"); list<string>::iterator EventIterator = find_if (Events.begin(), Events.end(), EventIsIn1997()); // find_if completes the first time EventIsIn1997()() returns true // for any object. It returns an iterator to that object which we // can dereference to get the object, or if EventIsIn1997()() never // returned true, find_if returns end() if (EventIterator==Events.end()) { cout << "Event not found in list" << endl; } else { cout << *EventIterator << endl; } }The output of the program will be
10 January 1997 Client agrees to job
Some characters are a little easier to deal with in an STL container. Lets look at a sequence of characters that can be difficult to work with. We'll define an STL list to hold the characters.
list<char> Characters;We now have a rock solid sequence of characters that knows how to manage it's own memory without any help. It knows precisely where it starts and ends. That's a useful thing. I don't know if I'd say that about a null terminated array of characters.
Lets add some of our favourite characters to the list.
Characters.push_back('\0'); Characters.push_back('\0'); Characters.push_back('1'); Characters.push_back('2');How many null characters have we got?
int NumberOfNullCharacters(0); count(Characters.begin(), Characters.end(), '\0', NumberOfNullCharacters); cout << "We have " << NumberOfNullCharacters << endl;Let's find the character '1'
list<char>::iterator Iter; Iter = find(Characters.begin(), Characters.end(), '1'); cout << "We found " << *Iter << endl;This example is intended to show that STL containers allow you to handle null characters in a more standard way. Now lets search a container for two nulls with the STL search algorithm.
The STL generic algorithm search() searches a container, as you may have guessed, but for a sequence of elements, unlike find() and find_if() which search for a single element.
/* || How to use the search algorithm in an STL list */ #include <string> #include <list> #include <algorithm> int main ( void ) { list<char> TargetCharacters; list<char> ListOfCharacters; TargetCharacters.push_back('\0'); TargetCharacters.push_back('\0'); ListOfCharacters.push_back('1'); ListOfCharacters.push_back('2'); ListOfCharacters.push_back('\0'); ListOfCharacters.push_back('\0'); list<char>::iterator PositionOfNulls = search(ListOfCharacters.begin(), ListOfCharacters.end(), TargetCharacters.begin(), TargetCharacters.end()); if (PositionOfNulls!=ListOfCharacters.end()) cout << "We found the nulls" << endl; }The output of the program will be
We found the nullsThe search algorithm finds the first occurrence of one sequence in another sequence. In this case we search for the first occurrence of TargetCharacters which is a list containing two null characters, in ListOfCharacters.
The parameters for search are two iterators specifying a range to search, and two more iterators specifying a range to search for. So we are looking for the entire range of the TargetCharacters list, in the entire range of ListOfCharacters.
If TargetCharacters is found, search will return an iterator to the first character in ListOfCharacters where the sequences matched. If a match is not found, search will return the past the end value ListOfCharacters.end().
To sort a list we use the list member function sort(), not the generic algorithm sort(). All the algorithms we have been using up till now have been generic algorithms. However in STL, sometimes a container will supply it's own implementation of a particular algorithm, either through necessity or for enhanced performance.
In this case the list container has it's own sort because the generic sort algorithm only sorts containers which provide random access to the elements inside. The list container does not provide random access to the elements in the list, because it is implemented as a linked list. A special sort() member function is needed which can sort a linked list.
You'll find this with STL. For various reasons the containers will supply extra functions, where necessary for efficiency or where special performance gains can be made by taking advantage of some special feature of a container's structure.
/* || How to sort an STL list */ #include <string> #include <list> #include <algorithm> PrintIt (string& StringToPrint) { cout << StringToPrint << endl;} int main (void) { list<string> Staff; list<string>::iterator PeopleIterator; Staff.push_back("John"); Staff.push_back("Bill"); Staff.push_back("Tony"); Staff.push_back("Fidel"); Staff.push_back("Nelson"); cout << "The unsorted list " << endl; for_each(Staff.begin(), Staff.end(), PrintIt ); Staff.sort(); cout << "The sorted list " << endl; for_each(Staff.begin(), Staff.end(), PrintIt); }The output is
The unsorted list John Bill Tony Fidel Nelson The sorted list Bill Fidel John Nelson Tony
The list member functions push_front() and push_back() add elements to the front and back of a list respectively. You can also add an object at any point in a list with insert().
insert() can add one object, a number of copies of an object, or a range of objects. Here are some examples of inserting objects into a list.
/* || Using insert to insert elements into a list. */ #include <list> int main (void) { list<int> list1; /* || Put integers 0 to 9 in the list */ for (int i = 0; i < 10; ++i) list1.push_back(i); /* || Insert -1 using the insert member function || Our list will contain -1,0,1,2,3,4,5,6,7,8,9 */ list1.insert(list1.begin(), -1); /* || Insert an element at the end using insert || Our list will contain -1,0,1,2,3,4,5,6,7,8,9,10 */ list1.insert(list1.end(), 10); /* || Inserting a range from another container || Our list will contain -1,0,1,2,3,4,5,6,7,8,9,10,11,12 */ int IntArray[2] = {11,12}; list1.insert(list1.end(), &IntArray[0], &IntArray[2]); /* || As an exercise put the code in here to print the lists! || Hint: use PrintIt and accept an interger */ }Note that the insert() function adds one or more elements at the position of the iterator you specify. Your elements will appear in the list before the element that was at the specified iterator position.
We have been defining a list like this.
list<int> Fred;You can also define a list and initialise it's elements like this
// define a list of 10 elements and initialise them all to 0 list<int> Fred(10, 0); // list now contains 0,0,0,0,0,0,0,0,0,0Or you can define a list and initialise it with a range from another STL container, which doesn't have to be a list, just a container with the same value type.
vector<int> Harry; Harry.push_back(1); Harry.push_back(2); // define a list and initialise it with the elements in Harry list<int> Bill(Harry.begin(), Harry.end()); // Bill now contains 1,2
The list member function pop_front() removes the first element from a list. pop_back() removes the last element. The member function erase() erases the element pointed to by an iterator. There is another erase() function which can erase a range of elements.
/* || Erasing objects from a list */ #include <list> int main (void) { list<int> list1; // define a list of integers /* || Put some numbers in the list || It now contains 0,1,2,3,4,5,6,7,8,9 */ for (int i = 0; i < 10; ++i) list1.push_back(i); list1.pop_front(); // erase the first element 0 list1.pop_back(); // erase the last element 9 list1.erase(list1.begin()); // erase the first element (1) using an iterator list1.erase(list1.begin(), list1.end()); // erase all the remaining elements cout << "list contains " << list1.size() << " elements" << endl; }The output will be
list contains 0 elements
The list member function remove() erases objects from a list.
/* || Using the list member function remove to remove elements */ #include <string> #include <list> #include <algorithm> PrintIt (const string& StringToPrint) { cout << StringToPrint << endl; } int main (void) { list<string> Birds; Birds.push_back("cockatoo"); Birds.push_back("galah"); Birds.push_back("cockatoo"); Birds.push_back("rosella"); Birds.push_back("corella"); cout << "Original list with cockatoos" << endl; for_each(Birds.begin(), Birds.end(), PrintIt); Birds.remove("cockatoo"); cout << "Now no cockatoos" << endl; for_each(Birds.begin(), Birds.end(), PrintIt); }The output will be
Original list with cockatoos cockatoo galah cockatoo rosella corella Now no cockatoos galah rosella corella
The generic algorithm remove() works in a different way to the list member function remove(). The generic version does not change the size of the container.
/* || Using the generic remove algorithm to remove list elements */ #include <string> #include <list> #include <algorithm> PrintIt(string& AString) { cout << AString << endl; } int main (void) { list<string> Birds; list<string>::iterator NewEnd; Birds.push_back("cockatoo"); Birds.push_back("galah"); Birds.push_back("cockatoo"); Birds.push_back("rosella"); Birds.push_back("king parrot"); cout << "Original list" << endl; for_each(Birds.begin(), Birds.end(), PrintIt); NewEnd = remove(Birds.begin(), Birds.end(), "cockatoo"); cout << endl << "List according to new past the end iterator" << endl; for_each(Birds.begin(), NewEnd, PrintIt); cout << endl << "Original list now. Care required!" << endl; for_each(Birds.begin(), Birds.end(), PrintIt); }The output will be
Original list cockatoo galah cockatoo rosella king parrotThe generic remove() algorithm returns an iterator specifying a new end to the list. The range from the beginning to the new end (not including the new end) contains the elements left after the remove. You can then erase the range from the new end to the old end using the list member function erase.
List according to new past the end iterator galah rosella king parrot
Original list now. Care required! galah rosella king parrot rosella king parrot
We will finish off with a slightly more complicated example. It demonstrates the STL generic stable_partition() algorithm and one variation of the list member function splice(). Notice the use of function objects, and the absence of loops. Control passes through a series of simple statements, which are calls to STL algorithms.
stable_partition() is an interesting function. It rearranges elements so that those which satify a certain condition come before those which do not. It preserves the relative order of the two groups of elements. An example will make this clear.
Splice splices the elements of another list into the list. It removes the elements from the source list.
In this example we want to accept some flags and four filenames from the command line. The filenames must appear in order. By using stable_partition() we can accept the flags at any position relative to the filenames and get them together without disturbing the order of the filename parameters.
Due to the readily available counting and finding algorithms we can call these algorithms as necessary to determine which flag was set rather than setting other flags in our program. I find containers are very convenient for managing small amounts of variable dynamic data like this.
/* || Using the STL stable_partition algorithm || Takes any number of flags on the command line and || four filenames in order. */ #include <string> #include <list> #include <algorithm> PrintIt ( string& AString ) { cout << AString << endl; } class IsAFlag { public: bool operator () (string& PossibleFlag) { return PossibleFlag.substr(0,1)=="-"; } }; class IsAFileName { public: bool operator () (string& StringToCheck) { return !IsAFlag()(StringToCheck); } }; class IsHelpFlag { public: bool operator () (string& PossibleHelpFlag) { return PossibleHelpFlag=="-h"; } }; int main (int argc, char *argv[]) { list<string> CmdLineParameters; // the command line parameters list<string>::iterator StartOfFiles; // start of filenames list<string> Flags; // list of flags list<string> FileNames; // list of filenames for (int i = 0; i < argc; ++i) CmdLineParameters.push_back(argv[i]); CmdLineParameters.pop_front(); // we don't want the program name // make sure we have the four mandatory file names int NumberOfFiles(0); count_if(CmdLineParameters.begin(), CmdLineParameters.end(), IsAFileName(), NumberOfFiles); cout << "The " << (NumberOfFiles == 4 ? "correct " : "wrong ") << "number (" << NumberOfFiles << ") of file names were specified" << endl; // move any flags to the beginning StartOfFiles = stable_partition(CmdLineParameters.begin(), CmdLineParameters.end(), IsAFlag()); cout << "Command line parameters after stable partition" << endl; for_each(CmdLineParameters.begin(), CmdLineParameters.end(), PrintIt); // Splice any flags from the original CmdLineParameters list into Flags list. Flags.splice(Flags.begin(), CmdLineParameters, CmdLineParameters.begin(), StartOfFiles); if (!Flags.empty()) { cout << "Flags specified were:" << endl; for_each(Flags.begin(), Flags.end(), PrintIt); } else { cout << "No flags were specified" << endl; } // parameters list now contains only filenames. Splice them into FileNames list. FileNames.splice(FileNames.begin(), CmdLineParameters, CmdLineParameters.begin(), CmdLineParameters.end()); if (!FileNames.empty()) { cout << "Files specified (in order) were:" << endl; for_each(FileNames.begin(), FileNames.end(), PrintIt); } else { cout << "No files were specified" << endl; } // check if the help flag was specified if (find_if(Flags.begin(), Flags.end(), IsHelpFlag())!=Flags.end()) { cout << "The help flag was specified" << endl; } // open the files and do whatever you do }Given this command line:
test17 -w linux -o is -w greatthe output is
The wrong number (3) of file names were specified Command line parameters after stable partition -w -o -w linux is great Flags specified were: -w -o -w Files specified (in order) were: linux is great
We have only touched on the things you can do with a list. We haven't even got to the point of storing a user defined class of object, although thats not hard.
If you understand the concepts behind the algorithms presented here you should have no trouble using the rest. The important thing with STL is to get the basics right.
The key to STL is really the iterator. STL algorithms take iterators as parameters. They take iterator ranges, sometimes one range, sometimes two. STL containers provide the iterators. Thats why we say list<int>::iterator, or list<char>::iterator, or list<string>::iterator.
Iterators have a well defined heirarchy. They have varying "powers". Some iterators provide read only access to a container, some write only. Some can only iterate forwards, some are bidirectional. Some iterators provide random access to a container.
STL algorithms require a certain "power" of iterator. If the container doesnt provide an iterator of that power, the algorithm will not compile. For example, the list container only provides bidirectional iterators. The generic sort() algorithm requires random access iterators. Thats why we need the special list member function sort().
To really use STL properly you will need to carefully study the various kinds of iterators. You need to see just what kinds of iterators are provided by what containers. You then need to see what type of iterators the algorithms require. You need, of course to understand what kinds of iterators you can have.
During the past year I have written a number of commercial C++ programs using STL. It reduced my effort and almost eliminated logic errors in all cases.
The largest program is about 5000 lines. Probably the most striking thing about it is its speed. It reads and extensively processes a 1-2 Mb transaction file in about twenty seconds. It was developed with GCC 2.7.2 on Linux and now runs on a HP-UX machine. It uses over 50 function objects and many containers ranging in size from small lists to a map with over 14,000 elements.
The function objects in the program are in a hierarchy where top level function objects call lower level ones. I used the STL algorithms for_each(), find(), find_if(), count() and count_if() extensively. I reduced nearly all of the internals of the program to STL algorithm calls.
STL tended to automatically organise my code into distinct control and support sections. By carefully crafting function objects and giving them meaningful names I managed to move them out of sight and concentrate on the flow of control in my software.
There is much more to know about STL programming and I hope you have enjoyed working through these examples.
The two books in the bibliography both have active errata pages on the web so you can keep them right up to date.
Stroustrup has an advice section at the back of each chapter which is excellent, especially for beginners and the whole book is in a much more conversational style than the earlier editions. It is also much larger. There are of course quite a few other books on STL in the bookshops. Have a look and see what you can find.
The C++ Programming Language 3e, Bjarne Stroustrup. Addison Wesley 1997. | http://www.tldp.org/LDP/LG/issue34/field.html | CC-MAIN-2015-11 | refinedweb | 5,711 | 56.76 |
Holdays.net Home
**NOTE: Office will be closed from early November - mid November. Sale and payment must be
completed by end of October / very beginning of November or item will not be
shipped until almost 3 weeks into November. Any potential returns need to wait until offices open back up ( message me, but don't ship anything back until I've had a chance to confer with you). Sorry for any
inconvenience.**
Up for sale: COLIBRI CIGAR PIPE CIGARETTE Butane LIGHTER Gunmetal Silver colors Slide Top *NEW Gift* with a vending machine style shape. This lighter is part of the quantum series. The original retail price was 49.95.
Pics: Due to the shiny/reflective surfaces, many pictures show glares/reflections. I attempted to minimize this but could not do so completely. When looking, be sure you understand and distinguish what is the lighter, and what is just a reflection/glare. Please note, I have included pics of an instruction book for reference purposes in case you lighter doesn't have one.
Condition: This item is NEW (new old stock, this model is from a few years ago), and may have some very minor blemishes such as light surface scratching/scuffing, either from the factory or storage. The gift boxes the lighters come in are likely slightly discolored and/or imperfect from being stored from the last few years. In most cases, the lighter has some or all original tags or stickers and the instructions, however some or all of these things may be missing (despite this, the lighter is NEW, only possibly tried out for display purposes when originally offered by retail, and to ensure it sparks by me for online sale). The condition info is general because I'm selling multiple Colibri lighters. Read "Specifics" below and I'll list any relevant info to the specific condition of this lighter.
Specifics: There are a few small dimples on the back. There is no plastic/felt tray and no instructions (refer to instructions pics). Will try to extras of both if possible (or if requested to do so by buyer).
ITEM WILL NOT BE SHIPPED FILLED WITH BUTANE! Once you receive you item, I recommend only using Colibri brand butane, and my return policy depends on it (because all their materials explicitly say other butane may cause performance issues with the lighter).
What's with the great price? These are new old stock lighters (the models from just a couple of years ago just before they changed their logo). I bought several at a significant discount from a seller liquidating his inventory and can now pass the savings to you! There is no warranty (because I'm not the original retailer), but if there is any issue let me know asap! READ "FIRST USE" BELOW so this is some info so you can get it working once you receive your lighter.
FIRST USE: I just refilled one that I am keeping so here's some info on how it to get it to work. Follow the directions either on the instructions or the butane can (they are pretty much the same). Only use COLIBRI brand BUTANE (per their info, their lighters may not function properly if you use another brand, and my return policy requires it). Remember to turn the flame adjuster up all the way (if you don't, lighter won't work of course). It may take several attempts to get the lighter to work, but once it does, it should continue to work properly from there on out. BE CAREFUL, some of these Colibri lighters have a nearly invisible flame.
All item(s) sold “AS IS”.If you experience any issues with your
purchase, please let me know and I may be able to remedy them. I would
like to build a strong positive reputation so that I may bring more unique
items to , so please rate me highly.
Keep in mind, once a offer is placed meeting the minimum, the “Buy It Now”
price disappears so don’t hesitate to at least place a offer meeting the minimum.
I reserve the right to cancel the sale at any time or amend my listing
and prices (unless there is a valid offer or “Buy It Now” purchase already in
place) as I may change my method of selling, choose not to sell, or update
information on the item.
Please submit payment within 3 business days. I will then ship the item typically within 2
business days (barring some unforeseen circumstance) after receiving payment. If payment is not received I will not ship
the item.
If free shipping is not offered: Fixed price shipping costs include actual
costs incurred, packaging/shipping material, shipping insurance (at our
discretion, if applicable) /paypal costs, etc; Calculated shipping costs
will include a handling fee (which will vary from item to item) to cover things
like packaging/shipping material, shipping insurance (at our discretion, if
applicable), /paypay costs, etc.
CHECK OUT MY OTHER LISTINGS; CHECK BACK OFTEN AS I WILL TRY AND ADD THINGS
ROUTINELY.
Return
Policy: Please check listing info.
Returns are EITHER not accepted OR
subject to a limited 14-day return policy.
If applicable, the
“Limited 14-day Return Policy” works as such (no exceptions):
1- You may not return an item because you changed your mind,
for any reason, about buying/owning the item (examples: not wanting it;
finding a similar item at a lower price; the item doesn’t fit your “look” the
way you had hoped; etc…); the only acceptable reason for a return is if I’ve
misrepresented the item in our listing (and haven’t notified you through a
subsequent communication). You
may NOT accidently damage an item, nor, purposefully damage an item, then,
request a return or insurance claim (if applicable). If you receive a damaged item (beyond the
condition represented in the listing/pictures), you must file a shipping
insurance claim if shipping insurance was provided (I will not allow a
return). Insurance is often included
except in cases where it isn’t likely an item will break during shipping.
2- You must contact me by message and request to make a
return including the reason for the return.
I also reserve the right to request you to contact us by phone to
discuss the situation. I must approve
your request for return (and I reserve the right to deny any request,
although if the reason is reasonable, I likely wouldn’t).
3- You must provide me documentation if there is issue with
the item (per my request, pictures typically).
4- In the case I approve a return request, at your own cost
(you will not be reimbursed): you must properly package (so not to damage) and
ship (with insurance and tracking) me the genuine exact item(s) I sent you in
the condition I sent it to you/you received it.
5- Your refund will be a maximum of the sales price of the
item (not including any shipping fees charged by me or otherwise), minus a 10%
(of the sales price) restocking fee plus ALL my costs including: shipping
and packaging costs (even if free shipping was offered for your purchase),
paypal/ shipping costs (appx. 15% of shipping cost charged by carrier)
and/or refund/return costs (if any), and any other costs. I will disclose the costs of
selling/accepting your return as a single sum, plus the restocking fee, and
will not breakdown the exact details of arriving at that figure.
6- I will only process your refund after I’ve received the
genuine item, in the condition I sold it to you.
7- Do not attempt to defraud me in any manner,
especially by returning fake items, different from the exact items I sent you,
or a more damaged version of the exact item I sent you. I reserve the right to pursue recourse
through and/or legal action.
8- When more than one item has been sold as a group (aka
“lot”), I will not accept partial returns (of just some of the items). For items picked up locally, return policy is
waived as soon as customer or recipient accepts item (customer may refuse
accepting item, if this happens, customer must agree to mutual termination of
purchase through for refund and agree not to provide negative response).
9- The 14-day time frame of my policy reflects that you must
request your refund within 14 calendar days from when your package has been
tracked as delivered (or, if there is an error and tracking never reflects
delivery properly, the 14-day time frame starts 5 calendar days after I shipped
out your item).
10- I do not accept returns for items sold to buyers outside
of the United States.
11- I ask that if you have an issue with an item(s), whether
or not you may want to request a refund, you contact me with your concern
before providing negative response on .
I am honest and reasonable in my dealings, if I’ve made a mistake or
there was a shipping issue, I want to fix the problem if at all possible. Returns are a last resort option.
12- This policy may be changed, revised, or terminated (with
the option of being retroactive to its inception) at anytime, at my discretion,
without further notice. However, I
don’t anticipate needing to terminate the program unless it is abused.
13- FOR THE SALE OF COLIBRI LIGHTERS, IF THERE IS AN ISSUE, YOU MUST PROVE YOU USED COLIBRI BRAND BUTANE (because other butane may be of lower quality and may cause issues with the lighter). If I allow you to return a lighter, the above conditions will apply unless I allow otherwise. Butane must be EMPTIED before return shipping.
**International Shipping Policy**
If applicable, you may choose to use
the global shipping program. I am
only responsible for the first leg of that transaction until receives the
item at their shipping center. Per their
policy, they are responsible for the package after that including any claims of
damage, loss, theft, or otherwise.
If you don’t use the Global
Shipping program, the INTERNATIONAL SHIPPING CHARGE (OUTSIDE US OR CANADA) IS
AN ESTIMATE UNTIL INVOICED AFTER PURCHASE. ACTUAL COSTS MAY VARY UP OR
DOWN SO ACTUAL PRICE WILL BE REFLECTED IN INVOICE. IF YOU’D PREFER, BEFORE BUYING, FEEL FREE TO
CONTACT ME WITH YOUR ZIP CODE AND/OR ADDRESS SO I CAN GET YOU AN ACCURATE
INTERNATIONAL SHIPPING PRICE BEFORE YOU BUY. THANKS FOR FOLLOWING THIS
POLICY**
.International Buyers NOTICE:
Import duties, taxes and charges are not
included in the item price or shipping charges.
These charges are the responsibility of the BUYER.
Please check with your country's customs office to
determine if/what these additional costs will be
prior to offerding/buying. These charges are normally
collected by the delivering freight/shipping company
or when you pick the item up. Please do not confuse these
potential charges as additional shipping charges.
I do not mark merchandise values below what is paid or
mark items as "gifts" - US and International government
regulations prohibit such behavior.
It is against the law for me to do this and against
policy for you to ask.
This item has been shown times.
Vintage Colibri Silver With Gold Accents Butane Lighter
Colibri Ambassidor High Altitude Cigar Pipe Cigarette Torch Lighter New $70 Gift
Colibri Phantom Watch Money Clip $80 Christmas Dad Boss Christmas Poker Gift
Styles 23kt Polished Gold Touch Sensor Beam Jet Lighter New Christmas Gift
Dolan Bullock Sterling Silver Mesh Cuff Links Doctor Lawyer Boss $180 Gift
Colibri Razor Titanium High Altitude Wind Resistant Flame Lighter New $60 Gift
Colibri Purple Ladies Lipstick Purse Cigarette Pack Soft Flame Lighter $50 Gift
Colibri Camping High Altitude Cigar Pipe Torch Lighter Birthday Dad $80 Gift
Colibri Silver Watch Money Clip $80 Christmas Dad Boss Christmas Casino Gift
Colibri Compass Watch Money Clip $80 Christmas Dad Boss Christmas Casino Gift | http://www.holidays.net/store/Colibri-Cigar-Pipe-Cigarette-Butane-Lighter-Gunmetal-Silver-Colors-Slide-Top-New_181246280259.html | CC-MAIN-2013-48 | refinedweb | 1,998 | 57.2 |
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ompl::control::RRT Class Reference
Rapidly-exploring Random Tree. More...
#include <ompl/control/planners/rrt/RRT.h>
Inheritance diagram for ompl::control::RRT:
Detailed Description
Rapidly-exploring Random Tree.
- Short description
- RRT is a tree-based motion planner that uses the following idea: RRT samples a random state qr in the state space, then finds the state qc among the previously seen states that is closest to qr and expands from qc towards qr, until a state qm is reached. qm is then added to the exploration tree. This implementation is intended for systems with differential constraints.
- External documentation
- S.M. LaValle and J.J. Kuffner, Randomized kinodynamic planning, Intl. J. of Robotics Research, vol. 20, pp. 378–400, May 2001. DOI: 10.1177/02783640122067453
[PDF] [more]
Definition at line 65 of file RRT 88 of file RRT.h.
The documentation for this class was generated from the following files: | http://ompl.kavrakilab.org/classompl_1_1control_1_1RRT.html | CC-MAIN-2017-22 | refinedweb | 163 | 50.73 |
How to use JavaFX in your Swing Application - JavaFX 1.2 version.
By jimclarke on Jul 05, 2009
At one of my sessions showing off JavaFX, I was asked the question, how can I run JavaFX in my Swing Application? At first, I asked why do you want to do this? The answer was we have built up the Swing application over many years and cannot rewrite it all at once, but we would like to take advantage of JavaFX's features. This sounded reasonable to me.
So I did some investigation and found that there is a blog about this at. However, this only covered JavaFX 1.1. Now, that JavaFX 1.2 is out, this is no longer applicable. Here is how to do it in JavaFX 1.2.
We start with the obligatory warning, this is only for the Desktop profile, and do not try this at home unless you are a highly trained professional. This, like the previous way to do this, is a hack. It uses private APIs in JavaFX and is subject to change with any new release.
First, we need to pull the underlying Swing Component out from the Scene class. To do this, we need to use JavaFX reflection from a Java class. This is done by passing in the name of the Scene class, creating an object for it via reflection, then locating its underlying Swing implementation, and finally pulling out the Scenegraph JSGPanel, that is a Swing Component. The following listing shows how to do this.
package scene; import com.sun.javafx.tk.swing.SwingScene; import com.sun.scenario.scenegraph.JSGPanel; import javafx.reflect.\*; import javafx.reflect.FXLocal.ObjectValue;
public class LoadScene { private static FXLocal.Context context = FXLocal.getContext(); public static JSGPanel loadScene(String classname) { FXClassType classRef = context.findClass(classname); FXLocal.ObjectValue obj = (ObjectValue) classRef.newInstance(); FXFunctionMember getPeer = classRef.getFunction("impl_getPeer"); FXLocal.ObjectValue peer = (ObjectValue) getPeer.invoke(obj); SwingScene scene = (SwingScene)peer.asObject(); return scene.scenePanel; } }
Next, to use this in a Swing application, we create the Swing Components normally, leaving a JPanel that will hold the JSGPanel that represents the JavaFX scene. An example using a JavaFX scene, "scene.MyScene", that runs a simple animation is:
public class TheFrame extends javax.swing.JFrame { /\*\* Creates new form TheFrame \*/ public TheFrame() { initComponents();⁞ jPanel1.add(LoadScene.loadScene("scene.MyScene"), BorderLayout.CENTER); }⁞ private void initComponents() { jPanel1 = new javax.swing.JPanel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("JFrame - JavaFX Panel Test"); getContentPane().setLayout(new java.awt.FlowLayout()); jPanel1.setLayout(new java.awt.BorderLayout()); getContentPane().add(jPanel1); pack(); } public static void main(String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new TheFrame().setVisible(true); } }); } private javax.swing.JPanel jPanel1; }
To complete the exercise, we need to add the JavaFX jar files (including javafxc.jar) to the classpath, then use "java" to start the application.
Here is the picture of the JavaFX scene running within the Swing JFrame. This simple JavaFX application shows an animation of "Hello World" moving across the scene.
I have contributed an implementation based on this class to the JFXtras project at. It is now included in JFXtras release 0.5 and the class to use is org.jfxtras.scene.SceneToJComponent.
Hi,
Is there a definite way to dispose JavaFX scene object and gc it ?
It seems that the JavaFX is not properly gc when it is removed from the frame and still consuming memory. Due to sophisticated binding and advanced features of JavaFX, memory leak and consumption are major concern when trying to creating practical "enterprise" application which require restarting periodically for stability reason. Hopefully the next JavaFX version can address that.
I still think that it will take a very long time before JavaFX reaches the maturity and richness of Swing's API and library.
Posted by GeekyCoder on July 05, 2009 at 03:21 PM EDT #
Cool ! Thank !
Posted by Sebastien Stormacq on July 05, 2009 at 09:18 PM EDT #
With JXScene you could get the scriptObject and cast it to an interface, this way you could call methods of the scene from the java side.
Without an option to get the scene object, there is no communication between java and javafx making this rather useless.
Posted by Pedro Duque Vieira on July 10, 2009 at 11:53 AM EDT #
All this still continues to send totally mixed messages from Sun. Sun's OWN LICENSE prohibits redistributing and JavaFX component, so all this Swing/FX integration is applicable only to WebStart apps.
Posted by Alex on July 15, 2009 at 03:02 AM EDT #
Great work James!But can you explain me about how can I run this project in netbeans ? That is too complicated to me!
Thanks!
Posted by Raiden2010 on August 03, 2009 at 12:44 AM EDT #
This suck that we have to use a Hack ... when will an official way of communication between swing and javaFx be available ?
Posted by Ar3s on August 26, 2009 at 08:18 PM EDT #
Hello,
can someone help me?
I can't import the packe below.
My NetBean IDE can't find them
The error message is: package does not exist.
all these packages doest not exits:
com.sun.javafx.tk.swing.SwingScene;
com.sun.scenario.scenegraph.JSGPanel;
javafx.reflect.\*;
javafx.reflect.FXLocal.ObjectValue;
Where can i get them?
Posted by guest on September 25, 2009 at 12:59 AM EDT #
Ok, I was able to successfully get the scene to show in a JPanel.
However I noticed that the scene doesn't resize when I resize the JPanel. My question is this. How do you get the scene to resize with the JPanel? Normally you set the resizable attribute to true and resize the rectangle that it the first item in the content attribute of the scene. So how do I do the same thing when I am declaring the scene as a class?
Posted by SteveR on April 14, 2010 at 09:31 AM EDT # | https://blogs.oracle.com/clarkeman/entry/how_to_use_javafx_in | CC-MAIN-2016-26 | refinedweb | 992 | 58.79 |
.
4 Comments
OlderGamer
I think the trouble a lot of newer players have with end game is blizzs fault. There is a lack of creative problem solving within the toon dev system. What do I mean?
Each class has an optimal talent spec, optimal gear, optimal rotation, and even optimal add ons. And each DG and Raid has an optimal(right way to) handle most boss encounters. Do any of that wrong and your going to stink at the game. It takes the choice away from players and removes much of the flexibility player would have to build their toons.
And DSB, Mike, be quiet lol
There really is a silent majority in a game like wow, and that is stifled by the vocal minorty. As evidenced that an innitiative like this would be in the thought process of blizz to begin with.
End game is hard, and it drives away lesser experienced and lesser dedicated players. And not because of players skill levels, but instead because of players knowledge levels. If you have the right gear, adds, rotation, etc and understand the fights … the game isn’t hard at all. So taking steps to get new players under the wings of seasoned ones, I am sure they hope to bring up players performance at end game.
If the game had more then one way of doing most things, knowing that one magical process(or not) wouldn’t make or break the gamers experience in the game. Something I hope Blizz thinks about for future MMO projects.
Puggy
I actually think it is to give people more reason to play the game and not quit it.
As to say, some people in a guild are bored, want to do something beside collecting DKP each night, well the apply as newby helpers and get something to do (having newbies ask them questions and worship them)
The newbies in return (sorry for the word but it types faster than “Player new to the game) has the feeling of obligation of community right away, what reduces the probability of them quitting the game if they are bored or run out of things to do. Instead they will think about the people who helped them, spend time with them and feel bad about abandoning them.
All in all an interesting way to bind new players. Just like putting up mirrors at toilets or the vegetable parts of the supermarket. Behaviourpatterns are a fun thing to mess with.
Erthazus
“End game is hard, and it drives away lesser experienced and lesser dedicated players”
End Game is not hard.
If it is hard for you,than it’s your only problem.
Dragon Soul Raid Normal is possible for every player.
OlderGamer
@Erth there is very little skill in wow. So long as you have the right, GS, adds, PC power, ISP, and knowledge of fights, rotations, etc the game is a breeze.
The problem is that for new, lesser experienced and lesser dedicated players don’t have that knowledge. I think that is what Blizz is hoping to fix. That and Puggy makes a good point too. | http://www.vg247.com/2012/07/12/blizzard-taking-applications-for-world-of-warcraft-guild-mentors/ | CC-MAIN-2014-52 | refinedweb | 521 | 70.43 |
Appending One File to Another File
The code example in this topic shows you how to open and close files, read and write to files, and lock and unlock files.
In the example, the application appends one file to the end of another file. First, the application opens the file being appended with permissions that allow only the application to write to it. However, during the append process other processes can open the file with read-only permission, which provides a snapshot view of the file being appended. Then, the file is locked during the actual append process to ensure the integrity of the data being written to the file.
This example does not use transactions. If you were using transacted operations, you would only be able have read-only access. In this case, you would only see the appended data after the transaction commit operation completed.
The example also shows that the application opens two files by using CreateFile:
- One.txt is opened for reading.
- Two.txt is opened for writing and shared reading.
Then the application uses ReadFile and WriteFile to append the contents of One.txt to the end of Two.txt by reading and writing the 4 KB blocks. However, before writing to the second file, the application uses SetFilePointer to set the pointer of the second file to the end of that file, and uses LockFile to lock the area to be written. This prevents another thread or process with a duplicate handle from accessing the area while the write operation is in progress. When each write operation is complete, UnlockFile is used to unlock the locked area.
#include <windows.h> #include <stdio.h> void main() { HANDLE hFile; HANDLE hAppend; DWORD dwBytesRead, dwBytesWritten, dwPos; BYTE buff[4096]; // Open the existing file. hFile = CreateFile(TEXT("one.txt"), // open One.txt GENERIC_READ, // open for reading 0, // do not share NULL, // no security OPEN_EXISTING, // existing file only FILE_ATTRIBUTE_NORMAL, // normal file NULL); // no attr. template if (hFile == INVALID_HANDLE_VALUE) { printf("Could not open One.txt."); return; } // Open the existing file, or if the file does not exist, // create a new file. hAppend = CreateFile(TEXT("two.txt"), // open Two.txt FILE_APPEND_DATA, // open for writing FILE_SHARE_READ, // allow multiple readers NULL, // no security OPEN_ALWAYS, // open or create FILE_ATTRIBUTE_NORMAL, // normal file NULL); // no attr. template if (hAppend == INVALID_HANDLE_VALUE) { printf("Could not open Two.txt."); return; } // Append the first file to the end of the second file. // Lock the second file to prevent another process from // accessing it while writing to it. Unlock the // file when writing is complete. while (ReadFile(hFile, buff, sizeof(buff), &dwBytesRead, NULL) && dwBytesRead > 0) { dwPos = SetFilePointer(hAppend, 0, NULL, FILE_END); LockFile(hAppend, dwPos, 0, dwBytesRead, 0); WriteFile(hAppend, buff, dwBytesRead, &dwBytesWritten, NULL); UnlockFile(hAppend, dwPos, 0, dwBytesRead, 0); } // Close both files. CloseHandle(hFile); CloseHandle(hAppend); } | https://msdn.microsoft.com/en-us/library/windows/hardware/aa363778 | CC-MAIN-2017-17 | refinedweb | 465 | 56.76 |
Forum:Uncyc ?pedia link
From Uncyclopedia, the content-free encyclopedia
On the Forum For Illogicopedia it was suggested by ZeroTrousers that there be a couple of pages pages created on illogicopedia and Uncyclopedia for voting for transwiki of articles. These Would be a voted system with voting at each end of the system, So a User Could put up an article s/he thinks should be in the other wiki. Then there is a vote to see if the article should be Moved to the other wiki. Then if the article has a majority it is moved over and added to the VAU page on the other wiki. The users on the other wiki then vote to dicide if they think the article should be accepted and then if the article has a majority on the VAU page then it is accepted into the wiki, if the vote fails the article is deemed as unacceptable for either wiki and is deleted. Does this sound like a good idea to you?
So this is how it would work:
--Sir Silent Penguin
"your site makes no sence" The illusion is complete 15:53, 17 April 2007 (UTC)
- Ummm...what language is "illogicopedia"? I seem to forget all the diffrent names. Also, would the articles be translated into english? -- Brigadier General Sir Zombiebaron 15:55, 17 April 2007 (UTC)
Illogicopedia is in english. It is a randomness site rather than comedy, i remember people saying many "good" articles would fit better under Random than humo(u)r better, Basicly im proposing an article sharing system.--Sir Silent Penguin
"your site makes no sence" The illusion is complete 16:07, 17 April 2007 (UTC)
- I like the sharing idea, but it sounds like a lot of extra voting work to me. It would mean effectively two VFDs - one for outright deletion and one for moving. How about making it an offshoot of VFD, so that if we decide to delete something on grounds of randomness it gets forwarded to a vote for Illogicopedia transfer? As for the other direction, we've never voted things in before - just stick it on and we'll ICU it if we don't like it. Whatever happens, it's gonna need one heck of a good system of coordination. --Whhhy?Whut?How? *Back from the dead* 17:15, 17 April 2007 (UTC)
- ...While we're on this subject btw, as far as I'm concerned I don't have time for another wiki, so if something gets transwikied it's as good as deleted for me. (Do others agree?) I'd just like to say that if all the good but slightly more random articles (Category:Self-reference, etc) currently accepted by Uncyc start slowly getting filtered out and moved over on grounds that they're not actually being deleted, I'm frankly likely to lose interest in the whole business. I'm sure it won't happen, I'm just saying we need to make sure it doesn't. Oh dear, how very melodramatic. Quick, say something to ruin it! What ho, Mr Plibble! Phnurr! -- Whhhy?Whut?How? *Back from the dead* 17:15, 17 April 2007 (UTC)
- I designed the method so that articles that the community deemed as inappropriate could be filtered out and deleted, Thus meaning no content is lost. Im not worried how uncyc decides how to pick which articles to keep and delete, as long as there is some sort of communication between the two wikis, If you want you could add an extra option to the VFD page if you wish, its not up to me to say how it should be done, im just suggestiong one way it could be done.--Sir Silent Penguin "your site makes no sence" The illusion is complete 18:08, 17 April 2007 (UTC)
- Hey hey I designed the method.--User:Zerotrousers/sig 08:16, 18 April 2007 (UTC)
- I agree with SBU, too much extra work. I suggest you and the other illogicopedians check VFD and ICU periodically, and copy whatever is about to be deleted and you think it's appropiate for illogicopedia under your own chriteria. In VFD, add notes to the comments asking for the articles to be moved to your namespace, or give you some time to move them directly to illogicopedia. If you need to filter what gets in illogicopedia, maybe you can take the articles to a waiting lounge, but make it over there, so you don't have to involve the rest of us in the filtering and complicate our deleting process. About what comes in, again I agree with SBU, post here whatever you think is appropiated, we'll vote it out if it's:57, 17 April 2007 (UTC)
- Also, it's not so bad if the two wikis have a small overlap. Even if the material you take from here doesn't get deleted in the end, it's ok. Just make sure to make the attributions under CC or GFDL in any case.--:12, 17 April 2007 (UTC)
- I just think this whole thing would just be a whole lot easier if we had different pages to accept articles. About the extra work thing that SBU pointed out, you don't have to vote on it. The only people who will really be using it at all will be me, silent penguin, hindleyite, flameviper and nerd42. We will have to have an acceptance page, we can't just load random articles from another wiki to this one.--User:Zerotrousers/sig 21:11, 17 April 2007 (UTC)
- Sure, you can make the accepting page in your namespace. But if you mix your acceptance process with uncyc's current deletion system it will indeed be much more work for us to do (a lot easier for you 5, but not for the rest of us). If, for instance, as SilenteP suggested, we added an "send to illogicopedia" option in VFD it will couse endless cases of confusion and people asking what's that illogicopedia option is for. I still remember all the mess we had with the rewrite votes and such, beofre we changed it into only two clearcut options, keep or delete. What other people may do with the articles voted out of the mainspace does not concern us anymore. I symphatize with your desire to make something useful of that content, but messing with the VFD system is not worth it. BTW, Hidleyete can rescue any deleted:29, 17 April 2007 (UTC)
- Here, it's under my namespace. To prevent too much extra work to people not involved with ?pedia, I've kept it seperate from vfd.--User:Zerotrousers/sig 08:20, 18 April 2007 (UTC)
I don't think there should be any moving of articles off-wiki. If they're vfd'd here, by all means copy them over under the terms of the licence, but if it would survive vfd here, it should stay. You can still copy them over as long as you keep within the licence. Though I'm not sure how compatible CCBYNCSA articles are on GFDL wikis. • Spang • ☃ • talk • 05:26, 18 Apr 2007
- First off, what the hell are CCBYNCSA and GDFL wikis. Please explain. also, how about an article which is being succesfully nominated for deletion is discussed under my namespace by all the illogicopedia members while it is on illogicopedia. This will prevent extra work for all the vfd regulars.--User:Zerotrousers/sig 06:24, 19 April 2007 (UTC) | http://uncyclopedia.wikia.com/wiki/Forum:Uncyc_%3Fpedia_link | CC-MAIN-2015-35 | refinedweb | 1,256 | 66.98 |
Set free your inner geek! Make fridge magnets from old keyboard keys!
My!
Teacher Notes
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Obtain the Necessary Tools and Supplies
Here are the things you'll need...
.
Step 2: Disassemble Your Keyboard
To begin, flip your 'board over. You'll likely find at least two screws. Remove them and set them aside. (You won't be needing them, unless you like to save them) Now try to pull the top and bottom of your keyboard apart. If it's like mine, it'll probably open by a sort of hinge at the top, which slides out once the case opens. If it seems to be stuck, make sure you got _all_ of the screws out. Sometimes manufactures like to hide them under little rubber feet or stickers. If it still doesn't want to come open, you can always try using brute strength... We won't be needing the case later anyway.
Inside, you'll probably find a small circuit board in one corner (probably the corner where the cord comes out) and the rest will be concealed by a large metal sheet, held in place by one or more screws. Again, remove them and set them aside. Then lift off the metal sheet. (Your keyboard might not have a metal sheet, I've only tried this on one keyboard which used the sheet as a ground.) You should see one or more layers of plastic with circuit traces on them, and some kind of rubber sheet with little bumps on it. Either that, or there will be little rubber buttons on the sheet itself. The rubber things are what make your keys springy! None of this is important, unless you want to save the sheets to make a cool wallet. Anyway, you should now be looking at the back of the keys. On to the next step!
Step 3: Removing the Keys
The keys consist of: a) the actual key and, b) a little plastic plunger thing. The best way I've found to remove the keys from the keyboard is to take a small flathead screwdriver, insert it into the key, then lift the keyboard and push. The key should pop away from the plunger and onto your desk. As of yet, I haven't found a use for the plungers... They look kinda cool though. Remove all of the keys from the board using this method, or any other methods that might be more suited to your individual board. Note that removing the larger keys, such as return (enter) and the spacebar is exactly the same as removing the smaller ones, because they still only have one actual contact point. Note that they may have little guiding tabs that also stick through the board. Be sure you're pushing on the point that actually connects the key to the plunger, because you might risk damaging the key if you push anywhere else.
Step 4: Cleaning the Keys
Since the keyboard keys are one of the dirtiest surfaces in your home, and your kitchen should be one of the cleanest surfaces in your home, I think it's a good idea to clean the keyboard keys before putting them on your fridge.
I just soaked them in warm soapy water and scrubbed the dirtiest ones with a toothbrush. Boiling them would probably be easier, but I didn't feel like using the stove.
Step 5: Making the Magnets
And now, the moment you've all been waiting for.... Now we get to make the magnets!!!
Alright, I know you're psyched, but first we have to let your hot glue gun warm up. (Or if you're really patient, you can use other glue.) Start by picking the key you're going to back with magnet. Cut a strip (or a chunk if you're not using the stuff on a roll like me) a little bigger than the key you're going to back. Then, apply glue all around the edge of the key, and stick it onto the magnet. (If you're using the store bought stuff, be sure to peel off the backing first if you're using the stick on kind. Don't just stick the magnet on to the key because the glue that they back the magnet with isn't worth beans.) Wait for the glue to fully dry and cure, and then trim off the excess magnet around the edge. Congratulations! Your first key is done. (Don't celebrate too much, because you've still got a lot more to do.)
One little tip: If you want to do the keyboard the same way I did, try grouping the keys into sections. This way, your kitchen won't be filled with keyboard keys that fall off the fridge and trip you up. The one downside to this is that the keys tend to fall off the magnet backing if you grab them the wrong way. The solution? I think you could just use stronger glue....
The enter and spacebar (and possibly other) keys are different than the rest. They have little plastic tabs that get in the way of the magnet strip...
Step 6: The Tricky Keys
For the enter and spacebar keys, you'll first need to remove a few little plastic tabs before you can glue the magnet on. To do this, you'll need your cutting pliers. Simply snip off the extruding tabs using brute strength. For this step, wear safety goggles (or shield your eyes.) I had one plastic tab that ricocheted off of several objects in my kitchen before coming to rest on the floor. Then just sand off any little bits of the tab that are left. Then you can glue the magnet on.
Also, if you're grouping the arrow keys like I did, make sure you got them into the correct configuration or they'll look odd. To make sure that they're in the correct alignment, make sure that all of the pictures on the keys are in the same place (all arrows in upper-left corner.) Also, make sure that all of the keys slant the same direction. If you are using a standard desktop keyboard, this usually means that the keys have a lower top than bottom when lying flat.
If you are making a group of keys that has more than one row, and the keys stick off of the magnetic strip a bit, make sure you glue them really well so that they don't fall off. Some of my arrow keys came off the strip after I was finished, so I had to use a stronger glue to repair them.
Step 7: Finishing Up
Yep, you're done. How long did it take you to glue all the keys? It took me two and a half hours. Yeesh. Anyway, if the keys start to fall off of the magnet base over time, it's probably time to re-glue with something stronger. You wouldn't want to throw them away after all that hard work you did....
That's it! Enjoy your new magnets. Stick em' to your fridge, or anything else that they'll stick to.... And have fun!
12 Discussions
4 years ago on Introduction
Why not fill the keys with plaster of Paris, Bondo, clay or some other moldable stuff to give the key more heft and more gluing surface area?
10 years ago on Step 4
I used a quicker, easier method for cleaning when I made the keyboard thumb tacks. Put the keyboard in the dish washer before you remove the keys. Clean as new.
Reply 6 years ago on Step 4
I second this method. I often use it to clean my desktop's keyboard after removing the electronics. Put it in the top rack and it will look like new when it's done. Takes a while to dry fully but well worth it.
9 years ago on Introduction
wow this is amazing, I would have never thought of this
10 years ago on Step 7
Great instructions! I'll have to make sure I make some time to do this... my 2 year old will love having these on the fridge! (so will my rude friends... i think i'll separate most of the keys to have some fun.. i've got a couple of spare keyboards hanging around :) +++
10 years ago on Introduction
What brand/make of keyboards are you guys/gals using? I ask because I have opened up 4 different brands of keyboards and none of them have a separate plunger and key. All of the keys are molded with the plunger as one piece. Thanks for your help.
12 years ago on Introduction
I guess this isn't a new idea... I didn't see this before I wrote mine... Ugh, there goes an entire day of making magnets. I feel dumb. Oh well, my way of doing it is a bit different than his, so technically it's a project with different methods and ideas.
Reply 10 years ago on Introduction
Echoing what other posts are saying, ideas don't exist in a vacuum. We create things based on what we've seen and our experiences. Truly original and unique ideas are very rare. New methods, different methods , or even just improved methods can often move whole industries forward. Sharing your methods and ideas may inspire others. So please share!
Reply 12 years ago on Introduction
There are multiple ways to do the same thing, and they are all valid Instructables.
Reply 12 years ago on Introduction
No worries - there's always room for more than one ;)
11 years ago on Introduction
ha ha ha cool I want to do it ,I have an old keyboard with all the buttons ripped out.
12 years ago on Introduction
Hiya,. | https://www.instructables.com/id/Keyboard-Refrigerator-Magnets---New-Method/ | CC-MAIN-2019-35 | refinedweb | 1,669 | 81.53 |
The k-nearest neighbors is an algorithm that uses k-nearest neighbors in the training dataset to find the category of an unknown object. When we want to find the class to which an unknown point belongs to, we find the k-nearest neighbors and take a majority vote. Let's take a look at how to construct this.
import numpy as np import matplotlib.pyplot as plt import matplotlib.cm as cm from sklearn import neighbors, datasets from utilities import load_data
data_nn_classifier.txtfile for input data. Let's load this input data:
# Load input data input_file = 'data_nn_classifier.txt' data = load_data(input_file) X, y = ...
No credit card required | https://www.oreilly.com/library/view/python-machine-learning/9781786464477/ch05s05.html | CC-MAIN-2019-18 | refinedweb | 108 | 61.53 |
Infopath 2003 and future of Microsoft Access
Hi All,
I just stumbled upon Infopath 2003. Check
'Designing form' part looks pretty intersting to me. But I am not really sure whether I would like all my data to be stored in XML assuming I have LARGE amount of data and I am not using Infopath to submit my data to central Application Server. As I can't see Access in Office 2003, I think Infopath 2003 will take its place. I am not very sure if it's very nice to replace a decent RDBMS with some XML driven application. I think Infopath has its place (we can have _richer_ intranet apps built with Infopath) but we need MS Access too.
Your views?
JD
JD
Saturday, September 27, 2003
Oops,
I just found that Access 2003 will be there as well! :)
JD
JD
Saturday, September 27, 2003
The idea with Infopath is to send the xml to a web service which can process or store as needed. Or just leave in a file system for use later by whatever needs it.
fool for python
Sunday, September 28, 2003
InfoPath will interface easily with RDBMSs.
TomThumbKOP
Wednesday, March 10, 2004
why didnt they just add this functionality to namespaces that would be available in visual studio?? I dont understand microsoft.
bp
Thursday, April 22, 2004
Recent Topics
Fog Creek Home | http://discuss.fogcreek.com/joelonsoftware3/default.asp?cmd=show&ixPost=73948&ixReplies=4 | CC-MAIN-2017-17 | refinedweb | 229 | 70.63 |
Hi, On the Mac platform both the Carbon and Cocoa ports face the problem of determining where on the display to place new frames. For this it is helpful not just to know the overall dimensions of the display (x-display-pixel-width,height) but also the portion of the display that is not obscured/reserved for the dock and menubar. I assume this issue comes up as well on Windows (task bar) and on X desktops such as Gnome or KDE. The Carbon port was defining its own function to return (top left width height) for the usable screen area. Since it seems relevant for all platforms, it would seem appropriate to name this function with an x- prefix, e.g., x-display-usable-bounds, and define it for all platforms. As a placeholder implementation, a list (0 0 x-display-pixel-width x-display-pixel-height) could be returned. See the thread below for the current Carbon and Cocoa implementations.- | https://lists.gnu.org/archive/html/emacs-devel/2007-12/msg00143.html | CC-MAIN-2022-33 | refinedweb | 162 | 61.26 |
0,3
Number of edges in the join of two complete graphs, each of order n, K_n * K_n. - Roberto E. Martinez II, Jan 07 2002
The power series expansion of the entropy function H(x) = (1+x)log(1+x) + (1-x)log(1-x) has 1/a_i as the coefficient of x^(2i) (the odd terms being zero). - Tommaso Toffoli (tt(AT)bu.edu), May 06 2002
Partial sums of A016813 (4n+1). Also with offset = 0, a(n) = (2n+1)(n+1) = A005408 * A000027 = 2n^2 + 3n + 1, i.e., a(0) = 1. - Jeremy Gardiner, Sep 29 2002
Sequence also refers to greatest semiperimeter of primitive Pythagorean triangles having inradius n-1. Such a triangle has consecutive longer sides, with short leg 2n-1, hypotenuse a(n) - (n-1) = A001844(n), and area (n-1)*a(n) = 6*A000330(n-1). - Lekraj Beedassy, Apr 23 2003
Number of divisors of 12^(n-1), i.e., A000005(A001021(n-1)). - Henry Bottomley, Oct 22 2001
More generally, if p1 and p2 are two arbitrarily chosen distinct primes then a(n) is the number of divisors of (p1^2*p2)^(n-1) or equivalently of any member of A054753^(n-1). - Ant King, Aug 29 2011
Number of standard tableaux of shape (2n-1,1,1) (n>=1). - Emeric Deutsch, May 30 2004
It is well known that for n>0, A014105(n) [0,3,10,21,...] is the first of 2n+1 consecutive integers such that the sum of the squares of the first n+1 such integers is equal to the sum of the squares of the last n; e.g., 10^2 + 11^2 + 12^2 = 13^2 + 14^2.
Less well known is that for n>1, a(n) [0,1,6,15,28... ] is the first of 2n consecutive integers such that sum of the squares of the first n such integers is equal to the sum of the squares of the last n-1 plus n^2; e.g., 15^2 + 16^2 + 17^2 = 19^2 + 20^2 + 3^2. - Charlie Marion, Dec 16 2006
a(n) is also a perfect number A000396 when n is an even superperfect number A061652. - Omar E. Pol, Sep 05 2008
Sequence found by reading the line from 0, in the direction 0, 6, ... and the line from 1, in the direction 1, 15, ..., in the square spiral whose vertices are the generalized hexagonal numbers A000217. - Omar E. Pol, Jan 09 2009
Let Hex(n)=hexagonal number, T(n)=triangular number, then Hex(n)=T(n)+3*T(n-1). - Vincenzo Librandi, Nov 10 2010
For n>=1, 1/a(n) = Sum_{k=0..2*n-1} ((-1)^(k+1)*binomial(2*n-1,k)*binomial(2*n-1+k,k)*H(k)/(k+1)) with H(k) harmonic number of order k.
The number of possible distinct colorings of any 2 colors chosen from n colors of a square divided into quadrants. - Paul Cleary, Dec 21 2010
Central terms of the triangle in A051173. - Reinhard Zumkeller, Apr 23 2011
For n>0, a(n-1) is the number of triples (w,x,y) with all terms in {0,...,n} and max(|w-x|,|x-y|) = |w-y|. - Clark Kimberling, Jun 12 2012
a(n) is the number of positions of one domino in an even pyramidal board with base 2n. - César Eliud Lozada, Sep 26 2012
Partial sums give A002412. - Omar E. Pol, Jan 12 2013
Let a triangle have T(0,0) = 0 and T(r,c) = |r^2 - c^2|. The sum of the differences of the terms in row(n) and row(n-1) is a(n). - J. M. Bergot, Jun 17 2013
a(n+1) = A128918(2*n+1). - Reinhard Zumkeller, Oct 13 2013
With T_(i+1,i)=a(i+1) and all other elements of the lower triangular matrix T zero, T is the infinitesimal generator for A176230, analogous to A132440 for the Pascal matrix. - Tom Copeland, Dec 11 2013
a(n) is the number of length 2n binary sequences that have exactly two 1's. a(2) = 6 because we have: {0,0,1,1}, {0,1,0,1}, {0,1,1,0}, {1,0,0,1}, {1,0,1,0}, {1,1,0,0}. The ordinary generating function with interpolated zeros is: (x^2 + 3*x^4)/(1-x^2)^3. - Geoffrey Critzer, Jan 02 2014
For n > 0, a(n) is the largest integer k such that k^2 + n^2 is a multiple of k + n. More generally, for m > 0 and n > 0, the largest integer k such that k^(2*m) + n^(2*m) is a multiple of k + n is given by k = 2*n^(2*m) - n. - Derek Orr, Sep 04 2014
Binomial transform of (0, 1, 4, 0, 0, 0, ...) and second partial sum of (0, 1, 4, 4, 4, ...). - Gary W. Adamson, Oct 05 2015
a(n) also gives the dimension of the simple Lie algebras D_n, for n >= 4. - Wolfdieter Lang, Oct 21 2015
For n > 0, a(n) equals the number of compositions of n+11 into n parts avoiding parts 2, 3, 4. - Milan Janjic, Jan 07 2016
Also the number of minimum dominating sets and maximal irredundant sets in the n-cocktail party graph. - Eric W. Weisstein, Jun 29 and Aug 17 2017
As Beedassy's formula shows, this Hexagonal number sequence is the odd bisection of the Triangle number sequence. Both of these sequences are figurative number sequences. For A000384, a(n) can be found by multiplying its triangle number by its hexagonal number. For example let's use the number 153. 153 is said to be the 17th triangle number but is also said to be the 9th hexagonal number. Triangle(17) Hexagonal(9). 17*9=153. Because the Hexagonal number sequence is a subset of the Triangle number sequence, the Hexagonal number sequence will always have both a triangle number and a hexagonal number. n* (2*n-1) because (2*n-1) renders the triangle number. - Bruce J. Nicholson, Nov 05 2017
Also numbers k with the property that in the symmetric representation of sigma(k) the smallest Dyck path has a central valley and the largest Dyck path has a central peak, n >= 1. Thus all hexagonal numbers > 0 have middle divisors. (Cf. A237593.) - Omar E. Pol, Aug 28 2018
k^a(n-1) mod n = 1 for prime n and k=2..n-1. - Joseph M. Shunia, Feb 10 2019
Consider all Pythagorean triples (X, Y, Z=Y+1) ordered by increasing Z: a(n+1) gives the semiperimeter of related triangles; A005408, A046092 and A001844 give the X, Y and Z values. - Ralf Steiner, Feb 25 2020
See A002939(n) = 2*a(n) for the corresponding perimeters. - M. F. Hasler, Mar 09 2020
Albert H. Beiler, Recreations in the Theory of Numbers, Dover, NY, 1964, p. 189.
Louis Comtet, Advanced Combinatorics, Reidel, 1974, pp. 77-78. (In the integral formula on p. 77 a left bracket is missing for the cosine argument.)
E. Deza and M. M. Deza, Figurate numbers, World Scientific Publishing (2012), page 6.
C. K. Cook and M. R. Bacon, Some polygonal number summation formulas, Fib. Q., 52 (2014), 336-343.
Elena Deza and Michel Deza, Figurate Numbers: presentation of a book, 3rd Montreal-Toronto Workshop in Number Theory, October 7-9, 2011.
Anicius Manlius Severinus Boethius, De institutione arithmetica, Book 2, section 15.
Jonathan M. Borwein, Dirk Nuyens, Armin Straub and James Wan, Random Walk Integrals, The Ramanujan Journal, October 2011, 26:109. DOI: 10.1007/s11139-011-9325-y.
Paul Cooijmans, Odds.
Tom Copeland, Infinitesimal Generators, the Pascal Pyramid, and the Witt and Virasoro Algebras
INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 340
Milan Janjic, Two Enumerative Functions
Sameen Ahmed Khan, Sums of the powers of reciprocals of polygonal numbers, Int'l J. of Appl. Math. (2020) Vol. 33, No. 2, 265-282.
Clark Kimberling, Complementary Equations, Journal of Integer Sequences, Vol. 10 (2007), Article 07.1.4.
Hyun Kwang Kim, On Regular Polytope Numbers, Proc. Amer. Math. Soc., 131 (2002), 65-75.
Peter D. Loly, Ian D. Cameron, Frierson's 1907 Parameterization of Compound Magic Squares Extended to Orders 3^L, L = 1, 2, 3, ..., with Information Entropy, arXiv:2008.11020 [math.HO], 2020.
Simon Plouffe, Approximations de séries génératrices et quelques conjectures, Dissertation, Université du Québec à Montréal, 1992.
Simon Plouffe, 1031 Generating Functions, Appendix to Thesis, Montreal, 1992
Omar E. Pol, Illustration of initial terms of A000217, A000290, A000326, A000384, A000566, A000567., The groupoid of the Triangular Numbers and the generation of related integer sequences, Politecnico di Torino, Italy (2019).
J. C. Su, On some properties of two simultaneous polygonal sequences, JIS 10 (2007) 07.10.4, example 4.6.
A. J. Turner, J. F. Miller, Recurrent Cartesian Genetic Programming Applied to Famous Mathematical Sequences, 2014.
Michel Waldschmidt, Continued fractions, Ecole de recherche CIMPA-Oujda, Théorie des Nombres et ses Applications, 18 - 29 mai 2015: Oujda (Maroc).
Eric Weisstein's World of Mathematics, Cocktail Party Graph
Eric Weisstein's World of Mathematics, Dominating Set
Eric Weisstein's World of Mathematics, Hexagonal Number
Eric Weisstein's World of Mathematics, Maximal Irredundant Set
Thomas Wieder, The number of certain k-combinations of an n-set, Applied Mathematics Electronic Notes, vol. 8 (2008), pp. 45-52.
Index to sequences related to polygonal numbers
Index entries for two-way infinite sequences
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
a(n) = Sum_{k=1..n} tan^2((k - 1/2)*Pi/(2n)). - Ignacio Larrosa Cañestro, Apr 17 2001
E.g.f.: exp(x)*(x+2x^2) - Paul Barry, Jun 09 2003
G.f.: x*(1+3*x)/(1-x)^3. - Simon Plouffe in his 1992 dissertation, dropping the initial zero
a(n) = A000217(2*n-1) = A014105(-n).
a(n) = 4*A000217(n-1) + n. - Lekraj Beedassy, Jun 03 2004
a(n) = right term of M^n * [1,0,0], where M = the 3 X 3 matrix [1,0,0; 1,1,0; 1,4,1]. Example: a(5) = 45 since M^5 *[1,0,0] = [1,5,45]. - Gary W. Adamson, Dec 24 2006
Row sums of triangle A131914. - Gary W. Adamson, Jul 27 2007
Row sums of n-th row, triangle A134234 starting (1, 6, 15, 28, ...). - Gary W. Adamson, Oct 14 2007
Starting with offset 1, = binomial transform of [1, 5, 4, 0, 0, 0, ...]. Also, A004736 * [1, 4, 4, 4, ...]. - Gary W. Adamson, Oct 25 2007
a(n)^2 + (a(n)+1)^2 + ... + (a(n)+n-1)^2 = (a(n)+n+1)^2 + ... + (a(n)+2n-1)^2 + n^2; e.g., 6^2 + 7^2 = 9^2 + 2^2; 28^2 + 29^2 + 30^2 + 31^2 = 33^2 + 34^2 + 35^2 + 4^2. - Charlie Marion, Nov 10 2007
a(n) = binomial(n+1,2) + 3*binomial(n,2).
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3), a(0)=0, a(1)=1, a(2)=6. - Jaume Oliver Lafont, Dec 02 2008
a(n) = a(n-1) + 4*n - 3 (with a(0)=0). - Vincenzo Librandi, Nov 20 2010
a(n) = A007606(A000290(n)). - Reinhard Zumkeller, Feb 12 2011
a(n) = 2*a(n-1) - a(n-2) + 4. - Ant King, Aug 26 2011
a(n+1) = A045896(2*n). - Reinhard Zumkeller, Dec 12 2011
a(2^n) = 2^(2n+1) - 2^n. - Ivan N. Ianakiev, Apr 13 2013
a(n) = binomial(2*n,2). - Gary Detlefs, Jul 28 2013
a(4*a(n)+7*n+1) = a(4*a(n)+7*n) + a(4*n+1). - Vladimir Shevelev, Jan 24 2014
Sum_{n>=1} 1/a(n) = 2*log(2) = 1.38629436111989..= A016627. . - Vaclav Kotesovec, Apr 27 2016
Sum_{n>=1} (-1)^n/a(n) = log(2) - Pi/2. - Vaclav Kotesovec, Apr 20 2018
a(n+1) = trinomial(2*n+1, 2) = trinomial(2*n+1, 4*n), for n >= 0, with the trinomial irregular triangle A027907. a(n+1) = (n+1)*(2*n+1) = (1/Pi)*Integral_{x=0..2} (1/sqrt(4 - x^2))*(x^2 - 1)^(2*n+1)*R(4*n-2, x) with the R polynomial coefficients given in A127672. [Comtet, p. 77, the integral formula for q=3, n -> 2*n+1, k = 2, rewritten with x = 2*cos(phi)]. - Wolfdieter Lang, Apr 19 2018
Sum_{n>=1} 1/(a(n))^2 = 2*Pi^2/3-8*log(2) = 1.0345588... = 10*A182448 - A257872. - R. J. Mathar, Sep 12 2019
a(n) = (A005408(n-1) + A046092(n-1) + A001844(n-1))/2. - Ralf Steiner, Feb 27 2020
Product_{n>=2} (1 - 1/a(n)) = 2/3. - Amiram Eldar, Jan 21 2021
A000384:=n->n*(2*n-1); seq(A000384(k), k=0..100); # Wesley Ivan Hurt, Sep 27 2013
Table[n*(2 n - 1), {n, 0, 100}] (* Wesley Ivan Hurt, Sep 27 2013 *)
LinearRecurrence[{3, -3, 1}, {0, 1, 6}, 50] (* Harvey P. Dale, Sep 10 2015 *)
Join[{0}, Accumulate[Range[1, 312, 4]]] (* Harvey P. Dale, Mar 26 2016 *)
(* For Mathematica 10.4+ *) Table[PolygonalNumber[RegularPolygon[6], n], {n, 0, 48}] (* Arkadiusz Wesolowski, Aug 27 2016 *)
PolygonalNumber[6, Range[0, 20]] (* Eric W. Weisstein, Aug 17 2017 *)
CoefficientList[Series[x*(1 + 3*x)/(1 - x)^3 , {x, 0, 100}], x] (* Stefano Spezia, Sep 02 2018 *)
(PARI) a(n)=n*(2*n-1)
(PARI) a(n) = binomial(2*n, 2) \\ Altug Alkan, Oct 06 2015
(Haskell)
a000384 n = n * (2 * n - 1)
a000384_list = scanl (+) 0 a016813_list
-- Reinhard Zumkeller, Dec 16 2012
(Python 3) # Intended to compute the initial segment of the sequence, not isolated terms.
def aList():
x, y = 1, 1
yield 0
while True:
yield x
x, y = x + y + 4, y + 4
A000384 = aList()
print([next(A000384) for i in range(49)]) # Peter Luschny, Aug 04 2019
Cf. A014105, A127672, A027907, A005408, A046092, A001844.
a(n)= A093561(n+1, 2), (4, 1)-Pascal column.
a(n) = A100345(n, n-1) for n>0.
Cf. A002939 (twice a(n): sums of Pythagorean triples (X, Y, Z=Y+1).
Sequence in context: A094142 A081873 A096892 * A164000 A212087 A301292
Adjacent sequences: A000381 A000382 A000383 * A000385 A000386 A000387
nonn,easy,nice,changed
N. J. A. Sloane
Partially edited by Joerg Arndt, Mar 11 2010
approved | https://oeis.org/A000384 | CC-MAIN-2021-10 | refinedweb | 2,389 | 74.19 |
To blog Previous post | Next post
Achieve the three pillars of observability – link Plumbr distributed traces with logs
The modern understanding of how to do observability right stands on the “three pillars of observability” – metrics, logs, and distributed traces. In order to really benefit from these three pillars, you need to implement a holistic solution that ties data from all three together.
Plumbr gives metrics and distributed traces out of the box – just attach our monitoring agents and enjoy metrics directly correlated with end-user experience and distributed traces for all failed and slow interactions or API calls. However, as Plumbr is not a log monitoring tool, we’ve lately started getting questions from our customers around how to link Plumbr data to the logs that the monitored applications produce.
The good news is, for Java applications this can be easily achieved with the help of our Java Agent API. The following blog post will show you how.
To link an entry in a log file with the Plumbr trace (or transaction, as we call it) we need to log the trace ID with all log entries produced while servicing the request by all downstream nodes.
The standard approach for such a task is to use a Mapped Diagnostic Context (MDC) of the logging framework. MDC is essentially a thread local map, where custom code can put entries and which can be referenced in the logger configuration to add values from that map to the logger output. In the Java world all major logging frameworks, like slf4j, log4j and logback, support MDC. So, once we get our trace ID to the MDC, the rest is just a matter of logger configuration.
In order to do that, we need to integrate three components:
- Plumbr Java API – Get the ongoing trace ID.
- Web framework – Run our integration code for every request as early as possible.
- Logger – Put the trace Id to the MDC and configure the logger to output the trace Id.
Using the Plumbr Java API is simple – add the dependency and you’re good to go. Just copy and paste the suitable snippet for your build system from the Bintray () or Maven Central. To use the library in the code, the following import must be added to your source file:
import eu.plumbr.api.Plumbr;
Trace ID can be obtained like this:
Plumbr.getCurrentSpan().getTransactionId()
The call chain is null-safe – if there is no Plumbr Java agent attached to the JVM, the call will return
not-monitored-with-plumbr. You can check whether there is an ongoing Plumbr transaction by calling
Plumbr.getCurrentSpan().isNull().
Next, web framework integration. For servlet-based frameworks the integration choice is to use a servlet filter that will run first. Servlet filters can be registered either directly in the web.xml or using the web framework’s capabilities. Following is an example of such filter for Spring MVC/Boot:
@Component @Order(Ordered.HIGHEST_PRECEDENCE) public class LoggingMdcFilter implements Filter { @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) { MDC.put("PlumbrTxId", Plumbr.getCurrentSpan().getTransactionId()); try { chain.doFilter(request, response); } finally { MDC.remove("PlumbrTxId"); } } }
@Component is Spring’s annotation to register the Spring Bean.
@Order(Ordered.HIGHEST_PRECEDENCE) is forcing the filter to be the first in the filter chain, preceding other common filters like Spring Security filters.
MDC in this example is from the slf4j.
The last task is to configure the logger to output the trace ID. For the Spring Boot and logback, one can configure this via
application.properties:
logging.pattern.file=%d [%X{PlumbrTxId}] %-5level [%thread] %logger{35} - %msg%n
%X{PlumbrTxId} will insert the value from the MDC to the log.
With the above changes in place, if the Plumbr Java agent is attached to the application, the log lines of the application will start looking like this:
2020-07-08 11:58:01,453 [b59b5b1f-2771-f245-1f63-fd7d2983a1d0] INFO [ e.p.d.o.FindOwnersForm - querying database.
Voilà – the UUID in square brackets in the above log is the ID of the distributed trace as captured by Plumbr.
The last task is to correlate the logs with distributed traces. Plumbr Agents will take care of transmitting the trace id between monitored services, so all nodes participating in the distributed request will have the same trace ID. Whenever the API call is slow or failed, Plumbr will make the full trace available in the UI:
To find all logs related to this slow trace, you can copy the trace ID from the URL in the browser’s location bar and search for it in your logs.
Finally, a note from our product team. If you plan to integrate Plumbr with your logs, or have already done so – please reach out to us at support@plumbr.io. We are planning to make log integration even smoother in the future and are looking for real life customer stories. Understanding your needs will help us come up with the best solution. | https://plumbr.io/blog/java/linking-plumbr-distributed-traces-with-logs | CC-MAIN-2022-21 | refinedweb | 827 | 62.17 |
On 09/21/16 16:38, Richard Earnshaw (lists) wrote: > On 20/09/16 16:30, Bernd Schmidt wrote: >> On 09/20/2016 05:18 PM, Jeff Law wrote: >>>> I assume HARD_FRAME_POINTER_REGNUM is never zero. >>> It could be zero. It's just a hard register number. No target has the >>> property that its hard frame pointer register is 0 though :-) >> >> git blame to the rescue. The current state comes from one of tbsaunde's >> cleanup patches: >> >>> diff --git a/gcc/regrename.c b/gcc/regrename.c >> index 174d3b5..e5248a5 100644 >> --- a/gcc/regrename.c >> +++ b/gcc/regrename.c >> @@ -442,12 +442,10 @@ rename_chains (void) >> continue; >> >> if (fixed_regs[reg] || global_regs[reg] >> -#if !HARD_FRAME_POINTER_IS_FRAME_POINTER >> - || (frame_pointer_needed && reg == HARD_FRAME_POINTER_REGNUM) >> -#else >> - || (frame_pointer_needed && reg == FRAME_POINTER_REGNUM) >> -#endif >> - ) >> + || (!HARD_FRAME_POINTER_IS_FRAME_POINTER && frame_pointer_needed >> + && reg == HARD_FRAME_POINTER_REGNUM) >> + || (HARD_FRAME_POINTER_REGNUM && frame_pointer_needed > > Surely, based on the logic of the previous ifdefs, this line should read > + || (HARD_FRAME_POINTER_IS_FRAME_POINTER && frame_pointer_needed >
Advertising
I think the block above does not match this logic, it was also modified recently. Why is it handling FP and HFP, but then only HFP ? /* Don't clobber traceback for noreturn functions. */ if (frame_pointer_needed) { add_to_hard_reg_set (&unavailable, Pmode, FRAME_POINTER_REGNUM); if (!HARD_FRAME_POINTER_IS_FRAME_POINTER) add_to_hard_reg_set (&unavailable, Pmode, HARD_FRAME_POINTER_REGNUM); } Bernd. | https://www.mail-archive.com/gcc-patches@gcc.gnu.org/msg147920.html | CC-MAIN-2016-40 | refinedweb | 188 | 51.44 |
Deep learning can be a daunting field for beginners. And it was no different for me – most of the algorithms and terms sounded from another world! I needed a way to understand the concepts from scratch in order to figure out how things actually work. And lo and behold, I found an interesting way to learn deep learning concepts.
The idea is pretty simple. To understand any deep learning concept, imagine this:
A mind of a newly born baby is capable of performing a trillion calculations. And, all you need is time (epochs) and nuture (algorithms) to make it understand a “thing” (problem case). I personally call this the babifying technique.
This intuition inherently works because neural networks are inspired by the human brain in the first place. So, re-engineering the problem should definitely work! Let me explain that with a example.
What if we trained our model on American culture images, and later asked it to predict labels of traditional Indian dance folks?
Apply the re-engineering idea to the question. It would be akin to imagining a kid who has been brought up in the USA, and has been to India for a vacation. Guess what label an American kid would predict for this image? Keep that in your mind before scrolling further.
This image has a lot of traditional dressing from traditional Indian culture.
What would a kid born in America caption it (or) a model that is exposed to an American dataset?
From my experiments, the model predicted the following caption:
A Man Wearing A Hat And A Tie
It might sound funny if you’re aware of Indian culture, but that’s the bias of algorithms. Image caption generation works in a similar manner. There are two main architectures of an image captioning model.
Understanding Image Caption Generation
The first one is an image based model which extracts the features of the image, and the other is a language based model which translates the features and objects given by our image-based model to a natural sentence.
In this article, we will be using a pretrained CNN network that is trained on the ImageNet dataset. The images are transformed into a standard resolution of 224 X 224 X 3. This will make the input constant for the model for any given image.
The condensed feature vector is created from a convolutional neural network (CNN). In technical terms, this feature vector is called embedding, and the CNN model is referred to as an encoder. In the next stage, we will be using these embeddings from the CNN layer as input to theLSTM network, a decoder.
In a sentence language model, LSTM is predicting the next word in a sentence. Given the initial embedding of the image, the LSTM is trained to predict the most probable next value of the sequence. Its just like showing a person a series of pictures and asking them to remember the details. And then later show them a new image which has similar content to the previous images and ask them to recall the content. This “recall” and “remember” job is done by our LSTM network.
Technically, we also insert <start> and <stop> stoppers to signal the end of the caption.
['<start>', 'A', 'man', 'is', 'holding', 'a', 'stone', '<end>']
This way, the model learns from various instances of images and finally predicts the captions for unseen images. To learn and dig deeper, I highly recommend reading the following references:
- Show and Tell: A Neural Image Caption Generator by the Google Research team
- Automatic Image Captioning using Deep Learning (CNN and LSTM) in PyTorch by Analytics Vidhya
Prerequisites
To replicate the results of this article, you’ll need to install the pre-requisites. Make sure you have anaconda installed. If you want to train your model from scratch, follow the below steps, else skip over to the Pretrained model part.
git clone
cd coco/PythonAPI/
make
python setup.py build
python setup.py install
cd ../../
git clone
cd pytorch-tutorial/tutorials/03-advanced/image_captioning/
pip install -r requirements.txt
Pretrained model
You can download the pretrained model from here and the vocabulary file from here. You should extract pretrained_model.zip to
./models/ and vocab.pkl to
./data/ using the
unzip command.
Now that you have the model ready, you can predict the captions using:
$ python sample.py --image='png/example.png'
The original repository and code are implemented in the command line interface and you will need to pass Python arguments. To make it more intuitive, I have made a few handy functions to leverage the model in our Jupyter Notebook environment.
Let’s begin! Import all the libraries and make sure the notebook is in the root folder of the repository:
import torch
import matplotlib.pyplot as plt
import numpy as np
import argparse
import pickle
import os
from torchvision import transforms
from build_vocab import Vocabulary
from model import EncoderCNN, DecoderRNN
from PIL import Image
Add this configuration snippet and function to load_image from notebook:
# Device configuration
device = torch.device(‘cuda’ if torch.cuda.is_available() else ‘cpu’)
#Function to Load and Resize the image
def load_image(image_path, transform=None):
image = Image.open(image_path)
image = image.resize([224, 224], Image.LANCZOS)
if transform is not None:
image = transform(image).unsqueeze(0)
return image
Hard code the constants with pretrained model parameters. Note that these are hard coded and should not be modified. The pretrained model was trained using the following parameters. Changes should only be made if you are training your model from scratch.
# MODEL DIRS
ENCODER_PATH = './models/encoder-5-3000.pkl'
DECODER_PATH = './models/decoder-5-3000.pkl'
VOCAB_PATH = 'data/vocab.pkl'
# CONSTANTS
EMBED_SIZE = 256
HIDDEN_SIZE = 512
NUM_LAYERS = 1
Now, code a PyTorch function that uses pretrained files to predict the output:
def PretrainedResNet(image_path, encoder_path=ENCODER_PATH,
decoder_path=DECODER_PATH,
vocab_path=VOCAB_PATH,
embed_size=EMBED_SIZE,
hidden_size=HIDDEN_SIZE,
num_layers=NUM_LAYERS):
# Image preprocessing
transform = transforms.Compose([
transforms.ToTensor(),
transforms.Normalize((0.485, 0.456, 0.406),
(0.229, 0.224, 0.225))])
# Load vocabulary wrapper
with open(vocab_path, 'rb') as f:
vocab = pickle.load(f)
# Build models
encoder = EncoderCNN(embed_size).eval() # eval mode (batchnorm uses moving mean/variance)
decoder = DecoderRNN(embed_size, hidden_size, len(vocab), num_layers)
encoder = encoder.to(device)
decoder = decoder.to(device)
# Load the trained model parameters
encoder.load_state_dict(torch.load(encoder_path))
decoder.load_state_dict(torch.load(decoder_path))
# Prepare an image
image = load_image(image_path, transform)
image_tensor = image.to(device)
# Generate a caption from the image
feature = encoder(image_tensor)
sampled_ids = decoder.sample(feature)
sampled_ids = sampled_ids[0].cpu().numpy() # (1, max_seq_length) -> (max_seq_length)
# Convert word_ids to words
sampled_caption = []
for word_id in sampled_ids:
word = vocab.idx2word[word_id]
sampled_caption.append(word)
if word == '<end>':
break
sentence = ' '.join(sampled_caption)[8:-5].title()
# Print out the image and the generated caption
image = Image.open(image_path)
return sentence, image
To predict the labels use :
plt.figure(figsize=(12,12))
predicted_label, image = PretrainedResNet(image_path='IMAGE_PATH')
plt.imshow(image)
print(predicted_label)
We had Hulk. Now we have ML!
Let us get started with producing captions on some scenes from Avenger’s Infinity War, and see how well it generalizes!
Test Image: Mark I
Have a look at the image shown below:
What do you think this image is about? Hold a caption in your mind without scrolling down.
Let’s see how our model predicts this image..
Well, the prediction for this image is exactly to the point. Makes me curious if I can train a whole model again just on the Marvel Universe to predict the names. Personally, I would love to see Tony Stark being represented as Iron Man.
Test Image: Mark II
Perfect again! In fact, Tony is holding a cellular remote mobile to call Steve Rogers.
Test Image: Mark III
Honestly, even I am pretty amazed at the learning of the model. The model captured the front, as well as the background layer information. Although it misclassified the Panther statue as a mountain, it’s still a pretty good prediction overall.
Test image: Mark IV
Oh boy! Rocket Raccon is going to be really upset. He gets super annoyed when people around the galaxy refer to him as a rabbit or a talking panda. Dog is going to get on his nerves a bit!
Plus, the model is trained on cars, and hence spaceships are out of the question here. But I am quite happy that our model successfully predicted Raocket Racoon sitting near a “window”.
Test image: Mark V
“Woods”, correct. “Man sitting”, correct. “A Rock”, unfortunate, but correct.
Our model is absolutely brilliant at captioning the images. Taking this forward, I would like to train it further on the Marvel Universe to see if the model can recognize the names, context or perhaps even the humor.
Final Test: Avengers 4 Prediction
The model pretty much hints at the new soul world twist in the Avenger’s 4 plot. I will leave this one out for you! Do let me know what you interpret from the last image in the comments below.
End Notes
Artificial Intelligence and Machine learning are getting awesome with every breakthrough. I hope you now have a basic intuition of how image captioning works, and had fun doing it the Avenger’s way.
PS: Ultron is gone for good. We assure you that we are NOT working on that AI singularity yet.
So, take a break and share your love through claps, and don’t forget to subscribe Analytics Vidhya publication for more awesome stuff.
Source: Deep Learning on Medium | http://mc.ai/introduction-to-image-caption-generation-using-the-avengers-infinity-war-characters/ | CC-MAIN-2019-09 | refinedweb | 1,574 | 58.08 |
Accessing Data Between Multiple Forms
I am new to Qt and have run into a problem. I currently have two window. A main window and a secondary window.
MainWindow.h
namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); void allChecked(); void openNewWindow(); void setData(int input) { stuff = input; } private: Ui::MainWindow *ui; SecWindow * mNewWindow; int stuff; };
MainWindow.cpp
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QDebug> #include <QMessageBox> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); } MainWindow::~MainWindow() { delete ui; } void MainWindow::on_pushButton_6_clicked() { openNewWindow(); this->hide(); } void MainWindow::openNewWindow() { mNewWindow = new SecWindow(); mNewWindow->setHome(this); mNewWindow->show(); }
SecWindow.h
#include <QMainWindow> #include <QString> namespace Ui { class SecWindow; } class SecWindow : public QMainWindow { Q_OBJECT public: explicit SecWindow(QWidget *parent = 0); ~SecWindow(); void setHome(QMainWindow * mhome) { home = mhome; } private: Ui::SecWindow *ui; QMainWindow * home; };
SecWindow.cpp
#include "secwindow.h" #include "ui_secwindow.h" SecWindow::SecWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::SecWindow) { ui->setupUi(this); } SecWindow::~SecWindow() { delete ui; } void SecWindow::on_pushButton_clicked() { home->show(); this->close(); } void SecWindow::on_intButton_clicked() { QString x; x = ui->intLine->text(); int n = x.toInt(); //This is where I am having problem home->world->setData(n); home->show(); this->close; }
When I click a button in the SecWindow form, I would like to be able to access the data and functions stored in MainWindow (similar to as if I was already in that window), but I cannot. It may be because home is declared as a QMainWindow in SecWindow, but it also won't allow me to declare it as a MainWindow.
Any solutions or alternatives to what I am trying to accomplish would be much appreciated!
Hi and welcome to devnet,
You should take a look at Qt's signals and slots for communicating data between your widgets.
SecWindow doesn't need to know anything about MainWindow.
Note that you have a memory leak, you create a new SecWindow each time you call openNewWindow but never delete it.
Signals and slots don't quite incorporate everything that I was trying to do but I was able to figure it out by creating a separate database class and passing that class to both windows so that they could both access the same data.
I thought
.close()deletes the window. How does one delete the window then? And if
.closedoesn't completely delete the window, what is the difference between
.hide()and
Thanks for your reply!
You can set the
Qt::WA_DeleteOnClosewidget attribute to make Qt delete your widget when closing.
Hide just hides the widget. Close will also hide the widget if the event is accepted and trigger the deletion of the widget if WA_DeleteOnClose is set
@SGaist I need help with one more thing. I am trying to add an icon to my application but am having no luck. It is a mac application so I added the .icns file to resources and then in the .pro file add
ICON = file.icnsbut this does not work. What am I doing wrong?
Thanks for all the help.
Setting the application icon in Qt's documentation | https://forum.qt.io/topic/54635/accessing-data-between-multiple-forms | CC-MAIN-2017-43 | refinedweb | 519 | 57.27 |
This article has been excerpted from book "The Complete Visual C# Programmer's Guide" from the Authors of C# Corner.A delegate is a class that can hold a reference to a method. Unlike other classes, a delegate class has a signature, and it can hold references only to methods that match its signature. A delegate is thus equivalent to a type-safe function pointer or a callback. Although delegates have other uses, the discussion here focuses on the event-handling functionality of delegates. Events in C# are handled by delegates, which serve as a mechanism that defines one or more callback functions to process events. An event is a message sent by an object to signal the occurrence of an action. The action could arise from user interaction, such as a mouse click, or could be triggered by some other program logic. The object that triggers the event is called the event sender. The object that captures the event and responds to it is called the event receiver.In event communication, the event sender class does not know which object or method will handle the events it raises. It merely functions as an intermediary or pointer-like mechanism between the source and the receiver, as illustrated in Listing 5.47. The .NET framework defines a special type delegate that serves as a function pointer.Listing 5.47: DelegateEvent.cs, Delegates and Events Example using System;public class MyEvt{ public delegate void t(Object sender, MyArgs e); // declare a delegate public event t tEvt; //declares an event for the delegate public void mm() { //function that will raise the callback MyArgs r = new MyArgs(); tEvt(this, r); //calling the client code } public MyEvt() { }}//arguments for the callbackpublic class MyArgs : EventArgs{ public MyArgs() { }}public class MyEvtClient{ MyEvt oo; public MyEvtClient() { this.oo = new MyEvt(); this.oo.tEvt += new MyEvt.t(oo_tt); } public static void Main(String[] args) { MyEvtClient cc = new MyEvtClient(); cc.oo.mm(); } //this code will be called from the server public void oo_tt(object sender, MyArgs e) { Console.WriteLine("yes"); Console.ReadLine(); }}Figure 5.10: Screen Output Generated from Listing 5.47 ConclusionHope this article would have helped you in understanding Delegates and Events in C#. See other articles on the website on .NET and C#.
I have over 15 years of IT industry experience with Microsoft technologies. I hold Masters degree in Computer Science and Applications and Bachelor’s degree in Mathematics. I am responsible for ...
©2014
C# Corner. All contents are copyright of their authors. | http://www.c-sharpcorner.com/uploadfile/prvn_131971/delegates-and-events-in-C-Sharp/ | CC-MAIN-2014-52 | refinedweb | 417 | 57.37 |
As part of an ongoing project I am just about to finish, I had a need to use a 3rd party web service. Now I am quite a cautious sort of chap when it comes to using web services. So I generally try and ensure that I try and make my code as robust as possible when dealing with such code.
For example, when calling a web service, there is no guarantee that the web server is not going to die, after all it could be a web service that is hosted on a single server. Of course, if the web service is from a reputable source, it's probably going to be a web farm that you're dealing with. Nevertheless, it’s good to plan for problems such as a timeout, lack of results, remote connection denials, security issues. These calls all lead into problems when dealing with a web service.
To this end, I have written the following bit of code to allow me to call a method asynchronously but have a timeout. This code does not use a web service, but rather shows the pattern that could be used to call any method asynchronously with a timeout. Which of course fits well with the idea of calling a web service, call the web service asynchronously, wait for a reasonable time, then see if the results are available. If they are, use them, if not alert the user in whatever manner you have opted for.
Anyway the code is fairly simple and is as follows:
using System;
using System.Collections.Generic;
using System.Text;
namespace Explorer3D
{
class AsynchMethodCall
{
public AsynchMethodCall()
{
string[] usersFetched;
//call the delegate asynchronously and wait for the results
//from the asynch call.
fetchNumberOfUsersDelegate fetchUsers = getNumberOfUsers;
IAsyncResult asynchResult = fetchNumberOfUsersDelegate.BeginInvoke(1000000,
null, null);
while (!asynchResult.AsyncWaitHandle.WaitOne(5000, false))
{
//waiting for result for exactly 5 seconds
}
//try and catch any nasty exception that may have occurred
try
{
usersFetched = fetchUsers.EndInvoke(asynchResult);
}
catch(Exception ex)
{
Console.WriteLine(ex.Message);
}
}
/// <summary>
/// The delegate that will be called asynchronously
/// </summary>
internal delegate string[] fetchNumberOfUsersDelegate(int someValue);
/// <summary>
/// A supposedly long running method
/// </summary>
/// <param name="numberOfUsersToFetch">number of users to fetch</param>
/// <returns>a string array of users fetched</returns>
private string[] getNumberOfUsers(long numberOfUsersToFetch)
{
//do the long bit of work, say gather the number of users
//indicated by the numberOfUsersToFetch parameter from a remote
//database
}
}
}
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)
I am lucky enough to have won a few awards for Zany Crazy code articles over the years
return
BackgroundWorker
KevinAG wrote:I'm not sure what your sample code is supposed to accomplish. I know it's just sample code, but it doesn't look like you realize that calling the .EndInvoke() method will block the calling thread until the asynchronous operation has completed. So even though you block and wait for 5 seconds, you do nothing to actually cancel the asynchronous operation. Keep in mind that your asynchronous operation must actually be cancelable.
General News Suggestion Question Bug Answer Joke Praise Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages. | https://www.codeproject.com/Articles/37365/Calling-Method-Asynchronously-With-A-Timeout | CC-MAIN-2018-09 | refinedweb | 542 | 50.06 |
Jeffrey E Care wrote:
> I know I'm a little late to this party - I've been tied up in my new
> assignment. Anyway, FWIW here's my opinion:
>
>> I've been thinking about how we could improve our diagnostics, by moving
>
>> more of the diags into tasks themselves. Every task could have a
>> diagnostics(PrintStream) method that would be called to do the diags.
>
> Sounds like a good idea to me; might I suggest that we add a similar
> capability for an entire antlib (more on this below)?
>
>> 1. we could introspect for a public static void diagnostics(PrintStream)
>
>> throws BuildException method. This would let us diagnose even if you
>> cannot instantiate the task enough for new() to work.
>
> I'm a little rusty on static method overrides...if A extends B, can both A
> and B have a static method with identical signatures? This should be easy
> to test, but I'm feeling lazy at the moment :)
Yes, because static stuff gets set up at compile time (they are
inherently non virtual). JUnit3 uses statics to set up test suites.
>
>> 2. or we'd use an interface Diagnostics that things could implement
>
> Intuitively this feels like a cleaner approach to me. Admittedly you need
> an instance to work with, but we'd just need to document the fact that if
> the constructor fails you can't get any diags; it shouldn't be too hard
> for tasks implementing this interface to put volatile init code somewhere
> other than the constructor.
Well that's it, you see, the diags could be more helpful
>
>> 3. the -diagnostics command and <diagnostics> tasks could be made to
>> diagnose a single task
>>
>> ant -diagnostics -task junit
>>
>> and maybe even a single antlib namespace
>>
>> ant -diagnostics -xmlns antlib:org.example.something
>
> Okay, so I see that you've considered the antlib case to a certain extent.
> This has me thinking about antlib auto-discovery again. Instead of
> requiring users to specify the task or antlib they want diags on, I think
> it would be easier for users to add a "-fullDiagnostics" option that would
> dump the normal "-diagnostics" info _plus_ whatever task/antlib diags it
> could find. For that to work we would need some sort of auto-discovery
> mechanism (which has been discussed before).
1. yes, you could do diags on a specific library. We could do it for all
XML namespaces in scope in the doc, since that implicitly triggers some
antlib loading.
2. we could extend every <antlib> declaration with a homepage attribute,
and a diagnostics attr that takes a classname. These would be for
specific things,.
>
> I also think we could add something similar for version information; a
> "-fullVersion" flag could dump the normal "-version" info _plus_ version
> info about discovered antlibs.
Yes, I'd like to know about known antlibs. Incidentally, Ant1.7.1 lists
all known tasks in a namespace if it doesnt find the one you asked for.
-steve
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org | http://mail-archives.eu.apache.org/mod_mbox/ant-dev/200702.mbox/%3C45DB1C27.4080906@apache.org%3E | CC-MAIN-2020-10 | refinedweb | 511 | 61.97 |
These days Sublime Text uses TextMate style syntax definitions in *.tmLanguage files. There's an introduction at.
You can download existing ones from code.google.com/p/tmbundles4win/, the only caveat being that the files must have a .tmLanguage extension. Some already do, others have to be renamed from .plist to .tmLanguage to be recognised.
It's worth noting that sublime uses Apple's byzantine propertly-list-in-xml format, which is equivalent to what you see in the above documentation, but more verbose.
Any syntax definition that has file extensions associated with it appears as a selectable option, so if you make sure you have:
...
<key>fileTypes</key>
<array>
<string>some-extension</string>
</array>
...
then it'll be an available choice.
Note that tmLanguage files are not presently auto reloaded, which I realise isn't ideal.
wrt the settings, just make a *.sublime-options file with the same base name as the .tmLanguage file, and it'll get picked up.
Below is a simple example of a definition that marks up *.sublime-options files, which will be included in the next beta:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>sublime-options</string>
<string>sublime-build</string>
</array>
<key>name</key>
<string>Sublime Options</string>
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.sublime-options</string>
</dict>
</dict>
<key>match</key>
<string>(#).*$\n?</string>
<key>name</key>
<string>comment.line.number-sign.sublime-options</string>
</dict>
<dict>
<key>match</key>
<string>\b(:?[1-9]+[0-9]*|0)\b</string>
<key>name</key>
<string>constant.numeric.integer.decimal.sublime-options</string>
</dict>
<dict>
<key>match</key>
<string>\b(:?true|false)\b</string>
<key>name</key>
<string>constant.language.sublime-options</string>
</dict>
</array>
<key>scopeName</key>
<string>source.sublime-options</string>
</dict>
</plist>
Ctrl+Alt+P is a handy key binding to keep in mind as you're developing a syntax definition, it shows you the name assigned to the character that's just to the right of the cursor.
OK, great! I've got a project I'm working on with a fiction author, and I should be able to develop, basically, a custom fiction-writing IDE for him entirely in Sublime. Sweet.
(BTW, I noticed that the .package-menu files aren't registered as being XML files, so they don't syntax highlight yet.)
I've added this info to the wiki at sublimetextwiki.com/cgi-bin/ ... wnLanguage
Anyone out there trying this, you'll find yourself restarting sublime A LOT. If you have python installed, you can run this script; it'll create a new instance of Sublime every time you close. Very useful for reloading those .tmLanguage files.
# endlessly sublime
#
# reloads sublime text over and over and over...
# useful if you need to restart A LOT, for example
# while developing languages
import os, sys, subprocess
sublimePath = "c:\\program files\\sublime text\\sublimetext.exe"
i = 0
while i < 100: # limited just in case it starts spawning forever...
os.spawnl(os.P_WAIT, sublimePath)
i = i + 1
Well,. | https://forum.sublimetext.com/t/how-to-create-a-new-language/47 | CC-MAIN-2017-22 | refinedweb | 529 | 52.36 |
view raw
I have the code:
class Father{
String name="father";
void f(){System.out.print("father class");}
}
class Son extends Father{
String name = "son";
void f(){System.out.print("son class");}
void f2(){}
}
public class Test {
public static void main(String[] args) {
Father s = new Son();
System.out.println(s.name);// outputs father
s.f();// outputs "son class"
s.f2();// s does not have f2
}
}
I think it is easier to explain with an animal example:
class Animal { void printName() { System.out.println("Animal"); } } class Dog extends Animal{ @Override void printName() { System.out.println("Dog"); } } class Cat extends Animal{ @Override void printName() { System.out.println("Cat"); } void meow() { System.out.println("meow"); } }
When you extend classes, the child class can override parent's methods and can have its own methods. In my Animal example the generic Animal object can only give its name, but the Cat object can give its name and also meow. Obviously, the meow method is specific to Cat as we know that Dogs can't do meow and Animals in general.
When you do
Animal animal = new Cat();
You actually create an instance of the Cat but use it as a general Animal. Thus, your animal instance only has methods which are available in the Animal class but the execution of the methods overridden by Cat class will be delegated to the Cat class. if you want to execute Cat's specific methods then you need to cast your Animal to the Cat
(Cat) animal.meow();
In your example to call f2() method you need to cast your father object to the son first
(Son)s.f2(); | https://codedump.io/share/XwR5GK6uUcP2/1/difference-between-different-ways-in-instantiating-an-object-in-java | CC-MAIN-2017-22 | refinedweb | 272 | 56.35 |
Rajendra's Blog
Passed SCEA5 Part1
Thank God. I have passed the Sun Certified Enterprise Architect (SCEA5) Part1 Exam with 57% score. This is the most difficult Sun Certification exam. This is because questions models real time scenarios which demands industry exposure. Two hours time was not sufficient to answer all the questions. I have left last six questions unanswered due to time constrain. Few questions are easy direct questions but most of the questions describes problem and asks you to architect solution for the problem. I took almost two and half week to prepare for the exam burning all my Christmas holidays,week-ends and comp-off vacation that we got for working weed ends in the company. I have put in tremendous hard work reading the following books with in two weeks. The books that I have referred are: 1) Elements of Reusable Object Oriented Software (GOF book) 2) Head First Design pattrens 3) Core J2EE patterns (Deepak Alur,John Crupi, Dan Malks) 4) Core Security patterns (Chris steel,R Nagappa, Ray Lai) 5) Core Servlets and Java Server Pages (Vol I by Marty Hall, Larry Brown) 6) Core Servlets and Java Server Pages (Vol II Marty Hall, Larry Brown, Yakoov) 7) Core Java Server Faces (David Geary, Cay HorstMaan) 8) SOA using Java web Services (Mark D Hansen) 9) Enterpise Java Beans( Bill Burke) 10) SCEA Study Guide (Mark Cade, Simon Robert). 11) (Mikalai Zaikin) 12) Whiz Labs SCEA5 Mock EXam. I am happy that I have passed the exam otherwise I thought I should not go for second attempt as I am not spending any time with my family.
Posted at 03:08PM Mar 02, 2009 by Rajendra Gutupalli in Personal | Comments[2]
JavaFX Code Contest
Hey Do you know the JavaFX Contest from Sun. Yes I think you might be aware of this and you are on the way to register for the Contest.Let me pass the news for the techies and Students in India. Sun has announced Code JavaFX contest. Registration for the Contest is open from 16/02. JavaFX is descriptive scripting language for developing Rich internet Applications. It doesn't take much time to get familiarized with JavaFX if you are a Java developer.Don't Delay. Make use of this opportunity to learn JavaFx and propose Ideas and submit your project. Get appreciation from SUN. Visit Contest Page Today.
Posted at 10:42AM Feb 17, 2009 by Rajendra Gutupalli in Sun | Comments[0]
Listing Named Attributes
JSR-203 has a new feature that allows you to access named attributes associated with files. In my previous entry I described how to read and write named attributes in different operating systems. Here is the sample code using JSR-203 APIs lists the named attributes in a directory.
import java.io.IOException; import java.nio.file.*; import java.nio.file.attribute.*; public class NamedAttrs { public static void main(String... args) throws Exception { final Path path = Paths.get(args[0]); Files.withDirectory(path, new DirectoryAction() { public void invoke(DirectoryEntry entry) { try { NamedAttributeView nav = entry.getFileAttributeView(NamedAttributeView.class, true); if (nav == null) { throw new RuntimeException("Named Attributes are Not Supported"); } Iterable
list = nav.list(); if (list.iterator().hasNext()) { System.out.println(entry.getName()); for (String item : list) { System.out.println(" " + item); } } } catch (IOException e) { System.err.println("problem in reading named Attrs " + e.getMessage()); } } }); } }
This code lists the files associated with named attributes similar to the tools 1. Streams 2. LADS which lists files associated with alternate data streams in Windows NTFS volumes. Windows XP does not have any commands to list the files which have alternate data streams. You can use the above tools to enumerate files which has named attributes. This tools works similar to above code. The greatness of the above code as you know is, it lists named attributes of files in all operating systems but this tools works in only Windows Operating System.
Posted at 03:54PM Jul 29, 2008 by Rajendra Gutupalli in Sun | Comments[0]
Purpose of Existence
I have been influenced by a friend of mine to join Sun Toast Masters Club in India. As it is aligned to my development plan, I joined the club recently and delivered my first speech. In my first speech I have to talk about my self, so I recollected some experiences from my childhood and talked about it in last Toast masters meeting. Transcript of my talk goes like this...
It is said four things are not returned if we do not utilize them properly. They are, The time spent, The opportunity lost, The arrow sped and The spoken word. I am reminded by this truth because three years back I attended toast masters program as a guest but somehow I neglected this opportunity. As they say better late than never finally I realized need for the same and now I am here in front of you giving my first ice-breaker speech.
Ok let me break the ice
with a
question.
What is the purpose of existence?
When I was a child I used
to think by
observing people. Okay we born. We grew up. We get educated, We do job.
We get
married and have children and then finally become old and die.
This
is the series of events that we see in most of the human lives. I did
not know the purpose of life until my beloved father breathed his
last breath.
Dear Tostmasters, My Name is Rajendra Vittal G. I born as a last kid to my parents. I have two brothers. I loved my father anything more than in this world. I just want to narrate two incidents connecting to my father.
I remember one incident which has strong influence in my life. My father was a smoker. He used to smoke six to eight cigarettes in a day. Every day I used to bring cigarettes from the near by shop. One day I remember in 7th class, my curious mind asked me, 'What would happen if I smoke? Does it taste like Lacto King chocolate which melts in my mouth?'. I wanted to feel the experience that my father enjoys. So One day my father asked to bring two cigarettes but I brought three cigarettes one for me. Looking around I kept one cigarette in my pocket. I went on to the terrace of my house sneaking like a snake. I lit a cigarette. You know what happened, I had a irritating intolerable cough. I thought my self how can my father smokes this stupid thing. Okay I should not judge result just by trying one time.Let me try for the second time. Second puff was same and third it tasted to my tongue and I felt thrilling sensation running through my blood. From then on I was smoking on and off not very regularly until I got married. After I got married my wife gave me a ultimatum. She said, either you give up smoking or give up me. I gave up smoking cigarettes. I am not narrating this incident as a great experience. This is a lesson for all fathers and mother too nowadays.
Let me tell you one more incident which changed my way of life. My father was hospitalized with mild heart-attack and left this world after one month struggling on the bed. I could not digest the separation of my father from me. I challenged God that you can take him from me but I will find him wherever he is. May be I got this confidence of challenging God, because during those days I read one wonderful book and I recommend you to read the book 'An Autobiography a Yogi by parmahamsa yoganada'.I wanted to renounce everything and go on the tour for search of Guru under whose guidance I can find my father. But I put off the plans as my mother was crying all these days and I don't want to cause any more pain to my mother. So what can I do for the search of a Guru without going here and there. I got a beautiful idea. Lets pray continuously until I find a Spiritual Guru. I continuously prayed for a Guru to unknown source silently in my mind through out day and night. Miraculously after a week I came to know about Guru “ Parthasarthi Rajagopalachari” president of Shri Ram Chandra Mission. I borrowed a book 'Reality At Dawn'. From his teaching I came to know that It is not my father I have to search for It is the ultimate father who created this whole universe. And I understood “There is no need to go any where to search for the Ultimate father 'God'. He is there right in your heart ”. Only thing is you have to experience it by being obedient to Guru.
After I read these
statements my heart
was filled with peace and the next day I joined the Shri Ram Chandra Mission
Let me conclude my Icebreaker speech with a Wisdom that is passed on to me by My Master.
'Live as if you are going to die in the next moment'
Posted at 12:37PM Jul 11, 2008 by Rajendra Gutupalli in Personal | Comments[0]
Named Attributes
Recently a new Java language API 'java.nio.flile.attribute.NamedAttributeView' has been added to JSR-203 specification. This allows to manipulate the extended attributes associated with a file in the file system. Operating Systems like Solaris, Linux and Windows support extended attributes in different ways. I will give an overview of what is an extended attribute and how can we add or delete the attributes in different file systems. Having known this file system feature makes you easier to play with the new Java technology APIs.
Every file system defines a set of file system specific attributes that describe the state of the file. These attributes are stored as part of metadata of the file. The attributes like filename, last modified time, size etc. are set by the file system when you create or modify a file. Extended attribute is a new file system feature that enables user to add an attribute to a file which is maintained in the metadata of the file.To give a usage of named attribute, assume you have a collection of mp3 files which are hundred in number stored in a directory 'my_favorite_collection'. If you want to list out all the songs of a particular singer or songs of specific type( emotional, love, inspirational ) then there is no way if you depend on file system specific attributes. Extended attributes helps you to associate an attribute with the file. So you can add attributes like 'singer','type' etc. to the files and you can list out files of your choice by specifying a criteria.
The way you associate an attribute to a file is different in different file systems. Lets first look at how we can add named attributes in Windows.
Windows NTFS file system supports alternate data streams. You can associate an alternate data streams to file as follows.
To display the contents of the named attributes use the following toolTo display the contents of the named attributes use the following toolC:\> echo this content will be stored in the file sub stream > demo.txt:attr.1
In Windows Vista you can use DIR /R to display the alternate data streams of the files. You can add named attributes to symbolic links in Vista.In Windows Vista you can use DIR /R to display the alternate data streams of the files. You can add named attributes to symbolic links in Vista.C:\> more < demo.txt:attr.1
You can add a data stream to a file using 'type' command.
which copies the contents of demofile.txt as an alternate data stream to file demo.txt as an attribute name 'attr3'.which copies the contents of demofile.txt as an alternate data stream to file demo.txt as an attribute name 'attr3'.C:\> type demofile.txt > demo.txt:attr3.C:\> type demo.txt:attr3
Lets see how we can add extended attributes in Solaris:
In Solaris you can associate regular files as an extended attribute to a file or directory. To add a sub file to a file/directory you can use 'runat' tool which executes a command in extended attribute name space.Remember that you can add named attributes only for a file or a directory but not for a symbolic link.
To add a sub file /home/rajendra/filenotes to a file file.1, execute the following command.
To remove an extended attribute:To remove an extended attribute:user% runat file.1 cp /home/rajendra/filenotes attr.1
To open shell in the extended attribute name space for the file 'file.1', you can use the following commandTo open shell in the extended attribute name space for the file 'file.1', you can use the following commanduser% runat file.1 rm attr.1
Extended attributes in Linux:Extended attributes in Linux:user% runat file.1 /bin/sh $
Linux supports extended attributes as name -value pairs. You can tag a file with a name value pairs. In order to add an extend attributes to files you have to enable this feature in the file system (ext2,ext3 or Reiser file systems)you can enable this feature by remounting the partition as follows
'setfattr' and 'getfattr' tools comes in handy to manipulate extended attributes in Linux. If you don't find this tools (in any Linux flavour) then you have to install the attr package in Ubuntu as follows.'setfattr' and 'getfattr' tools comes in handy to manipulate extended attributes in Linux. If you don't find this tools (in any Linux flavour) then you have to install the attr package in Ubuntu as follows.#sudo mount -o remount,user_xattr /
That's it. Now we can add the attributes. Final thing to remember is we have to add extended attributes in the 'user' name space. To add exteded attribute user.songs.title to the file songs1.mp3That's it. Now we can add the attributes. Final thing to remember is we have to add extended attributes in the 'user' name space. To add exteded attribute user.songs.title to the file songs1.mp3# apt-get install attr
To retrieve the attributes for the file song1.mp3To retrieve the attributes for the file song1.mp3$ setfattr -n user.songs.title -v “ My heart will go on” song1.mp3
To delete an attribute:To delete an attribute:$ getfattr -n user.songs.title song1.mp3 # file: song1.mp3 user.songs.title = song1.mp3.
That's it for now. Next we will see how easy to access extended attributes using JSR-203 APIs.That's it for now. Next we will see how easy to access extended attributes using JSR-203 APIs.$ setfattr -x user.songs.title song1.mp3
Posted at 09:22PM Jun 13, 2008 by Rajendra Gutupalli in Sun | Comments[1]
@SUNCertified(name="SCBCD5", scored="91%")
Do you wonder why I have named this bolg entry as Java technology annotation (JSR 175).
Really this is a cool feature that has been added in JavaSE5 changed the way of coding style for Enterprise Java Beans (EJB3).
In my previous company we used EJB2.1 for developing an enterprise distributed application. I just wanted to updated my EJB coding
skills, so I planned for writing SCBCD5 Sun Certification Exam. I have chosen following books and online material for preparation.
> EJB3 O'Reilly book.
This is a nice book which has two parts. First part explains about EJB3 and second part is JBoss workbook. I read only fist part and used Netbeans 6 with glassfish V2 to practice EJB3 sample codes. I have noticed a typo in this book at page number 172 in chapter 9. It says Query#getSingleResult() throws javax.persistence.EntityNotFoundException If no result returned. But this is not true, Query.getSingleResult() throws javax.persistence.NoResultException if there is no result. For the exam it is important to remember that the exceptions NoResultException and NonUniqueResultException thrown by this method does not cause the transaction to roll back.
>SCBCD 5.0 Study Guide prepared by Mikalai Zaikin - I want to thank Mikalai Zaikin for providing the preparation material. I have a short time to prepare so I have chosen this guide over EJB3 specifications. He prepared this notes from the EJB3 Specifications.
>Sun Learning services EJB3 online training. - This training is free for sun employees. It is exceptionally good.
>Enthuware mock exams - These mock exams are very good really helps you for the exam.
>Whizlabs mock exams - I tried only few exams because there are many typos and mistakes. I suggest them to get everything rectified.
> - This website also helps you a lot.
I studied long hours during the week ends and read the EJB3 O'Reilly book in last Diwali holidays. Last Monday I appeared for the exam and scored 91%. My beak-up of marks are like following:
EJB 3.0 Overview - 100%
General EJB 3.0 Enterprise Bean knowledge - 83%
EJB 3.0 Session Bean Component Contract and Lifecyle - 100%
EJB 3.0 Message-Driven Bean Component Contract - 100%
Java Persistence API entities - 100%
Java Persistence Entity Operations -80%
Persistce Units and Persistence Contexts -100%
Java Persistence Query Lanage - 100%
Transactions - 80%
Exceptions - 100%
Security Management - 50%
Hope this helps!
Posted at 11:08AM Jun 04, 2008 by Rajendra Gutupalli in Sun | Comments[2]]
Building OpenJDK in Ubuntu 8.04
I tried building OpenJDK in Ubuntu 8.04 on x86 machine. I have come across with some issues which have work-around. After installing all the necessary applications for building JDK and setting environment, building failed with the following error.
It seems new compilers enables -Write-strings by default, work-around for this issue is to hack the make file hotspot/build/linux/makefiles/gcc.make and add the flag 'CFLAGS += -Wno-write-strings'. This solves the gcc failure.It seems new compilers enables -Write-strings by default, work-around for this issue is to hack the make file hotspot/build/linux/makefiles/gcc.make and add the flag 'CFLAGS += -Wno-write-strings'. This solves the gcc failure.<error> /home/rajendra/jdk7/jdk7/hotspot/src/os/linux/vm/jvm_linux.cpp:179: warning: deprecated conversion from string constant to ‘char*’ make[5]: *** [jvm_linux.o] Error 1 make[5]: Leaving directory `/home/rajendra/jdk7/jdk7/build/hotspot/outputdir/linux_i486_compiler2/product' make[4]: *** [the_vm] Error 2 </error>
After adding the flag build continued for some time and crashed.<error> /home/rajendra/jdk7/jdk7/build /gensrc/java/nio/charset/CharsetEncoder.java:142: cannot find symbol symbol : class $replType$ location: class java.nio.charset.CharsetEncoder private $replType$ replacement; </error>
<error> /usr/bin/ld: cannot find -lXtst collect2: ld returned 1 exit status make[3]: *** [/home/rajendra/jdk7/jdk7/build/lib/i386/xawt/libmawt.so] Error 1 make[3]: Leaving directory `/home/rajendra/jdk7/jdk7/jdk/make/sun/xawt' make[2]: *** [all] Error </error>
For which I don't know the solution. If you have work-around or solution for the above issue please let me know.
Posted at 02:41PM May 06, 2008 by Rajendra Gutupalli in Sun | Comments[3]
New NIO OpenJDK Project
Today Mark Reinhold announced the creation of NIO Project to OpenJDK world. Alan Bateman is the project moderator. Click here to follow the NIO Project. The source code implementing the JSR-203 Specification is available as a patch in the project. To build the source code you need to clone the latest OpenJDK7 repository and follow the instructions given in the project page. This project hosts the development of next phase of the New I/O API's. To know more about the project subscribe to the mailing lists.
Enjoy trying the latest JavaAPI's.
Posted at 10:11PM Apr 29, 2008 by Rajendra Gutupalli in Sun | Comments[2]
JSR-203 New File System APIs
JSR-203 Specification gives clear description of the new API's. It does not take much time to get acquainted with the new API's. I just want to give some simple fundamentals for you to get started with the new API's. You can have a look at this entry and play around with new feature without much effort.
The method which enables Java virtual machine to access the underlying file system objects is Path.get() mehthod.
Path.get(“file”);
Path.get(String path) is a static method in java.nio.file package which returns a path object for the file given in a string. This path locates the file in the native (underlying) file system. Okay, after having got access to file what operations can we perform on this file: I will just list some of the interesting operations with code fragment examples.
>> Creating a symbolic link
Assume you have target folder “My Album” which is in home directory “/home/rajendra/”. Now if you want to create a symbolic link for this folder in shared NFS directory “/net/export/share/My Album” then you have to use Path#createSymbolicLink(Path target) method. The following code snippet creates a symbolic link.
Path target = Path.get("/home/rajendra/My Album"); Path symLink = Path.get("/net/export/share/My Album"); symLink.createSymbolicLink(target);
The first line creates the path object for the folder "/home/rajendra/My Album". Second line is the symbolic link which you want to create for the target file. Finally third line creates the symbolic link.
If you are creating a link in Vista Operating System use this method to create a link. This method creates a right link depending on the target.
>> Reading a symbolic link and traversing a directory
Path.readSysmbolicLink() method returns a path object for the target file to which the link is pointed.
Lets create a symbolic link to a directory in Vista and try to read the target of the link.
C:\>mklink SymLnkToMyDocs C:\MyDocs symbolic link created for SymLnkToMyDocs <<===>> C:\MyDocs
The following code fragment prints the target of symbolic link and tries to iterate the entries of target folder.
Path path = Path.get("c:\\SymLnkToMyDocs"); Path target = path.readSymbolicLink(); System.out.println("target file: "+ target); DirectoryStream ds = path.newDirectoryStream((Filter)null); for (DirectoryEntry de : ds){ System.out.println("file " + de.getFileName()); }
Here S.O.P. prints the target file: C:\MyDocs. But path.newDirectoryStream() with null value as filter throws “java.nio.file.NotDirectoryException: c:\SymLnkToMyDoc”
This is due to we have created wrong symbolic for the directory. In Vista if we do not mention /D option it treats the target as a file. If we had created a symbolic link with the following option then executing above program would not throw any exception.
That's it for today. We will explore other methods in the Path class in next entry.That's it for today. We will explore other methods in the Path class in next entry.C:\> mklink /D SymLnkToMyDocs C:\MyDocs
Posted at 05:59PM Apr 02, 2008 by Rajendra Gutupalli in Sun | Comments[0]
Zip File System Provider Implementation details
As mentioned in my previous blog entry I will go into the implementation details of Zip file system provider. This will give you clear insight of developing a file system using new Java file system APIs ( NIO.2 ). A Zip provider allows the contents of a ZIP or JAR file to be viewed as a file system. It implements all the interfaces and abstract classes of the new file system and enables access to archive files such as ZIP or JAR, as if they are directories. It is a read-only file system.
Let me begin with description of NIO.2. The new file system NIO.2 has a feature of extensions facility ( through service provider interface ), using which one can develop a file system of their choice by providing concrete implementation to the abstract class java.nio.file.spi.FileSystemProvider. Package all the implementation classes in Java Archive (JAR) file and install ( make available the Jar file in Java class path or copy the Jar file in to JAVA_HOME/jre/lib/ext directory ) it. That's it, your file system is ready, now you can use JSR-203 New File System API's to access your file system. The new API's has many utility methods like java.nio.file.Files.walkFileTree(FileRef start, FileVisitor visitor) using which you can traverse your file system's file tree.
Abstract overview of FileSystemProvider:
File system provider creates file systems using one of the factory methods. A provider can create any number of file systems. For example each archive file is viewed as a file system, provider returns file system instances for each Zip/Jar file. In case of native file systems ( Windows, Solaris, etc. ) provider creates single instance of file system. A file system provides access to file system objects. A file system object can be a file store, file or directory. A file store is nothing but a volume or partition in which files are stored. For example, in Windows platform c:,d:, in Solaris /(root), mounted directories (/home/user) are the file stores. Now lets go over the details of Read-Only Zip Provider:
Let me begin with a brief overview of file system. A file system is formally defined as methods and data structures that an operating system uses to keep track of files on the disk. Data structures are maintained in memory and disk. Operating system provides access methods to access the file system objects. Any container which has organized homogeneous elements can be treated as a file system, provided it has access methods to read these data structures and present information meaningful to the user. Zip/Jar file is one such container. To access a zip file all we need is to define access methods to retrieve/update the properties of file system objects. JSR-203 provides the necessary interfaces and abstract classes i.e. a framework to build any kind of a file system. We just have to provide implementation for these interfaces and abstract classes. NIO.2 comes with default provider which accesses the file system of the host operating system.
File systems can be constructed using one of the factory methods in java.nio.file.FileSystems class. If any of the factory methods is invoked, it iterates over the installed file system providers invoking either the getScheme() (if FileSystems#newFileSystem(URI uri, ...) factory method is used) or newFileSystem( FileRef file, Map<String,?> env ) ( if FileSystems#newFileSystem( FileRef file, Map<String,?> env, ClassLoader loader ) factory method is used ) until either the getScheme() on the provider returns a scheme that matches with the given uri scheme or the newFileSystem(FileRef file, Map<String, ?> env) returns a file system otherwise ProviderNotFoundException is thrown. If the schemes match, then newFileSystem(URI uri, Map<String, ?> env) method will be called on the provider.
Keeping in mind these details let's start the implementation of FileSystemProvider. Name the sub class of FileSystemProvider as ZipFileSystemProvider. Since JSR-203 implementation uses java.util.ServiceLoader for loading the providers and to create an instance of this provider, it is required to have a zero-argument constructor. So, whenever you subclass FileSystemProvider, don't forget to provide a no-argument constructor. FileSystemProvider has two factory methods for creating file systems. >> #newFileSystem(URI uri, Map<String, ?> env) is the abstract method which has to be implemented and it creates a file system identified by the uri. >> The other method is #newFileSystem(FileRef fref, Map<String, ?> env). This method creates file system for an existing file where the file is a container of one or more files. Since Zip File is a container file and it contains many files, we have to provide implementation for this method in ZipFileSystem.
Zip File System is represented by a URI of the form ZIP:///path#pathInZip. The scheme “ZIP” is case insensitive, 'path' locates the zip file in the underlying file system and 'pathInZip' is the path which locates the file inside a Zip/Jar file. For example in uri “ZIP:///c:/java/src.zip#/java/nio/file” , “/java/nio/file” is the path to the entry inside zip “c:/java/src.zip”. All the paths in zip file are relative. So, we can treat Zip File System as a single hierarchical file system where all the paths start with a root “/”. For example, in foo.jar file, paths META-INF/MANIFEST.MF or /META-INF/MANIFEST.MF locates the file MANIFEST.MF. All relative paths are resolved against root “/”. It is a case sensitive file system meaning file paths such as /a/a.file /A/A.file are treated as different files.
In order for this provider to be recognized and loaded when one of the factory methods in java.nio.file.FileSystems is called, we should create a file with name as “java.nio.file.spi.FileSystemProvider” in META-INF/services directory. This file should contain fully qualified name of the class that implements the abstract class FileSystemProvider. So in this case it should be “com.sun.nio.zipfs.ZipFileSystemProvider“.
Since this Zip Provider creates many ZipFileSystems, let us create a table Map<URI, ZipFileSystem> to cache all the created file systems. Here URI is the key and it should not have any fragment component. So URIs of the form “ZIP:///path” is the key that identifies the zip file system.
ZipFileSystemPrvoder#getScheme() returns “ZIP” since the URI that identifies Zip File system should have scheme as “ZIP”.
ZipFileSystemProvider#getPath(URI uri) method searches the cache for the zip file system identified by the given uri. If the scheme of the given uri is not “ZIP” it throws an IllegalArgumentException. If the file system corresponding to the given uri is not available in the cache then it throws FileSystemNotFoundException. If the file system is found in the cache, then method getPath(uri.fragment()) will called on that file system.
ZipFileSystemProvider#newFileSystem(FileRef fref, Map<String, ?> env) is convenient method for creating a file system from an existing file. This method throws an UnsupportedOperationException, if the argument 'fref' does not refer to a path created by the default provider or if the given file is not Zip/Jar file. If the file does not exist, then it throws NoSuchFileException. Otherwise it returns an instance of ZipFileSystem for the given Zip/Jar file. I will discuss how to implement java.nio.file.FileSystem abstract class later part of this blog. One important point to remember here is, we do not cache the file systems created by this method.
ZipFileSystemProvider#newFileSystem(URI uri,Map<String, ?> env) is another method for creating a file system from a uri. The scheme of the given uri should be “ZIP”, otherwise an IllegalArgumentException is thrown. The 'path' component of the uri locates a Zip file in underlying file system, and if the file does not exist NoSuchFileException is thrown. If the file does not end with “.zip” or '.jar” extension then it throws an InvalidPathException. The file systems could be configured using the 'env' argument. User can set the default directory by creating a map with key “default.dir” and a string value which is either home or default directory so that all relative paths will be resolved to this directory. The default directory should be absolute path. If user does not specify default directory then all the relative paths are resolved against root “/”. This method caches the created file system for further reference.
ZipFileSystemProvider#getFileSystem(URI uri) gets the Zip File System instance identified by the given uri from the cache. The key should not contain any fragments. If the given URI contains a fragment component then it is discarded and a new uri is created with the scheme and path. If there is no file system in the cache corresponding to this uri, then FileSystemNotFoundExceptin is thrown. If the scheme of the given uri is not “ZIP” then IllegalArgumentException is thrown.
ZipFileSystemProvider#newFileChannel(Path path, Set<? extends OpenOption> options,Attribute<?>... attrs ) method returns a readable file channel for the given file. This method just converts the given path to string and creates path from default provider and invokes newFileChannel() method on the path. This method should be implemented as FileChennel.open() internally calls the provider's implementation.
Now we will see the implementation of abstract class java.nio.file.FileSystem and name the subclass as ZipFileSystem. Zip file system is read-only, case sensitive and closeable file system. Zip file system like unix, has a single hierarchical directory structure. Each path in zip file system starts with root “/”. The Zip file separator is a forward slash “/”. When you create a Zip or Jar file all the root components (/ in Unix,c:,d: in Windows etc.) in the path are discarded. For example if we create a zip file for all the files in the folder C:\Downloads\* then all the zip file names contain relative paths like Downloads\*. So zip file system resolves all relative paths to root “/” unless environment property “default.dir” is set while creating the file system. If this property is set, then all the relative paths are resolved to the default directory.
This implementation overrides all the the methods with reasonable behavior except the optional FileSystem#newWatchService() method. This method throws UnsupportedOperationException. In other words, Zip file system does not recognize file system notification events.
Zip file system is opened on creation and when closed, closes all the opened Streams and Channels that are opened by this file system and it also removes this file system from the cache which is maintained by the provider. Any attempt to access a closed file system will throw ClosedFileSystemException.
Any operation which access the zip file system acquires read lock and checks whether file system is opened, if closed then throws ClosedFileSystemException, and at the end of operation it releases the read lock. The close method acquires exclusive write lock and releases all the opened resources.
Zip file system provides views to read the file system object properties and methods to get file system objects. One such method is getPath().
ZipFileSystem#getPath() method converts the given string to ZipFilePath object. This method throws an InvalidPathException, if the given string is empty and contains any character that is not valid for naming a file in the underlying file system. If the string contains any backward slashes then they are replaced by Zip file separator ie. “/”.
Zip file system supports three attribute views. A attribute view provides a view into the properties of file system objects. You can get the view of your interest by passing class object of that attribute view to the method FileSystem#newFileAttributeView(Class<?> viewType). The returned attribute view is unbounded. You could bind this attribute view to the file object whose properties needs to be viewed. The attribute views supported by the ZipFileSystem are ZipBasicFileAttributeView, ZipFileAttributeView, and JarFileAttributeView. Description of attribute views are discussed later in this blog.
ZipFileSystem#newFileAttributeView(Class<?> viewType ) returns a requested attribute view. If the requested view type is BasicFileAttributeView, ZipFileAttributeView or JarFileAttributeView then instance of ZipFileBasicAttributeView, ZipFileAttributeView or JarFileAttributeView is returned respectively.
ZipFileSystem#getFileNameMatcher(String syntaxAndPattern) method does the same thing as defined in specification but incase of glob filters it filters the file name against the given case sensitive glob.
Now we will see the implementation of java.nio.file.FileStore. A file store is one which represents storage for files. Since Zip file system has a single hierarchical directory structure on root / and this root is an abstraction for the ZIP or JAR file, the method ZipFileSystem#getFileStores() returns only one file store that gives details of this ZIP or JAR file. ZipFileStore#name() returns the complete path of the ZIP or JAR file, ZipFileStore#type() returns “zipfs” and ZipFileStore#isReadOnly() always returns “true” since this is a read only file system.
ZipFileStore#getFileStoreAttributeViews() returns a list that contains an element ZipFileStoreAttributeView which implements java.nio.file.attribute.FileStoreSpaceAttributeView, so this attribute view is bound to return disk space information for this file store. Since the file store is the ZIP or JAR file, only FileStoreSpaceAttributes#totalSpace() returns the size of the archive file. The other two methods FileStoreSpaceAttributes#{usableSpace, unallocatedSpace}() returns zero since they are not relevant to ZipFileSystem. Another point to be noted about ZipFileStoreAttributeView is , it should provide implementation for the method readAttributes() which returns sub class of FileStoreSpaceAttributes, since it implements FileStoreSpaceAttributeView. Implementation for java.nio.file.Path:
ZipFilePath extends the abstract class java.nio.file.Path, which locates the file or directory in ZIP or JAR. A path in Zip can be relative or absolute. A relative path is resolved against the root if “default.dir” is not provided in the environment configuration map while creating the Zip file system, otherwise it is resolved against the default directory. A path in zip is represented by byte array and it overrides all the methods which handles the components of a path. The methods ZipFilePath#{getName,getNameCount,getFileName,subPath,startsWith,endsWith,getParent}() behave the same way as mentioned in the specification of java.nio.file.Path. In addition to this methods, ZipFilePath has methods getEntryName(), subEntryPath(),getParentEntry(), getEntryName() getEntryNameCount() which deals with entry components of ZipFilePath. Important point to note here is, zip file path can expand to nested zips or jars in the file's path name. For example, /home/userA/zipfile.zip/DirA/dirB/jarFile.jar/META-INF/MANIFEST.MF accesses the jar file “jarFile.jar” inside Zip file “/home/userA/zipfile.zip”. For this path getEntryName(0) returns “/home/userA/zipfile.zip” and getEntryName(1) returns “DirA/DirB/jarFile.jar” getParentEntry() returns “/home/userA/zipfile.zip/DirA/dirB/jarFile.jar” and subEntryPath(0,1) returns “home/userA/zipFile.zip”.
Since ZipFileSystem is read only FileSystem, methods of Path copyTo(..),moveTo(..),createDirectory(..), newOutputStream(..) and delet() throws ReadOnlyFileSystemException, and createSymbolicLink(), createLink()and readSymbolicLink() throws UnsupportedOperationException. Implementation of jav.nio.file.DirectoryStream:
ZipFileStream implements java.nio.file.DirectoryStream, so it has a iterator which iterates entries of a directory in Zip/Jar. ZipFileEntry represents each entry and it implements java.nio.file.DirectoryEntry. When DirectoryStream is opened using the method ZipFilePath#newDirectoryStream(String syntaxAndPattern), it checks for the existence of the file. If the file does not exist, then it throws NoSuchFileException and if the file is not a directory then it throws NotDirctoryException. The remove() method of the iterator that is associated with ZipDirectoryStream throws UnsupportedOperationException with a cause of ReadOnlyFileSystemException. When there are no entries, it just returns empty iterator, otherwise, it returns all the filtered entries in the directory according to given glob or regex pattern. This is similar to iterating entries in the directories in native file system. AttributeViews and Attributes:
Now we will discuss the AttributeViews and Attributes supported by Zip file system. ZipFileSystem supports ZipFileBasicAttributeView, ZipFileAttributeView and JarFileAttributeView. These attribute views provide access to read zip file system object properties. Zip file objects can be a file or directory in a zip/jar. So ZipFileBasicAttribute.readAttributes() returns ZipFileBasicAttributes object which encapsulates the attributes such as size(), modifiedTime() etc.
ZipFileBasicAttributeView implements java.nio.file.attribute.BasicFileAttributeView and it provides implementation for the methods bind(FileRef fref), bind(FileRef,followLinks) and readAttributes().
ZipFileBasicAttributeView#bind(FileRef fref) binds this given FileRef object with this view and bind(FileRef fref, boolean followLinks ) does the same ignoring the followLinks parameter.
The binding facility makes it easier to read the attributes of file system objects. You can get one attribute view and bind it to any of file objects, and retrieve the attributes of the object using readAttributes() method. ZipFileSystem#newFileAttributeView(Class<?> viewType) returns an unbound attribute view, that can be bound to any ZipFilePath object. Rebinding de-references the object to which view was already bound to. Attribute view checks whether file system is opened, if it is closed then ClosedFileSystemException is thrown.
ZipFileBasicAttributes implements java.nio.file.attribute.BasicFileAttrbutes which encapsulates the properties of zip file system object.
ZipFileBasicAttributeView#setTimes(Long lastModifiedTime, Long lastAccessTime, Long createTime, TimeUnit unit) throws ReadOnlyFileSystemException since the ZipFileSystem is read-only.
ZipFileAttributeView extends ZipFileBasicAttributeView which provides a view to zip specific attributes like comment(), compressSize(), crc(), versionMadeBy() etc.
JarFileAttributeView allows user to read Manifest attributes and jar entry attributes.
Lets go over the details of how the Zip provider reads the contents and attributes of zip file entries.
A simple zip file has the following format. [local file header 1] [file data 1] [data descriptor 1] . . . [local file header n] [file data n] [data descriptor n] [central directory] [end of central directory record]
Local file header, central directory and end of central directory record sections are identified by the signatures 0x04034b50,0x02014b50 and 0x06054b50 respectively. Total number of entries and central directory offset are available in “end of central directory record” at the offsets 10 and 16 and number of bytes being 2 and 4 respectively. The byte order of the zip file is little_endian. So you need to set byte order to be LITTLE_ENDIAN when reading the zip file data into ByteBuffer. Once we have number of entries in the zip file, we can read all the file names and attributes of the corresponding file which are available in “central directory” section. Create an object of com.sun.nio.zipfs.ZipEntryInfo or comp.sun.nio.zipfs.JarEntryInfo depending on the archive type and set all the attributes. Cache all these entries in a table. java.util.zip APIs are used only for reading the contents of an entry in zip or Jar file and java.util.jar package methods are used for reading manifest and entry level attributes.
Posted at 03:00PM Mar 13, 2008 by Rajendra Gutupalli in Sun | Comments[2]
Zip File System Provider
RecentlyRecently.import java.nio.file.*; import java.net.URI; import java.util.Map; import java.util.Collections; public class ListZipEntries { public static void main(String[] args) throws Exception { URI uri = new URI("zip:///C:/zips/books.zip"); Map <String, ?> env = Collections.emptyMap(); FileSystem fs = FileSystems.newFileSystem(uri, env); // list files in top-level directory of zip file Path top = fs.getPath("/"); // # line1 DirectoryStream.Filter filter = DirectoryStreamFilters.newCaseSensitiveGlobFilter("*"); Files.withDirectory(top,filter, new DirectoryAction() { public void invoke(DirectoryEntry entry) { System.out.println(entry.getFileName()); } }); } }
is one more method for creating file systems. This method allows to create a file system from an existing file. In other way, this method allows to view a file as a file system.is one more method for creating file systems. This method allows to create a file system from an existing file. In other way, this method allows to view a file as a file system.import java.io.BufferedInputStream; import java.nio.file.*; import java.util.HashMap; import java.util.Map; public class ReadEntry { public static void main(String... args) throws Exception { Path zipfile = Path.get("c:/zips/zip1.zip"); Map<String, String> env = new HashMap
(); FileSystem manager = FileSystems.newFileSystem(zipfile, env,null); Path path = manager.getPath("/jarCompress1.jar/META-INF/MANIFEST.MF"); System.out.println("Reading input stream"); BufferedInputStream bis = new BufferedInputStream(path.newInputStream()); int ch = -1; while ((ch = bis.read()) != -1) { System.out.print((char) ch); } } }
Posted at 06:32PM Mar 12, 2008 by Rajendra Gutupalli in Sun | Comments[0]
JSR-203 New Java File System Interface
For the past few months, I have been testing the functionality of new Java file system APIs. These APIs are going to be part of specification JSR-203 (a.k.a. NIO.2). Alan Bateman is the specification lead for this JSR. Testing these new Java API's has been a very fascinating experience for me, as I had to explore the myriad of inputs and scenarios in the file system. NIO.2 is one of the biggest features in Java SE 7. This JSR allows user to develop file systems using the provider interface. Here is the list of some of the features that comes with this JSR. >> Access to file system attributes(owner,etc.) >> Support for file system change notifications >> create and modify Access Control Lists (ACL's) >> Gracefully handle file system failures >> Service provider interface for pluggable file systems. >> Utility methods for file system activities(copy, move, walkFileTree etc.) >> dealing with links (creating, deleting and following links) >> incremental listing of files in the directory. >> and many more ...I would like to give examples which interest you in the coming entries of this blog.
Posted at 04:26PM Mar 12, 2008 by Rajendra Gutupalli in Sun | Comments[6] | http://blogs.sun.com/rajendrag/ | crawl-002 | refinedweb | 7,411 | 58.38 |
those who haven't run across it before, PEAK is a rather interesting
'solution' to the components idea. I haven't looked at it much, but I
encountered it while reading up on "Aspect Oriented Programming". Whose goal is
to deal with these situations where inheritance leads to common functionality
(an "aspect") at the ends of the trees, and providing a way to write that common
functionality in a reusable manner, just like we use inheritance to write the
dominant modelled aspect in a reusable manner. Hmm. I'm not too good at
describing these things...
- Luke
-------------------------------------------------
This mail sent through IMP:
I was thinking that maybe an MVC approach would work better, so I did a
search and found this
It gives a detailed example of a user login using MVC. It is a very good
design and might give us some ideas.
Ian Bicking wrote:
> On Thu, 2003-03-06 at 15:34, Ian Bicking wrote:
>
>>class Component:
>> # __init__ is entirely specific to your component
>>
>> def awake(self, servlet):
>> self._servlet = servlet
>> # and we also have direct accessors for requests, etc.,
>> # like Page (and a sleep, of course)
>>
>> def respond(self):
>> # And here we do the actual work
>
>
> Now that I look at this interface, it's not nearly adequate. The more
> challenging part of an interface like this is dealing with more complex
> issues. A login component would be a much more challenging example.
>
> But maybe that's not too hard. It might look like:
>
> class Login(Component):
>
> def __init__(self, userManager):
> self._userManager = userManager
>
> def awake(self, servlet):
> Component.awake(self, servlet)
> field = self.request().field
> if field('_loginUsername_', None):
> self.login(field('_loginUsername_'), field('_loginPassword_')
>
> def login(self, username, password):
> if self._userManager.verifyPassword(username, password):
> user = self._userManager.userForUsername(username)
> self.servlet().setUser(user)
> else:
> # But what here?
>
>
> Writing the login form method is left to the reader. There's a problem
> here, that the login method can't do what it needs to do. If the login
> fails, it should present the login form again and have an error message
> (depending on the security of the application, that message might be
> "username or password incorrect" or "username does not exist", etc).
> And even if login is successful, it's nice to have some message.
>
> So that's two problems -- how does login provide feedback, and how does
> it take over the servlet when necessary? And there's also a bit of
> logic around using the login form, specifically, how should the servlet
> indicate that the user needs to login? Just calling the login form
> method and then returning from the servlet seems sub-optimal to me --
> well, I *really* want to use an exception for that, because that's just
> the Right Control Structure for this case. How does that exception
> translate into this Login component taking over?
>
> So three problems.
>
> Ian
>
>
>
>
On Fri, 2003-03-07 at 05:21, Stephan Diehl wrote:
>'}
Sure, something like this should be possible. However, this isn't
really intended to be a form processor, it's more intended for places
where the HTML forms shouldn't allow incorrect input, like select boxes
and radio fields. There you want verification for security reasons, but
you don't need any user interface. As long as there's no user interface
associated with invalid requests (it would probably just say "There was
an error in your form submission" or somethihng), it doesn't really
matter if you throw the exception in dictCall, or in the body of your
function.
Ian
Hi all,
does anybody have experience with PSP ( and Apache) in a quite large scenario regarding stability and scalability?
We are thinking about using PSP for a search scenario with a least 10.000 search requests a day.
Thanks Anja
I would like to use connection pool with MySQL in Middle Kit. I created
my code as was written in example but in that case a new connection
was created for each time I access to DB. And this connections are
never closed by Middle Kit. After a shot time i had about 50
connections. So the question is - How can I close my connetions
mannualy or return them into pool?
Please, answer my question even it looks like I nave an error in
/dev/hands - I have many code written.
{
'Package': 'test.Middle',
'Database': 'aventradb',
#'SQLLog': { 'File': 'mk-sql.log' },
'SQLConnectionPoolSize': 2
}
May be I must do MySQLObjectStore() in awake?
I had a try with next code:
from MiddleKit.Run.MySQLObjectStore import MySQLObjectStore
.........
def awake( self, transaction ):
Page.awake( self,transaction )
if not self.connection:
self.connection = MySQLObjectStore(user='user',passwd='' )
But still having new poll for each refer.
I put code into __init__.py in my context and now I get it working
__init__.py
from MiddleKit.Run.MySQLObjectStore import MySQLObjectStore
mk_conn = MySQLObjectStore(user='someuser',passwd='somepass' )
mk_conn.readModelFileNamed('test/Middle/Billing')
index.py
...........
import __init__
stor = __init__.mk_conn
ObjLists = stor.fetchObjectsOfClass("Customer",
clauses=searchConditions)
Is it a correct way?
[...]
>
>
This looks very impressive. It will take a while for me to fully understand
the code :-)
But I have a question anyway:
Suppose, you expect an integer "value" that is between 0 and 10.
As I understand your code, one would do something like:
dictCall(checkValue,myDict)'}
with
def myint(aString):
anInt = int(aString)
if (anInt < 0) or (anInt > 10):
raise "?"
else:
return anInt
Or do you think this type of checking should be strictly done by the function
given to dictCall ?
As a final result I could imagine the following:
- The page logic (or even the site logic?) is a finite state machine
(probably living in a session) with the "request" as input.
- The "request" is converted according to machinery like the above
- The appropriate transition is taken
- The new state takes control (with a possible different "request" machinery)
Anyway, thanks for all the great software you are providing.
Stephan
On Thu, 2003-03-06 at 04:24, Stephan Diehl wrote:
> > I've also thought about it for requests, though it becomes awkward as
> > well when you don't want to depend on all the variables being present.
> > Now the idea top in my mind is expansion, like:
> >
> > def someAction(self, var1, var2_int, var3="something"):
> > ...
> >
> > So that var1 and var2 would be required variables, and var2 would be
> > turned into an int. I hate Zope's method of using an HTML variable name
> > of var2:int, and I'd rather see the HTML have var2, and the function
> > definition have the type declaration in it.
>
> This sounds neat. I'd even like to have some machinery in place to check the
> content of the request variables not only on type but for value (like you are
> doing in your FunFormKit)
I agree to receive quotes, newsletters and other information from sourceforge.net and its partners regarding IT services and products. I understand that I can withdraw my consent at any time. Please refer to our Privacy Policy or Contact Us for more details | https://sourceforge.net/p/webware/mailman/webware-discuss/?viewmonth=200303&style=flat&viewday=7 | CC-MAIN-2017-22 | refinedweb | 1,167 | 64.61 |
After covering the basics of the Java class format and runtime access through reflection, it's time to move this series on to more advanced topics. This month I'll start in on the second part of the series, where the Java class information becomes just another form of data structure to be manipulated by applications. I'll call this whole topic area classworking.
I'll start classworking coverage with the Javassist bytecode manipulation library. Javassist isn't the only library for working with bytecode, but it does have one feature in particular that makes it a great starting point for experimenting with classworking: you can use Javassist to alter the bytecode of a Java class without actually needing to learn anything about bytecode or the Java virtual machine (JVM) architecture. This is a mixed blessing in some respects -- I don't generally advocate messing with technology you don't understand -- but it certainly makes bytecode manipulation much more accessible than with frameworks where you work at the level of individual instructions.
Javassist basics
Javassist lets you inspect, edit, and create Java binary classes. The inspection aspect mainly duplicates what's available directly in Java through the Reflection API, but having an alternative way to access this information is useful when you're actually modifying classes rather than just executing them. This is because the JVM design doesn't provide you any access to the raw class data after it's been loaded into the JVM. If you're going to work with classes as data, you need to do so outside of the JVM.
Javassist uses the
javassist.ClassPool class to track and control the classes you're manipulating. This class works a lot like a JVM classloader, but with the important difference that rather than linking loaded classes for execution as part of your application, the class pool makes loaded classes usable as data through the Javassist API. You can use a default class pool that loads from the JVM search path, or define one that searches your own list of paths. You can even load binary classes directly from byte arrays or streams, and create new classes from scratch.
Classes loaded in a class pool are represented by
javassist.CtClass instances. As with the standard Java
java.lang.Class class,
CtClass provides methods for inspecting class data such as fields and methods. That's just the start for
CtClass, though, which also defines methods for adding new fields, methods, and constructors to the class, and for altering the class name, superclass, and interfaces. Oddly, Javassist does not provide any way of deleting fields, methods, or constructors from a class.
Fields, methods, and constructors are represented by
javassist.CtField,
javassist.CtMethod, and
javassist.CtConstructor instances, respectively. These classes define methods for modifying all aspects of the item represented by the class, including the actual bytecode body of a method or constructor.
The source of all bytecode
Javassist lets you completely replace the bytecode body of a method or constructor, or selectively add bytecode at the beginning or end of the existing body (along with a couple of other variations for constructors). Either way, the new bytecode is passed as a Java-like source code statement or block in a
String. The Javassist methods effectively compile the source code you provide into Java bytecode, which they then insert into the body of the target method or constructor.
The source code accepted by Javassist doesn't exactly match the Java language, but the main difference is just the addition of some special identifiers used to represent the method or constructor parameters, method return value, and other items you may want to use in your inserted code. These special identifiers all start with the
$ symbol, so they're not going to interfere with anything you'd otherwise do in your code.
There are also some restrictions on what you can do in the source code you pass to Javassist. The first restriction is the actual format, which must be a single statement or block. This isn't much of a restriction for most purposes, because you can put any sequence of statements you want in a block. Here's an example using the special Javassist identifiers for the first two method parameter values to show how this works:
{ System.out.println("Argument 1: " + $1); System.out.println("Argument 2: " + $2); }
A more substantial limitation on the source code is that there's no way to refer to local variables declared outside the statement or block being added. This means that if you're adding code at both the start and end of a method, for instance, you generally won't be able to pass information from the code added at the start to the code added at the end. There are ways around this limitation, but the workarounds are messy -- you generally need to find a way to merge the separate code inserts into a single block.
Classworking with Javassist
For an example of applying Javassist, I'll use a task I've often handled directly in source code: measuring the time taken to execute a method. This is easy enough to do in the source; you just record the current time at the start of the method, then check the current time again at the end of the method and find the difference between the two values. If you don't have source code, it's normally much more difficult to get this type of timing information. That's where classworking comes in handy -- it lets you make changes like this for any method, without needing source code.
Listing 1 shows a (bad) example method that I'll use as a guinea pig for my timing experiments: the
buildString method of the
StringBuilder class. This method constructs a
String of any requested length by doing exactly what any Java performance guru will tell you not to do -- it repeatedly appends a single character to the end of a string in order()); } } }
Adding method timing
Because I have the source code available for this method, I'll show you how I would add the timing information directly. This will also serve as the model for what I want to do using Javassist. Listing 2 shows just the
buildString() method, with timing added. This doesn't amount to much of a change. The added code just saves the start time to a local variable, then computes the elapsed time at the end of the method and prints it to the console.
Listing 2. Method with timing
private String buildString(int length) { long start = System.currentTimeMillis(); String result = ""; for (int i = 0; i < length; i++) { result += (char)(i%26 + 'a'); } System.out.println("Call to buildString took " + (System.currentTimeMillis()-start) + " ms."); return result; }
Doing it with Javassist
Getting the same effect by using Javassist to manipulate the class bytecode seems like it should be easy. Javassist provides ways to add code at the beginning and end of methods, after all, which is exactly what I did in the source code to add timing information for the method.
There's a hitch, though. When I described how Javassist lets you add code, I mentioned that the added code could not reference local variables defined elsewhere in the method. This limitation blocks me from implementing the timing code in Javassist the same way I did in the source code; in that case, I defined a new local variable in the code added at the start and referenced that variable in the code added at the end.
So what other approach can I use to get the same effect? Well, I could add a new member field to the class and use that instead of a local variable. That's a smelly kind of solution, though, and suffers from some limitations for general use. Consider what would happen with a recursive method, for instance. Each time the method called itself, the saved start time value from the last call would be overwritten and lost.
Fortunately there's a cleaner solution. I can keep the original method code unchanged and just change the method name, then add a new method using the original name. This interceptor method can use the same signature as the original method, including returning the same value. Listing 3 shows what a source code version of this approach would look like:
Listing 3. Adding an interceptor method in the source took " + (System.currentTimeMillis()-start) + " ms."); return result; }
This approach of using an interceptor method works well with Javassist. Because the entire body of the method is a single block, I can define and use local variables within the body without any problems. Generating the source code for the interception method is also easy -- it only needs a few substitutions to work for any possible method.
Running the interception
Implementing the code to add method timing uses some of the Javassist APIs described in Javassist basics. Listing 4 shows this code, in the form of an application that takes a pair of command-line arguments giving the class name and method name to be timed. The
main() method body just finds the class information and then passes it to the
addTiming() method to handle the actual modifications. The
addTiming() method first renames the existing method by appending
"$impl" to the end of the name, then creates a copy of the method using the original name. It then replaces the body of the copied method with timing code wrapping a call to the renamed original method.
Listing 4. Adding the interceptor method with Javassist
public class JassistTiming { public static void main(String[] argv) { if (argv.length == 2) { try { // start by getting the class file and method CtClass clas = ClassPool.getDefault().get(argv[0]); if (clas == null) { System.err.println("Class " + argv[0] + " not found"); } else { // add timing interceptor to the class addTiming(clas, argv[1]); clas.writeFile(); System.out.println("Added timing to method " + argv[0] + "." + argv[1]); } } catch (CannotCompileException ex) { ex.printStackTrace(); } catch (NotFoundException ex) { ex.printStackTrace(); } catch (IOException ex) { ex.printStackTrace(); } } else { System.out.println("Usage: JassistTiming class method-name"); } } private static void addTiming(CtClass clas, String mname) throws NotFoundException, CannotCompileException { // get the method information (throws exception if method with // given name is not declared directly by this class, returns // arbitrary choice if more than one with the given name) CtMethod mold = clas.getDeclaredMethod(mname); // rename old method to synthetic name, then duplicate the // method with original name for use as interceptor String nname = mname+"$impl"; mold.setName(nname); CtMethod mnew = CtNewMethod.copy(mold, mname, clas, null); // start the body text generation by saving the start time // to a local variable, then call the timed method; the // actual code generated needs to depend on whether the // timed method returns a value String type = mold.getReturnType().getName(); StringBuffer body = new StringBuffer(); body.append("{\nlong start = System.currentTimeMillis();\n"); if (!"void".equals(type)) { body.append(type + " result = "); } body.append(nname + "($$);\n"); // finish body text generation with call to print the timing // information, and return saved value (if not void) body.append("System.out.println(\"Call to method " + mname + " took \" +\n (System.currentTimeMillis()-start) + " + "\" ms.\");\n"); if (!"void".equals(type)) { body.append("return result;\n"); } body.append("}"); // replace the body of the interceptor method with generated // code block and add it to class mnew.setBody(body.toString()); clas.addMethod(mnew); // print the generated code block just to show what was done System.out.println("Interceptor method body:"); System.out.println(body.toString()); } }
The construction of the interceptor method body uses a
java.lang.StringBuffer to accumulate the body text (showing the proper way to handle
String construction, as opposed to the approach used in
StringBuilder). This varies depending on whether the original method returns a value or not. If it does return a value, the constructed code saves that value in a local variable so it can be returned at the end of the interceptor method. If the original method is of type
void, there's nothing to be saved and nothing to be returned from the interceptor method.
The actual body text looks just like standard Java code except for the call to the (renamed) original method. This is the
body.append(nname + "($$);\n"); line in the code, where
nname is the modified name for the original method. The
$$ identifier used in the call is the way Javassist represents the list of parameters to the method under construction. By using this identifier in the call to the original method, all the arguments supplied in the call to the interceptor method are passed on to the original method.
Listing 5 shows the results of first running the
StringBuilder program in unmodified form, then running the
JassistTiming program to add timing information, and finally running the
StringBuilder program after it's been modified. You can see how the
StringBuilder run after modification reports execution times, and how the times increase much faster than the length of the constructed string because of the inefficient string construction code.
Listing 5. Running the programs
[dennis]$ java StringBuilder 1000 2000 4000 8000 16000 Constructed string of length 1000 Constructed string of length 2000 Constructed string of length 4000 Constructed string of length 8000 Constructed string of length 16000 [dennis]$ java -cp javassist.jar:. JassistTiming StringBuilder buildString Interceptor method body: { long 37 ms. Constructed string of length 1000 Call to method buildString took 59 ms. Constructed string of length 2000 Call to method buildString took 181 ms. Constructed string of length 4000 Call to method buildString took 863 ms. Constructed string of length 8000 Call to method buildString took 4154 ms. Constructed string of length 16000
Trust in the source, Luke?
Javassist does a great job of making classworking easy by letting you work with source code rather than actual bytecode instruction lists. But this ease of use comes with some drawbacks. As I mentioned back in The source of all bytecode, the source code used by Javassist is not exactly the Java language. Besides recognizing special identifiers in the code, Javassist implements much looser compile-time checks on the code than required by the Java language specification. Because of this, it will generate bytecode from the source in ways that may have surprising results if you're not careful.
As an example, Listing 6 shows what happens when I change the type of the local variable used for the method start time in the interceptor code from
long to
int. Javassist accepts the source code and converts it into valid bytecode, but the resulting times are garbage. If you tried compiling this assignment directly in a Java program, you'd get a compile error because it violates one of the rules of the Java language: a narrowing assignment requires a cast.
Listing 6. Storing a long in an int
[dennis]$ java -cp javassist.jar:. JassistTiming StringBuilder buildString Interceptor method body: { int 1060856922184 ms. Constructed string of length 1000 Call to method buildString took 1060856922172 ms. Constructed string of length 2000 Call to method buildString took 1060856922382 ms. Constructed string of length 4000 Call to method buildString took 1060856922809 ms. Constructed string of length 8000 Call to method buildString took 1060856926253 ms. Constructed string of length 16000
Depending on what you do in the source code, you can even get Javassist to generate invalid bytecode. Listing 7 shows an example of this, where I've patched the
JassistTiming code to always treat the timed method as returning an
int value. Javassist again accepts the source code without complaint, but the resulting bytecode fails verification when I try to execute it.
Listing 7. Storing a String in an int
[dennis]$ java -cp javassist.jar:. JassistTiming StringBuilder buildString Interceptor method body: { long start = System.currentTimeMillis(); int result = buildString$impl($$); System.out.println("Call to method buildString took " + (System.currentTimeMillis()-start) + " ms."); return result; } Added timing to method StringBuilder.buildString [dennis]$ java StringBuilder 1000 2000 4000 8000 16000 Exception in thread "main" java.lang.VerifyError: (class: StringBuilder, method: buildString signature: (I)Ljava/lang/String;) Expecting to find integer on stack
This type of issue isn't a problem as long as you're careful with the source code you supply to Javassist. It's important to realize that Javassist won't necessarily catch any errors in the code, though, and that the results of an error may be difficult to predict.
Looking ahead
There's a lot more to Javassist than what we've covered in this article. Next month, we'll delve a little deeper with a look at some of the special hooks Javassist provides for bulk modification of classes and for on-the-fly modification as classes are loaded at runtime. These are the features that make Javassist a great tool for implementing aspects in your applications, so make sure you catch the follow-up for the full story on this powerful tool.
Resources
- Javassist was originated by Shigeru Chiba of the Department of Mathematics and Computing Sciences, Tokyo Institute of Technology. It's recently joined the open source JBoss application server project where it's the basis for the addition of new aspect-oriented programming features. Javassist is distributed under the Mozilla Public License (MPL) and the GNU Lesser General Public License (LGPL) open source licenses.
- Learn more about the Java bytecode design in "Java bytecode: Understanding bytecode makes you a better programmer" (developerWorks, July 2001).
- Want to find out more about aspect-oriented programming? Try "Improve modularity with aspect-oriented programming" (developerWorks, January 2002). | http://www.ibm.com/developerworks/java/library/j-dyn0916/index.html | CC-MAIN-2015-22 | refinedweb | 2,914 | 61.16 |
I I noticed a lot of boilerplate code that would be created so then i decided to to use an intercepter and result type (within struts 2) to remove the need for all of this. So thats when the first version was born and from there its just naturally matured to the state it is in now. Simple How ToSo there is a lot of JavaDoc on the intercepter and result type declared in the jar file, but i'd annoy a lot of people if i directed you to that. So i'll give you a more detailed step by step how-to for the most basic scenario in how to use this plug-in. This example is going to assume your using Java 1.6 and know how to use annotations, since its the simplest scenario. A Simple JAXB EntitySo create a simple java bean and give it the proper JAXB annotations. package example;import javax.xml.bind.annotation.XmlRootElement;/** * @author You! */ //JAXB@XmlRootElement public class SimpleBean {private String value;public SimpleBean(){}public String getValue() {return value;}public void setValue(String value) {this.value = value;} }As you can see this is just a simple bean, that also contains the JAXB @XmlRootElement annotation. jaxb.indexSo now that you have a JAXB annotated bean you need to tell JAXB that it is okay to be marshalled and unmarshalled. You do this by adding a regular text file named jaxb.index in the package with the bean you just created. Here is what your jaxb.index should contain. SimpleBeanThe format of this file is really simple as you can see. So its worth noting that you could also use an ObjectFactory to initialize your JAXB entities. However I'm not going to go into it for 2 reasons. I only ever use the jaxb.index, and its the simpler scenario. If you already use an ObjectFactory or want to use one, do a quick google or just make the necessary adjustments. ActionNow that you have an entity you need something to process your request and initialize your entity. So the below example action does just that. package example; /** * @author You! */ public class SimpleAction {private SimpleBean simpleBean;public SimpleAction(){}public execute(){this.simpleBean = new SimpleBean();this.simpleBean.setValue("Hello World");return "simpleBeanResult";}public String getSimpleBean() {return simpleBean;}public void setSimpleBean(String simpleBean) {this.simpleBean = simpleBean;} }So when this action is executed it will create the member level variable, simpleBean and set its value to "Hello World". Nothing worth noting here. Add The Plug-inSo now you need to add the plug-in to your class path. This is typicially done by placing it into the WEB-INF\\lib directory of your Web Project. Struts.xml Configuration Now we need to do a handful of things to tell struts to use the action and utilize the plug-in's capabilities. I'll give you the example first and go over it below.. | https://www.findbestopensource.com/product/struts2-jaxb-plugin | CC-MAIN-2018-13 | refinedweb | 489 | 58.18 |
15 May 2009 11:05 [Source: ICIS news]
LONDON (ICIS news)--BioDiesel International (BDI) reported that lower associated company income helped depress first-quarter consolidated earnings by 12.5% to €0.70m ($0.96m), the Austrian company said on Friday.
BDI's earnings before interest and tax were 5.7% higher year on year at €0.70m, against the backdrop of tough market conditions.
The biodiesel plant maker said it benefited in the quarter from high-margin engineering commissions and an insurance compensation payment.
First-quarter sales were lower than expected, down 35.1% at €7.24m, because of project delays and a lack of new commissions for major projects, it said.
BDI said, however, that its after-sales business, which helps with the optimisation, retrofitting and upgrading of existing biodiesel plants, was developing encouragingly.
Accounts for four large-margin engineering commission were settled during the quarter and a project in ?xml:namespace>
($1 = €0.73)
Read Simon Robinson’s Big Biofuels | http://www.icis.com/Articles/2009/05/15/9216477/biodiesel-international-q1-earnings-drop-12.5-in-tough-market.html | CC-MAIN-2014-49 | refinedweb | 162 | 52.56 |
.
Before I dive into the details, let me first answer the question: What do I mean by similar associative containers? We have eight associative containers. Here are they.
By similar, I mean that their elements have the same structure and the same data types. The elements of std::set and std::multiset, std::unordered_set and std::unordered_multiset, std::map and std::multimap, and std::unordered_map and std::unordered_multimap have the same structure.
Of course, that was only a high-level overview of the eight associative containers. That for two reasons. First, I want to write about the improved interface. Second, you can read the details in my previous post: Hash Tables.
Now to something completely new.
Let me show you the improved interface with an exhaustive example.
// accociativeContainers.cpp
#include <iostream>
#include <map>
#include <string>
#include <utility>
using namespace std::literals; // 1
template <typename Cont>
void printContainer(const Cont& cont, const std::string& mess){ // 2
std::cout << mess;
for (const auto& pa: cont){
std::cout << "(" << pa.first << ": " << pa.second << ") ";
}
std::cout << std::endl;
}
int main(){
std::map<int, std::string> ordMap{{1, "a"s}, {2, "b"}}; // 3
ordMap.try_emplace(3, 3, 'C');
ordMap.try_emplace(3, 3, 'c');
printContainer(ordMap, "try_emplace: ");
std::cout << std::endl;
std::map<int, std::string> ordMap2{{3, std::string(3, 'C')}, // 4
{4, std::string(3, 'D')}};
ordMap2.insert_or_assign(5, std::string(3, 'e'));
ordMap2.insert_or_assign(5, std::string(3, 'E'));
printContainer(ordMap2, "insert_or_assign: "); // 5
std::cout << std::endl;
ordMap.merge(ordMap2); // 6
std::cout<< "ordMap.merge(ordMap2)" << std::endl;
printContainer(ordMap, " ordMap: ");
printContainer(ordMap2, " ordMap2: ");
std::cout << std::endl;
std::cout << "extract and insert: " << std::endl;
std::multimap<int, std::string> multiMap{{2017, std::string(3, 'F')}};
auto nodeHandle = multiMap.extract(2017); // 7
nodeHandle.key() = 6;
ordMap.insert(std::move(nodeHandle));
printContainer(ordMap, " ordMap: ");
printContainer(multiMap, " multiMap: ");
}
I use in the example a std::map because most of the times a std::map is your first choice for an associative container. If your associative container is big and performance is key, think about a std::unordered_map. In the post Associative Containers - A simple Performance Comparison are a few performance numbers.
To make my life easy I wrote the function template printContainer (2) to display the associative container together with a short message. The same argument holds for the using namespace std::literals expression (1). Now, I can use the new built-in-literal for a C++ string. You see its usage it in the key/value pair {1, "a"s} in (3). "a"s is the C++ string literal that is available since C++14. You have just to add the character s to the C string literal "a" to get a C++ string literal.
Now, I will explain the program in detail. To get a better idea of it, peek at the output.
They are two new ways to add new elements to an associative container: try_emplace and insert_or_assign. ordMap.try_emplace(3, 3, 'C') (3) tries to add an new element to ordMap. The first 3 is the key of the element and the following 3 and 'C' directly goes to the constructor of the value which is, in this case, a std::string. It's called try. Therefore, if the key is already in the std::map, nothing happens. ordMap2.insert_or_assign(5, std::string(3, 'e')) (4) behaves different. The first call (4) inserts the key/value pair 5, std::string("eee"), the second call assigns the std::string("EEE") to the key 5.
With C++17, you can merge associative Containers (6). ordMap.merge(ordMap2) will merge the associative container ordMap2 into ordMap. Formally this process is called "splice". That means each node consisting of the key/value pair will be extracted from ordMap2 and inserted into ordMap if the key is not available in ordMap. If the key is already in ordMap, nothing will happen. There is no copy or move operation involved. All pointer and references to the transferred node remain valid. You can merge nodes between similar containers. Associative containers must have the same structure and the same data types.
The extracting and inserting goes on (7). As I already mentioned it, each associative containers has a new subtype: a so-called node_type. I used it implicitly by merging one container into the other (6). You can even use the node_type to change a key of a key/value pair. Have a look here. auto nodeHandle multiMap.extract(2017) extracts the node with the key 2017 from the std::multimap<int, std::string>. In the following lines, I change the key to 6: nodeHandle.key() = 6 and insert it into ordMap. I have to move the node, copying is not possible.
Of course, I also can insert the node into the same associative container (A), from which I extracted it or insert the node into the ordMap without changing the key (B). You can also change the value of the node (C).
auto nodeHandle = multiMap.extract(2017); // A
nodeHandle.key() = 6;
multiMap.insert(std::move(nodeHandle));
auto nodeHandle = multiMap.extract(2017); // B
ordMap.insert(std::move(nodeHandle));
auto nodeHandle = multiMap.extract(2017); // C
nodeHandle.key() = 6;
ordMap.insert(std::move(nodeHandle));
ordMap[6] = std::string("ZZZ");
If you extract a node from an associative container (A) having a value such as std::map, std::unordered_map, std::multimap, or std::unordered_multimap, you get a node nodeHandleMap, on which you can invoke nodeHandleMap.key(). There is no method nodeHandleMap.value() to change the value of the node. Curiously enough if you extract a node nodeHandleSet from a std::set or one of its three siblings, you can change the key by invoking nodeHandleSet.value().
C++17 get three new global functions for accessing a container.
The three new functions are named std::size, std::empty, and std::data.
I have written about 10 posts to C++17. Here are they: category C++17. Therefore, I'm done. I have written in the last two years a lot of posts about multithreading. These posts were about the theory, the practice, concurrency with C++17 and C++20, and the memory model. As you might guess, I have a few new posts in mind for wrapping up my previous posts. Therefore, I will write my next posts about multithreading in existing and concurrency in the upcoming C++ standards. At first, I have to define a few terms. So I will write about data race versus race condition. In German, we use the same term "kritischer Wettlauf" for two different phenomena. That is extremely bad. Because in concurrency, concise terminology is35
Yesterday 7029
Week 40959
Month 107625
All 7375465
Currently are 114 guests and no members online
Kubik-Rubik Joomla! Extensions
Read more...
Read more... | https://modernescpp.com/index.php/c-17-the-improved-interface-of-the-associative-containers | CC-MAIN-2021-43 | refinedweb | 1,121 | 60.21 |
For other versions, see the Versioned plugin docs." ] } }
In addition to decoding the events, this input will add metadata about the TCP connection itself to each event. This can be helpful when applications are configured to send events directly to this input’s TCP listener without including information about themselves.
Historically, this metadata was added to a variety of non-standard top-level fields, which had the potential to create confusion and schema conflicts downstream. With ECS compatibility mode, we can ensure a pipeline still has access to this metadata throughout the event’s lifecycle without polluting the top-level namespace.
For example, the Elastic Common Schema reserves the top-level
host field for information about the host on which the event happened.
If an event is missing this metadata, it can be copied into place from the source TCP connection metadata that has been added to the event:
filter { if [@metadata][input][tcp][source] and not [host] { mutate { copy { "[@metadata][input][tcp][source][name]" => "[host][name]" "[@metadata][input][tcp][source][ip]" => "[host][ip]" } } } }.
- Value type is string
Supported values are:
disabled: unstructured connection metadata added at root level
v1,
v8: structured connection metadata added under
[@metadata][input][tcp]).
SSL key passphrase for the private key.
Verify the identity of the other end of the SSL connection against the CA.
For input, sets the field
sslsubject to that of the client certificate.. | https://www.elastic.co/guide/en/logstash/7.15/plugins-inputs-tcp.html | CC-MAIN-2022-05 | refinedweb | 232 | 51.99 |
I have installed ROOT 5.32 in my computer with Mac OS X 10.6.8. I should anticipate that I have just begun to study ROOT, so there may be something basic that I have not understood.
My assumption was that it should be possible to call any ROOT function, even those that display a graphical output, from C++ code compiled and linked to the root libraries. However, when I attempt to call the Draw() method from any class I see only this Terminal output and nothing other happens:
Info in <TCanvas::MakeDefCanvas>: created default TCanvas with name c1
Moreover, if I just initialize a TBrowser the program outputs a weird bunch of lines that announces a crash. I am attaching my code and the output I see.
My program:
#include <TBrowser.h> int main() { TBrowser b; }
The command I use to compile it:
The error it prints:
*** Break *** segmentation violation =========================================================== There was a crash. This is the entire stack trace of all threads: =========================================================== Thread 1 (process 30570): #0 0x00007fff83f54b28 in wait4 () #1 0x00007fff83f690e6 in system () #2 0x00000001008ed16c in TUnixSystem::StackTrace () #3 0x00000001008ea161 in TUnixSystem::DispatchSignals () #4 <signal handler called> #5 0x00000001008365c7 in TApplication::InitializeGraphics () #6 0x000000010083f4e5 in TBrowser::TBrowser () #7 0x0000000100001b68 in main () =========================================================== The lines below might hint at the cause of the crash. If they do not help you then please submit a bug report at. Please post the ENTIRE stack trace from above as an attachment in addition to anything else that might help us fixing this issue. =========================================================== #5 0x00000001008365c7 in TApplication::InitializeGraphics () #6 0x000000010083f4e5 in TBrowser::TBrowser () #7 0x0000000100001b68 in main () ===========================================================
Thanks in advance for any advice | https://root-forum.cern.ch/t/root-gui-functions-from-c-code-in-mac-os-x-crash/13575 | CC-MAIN-2022-27 | refinedweb | 272 | 66.27 |
Left to right: Paul Dix - InfluxData, David Kaltschmidt - Grafana Labs
Flux, the long-awaited new functional query processing engine for InfluxDB, has finally landed. If you’re curious to learn more about the hows and whys of its design, check out this GrafanaCon EU session with InfluxData Cofounder and CTO Paul Dix. Also we’d like to share a recent presentation from David Kaltschmidt, Director, UX for Grafana Labs on the new Flux support in Grafana!
Video: Full Flux Presentation from GrafanaCon:
Download the presentation slides.
Flux + Grafana = ❤
Given the excitement about Flux, we just released a plugin that adds Flux support to Grafana. “Flux is powerful stuff, and you can use it with Grafana today,” says David Kaltschmidt, Director of UX for Grafana Labs, who recently did a live demo of the plugin. Simply download the new plugin from grafana.com to install it. The one requirement is that “you need a super recent version of Grafana (v5.1+), because we expanded the data source plugin model,” he says. “The plugin has syntax highlighting, tag completion, raw table preview, and inline function documentation, which I think is really helpful especially if you’re starting a new language.”
Video: Flux Support in Grafana:
Download the Flux Grafana Plugin Now
WTF(lux)
Dix explained the evolution of his thinking about how best to work with time series data. The first version of Flux (then known as IFQL - Influx Functional Query Language) was based on the same tech that he’d used for errplane, a SaaS server monitoring product, which included Rest API. “The thing that I learned with the Rest API was people understood SQL as a query language for working with their data,” said Dix. “When I kickstarted InfluxDB [in November 2013], the innovation that we introduced was basically a language that looks kind of like SQL.”
To SQL or Not to SQL
A year later, Dix began giving talks with different user groups, and he polled the audience: “Does it make more sense to organize your metrics as a hierarchy, like Graphite does, or does it make more sense to organize it as tags?” Tags won out, and that was the new API introduced in the next version. But on the second question, whether SQL or a functional language was superior for working with this kind of data, the rooms were evenly split. “While I thought functional was the way to do it, I didn’t want to make the change because Influx was gaining in popularity and a lot of people told me the reason we love the project is because of the SQL query language. So basically I was too afraid to switch.”
Fast forward to today, and “there are a bunch of feature requests that people have,” said Dix. “We want to deliver those features, but we were kind of hemmed in by this weird SQL query language that we had created.” And with the new Flux, all of these features are included. “We were able to implement these features in a few months, that we hadn’t been able to get to in two years,” Dix said. “The problem was the query language that we had was really really hard to improve and to change.”
The same could be said with TICKscript, the language of InfluxDB’s monitoring piece, Kapacitor. It was designed to be more functional, but “It is really hard to debug, and it has a super steep learning curve because this doesn’t look like anything anybody’s familiar with,” Dix said. “We essentially created a second language for working with time series data in our platform.”
At the beginning of 2017, Dix decided a rethink was in order: “If I had to do everything brand new, if I had to start Influx today, what would I do?”
One Language to Unite them All
The answer turned out to be pretty simple: “Kapacitor is just background processing, but the truth is, it is the query engine,” he said. “If you’re doing a batch job, that looks exactly like a query a user would submit to a database. InfluxDB is batch interactive. It’s users querying the database. So basically when I thought about 2.0 and what I wanted to accomplish with it, I wanted to unify the API and the language so there’s just one thing you have to learn: one language to unite them all.”
Dix’s solution should also help increase feature velocity, enabled by the fact that the storage will be decoupled from the compute. “We can deploy these features frequently, and the risk of shipping a code update in the query language is not nearly as high because you know your data is safe,” he said. “One feature requests we have frequently now is that people want it to be multi-tenant. The nice thing about having these query processors be stateless systems is you can containerize them and you can put them in a lockbox and say this person can’t mess with this person.”
IFQL Flux
The decision to rebrand IFQL as Flux came in large part “because it’s selling it short to call it a query language,” said Dix. “I think of it more as a language for working with data.”
As for the design philosophy, Dix said it’s this: “You want a user interface for the masses. I know the hardcore people want to write their queries, but my theory is most people don’t want to write queries. They want a point-and-click UI, and they want to see their data.”
Other Guiding Principles for Flux:
- It’s optimized for readability.
- It’s flexible.
- It’s easy for people to contribute to it.
- Code sharing and reuse will be enabled.
Video Demo Features:
- More complex windowing behavior enabled than before.
- Anonymous functions, and pipe forward operators to make clear that data is being piped in from one function to another.
- Named parameters only, no provisional parameters; for added flexibility and readability.
- A record looks like a flat object or a row in a table. Anything that starts with an underscore is reserved for system attributes; all data within an InfluxDB would have _measurement and _field.
- From a user perspective, functions operate in isolation. They have an input and an output.
- Order doesn’t matter in terms of optimization, but it matters for semantics: “The planner should optimize the query so that it runs in the most efficient way.”
- There are closures in the language.
- It’s easy to add functions in the language: “You can define an entire function in three pages’ worth of code.”
- It will have imports and namespaces.
- You can query based on metadata in a specific time range.
As Dix put it, “Ideally, I want people to build the language around their use case, so if you have common boilerplate, you could do something like define a function where you just say, ‘Okay, I know the boilerplate is: I’m always asking for a database, I’m always going to ask for a measurement and a field. So I can just do that. And I can pipe the result of that function to the other things.’”
Now that the language has been formalized, it is shipping with the enterprise version of InfluxDB, and there will be commercial support coming soon. “This is a lot of work for the API 2.0 effort,” said Dix. “Flux is the first bit of that.” | https://grafana.com/blog/2018/07/26/how-the-new-influx-query-engine-was-designedand-how-to-use-it-with-grafana/ | CC-MAIN-2020-24 | refinedweb | 1,248 | 69.72 |
I've made a cool thing, and I want to share cool thing. Said thing has many C# classes that make it work, and some of them have names like Face, Vertex, Model, and so on. Needless to say I don't want to muck up peoples namespaces with these. These classes will only be used inside of the thing I'm sharing, and there's only one class the user needs access to to make the whole show work. What's the best way to hide the others?
Should I put them all in a namespace, and just have the user "using CoolThing'" in the script they need to use the cool thing in? There will only ever be once of these in a scene, and therefore this will have to be done on exactly one script. (which I have included for them).
Is there an easier/better way to isolate my internal classes from the rest of the world?
Answer by Jamora
·
Oct 07, 2013 at 01:14 PM
If you're developing a framework, meaning other people access your framework from a different assembly, the best way is to use the internal keyword.
If, for some reason you need to share the assembly with those other programmers, you can prevent polluting the global namespace unnecessarily and restrict access by other programmers by making all your not accessible classes nested private classes within the only public class. Sort of like a makeshift namespace (possibly within another namespace).
Consider the following:
public class PublicClass : MonoBehaviour{
private class HiddenClass{}
private class NotAccessibleClass{
HiddenClass h = new HiddenClass(); //works
}
}
public class TestClass{
PublicClass.NotAccessibleClass attempt; //compilation fail
}
Only PublicClass will be visible to the End-User (MonoDevelop's IntelliSense will show the 'hidden' classes if you try the dot-notation on it). Everything else works internally like it should, assuming you don't need to inherit from MonoBehaviour and use Unity-functions in the nested classes.
Answer by gjf
·
Oct 07, 2013 at 10:16 AM
even if you use your own namespace, there's still a chance for some confusion when referencing your objects, etc. versus unity's own.
ideally, you'd prefix yours with something to avoid that situation, along with its own.
Multiple Cars not working
1
Answer
Distribute terrain in zones
3
Answers
When will Unity Support .NET 4 to the current Mono Level?
1
Answer
how to connect to mssql in unity for hololesn (Build Setting Error)
0
Answers
Dll call 10x slower in Unity
3
Answers | https://answers.unity.com/questions/550322/whats-the-best-way-to-hide-classes-when-sharing-c.html | CC-MAIN-2019-43 | refinedweb | 420 | 60.55 |
17107/how-do-i-know-whats-going-to-be-deleted
I've been working on SQL-Alchemy which involves using more complex, hierarchical models with differing settings on how cascade deletes are handled it gets quite hard to figure out beforehand what a delete() will exactly do with the database.
So can someone tell me a way around to find what exactly will be deleted by delete()?
An easy system would be to add a new event "flush_plan_complete" which will put you into a flush() right as the full plan has been assembled, but before any SQL occurs. It could allow you to register more objects for activity, and it would then rerun the flush plan to consider any new changes (since that's how it works right now anyway). How this registration would proceed is tricky, since it would be nice to use the Session normally there, but that makes this more complicated to implement. But then it could iterate again through the new changes and find any remaining steps to take before proceeding normally.
I hope this answer helps you :)
connect mysql database with python
import MySQLdb
db = ...READ MORE
Understand that every 'freezing' application for Python ...READ MORE
If you only have one reference to ...READ MORE
can you give an example? READ MORE
use lower() for lowercasing.example:
"ALIREZA".lower()
> ...READ MORE
You can use the pandas library to ...READ MORE
Here am talking about my example you ...READ MORE
copy a file in python
from shutil ...READ MORE
You can find the explanation and implementation ...READ MORE
For Python 3, try doing this:
import urllib.request, ...READ MORE
OR | https://www.edureka.co/community/17107/how-do-i-know-whats-going-to-be-deleted | CC-MAIN-2019-22 | refinedweb | 274 | 72.97 |
I would do the check for whether x ==2 and x ==3 before your for loop. This is my code below. It keeps failing on is_prime(9). Can anyone spot where I'm going wrong?
def is_prime(x): if x < 2: return False elif x==2 or x==3: return True else: for n in range(2,x): if x % n==0: return False else: return True
Please read this post about markdown so your code/indent will show.
In your case your loop only runs, (see above) and returns True or False (because if is true, or else will run) either way, the loop runs once, you want to put return True outside the for loop
Thanks! I've been trying to figure that out | https://discuss.codecademy.com/t/15-prime/31819 | CC-MAIN-2017-22 | refinedweb | 126 | 88.47 |
27 July 2012 05:03 [Source: ICIS news]
SINGAPORE (ICIS) – China National Offshore Corp (CNOOC) and Shenzhen Energy have obtained regulatory approval to build a 4m tonne/year liquefied natural gas (LNG) terminal at Shenzhen in ?xml:namespace>
The approval was granted by
The yuan (CNY) 8.1bn ($1.27bn) project is a 70:30 joint venture between CNOOC Oil & Gas and Shenzhen Energy, according to the statement.
The project cost also covers building of four LNG tanks – each with a storage capacity of 160,000 cubic metres (cbm) – and a berth with an 80,000-266,000cbm capacity at terminal, it said.
The terminal will receive LNG cargoes from overseas for distribution to industrial users, such as power plants.
A CNOOC source said that the project would be constructed in two phases with equal capacity, but timeframe has not been decided yet.
( | http://www.icis.com/Articles/2012/07/27/9581514/cnooc-shenzhen-energy-jv-lng-terminal-gets-government-approval.html | CC-MAIN-2014-41 | refinedweb | 143 | 57.4 |
Node:Masks, Previous:Bitwise exclusive OR (XOR/EOR), Up:Truth tables and bit masks
Masks
Bit strings and bitwise operators are often used to make masks. A mask is a bit string that "fits over" another bit string and produces a desired result, such as singling out particular bits from the second bit string, when the two bit strings are operated upon. This is particularly useful for handling flags; programmers often wish to know whether one particular flag is set in a bit string, but may not care about the others. For example, you might create a mask that only allows the flag of interest to have a non-zero value, then AND that mask with the bit string containing the flag.
Consider the following mask, and two bit strings from which we want to
extract the final bit:
mask = 00000001 value1 = 10011011 value2 = 10011100 mask & value1 == 00000001 mask & value2 == 00000000
The zeros in the mask mask off the first seven bits and only let the last bit show through. (In the case of the first value, the last bit is 1; in the case of the second value, the last bit is 0.)
Alternatively, masks can be built up by operating on several flags, usually
with inclusive OR:
flag1 = 00000001 flag2 = 00000010 flag3 = 00000100 mask = flag1 | flag2 | flag3 mask == 00000111
See Opening files at a low level, for a code example that actually uses bitwise OR to join together several flags.
It should be emphasized that the flag and mask examples are written in pseudo-code, that is, a means of expressing information that resembles source code, but cannot be compiled. It is not possible to use binary numbers directly in C.
The following code example shows how bit masks and bit-shifts can be combined.
It accepts a decimal number from the user between 0 and 128, and prints out
a binary number in response.
#include <stdio.h> #define NUM_OF_BITS 8 /* To shorten example, not using argp */ int main () { char *my_string; int input_int, args_assigned; int nbytes = 100; short my_short, bit; int idx; /* This hex number is the same as binary 10000000 */ short MASK = 0x80; args_assigned = 0; input_int = -1; while ((args_assigned != 1) || (input_int < 0) || (input_int > 128)) { puts ("Please enter an integer from 0 to 128."); my_string = (char *) malloc (nbytes + 1); getline (&my_string, &nbytes, stdin); args_assigned = sscanf (my_string, "%d", &input_int); if ((args_assigned != 1) || (input_int < 0) || (input_int > 128)) puts ("\nInput invalid!"); } my_short = (short) input_int; printf ("Binary value = "); /* Convert decimal numbers into binary Keep shifting my_short by one to the left and test the highest bit. This does NOT preserve the value of my_short! */ for (idx = 0; idx < NUM_OF_BITS; idx++) { bit = my_short & MASK; printf ("%d", bit/MASK); my_short <<= 1; } printf ("\n"); return 0; } | http://crasseux.com/books/ctutorial/Masks.html | CC-MAIN-2017-43 | refinedweb | 451 | 63.43 |
import com.sleepycat.db.*;
public boolean get_byteswapped();
The Db.get_byteswapped method returns false if the underlying database files were created on an architecture of the same byte order as the current one, and returns true if they were not (that is, big-endian on a little-endian machine, or vice versa). This field may be used to determine whether application data needs to be adjusted for this architecture or not.
The Db.get_byteswapped interface may be called only after the Db.open interface has been called.
The Db.get_byteswapped method may fail and throw an exception encapsulating a non-zero error for the following conditions:
Called before Db.open was called.
The Db.get_byteswapped method may fail and throw an exception for errors specified for other Berkeley DB and C library or system methods. If a catastrophic error has occurred, the Db.get_byteswapped method may fail and throw a DbRunRecoveryException, in which case all subsequent Berkeley DB calls will fail in the same way. | http://doc.gnu-darwin.org/api_java/db_get_byteswapped.html | CC-MAIN-2018-51 | refinedweb | 164 | 64.51 |
Java 7/8 And The Built-In Assertion
The
java.util.Objects utility class comes with a useful null-check assertions:
requireNonNull
Instead of checking a variable with if-statements you can use the built-in method:
import static java.util.Objects.requireNonNull; (...) requireNonNull(this.script, "Cannot initialize ScriptableSink without script.");
The sample above was borrowed from enhydrator.
The problem is, it throws NullPointerException. That makes it impossible for the clients to differentiate a bug in the called code (usually an NPE) from a bug in their own code (better expressed through an IllegalArgumentException).
Posted by Ollie on November 02, 2015 at 09:25 AM CET #
Have seen an assert in the wild?
Posted by Arturo Tena on November 04, 2015 at 06:35 AM CET # | http://adambien.blog/roller/abien/entry/java_7_8_and_the | CC-MAIN-2018-30 | refinedweb | 126 | 57.27 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.