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 |
|---|---|---|---|---|---|
django-nose-qunit 1.5.2
Integrate QUnit JavaScript tests into a Django test suite via nose
Integrate QUnit JavaScript tests into a Django test suite via nose.
Installation
pip install django-nose-qunit.
Add 'django_nose_qunit' to your INSTALLED_APPS setting.
Ensure that you’re using nose as your test runner by using the following Django setting
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
Enable the nose plugin by adding it to the NOSE_PLUGINS Django setting:
NOSE_PLUGINS = [ 'django_nose_qunit.QUnitPlugin' ]
Add an entry to your URL configuration:
from django_nose_qunit.urls import urlpatterns as qunit_urlpatterns urlpatterns += qunit_urlpatterns()
This adds new URLs of the form /qunit/*, and they return a 404 unless DEBUG is True or QUnit tests have been initialized as part of a test run.
Configure Selenium as explained in the sbo-selenium README.
Make sure MEDIA_URL is set to some non-empty string, like “/media/”. If this is not done, the live test server can occasionally get confused and treat requests for a test page as requests for static files.
Creating Unit Tests
Tests can be written in JavaScript using QUnit as normal; see the QUnit documentation for details. You need only create a JavaScript file, not the HTML page that will load it (that is provided by the template at qunit/template.html). If your tests depend on HTML fixtures in the qunit-fixture div, create those as HTML fragments in files which can be loaded as templates. External script dependencies should be files in the staticfiles load path. You should add QUnit.Django.start(); before your test definitions and QUnit.Django.end(); at the end of your test definitions; this allows the tests to start executing at an appropriate time depending on whether they’re running in a browser, in a nose test run, or inside a require() block of an AMD loader like RequireJS.
To make nose aware of your QUnit tests, create a subclass of django_nose_qunit.QUnitTestCase in a file which would normally be searched by nose, for example my_app/test/qunit/test_case.py. It can contain as little as just the test_file attribute (a path to a QUnit test script, relative to STATIC_URL). Any script dependencies for your test script should be given as paths relative to STATIC_URL in the dependencies attribute. Paths to HTML fixture templates are listed in the html_fixtures attribute.
Running Unit Tests
Add --with-django-qunit to your normal test execution command (using django-admin.py or manage.py). Execution can be restricted to one or more specified packages and/or classes as normal (“myapp”, “myapp.tests.qunit”, “myapp.tests.qunit:MyTestCase”, etc.). There is currently no support for running only a single module or test within a QUnit test script; QUnit module and test names can be arbitrary strings, which makes it difficult for the nose command line parser to handle them.
To run the QUnit tests in a regular web browser, use the runserver management command with QUNIT_DYNAMIC_REGISTRY set to True (by default, it has the same value as DEBUG). If DEBUG is False, you’ll also need to use the --insecure parameter to serve static files. You can then access a list of links to the available QUnit tests at a URL like. This can be useful when first developing a test script and when troubleshooting failing tests.
How It Works
QUnitTestCase is a subclass of Django’s LiveServerTestCase, which starts a Django test server in the background on setup of the test class and stops it on teardown. django_nose_qunit includes a nose plugin which can accommodate tests written as simple wrappers for JavaScript test files. When nose searches for tests to run, the plugin tells it how to ask a browser via Selenium WebDriver to load each test script (without running the tests) in order to get information about the modules and tests it contains. Once these tests are enumerated, they are run like any other test case. The first execution of a test from a QUnit test script runs all of the tests in the script, and the results are stored. Each test case then reports success or failure based on the reported results, with failures including any messages provided by QUnit.
- :: Testing
- Package Index Owner: jmbowman, Thomas.Grainger
- DOAP record: django-nose-qunit-1.5.2.xml | https://pypi.python.org/pypi/django-nose-qunit/1.5.2 | CC-MAIN-2016-22 | refinedweb | 707 | 62.27 |
GameFromScratch.com
Alright I admit it, something shiny and new came along and of course I am attracted to it! As I mentioned a few days back, the Cocos2d-x team released Cocos2d-html, an HTML5 port of the popular Cocos2D iPhone game library.
I have never worked with a Cocos2D library yet, although Sony’s GameEngine2D is based heavily on it. So I jumped in to the HTML5 version and I have to say I am extremely impressed so far. Therefore I am going to do a (simple?) tutorial series on using Cocos2D-x to create HTML5 games. I am not sure exactly how much detail I am going into but it should be kind of fun. Expect a setup and Hello World tutorial post anytime.
Don’t worry though, I am still working on new PlayStation Suite tutorials, still intend to do an HTML5/RPG tutorial ( although whether I use HTML5, or a library like Cocos2D-x is up in the air, working with a library is so much nicer! ) in the near future and yes, I am going to finish my C++ game tutorial too. What can I say, I love juggling projects.
So, if you are interested in developing 2D games targeting HTML5 web browsers be sure to keep an eye on this space, something will be coming soon!
If on the other hand, you are a Cocos2D veteran and you seem me doing something stupid, please let me know!
General
Tutorial HTML
There was an interesting ( to me anyways… ) topic on Reddit today about making games that are accessible to the blind or visual impaired. After thinking about this for a little bit, I though that there might be a remarkably easy way to add text to speech to a console based game. Turns out I was correct.
The following is a C# app that makes heavy use of the .NET System.Speech libraries, however it does appear to be available in Mono, so it should work across platforms.
In the end the process is remarkably simple, all I am doing is redirecting Console.Out ( StdOut ) to my custom class, which converts the text to speech.
Let’s take a look, this code is across two classes. One is our exceedingly simple game:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AudibleTextAdventure
{
class Program
{
private static StdoutToSpeech speechOut;
static void Main(string[] args)
{
speechOut = new StdoutToSpeech();
Console.SetOut(speechOut);
Console.WriteLine("You are standing in an open field west of a white house, with a boarded front door.");
Console.WriteLine("There is a small mailbox here.");
bool done = false;
while (!done)
{
Console.Clear();
Console.WriteLine("What would you like to do?");
string currentCommandString = Console.ReadLine().ToLower();
string [] tokens = currentCommandString.Split(new char[] { ' ' });
string currentCommand = tokens.First();
switch (currentCommand)
{
case "volume":
{
if (tokens.Length > 1)
{
if(tokens[1].ToLower() == "up")
speechOut.VolumeUp();
if(tokens[1].ToLower() == "down")
speechOut.VolumeDown();
}
break;
}
case "quit":
done = true;
Console.WriteLine("Thank you for playing, Goodbye");
break;
case "help":
Console.WriteLine("Sorry, you are beyond help");
break;
case "changevoice":
speechOut.NextVoice();
break;
default:
Console.WriteLine("I don't know the work \"" + currentCommand + "\"");
break;
}
}
}
}
}
Most of that code is the skeleton of our “game”. The majority is just getting and displaying strings as well as parsing and handling the commands our game accepts. The only lines of any real consequence here are:
speechOut = new StdoutToSpeech();
Console.SetOut(speechOut);
Here we declare our StdoutToSpeech object we are about to define in a second, and replace the standard output stream with it. Now lets look at StdoutToSpeech:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Speech;
using System.Media;
namespace AudibleTextAdventure
{
class StdoutToSpeech : System.IO.TextWriter
{
static System.Speech.Synthesis.SpeechSynthesizer synthesizer;
static SoundPlayer soundPlayer;
static System.IO.TextWriter origOut;
static int currentVoice = 0;
static List<System.Speech.Synthesis.InstalledVoice> voices;
public StdoutToSpeech()
{
// Grab a reference to Stdout before it's overridden
origOut = Console.Out;
synthesizer = new System.Speech.Synthesis.SpeechSynthesizer();
// Will bork if no voices found
voices = synthesizer.GetInstalledVoices().ToList();
synthesizer.SelectVoice(voices.First().VoiceInfo.Name);
// Slow it down a bit
synthesizer.Rate = -1;
synthesizer.Volume = 5;
soundPlayer = new SoundPlayer();
}
public override void WriteLine(string value)
{
// We still want text to show...
origOut.WriteLine(value);
using (System.IO.MemoryStream mem = new System.IO.MemoryStream())
{
synthesizer.SetOutputToWaveStream(mem);
synthesizer.Speak(value);
soundPlayer.Stream = mem;
soundPlayer.Stream.Position = 0;
soundPlayer.PlaySync();
}
}
public void VolumeUp()
{
if (synthesizer.Volume < 10)
{
synthesizer.Volume++;
this.WriteLine("Volume increased");
}
}
public void VolumeDown()
{
if (synthesizer.Volume > 0)
{
synthesizer.Volume--;
this.WriteLine("Volume reduced");
}
}
public void NextVoice()
{
currentVoice++;
if (currentVoice >= voices.Count)
currentVoice = 0;
else
{
synthesizer.SelectVoice(voices[currentVoice].VoiceInfo.Name);
this.WriteLine("Voice changed");
}
}
public override Encoding Encoding
{
get
{
throw new Exception("If you are trying to use this as text, you are in for a world of hurt!");
}
}
}
}
In our constructor we create our System.Speech.Sythensis.SpeechSynthesizer, set a voice, default speed and volume for it. We also instantiate our SoundPlayer which is going to actually play the sound file our synthesizer um… synthesizes.
The key to this class is that it inherits from System.IO.TextWriter, this is the only type that we can set standard out to. Our class must implement the Encoding:Get method, which if anyone actually called would cause all kinds of problems, so we throw an Exception if it is actually called. In the constructor we take a snapshot of the original standard out, so we will still be able to print to text.
Otherwise most of the work happens in our WriteLine overload. First we print out to the original standard out, otherwise our command prompt would become audio only! Next we create our memory stream that our synthesizer is going to record to. We then render whatever speech was printed via a Console.WriteLine() call, set it as the active stream and play it using our soundPlayer. We using PlaySync() to make sure it finished playing before continuing execution. You could use Play(), but it would only render the most recent sentence if a couple lines where written at once. Also note, we only overrode WriteLine(string), so if you do Console.Write, Console.WriteLine(char[]) or any other version, nothing will happen. If you want to support more versions, you need to implement.
Otherwise the rest of the code provides a simple interface for increasing and decreasing volume, as well as changing between voices. Keep in mind though, if you are using Vista or Windows 7, you probably only have on voice installed. You can however add additional voices ( including different languages ), I download one from here for example ( copy the dlls to your debug folder if you get an error ).
Now when you run the application, you can use the following commands:
quit – exits the “game”
volume up – increases the voices volume
volume down – decreases the voices volume
help – displays a help string
changevoice – changes to the next installed voice, if you have any.
Obviously in a real game you would do substantially more. In a real game you would also add a great deal more error checking too, as this is just a proof of concept I slapped together! Obviously use at your own risk, as I offer no warranty. Then again, I never offer a warranty…
And here it is in action:
Programming
Tips C#
This is one of those libraries I really have been meaning to check out. Every time I turn around it seems like it’s been ported to another platform and today is no different! Cocos2D can now target HTML5.
In the developers own words:
HTML | http://www.gamefromscratch.com/2012/05/default.aspx | CC-MAIN-2018-43 | refinedweb | 1,274 | 59.6 |
I've used a map step to create a JavaRDD object containing some objects I need. Based on those objects I want to create a global hashmap containing some stats, but I can't figure out which RDD operation to use. At first I thought reduce would be the solution, but then I saw that you have to return the same type of objects. I'm not interested in reducing the items, but in gathering all the stats from all the machines (they can be computed separately and then just added up_.
For example: I have an RDD of Objects containing an integer array among other stuff and I want to compute how many times each of the integers has appeared in the array by putting them into a hashtable. Each machine should compute it's own hashtable and then put them all in one place in the driver.
Often when you think you want to end up with a Map, you'd need to transform your records in the RDD into key-value pairs, and use
reduceByKey.
Your specific example sounds exactly like the famous wordcount example (see first example here), only you want to count integers from an array within an object, instead of counting words from a sentence (String). In Scala, this would translate to:
import org.apache.spark.rdd.RDD import scala.collection.Map class Example { case class MyObj(ints: Array[Int], otherStuff: String) def countInts(input: RDD[MyObj]): Map[Int, Int] = { input .flatMap(_.ints) // flatMap maps each record into several records - in this case, each int becomes a record .map(i => (i, 1)) // turn into key-value map, with preliminary value 1 for each key .reduceByKey(_ + _) // aggregate values by key .collectAsMap() // collects data into a Map } }
Generally, you should let Spark perform as much of the operation as possible in a distributed manner, and delay the collection into memory as much as possible - if you collect the values before reducing, often you'll run out of memory, unless your dataset is small enough to begin with (in which case, you don't really need Spark).
Edit: and here's the same code in Java (much longer, but identical...):
static class MyObj implements Serializable { Integer[] ints; String otherStuff; } Map<Integer, Integer> countInts(JavaRDD<MyObj> input) { return input .flatMap(new FlatMapFunction<MyObj, Integer>() { @Override public Iterable<Integer> call(MyObj myObj) throws Exception { return Arrays.asList(myObj.ints); } }) // | http://www.devsplanet.com/question/35267044 | CC-MAIN-2016-50 | refinedweb | 403 | 50.77 |
[ovirt-users] Re: oVirt and Windows NFS
Ron, It works for preallocated disks only. So if you have a Microsoft powered storage, it's better to use Microsoft iSCSI. Related links: On 14/05/2019, 01:31, "r...@prgstudios.com"
[ovirt-users] Re: VM hangs after live migration
I believe there is an issue with online migration from qemu 2.6.0. I hit it too. Online migration from latest 2.6.0 to latest 2.9.0 worked with no random VM hangs for me. On 11/10/2018, 07:58, "t HORIKOSHI" wrote: Hi, I'm using RHV. When live migration of guest VM (CentOS 6) from
Re: [ovirt-users] Q: VM disk speed penalty NFS vs Local data center storage
Andrei, You could try pNFS. It allows to access a data on a local storage directly bypassing NFS and even FS level. Unfortunately, it requires SCSI Persistent Reservation feature so would not work all RAID controllers. From:
on behalf of Yaniv Kaul
Re: [ovirt-users] Ovirt 4.0 and EL 7.4
Full /etc/sasl2/libvirt.conf: mech_list: digest-md5 sasldb_path: /etc/libvirt/passwd.db Also note that VDSM has to be patched to work on 7.4 with no issues. oVirt 3.6 and 4.1 have required fixes, but oVirt 4.0 doesn’t. On 04/10/2017, 18:44, "users-boun...@ovirt.org on behalf of Alan Griffiths"
Re: [ovirt-users] deprecating export domain?
bey...@gmail.com> Date: Monday, 2 October 2017 at 19:10 To: Pavel Gashev <p...@acronis.com> Cc: Maor Lipchuk <mlipc...@redhat.com>, "users@ovirt.org" <users@ovirt.org> Subject: Re: [ovirt-users] deprecating export domain? Yes, I just gave an example case. If
Re: [ovirt-users] deprecating export domain?
dubey <sdubey...@gmail.com> Date: Monday, 2 October 2017 at 15:55 To: Charles Kozler <ckozler...@gmail.com> Cc: Pavel Gashev <p...@acronis.com>, users <users@ovirt.org>, Maor Lipchuk <mlipc...@redhat.com> Subject: Re: [ovirt-users] deprecating export domain? Hi, The backu
Re: [ovirt-users] deprecating export domain?
Maor, Could you please clarify, what would be the process of making backup of a running VM to an existing backup storage domain? I’m asking because it looks like the process is going to be quite the same: 1. Clone VM from a snapshot 2. Move the cloned VM to a backup storage domain An ability
Re: [ovirt-users] Different link speeds in LACP LAG?
Chris, Each network reconfiguration step would require some downtime. It makes sense to add 10G and remove 1G in single step. On 14/09/2017, 01:21, "users-boun...@ovirt.org on behalf of Chris Adams"
wrote: I have a small oVirt setup
Re: [ovirt-users] CBT question
The dirty bitmap is already working well enough in QEMU 2.6. It can be used via LibVirt qemu-monitor-command. The only issue is that dirty bitmaps do not sustain VM restarts, snapshot creating/deleting, and VM live migration. However, this is not a big issue if you perform backups often than
Re: [ovirt-users] Good practices
Fernando, I agree that RAID is not required here by common sense. The only point to setup RAID is a lack of manageability of GlusterFS. So you just buy manageability for extra hardware cost and write performance in some scenarios. That is it. On 08/08/2017, 16:24, "users-boun...@ovirt.org on
Re: [ovirt-users] Host stuck unresponsive after Network Outage
Anthony, Output of “systemctl status -l vdsm-network” would help. From:
on behalf of "Anthony.Fillmore" Date: Tuesday, 18 July 2017 at 18:13 To: "users@ovirt.org" Cc: "Brandon.Markgraf" ,
Re: [ovirt-users] Hosted Engine/NFS Troubles
Phillip, The relevant lines from the vdsm logs are the following: jsonrpc.Executor/6::INFO::2017-07-17 14:24:41,005::logUtils::49::dispatcher::(wrapper) Run and protect: connectStorageServer(domType=1, spUUID=u'----', conList=[{u'protocol _version': 3,
Re: [ovirt-users] Bizzare oVirt network problem
ganizing things), but in the other Datacenter the oVirt Node is standlone. Let me know. Fernando On 12/07/2017 16:49, Pavel Gashev wrote: Fernando, It looks like you have another oVirt instance in the same network segment(s). Don’t you? From: <users-boun...@ovirt.org><mailto:users-boun...
Re: [ovirt-users] Bizzare oVirt network problem
Fernando, It looks like you have another oVirt instance in the same network segment(s). Don’t you? From:
on behalf of FERNANDO FREDIANI Date: Wednesday, 12 July 2017 at 16:21 To: "users@ovirt.org" Subject: [ovirt-users]
Re: [ovirt-users] Dell firmware update problem
This is a multipath issue. I’d suggest to stop multipathd service before applying Dell updates. This will not affect currently running multipath devices. On 23/06/2017, 13:32, "users-boun...@ovirt.org on behalf of Davide Ferrari"
wrote:
Re: [ovirt-users] Migrating oVirt cluster from 4.0 to 4.1
Karli, Almost everything can be updated without system reboot. Even kernel, see From: Karli Sjöberg <ka...@inparadise.se> Date: Monday, 12 June 2017 at 20:35 To: Pavel Gashev <p...@acronis.com> Cc: Tomas Jelinek <tjeli...@redhat.com>, users <users@o
Re: [ovirt-users] Migrating oVirt cluster from 4.0 to 4.1
: Tomas Jelinek <tjeli...@redhat.com> Date: Monday, 12 June 2017 at 16:42 To: Pavel Gashev <p...@acronis.com> Cc: James <ja...@jloh.co>, users <users@ovirt.org> Subject: Re: [ovirt-users] Migrating oVirt cluster from 4.0 to 4.1 On Mon, Jun 12, 2017 at 2:12 PM, Pavel Gashev &l
Re: [ovirt-users] Migrating oVirt cluster from 4.0 to 4.1
Can I update VMs compatibility version without restarting VMs? According to the source code, restarting is required during upgrading to 4.1 only if a VM uses random generator device. If it doesn’t, a restart is not really required. From:
on behalf of Tomas Jelinek
Re: [ovirt-users] Unable to add storage domains to Node Hosted Engine
I believe the deadlock described in the article is nearly impossible when VM disk caching is disabled (by default). Anyway, there is a solution to avoid loopback NFS: On 30/05/2017, 17:55, "users-boun...@ovirt.org on behalf of Derek Atkins"
Re: [ovirt-users] storage redundancy in Ovirt
On Tue, 2017-04-18 at 17:19 +, Nir Soffer wrote: On Tue, Apr 18, 2017 at 12:23 AM Pavel Gashev <p...@acronis.com<mailto:p...@acronis.com>> wrote: Nir, A process can chdir into mount point and then lazy umount it. Filesystem remains mounted while the process exists and curre.
Re: [ovirt-users] storage redundancy in Ovirt
# umount -l . # touch file # ls # cd .. # ls masterfs From: Nir Soffer <nsof...@redhat.com> Sent: Apr 17, 2017 8:40 PM To: Adam Litke; Pavel Gashev Cc: users Subject: Re: [ovirt-users] storage redundancy in Ovirt On Mon, Apr 17, 2017 at 6:54 PM Adam Litke
Re: [ovirt-users] storage redundancy in Ovirt
it? From: Adam Litke <ali...@redhat.com> Date: Monday, 17 April 2017 at 17:32 To: Pavel Gashev <p...@acronis.com> Cc: Nir Soffer <nsof...@redhat.com>, users <users@ovirt.org> Subject: Re: [ovirt-users] storage redundancy in Ovirt On Mon, Apr 17, 2017 at 9:26 AM, Pavel G
Re: [ovirt-users] storage redundancy in Ovirt
Nir, Isn’t SPM managed via Sanlock? I believe there is no need to fence SPM host. Especially if there are no SPM tasks running. From:
on behalf of Nir Soffer Date: Monday, 17 April 2017 at 16:06 To: Konstantin Raskoshnyi , Dan
Re: [ovirt-users] How do you oVirt? Here the answers!
If 58.4% use Hosted Engine, and 65.8% of them use it in Hyperconverged setup, then at least 38.4% of all users have Hyperconverged setup, but only 25.9% use Gluster. What is Hyperconverged setup in at least 12.5% of all cases? From:
on behalf of Sandro Bonazzola
Re: [ovirt-users] After 3.5->3.6 upgrade, OVF update error every hour
I’d suggest to update it from -Original Message- From: Chris Adams <c...@cmadams.net> Date: Thursday, 6 April 2017 at 18:47 To: Pavel Gashev <p...@acronis.com> Cc: "users@ovirt.org" <users@ovirt.org> Subject: Re: [ovirt-users]
Re: [ovirt-users] After 3.5->3.6 upgrade, OVF update error every hour
Chris, Make sure you have vdsm >= 4.17.35 installed. -Original Message- From:
on behalf of Chris Adams Date: Thursday, 6 April 2017 at 16:29 To: "users@ovirt.org" Subject: [ovirt-users] After 3.5->3.6 upgrade, OVF update
Re: [ovirt-users] iSCSI and multipath deliberation
Using this logic, oVirt should detect existing storages instead of attaching/mounting them. The same is for networks. A VM can be placed on any host that has required storage(s) and network(s) attached. Datacenters/clusters would be virtual things. Pros: * Flexibility for Linux admins, wider
Re: [ovirt-users] Suggestion for configuration with only 2 nics and equallogic ISCSI
Gianluca, Are you sure your 10Gbit nics doesn’t support iSCSI offload? From:
on behalf of Gianluca Cecchi Date: Tuesday, 14 March 2017 at 14:16 To: users Subject: [ovirt-users] Suggestion for configuration with only 2 nics
Re: [ovirt-users] Problems adding iSCSI storage domain
Actually you have added the storage, but it’s not attached to your datacenter so you can’t see it your cluster. 1. Select System (root) on the tree at the left 2. Select Storage tab. Now you should able to see your storage as Unattached 3. Select your storage, and then Data Center tab 4. Attach
Re: [ovirt-users] Graphics are turned upside down when install QXL in Windows
It's not applied yet. However it looks like it's under review right now: From: Derek Atkins <de...@ihtfp.com> Sent: Mar 7, 2017 8:15 PM To: Pavel Gashev Cc: Karli Sjöberg; users@ovi
Re: [ovirt-users] Graphics are turned upside down when install QXL in Windows
The issue with Spice HTML5 is as old as native client for MacOS(X). Both are not maintained well. The fix for Spice HTML5 is the following -Original Message- From:
on behalf of Karli
Re: [ovirt-users] Graphics are turned upside down when install QXL in Windows
Here is the patch. From:
on behalf of Yaniv Kaul Date: Tuesday, 7 March 2017 at 11:56 To: Karli Sjöberg , "users@ovirt.org" Subject: Re:
Re: [ovirt-users] best way to remove SAN lun
Please also consider a case when a single iSCSI target has several LUNs and you remove one of them. In this case you should not logout. -Original Message- From:
on behalf of Nelson Lameiras Date: Friday, 3 March 2017 at 20:55
Re: [ovirt-users] Ovirt 4.0.6 guests 'Not Responding'
. From: Mark Greenall <m.green...@iontrading.com> Date: Monday 6 February 2017 at 18:20 To: Pavel Gashev <p...@acronis.com>, "users@ovirt.org" <users@ovirt.org> Subject: RE: [ovirt-users] Ovirt 4.0.6 guests 'Not Responding' Hi Pavel, Thanks for responding. I bounced t
Re: [ovirt-users] Multipath handling in oVirt
Nicolas, Take a look at The recommended way is to use different VLANs. Equallogic has to be connected to the different VLANs as well. On Wed, 2017-02-01 at 11:50 +0100, Nicolas Ecarnot wrote: Hello,
Re: [ovirt-users] Ovirt 4.0.6 guests 'Not Responding'
Mark, Could you please file a bug report? Restart of vdsmd service would help to resolve the “executor queue full” state. From:
on behalf of Mark Greenall Date: Monday 30 January 2017 at 15:26 To: "users@ovirt.org"
Re: [ovirt-users] Distribute collection of VMs
I'd suggest to use OpenStack Glance: From:
on behalf of Fredrik Olofsson Date: Friday 27 January 2017 at 10:46 To: "users@ovirt.org"
Re: [ovirt-users] Adding Host Issue
jsonrpc.Executor/6::DEBUG::2017-01-25 14:19:23,623::lvm::288::Storage.Misc.excCmd::(cmd) FAILED: = ' WARNING: Not using lvmetad because config setting use_lvmetad=0.\n WARNING: To avoid corruption, rescan devices to make changes visible (pvscan --cache).\n Volume group "0e4ca0da-1721-4ea7-
Re: [ovirt-users] guest often looses connectivity I have to ping gateway
Gian,
Re: [ovirt-users] 4.0 x 4.1
applied the fixes to 4.0.5.5. -Original Message- From: Yedidyah Bar David <d...@redhat.com> Date: Tuesday 24 January 2017 at 23:51 To: Pavel Gashev <p...@acronis.com> Cc: Karli Sjöberg <karli.sjob...@slu.se>, "users@ovirt.org" <users@ovirt.org> Subject: Re: [o
Re: [ovirt-users] 4.0 x 4.1
017 at 15:24 To: "fernando.fredi...@upx.com.br" <fernando.fredi...@upx.com.br>, Pavel Gashev <p...@acronis.com>, "users@ovirt.org" <users@ovirt.org> Subject: Re: [ovirt-users] 4.0 x 4.1 On Tue, 2017-01-24 at 11:06 +, Pavel Gashev wrote: > I'd li
Re: [ovirt-users] 4.0 x 4.1
I'd like to apologize for 'ugly' word. From my own personal experience 4.0.5 had some bugs which spoiled my impression from 4.0. Fortunately most of them are fixed in 4.0.6. -Original Message- From: <users-boun...@ovirt.org> on behalf of Pavel Gashev <p...@acronis.com> Date
Re: [ovirt-users] 4.0 x 4.1
I started with oVirt 3.6. It became stable since 3.6.7 just when 4.0 is released. Also I use 4.0. The previous 4.0.5 was ugly, 4.0.6 can be considered more or less stable, and 4.1 is going to be released soon. Thus, I’d start with 4.0 and upgrade to 4.1 when 4.2 is released. -Original
Re: [ovirt-users] Select As SPM Fails
:58 PM To: Michael Watters Cc: Pavel Gashev; users@ovirt.org Subject: Re: [ovirt-users] Select As SPM Fails Hmmm, makes sense, thanks for the info! I'm not enthusiastic about installing packages outside of the ovirt repos so will probably look into an upgrade regardless. I noticed that ovirt
Re: [ovirt-users] Select As SPM Fails
Beau, Looks like you have upgraded to CentOS 7.3. Now you have to update the vdsm package to 4.17.35. From:
on behalf of Beau Sapach Date: Wednesday 18 January 2017 at 23:56 To: "users@ovirt.org" Subject: [ovirt-users] Select As
Re: [ovirt-users] Disk move failures
Now QEMU Enterprise Virtualization packages are built separately: # yum --enablerepo=extras install centos-release-qemu-ev -Original Message- From: Michael Watters <michael.watt...@dart.biz> Date: Monday 9 January 2017 at 19:19 To: "Users@ovirt.org" <Users@ovirt.or
Re: [ovirt-users] Disk move failures
- From: Michael Watters <michael.watt...@dart.biz> Date: Monday 9 January 2017 at 17:26 To: "Users@ovirt.org" <Users@ovirt.org>, Pavel Gashev <p...@acronis.com> Subject: Re: [ovirt-users] Disk move failures Is there a way to upgrade vdsm without upgrading everything
Re: [ovirt-users] Disk move failures
The same is here. Upgrade vdsm to 4.17.35. -Original Message- From:
on behalf of Michael Watters Date: Saturday 7 January 2017 at 00:04 To: "Users@ovirt.org" Subject: [ovirt-users] Disk move failures I am receiving
Re: [ovirt-users] OVF disk errors
Michael, oVirt 3.6 doesn't work well on CentOS 7.3. Upgrade vdsm to 4.17.35. -Original Message- From:
on behalf of Michael Watters Date: Thursday 5 January 2017 at 23:12 To: "users@ovirt.org" Subject: [ovirt-users]
Re: [ovirt-users] oVirt Engine 4.0.5 and CentOS 7.3 Instability
Rogério, This bug is fixed in vdsm-jsonrpc-java-1.2.9. Do you have a really non-responsive host? From: Rogério Ceni Coelho <rogeriocenicoe...@gmail.com> Date: Friday 6 January 2017 at 21:35 To: Pavel Gashev <p...@acronis.com>, users <users@ovirt.org> Subject: Re: [ovirt-users]
Re: [ovirt-users] How to execute Virsh command after ovirt installation ?
Yaniv, Here you go From: <users-boun...@ovirt.org> on behalf of Pavel Gashev <p...@acronis.com> Date: Wednesday 4 January 2017 at 19:17 To: Yaniv Kaul <yk...@redhat.com> Cc: Ovirt Users <users@ovirt.org> Subject: Re: [ovi
Re: [ovirt-users] Storage Problem After Host Update (v3.6)
har...@islandadmin.ca> Sent: Jan 5, 2017 7:33 AM To: Pavel Gashev; users@ovirt.org Subject: Re: [ovirt-users] Storage Problem After Host Update (v3.6) Hi Pavel, Thanks, I added the 3.6-snapshot repo to upgrade to vdsm 4.17.36 and then diagnosed a bunch of LVM problems (PV's set as missing in
Re: [ovirt-users] Storage Problem After Host Update (v3.6) Downgrade the lvm2 package. Or upgrade vdsm to 4.17.35 -Original Message- From:
on behalf of Charles Tassell Date: Wednesday 4
Re: [ovirt-users] How to execute Virsh command after ovirt installation ?
Yaniv, I have an ansible role. I’ll upload it to the Ansible Galaxy. From: Yaniv Kaul <yk...@redhat.com> Date: Wednesday 4 January 2017 at 14:36 To: Pavel Gashev <p...@acronis.com> Cc: Ovirt Users <users@ovirt.org>, Fernando Frediani <fernando.fredi...@upx.com.br> S
Re: [ovirt-users] How to execute Virsh command after ovirt installation ?
-Original Message- From: Martin Sivak <msi...@redhat.com> Date: Wednesday 4 January 2017 at 15:36 To: Pavel Gashev <p...@acronis.com> Cc: Fernando Frediani <fernando.fredi...@upx.com.br>, "users@ovirt.org" <users@ovirt.org> Subject: Re: [ovirt-users] How to
Re: [ovirt-users] How to execute Virsh command after ovirt installation ?
Migration to oVirt was requiring storage rearrangement. In other words, my storage was used by another virtualization. From: "TranceWorldLogic ." <tranceworldlo...@gmail.com> Date: Wednesday 4 January 2017 at 15:17 To: Yaniv Kaul <yk...@redhat.com> Cc: Pavel Gashev <
Re: [ovirt-users] How to execute Virsh command after ovirt installation ?
It's interesting, I have an opposite opinion. I don’t see why oVirt reinvents its own HA instead of using Pacemaker. And it’s not old, it’s mature ;) I my case, I had no option to setup Hosted Engine since migration to oVirt required storage rearrangement. Now I have to run HA oVirt VM using
Re: [ovirt-users] Using zRam with oVirt Nodes
I enable zSwap on my oVirt nodes by default. However zSwap is not the same thing as zRam. The purpose of zSwap is decreasing I/O by compressing swap itself. zSwap uses some ram for compressed swap, but it doesn’t try to keep a page in memory if it can’t be compressed. I find using of zRam
[ovirt-users] vdsm 4.17
Hello, I’ve found that vdsm 4.17.32 doesn’t work well in CentOS 7.3 due to bugs like or However it seems like vdsm 4.17.35 has all related fixes. Is it safe to use non-released version of vdsm? Is there a plan to release
Re: [ovirt-users] web-ui issues
I see exactly the same issue in ovirt-engine-4.0.6.2-1 Please note the issue produces no logs in /var/log/ovirt-engine/*log From:
on behalf of "Maton, Brett" Date: Tuesday 6 December 2016 at 16:42 To: Alexander Wels Cc:
[ovirt-users] User portal permissions
Hello, I’d like to use the User Portal. Unfortunately, I’ve found no documentation about setting it up. How to give a way for a user to create and manage VMs within a quota? Which permissions should I set for Network/Storage/Cluster? Any help is appreciated. Thanks
Re: [ovirt-users] ovirt 4.05 windows balloon service installation wrong path
Please. From:
Re: [ovirt-users] shutdown and kernel panic
Luigi, It’s necessary to put a host into maintenance mode before shutdown. That panic is a kernel reaction to NMI, which is triggered by hardware watchdog, which is set by wdmd daemon, which is used by sanlock. This scheme is intended to hardware reset a server if it has lost connection to its
Re: [ovirt-users] GFS2 and OCFS2 for Shared Storage
16:31 To: Pavel Gashev <p...@acronis.com>, "users@ovirt.org" <users@ovirt.org> Subject: Re: [ovirt-users] GFS2 and OCFS2 for Shared Storage Are you sure Pavel ? As far as I know and it has been discussed in this list before, the limitation is in CLVM which doesn't support Thin
Re: [ovirt-users] GFS2 and OCFS2 for Shared Storage
Fernando, oVirt supports thin provisioning for shared block storages (DAS or iSCSI). It works using QCOW2 disk images directly on LVM volumes. oVirt extends volumes when QCOW2 is growing. I tried GFS2. It's slow, and blocks other hosts on a host failure. -Original Message- From:
Re: [ovirt-users] Adding Infiniband VM Network Fails
I believe IP-over-Infiniband is an OSI level 3 transport, so it can’t be used in a level 2 (Ethernet) bridge. -Original Message- From:
on behalf of "cl...@theboggios.com" Date: Wednesday 16 November 2016 at 22:10 To: "users@ovirt.org"
Re: [ovirt-users] Local and Shared storage in same datacenter
edhat.com> Date: Monday 31 October 2016 at 17:13 To: Pavel Gashev <p...@acronis.com> Cc: Mike <maill...@probie.nl>, "users@ovirt.org" <users@ovirt.org> Subject: Re: [ovirt-users] Local and Shared storage in same datacenter On Mon, Oct 31, 2016 at 4:02 PM,
Re: [ovirt-users] Local and Shared storage in same datacenter
the restriction. Avoiding NFS layer locally removes the NFS performance drawback. And both allow to adhere to the oVirt way. -Original Message- From: Fernando Frediani <fernando.fredi...@upx.com.br> Date: Monday 31 October 2016 at 17:07 To: Pavel Gashev <p...@acronis.com> Subject: Re:
Re: [ovirt-users] Local and Shared storage in same datacenter
- From: Mike <maill...@probie.nl> Date: Monday 31 October 2016 at 16:33 To: Pavel Gashev <p...@acronis.com>, "users@ovirt.org" <users@ovirt.org> Subject: Re: [ovirt-users] Local and Shared storage in same datacenter Hi Pavel, Op 31-10-2016 om 11:22 schreef Pavel
Re: [ovirt-users] Local and Shared storage in same datacenter
Mike, You can share and use your local storage via NFS. So all your storages are shared, and can be used in the same datacenter. -Original Message- From:
on behalf of "Mike (maillinglists)" Date: Sunday 30 October 2016 at 13:02 To:
Re: [ovirt-users] remote-viewer on OSX
SpiceViewer is quite old. It just doesn't work well. Two issues: 1. It's slow. It takes the whole couple seconds to scroll text screen by one line. 2. It tries to hide the mouse cursor in the bottom right corner. This activates Hot Corners action.
Re: [ovirt-users] What's the password of the user vdsm? and What's the user and password when I type 'Virsh list' command in vdsm?
You can use vdsClient without password: # vdsClient -s 127.0.0.1 list For virsh you can set your own password: # saslpasswd2 -f /etc/libvirt/passwd.db -c root On Sat, 2016-07-23 at 17:41 +0800, lifuqiong wrote: > Hi, > What's the password of the user vdsm? and What's the user > and
Re: [ovirt-users] CARP Fails on Bond mode=1
...@gmail.com> Date: Wednesday 13 July 2016 at 15:54 To: Pavel Gashev <p...@acronis.com>, users <users@ovirt.org> Subject: Re: [ovirt-users] CARP Fails on Bond mode=1 How can it lead into packet duplication when the passive should not be active and only it's mac-address should be visi
Re: [ovirt-users] CARP Fails on Bond mode=1
e=1 Hi Pavel, This is done and used without the Bond before. Now I applied a bond it goes wrong and I'm searching but can't find a thing about it. 2016-07-13 11:03 GMT+02:00 Pavel Gashev <p...@acronis.com>: > Matt, > > In order to use CARP/VRRP in a VM you have to disable MAC sp
Re: [ovirt-users] CARP Fails on Bond mode=1
Matt, In order to use CARP/VRRP in a VM you have to disable MAC spoofing prevention. -Original Message- From:
on behalf of "Matt ." Date: Tuesday 12 July 2016 at 21:58 To: users
Re: [ovirt-users] VM convert Windows2012R2 to Ovirt
ote: On Jul 12, 2016, at 11:13 AM, Pavel Gashev <p...@acronis.com<mailto:p...@acronis.com>> wrote: Vinzenz. I double checked, system matches the configuration. Cluster is running on Intel Westmere Family. Also I tried to boot into the repair mode. After loading viostor driver from
Re: [ovirt-users] VM convert Windows2012R2 to Ovirt
Vinzenz, I just tried libguestfs-RHEL-7.3-preview. I have converted a Windows2012R2 VM with no issues, except it doesn't boot – see attached screenshot. Thanks On 21/06/16 14:14, "users-boun...@ovirt.org
on behalf of Vinzenz Feenstra"
Re: [ovirt-users] disk not bootable
Fernando, One from VM disks have to have bootable flag. See On 01/07/16 19:09, "users-boun...@ovirt.org on behalf of Fernando Fuentes"
wrote: Team, After I
[ovirt-users] Security Groups
Hello, Currently oVirt supports network security groups for OpenStack network provider only. Are there plans to implement Security Groups for native networks? Technically, I can configure a vNic profile with some Security Groups UUID, and apply it in before_device_create and
Re: [ovirt-users] latest CentOS libvirt updates safe?
Upgrading libvirt doesn’t touch running VMs, if there are no active VM operations (start/stop/snapshots/migration). I upgrade libvirt/qemu/vdsm on the fly. Just stop the engine to make sure that nothing will interrupt the upgrade. On 25/06/16 17:57, "users-boun...@ovirt.org on behalf of Robert
Re: [ovirt-users] VM convert Windows2012R2 to Ovirt
Yes, it's disabled in RHEL/CentOS. You can use virt-v2v from Fedora. On 21/06/16 12:42, "users-boun...@ovirt.org
on behalf of Carlos García Gómez" on behalf of
Re: [ovirt-users] Issues importing VMs in oVirt
mplates you can see the folders. The structure looks like: nssesxi-mgmt --> North Sutton Street --> Systems --> vm1 etc Not sure why the cluster name disappears from this view. Cheers, Campbell On Fri, Jun 17, 2016 at 12:25 PM, Pavel Gashev <p...@acro
Re: [ovirt-users] best way to migrate VMs from VMware to oVirt
rt of a Win 7 VM, though there are 2012 ones to import as well. Thanks for all those steps, I'll try them out. Cheers, Cam On Thu, Jun 16, 2016 at 7:31 PM, Pavel Gashev <p...@acronis.com<mailto:p...@acronis.com>> wrote: Cam, I did import vmware VMs, but it was not an easy procedu
Re: [ovirt-users] Issues importing VMs in oVirt
ror: failed to connect to the hypervisor error: internal error: Could not find host system specified in '/North Sutton Street/Systems/nssesxi/nssesxi04-mgmt' If I double escape the spaces with %2520, it reports it can't find the datacenter. Cheers, Campbell On Fri, Jun 17, 2016 at 10:4
Re: [ovirt-users] Issues importing VMs in oVirt
Cam, I believe the URL must be the following: vpx://ARDA%5ccam@nssesxi-mgmt/Systems/North%20Sutton%20Street/nssesxi/nssesxi04-mgmt?no_verify=1 or vpx://ARDA%5ccam@nssesxi-mgmt/North%20Sutton%20Street/Systems/nssesxi/nssesxi04-mgmt?no_verify=1 On 09/06/16 20:28,
Re: [ovirt-users] best way to migrate VMs from VMware to oVirt
Cam, I did import vmware VMs, but it was not an easy procedure. Last time I did it, there were the following issues: * oVirt engine didn't support 32bit VMs. If you have a 32bit VM in vCenter, you are not able to see the list VMs to import. * There were issues if you have a cluster in vCenter.
Re: [ovirt-users] which NIC/network NFS storage is using
Ryan, You can check it with the following shell command: # ip route get x.x.x.x where x.x.x.x is an IP address of your NFS storage. On 14/06/16 19:52, "users-boun...@ovirt.org
on behalf of Ryan Mahoney" on
Re: [ovirt-users] oVirt Windows Guest Tools & Live Migration issues.
It seems guest tools installer is broken at least for Windows 2012 R2. It installs files into Program Files, but doesn't actually install drivers and QEMU guest tools. No errors, it reports that everything is ok, but it's not. oVirt guest tools is installed and work properly. Workarounds are
Re: [ovirt-users] What recovers a VM from pause?
Please note that it's necessary to add a magic line '# VDSM PRIVATE' as second line in /etc/multipath.conf. Otherwise vdsm would overwrite your settings. Thus, /etc/multipath.conf should start with the following two lines: # VDSM REVISION 1.3 # VDSM PRIVATE On Mon, 2016-05-30 at 22:09 +0300,
Re: [ovirt-users] failing update ovirt-engine on centos 7
In my case oVirt is running in an OpenVZ container. Since selinux doesn't support namespaces, it's disabled. I don't want to fuel the holy war stopdisablingselinux.com vs selinuxsucks.com. Just please allow us to choose. Thanks. On 30/05/16 16:01, "users-boun...@ovirt.org on behalf of Michal
Re: [ovirt-users] failing update ovirt-engine on centos 7
I had an issue with updating to 3.6.6. There were errors during engine-setup: [ ERROR ] Yum Non-fatal POSTUN scriptlet failure in rpm package ovirt-vmconsole-1.0.0-1.el7.centos.noarch [ ERROR ] Yum Transaction close failed: Traceback (most recent call last): File
Re: [ovirt-users] Do you use ovirt-engine-reports?
I use Reports. Basically, it's «Five Most Utilized…» and «Inventory» reports. It would be great if oVirt had the following functionality instead of Reports: 1. Columns with absolute values of CPU/Network/Disk IO for refresh interval and absolute values of Memory/Disk Usage in the Virtual
Re: [ovirt-users] Trying to understand the mixed storage configuration options.
Nir, Basically, almost any server has a local storage. It could be a reliable, RAID enabled storage. It would be great to allow to use it simultaneously with shared storages. Other virtualizations like vmware/hyperv support local and shared storages simultaneously. If your VM is on local
Re: [ovirt-users] stalls during live Merge Centos 7 / qemu 2.3
hau...@collogia.de> Sent: Apr 13, 2016 10:23 PM To: Gianluca Cecchi Cc: Pavel Gashev; users Subject: AW: [ovirt-users] stalls during live Merge Centos 7 / qemu 2.3 Hi, I was just annoyed that during my tests I got a second error. For me it seemed as finally everything worked fine. Although the singl
Re: [ovirt-users] Autostart VMS
I'd like to see the autostart feature as well. In my case I need to autostart a virtual router VM at remote site. The issue is that oVirt can't see the remote host until the virtual router is started on this host. So HA is not an option. On Sat, 2016-04-09 at 08:50 +0200, Sven Kieske wrote: On
[ovirt-users] VDSM doesn't disconnect multiple iSCSI sessions
Hello, I was trying to improve iSCSI performance by increasing number of simultaneous connections to iSCSI target. Please note it's not about iSCSI multipathing. It's about using multiple connections over the same network/path to utilise network interface bonding. /etc/iscsi/iscsid.conf has
Re: [ovirt-users] payload device serial
Here you go From: Francesco Romani <from...@redhat.com<mailto:from...@redhat.com>> Date: Thursday 31 March 2016 at 09:46 To: Pavel Gashev <p...@acronis.com<mailto:p...@acronis.com>> Cc: "users@ovirt.org<mailto:use
[ovirt-users] payload device serial
Hello, I hit a bug, and just want to share a solution. VM with a payload (Initial run) do not start with libvirt >= 1.3.2. VDSM log says: "libvirtError: unsupported configuration: Disks 'hdc' and 'hdd' have identical serial". Yes, both cdrom devices have the same serial. Empty serial:
Re: [ovirt-users] Storage migration: Preallocation forced on destination
Nir, On 05/03/16 15:35, "Nir Soffer" <nsof...@redhat.com> wrote: >On Sat, Mar 5, 2016 at 10:52 AM, Pavel Gashev <p...@acronis.com> wrote: >> On 05/03/16 02:23, "Nir Soffer" <nsof...@redhat.com> wrote: >>>On Sat, Mar 5, 2016 at 12:19 AM, | https://www.mail-archive.com/search?l=users%40ovirt.org&q=from:%22Pavel+Gashev%22&o=newest | CC-MAIN-2022-05 | refinedweb | 5,366 | 68.16 |
Subject: [boost] Boost.Filesystem: basename function is not compatible with POSIX; potential for path-related security issues
From: Steve M. Robbins (steve_at_[hidden])
Date: 2010-01-16 20:45:15
Hi,
I got the following report [1] for Boost.Filesystem from a Debian
user. Before entering into trac, I thought I'd ask whether this
deviation from POSIX is by design or is a bug.
Thanks,
-Steve
P.S. The original report is based on Boost 1.40, but I
verified the same behaviour on Boost 1.41.
[1]
----- Forwarded message from Roger Leigh <rleigh_at_[hidden]> -----
Package: libboost-filesystem1.40.0
Version: 1.40.0-5
Severity: important
The basename function is not compatible with the POSIX function by the
same name:
Path POSIX Boost
test.real test.real test
/usr/bin/perl perl perl
/usr/lib lib lib
/usr/ usr
usr usr usr
/ / /
. .
.. .. .
The test program is attached. Just compile with
g++ -o testbasename -lboost_filesystem testbasename.cc
??? It is not stripping trailing backslashes.
??? "if ph.leaf() contains a dot ('.'), returns the substring of ph.leaf() starting from beginning and ending at the last dot (the dot is not included). Otherwise, returns ph.leaf()". This is wrong, shown by the paths returned for "." ("") and ".." (".") above.
The latter could lead to reading and writing using the wrong path,
which could have security issues if used in a secure context. This
might be justification for raising the severity of this bug.
Looking at the API reference, it looks like extension() and basename()
may be intended to be complementary and are for splitting a filename
into its main part and extension part, *not* the directory and filename
components of a path. This should probably be explicitly spelled out
due to the dangerous confusion which may result if used inappropriately.
In particular, "." and ".." definitely need special casing--these are
not extension separators and basename should return them intact;
extension() should return an empty string.
I noticed this when converting schroot to use the boost convenience
function instead of my own. For reference, this is my version:
std::string
sbuild::basename (std::string name,
char separator = '/')
{
// Remove trailing separators
std::string::size_type cur = name.length();
while (cur > 0 && name[cur - 1] == separator)
--cur;
name.resize(cur);
// Find last separator
std::string::size_type pos = name.rfind(separator);
std::string ret;
if (pos == std::string::npos)
ret = name; // No separators
else if (pos == 0 && name.length() == 1 && name[0] == separator)
ret = separator; // Only separators
else
ret = name.substr(pos + 1); // Basename only
// Remove any duplicate adjacent path separators
return remove_duplicates(ret, separator);
}
A POSIX-compatible dirname() function would nicely complement a
POSIX-compatible basename() function as an addition to
boost::filesystem. It looks like these are orthogonal to the
existing functionality, however.
Regards,
Roger
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (550, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libboost-filesystem1.40.0 depends on:
ii libboost-system1.40.0 1.40.0-5 Operating system (e.g. diagnostics
ii libc6 2.10.2-5 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.4.2-9 GCC support library
ii libstdc++6 4.4.2-9 The GNU Standard C++ Library v3
libboost-filesystem1.40.0 recommends no packages.
libboost-filesystem1.40.0 suggests no packages.
-- no debconf information
#include <libgen.h>
#include <boost/filesystem/convenience.hpp>
#include <cstring>
#include <iostream>
#include <iomanip>
int
main ()
{
const char *paths[] =
{
"test.real", "/usr/bin/perl", "/usr/lib", "/usr/", "usr", "/", ".", "..", 0
};
std::cout << std::setw(16) << std::left << "Path"
<< std::setw(16) << std::left << "POSIX"
<< std::setw(16) << std::left << "Boost" << '\n';
for (const char **path = &paths[0];
*path != 0;
++path)
{
char *bpath = strdup(*path);
std::cout << std::setw(16) << std::left << *path
<< std::setw(16) << std::left << basename(bpath)
<< std::setw(16) << std::left
<< boost::filesystem::basename(*path)
<< '\n';
free(bpath);
}
return 0;
}
_______________________________________________
pkg-boost-devel mailing list
pkg-boost-devel_at_[hidden]
----- End forwarded message -----
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk | http://lists.boost.org/Archives/boost/2010/01/160891.php | CC-MAIN-2015-18 | refinedweb | 706 | 52.26 |
forum > Flash problem
- Nicolás A. Ortega Jul 25 at 07:32
Hello, I currently have the latest version of HaXe installed on my computer, but I am having problems with the flash targeting. I compile the basic "Hello world" program, it doesn't show any errors, but when I run it, it doesn't show anything. I know the code is correct, I am wondering if I need to install the flash libraries like I did the hxcpp libraries, and if so, what is the name of the library I need to install?
If you mean this "hello world" example: only two things can have gone 'wrong':
1) You forgot to add -main Main to your hxml file or didn't choose Main as the 'main class' in your IDE.
2) You added -D fdb to your hxml file or choose a debug build in your IDE and then that trace statement does not write to the textfield in the swf but to the output console in your IDE and to your flashlog.txt file.
Add the following below that trace("hello world"); statement to make sure everything works as expected:
var s = new flash.display.Sprite(); s.graphics.beginFill(0xFF0000); s.graphics.drawRect(0,0,100,100); flash.Lib.current.addChild(s);Jan
- Nicolás A. Ortega Jul 25 at 20:36
No, I compiled it and it didn't give any errors, but when I ran it, it just showed a blank window, as it always does. Here's my code:
import flash.display.Sprite; import flash.Lib; class Hello { public static function main() { trace("Hello world!"); var s = new flash.display.Sprite(); s.graphics.beginFill(0xFF0000); s.graphics.drawRect(0, 0, 100, 100); flash.Lib.current.addChild(s); } }
I made sure to compile it correctly, but it doesn't seem to show anything.
Paste your hxml file with the build commands.
Jan
- Nicolás A. Ortega Jul 25 at 22:00
Here it is:
-main Hello -swf Hello.swf
Works here.
Jan
- Nicolás A. Ortega Jul 25 at 23:15
I ran the swf file, but it didn't work, so I think the problem is with the flash player, not haxe, which means that I need to reinstall the flash player. Thanks!
Haxe compiles for FlashPlayer 10 by default. You probably still have FlashPlayer 8 (or older) installed.
You can compile for a specific version but for the code in the example you need at least FlashPlayer 9.
-swf-version 9
Jan | http://haxe.org/forum/thread/4262?lang=ru | CC-MAIN-2013-20 | refinedweb | 414 | 73.47 |
Equals(Object) Method which is inherited from the Object class is used to check if a specified Stack class object is equal to another Stack class object or not. This method comes under the
System.Collections namespace.
Syntax:
public virtual bool Equals (object obj);
Here, obj is the object which is to be compared with the current object.
Return Value: This method return true if the specified object is equal to the current object otherwise it returns false.
Below programs illustrate the use of the above-discussed method:
Example 1:
True
Example 2:
False True
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready. | https://www.geeksforgeeks.org/stack-equals-method-in-c-sharp/ | CC-MAIN-2021-17 | refinedweb | 125 | 62.58 |
Content Count962
Joined
Last visited
Days Won24
Everything posted by maxxd
-.
- I'm confused by your question. In a URL, '?xx' is the first variable passed via GET, '&xx' is any of any number of variables passed in the URL after the first. So your desire to change '?urlid=abc123' to '&urlid=abc123' is solved by adding a variable before the urlid. What is the value of your permalink option in the Admin > Settings > Permalinks? If you're set to 'Post name' there are a few different things you can do. Obviously you can grab $_GET['urlid'] using an early-running hook and go if it's anywhere in the URL string. However, if you're saying that WordPress is removing the '?urlid=' part, that's a routing issue. You can set up routing in WP using the WordPress rewrite rules which will give you something along the lines of '' or '' depending on how it's all set up.
Can't read value of text box
maxxd replied to Paul-D's topic in PHP Coding HelpUnless I'm reading that wrong, it seems to me that turning off autocomplete would be a heck of a lot easier all around.
Redirect Headers issue
maxxd replied to SkyRanger's topic in ApplicationsWhat is the header error? Output already started, not redirecting correctly, poking a badger with a spoon?
- I agree - I'm a bit baffled by the lack as well. I've emailed the third-party provider again about it, so hopefully they can shed some light. No, it throws a connection exception.
- That's the problem - as far as I can tell there's no WSDL endpoint for this. Thus far I've ended up basically building the request structure by hand and passing that into new SoapVars() using XSD_ANYXML as the encoding.
- Crap - I didn't even see that! Thank you - now to figure out how to get the namespace on the attribute.
- I've gotten the connection issues taken care of (as far as I can tell, it was a typo in the IP whitelist). However, I've got another "am I just totally asleep?" question. The endpoint expects these headers: POST /path/handler.asmx HTTP/1.1 Host: legit.com Content-Type: text/xml; charset=utf-8 SOAPAction: "" Content-Length: 540 <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns: <soap:Body> <functionCall xmlns=""> <username>username</user> <password>password</pwd> </functionName> </soap:Body> </soap:Envelope> and this is what I get from __getLastRequestHeaders() and __getLastRequest() after my __soapCall() call: POST /path/handler.asmx HTTP/1.1 Host: legit.com Connection: Keep-Alive User-Agent: PHP-SOAP/7.2.19 Content-Type: text/xml; charset=utf-8 SOAPAction: "" Content-Length: 540 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns: <SOAP-ENV:Body> <functionCall xsi: <username xsi:username</user> <password xsi:password</pwd> </functionName> </SOAP-ENV:Body> </SOAP-ENV:Envelope> It's been a while since I've dealt with a non-WSDL API endpoint but am I crazy that my headers should work? Because I'm getting the following error: "Server was unable to process request. ---> Handler.loginNoSession(): DB Exception: Couldn't login. ErrorCode = 0 ---> Procedure or function 'checkUserPassword' expects parameter '@User', which was not supplied." And I feel like kind of an idiot about it. I'm assuming (because it seems rather obvious) that checkUserPassword is a stored procedure that gets passed the value of the 'user' parameter submitted in the Soap call, but apparently the middleware's not recognizing that I am passing the user parameter.
- From the office system it works fine when the username/password is appended to the URL. I'm wondering if there was a snafu in the IP whitelist where our office was whitelisted correctly but the development system wasn't. I've got an email in with the provider to find out, just wanted to post here in case there was something glaringly obvious that I just yawned over...
PHP SoapClient::__soapCall() connection issue
maxxd posted a topic in PHP Coding HelpHey, 'all. I think I'm just tired because I can't see the issue here, but I'm trying to run a SOAP 1.2 call to a legit endpoint using a legit function call and getting nothing but a 'Could not connect to host' message with a fault code of 'HTTP'. Here's some code: class Testing{ private $_user = "username"; private $_pass = "password"; private $_system = 1; private $_uri = ""; private $_location = "givenlocation.asmx"; private $_soapClient; public function __construct(){ $this->_soapClient = new SoapClient(null, [ 'location' => "{$this->_uri}{$this->_location}", 'uri' => $this->_uri, 'soap_version' => SOAP_1_2, 'exceptions' => true, 'trace' => true, ]); } public function makeCall(){ try{ $data = $this->_soapClient->__soapCall('functionCall', [ 'username' => $this->_user, 'password' => $this->_pass, ]); }catch(SoapFault $e){ die("<pre>".var_export($e, true)."</pre>"); } } } $testSoap = new Testing(); $testSoap->makeCall(); I'll happily take a "Let me Google that for you" result link if it's that simple, but I'm just not seeing the problem. Anybody? As always, help is greatly appreciated. Forgot to mention - I don't get an error on instantiation of the SoapClient() object, just the __soapCall() call.
Issue with PHP
maxxd replied to SkyRanger's topic in Javascript HelpAll WordPress AJAX requests are routed through admin_ajax.php. You need to supply an 'action' index in your passed array, then use the 'wp_ajax_{your-action}' and 'wp_ajax_nopriv_{your-action}' hooks. See here for further information.. | https://forums.phpfreaks.com/profile/166696-maxxd/content/page/2/?all_activity=1 | CC-MAIN-2019-39 | refinedweb | 901 | 56.05 |
Getting touch-ended/touch-cancelled in a scrollview?
- shinyformica
I have a custom ui.View which implements the touch_began() and touch_ended() methods to handle user input.
It works just fine when it's on its own or nested in a normal parent ui.View. Where I run into trouble is when the custom view is added as part of the content of a ui.ScrollView.
In that case, when the user begins a touch on the custom ui.View and then starts panning, the scroll view takes the pan gesture for itself, and the custom view never receives a touch_ended() call. And there doesn't appear to be an easy way to get the touch cancelled event which I assume would be delivered when the scroll view takes over.
This is an issue because, without the touch_ended() getting called, I can't know when to reset the custom view at the end of a user interaction. I thought of using a ui.delay(), but that will not be a good solution: there's still no way to know if the touch ended normally or not.
Anyone encounter this situation and have a clever solution?
- shinyformica
@JonB I'm using that module extensively already (thank you @mikael). Unfortunately, there's two issues using it in this case:
I need to see the initial press/touch all the way through to the lift/touch end. A tap gesture is only recognized when the tap is complete, so you only get the tap callback after the finger is lifted.
Even if I were to make a custom gesture recognizer, or attempt to use tap gestures, you still have to go through all the trouble of setting up the "requires failure of" gesture relationship with the scroll view, and other complications to get it to work for my purposes.
The whole thing is somewhat complicated, but in the end it just boils down to not having a touch_cancelled() method on regular ui.Views. UIControls actually have a way to connect to the various touch phases, but regular UIViews do not.
I will say that using the delegate as above works pretty flawlessly.
is there an example of how you get a scroll view to recognize touch events?
@donLaden
some methods to overide from the View class.
@donLaden, depends on what you want to achieve, but in general gestures module lets you put additional gestures on built-in views. ScrollView is of course somewhat challenging due to complex existing gestures on the view.
@mikael @Stephen Thanks for the quick responses.
I’ve never really dabbled in Python, I’ve just started to really try and teach myself so I could build an app to help manage my shop at work. I was trying to build a pull to refresh function into my scroll view. I’m just working on trying to make sense of all this and make something useful I can add to my app later. I’ll give it a go this weekend and see what I can accomplish.
@donLaden, not sure if it is 100 % relevant, but here is a recent pull-to-refresh implementation example.
@donLaden, thinking about it a bit more: all you need to do is to set a delegate for the scrollview, and in the
scrollview_did_scrollmethod check the
content_offsetto see if it has been pulled down and how far.
import ui class Delegate: max_pull = -100 def __init__(self): self.refreshing = False def scrollview_did_scroll(self, scrollview): x, y = scrollview.content_offset if y < 0: delta = max(y, self.max_pull)/self.max_pull scrollview.background_color = (1, 0, 0, delta) if ( y < self.max_pull and not scrollview.dragging and not self.refreshing ): self.refresh() def refresh(self): self.refreshing = True print('refresh') sv = ui.ScrollView() c = ui.View(background_color='darkgrey') c.width, c.height = ui.get_screen_size() sv.content_size = c.frame.size sv.add_subview(c) sv.delegate = Delegate() sv.present('fullscreen')
@mikael Thanks for the pull to refresh example. I really appreciate the help. I had a couple issues. The biggest issue was only being able to refresh once after the view is loaded. The second Issue was when pulled too far down, the refresh function was called multiple times. I think I solved these issues. I attached the solution I came up with below.
import ui, sound class scrollViewDelegate: maxPull = -100 def __init__(self): self.refresh = False def scrollview_did_scroll(self, scrollview): x, y = scrollview.content_offset if y <= 0: delta = max(y, self.maxPull) / self.maxPull if (y <= self.maxPull and not scrollview.tracking and scrollview.decelerating and not self.refresh): scrollview['refresh_bg'][ 'refresh_label'].text_color = 0.50, 0.50, 0.50, delta self.contentRefresh() elif (y <= self.maxPull - 10 and scrollview.tracking and not scrollview.decelerating and not self.refresh): scrollview['refresh_bg']['refresh_label'].text = 'Release to refresh' scrollview['refresh_bg'][ 'refresh_label'].text_color = 0.50, 0.50, 0.50, delta elif (y >= self.maxPull - 10 and scrollview.tracking and not scrollview.decelerating and not self.refresh): scrollview['refresh_bg']['refresh_label'].text = 'Pull to refresh' scrollview['refresh_bg'][ 'refresh_label'].text_color = 0.60, 0.60, 0.60, delta def contentRefresh(self): self.refresh = True sound.play_effect('ui:click3') #print('refreshing') ui.delay(self.contentDidRefresh, 0) def contentDidRefresh(self): self.__init__() w, h = ui.get_screen_size() sv = ui.ScrollView() sv.name = 'Scrollview' sv.always_bounce_horizontal = False sv.always_bounce_vertical = True sv.directional_lock_enabled = True sv.scroll_indicator_insets = (10, 0, 10, 0) sv.bounces = True sv.paging_enabled = False sv.indicator_style = 'black' sv.scroll_enabled = True sv.background_color = 1.0, 1.0, 1.0 sv.content_inset = (0, 0, 0, 0) sv.content_size = (w - 10, h*2) sv.delegate = scrollViewDelegate() rb = ui.View() rb.name = 'refresh_bg' rb.alpha = 1.0 rb.background_color = 0.90, 0.90, 0.90 rl = ui.Label() rl.name = 'refresh_label' rl.alpha = 1.0 rl.alignment = ui.ALIGN_CENTER #rl.background_color = 'white' rl.text = 'Pull to Refresh' rl.text_color = None rl.font = ('<system>', 14) rb.add_subview(rl) sv.frame = (0, 0, w, 0.5) rb.frame = (0, -600, sv.width, 600) rl.frame = (0, rb.height - 32, sv.width, 32) sv.add_subview(rb) sv.present('fullscreen') | https://forum.omz-software.com/topic/5819/getting-touch-ended-touch-cancelled-in-a-scrollview/13 | CC-MAIN-2020-40 | refinedweb | 999 | 62.64 |
Okay, so i've been trying to get this code to work for quite some time, and i'm about to go bonkers. Hopefully y'all can help me out with this problem because I need to hand this one in soon.
My problem is I need to make an array of objects. Check.
(Note that the classes i'm using extend a superclass, Ship).
Now I need to set information into those objects. Semi-check.
I can put all the information into the superclass (Ship), but when I try to put info into the sub classes (CruiseShip, CargoShip), I can't. I mean I can put in the name, because the name is from the super class. But I can't put in say the max number of passengers.
Here's my code for the Boats program that runs the thing:
import java.util.Scanner; public class Boats { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); String shipName, yearBuilt; int maxPassengers = 0, maxCargo = 0; Ship[] type = new Ship[2]; //Finding Ship's info------------------------------ type[0] = new Ship(); System.out.println("Enter the ship's name: "); shipName = keyboard.nextLine(); type[0].setName(shipName); System.out.println("Enter the year the ship was made: "); yearBuilt = keyboard.nextLine(); type[0].setYear(yearBuilt); //Finding CruiseShip's info------------------------ type[1] = new CruiseShip(); System.out.println("Enter the cruise ship's name: "); shipName = keyboard.nextLine(); type[1].setName(shipName); System.out.println("Enter the maximum number of passangers: "); maxPassengers = keyboard.nextInt(); keyboard.nextLine(); type[1].setMax(maxPassengers); //Finding CargoShip's info------------------------ type[2] = new CargoShip(); System.out.println("Enter the cargo ship's name: "); shipName = keyboard.nextLine(); type[2].setName(shipName); System.out.println("Enter the maximum cargo capacity: "); maxCargo = keyboard.nextInt(); type[2].setCargo(maxCargo); for (int i = 0; i<3; i++) { type[i].toString(); } } }
Here's the error I get though:
Boats.java:38: cannot find symbol symbol : method setMax(int) location: class Ship type[1].setMax(maxPassengers); ^ Boats.java:51: cannot find symbol symbol : method setCargo(int) location: class Ship type[2].setCargo(maxCargo); ^ 2 errors
And here's the CruiseShip.java file:
public class CruiseShip extends Ship { private int maxPass; public void setMax (int n) { maxPass = n; } public String toString () { return "Name: " + shipName + "\nMax Number of Passengers: " + maxPass; } }
I really feel like I'm missing something simple, but can't see it. I tell yah, i've shot my foot of less times with C++ than this :P
Thanks for the help! | https://www.daniweb.com/programming/software-development/threads/280599/polymorphic-problem | CC-MAIN-2018-13 | refinedweb | 415 | 50.23 |
Quick-Start Tips
Look and feel
- You can change Rider keyboard bindings for any action: press Ctrl+Alt+S and go to .
- While in the editor, press Alt+Enter and then start typing the name of a Rider command that you want to execute (more...).+Alt+Right,.
- Enum completion will automatically insert the Enum type as the prefix. No need to spell it out!
- With
String.Format, you can add a placeholder where the cursor is. Just hit Alt+Enter and choose Insert format argument (more...).
- If a string literal is too long, hit Enter and Rider Rider will not complain about anything until it meets the corresponding
// ReSharper restore All.
- Rider's solution-wide analysis resolves visibility issues: you'll see if an internal member is used outside of its assembly and you'll never miss a single unused non-private member.
- You can go to the next/previous code issue in the file by pressing Alt+Page Down / Alt+Page Up.
Traversing code
- You can press Ctrl+T to quickly locate a type, method, or basically everything, while Ctrl+Shift+T lets you locate files without other suggestions.
- Place your caret on the
using(or
importif you work with VB.NET) directive and press Shift+F12. Rider will show where exactly this namespace is used (Finding Usages of a Symbol).
- Forgot where you were editing just now? Go to last edit location with Ctrl+Shift+Backspace.
- Want to locate where the current symbol is declared real fast? Press F12 or just right-click the symbol.
- When locating
CustomerServicesTestusing Ctrl+T or any other navigation command, you don't need to type the whole thing. Just use CamelHumps and type
cst.
- Alt+Home takes you to the base type and Alt+End takes you to inheritors of the current type.
- Do you want to move to the next member in a class? Alt+Down will take you there; Alt+Up will bring you back (more...).
- Search for anything (usages, implementations etc.) fetches to the Find Results window. Use it then to navigate between search results with Ctrl+Alt+Down/Ctrl+Alt+Up (more...).
- To explore the stack trace that is currently in your clipboard, just press Ctrl+E, T.
Transforming code
- Do you have multiple classes in the same file? Fix it fast. Press Ctrl+Shift+R on the file in the Solution Explorer and choose Move Types Into Matching Files (more...).
- Rename anything, anytime, anywhere with Ctrl+R, R. You can do it even in fewer steps - just type in a new name and hit Alt+Enter.
- You can extract a method from a section of code using Ctrl+R, M.
-+R, S to change the signature of a method and see a preview before applying it. Rider will do the rest!
Generating code
- Generate various class members in seconds using the Generate command (Alt+Insert).
- Alt+Insert in the Solution Explorer can create files from your file templates.. and folders too.
- Create event subscriptions in XAML/ASP.NET WebForms/VB.NET using Alt+Insert and choosing Generate event subscriptions.
- If you place your caret on a parameter in the constructor and hit Alt+Enter, Rider can create a field or property and initialize it for you.
- Type
foreachand hit TAB. Rider will start a live template for smart loop generation with type and name suggestions.
Unit testing
- Use Ctrl+U, L to run all unit tests in the solution (more...).
- Want to run some particular tests? Select them in editor, right-click and choose Run Unit Tests (more...).
- Start typing in the Unit Tests window to filter your tests by name.
- Filter to failed tests while running them in the Unit Tests Alt+\ and look it up!
Last modified: 11 October 2017 | https://www.jetbrains.com/help/rider/2017.1/Quick_Start.html | CC-MAIN-2019-04 | refinedweb | 625 | 67.86 |
nanog
mailing list archives
On Apr 15, 2013, at 5:34 PM, Geoffrey Keating wrote:
CAs use it as part of a procedure to determine whether it's safe to
issue a wildcard domain (as in, if it's on the list, it's not safe). See
<>, section 11.1.3.
They'd really like to have a process which is less ad-hoc. For
example, it'd be great if these points were annotated in the DNS
itself, perhaps with a record which points to the corresponding
whois server.
Concur - I think codifying DNS's dynamic structure in an outside medium is only going to cause problems down the road
(e.g., especially with namespace diffusion from the likes of new gTLDs, etc..).
While an unfortunate naming collision here (i.e., the "SOPA" RR), I think an approach such as [1] has some merit - but
much work needs to be done.
-danny
[1]
By Date
By Thread | http://seclists.org/nanog/2013/Apr/414 | CC-MAIN-2014-42 | refinedweb | 158 | 71.95 |
Cross-platform Python support for keyboards, mice and gamepads.
Project description
Inputs aims to provide cross-platform Python support for keyboards, mice and gamepads.
Install
Install through pypi:
pip install inputs
Or download the whole repository from github:
git clone cd inputs python setup.py install
About
The inputs module provides an easy way for your Python program to listen for user input.
Currently supported platforms are Linux (including the Raspberry Pi and Chromebooks in developer mode), Windows and the Apple Mac.
Python versions supported are all versions of Python 3 and your granddad’s Python 2.7.
To get started quickly, just use the following:
from inputs import devices
For more information, read the documentation at ReadTheDocs
(Also available in the docs directory of the repository)
To get involved with inputs, please visit the github project at:
Project details
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/inputs/ | CC-MAIN-2019-43 | refinedweb | 161 | 60.24 |
C++ Program to Swap Two Numbers
Grammarly
In this post, you’ll learn how to write a Program to Swap Two Number in C++.
This lesson, will help you learn how to Swap Two Numbers, with a simple assignment and substitution method using the C++ language. Let’s look at the below source code.
How to to Swap Two Numbers in C++?
Source Code
#include <iostream> using namespace std; int main() { int a = 5, b = 10, temp; cout << "Before swapping." << endl; cout << "a = " << a << ", b = " << b << endl; temp = a; a = b; b = temp; cout << "\nAfter swapping." << endl; cout << "a = " << a << ", b = " << b << endl; return 0; }
Output
Before swapping. a = 5, b = 10 After swapping. a = 10, b =.
- First declare the variables (a, b, temp) as integers and assign the values –
a = 5
b = 10;.
- Next display the output statements with the
coutand the Insertion Operator ‘ << ‘.
- When using sentences, write them within quotes ” “,
" Before swapping. "and display the values with ‘<<‘ before swapping
- Now we can work on how to swap the numbers, first we give the function statement
a = temp;this function assigns temp = 5.
- Next the function statement
b = a;assigns a = 10, finally the function statement
temp = b;assigns b = 5.
- The numbers are swapped by first emptying the variables, to empty them we assign their value to another empty variable, now we can swap the values and re-assign them in the other variable.
- Using the output statement
coutand the respective characters, to display the answer after swapping.
- End the function with
return 0;this returns the function to main( ).
Now that you have understood how the source code performs its function, try it yourself with different values to it understand as to receive the values from the user rather than include the values directly in the code.
Another addition to this code, is the swapping function. Here we are using a mathematical operation to perform the swapping.
#include <iostream> using namespace std; int main() { int a, b; cin>> a; cin>> b; cout << "Before swapping." << endl; cout << "a = " << a << ", b = " << b << endl; a = a + b; b = a - b; a = a - b; cout << "\nAfter swapping." << endl; cout << "a = " << a << ", b = " << b << endl; return 0; }
Input
12 20
Output
Before swapping. a = 12, b = 20 After swapping. a = 20, b = 12
- The structure is similar to the previous code, the extra function we include is the
cin >> a;and
cin >> b;, this statement is used to collect and store the values that the user enters in the assigned integer.
- We use
<< a
<< bto display the stored values in the output.
- To explain the Swapping function, we start by giving input values and assigning a = 12, b = 20.
- First
a = a + b;that is a = 12 + 20; a = 32
b = a - b;that is b = 32 – 20; b = 12
- Finally
a = a - b;that is a = 32 – 12; a = 20, now when we display the answer a = 20 and b = 12.
- The rest of the statements and functions are similar, to Swap Two Numbers in C++. | https://developerpublish.com/academy/courses/c-programming-examples-2/lessons/c-program-to-swap-two-number/ | CC-MAIN-2021-49 | refinedweb | 505 | 71.14 |
The IronPython project's recent release of version 2.7 significantly improved the offering. As a result, I thought it was finally time to take a look at IronPython to do a simple project. I'll walk you through getting started.First, you will need to download and install IronPython. I am using Visual Studio 2010, and it plugs right into that environment. After installing IronPython, start Visual Studio 2010 and go to File | New | Project. Select IronPython on the left. You will see the varieties of IronPython projects available; I will do a Console Application (Figure A). Figure A
Selecting what kind of IronPython application to create. (Click the image to enlarge.)Out of the box, we see a simple "Hello World" style application (Figure B). Figure B
The default code created in an empty console application. (Click the image to enlarge.)
I decided to spruce it up, so we can see some of our tools at work. I changed the code to:
world = "world" print 'Hello ' + world
This will create a variable named "world" and concatenate it with "Hello" when it is printed to the screen. It runs as expected.Next, let's set a breakpoint on the second line and run the application. As expected, it breaks. Now, where do we find the value of "world" in the IDE? If you look at the "Locals" window, you will see "$originalModule" which can be expanded (Figure C). Below it, you will find our "world" variable and its contents. Unfortunately, setting a watch on "world" does not seem to work, even if you try setting the watch on "$originalModule.world" which I thought might work. Figure C
The Locals window shows our variables in action. (Click the image to enlarge.)
For our final trick, we're going to try calling the .NET Framework from within our IronPython application. We use the "import" statement to bring in the CLR and make it available to us. Next, we use the CLR to load the System.Threading assembly, and then we will import the "Thread" object. Once this is done, we can use the "Thread" object as expected:
import clr
clr.AddReference('System.Threading')
from System.Threading import Thread
world = "world"
print 'Hello ' + worldThread.CurrentThread.Sleep(5000)
As you can see, it is not that difficult to get to the .NET Framework if necessary, although the Python ecosystem is strong enough that this should be a rarity. Good luck experimenting with IronPython!
J.Ja
Full Bio
Justin James is the Lead Architect for Conigent. | http://www.techrepublic.com/blog/software-engineer/a-brief-introduction-to-ironpython/ | CC-MAIN-2016-30 | refinedweb | 422 | 77.64 |
std::ranges::set_union, std::ranges::set_union_result
Constructs a sorted union beginning at
result consisting of the set of elements present in one or both sorted input ranges
[first1, last1) and
[first2, last2).
If some element is found
m times in
[first1, last1) and
n times in
[first2, last2), then all
m elements will be copied from
[first1, last1) to
result, preserving order, and then exactly max(n-m, 0) elements will be copied from
[first2, last2) to
result, also preserving order.] Notes
This algorithm performs a similar task as ranges:, ranges::merge would output all n+m occurrences whereas
ranges::set_union would output std::max(n, m) ones only. So ranges::merge outputs exactly (N
1+N
2) values and
ranges::set_union may produce less.
[edit] Possible implementation
[edit] Example
#include <algorithm> #include <iostream> #include <iterator> #include <vector> void print(const auto& in1, const auto& in2, auto first, auto last) { std::cout << "{ "; for (const auto& e : in1) { std::cout << e << ' '; } std::cout << "} ∪ { "; for (const auto& e : in2) { std::cout << e << ' '; } std::cout << "} =\n{ "; while (!(first == last)) { std::cout << *first++ << ' '; } std::cout << "}\n\n"; } int main() { std::vector<int> in1, in2, out; in1 = {1, 2, 3, 4, 5}; in2 = { 3, 4, 5, 6, 7}; out.resize(in1.size() + in2.size()); const auto ret = std::ranges::set_union(in1, in2, out.begin()); print(in1, in2, out.begin(), ret.out); in1 = {1, 2, 3, 4, 5, 5, 5}; in2 = { 3, 4, 5, 6, 7}; out.clear(); out.reserve(in1.size() + in2.size()); std::ranges::set_union(in1, in2, std::back_inserter(out)); print(in1, in2, out.cbegin(), out.cend()); }
Output:
{ 1 2 3 4 5 } ∪ { 3 4 5 6 7 } = { 1 2 3 4 5 6 7 } { 1 2 3 4 5 5 5 } ∪ { 3 4 5 6 7 } = { 1 2 3 4 5 5 5 6 7 } | https://en.cppreference.com/w/cpp/algorithm/ranges/set_union | CC-MAIN-2021-43 | refinedweb | 302 | 56.59 |
The other day I was poking around my google analytics account and thought it would be a fun project to see if I could collect "analytics"-type data myself. I recalled that the Apache Cassandra project was supposed to use a data model similar to Google's BigTable so I decided to use it for this project. The BigTable data model turned out to be a good fit for this project once I got over some of the intricacies of dealing with time-series data in Cassandra. In this post I'll talk about how I went about modelling, collecting, and finally analyzing basic page-view data I collected from this very blog.
Cassandra (like Bigtable) is defined as "a sparse, distributed, persistent
multi-dimensional sorted map." As a python developer, the way I've gone about picturing
this is a large dictionary containing strings as keys and
OrderedDict as
values (which is incidentally how pycassa models data):
# column family "Users" users = { 'coleifer@example.com': OrderedDict( ('name', 'Charles Leifer'), ('occupation', 'Programmer'), ), 'someone@example.com': OrderedDict( ('name', 'Someone Else'), ), }
Just to point out a couple things:
So, how to go about modelling page-views?
My initial attempt got shot down first by a number of blog posts, then by the users
of #cassandra on freenode. I intended to use timestamps as the keys, then store
the page-view data as the columns. To do this, I needed to edit the cassandra conf
to use the
ByteOrderedPartitioner and instruct cassandra that my keys were going
to be timestamps so order them appropriately. There are valid usecases
for the ordered partitioner, but since Cassandra gives you column-level ordering
for free it seemed like a bad idea to continue down this path. Additionally,
a single row can contain (theoretically) something like 2B column name/value pairs,
making the "columns" (the inner dictionary) an attractive place to store page-views.
My second attempt was not a whole lot better. I simply "pushed" everything down a level and used an "account id" as the row key. This gave me something like:
PageViews = { '<account id>': OrderedDict( (timestamp1, <PAGE VIEW DATA>), (timestamp2, <PAGE VIEW DATA>), ) }
Cassandra has this interesting feature called "super-columns" (wtf) which allow you to nest columns within columns. I decided to make PageView a "super-column" so my data model looked like:
PageViews = { '<account id>': OrderedDict( # the columns themselves contain dictionaries as their values (timestamp1, {'url': '...', 'title': '...', 'ip': '...'}), (timestamp2, {'url': '...', 'title': '...', 'ip': '...'}), ) }
Then I read that supercolumns were actually a pretty bad idea and would be replaced with composite columns. The other problem is that a single account's row can grow without bounds in this schema. If a site got on average 10 page-views/second, that would be 3600 * 24 * 10 == 864,000 new columns a day...that's a pretty big row to be slicing and dicing and moving in/out of memory.
My next attempt is what I ended up sticking with. Because I have multiple sites I wanted to keep the data for each in uniquely named rows. I ended up using a key composed of an account ID and a date shard (one row per account per day, but could be modified to fit your needs). Then, to fix the problem of supercolumns, I simply serialized all the page-view data using msgpack. It looks like this:
PageViews = { '20120801.<account_id>': OrderedDict( (timestamp1, <serialized pageview data>), (timestamp2, <serialized pageview data>), ), '20120731.<account_id>': OrderedDict( ... ), }
The data cannot be queried by value (e.g. query serialized data) in this way, but it is very easy to retrieve multiple days' worth of data (the rows), and in each row to retrieve slices of various intervals for a given account. Later I'll show how I threw together a tiny map/reduce helper to process the actual serialized page-view data.
An equally viable alternative would be to store the account id in a composite column alongside the timestamp.
I remember hearing of how people had used 1-pixel gifs to retrieve analytics data, and this works surprisingly well. I'm pretty sure you can't generally push results from the client using ajax because of cross-domain restrictions, so a workaround is to have some javascript dynamically create an image. The image's URL carries a payload of data about the current page, such as the URL, title, referrer, etc. The browser goes out to load the image at the given URL, which is conveniently located on your server, and your server decodes the page-view information, stores it, and returns a single-pixel gif. On a basic level, this is what google analytics does.
To serve the javascript and gif, as well as coordinate the storage, I chose to use flask. The app would be responsible for 2 views, the request for the javascript file and the request for the gif.
from flask import Flask, request, Response app = Flask(__name__) @app.route('/a.gif') def analyze(): # pull data out of args & headers data = <parse data from request.args and request.headers> # store data in cassandra <store data>(**data) response = Response(<single pixel gif>, mimetype='image/gif') # note the no-cache headers on the response response.headers['Cache-Control'] = 'private, no-cache' return response @app.route('/a.js') def analytics_code(): return Response(<javascript>, mimetype='text/javascript')
The gif and javascript were stored in local variables. The javascript source itself looks like this:
(function() { var doc = document, img = new Image, esc = encodeURIComponent; img.src = '' + \ '?url=' + esc(doc.location.href) + \ '&ref=' + esc(doc.referrer) + \ '&title=' + esc(doc.title); })();
The
img that gets dynamically created has a
src attribute that looks something
like this (would be url encoded):
src= post&ref=..
The actual request from the client's browser for the image contains other interesting info like their IP address and any request headers the browser sends like language and user-agent.
Here is a sampling of the code I used to extract the data and store it:
@app.route('/a.gif') def analyze(): # pull parameters off the request and the headers args, headers = request.args, request.headers data = dict( title=args.get('title', ''), ip=headers['x-real-ip'], # i'm using nginx in front referrer=args.get('ref', ''), user_agent=headers['user-agent'], language=headers.get('accept-language', '').split(',')[0], ) acct_id = str(args.get('id', '')) url = args.get('url') or '' # spawn a green thread to store the data gevent.spawn(store_data, acct_id, url, **data) response = Response(BEACON, mimetype='image/gif') response.headers['Cache-Control'] = 'private, no-cache' return response def store_data(id, url, **data): # add the url to the data data['url'] = url cur_time = datetime.datetime.utcnow() time_uuid = convert_time_to_uuid(cur_time) row_key = '%s.%s' % (cur_time.strftime('%Y%m%d'), id) PageViews.insert(row_key, { time_uuid: msgpack.packb(data) })
Suppose I wanted to get counts of page-views for a single day, grouped by URL. Its very easy to iterate over a slice of columns and store counts:
counts = {} day = datetime.datetime(2012, 8, 1) key = '%s.%s' % (day.strftime('%Y%m%d'), '<account id>') query = PageViews.xget(key) # query is a generator for (ts, data) in query: data = msgpack.unpackb(data) counts.setdefault(data['url'], 0) counts[data['url']] += 1
If I just wanted an hour's worth of data, I could specify a "column_start" and "column_finish" indicating the times I wanted to query:
start = datetime.datetime(2012, 8, 1, 7, 0) # 7am finish = start + datetime.timedelta(seconds=2*60*60) # 9am query = PageViews.xget(key, column_start=start, column_finish=finish)
This type of analysis lends itself well to a map/reduce workflow. I wrote up 2 little python helpers to make this easier. The first generates lists of keys for a given date range, the second wraps the map/reduce process to avoid having to write duplicate "deserialization" code.
def prep_query(id, start_date, end_date): keys = [] start_uuid = convert_time_to_uuid(start_date) end_uuid = convert_time_to_uuid(end_date) while start_date <= end_date: keys.append('%s.%s' % (start_date.strftime('%Y%m%d'), id)) start_date += datetime.timedelta(days=1) return keys, start_uuid, end_uuid def map_reduce(id, start_date, end_date, map_fn, reduce_fn, initializer=None): """ Very primitive map/reduce -- map functions will receive a generator that iterates over pageview columns. The iterable is of the form: (account_id, datetime of pageview, pageview data) """ keys, column_start, column_finish = prep_query(id, start_date, end_date) # wrap the multiget operation for passing in as the map_fn def wrapped(k): try: gen = PageViews.xget(k, column_start=column_start, column_finish=column_finish) except NotFoundException: pass else: for ts, data in gen: converted = convert_uuid_to_time(ts) unpacked = msgpack.unpackb(data) yield (id, datetime.datetime.fromtimestamp(converted), unpacked) mapped_results = [] for result in map(map_fn, map(wrapped, keys)): mapped_results.append(result) return reduce(reduce_fn, mapped_results, initializer)
Again, here is the "page-view counter" code rewritten to use our helper functions. While this example is lengthier and less efficient than the example above, it shows the potential for parallelizing this kind of work:
def map_fn(columns): results = [] for id, ts, data in columns: results.append((data['url'], 1)) return results def reduce_fn(accum, item): for title, ct in item: accum.setdefault(title, 0) accum[title] += ct return accum map_reduce(<acct id>, <start_date>, <end_date>, map_fn, reduce_fn, {})
Your map functions can do all sorts of interesting things, like:
One thing I noticed while looking at the google analytics "dance" is that it does some things with cookies to track new versus returning visitors -- this would be a pretty neat feature. It might also be cool to denormalize page-view data and store page-views by IP (especially if you have a large number of sites) and try to isolate individual users that way (I'm sure Google is correlating all of the information it collects to generate a "unique" picture of an individual's browsing history, based on simple things like user-agent and IP address).
It would be great for the javascript library to expose a lightweight API for folks on the client-side to send custom events. Google does this with their analytics platform and it is regularly used to measure ad campaigns.
Finally, this code is very naive! It's my first experiment with Cassandra and very likely there are interesting features I've overlooked in my simplistic data model. If anyone out there has suggestions on improving it or has had success with alternate models I'd love to hear about it.
Here are a couple links and references I found helpful while working on this:
Hope you enjoyed reading! Here's a lil' screenshot from a web frontend I built atop this:
Interesting post! I'd like to start experimenting with a lot of the things you've mentioned here e.g. map-reduce, home-grown analytics, and I'll be sure to refer back to this when I get to it. By the way, you can use "from collections import defaultdict" and then d = defaultdict(int) to do the counting of urls you were doing earlier.
You should check out SnowPlow which is a loosely-coupled web analytics tool set designed to use Hadoop for the data processing. Though each component could be swapped out on demand.
Commenting has been closed, but please feel free to contact me | http://charlesleifer.com/blog/experimenting-with-an-analytics-web-service-using-python-and-cassandra-/ | CC-MAIN-2014-42 | refinedweb | 1,847 | 54.52 |
Setup and Config
Getting and Creating Projects
Basic Snapshotting
Branching and Merging
Sharing and Updating Projects
Inspection and Comparison
Patching
Debugging
External Systems
Server Admin
Guides
Administration
Plumbing Commands
Summary
This is a tutorial demonstrating the end-to-end workflow of creating a change to the Git tree, sending it for review, and making changes based on comments.
Prerequisites
This tutorial assumes you’re already fairly familiar with using Git to manage source code. The Git workflow steps will largely remain unexplained.
Getting Started
Clone the Git Repository
Git is mirrored in a number of locations. Clone the repository from one of them; suggests one of the best places to clone from is the mirror on GitHub.
$ git clone git $ cd git
Identify Problem to Solve
In this tutorial, we will add a new command,
git psuh, short for “Pony Saying
‘Um, Hello”’ - a feature which has gone unimplemented despite a high frequency
of invocation during users' typical daily workflow.
(We’ve seen some other effort in this space with the implementation of popular
commands such as
sl.)
Set Up Your Workspace
Let’s start by making a development branch to work on our changes. Per
Documentation/SubmittingPatches, since a brand new command is a new feature,
it’s fine to base your work on
master. However, in the future for bugfixes,
etc., you should check that document and base it on the appropriate branch.
For the purposes of this document, we will base all our work on the
master
branch of the upstream project. Create the
psuh branch you will use for
development like so:
$ git checkout -b psuh origin/master
We’ll make a number of commits here in order to demonstrate how to send a topic with multiple patches up for review simultaneously.
Code It Up!
Adding a New Command
Lots of the subcommands are written as builtins, which means they are
implemented in C and compiled into the main
git executable. Implementing the
very simple
psuh command as a built-in will demonstrate the structure of the
codebase, the internal API, and the process of working together as a contributor
with the reviewers and maintainer to integrate this change into the system.
Built-in subcommands are typically implemented in a function named "cmd_"
followed by the name of the subcommand, in a source file named after the
subcommand and contained within
builtin/. So it makes sense to implement your
command in
builtin/psuh.c. Create that file, and within it, write the entry
point for your command in a function matching the style and signature:
int cmd_psuh(int argc, const char **argv, const char *prefix)
We’ll also need to add the declaration of psuh; open up
builtin.h, find the
declaration for
cmd_push, and add a new line for
psuh immediately before it,
in order to keep the declarations sorted:
int cmd_psuh(int argc, const char **argv, const char *prefix);
Be sure to
#include "builtin.h" in your
psuh.c.
Go ahead and add some throwaway printf to that function. This is a decent starting point as we can now add build rules and register the command.
int cmd_psuh(int argc, const char **argv, const char *prefix) { printf(_("Pony saying hello goes here.\n")); return 0; }
Let’s try to build it. Open
Makefile, find where
builtin/push.o is added
to
BUILTIN_OBJS, and add
builtin/psuh.o in the same way next to it in
alphabetical order. Once you’ve done so, move to the top-level directory and
build simply with
make. Also add the
DEVELOPER=1 variable to turn on
some additional warnings:
$ echo DEVELOPER=1 >config.mak $ make
Great, now your new command builds happily on its own. But nobody invokes it. Let’s change that.
The list of commands lives in
git.c. We can register a new command by adding
a
cmd_struct to the
commands[] array.
struct cmd_struct takes a string
with the command name, a function pointer to the command implementation, and a
setup option flag. For now, let’s keep mimicking
push. Find the line where
cmd_push is registered, copy it, and modify it for
cmd_psuh, placing the new
line in alphabetical order.
The options are documented in
builtin.h under "Adding a new built-in." Since
we hope to print some data about the user’s current workspace context later,
we need a Git directory, so choose
RUN_SETUP as your only option.
Go ahead and build again. You should see a clean build, so let’s kick the tires
and see if it works. There’s a binary you can use to test with in the
bin-wrappers directory.
$ ./bin-wrappers/git psuh
Check it out! You’ve got a command! Nice work! Let’s commit this.
git status reveals modified
Makefile,
builtin.h, and
git.c as well as
untracked
builtin/psuh.c and
git-psuh. First, let’s take care of the binary,
which should be ignored. Open
.gitignore in your editor, find
/git-push, and
add an entry for your new command in alphabetical order:
... /git-prune-packed /git-psuh /git-pull /git-push /git-quiltimport /git-range-diff ...
Checking
git status again should show that
git-psuh has been removed from
the untracked list and
.gitignore has been added to the modified list. Now we
can stage and commit:
$ git add Makefile builtin.h builtin/psuh.c git.c .gitignore $ git commit -s
You will be presented with your editor in order to write a commit message. Start
the commit with a 50-column or less subject line, including the name of the
component you’re working on, followed by a blank line (always required) and then
the body of your commit message, which should provide the bulk of the context.
Remember to be explicit and provide the "Why" of your change, especially if it
couldn’t easily be understood from your diff. When editing your commit message,
don’t remove the Signed-off-by line which was added by
-s above.
psuh: add a built-in by popular demand Internal metrics indicate this is a command many users expect to be present. So here's an implementation to help drive customer satisfaction and engagement: a pony which doubtfully greets the user, or, a Pony Saying "Um, Hello" (PSUH). This commit message is intentionally formatted to 72 columns per line, starts with a single line as "commit message subject" that is written as if to command the codebase to do something (add this, teach a command that). The body of the message is designed to add information about the commit that is not readily deduced from reading the associated diff, such as answering the question "why?". Signed-off-by: A U Thor <author@example.com>
Go ahead and inspect your new commit with
git show. "psuh:" indicates you
have modified mainly the
psuh command. The subject line gives readers an idea
of what you’ve changed. The sign-off line (
-s) indicates that you agree to
the Developer’s Certificate of Origin 1.1 (see the
Documentation/SubmittingPatches [[dco]] header).
For the remainder of the tutorial, the subject line only will be listed for the sake of brevity. However, fully-fleshed example commit messages are available on the reference implementation linked at the top of this document.
Implementation
It’s probably useful to do at least something besides printing out a string. Let’s start by having a look at everything we get.
Modify your
cmd_psuh implementation to dump the args you’re passed, keeping
existing
printf() calls in place:
int i; ... printf(Q_("Your args (there is %d):\n", "Your args (there are %d):\n", argc), argc); for (i = 0; i < argc; i++) printf("%d: %s\n", i, argv[i]); printf(_("Your current working directory:\n<top-level>%s%s\n"), prefix ? "/" : "", prefix ? prefix : "");
Build and try it. As you may expect, there’s pretty much just whatever we give
on the command line, including the name of our command. (If
prefix is empty
for you, try
cd Documentation/ && ../bin-wrappers/git psuh). That’s not so
helpful. So what other context can we get?
Add a line to
#include "config.h". Then, add the following bits to the
function body:
const char *cfg_name; ... git_config(git_default_config, NULL); if (git_config_get_string_const("user.name", &cfg_name) > 0) printf(_("No name is found in config\n")); else printf(_("Your name: %s\n"), cfg_name);
git_config() will grab the configuration from config files known to Git and
apply standard precedence rules.
git_config_get_string_const() will look up
a specific key ("user.name") and give you the value. There are a number of
single-key lookup functions like this one; you can see them all (and more info
about how to use
git_config()) in
Documentation/technical/api-config.txt.
You should see that the name printed matches the one you see when you run:
$ git config --get user.name
Great! Now we know how to check for values in the Git config. Let’s commit this too, so we don’t lose our progress.
$ git add builtin/psuh.c $ git commit -sm "psuh: show parameters & config opts"
Still, it’d be nice to know what the user’s working context is like. Let’s see
if we can print the name of the user’s current branch. We can mimic the
git status implementation; the printer is located in
wt-status.c and we can
see that the branch is held in a
struct wt_status.
wt_status_print() gets invoked by
cmd_status() in
builtin/commit.c.
Looking at that implementation we see the status config being populated like so:
status_init_config(&s, git_status_config);
But as we drill down, we can find that
status_init_config() wraps a call
to
git_config(). Let’s modify the code we wrote in the previous commit.
Be sure to include the header to allow you to use
struct wt_status:
#include "wt-status.h"
Then modify your
cmd_psuh implementation to declare your
struct wt_status,
prepare it, and print its contents:
struct wt_status status; ... wt_status_prepare(the_repository, &status); git_config(git_default_config, &status); ... printf(_("Your current branch: %s\n"), status.branch);
Run it again. Check it out - here’s the (verbose) name of your current branch!
Let’s commit this as well.
$ git add builtin/psuh.c $ git commit -sm "psuh: print the current branch"
Now let’s see if we can get some info about a specific commit.
Luckily, there are some helpers for us here.
commit.h has a function called
lookup_commit_reference_by_name to which we can simply provide a hardcoded
string;
pretty.h has an extremely handy
pp_commit_easy() call which doesn’t
require a full format object to be passed.
Add the following includes:
#include "commit.h" #include "pretty.h"
Then, add the following lines within your implementation of
cmd_psuh() near
the declarations and the logic, respectively.
struct commit *c = NULL; struct strbuf commitline = STRBUF_INIT; ... c = lookup_commit_reference_by_name("origin/master"); if (c != NULL) { pp_commit_easy(CMIT_FMT_ONELINE, c, &commitline); printf(_("Current commit: %s\n"), commitline.buf); }
The
struct strbuf provides some safety belts to your basic
char*, one of
which is a length member to prevent buffer overruns. It needs to be initialized
nicely with
STRBUF_INIT. Keep it in mind when you need to pass around
char*.
lookup_commit_reference_by_name resolves the name you pass it, so you can play
with the value there and see what kind of things you can come up with.
pp_commit_easy is a convenience wrapper in
pretty.h that takes a single
format enum shorthand, rather than an entire format struct. It then
pretty-prints the commit according to that shorthand. These are similar to the
formats available with
--pretty=FOO in many Git commands.
Build it and run, and if you’re using the same name in the example, you should
see the subject line of the most recent commit in
origin/master that you know
about. Neat! Let’s commit that as well.
$ git add builtin/psuh.c $ git commit -sm "psuh: display the top of origin/master"
Adding Documentation
Awesome! You’ve got a fantastic new command that you’re ready to share with the community. But hang on just a minute - this isn’t very user-friendly. Run the following:
$ ./bin-wrappers/git help psuh
Your new command is undocumented! Let’s fix that.
Take a look at
Documentation/git-*.txt. These are the manpages for the
subcommands that Git knows about. You can open these up and take a look to get
acquainted with the format, but then go ahead and make a new file
Documentation/git-psuh.txt. Like with most of the documentation in the Git
project, help pages are written with AsciiDoc (see CodingGuidelines, "Writing
Documentation" section). Use the following template to fill out your own
manpage:
The most important pieces of this to note are the file header, underlined by =, the NAME section, and the SYNOPSIS, which would normally contain the grammar if your command took arguments. Try to use well-established manpage headers so your documentation is consistent with other Git and UNIX manpages; this makes life easier for your user, who can skip to the section they know contains the information they need.
Now that you’ve written your manpage, you’ll need to build it explicitly. We convert your AsciiDoc to troff which is man-readable like so:
$ make all doc $ man Documentation/git-psuh.1
or
$ make -C Documentation/ git-psuh.1 $ man Documentation/git-psuh.1
While this isn’t as satisfying as running through
git help, you can at least
check that your help page looks right.
You can also check that the documentation coverage is good (that is, the project
sees that your command has been implemented as well as documented) by running
make check-docs from the top-level.
Go ahead and commit your new documentation change.
Adding Usage Text
Try and run
./bin-wrappers/git psuh -h. Your command should crash at the end.
That’s because
-h is a special case which your command should handle by
printing usage.
Take a look at
Documentation/technical/api-parse-options.txt. This is a handy
tool for pulling out options you need to be able to handle, and it takes a
usage string.
In order to use it, we’ll need to prepare a NULL-terminated array of usage
strings and a
builtin_psuh_options array.
Add a line to
#include "parse-options.h".
At global scope, add your array of usage strings:
static const char * const psuh_usage[] = { N_("git psuh [<arg>...]"), NULL, };
Then, within your
cmd_psuh() implementation, we can declare and populate our
option struct. Ours is pretty boring but you can add more to it if you want to
explore
parse_options() in more detail:
struct option options[] = { OPT_END() };
Finally, before you print your args and prefix, add the call to
parse-options():
argc = parse_options(argc, argv, prefix, options, psuh_usage, 0);
This call will modify your
argv parameter. It will strip the options you
specified in
options from
argv and the locations pointed to from
options
entries will be updated. Be sure to replace your
argc with the result from
parse_options(), or you will be confused if you try to parse
argv later.
It’s worth noting the special argument
--. As you may be aware, many Unix
commands use
-- to indicate "end of named parameters" - all parameters after
the
-- are interpreted merely as positional arguments. (This can be handy if
you want to pass as a parameter something which would usually be interpreted as
a flag.)
parse_options() will terminate parsing when it reaches
-- and give
you the rest of the options afterwards, untouched.
Build again. Now, when you run with
-h, you should see your usage printed and
your command terminated before anything else interesting happens. Great!
Go ahead and commit this one, too.
Testing
It’s important to test your code - even for a little toy command like this one. Moreover, your patch won’t be accepted into the Git tree without tests. Your tests should:
Illustrate the current behavior of the feature
Prove the current behavior matches the expected behavior
Ensure the externally-visible behavior isn’t broken in later changes
So let’s write some tests.
Related reading:
t/README
Overview of Testing Structure
The tests in Git live in
t/ and are named with a 4-digit decimal number using
the schema shown in the Naming Tests section of
t/README.
Writing Your Test
Since this a toy command, let’s go ahead and name the test with t9999. However, as many of the family/subcmd combinations are full, best practice seems to be to find a command close enough to the one you’ve added and share its naming space.
Create a new file
t/t9999-psuh-tutorial.sh. Begin with the header as so (see
"Writing Tests" and "Source test-lib.sh" in
t/README):
#!/bin/sh test_description='git-psuh test This test runs git-psuh and makes sure it does not crash.' . ./test-lib.sh
Tests are framed inside of a
test_expect_success in order to output TAP
formatted results. Let’s make sure that
git psuh doesn’t exit poorly and does
mention the right animal somewhere:
test_expect_success 'runs correctly with no args and good output' ' git psuh >actual && test_i18ngrep Pony actual '
Indicate that you’ve run everything you wanted by adding the following at the bottom of your script:
test_done
Make sure you mark your test script executable:
$ chmod +x t/t9999-psuh-tutorial.sh
You can get an idea of whether you created your new test script successfully
by running
make -C t test-lint, which will check for things like test number
uniqueness, executable bit, and so on.
Getting Ready to Share
You may have noticed already that the Git project performs its code reviews via emailed patches, which are then applied by the maintainer when they are ready and approved by the community. The Git project does not accept patches from pull requests, and the patches emailed for review need to be formatted a specific way. At this point the tutorial diverges, in order to demonstrate two different methods of formatting your patchset and getting it reviewed.
The first method to be covered is GitGitGadget, which is useful for those already familiar with GitHub’s common pull request workflow. This method requires a GitHub account.
The second method to be covered is
git send-email, which can give slightly
more fine-grained control over the emails to be sent. This method requires some
setup which can change depending on your system and will not be covered in this
tutorial.
Regardless of which method you choose, your engagement with reviewers will be
the same; the review process will be covered after the sections on GitGitGadget
and
git send-email.
Sending Patches via GitGitGadget
One option for sending patches is to follow a typical pull request workflow and send your patches out via GitGitGadget. GitGitGadget is a tool created by Johannes Schindelin to make life as a Git contributor easier for those used to the GitHub PR workflow. It allows contributors to open pull requests against its mirror of the Git project, and does some magic to turn the PR into a set of emails and send them out for you. It also runs the Git continuous integration suite for you. It’s documented at.
Forking
git/git on GitHub
Before you can send your patch off to be reviewed using GitGitGadget, you will need to fork the Git project and upload your changes. First thing - make sure you have a GitHub account.
Head to the GitHub mirror and look for the Fork button. Place your fork wherever you deem appropriate and create it.
Uploading to Your Own Fork
To upload your branch to your own fork, you’ll need to add the new fork as a
remote. You can use
git remote -v to show the remotes you have added already.
From your new fork’s page on GitHub, you can press "Clone or download" to get
the URL; then you need to run the following to add, replacing your own URL and
remote name for the examples provided:
$ git remote add remotename git@github.com:remotename/git.git
or to use the HTTPS URL:
$ git remote add remotename
Run
git remote -v again and you should see the new remote showing up.
git fetch remotename (with the real name of your remote replaced) in order to
get ready to push.
Next, double-check that you’ve been doing all your development in a new branch
by running
git branch. If you didn’t, now is a good time to move your new
commits to their own branch.
As mentioned briefly at the beginning of this document, we are basing our work
on
master, so go ahead and update as shown below, or using your preferred
workflow.
$ git checkout master $ git pull -r $ git rebase master psuh
Finally, you’re ready to push your new topic branch! (Due to our branch and command name choices, be careful when you type the command below.)
$ git push remotename psuh
Now you should be able to go and check out your newly created branch on GitHub.
Sending a PR to GitGitGadget
In order to have your code tested and formatted for review, you need to start by
opening a Pull Request against
gitgitgadget/git. Head to and open a PR either with the "New pull
request" button or the convenient "Compare & pull request" button that may
appear with the name of your newly pushed branch.
Review the PR’s title and description, as it’s used by GitGitGadget as the cover letter for your change. When you’re happy, submit your pull request.
Running CI and Getting Ready to Send
If it’s your first time using GitGitGadget (which is likely, as you’re using
this tutorial) then someone will need to give you permission to use the tool.
As mentioned in the GitGitGadget documentation, you just need someone who
already uses it to comment on your PR with
/allow <username>. GitGitGadget
will automatically run your PRs through the CI even without the permission given
but you will not be able to
/submit your changes until someone allows you to
use the tool.
If the CI fails, you can update your changes with
git rebase -i and push your
branch again:
$ git push -f remotename psuh
In fact, you should continue to make changes this way up until the point when
your patch is accepted into
Sending Your Patches
Now that your CI is passing and someone has granted you permission to use
GitGitGadget with the
/allow command, sending out for review is as simple as
commenting on your PR with
/submit.
Updating With Comments
Skip ahead to Responding to Reviews for information on how to reply to review comments you will receive on the mailing list.
Once you have your branch again in the shape you want following all review comments, you can submit again:
$ git push -f remotename psuh
Next, go look at your pull request against GitGitGadget; you should see the CI
has been kicked off again. Now while the CI is running is a good time for you
to modify your description at the top of the pull request thread; it will be
used again as the cover letter. You should use this space to describe what
has changed since your previous version, so that your reviewers have some idea
of what they’re looking at. When the CI is done running, you can comment once
more with
/submit - GitGitGadget will automatically add a v2 mark to your
changes.
Sending Patches with
git send-email
If you don’t want to use GitGitGadget, you can also use Git itself to mail your patches. Some benefits of using Git this way include finer grained control of subject line (for example, being able to use the tag [RFC PATCH] in the subject) and being able to send a “dry run” mail to yourself to ensure it all looks good before going out to the list.
Prerequisite: Setting Up
git send-email
Configuration for
send-email can vary based on your operating system and email
provider, and so will not be covered in this tutorial, beyond stating that in
many distributions of Linux,
git-send-email is not packaged alongside the
typical
git install. You may need to install this additional package; there
are a number of resources online to help you do so. You will also need to
determine the right way to configure it to use your SMTP server; again, as this
configuration can change significantly based on your system and email setup, it
is out of scope for the context of this tutorial.
Preparing Initial Patchset
Sending emails with Git is a two-part process; before you can prepare the emails themselves, you’ll need to prepare the patches. Luckily, this is pretty simple:
$ git format-patch --cover-letter -o psuh/ master..psuh
The
--cover-letter parameter tells
format-patch to create a cover letter
template for you. You will need to fill in the template before you’re ready
to send - but for now, the template will be next to your other patches.
The
-o psuh/ parameter tells
format-patch to place the patch files into a
directory. This is useful because
git send-email can take a directory and
send out all the patches from there.
master..psuh tells
format-patch to generate patches for the difference
between
master and
psuh. It will make one patch file per commit. After you
run, you can go have a look at each of the patches with your favorite text
editor and make sure everything looks alright; however, it’s not recommended to
make code fixups via the patch file. It’s a better idea to make the change the
normal way using
git rebase -i or by adding a new commit than by modifying a
patch.
Check and make sure that your patches and cover letter template exist in the directory you specified - you’re nearly ready to send out your review!
Preparing Email
In addition to an email per patch, the Git community also expects your patches
to come with a cover letter, typically with a subject line [PATCH 0/x] (where
x is the number of patches you’re sending). Since you invoked
format-patch
with
--cover-letter, you’ve already got a template ready. Open it up in your
favorite editor.
You should see a number of headers present already. Check that your
From:
header is correct. Then modify your
Subject: to something which succinctly
covers the purpose of your entire topic branch, for example:
Subject: [PATCH 0/7] adding the 'psuh' command
Make sure you retain the “[PATCH 0/X]” part; that’s what indicates to the Git community that this email is the beginning of a review, and many reviewers filter their email for this type of flag.
You’ll need to add some extra parameters when you invoke
git send-email to add
the cover letter.
Next you’ll have to fill out the body of your cover letter. This is an important component of change submission as it explains to the community from a high level what you’re trying to do, and why, in a way that’s more apparent than just looking at your diff. Be sure to explain anything your diff doesn’t make clear on its own.
Here’s an example body for
psuh:
Our internal metrics indicate widespread interest in the command git-psuh - that is, many users are trying to use it, but finding it is unavailable, using some unknown workaround instead. The following handful of patches add the psuh command and implement some handy features on top of it. This patchset is part of the MyFirstContribution tutorial and should not be merged.
The template created by
git format-patch --cover-letter includes a diffstat.
This gives reviewers a summary of what they’re in for when reviewing your topic.
The one generated for
psuh from the sample implementation looks like this:
Documentation/git-psuh.txt | 40 +++++++++++++++++++++ Makefile | 1 + builtin.h | 1 + builtin/psuh.c | 73 ++++++++++++++++++++++++++++++++++++++ git.c | 1 + t/t9999-psuh-tutorial.sh | 12 +++++++ 6 files changed, 128 insertions(+) create mode 100644 Documentation/git-psuh.txt create mode 100644 builtin/psuh.c create mode 100755 t/t9999-psuh-tutorial.sh
Finally, the letter will include the version of Git used to generate the patches. You can leave that string alone.
Sending Email
At this point you should have a directory
psuh/ which is filled with your
patches and a cover letter. Time to mail it out! You can send it like this:
$ git send-email --to=target@example.com psuh/*.patch
After you run the command above, you will be presented with an interactive
prompt for each patch that’s about to go out. This gives you one last chance to
edit or quit sending something (but again, don’t edit code this way). Once you
y or
a at these prompts your emails will be sent! Congratulations!
Awesome, now the community will drop everything and review your changes. (Just kidding - be patient!)
Sending v2
Skip ahead to Responding to Reviews for information on how to handle comments from reviewers. Continue this section when your topic branch is shaped the way you want it to look for your patchset v2.
When you’re ready with the next iteration of your patch, the process is fairly similar.
First, generate your v2 patches again:
$ git format-patch -v2 --cover-letter -o psuh/ master..psuh
This will add your v2 patches, all named like
v2-000n-my-commit-subject.patch,
to the
psuh/ directory. You may notice that they are sitting alongside the v1
patches; that’s fine, but be careful when you are ready to send them.
Edit your cover letter again. Now is a good time to mention what’s different between your last version and now, if it’s something significant. You do not need the exact same body in your second cover letter; focus on explaining to reviewers the changes you’ve made that may not be as visible.
You will also need to go and find the Message-Id of your previous cover letter.
You can either note it when you send the first series, from the output of
git
send-email, or you can look it up on the
mailing list. Find your cover letter in the
archives, click on it, then click "permalink" or "raw" to reveal the Message-Id
header. It should match:
Message-Id: <foo.12345.author@example.com>
Your Message-Id is
<foo.12345.author@example.com>. This example will be used
below as well; make sure to replace it with the correct Message-Id for your
previous cover letter - that is, if you’re sending v2, use the Message-Id
from v1; if you’re sending v3, use the Message-Id from v2.
While you’re looking at the email, you should also note who is CC’d, as it’s common practice in the mailing list to keep all CCs on a thread. You can add these CC lines directly to your cover letter with a line like so in the header (before the Subject line):
CC: author@example.com, Othe R <other@example.com>
Now send the emails again, paying close attention to which messages you pass in to the command:
$ git send-email --to=target@example.com --in-reply-to="<foo.12345.author@example.com>" psuh/v2*
Bonus Chapter: One-Patch Changes
In some cases, your very small change may consist of only one patch. When that
happens, you only need to send one email. Your commit message should already be
meaningful and explain at a high level the purpose (what is happening and why)
of your patch, but if you need to supply even more context, you can do so below
the
--- in your patch. Take the example below, which was generated with
git
format-patch on a single commit, and then edited to add the content between
the
--- and the diffstat.
From 1345bbb3f7ac74abde040c12e737204689a72723 Mon Sep 17 00:00:00 2001 From: A U Thor <author@example.com> Date: Thu, 18 Apr 2019 15:11:02 -0700 Subject: [PATCH] README: change the grammar I think it looks better this way. This part of the commit message will end up in the commit-log. Signed-off-by: A U Thor <author@example.com> --- Let's have a wild discussion about grammar on the mailing list. This part of my email will never end up in the commit log. Here is where I can add additional context to the mailing list about my intent, outside of the context of the commit log. This section was added after `git format-patch` was run, by editing the patch file in a text editor. README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 88f126184c..38da593a60 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Git - fast, scalable, distributed revision control system ========================================================= -Git is a fast, scalable, distributed revision control system with an +Git is a fast, scalable, and distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. -- 2.21.0.392.gf8f6787159e-goog
My Patch Got Emailed - Now What?
Responding to Reviews
After a few days, you will hopefully receive a reply to your patchset with some comments. Woohoo! Now you can get back to work.
It’s good manners to reply to each comment, notifying the reviewer that you have made the change requested, feel the original is better, or that the comment inspired you to do something a new way which is superior to both the original and the suggested change. This way reviewers don’t need to inspect your v2 to figure out whether you implemented their comment or not.
If you are going to push back on a comment, be polite and explain why you feel your original is better; be prepared that the reviewer may still disagree with you, and the rest of the community may weigh in on one side or the other. As with all code reviews, it’s important to keep an open mind to doing something a different way than you originally planned; other reviewers have a different perspective on the project than you do, and may be thinking of a valid side effect which had not occurred to you. It is always okay to ask for clarification if you aren’t sure why a change was suggested, or what the reviewer is asking you to do.
Make sure your email client has a plaintext email mode and it is turned on; the Git list rejects HTML email. Please also follow the mailing list etiquette outlined in the Maintainer’s Note, which are similar to etiquette rules in most open source communities surrounding bottom-posting and inline replies.
When you’re making changes to your code, it is cleanest - that is, the resulting
commits are easiest to look at - if you use
git rebase -i (interactive
rebase). Take a look at this
overview
from O’Reilly. The general idea is to modify each commit which requires changes;
this way, instead of having a patch A with a mistake, a patch B which was fine
and required no upstream reviews in v1, and a patch C which fixes patch A for
v2, you can just ship a v2 with a correct patch A and correct patch B. This is
changing history, but since it’s local history which you haven’t shared with
anyone, that is okay for now! (Later, it may not make sense to do this; take a
look at the section below this one for some context.)
After Review Approval
The Git project has four integration branches:
pu,
master, and
maint. Your change will be placed into
pu fairly early on by the maintainer
while it is still in the review process; from there, when it is ready for wider
testing, it will be merged into
next. Plenty of early testers use
next and
may report issues. Eventually, changes in
next will make it to
master,
which is typically considered stable. Finally, when a new release is cut,
maint is used to base bugfixes onto. As mentioned at the beginning of this
document, you can read
Documents/SubmittingPatches for some more info about
the use of the various integration branches.
Back to now: your code has been lauded by the upstream reviewers. It is perfect.
It is ready to be accepted. You don’t need to do anything else; the maintainer
will merge your topic branch to
next and life is good.
However, if you discover it isn’t so perfect after this point, you may need to take some special steps depending on where you are in the process.
If the maintainer has announced in the "What’s cooking in git.git" email that
your topic is marked for
next - that is, that they plan to merge it to
but have not yet done so - you should send an email asking the maintainer to
wait a little longer: "I’ve sent v4 of my series and you marked it for
but I need to change this and that - please wait for v5 before you merge it."
If the topic has already been merged to
next, rather than modifying your
patches with
git rebase -i, you should make further changes incrementally -
that is, with another commit, based on top of the maintainer’s topic branch as
detailed in. Your work is still in the same topic
but is now incremental, rather than a wholesale rewrite of the topic branch.
The topic branches in the maintainer’s GitHub are mirrored in GitGitGadget, so if you’re sending your reviews out that way, you should be sure to open your PR against the appropriate GitGitGadget/Git branch.
If you’re using
git send-email, you can use it the same way as before, but you
should generate your diffs from
<topic>..<mybranch> and base your work on
<topic> instead of
master. | https://git-scm.com/docs/MyFirstContribution | CC-MAIN-2019-39 | refinedweb | 6,364 | 62.17 |
Another commonly used data structure is the queue. A queue is similar to a checkout line in a supermarketthe cashier services the person at the beginning of the line first. Other customers enter the line only at the end and wait for service. Queue nodes are removed only from the head (or front) of the queue and are inserted only at the tail (or end). For this reason, a queue is a first-in, first-out (FIFO) data structure. The insert and remove operations are known as enqueue and dequeue.
Queues have many uses in computer systems. Most computers have only a single processor, so only one application at a time can be serviced. Each application requiring processor time is placed in a queue. The application at the front of the queue is the next to receive service. Each application gradually advances to the front as the applications before manages the queue to ensure that as each print job completes, the next print job is sent to the printer.
Information packets also wait in queues in computer networks. Each time a packet arrives at a network node, it must be routed to the next node.
Queue Class That Inherits from List
The program of Figs. 25.16 and 25.17 creates a queue class by inheriting from a list class. We want the QueueInheritance class (Fig. 25.16) to have methods Enqueue, Dequeue, IsEmpty and Print. Essentially, these are the methods InsertAtBack, RemoveFromFront, IsEmpty and Print of class List. Of course, the list class contains other methods (such as InsertAtFront and RemoveFromBack) that we would rather not make accessible through the public interface to the queue class. Remember that all methods in the public interface of the List class are also public methods of the derived class QueueInheritance.
Figure 25.16. QueueInheritance extends class List.
Figure 25.17. Queue created by inheritance.
(This item is displayed on pages 1343 - 1344 in the print version)
The implementation of each QueueInheritance method calls the appropriate List methodmethod Enqueue calls InsertAtBack and method Dequeue calls RemoveFromFront. Calls to IsEmpty and Print invoke the base-class versions that were inherited from class List into QueueInheritance's public interface. Note that class QueueInheritance uses namespace LinkedListLibrary (Fig. 25.4); thus, the class library for QueueInheritance must have a reference to the LinkedListLibrary class library.
Class QueueInheritanceTest's Main method (Fig. 25.17) creates a QueueInheritance object called queue. Lines 1518 define four values that will be enqueued and dequeued. The program enqueues (lines 21, 23, 25 and 27) a bool containing TRue, a char containing '$', an int containing 34567 and a string containing "hello". Note that class QueueInheritanceTest uses namespace LinkedListLibrary and namespace QueueInheritanceLibrary; thus, the solution for class StackInheritanceTest must have references to both class libraries.
An infinite while loop (lines 3641) dequeues the elements from the queue in FIFO order. When there are no objects left to dequeue, method Dequeue throws an EmptyListException, and the program displays the exception's stack trace, which shows the program execution stack at the time the exception occurred. The program uses method Print (inherited from class List) to output the contents of the queue after each operation. Note that class QueueInheritanceTest uses namespace LinkedListLibrary (Fig. 25.4) and namespace QueueInheritanceLibrary (Fig. 25.16); thus, the solution for class QueueInheritanceTest must have references to both class libraries. | https://flylib.com/books/en/2.255.1/queues.html | CC-MAIN-2019-39 | refinedweb | 559 | 56.96 |
ms:schema-info-available Function
Returns
true if XSD information is available for the current node.
The following expression returns
true for all nodes with XSD-type information.
"//*[ms:schema-info-available()]"
The following example uses an XSLT template rule to select all the elements in books.xml, and to output the elements' data types and the namespace URI as defined in books.xsd.
XML File (books.xml)
XSD File (books.xsd)
HTML File (books.html)
The HTML file is the same as that listed in the ms:type-namespace-uri([node-set]) Function topic.
XSLT File (books.xslt)
<?xml version='1.0'?> <xsl:stylesheet <xsl:template <xsl:output <xsl:template <xsl:apply-templates/> </xsl:template> <xsl:template <!-- process only those element whose schema-info is available. --> <xsl:if <DIV> <xsl:value-of is of "<xsl:value-of" in "<xsl:value-of" </DIV> </xsl:if> <xsl:apply-templates/> </xsl:template> </xsl:stylesheet>
Output
x:catalog is of "" in ""
book is of "" in ""
author is of "string" in ""
title is of "string" in ""
genre is of "string" in ""
price is of "float" in ""
publish_date is of "date" in ""
description is of "string" in ""
description is of "string" in ""
The output here is the same as that shown in the
ms:type-namespace-uri topic, because the schema information is available for every element.
Build Date: | http://msdn.microsoft.com/en-us/library/ms256442.aspx | CC-MAIN-2014-35 | refinedweb | 224 | 56.35 |
go to bug id or search bugs for
Description:
------------
When inheriting from a class and calling constructor with invalid arguments, it won’t throw any error, but die silently. There is no information in web server log or PHP-FPM’s logs and nothing is returned to client either.
Test script:
---------------
class SlamObject {
}
class Utility extends SlamObject {
}
abstract class AbstractHandler extends Utility {
protected $version;
protected $session;
protected $output;
public function __construct($session, $output, $version) {
$this->session = $session;
$this->output = $output;
$this->version = $version;
}
}
class Foo extends AbstractClass {
}
$foo = new Foo();
Expected result:
----------------
At the point of Foo, fatal error is thrown telling that you called constructor with wrong arguments.
Actual result:
--------------
Silent death at this point with no information anywhere.
Add a Patch
Add a Pull Request
Also the code I have uses namespaces.
PHP will warn you:
PHP Warning: Missing argument 1 for AbstractHandler::__construct(), called in
/tmp/1.php on line 30 and defined in /tmp/1.php on line 18
PHP Warning: Missing argument 2 for AbstractHandler::__construct(), called in
/tmp/1.php on line 30 and defined in /tmp/1.php on line 18
PHP Warning: Missing argument 3 for AbstractHandler::__construct(), called in
/tmp/1.php on line 30 and defined in /tmp/1.php on line 18
I don’t get the warnings for the case I had; this simpler example does though. I’ll construct an example with proper namespaces to see if it causes it.
I can't reproduce this either. We'll have to wait for the new example.
Can you also provide your display_errors and error_reporting settings, please?
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
display_errors = On
Looks like I accidentally didn’t have only E_ALL (that should be all errors that exists, no?)
Anyway, now I’m not able to reproduce the problem even with original error_reporting, so I think it comes up randomly. I guess this one can be closed as invalid and if I manage to reproduce it, try to do proper test case.
I did spot this before (no errors where should’ve been, just immediate death), so I think there is something, but need first manage to reproduce it... | https://bugs.php.net/bug.php?id=63013 | CC-MAIN-2016-36 | refinedweb | 361 | 63.09 |
Django Models
.
So in this article, I look at Django's ORM (object-relational mapper). You'll see how how Django allows you to perform all the traditional CRUD (create-read-update-delete) actions you need and expect within your application, so that you can use a database to power your Web application.
For the purposes of this article, I'll be using the "atfapp" application within the "atfapp" project that I created in last month's article. The model, of an appointment calendar, is defined as follows in atfapp/models.py:
class Appointment(models.Model): starts_at = models.DateTimeField() ends_at = models.DateTimeField() meeting_with = models.TextField() notes = models.TextField() minutes = models.TextField() def __str__(self): return "{} - {}: Meeting with {} ↪({})".format(self.starts_at, self.ends_at, self.meeting_with, self.notes)
As you can see, the above model has four fields, indicating when the meeting starts, ends, with whom you are meeting and notes for before the meeting starts. The first two fields are defined to be DateTime fields in Django, which is translated into an SQL TIMESTAMP time in the database.
Creating a New Appointment
The easiest and best way to get your hands dirty with Django models is to use the Django interactive shell—meaning, the Python interactive shell within the Django environment. Within your project, just type:
django-admin shell
and you'll be placed in the interactive Python interpreter—or if you have it installed, in IPython. At this point, you can start to interact with your project and its various applications. In order to work with your Appointment object, you need to import it. Thus, the first thing I do is write:
from atfapp.models import Appointment
This tells Django that I want to go into the "atfapp" package—and since Django applications are Python packages, this means the "atfapp" subdirectory—and then import the "Appointment" class from the models.py module.
The important thing to remember is that a Django model is just a Python class. The ORM magic occurs because your class inherits from models.Model and because of the class attributes that you use to define the columns in the database. The better you understand Python objects, the more comfortable you'll feel with Django models.
If you want to create a new appointment object, you can do what you normally would do with a Python object:
>>> a = Appointment()
Sure enough, if you ask "a" about itself, it'll tell you:
>>> type(a) atfapp.models.Appointment
The first thing you might try to do is save your new appointment to the database. You can do this with the "save" method:
>>> a.save()
However, as you'll quickly discover if you try to do this, you get an
exception—an
IntegrityError, as the exception is named, which looks
like this:
IntegrityError: NOT NULL constraint failed: atfapp_appointment.starts_at
Here, Django is mixing Python and SQL to tell you what went wrong. You
defined your model such that it requires a
starts_at column, which is
translated into a
NOT NULL constraint within the
database. Because you
have not defined a
starts_at value for your
appointment object, your
data cannot be stored in the database.
Indeed, if you simply get the printed representation of your object, you'll see that this is the case:
>>> a <Appointment: None - None: Meeting with ()>
The above output comes from the
__str__ instance method, which you can
see was defined above. The new object has
None
values for
starts_at,
ends_at and
meeting_with.
Note that you don't have
None values for
meeting_with and notes. That's because the former are defined as
DateTimeField, whereas the latter are defined as
TextField.
By default, Django models are defined such that their columns in the
database are
NOT NULL. This is a good thing, I
think.
NULL values
cause all sorts of problems, and it's better to have to
name them explicitly. If you want a field to allow
NULL values, you need to
pass the
null=True option, as in:
starts_at = models.DateTimeField(null=True)
However, I'm not interested in
NULL values for starting and ending
times. Thus, if you want to store your appointment, you'll need to
supply some values. You can do that by assigning to the fields in
question:
>>> from datetime import datetime >>> a.starts_at = datetime.now() >>> a.ends_at = datetime(2015, 4, 28, 6,43)
Once you've done that, you can save it:
>>> a.save()
Another way to create your model would be to pass the parameters at creation time:
>>> b = Appointment(starts_at=datetime.now(), ends_at=datetime.now(), meeting_with='VIP', notes='Do not be late')
Reading Your Appointment Back
Now that you have two appointments, let's try to read them back and see what you can do with them. Access to the objects you have created in the database is done through the "objects" attribute, known as a "manager" in Django. The "all" method on objects gives you all of your objects back:
>>> len(Appointment.objects.all()) 2
You can use your column names as attributes on each object:
>>> for a in Appointment.objects.all(): print "{}: {}".format(a.starts_at, a.notes) 2015-04-28 05:59:21.316011+00:00: 2015-04-28 07:14:07.872681+00:00: Do not be late
Appointment.objects.all() returns an object known in Django as a
QuerySet. A QuerySet, as you can see above, is iterable. And, if you call
len() on it, or even if you ask for its
representation (for example, in the
Python shell), you'll see it displayed as a list. So you might think
that you're talking about a list here, which potentially means using a
great deal of memory.
But, the Django development folks have been quite clever about things, and a QuerySet is actually an iterator—meaning that it tries as hard as possible not to retrieve a large number of records into memory at once, but to use "lazy loading" to wait until the information is truly needed. Indeed, just creating a QuerySet has no effect on the database; only when you actually try to use the QuerySet's objects does the query run.
It's nice to be able to get all of the records back, but what's even more useful and important is to be able to select individual records and then to order them.
For this, you can apply the "filter" method to your manager:
>>> for a in Appointment.objects.filter(meeting_with='VIP'): print a.starts_at
Now you know when your appointments with a VIP will be starting. But, what if you want to search for a range of things, such as all of the appointments since January 1st, 2015?
Django provides a number of special methods that perform such
comparisons. For each field that you have defined in your model,
Django defines
__lt,
__lte,
__gt and
__gte methods that you can use to
filter query sets. For example, to find all of the appointments since
January 1st, 2015, you can say:
>>> Appointment.objects.filter(starts_at__gte=datetime(2015,1,1))
As you can see, because you have a
starts_at field name, Django
accepts a
starts_at__gte keyword, which is turned into the
appropriate operator. If you pass more than one keyword, Django
will combine them with AND in the underlying SQL.
QuerySets can be filtered in more sophisticated ways too. For
example, you might want to compare a field with
NULL. In that case,
you cannot use the = operator in SQL, but rather, you must use the IS
operator. Thus, you might want to use something like this:
>>> Appointment.objects.filter(notes__exact=None)
Notice that
__exact knows to apply the appropriate comparison, based
on whether it was given
None (which is turned into
SQL's
NULL) or
another value.
You can ask whether a field contains a string:
>>> Appointment.objects.filter(meeting_with__contains='VIP')
If you don't care about case sensitivity, you can use
icontains
instead:
>>> Appointment.objects.filter(meeting_with__icontains='VIP')
Don't make the mistake of adding % characters to the front and back of
the string for which you're searching. Django will do that for you,
turning the
icontains filter parameter into an SQL
ILIKE query.
You even can use slice notation on a QuerySet in order to get the
effects of
OFFSET and
LIMIT. However, it's important to remember that
in many databases, the uses of
OFFSET and
LIMIT can lead to
performance issues.
Django, by default, defines an "id" field that represents a numeric
primary key for each record stored. If you know the ID, you can
search based on that, using the
get method:
>>> Appointment.objects.get(pk=2)
If there is a record with this primary key, it'll be returned. If
not, you'll get a
DoesNotExist exception.
Finally, you also can sort the records that are returned using the
order_by method. For example:
>>> Appointment.objects.filter ↪(starts_at__gte=datetime(2015,1,1)).order_by('id')
What if you want to reverse the ordering? Just preface the name of the column with a - sign:
>>> Appointment.objects.filter ↪(starts_at__gte=datetime(2015,1,1)).order_by('-id')
You can pass multiple arguments to
order_by if you
want to order
(ascending or descending) by a combination of columns.
One nice feature of Django's QuerySets is that every call to
filter
or
order_by returns a new QuerySet object. In this way, you can make
your calls to
filter all at once or incrementally. Moreover, you can
create one QuerySet and then use that as the basis for further
QuerySets, each of which will execute (when necessary) its query
independently.
A big problem with creating dynamic queries is that of SQL injection—that users can, through the use of manipulation, force their own SQL to be executed, rather than what you intended. Using Django's QuerySets basically removes this threat, because it checks and appropriately quotes any parameters it receives before passing their values along to SQL. Really, there's no excuse nowadays for SQL injection to be a problem—please think twice (or three times) before trying to work around Django's safeguards.
Updating and Deleting
Updating the fields of a Django model is trivially easy. Modify one or more attributes, as you would with any other Python object and then save the updated object. Here, I load the first (unordered) record from the database before updating it:
>>> a = Appointment.objects.first() >>> a.>> a.save()
Note that if you change the "id" attribute and then save your object, you'll end up creating a new record in the database! Of course, you shouldn't be changing the "id" of an object in any event, but now you can consider yourself warned as well.
To delete an object, just use the
delete method on the instance.
For example:
>>> len(Appointment.objects.all()) 2 >>> a = Appointment.objects.first() >>> a.delete() >>> len(Appointment.objects.all()) >>> 1
As you can see, in the above example, I found that there is a total of two records in my database. I load the first and then delete it. Following that call—no need for saving or otherwise approving this action—you can see that the record is removed.
Conclusion
In my next article, I'll finish this series on Django with a discussion of the different types of relationships you can have across different models. I'll look at one-to-one, one-to-many and many-to-many relationships, and how Django lets you express and work with each of them.
Resources
The main site for Django is, and it has a great deal of excellent documentation, including a tutorial. Several pages are dedicated to QuerySets and how you can create and manipulate them.
Information about Python, in which Django is implemented, is at. | https://www.linuxjournal.com/content/django-models | CC-MAIN-2019-43 | refinedweb | 1,951 | 63.29 |
Mixing brain cells and nanodots
ScuttleMonkey posted about 8 years ago | from the smarter-than-some-people-i-know dept? (5, Interesting)
Zarel (900479) | about 8 years ago | (#15597838)
Re:Wait, what's this about nanodots? (0, Offtopic)
XavierDavid (830757) | about 8 years ago | (#15597852)
Re:Wait, what's this about nanodots? (4, Funny)
Tx (96709) | about 8 years ago | (#15597878)
Re:Wait, what's this about nanodots? (5, Informative)
Anonymous Coward | about 8 years ago | (#15597891)
A buckyball is a kind of nanodot. Some micelles could be considered nanodots.
HTH...
Re:Wait, what's this about nanodots? (0)
Anonymous Coward | about 8 years ago | (#15599074)
Re:Wait, what's this about nanodots? (0)
Anonymous Coward | about 8 years ago | (#15608645)
I LOVE ACID!!!!
Heh (4, Funny)
MobileTatsu-NJG (946591) | about 8 years ago | (#15597846)
proc DetectPoison ()
{
global $NeuralActivity;
if($NeuralActivity == 0) return true;
return false;
}
Re:Heh (2, Informative)
Mayhem178 (920970) | about 8 years ago | (#15597884)
proc DetectPoison()
{
global $NeuralActivity;
return $NeuralActivity == 0;
}
There, that's better.
Re:Heh (1)
Joebert (946227) | about 8 years ago | (#15598008)
Re:Heh (1)
chris_eineke (634570) | about 8 years ago | (#15598015)
(= neural-activity 0))
Re:Heh (1, Informative)
Mayhem178 (920970) | about 8 years ago | (#15598509)
Re:Heh (1)
cyberbian (897119) | about 8 years ago | (#15597885)
Wouldn't that be:
proc DetectPoison(NeuralActivity)
{
if(NeuralActivity==0) return true;
return false;
}
I suppose that NeuralActivity would preexist in the softs?
Re:Heh (1)
Retric (704075) | about 8 years ago | (#15598053)
proc DetectPoison(NeuralActivity)
{
return (NeuralActivity==0);
}
Real programmers use C (1)
mangu (126918) | about 8 years ago | (#15597914)
int DetectPoison()
{
extern int NeuralActivity;
return !NeuralActivity;
}
Simpler code.
Runs faster.
Re:Real programmers use C (0)
Anonymous Coward | about 8 years ago | (#15599005)
return 1;
}
Totally paranoid.
Runs even faster.
Re:Heh (1)
mikesd81 (518581) | about 8 years ago | (#15597925)
Re:Heh (0)
Anonymous Coward | about 8 years ago | (#15598245)
AnimalSensorData rat = AnimalSensorData.getInstance("rat_we_fed_poison_t
return rat.checkDead();
}
Re:Heh (0)
Anonymous Coward | about 8 years ago | (#15598340)
Film at 11 (1)
Frightening (976489) | about 8 years ago | (#15598356)
Re:Heh (1)
powers_722 (933907) | about 8 years ago | (#15598908)
proc DetectPoison ()
{
global $NeuralActivity;
return ($NeuralActivity == 0);
}
Right?
Re:Heh (1)
MobileTatsu-NJG (946591) | about 8 years ago | (#15599035)
The next logical step (3, Funny)
Valacosa (863657) | about 8 years ago | (#15597916)
"Mmmm...cheese."
Then it's just a quick leap to remote controlled rats. That would be fun.
They've already got remote controlled rats... (2, Interesting)
Anonymous Coward | about 8 years ago | (#15597961)
Couple this with:
and you get monkeys that can control rats with their mind!
I for one welcome our new monkey overlords and their army of mind controlled rats...
Re:The next logical step (1)
cp.tar (871488) | about 8 years ago | (#15598317)
Yes, fun.
Cranium rats. Just what we need.
If there are four or more in one place, they can cast spells, y'know?
Re:The next logical step (1)
alshithead (981606) | about 8 years ago | (#15598402)
Re:The next logical step (1)
ichigo 2.0 (900288) | about 8 years ago | (#15599792)
Re:The next logical step (1)
cp.tar (871488) | about 8 years ago | (#15599803)
Their tails are worth 1 gp apiece.
We can set bounties on them.
At least until Ankh-Morporkians hear of it, invade Planescape and start farming the rats for their tails.
My brain hurts.
Re:The next logical step (1)
bondjamesbond (99019) | about 8 years ago | (#15600349)
The Brain: Are you pondering what I'm pondering??
Re:The next logical step (1)
WilliamSChips (793741) | about 8 years ago | (#15600939)
Re:The next logical step (1)
pookemon (909195) | about 8 years ago | (#15603816)
Ethics (0)
weston (16146) | about 8 years ago | (#15597923)
I'm aware that we already do all kinds of unholy things to animals for research, but this seems different.
Also, there's the always the chance of these things becoming a self-aware SkyRatNet. Who wants to risk that?
Re:Ethics (1)
uncoveror (570620) | about 8 years ago | (#15598088)
Re:Ethics (2, Insightful)
TheDreadSlashdotterD (966361) | about 8 years ago | (#15598105). (1)
LionKimbro (200000) | about 8 years ago | (#15598265)
-- Accelerando [accelerando.org]
Re:Uploaded cats are a bad idea. (0)
Anonymous Coward | about 8 years ago | (#15600474)
These early models included a crude approximation of the brain, perfectly adequate for heart surgery or immunotherapy-- and even useful to a degree when dealing with gross cerebral injuries and tumours--but worthless for exploring more subtle neurological problems.
Imaging technology steadily improved, though--and by 2020, it had reached the point where individual neurons could be mapped, and the properties of individual synapses measured, non-invasively. psy-chophannac Copy--and let it wake, and talk.
In 2024, John Vines, a Boston neurosurgeon, ran a fully conscious Copy of himself in a crude Virtual Reality. Taking slightly less than three hours of real time (pulse racing, hyperventilating, stress hormones elevated), the first Copy's first words were: 'This is like being buried alive. I've changed my mind. Get me out of here.' "
- Harper Prism, Permutation City.
" 'Optimizing anything to do with Copies is a subtle business. You must have heard about the billionaire recluse who wanted to run as fast as possible -- even though he never made contact with the outside world -- so he fed his own code into an optimizer. After analyzing it for a year, the optimizer reported 'this program will produce no output', and spat out the optimized version -- which did precisely nothing.' "
- Same again.
Re:Ethics (1)
MisaDaBinksX4evah (889652) | about 8 years ago | (#15598634) (1)
ScentCone (795499) | about 8 years ago | (#15598856)
Well, if you're not actually putting them in a framework that, by its very nature, can possibly develop into an actual brain... then, yes, certainly.
Re:Ethics (1)
Liam Slider (908600) | about 8 years ago | (#15598907)
Re:Ethics (1)
wtansill (576643) | about 8 years ago | (#15598953)
welcome (-1, Offtopic)
Anonymous Coward | about 8 years ago | (#15597958)
Microdots (3, Funny)
Joebert (946227) | about 8 years ago | (#15597972)
Awesome ! The last batch of Microdots I got only lasted about 7 hours.
Re:Microdots (0)
Anonymous Coward | about 8 years ago | (#15598052)
They're Pinky and The Brain (3, Funny)
Anonymous Coward | about 8 years ago | (#15598050) (1)
painQuin (626852) | about 8 years ago | (#15598678)
Stable? (0, Flamebait)
Tavor (845700) | about 8 years ago | (#15598082)
Trippin (0)
Anonymous Coward | about 8 years ago | (#15598089)
The 60's called. They want their sensor back.
Re:Trippin (1)
Canar (46407) | about 8 years ago | (#15598250)
Re:Trippin (1)
cnettel (836611) | about 8 years ago | (#15598304)
Re:Trippin (3, Funny)
k4_pacific (736911) | about 8 years ago | (#15598597)
Re:Trippin (1)
heinousjay (683506) | about 8 years ago | (#15599070)
Somewhat related (-1, Offtopic)
janet-on (982800) | about 8 years ago | (#15598099)
The reason I'm so cynical is that babies are very resilient, and for the most part they are like stem cell factories on their own. As they grow, they produce new brain and nerve material, which adults cannot do. It is adult disease and injury (and greed) that fuels the stem cell craze, since our adult bodies cannot heal like young children can.
My daughter had a stroke two months before she was born. This stroke wiped out 85% of the left hemisphere of her brain, replacing it with a fluid filled cyst. When she was three months old, she had an operation to add a drainage passage to this cyst, as it was filling with cerebral spinal fluid and had expanded to fill the entire left half of her cranium cavity. This operation cut through parts of her brain, leaving her completely blind.
At nine months of age, the drainage passage had collapsed, and the cyst had enlarged to block all drainage of cerebral spinal fluid from her brain. Her head swelled with a condition know as hydrocephalus, and she almost died. That night, the CAT scans showed that 75% of the volume that should have been occupied by her brain was filled with fluid. She had an emergency operation to install an artificial drainage valve (a shunt). This event was catastrophic, and was like having her "reset" switch activated, she had to re-learn everything.
Now, the good news. She is eighteen months old now, and has recovered remarkably. Her last CAT scan showed that the original cyst had been reduced to only 25% of the left half of her brain, and the right half is completely restored. The original passage that was cut, that caused her blindness, has healed shut. Her vision is steadily improving and she shows signs that she may be functional without the use of a cane someday. Sure, she's a little behind developmentally, but she is showing lots of promise. All of her healing was without the use of any stem cell treatment, because babies are stem cell factories. Her same injuries would have killed an adult, several times over.
Re:Somewhat related (1)
groundround (962898) | about 8 years ago | (#15598173)
Mod parent down for blatant plagiarism! (4, Informative)
FleaPlus (6935) | about 8 years ago | (#15598630)! (1)
ChrisGilliard (913445) | about 8 years ago | (#15599527)
Yeah, either that or a rat brain/nanodot combo made to try to accumulate karma.
Re:Somewhat related (1)
OctaviusIII (969957) | about 8 years ago | (#15598676)
2. Stop plagiarising
3. Personal experience and a heartwarming tale do not make science or ethical norms, although they do make the reddest of herrings
If I'm not mistaken... (-1, Troll)
msauve (701917) | about 8 years ago | (#15598153)
You are mistaken... (1)
hachete (473378) | about 8 years ago | (#15598207)
from Castle Frankenstein in Germany
Re:If I'm not mistaken... (0)
Anonymous Coward | about 8 years ago | (#15598527)
Overlords... (0)
rucs_hack (784150) | about 8 years ago | (#15598179)
Re:Overlords... (0)
Anonymous Coward | about 8 years ago | (#15598971)
Hardware Vs Biological Routes (3, Interesting)
sc0p3 (972992) | about 8 years ago | (#15598188)? (1)
manx801 (698055) | about 8 years ago | (#15598234)
Re:But how does this relate to detecting poison? (1)
Otter (3800) | about 8 years ago | (#15598936)
It's the BORG (1)
Anonymous Monkey (795756) | about 8 years ago | (#15598239)
reacts to poison? (1)
DogAlmity (664209) | about 8 years ago | (#15598664)
Celldeath is somtimes a bad mesure. (1)
The Creator (4611) | about 8 years ago | (#15600041)
Consider LSD for example, nontoxic by any standard at typical dosage.
May as well get it over with (1)
stunt_penguin (906223) | about 8 years ago | (#15598714)
Re:May as well get it over with (1)
Velocir (851555) | about 8 years ago | (#15603438)
God Approved... (1)
agent (7471) | about 8 years ago | (#15599031)
Don't know about nanodots... (1)
Emetophobe (878584) | about 8 years ago | (#15601002)
Brain cells and nanodots? Progress marches on. (1)
hey! (33014) | about 8 years ago | (#15601080) salted my food with acid."
"Some joke," I said, thinking that if somebody did that to me I'd break both their arms. For starters.
"Nah, it's cool," he replied,"I've done a lot of acid. It couldn't have been much"
Welcome (1)
xazos79 (931382) | about 8 years ago | (#15602762)
I'll always be a hominid at heart (1)
smchris (464899) | about 8 years ago | (#15602938) | http://beta.slashdot.org/story/69458 | CC-MAIN-2014-23 | refinedweb | 1,858 | 70.94 |
> :I? > I think you will find it more trouble then it's worth. Sounds like a challenge to me :-) Anyway, it actually seemed to have the desired effect as far as `loader' goes, and I'm finally able to boot straight into DragonFly on my Firewire disk on this ten-year-old machine. Yay. Of course, in order for it to work in general, rather than for my specific case (where `grub' does all the dirty work to find /dboot/loader), I'd need to get `boot2' to grok this path as well, which would require a bit more study on my part to get it to compile properly -- I bet this is what you were referring. (Unfortunately, what with boot2, it's not an all-purpose hack that anyone should use -- only for my specific case, wanting to use `grub' to select from differently named `/boot's on a single filesystem. However, I wonder if this Makefile is in need of the following patch just for consistency -- not that it makes much sense to override BINDIR, but one can do so earlier in this makefile...) --- /stand/obj/hacks/DragonFly-src/source-hacks/sys/boot/i386/loader/Makefile-ORIG Sun Aug 1 23:45:19 2004 +++ /stand/obj/hacks/DragonFly-src/source-hacks/sys/boot/i386/loader/Makefile Sun Aug 8 22:10:10 2004 @@ -113,9 +113,9 @@ .PATH: ${.CURDIR}/../../forth FILES= ${PROG}.help loader.4th support.4th loader.conf FILES+= screen.4th frames.4th beastie.4th FILESDIR_loader.conf= /boot/defaults -.if !exists(${DESTDIR}/boot/loader.rc) +.if !exists(${DESTDIR}${BINDIR}/loader.rc) FILES+= ${.CURDIR}/loader.rc .endif thanks barry bouwmsa | http://leaf.dragonflybsd.org/mailarchive/kernel/2004-08/msg00096.html | CC-MAIN-2015-18 | refinedweb | 272 | 55.78 |
Hi,
I'm using the XamlPropertyGrid in order to show and edit an object's properties. Everything is great, except I would like to perform an additional customization for which I was not able to find a work around.
Basically I would like to hide the fully qualified name of objects when expanding them.
Consider the following example:
namespace this.is.a.very.loooong.namespace
{
class A { string PropA, int PropB, etc.}
}
namespace some.other.namespace
class B{
string PropX
ClassA InstanceOfClassA
When I use the PropertyGrid and try to edit an instance of ClassB and I expand the InstanceOfClassA property, it shows the fully qualified name of the type. I would like to simply show the class name (ClassA instead of the entire "this.is.a.very.loooong.namespace.ClassA".
Is there a way of achieving that?
Thanks,
Cristian
I'm using version 2018.1 and also a trialed 2019.2
Hello Cristian,
I have been investigating into the behavior you are looking to achieve, and using your example, I would recommend overriding the ToString method of Class A, as what this method returns will be what is shown in the XamPropertyGrid. By default, this method returns the fully qualified type name.
I am attaching a sample project that demonstrates this. I hope it helps you.
Please let me know if you have any other questions or concerns on this matter.
XamPropertyGridQualNameDemo.zip
Hi Andrew,
Thank you for the quick reply. That is exactly what I was looking for! It solved my problem.
Thank you again, | https://www.infragistics.com/community/forums/f/ultimate-ui-for-wpf/120858/hide-fully-qualified-type-name-when-expanding | CC-MAIN-2019-51 | refinedweb | 257 | 67.25 |
290 Ricky Williams, out of retirement, plays first game back. PAGE 1lB ~O~2 -- r~Or r~1Q '~ri t~) -~ G\ 0 2~ -< 0 0 -~1 ~-r' FORECAST: Mostly 86 sunny. Northeast .. ,',. l winds around 5 mph: .\ 60 shifting to northwest. S- -- PAGE 2A A .h, .: r.?." ,:l.-r, rr, ,:.rr, IphCCopyrig htedJ Materiall GUlf ------- -Syndicated Content Available from Commercial News Providers" Clawing a living BRIAN LaPETERCCnrornicle Bill Bruce lifts cooked stone crab claws from a cauldron of boiling water Saturday at Charlie's Fish House Seafood Market in Crystal River. Stone crab season opened Saturday. Stone crab. industry workers hope for a whopper KHUONG PHAN. kphan@chronicleonline.com Chronicle As the sun started to set on the waters of Crystal River, the boats began coming in, and guys like James Creel went to work "It's fun," he said. "I have fun being around these peo- ple." Decked out in rubber boots and a vinyl apron, Creel, 16, of Crystal River, works on the dock of Charlie's Fish House Seafood Market unloading the day's haul. With Saturday being the opening day of stone crab season, this high- schooler was sure to be busy "I work for about three or four hours every day during season," Creel said. Being young, Creel can work only short hours, while some of the seasoned veter- ans can sometimes be found unloading, cooking and sort- ing claws until well after mid- night. Stone crab season runs from Oct. 15 until May 15. Crabbers spend most of this time pulling and baiting their traps, and then extracting the massive, tasty claws off these crustaceans. According to for- mer crabber Pat Daquanna, the days are long and the toil exhausting. "These guys get out there sometimes at 4:30 in the morning," he said. "It's back- breaking work and you're never sure how many you're going to get. It's feast or famine, and it all depends on the good Lord." Crabbers are allowed to take only the claws of the ani- mals, and a de-clawed stone crab will grow new pinchers in about 18 months. Once the claws are Please see CLAWING/Page 5A The crab claws are sorted by size. Builders searching for solutions to permit backlog Phillips wants answers TERRY WITT terrywitt@chronicleonline.com Chronicle The building permit backlog at the Lecanto Government Building is noth- ing new, as the Citrus County Builders Association can attest, but they think a solution could be found with fresh thinking. Citrus County Builders Association President Chuck Sanders said the CCBA is encouraging the county to think outside the box. "What can we do to speed things up?" he said. The backlog grew in September, when 605 single family home applica- tions, 147 commercial structure appli- cations and 51 mobile home applica- tions were filed with a building depart- ment and planning department already heavy with permits. Sanders conceded some builders flooded the county with applications in August and September to beat the Oct 1 increase in impact fees and changes to the building code; but, at the same time, he said CCBA believes better technolo- gy and adding more site review plan- ners could have eased the problem. There is disagreement as to the size of the backlog, which is measured by the time it takes to turn around or process a permit Sanders said the turn- around time is eight to 10 weeks. County Building Official Dennis MacNeil said the turnaround is more like six weeks. Either way, Sanders said builders are seeing profit margins shrink as the price of materials rise during the back- log time. He said Hurricane Katrina, Hurricane Ivan, Hurricane Rita and the tropical storms that hit the state last year have taken a bit out of the margin of profit Improving GIS One of the things CCBA wants the county to consider is accelerating development of the Geographic Information System (GIS), a computer- ized mapping technology that Sanders said would shave time off the permit- ting process when fully operational. "With a little more money thrown at that, they can look at a parcel of land, Please see /Page 5A Annie's Mailbox . 7B Movies .......... 8B Comics ......... 8B Crossword ....... 7B Editorial ........ 12A Horoscope ....... 8B Obituaries ....... 6A C o:nmin il ...... 8A Two Sections Clearing its way to the top Best friend or worst enemy? All over but the count An Iraq soldier loads ballot boxes for transport to Baghdad. U.S. Secretary of State Rice said the draft was probably approved./ 14A Welcome to the world of the scale- obsessed, living by the numbers./Tuesday Move to limit use of stun guns * Proposal would restrict law enforcement./3A * Gulf Coast fisher- men in grouper battle./JA NA Hernando man will give away more than 250 pumpkins to residents./3A New fire chief to join the ranks Position vacant since May 2004 AMY SHANNON ashannon@ chronicleonline.com Chronicle If all goes as planned, Richard Stover will head north to the Nature Coast for the winter - just as call loads begin to climb for Ci- trus County Fire Rescue. A native South Flori- -ia rd dian with 30 sto..- years of fire- showed;right fighter experi- mix to lead. ence, Stover said he's looking forward to taking on new responsibilities as the agency's new fire chief. Stover, 45, accepted the' job last week following an inter- view process with Public Safety Director Charles Please see CHIEF/Pap 4A A 'jolly old elf' Lester Feldmann loved to be Santa NANCY KENNEDY nkennedy@ chronicleonline.com Chronicle Even without his padded red suit, it only took one glance to know that Lester Feldmann was Santa Claus. His eyes how they twin- kled! His dimples, how merry. His cheeks were like roses , Lester Feld- mann, Homo- sassa Springs resident and Citrus County's beloved unoffi- cial Santa Lester Claus for many Feldmann years, died Oct would start 7. He was 84. beard in Although August. Lester was so much more than Santa Claus he was a Merchant Marine, a coin collector, a volunteer Please see POSTSCRIPT/Page 4A 2A ThdnVINUAn (-Alct~nnr 72f5E TR AN E TCIRSCxNY(L HOIL Florida LOTTERIES__ Id.y Here are the winning numbers selected Sunday in the Florida Lottery: CASH 3 2-9-2 PLAY 4 7-6-3-3 FANTASY 5 14 22 24 29 33 SATURDAY, OCTOBER 15 Cash 3:0-9-2 Play 4:4 6 9-0 Fantasy 5:10 25 29 30 36 5-of-5 2 winners $125,836.75 4-of-5 266 $152.50 3-of-5 9,461 $12 Lotto: 6 11 16 -24-40 52 6-of-6 No winner 5-of-6 111 $7,270 4-of-6 6,143 $77 3-of-6 131,381 $5 FRIDAY, OCTOBER 14 Cash 3: 1- 6- 0 Play 4: 8 5 2-1 Fantasy 5:14 17 24 27 -29 5-of-5 2 winners $116,128.94 4-of-5 365 $102.50 3-of-5 9,906 $10.50 Mega Money: 17- 26 34 44 Mega Ball: 8 4-of-4 MB No winner 4-of-4 6 $1,792.50 3-of-4 MB 74 $318.50 3-of-4 1,198 $58.50 2-of-4 MB 1,876 $26 2-of-4 36,922 $2 1-of-4 MB 17,419 $2.50 THURSDAY, OCTOBER 13 Cash 3:7-2-2 Play 4: 5-5 3 7 Fantasy 5:12 -13 -22 29 31 5-of-5 3 winners $68,308.19 4-of-5- 259 $127.50 3-of-5 8,130 $11 WEDNESDAY, OCTOBER 12 Cash 3:5 -6- 3 Play 4:7-0-5-2 Fantasy 5:19 20 22 29 36 5-of-5 3 winners $75,424.34 4-of-5 236 $154.50 3-of-5 8,602 $11.50 Lotto: 17 22 25 30 43 52 6-of-6 No winner 5-of-6 71 $5,874 4-of-6 4,361 $77.50 3-of-6 90,193 $5 TUESDAY, OCTOBER 11 Cash 3:;1 3 4 Play)4L-1 1 4 INSIDE THE NUMBERS U To verify the accuracy of wir~nigg lottery, .numbers, players should dj'bti check the numbers printed above with numbers officially posted by'the Florida Lottery. On the Web, go to .com; by telephone, call (850) 487.,77 7. 9C Fbg watso top -pot - pS~ ~. :* ' Moiie maker films both sides -40gg a*g N- .. o"Copyrighted Material SSyndicated Content Available from Commercial News Providers" omsmmm~a a: - * a0 o- aNnw.i.::- an.ir---. e-...... .. "- O . -'= -a e-p4 m - -.. -....--. .... 'e.-... earn. -. .a... .. -. -. ... ... a. a-.. i. nm... e. . 1 a Today in Today is Monday, Oct. 17, the 290th day of 2005. There are 75 days left in the year. Today's Highlight in History: On Oct. 17, 1777, British forces under Gen. John Burgoyne surren- dered to American troops in Saratoga, N.Y., in a turning point of the Revolutionary War. On this date: In 1933, Albert Einstein arrived in the United States as a refugee from Nazi Germany. measur- ing 7.1 on the Richter scale struck northern California, killing 67 peo- ple and causing $7 billion worth of damage. Ten years ago: President Clin- ton told wealthy contributors at a Houston fund-raiser that "you think I raised your taxes too much. It might surprise you to know that I think I raised them too much, too" - a statement that drew criticism from both Republicans and Demo- crats. Five years ago: Ending an emergency summit in Egypt, Israeli and Palestinian leaders agreed to publicly urge an end to a burst of bloody conflict and to con- sult within two weeks about restarting the ravaged Mideast peace process. One year ago: Betty Hill, who claimed that she and her husband, Barney, had been abducted, examined and released by extra- terrestrials in 1961, died in Portsmouth, N.H, at age 85. Today's Birthdays: Actor Tom Poston is 84. Daredevil Evel Knievel is 67, Singer Jim Seals (Seals & Crofts) is 63. Singer Gary Puckett is 63. Actress Margot Kidder is 57. Astronaut Mae Jemison is 49. Country singer Alan Jackson is 47. Movie director Rob Marshall ("Chicago") is 45. Anima- tor Mike Judge is 43. Actor-come- dian Norm Macdonald is 42. Reggae singer Ziggy Marley is 37. Singer Chris Kirkpatrick ('N Sync) is 34 Rapper Eminem is 33. Singer-Wyclef Jean is 33. Actress Sharon Leal is 33. Thought for Today; "To talk to ,a child, to fascinate him, is much more difficult than to win an elec- toral victory. But it is also more rewarding." Colette, French author (1873-1954). a .. -:a:::::-< * S ^^ * SJ^^^^HJ^ * .. ..- .... .... I L go4* 0 0 wqmbw E em n-4 - Lr , * a~omm ,N W d' ,,il won fmwe 4, Y -INS.Wl- . .-.r n "i ....... e..1 WIII-Ie alm- e 111"a. INk eI- -: -e . p=V) a-. -- .-. -S* Jh,. |||p gimi :ll!!!IIiii:MI S -.. .. -i -. : Si.,,. mI a ,I .w. -Amr umb- *hl. .- - a--u a -a rOP jh~~ 0. 0 - A a. ..... .......... ......... OEM CITRUS Coulwiy (FL) CHRONICLE 2AMONDAY. OCTOBER 17,'2005 a ENTEIRTAIINMEr4T a,. .. vo 1 415920 OCTOBER 17, 2005 *. ,. .. ,.... -"o"Copyrighted Material Syndicated Content Available from Commercial News Providers" %" Pumpkin giveaway this w dump killinw n%4 "Copyrighted Material 'Syndicated Content . Available from Commercial News ProvidE Count "What matters." * "United Way is impor- tant to commu- nity because without United Way's . help, the n tru Family Mary Vis- Meccia GET INFO: F.r m.:.re atinr itrn ut IUnited Wy f CitruiS i'-unt,. call :52" 8894 Or .,qit the Web: ite at .v w .:n itru nitedwa' y rg. FWC cites two bait shrimpers Florida Fish and Wildlife Conservation Commission offi- cers cited two bait shrimpers Wednesday in Crystal River when they found large quantities 225 and 330 pounds of dead bait shrimp in their vessels. .- The boat captains were each cited on a charge of violation of the maximum of five gallons of dead shrimp per vessel, accord- ing to an FWC press release. One captain also had a quality control violation. The shrimp were seized and sold pending court action, according to the release. No special times set for Hallowden Local governments in Citrus i CoQunty 'ri nr ,5iset time' rfor' tri.lk-or-treaiing on Halloween, Which isMqnd~ay,-pct. 31 -, ;W Ua H The Citrus County Sheriff's. Office does not set policy on the observance of holidays, nor does it change the day of h61i- days. It is the agency's view=- point that the holiday will be observed Oct. 31. The sheriffs office reminds parents that Daylight Savings Time ends Oct. 30, it will get dark one hour earlier, so parents rom Git should keep that in mind when from Gist sending children out. Applications for scholarship offered k The Mike Hampton Pitching- In Foundation has applications for its $10,000 college scholar- ship available at all local high schools. The foundation will select one student each from Citrus, Crystal River, Dunnellon. and Lecanto High Schools for a scholarship. Applications are available at the guidance offices of these schools. The deadline to turn in applications is Nov. 7. The scholarship winners will be announced Dec. 8. Online edition will require registration In order to better serve its customers, the Citrus County Chronicle online department will require visitors to register at to access news stories. The regis- tration process will take a few minutes to complete and will ask for basic information. The online department will not give away any information obtained during registration. e rs From staff reports ^ I 41b -77 Cimus COUNTY (FL) CHRONICLE 4A MONDAY, OCTOBER 17, 2005 POSTSCRIPT Continued from Page 1A with the U.S. Coast Guard Auxiliary, member of the Crystal River Yacht Club, founder of the Mended Hearts Club and active with the American Heart Association, co-founder of Deaf Services (now known as Citrus Hearing Impaired Services) and a coun- try musician Santa was the role he loved best and took most seriously "He loved pleasing the chil- dren and making them happy," said Doris Feldmann, Lester's wife of 60 years and sometime- Mrs. Claus. "He would start growing his beard in August, and the funny thing was, it was- n't white." To remedy that, Lester used white. shoe polish. Every time he would don his red suit and black boots, whether for the Crystal River Christmas parade, the Homosassa boat parade, a visit to Homosassa Elementary School or a nursing home or his regular "gig" at the Wal-Mart store in Inverness, Lester would carefully apply white shoe polish to his gray beard with a toothbrush and hope it didn't rain. Years ago, Lester had told the Chronicle that being Santa Claus was a big responsibility. He listened to heartbreaking stories as well as amusing secrets from the many children who sat on his lap. He often had tears in his eyes as well as a smile on his face. As Santa, Lester would always have a ready answer For example, if a child saw him arrive in a car instead of a sleigh, he would explain, "The reindeer had problems today." When he wasn't being Santa Claus, Lester was Doris Maretta's husband he even named their street in Homosassa after her He was Douglas and Les' father He was a member of the First United Methodist Church in Homosassa and sang and played guitar and harmonica at Cowboy Junction. He was born May 7, 1921, in Palmyra, N.J. and worked for the Kellogg Company. He liked - what else? corn flakes, with strawberries or bananas. "He always did the Tony the Tiger thing," recalled son Les. "Grrrrrreat!" Lester read the newspaper every day, and would make a mess, scattering it everywhere. He told one of the local papers that he liked to read the dic- tionary, how-to books, Reader's Digest, short stories, instruction and rules books and reports. He also said his greatest achievement in life was marry- ing Doris. In 1981, Lester had a heart attack, and after bypass surgery he became active in the American Heart Association. In 1982, while recovering from his surgery, he saved two men involved in a boating accident and received the Commander's Award for Heroism. He loved search and rescue operations with the Coast Guard Auxiliary; he loved boat- ing. He loved watching football and baseball the Eagles and the Phillies. He loved his bowl of ice cream. He loved to go around singing "Pistol-Packin' Mama" and "Five Foot Two, Eyes of Blue." He memorized most, if not all, of Kris Kristofferson's songs. He mostly loved people and used his abilities and disabili- ties to help others, especially the hearing impaired. In 1984, he helped found what is now Citrus Hearing Impaired Services (CHIPS). He participated in every open house and fundraiser and would go to his friends and solicit donations. He even went to the nuclear plant to get dis- carded computers and desks for the center. "I remember he would always pop in to the office and we would stop and chat with him," said Maureen Whitaker, CHIPS director. "He was always interested in what we were doing, interested in every func- tion. That's what I remember the most, that and his smile - and that his name required two Ns at the end." As the years progressed, Lester's hearing declined. In 1995, when he could no longer hear the children, he decided to hang up his Santa suit. The Chronicle paid tribute to him Dec. 31, 1995, saying, "Yes, our Santa will leave a legacy of memories bountiful and rich... a legacy that has enhanced the Christmas holidays in Citrus County" In his latter years, Alzheimer's disease robbed him of his memory, but not his love for people. He had his har- monica and his cowboy hat with him at the nursing home, and he played for them there. He was a gentle man who, with a soft voice, always wished a "Merry Christmas to all, and to all a good night" For the : -. Citrus County Sheriff Arrest Lindsey Rowley, 19, 5374 W. State St., Homosassa, at 3:54 a.m. Saturday on a charge of pos- session of alcohol by a person younger than 21. She was released on her own recognizance. ON THE NET For more information about arrests made by the Citrus County Sheriff's Office, go to and click on the link to Daily Reports, then Arrest Reports. tTO- "Copyrighted Material- - Syndicated Content Available from Commercial News Providers" CH IE Cason's abrupt resignation in CHIEF May 2004. Poised to begin working Continued from Page 1A Nov. 7, Stover said his first task would be to familiarize Poliseno and DeRosa Fire himself with the county's Chief Dave Stevens, who is needs and to then formulate a also president of the Fire plan to address them. Chiefs Association. ChPoliseno and Stevens nar- In April, the once all-volun- Poliseno and Stevens nar- rowed the candidate pool teer agency became a combi- down to eight hopefuls earlier nation agency after hiring this month. Poliseno said nine career captains and 18 Stover presented the right mix career firefighters. The move of what they were looking for: to make the paid, full-time experience working with a positions was aimed at combination agency, extensive improving fire services, such background 'in firefighting, as response time, and allevi- experience as a state-certified ate strain on volunteers instructor, .leadership skills caused by heavy call loads. and an "excellent personali- Stover said the idea of work- ty." ing with a fairly new agency Poliseno anni ncedl. th'- appealed to-him:.. o i" decision to hire Stover on "I see a lot of opportunity," Wednesday night at a private Stoverfsaid. "I like to tinker. I fire chiefs' meeting. The posi- don't like to just sit around tion has been vacant since Jim and wait for things to happen. S^BLINIDS WE'LL MEET OR BEAT ANY COMPETITORS PRICE* FAST DELIVERY PROFESSIONAL STAFF S72HOUR -UND FACTORY I want to make things hap- pen." Stover has served as the assistant fire chief for Coral Springs Fire Department since 2000. Before CSFD, he served as a professional stan- dards captain for nine years with Broward County Fire Rescue. He's also worked as state-certified fire officer and inspector program instructor for Broward Community College since 1994. He began his firefighter career in 1975 as a volunteer for Davie Volunteer Fire Department before transfer- ring in 1979 to Broward County Fire Rescue in 1979, whe worked his way up the ra: Among his accomplishnm Stover helped organize Coral Springs Fire Aca which has sustained a 101 cent graduation rate every for the past five years. D his time with Broward C Fire Rescue, Stover serv chairman of the Bro County Fire Chiefs' Tra and Education comm which is responsible for ing more than 2,000 fire er/paramedics. "Because of my exte experience and diver, experience, I pride mys a4 ... sre he nks. nents, e the, demy, 0-per- yyear duringg county ed as )ward ai ii t ef s e ining ttee, rain- ight- nsive ified elf in 5 Our Lady of Fatima Catholic Church presents.. Fashion Fling .a,? '4 N 4 ~I 550 S. Hwy 41, Inverness For information call 344-3030 i and Family Life Center JL being a decisive leader, educa- tor and developer of fire-fight- ing personnel," Stover stated in his employment application. "... I have demonstrated the ability to lead by example and the knowledge to create a fire res- cue team that will be the envy Gerr Cha Tim Johr Nea Johr Tom Kath 4 0 of others, institute a quality training program, improve response time and instill a higher level of professionalism and skills." Stover's annual salary as county fire chief will be $68,000, Poliseno said. LH ONICLL Florida's Best Community Newspaper Serving Flord'a.0J* *Plu,adowcrest office 44 1624 N. Meadowcrest B Crystal River, FL 34429 Where to find us: Inverness office ; I- T ,. -r . 1....- 41.-=44".. ...."-'.. I- i ',' ',\, Is ; . 31vd. 106 W. Main St., Inverness, FL 34450 3603 N. Lecanto Highway Beverly Hills, FL Who's in charge: y Mulligan ......................... ............. Publisher, 563-3222 rlie Brennan .................. ................. Editor, 563-3225 Hess .............................. Director of Operations, 563-3227 n Provost ............................. Advertising Director, 563-3240 le Brennan ...... Promotions/Community Affairs Manager, 563-6363 n Murphy ............................. Classified Manager, 563-3255 Feeney ............................. Production Manager, 563-3275 h SW SECOND CLASS PERMIT #114280 FR EE In Home Consulting FREE Valances SR E Installation 0.1- SAV E. LECANTO -TREETOPS PLAZA 1657W. GULFTO LAKE HWY HOURS: MON.-FRI. 9AM- 5PM i ' Evenings andWeekcndsbyAppon-nent 0 0 ............ a The City of BrookSville Has a Long and Interesting History. To commemorate Brooksville's 149th birthday, the City is planning a week long celebration from October 15-22,2005. " Come join us for a week of events celebrating the history of Brooksville, including an "Old Fashion" Fun Day in the park, horse & buggy rides, a jazz concert in the park and a parade in f Downtown Brooksville. For a 46 , full listing of events, , call 352-544-5407 or visit K.. Beverly Hills office: Visitor November 9 lla.m. to 2 p.m. Show provided by The Cotton Club Refreshments Door Prizes Raffle Donation $12 h.. . .. .. .. .. hutters* Cryttal Pleat Silhouette Verticals5, _l I CITRus COUNTY (FL) CHRONICLE MNAOcos si 05 CLAWING Continued.from Page 1A unloaded, they come to places like this market where they're weighed, boiled in water, quickly chilled and then grad- ed. The claws are divided by size small, medium, large and floater before being stored into coolers. State laws mandate that the claws must be cooked immedi- ately for about 10 minutes because .of health regulations. BACKLOG Continued from Page 1A see all the toning setbacks, the topographical maps, land uses, soil type, the impervious surface ratio and the parcel's entire history with the click of a mouse," Sanders said. "We're at the stage where we can do this, and we need to do this." The county commission set aside $810,000 in the .2005-06 budget for GIS. An additional $9,160,724 is committed during the next five years. Another option CCBA favors would be adding software that allows planners to review site plans using computers, rather than doing it manually, he said. Sanders said residential and commercial construction has become the largest indus- try in Citrus County and the largest employer, and the county should view the poor turnaround time with more urgency for that reason alone. The county has received 14,652 development applica- tions this year, and is on pace to break last year's record of 16,024 applications. Funding with fees Another proposal CCBA has an interest in examining is whether the planning depart- ment should be fee-based like the building department, rather -than supported by In the boiling cauldrons, the once brownish-purple claws turn the bright red color that diners are used to seeing. They are quickly chilled in troughs of ice to prevent them from over-cooking. One of the first boats to come in Saturday was "Steve's Dream," owned by Steve Bickel. Helping crew the boat with Bickel was his friend Ed Simons, 64, of Homosassa. "I just enjoy doing this," Simons said from underneath his black cowboy hat. "Every year, I say I'm not going to do property taxes. Sanders said a self-supporting planning department might allow the county to increase the number of planners, and raise the salaries, to ease the permit- ting bottleneck. . Development Services Director Gary Maidhof tossed out an idea about a month ago to close down the lobby win- dow every other Friday at the Lecanto Government Building and not take permit applica- tions. The idea was to give staff more time to process what they had on their desks. But the proposal was never brought to the county commis- sion for action. County Commission Chairwoman Vicki Phillips said she asked. County Administrator Richard Wesch why he hadn't taken the proposal to the board. She said Wesch told her he didn't like the idea of county employ- ees sitting there.not accepting applications as people waited in .the lobby. She said she had to agree with him. Phillips met with Sanders and CCBA Executive Director Linda Thompson recently to hear what they had to say about the permit turnaround problem. She plans to attend the CCBA's governmental affairs meeting on Oct. 24 to address the issue. Phillips' questions She sent Wesch a memo Friday asking why the contrac- tor's window had been closed music! I41 . - rlIezImfer IIarirdI November 6 2 p.m. Kellner Auditorium $12 members $15 for non-members Refreshments during intermission Seating is limited Special Occasion. Dresses with the wo Factor Black Tie or Weddings, etc. Make the Occasion Memorable Sexy I ~to Classic Every year, I say I'm not going to do this, but here I am. I'm getting too old for this. Ed Simmons Homosassa crabber. this, but here I am. I'm getting too old for this." Bickel and Simons brought in 143 pounds Saturday, which they both contended was just OK. The two men gassed up at the Lecanto Government Building and if county staff had considered acquiring soft- ware to improve review time for permits. She also wants staff to contact other counties to determine their turnaround time. If staff finds a county that has a faster permit process, she wants staff to examine how the process works and bring back recom- mendations. In the memo, Phillips echoed Sanders' comments that permit fees within the building department have been raised several times in the past few years to fund additional employees and increase salaries for different trades. But she said that has never been done in the plan- ning department with devel- opment fees. "The building department fee supports that department, but there is no fee supporting the planners," she said in a Chronicle interview. "For some reason, our administra- tive staff doesn't want to address it." In the memo, she asked their boat, and then loaded it up with boxes of grouper heads and pigs' feet, which are used as crab bait. According to Daquanna, a crabber typically earns about Wesch to detail what current actions are being taken to reduce turnaround time. She wants the answers by Oct. 23 to enable her to address the CCBA the following day. Flood of applications Maidhof said the county would like to return to 10-day permit turnaround times. He and Building Official Dennis MacNeil said increased over- time for employees and more flexible, hours for the permit reviewers has helped de- crease the backlog. But MacNeil said the flood of applications in September, nearly double the usual num- ber, didn't help matters. He said the county had been expecting a large increase in permit applications as build- ers attempted to beat the new impact fees and code changes. Maidhof said the county has two vacant planner positions at this time. He said the short- age of site plan reviewers is one of the big reasons for the bottleneck in permitting. He said they had two applicants for the positions, but one was offered a bigger salary by her Accounting & Tax Services UM Monthly Write Ups start at$f99 $7 a pound for his day's haul. Reiterating the sentiment of Saturday being a so-so day was Jimmy Kofmehl, owner of the boat "Trinity." Kofmehl's been in the business since 1968, and currently operates 4,500 traps. "It's spotty," he said. "Some places look real good, and some places don't have much." Contributing to the less- than-stellar day was a combi- nation of very clear, warm water. According the crabbers, stone crabs like to get moving when waters are somewhere in the mid to low 70s and current government employer, and the other felt Citrus County's salary offer was not competitive. For now, MacNeil said staff cloudy. They also said that storm fronts usually bode well for them. When asked about what he expected from this season, Kofmehl laughed. "I expect it to be a whopper, because I need the money," he joked. Hopefully, he's right. As the season is just beginning, everyone involved in crabbing can expect some fairly tired days, but do they ever get tired of the work? "Nah," Creel smiled. members are doing what they can to process the backlog, but he added, "It's coming in faster than we are able to process it." WE WANT YOUR PHOTOS * Photos need to be in harp fr.cu- * Photos need to be in proper e'posur'e' rneither too lihit nri, too dark. S* Include jour name, address, and phone nurrilt:.ir * When identitying persons in your pitO, ,:,:, 1. tr, .mI let1 n : right. * If desired, include the name ol the ph:.togi~ pher l:ir Lrelit * We discourage the use of Pol.ro.id print-:. * Photos printed on home printers do not repr:--LduC:e well, ut:, mit the digital image via disk or e rn:ril '."tat il l c.l:or ,:r rect the image to Chwrnicle pubiL..:atior: stind.arsI': Photos submitted electronicall', shou.L1ld be in rn.- ir rn re.: lution JPEG i.jpgl Iorrnat. Photos cannot be returned without .'-lt add.re-.'i.ed stamped envelope. Traditional Jewish AjlHUB_ Mature drivers, it's our policy to save you money. Shen you insure your car with us, through Auto-Owners Insurance Company, we'llsaveyoumoney! Statistics show that mature drivers experience fewer, less-costly accidents, allowing us to pass the savings on to you. Contact ustxoday.,and ,- 11 let us earn your loyalty through our quality service and products at "No Problemn prices'a l . Life Home Car Business VanAllen Clifford INSURANCE 117 N. Seminole Ave. Inverness, FL 34450 (352) 637-5191 For tickets and information call 746-1323. 647005 Let your hard-earned money start working harder for you. Before you know it, your money will be growing with SunTrust's Business Money r-larket Performance Account This great introductory rate lasts until March 15, and then the rate adjusts with the market Sc' your mn-ioney is always earning a competitive rate of return, risk-free Plus, you'll ha-ve easy access to your monee at any branch, by phone, or online To learn more about this or other SunTrust business banking ervict~. lik:e Free Business Checking, stop by any of our 1,700 locations, visit suntrust corn, or call 877 370 510S Business Money Market Performance Account 3.25%O SUNTRUST Seeing beyond money 'Annualized 3 25% rate based on daily compounded rate Applies only to the Business Money Market Performance Account The minimum required balance to earn the introductory rate good through 3/15/C6 is SS0,000 of new money with a maximum balance of S750,000. Not available for Public Funds Once the introductory period has ended, interest will accrue at the standard Business Money Market Performance Account rate Offer rood for Business Money Market Performance Accounts opened and funded through 12/31/05 SunTrust Bank, Member FDIC C2005 SunTrust Banks, Inc. SunTrust and "Seeing beyond money" are service marks of SunTrust Banks, Inc : I MONDAY, OCTOBER 17, 2005 SA cftiowfE SA MONDAY, OCTOBER 17, 2005 Obituary Leopold Chambon Jr., 63 CRYSTAL RIVER Leopold E. Chambon Jr., 63, Crystal River, died Tuesday, Oct 11, 2005, at his home. Born Feb. 23, 1942, in Tampa, to Leopold and Mary Chambon, he moved to the area in 2001 from Tampa. He is survived by his niece, Linda Abbey of Gibsonton. Heinz Funeral Home & Cremation, Inverness. Deaths ELSEWHERE Baker Knight, 72 SONGWRITER BIRMINGHAM, Ala. - Prolific songwriter Baker Knight, whose hits were recorded by stars ranging from Elvis Presley to Ricky Nelson, Paul McCartney, Frank Sinatra and Dean Martin, died Wednesday of natural causes at his home in Birmingham, according to his daughter, Tuesday Knight He was 72. From. Born Thomas Baker Knight Jr., he. George C. Watkins, 84 PILOT LOMPOC, Calif. Capt. George C. Watkins, AcNavy pilot who set records for speed, alti- tude and number of landings on an aircraft carrier and served three presidents as a White House social aide, died Sept1i8 of a heart attack, said his wife, Monica. He was 84. Watkins graduated from the U.S. Naval Academy during World War II and served as a battery turret officer on the battleship Pennsylvania. He earned his wings after the war ended because the Navy need- ed more pilots. His military career spanned 30 years and he also served in the Korean and Vietnam wars. He attended Navy test pilot school in Maryland, where two of his classmates were future astronauts John Glenn and Alan Shepard. Watkins was the first Navy pilot to exceed 60,000 and 70,000 feet in altitude. In 1956, he set a speed record of 1,210 mph and an unofficial altitude record of 73,500 feet on the same flight He set two altitude records in 1958 while flying a Grum- man Fl1F-1F Super Tiger to nearly 77,000 feet. He also was the first Navy pilot to make 1,000 landings on aircraft car- riers, and was the first to log 10,000 hours flying Navy air- craft HEINZ FUNERAL HOME & Cremation Just like you...We're Family! David Heinz & Family 341-1288 Inverness, Florida CIal. E. iauii Funeral Home With Crematory go" m_ he ny Dkeft "Copyrighted Material Syndicated Content Available from Commercial News Providers" Nmi %tonPa )uU meUM I1B CVW~W) Ind phIW i g] Better Hearing Is I- K Our Business A Hearing Loss W 1 I Is A Lot More Noticeable S jerillyn Clark I Advanced Family Hearing Aid Center I "A Unique Approach To Hearing Services" .6441 West NorvellBryant Hwy. Crystal River795-1775 ., " SOLATUBE. The Miracle Skylight A revolutionary new way to think about skylights. Professionally installed in 2 hours. 14,I 471 One Time Lawn Service One Time Pest Contol i $29.00* $29.OO* *Fertilizer only up to 5,000 s.f. *Bathroom, kitchen, garage & outside Expires 10/31/05 New Customers Only Expires 10/31/05 New Customers Only TERIVIlTES ARE E 0 o0 Off Any Terrnm ite Service Expires 10/31/05 New Customers Only ROTATE & BALANCE COMPUTER DIAGNOSTIC WHEEL BALANCE For a smoother ride and longer tire Don't Know Why That Service wear. Plus we inspect tire tread, Engine Light Is On? air pressure, and valve stems. Scan Most Cars. 2 $ 4 9 Ccpa $4 1 9 5 OIL CHANGE & FILTER WHEEL ALIGNMENT $ SOD95 .... s- a o: HERNANDO MEDICAL CENTER \\EST Friends of the Homosassa Librar Book Sale S -7- November 12-13 8 a.m. to 4 p.m S,".. ,. Yulee Drive T-. Old Homosassa in 3. front of Riverworks Books, Books, Books Proceeds benefit the H, iuns'assa Public Library I For more information call 382-5388 Burial Shipping Cremation Member of Inernanonal Order of the G LDEN For Information and costs, call 497 726-8323 CITRUS COUNTY (FL) CHRONICLE -Pdw me--- L 1911 Hvvy. 44 West mext to sun-rrust) INVERNESS 344-3366 - .w CITRUS COUNTY (FL) CHRONICLEWED__IEM DAO___R7,207 "Copyrighted Material - Syndicated Content Available from Commercial News Providers" iJi mais - .om- 0 fto o40a VERTICAL BLIND OUTLEfT 649 E Gulf To Lake Lecanto FL -M 637-1991 -or- 1-877-202-1991 ALL TYPES OF BLINDS " DISCOUNT WALLPAPERPLUS... INTERIOR SHUERS -- STARTINGAT$19.95SQ FT. INSTALLED I NT 46 4 BEST SELECTION, BEST PRICES JustWet so tthe interseClion of418&491 *BeverlyHillS/NOlder 1-800-531-1808 489-0033 Helping To Correct Dog Behavior Problems * Heel On and Off Leash 0. Come When CalledS * Sit, Stay, Down Both JNTNOTEK oehen On and Off Leas .... Yard Containment All breeds and any age dog can learn new obedience commimna --r~ ~l35-0'2-24 -. 'el ho.co You choose the CD term! 3375% ,m iAPY From 3 to 8 months 4Q5% From 9 to 17 months MERCANTILE BANK We take your banking personally. Crystal River 1000 S.E. U.S. Highway 19 (352) 564-8800 Inverness 2080 Highway 44W (352) 560-0220 Member FDIC cornm 0E6 Annual Percentage Yield (APY) is available and accurate asof d .. ,- :- . Minimum opening deposit is S2,500 00. Fees may reduce ....... : . heritage Propane Serving America With Pride . INSTALLATION SPECIAL ~35'2~ {~28- ~ )628~ 726-8822 2700 N. Florida Ave., Hernando, FL* Serving All Of Citrus County INSTALLED SPECIALS WITH PAD ) Berber......... starting at $1 11sqft Plush...........starting at $133sqft Frieze......... .starting at $1 89sq ft INSTALLED FLOORING SPECIALS Solid Wood. .starting at $550sq ft Laminate..... .starting at $425sq ft Ceramic ........ ,,,4,..5, 4 CASH & CARRY IN STOCK SPECIALS Berber..................44'', Plush.....................6 6 'a,, Ceramic Tile............99 : Laminate.... .... 99 !, Solid Wood Tr.re-.:.:.l:,,.i:2 , Order ''p. : [ ,V,': i. 'jupphE: L alI- Rolls In Stock Cut To Order ' A 5 Lazest area mg SNOwibem in OCOVIlItY.Crysta[RiVerStore' Only ,NO iriterest 3 oO*6. ihovdhij same as cash. F(EX.fihahcihg available. Get approved InI,5 minutes- "Serving Citrus County., SlhO 1970'%: Crystal River. 6633 VV. Gulf to Lake HWY..r 726-4466. 138 N. Fla Ave.; US: 41 96-2 Trane XL19i Cash Back On A New Trane Heat Pump System! -i i:, tt,"J I *, 1.,. /,.,, 4. i I p!Ii Buy a Trane Comfort System before October 31, 2005 and get a mail-in debate up to ,lI.000 Fresh Clean Air Peace of Mind for 10 Years ',::'; Save up to 67'' of Your Cooling Costs .4645 7473 -.l,i -444 , .. ... i"' ' Accent Furniture Accessories Artwork Lamps Mirrors Wallpaper & Window Treatment Showroom Mon-Fri 9-5 Sat (By Appointment Only) 3 52-560-0330 Historic Merry House, Downtown Inverness Behind Wendy's B. Hills Blvd. Roosevelt Blvd. .ec0D3ost Office 0 Hw 4B6 CitrusHlils Leconfo Sales Good 10-15-05 Thru 10-21-05 STANLEY STEAMER FALL SPECTACULAR RAKE IN THE SAVINGS!! l""" " --- --------1" CLEAN ANY FIVE $ -01 ROOMS & A GET 1 ONE HALL (Cleaned &Protected...t235) MUST PRESENT COUPON RESIDENTIAL ONLY A ROOM ISANAREAUP TO 300 SO FT LIVING/DINING CLEANED FREE COMBOS ORGREAT ROOMSCOUNT ASTWO L ROOMS COUPON EXPIRES 1i/30 r ------------------------I TILE& $1A00 GROUT v OFF ^ I I a IT MUST PRESENTCOUPON RESIDENTIAL OR C LEA IN J ECOMMERCItA MINIMUM CHARGE IS REQUIRED COUPON EXPIRES 10,31/05 L-----....---1-------------------- r---------------- ------1 CLEAN ONE SOFA $00o (Up to 7 ft.) AND TWO (Cleaned & Protected... 153) C f A S *,UTo PRESENT OUPOP N RESIDENTiAL OR H A IR COMMERCIAL EXCLUDING LEATHER & HAITIAN C I *f^ COTTON COUPON EXPRESS 10131/05 L------------------------ LIVING BRINGS IT IN.WETAKE IT OUT. sM ,- EXPERTS Call 726-4646 1-800-STEEMER or schedule online atstanleysteemer.com CARRIER COOLING & HEATING.INC I W)EIR"WIRIE MONDAY, OCTOBER 17, 2005 7A O o <, -. T " , , am ' 1 ho L I oi 1-1 P <1 L. 'Ii 1 l~* ij' '' I il II N I i I Setting stage for next show Special to the Chronicle Stagecrafters will present their fall pro- duction, '"A Mad Breakfast," in a dinner theatre production Friday through Sunday at the Southern Woods Country Club. Cocktails at 5:30, dinner 6 to 7, with the show starting at 7. Reservations required. The play is a hilarious farce set in an early 20th-century boarding house. Residents Jones & Miss Brown tell the other boarders that Mr Long, a wealthy visitor, is especially interested in their var- ious hobbies. Mr. Long is told that he is vis- iting an insane asylum. Watch and listen as the scenario unfolds before your eyes. The cast of 10 and all associated production people are Sugarmill Woods residents and will appreciate your support. Cost for the dinner and show is $18.95. Major credit cards are accepted, as well as your country club membership card. For reservations call Joan at Southern Woods Country Club at 382-1200. Stagecrafters holds their monthly meet- ings at Sugarmill Woods Country Club at 3 p.m. the third Tuesday of the month. They meet from September through March, with the exception of December. The next meeting is Tuesday, and the club is always looking for new members to increase its talent pool, as well as to replace those who move on to other activi- ties. In addition to performing plays and conducting talent shows, there is also a group of dancing ladies, "The Roadies," who entertain for various organizations throughout the year. Stagecrafters will present their fall production, "A Mad Breakfast," in a dinner theatre production Friday to Sunday at Southern Woods Country Club. Shown from left, are: Nora Cina, Phyllis Smith, Jim Smith, Chris Venable, Marilyn Tannehaus, Mel Blahnik, Anne Facer and Doc Weingarten. Not shown: Shelia Walters. Cost for the dinner and show is $18.95. Major credit cards are accepted, as well as your country club membership card. For reservations, call Joan at Southern Woods Country Club at 382-1200. Special to the Chronicle Pictured in front of HFHCC house number 24 are homeowner Deborah Perry, special to the Chronicle Habitat fr Humanhuity President John Thrmsto an volunteers from even HFHCC volunteers raise the walls on house number 25 for homeowner Diedra Newton (pictured in front). Rivers Presbyterian Church. Habitat efforts spawning new homes he last "Hammer it Home" article des- cribed the affiliate's plans to raise the walls on two houses (numbers 24 and 25). We have since accomplished this goal, which is by far the most memorable occasion to date for our Habitat Affiliate. A double wall-raising requires considerable pre- planning, coordination and the hard work of many peo- ple. There were two different crews on the job site. The crew for house number 24 was led by Tara Bryant from Seven Rivers Presbyterian Church.. Bryant and her church volunteers chose to build this house dur- ing their church Mission Week. Tara and her crew worked for four days to raise the walls and dry this house in. The crew for house number 25 :^ - \ . John Thrumston was led by Habitat's Building Committee Chair Terry McMullin, Construction Manager Mike Crusco, Habitat Building Committee volunteers, members of Habitat's Board of Directors, Inverness City Manager Frank DiGiovanni, Inverness City Counsel member Dr. Bill Sheen and school board member Linda Powers. Crystal River Presbyterian Church funded and built storage sheds for these two houses. We appreciate their continuing partnership, as they provided storage sheds for four previously built houses as well. Because of these types of partnerships with the com- munity, we were able to raise the walls on two houses in the same weekend and build stor- age sheds for our families. I would like to personally thank everyone who was involved in this special occa- sion. The commitment of these volunteers has helped very deserving families real- ize their dream of owning a home. Contact our office to learn how you or your organization can partner with Habitat for Humanity of Citrus County. Our Affiliate is growing, so we will be reaching out more than ever to the community for help. Please watch for our "Hammer it Home" with Habitat column to see where you may fit into our plans. If you would like to join us or have any questions, call Terry Steel, Executive Director, at 563-2744 or John Thrumston at 341-2569. Habitat for Humanity of Citrus County is an Ecumenical Christian Ministry building simple, decent homes in partnership with people in need. 5ll John T Thrumston is president of Citrus County Habitat for Humanity. The crew for house number 24 was led by Tara Bryant from Seven Rivers Presbyterian Church. Bryant and her church volunteers chose to build this house during Mission Week. Meeting results in information he Club & Unit Council Meeting last week inun- dated us with informa- tion for October. By the time you ,'. read this, the Shrine . Rodeo will already . have happened. But we are ready -" for the Chamber Breakfast on the 19th and on the 20th at the I Scottish Rite Center in Tampa, we will have a Master Mason Robert Night with the degree put on by Shriners from the Past Masters Club. Doe and I went down last year and had a great time. The Shriners "Cash Bash," a fund-raiser. will be on the 21st. and on the 22nd, we will be at the USA Raceway in Lakeland for the day On the 28th, the Halloween Party at the Oasis Club and on the 29th, the Chili Cook-off. which we have done very well in the competition. A couple of years ago, probably longer as time slips by so fast, Billy Huff came home with the first-place prize. Then on the 30th, the Masonic Honie Coming at the Masonic Home in St. Pete is always a great day. The Masonic Home is a S place for Masons and their Ladies to -, live out the rest of their lives in com- H. Owen fort and security, and ours is one of the best in the coun- try. On the 31st. the Club is going to Spruce Creek for a Pancake Breakfast. The residents of Spruce Creek help us in our recycling efforts by collecting newspapers, and they do a great job of it. Many thanks to them for their help. What a way to Shrine. Robert H. Owen writes news for the Citrus Shrine Club. News Radio club to meet Wednesday At 7 p.m. Wednesday, Bill Byberg, president of the Sky High Amateur Radio Club, will be pre- senting facts about amateur radio communications at the Old Courthouse Heritage Museum, Second Floor. He will show a Powerpoint pres- entation on the importance of Call radio communica- tions in our coun- Laurie ty, including emer- gency operations Diestler assistance at 341- throughout the hurricane season. 6429. He will also be speaking about the Navajo Code Talkers and their importance to the efforts of the Marine Divisions during World War II. Byberg will have information available on classes being offered to the public who are interested in becoming a Ham radio operator. If you are interested in radio communications and how they benefit our community, be sure to attend this informational session. Call Laurie Diestler at 341-6429. Grumman retirees to meet Thursday The Grumman Retiree Club, Florida Midwest Chapter will meet at 11:30 a.m. Thursday, Oct. 20, at the Wellington clubhouse in Spring Hill, 400 Wexford Blvd. East, off Mariner Drive. Luncheon is'$13, paid in advance. Reservations are required. State Sen. Parsario will speak. Call Hank at (352) 686-2735. All retirees and guests from Grumman and Northrop Grumman are welcome. Flu, pneumonia clinic to be offered The Citrus County Health Department will offer adult flu and pneumonia shots at Citrus County Auditorium in Inverness from 9 a.m. to 1 p.m. on Wednesday. Pneumonia vaccine is recom- mended for anyone over age 65 who has never had the vaccine If you received the shot before age 65 and are now over age 65 and received your first shot 5 or more years ago. a second shot is recommended. The cost of the flu vaccine is $20 and pneumonia vaccine is $25. Medicare, Part B, will cover the cost of this medication. Please make sure you bring a copy of your Medicare card with you. If you have HMO coverage or if your primary insurance is not Medicare, you will need to receive your vaccines from your health care provider or pay for the vac- cines upon date of service. Call the Citrus County Health Department at 527-0068. POA to meet Wednesday The general membership meet- ing of the Property Owners' Association of The Villages (The POA) will be at 7 p.m. Wednesday at the Hacienda Center, Ricardo Montalban Room. The Sumter County Mobile Communications Police Van will be explained and open for resi- dents' inspection starting at 5:30 p m. All residents of The Villages are welcome. Coffee and doughnuts will be served afterward Call (352) 259-0999. Pet .. Miss Lily Special to the Chronicle Miss Lily went from the Beckett's barn to live with the Naumes family in Dunnellon. SO YOU KNOW Submit information at least two weeks before the event. Submit material at Chronicle offices in Inver- ness or Crystal River; by fax at 563-3280; or by e-mail to newsdesk@ chronicleonline.com. I it i- R 1 7. 2 () 05 ]I MONDAY, OCTOBER 17, 2005 9A Tribute to Connors The first time I laid eyes on Walt Connors was in the old band room at Citrus High School in the 1950s when he was in charge of the summer recreation program. The idol status I assigned to Coach Connors became tar- |iished a few times. I got caught with a group of fellow seventh-graders sneak- ing into the drive-in picture show to see a Bridgette Bardot movie. It was scandalous at that time. We were caught red- handed and hauled home by None other than the "High Sheriff," B.R. Quinn. I thought lilmy life was over that night Part of our punishment was to 'pay back the drive-in's owner, Tony Dubee, double the price '"of admission. The following Monday in ,math class, we had Connors as [a substitute teacher. One ques- tion he posed to me in front of the class was a simple arith- metic problem. "If four boys were caught sneaking into the drive-in to see an adult movie and had to pay the owner of the drive-in double the admis- sion price of 59 cents, how much would the total bill owed to the owner be?" If any- one hadn't heard of our escapade, by then they knew. The most vivid memory I have of Connors is of an inci- dent in 1959. I was in the -t5APRISI, Air Boat Rides Boat Rentals .Pontoon Boat Tours Gallery & Gift Shop ianatee encounters 9 5:- 795-4546 SDoors S All Gmes $50.00 WIN S. BUY 1 BONA 1 1_ _IGETI1 FRE HOMOSASSA LIONS A BINGO 5 FdENerih Month at pm $Package20 Pkg. $50 Payout ,5,o Per Gahme iackpvlrs Fret Conffse & mo iVon-Smoldng Rom HOMOSASSA LIONS CLUB HOUSE Rt. 490* A Be.:ler 563-0870 LIONS AUXILIARY BINGO 7 Friday Nights @ 6:30pm 3 JACKPOTS WINNER TAKES ALL KING & QUEEN Refreshments Avail. FREE Coffee and Tea Non-smoking Room $15 pkg. $50 Payout Per Game Homosassa Lions Club House, RT 490 Bob Mitchell 628-5451 7 646718 eighth grade. I was enraptured by a pretty young lady, Jackie Alligood. I was fascinated by her long, blond ponytail. I yanked Miss Alligood's ponytail, and, Connors turned around just at that moment. I was called out by Connors to the gym floor in full view of the class. Connors pulled out his paddle (which looked the size of a boat oar). He asked, "One lick or two?" I opted for two. I didn't feel the second lick because my rear-end was pretty numb after the first one. I am forever indebted to people like Connors for caring enough to make me under- stand that unruly or unlawful behavior almost always has a negative consequence. By the way, I haven't pulled a ponytail or sneaked into a picture show since those days. Honest, coach. Doug Johnston Dunnellon Iraqi union The Iraqi Oil Workers Union has been revived. Saddam Hussein issued an edict in 1987 prohibiting workers in state enterprises L MANATEE (Th LANES Letters to the from forming unions. Saddam was our pit bull puppet at the time, and President Reagan had the zeal for busting unions that our current presi- dent has for clearing brush. Both the coalition boss Paul Bremer and the interim gov- ernment refused to rescind Saddam's edict. U.S. troops arrested members of the Federation of Trade Unions for leading demonstrations, and the Iraqi National Guard fired upon workers who struck over pay and four were wounded. In December 2003, the oil workers union challenged Bremer's order to lower the base industrial wage from $60 to $40 a month and cut food -er -xadig -aeLcto $ LSO/GM 7715 GULF-TO-LAKE HWY I1.14 MILES E OF 19 ON RT. 4.1 CRYSTAL RIVER For a Day or Night of Fun and to Meet New Friends. V0 Come I1 and Play! .. i( ) I.0 To place your Bingo ads, "--'- / ^call 563-3231 LIONSLBINGO Open 12PM Sun. 2PM WIC 5 .t 5 NER TAKE ALL a rir,-,jr .. .,1,, ,11 P._ *0,: tnrt .m 't D1 0 DOOR PRIZES ii ... . r' t '' " -r -' E H E-, -"' fr,: .-I- FREF O-I-EE & H0Ir TE - N ZA Rlr trrrmi Lt' 4 ,a a[ in. n ...nr . NZA ] 1fi,,J -iIJi, ., Boih ,Mi nda% .nd Thur da. E a t 1.] u'," 6Info .6 614 S* KNIGHTS OF COLUMBUS Abbott Francis Sadlier #6168 352/746-6921 AL: PAPER L- Local:e Counr P.d 4.86 & Pine C.:ri- Le,:anro FL i ,P 2 .fi E i.:JC.F Cjur, Ry R a '-) BINGO PRIZES r7 ... .- I '50 Wo. G25_ET-1_.rFREEj, - $200 NO GAMES LESS THAN $50 $200 *25o OUR LADY OF FATIMA $250 2-JACKPOTS-ON-YOUR HARD-CARDS EVERY TUESDAY-12:00 PM 350 & THURSDAY 6:45 PM AT 550 HWY. U.S. 41 SOUTH, INVERNESS WE PLAY 3 JACKPOTS - S GAMES 21-22-23 PLAYED ON $1.00 PAPER SPECIAL L, CONSISTS OF 3 GAMES $50. $50. $250 TOTAL $350 A GAMES PLAYED ON HARD CARDS (20) 14 GAMES....................$...50.00 AT 050 EACH 4 SPECIAL .......... ,I.....$50.00 LEAST $2' BINGO ISTJACKPOT...................$200.00 BINGO! * 2ND JACKPOT.................. $250.00 13 CARDS ....................... 10.00 IN 50 NUMBERS- IF NOT CONSOLATION PRIZE$200 15 CARDS.......................10.50 ALSOSSPEEDMES BEFORE RSULARBINGO 18 CARDS .......................11.00 EA. GAME $50.00 24 CARDS ...............13.00 COST14.00- TOTAL 400. 00 SPEmc- uAy isis.d-Extrap.o S2.00 ooeach 30 CARDS.......................15.00 1 *PLAYOUTS BASED ON ATTENDANCE OF A 100 PLAYERS,* and housing payments. They threatened to strike and the oil ministry capitulated. There was an armed con- frontation in Basra in April 2003. After two months with- out pay, oil workers lowered a crane across the road and lay down on the ground. Ten of them lay under the tanker trucks with cigarette lighters that they threatened to use. The oil ministry paid the workers. The New York Times reported that the government has agreed to let private com- Artihrit Numbenhr arnd Niame 04b Sewer Facilities 016 Engineering 013 Administration Total panies buy up refineries, but predicted oil unions would resist. The British environmental group, Platform, says Iraq's debt will be used to force the government to sign produc- tion-sharing agreements with the multinationals. But multinational activity literally could be only over union workers' dead bodies. The Iraqi people suffered through eight years of the Iran/Iraq war covertly sup- ported by the U.S., the Gulf war which killed 100,000 Iraqis and knocked out nine of 11 facilities providing potable water and sewer sys- tems, and the Clinton admin- istration's bombing and sanc- tions that caused the death of Iraqi children. Then came shock and awe, followed by the occupation and the insurgency How much more can they endure? It was a gutsy labor movement that wrested this nation from the robber barons and gave us a middle class. Iraqi workers proved they have an indomitable spirit and unions everywhere express solidarity with them. Mary B. Gregory Homosassa Dress Up Your HOME! "h 1 Siding, Soffits, & Facias and Styles! 5ES1, 795-9722 Toll Free 1-888-474-2269 Wallpaper Blowout Everything Must Go .S. Hurr! Limited, .. .. .' '. ,'Quantities! - ..4 i .i .: ;- ,: .. - c1 ..'"'" 7 1 ,7,, o / and Sa yles! 795-9722 Toll Free 1-888-474-2269 S Avilalble ,^NNE ll Wallpapers499owout-Ev per Single Roll Crystal River and Ocala locations only. All sales final. No special orders. While supplies last. Citrus Paint & Decor SO .ATI G CE T Mon.-Fri.,7:30AM-5:00PM Stercls' .S DE OG CE Sat., 8:00 AM-2.On 0PM Crystal River and Ocala locations only. All sales final. No special orders. While supplies last. (32m9-63(5)491DECORATI0NG CENTER ( :8310.. 487-1017 MCRN SECOND PUBLIC HEARING NOTICE The City of Crystal River is applying to the Florida Department of Community Affairs (DCA) for a grant under the Economic Development category in the amount of $650 Crystal River is applying are: I-WIVLYINUll~rI ll idiir,- -- -- DUWpr-L MTP7II P. 13 fit $523,000.00 $ 75,000.00 $ 52.000.00 $650,000.00 The project will undertake sanitary sewer facilities improvements in support of a new Hotel site. The City of Crystal River plans to minimize displacement of persons as a result of planned CDBG funded activities; if any persons are displaced as a result of these planned activities the City of Crystal River will assist such persons in the following manner: Any person/family or business that is displaced will receive relocation payments based on uniform act requirements. The public hearing to provide citizens an opportunity to comment on the application will be held at the Crystal River, City Hall, Monday, October 24, 2005, at 7:05 p.m. or as soon thereafter as possible. A draft copy of parts of the application will be available for review at that time. A final copy of the application will be made available at the City of Crystal River on Monday through Friday between the hours of 8:30 a.m. and 5:00 p.m. no more than five (5) working days after October 24, 2005. For obtain additional information concerning the application and the public hearing contact Ms. Darcy Chase, City of Crystal River, 123 NW Hwy 19, Crystal River, Florida 34428. Telephone 352-795-4216. The public hearing is being conducted in a handicapped accessible location. Any handicapped person requiring an interpreter for the hearing impaired or the visually impaired should contact Ms. Darcy Chase at least five,-calendar days prior to the meeting and an interpreter will be provided. Any non-English speaking person wishing to attend the public hearing should contact Ms. Chase at least five calendar days prior to the meeting and a language interpreter will be provided. To access a Telecommunications Device for Deaf Persons (TDD) please call (352) 795-4216. Any handicapped person requiring special accommodation at this meeting should contact Ms. Chase at least five calendar days prior to the meeting. Pursuant to Section 102 of the HUD Reform Act of 1989, the following disclosures will be submitted to DCA with the application. The disclosures will be made available by the City of Crystal River and DCA for public inspection upon request. These disclosures will be made available for a minimum period of five years. 1. Other Government (federal, state, and local) assistance to the project in the form of a gift, grant, loan,-guarantee, insurance payment, rebate, subsidy, credit, tax, benefit or any other form of direct or indirect benefits.00 or 10% of the grant request (whichever is lower); 4. For those developers, contractors, consultants, property owners, or others listed in two (2) or three (3) above which are corporations, or other entities, the identification and pecuniary interest activities and amount. _______________________ ___ _______________ ___ At least 51% N/A N/A Puzzled About Digital Hearing Aids? Hear &,See How You Are Hearing with technology that allows us to measure live speech... Live Speech Advantage?..offered exclusively by PHC. See for yourself! Call today for a FREE hearing check and experience the U U difference of Live0 Speech Advantage 211 S. Apopka Ave. . Inverness (4 FREE lifetime batteries with (352) 726-4327 any MIarcon Hearing Aid purchase N iP. H. c. Polfelsio0nal Hearing Centers Cmus Coumy (FL) CHRONICLE C I ,- : El OPINION Rud let T BMT/T, Renefit ARCON 7.- mppolu IOA MONDAY, OCTOBER 17, 2005 EZ~pINTc1%j Humiliating pie This is our second letter to the Chronicle on the same topic we, Americans, are hopelessly stupid! In yesterday's paper was a picture of a Publix customer service staff member happily smashing a whipped-cream pie into the face of assistant rnanager Steve Silva. Our first letter sent this spring was a reaction on the sad behavior of local school principal Patrick Simon, who was encouraging children to do exactly the same to vent their frustration with the school by smashing pies over his face! Such an idea was cultivated and implemented by some bored parents they, proba- bly, had such an experience in their schools. And Mr. Simon couldn't say no. And now we see a disturbing pattern in our society where happiness is attained by degrading and humiliating one human by another. What was catching eye in your picture was not a pie in the eye it was a text to this picture: "Employees at the Publix were given the chance to smash the pies in the faces of number of managers for a donation to the local United Way" And we are reading in it: 1. Employees are not simply stupid, but they are happy to some way get even with boss- es. Who knows how disgrun- tled they are we see a clear signal to the upper Publix's management to remedy a situ- ation. 2. Managers of a local Publix, whose faces are cov- ered with whipped cream, are not simply stupid. They are happy to serve as lightning rods to vent a frustration of their employees; otherwise they would refuse to play fools. 3. And the most upsetting: All this play was aimed to col- lect donations to needy people by humiliating other people. And food was wasted instead of being'given to needy We are very sad seeing this troubling symptom in our soci- ety. And the Chronicle is just simply registering it instead of teaching people what was wrong. Principal Simon has many pupils who go about their lives quite ignorantly. No wonder that other peo- ple call us Stupid Americans. Valery and Larisa Bekman Hernando Letters to the Wallets for votes Mary B. Gregory's latest writing, "Don't repeal the death tax," convinces me that she doesn't have the courage to stick a gun in your face and take your wallet. However, she is perfectly willing to require her political representatives to do that very thing through the legislative process. If you don't surrender your wallet willingly, I assure you, the law will be on your doorstep putting a gun in your face. Far too many politicians are willing to trade your wallet for the vote of a larger faction. Gregory says that we're only talking about a few "rich" peo- ple ("Rich" is anyone with more money than the com- plainers). So, that's the way it's going to be? We're going to use simple majority rule to confis- cate money from those who earned it and give it away to those who didn't? The "rich" get richer and the "poor" get poorer. You know why? Because they both keep doing the same things over and over. A rich person doesn't work eight hours and then go home and sit on the couch until bed- time. A rich person is busy seven days a week, 12 to 14 hours a day You won't find a rich person hanging on the convenience store counter going through a fistful of scratch-off lottery tickets. If a community wants something like a charity fundraiser, or special project, it's a busy person who gets it done not the 40-hour work week couch potato. Most rich people started out with nothing but a dream. They denied themselves many pleasures to save money to invest in property, stocks or a business venture. Look in the Yellow Pages. Ninety-five percent of those business owners started with nothing but sweat, sweat and more sweat. So, if you want a guarantee that you will never achieve financial independence, just work 40 hours a week and spend the rest of the time complaining about how you're getting "screwed" because you're not getting enough of other peoples' hard-earned money Joe D. Gilbreath Dunnellon End war now I have to write in again to respond to many of the "Sound Off" people calling in about the war. Just because I am against the war does not mean that I don't support our troops. I do support all of our men and women of our armed services wherever they are stationed. And not just with words. I have personally donated money to many organizations that send goods and supplies to our troops in Iraq. How many of you have? I, on a reg- ular basis, e-mail men in Baghdad sending them jokes or articles that might raise their spirits, because they are all in a difficult situation doing their jobs for us. However, I believe this to be a war that can never be won. And yes, it is very much like Vietnam. If the United States were ever invaded by another coun- try, would we Americans just lay down, put our arms and legs up in the air and play dead? No, of course not. Many of us who could would fight to our deaths. We would cause all of the rebellion we could. We would do all kinds of terrorist acts on our aggressors. What makes us think that the Iraqi I-OAMONDAY,.OCTOBER 17, 2005 Certain Limitations Apply Eye FREE Tint Progressive Examinations Present Bifocal this Ad. A $30 ValueI We accept some insurance plans including: Vision Care Plan Eye Med Medicaid DR. WERNER JAEGER, OPTOMETRIST 3808 E. Gulf to Lake, Inverness -Times Square Plaza 344-5110 V Availab v le 11 AM 3 PM Weekdays Vd inGuaranteed Try our NEW 10 minute lunch menu. All items are ready in J16 minutes GUARANTEED* ... or your next lunch is on US!!! SFull Service Bar. 2 for 1 Margaritas 1674 US Highway 41 N. 344-4545 Inverness, FL A1P &Says Sun, Thurs., 11 AM 10 PM Fri. & Sat. 11 AM Midnighty 1/2 Pound of_ Buttere Fried Shrimp. $fa'. Installations b) hi " Brian ,:1 3 ie .X/, .ft' I'.., , ai .'.S *-"- 352-628-7519 Siding, Soffit & Fascia, Skirting. Roofovers. Carports, Screen Rooms. Decks, Windows, Doors, Additions CEE TV C C 0A Sh p Resistant .1--- fl- Surface No Resealing 0. Oil.Rust& it- Mldrew Resistant '* H~fide Range I _. -_. .' ..._ ofColors Driveways -Pool Decks Any Design Walk Ways 110% OFF7 352-628-1313 COMPLETE TREE SERVICE QUALITY WORKMANSHIP* REASONABLE RATES Owner: JOHN WEINKEIN Tree Removal Topping Trimming Stump Grinding FREE ESTIMATES LIC. & INSURED Member Better Bus. Fed & Chamber of Comm. Call Today for all your Tree Needs! 344-2696 AAA Roofing Call the "Leakbusters" Licensed R5ET7 Insured 1, 5T/' FREE Estimates Lic. CCC057537 aaanewconstruction@yahoo.com 56-01 726-891 SCREEN SPECIAL Who are you going to call when you need screen? THE SCREEN GUY" 352-564-0698 U :4 TRACK GARAGE SCREEN: A68500 (ON MOST HOMES) I OFFER EXPIRES SOON! !J,~, ~ *" '', I '* t.- ^ -* ^ '.: i L ". A , t 0 . i4~- / I I / OPINION 1-11 Crntus CouNTY (FL) CHRONICLE people would not retaliate on us? We invaded their country, killed more than a hundred thousand innocent civilians, and then expect them to wel- come us. Unlike my brother who thinks that every Iraqi would rather be an Irish American from Chicago, the majority of Iraqi people would like to stay Iraqi people and not become "Americanized." Blame it on my Christian upbringing, but I believe all war is bad. This war is no exception. Every day, more and more of our children die. We need to bring our troops home. And we need to end this war now! James Corr Lecanto NEED A REPORTER? Approval for story ideas must be granted by the Chronicle's editors before a ,e:_:rt i-:. assigned. C)I lI ie Ar ri':jnd, mrinaagirg -dityr, at '5.63 Be rrep.ir rd J to: le , er i '.- ,'ii th uIr rjnamTir phrio.ne nriuniberi arind brilet deicriptl,-,r ,:, the -t or , idj-. m-n 1 J.j qFle ILI F -,M, r -v .3 rcrdf ".: F-7?:F 1,j niiiL- ILIA q rtEIvt w I,.,, i ,I' i ,f ri cr IT TO i MONDAY, OCTOBER 17, 2005 11A of "mft- mo -a "Copyrighted Material Syndicated Content Available from Commercial News Providers" Best Wester SCitrus Hills Lodge In the middle of "Nature's Pqrodise" 350 E. Norvell Bryant Hwy. Hernando, FL 34442 Next to Ted Williams Museum (352) 527-0015 1 (888) 424-5634 The Fire Place We do more than just Gas Logs! CUSTOM BRICK WORK FIREPLACES/OUTSIDE BBQ KITCHENS REPAIRS SMALL OR BIG CHIMNEY SWEEPS & INSPECTIONS 191 S-u- s DRYER DUCT CLEANING 1921 S. Suncoast Blvd., Homosassa 352-795-7976 Specialist an Lucier, ARNP Preventative Care... n R r oARTH T i_ 'en Rivers Hospital |C 'OEI:c TIFi-,'L .,1HI:tIJIflj d Heallh Opcon 'iTIFE TiE :Tirj.; Primary Care v ^ Dr. B.K. Patel, MD,IM Norma Bct sd Ccide ta irn inernal A & c Sne. !., '"" Active staff at Citrus Memorial & Sev ,. I~led~ParriciparingL, nr A* edicare Blue Cross Blue Srueld up to LENNOX t 60 ^INDOOR COMFORT SYSTEMS $1, A better placeTM In Rebates | and I DISCOUNT For full payment upon completion * LPH> e >l.h~tfJ- 4811 S. Pleasant Grove Rd. Inverness, FL 726-2202 795-8808, LIC #CMC039568 "I'm Wearing One!" "The Qualitone CIC gives you better hearing To for about 1/2 the price of others you've heard , of. I'm wearing one! Come & try one for yourself. I'll give you a 30 DAY TRIAL. NO OBLIGATION." on Qualitone CIC David Ditchfield T -COUNTY AUDIO GY Audnoprosthosogist & HEARING AID SERVICES Inverness 726-2004 Beverly Hills 746-1133 WE AII H IT E Since 1955 i Use ALL of your homel Protect your family from I disease carrying Insects I fr J1 I with SCREEIV!. ij ;--1 1? ; "*i :.. -* " Patio Covers Carports PROTECT YOUR TOYS!.. ..- i Keep the tough Florida weather "'' i S "" Vinyl Siding Pool Cages Skirting Supplies- DO-IT-YOURSELF KITS R "a"l{"cm* Lecanto 746-3312 fmasi erNsioEv TOll Free 800/728-1948 [ RoheiC LwS' .DS PA. )IT AU 1,1- I" =- Arthritis Care, Hips, Shoulders, Knees, Hand Surgery, Sports Medicine, Arthroscopy, Joint Replacement Medicare Assignment Accepted New Patients Welcome! 2155 W. MUSTANG BLVD., BEVERLY HILLS, FL 34465 746-5707 .* -. ... W Jeffrey Marcus, M.D., FACS Ear, Nose, & Throat Facial Plastic Surgery Allergy 726-3131 821 Medical Court Inverness * We are pleased to announce the relocation to our new office in the Highland Medical Center 1 block West of Citrus Memorial -Hospital and directly across ,,~-1 .I from the Citrus High Stadium. I # 40 4 Y PPO Humana -AII Alaljr lniurzinj:t: 0 OPEN MONDAY FRIDAY 8:30 A.M. 4:30 P.m. NEW PATIENTS & WALK-INS WELCOME! Beverly Hills 37,4511 L--:an1-)H%'jy Inverness 511 VV. Highland Blvd. (352) 746-1515 CiTRus CouN7y (FL) CHRoNicLE WORLD i 12A MONDAY OCTOBER 17, 2005 / / / .~,t - --- .. . I II "A decent and manly examination of the acts of government should be not only tolerated, but encouraged. S -a KEEP RATES LOW Explore option of purchasing local utility his past Tuesday, the Citrus County Commission directed County Attorney Robert Battista to gather information the county could potentially use to buy FGUAs 11 local water and sewer utilities. On the surface the move makes Also, there is an alleged conflict of interest with the FGUA board and one of the companies that bid to take over the operational duties of the utilities. FGUA doesn't operate the utilities themselves, it governs the operation and bids out the other services. sense, but the county should pro- If the county took over the utili- ceed cautiously, ties, it would be accountable to the There are major taxpayers and be economic and admin- required to go through istrative advantages THE ISSUE: a lengthy and public to having FGUA County to explore process before doing Florida Governmen- FGUA purchase so. tal Utility Authority-- Two drawbacks with operate the systems. the county taking over The knock on FGUA OUR OPINION: ownership of the utili- is t at it lacks ac- An idea that has ties are that the county court ability. In Citrus merit. government will grow Coui ity, FGUA is gov- much larger and there ernEd by a three- would be no guaran- men ber board and has no govern- tee that rates wouldn't have to be ment oversight, even though it is a raised. government entititself. Still, exploring the possibility of a COmmtisUii]'cCHaifonbhT lfh'ikL6buritf-torit6olle Irifitlities has Phillips is ponoerned -that once a merit. five-year agreement between the -Regardless of how the process county and FGUA that prevents turns out, it is less important who is FGUA from raising its rates ends, in control than that the rates do not FGUA will be able to raise rates at increase without watertight justifi- will. cation. S spicious timing J it's a disgrace to the com- It wasn't 24 hours since this situation, because, George Bush went on tele- 'JJ you know, the water is vision live to tell the finally halfway back to American people his vow decent and now they want on terrorism, Iraq and to add thousands more everything, and all of a boats to our water. sudden what happens? Anybody who has any con- They start talking about a CARL cern should attend the subway system under meeting because the threat of attack to back 563-0579 destruction of our way of his decision. Show some life is coming quickly... proof, because I think that administration has lied too long and Play those polkas too often. "nDuet1n rnnul ar demandd" what Cheaper housing I'm reading in today's paper another community's approved for houses in the high $100,000 to $300,000 range. What about approving a community for us work- ing people that can't afford houses like that? Does anybody think about the younger generation or is it just the older generation that Citrus County is catering to? Reckless drivers The press can write what they want to in the paper, but what hap- pened on Turner Camp Road is just a common occurrence. The people are just reckless ... passing on dou- ble yellow lines in that area, speed- ing in that area. It's just constant every day and the sheriff's (office) seems to think that we don't know what we're talking about out here ... They do not patrol this area enough to control the speeding and the reckless operation of vehicles. It's ridiculous that the younger kids in this neighborhood are scared to be near the road because of the high speeds on this road. We need some definite work done out here to stop the speeding ... There's going to be more people killed if they don't do something now. RV park meeting I'm calling to urge anyone in this county who has any concern about the water quality to attend the Nov. 3 meeting at 9 a.m. at the Lecanto Government Building to oppose the developers' interests in changing the density of a local area from one house per 20 acres to a recreational vehicle park that will house 800 RVs on 207 acres, with all the boat access to our chain of lakes. I think an easy statement to use to get off the hot seat. Everyone knows that an Oktoberfest has German music, namely polkas and oom-pa-pas. And to completely eliminate them from last year's performance, name- ly Sunday afternoon, was asinine. Rock 'n' roll is not what all of us at the festival want to hear. Whoever made that judgment last year had to have received many calls. ... Consequently, the phrase "due to popular demand." Glad you're cor- recting the mistake this year. Personal foul Sportsworld of Florida is out of control now attacking the school for producing their own logos and T- shirts while teaching students graphic design. Cosmetology train- ing in many schools around the state offers walk-in people to have their hair cut at much lower rates than salons charge. This enables the students to learn on real subjects. Many schools offer automotive train- ing where the public is welcome. Does Sportsworld have exclusive rights to local high school products? ... We should support our schools and the students. Conjuring up Katrina The more I read the Sound Off calls and some of the letters to the editor, I really wonder about the mental capacity of some people in Citrus County. The latest thing now blames President Bush for the whole Katrina hurricane. He must have caused it all by himself. The question: "Where was President Bush during Katrina and problems afterward?" I don't know where President Bush was. I'm only sure he was not under a desk someplace with Monica Lewinsky. Miers not so stealthy after all n a way, you can't blame the Bush Admin- istration for turning the conversation to Harriet Miers' religion. What else are they going to talk about? Her qualifications? Those, as we have learned in the two weeks and counting since Pres- ident Bush nominated her to the Supreme Court, are a trifle thin. The woman who would become one of the nine most important judges in the land has never been Leonari voi a judge before. Worse, she lacks signif- icant experience in constitutional law. But on the plus side, she is big sur- prise here Bush's longtime lawyer and friend. Miers has built a successful career, primarily in corporate law, that has left little paper trail. One might be for- given for thinking she was meant as a stealth nominee, the idea being that a woman who had never taken a pub- licly-recorded stand offered detractors a smaller target. It's not turning out that way. Predictably, Miers' nomination raised red flags among Democrats. Less predictably, it has also upset Republicans, already plenty upset about the mishandling of Hurricane Katrina, the budget-busting plan to rebuild New Orleans and the scandal about the leaking of a CIA operative's name. They fear that in Miers, they are not getting what Bush implicitly prom- ised them: a nuclear weapon in the culture wars, a justice who would vote 1p- 4 C CITRUS COUNTY CHRONICLE EDITORIAL BOARD' Gerry Mulligan ............................. publisher Charlie Brennan ............................editor Neale Brennan ......promotions/community affairs Kathie Stewart ....... advertising services director Mike Arnold ........................ managing editor .. Andy Marks ............................. sports editor t Rove that Miers was a conservative Christian. And on "The 700 Club," Robertson warned GOP senators of dire consequences if they turn their backs on "a Christian who is a conser- vative ..." Where Miers is concerned, the White House is winking and nudging like a man with. a nervous condition, but its people aren't buying. And beg pardon, but wasn't it three months ago that. a Democratic senator asked nominee Johi'G. Roberts Jr. a perfectly legitimate question (Have yoN thought about ho\%w'ou would han- dle conflicts between your Catholic faith and the law?) only to have con- servatives get their knickers in a knot about a supposedly inappropriate injection of religion into the confirma- tion process? So suddenly, it's OK to talk religion? The hypocrisy is suffocating. It is. not, sad to say, surprising. For four years plus, this administra- tion has brazenly flouted law, hired cronies, praised incompetence, pre- tended is not. Write to Leonard Pitts Jr. at 1 Herald Plaza, Miami, FL 33132 via e-mail at lpitts@herald.com. Liberal agenda After losing debate after debate on issue after issue and election after election, liberals are so desperate for a victory (any victory) that they have lost sight of their own agenda. They have given up trying to per- suade Americans to adopt their agen- da. They have given up trying to come up with new solutions and new ideas to today's challenges. All they can do now is try to tear down their political opponents. Look how giddy they are over the DeLay indictment. Is it really a victo- ry for you libs to destroy one man's life? What are you going to do next? You've lost your way. You forgot why you chose liberalism. It's not just so you can destroy the other side, it was supposed to mean something, wasn't it? Wasn't it? Do you even remember what you stand for anymore? Tom Morgan Homosassa City on a hill "Once you have met that little coquette Katrina, you won't forget Katrina," was a cute song sung by Bing Crosby a long time ago. But today, Katrina has a different mean- ing. It means death, devastation and pain. It reminds us that we are always vulnerable to the absolute power of natural disasters. But worse than that is the power of elected officials who didn't do their jobs. The mayor of New Orleans and gov- ernor of Louisiana are directly involved with the safety of their con- stituents. They both failed the test. Instead of a well-thought-out plan for the safety and well being of their con- stituents, they failed in their sworn OP ONIONS INVITEI The opinions expressed in Chro trials are the opinions of the board of the newspaper. Viewpoints depicted in political toons, columns or letters do nc sarily represent the opinion of rial board. Groups or individuals are invite express their opinions in a letter editor. Persons wishing to address the board, which meets weekly, sh( Linda Johnson at (352) 563-5( be limit three letters per month. , SEND LETTERS TO: The Editor, Meadowcrest Blvd., Crystal Riv 34429. Or, fax to (352) 563-32 mail to letters@chronicleonlini duties. I will give you my plan to ci their mistakes. First, we must build a "city hill" where everyone has a hi job, an education and a health We must build it so that it wil stand the vicissitudes of natu chicken in every pot and a ca every garage," Herbert Hoove That's what we need. It will c it will be worth it, don't you ti We will rebuild the gambling lishment, the whorehouses, ti mills and have a never ending Gras. Now that we have built we must move it to New Orlez where it will be placed below level again. Albert Einstein se "Insanity: Doing the same thi and over again and expecting ent results." to the Editor OK, who is going to bell the cat and *nicle edi- build New Orleans below sea level editorial again? car- Don Canham. ot neces- Citrus Springs the edito- d to Thanks to crew er to the On Friday, Sept. 30, Aeromed III editorial Medical Transport Ambulance visited 660. Inverness Middle School to present a include a career program and static display of including the aircraft for about 350 students. and The crew, consisting of pilot, flight one num- iven out. nurse, paramedic, and chief flight ers for nurse. encouraged students to strive taste. for good grades, and to continue their 350 education if they aspired to achieve ted to careers such as the Aeromed fight 1624 N. crew. The four-member crew respond- er, FL ed to questions raised by students, 280; or e- and explained the importance of e.com. response time for trauma patients. I would like to express my sincere gratitude to Aeromed III for present- orrect ing the career program at Inverness Middle School. Your message stressed the importance of education and on a encouraged many students to follow ome, a their dreams and aspirations. Swith-. An unknown author once wrote: re. "A "One Hundred years from now r in It won't matter what kind of house I er said. lived in, ost, but How much money I made, think? Nor what my clothes looked like. ng estab- But, the world may be a little better he gin Because I was important in the life g Mardi of a child." Utopia, Thank you, Bruce Kurtz, Danny ans Kresge, John Schreadley and Mark sea Thomas, for "being important in the aid, life of a child." ng over differ- Mary-Ann Virgilio Program Coordinator/IMS Volunteer. to roll back previous rulings on gay rights, school prayer and abortion. Key GOP senators have been cool toward the nomi- n nation, and a virtual who's who of conservative pundit- .* ry Charles Kraut- hammer, Kathleen Parker, George F. Will, William Kristol among them has d Pitts lined up to condemn it. S!. Faced with this uprising DES among his political base, the president's first res- ponse presi- dent creden- tials. Bush told reporters Miers' faith was one reason he nominated her. Dobson, president of Focus on the Family, said on his radio program that he had been assured by Bush political guru Karl c Syndicated Content' Available from Commercial News Providers" - -& a "OM!f AW MONDAY, OCTOBER 17, 2005 13A 860-1100 *.,',.~*' HE Or Hurry! Video Ear Inspection OnEa Week Performed by Electone WMW UKw - w Factory Technician at October 17-21 9:30am to 4:30pm 860-1100 Do you have sticker shock... Even after advertised discounts are applied? If so call Father & Sons Hearing Center. COMPARE & SAVE HUNDREDS- MAYBE EVEN THOUSANDS if fif4, 7 '4, '~ / -- Family Owned N"M FATHER & SON'S HEARING, &Operated Call for an appointment (SEE PHONE NUMBERS AT BOTTOM OF AD) Hurry, call now to schedule your appointment THIS EVENT WILL BE HELD THIS WEEK ONLY! SEEING IS BELIEVING. AU DI OV ETR C TEST I. Find out what you are hearing and what you're not. .The benefits of hearing and what you're not. The benefits of hearing aids vary by type and degree of hearing loss, noise, environment, accuracy of hearing evaluation and ,proper fit. That's why it's important to have a thorough evaluation '; ,- to measure w*at you're hearing and what you're not. FREE adjustment to maximize ! your hearing aid performance. 1 WEEK ONLY ON SALE Rio 100% Fix Chip Digital Retail Price $1190 Save 50% off Rio 100% Fix Chip Digital 1 WEEK ONLY ON SALE c .,. Retail Price $1790 Save 50% off You asked for small...when is placed in your ear canal it becomes virtually Uses Natural Ear Shape Combines your natural ear shape and state-of-the-art technology Hands Free Operation There is no volume adjustment for easy handling No one notices when you wear Voyage Custom Canal Voyage Ask ABOUT our 30 "0 y ITFIAL r-,i,_,,1 Financing Available 0% INTEREST FOR 6 MONTHS (NO DOWN PAYMENT) 0% interest for 6 months with Sound Choice Care Credit. Subject to credit approval. No interest for 180 days. See store for details. SPECIAL OFFER 3526Z=28WB9B THIS WEEK ONLY! *" 3944 S. Suflceast Blvd. 0/All Digital & SiF40% OFF'% Programmable F Hmesassa Springs, Fl. -U /- Hearing Aids i l s (Publix Plaza inside THE PATIENT AND ANY OTHER PERSON RESPONSIBLE FOR PAYMENT HAS A RIGHT TO REFUSE TO PAY, CANCEL SOptical utlet Store) PAYMENT OR BE REIMBURSED FOR PAYMENT FOR ANY OTHER SERVICES, EXAMINATION OR TREATMENT THAT IS RioSack l S ) PERFORMED AS A RESULT OF AND WITHIN 72 HOURS OF RESPONDING TO THE ADVERTISEMENT FOR THE FREE, DISCOUNTED FEE OR REDUCED FEE SERVICE, EXAMINATION OR TREATMENT --- 2240 W.Hwy.44 INVERNESS (Across From Outback) Cl ale ai*namoa Scts FATHER & SONS HEARING m 860-1100 .'. 860-1100 0 0 0 0 0 ' "- ,It- y .- 1 11 .., ,' *- '* '*'" *; "! ', -' *' ;'"-' You SEE... exactly what we SEE. We'll look into your ear canal with our new MedRX Video Ear Camera. You'll watch the TV screen and we'll explain to you what you're seeing. We'll do a complete inspection of your ear canal and your ear drum. If there is any amount of wax blockage, you'll know immediately. 0 0 6 (0 0 0 0 0 Cmus CouNiy (FL) CHRoNicLE N 14A MONDAY OCTOBER 17, 2005 avt7<77o C r ~'n ~ ~ N~'.- (.' \~/h~ / '-~1 *. 1 K -I M p.- a m. u - -- 4 tahll 9ow-.00- Ift, -No ft~was .f.-Mi p ado-m .0 --40ab s- aw a E-a 400 --- wm- 4b. -.GP -.- - '~- 4- b dw-. -4 '-AM - -- -SAM a w mpw -,gmm -sl a- a' - a 02q - qw& lafww~ m fto p 4 dm a -w - N-om-M 4a40a a .4a W-'a aw 4m- N -mo 4m 40 a 4M a 40--dim- -aa i-- vot "opyrighted Material Syndicated Conten Available.from Commercial.News providers" _ 410.w .a-oft 4womom-amia wom. mi *m a -M .a qb m 0 -qw 0 *--" 4%- -a aam 4k-no- WwW a.- - -4 a Ask--w -p mqp4bmm Moammm - -lo 0 4 0M 1a 410 o- a a41 - - mmm n- 'amoma- Ia P Mo -. om 4- -m .man * a- viwx - l wido -40 4b- . G- up ' 411. 4m '110 410 -- 4111- wimp 4111-- 40 'All d. 400a - a-4M 40 qwP 4 amo.--a- 41M *-.4 41 a- 40 low0 'a a- 4m 0 o -pw- L.4 me mp *0- "n asm _am_0_am a- 4w .oo o-wmo 0 m wm m fm 4@0- 41b ---w W dow --.No Wa--a- 'adlw---W 4J.- -b- a- qmw --a -b 40 40b- Nab- -00 - -.0 a a-4m.- .-%--- - a' -a - 'a. QNnue Vew fta- - ap ule lafd AinAm worry aB about bird flu - -e - - - -am- - f - a I&a- "-o 4f 40 4b -loM l -40 4mow amo 0 oww qp- 4M-NE w-of __ENEW-MW41-A a - am T- mm a 'RMqwU aft E- mo- _mm 4b - - *~ - ,- aa * 0 Q o VW M 1 14 VV & 6W RM6 dg*MW I Four-wheel fiasco Lots of problem,: for divers in C-harl,,tte. Bucs spoil Ricky's retu m I m - .4 .,,- - - ----g .. 4 .- p -- . M am-N Series bound for South Side Xf tirt 1 oflta1f S.Copyrig htedM material ---- Syndicated Content Available from Commercial NewsProviders" .-.-.. ...o. - -6 fu 4". -l-/ *,wwvnqhtm fruni aami ith *%amt*ung A 4 Regional tourneys tee off today " -- -. SORACCHI jmsoracchi@chronicleonline.com Chronicle Three area schools tee off in their golf regional tourna- ments this morning while another gets set to play Tuesday. The Lecanto girls team fin- ished first in Class 2A, District 6 with a four-person score of 380 and now move on to Palm Harbor golf course in Palm Coast to play in the Class 2A, Region 2 Tournament. Last Monday in the district tourney, the Panthers were led by Carly Lewis' 85 and Kari Amundson's 88. No other Lecanto golfers finished in double digits. The Panthers are just happy to be in regional play at all. "Just being there is being successful," said Lecanto coach Doug Warren. "In order for us to have a shot at winning, our top two would have to shoot in the 80's and the rest would have to be in the 90's and below." Karina Kronsis, Carla Savage and Jamie Flatley will F: ___________________________________________________________ *1 J i~. .--' \. - ~ -I ~- I ii.m 0 bdo ()(.:TOBER 17, 2005 !:: .Hi 2B MONDAY, OCTOBER 17, 2005 ~Of iing iiI.WihA HearU~ 1ingLoss;, WAAith YourEx~i hFAIlstM *ingHaing 1 Instrulmen]tl :1-4*1e. y1 're IM11~i s ltrigETi.mIe WithIFamlimuly & Fr i [1aends? r -. ---- ..r *-.---:..---- -",^ .. ...i re. - Audibel | Audibel Audibel I 100% 100% 100% SDigital ITE II Digital ITCII Digital CIC SMALLL SMALLER SMALLEST ni-II II I 9 ACTUAL PRICE!!! ACTUAL PRICE!!! ACTUAL PRICE!!!. Expires 10/21/05 Expires 10/21/05 Expires 10/21/05 THIS IS ALL YOU PAY..NO BAIT & SWITCH ct "It Automatically keeps volume comfortable, helps make speech sound clearer, reduces unwanted noise and adapts to whatever life brings yo Can be reprogrammed for the future. Price reflects total cost of hearing instrument. No hidden, charges. *Not valid with other Discounts/Coupons L ------------- FR E6.RN T S 6.BateySae 90Prsac' 1. Video Ear Inspection 2. Pure-Tone Audiometry Test Digital Consultation Walk-Ins Welcome Credit Cards & Insurance Accepted Visit For FREE In-Home Hearing Test in Pinellas, Pasco, Hernando & Citrus Co. Call 727-391-6642 -0 TAL LLVE L[A KMLK 1801 N.W. US 19 N. #293 o:, responsible for payment have the right to refuse pay, cancel payment, or be reimbursed for payment or any other service, examination or treatment that is performs as a result of and within 72 hours of the responding to the reduced fee service, examination or treatment. -a -' I,-'' C t 3m CITRUS COUNTY (FL) CHROk]CL-' CImu~ COUNTY (FL) CHRONICLE SPORTS MONDAY, OCTOBER 17, 2005 33 GOLF LPGA Samsung World Championship Par Scores By The Associated Press Sunday At Bighorn Golf Club, Canyons Course Palm Desert, Calif. Purse: $850,000 Yardage: 6,634 Par: 72 Final Round A.Sorenstam 64-71-66-69-270 -18 Paula Creamer 66-69-73-70-278 -10 GloriaiPark 65-72-68-74-279 -9 NatalilGulbis 67-72-71-71-281 -7 MeendLee 69-69-72-71-281 .,-7 CristieLKerr 65-71-7'-."74-- 281 "-7 Rosie Jones 68-69-72-73-28 -6 Pat Hurst 70-70-68-74-282 -6 C. Matthew 70-66-71-75-282 -6 Wendy Ward 74-74-68-68-284 -4 Candle Kung 70-68-72-74-284 -4 S. Gustafson 70-68-70-76-284 -4 Marisa Baena 68-70-70-76-284 -4 Lorena Ochoa 70-76-70-69-285 -3 Jeong Jang 69-68-74-74-285 -3 Grace Park 67-66-76-76-285 -3 Lone Kane 66-72-76-72-286 -2 Heather Bowie 72-72-73-70-287 -1 Birdie Kim 72-69-73-73-287 -1 Michelle Wie 70-65-71 DQ PGA Michelin Championship Sunday At Las Vegas Purse: $4 million s-TPC at Summerlin, 7,243 yards, par 72 t-TPC at The Canyons, 7,063 yards, par 71 Final x-won on second hole of playoff x' Short, $720,000 67t-67s-66s-66s-266 -21 Furyk, $432,000 66s-66t-69s-5s-266.-21 Frazar, $232,000 68s-63t-68s-69s-268 -19 Purdy, $232,000 67s-65t-65s-71s-268 -19 Howell III, $160,000 63s-69t-67s-70s-269 -18 Watney, $139,000 67s-67t-70s-66s-270 -17 Myama, $139,000 65t-65s-72s-68s-270 -17 Baird, $112,000 62s-66t-78s-65s-271 -16 MKenzie, $112,000 65t-69s-70s-67s-271 -16 Tanaka, $112,000 66t-68s-68s-69s-271 -16 Lowery, $112,000 67t-68s-64s-72s-271 -16 Love 111, $81,000 68s-67t-71s-66s-272 -15 Choprag$81,000 70s-67t-70s-65s-272 -15 Leaney $81,000 67t-67s-969s-272 -15 Palmer 1,000 62t-72s-68s-70s-272 -15 Ppling, $52,533.34 67t-64s-74s-68s-273 -14 Moore,$52,533.34 67s-63t-74s-69s-273 -14 Daly, $52,533.34 68t-67s-70s-68s-273 -14 Crane, $52,533.33 67t-65s-72s-69s-273 -14 Pemice,$52,533.33 65t-68s-70s-70s-273 -14 Bryant, $52,533.33 64s-66t-73s-70s-273 -14 Pelt, $52,533.33 70s-66t-67s-70s-273 -14 Ogivy, $52,533.33 65t-69s-67s-72s-273 -14 Gwski, $52,533.33 64s-71t-67s-71s-273 -14 Senden,$31,900 66t-66s-73s-69s-274 -13 Verplank, $31,900 70s-66t-69s69s-274 -13 Janzen, $31,900 66s-69t-70s-69s-274 -13 4hilnd, $31,900 67t-67s-70s-70s- 274 -13 Gore, $25,433.34 65t-70s-71s-69s- 275 -12 Funk $25,433.34 67t-68s-70s-70s-275 -12 Durant, $25,433.33 66s-70t-71s-68s-275 -12 Brwne, $25,433.33 67t-65s-75s-68s-275 -12 Price, $25,433.33 68t-66s-68s-73s-275 -12 Slman, $25,433.33 67s-69t-66s-73s-275 -12 Allen, $20,150 64s-68t-73s-71s-276 -11 Warren, $20,150 69t-66s-71s-70s-276 -11 Hammond, $20,150 68t-68s69s-71s-276 -11 Couples, $20,150 69s-67t-71s-69s-276 -11 Urest, $15,200 68s-68t-70s-71s-277 -10 Andrade, $15,200 65t-68s-72s-72s-277 -10 AlIenby, $15,200 68t-68s-70s-71s-277 -10 Azinger, $15,200 71t-66s-67s-73s-277 -10 Irhada, $15,200 64t-70s-70s-73s-277 -10 Qawson, $15,200 68s-67t-73s-69s-277 -10 Champions Tour Adminiktaff Small Business Classic S ar Scores ByThAssciated Iress i unday j At Augpta PinneTlxaf lub S-ring, Texas 'Purse: $1.6 million Yardage: 6,993 Par: 72 (36-36) Final Round McNulty, $240,000 66-68-66- 200 -16 Gil Morgan, $140,800 67-67-67-201 -15 Hale Irwin, $115,200 66-68-68- 202 -14 Brad Bryant, $96,000 66-66-71- 203-13 Lietzke, $70,400 72-65-67- 204 -12 Haas, $70,400 65-69-70- 204 -12 Don Pooley, $51,200 70-68-67- 205 -11 Wadkins, $51,200 66-71-68- 205 -11 John Bland, $51,200 68-68-69-205 -11 Fleisher, $40,000 69-68-69- 206-10 Dave Barr, $40,000 67-67-72-7206 -10 Mahaffey, $29,866.67 69-73-65- 207 -9 Mason, $29,866.67 71-70-66- 207 -9 Streak, $29,866.67 71-69-67--207 -9 Cnizares, $29,866.67 72-67-68--207 -9 Eaks, $29,866.66 68-71-68- 207 -9 Jef.vk6s, $29,866.66 70-67-70- 207 -9 Siaps.n, $21,880 72-69-67- 208 -8 Dan Pohl, $21,880 69-69-70--208 -8 CrehsIaw, $21,880 70-68-70--208 -8 Hatafy, $21,880 65-69-74- 208 -8 Smyth, $17,653.34 65-74-70- 209 -7 Murphy, $17,653.33 68-70-71- 209 -7 Tom Kite, $17,653.33 72-66-71- 209 -7 Fergu., $14,920 75-70-65--210 -6 Zoeller, $14,920 71-72-67-210 -6 Mark James, $14,920 71-72-67-210 -6 Sullivan, $14,920 67-68-75- 210 -6 Joe Inman, $12,640 73-71-67- 211 -5 Walter Hall, $12,640 74-70-67- 211 -5 David Eger, $12,640 70-70-71- 211 -5 Nielsen, $10,102.86 72-72-68-212 -4 Baiocchi, $10,102.86 74-70-68-212 -4 Marsh, $10,102.86 .70-73-69-212 -4 AUTO RACING NASCAR Nextel Cup-UAW-GM Quality 500 Results By The Associated Press Saturday At Lowe's Motor Speedway -- i~ ) . On the A M V4" ES TODAY'S SPORTS BASEBALL 8 p.m. (13 FOX) (51 FOX) MLB Baseball National League Championship Series Game 5 St. Louis Cardinals at Houston Astros. From Minute Maid Park in Houston. (Live) (CC) FOOTBALL 9 p.m. (9 ABC) (20 ABC) (28 ABC) NFL Football St. Louis Rams at Indianapolis Colts. From the RCA Dome in Indianapolis. (Live) (CC) HOCKEY 7 p.m. (OUTDOOR) NHL Hockey Florida Panthers at New York Rangers. From Madison Square Garden in New York. (Live) Prep ,A&Vi,, TODAY'S PREP SPORTS BOYS GOLF 8:30 a.m. Citrus, Crystal River, Seven Rivers in the 1A-9 District Tournament at Lexington Oaks, Wesley Chapel 9 a.m. Lecanto in the 2A-6 District Tournament at Dunes Golf Club at Seville (Brooksville) GIRLS GOLF 10 a.m. Citrus, Crystal River in 1A-9 District Tournament at Tampa Bay Golf and Country Club. 10 a.m. Lecanto in 2A-6 District Tournament at Ocala Municipal Course. VOLLEYBALL TBA Citrus, Crystal River, Dunnellon, Lecanto at District 4A-6 Tournament at Dunnellon TBA Seven Rivers at District 1A-5 Tournament at Cedar Key Concord, N.C. Lap length: 1.5 miles (Start position in parentheses) 1. (3) Jimmie Johnson, Chevrolet, 336, $264,991. 2. (7) Kurt Busch, Ford, 336, $222,625. 3. (21) Greg Biffle, Ford, 336, $156,050. 4. (12) Joe Nemechek, Chevrolet, 336, $154,308. 5. (6) Mark Martin, Ford, 336, $128,900. 6. (9) Casey Mears, Dodge, 336, $138,908. 7. (2) Ryan Newman, Dodge, 336, $145,641. 8. (39) Denny Hamlin, Chevrolet, 336, $92,325. 9. (31) Ricky Rudd, Ford, 336, $112,214. 10. (8) Carl Edwards, Ford, 336, $100,275. 11. (37) Jeremy Mayfield, Dodge, 336, $108,870. 12. (25) Brian Vickers, Chevrolet, 336, $86,850. 13. (22) Dave Blaney, Chevrolet, 336, $86,150. 14. (19) Jeff Burton, Chevrolet, 336, $101,520. 15. (16) Kyle Petty, Dodge, 336, $90,233. 16. (43) Johnny Sauter, Dodge, 336, $68,875. 17. (42) Travis Kvapil, Dodge, 336, $81,525. 18. (5) Bobby Labonte, Chevrolet, 336, $107,550. 19. (41) Jeff Green, Dodge, 336, $ 99,911. 920i1(14i Scott Wimmer, Dodge, 336, 69,83. El ' 71. (17) Kevin Lepage, Ford, 336, $71,675. " 22. (26) David Reutimann, Chevrolet, 336, $66,600. 23. (33) Kasey Kahne, Dodge, 336, $105,025. 24. (27) Rusty Wallace, Dodge, 336, $100,188. 25. (4) Tony Stewart, Chevrolet, '328, $139,561. 26. (18) Matt Kenseth, Ford, 326, $113,561. 27. (1) Elliott Sadler, Ford, 326, $157,001. 28. (35) Kevin Harvick, Chevrolet, 291, $112,136. 29. (32) Michael Waltrip, Chevrolet, 278, accident, $95,214. 30. (20) Dale Jarrett, Ford, 278, acci- dent, $102,433. 31..(29) Jamie McMurray, Dodge, 278, accident, $75,075. 32. (23) Robby Gordon, Chevrolet, 278, engine failure, $64,375. 33. (15) Scott Riggs, Chevrolet, 267, accident, $82,747. 34. (40) Ken Schrader, Dodge, 255, engine failure, $64,125. 35. (11) Mike Bliss, Chevrolet, 252, acci- dent, $63,975. 36. (34) David Stremme, Dodge, 243, accident, $63,790. 37. (38) Stuart Kirby, Chevrolet, 213, handling, $63,670. 38. (10) Jeff Gordon, Chevrolet, 151, accident, $112,596. 39. (13) Kyle Busch, Chevrolet, 150, accident, $71,450. 40. (30) Sterling Marlin, Dodge, .124, accident, $91,248. 41. (24) Bobby Hamilton Jr., Chevrolet, 94, accident, $63,215. 42. (28) Dale Earnhardt Jr., Chevrolet, 61, accident, $110,508. 43. (36) Mike Wallace, Chevrolet, 40, timing chain, $63,318. Race Statitsics Time of Race: 4 hours, 11 minutes, 18 seconds. Margin of Victory: 0.309 seconds. Winner's Average Speed: 120.334 mph. Caution Flags: 15 for 84 laps. Lead Changes: 35 among 17 drivers. Point Standings: 1. TStewart, 5,777. 2. J.Johnson, 5,777. 3. G.Biffle, 5,766. 4. R.Newman, 5,760. 5. M.Martin, 5,726. 6. C.Edwards, 5,723. 7. R.Wallace, 5,685. 8. J.Mayfield, 5,662. 9. M.Kenseth, 5,653. 10. Kurt Busch, 5,635. FOOTBALL The AP Top 25 The, Top 25 teams in The Associated Press college footballpoll, with first-place votes in parentheses, records through Oct. 15, total points based on 25 points for a first-place vote through one point for a 25th-place vote, and previous ranking: Record Pts Pvs 1. Southern Cal (57) 6-01,617 1 2. Texas (8) 6-01,566 2 3. Virginia Tech 6-01,495 3 4. Georgia 6-01,426 5 5. Alabama 6-01,306 6 6. Miami 5-11,279 7 7. LSU 4-11,201 10 8. UCLA 6-01,085 12 9. Notre Dame 4-21,020 9 10. Texas Tech 6-01,007 13 11. Florida St. 5-11,003 4 12. Penn St. 6-1 854 8 13. Boston College 6-1 809 14 14. Ohio St. 4-2 798 15 15. Oregon 6,1 665 20 16. Auburn 5-1 644 21 17. Tennessee. 32 .581 17 18. Florida \ 5-2 575 11 19. Wisconsin 6-1 549 23 20. West Virginia 6-1 379 - 21. TCU 6-1 249 25 22. Michigan St. 4-2 223 16 23. Virginia 4-2 161 - 24. Fresno St. 4-1 100 - 25. California 5-2 89 18 Others receiving votes: Nebraska 84, Louisville 70, Minnesota 67, Michigan 58, Colorado 38, Arizona St. 36, Iowa 29, Northwestern 29, Georgia Tech 19, Oregon St. 6, Toledo 5, Texas A&M 2, Maryland 1. .. ._" : ,.V, : ,,r! : 4111 Postseason BaseballI Houston 10, Atlanta 5 Atlanta 7, Houston 1I Houston 7, Atlanta 3 Houston 7, Atlanta 6, 18 innings LEAGUE CHAMPIONSHIP SERIES (Best-of-7) American League Tuesday, Oct. 11 Los Angeles 3, Chicago 2 Wednesday, Oct. 12 Chicago 2, Los Angeles 1 Friday, Oct. 14 Chicago 5, Los Angeles 2 Saturday, Oct. 15 Chicago 8, Los Angeles 2 Sunday, Oct. 16 Chicago 6, Los Angeles 3, Chicago wins series 4-1 National League Wednesday, Oct. 12 St. Louis 5, Houston 3 Thursday, Oct. 13 Houston 4, St. Louis 1 Saturday, Oct. 15 Houston 4, St. Louis 3 Sunday, Oct. 16 Houston 2, St. Louis 1, Houston leads series 3-1 Monday, Oct. 17 St. Louis (Carpenter 21-5) at Houston (Pettitte 17-9), 8:28 p.m. Wednesday, Oct. 19 Houston at St. Louis, 8:28 p.m., if neces- sary Thursday, Oct. 20 Houston at St. Louis, 8:28 p.m., if neces- sary WORLD SERIES (Best-of-7) Saturday, Oct. 22 Houston-St. Louis winner at Chicago, 8 p.m. Sunday, Oct. 23 Houston-St. Louis winner at Chicago, 8:10 p.m. Tuesday, Oct. 25 Chicago at Houston-St. Louis winner, 8:30 p.m. Wednesday, Oct. 26 Chicago at Houston-St. Louis winner, 8:25 p.m. Thursday, Oct. 27 Chicago at Houston-St. Louis winner, if necessary, 8:25 p.m. Saturday, Oct. 29 Houston-St. Louis winner at Chicago, if necessary, 7:55 p.m. Sunday, Oct. 30 Houston-St. Louis winner at Chicago, if necessary, 7:55 p.m. EST Astros 2, Cardinals 1 ST. LOUIS Eckstin ss Edmnd cf Rdrgez ph Tguchi cf Pujols lb LWalkr rf RSndrs If Mabry 3b YMlina c, Grdzln 2b Suppan p Mrquis p ab rhbi HOUSTON 2 10 0 Biggio 2b 3"01 0 Lidge p 1 00 0 Burke cf 0 00 0 Brkmn If 3 02 1 Ensbrg 3b 3 01 0 Lamb ib 4 00 0 Wheelr p 4 00 0 Brntlett 2b 3 00 0 Lane rf 3 01 0Asmusc 2 00 0 AEvrtt ss 1 00 0 Backe p Gallop Quails p OPImro ph Tveras cf ab rh bi S ~ 0 0 -0 0 '0 *0 3000 0000 3000 2000 3021 4000 0000 0000 3121 4000 4 0 0 0 2000 0000 0 0 0 0 3 0 0 0 2 0000 3 0 2 1 4 0000 0 0 0 0 0 0 0 0 3 1 2 1 4 0 0 0 2 0 00 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 Totals 291 RERBBSO St. Louis Suppan 5 3 1 1 3 5 Marquis L,0-1 3 3 1 0 3 1 Houston Back 52-3 2 1 1 3 7 Gallo 1-3 0 0 0 0 0 Quaills W,1-0 1 0 0 0 0 0 Wheeler 1 1 0 0 0 0 LidgeS). White Sox 6, Angels 3 CHICAGO LOS ANGELES Pdsdnk If Iguchi 2b Dye rf Knerko lb CEvrtt dh Rwand cf Przyns c Crede 3b Uribe ss ab rhbi ab rhbi 3 00 0 Figgins3b 3 1 1 1 3 10 0 OCberass 4 0 0 0 4 12 1 GAndsncf 2 0 1 1 5 01 1 VGrerorf 4 0 00 5 01 0 Erstadlb 4 0 00 3 21 1 BMolnac 4 00 0 3 00 0 Ktchm dh 3 0 0 0 3 12 3 JRivralf 3 1 1 0 3 11 0AKndy2b 3 1 2 1 m * . a - - - o a.- -- ~ 0 0 0. 0 - 4D 0 - 0 S * - 4 Totals 326 8 6 Totals 30 3 5 3 Chicago 010 010 112- 6 Los Angeles 001 020 000- 3 E-Contreras (1), AKennedy (1), KEscobar (1). DP-Los Angeles 1. LOB- Chicago 9, Los Angeles 4. 2B-Dye (2), Konerko (1), Rowand (3), Uribe (1), Figgins (1), JRivera (1). HR-Crede (2). SB-Podsednik (3). CS-lguchi (1). S- Pierzynski, Figgins. SF-Rowand, Crede, GAnderson. IP H RERBBSO Chicago ContrerasW,1-1 9' 5 3 3 2 2 Los Angeles Byrd 42-3 5 2 2 1 1 Shields 11-3 0 0 0 0 1 KEscobar L,0-2 12-3 1 2. 1 2 5 FrRodriguez 11-3 2 2 0 3 2 HBP-by Byrd (Iguchi). PB-Pierzynski. Umpires-Home, Ed Rapuano; First, Randy Marsh; Second, Jerry Crawford; Third, Doug Eddings; Left, Ted Barrett; Right, Ron Kulpa. T-3:11. A-44,712 (45,037). w,. - - 0 0 "Copyrighted Material Syndicated Content Available from Commercial News Providers" MONDAY, OCTOBER IL7, 2005 38 QMUS COUN7Y (FL) CHRONICLE SPORTS o SPORTS 4B MONDAY, OCTOBER 17, 2005 %4w 48 "o am~ no ho Crrnus COUNTY (FL) CHRONICLE. Sh*I tj Funk II pL t fT r firt fl1n 40 w. wm 4 41 "WMm- oswi " o m. f Q "Copyrighted Material - S - - -a S - - 5 0 -a Syndicated Content Available from Commercial News Providers"- - ~ a Q - a 0 0 - r - - -a * -a 0 - - - -a a __ -a -a - - m~b ~u~b or win I)lay house 19 with Music Theatre International i I XJ.ALNAEI IJ .L'.J.BLA..J Pads& of Trees November 18,2005 St. Michael's Greek Orthodox Church Social Hour 6:30 p.m. Dinner and Auction at 7:30 p.m. Presented by: Gulf to Lakes Pilot Club of Citrus County Tickets $40 Call 795-0128 To purchase a tree Call 795-2422 _________CHRpNoIE HAUNTEDTRAM RIDES DOWN PEPPER CREEKTRAIL * REFRESHMENTS SOUVENIRS CLOWNS AND FACE PAINTI0 * CITRUS COUNTY SHERIFF'S OFFICE IDENTIFICATION PROGRAM HALLOWEEN COSTUME CONTEST HAUNTED HOUSE FOR YOUNGER CHILDREN * a S F --a TRASH FISH CONTEST "Fishing Tournament" * Biggest Gar Biggest Mud Fish * $15 per person w/75% payout October 22nd SFisr Call for info 352-726-0085 North 581-End of Turner Camp Road * *Q Q at. - - - t o * MONDAY, OCTOBER 17, 2005 5B Baiffaip Nlw.,England Miami N.Y.,Jets .Indanapolis ,Jarikspnville .e'nnessee 1?i-oston Rincinnati Pjtt'urgh fBaltimore Cleveland 54?enyer gas City ari W iego )Oeklafhd fWashington 41Y. giants Philadelphia tTafipa Bay Atlanta Carolina New Orleans Chiago Detroft Green Bay Minpesota Seattle St%.ouis Arizpna San Francisco AMERICAN CONFERENCE East L T Pct PF PA HomeAway 3 0 .500 95 100 3-1-0 0-2-0 3 0 .500 138 164 1-1-02-2-0 3 0 .400 95 98 2-0-0 0-3-0 4 0 .333 78 112 2-1-00-3-0 South L T Pct PF PA HomeAway 0 01.000 106 29 2-0-03-0-0 2 0 .667 108 101 2-1-02-1-0 4 0 .333 126 157 1-2-0 1-2-0 4 0 .000 44 99 0-2-0 0-2-0 North L T Pct PF PA HomeAway 1 0 .833 155 84 2-0-03-1-0 2 0 .600 122 82 1-2-02-0-0 3 0 .400 63 90 2-1-0 0-2-0 3 0 .400 68 90 1-1-01-2-0 West L T Pct PF PA HomeAway 1 0 .833 129 107 4-0-0 1-1-0 2 0 .600 119 112 2-1-01-1-0 3 0 .500 176 126 1-2-02-1-0 4 0 .200 90 116 1-2-00-2-0 NATIONAL CONFERENCE East L T Pct PF PA HomeAway 2 0 .667 137 111 2-1-02-1-0 2 0 .600 83 86 2-0-0 1-2-0 2 0 .600 149 114 2-0-01-2-0 2 0 .600 122 101 2-0-0 1-2-0 South L T Pct PF PA HomeAway 1 0 .833 116 72 3-0-02-1-0 2 0 .667 148 119 2-1-02-1-0 2 0 .667 148 136 2-1-02-1-0 4 0 .333 102 173 1-2-0 1-2-0 North L T Pct PF PA HomeAway 3 0 .400 90 62 2-1-0 0-2-0 3 0 .400 91 96 2-1-00-2-0 4 0 .200 124 95 1-2-00-2-0 4 0 .200 67135 1-1-00-3-0 West L T Pct PF PA HomeAway 2 0 .600 126 107 2-0-0 1-2-0 3 0 .400 128 148 1-1-0 1-2-0 4 0 .200 94 134 1-2-00-2-0 4 0 .200 79 160 1-2-00-2-0 Sunday's Games 'Carolina 21, Detroit 20 ,Dallas 16, N.Y. Giants 13, OT Chicago 28, Minnesota 3 -Atlanta 34, New Orleans 31 6i ncinnati 31, Tennessee 23 Baltimore 16, Cleveland 3 Tatipa Bay 27, Miami 13 Jacksonville 23, Pittsburgh 17, OT Karnsas City 28, Washington 21 Buffalo 27, N.Y. Jets 17 '-S.n Diego 27, Oakland 14 -Dever 28, New England 20 Hguston at Seattle, 8:30 p.m. epen: Arizona, Philadelphia, Green Bay, Sar Francisco Monday's Game St!.ouis at Indianapolis, 9 p.m. - i;Buccaneers 27, Dolphins 13 Midmii 3 0 3 7-13 .%lahla Bay 10 0 17 0-27 v>r, First Quarter -1P--Galloway 7 pass from Griese (MIryant kick), 9:05. -ida-FG Mare 47,. 5:16. TEr-:FG M.Bryant 36, 1:10. ,, ,- Third Quarter Mia,-FG Mare 53, 11:46: TB-:-FG M.Bryant 32, 4:32. TB-Pittman 57 run (M.Bryant kick), 1:45. TB-AlIerb33 fumble return (MBryant kick), :06. 1 1, S-'Fourth Quarter " Mia---Brorn 8 run IMare ki.: 9:A?" A-65,168. olo ,.oq: Mia TB Fist, downs. 13 15 T-tal Net Yards 307 342 RdhAes-yards 18-64 34-180 Passing 243 162 y,unt Returns 4-70 3-20 Kipkoff Returns 6-130 1-23 Interceptions Ret. 0-0 0-0 Comp-Att-Int 21-40-0 18-26-0 riNed-Yards Lost 4-24 3-27 6-38.8 7-48.9 mnbles-Lost 3-2 1-1 nalties-Yards 9-60 9-65 INDIVIDUAL STATISTICS K USHING-Miami, Chambers 3-25, own 9-22, Frerotte 1-9, Williams 5-8. mpa Bay, Pittman 15-127, Graham 17- Clayton 1-2, Griese 1-1. ,ASSING-Miami, Frerotte 21-43-0- X7. Tampa Bay, Griese 12-16-0-120, nmms 6-10-0-69. RECEIVING-Miami, Williams 6-22, aIker 3-97, Chambers 3-50, McMichael 20, Brown 2-44, Morris 2-18, Booker 1- Gilmore 1-4. Tampa Bay, Galloway 9- 6, Clayton 2-27, Hilliard 2-19, Smith 2-0, 4tott 1-23, Becht 1-13, Pittman 1-11. MISSED FIELD GOALS-None. o Jaguars 23, Steelers 17 Acksonville 7 3 7 0 6- 23 ttsburgh 0 14 0 3 0-17 First Quarter ai-G.Jones 7 run (Scobee kick), 1:12. Second Quarter Pit-Miller 15 pass from Maddox (Reed I ak), 14 52 .-FN-Rardile El 72 punt return (Reed ,ioR), 13 50 Sac -FG Scobee 23, :00. Third Quarter lac-M Jones 10 pass from Leftwich .l'S oee k.cki 11:46. '. Fourth Quarter Pit.-FG Ree, 29, 9:38. - Overtime j- ac-Mamnic 41 interception return, ,-63 891 Jac Pit tjdowns 17 16 sNet Yards 246 218 !fies-yards 35-93 30-73 aing 153 145 *PatReturns 3-15 5-94 ,ICe ff Returns 2-40 2-77 ,iteceptions Ret. 3-54 1-(-32) ;imtp-Att-lnt 19-35-1 11-28-3 Said-Yards Lost 3-24 2-9 r 1 9-46.9 6-31.7 *uffibles-Lost 1-0 2-1 l:6iities-Yards 10-106 7-80 Tinrre of Possession 36:04 27:32 INDIVIDUAL STATISTICS RUSHING-Jacksonville, G.Jones 18- 77,Pearman 15-22, Leftwich 1-1, M.Jones 1-(minus 7). Pittsburgh, Parker 21-55, Mat;Iox 3-15, Bettis 4-4, Haynes 2-(minus 1).-.., PASSING-Jacksonville, Leftwich 19- 35-1-177. Pittsburgh, Maddox 11-28-3- 154. RECEIVING-Jacksonville, Pearman 5- 35, R.Williams 3-50, J.Smith 3-32, Brady 3-158 M.Jones 2-20, Wilford 2-15, GJones 1-10. Pittsburgh, Miller 4-72, Randle El 3- ,27,*Morgan 2-33, Haynes 1-11, Wilson 1- MISSED FIELD GOAL-Pittsburgh, Reed 46 (WR). Chiefs 28, Redskins 21 Washiington 0 7 14 0-21 ,lkahsas City 3 3 15 7-28 ''"' First Quarter KC-FG Tynes 20, 2:45. Second Quarter - Was-Moss 4 pass from Brunell (Novak kick), 13:31. AFC NFC Div 3-0-0 0-3-0 2-0-0 2-2-0 1-1-0 0-0-0 1-2-0 1-1-0 0-2-0 1-4-0 1-0-0 1-1-0 AFC NFC Div 4-0-0 1-0-0 2-0-0 3-2-0 1-0-0 0-1-0 2-3-00-1-0 1-1-0 0-4-0 0-0-0 0-1-0 AFC NFC Div 3-1-0 2-0-0 1-0-0 3-2-0 0-0-0 0-0-0 2-2-00-1-0 1-0-0 0-3-0 2-0-0 0-2-0 AFC NFC Div 4-1-0 1-0-0 2-0-0 2-1-0 1-1-0 1-1-0 2-2-0 1-1-0 1-1-0 0-3-0 1-1-0 0-2-0 NFC AFC Div 3-1-0 1-1-0 2-1-0 3-0-0 0-2-0 1-0-0 3-1-00-1-0 0-1-0 1-2-0 2-0-0 0-1-0 NFC AFC Div 3-0-0 2-1-0 0-0 3-1-0 1-1-0 1-0-0 3-1-0 1-1-0 0-1-0 1-4-0 1-0-0 1-1-0 NFC AFC Div 2-1-0 0-2-0 2-0-0 1-3-0 1-0-0 1-1-0 1-3-0 0-1-0 0-1-0 1-3-0 0-1-0 0-1-0 NFC AFC Div 3-1-0 0-1-0 2-0-0 1-3-0 1-0-0 1-2-0 1-4-0 0-0-0 1-2-0 1-3-0 0-1-0 1-1-0 Sunday, Oct. 23 Kansas City at Miami, 1 p.m. Indianapolis at Houston, 1 p.m. Newennessee at Arizona, 4:15 p.m. Buffalo at Oakland, 4:15 p.m. Open: New England, Tampa Bay, Jacksonville, Carolina Monday, Oct. 24 N.Y. Jets at Atlanta, 9 p.m. KC-FG Tynes 38, 5:54. Third Quarter KC-Holmes 6 run (Boerigter pass from Green), 11:38. Was-Moss 78 pass from Brunell (Novak kick), 10:48. KC-Knight 80 fumble return (Tynes kick), 5:40. Was-Cooley 11 pass from Brunell (Novak kick), :30. Fourth Quarter. KC-Holmes 60 pass from Green (Tynes kick), 13:21. A-78,083. First downs adtbil'rt Yards' , Rbihes-yafds Passing Punt Returns Kickoff Returns Interceptions Ret. Comp-Att-Int Sacked-Yards Lost Punts Fumbles-Lost Penalties-Yards Time of Possession Was 28 398 28-101 297 0-0 6-118 0-0 25-41-0 4-34 4-46.8 3-3 5-54 32:20 KC 171 274 32-96 178 2-2 4-72 0-0 15-25-0 1-3 5-33.6 2-0 4-24 27:40 INDIVIDUAL STATISTICS RUSHING-Washington, Pbrtis 21-77, Cartwright 4-14, Thrash 1-8, Brunell 2-2. Kansas City, L.Johnson 13-53, Green 5- 25, Holmes 14-18. PASSING-Washington, Brunell 25-41- 0-331. Kansas City, Green 15-25-0-181. RECEIVING-Washington, Moss 10- 173, Cooley 6-54, Portis 4-51, Thrash 2- 29, Patten 2-22, Sellers 1-2. Kansas City, Holmes 5-100, Parker 2-25, Boerigter 2- 20, D.Hall 2-15, Gonzalez 2-13, Dunn 1-6, L.Johnson 1-2. MISSED FIELD GOALS-None. Panthers 21, Lions 20 Carolina 7 7 0 7- 21 Detroit 014 3 3- 20 First Quarter Car-Gardner 4 pass from Delhomme (Kasay kick), :54. Second Quarter Det-Bailey 34 interception return (Kasay kick), 14:17. Car-S.Smith 80 pass from Delhomme (Kasay kick), 14:00. Det-Kennedy 64 interception return (Hanson kick), 8:28. Third Quarter Det-FG Hanson 52, :40. Fourth Quarter Det-FG Hanson 25, 5:08. Car-Proehl 3 pass from Weinke (Kasay kick), :32. A-61,083. Car Det First downs 14 11 Total Net Yards 317 209 Rushes-yards 25-54 24-52 Passing 263 157 Punt Returns 4-14 2-3 Kickoff Returns 5-72 4-112 Interceptions Ret. 1-27 3-98 Comp-Att-Int 20-32-3 17-28-1 Sacked-Yards Lost 2-20 6-44 Punts 5-37.8 5-42.6 Fumbles-Lost 3-1 4-3 Penalties-Yards 10-73 10-75 Time of Possession 27:57 32:03 INDIVIDUAL STATISTICS RUSHING-Carolina, Davis 13-27, Goings 4-15, Roberston 4-7, Delhomme 2- 5, Weinke 2-0. Detroit, Jones 12-21, Bryson 5-12, Harrington 3-12, Pinner 4-7. PASSING-Carolina, Delhomme 15-25- 3-236, Weinke 5-7-0-47. Detroit, Harrington 1,7-28-1-201. RECEIVING-Carolina, S.Smith 6-123, Proehl 5-50, Gardner 4-32,, Colbert 3-53, Goings 2-25. Detroit, Johnson 4-23, Pollard 3-105, M.Williams 2-27, Bryson 2- 9, Jones 2-3, Pinner 1-13, Vines 1-13, P.Smith 1-4, Fitzsimmons 1-4. MISSED FIELD GOALS-Carolina, Kasay 52 (BL), Detroit, Hanson 47 (BL). Bears 28, Vikings 3 Minnesota 0 3 0 0- 3 Chicago 0 7 714-28 Second Quarter Min-FG Edinger 23, 6:55. Chi-Clark 3 pass from Orton (Gould kick), :37. Third Quarter Chi-Clark 2 pass from Orton (Gould kick), 7:28. Fourth Quarter Chi-Jones 24 run (Gould kick), 13:03. Chi-Jones 1 run (Gould kick), 4:11. A-62,143. Min Chi First downs 16 16 Total Net Yards 283 192 Rushes-yards 19-80 30-95 Passing 203 97 Punt Returns 3-11 3-63 Kickoff Returns 5-91 2-54 Interceptions Ret. 1-0 2-99 Comp-Att-Int 26-49-2 16-25-1 Sacked-Yards Lost 4-34 3-20 Punts 6-44.2 5-38.8 Fumbles-Lost 0-0 2-2 Penalties-Yards 14-91 8-58 Time of Possession 32:22 27:38 INDIVIDUAL STATISTICS RUSHING-Minnesota, Moore 14-57, Culpepper 1-14, Bennett 3-8, M.Williams 1-1. Chicago, T.Jones 23-89, Orton 4-4, Benson 3-2. , PASSING-Minnesota, Culpepper 26- 48-2-237, B.Johnson 0-1-0-0. Chicago, Orton 16-25-1-117. RECEIVING-Minnesota, Wiggins 10- 68, Moore 5-52, M.Robinson 4-41, Williamson 4-35, Taylor 2-37, K.Robinson 1-4. Chicago, Muhammad 5-48, Clark 4- 19, Edwards 2-13, Bradley 1-15, Peterson 1-7, T.Jones 1-6, Reid 1-5, Wade 1-4. MISSED FIELD GOALS-Minnesota, Edinger 52 (WR), 32-(SH). Ravens 16, Browns 3 Cleveland 0 0 3 0- 3 Baltimore 10 6 0 0-16 First Quarter Bal-Heap 3 pass from Wright (Stover kick), 8:49. Bal-FG Stover 39, 3:08. Second Quarter Bal-FG Stover 27, 12:38, Bal--FG Stover 38, :00. Third Quarter Cle-FG Dawson 24, 7:37. A-70,196. First downs Total Net Yards Rushes-yards Passing Punt Returns Kickoff Returns Interceptions Ret. Comp-Att-Int Sacked-Yards Lost Punts Fumbles-Lost Penalties-Yards Time of Possession Cle 12 186 18-70 116 5-38 4-75 1-10 16-30-1 4-31 6-50.3 3-2 8-53 22:55 Bal 16 351 33-150 201 3-74 -1-7 1-0 23-31-1 1-12 5-47.6 1-0 11-97 37:05 INDIVIDUAL STATISTICS RUSHING-Cleveland, Droughns 15-55, W.Green 2-15, Dilfer 1-0. Baltimore, C.Taylor 8-92, Lewis 24-59, A.Wright 1- (minus 1). PASSING-Cleveland, Dilfer 16-30-1- 147. Baltimore, A.Wright 23-31-1-213. RECEIVING-Cleveland, Northcutt 4- Build your new storage building or workshop for less! * Specializing in all aspects of pre-engineered metal . buildings. i * Commerical grade * Personalized service I " Total building package installed by our crews * Locally owned & operated over 15 years IS & Fly-N-Inn, Inc. -4 General Contractors & Steel Erectors 352-447-3558 Toll Free 877-447-3632 Inglis, FlI m c,.19 7 BRUSHLESS CAR WASH Full Service Car Wash & Self Service SBays Available Detailing Available! TUESDAY ONLY LADIES' DAY I S15%OFF !| Not Valid W/Any Other Coupons Expires 10/25/05 S--WEDNDAY ONLY i GENEMEN'S DAY i 15OFF. Not Valid W/Any Other Coupons I Expires 10/26/05 I I--l-' _ 60, Heiden 4-38, Bryant 4-34, Shea 3-17, Droughns 1-(minus 2). Baltimore, Mason 8-85, Heap 6-79, C.Taylor 4-8, J.Lewis 2- 11, Hymes 1-19, Clayton 1-9, Wilcox 1-2. MISSED FIELD GOALS-None. Bengals 31, Titans 23 Cincinnati 0 7 1014-31 Tennessee 0 10 7 6-23 Second Quarter Ten-Brown 4 run (Bironas kick), 12:50. Ten-FG Bironas 24, 2:10. Cin-C.Perry 1 pass from Palmer (Graham kick), :33. Third Quarter Cin-FG Graham 21, 7:28. Ten-Brown 9 run (Bironas kick), 4:32. Cin-Thurman 30 interception return (Graham kick), 1:01. Fourth Quarter Ten-FG Bironas 29, 4:54. Cin-C.Johnson 15 pass from Palmer (Graham kick), 4:19. Cin-R.Johnson 1 run (Graham kick), 2:26. Ten-FG Bironas 47, :32. A-69,149. First downs Total Net Yards Rushes-yards Passi-ng Punt Returns Kickoff Returns Interceptions Ret. Comp-Att-Int Sacked-Yards Lost Punts Fumbles-Lost Penalties-Yards Time of Possession Cin 25 387 28-119 268 1-7 3-70 2-33 27-33-0 1-4 4-47.5 0-0 4-32 29:04 Ten 21 377 24-118 259 2-34 6-117 0-0 26-41-2 0-0 3-41.7 3-1 5-69 30:56 INDIVIDUAL STATISTICS RUSHING-Cincinnati, R.Johnson 18- 80, C.Perry 6-28, T.Perry 1-7, Palmer 3-4. Tennessee, Brown 18-84, Roby 2-16, Payton 2-11, McNair 2-7. PASSING-Cincinnati, Palmer 27-33-0- 272. Tennessee, McNair 26-41-2-259. RECEIVING-Cincinnati, C.Perry 9-45, C.Johnson 8-135, Walter 4-65,. Washington.2-13, Henry 1-5, Schobel 1-5, R.Johnson 1-3, J.Johnson 1-1. Tennessee, Behnett 7-61, B.Jones 5-82, Kinney 4-52, Troupe 4-22, Brown 3-28, Scaife 1-9, Calico 1-3, Roby 1-2. MISSED FIELD GOALS-Cincinnati, Graham 52 (WL). Falcons 34, Saints 31 Atlanta New Orleans 314 017--34 7 3 714-31 First Quarter Atl-FG Peterson 37, 9:39. NO-A.Smith 24 run (Carney kick), 3:37. Second Quarter NO-FG Carney 19, 9:55. Atl-Hall 66 fumble return' (Peterson kick), 4:04. Atl-Williams 59 blocked FG return (Peterson kick), :00. Third Quarter NO-A.Smith 1 run (Carney kick), 7:39. Fourth Quarter Atl-,Griffith 12 pass from Vick (Peterson kick), 12:17. NO-Stallworth 27 pass from Brooks (Carney kick), 6:56.. Atl-Dunn 21 run (Peterson kick), 4:37. NO-Henderson 15 pass from Brooks (Carney kick), :46. Atl-FG Peterson 36, :00. A-65,562. First downs Total Net Yards Rushes-yards Passing Punt Returns Kickoff Returns Interceptions Ret. Comp-Att-Int Sacked-Yards Lost Punts Fumbles-Lost Penalties-Yards Time of Possession Atl 21 266 33-160 106 0-0 6-143 1-22 11-23-1 1-6 4-47.3 0-0 10-79 26:34 NO 32 456 32-211 245 4-7 4-71 1-48 22-33-1 2-14 2-36.5 1-1 8-55 33:26 INDIVIDUAL STATISTICS RUSHING-Atlanta, Dunn 22-100, Vick 8-51, Duckett 2-5; Griffith 1-4. New Orleans, A.Smith 12-88, Stecker 16-86, Brooks 3-28, Henderson 1-9. PASSING-Atlanta, Vick 11-23-1-112. New Orleans, Brooks 22-33-1-259. RECEIVING-Atlanta, Crumpler 4-52, Jenkins 2-24, Dunn 2-15, Griffith 2-11, R.White 1-10. New Orleans, Stallworth 7- 83, Hakim 6-85, Henderson 4-53, Stecker 2-0, Hiltori 1-18, Poole 1-12, Karney 1-8. MISSED FIELD GOALS-New Orleans, Carney 47 (BK) Cowboys 16, Giants 13 N.Y. Giants 3 3 0 7 0-13 Dallas 0 7 0 6 3- 16 First Quarter NY-FG Feely 50, 10:36. Second Quarter NY-FG Feely 45, 8"42 Dal-Witten 2 pass from Bledsoe (Cortez kick), :40. Fourth Quarter Dal-FG Cortez 29, 12.44. Dal-FG Cortez 28, 4:40. NY-Shockey 24 pass from Manning (Feely kick), :19. Overtime Dal-FG Cortez 45, 11:13. A-62,278. First downs Total Net Yards Rushes-yards Passing Punt Returns Kickoff Returns Interceptions Ret. Comp-Att-Int Sacked-Yards Lost Punts Fumbles-Lost Penalties-Yards Time of Possession NY 11 270 19-91 179 0-0 4-78 1-20 14-30-1 4-36 5-42.4 4-3 6-32 23:01 Dal 25 385 38-92 293 3-10 5-100 1-43 26-37-1 3-19 3-40.3 INDIVIDUAL STATISTICS RUSHING-New York, T.Barber 14-64, Ward 3-15, Manning 1-10, Jacobs 1-2. Dallas, Thomas 21-47, M.Barber 11-30, Thompson 3-13, Bledsoe 3-2. PASSING-New York, Manning 14-30-1- 215. Dallas, Bledsoe 26-37-1-312. RECEIVING-New York, Shockey 5- 129, Burress 5-55, Toomer 2-11, Carter 1- 15, T.Barber 1-5. Dallas, K.Johnson 8-120, Glenn 6-64, Witten 5-56, Crayton 4-46, M.Barber 2-21, Campbell 1-5. MISSED FIELD GOALS-Dallas, Cortez 49 (BL), 48 (WL). Bills 27, Jets 17 N.Y. Jets 0 10 7 0- 17 Buffalo 7 10 7 3-27 First Quarter ' Buf-J.Smith 8 pass from Holcomb (Lindell kick), 8:45. Second Quarter Buf-Moulds 15 pass from Holcomb (Lindell kick), 10:05. N.Y-FG Nugent 44, 5:53.. N.Y-Martin 1 run (Nugent kick), :30. Buf-FG Lindell 50, :00. Third Quarter Buf-McGahee 1 run (Lindell kick), 6:32. N.Y-Testaverde 1 run (Nugent kick), 1:41. Fourth Quarter Buf-FG Lindell 38, 5:54. A-72,045. First downs Total Net Yards Rushes-yards Passing Punt Returns Kickoff Returns Interceptions Ret. Comp-Att-Int NY 17 275 21-149 126 2-21 3-68 2-18 12-26-2 Buf 24 341 39-177 164 1-8 4-109 2-27 18-26-2 (Kaeding kick), 8:42. SD-Tomlinson 7 run (Kaeding kick), 4:02, Oak-La.Jordan 4 run (Janikowski kick), :57. Second Quarter SD-FG Kaeding 32, 10:25. SD-Peelle 4 pass from Tomlinson (Kaeding kick), 2:39. Third Quarter SD-FG Kaeding 33, 6:02. Oak-La.Jordan 1 run (Janikowski kick), :34. A--52,666. First downs Total Net Yards Rushes-yards Passing Punt Returns Kickoff Returns Interceptions Ret. Comp-Att-Int Sacked-Yards Lost Punts 3-3 Fumbles-Lost 6-44 Penalties-Yards 40:46 Time of Possession SD 22 346 41-190 156 3-12 3-99 1-20 15-21-0 2-12 7-42.6 2-0 5-35 35:18 Oak 19 310 13-39 271 3-15 6-137 0-0 24-48-1 4-21 6-47.0 -0-0 8-51 24:42 INDIVIDUAL STATISTICS RUSHING-San Diego, Tomlinson 31- 140, Turner 7-50, Caldwell 1-3, Neal 1-2, Brees 1-(minus 5). Oakland, La.Jordan 12- 36, Crockett 1-3. PASSING-San Diego, Brees 14-20-0- 164, Tomlinson 1-1-0-4. Oakland, Collins 24-48-1-292. RECEIVING-San Diego, Neal 4-27, Peelle 3-20, Tomlinson 2-39, McCardell 2- 20, Gates 2-17, Caldwell 1-32, Parker 1- 13. Oakland, La.Jordan 6-58, Gabriel 5-84, Porter 5-63, Whitted 4-34, R.Williams 2-39, Anderson 2-14. MISSED FIELD GOALS-None. Broncos 28, Patriots 20 New England Denver 3 0 314-20 021 7 0- 28 First Quarter NE-FG Vinatieri 39, 5:37. Second Quarter Den-Bell 3 run (Elam kick), 12:36. - Den-R.Smith 6 pass from Plummer (Elam kick), 7:52. Den-K.Johnson 1 pass from Plummer (Elam kick), :48. Third Quarter Den-M.Anderson, 2 run (Elam kick), 10:36. NE-FG Vinatieri 38, 5:53.. Fourth Quarter NE-Pass, 8 run (Vinatieri kick), 14:56. NE-Givens 8 pass from Brady (Vinatieri kick), 8:01. A-76,571. First downs Total Net Yards Rushes-yards Passing Punt Returns Kickoff Returns NE 22 388 19-89 299 6-38 2-32 Den 20 432 34-178 254 3-8 2-30 Sacked-Yards Lost 5-35 1-8 Interceptions Ret. 0-0 0-0 Punts 5-39.4 4-42.8 Comp-Att-Int 24-46-0 17-24-0 Fumbles-Lost 2-1 1-0 Sacked-Yards Lost 0-0 1-8 Penalties-Yards 7-50 13-99 Punts 7-51.6 7-52.3 Time of Possession 21:25 38:35 Fumbles-Lost 1-0 1-0 INDIVIDUAL STATISTICS Penalties-Yards 8-55 .11-82 RUSHING-New York, Martin 18-148, Time of Possession 27:43 /j 32:17' Testaverde 3-1. Buffalo, McGahee 29-143, INDIVIDUAL STATISTICe S.Williams 6-34, Evans 1-2, Holcomb 3- RUSHING-New England, Pass 10-64, (minus 2). Zrue-14 ad D 1- PASSING-New York, Testaverde 12- Zereoue 7-14, Brady 1-12, Dwight 1- 26-2-161. Buffalo, Holcomb 18-26-2-172. (minus 1). Denver, Bell 13-114, RECEIVING-New York, McCareins-5l- M.Anderson 15-57, Plummer 5-6, 116, Coles 4-33, Martin 2-3, Chrebet 1-9. K.Johnson 1-1. Buffalo, Moulds 7-63, McGahee 3-24, PASSING-New England, Brady ,24-46- Evans 3-22, Campbell 2-34, Reed 1-17, 0-299. Denver, Plummer 17-24-262. J.Smith 1-8, Peters 1-4. RECEIVING-New England, Branch 7- MISSED FIELD GOALS-None. 87, Givens 7-58, Pass 6-89, Dwight 1-49, Watson 1-6, Graham 1-5, Zereoue 1-5. Chargers 27, Raiders 14 Denver, R.Smith 6-123, Lelie 3-81, Putzier San Diego 14 10 3 0-27 3-32, Bell 3-20, Alexander 1-5, K.Johnson Oakland 7 0 7 0-14 1-1. First Quarter MISSED FIELD GOALS-New England, SD-Tomlinson 35 pass from Brees Vinatieri 53 (WR). It'i IairdT 'T Sy, I rj t -- 9 Months Same As Cash' Peace of Mind for 10 Years! A.2 A%- Citrn C ntmn' m intru iasd a r ,oiJir 1 tu1 t1 ,pio } tn /i U I r. -2 HN.E. SMITH CO., INC. I 1895 West Gulf to Lake Hw Lecanto, Fonda 34461 BEST BL 7 6-0098 Trane TheC ream of The rop Progress Energy XL191 Trane Comfort Specialist Dealers S--: ...- 'You rrm.y be eligible for ;, '-".",- "- reBnie Ifrom ,your local wi try Tra-ste ls-Mas : s: ' T CmsTat'C C' I r*-,-.. CZtzX P . . -- hs Deferred Payment Annual .. - SKIDMORE'S $ Sports Supplys OPEN 7 DAYS A WEEK 5 Blocks East of Hwy. 19 Crystal River 795-4033 COAST RV MOBILE HOME SUPPLIES RV Detailing. Call Kathy for info. Airport Plaza Crystal River 563.-2099 Closed Mondays 'til further notice. i 750 SE US Hwy. 19 *Crystal River 795-WASH MEO dMus CouNTY (FL) CHRoNicLE SPORTS I 6B MONDAY, OCTOBER 17, 2005 SPORTrs NF'Iomlii1* 11n -lI I CITRUS Co IIry ( O CUNICI.r Ti ( tiflrefN win PO "Copyrighted Mate Syndicate eConten )le from Commercial News rial It % Providers" r - lo,-..Em do - -o.S ___ ..-EN* S w~b Q.- -1 4 S0 ft qm *m w a4 Jpu tun SkekrI* in ()1 9,1 ', v krn '(mirk 111)I',,tr"g(.% Prevue of Holiday Ideas Presented by Citrus County Home Communit Education November 4-5 9 a.m. to 2 p.m. / Citrus County Canning Center, ^ , 3405 W. Southern Street off Rt. 44, Lecanto / Homemade crafts - Food Raffle Bake Sale For more information CtF31 E" ~please call Citrus County VJ i1 Extensions Office 527-5700 To Benefit Citriis ,lernorial Hospital Six Fantastic . dShows For S75 individual Shows $15 Each The Piano Lady! Carol Stein Tues., Nov. 15, 2005 Singer Extraordinaire! MIichelle James Wed., Feb. 8, 00oo6 Celebrate the Season! Cool Yule Mon., Dec. 5, 2005 I From Dolly to Elvis! Las Vegas Revue Wed., Jan. 11, 2006 The King of Comedy! Barry St. Ives Tues., Mar. 21, 2o06 Master Impressionist Mark Ralston Wed., April 12. 2oo6 All shoxwvs held at Citrus Springs Community Center at 7:00 pom. Tickets available at CMII Share Club Inverness For info and tickets call 527-8002, 344-6513 or476-4242 a Availat . qbw 4D 4shmaw m AUw;7" Cmcus COUNTY (FL) CHRONICLE ENTERTAINMENT MONDAY, OCTOBER 17. 2005 7B MONDAY EVENING OCTOBER 17,i T99 News 340 NBC News Ent. Tonight Access Surface "Episode 5" (N) Las Vegas Ed's identity is Medium "Sweet Dreams" News Tonight NBC 19 19 19 Hollywood 'PG' R 6807 stolen. '14' cc 6663 '14, V '[ 3340 9501388 Show WEDU BBC World Business The NewsHour With Jim Antiques Roadshow American Experience "Two Days in Wild Planet Do You Speak American? PBS B 3 3 News 'G' Rpt. Lehrer 'G' 9 1123 'Reno" 'G' K[ 7543 October" (N) (In Stereo) 'MA, L,Vy 'PG, L' c 39340 |WUFT) BBC News Business The NewsHour With Jim Antiques Roadshow American Experience 'Two Days in Looking Being Tavis Smiley PBS H 5 5 5 3982 Rpt. Lehrer (N) 'G' 64123 'Reno" 'G' 9B 40543 October (N) 'MA, L,V 14630 Back Served 40982 (WFi News 9920 NBC News Ent. Tonight Extra (N) Surface 'Episode 5" (N) Las Vegas Ed's identity is Medium "Sweet Dreams' News Tonight NBC 8 8 8 8 'PG' E 'PG' 9 33253 stolen. '14' 9l 53017 '14, V 9 56104 1338982 Show WFTV News cc ABC WId Jeopardyl Wheel of Wife Swap NFL Football St. Louis Rams at Indianapolis Colts. From the RCA Dome in ABC 20 20 20 20 7369 News 'G' [] 2562 Fortune (N) 'Downs/Bailey' (N) 'PG' Indianapolis. (In Stereo Live) E 853833 WTSP News 8611 CBS Wheel of Jeopardyl The King of How I Met Two and a Out of CSI: Miami "Three-Way" News Late Show S 0 10 10 10 Evening Fortune (N) 'G'l 8475 Queens Halt Men Practice N)'14'B 76982 9216630 WT VT *News cc 94253 A Current The Bernie MLB Baseball National League Championship Series Game 5 -- St. Louis News 90098 The Bernie F 1X 13 Affair 'PG' Mac Show Cardinals at Houston Astros. (In Stereo Live) 9 372543 Mac Show (WCJAB) News 78369 ABC WId Ent. Tonight Inside Wife Swap NFL Football St. Louis Rams at Indianapolis Colts. From the RCA Dome in ABC 11 11 News Edition "Downs/Bailey" (N) 'PG' Indianapolis. (In Stereo Live) 9 386630 WCLF Richard and Lindsay Touch of Zola Levitt Gregory Possess the Life Today Manna-Fest The 700 Club 'PG' 9 Pentecostal Revival Hour ID 2 2 -2 2 Roberts 'G' 8739920 Fire Presents Dickow 'G' 'G' 3650508 'G' 5720949 5769098 (WTS) News 43611 ABC Wid Inside The Insider Wife Swap NFL Football St. Louis Rams at Indianapolis Colts, From the RCA Dome in ABC 11 11 News Edition 63475 "Downs/Bailey (N) 'PG' Indianapolis. (In Stereo Live) 9 659123 I(WMNle) Will & Grace Just Shoot Will & Grace Access Movie: ** "Grave Secrets" (1990, Horror) Fear Factor"Couples' (In Access Cheaters IND 12 12 12 12 '14' Me 'PG' PG' Hollywood Renee Soutendiik, Paul Le Mat. 44901 Stereo) 'PG' 9 63036 Hollywood 'PG' 20017 WTTA 6 6 6 Seinfeld Every- Every- Sex and the 7th Heaven (N) (In To Be Announced News Yes, Dear Seinfeld Sex and the IND 6 6 6 6 'PG' Raymond Raymond City '14, Stereo) 'G' 90 6725727 6738291 8862825 'PG, D' 'PG' City'14, WTOG The. Malcolm in The Friends 'PG' One on One All of Us 9B Girlfriends Half & Half The King of The King of South Park South Park IND G 4 4 4 4 Simpsons the Middle Simpsons [ 4291 2340 1475 (N) 19123 (N) 97340 Queens Queens '14'81340 '14'38807 FWYKE] ANN News CCTV 97017 County Few Let's Talk Golf 57475 We Have Rock It TV Janet Parshall's America! Circuit Court ANN News FAM 16 16 16 16 78415 Court Minutes Issues 83861 47098 37307 FW0GX 40 Friends 'PG' Friends 'PG' King of the The MLB Baseball National League Championship Series Game 5 -- St. Louis News (In Stereo) 90 FOX H 13 13 9 5765 c9 6017 Hill'PG, L Simpsons Cardinals at Houston Astros. (In Stereo Live) c 844185 24456 WA Variety 8678 The 700 Club 'PG' c9 Pastor Dr. Dave Possessing This Is Your R. Praise the Lord s9 39949 21 21 2 1295340 Loren 8814 Martin the Day 'G' Scarboroug I 15 15 15 15 Noticias 62 Noticiero Piel de Otofto Mujeres Contra into y Marea La Esposa Virgen 984524 Cristina 987611 Noticias 62 Noticiero NI 65020 Univisin valientes. 988340 904388256253 Univisi6n WXPX Shop Til On the Pyramid 'G' Family Feud Doc (In Stereo) 'PG' cB Diagnosis Murder "Drill Early Edition "Jenny It's a Bring Wall 17 You Droo Cover'G' 91746 'PG' 51253 for Death" 'PG V Sloan" 'G' 9 74104 Miracle'G' St A 54 48 54 54 City Confidential 'PG' 5L Cold Case Files 'PG' c Tleen Thrill Killers 'PG' cc Growing Up Growing Up Airline (N) Airine PG, Crossing Jordan "Pilot 420833 983727 992475 Gotti 'PG, L Gotti 'PG, L' 'PG, L' L' 702949 '14' 9 958291. A 55 64 55 55 Movie: ** "Meet Joe Black" (1998, Fantasy) Movie: *** "Wall Street" (1987, Drama) Michael Douglas, Movie: *** "The Color of Brad Pitt, Anthony Hopkins. 43584369 Charlie Sheen, Daryl Hannah. 90 145369 Money" (1986, Drama) 9B 159562 (Mi 52 35 52 52 The Crocodile Hunter The Most Extreme 'G' ] The Planet's Funniest Animal Precinct "Starving Animal Cops Houston The Planet's Funniest Diaries 'G' 9 8748678 5723036 Animals 'G' [9 5709456 for Help" 'PG' 5712920 'PG' BB 5722307 Animals 'G' 9 5761456 S- "Brdcast The West The West Wing The West Wing "NSF The West Wing."The The West Wing "Third- The West Wing "Liftoff" 77 News" Wing 'PG' Memorial Day" 'PG' Thurmont" 'PG' 737678 Bimam Wood" 'PG' Day Story" 'PG'710901 'PG' [9 432746 I2 27 6i 27 27 Movie: "What's the Worst That Could Daily Show David Green South Park Blue Collar Blue Collar Daily Show Colbert 271 61 27 7 Happen?"(2001) Martin Lawrence. [ 41814 Spade Screen 'MA, L' TV'14, D,L' TV'PG' JReport CMT 98 45 98 98 CMT Concert: Martina Dukes of Hazzard "Duke Movie: **'A "Overboard" (1987) Goldie Hawn. An amnesiac Making Of: Dukes of Hazzard'G' McBride 33348 vs. Duke" 'G' 46369 millionairess is duped by a cunning carpenter. 866291 Dreamer 68765 S 95 60 60 Janice Dickinson True E! News (N) The Soup 101 Craziest TV 101 Craziest TV Blossom: The El True Howard Saturday SHollywood Story 'PG' 904253 'PG, D,L Moments 999456 Moments 902920 Hollywood Story 'PG' Stern '14, Night Live EW1fN 96 65 96 96 Chronicles of a Holy Man Daily Mass: Our Lady of The Journey Home 'G' Super The Holy Abundant Life 'G' The World Over 3317524 o3289833 the Angels 5996388 5905036 Saints 'G' Rosary 5995659 M 2952 29 29 7th Heaven "Brotherly Smallville "Pariah' (In Whose Whose Whose Whose Whose Whose The 700 Club 'PG' c9 29 ___ Love 'G'5 604833 Stereo) 'PG, D,V' Line? -Line? Line? Line? Line? Line? 118611 X 30 60 30 30 King of the King of the That'70s That'70s Movie: ** "The Transporter" (2002) Jason Statham. A high- That '70s That '70s "Transport __ __ __ __ Hill 'PG' 9 Hill 'PG' 1 Show'PG, Show'PG, priced courier breaks his own rules of conduct. 3945727 Show'PG, Show'PG, er" lTV) 23 57 23 23 Weekend Landscaper Curb Appeal House Cash in the Dream Dream House: After Buy Me 'G' Rezoned Design on a Painted I Warriors'G' s 'G' Hunters'G' Attic House (N) Katrina (N) 6435185 6036611 6052659 Dime 'G' House fi'f 51 25 51 51 Hitler's War: Eastern Modem Marvels UFO Files'PG' c Decoding the Past Novelist Dan Brown tries to link a Conspiracy?'PG, VB Front: Berlin "Satellites' 'G' M 5970340 mystery to the life of Jesus. 'PG, V 5980727 3322456 S 24 38 24 24 Golden Girls Will & Grace Movie: "Saving Emily" (2004, Drama) Alexandra Movie: "A Lover's Revenge" (2005) Alexandra Will & Grace How Clean 'PG' Paul, Bruce Boxleitner. 'PG, L,V' c 125901 Paul, William Moses. Premiere. 9 239543 'PG' I 28 6 All Grown Danny Fairly Jimmy SpongeBob Zoey 101 Full House Fresh Fresh The Cosby Roseanne Roseanne 28 36 28 28 Up 'Y' Phantom 'Y' Oddparents Neutron- 'Y7'745494 'G'265833 PrPrinc erince Show'G' 'PG'277678 'PG'234123 SII 31 59 31 31 Stargate SG-1 "New Movie: * "Hercules" (2005, Adventure) (Part 1 Movie: ** "Hercules" (2005) (Part 2 of 2) Paul Movie: **'A "Epoch" I 0 Ground" 'PG, V 3269833 of 2) Paul Telfer, Sean Astin. '14' 8385475 Telfer, Sean Astin. Premiere. '14' 4077272 (2000)8164524 S 37 43 37 37 World's Wildest Police CSI: Crime Scene CSI: Crime Scene CSI:Crime Scene UFC Unleashed (N) (In The Ultimate Fighter (N) (__i_ 374 37 37 Videos'PG'P 529611 Investigation'14, DLV Investigation'PG, LV' i ,,n ,.:...r, '14, D,S,V Stereo) 299833 (In Stereo) 805678 ( 49 23 49 49 Seinfeld Seinfeld Every- Every- Friends'PG' Friends'PG' Friends'PG' Friends'PG' Family Guy Family Guy Movie: *k* "Galaxy 9'gPG, D' Q PG D Raymond Raymond 431814 450949 814123 969794 'PG, L,V S '14, D,L,S,V Quest"402185 i3 Mevie: *** "Suddenly, Last Summer" (1959, Movie: ** '"The Color Purple" (1985) Whoopi Goldberg. Based on Movie: "Walk, Don't 53 Drama) Elizabeth Taylor. 6726456 Alice Walker's portrait of a rural black woman. RD 1704727 Run" (1966) 1331291 ( 53 34 53 53 The Repossessors 2 'PG' Kustomizer LimoKopter. American Hot Rod (N) Monster Garage 'PG' [] American Chopper American Chopper 'PG' ] 9435765 (N) 'PG' 998659 'PG' 907307 987543 'Rick's Bike 1" 'PG' [g 963123 50 46 50 50 Martha 'G' M 554307 Untold Stories of the E.R. Maximum Disclosure (N) Untold Stories of the E.R. Conception Deception Maximum Disclosure '14' S'PG' S9 285630 '14'201678 (N) 'PG' c] 281814 'PG'284901 890746 T 48 33 48 48 Alias 'Another Mister Law & Order "Corruption' Law & Order "Hitman" Law & Order 'Harvest" Law & Order "Standoff Without a Trace "Prodigy" 481 3 4 48 oSloane" '14, V [B 552949 'PG, L' 283272 '14' Mc (DVS) 292920 '14' cc (DVS 289456 '14' 282543 'PG, L' C] 898388 TRAV 9 4 Himalaya With Michael Himalaya With Michael Himalaya With Michael Strand- Strand- Anthony Bourdain Las Himalaya With Michael .(inMv 9 54 9 9 Palin 'G' [ 6818036 Palin 'G' c 6448659 Palin 'G' 6457307 Peters Peters Vegas cuisine. 'PG' Palin 'G' 6969727 USA 47 32 47 47 Movie: ** "The Law & Order: Special Law & Order: Criminal WWE Monday Night Raw (In Stereo Live) '14, D,L,V Movie: "The Scorpion 7 32 47 47 Hunted" (2003) 326543 Victims Unit '14' 543123 Intent '14' !9 529543 cE 7476630 King" 9599611 N 18 18 18 i 8Home Home America's Funniest Home America's Funniest Home America's Funniest Home WGN News at Nine (In Sex and the Becker 'PG, S 1 818 18 18 Improvemen Improvemen Videos 'PG, L' 715456 Videos 'PG, L' 724104 Videos 'PG, L' 704340 Stereo) 9 714727 City '14, DL 703746 MONDAY EVENING OCTOBER 17, 01- 46 40 46 46 Sister Phil of the That'sSo That's So Movie: ** "The Little Vampire" (2000, Fantasy) Naturally Sister, That's So That'sSo S4 4 S 46 ister'G I Future'G' Raven 'Gvenaven 'G' Jonathan Lipnicki. [ 700524 Sadie 'Y7' Sister 'G Raven 'G' Raven 'G' 7~l *.... WA'5Hm M'A*S'H Walker, Texas Ranger Walker, Texas Ranger Movie: "Love Comes Softly"(2003, Romance) M*A*'S*H M'*A*S*H P F. F' F'G "Payback"' PG, V "Tiger's Eye" 'PG, V Katherine Heigl, Dale Midkif. 'PG' c[ 5795253 'PG' 'PG' ____ Movie: "And Starring Pancho Villa as Movie: "Last Best Movie: *** "Elephant" (2003, Movie: *** x "Sideways" (2004) NB(gS _Himself" (2003) Antonio Banderas. 'MA' N[ 368494 Chance" (2005) 369123 Drama) Alex Frost. 9 620746 Paul Giamatti. EB 5380307 Movie: "The War of the Roses" (1989) Movie: "Criminal" (2004, Crime Set-Domino Movie: *'A "Man on Fire" (2004, Crime Drama) Michael Douglas. 9B 237185 Drama) John C. Reilly. c 929814 Denzel Washington. c9 844253 97 66 97 97 Lag Lagua a a Lagunguna agLaguna Laguna Laguna Laguna Laguna Laguna Miss Ash. Score S 9 6 7 Beach Beach Beach Beach Beach Beaeacah Bch Beach Beach Beach Seventeen Simpson 496901 71 Mega-Weather 'G' Naked Science Humanity. Superhuman Powers 'G' Naked Science "Tsunami Mega-Weather 'G' Superhuman Powers 'G' 1333949 'G' 8422123 8408543 Warning" 8428307 8421494 2182901 PLE 62 cMovie: * "Husbands" (1970, Drama) John Cassavetes, Movie: "Maid to Order" (1987) Movie: *'A "Satisfaction" (1988) "Month by Peter Falk, Ben Gazzara. C 52310611 Ally Sheedy. 36492814 Justine Bateman. 6727291 Lake" N 43 42 43 43 ,- Mad Money 3486307 On the Money 5401982 The Apprentice: Martha Mad Money 5430494 The Big Idea With Donny The Apprentice: Martha 43 42 43 43 Stewart 'PG' 5410630 Deutsch Stewart 'PG' 5856299 S 40 29 40 40 Lou Dobbs Tonight ] Anderson Cooper 360 9B Paula Zahn Now cc Larry King Live Sc 514611 NewsNight With Aaron Lou Dobbs Tonight 519253 525727 534475 Brown E 524098 509949 25 55 25 25 NYPD Blue (In Stereo) Cops 'PG, L' Cops '14, The Investigators '14' Forensic North Dunne: Power, Privilege Confessions of an , S'14' 9 3471475 2544833 D,L,S' 5412098 Files (N) Mission & Justice Innocent Man - CSPAN 39 50 39 39 House of Representatives 63098 Tonight From Washington 579775 Capital News Today 317217 44 37 44 44 Special Report (Live) CE The Fox Report With The O'Reilly Factor (Live) Hannity & Colmes (Live) On the Record With The O'Reilly Factor 44 37144144 3254901 Shepard Smith 9C] c 4069253 9] 4089017 Greta Van Susteren 8376727 The Abrams Report Hardball 9 4096307 Countdown With Keith Rita Cosby Live & Direct Scarborough Country The Situation With Tucker MSNBC 42 41 42 42 3267475 Olbermann 4072727 4085291 4095678 Carison (ESN 33 27 33 33 SportsCenter (Live) 9[789123 Monday Night Countdown (Live) c9 Figure Skating World Championships -- Ladies and Dance. From Moscow. [N 27 464765 696681 PN 34 28 34 34 ESPN Quite Frankly With NFL Films Billiards: 2005 World Billiards: 2005 World Billiards: 2005 World Billiards: 2005 World (_l_ Hollywood Stephen A. Smith Presents Summit of Pool Summit of Pool Summit of Pool Summit of Pool Totally ACC All- Nothin' But Chris Myers Poker Superstars Best Damn Sports Show Nothin' But Best Damn Sports Show Best-Sports SNF 35 39 35 35 Football Access Knockouts Invitational Tournament Period 357456 Knockouts Period 559307 I 36 Ship Shape Esiason Sports Talk Live (Live) Under the Breaking, Professional Tarpon Flatsmasters 89036 Sports Talk Live 71291 1361 h311 TV 'G' 80765 Lights Weapons Tournament Senes ------ Local --- WJUF-FM 90.1 WHGN-FM 91.9 WXCV-FM 95.3 WXOF-FM 96.3 National Public Radio Religious Adult Contemporary Adult Mix :'fIg.LS'.' a WRGO-FM 102.7 WIFL-FM 104.3 WGUL-FM 106.3 WRZN-AM 720 Oldies Adult Mix Oldies Adult Standards - -~ I~q "Copyrighted Material Syndicated Content Available from Commercial News Providers" Sm -M * * * . * * 6 . Bridge PHILLIP ALDER Newspaper *Enterprise Assn. Salvador Dali wrote, "The dif- ference between false memories and true ones is the same as for jewels: it is always the false ones that look the most real, the most brilliant" Sometimes at the bridge table one gets so involved in the actual contract and play that one over- looks hidden facets of the deal. But quiet, later perusal might let these other possibilities shine through. In this deal, can South make five spades? South has an uncomfortable choice over East's two-heart weak jump overcall. A two-spade response would be a major over- bid. This would probably result in North's using Blackwood before stopping in five spades. I think South should risk a negative dou- ble. This promises only a four-card spade suit, but the responder might have five or six spades if he is too weak to bid two spades. When West jumped to four hearts, North doubled to show extra values, and South converted to four spades, which was easy to make. Against five spades, though, West does best to cash the heart ace and lead a second heart. With this layout, South must trump with dummy's spade king. Then he can North 10-17-05 A K 6 4 V 2 A Q J 10 9 A A J 8 6 West East A 9 7 A A10 V A 7 5 3 V KJ 9864 SK 7 6 4 2 4 K 5 43 10 9 2 South A QJ 8 5 3 2 V Q 10 853 Q 7 Dealer: North Vulnerable: Neither South West North East 1 2V Dbl. 4 V Dbl. Pass 4 A Pass Pass Pass Opening lead: V A get to hand in spades and take the club finesse. If declarer ruffs low on the board, East can stop South from reaching his hand. Suppose declarer calls for the spade king. East ducks and wins the next spade. Then, though, East must guess South's distribution. Here, East must shift to a diamond, West withholding his king. Declarer will lose a minor-suit trick But if South is 6-2-2-3, East must switch to the club 10. Defense can be tough. * - o .0 .0 T he PlusCode number pri gram is for use with the G I tem. If you have a VCR w tore (identified by the VCR Plu all you need to do to record nted next to each pro- PlusCode number, cable channels with-the .emstar VCR Plus+ sys- If you have cable service, please make sure that the convenient chart pr N tem, please contact your The channel lineup for LB Cable customers is in the Sunday Viewfinder on page 70. guide channel numbers using inted in the Viewfinder. This in your VCR user's manual. ns about your VCR Plus+ sys- r VCR manufacturer. - -~ 0 * * I can't f m"re my hudand's lie - dl fm4b mq T "Copyrighte( Vr Syndicated Available from Commerc 0 ml fig I Material- Content :- ;ial News Providers" :.-. - w -- ~ . -1m ==========- - ------- CnRus CouNTY (FL) CHRoNicLE MONDAY, OCTOBER 17, 2005 7B EN'FEP.TAIINA4]F-N-F ) 4w B 8B MONDAY. OCTOBER 17, 2005 COMICS Cimus COUNTY (FL) CHRONICg, qy .1%7 ~-j- ~ v n 0i AS I --w 4 fe *''Am -...I; -e ~~.14 e ~0~ op '"Copvriqhted Material -ow m. Id% U 'a ~ Syndicated Content r6 Available from Commercial News Providers" L1 *1 t I V. ~w ~ 6 b b 1 I, ~ I ~ m ~ - S m m ~ lp ' kif dm 0 w e as- 'his LJL-r Tot&y S Citrus Cinemas 6 Inverness Box Office 637-3377 "The Fog" (PG-13) 1:20 p.m., 4:20 p.m., 7:20 p.m. "Elizabethtown" (PG-13) 1:05 p.m., 4:05 p.m., 7:05 p.m. "Two for the Money" (R) 1:10 p.m., 4:10 p.m., 7:10 p.m. Digital. "In Her Shoes" (PG-13) 1 p.m., 4 p.m., 7 p.m. Digital. "Wallace & Gromit Movie" (G) 1:30 p.m., 4:30 p.m., 7:30 p.m. "Flightplan" (PG-13) 1:25 p.m., 4:25 p.m., 7:25 p.m. Crystal River Mall 9; 564-6864 "Domino" (R) 1:30 p.m., 4:35 p.m., 7:30 p.m., 10:25 p.m. Digital. "The Fog" (PG-13) 1:35 p.m., 4:40 p.m., 7:30 p.m., 10:25 p.m. "Elizabethtown" (PG-13) 1 p.m., 4:05 p.m., 7:10 p.m., 10 p.m. Digital. "Waiting" (R) 4:30 p.m., 9:55 p.m. "In Her Shoes" (PG-13) 1:25 p.m., 4:25 p.m., 7:20 p.m., 10:15 p.m. Digital. "Wallace & Gromit Movie" (G) 1:15 p.m., 4 p.m., 7:15 p.m., 9:40 p.m. Digital. "Two for the Money" (R) 1:20 p.m., 4:20 p.m., 7:40 p.m., 10:20 p.m. "Greatest Game Ever Played" (PG) 1:05 p.m., 4:10 p.m., 7 p.m. "Serenity" (PG-13) 1:40 p.m., 4:40 p.m., 7:10 p.m. "Into the Blue" (PG-13) 9:50 p.m. Digital. "Flightplan" (PG-13) 1:10 p.m., 4:15 p.m., 7:50 p.m., 10:10 p.m. Digital. Times subject to change; call ahead. Ihf ~4~ - _ .- 6 * a * * . t * -w I1 * 4~ a V" $- *s 0 -- .-.0t .. 49 0 41 Ula -4 qr t 4 * * * - r * 4b 0 CITRUS COUNTY (FL) CHRONICE, SBMONDAY, OCTOBER 17, 2005 COMICS d4 w 1 !70 r. *1%q** - .IV 0. - 8 4wo 61.- 4w dmlpft im _a&. IL OF F 'r I CI I TUa Serving all of Citrus County, including Crystal River, Inverness, Beverly Hills, Homosassa Springs, Sugarmill Woods, T Floral City, Citrus Springs, Ozello, Inglis, Hernando, Citrus Hills, Chassahowitzka, Holder, Loc pm Monday Wednesday Issue.......... 1 pm Tuesday Thursday Issue ..... 1 pm Wednesday Friday Issue.......... 1 pm Thursday Saturday Issue. ............. I pm Friday 6 Lines for 10 Days! 2 items totaling 1 150................ 5" $151 -400................1050 '401 '800 ..... 15........ $801 -$1,500.......... 205 Restrictions apply. Offer applies to private parties only. (HREI I I .L ERRORS All ads require prepayment. VISA S.. ^ 'i UECI [ OTICE 02-6 HLPWNTD 0510 INNIAL 180-191 SERVICES 201-266 ANIMALS 400-415UMOBILE HOMES FOR RENT OR SALE 500-54 REL STT FR.EN 7566 EAL ESTAT FOR SAE 701750 .ACAN PROERTY810-" TRNSPOTATIN 90-93 I62-YEAR-OLD 0 230LBS, SWM Home owner, likes Rising, fishing, good TV, I quality quiet times. SLooking for S/F, No I D/D/S. Race not important. Under 55, Islender to med. build with similar interest S-for friendship and companionn. Possibly 4;ore. Reply with letter F and photo to t P.O. Box 1211, )cystal River, FL 34429 Looking for a Lasting - Relationship? tf you are a trim gal, nonsmoking, and Looking for a good man, please call i 352-362-4789 $WM, 35, 6'2", 210lbs, New to area, seeking female. Sfriendship/possible i relationship. Call i (352) 573-0972 Of FREE SERVICE'** Cars/Trucks/Metal Removed FREE. No title OK 352-476-4392 Andy Tax Deductible Receipt 22 PITr BULL ~-' Rescued from B'uisir ana, from te' Humane society, Inverness. In uent need ofthomes, call Angela 795-1684, George 726-5591, or Margaret 344-5207 CAT ADOPTIONS I1p 5'-1.- I- CAT ADOPTIONS There will be an Adopt A Than ,. every Saturday during the month of r October 0:00 AM To 2:00 PM Sponsored by Humanitarians of . Florida Inc and or Home at Last Inc. ,Come find your new best friend. We have beautiful cats and idttens. All sizes, ages i and colors. Manchester House Corner of Highway 44 and Conant Ave. 2 blocks west of the Key Center. Look for white building with right colored paw prints.11 F FREE KITTENS Litter trained (352) 489-6277 FREE KITTENS LITTER TRAINED (352) 726-7837 or 637-1889 FREE REMOVAL OF Mowers, motorcycles, Cars, ATV's, jet ski's, 3 wheelers, 628-2084 FREE Weight Bench & weights. Needs TLC (352) 795-4556 KATRINA CATS Rescued by Humane Society of Inverness. Available at Eileen's Foster Care (352) 341-4125 KITTENS PURRFECT PETS spayed, neutered, ready for permanent loving homes. Available at Eileen's Foster Care (352) 341-4125 r% rescued p.com ta Requested donations are tax deductible Pet Adoption Sat. Oct. 22 9:30-12:30 Barrington Place RT486 Lecanto Cats Young Calico mom & 3 kittens 628-4200 Two kittens F & M 8 weeks 352-796-6479 (2-9pm) SAdult declawed, teenagers and kittens 746-6186 Doas Shepherd Mix F 6mos 249-1029 Lhasa Aspos F 2yrs 563-0570 Shepherd Mix Puppy M 795-9571 evenings Black Lab F 2yrs; Beagle M 2yrs; Brittany Span. M 2yrs; Yorkie/Chih mix F 7yrs; Adult JackRussell M;, 18 CU.FT. WHIRLPOOL REFRIGERATOR, runs & makes ice. You move. (352) 637-4645 COMMUNITY SERVICE The Path Shelter is available for people who need to serve their community * service. (352) 527-6500 or (352) 794-0001 Leave Message David Bramblett (352) 302-0448 A List with. me & get a Free Home Warranty (352) 302-0448 Nature Coast Free 2 male Grey Hounds (352) 795-4560 FREE AUSTRALIAN SHEPHERD, black female, shots, spayed, fenced yard a must!!! (352) 344-4876 FREE CAT & KITTEN both litter trained Call (352) 795-7637 FREE GROUP COUNSELING Depression/ Anxiety (352) 637-3196 or 628-3831 FREE KITTEN (352) 228-7006 FREE Kittens (352) 447-4009 Your world first Need a job or a qualified employee? This area's #1 employment source! Classic eds ..I. ......i.. about childcare? Free Manure, you remove all you want (352) 621-0316 RIO CRYSTAL SEAFOOD JUMBO SHRIMP $4.75/LB OR 5LBS/$22. (352) 795-3311 Female Carmel col- ored puppy lost area of Northcut & Riverwood Drive. CR New surgery scar on stomach. Re- ward (352)795-7205 LOST Gray Tabby Cat w/ orange markings. Last seen in Mini Farms name, Isabella (352) 795-5954 L/M MINIATURE SCHNAUZERS 1 male, 1 female, lost vicinity of Deerwdod Es- tates, Inverness (off 41) REWARD (352) 726-8236 Brown/El -:r .i fem ale : r . r prox. I .i :.r. Grover Clev. Ave. Divorces Bankruptcy NameChange ChiSupport VWills sl SInvemess .............637.40221 ,L JHem-...795.59j I "MR CITRUS COUWI' ALAN NUSSO BROKER Associate Real Estate Sales Exit Realty Leaders (352) 422-6956 *CHRONICLE- INV. OFFICE 106 W. MAIN ST. Courthouse Sq. next to Angelo's Pizzeria Mon-Fri 8:30a-5p Closed for Lunch 22m-pm FAMILY FOCUS CHIROPRACTIC IS GOING OUT OF BUSINESS as of Oct. 31, 2005 . Any former patients that would like to be referred to another doctor, or would like their patient records. Should contact Dr. Nick by Oct 31, at (352) 637-6175 LOOK! Absolutely best priced trans. device, Land & sea, Jimmy Hooper 3795 S. Suncoast Blvd. Homosassa (352) 228-7378 Across from Wal Mart Also device guaranteed to increase REAL ESTATE CAREER Sales Lic. Class $249. Now enrolling 10/25/05 CITRUS REAL ESTATE SCHOOL, INC. (352)795-0060. ATTRACTIVE SWF seeking male companion. Candi, 352-628-1036 Wanted 30" Electric Stove To be donated to needy poor family. Single mother w/ 4 children (352) 795-0925 [-E PART TIME PRESCHOOL TEACHER NEEDED (352) 795-6890 JOBS GALORE!!! EMPLOYMENT.NET OFFICE ASSISTANT Country Club Billing Office. Must be experienced in Word & Excel, 30 hours per week. Monday-Friday ,8:00 am- 3:00pm Tax resume to 3' J 52 7.6.9863 OFFICE ASSISTANT Full-Time Office Assistant needed for Service/Installation dept. in busy cabinet shop. Must be detail oriented. Cabinet knowledge helpful. Microsoft Excel required. Good work environment & benefits available. Apply at: Deem Cabinets 3835 S. Pittsburgh Ave Homosassa, FL 34446 or fax to 352-628-2786 SERENITY DAY SPA (352) 746-1156 Nail Tech Hourly or Comm Must work Saturdays Apply in person: 1031 N Commerce Terr. Lecanto WANTED EXP. NAIL TECH Willing to do pedicures FOUNTAIN OF YOUTH (352) 628-4404 $ 2500 $ SIGN ON BONUS FOR LPN/RN - F/T 11-7 "Competitive pay based on exp'. "Generous extra - shift bonus & shift dif. "Paid vacation after 90 days Also accepting applications for CNA'S Rare opportunity for day shift! Contact Geri Murphy, Health Center C Brentwood 352-746-6600 ext. # 8587 EOE D/V/M/F Drug-free fa i,' / A-1 Ultimate Nursing Care * DON (Fr) * RN FT/PT * Homemaker (2) Will Train -ULTIMATE NURSING CARE A Home Healthcare Agency 1-352-564-0777 EOE DOCTOR'S ASSISTANT Full-time, apply at: Citrus Pulmonary, 5616 W. Norvell Bryant Hwy., Crystal River, FL (352) 795-1999 FRONT DESK 30+ Hrs./Wk. Inverness preferred. Fax resume (352) 596-3494 FULL TIME MEDICAL ASSISTANT Busy office Phlebotomy, Vitals. Needs to be a Team Player, Send resume to 800 Medical Court East, Inverness, Fl. 34452 or Fax 352-726-8193 IMMEDIATE OPENING P/T LPN with OB/GYN Exp. Fax Resume to: (352) 794-0877 Your World offersex cel len tm slataifi. ww .carapicleonine com EARN AS YOU LEARN CNA Test Prep/CPR Continuing Education 341-2311/Cell 422-3656 NOW HIRING CNA's/HHA's CALL LOVING CARE (352)70-0885 PART TIME MEDICAL ASSISTANT For Ophthalmology office. 20-25 hours per week, good pay, great work environment. Will train the right person. Fax resume 628-0918. PHLEBOTOMIST FULL TIME Start immediately Fax 352-622-7057 labshr@yahoo.com RN CIRCULATOR With at least 2 years experience, prefer scrub experience also. Monday-Friday, no weekends or cell. Excellent benefits- start on first day of employment. Apply in person at 110 N. Lecanto Hwy Lecanto, Florida tax resume to 352-637-0333. You can also e-mail resume to; tcvoretiavante grou.com nowekn Exelen bneits stat n i'rstdyo AGENTS NEEDED New real estate firm now hiring agents, no franchise fees! Crystal Realty (352) 563-5757 EXECUTIVE ASSISTANT Needed for busy senior apartment complex. Accounting experience, detail oriented, computer proficient, able to multi task, pay based on experience. Apply in person 9:00am to 4:00pm M-F. 518 Ella Ave. Call 344-8477 for directions FUNERAL DIRECTOR PRE-NEED SALES FT OR PT ASSOCIATES Heinz Funeral Home (352) 341-1288 INSURANCE CUSTOMER SERVICE REP. Licence 440/220 preferred, Great pay & benefits. Fax resume to 352-489-8694 or call 352-489-2412 Looking For exp. Loan Originators / Loan Officers No license req. Call Mike 352.257.9368 REAL ESTATE CAREER Sales Lic. Class $249. Now enrolling 10/25/05. CITRUS REAL ESTATE SCHOOL, INC. (352)795-0060. RECORDS/ EVIDENCE CLERK The Crystal River Police Department is seeking applications from qualified persons for the full-time position of Records/ Evidence clerk. Salary range beginning at $19,943 plus benefits. Application and further information may be obtained on the City's web-site: Deadline for applications is 5: 00 PM, Friday, October 21, 2005. *BARTENDERS *COOKS *SERVERS High volume environment. Exp. preferred. Positions available in Inverness & Dunnellon. COACH'S Pub&Eaoery 114 W. Main St., Inv. 11582 N. Williams St., Dunnellon EOE. Line Cook & Wait Staff Exc. wages. Apply at- CRACKERS BAR & GRILL Crystal River EXP COOK, PREP COOK & WAITSTAFF Scampi's Restaurant (352) 564-2030 IMMEDIATE OPENINGS FOR SERVERS, BUSSERS & LINE COOKS Flexible hrs. needed Apply in person at Sugarmill Woods Country Club at 1 Douglas Street (352) 382-3838 LINE COOK Flexible hours experience with good work ethic. Good pay and benefits. 746-6855. Prep Cooks & Dishwashers Apply in person 9am-1pm M F at Romano's 5705 Gulf to Lake Hwy 564'-1211 SERVERS Experienced & high energy. Excellent S$$ Benefits, Uniforms, Meals, Guaranteed Tips. FT/PT. Call 422-3941 DFWP/EOE AGENTS NEEDED New Inverness Real Estate Office. No Start uo Fees Rea. Confidentiality Guaranteed. Resp to: PO Box 1498 Inverness FlI 34451 CLASSIFIED ADVERTISING SALES The Citrus County Chronicle is seeking on energetic Individual Io consult businesses on the use ofat clostif ed advertising. If you have the desire To work in a fast paced, fun. enviuonmerif please apply today Essential Funclions Develop classified customers thiougn cola calling ona prospecting SStrong rapport Duliding. prolaesslonaJ communication and good Irstening Develop new opportunities for customers to do business with Citrus Publishing. Maintain customers through servicing after the initial sale. Qualifications ' High School diploma or equivalent. a Prior sales experience Advertising or marketing experience preferred. Send resume to: 1624 N Meadowcrest Blvd., Crystal River, Fl 34429 Fax: (352) 563-5665 EOE, drug screening for final applicant $$$ SELL AVON $$$ FREE gift. Earn up to 50% Your own hrs, be your own boss. Call Jackie I/S/R 1-866-405-AVON KEY TRAINING CENTER HELP OTHERS BECOME INDEPENDENT BY USING YOUR LIFE EXPERIENCES. WORK WITH DEVELOPMENTALLY DISABLED ADULTS. BACKGROUND CHECKS AND EMPLOYMENT HEALTH PHYSICAL WILL BE REQUIRED FOR POST-JOB OFFER EMPLOYEES 100.00 BONUS AFTER SUCCESSFUL COMPLETION OF 90 DAY PROBATION PERIOD OUTSIDE advertising SALESPERSON for local tv station. Must be an organized self starter. Potential to earn above average income based on commissions. Reliable transportation with proof of insurance and HS diploma\ GED required. APPLY AT THE KEY STRAINING CENTER 3 BUSINESS OFFICE HUMAN RESOURCE DEPT. AT 130 HEIGHTS AVE. INVERNESS, FL 34452 OR CALL 341-4633 (TDD: 1-800-545-1833 EXT. 347) *EOE* Application Deadline October 31 CI.ASSIFIEDS MONDAY, OCTOBER 1-7, 2005 9B OftusCouNTY (FL) CHRoNicLE I lOB MONDAY. OCTOBER 17, 2005 mmm FRAMERS Lic. Realestate Local-Steady Associate 352-302-3362 For model Center, Immediate postilion OPERAT R please fax resume to: For A Terex Panda Construction 30-P&H 40 Ton Crane. nc., Atn. Bonnie *Must Have CDL & Exp. 727-815-9541 In Trees & Trusses P C L LaPERLE CRANE .E 726-2483 Maintenance PT Resume or apply: Inglis Villas R e33 Tronou Dr. ,5Ph:P352-447-0106 Fax: 352-447-1410 Phone Sales Help BLOCK MASONS Earn $1000 week easy 4 years minimum Mon.-Fri. 35 hrs.week. Base pay + comm. experience. Must have Call Note, 563-0314 reliable transportation. Cell 464-3613 Starting at $18 an hour. Call 352-302-9102 or 352-220-9000 REAL ESTATE CAREER BLOCK MASONS/ Sales Lic. Class $249. MASON TENDERS/ Now enrolling GENERAL LABORERS 10/25/05 CITRUS REAL GENERAL LABORERS ESTATE SCHOOL, INC. (352)795-0060. Must have own transportation. (352) 302-8999 Zr ades CARPET, VINYL, CERAMIC & LAMINATE $$$$$$$$$$$$$$$ INSTALLERS. LCT WANTS YOU!! Work yr round. 2 yrs $$$$$$$$$$$$$$$$$ .minimum experience 877-577-1277 Press 5 processing for OTR orr i drivers, solos. or a troi' teams, CDLA/Haz. Youru world first required Great Even-'Dav benefits. a 99-04 equipment Call Now CII 800-362-0159 24 hours , .'. .-I CDL DRIVER Accepting applications for experienced Class A or B Driver to operate dumps. Full Time employment w/ benefit package. PAVE- RITE 3411 W. Crigger Ct., Lecanto. 352-621-1600 DFWP/EOE CDL DRIVER Accepting applications for experienced Equip- ment Transport Driver. Class A CDL Required. Full Time employment .w/ benefit package. PAVE- RITE 3411 W. Crigger Ct., Lecanto. 352-621-1600 DFWP/EOE CDL DRIVERS & LOADERS Class A or B Required, Full time & Part Time. Local/ Long Distance. Home most weekends. Contact Dicks Moving Inc. (352) 621-1220 DELIVERY DRIVER Building Supply Co. Looking for exp'd Building Supply Delivery Driver w/Class B CDL. Heavy lifting required, Mon-Fri 7AM-5PM Paid vacation & holidays. 352- 527-0578 DFWP Copier Technician Exp. preferred but will train the right person. Call Alpha Office Technologies (352) 795-0491 Driller's Assistant Needed, long hours, clean Class D lic & driving record, paid holidays & vac. 352-400-0398 before 9p ELECTRICIANS Residential Rough & Trim. Work off of Hwy 200 in Ocala, 401K, Health insurance. (352) 748-4868 ELECTRICIANS Set & maintain T Poles. Some electric knowledge necessary (352) 341-2004 EXP. CRANE OPERATOR References required, call, DFWP RTK Incorporated (352) 726-7264 or 352-390-7050 EXP. DRY WALL HANGERS & FINISHERS (352) 628-7444 ClkNI'-F, O 10% OFF NEW ACCTS JOE'S TREE SERVICE All types of tree work 60'BUCKET Uc.& Ins. (352)344-2689 Split Fire Wood for Sale A TREE SURGEON Uc.&Ins. Exp'd friendly serve. Lowest rates Free estimates,352-860-1452 A WHOLE HAULING & TREE SERVICE 352-697-1421 V/MC/D I HAULING CLEANUP, * PROMPT SERVICE I I Trash, Trees, Brush, Apple. Furn, Const, I Debris & Garages | 352-697-1126 All Tractor & Truck Work, Deliver/Spread. Clean Ups, Lot & Tree Clearing Bush Hog. 302-6955 DAVID'S ECONOMY TREE SERVICE, Removal, *&trim. Ins. AC 24006. 352-637-0681 220-8621 D's Landscape & Expert Tree Svce Personalized design. Cleanup & Bobcat work. Fill/rock & Sod: 352-563-0272. Dwayne Parlier's Tree Removal. Free estimate Satisfaction guaranteed Lic. (352) 628-7962 R WRIGHT TREE SERVICE, tree removal, stump grind, trim, Ins.& Uc #0256879 352-341-6827 STUMP GRINDING Lic. & Ins. Free Est. Billy (BJ) McLaughlln 352-212-6067 OLD HICKORY TREE SERVICE. Call Dave (352) 527-8253 TUTOR Qualified middle school tutor all subjects. (352) 795-2192 COMPUTER TECH MEDIC On site Repairs Internet Specialists (352) 628-6688 AFFORDABLE BOOK- KEEPING QUICKBOOKS consultant. 10 yrs. expl (352)795-6143 CAC BOOKKEEPING SERVICE 20 years experience (352) 628-5546 CERTIFIED Quick Books Consultant Bookkeeper Specialty w/sol proprietors corp. Ac- counts training set-up, clean- up, reasonable rates. Call 352-634-0065 Your world first. Ever, Day CHRpNICkE vChris Satchell Painting & Wallcovering.AII work 2 full coats.25 yrs. Exp. Exc. Ref. Lic#001721/ Ins. (352) 795-6533 PICK YOUR COLOR PAINTING Interior* Exterior. Faux Fair Prices, Owner on Job, Free Est., Insur. (352) 212-6521 Unique Effects-Painting, In Bus. since 2000, Interior/Exterior 17210224487 One Call ,To Coat If All 352-344-9053 Wall & Ceiling Repairs Drywall, Texturing, Painting, Vinyl. Tile work. WILL YOUR GENERATOR START? MOWER REPAIR Hernando, Don Mead (352) 400-1483 MUM BATHTUB REGLAZING Old tubs & ugly ceramic tile is restored to new cond. All colors avail. 697-TUBS (8827) CUSTOM UPHOLSTERY Modern & antique. Denny, 628-5595 or 464-2738 NOTARY Bonded Mobile Notary (352) 795-2192 I Competent CNA/HHA Renders professional medical care in the home. 18-yr. exp. Uc. Free consultation 352-601-2717 Elderly Care 24/7 Stroke, dememtia, etc. I'm exp. w/ exc. ref. Live in poss. 352-270-1865 LINDA'S HOME CARE, compassionate care. certified CNA HHA, State License 20 yrs. exp. affordable rates, free evaluations. 352-697-9006 VChris Satchell Painting & Wallcovering.All work 2 full coats.25 yrs. Exp. Exc. Ref. Lic#001721/ Ins. (352) 795-6533 FLORIDAS BEST CARPET CLEANING. Holiday Specials/ Weekends (352) 794-4112 HOMES & WINDOWS Serving Citrus County over 16 years. Kathy (352) 465-7334 HOUSE CLEANING By Malissa weekly, biweekly, mthly. Very Reliable 352-447-1818 LOW RATES for wk/bi-wk/mon. cleaning 586-9785 Qualify POOL BOY SERVICES Pressure Cleaning, Pool start-ups & weekly cleaning, 352-464-3967 "The Handyman" Joe, Home Maintenance & Repair. Power washing, Painting. Lawn Service & Hauling. Lic 0253851 (352) 563-2328 "HOME REPAIRS" Painting, power wash jobs big & small #1453 (Eng./ Spanish)746-3720 #1 IN HOME REPAIRS, paint, press.wash, clean roof&gutters, clean up, haul #0169757 344-4409 A HIGHER POWER Ceiling fans, Lights, etc. Lic. #999900022251 422-4308/344-1466 S AFFORDABLE - DEPENDABLE' HAULING CLEANUP. I PROMPT SERVICE I I Trash, Trees, Brush, Appl. Furn, Const, Debris & Garages | S 352-697-1126 km-- -- J All Around Handv Get My Husband Out Of The Housel Custom woodwork, furniture repairs/refinish, home repairs, etc. Lic. 9999 0001078 (352) 527-6914 GOT STUFF? You Call We Haul CONSIDER IT DONEI Moving.Cleanouts, & Handyman Service Lic. 99990000665 (352) 302-2902 L & L HOME REPAIRS & painting. 7 days, clearly ups.Everything from A to Z 628-6790 AFFORDABLE, S DEPENDABLE, HAULING CLEANUP, I PROMPT SERVICE I I Trash, Trees, Brush, I Debris & Garages | GOT STUFF? You Call We Haul CONSIDER IT DONE! Moving,Cleanouts, & Handyman Service Uc. 99990000665 (352) 302-2902 HAULING & GENERAL Debris Cleanup and Clearing. Call for free estimates 352-447-3713 ON SIGHT CLEANUP M.H. demolition, struc- ture fire & Const. debris cleanup (352) 634-0329 John Gordon Roofing Reas. Rates. Free est. Proud to Serve You. ccc -E^- Additions/ REMODELING New construction Bathrooms/Kitchens Lic.& Ins. CBC 058484 (352) 344-1620 DUKE & DUKE, INC. Remodeling additions Lic. # CGC058923 Insured. 341-2675 Wall & Ceiling Repairs Drywall, Texturing, Painting, Vinyl. Tile AM blUINLo INL,. Vinyl Siding, Soffit and Fascia, Also Reside Mobile Homes 352-489-0798. 425-8184 VINYL SIDING INSTALLERS $8 $12 hr. depending on experience. Call 352-489-0798, 425-8184 types of Dirt Service Call Mike 352-564-1411 Mobile 239-470-0572 FLIPS TRUCK & TRACTOR, Fill Dirt, Rock, Top Soil, Mulch & Clay. You Need It, I'll Get It! Roto Tilling Lic. & Ins. 352- 303-4679 PRO-SCAPES Complete lawn service. Spend time with your Family, nor your lawn. Uic./Ins. (352) 613-0528 r AFFORDABLE, DEPENDABLE, | HAULING CLEANUP, I PROMPT SERVICE I I Trash, Trees, Brush, | Appi, Furn, Consi*, Debris & Garages | 352-697-1126 L .J. m. -. Carpenter Helpers Wanted (352) 307-0207 EXP. FIBERGLASS INSULATION INSTALLER (352) 628-7444 EXP. METAL FRAMERS & COMMERCIAL ACOUSTICAL TILE/ GRID INSTALLERS Tools & trans. needed (352) 628-7444 EXP. TRIM CARPENTER Wanted. 352-266-7389 EXP'D STUCCO LABORERS Own trans 352-302-7925, EXPERIENCED TRUCK DRIVERS Apply in person: Meagher Farms 2240 N, Skeeter Terr. Hernando, FI 34442 A DEAD LAWN? BROWN SPOTS? We specialize in replugging your yard. Lic/ins. (352) 527-9247 Amen Grounds Maint. Complete lawn care & pressure washing.Free Est. (352) 201-0777 Bill's Landscaping & Complete Lawn Service Mulch, Plants, Shrubs, Sod, Clean Ups, Trees Free est. (352) 628-4258 ypu you should be coming to us. (352) 465-8447 or 464-1587 INVERNESS AREA Mow, Trim, Cleanup, Hauling, Reliable, Res/Com. (352) 726-9570 MARK'S LAWN CARE Trimming, landscaping, Pressure Washing (352) 794-4112 Tony's Quality Lawn Care, Res./Commercial Mowing, Haul away debris. Se Habla Espanol (352) 628-6022 POOL BOY SERVICES Pressure Cleaning, Pool start-ups & weekly cleaning. 352-464-3967 CRYSTAL PUMP REPAIR Filters, Jets, Subs, Tanks, w/ 3yr Warr. Free Est. (352) 563-1911 WATER PUMP SERVICE & Repairs on all makes & models. Lic. Anytime, 344-2556, Richard Solar Lights & More Ocala Get i Dono WAh The Suni Solar Pool Heating Solar Skylights Solar Attic Fans Solar Hot Water 1-800-347-9664 "FREE ESTIMATES" CW-CA22619/Lic/lns. "MR CTRUS COUNTf ALAN NUSSO BROKER Associate Real Estate Sales Exit Realty Leaders (352) 422-6956 RAINDANCER Seamless Gutters, Soffit Fascia, Siding, Free Est. Lic & Ins 352-860-0714 EXPERIENCED MAYCO CONCRETE PUMPER WANTED Start at $13. hr. & up Call for interview, (352) 726-9475 IMMEDIATE OPENING! QUALIFIED RESIDENTIAL ELECTRICIAN Min 2 yrs, Exp,. Good driving record req. Insurance, paid Sick, Holiday & Vacation Apply in person S&S ELECTRIC 2692 W. Dunnellon Rd. CR-(488) Dunnellon 746-6825 EOE/DFWP LABORER Accepting Application for General Construction Laborers. Asphalt paving experience is helpful. Full time employment w/ full benefit package. PAVE- RITE 3411 W. Crigger Ct., Lecanto. 352-621-1600 DFWP/EOE MASON TENDERS NEEDED 352-302-0067 MASONS Must have own trans. 352-795-6481 or 352-302-3771 HELP OTHERS 13ECOME INDEPENDENT BY USING YOUR LIFE EXPERIENCES. WORK WITH DEVELOPMENTALLY DISABLED ADULTS. BACKGROUND CHECKS AND EMPLOYMENT HEALTH PHYSICAL WILL BE REQUIRED FOR POST-JOB OFFER EMPLOYEES '100.00 BONUS AFTER SUCCESSFUL COMPLETION OF 90 DAY PROBATION PERIOD Maintenance Worker: RT position,,M-F. MaintainVepair of buildings and grounds. Vehicle maintenance, prefer diesel knowledge. Must have your own tools, reliable transportation, as well as experience. Proof of HS DiplomaGED required. Instructor. Assistant: RT position M-F, and a PT SUB position . Assist Developmentally Disabled adults with learning skills in a classroom setting. Proof of HS diplomaGED required. RECEPTIONIST: RT position in Lecanto, M-F 8:00am 4:30pm. Good telephone skills, ability to deal with the public. Proof of HS diplomaGED required. ADMINISTRATIVE ASSISTANT: to the WYKE TV 47 General Manager. This is a RT job opportunity for the highly -motivated, team oriented individual. Must posess general office skills, as well as computer skills. Work with the GM to facilitate correspondences within the company and regards to vendors. Mainly M F must be flexible. Proof of HS diplom0ED required. APPLY AT THE KEY TRAINING CENTER BUSINESS OFFICE HUMAN RESOURCE DEPT. AT 130 HEIGHTS AVE INVERNESS, FL 34452 ORCALL3414633 (TDD: I-SM545-1833 EXT. 3471 'EDE' FIRE SPRINKLER FRAMERS & PIPE FITTERS LABORERS NEEDED 352-302-3640 MECHANIC^ I (352) 726-2041 OTR DRIVER Excellent pay & home Accepting time! Quality equip. applications for Clean Class A CDL. Min experienced Truck 2yrs OTR & Reefer Exp. and Construction No riders, 352-493-2789 Equipment Mechanic. The PLASTERERS & position requires APPRENTICES supervisory skills to coordinate & Steady Work manage Call Jon 352-302-1240 maintenance facility. Full Time Plasterers, employment, Apprentices including benefit and Laborers package. and Laborers PAVE- RITE 3411 W. Crigger Ct., Local work. Must have Lecanto. transportation 352-621-1600 (352)628-5878 or Iv msg DFWP/EOE PLASTERS & LABORERS NEEDED MECHANIC Work is in Marion Co. (352) 237-8356 L/M Alternative Weigh PLUMBERS Services of Ocala Is looking for a Truck Needed for residential Mechanic. Good pay Needed for residential & benefits. plumbing. Great pay (352) 624-3100 and benefits. Must or fax 352-680-0925 have own truck & tools. Call Robert S. METAL BUILDING (352) 572-7162 Erectors, Laborers PLUMBING SERVICE TECH All phases pre- engineered bldgs. Needed for residential Local work. Good homes. Great pay and starting salary, Paid benefits. Must have holidays & vacation. own truck & tools. Call Mon-Fri, 8-2, Call Robert S. toll free, 877-447-3632 (352) 572-7162 Plywood Sheeters F G .;w& Laborers ENeeded in Dunnellon area. (352) 266-6940 W -ranWell Established Road Construction C Company Seeking to hire Finisher Grader Op Loader Op Roller Op Laborers Vacation. Call (352) 797-3537 EOE/DFWP CnGnea c= el New mortgage branch office in Inverness,, Salary + com. , (352) 464-0324 HOUSE CLEANING BUSINESS -, Over 40 accounts &'oll equip. included, asking $10,000. obo, Call for details. 352-527-8000 INSURANCE BUSINESS FOR SALE Citrus Co. Serious inquiries only (352) 427-6914 Retired, semi-retierd or hardworking partner, with by in money, to expand very profitable Hurricane service co. State Cert. LLC, call Joe (352) 266-4005 Cell (352) 563-2642 Office F I-immLuni- - I.i.mA -- I Are you 16-24? Do you want to make more money? Job Corps can teach you specific skills, help you earn a HS diploma or GED and get you a better job. FREE SCHOLARSHIPS AVAILABLE To learn more, Call 1-800-434-5627 ext. 120 BUDDY'S HOME FURNISHINGS Is currently seeking a Delivery Driver/ Account Manager Trainee. Must have clean Class D license. Good people skills. S(352) 344-0050 or Apply in person at 1534 N. Hwy. 41, Inverness. EOE DFWP CAPTAIN NEEDED For Manatee Tours. Must be able to get in water & do videos on Homosassa River. (352) 382-7725 CONSTRUCTION LABORERS WANTED No exp. necessary Must be 18 or over, Transportation preferred. Call for interview, 860-2055 FRONT DESK F/T, Evening Shift Apply in person COMFORT INN Crystal River, FL. Garbage Truck Driver Responsible for driving and/or emptying gar- bage cans. Clean Class B license req'd, Call be- tween 9-1, NCRS Dis- posal 8144 W. Grover Cleeveland Blvd. (352) 628-9200 GLAZIERS Experienced MIDSTATE GLASS (352) 726-5946 Fax Resume to 352-726-8959, Inverness GOLF COURSE MAINT. PERSONNEL Brooksville CC, 18 hole, semi private, full or part time. Call 352-796-2675 or 239-825-6262 GOLF COURSE MAINTENANCE WORLD WOODS IS HIRING: *Operators *Landscaper Irrigation Tech Apply in person For info call: (352)7540322 - HORSE FARM HELP Exp, stalls, turn out, groom. Inglis area. F/T/ EOE 352-447-1008 JOBS GALORE!!! EMPLOYMENT.NET Homemaker/ Companions Will train ULTIMATE NURSING CARE A Home Healthcare Agency EOE LABORER Concrete experience preferred, CDL drivers lic. a plus, new busi ness growth potential, Drug free P/T, F/T Call (352) 795-3663, 8am - LABORERS NEEDED No exp. necessary Benefits offered. Valid Drivers Uc. & Heavy Lifting Required Gardners Concrete 8030 Homeosassa Tr. FULL TIME clean DL CLASSIFIED CuRus CouNTY (FL) CHRONCgo Lawn experience preferred. Will train salary/benefits Apply in person CITRUS PEST MGT. 5 N. Melbourne Beverly Hills, FI 34465 NOW HIRING HOUSEMAN & DISHWASHER Apply In person, Bella Oasis, Hwy.19, Homosassa Springs POOL MAINT. TECHNICIAN Needed Full Tirne w/ benefits. Experience necessary. Apply in person: 2436 N. Essex Ave (352) 527-1700 P/T FURNITURE, DELIVERY PERSON 20-25 hrs/wk. Apply in Person I 97 W. Gulf to Lake, Hwy.Lecanto PT ASSISTANT Clerical, computer, cleaning & some driv- ing. Valid FL DL & owr.' car. (352) 795-4569" Sunniland Roofinge Supply ^ Drivers needed, Class. A or B CDL, to load) roof, also needed-, helpers to load rogf, Benefits incl. medical 401k, paid vacations & paid sick days.. Apply in person: 300 S. Kensington Ave. Lecanto, '. (352) 726-9988 " SUPERVISOR Hospital Valet.,:s Operation F/T days, M-F, -s friendly customer, service skills required, excel, pay, cash tips-.. daily, Call Andy ae- 888-463-1954, ext 205 TOWER HAND,. Bldg Communicatio- Towers, Travel, Good' Pay & Benefits. OT, DFWP. Valid :-s Driver's License. Steady Work. Will Train - 352-694-8017 Mon-Fri- TRAINMAN ,, Positions available in the Newberry/ !, Williston area. - Experience preferred but not necessary. Send resume to:; ,- Florida Northern RR POBox967 , Plymouth, FL 3276.8 WE BUY HOUSES Ca$h....... Fast! ' 352-637-2973 , Ihomesold.com-.- PART TIME MEDICAL ASSISTANT" For Ophthalmology ~? office. 20-25 hours per week, good pay, great work environment. Wiln- train the right person., Fax resume 628-0918. PT WAREHOUSE-' ASSISTANT Report to warehouse, coordinator, off load trucks, general warehouse duties,- preparation of '' outgoing products insertions, delivery Jo other departments. Must have valid dri:"- lic and ability to lift' heavy loads. Drug screening req, - Apply in person at Citrus County Chronicle 1624 N Meadowcrest Blvd Crystal River, FlI Application deadline, -A ADVERTISING NOTICE: -' This newspaper does not knowlingly-, accept ads that are not bonafide employment. offerings. Please- use caution when responding to employment ads. REAL ESTATE CAREER Sales Lic. Class $249. Now enrolling 10/25/05. CITRUS REA ESTATE SCHOOL, INC_ (352)795-0060. ' MORTGAGE BROKER/ BRANCH MANAGER .' CITRUS COUNTY (FL) CHRONICLE "''tlVE AUCTIONS" wVw:charliefudge.com For Upcoming Auctions 4-800-542-3877 1908 Singer Sewing i Machine, tredal operated, working cbnd., all original parts, beautiful cond. $150. ('352) 382-3027 Antique Bedroom Set, approx. 100 yrs. old, dbl. ed & dresser, very n~ge $750. 2 antique night stands $250. -(352) 621-0232 ". 220-8218 ANTIQUE CHERRY Gateleg table, needs i refinishing on top, 6 ladder back chairs S_& hutch, $800 r--(352) 628-0424 Antique Desk / chair fold down top ; appox, 100 yrs. old good cond. $800. i (352) 621-0232, I 220-8218 Antique WALL CRANK PHONE, great original Condition. OLD TUBE I10, Table model, ing cond. Both. (352) 527-8328. ELRY ROCKS Precious, Polished tJpolished. Box of F gs, Lapidary Tools, 0. 352-465-7219 01 LTD Edition ollector Plates, r. $30 ea. Sell $12 each or all for $900. 4dbo (352) 634-3864 t"OT TUB/SPA, 5 person, Iike new, 24 jets, Red- iwobd cabinet, 5 HP purmp. Sacrifice $1475 Ij52) 286-5647 SPA . W/ Therapy Jets. 110 /olt, water fall, never L-. used $1795. S-(352) 597-3140 Spal, Hottubl 4-5 person Deluxe model. Thera- peutic. Full warr. Sac. I10 eGbic ft. freezer, $40. -- 21 cubic - refrigerator $40. (352) 465-7747 3NTON HEAT PUMP, r: $400 4-TON AIR CONDITIONER, $450 'ditable for Mobile Home. (352) 564-0578 i$ /C & HEAT PUMP ,SYSTEMS New in box 5 &10 year Factory ScWarranties at SWholesale Prices i -2 Ton $827.00 '. -3 ton $927.00 S-4 ton $1,034.00 i Install kits available I -or professional installationn also avail. i Free Delivery *-ALSO POOL HEAT PUMPS AVAILABLE Cail 3527-146.4394 .AI Conditihoner 3 .1 .3 ,- l*.n -,3 -: , ."'t 'Il, u.ed 5100 .: .ll .lli, : = .r..1 (352) 302-7555 ALL APPLIANCES. NEW A USED, Warranteed Refrig, washers, dryers etc. Parts & Service Buy/Sell 352-220-6047 APPLIANCE CENTER Used Refrigerators, Staves, Washers, Dryers. NEW AND USED PARTS 'Dryer Vent Cleaning Visa, M/C., A/E. Checks 352-795-8882 BAND NEW WHIRLPOOL REFRIGERATOR, 18 cu.ft,, never used, $400 S (352) 726-7564 qRYER, Whirlpool, white, -extra Irg. $50. (352) 382-2318 DRYER, WHITE, MAYTAG, Sas,.excellent, like new Sc'ndition, $150 firm, 1 (352) 860-1097 FIESTA GAS GRILL, cover gas tank, good cond. $50 (352) 382-7473 GE Side by Side Refrig./ feeezer, white, 25 cubic ., 3 yrs. old, ice maker. 9am-8pm $600. :-(352) 746-1580 SHOTPOINT WASHER E bRYER, $350 for set .GAS GRILL, $50 r"-352) 382-0246 .I MORE WASHER '' $75 cash (-'"352) 344-2752 REFRIGERATOR $100 Firm. Dish Washer, Whirlpool, :Quiet Partner II, white $100. 352-228-1098 Sharp Microwave Oven $25. Soleus In room Air :Conditioner 7500 BTU $250. (352) 522-0008 SSide by Side Refrigerator, 27 Cubic Ft , & Dishwasher, Both good Cond, Almond, $250 foi both. ' 1 (352)212-2022 .-.WHIRLPOOL built-in mircowave and ' oven 150.00. GE pobcrubber dishwash- er- 75.00. 795-1140 msks, Filing Cabinets & fIvsb. Chairs, All items less than $100 each. "(352) 341-4747 Sv FISHING V ;.%CKLE & SUPPLY -ABSOLUTE. .f-'lQUIDATION '*.THURS. OCT. 20. 4000 S. Fla. Ave. Hwy. 41-S, Inverness .PREVIEW: NOON AUCTION: 5 PM 1000's of new & Vintage plugs, poles, S",-reels & access. Salt & fresh water.I Fabulous collect. A Must Attend Sale for the outdoorsmen See Web www. dudleysauction.com DUDLEY'S AUCTION (352) 637-9588 AB1667 AU2246 12% Buyers Premium 2% disc. cash/check P6 . ".W '"a Wi MrnU Air compressor-8.3CFM, 20 gal,, regulator and tools, $200. Arc Welder. 230amps, $150.00 (352) 527-4147 Construction Air, Power & Hand Tools Job-site Gang Box $800. or sell separately (352) 628-9694 Cuting Torch w/cart, side grinders, grills, . (352) 795-1020 3801 N. Seminole Pt. Home Lite Chain Saw, 15" blade, $100. (352) 628-7068 Leave message. Miller Thunderbolt XL 225/150 amp, ac/dc. Welder $230. (352) 563-5939 10" Subwoofer, for home theater, Kilpsch, powered 600W, Retails $399. only 3 mos. old, sell $325. obo (908) 217-0398 Soaking Tub, 2 person model, new, never used, almond color, bought $800, will sell for $400. (352) 422-5521 Dell 17",Color monitor, new in box, $85 (352) 476-1709 Dell Computer Pentium III, 500MHZ, (No monitor or keyboard) $150 0BO. (352) 527-1047 DIESTLER COMPUTERS Internet service. New & Used systems, parts & upgrades. Visa/ MCard 637-5469 PC COMPUTER Complete, Internet ready, WIN 98, $100 (352) 726-3856 3-PT HITCH TILLER Category-l Land-Pride brand 50" rototiller. PTO shaft w/ clutch. Ready to work. $475. 563-6621 JOHN DEERE 4200 series, Hydro Power steering. $8,500. Equipment also avail able. (352) 746-4703 KUBOTA TRACTOR & Trailer, L-2250, 4WD, Frnt. end bckt. 2 box- bids. 5' Bushhog mwr. Runs/works great, $4500 obo. (352)4.P-.0Q507 M. F 23Mfli-'0ereO3, 14 hr. Front Loader, Box Blade, Bush Hog, & Equip. Trailer $12,000 OBO (352) 423-2795 MF 231S Diesel 45HP 451 hrs. w/ 232 MF quick attach loader, w/ front pump nice tractor, can deliver $13,000. (352) 490-7691 Kids Twin Mattress, $15 Mattress & Box Spring, King, Firm, used 1.5 yrs, Org. $1600, Asking $500 OBO.(352) 302-8673 LANAI FURNITURE Glass dining table, 4 padded chairs & matching chaise. $175/all. Rainbow Sprngs (352) 489-4445 2 Bar.Stools, metal & vinyl, almond. 80., (352) 249-1012 2 Brown Suede Microfiber La-Z-Boy Recliners, Exc. cond. $100 each. (352) 795-5918 2 SECTIONAL SOFAS Recliner/bed, Dark green $350 & Tan & white, $250. Great condition. (352) 637-5171 2 White Brocaded Love Seats, waiting for good home, plus brass & glass console $50. takes all (352) 382-4580 3 BARSTOOLS. bamboo 1 end table, bamboo, 1 cocktail table, bamboo, $100 for all. Good condition. (352) 746-6140 3 Light Floor Lamp $20. Small Oak Desk $10. (352) 249-4445 3 POLISHED BRASS light fixtures (chandelier type) $15 each (352) 726-6665 4 PC Oak Bassett Bedroom Set. queen Brown. $400 352-634-3864 5 dwr. desk $25 Leather computer chair $50. (352) 465-7747 5 PC BEDROOM SET Solid wood, dresser, mirror, 2 nighlstands, chest of drawers, NO BED.$150. (352) 628-7209 6 dinette chairs we/ casters $90. (352) 746-0100 "MR CITRUS COUNT ALAN NUSSO BROKER Associate Real Estate Sales Exit Realty Leaders (352) 422-6956 27x33 MIRROR, dark wood frame, $55 Misc. pictures, $25 (352) 341-3351 8' DESIGNER COUCH Oyster color pattern, Good cond, $.150; La-Z-Boy Swivel rocker recliner, Chocolate, $75 (352) 527-8328 BED: 155, New Queen. 'No Flipped Pillow Top Set. 5 yrs warr. King Set $195. Delivery 352-597-3112 BED: 155, New Queen. No Flipped Pillow Top Set. 5 yrs warr. King Set $195. Delivery 352-597-3112 BEDS BEDS BEDS Beautiful fact closeouts. Nat. Advertised Brands 50% off Local Sale Prices.Twin $78 Double $98-Queen $139 King $199. (352)795-6006 Bench, Mahogany Victorian Style, .$90. (352) 746-0100 BLACK STEEL CORNER ENTERTAINMENT CNTR 4 shelves plus CD, DVD & Video tape storage racks, 67"HX47"WX32"D $75; (352) 628-7626 Blue Recliner, good cond. $45. Stereo Aiwo, 5 CD changer, w/2 tape decks, AM/FM Ra- dio, turntable & stand, $300. (352) 860-1216 Bookcase/China Cabinet Kincaid, French Country- perfect in Office, Den, Dining room; Set of 2 lamp.coffee. sofa tables, custom glass tops- French Country; Antique Spinning wheel, Old Milk Can, Steamer Trunk, Grid Wall Wine Rack, varies small table. (352) 465-8430 Broyhill COUCH & CHAIR Traditional cream,floral couch,blue wingback chair ex, cond.$200 (352) 746-9313 COUCH Dark Green, brand new, great cond. $150/obo (352) 621-3840 Couch, white on white, Seashell Pattern, 84" long, 6 reversible cushions, good cond. $150. (352) 795-6736 Deluxe Lexington Furri. Dining set, table 42"X64" 4 side chairs, 2 arm- chairs, 2 extra 14/2" leaves, custom tbl pad. Lt. wood w/lt. beige seats. $900. (352) 795-1888 DINETTE w/4 upholster- ed chairs in exc, cond. $250. White Rattan Tbis 1 glass, 3 nesting, $100 I -::r, (352) 746-2444 DINIING ROOM TABLE, WOOD. w/6 chairs, (2 captain) 2 extra leaves. A must see, exc. cond., $550. (352) 634-4080 or 628-4689 Dining Room Table cherry wood, drop leaf, 2 leaves, seats eight,. two matching captains chairs $500. (352) 527-9428 DOUBLE BED, $50 SINGLE BED, $40 (352) 726-7982 Entertainment Center, It. oak, holds 36" t.v.,$250. Bookcase, dark oak. $150. (352) 249-1012 Formal Dining Room' Table w/ leaf & 6 chairs, cherry/dark wood, good cond., $100. OBO, (352) 726-7804 FURNITURE, ETC. Dark wood drop leaf table $100, antique oak desk $100, computer desk $25 (352) 382-5975 Futon wood frame, mattress included $50., call after 5 pm (352) 220-6121 Honey Pine Day Bed, $175. Oak Dresser, $75. (352) 302-9295 HUGE CORNER COMPUTER DESK white washed wood, 6-pcs. org. $1,200. asking $450 (352) 726-0072 Hutch, large, thick, dark pine 66" $295. obo, also Glass ligh oak glass coffee table $35., firm! like new (352) 249-9160 KINGSIZE BED with headboard, upright 6 drawer dresser, $200 2 DESKS, one student, $65 (352) 344-5898 Kitchen Table Oak Top, white legs, drawer, leaf, $70; 3 matching Windsor Chairs, $20 ea. (352) 795-6736 Large Gun Cabinet, $300. (352) 621-5034 LA-Z-BOY SLEEPER SOFA with matching recliner, $200 ENTERTAINMENT SET by Souder $50 (352) 382-0246 LIVING ROOM FURNITURE Sage & Tan/ 5 Pcs. $800 obo. 352-613-0278. Living Room Suite, new, neutral color sofa & love seat have 4 reclin- ers. Incl 3 tables & 2 matching lamps. Asking $1,500. (352) 621-0171 CLASS: Med. Oak D/R Table, SOFA, LOVESEAT oval w/ pedestal base. & large ottoman, plaid, 4 chairs $375. Lg. Oak exc. cond. $450. Entertainment center (352) 746-2203 $250. All excel, cond. SOFAS, 2 full size, blue Call (352) 382-5055 w/white striping, q year OAK CAMELBACK old. $100 each; TRUNK, brass reinforced Twin Size Futon corners & leather straps with ottoman, $100. w/interior tray, (352) 501-2850 40"X24"X27" $400/obo, SUGARMILL WOODS (352) 628-7626 SUGARMILL WOODS -(352) 628-7626 DOUBLE DRESSER, Oak TV Stand, maple, w/mirror, $225, 26"H, 27"L, FOYER TABLE, dark 16 1/2" D $45. wood, glass top, $75. (352) 382-1502 (352) 382-9040 OAK VEN R T.V. Cabinet w/ glass ENTERTAINMENT doors. Fits 32" TV, $50, CENTER, $20 Victorian hurricane PVC PATIO SET, 42" elec. lamp $15, table, 6 chairs, $250 (352) 249-4445 (352)Patio Set I 4 game Table, glass top, 35x58, Patio Set Incl. 4 game 4 chairs, fully padded, chairs, 2 swivel rockers, excel cord, very pretty 1 large table an d 1 $225. (352) 726-0708 glider All for only $800 $225. (352) 726-0708 Computer Desk $150 The Path's Graduates, (352) 746-6936 Single Mothers,' PAUL'S FURNITURE Needs your furniture. Just Rec'd More Furn! Dining tables, dressers Store Full of Bargains! & beds are needed. Tues-Sat. 9am-2pm Call (352) 527-6500 Homosassa 628-2306 Twin Bed Futon Preowned Mattress Sets solid ash frame, from Twin $30; Full $40 9" mattress, like new, Qn $50; Kg $75. cost $890. sell $425. 628-0808 (352) 382-2625 QUEEN RATTAN Canopy Bed Frame ^'J $300; SMALL JAVA n'i ,. lbr Dining Rm. Tbl. w/4 chairs, $100. Why Pay More? (352) 501-2850 Come visit us and take advantage Queen Wicker Bedroom of oura Suite, like new, very EVERYDAY LOW pale pink (almost PRICES white). Inc. Searson ALL Home pillow-top mattress, Furnishings. $1,300. (352) 621-0171 Hurry! While Supplies Recliner fits big man Last! $65., Furniture Corner Couch w/recliner on 1031 E. Norvell each end $100. Bryant Hwy Call after 5 pm Hernando, FI (352) 220-6121 352-860-0711 RECLINER, large, Peopllounger, blue, 1le.aedli beautiful cond., just cleaned professionally Williamsburg Brass $200. Queen headboard & (352) 527-0716 frame, $100, Bookcase w/ lower Sauder Computer Desk doors, 72" high$70. $25. Sauder (352) 527-8276 Entertainment (352) 527-8276 Center $25. (352) 465-7747 Sectional Sofa beige and pastels $280: obo Finish Mowing Deck, (908) 217-0398 60" Kingkufftter Exc Sleeper Sofa cond., 3. hitch, PTO & Loveseat, rattan/ drive, side discharge, tropical print, $600. $650.(352) 274-1403 End & coffee able FREE REMOVAL OF din. rm. table $300. Mowers, motorcycles, (352) 746-1329 Cars. ATV's, jet ski's, SLEEPER SOFA 3 wheelers. 628-2084 off white, clean, $300 Honda Self-propelled GLASS & IRON Coffee Hond Self-propelled table & 2 end ables Mulching Lawn Mower $125/all 3. Rainbow $150 Springs. (352) 489-4445 (352) 501-2850 Sofa Sleeper, $125 OBO. - (352) 634-3864 Sofa Sleeper, Queen Ethan Allen size, $200. Country style buffet, 4', $150. Excel Rolltop oak desk Cond. w/chair, orig. $3500, (352) 527-7798 $475. Sofa sleeper, queen (352) 795-1160 size, beige colored, $60. FORD Entertainment Center, 1990 XLT Ranger light pine & blk., $25. 6 cyl., auto, 2 wheel, dr. Good cond. (352) A/C super cab. $2,500. 564-4123 after 9am obo (352) 465-6580 1j-Jy c'9 r , IFIEDS Girls Clothing like new, very clean over 700 items 24 mos. to girls Sz. 10, $350. (352) 382-9996 HOOKED ON PHONICS new moth/ reading 5,6,7th urg $600 sell $450 344-4175 * BURN BARRELS * $8 Each Call Mon-Fri 8-5 860-2545 2 CORNICES, Off white, padded, 40" wide, $25 each. Rainbow Springs (352) 489-4445 4 Drawer Filing Cabinet $50; TV Cart $25, (352) 501-2850 4 Ford F-150, chrome rims & tires R235/70R16 $250; Set World bk. Encyl & Yrbks. $50. Adj. Dressmaker form $35. (352) 795-4159 4 x 4 Mirror unused $35. 16mm B & H Movie Projector $35. (352) 563-0022 24 ft. Werner Aluminum Ladder $75. (352) 522-0008 35 VHS Movies Excellent Condition $25 Beginner Guitar $25. (352) 563-0022 r -^- MONIDAY. OC:TOiEiR 17, 2005 11B CARPET 1000's of Yards/In Stock. Many colors. Sacrifice352-341-2146 CARPET FACTORY Direct Restretch Clean * Repair Vinyl Tile * Wood (352) 341-0909 SHOP AT HOME! CITRUS FANS Custom lighting, fans, remotes: Dimmers, etc, Installed Professionally Robert S, Lowman Lic.#0256991 422-5000 EWA-Marine Underwater Camera Housing $35 Inflatable Boat w/ oars $25. (352) 563-0022 Fabric for Sale $100 for all. (352) 527-7425 Fireplace, 35" elec. w/glass doors, blower & dark cherry mantle cabinet, New cond, Org. $1500. Sell $1000. (352) 249-3136 FIREWOOD Oak, Cherry, Hickory Mix, Seasoned (352) 726-9476 or 860-2214 Flash Fryer, Ultrex, $30 Feather Bed, Double, $25. (352) 563-5113 Fred Thomas Fish Prints Oak framed, $75 each. Refrigerator, Needs work, $25. (352) 501-2850 Gas Grill with tank $20. Component Stereo Set $250. (352) 465-7747 Gas Stove $200. Glass Display Case, $100. (352) 302-8673 GENERAL Transfer VHS homevideo to CD. (352) 628-3049 HANDMADE QUILT Wedding ring pattern, pastel shades. $200. (352) 344-4995 Jacuzzi Tub, Lrg, good cond. $300, (352) 621-0282 JAZZY ELECTRIC SCOOTER jazzy electric scooter. cost 1200.00 will sell for 400.00 firm (352) 220-6080 OAK PEDESTAL DINING TABLE with leaf, glass top, 5 chairs, good cond. $250. PRO-FORM TREADMILL Space Saver $150 (352) 726-6665 PVC POOL FURNITURE $150. Cement water fountain, $150 (352) 726-7982 QUEEN COMFORTER crocheted, ivory, with shams & duster,like Schwinn 27" Bicycle 10 speed, very good, $35. or trade for Riding lawn mower? (352) 249-9160 Shed Full of Flea Market items all for $65. (352) 637-9521 Smoked glass dining room table w/4 chairs, $200. Man's 14K gold bracelet, $500. (352) 628-7068 Leave message SPINET PIANO in good cond, $600; DORM. SZ. REFRIG. $50. (352) 527-8328 Technics Stereo w/cabinet & speakers $100. Pawn Shop Cabinet w/ safe. $50. Excel. Cond. (352) 527-7798 TV Satellite Dish with remote & receiver $125. 2-4' flourescent fixtures w/bulbs incl. $30. (352) 249-4445 USED CARPET Excellent cond. $150 or best offer (352) 341-4449 WANTED TO BUY Rail Road Rails Not the wooden ties but the iron rails. (352) 795-1664 L/M and I will get back w/ you. Thanks. WE MOVE SHEDS 564-0000 YERF DOG GO CART 150 cc, with Independent suspension, hydraulic brakes, elec. start, 2 seater, bucket seats with belts, Spider box frame, red, $800 obo (352) 621-5584 CREDIT CARD MACHINE ICE 5500+ includes rotating stand, orig, cost over $3,000, selling for $350 obo (352) 860-1990 PROFESSIONAL BOW RIBBON MAKER includes 26 rolls of Qualatex ribbon, orig. cost over $1,000 will sell for $450 GIFT BASKET SUPPLIES including how to do videos, wrap, ribbon, boxes, etc, $300 (352) 860-1990 I pi Freedom Wheelchair or Scooter Lift, exterior 6 mos. old, $600. (352) 621-0537 LIFT CHAIR blue velvet like material needs good cleaning !works greal! $250 obo evenings 352-527-4310 Shop Rider Electric Mobility Scooter good condition, I ID w/ lights & charger $400. o0o (352) 564-8685 Baldwin Organ, W/midi, excel., cond. $150. (352) 527-7798 CASIO ELECTRIC KEYBOARD PIANO with bench, plays rhythms, like new, $800 (352) 860-1554 be- tween 9:30a-11:30a ORGAN Yamaha Quintone, full fool pedals, keyboard & rhythm, $2,000. (352) 637-0634 PIANO WITH BENCH Kimball, walnut console, excellent condition $800 cash (352) 344-3935 Spinet Piano Hobart M. Cable. Dark mahogany finish, good cond. 450. (352) 621-8027 BODY SOLID 4 station, like new, cost $1,500 new, will sell for $900 obo (352) 341-3351 EVERLAST 100 LB. heavy bag with stand and speed bag. Like new cond, Sold new over $250. Asking $125, with gloves. (352) 637-2647 Nordic Track Stand up Elliptical glider, like new, $350. (352) 341-4848 Treadmil $150. OBO Welder Weight Bench w/ squat bar & weights $200. OBO (352) 746-3493 or 220-8434 Treadmill, Vitamaster, like new, $200. Ab Lounger, $50. (352) 621-0537 I0I M Birds Underwater Dive Center Selling out last years rental Scuba gear. 1 yr old. Quality Scuba Pro, Store hrs 9am-5pm Brand New, Nike Staff bag $100. (352) 746-7785 GOLF CLUBS, Tommy Armour, numerous golf balls, bags, cart, 5 woods & more, $300/obo (352) 860-1319 p.Sorin .mGos., BROWNING SHOTGUN Light 12 gauge 2 3/4, good shape, $399/obo (352) 726-2723 Golf Clubs: Left Handed McGregor Battlesticks, full sel w/ 2 wedges, $175. 352-601-3172 JENNINGS .380 Auto Pistol, Bryco Mod. J38, chrome/black grips, 2 mags. Ammo. $150. (352) 795-6736 JENNINGS COMPOUND BOW, includes Wood Stream field locker case, many extras, asking $350. Inverness (813) 478-1239 cell KAYAK RACKS Yakima kayak racks, 66 in. wide. high towers $175.00 cash only 352-428-8855 POOL TABLE Slate top, regulation size, includes all accessories. $650. (352) 726-2917, Call for details, $2450. (352) 564-0808 16' TANDEM AXLE With brakes, new June '05, 2" ball, black, 2" pressure treated deck. $1275 (352) 564-0808 5' x 10' Utility Trailer, Exc. Cond, expanded metal, Mesh, front & sides, $800. (352) 274-1403 8X24 NEW Cargo Trailer Used 1 time$6,000 (352) 382-2715 BUY, SELL, TRADE, PARTS, REPAIRS. CUST. BUILD Hwy 44 & 486 HAULMARK Enclosed Car Trailer. 8 1/2x20'. Lots of extras. Bought new, used once. $5800. OBO 352-697-2995 Baby crib, wooden, excel, cond. $75. Rocker, wooden, very pretty $40. (352) 72o 0708 Todler Bed ,-', irr sheets, $5C an 1, - Toys, $100. firm. (352)'746-3493 or 920-8434 rJ^ -9')^** 2 r', 'r Zg~\c~a $c u ' (352) 563.5966 JIu ij 2JJ ,i- - I' * C ' .4' Chronicle Classifieds In Print & Online I-- I ------ ---- MMMM9 will, F I ago- . 12B MONDAY, OCTOBER 17, 2005 -S^ BUYING OLD & VINTAGE Items. Incl. Furn. by the pc. or entire contents. 352-795-4490/257-3235 BUYING OLD WOOD BASEBALL BATS Any condition. Baseball gloves & signed balls. (727) 236-5734 EVERYTHING IN YOUR GARAGE power tools, NOTICE Pets for Sale In the State of Florida per stature 828.29 all dogs or cats offered for sale are required to be at least 8 weeks of age with a health certificate per Florida Statute. 2 BETA TANKS 5 gallons w/dividers & lighted hood, $15 each 10 GALLON REPTILE TANK w/screen & Zoo med Tri-light. $50 (352) 746-3813 3 FERRETS 2 cages. 1 2 story cage, 1 single cage. Very friendly, $175/all, will separate. (352) 628-0048 AKC LAB PUPS Adorable block heads- Health certificates -BIk &'Ylw- 352-613-2527 Aquarium Tank 150 gallon, w/stand and many accessories. $800. obo Call after 6 (352) 344-5436 Free 2 male Grey Hounds (352) 795-4560 Humanitarians of Florida Low Cost Spay & Neuter by Appt. Cat Neutered $20 Cat Spaved $25 Dog Neutered & p start at $35 (352) 563-2370 JACK RUSSELL PUPPIES $250, purebred, Inver. (352) 201-9079 LOVING CATS Brother&Sister 7mo fixed pair. Will come with supplies/vet rec. $40. (352) 726-4408 MINIATURE DAPPLE DACHSHUNDS w/health cert. Choc., Blue, 1 long hr. female. $375 each. 352-621-0329 MINIATURE POODLES Apricot, 1 male, 2 - female CKC Registered (352) 201-0988 or (352) 344-1861 YELLOW LAB PUPPIES AKC Reg., All shots, $200 each (352) 637-2065 CRYSTAL RIVER 2/11/2, extra clean, $525 mo. (352) 563-5117 DW 2) 476-3448 Hernando/Apache Shrs Rent/sale. 2/2, First, last, & deposit. No pets. ' 352-795-5410 HOMOSASSA 2/2, C/H/A, fully furn. long or short term lease, great location. Ideal for Seniors. Avail. 11/1 (352) 746-0524 HOMOSASSA DW, 2/1, Scr. Porch, deck, CHA, Beautiful 1 acre. Autumn SI., czMbiUHoe Hernando, 2/1.5, possible owner finance make offer (352) 726-6199 or 422-3670 Homosassa Lot Space Avail. In nice, quiet, clean park. Lawn, grbg, wtr, sewer, incl. $186/ mo. 352-564-0201 Inverness DW, 2/2, newly remodeled, 50+ Community $32,000.(352) 746-5606 1969 MOBILE HOME on 2/1,Off Croft Avenue Ex. Cond, 100' x 200', behind Wal-Mart, Inv. $47,500. (352) 422-0605 '98 FLEETWOOD, exc. cond, 4/3, 2200 sq.ft. fireplace stocked pond, secluded, 1.8ac, $127,000. 727-251-3012 or 352-503-3270 rma. (352) 795-8822 LAND/HOME 1/2 acre homesite in country setting. 3 bedroom, 2 bath under warranty, driveway, deck, appliance package, Must See, $579.68 per month W.A.C. Call 352-621-9183 Mini Farms, 2V2 AC. 2/1 MH, Pool, Jacuzzi, New i0X16 shed, 2 car garage (352) 563-2328 i-, BEVERLY KING 352-795-0021 Specialist in Property Mngmnt/ Rentals. beverlv.kina@ centurv21.com Nature Coast Crystal Palms Apts 1& 2 Bdrm Easy Terms. Crystal River. 564-0882 INVERNESS Ultra clean 1/1, cent H/A, SR 44-E $500 mo (352) 726-1909 2/1 '1/2 Smuggler's Cove Camp. Furn/renovated w/boat slip in springfed canal. W/D, linens, $1100/mo 352-266-9335 CITRUS HILLS FOREST RIDGE VILLA Spacious, immaculate, 3/2/2 unfurn, clubhouse, pool. maint. free, great location. (352) 637-3692 CITRUS HILLS MEADOWVIEW VILLA 2/2/1, Unfurn Na NeTs LONG TERM OR RENT WHILE YOU BUILD $895. plus Utilities Owner (352) 746-1094 CRYSTAL RIVER Waterfront w/ Gulf access, Golf Course 2/2Y2+ FP, Crprt, $825/ mo. Moore & Moore RE Co. (352) 621-3004 INVERNESS 3/2 Townhouse, exc loc $750mo,lststs, $300 sec. (352) 344-9225 SUGARMILL WOODS 2/2/1 Villa on Golf Course, Furnished, Lawn Serv. Inc., no pets, long term $825. short term includes utilities $1100. (352) 563-2203 or 422-6030 I 352-613-2238, 613-2239 BEVERLY HILLS 2/1 Caroort, Fla rm, new paint, carpet, $650 No pe't -s ras credit ck (352) 586-0478 BEVERLY HILLS 2/1.5/2, new inr point, rugs, apple $650mo, 1st, last & Sec Alex Griffin/Realtor (352) 527-7842 BEVERLY HILLS Newly Remodeled 3/2 on 1/3 ac, 1st, Isrsec $850. mo 352-746-5969 CITRUS HILLS 2/2 Condo CiTrus Hills 2/2 Brenrv.ood 3/2 Canterbury 3/2 Pool, Kensington 3j2Laurel Ridge 2/2 Beverly Hills Greenbriar Rentals, Inc. (352) 746-5921 33' Vacation Home in Turtle Creek Resorts ww carpet, fridge & stove, 20' scr. porch w/ carpet, 20x1 1 carport, $16,000. (352) 628-4608 CRYSTAL RIVER 55+ Park, like new inside & out. 2/1/2, By owner. Never smoked in. $16,500. (423) 476-3554 DW 2/2 Handicapp Acc. Across from Heated pool, Oak Pond, inv. (352) 527-4832 Homosassa Lot Space Avail, In nice, uiet. clean park, Lawn, grbg, wtr, sewer, incl. $186/mo. 352-564-0201 Immac. DW 2/2 Cmptr, rm,. Scrn, prch. dbl crprt shed, W&D. turn. Scm. rm.. utility rm., $600 1st. last, sec. (352) 382-1000 SClassifiedrooertv manaamentarouo. com Lakefront 1BRAWkly/Mo No Pets. (352)344-1025 BEST VALUE IN C. R.l LOST LAKE APTS Studio & 1 bdrm. Quiet & Secure. No pets Sr. Disc. 352-795-5050. Crystal Palms Apts i& 2 Bd,.n Easy Terms. Crystal River. 564-0882 HERNANDO 2/1 No pets, $420mo. (352) 465-2686 Homosassa 1/1 $400. 1st, last & Sec. No pets: 352-628-7300 or 352-697-0310 INV/HERNANDO Very nice 1 BR apts. Many lakefront Boat docks, boat ramp, fishing, etc. $495 mo. (352) 860-1584 INVERNESS 2/1 Inverness Triplex Clean and roomy First, Last, & sec dep, 341-1847 SUGARMILL WOODS Villa, near golf course. 2/2/1 No pets. $800 mo. sec., 1st & last, Lawn Maint. Included (352)382-0741 VILLA FOR RENT 2/2, Carport, Gar. Full Appl, $700 mo. 352-628-5980 Mon-Fri 352-628-7946 Sat-Sun CRYSTAL RIVER 2/1, with W/D hookup, CHA, wti/garbage incl. $500mo., 1st, Last & sec. No pets. 352-465-2797 INVERNESS 2/1 Nice w/garage, W/D Hookup, $595mo, $525 sec+ last. 352-344-9334 INVERNESS Ultra clean 1/1, cent H/A, SR 44-E $500 mo (352) 726-1909 HOMOSASSA Furn. Studio apt.suitable forl 352-613-2330 Daily/Weekly Monthly a- Efficiency Seasonal $725-$1800/mo. Maintenance Services Available Assurance Property Management 352-726-0662 Large 2/2, family room plus extra Florida room, garage, new appliances, freshly painted, etc, etc. $850. Good area. Call 746-3700 Real Estate Agent Homes from $199/mol 4% down, 30 yrs. @5.5% 1-3 bdrm. HUDI Listings 800-749-8124 Ext F012 INV. HIGHLANDS Nice home, 2/2/2, appli incl. scrn rm, No smok- ing/pets. $800mo.+ 1st, last, sec. (352) 341-3980 Janice Holmes-Roy Property Mgmnt. 352-795-0021 We need units furnished & unfurnished 352-795-0021 2-- 17-.. NATURE COAST RAINBOW SPRINGS 3/2/2 pool home, on golf crs, $1500/mo inc, lawn, grbg, pool care No pets. (561) 790-2217 FLORAL CITY Withlapopka Island 1/1, A/C, washer & dryer, dish TV, Util. paid, No pets. $575, + $500 Dep. 813-988-3899 Fully furn. 3/2 excel. cond. very clean. Quiet location. River access. $800/mo. 5691 Grove Park Rd. (352) 795-1988 HERNANDO 2/1/CP, CH/A, W&D, workshop, pond, $675. No smok/pets 746-3944 "0" TO LOW DOWN Brand NEW HOME, INVERNESS, Quiet street, Lovely 3 bed, 2 bath, 2 gar, 1756 total sq. ft., Inside laundry room w/ washer/dryer, $499, mo. P1,1% adj.30yr., 6.64% APR, cheaper than rent, $149,900 Broker Owned, Debbie Fischer, 727-251-4013 3/2/11/2 on Tamerisk Ave. $875. mo Please Call: (352) 341-3330 For more info. or visit the web at: citrusvillaa. Citrus Hills 1824 E. Monopoly Loop, 3/2/2, Caged pool, pvt. setting, $1400. 1st, last, sec. (352) 527-7825 CITRUS SPRINGS New 3/2/2, 977 W. Hemlock $900 mo. + sec., credit check. 989-644-6020 CITRUS SPRINGS Nice, 1.9 mi. from Bev- erly Hills, 3/2/2, Screen rm, No pets. $750 mo. 1st. 1st, Sec 352-564-8311 CRYSTAL RIVER Beautiful 2002, 3/2/Lrg fenced yard. boat storage, $1300mo. Contact Lisa/BROKER (352) 634-0129 CRYSTAL RIVER Refurbished 2/1 $600mo, Contact Lisa BROKER 352-634-0129 FLORAL CITY Lg. 3/1, Withapoka Island, $650/mo. 1st, & sec,, no animals. (352) 344-1546 or 464-3463 INVERNESS 2/1/1 Highlands, nice neighborhood, $650 (352) 860-2554 INVERNESS 2/1/1, CH/A, all new appliances, city limits, $625 1st, last, sec. (352) 726-4107 INVERNESS 3/2/1 1st/last/sec $900 next to lake 586-9785 avail. now!. LAUREL RIDGE 3/2/2 Pool, Jacuzzi, $1500/ mo. 352-527-1051 Medowview, Citrus Hills, 2/2, lanai, pool, perf., Coth. ceilings, 8 Zinnias Ct Call 1-800-233-9558 Ext. 1019 2/2 Nicely Furnished MH Homsassa on Canal, dock, car port W/D, no pets. 1st, Ist. + sec. $1100/mo 352-564-0201 Crystal River 3/2 turn, on spring. Dockage, finest neighborhood, $2500/mo. util. inc. w/cable & phone (352) 377-9922 or 258-6000 HERNANDO 3/2/2/Carport, located on Withlacoochee river $1,000. mo. 302-5875 apple, new carpet,cul-de-sac, clean. Lease purchase avail. $134,900. 352-564-1764 2/2 Nicely Furnished MH Homsassa on Canal, dock, car port W/D, no pets. 1st, 1st, + sec. $1100/mo 352-564-0201 CITRUS HILLS OCT-JAN 2/2 Condo, $875+ tax River Links Realty 628-1616/800-488-5184 CRYSTAL RIVER,FL 1/1 Completely Fur- nished condo on Kings Bay. 1100/month Boat slip on spring fed canal.(352) 302-9504 HERNANDO 2/1 4634 E Parsons Pt. Rd House, All new int. W/D, C/H/A furn w/all util, inc phone $1050/mo Pets ok (352) 344-9457 HERNANDO Beautiful Home 2/2, carport, turn., lakefrbnt access, outstanding view Utilities Inc. avail. Nov. May, $1,450.. My Loan Service added $2,400.00 to my client's bank account this year If your bank says NO Call me, Kira at 352-795-5626 Free Mortgage Consultation Ask For Program 99 MR CITRUS COUNTY ALAN NUSSO BROKER Associate Real Estate Sales Exit Realty Leaders (352) 422-6956 SOLUTIONS FOR TODAY'S HOMEBUYER FAMILY FIRST MORTGAGE Competitive Rates!! - Fast Pre-Approvals By Phone. Slow Credit Ok. - Purchase/Ref. - FHA, VA, and Conventional. w Down Payment Assistance. w Mobile Homes Call for Details! Tim (2) CBS FINISHED DWELLING UNITS. Currently 4 rentals. 2400 liv. area total, 4BR/4BA CH/A, country setting 1-AC mol $250,000 (352) 726-1909 Brokers welcome Duplex, 2/1 each Side, Iblk from 44, Partially remodeled. $134,000. (352) 795-2204 Over 3,000 Homes and Properties listed at homefront.com 1 bed, 1 bath, Nice size rooms, car port, beauti- fully landscaping, ready to move in $82,500 ne- gotiable (352) 465-7961, apple, stay, (352) 465-1904. M p.eeryHil 'H me 'Your Neighborhood REALTOR' call Cindy Bixler REALTOR 352-613-61-36 cbixler.154ampa Craven Realty, Inc. 352-726-1515 4053 W Alamo Dr. 3/2/2 Open Floor Plan on lacre. Relocating, 1700 sqft. AC. $225,000. (352) 249-0850 5745 N LENA Solar heated Pool home, 3/2/3 on 1 V2 ac, sec sys. Like new, many extras, $375,000 (352) 746-5691+Million SOLD!m Please Call for Details, Listings & Home Market Analysis RON & KARNA NEITZ BROKERS/REALTORS CITRUS REALTY GROUP (352)795-0060.com or call (352) 746-4160 RUSS LINSTROM , HAMPTON SQUARE REALTY, INC. rlinstrom@ digitalusa,net 800-522-1882 (352) 746-1888 2BD/Poss 3BD, 2 Baths (remodeled), LR plus Fam. rmt, 2 car garage. w/A/C, shed, fenced bkyrd. Everything new A/C, air handler, roof, irrigation, appliances, washer & dryer, carpet, tile floors, painted in/out, vacant on Cul de sac. $125,000 Agent owned. 352-212-3019 3/1, CARPORT, $124,900 or best offer Owner financing (352) 726-0717 BEVERLY HILLS (Home for Rent) 2 bed/Ibath, Fla room, new carpet, VERY clean! 750/month, No PETS. Please call Mike at (646)773-6844 BY OWNER, Oakwood Village, 3/2 pool home. Great neighborhood, $179,500. (352)212-2764 By Owner, 2/2/2 on beautiful cm. On21i Nature Coast For sale by owner. 3/2/2, 2320 sq. ft. eat-in kit., 2005 a/c, $197,900. Vacating 4/30/06. By Appt. only. (352) 746-9114 HOMES FOR SALE BY OWNER www. bvownercitrus.com RENT TO OWN - NO CREDIT CK. 2/1 /2 $725 mo. 321-206-9473 ;I jaderr.mi.;on corn. .Eu3.3N EEu * TRFDER'S i-I-- .,,.-~, 'A ~ ~,n in's LOCATION: The ride will begin at Suncoasi Bicycles located at he North Apopka Avenue Withlacoochee State Trail Head in Inverness. Hotdogs will be served at the completion of the ride. DISTANCE: Approximately 3o Miles. Ride begins at the Inverness Trail Head, heading South to Hampton's Bike Shop in Floral City/Istachatta, then back to the Inverness Trail Head. You are free to choose a shorter distance by riding to downtown Floral City, and returning back to Inverness (approximately T5 miles). REFRESHMENTS: Served following the ride at Chateau Chansez=. Free hotdogs, drinks and live entertainment. ENTRY FEE: aro0 Per Rider, which includes a 2nd Annual Cooter 8,- the Nightrider's Moonlight Bike Ride T- shirt. Children under z2 years of age must be accompanied hy an adult. All riders will be required to wear safety helmets, and have front and rear lights mounted on participating bikes, SPONSORED BY: City of Inve, ness, Suncoast Bicycle, Hampton's Bike Shop and Chateau Chanse=z For more information please dial 352-726-26ts or email ddavis@cityofinvernessonline.com Please detach and mail with checks made payable to: City of Inverness, 212 W. Main Street, Inverness, FL 34450 Last Name: _____First N: Mailing Addr,.ss:______ City. Sta., Znp: IF iMa, c Femal, ng,.: Pl o _.__ -slnrN si=,n P ..., Chn,.k on.) r S. FM ,L F XL Si-i- Mi ,,-s F ,'in,.l I plan 'o ride: m' erso gc n," o, ,- F 1; a. h -r, -. ,r j! .-iih, ,,n :n". r-d'" ,. L.p", injuryi on prinnrn,'d nAn5 whn: I in or hilId n a e. r- a oc r my minor c,-nl a n i re o my or leir E rticpancn in any bicycle rid- cn nducted by the city n n e ic, u in ik shoip and cha,'i t.chan Thnis rleas". isinitnded to discharge in advance the df iqern- i any mE r thr, e din rd. f dv, en ,h from an and ni liabdines acting osn of or -. neced in an" way wat h my a iciv 'n :"h m "nl r chld m in" Ike ad-.< evn hou Ih ha ny nman ,rni out o E negligence n cnri -s.neess n the parn ofrln per- n or enta~irs n ncd a,,. : c l; ,r mv 1 el or mF m:nn r child orphynicav condnt, ond g n i as propane e n o comn ete in the Invernness M Aon: Bike d, ad fre are n knv r n why I or my minor :hiId should ,in- prtcnp re. I- further understand hat eriou acd.n n ts S c d ing ri .2:and "I":- ,I,-rr -t-s n .-c nnswnn proper .ren- qu npm nin udng, bu. notn n ited tlo helmeand f -eu and r b- se sghtEsdunng ci d A k w' rk- r'd.k ,f bcy e rndine, nnverthn ls. I herntv -gre, to sniume those risks for myself r m ; ,o r id a d r, ren E.sd h '!d h a r .di ie p e rsns o r ..in n n ,d w hE n i g h r E h e rw iE b- liEh h li m e (o r m y ir irs er ~igng for dma tE is ir inrioo :.d agr- i t i Eins wav E nr, ehnsk, nn, assumnnno or rsk in binding on my heirs and assigns. Sign tr e fi_ En _an _: ignatu: of P r. o nnainor: aIe: Sa W -: T-f a"g b .im~~uu r-0 -- m llE i t ,,K . c, c,, a,:l h,,e r intm 'i~ - Leat GOT INCOME? NO DOWN PAYMENT? ZERO DOWN LOANS 1-800-233-9558 x 10051 Recorded Message Get your FREE copy of "Five Easy Steps To Buying a Home" cir BY OWNER Fairmont Villa 3/2/2 Large, premium corner lot. New roof, newly painted. Security system, enclosed lanai Built-ins. $197,500 (352) 563-6388. Van Baldwin (352) 795-0021 List with Us & Get a Free Home Warranty & No transaction fees (352) 795-0021 Nature Coast BEAUTIFUL FAIRVIEW ESTATE HOME Situated on a secluded, wooded 11/. Mo. 1st, & security (352) 341-0952 or (954) 448-5081 HOMOSASSA 2/2 house, 1 acre, furn, dog OK. inc elec, water, irash $900 352-383-7686 LECANTO Nov-April 2/2, PFr 2 5ac No pets NS, $1,.K0 352-621-4865 C(LASSIFIEDS CITRUS COUNTY (FL) CHiRONICLE TOER 1 5 CITRUS COUNTY (FL) CHRONICLE MONDAY, OCTOBEiR 17, 2005 13B FREE REPORT What Repairs Should You Make Before You Sell?? Online Email debble@debbie Or Over The Phone 352-795-2441 DEBBIE RECTOR Realty One homennnw e"om HAMPTON SQUARE REALTY, INC. lindaw@ tampabay.rr.com 800-522-1882 (352) 746-1888 Woodview @ SMust sell, $159,900 (352) 726-5292 (727) 492-1442 '02, 3/2/1, new appl, new-carpetcul-de-sac, cleaenbease purchase 1 ,dvil,$1B4;900, S352-564-1764 352/2/2 HOME COMPLETELY REPAINTED, CBH BUILT IN 1995, VINLY TILE IN LIVING, DINING, KITCHEN GREAT FOR PETS. $170,000. CALL TROY 352-560-0163 AGENTS NEEDED New Inverness Real Estate Office. No Start up Fees Rea. Confidentiality Guaranteed. Resp to: PO Box 1498 Inverness F1l 34451 BRING THE MOTOR HOME! Appli, Separate gar. Asking $124,499, 818 Oak St. Karen 352-726-0784 352-483-4962 Celina Hills of Citrus Hills, 3/2/2, on 1S acre, 1726 sq. ft., island kit., Ig. MBR suite, $198,000. Priced to sell! (352) 344-2711. Cynthia Smith /o.*.,00. "I LOVE TO MAKE HOUSE-CALLS"-Refunaable Private Party Only fcr ,Te r1-e- -,ri -.rlr, r.1.3 oppl", ", .' Ust with me and get a Free Home Warranty & No transaction fees (352) 302-9572 N-- C-s21s Nature Coast For Personalized Service List with me Free Home Warranty & No Transaction Fee (352) 302-6602 Nature oas1 Nature Coast 3/2/2, Many up grades, 2356sq. ft. 715 NE 13th Terr. $159,500.(352) 564-1030 BY OWNER- AS IS Sale on 3 BR home. Many Inside updates. Offers considered. Asking $125,000 (352) 212-4835 List with me and get a Free Home Warranty & no transaction fees 352-302-2675 S 21I Nature Coast PALM ISLAND Waterfront, very close to 3 Sisters Springs 10 rms, 4/2/2, encl pool, 1.1 mm (404) 218- 5589 Mike Pauline Davis 352-220-1401 List with me and get a Free Home'Warranty & no transaction fee 352-220-1401 pdavis.c21-nc.com Nature Coast Donna Raynes (352) 476-1668 + ^ "Here to help you through the Process" wwwhomosdassa homesandland.com donna@silverkina oroDerties.com HOMES FOR SALE BY OWNER bvownercitrus.com 111v*, ,J/,Z/,2 uCl restricted area, 4 just completed move in ready, investor pricing for everyone $137k -$139,900. Wont Last! Realtors welcome, possible lease 727-271-0196, Realtor Spotted Dog Real Estate (352) 628-9191 m4inshing negotiable $245,000. (352)464-3171 BRAND NEW HOMES READY NOW! 3 BR/2 bath + Office 2800 sq.ft.SMW Homes have Granite Counter- tops, Stainless Steel appl. and much more. Available for immedi- ate occupancy! 800-585-4526 Ext 5748 Re/Max Partners Lu~r world first. 1_ lCi.'.+h,: -J': -4 A Citrus Hills 41m- Homes List with me and get a Free Home Warranty & no transaction fee 352-228-0232 9 21I Nature Coast Palmwood Cabana Courtyard, 6 yrs old open, spacious 2/21/2/2,$249,900 (352) 382-4780 Reduced by Owner 3/2/21/, Updated, 1915 sq. ft., Ig. kit, w/ cathe- dral ceiling, Ig. solar heated pool $257,900. (352) 586-6696 SUGARMILL WOODS Golf Course Home 3/2, pool, fireplace, on Oaks Course, must seel!! $275,500. CITRUS REALTY GROUP (352) 795-0060 WAYNE CORMIER Here To Helpl Visit: waynecormier.com (352) 382-4500 (352) 422-0751 Gate House Realty -".LJ Inverness ca Homes I 3.9% Listing Full Service/MLS Why Pay More??? No Hidden Fees 20+Yrs. Experience Call & Compare $150+Million SOLD!!! Please Call for Details, Listings & Home Market Analysis RON & KARNA NEITZ BROKERS/REALTORS CITRUS REALTY GROUP (352)795-0060. FREE REPORT What Repairs Should You Make Before You Sell?? Online Email debbiefdebbie rector.com Or Over The Phone 352-795-2441 DEBBIE RECTOR Realty One homesnow.com. FOR SALE BY OWNER Outstanding custom, contempt. pool home. 5/3/3, 4200sq.ft. on priv, %/4ac. Lg. state BroKer/ Kealror Over 3,000 Homes and Properties listed at homefront.com REAL ESTATE CAREER Sales Lic. Class $249. Now enrolling 10/25/05. CITRUS REAL. ESTATE SCHOOL, INC. (352)795-0060. SEEN THE REST? WORK with the BEST! Deborah Infantine Top Sales Agent 2004* (Inverness Office) EXIT REALTY LEADERS (352) 302-8046 Over 3,000 Homes and Properties listed at homefront.com SWEETWATER HOME In the ENCLAVE, 2746 sq.ft. model home cond Pool, Fireplace, 11' ceil- ings. Many extras, $389,000. 352-382-3879 1 11 ALA NUS ALAN NUSSO (2) CBS FINISHED DWELLING UNITS, Currently 4 rentals. 2400 liv. area total, 4BR/4BA CH/A, country setting 1-AC mol $250,000 (352) 726-1909 Brokers welcome 3 BED 2 BATH BANK FORECLOSURE! Only $24,900! For listings 800-749-8124 Ext H796 HOME FOR SALE On Your Lot, $103,900. 3/2/1, w/Laundry Atkinson Construction 352-637-4138 Lic,# CBC059685 SUGARMILL WOODS Golf Course Home 3/2, pool, fireplace, on Oaks Course, must seel!! $275,500. CITRUS REALTY GROUP (352) 795-0060 Vic McDonald (352) 637-6200 Realtor My Goal is Satisfied Customers REALTY ONE IIII I o r1. ,1, i Wi (352) 637-6200 We're Selling Citrus!! NO Transaction fees to the Buyer or Seller. Call Today Craven Realty, Inc. (352) 726-1515 daily newspapers in Citrus County The fastest growing newspaper in Citrus County... S Senate novases siz More Citrus Countians than ever before are Discovering the Chronicle Over 3,000 Homes and Properties listed at homefront.com FAMILY HOME 4/2 Scrn prch. 2 story w/ barn, on beautiful 21/2 ac. 2 wells, 1 V2mi. from 175. St Catherine area $195,000. 800-315-0680 Over 3,000 Homes and Properties listed at homefront.com QUIET LIVING 2/2, car- port, new appliances, vaulted ceiling, many upgrades, pool & other amenities. $139,700 Call Owner 352-302-3467 SPACIOUS TOWNHOUSE priced to sell. Gospel Isi. 1500 sq,ft. liv. area. Sscreenlanai w/hottub, 2-story, 3/2-1/2/1 w/Up- grades $129,500 (352) 860-2786 or 220-1008 SUGARMILL WOODS Beautiful turn. 2/2 scrn. lanai, pool, carport, immed, occupancy $155,000. 352-628-3899 (2) CBS FINISHED DWELLING UNITS. Currently 4 rentals. 2400 liv. area total, 4BR/4BA CH/A, country setting 1-AC mol $250,000 (352) 726-1909 Brokers welcome Over 3,000 Homes and Properties listed at homefront.com WAYNE CORMIER Here To Help! Visit: waynecormier.com (352) 382-4500 (352) 422-0751 Gate House Realty I I SUGARMILL WOODS Golf Course Home 3/2, pool, fireplace, on Oaks Course, must see!! $275,500. CITRUS REALTY GROUP (352) 795-0060 CITRUS REALTY GROUP 3.9% Listing Full Service/MLS Why Pay More??? No Hidden Fees 20+Yrs. Experience Call & Compare $150+Million SOLD!llcv I List with me & Get a Free Home Warranty & No transaction fees 352-634-1861 Nature Coast Jocelyn Adams Domson Realty Services Specializing in all your Real Estate Needs - -I..' s ].0ii ..r i ,De I 3 s.l -r,3, , 352-795-0455 CT-ASSIIIFYEIDS . L G LR : I " 34B MONDAY OCTOBER 17 2005 F^4lb yO!^ Crystal Shores, 3/3/den, dock, boat slip on 2 lots, porch w/ vinyl windows, overlook gor- geous lagoon min. to gulf, excel, cond. appt. only (352) 798-7593 HOMOSASSA BLUE WTRS Island Pt. Hm. 4159 sf. 3/3 suites, sunken LR w/FP. 180deg wtr vw. A must see. By owner, $863,000. 352-628-4928 LET OUR OFFICE GUIDE YOU! Plantation Realty. Inc. (352) 795-0784 Cell 422-7925 Lisa VanDeboe Broker (R)/Owner See all of the listings in Citrus County at Licensed R.E. Broker -Leading Indep. Real Estate Comp. Citrus, Marion, Pasco and Hernan- do buu Tracy Destin r- ^ RDomson Realty Services Specializing in all your Real Estate Needs Please call for a free MarketrAnalysis 352-79-;;0455 Waterfront Pool Home 3/3/2, beautiful lot, 5115 Deepwater Pt. Riverhaven $598,500 352-628-5650 oak kitchen, new boat dock, Just move in. Tennis Courts, Heated pool, Maint. Free. $212,000.(727) 726-3037 (727) 647-6698 cell YANKEETOWN 2/1 On deep water canal, woodburning fireplace. encl. Fl. rm. boat house w/ lift, 24x25 wkshp. Seawall & dock. $369,000. OBO (352) 447-1758 -E Ihomesold.com I AC SECLUDED Upscale Inverness Highlands neighbor- hood. Wooded. $49,000 OBO. (352) 726-7586. 14.7 Ac. Rolling Posture- land 4791 E. Stage- Coach Trail, Floral City This Is the property dreams are made ofl Homes Only I per 10 ac. $299,000 FIRM Call 1-352-601-3863 CITRUS SPRINGS (2) side by side 1/4 acre lots Backyard Pine Ridge. 43K ea. OBO. 276-579-9883. CITRUS SPRINGS Corner lot, close to schools, good local. $39,500, ser. inq. only. 352-465-7996 CITRUS SPRINGS LAND Two 1/4 acre lots back to back, services in road, $35,000 @ or both for $65,000 727-734-1139 Crystal River FL 30 Ac. Subdivision 2 miles W. of U.S. 19 on Ozello Trail. 24 lots are buildable & ready for permitting. Brokers Wel- come Don (352). 274-3164 Robert (352) 208-6285 Forest Lake North, Over 1.25 acres, Well, septic, & elec. impact fees paid, $45,000. (352) 634-2379 I Go1 e.o ursIuib r[peLly I 10.8 ACRES ON HWY.19 Great locale near Inglis 14 mi. N. of Crystal River Minutes to State Park, Golf, hunting, fishing & boating. $185,000. 813-484-9096 1 -f ACRE on a cul-de-sac Rd. only 25 total lots on street. Across from Lake Russo $88,000. (305) 451-1921 1.22 ACRES in Inverness SImpact fees paid. (652) 299-6370 Citrus & Marion Counties. Many Lotsll Many Areas! $18,000 and up. Call Ted at (772) 321-5002 Florida Landsource Inc CITRUS BUSHHOG Bobcat/Debris removal Lic.#3081, 352-464-2701 CITRUS-OCALA-PORT CHARLOTTE, OVER- SIZED & 1 over V2acre 9645 Bby PRESTIGIOUS BUILDING LOT FOR SALE, close to the Plantation Hotel, near to waterfront, 100x146, Bargain Price $55,000 Call Now (352) 601-2168 RIVERHAVEN VILLAGE 85x183 11754 W Fisherman Ln $60,000. (352) 628-7913ier.com (352) 382-4500 (352) 422-0751 Gate House Realty Front of lot faces course, private road. (352) 344-1232IS 120,000 call 352-286-4482 very motivated to sell JUST UNDER 5 ACRES woode, In the heart of Floral City $190,000 (352) 726-7446 PINE RIDGE ESTATES Prime 1.06A Level Lot large Oaks. 4563 N. Lena $113,000. (352) 621-6621 PINE RIDGE LOT 1.5 acre lot in Pine Ridge for sale. $120,000 OBO. (303) 638-3531. PRIVATE OWNER MOVING. Grab these beautiful Citrus County lots across the st.from Lk Rousseau, unobstruct- ed view,lac. 120m. Lucky Hills /2 ac. 30-35m. Call for emailed info. Close in 30 days and Save $$$. 727-644-8228. WANT A BETTER RETURN ON YOUR MONEY? 26'8" Motor Cruiser, & trailer. Volvo Penta engine with twin screws, Absolutely stunning cond. Including all luxury items ie: air conditioning, etc, Bargain Price $32,000 Call Now (352) 601-2168 H HANDYMAN SPECIALS 10 PONTOON BOATS 18'-30' Priced From $995.-$8,450. 2 DECKBOATS Priced From $1,995.-$2,995. I I CRYSTAL RIVER MARINE L i .ll.OBO. (352) 726-6856 MERCURY, 20hp, outboard, $575. (352) 726-8744 SEADOO Jet Ski, with trailer, $3,500 (352) 726-1333 or (270) 217-9832 0000 THREE RIVERS MARINE We need Clean used Boats NO FEES !! AREAS LARGEST SELECTION OF CLEAN PRE OWNED BOATS U. S. Highway 19 Crystal River 563-5510 FISHING I V TACKLE & SUPPLY .ABSOLUTE. LIQUIDATION *THURS. OCT. 20. 4000 S. Fla. Ave. Hwy. 41-S Inverness PREVIEW: NOON AUCTION: 5 PM 1000's of new & vintage plugs, poles, reels & access. I Salt & fresh water, Fabulous collect. A Must Attend Sale for the outdoorsmen See Web www. dudleysauction.comrn DUDLEY'S AUCTION (352) 637-9588 AB1667 AU2246 12% Buyers Premium 2% disc. cash/check --- --- J 1987 Sportscraft, 25ft. walk around cud- dy, 1989, 200 Evinrude, w/trailer, needs TLC, $4,500. (352) 613-4071 1995 15' JET BOAT SEADOO SPEEDSTER TWIN ENGINETRAILER EXTRAS INCL. $4,900.00 STEVE 352-634-2175 14' ALUMINUM AIRBOAT 14' aluminum airboat with 3' solid rake, S.B. chevy 400+ H.P.,CH3 belt drive,3 blade 78" powershift prop. ano- Sd.OBO (352) 564-0301 18' PONTOON 2003 Lowe,50hp stroke Yamaha,cover & trailer, $14,500 (352) 341-3914 AIRBOAT 14' Alum. Diamondback deckover, w/splash- guard, SS cage & headers, Cadillac 500, VI Blade warp drive $9500. (352) 621-7681 Bayliner Bowrider Rebuilt eng. New int. & covers, $3500. obo or Trade + cash for newer Pontoon? 352-795-8792hp Evinrude, new trailer, Deceased Sons, (352) 628-2855 CLOSEOUT ON NEW BOAT TRAILERS 12-33FT in stock Won't Last Long! CROWN LINE No pets, non smoker $29,500. (352) 527-3291 Search 100's of Local Autos Online at wheels.com ( IlI ,'. It .l. . Thor, Columbus 1993, 32', Chevy 454 eng., 44k, dual a/c, 5,000 onan gen..lots of oak cab., n/s, beautiful cond. Loaded. Must see! Asking $21,900. (352)746-6963 TRIPLE E DIESEL Class A MH, '85, 88K, sips 5, new mattress, well maint & kept. Beau. cond. $11,500. (352) 746-3813 Fish Hawk 18CC '02, Deep V. w/trailer, 115hp, many extras. Excel. Cond. $14,500. (352) 795-9366 Fishg Boot, Motor &Trider, 14' adum.,25hpJohnson, rebut. Al in excel cond. Mustsee! $1500. (352) 464-3205 Hawaain 25' speedboat, SS out- board bracket, Alum tri. motor avail. $3000 OBO. (352) 527-3229 HURRICANE '99, 22' Deck Boat, 115 Yamaha, excel. cond. $12,500. (352) 726-7505 BOAT SHOW PRICES NEW SWEETWATER PONTOONS From: $11,395.00 NEW HURRICANE DECK BOATS From: $16,995.00 Crystal River Marine 352-795-2597 Open 7 Days Kayaks 1 single/I double, $1000 for both, paddles included (352) 563-5449 NEW & USED PARTS All Makes & Models, Dockside Service Call (352) 795-1681 NOVA '01, 18ft, 115HP trolling motor, complete elect. package, polling plat- form continental trailer $8,000. (352) 400-1951 POLAR FLATS BOAT '95, 17' 75HP Yamaha, bimini top, CC, fish find- er, compass, Many extas. Trlir $6,000. (352) 465-9395 PONTOON 18ft., good shape $3,500. (352) 628-9688 PONTOON 1999, 22', Crest, 50hp Big Foot Merc, 4strk, Irg live well, front ped. seats, fish finder, porta pot w/ encl., bimini, 03 Trl, cover, looks & runs great, $8,900. (352) 382-7913 Proline 20', 1998, 150hp Mercu- ry w/cover. Excel Cond. $11,500. (352) 628-1145 or (315) 404-5753 RANGER 19' Runabout w/6351 Cobra Eng., Excel. cond. Nice roll-on-trailer Must see to appreciate. $3,500. obo or would consider trade. Call (352) 628-4227 SEA ARK '05,16'., tunnel drv. C/C L/W, C/G pack., push pole,BIRD 17' Day Sailer. Main & Jib Genoa. New 2,25hp outboard.Cuddy, trail- er, excel, sailing $1200. OBO 352-341-8465 SUN RAYlop, VHF, AM/FM/CD, fish finder, aluminum trailer, $15,500. (352) 563-2500, (352) 212-9267 WELLCRAFT 1984, 211/2', w/1988 Johnson 175hp motor & kicker, trailer$6,500. (352) 628-3485 Allegro 1989, 28', Class A, 56k, 3 kilo. Onan Gen,, new radial tires, sleeps 6, $9500. (352) 563-5438 ALLEGRO 1991,31', class. A, base- ment, 57k mi., Onan gen., rear qn. bd. non smoker, newer tires, $16,500., 352-422-4706 COACHMAN 1975, diesel, $2000 (352) 795-5162 (800) 495-7805 FLEETWOOD '94 Prowler 5th wheel, 26FT, very good cond, $7,000 obo (352) 476-8315 FLEETWOOD '95 Flair 25' Class A, 454 Chevy, 46,500 mi. 3 KW generator, new tires & brakes good cond. $20,000. 352-746-0167 Holiday Rambler 1989. 34' Motorhome, Class A, Gas, 50k miles, all the goodies, $16,500, (352) 795-3970 HURRICANE '00, 31ff. class A, Ford V-10.28k mi., Warranty '99, white convertible, tan top & interior, abso- lutely immaculate, only 32,500 mi., chrome rims Must see, asking $28,500.(352) 270-3077 DODGE '01, Intrepid SE, all pow- er, small V6, great gas mi., new brakes & tires $4.800. (352) 795-6151 DODGE '87, Diplomat SE 4 dr. Good cond Nice fami- ly car, runs great. $675 obo(352) 628-4227 AFFORDABLE CARS 93 TAURUS.. .$2150 4DR, V6, AUTO. AC, SHARP 94 TEMPO 2175 4DR, AUTO, AC, NICE 98 NEON........$2495 4DR. AUTO AC CLEAN 1675 US19-HOMOSASSA -*.^ AII1i CLASS HI-LO 17' ITT 2004, like new! $8,950. (352) 302-0778 LUXURY TT. '05, 33ft, full slide, SACRIFICE! $18,750. (352) 586-6801 PALOMINO '00, Mustang, 3 slide outs, shower, heater, toilet, AC $4,400. (352) 382-4235 TERRY 25FT TT, sleeps 6, A/C, with heat strip, elec. & gas water heater, $3,500 (352) 697-1252 2 CAPTAINS CHAIRS fits any fullsize van, $100 (352) 726-7982 CLASS II HITCH, Fits most Lincoln's, Mercury's & Ford's $175 (352) 795-5660, leave message if no answer Late Model 700R Rebuilt Transmission. First $750.00 gets it. Call (352) 628-4227. 628-2084 1995 SATURN SCI 77,000, Air Condition, $2800.00 Sporty White 2dr Coupe cd/am/fm 352-726-3747 -"-BIG SALE-* CARS. TRUCKS. SUVS CREDIT REBUILDERS $500-$1000 DOWN Clean, Safe Autos CONSIGNMENT USA 909 Rt44&US19Airport 564-1212 or 212-3041 Buick Skylark 1990, 93K, A/C, clean & rurn great $1200,OBQ, (352)560-7387 Cadillac 1993, Touring Sedan, leather, burgundy, 82K, EZ Mi$4,500. (352) 382-1735 CADILLAC 1996 Fleetwood, 4 dr. 144k, 5.7L, V-8, Good car, rear wheel drv. 1992 Cavalier, 4dr, runs & drives great cycle automatic, 130K, $1150 (352) 726-0345 CHEVY IMPALA 2000, 65k miles, some repairs needed. $7500/ obo. (941) 807-4722 Chrysler 300LMT. FORD 2000, Focus LX, green, approx 60K, very good cond., $5,300 OBO. (352) 746-4033 FORD '85 Crown Victoria. everything works, new tires & more under 70K mi. $950 obo Trade (352) 860-2347 FORD '93, Taurus, very good condition, runs great $1,000. abo (352) 563-2259 or 212-2448 FORD '99 Escort ES 4 dr, AC, auto, cass, con- sole/ buckets, clean, $3450. 352-382-4541 FORD CROWN VIC. runs exc. Good cheap trans. $650. (352) 527-2717 or 476-7031 FORD ESCORT 1998, 60k, $1500. (352) 795-5162 FORD MUSTANG '95, GT Convertible. 5spd, yellow w/white top. 109k. $6995. (352) 476-5464 Ford Tempo 1993, needs work but runs, $300,OBO (352) 726-9904 WE-FINANCE.YOU 100 + CLEAN DEPENDABLE CARS FROM-*350-DOWNI 30 MIN. E-Z CREDIT 1675-US19.HOMOSASSA HONDA, 2001, Civic EX, 2 dr Coup Exc. gas mileage, $9,500 (352) 795-2347 Honda Accord 2000, 4dr,, cold a/c, SPS., P.W., keyless entry, Alloy wheels, 113k, exc. cond. $8,900, (352) 302-6112 Honda Civic LX 2000,4 dr., 54K, a/c excel. cond. $9,000. (352) 592-3368 KIA 2003 Sedona, 13K miles, $11,000 (352) 344-1215 KIA SEPHIA '00, 5 spd. manual, cold air, runs great, excel. gas mi. Only 72k, $2,900. (352) 341-1103 LINCOLN 1998 Continental, 95K Hwy. mi., super clean, pearl white, gray leather, Alloy wheels- Michelins $6,750 (352) 527-1140 till 8pm LINCOLN 1999 Towncar, silver, w/ gray leather interior. All power, 45K mi., Stunning car, Full Service history, $13,000 (352) 601-2168 LOOK! Absolutely best priced trans. device, Land & sea. Jimmy Hooper 3795 S. Suncoast Blvd. Homosassa (352) 228-7378 Across from Wal-Mart Also device guaranteed to increase mileage 22%! LINCOLN 1985 Towncar, $300 (352) 795-5660, leave message if no answer MERCURY 1994, Special Edition Cougar, V8, 74K, Exc. In/Out, $4,200.OBO (352) 382-0312 after 5 Ciera SL, 4dr, loaded, AC, V-6, cass, auto, nice, $2850 Garaged. 352-382-7764 PONTIAC 1994 Firebird, needs motor, $1,000 obo (352) 212-7018 SATURN, 1997', Wagon SW2, auto, good on gas, $3,450, (352) 344-4383 Search 100's of Local Autos Online at wheels.com (. ) i l if' I.[* ,. TOYOTA AVALON XLS 2001, 1 owner, fully loaded, leather, exc. cond. 48,500mi. $16000 firm. (352)489-5665 Toyota Corolla 1982 Wagon, Cold A/C, Everything original, mint cond. $1500.080 (352) 270-3254 TOYOTA RAV-4 '97, 4cyl, 5spd, gas sav- er runs/looks great, dual snrfs, AC, $6,500 352-527-2717/476-7031 '97 Lincoln Town Car Pres.Sees, ttWhile ............ $6,995 '00 Caddy Sedan DeVille Loaded Sile Sha L ............. ... $11,990 '02 Lincoln Town Car LikeNe, ded! ........ $13,990 MANY MORE IN STOCK ALL UiNDER WARRANTY BUGATTI Replica Race Car, 1986, 4Cyl., VW engine $6,500. (352) 382-4727 CHEVROLET 1974 Nova, 2-dr., 350 auto., new tires, $2,800 (352) 637-3482 CORVETTE 1979 T-tops, 350 V-8, auto., PW, PS, PB, $3,800 obo (352) 628-2769 DODGE '67, 4 dr, Slant 6, looks /drives nice, 62K org. mi., new tires, $1900. Very dependable (352) 341-3543 after 10am EL CAMINO 1984 GMC, V-8, AT, AC, recent paint, fresh inte- rior, nice clean, daily driver, $3,700 9am-9pm (352) 465-7730 FORD MUSTANG conv., 1966, V-8, auto., newas Part. restored in prim- . ered cond. Also '79 Parts truck + many misc parts, doors, chrome, etc. Asking $8500. Call Frank 637-0397 1994 FORD F150 1994 ford f-150 cold a/c good running truck $3000 or trade 352-341-4123 2000 SONOMA 62K mi, Air, CD, Bed Lin- er & Cover, Gd Condi- tion, New Tires & Brakes, $4950. 382-5323 FodF5 72-13 CHEVROLET 1986 Silverado, red, 354 barrel, true duals, $3,900 (352) 344-9575 Suburban 1990, 4 wheel drive, 5.7liter, 145k, a/c tow pkg., excel, cond. Sr. owned. (352) 860-1308 DODGE '03, Ram 1500, quad cab, 48k mi., asking $16,900. 352-212-2243 DODGE 1999. Ram1500 SLT. Club Cab, 1 female owner, Exc cond, every option, under warr., looks, runs & drives as new, $9,300. (352) 726-3730 L/M Dodge Dakota 1991, Auto, V-6, new tires, runs good, needs paint. $2,500., OBO (352) 527-1591 Dodge Ram '04, SLT, 1500, V-8, reg. cab. 20" tires, allod rims, 17k, two tone blue & silver $16,500. OBO days (352) 628-7888 eve. 382-7888 FORD 1988 Ranger, V6, Great work truck $1,000. (352) 527-1717 FORD 1990 F-250 new engine 4 x4, new tires, tool box, good truck, $2,800/obo. (352) 564-7928 FORD '89, F150, runs good, 6 Cyl., new tool box $1,200. obo (352) 795-3238 1999 F150 XLT, Ext cab, 4x4, 5.7 eng. ARE Matching Topper, 112K, Exc. Cond, 1 owner, $10,800.(352) 382-4702 FORD '99 F150 X cab, V6, Fiber Tonneau, automatic, pwr wind/doors, Exten. Warr., Extras, Exc cond, $ 8000, 352-212-2926 I h U RO.5. 1975, new clutch & motor, $1,200 (352) 860-0783 FORD RANGER 2002, $6,800/obo, 4cyl, 5 spd. Air Condition, Power Steering, AM/FM Stereo, Dual Front Air Bags, 4-Wheel ABS, Prem. Wheels super cab 2dr 352-726-6518 GMC SONOMA 1999 SLS, 61K mi. 5spd. Alloy wheels. AC, CD player, Fiberglass top. $6200.(352) 465-8233 Search 100's of Local Autos Online at wheels.com TOYOTA 1997, Tacoma 4x4, 81K, . 5spd., pwr, alloyd, 16" '. Tires, Exc Cond., $8,300 , (352) 860-2123 2004 CHEVY " SUBURBAN 18,500m, $24,900obo Fully loaded. Leather, Like New!! 352-302-2761 CHEVY Suburban, 1992, new eng. & trans. Frnt/rear air, AM/FM w/6 CD plyr. $4800. (352) 344-0047 CHEVY BLAZER LS 2Q01,4 door, 6cyl. Very well kept, lots of extras, $8,000/obo, (352) 527-1154/263-3122 FORD 1997, Explorer Sport, all pwr, 4 whl dr, runs great, high mileage, $3,500.(352) 563-0642 Search 100's of Local Autos Online at wheels.com 1.1 il R i p i,, , CITRUS COUNTY (FL) CHRONICLE 'il COUNTY (FL) CHRONICLE GMC 1989, 2500 4x4, stick shift, V-8 motor, $4,000 obo (352) 795-8933 GMC Z71 Black, ext. cab, stepside, lift, chrome roll.nerf, bush & rims. $8500, (352) 527-3229 1989 FORD F150 VAN $3000., less than 5 K on new engine equipped with wheelchair lift 637-9233 1994 DODGE :GRAND CARAVAN Runs & looks great. Well maintained. Dual air, 4 captains' seats. $2900 344-8153 CHRYSLER '01, Voyager, Minivan, . silver, good cond., new tires, 51,600 mi. $7,200. (352) 489-1486 Dodge 1980, 318 motor, runs good $400. (352)344-1485 DODGE '02 Grand Caravan Sport, 55K, loaded, $12,500. (352) 637-1728 DODGE '93, Ram 250, Prime STime Conversion Van S155k ml., excel, cond, $4,500. .(352) 465-6288 FORD S'96, Aerostar XLT, runs good, good MPH, good 2nd vehicle $1,950. (352),726-8412 Honda Odyssey - 1999, V-6,3.5 C, Vtech, privacy glass, 5dr., alloy ' wheels, auto. cruise, excel, cond., sgi. own,, low miles. $12,000 OBO (352) 746-1100 Search 100's of Local Autos Online at wheels.com Q ,i .L.?.,/ . SUZUKI '99 King Quad 4x4, new SViper tires, $2,500 S(352) 637-5595 or cell, 352-634-4327 '98 1448. w/2001 Go Devil 16HPtrailer, $2,400 (352) 637-5595 or cell, 352-634-4327 *ATV + ATC USED PARTS Buy-Sell-Trade ATV, ATC, Go-carts 12-5pm Dave's USA (352) 628-2084 SDune Buggy 5 pass., elec. seats, new motor, body & tires, street legal. $3700. (352) 527-3229 HONDA 200 .W/reverse, exc. cond. Front & rear racks, new l paint, $695. Ramps Extra $85. 352-563-2583 HONDA 2000 Rancher 4x4, new Gator mud tires, exc. bond. $3,250 firm (352) 341-2556 302-3035 Honda TRX400 '01, (race everything), $3700. Call for info. (352) 527-3229 HARLEY 1998 Sportster Sport 1200, saddle bags & many extras $7,000. (352) 527-1717 HARLEY DAVIDSON ROAD KING CLASSIC 1999 Orig owner, always ga- raged, Rider/Pass Back Rests; Tour Pack, more, 21800 mi, $12,500.00, 352-637-2661 HARLEY DAVIDSON ULTRA CLASSIC 2002 7K miles, loaded, minor scuffs and dings, save big and fix it yourself $13,750.00 352-270-3044 260-377-9662 cell Heavy Duty Home Made Trailer 8' Long X 3' Wide $800. firm (352) 613-4127 HONDA 1992 Shadow, excellent gas mileage, $1,500 (352) 726-7982 HONDA GT 650 Sr. owned. Classic. many extras. Absolutely like NEW! A great sport/ touring bike for beginner or exp. Best buy in the county! $3,200. 352-634-4685 KAWASAKI '01, Vulcdn 800,5k mi. excel. cond. $3,200. (352) 527-4122 Search 100's of Local Autos Online at wheels.com 486-1017 MCRN Notice to Creditors Estate &f John Z. Marzloff PUBLIC NOTICE IN THE CIRCUIT COURT FOR CITRUS COUNTY, FLORIDA PROBATE DIVISION Il- i- :0':,5-CP-1273 IN RE: FF-: -- JOHN S. MARZLOFF, Deceased. NOTICE TO CREDITORS The administration of the estate of JOHN S. MARZLOFF, deceased, whose date of death was September 3, 2005, and whose Social Security Number is 147-05-5258; is pending in the Circuit Court for Citrus County, Florida, Probate Division, the address of which is 110 N. Apopka Avenue, Inverness, Florida 34450. The names and addresses of the personal represent- ative and the personal representative's attorney are set forth below. All creditors of the dece- dent and other persons Octo- ber 10,2005. Personal Representative: -s- DENNIS DOTRO 4 Pine Drive Homosassa, Florida 34446 10 and 17, 2005. Search 100's of Local Autos Online at wheels.com ( Ili) .( I.l - Suzuki 2004 RM85 dirt bike, lots of extras & extra parts, great tires, $2000 (352) 563-5449 SUZUKI RF600 Sportbike, 1997, extras Good cond, $3000/obo (352) 341-4478 YAMAHA 2005 Silverado, 1700cc, V & H Pipes, w/ extras 2500mi, mint. $10,999 OBO. (352) 585-3399 Yamaha TTR 125L 2000,'blue/white, excel. cond., garage kept, Billet pow. exh.$1650. OBO (352) 628-7485 I M01- 522-1017 TU/MCRN CEB Case #0502-139 PUBLIC NOTICE NOTICE OF ACTION: Code Enforcement Board Case #0502-139 Address of Violation: 670 W. Colbert Ct,, Beverly Hills, FL 34465 Legal Description: AK#2575492 OAKWOOD VLG OF BEVERLY HILLS PHASE 1 PLATT BOOK 14 PG 10 LOT 2 BLK 205 To: Beverly Hills Development Corp. P.O. Box 640001 Beverly Hills, FL 34464-0001. 525-1017 TU36. 485-1031 MCRN Notice of Action-Quiet Title Key Center Foundation, Inc., etc. v. Walrath, et al. PUBLIC NOTICE IN THE CIRCUIT COURT OF THE FIFTH JUDICIAL CIRCUIT IN AND FOR CITRUS COUNTY, FLORIDA C i 1: ,r: J 6J _ KEY CENTER FOUNDATION, INC., a Florida not for profit corporation, 'Plaintiff, . v. FRANK J. WALRATH and ELIZABETH T. WALRATH, his wife and RALPH CASTLE and ROSE CASTLE, his wife, Defendants. NOTICE OF ACTION TO: FRANK J. WALRATH and ELIZABETH T. WALRATH, his wife RALPH CASTLE and ROSE CASTLE, his wife if alive, and if dead, her unknown spouse, heirs, de- visees, grantees, creditors and all other parties claim- ing by, through, under or against her and all other per- sons, known or unknown, claiming to have any right, ti- tle and interest in the lands hereinafter described c/o Carol Woody 7120 Elmbrock Lane, Harrison, TN 37341 YOU ARE NOTIFIED that an action to quiet title to the following described real property located in Citrus County, Florida: Lot 2, Block D, SOUTHERN HIGHLANDS UNIT NO. 1, as re- corded in Plat Book 3, Page 113, of the public records of Citrus County, Florida and that part at the SE 1/4 of the SW 1/4 of Section 30, Township 18 South, Range 18 East, Citrus County, Florida, lying East of Lot 2, Block D, of SOUTHERN HIGHLANDS UNIT NO. 1, as recorded in Plat Book 3, Page 113, of the 9th day of November, 2005, and file the original with the Clerk of this Court either before service on Plaintiff's attorney or immediately thereafter; otherwise a default will be entered against you for the relief demanded in the Complaint. DATED this 3rd day of October, 2005 BETTY STRIFLER Clerk of the Court By: /s/ Marcia A. Michel Deputy Clerk Published four (4) times in the Citrus County Chronicle, October 10,.17,24 and 31,2005. CLASSIFIED 521-1017 TU/MCRN CEB Case #0508-190 PUBLIC NOTICE NOTICE OF ACTION: Code Enforcement Board Case #-0508-190 Address of Violation: 7720 W. Balsa Ct., Homosassa, FL Legal Description: AK# 2797771, Parcel 4 of Unrecord- ed Sub on Citrus County Assessment Map 225C, further described in OR BK 623, PG 1416, Citrus County Rec- ords To: Betty Long & Mary DeJager 3665 E. Bay Dr. Largo, FL 3464189-1017 MCRN PUBLIC NOTICE Seven Rivers Regional Medical Center hereby requests proposals from licensed and insured parties to provide grounds maintenance for the hospital campus and medical office building grounds. The scope of the contract is as follows: * To promote the natural or developed beauty of the grounds. * To promote the health of plants, shrubs, and trees. * To provide a safe, clean environment free of hazards to persons and property, * To promote an efficient grounds maintenance serv- ice in a cost-effective manner. Interested parties need to show up at 9:00 a.m., Friday morning, October 21, 2005, for a tour of the grounds. Copies of the contract will be distributed during the tour. Contact John Marlynowski, Director of Plant Op- erations, 795-8322, for additional information concern- ing this request for proposal, Published one (1) time in the Citrus County Chronicle, October 17. 2005. 478-1031 MCRN Notice of Action, Summons and Notice of Advisory Hearing and Trial for TPR and Guardianship PUBLIC NOTICE IN THE CIRCUIT COURT OF THE FIFTH JUDICIAL CIRCUIT, IN AND FOR CITRUS COUNTY, FLORIDA JUVENILE DIVISION CASE NO. 2004-DP-463 IN THE INTEREST OF: K.L. DOB: 08/23/1991 A.O. DOB: 01/20/2004 Minor Children K1uveoes l15A"^N AI' A ieN rue AN iTssIr 'O ADViUOY HEtAKING ANU IKIAL I'UK IIVIEMINAIIUN OF PARENTAL RIGHTS AND GUARDIANSHIP THE STATE OF FLORIDA TO: Bunny Marie Oliver L/K/A 4926 W. Meadow Street Homosassa, FL 34461 You are hereby notified that a petition under oath has been filed in the above-styled court for the termination of your parental rights as to K.L., a female child born on the 23rd day of August, 1991, in Columbus, Ohio, and A.O., a female child born on the 20th of January, 2004, in Citrus County, Florida, and for placement of the chil- dren, with the Florida Department of Children and Fam- ilies for subsequent adoption, and you are hereby commanded to be and appear before the Honorable Iro 0. I-..,j: :'-D ij.j,- of the Circuit Court or another ,,- _- o ,-ir,-.. J r,,-3, the above 'cause. bt th(e Advi- *: s"...,-' 5.. I.ember 17, 2005, at 2:00 PM, and the Trial on November.30, 2005, at 9:00 AM, at the Cit- rus County Courthouse, 110 N. Apopka Avenue, 3rd floor, Inverness, FL 34450, YOU MUST PERSONALLY APPEAR ON THE DATES AND TIMES SPECIFIED. FAILURE TO PERSONALLY APPEAR AT THE ADVISORY HEARING AND TRIAL CONSTITUTES CONSENT TO THE TER- MINATION OF PARENTAL RIGHTS TO THESE CHILDREN, IF YOU FAIL TO APPEAR ON THE DATES AND TIMES SPECI- FIED, YOU MAY LOSE ALL LEGAL RIGHTS TO THE CHIL- DREN NAMED IN THE PETITION. YOU ARE ENTITLED TO HAVE AN ATTORNEY PRESENT TO REPRESENT YOU IN THIS MATTiER. October, 2005, at Inverness, Citrus County. Florida. (CIRCUIT COURT SEAL) BETTY STRIFLER, Clerk of Courts By: /s/ C. Lavertu Deputy Clerk /s/ Beth E. Antrim, Esq. Florida Bar No.: 370789 Department of Children & Families Child Welfare Legal Services 2315 Highway 41 North Inverness, FL 34453 (352) 860-5183' Published four (4) times in the Citrus County Chronicle, October 10, 17, 24 and 31,2005. Iand save money. You also get the best, limited * warranties* in the business. * And, right now, you can get a $1200 Rebate when you call Senica your 'Factory Authorized Dealer and replace your old air :orindilit:rir *ith a new, two-speed Florida Five Star InfinityTM System with Puron@. Smart air conditioner. Smart deal. :. 10-Year Lightning Protection Guarantee 100% Salilsfac:ion Guarantee * 10-Year Factory Parts & Labor Guarantee 10-Year Rust Through Guarantee :* 25% Minimum Cooling & Heating Cost Savings 30 Times More Moisture Removal SRaw i AirConditionin 81ate License CAC0082268 State License CFC057025 Visit us at: 1803 US 19 S, Crystal River 1-352-795-9685 1-352-621-0707 Toll Free: 1.877-489-9686 or visit O w -~~~~esoq -, I *. 0 5 - I-, I ,5 -1 -1 -- 7 *: ZDI 'only**_*-..-, -, 1*-0 -4 11s Your world first Need ajob or a qualified employee? This area's #1 employment source! Cl/assfieds 6 IBSIHB 483-1031 MCRN Notice of Action Thomas Riedlinger vs Marian M. Androvic, et al. PUBLIC NOTICE IN THE CIRCUIT COURT, OF THE FIFTH JUDICIAL CIRCUIT, IN AND FOR CITRUS COUNTY, FLORIDA CASE NO.: 05-CA-2389 THOMAS RIEDLINGER, Plaintiff, vs. MARIAN M. ANDROVIC and MARIA ANDROVIC, Defendants. NOTICE OF ACTION TO: Marion Androvic 393 W 49th Street New York, NY 10019 Maria Androvic 393 W 49th Street New York, NY 10019 YOU ARE-NOTIFIED that a Complaint for Specific Perfor- mance regarding the following real property, located at 08496 N Escobar Road. Citrus Springs, Florida, more particularly described as: CITRUS SPRINGS UNIT 17 LOT 22 BLK 1222 DESCR IN OR BK 571 PG 1004 of the Public Records of Citrus County, Florida. Parcel ID: 18E17S100170 12220 0220 Has been filed against you and and you are required to serve a copy of your written defenses, If any, to it on Darrin R. Schutf, Esq., plaintiff's attorney, whose address is Suite C, 1105 Cape Cora Parkway, Cape Coral, Flori- da 33904, on or before November 9, 2005, and file the original with the clerk of this court either before service on plaintiff's attorney or immediately thereafter; other- wise a default will be entered against you for the relief demanded In the complaint or petition. DATED on October 3, 2005. BETTY STRIFLER As Clerk of the Court By: /s/ M. A. Michel As Deputy Clerk Published four (4) times In the Citrus County Chronicle, October 10, 17, 24 and 31, 2005. 484-1031 MCRN PUBLIC NOTICE NOTICE OF INTENT TO USE. UNIFORM METHOD OF COLLECTING NON-AD VALOREM ASSESSMENTS The Town Commission of the Town of Inglis, Levy Coun- ty, Florida (the "Town"), hereby provides notice, pursu- ant to Section 197.3632(3)(a), Florida Statues, of its In- tent to use the uniform method of collecting non-ad, valorem special assessments to be levied within the Town for the costs of stormwater management capital Improvement projects and stormwater management system maintenance. The Town will consider the adop- tion of a resolution electing to use the uniform method of collecting such assessments authorized by Section 197.3632, Florida Statutes, at a public hearing to held at 7:00 p.m., November 8th, 2005, at the Town Commis- sion regular meeting, 135 Hwy. 40 West, Inglis, Florida. Such resolution will file at the Inglis Town Hall. In accordance with the Americans with Disabilities Act, persons needing special accommodations of an inter- preter to participate in this proceeding should contact the Town Clerk at 352-447-2203 at least seven days pri- or to the date of the hearing. Dated this 10th day of October, 2005 Sally McCranle, Town Clerk All interested persons are invited to attend. In the event any person decides to appeal any decision by the Board with respect to any matter relating to the consideration of the resolution at the above-refer- enced public hearing, a record, of the proceeding may be needed in such an event, such person may need to ensure that a verbatim record of the public hearing is made, which record includes the testimony and evidence on which the appeal Is to be based. Published four (4) times in the Citrus County Chronicle, October 10,17: 24.acL31, 2005. 472-1024 MCRN Notice of Action-Quiet/Confirm Title, etc. Sammie M. Johnston, et al. vs. John S. Hopkins. Sr.. et al. PUBLIC NOTICE IN THE CIRCUIT COURT OF THE FIFTH JUDICIAL CIRCUIT, IN AND FOR CITRUS COUNTY. FLORIDA CASE NO. 2005-CA-3952 SAMMIE M. JOHNSTON and MARTHA EVELYN JOHNSTON, a/k/a EVELYN JOHNSTON, husband and wife, Plaintiffs, vs, JOHN S. HOPKINS, SR. and SUE E. HOPKINS, husband and wife, the unknown spouses, heirs, devisees, legatees, grantees, assigns, lienors, creditors, trustees, and all other parties claiming by, through, under or against the above named Defendants, or anyone of them who are not known to be dead or alive; and all unknown natural persons if alive and if dead, or not known to be dead or alive, their several and respective unknown spouses, heirs, devises, legatees, grants, assigns, lienors, creditors, trustees, or other parties claiming by, through or under th6se unknown natural persons and the several and respective unknown directors, trustees, successors in Interest, shareholders, assigns, and all other persons or parties claiming by, through under or against any corporation or other legal entity named as Defendant; and all other claimants, persons, or parties, natural or corporate, or other form of legal entity, whose exact legal status is unknown, claiming under any of the above named or described Defendants or parties or claiming to have any rights, title or interest in and to the lands hereinafter described and involved in this lawsuit, Defendants. NOTICE OF ACTION TO: JOHN S. HOPKINS, SR. and SUE E. HOPKINS, hus- band and wife, the unknown spouses, heirs, devisees, legatees, grantees, assigns, lienors, creditors, trustees, and all other parties claiming by, through, under or against the above named Defendants, or any one of them who are not known to be dead or alive; and all unknown natural persons if alive and if dead, or not known to be dead or alive, their several and respec- tive unknown spouses, heirs, devises, legatees, grants, assigns, lenors, creditors, trustees, or other parties claiming by, through or under those unknown natural persons and the several and respective unknown di- rectors, trustees, successors in interest, shareholders, as- signs, and all other persons or parties claiming by, through, under or against any corporation or other le- gal entity named as Defendant; and all other claim- ants, persons, or parties, natural or corporate, or other form of legal entity, whose exact legal status is un- known, claiming under any of the above named or described Defendants or parties or claiming to have any rights, title or interest in and to the lands hereinaf- ter described and involved in this lawsuit. YOU ARE NOTIFIED that an action to quiet and confirm Title to the following real property in Citrus County, Flori- da' Lot 13 JOHN HOPKINS UNRECORDED SUBDIVISION: The East 147 feet of the West 882 feet of the South 300 feet of the S YV of the NW V tof the SE V1 of Section 13, Town- ship 20 South, Range 18 East, Citrus County, Florida, to- gether with a 1972 12' x 66' Sentry Mobile Home, I.D. No. STZ1173. Property Address: 1450 West Jackson Hill Court, Lecanto, FL 34461. Parcel I.D. No. 18E20S13 2A000 0130. Altkey No. 1522943; ana/or for declaratory relief has been filed against you, and you are require to serve a copy of your writ- -en defenses, if any, to it on James F. Spindler, Jr., Es- quire, JAMES F. SPINDLER, JR., P.A., Plaintiffs' attomey, whose address is 3858 North Citrus Avenue, Crystal Riv- er, FL 34429, on or before thirty (30) days from the date of first oublicoTion of This Notice, that date being No- vember 2, 2005. and file The original with the Clerk of Ths Cour' eciher bf'o'e service on Plantiffs' attorney or I medadTely thereafter, otherwise, a default will be en- Tee-a against you for he relief demanded in the Com- ...-ess, my hone anc so i of -he Court, on the 26th do, of SDeptembe, 2CC005 BETTY STRIFLER CLERK OF COURT By: /s/ M. A. Michel Deputy Clerk Pbis ed r hies n r, e Citrus County Chronicle, October *, i0 17 and 24. 2005 MONDAY, OCTOBER 17, 2005 15B 524-1017 TU/MCRN CEB Case #0503-149 PUBLIC NOTICE NOTICE OF ACTION: Code Enforcement Board Case #0503-149 Address of Violation: 8216 N. Lazy Trail. Crystal River, FL 34428 Legal Description: AK#2502681 PARCEL 21000-00L5 desc in OR BK 1736 PG 2276 To: Larry Dwayne Oglesby 9400 W, Anna Marie Ct. Crystal River, FL 34442888-1017 MCRN PUBLIC NOTICE NOTICE IS HEREBY GIVEN that the Board of County Commissioners of Citrus County, Florida, will hold a public hearing In the County Commission Chambers, on the first floor of the Citrus County Courthouse, 110 N. Apopka Avenue, Inverness, Florida 34450, at 3:25 P.M. on November 1, 2005, to determine the advisability of vacating, abandoning, discontinuing a portion of the plat of Citrus Springs Unit 24 (Section 25, Township 17 South, Range 18 East), and closing the existing street, alleyway, road, highway or other place used for travel, or any portion thereof described in the attached Exhib- , it "A", renouncing and disclaiming any right of Citrus County and the public in and to any land described on the attached Exhibit "A". NOTICE TO THE PUBLIC If a person decides to appeal any decision made by the Board of County Commissioners you are hearing or speech impaired, use the TDD tel- ephone (352) 341-6580. VICKI PHILLIPS, CHAIRWOMAN Board of County Commissioners of Citrus County, Florida Exhibit "A" BEGIN AT THE MOST EASTERLY CORNER OF LOT 10, OF BLOCK 1133, AS SHOWN ON SAID PLAT,. SAID POINT ALSO BEING ON THE NORTHERLY RIGHT-OF-WAY OF SOUTH CITRUS SPRINGS BOULEVARD AS SHOWN ON SAID PLAT; THENCE RUN S 5853'20" W ALONG SAID NORTHERLY RIGHT-OF-WAY LINE A DISTANCE OF 1065.00 FEET TO THE MOST SOUTHERLY CORNER OF LOT 33, BLOCK 1127 AS SHOWN ON SAID PLAT, SAID CORNER ALSO BEING ON THE EASTERLY RIGHT-OF-WAY LINE OF A 30 FOOT WIDE ALLEY; THENCE RUN N 3104'19" W ALONG SAID EASTERLY RIGHT-OF-WAY LINE A DISTANCE OF 284,59 FEET TO THE MOST SOUTHERLY CORNER OF LOT 30. OF SAID BLOCK 1127; THENCE RUN S 60'56'46" W ALONG THE LINE COMMON TO SAID BLOCK 1127 AND SAID ALLEY A DISTANCE OF 906.34 FEET; THENCE CON- TINUE ALONG SAID COMMON LINE S 6942'25" W A DIS- TANCE OF 123.48 FEET TO THE POINT OF CURVATURE OF A CURVE CONCAVE IN A NORTHERLY DIRECTION AND HAVING A RADIUS OF 50.00 FEET; THENCE RUN NORTH- WESTERLY ALONG THE ARC OF SAID CURVE AND ALONG SAID COMMON LINE AND THROUGH A CEN- TRAL ANGLE OF 90000'00" A DISTANCE OF 78.54 FEET TO THE POINT OF TANGENCY OF SAI *:L'. C- .H--I' I BEARING AND DISTANCE BETWEEN Si/-I. i- :iil: i l r1- II1 6517'35" W, 70.71 FEET); THENCE .il 1 rl1i :I_ I- SAID COMMON LINE N 20017'35- C 1:1-11i_ :r 686.31 FEET TO THE MQST WESTERLY Ci i -i i ": _- L -. i :'.1 , OF SAID BLOCK 1127, SAID CORNER ALSO BEING ON THE SOUTHERLY BOUNDARY OF TRACT "C" AS SHOWN ON SAID PLAT; THENCE RUN N 69'42'25" E ALONG THE SOUTHERLY BOUNDARY OF SAID TRACT "C" A DISTANCE -. -J ii i,, Ii-i61 r -i -1I-RLY CORNER "F ^-'iD Ii- : l i.: F I i W ALONG "- : "f ERLY BOUNDARY-OF SAID TRACT "C' A DISj6Ti'fE-OF 544.35 FEET TO THE MOST NORTHERLY CORNER OF SAiD TRACT "C', SAID CORNER ALSO BEING ON THE SOUTHER- LY RIGHT-OF-WAY LINE OF ELEii: FEET "- :,- '.'.' ON SAID PLAT; THENCE RUN S -r.: n- iHi: NORTHERLY BOUNDARY OF SAID ii- : r i- i. -i.:li.- SAID SOUTHERLY RIGHT-OF-WA. uI i '.i -i.: :. 337.54 FEET TO THE POINT OF i:. -i., : .'n." i CONCAVE IN A SOUTHERLY DIRECTICI -ri H- i;- - RADIUS OF 25.00 FEET; THENCE RUN E. :ir.: i. -i.t i- THE ARC OF SAID CURVE AND THROUGH A CENTRAL ANGLE OF 90100'00" A DISTANCE OF 39.27 FEET TO THE POINT OF TANGENCY OF SAID CURVE, SAID POINT ALSO BEING ON THE EASTERLY RIGHT-OF-WAY LINE OF DELTONA BOULEVARD AS SHOWN ON SAID PLAT (CHORD BEARING AND DISTANCE BETWEEN SAID POINTS BEING S 24'42'25" W, 35.36 FEET); THENCE RUN N 20'17'35" W ALONG SAID EASTERLY RIGHT-OF-WAY LINE A DISTANCE OF 1112.34 FEET TO THE MOST WESTERLY CORNER OF LOT 21. BLOCK 1036, AS SHOWN ON SAID PLAT; THENCE RUN N 6942'25" E ALONG THE NORTHERLY BOUNDARY OF SAID LOT 21 A DISTANCE OF 100.00 FEET TO THE MOST NORTHERLY CORNER OF SAID LOT 21, SAID CORNER ALSO BEING ON THE WESTERLY BOUNDARY OF LOT 13, OF SAID BLOCK 1036; THENCE RUN N 2017'35" W ALONG THE WESTERLY BOUNDARY OF SAID LOT 13 A DISTANCE OF 47.25 FEET TO THE MOST WESTERLY COR- NER OF SAID LOT 13; THENCE RUN N 69'42'25" E ALONG THE NORTHERLY BOUNDARY OF SAID LOT 13 A DISTANCE OF 100.00 FEET TO THE MOST NORTHERLY CORNER OF SAID LOT 13, SAID CORNER ALSO BEING ON THE WESTER- LY RIGHT-OF-WAY LINE OF WAKEFIELD ROAD AS SHOWN ON SAID PLAT; THEN RUN N 73 17'00" E A DISTANCE OF 60.12 FEET TO THE MOST WESTERLY CORNER OF LOT 12, BLOCK 1035, AS SHOWN ON SAID PLAT, SAID CORNER ALSO BEING ON THE EASTERLY RIGHT-OF-WAY LINE OF SAID WAKEFIELD ROAD; THENCE RUN N 6942'25" E ALONG THE NORTHERLY BOUNDARY OF SAID LOT 12 A DISTANCE OF 100.00 FEET TO THE MOST NORTHERLY CORNER OF SAID LOT 12, SAID CORNER ALSO BEING ON' THE WESTERLY BOUNDARY OF LOT 3, OF SAID BLOCK 1035; THENCE RUN N 20'17'35" W ALONG THE WESTERLY BOUNDARY OF SAID LOT 3 A DISTANCE OF 13.75 FEET TO THE MOST WESTERLY CORNER OF SAID LOT 3; THENCE RUN N 6942'25" E ALONG THE NORTHERLY BOUNDARY OF SAID LOT 3 A DISTANCE OF 100.00 FEET TO THE MOST NORTHERLY CORNER OF SAID LOT 3, SAID CORNER ALSO BEING ON THE WESTERLY RIGHT-OF-WAY LINE OF VALMORA AVENUE AS SHOWN ON SAID PLAT: THENCE RUN N 2017'35" W ALONG SAID WESTERLY RIGHT-OF- WAY LINE A DISTANCE OF 16.54 FEET TO A POINT ON THE EASTERLY BOUNDARY OF LOT 2, OF SAID BLOCK 1035; THENCE RUN N 694225" E A DISTANCE OF 60.00 FEET TO THE MOST SOUTHERLY CORNER OF LOT 5, BLOCK 1034, AS SHOWN ON SAID PLAT. SAID CORNER ALSO BEING ON THE EASTERLY RIGHT-OF-WAY LINE OF SAID VAL- MORA AVENUE; THENCE RUN N 2017'35" W ALONG SAID EASTERLY RIGHT-OF-WAY LINE A DISTANCE OF 75,00 FEET TO THE MOST WESTERLY CORNER OF SAID LOT 5; THENCE RUN N 540011" E ALONG THE NORTHERLY BOUNDARY OF SAID LOT 5 AND ALONG THE SOUTHERLY BOUNDARY OF LOTS 4 THROUGH 1 INCLUSIVE, OF SAID BLOCK 1034, A DISTANCE OF 373.51 FEET TO THE MOST EASTERLY CORNER OF SAID LOT 1, BLOCK 1034. SAID CORNER ALSO BEING ON THE WESTERLY RIGHT-OF-WAY LINE OF INDIA DRIVE AS SHOWN ON SAID PLAT; THENCE RUN N 30419" W ALONG SAID WESTERLY RIGHT-OF- WAY LINE AND ALONG THE EASTERLY BOUNDARY OF SAID LOT 1 A DISTANCE OF 93.19 FEET TO THE POINT OF CURVATURE OF A CURVE CONCAVE IN A SOUTHERLY DIRECTION AND HAVING A RADIUS OF 25.00 FEET; THENCE RUN NORTHERLY ALONG THE ARC OF SAID CURVE AND THROUGH A CENTRAL ANGLE OF 9455'30" A DISTANCE 6F 41.42 FEET TO THE POINT OF TANGENCY OF SAID CURVE, SAID POINT ALSO BEING ON THE SOUTHERLY RIGHT-OF-WAY LINE OF MAGELLAN STREET AS SHOWN ON SAID PLAT (CHORD BEARING AND DIS- TANCE BETWEEN SAID POINTS BEING N 7832'04' W, 36.84 FEET), THENCE RUN N 54 00'11" E ALONG THE SOUTHERLY RIGHT-OF-WAY LINE OF SAID MAGELLAN STREET A DISTANCE OF 58,65 FEET; THENCE CONTINUE ALONG SAID SOUTHERLY RIGHT-OF-WAY LINE N 5855'41" E A DISTANCE OF 723.57 FEET TO THE POINT OF CURVATURE OF A CURVE CONCAVE IN A SOUTHERLY DIRECTION AND HAVING A RADIUS OF 25.00 FEET, SAID POINT BEING ON THE NORTHERLY BOUNDARY OF LOT 1, BLOCK 1031, AS SHOWN ON SAID PLAT; THENCE RUN SOUTHERLY ALONG THE ARC OF SAID CURVE AND THROUGH A CENTRAL ANGLE OF 89-57'39" A DISTANCE OF 39 25 FEET TO THE POINT OF TANGENCY OF SAID CURVE, SAID POINT ALSO BEING ON THE WESTERLY RIGHT-OF-WAY LINE OF TRAVIS DRIVE AS SHOWN ON. SAID PLAT (CHORD BEARING AND DISTANCE BETWEEN SAID POINTS BEING S 76"05'30" E, 35.34 FEET); THENCE RUN S 31 06'40" E ALONG SAID WESTERLY RIGHT-OF-WAY LINE A DISTANCE OF 91.20 FEET TO A POINT ON THE EASTERLY BOUNDARY OF LOT 2, OF SAID BLOCK 1031. SAID POINT ALSO BEING ON A WESTERLY EXTENSION OF THE NORTHERLY BOUNDARY OF LOT 4, BLOCK 1029, AS SHOWN ON SAID PLAT; THENCE RUN N 58'53'20" E ALONG SAID WESTERLY EXTENSION AND ALONG SAID NORTHERLY BOUNDARY A DISTANCE OF 184.97 FEET TO THE MOST NORTHERLY CORNER OF SAID LOT 4, SAID CORNER ALSO BEING ON THE EASTERLY BOUNDARY OF SAID PLAT AND ALSO BEING ON THE WESTERLY RIGHT-OF-WAY LINE OF THE FLORIDA POWER CORPORA- TION RIGHT-OF-WAY EASEMENT AS SHOWN ON SAID PLAT, THENCE RUN S 31 06'09" E ALONG SAID EASTERLY PLAT BOUNDARY AND WESTERLY RIGHT-OF-WAY LINE A DISTANCE OF 178.66 FEET; THENCE CONTINUE ALONG SAID EASTERLY PLAT BOUNDARY AND WESTERLY RIGHT-OF-WAY LINE S 31 04'19" E A DISTANCE OF 2614.20 FEET TO THE POINT OF BEGINNING, CONTAINING 119 70 ACRES, MORE OR LESS. Published one (1) time in the Citrus County Chronicle, October 17,2005. NOTICE OF ACTION, SUMMONS AND NOTICE OF A nX/IQ^DV UC A Dlhl- A hIn TDI A I MD TCDRAIKIATir)KI IK M1( 2 OR MORE AVAILABLE AT THIS PRICE 2005 2005 FRONTIER XTERRA 2005 TITAN 2005 ALTIMA Power Windows Power Doors S __ ..... ,/ 4 PoorS SAVE $5,000 $18,999 2 OR MORE AVAILABLE AT THIS PRICE 2005 2005 PATHFINDER ARMADA $15,999 $191999 $25,999 $29,999 PREMIUM NEW HONDA ACCORD......1 3,999 NISSAN ALTIMA........$10,999 GRAND MARQUIS...... 8,999 TOYOTA COROLLA...010,999 HONDA ODYSSEY....$12,999 TOYOTA SIENNA......$12,999 CAR TRADE INS! 03 02 03 02 03 03 TOYOTA CAMRY.......s12,999 NISSAN MAXIMA......J12,999 CADILLAC.................os 17,999 ACURATL..............1...15,999 CHEVY TAHOE.........s1 8,999 FORD EXPEDITION. .1 7,999 OCALA NISSAN 'TIk 10 PM4 TrONIGHTf~ 2200 SR 200 OCALA 622-4111 800-342-3008 A p 000s M DAY Of PURBUCAITON 'ON REMAINING '05 NISSANS t39 MO. SE 1 ,79 DUE @ INCEPTION. PREMiUM PRE-OWNED Wpi000 TRADE EQUiY OR DOWN PAYMENT. ALL PRICES PLUS TAX, TAG, '195 DEALER FEE, WAC. 1) CD Player . / 20,06 SENTRA SAVE $2006 OFF MSRP 2006 ALTIMA SAVE $2006 OFF MSRP TITAN SAVE $2006 OFF MSRP 03 02 01 03 02 01 IGB MONDAY, OcTOBER 17, 2005 Ci7,Rus CouNyy (FL) CHRoNicu Nultomafic lAr \ A Contact Us | Permissions | Preferences | Technical Aspects | Statistics | Internal | Privacy Policy © 2004 - 2010 University of Florida George A. Smathers Libraries.All rights reserved. Acceptable Use, Copyright, and Disclaimer Statement Last updated October 10, 2010 - - mvs | http://ufdc.ufl.edu/UF00028315/00290 | CC-MAIN-2017-26 | refinedweb | 46,720 | 75.2 |
25 October 2010 10:47 [Source: ICIS news]
SHANGHAI (ICIS)--?xml:namespace>
The gasoline price would be raised by yuan (CNY) 230/tonne ($35/tonne) while diesel price would be increased by CNY 220/tonne starting Tuesday, the source was quoted in a report by Chinese energy market intelligence service C1 Energy as saying.
(C1 Energy is a wholly owned subsidiary of CBI China, in which ICIS is in the process of increasing its ownership stake.)
China increased the fuel oil prices for the first time this year in April, according to a previous report from ICIS.
However, China cut gasoline prices by yuan (CNY) 230/tonne at CNY7,190/tonne, while diesel prices went down by CNY220/tonne to CNY6,460/tonne on 1 June 2010.
John Chu from C1 Energy | http://www.icis.com/Articles/2010/10/25/9403983/china-to-raise-fuel-prices-from-26-october-source.html | CC-MAIN-2015-06 | refinedweb | 132 | 68.1 |
07, 2008 12:04 AM
The claim has been made that test driven development (TDD) encourages good design. The claim has also been made that TDD adversely affects architecture and design. It helps to get a little more concrete than just discussing abstractions, so we will focus on private methods and their relationships to good design and testability - an instance of this apparent conflict.
Szczepan Faber blogged that private methods are an anti-pattern:
Private
Jay Fields blogged on a generic way to test private methods in ruby:
... I rarely test private methods. I prefer to test through the public API. However, there are times when life is easier if you write a few tests for a private method or two..
All of the ideas above tend to discourage the idea of private methods and put more weight on testability. But they are not the only word on the subject. In fact, much of what has been written about object oriented design encourages as much encapsulation as possible and fewer classes. By only exposing the absolute minimum in a public API coupling is minimized. David West, in Object Thinking, sites Lorenz and Kidd in Object Oriented Software Metrics:
- An application should consist of no more than 40 stories and no more than 100 classes.
- The application's entire business domain should not require more than 1000 classes.
- 25-30% of the code should be discarded after each iteration.
- Responsibilities per class: average of 7.
- Methods per class: average of 12.
- Lines of code per method: 15.
- Percentage of lines of code requiring comments: 60.
- Number of case statements: average of 0.
If private methods are a smell and need to be pulled out into their own classes aren't we increasing the number of classes in our application just to make testing easy? It seems that doing so will quickly get us to a very large number of classes.
So, what about private methods? They are annoying to test. Do we change private methods and expose them for testing? Do we decide not to test private methods and keep design independent of testability? Or are private methods a code smell - an indication of a class trying to do too much?
Give-away eBook – Confessions of an IT Manager
Ensuring Code Quality in Multi-threaded Applications
The Agile Business Analyst: Skills and Techniques needed for Agile
Agile Development: A Manager's Roadmap for Success
The Agile Project Manager
OK. I must commit that I was confused. I intend to not writing any unit test code for private method. Because I can prove my application works through unit test code for public interface.
Yes you can prove that private methods in your application work through the API exposed as public. But the real problem is when your private methods become bloated and carry too much responsibility. At this time it will not be very convinient for any TDD guy to it as such. Thats when the real need for testing private methods rise. The better soltuion according to me would be to refactor and make your design better though it may increase the number of classes. At least they will have their responsibilities distributted in a better way.
if you really want to test private methods.... (i don't). you could change your private methods to package private. so they are available only in your test classes (and the classes of the package).
I thought that the ideal of a project was to minimize comments by restructuring the code? I am also confused by the goal of 100 classes maximum. Even discounting interfaces and classes dedicated to test code, it still seems very low to me.
Mark private method with smelly label, just because they are not directly runnable from unit test, makes author of that statement at least ignorant, period.
I think it is a failing of the language if it does not natively support a simple way of allowing test code to access private methods in classes under test. Until your language supports this you are forced use reflection based workarounds or, as just suggested, make your private methods package private.
Private methods aren't a code smell, trying to test them is though. A classes' responsibilities should be succinct and solely expressed through its public api. So their shouldn't be a reason to want to test the private methods of a well written class. It is tempting to test private methods when they encapsulate so much logic that to test their behavior an abstraction level higher (behind the public method(s) which call them) is infeasible. Only when you get to this point should you factor out the private method into its own class.
I think the biggest problem in these discussions is that developers don't understand the meaning of the word "guidelines". Some developers, who may or may not know something you don't, put forward some guidelines for what they consider to be "good". You don't have to agree with all of them. I don't even think you're supposed to. That's not the point. The point is that when we're writing code we're supposed to continually ask ourselves "does this make sense?". Guidelines help provide some framework for that evaluation. Guidelines, even more than rules, are meant to be broken, however. It's not that you always comply with the guidelines, it's the fact that you reviewed your code in the first place. In that spirit, I absolutely agree that private methods could be a source of concern in any given class. I agree with the guideline that I should not test those methods. I agree that, if I should find myself really needing to test a private method that there is probably something wrong. And I might go ahead and ignore the guidelines and write a unit test for a private method anyway and walk away happy in the knowledge that I've done what I had to.
So, what you are saying now is that we should not use private methods any more, and that we should decompose private responsibilities as public classes, but our class count needs to be very small... Im sorry but thos are contradictory guidelines
This is awfully dogmatic. Here's a thought, testing is private, by nature, so maybe they just need to fix their testing libraries to bypass the restrictions on calling private methods? Better yet, how about posting an article about the dangers of dogmatic fundamentalist my-way-or-the-highway testing code smells ;-) Oops, my comment went over the optimum for a blog comment: - 39 words - 48 characters - 5 lines I'll get back to my rationed method lengths now, sir.
I think a statement like no more private methods is just plain wrong. In my TDD experience I have noticed that there is nothing wrong with private methods as long as they are not dealing with a foreign concern. By foreign concern I mean a concern that violates the SRP. That's when refactoring the method into its own class starts to make sense. Testing through the public interface is, IMHO, the way to go though.
Oops, my comment went over the optimum for a blog comment:
- 39 words
- 48 characters
- 5 lines
LoL, you have a point! But, to be fair to the quote of the quote of the .... Those numbers were derived from existing systems. And, as Bruce commented above, these are guidelines - i.e. suggestions.
I usually find myself holding back my own opinion when writing a news article. So here are my thoughts: 1) We need to agree what good design is before we can argue about it ;) 2) IMHO good design is anything that will allow us to meet and respond to our customer needs better. In that sense testing is important, but so is coupling and cohesion, understandability, mirroring the real world with our designs, etc.... 3) Saying that private methods are bad because they don't allow tests just doesn't hold water. Where do things like sorting, traversal, algorithms, and all the calculations go? If we pull them out into their own classes we are making something public that doesn't need to be - i.e. we are increasing coupling. etc... So, I may be getting old, but when I need to test a private method (and many times I do) I don't pull it out into its own class and I don't change it to protected. I keep it private and use something called a "Test Probe" that works really well. (How's that for a cliffhanger?)
Let's get one thing straight, you cannot test a private method unless the test is in the class with the private method itself. You have to change the visibility of a method to test it from a separate class. As others have said, if you're trying to figure out how to make something public just to test it, you should take a step back and think about what you're doing. But on the same token, using the visibility of a method as the litmus test for whether you should test a method or not is equally problematic. If visibility were the only criteria, then I could just make everything non-private and justify testing it. Consider the case where you extract a private method into a new class and make it public. Is it all the sudden worthy of testing? Isn't it the same code that was not worthy of testing just a second ago? I think the key here is to think about whether you are testing behavior or implementation. I don't want my tests to start failing just because I changed an implementation detail (i.e. did a refactoring).
I find myself much more in agreement with this set of statements. Good design must be defined before we can claim something like private methods makes for bad design. Testing should focus on determining if the contract/design meets the requirements not on does the implementation allow me to automate testing at the most granular level. Focus should be on the public api. Private methods may best be tested by the developer working toward meeting the TDD contract using a debugger. I am interested in hearing more about your "Test Probe". Jon Weaver XAware.org
Yeah, I was being extreme. I actually feel that the author of this article did a bit of a disservice to the source authors by making it seem like the original articles were unbalanced. Judging from other comments, I don't think I'm alone in that reaction. And of course, I believe that the practices suggested by some of the authors are very good to integrate, and the original question regarding private methods, is a very interesting one. I happen to agree that too many private methods probably is a code smell in many cases, but not the concept in general. Actually, to add to the discussion, perhaps API writers should consider that, instead of making private methods as much, they could create an internal API for their own library's use. I haven't thought too deeply on that, but it's something I want to mull over a bit more. :-)
@Javid: Not that I'm clear whether its a good practice or not, but it's really quite trivial to bypass the access restrictions on private methods, and is done by plenty of libraries.
Stupid aside.... Some pretty smart people are saying this (not me - on both counts). I think the argument goes something like: "If I can't test it then what's it doing in this class? Is the class trying to do too much? Probably so, and I need to test anyway...."
I actually feel that the author of this article did a bit of a disservice to the source authors by making it seem like the original articles were unbalanced.
I certainly meant no disservice to the community by posting this article. It is a point of view that I have heard from several people that I respect. I don't necessarily agree with it (ok, actually I don't), but I thought it was worth airing and discussing.
Amr
I am interested in hearing more about your "Test Probe".
Actually it is not my idea, I read it in a paper published in the early days of the XP conferences (around 2003) by Eric Nickell and Ian Smith (of PARC - wow, I didn't know they still did cool stuff!). It goes something like this:
1) You create an inner class within the class under test - call it TestProbe
2) You create an accessor to that probe in the parent class - something like getTestProbe()
3) Because the inner class has access to all the private methods and variables, you can add as many getters/setters as you want to fudge with the inner state of the class under test.
4) You get to keep the parent class's original private variables and methods and minimally modify it's public interface by adding one getter: getTestProbe().
An example of a TestProbe might look something like this:
public class Foo {
private Map cache;
private int itemsInCacheMatching(String pattern) { ... }
/** For tests only. NOT TO BE USED BY PRODUCTION CODE. */
public class TestProbe {
public Map cache() { return cache; }
public int itemsInCacheMatching(String pattern) {
return Foo.this.itemsInCacheMatching(pattern);
}
}
...
}
As always in software development, "it depends". ;) Private methods are fine when they are small, don't duplicate other code and can be tested through the public API for a class. What is problematic is the Iceberg Class smell, where a small public API hides a mountain of private code. I've also had plenty of people ask the same question about testing private methods, and I always answer them with a question: Why is the method private? In some cases it deserves to be, but in many cases the method doesn't even belong in the class! My question is intended to at least provoke some thought on the part of the person asking. Dave Rooney Mayford Technologies
I'm a little confused by this whole discussion of testing private methods. In the .NET world, testing private methods is extremely easy through generated accessors, which use reflection to expose private methods & attributes to your testing environment. And to address some of your points in particular, I thought the point of a public API was to abstract and simplify interaction with a system and thus hide a mountain of private code. For example, if I want to use a data access library to talk to a database, I just want to have a public method that lets me open a connection. I don't want to know about all of the communication handshakes going on under the hood. That's why I'm using the data access library instead of writing my own. Furthermore, I often use private methods to break complex methods down into more testable, intelligible chunks. For example, I may have three private methods that respectively open a file handle, read the contents of the file, and then close the file handle. But I just want one public ReadFile function. If anything, I think the judicious use of private methods facilitates unit testing and aids in separation of concerns. If your unit testing framework can't test private methods, then it's time to find a new framework. If it's impossible to accomplish in your chosen language, then it's time to start helping your language of choice mature to a point where it can support this feature.
This post IMNO captures the crux of the issue and a disparity in concepts between different posters. However I thought it needed a title that lets people know what it's saying.
Either the story was posted 96 days early, or this website has gone the way of theserverside,and the comments the way of slashdot. One way of thinking: Private methods are already tested, by testing the functionality that the class exposes through its public api. Another way of thinking: - Twiddle with reflection to expose private methods to test them. Or make them package private - Add a "TestProbe" to production code to expose all private data - Impose arbitrary limit on number of classes allowed per "compliant" application. - Its a language failing to allow private methods / data. Its "stories" and comments like these that lend weight to the hypothesis that agile software developers are clueless bandwagonesque fanboys looking for the next bit of self-congratulatory pseudo-intellectual IT nonsense. goodness.
I think private method just the one of lots of result with refactoring,if public method can pass unittest,then extract some code to private method which is no necessary to be tested.re-test that public method it's ok.
The whole context of "good design decision" really has nothing to do with the code as it stands now or in the next 6 months, it is what it does to your successors 5-10 years down the line. The costs of coding up the current release are small compared to the costs of maintaining it (for most software). So instead of thinking about what you are coding, think about the code you've maintained written by other people no longer able to explain themselves because they've retired, moved on, etc. My experience has been that other people's past "private" decisions almost always provide me a great deal of apparently needless pain when I set out to maintain it. About the only use I really see for "private" is to prevent polymorphism. Other than that, for development purposes, if I'm mucking about in the code, I can simply remove the private tag (or change it to protected if I'm sure that overriding won't break anything). The Test Probe solution mocks the whole idea of private. Do you think the comment will stop someone 3 years later from using that (if they understand it) to access your private parts? It does make the code more complex (so if you're going for job security it's an idea), but it's not as complex as just using reflection everywhere (highly recommended for job security). Be kind to your heirs, and make the methods protected (package + subclasses) or package. You should have a compelling reason to make them private!
The way I see it, a private method is an artifact from refactoring to remove internal duplication and improve readability, and that's about it. I don't think it's evil, but I do agree that the desire to unit test a private method is a smell. If you're doing TDD properly, you should not have any private methods until the test goes green. Only then should you refactor what you need to. That makes any extracted private methods 100% unit tested through the public API. Before my test driving days, I'd sometimes get complex private methods I'd want to write a test for. I firmly believe now that desire is a clear message that the private method I wanted to test was actually a new class begging to be written, then injected in wherever it was needed. Sure, you'll end up with a lot more classes, but is that really a bad thing? Someone once said "I'd rather have a lot of simple classes working together, than have a few really complicated ones". Having worked on several enterprise applications at both ends of the scale, I agree with that statement 100%.
Ok, I'll bite.... What's wrong with the story and why does it show that people in the Agile camp are crazy? 1) Do you have private methods in your code? Should you have private methods in your code? (Sounds like a reasonable enough question.) 2) Do you test your code? If so, do you test your private methods? If not, why not? (Yep, the most ridiculous question I've ever seen in my life ;) )
The Test Probe solution mocks the whole idea of private. Do you think the comment will stop someone 3 years later from using that (if they understand it) to access your private parts?
Dave, you seem to have misunderstood TestProbe. It is not the comment that protects you, it is the fact that you have minimally changed the public interface - you have added one method.
So, for someone to access the private data in the class they have to do something like: MyClass.getTestProbe().getPrivateMethod()
Unless you totally distrust your developers, the fact that you are calling MyClass.getTestProbe() in production code never happens. Now, if you think your developers are idiots or malicious, you have a much bigger problem than private methods ;)
I agree.... Let's assume that you have a class that does something. That something is done in more than one method in the class. So you remove the duplication by extracting method. Should that method be *anything* but private? If so, why? And, now that you have it, don't you want to test it?
I think Slade Stewart has it right - "The Smell Is Not Private Methods Per Se But Those Needing Testing". The point is that if you are doing TDD and you extract a method then the tests on the original public methods are still implicitly testing the extracted private method. There is no need to do further explicit testing on the private method. Testing private methods is a bad practice in theory because it breaks OO encapsulation. It is a bad practice in practice because it adds redundant test code which is a liability that will impair future refact | http://www.infoq.com/news/2008/01/private-methods-tdd-design | crawl-002 | refinedweb | 3,630 | 70.94 |
I have just started to learn C++ and find it very fun. I know VB very well and know a bit of Pascal. I was writing my first program and this is all the code.
The program is VERY simple and it is meant to ask for your name and age and then say it back to you. When it starts is says this:The program is VERY simple and it is meant to ask for your name and age and then say it back to you. When it starts is says this:Code:
#include <iostream.h>
#include <stdlib.h>
using namespace std;
int main()
{
cout<<"Hello\n";
cout<<"Please enter your name\n";
int name;
cin>> name;
cin.ignore();
cout<<"Now enter your age\n";
int age;
cin>> age;
cin.ignore();
cout<<"So you are called"<< name <<"and you are"<< age <<"years old\n";
cin.get();
}
Hello
Please enter your name
I enter my name and press enter but instead of asking me how old I am it ends the program. I searched the forum and found a thread that said to add cin.ignore(); so that the enter was ignored. I added this but the same thig happens. Debbuging finds nothing and I don't know how to fix it.
Any help would be goo
Thanks
Calum N :confused: | https://cboard.cprogramming.com/cplusplus-programming/79040-cin-get-%3B-doesnt-work-even-cin-ignore-%3B-printable-thread.html | CC-MAIN-2017-22 | refinedweb | 221 | 92.32 |
Re: Console app freezes
From: Ilya Tumanov [MS] (ilyatum_at_online.microsoft.com)
Date: 12/21/04
- ]
Date: Tue, 21 Dec 2004 01:43:05 GMT
What's in WaitForCommEvent()? It's not a while loop which checks for some
variable set from event, is it?
I would also suggest using circular buffer instead of creating new array
lists and arrays for every packet.
You'll need to firure out what to do in case buffer overflows (terminate,
log event, ignore extra data, etc.).
Best regards,
Ilya
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
> Thread-Topic: Console app freezes
> thread-index: AcTm7jZvbF/weKNQT22YrExp4stGvg==
>>
<728DC81F-04A6-43A7-BCE5-D4132D86CDF6@microsoft.com>
<UQI8R$r5EHA.2600@cpmsftngxa10.phx.gbl>
> Subject: Re: Console app freezes
> Date: Mon, 20 Dec 2004 15:47:06 -0800
> Lines: 116
> Message-ID: <17826F3A-DA24-4C76-A645-7DF5087B480:67289
> X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
>
> My app uses OpenNETCF.org’s serial comms code with a few modifications
in
> their Port.cs class. This class simply sets up a thread called
> ‘CommEventThread’ that continually loops the associated com port for
data.
> However, I had to modify this to reflect the modifications I made to the
> lower level serial drivers. The serial drivers were changed such that it
> suited the data it was processing. The data was basically composed of
packets
> separated by parity errors. I couldn’t use a parity error event to
> distinguish between packets because the app couldn’t keep up with the
number
> of parity error events being raised. Instead, I modified the serial
driver
> such that it places an escape ‘f0’ character in the receive stream
whenever
> it detected a parity error and my app simply needed to locate this ‘
f0’
> character. To distinguish between an escape ‘f0’ character between an
actual
> data ‘f0’, I replaced the data one with a 6-byte signature which my
higher
> level app also searches for. So in pseudo code, this is how the
> CommEventThread in Port.cs looks like:
>
> private void CommEventThread()
> {
> while(hPort != invalidHandle)
> {
>
> // Wait for a comm event to take place;
> WaitForCommEvent();
>
> if(error event)
> {
> // Handle error;
> }
>
> if(data received)
> {
> do
> {
> ReadFile() to rxFIFO buffer;
> }while(bytesread > 0)
> }
>
> while(rxFIFO.Count > 0)
> {
> byte u = rxFIFO.Dequeue();
>
> if(u == any byte)
> {
> // Add ‘u’ to progressBuffer ArrayList
> progressBuffer.Add(u);
> }
>
> if(u == ‘f0’)
> {
> // Raise ParityError() event and clear progressBuffer;
> ParityError();
> progressBuffer = new ArrayList();
> }
>
> if(u is part of 6-byte signature)
> {
> // Take note of it;
> }
>
> if(u is last byte of 6-byte signature)
> {
> // Insert ‘f0’ in the data;
> progressBuffer.Add(u);
> }
> }
> }
> }
>
> I also added the method ReadProgressBuffer() in Port.cs which gets the
> current progressBuffer contents when a parity error event is raised. This
> will be called by my main app.
>
> public byte[] ReadProgressBuffer(){
> return (byte[])progressBuffer.ToArray(typeof(byte));
> }
>
> In my main code, I instantiate 4 port objects which means that I
introduce 4
> CommEventThreads executing the above code in non-stop looping. My main
also
> handles the ParityError events raised by each port by creating 4
indentical
> event handlers that process the data by firstly calling
> portX.ReadProgressBuffer(). Below is the pseudo code:
>
> private void portX_ParityError()
> {
> byte[] packet = portX.ReadProgressBuffer();
>
> // Process the byte array here;
> // This predominantly involves packet validation -
> // CRC checks, and updating a set of global data;
> }
>
> When this handler returns, the CommEventThread continues by clearing the
> progressBuffer and repeating the whole process.
>
> In addition to this, I have 3 timers, TCP/IP stuff, and log keeping (as
> described in my first post). Would it definitely be a CPU overload issue?
If
> you need more information regarding my app or any of its code, please
feel
> free to ask. Thanks again.
>
>
> ""Ilya Tumanov [MS]"" wrote:
>
> > ] | http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.framework.compactframework/2004-12/1259.html | crawl-002 | refinedweb | 618 | 55.54 |
Person
age
Person
class Person:
#age = 0
def __init__(self,initialAge):
# Add some more code to run some checks on initialAge
if(initialAge < 0):
print("Age is not valid, setting age to 0.")
age = 0
age = initialAge
def amIOld(self):
# Do some computations in here and print out the correct statement to the console
if(age < 13):
print("You are young.")
elif(age>=13 and age<18):
print("You are a teenager.")
else:
print("You are old.")
def yearPasses(self):
# Increment the age of the person in here
Person.age += 1 # I am having trouble with this method
t = int(input())
for i in range(0, t):
age = int(input())
p = Person(age)
p.amIOld()
for j in range(0, 3):
p.yearPasses()
p.amIOld()
print("")
yearPasses()
age
You need
age to be an instance attribute of the Person class. To do that, you use the
self.age syntax, like this:
class Person: def __init__(self, initialAge): # Add some more code to run some checks on initialAge if initialAge < 0: print("Age is not valid, setting age to 0.") self.age = 0 self.age = initialAge def amIOld(self): # Do some computations in here and print out the correct statement to the console if self.age < 13: print("You are young.") elif 13 <= self.age <= 19: print("You are a teenager.") else: print("You are old.") def yearPasses(self): # Increment the age of the person in here self.age += 1 #test age = 12 p = Person(age) for j in range(9): print(j, p.age) p.amIOld() p.yearPasses()
output
0 12 You are young. 1 13 You are a teenager. 2 14 You are a teenager. 3 15 You are a teenager. 4 16 You are a teenager. 5 17 You are a teenager. 6 18 You are a teenager. 7 19 You are a teenager. 8 20 You are old.
Your original code had statements like
age = initialAge
in its methods. That just creates a local object named
age in the method. Such objects don't exist outside the method, and are cleaned up when the method terminates, so the next time you call the method its old value of
age has been lost.
self.age is an attribute of the class instance. Any method of the class can access and modify that attribute using the
self.age syntax, and each instance of the class has its own attributes, so when you create multiple instances of the Person class each one will have its own
.age.
It's also possible to create objects which are attributes of the class itself. That allows all instances of the class to share a single object. Eg,
Person.count = 0
creates a class attribute named
.count of the Person class. You can also create a class attribute by putting an assignment statement outside a method. Eg,
class Person: count = 0 def __init__(self, initialAge): Person.count += 1 # Add some more code to run some checks on initialAge #Etc
would keep track of how many Person instances your program has created so far. | https://codedump.io/share/0ppU1DlmihvZ/1/how-to-use-a-global-variable-for-all-class-methods-in-python | CC-MAIN-2017-34 | refinedweb | 509 | 85.18 |
Draft Clone
Description
The
Draft Clone tool produces linked copies of a selected shape. This means that if the original object changes its shape and properties, all clones change as well. Nevertheless, each clone retains its unique position, rotation, and scale, as well as its view properties like shape color, line width, and transparency.
The Clone tool can be used on 2D shapes created with the Draft Workbench, but can also be used on many types of 3D objects such as those created with the Part, PartDesign, or Arch Workbenches.
To create simple copies, that are completely independent from an original object, use Draft Move, Draft Rotate, and Draft Scale. To position copies in an orthogonal array use Draft Array; to position copies along a path use Draft PathArray; to position copies at specified points use Draft PointArray.
Clone next to the original object
Usage
- Select an object that you wish to clone.
- Press the
Draft Clone button.
Depending on its options, the
Draft Scale tool also creates a clone at a specified scale.
Clones of 2D objects created with the Draft or Sketcher Workbenches will also be 2D objects, and therefore can be used as such for the PartDesign Workbench.
All Arch Workbench objects have the possibility to behave as clones by using their DataCloneOf property. If you use the Draft Clone tool on a selected Arch object, you will produce such an Arch clone instead of a regular Draft clone.
Limitations
Currently, Sketcher Sketches cannot be mapped to the faces of a clone.
Options
There are no options for this tool. Either it works with the selected objects or not.
Properties
- DataObjects: specifies a list of base objects which are being cloned.
- DataScale: specifies the scaling factor for the clone, in each X, Y, and Z direction.
- DataFuse: if it is True and DataObjects includes many shapes that intersect each other, the resulting clone will be fuse them together into a single shape, or make a compound of them. introduced in version 0.17
Scripting
See also: Draft API and FreeCAD Scripting Basics.
The Clone tool can be used in macros and from the Python console by using the following function:
cloned_object = clone(obj, delta=None, forcedraft=False)
- Creates a
cloned_objectfrom
obj, which can be a single object or a list of objects.
- If given,
deltais a
FreeCAD.Vectorthat moves the new clone away from the original position of the base object.
- If
forcedraftis
True, the resulting object will be a Draft clone, and not an Arch clone, even if
objis an Arch Workbench object.
The fusion of the objects that are part of the clone can be achieved by setting its
Fuse attribute to
True.
Example:
import FreeCAD, Draft place = FreeCAD.Placement(FreeCAD.Vector(1000, 0, 0), FreeCAD.Rotation()) Polygon1 = Draft.makePolygon(3, 750) Polygon2 = Draft.makePolygon(5, 750, placement=place) obj = [Polygon1, Polygon2] vector = FreeCAD.Vector(2600, 500, 0) cloned_object = Draft.clone(obj, delta=vector) cloned_object.Fuse = True FreeCAD.ActiveDocument.recompute()
- | https://wiki.freecadweb.org/Draft_Clone/pt-br | CC-MAIN-2020-24 | refinedweb | 495 | 65.42 |
Linking to third party codeLinking to third party code
In the Getting Started section, we saw Deno could execute scripts from URLs. Like browser JavaScript, Deno can import libraries directly from URLs. This example uses a URL to import an assertion library:
test.ts
import { assertEquals } from " assertEquals("hello", "hello"); assertEquals("world", "world"); console.log("Asserted! ✓");
Try running this:
$ deno run test.ts Compile Download Download Download Asserted! ✓
Note that we did not have to provide the
--allow-net flag for this program,
and yet it accessed the network. The runtime has special access to download
imports and cache them to disk.
Deno caches remote imports in a special directory specified by the
DENO_DIR
environment variable. It defaults to the system's cache directory if
DENO_DIR
is not specified.
FAQFAQ
How do I import a specific version of a module?How do I import a specific version of a module?
Specify the version in the URL. For example, this URL fully specifies the code
being run:
It seems unwieldy to import URLs everywhere.It seems unwieldy to import URLs everywhere.
What if one of the URLs links to a subtly different version of a library?
Isn't it error prone to maintain URLs everywhere in a large project?
The solution is to import and re-export your external libraries in a central
deps.ts file (which serves the same purpose as Node's
package.json file).
For example, let's say you were using the above assertion library across a large
project. Rather than importing
" everywhere, you could
create a
deps.ts file that exports the third-party code:
deps.ts
export { assert, assertEquals, assertStringIncludes, } from "
And throughout the same project, you can import from the
deps.ts and avoid
having many references to the same URL:
import { assertEquals, runTests, test } from "./deps.ts";
This design circumvents a plethora of complexity spawned by package management software, centralized code repositories, and superfluous file formats.
How can I trust a URL that may change?How can I trust a URL that may change?
By using a lock file (with the
--lock command line flag), you can ensure that
the code pulled from a URL is the same as it was during initial development. You
can learn more about this
here.
But what if the host of the URL goes down? The source won't be available.But what if the host of the URL goes down? The source won't be available.
This, like the above, is a problem faced by any remote dependency system.
Relying on external servers is convenient for development but brittle in
production. Production software should always vendor its dependencies. In Node
this is done by checking
node_modules into source control. In Deno this is
done by using the
deno vendor subcommand. | https://deno.land/manual@v1.21.0/linking_to_external_code | CC-MAIN-2022-21 | refinedweb | 464 | 68.16 |
SYNOPSIS
#include <Xm/Xm.h>
float XmTabGetValues(
XmTab tab,
unsigned char *units,
XmOffsetModel *offset,
unsigned char *alignment,
char **decimal);
DESCRIPTION
XmTabGetValues takes an XmTab structure, returns the floating point number that is set as the value of the tab, and then sets values for the units, offset, alignment, and decimal arguments where they are not NULL. The returned floating point number represents the distance that the rendering of the XmString segment associated with tab will be offset. The offset is from either the beginning of the rendering or from the previous tab stop, depending on the setting for the offset model. The distance will use the unit type pointed at by unit.
-. | http://manpages.org/xmtabgetvalues/3 | CC-MAIN-2021-25 | refinedweb | 112 | 57.61 |
UTF8Encoding.GetPreamble Method ()
Returns a Unicode byte order mark encoded in UTF-8 format, if the UTF8Encoding encoding object is configured to supply one.
Assembly: mscorlib (in mscorlib.dll)
Return ValueType: System.Byte[]
A byte array containing the Unicode byte order mark, if the UTF8Encoding encoding object is configured to supply one. Otherwise, this method returns a zero-length byte array.
The UTF8Encoding object can provide a preamble, which is a byte array that can be prefixed to the sequence of bytes that result from the encoding process. Prefacing a sequence of encoded bytes with a byte order mark (code point U+FEFF) helps the decoder determine the byte order and the transformation format, or UTF. The Unicode byte order mark (BOM) is serialized as 0xEF 0xBB 0xBF. Note that the Unicode Standard neither requires nor recommends the use of a BOM for UTF-8 encoded streams.
You can instantiate a UTF8Encoding object whose GetPreamble method returns a valid BOM in the following ways:
By retrieving the UTF8Encoding object returned by the Encoding.UTF8 property.
By calling a UTF8Encoding constructor with a encoderShouldEmitUTF8Identifier parameter and setting its value set to true.
All other UTF8Encoding objects are configured to return an empty array rather than a valid BOM.
The BOM provide nearly certain identification of an encoding for files that otherwise have lost a reference to their encoding, such as untagged or improperly tagged web data or random text files stored when a business did not have international concerns. Often user problems might be avoided if data is consistently and properly tagged. uses the GetPreamble method to return the Unicode byte order mark encoded in UTF-8 format. Notice that the default constructor for UTF8Encoding does not provide a preamble.
using System; using System.Text; class Example {); Console.WriteLine();(Byte[] bytes) { foreach (var b in bytes) Console.Write("{0:X2} ", b); Console.WriteLine(); } } // The example displays the following output: // UTF8NoPreamble // preamble length: 0 // preamble: // // UTF8WithPreamble // preamble length: 3 // preamble: EF BB BF
The following example instantiates two UTF8Encoding objects, the first by calling the parameterless UTF8Encoding() constructor, which does not provide a BOM, and the second by calling the UTF8Encoding(Boolean) constructor with its encoderShouldEmitUTF8Identifier argument set to true. It then calls the GetPreamble method to write the BOM to a file before writing a UF8-encoded string. As the console output from the example shows, the file that saves the bytes from the second encoder has three more bytes than the first.
using System; using System.IO; using System.Text; public class Example { public static void Main() { String s = "This is a string to write to a file using UTF-8 encoding."; // Write a file using the default constructor without a BOM. var enc = new UTF8Encoding(); Byte[] bytes = enc.GetBytes(s); WriteToFile(@".\NoPreamble.txt", enc, bytes); // Use BOM. enc = new UTF8Encoding(true); WriteToFile(@".\Preamble.txt", enc, bytes); } private static void WriteToFile(String fn, Encoding enc, Byte[] bytes) { var fs = new FileStream(fn, FileMode.Create); Byte[] preamble = enc.GetPreamble(); fs.Write(preamble, 0, preamble.Length); Console.WriteLine("Preamble has {0} bytes", preamble.Length); fs.Write(bytes, 0, bytes.Length); Console.WriteLine("Wrote {0} bytes to {1}.", fs.Length, fn); fs.Close(); Console.WriteLine(); } } // The example displays the following output: // Preamble has 0 bytes // Wrote 57 bytes to NoPreamble.txt. // // Preamble has 3 bytes // Wrote 60 bytes to Preamble.txt.
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
You can also compare the files by using the fc command in a console window, or you can inspect the files in a text editor that includes a Hex View mode. Note that when the file is opened in an editor that supports UTF-8, the BOM is not displayed. | https://msdn.microsoft.com/en-us/library/system.text.utf8encoding.getpreamble(v=vs.110).aspx | CC-MAIN-2017-22 | refinedweb | 643 | 50.23 |
#include <itkTimeProbe.h>
Computes the time passed between two points in code.
This class allows the user to trace the time passed between the execution of two pieces of code. It can be started and stopped in order to evaluate the execution over multiple passes. The values of time are taken from the RealTimeClock.
Definition at line 44 of file itkTimeProbe.h.
Type for counting how many times the probe has been started and stopped.
Reimplemented from itk::ResourceProbe< RealTimeClock::TimeStampType, RealTimeClock::TimeStampType >.
Definition at line 51 of file itkTimeProbe.h.
Type for measuring time. See the RealTimeClock class for details on the precision and units of this clock signal
Definition at line 55 of file itkTimeProbe.h.
Constructor
Destructor
Get the current time. Warning: the returned value is not the elapsed time since the last Start() call.
Implements itk::ResourceProbe< RealTimeClock::TimeStampType, RealTimeClock::TimeStampT().
Definition at line 78 of file itkTimeProbe.h. | http://www.itk.org/Doxygen/html/classitk_1_1TimeProbe.html | crawl-003 | refinedweb | 153 | 61.22 |
Simon Weber 2021-09-18T00:09:52-04:00 Simon Weber simon@simonmweber.com Opsgrid 2020-09-20T00:00:00-04:00 <h2 id="opsgrid">Opsgrid</h2> <p class="meta">September 20 2020</p> <p>I’ve built up a number of <a href="">side projects</a> over the years. The ones that require a backend are hosted on individual vms from <a href="">BuyVM</a>, which means I need to monitor about a half-dozen servers.</p> <p>While there’s plenty of free Pingdom-style uptime monitoring options out there, cheap options to monitor metrics like cpu, ram, and disk are more rare. The big names usually have a free tier allowing one or two hosts with minimal data retention, then a big jump to a $10+/month per host paid tier. I can’t justify spending that when I only pay $2/month for the vms themselves! There’s also some smaller independent options out there, but they tend to require custom server agents and aren’t all that much cheaper. So, I decided to build my own.</p> <p>I didn’t need anything fancy, just support for the usual metrics, user-defined alerting, and, ideally, reasonable retention of past data so I could identify trends. Like my other projects, it also needed to be operationally simple.</p> <p><a href="">Opsgrid</a> is the result. It allows free server/application alerting with about 1 year of data retention per host. The trick is that Opsgrid doesn’t actually store historical metrics: instead, users connect a Google account, and it pushes data as rows to a Google Sheet per host. It also makes use of <a href="">Telegraf</a>, an open-source monitoring agent, to avoid dealing with metric collection code.</p> <p><a href="">Check it out</a> if you also run your own servers! I plan to keep it free unless it attracts a significant number of users, but even then I should be able to price it about 5-10x lower than offerings like New Relic or Datadog.</p> Side project income 2019 2020-01-16T00:00:00-05:00 <h2 id="side-project-income-2019">Side project income 2019</h2> <p class="meta">January 15 2020</p> <p>2019 was my fourth year running my own small software business. I also <a href="/2019/04/26/leaving-venmo-after-five-years.html">quit my job</a> in the spring! I’m now self-employed but spend most of my time consulting, so I still consider the business to be “on the side”. Here’s my active projects as of the end of the year:</p> <ul> <li><a href="">Autoplaylists for Google Music</a>: iTunes Smart Playlists for Google Music.</li> <li><a href="">Autoresponder for Google Hangouts</a>: vacation/out-of-office replies for Google Chat.</li> <li><a href="">Kleroteria</a>: an email lottery and spiritual successor to The Listserve.</li> <li><a href="">Repominder</a>: release reminders for open source projects.</li> <li><a href="">NYC Park Alerts</a>: closure notifications about NYC Parks locations.</li> <li><a href="">Plugserv</a>: an ad server for my own projects.</li> </ul> <h3 id="financials">Financials</h3> <p>This was my first down year:</p> <ul> <li>annual revenue decreased from $3600 to $3330</li> <li>annual expenses grew slightly from $240 to $280</li> <li>monthly recurring revenue dropped substantially from $350 to $250</li> </ul> <p>Autoplaylists and Autoresponder - which make up nearly all my revenue - both extend Google products that are being shut down, so I had actually expected more of a decline. While I <a href="/2019/01/07/side-project-income-2018.html">began diversifying in 2018</a>, those efforts haven’t yet impacted the bottom line.</p> <h3 id="new-projects">New Projects</h3> <p>I added two smaller projects last year. NYC Park Alerts was inspired by my gym habits, of all things. I work out at a local rec center and showed up a few times to find it unexpectedly closed. Looking into it, I found that the city posts updates online but with no way to subscribe to them. So, I set up a scraper that lets people receive emails when locations of their choice are affected. It’s got one user (besides me) and is more of a community service, so I don’t expect to ever make money off it.</p> <p> My second new project was Plugserv. It's a tiny ad server that helps me shamelessly plug my projects across my own sites. Here's a live example of what it looks like: "<span id="example-plug"></span>" Behind the scenes that copy is being retrieved from the Plugserv api, which handles rotation and tracking. It's performed better than I expected: in the six months it's been active it's served ~25k ads with a click through rate of over 1%, which beats most display ad benchmarks. Despite working well for me it hasn't picked up any other users; go <a href="">check it out</a> if you'd like to run your own ads on your own sites! </p> <h3 id="existing-projects">Existing Projects</h3> <p>2019 was also the first year I stopped running any projects. I’m usually content to let projects run despite low usage because my expenses are so low. But, I made an exception for Analytics for Google Payments: despite being free to run and having potential with business customers, it was painful to maintain and targeted a much smaller market than I expected.</p> <p><a href="">MinMaxMeals</a>, my cooking site, was more of a case of lost interest. Its recipes were heavily optimized for time, which isn’t as important to me now that I’m self-employed and work from home. It’s still a fun talking point, though, and I might return to it someday.</p> <p>My remaining projects both grew slowly without my involvement. Repominder picked up a notable open source power user and Kleroteria added about 500 subscribers.</p> <p>Though I didn’t do much marketing or feature work, I did spend some time on operational improvements. I consolidated my sundry virtual servers into a fleet of $2/month instances at <a href="">BuyVM</a>. Each runs a new NixOS+docker setup that’s generic enough to be cloned for new projects. I also upgraded everything to Python 3 and worked out a better way to route my custom-domain emails into Gmail for cheap (which I’ll write up eventually).</p> <h3 id="reflection">Reflection</h3> <p>2019 had its ups and downs, but now that I’m settled into my new lifestyle I’m feeling ready for 2020. I don’t expect it to be easy, though: Autoplaylists and Autoresponder are likely to shut down completely, and there’s a real chance I’ll find myself in the red.</p> <p>So, hopefully my upcoming projects can prevent this. One of these - hosted server/application monitoring with unusually low operating costs - should launch soon, so sign up below if you’d like to get notified about it!</p> <p>As always, thanks for following along and feel free to reach out with questions. If you’d like to read my previous annual summaries, they’re available <a href="/annual-summaries">here</a>.<> Plugserv 2019-08-03T00:00:00-04:00 <h2 id="plugserv">Plugserv</h2> <p class="meta">August 3 2019</p> <script> // empty script block so GA doesn't show up right next to Plugserv. </script> <p>I’ve been creating websites for a while now. Some of these get consistent visitors, while some are nearly unknown. At some point I realized there was an opportunity here: my popular sites could advertise my other sites. So, I started manually adding small text ads to each.</p> <p>This quickly became unwieldy. I’m closing in on ten active projects, and I got sick of updating all of them whenever I launched something new. I decided my next project would solve this problem.</p> <p>I call it <a href="">Plugserv</a>, since it lets me shamelessly plug my websites. It’s an open source ad server: I configure it with all my ads and add a javascript snippet to each site. Plugserv then rotates my ads automatically and collects basic performance metrics. Here’s a live example of what this looks like:</p> <div id="plugserv-example"> <p style="text-align: center"> <span id="example-plug"></span> <> </div> <p>Sign up at <a href="">plugserv.com</a> to run ads for your own sites! It’s free to use and <a href="">open source</a>.</p> Leaving Venmo after five years 2019-04-26T00:00:00-04:00 <h2 id="leaving-venmo-after-five-years">Leaving Venmo after five years</h2> <p class="meta">April 26 2019</p> <p>I left Venmo recently, after an eventful five and a half year stay. Over that time we increased quarterly payment volume by over 100x, grew from dozens to hundreds of employees, and were both acquired and spun off. I’d grown too: with the fourth longest tenure at Venmo, I was now leading a team and part of engineering-wide discussions.</p> <p>Unsurprisingly, with increased responsibilities came increased stress. Upper management turnover was especially tough, as I found myself fighting the same political battles under each regime. My enthusiasm turned to jadedness, then cynicism, then anxiety. Eventually, despite a supportive manager and a sabbatical, I became concerned for my health and decided to make a change.</p> <p>I’m now officially working for myself. After taking some time to recover, I plan to focus mostly on <a href="/2019/01/07/side-project-income-2018.html">my own software</a> - which I suppose aren’t “side projects” anymore - and occasionally pick up consulting work. I also look forward to having time for <a href="">cooking</a>, <a href="">music</a>, and engaging with the ever-growing <a href="">Recurse Center</a> community.</p> <p>Sign up below if you’d like to follow what I’m up to. Or, shoot me an email if you’re interested in part-time help, particularly around backend scaling, CI/CD, or python.</p> NYC Park Alerts 2019-03-30T00:00:00-04:00 <h2 id="nyc-park-alerts">NYC Park Alerts</h2> <p class="meta">March 30 2019</p> <p>I work out at a city <a href="">rec center</a>, largely because the price - about $10/month - is hard to beat.</p> <p>Schedule consistency is a downside, however. Due to events and maintenance I’ve sometimes shown up to find my location unexpectedly closed.</p> <p>After some research, I found that the city does a pretty good job of <a href="">posting schedule changes online</a>. But, since there’s no way to subscribe to them, you need to check every time before visiting.</p> <p>So, I built <a href="">NYC Park Alerts</a>. It lets you subscribe to locations of your choice, and will email you when updates are posted. Go sign up at <a href="">parks.simon.codes</a> if you’re also a rec center fan!</p> Side project income 2018 2019-01-07T00:00:00-05:00 <h2 id="side-project-income-2018">Side project income 2018</h2> <p class="meta">January 7 2019</p> <p>2018 marked my third year running a software business. While <a href="/2018/01/09/side-project-income-2017.html">last year</a> was focused on growing existing products, this year was more about diversification. I’m now running six separate projects:</p> <ul> <li><a href="">Analytics for Google Payments</a>: business metrics for Google merchants.</li> <li><a href="">Autoplaylists for Google Music</a>: iTunes Smart Playlists for Google Music.</li> <li><a href="">Autoresponder for Google Chat and Hangouts</a>: vacation/out-of-office replies for Google Chat.</li> <li><a href="">Kleroteria</a>: an email lottery and spiritual successor to The Listserve.</li> <li><a href="">MinMaxMeals</a>: cheap, healthy, and fast cooking with no regard for convention.</li> <li><a href="">Repominder</a>: release reminders for open source projects.</li> </ul> <h3 id="financials">Financials</h3> <p>Autoplaylists and Autoresponder continued to be my only revenue sources. Here’s the numbers:</p> <ul> <li>annual revenue increased from $2000 to $3600</li> <li>expenses dropped slightly from $260 to $240</li> <li>revenue run rate grew from $250 to $350, a slight slowdown in growth</li> <li>monthly net subscribers grew from 10 to 15, then dropped under 5</li> </ul> <p>The subscriber numbers were mostly due to increased Autoplaylists churn once <a href="">Google Music’s shutdown</a> was announced. Autoresponder growth was steady, but not enough to compensate.</p> <p>To reduce my exposure to future Google changes, I worked on two new independent projects.</p> <h3 id="new-projects">New Projects</h3> <p>Over the summer I launched Kleroteria in response to the shutdown of <a href="">The Listserve</a>. Both work the same way: people subscribe to an email list, and periodically one person is chosen to write to everyone else. My take mostly differs behind the scenes, with improved automation and free hosting (it <a href="/2018/07/09/running-kleroteria-for-free-by-abusing-free-tiers.html">runs on 13 free tiers</a>, which was a fun technical exercise).</p> <p>I was hoping to take over The Listserve’s 10k subscribers, but they had already deleted their email list by the time I reached out. Instead I settled for cold-emailing previous winners who’d provided their emails. This yielded about 500 subscribers from 2000 prospects. While this is a decent start, there’s no real revenue potential without much more growth. So, I hope to do some marketing in 2019, then look into options like Patreon or merchandise.</p> <p>My second project was a bit of a departure: MinMaxMeals is my first content site. It launched a month ago, and has picked up a few dozen email subscribers and twitter followers so far. I plan to put consistent effort into writing and marketing over the next year. There’s a variety of revenue options if it gets traction, like affiliate links, sponsorships, or a cookbook.</p> <h3 id="existing-projects">Existing Projects</h3> <p>Autoplaylists and Autoresponder each received maintenance and some minor feature work. Notably, this included handling <a href="">a small crisis</a> while at a friend’s wedding. I also attempted a few Facebook ad campaigns to little success.</p> <p>On the positive side, I made good progress on Analytics for Google Payments. A reverse engineering breakthrough led to support for new data and a public beta. It’s now got its first 10 users, largely from a cold-email campaign I ran against owners of paid Chrome extensions. That also had the side effect of sizing the market: as it turns out, there a very few paid chrome extensions. So, I may look into supporting other merchant types (like Android or YouTube) to expand it. I’m a bit hesitant given its coupling to Google, however.</p> <p>Finally, poor Repominder got little attention aside from a move to free hosting. I’m not sure it’s worth investing in now that GitHub seems to have stepped up development of similar features.</p> <h3 id="reflection">Reflection</h3> <p>I’m pleased to have diversified in 2018, even if my new projects aren’t yet making money. I’m also proud of how much I got done – especially as my responsibilities at my day job increased.</p> <p>Here’s hoping 2019 is similarly successful! Follow along by signing up below, and feel free to reach out with questions.</p> MinMaxMeals: cheap, healthy, and fast cooking 2018-12-03T00:00:00-05:00 <h2 id="minmaxmeals-cheap-healthy-and-fast-cooking">MinMaxMeals: cheap, healthy, and fast cooking</h2> <p class="meta">December 3 2018</p> <p>In a departure from my typical projects, I’ve launched a cooking site! <a href="">MinMaxMeals</a> disregards culinary convention in favor of cost, health, and speed – typical meals call for $1 of ingredients and a few minutes in a microwave.</p> <p>Here’s a bit on its origins from <a href="">the about page</a>:</p> <blockquote> <p.</p> </blockquote> <p>If this sounds intriguing, check out my recipe for <a href="">oatmeal that tastes like garlic bread</a>. Or, read about <a href="">the different types of lentils</a> and how they’re often cheaper under different names.</p> Running Kleroteria for free by (ab)using free tiers 2018-07-09T00:00:00-04:00 <h2 id="running-kleroteria-for-free-by-abusing-free-tiers">Running Kleroteria for free by (ab)using free tiers</h2> <p class="meta">July 9 2018</p> <p><a href="">Kleroteria</a>.</p> <p.</p> <p>I’d need to address these in my replacement. I figured I could easily run it for little more than the cost of sending emails. But could I host the entire thing for free? I wasn’t sure, and figuring it out quickly became a personal challenge.</p> <p>After far too long digging through pricing docs, I came up with a serverless setup run on AWS’s indefinitely free tier. It’s illustrative of just how much Amazon gives away, but also how quickly a serverless architecture can get out of hand.</p> <p>This post lays out my ridiculous thirteen-service setup to inspire future free tier shenanigans.</p> <h3 id="infrastructure-shopping">Infrastructure shopping</h3> <p>My other side projects are run unceremoniously on cheap virtual private servers. <a href="">Autoresponder</a> and <a href="">Repominder</a>, for example, run on <$1/month deals from lowendbox. A comparable free offering is Google’s f1-micro instance, though I was concerned about bottlenecking on vcpu during signup spikes.</p> <p.</p> .</p> <h3 id="dynamo-math">Dynamo math</h3> <p>Kleroteria stores two things: posts and subscribers. I decided to use random ids to prevent hot partitions. The full schemas ended up looking like this:</p> <ul> <li>pending_posts table: <ul> <li>key: randomly-generated id</li> <li>values: contents and status</li> </ul> </li> <li>subscriber table: <ul> <li>key: randomly-generated id</li> <li>values: email address</li> </ul> </li> </ul> <p>Post contents are capped such that their rows are less than 4kb. Subscriber rows, on the other hand, are only ~32b on average. These row sizes are important, since capacity units are measured in 1kb chunks for writes and 4kb chunks for reads.</p> <p.</p> <p.</p> <p.</p> <h3 id="throttling-under-service-limits">Throttling under service limits</h3> <p.</p> <p:</p> <ul> <li>1 scheduled lambda execution / minute</li> <li>30 seconds / lambda execution</li> <li>10 messages / SQS poll</li> <li>10 second wait / SQS poll</li> </ul> <p>This puts me at ~40k executions/month, ~120k polls/month, ~1 wcu, and ~1 email/second, which is pretty conservative. I plan to increase the message limit once it’s been live for a while.</p> <p>Putting it all together, the pieces involved in subscription handling look like this:</p> <p> <pre style="font-family: monospace"> browser (AWS sdk + Cognito) --> SQS | v CloudWatch events -----------> Lambda --> Dynamo and SES </pre> </p> .</p> <h3 id="everything-else">Everything else</h3> <p>Astute readers will count six services so far, while I promised thirteen. The seventh is IAM, which is used for internal access control. It’s always free since it’s an essential part of AWS.</p> <p.</p> <p>The remaining services play supporting roles and don’t require much commentary:</p> <ul> <li>Sentry: error reporting (frontend + lambda)</li> <li>Google Analytics: frontend analytics</li> <li>BitBucket: private git repo</li> <li>CloudFlare: dns (with cdn disabled, since netlify provides one)</li> </ul> <h3 id="whew">Whew</h3> <p.</p> <p><strong><a href="">Go join Kleroteria</a> so I can justify my effort!</strong> If you’re interested in hearing more about it - or getting notified if I open source it - consider subscribing with the links below.</p> Analytics for Google Payments: now in public beta 2018-03-21T00:00:00-04:00 <h2 id="analytics-for-google-payments-now-in-public-beta">Analytics for Google Payments: now in public beta</h2> <p class="meta">March 21 2018</p> <p><a href="">Analytics for Google Payments</a>, a Chrome Extension to help Google merchants make sense of their business metrics, is now in public beta.</p> <p>To find out more and try it out, head to the new product site at <a href="">analytics.simon.codes</a>!</p> Autoplaylists 2017 user survey results 2018-03-11T00:00:00-05:00 <h2 id="autoplaylists-2017-user-survey-results">Autoplaylists 2017 user survey results</h2> <p class="meta">March 11 2018</p> <p>In early 2018 I sent out a user survey for <a href="">Autoplaylists for Google Music</a>. My goal was to get a general idea of user satisfaction, as well as figure out what I should focus on next. Here’s a quick summary of the results:</p> <ul> <li>~30% response rate from mailing list, representing ~5% of daily actives</li> <li>~6:4 representation of free vs paying users</li> <li>on average, users were likely to recommend it (NPS of 15)</li> <li>on average, users found it reliable (4+ on 5-point scale of “never works” to “almost always works”)</li> <li>common themes in feedback were: <ul> <li>syncing is opaque</li> <li>complex autoplaylist definitions are difficult to manage</li> </ul> </li> </ul> <p>I don’t want to read too much into this - especially with a low response rate and over-representation of paying users - but in general I’m pleased with the results. The reliability data is particularly relieving, since I had my doubts going by my user support work.</p> <p>I’m hoping to address both the common pain points this year by:</p> <ul> <li>adding a syncing dashboard with past syncs and their results</li> <li>adding a way to share common parts of playlists definitions</li> </ul> <p>So, here’s to a successful 2018! I’m excited to run a similar survey next year now that I have results to compare against.</p> Analytics for the Google Payments Center: accounting data now supported 2018-01-26T00:00:00-05:00 <h2 id="analytics-for-the-google-payments-center-accounting-data-now-supported">Analytics for the Google Payments Center: accounting data now supported</h2> <p class="meta">January 26 2018</p> <p><em>tl;dr <a href="">install the extension here</a>.</em></p> <p>Last year I launched the beta of <a href="">Analytics for the Google Payments</a>, a Chrome Extension to help Google merchants make sense of their business metrics. Today I’m announcing the first major change in a while: full support for accounting data.</p> <p>Basically, Analytics used to only support order data. This was useful for tracking subscription metrics like net new subscribers or churn, but didn’t help with accounting. Now, Analytics has access to every transaction, earnings report and VAT invoice, meaning it can answer questions like:</p> <ul> <li>what’s my growth in profit over time?</li> <li>how much sales tax did I collect in the last reporting period?</li> <li>how much am I paying in Google fees?</li> </ul> <p>Here’s an example graph:</p> <div class="figure"> <p><img src="/images/gpc_earnings.png" alt="the new earnings graph" /></p> <p>A screenshot of the new earnings graph. Each bar is a monthly breakdown with the trend line showing net growth.</p> </div> <p>I’m also looking into supporting bulk exports of this new data. This would combine monthly documents like earnings reports for download all at once, rather than one at a time.</p> Side project income 2017 2018-01-09T00:00:00-05:00 <h2 id="side-project-income-2017">Side project income 2017</h2> <p class="meta">January 9 2018</p> <p>2017 was my second year of running a small software business. Unlike my first year - which <a href="/2017/01/09/side-project-income-2016-0-to-100.html">you should read about first</a> if you haven’t already - I didn’t launch any new paid products. Instead, I spent most of my time experimenting with my existing products: <a href="">Autoplaylists for Google Music</a> and <a href="">Autoresponder for Google Chat</a>.</p> <p>In this post I’ll go over what I worked on and how it turned out.</p> <h3 id="financials">Financials</h3> <p>Here’s an overview of the business on paper:</p> <ul> <li>annual revenue increased from $600 to $2000</li> <li>annual expenses decreased slightly from $300 to $260</li> <li>monthly revenue run rate increased from $100 to $250</li> <li>monthly net subscribers increased from 5 to 10</li> <li>monthly cancelled/churned subscriptions also increased from 5 to 10</li> </ul> <p>Out of these, the churn rate stands out. I’ve already started collecting feedback from cancelled Autoresponder users, but have yet to put similar effort into Autoplaylists.</p> <h3 id="product-development">Product Development</h3> <p>Part of my coding effort went into two new yet-to-be-monetized projects.</p> <p>The first is <a href="">Analytics for Google Payments</a>, which helps merchants calculate business metrics like the ones I presented earlier. Motivated by my frustration getting that data for Autoplaylists, it’s also similar behind the scenes: both are Chrome Extensions using reverse-engineered apis. While the market is crowded - Baremetrics and ChartMogul come to mind - nobody has bothered with Google Payments because of the lack of official apis. Hopefully that continues to be the case. If Google launches an api for that data, I’ll probably just let the big players fight it out.</p> <p>My second new project is <a href="">Repominder</a>. It’s a SaaS that notifies forgetful open source maintainers (like me) when a release is needed. This has a less obvious path to profit than Analytics, but may have potential if marketed towards software businesses.</p> <p>Outside of my new projects my programming time went towards maintenance. Based on my analytics data and customer support interactions I chose to focus on features for Autoresponder and reliability for Autoplaylists.</p> <h3 id="growth-and-other-work">Growth and Other Work</h3> <p>One of my major growth goals was to set up mailing lists. I’m pleased to have achieved that: I now have one for each product (and this blog!) combining for a reach of 500+ and 1+ per day growth. They’re used for announcements right now, but I may experiment with drip campaigns in the future.</p> <p>Along with a mailing list, Autoplaylists got a payment plan tweak late in the year. It now includes a one-week free trial in addition to the existing one-autoplaylist freemium model. My goal was to give users a chance to try features that only work with multiple autoplaylists. While I haven’t noticed an effect on the bottom line yet, new user engagement has gone up since.</p> <p>Autoplaylists also saw my first experiment with paid advertising, after an ad blocker mishap led me to realize that Google Music serves desktop text ads. This was about as targeted as possible, so I had high hopes. One month and plenty of AdWords fiddling later I had generated about 20k impressions, 40 clicks, and 4 installs. With the average cost per click at $2.31, this meant the cost of a new user was over $20. Even assuming 100% conversion this was already above my customer lifetime value, so I stopped the campaign.</p> <p>In another marketing attempt I tried for earned media coverage. Unfortunately, unlike in 2016 I didn’t hear back from anyone I reached out to. I don’t blame them: with no launch announcements I lacked a solid pitch.</p> <p>My last bit of notable business work was when I noticed an idea of mine had already been built. It seemed abandoned, so I contacted the owner to ask about buying it. This didn’t pan out either, as they had plans to revitalize it. Still, I feel good about the time spent researching and getting advice, since I expect to be in this situation again someday (maybe even as a seller).</p> <h3 id="looking-forward">Looking Forward</h3> <p>Overall, I’m pleased with what I got done in 2017. My biggest disappointment was the lack of a new paid product. However, I’m set up to address that next year with my untapped projects and new product ideas.</p> <p>I’m also eager to pursue businesses as customers next year. Autoresponder is particularly ripe for this, since I’ve noticed a user pattern of a) small business owners and b) employees of larger companies. I haven’t reached out to them yet, but I suspect they’d be willing to pay more for added features.</p> <p>So, here’s to a successful 2018! Follow along by signing up below, and feel free to reach out with questions.</p> Repominder 2017-12-09T00:00:00-05:00 <h2 id="repominder">Repominder</h2> <p class="meta">December 12 2017</p> <p>I maintain a number of open source projects. Too often, something like this would happen:</p> <ul> <li>I merge a pull request</li> <li>I promptly forget about it</li> <li>weeks later, the changes haven’t reached a package registry</li> </ul> <p>So, I made <a href="">Repominder</a> to help OSS maintainers avoid this situation. Now when I forget about changes, I get a weekly email with diffs of affected projects. It also provides a badge showing the status of my projects (<a href="">eg</a>).</p> <p>Feel free to <a href="">sign up and monitor your own projects</a>! It’s <a href="">open source</a>, and likely to remain free unless hosting becomes annoying.</p> tabs.executeScript as a content script alternative in Chrome Extensions 2017-07-17T00:00:00-04:00 <h2 id="tabsexecutescript-as-a-content-script-alternative-in-chrome-extensions">tabs.executeScript as a content script alternative in Chrome Extensions</h2> <p class="meta">July 17 2017</p> <p>I just updated <a href="">Autoplaylists for Google Music</a> so it uses <code class="highlighter-rouge">chrome.tabs.executeScript</code> instead of a manifest content script. It’s only been a few days, but so far it’s halved sync problems. Since I didn’t find similar recommendations elsewhere, this post explains what motivated the change and how I went about it.</p> <p>First, some context on Autoplaylists. It’s a Chrome Extension that adds iTunes-style “smart playlists” to Google Music. It runs entirely in the browser and makes money from a freemium subscription model (there’s more details in <a href="/2016/07/11/launching-a-chrome-extension-part-1-taxes-and-legal.html">my</a> <a href="/2016/07/18/launching-a-chrome-extension-part-2-analytics-and-error-reporting.html">business-focused</a> <a href="/2017/01/09/side-project-income-2016-0-to-100.html">posts</a>).</p> <p>Since it uses unofficial apis, Autoplaylists depends on communication with a running Google Music tab. Specifically, it needs to:</p> <ul> <li>retrieve the Google Music user id at startup</li> <li>retrieve the cached library from Google’s IndexedDB at startup</li> <li>retrieve Google’s xsrf cookie at startup, and on-demand (if it expires)</li> </ul> <p>To do this, Autoplaylists previously used a single long-running content script which sent its tab id to the background script after loading. The background script would use that tab id for any on-demand messages.</p> <p>This caused a few problems. First, a tab refresh was required after an install, upgrade, or reload, since the background script would lose the tab id and message passing channel. This was the worst issue: it’d interrupt syncing for no apparent reason, causing symptoms like <a href="">these</a>. Second, the background script had no way of knowing when tabs closed without messaging them. On-demand messages often ended up going into the void.</p> <p>My new setup fixes these problems. The notable changes are:</p> <ul> <li>the background script has <code class="highlighter-rouge">tabs</code> permission</li> <li>at startup or when detecting a tab opening, the background script will: <ul> <li>create a unique script id</li> <li>add a new message listener that detaches itself after receiving a response with the script id</li> <li>executeScript the former content script code (adapted for one-time use)</li> </ul> </li> <li>the content script code sends responses as before, but includes the script id</li> </ul> <p>This moves the responsibility of running page code from Chrome into the background script. The added flexibility allows startup-time detection of tabs (after installs/upgrades/reloads), garbage collection of page code after one use, and easier handling of closed tabs for on-demand messages.</p> <p>It’s not a perfect solution. Aside from the added <a href="">complexity of script ids and dynamic event listeners</a>,.</p> <p>Overall, though, the costs have been worth it. I’d recommend executeScript as a manifest content script alternative for extensions with long-running background scripts and on-demand page communication requirements. In case it’s helpful, you can find most of my relevant code in <a href="">page.js</a>, and the injected code in <a href="">querypage.js</a>. As always, feel free to reach out on GitHub or via email with questions.</p> Analytics for the Google Payments Center 2017-03-18T00:00:00-04:00 <h2 id="analytics-for-the-google-payments-center">Analytics for the Google Payments Center</h2> <p class="meta">March 18 2017</p> <p><em>tl;dr <a href="">install the extension here<="">install it here<="">Analytics for Google Payments< <a href="">gmusicapi</a>, a reverse-engineered client library, I knew it could be done. And since only a small percent of Google Music users actually want this feature, the stakes are low and I don’t worry about competitors (including Google).</p> <p.</p> <h3 id="the-business">The Business</h3> .</p> <h3 id="whats-next">What’s Next?</h3> <p.</p> <p>Hopefully next year I’ll be writing a similar post! If you’d like to follow along, be sure to subscribe with the links below. Also, feel free to send an email if I can be of assistance; my inbox is always open.</p>="nb">Exception</span><span class="p">):</span> <span class="k">pass</span> <span class="k">def</span> <span class="nf">enforce_presence</span><span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="n">entries</span><span class="p">):</span> <span class="s">"" class="highlighter-rouge">raise</code> keyword, you’re right! But, if you took longer than a quarter of a second to answer, sorry: you were outperformed by my linting tools.</p> <p.< class="highlighter-rouge"="gp">$ </span>./lint example.py Linting file: example.py FAILURE line 1, col 1: <span class="o">[</span>F401]: <span class="s1">'sys'</span> imported but unused line 15, col 8: Warning: <span class="o">[</span>W0104]: class="highlighter-rouge">--no-verify</code> flag.</p> <p <a href="">comparison api</a> to find these files. This eliminates the need to download the repository’s history, allowing us to save bandwidth and disk space with a git shallow clone.</p> <p.<">%</span><span class="s"">%</span><span class="s"">%</span><span class="s" class="highlighter-rouge">logger.exception</code> is a helper that calls <code class="highlighter-rouge"">%</span><span class="s"">%</span><span class="s">r"</span><span class="p">,</span> <span class="n">checkmark</span><span class="p">)</span></code></pre></figure> <p>Using <code class="highlighter-rouge">%s</code> with a unicode string will cause it to be encoded, which will cause an <code class="highlighter-rouge">EncodingError</code> unless your default encoding is utf-8. Using <code class="highlighter-rouge">%r</code> will format the unicode in \u-escaped repr format instead.</p> class="highlighter-rouge">git+</code>: the vcs type with the repo url appended. https (rather than ssh) is usually how you want to install public code, since it doesn’t require keys to be set up on the machine you’re running on.</li> <li><code class="highlighter-rouge"> class="highlighter-rouge">master</code> likely would).</li> <li><code class="highlighter-rouge">egg=gmusicapi</code>: the name of the package. This is the name you’d give to <code class="highlighter-rouge">pip install</code> (which isn’t always the same name as the repo).</li> <li><code class="highlighter-rouge">==4.0.0</code>: the version of the package. Without this field pip can’t tell what version to expect at the repo and will be forced to clone on every run (even if the package is up to date).</li> </ul> <p:</p> <ul> <li>branch from your feature branch</li> <li>change the version to 1.2.4-rc.1, since it’s a release candidate of the bugfixed 1.2.3 release</li> <li>use a requirements line like <code class="highlighter-rouge">git+</code></li> </ul>.</p> <p>I disconnected with the feeling that my time wasn’t well spent. But, hey, at least someone showed up.</p> <h2 id="impressions">Impressions</h2> .</p> <p.</p> <p>No-shows aside, my first Helpout really showed the potential of the platform: fifteen minutes of my time made a real difference! I’ll definitely keep some timeslots open on the platform, and hope to have better experiences to share in the future.</p>.</p> <p>What does bother me is the loss of debugging information. For example, here’s an error I received from Go’s http client: <code class="highlighter-rouge").</p> <p>Since their docs don’t make any of this clear, expect to dig around the forums for answers. Be warned, they’ve got a very “googling for .NET answers on SO” kind of vibe to them.</p> <p.</p> <p.</p>="nb">ImportError</span><span class="p">:</span> <span class="n">No</span> <span class="n">module</span> <span class="n">named</span> <span class="n">protobuf</span></code></pre></figure> <p>The problem is that Google’s own App Engine apis also use the <code class="highlighter-rouge">google</code> package namespace, and they don’t include the protobuf package.</p> <p>Thankfully, there’s a simple way to fix this. First, vendorize the library as you normally would. I just ripped the <code class="highlighter-rouge"="">Analytics for Google Payments< class="highlighter-rouge" class="highlighter-rouge">*</code>). They don’t get <code class="highlighter-rouge" class="highlighter-rouge"="o">(</span>chrome message passing<span class="o">)</span> | v our content script ^ | | <span class="o">(</span>the dom<span class="o">)</span> | v our injected code | | <span class="o">(</span>global namespace<span class= class="highlighter-rouge">window.plupload.upload(File)</code> function isn’t accessible; it’s hidden inside turntable closures. However, a similar function is stored directly as a handler on the main file input, meaning that we can spoof an upload with something like <code class="highlighter-rouge">$('.).</p> <h3 id="invest-in-support">Invest in support</h3> .</p> <p>Thankfully, I’ll have plenty of time this summer at the <a href="">Recurse Center</a>!</p> class="highlighter-rouge">~/.</p> <p:</p> <ul> <li>used the crouton cli-extra target (eg <code class="highlighter-rouge">crouton -t cli-extra ...</code>).</li> <li>installed openssh in my chroot</li> <li>start sshd, then use Secure Shell to connect to my-user@localhost</li> </ul> <p>To make life a bit easier, I stuck <code class="highlighter-rouge">/etc/init.d/ssh start</code> into my chroot’s <code class="highlighter-rouge">/etc/rc.local</code> (which crouton runs upon mounting). Now, when I want to work locally, I just Control-Alt-Forward to get my local shell, <code class="highlighter-rouge">$:</p> <blockquote> <p><strong>simon_weber</strong>: I suppose it would be nice.</p> <p>For my dataset I chose my own Google Music library. It’s unique, big enough (7600+ songs), and well organized. Plus, it’s a cinch to access with my <a href="">Google Music api</a>.</p> <p’).</p> .</p> <p.<> | https://feeds.feedburner.com/SimonWeber | CC-MAIN-2022-40 | refinedweb | 6,845 | 54.42 |
On Thu, Nov 10, 2011 at 8:57 AM, Barry Warsaw <barry at python.org> wrote: > On Nov 09, 2011, at 05:13 PM, PJ Eby wrote: > >>In other words, the intention of PEP 402 is to have a uniform and simple >>way to evolve packages that as a side-effect allows both traditional and >>"namespace" packages to work. It implements namespace packages by >>*removing* something (i.e., getting rid of __init__.py) rather than by >>adding something new (e.g. .pyp extensions). For that reason, I think it's >>better for the future of the language. > > That's one thing that appeals to me as a distro packager about PEP 402. Under > PEP 402, it seems like it would be less work to modify a set of upstream > packages to eliminate the collisions on __init__.py. Indeed, I don't see PEP 382 reducing the number of "Why doesn't my 'foo' package work?" questions from beginners either, since it just replaces "add an __init__.py" with "change your directory name to 'foo.pyp'". PEP 402, by contrast, should *just work* in the most natural way possible. Similarly, "fixing" packaging conflicts just becomes a matter of making sure that *none* of the distro packages involved install an __init__.py file. By contrast, PEP 382 requires that *all* of the distro packages be updated to install to "foo.pyp" directories instead of "foo" directories. On the other hand, the Zen does say "Explicit is better than implicit" and if we don't allow arbitrary files without an extension as modules, why should we allow arbitrary directories as packages*? From that point of view, PEP 382 is actually just bringing packages into the same extension-based regime that we already use for distinguishing other module types. *This is a deliberate mischaracterisation of PEP 402, but it seems to be a common misperception that is distorting people's reactions to the proposal - 'marker files' actually still exist in that PEP, it's just that their definition is "any valid Python module file or a relevant subdirectory containing such files". If this causes problems for Jython, then they should be able to fix it the same way CPython fixed the DLL naming conflict problem on Windows: by *not* accepting standard Java extensions like ".jar" and ".java" as Jython modules, and instead requiring a Jython specific extension (e.g. ".pyj", similar to the ".pyd" CPython uses for Windows DLLs). While there's no reference implementation for PEP 402 that updates the standard import machinery as yet, it's worth taking a look at Greg Slodkowic's importlib-based implementation that came out of GSoC this year: So yeah, I still think PEP 402 is the right answer and am -1 on PEP 382 as a result - while I think PEP 382 *is* an improvement over the status quo, I also thing it represents an unnecessary detour relative to where I'd like to see the import system going. Cheers, Nick. -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia | https://mail.python.org/pipermail/import-sig/2011-November/000363.html | CC-MAIN-2016-40 | refinedweb | 504 | 60.55 |
Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi,
in picture object Position gui unit is real, Rotation gui unit is Degree , User data gui unit is Percent. how to know gui unit? and how to directly obtain the value displayed on the panel(Data = 0.1745, want to directly get 17.453)?
Thanks for any help!
Hello @chuanzhen,
thank you for reaching out to us. I will answer in bullet points, since there are sort of two questions within you question.
BaseContainer
c4d.DESC_UNIT
Cheers,
Ferdinand
The example code:
"""Attempts to evaluate the unit type of the first user data parameter of the
currently selected object.
Must be run in the Script Manger while having an object selected with at least
one user data parameter. When the parameter has one of the unit types float,
percent, degree or meter (there are other unit types), it will print out a
matching message. If not, it will report that there is "another" unit type or
no unit type when the parameter has no unit type set at all.
"""
import c4d
def main() -> None:
"""Attempts to evaluate the unit type of the first user data parameter of
the currently selected object.
"""
# op is a predefined module attribute in scripts referencing the currently
# selected object.
if not isinstance(op, c4d.BaseObject):
raise RuntimeError("Please select an object.")
# The id of the parameter we are interested in, the first user data
# parameter of a node.
pid = (c4d.ID_USERDATA, 1)
# Get the description of the node.
description = op.GetDescription(c4d.DESCFLAGS_DESC_NONE)
# Get the first user data element in the description.
parameterData = description.GetParameter(pid)
# Bail when the container is empty, i.e., there is no such parameter in
# the node.
if len(parameterData) < 1:
raise RuntimeError(f"Retrieved empty data container for {pid}.")
# How to iterate over the flags of that parameter container.
# for cid, value in data:
# print (cid, value)
# Get the unit type flag for the element and bail if there is no value
# set for that flag.
unitType = parameterData[c4d.DESC_UNIT]
if unitType is None:
print (f"The parameter with the id {pid} has no unit type.")
return
# Do some stuff depending on the unit type.
if unitType == c4d.DESC_UNIT_FLOAT:
print (f"The unit type for {pid} is float.")
elif unitType == c4d.DESC_UNIT_PERCENT:
print (f"The unit type for {pid} is percent.")
elif unitType == c4d.DESC_UNIT_DEGREE:
print (f"The unit type for {pid} is degree.")
elif unitType == c4d.DESC_UNIT_METER:
print (f"The unit type for {pid} is meter, i.e., length.")
else:
print (f"The unit type for {pid} is another unit type.")
if __name__ == '__main__':
main()
@ferdinand Thanks,great! | https://plugincafe.maxon.net/topic/13653/how-to-get-data-unit/1 | CC-MAIN-2022-27 | refinedweb | 473 | 59.7 |
17 March 2009 11:09 [Source: ICIS news]
HONG KONG (ICIS news)--China’s polyolefins demand may improve from the second half of this year due to low interest rates and increased credit liquidity, a senior official of the Guangdong Plastics Exchange said on Tuesday.
“I think polyolefins demand and hence prices may hit the bottom and start rising again some time between the second half this year or the first quarter of next year,” the exchange’s vice president Cai Hong Bing said in Mandarin.
“We estimate that ?xml:namespace>
“The growth rate of
Commodity prices typically track changes in the money supply and there’s typically a time-lag of 6-12 months between the two, he said.
The Guangdong Plastics Exchange offers a range of petrochemical-related services, including an online trading platform for polyolefins and polyvinyl chloride (PVC). | http://www.icis.com/Articles/2009/03/17/9200675/china-polyolefins-demand-predicted-to-improve-from-h2-2009.html | CC-MAIN-2014-41 | refinedweb | 142 | 52.94 |
Pause in Redux Saga
Your code running too fast? Do you just want a timing offset for some reason? If you have a long-running, complicated action that you're running already, it's likely you're using the fantastic redux-saga. Here's a way to pause execution with a redux-saga-managed action.
Write the Pause Function
First let's write the pause function. This function has to do nothing more than hang out for a while. The easiest way to do nothing is to call
setTimeout. Let's do that. To make our async function work well in the context of redux-saga, we'll return a
Promise that takes a moment to resolve:
export default function pause(delay) { return new Promise(resolve => { setTimeout(_ => { resolve() }, delay.millis) }) }
This function now acts like any other async function that your saga might call, such as an api call.
Calling Pause
For a quick scenario, let's say that we have an action around alerting, where we want to dismiss all alert dialogs from our UI. Each alert will animate out when it is dismissed. We want a timing offset between each that will make them look staggered as they animate off-screen. To accomplish this, we'll pause for increasingly-long amounts of time before dismissing each one:
import { call, put } from 'redux-saga/effects' import * as actions from './actions' import pause from '../common/pause' const pauseStepDefault = 700 export function* dismissAll(alerts, pauseStep = pauseStepDefault) { const ids = alerts.map(a => a.id) for (let i = 0; i < ids.length; ++i) { yield call(pause, { millis: pauseStep * (i + 1) }) yield put(actions.dismissAlert(ids[i])) } }
Note that the
pause function that we wrote is simply called with the
call effects helper that we're used to using in redux-saga. The
actions.dismissAlert function is implemented elsewhere and not necessarily germane to this pattern. This implementation requires your alerts to have an
id property. Also note the use of the
for statement as opposed to a
forEach with anonymous function. This is done to simply and avoid nesting generator functions.
Pretty cool, right? Who knew pausing to take it all in could be so rewarding? #slowdown
What are some other cool async actions that you've implemented with redux or redux-saga beyond regular 'ol api calls? | https://jaketrent.com/post/pause-in-redux-saga/ | CC-MAIN-2022-40 | refinedweb | 386 | 66.33 |
As every one knows a movie is a sequence of images or bitmaps. And also it is known that
HBitmap is the basic ingredient of Bitmap. And we have lots of
HBitmaps with us in all our windows applications whether they are animations or just static interfaces. And it is high time for all of us to save all those beautiful sequence of
HBitmaps into a file and call it as movie or animation or demo, you name it.
The following presents a way of creating a Movie (AVI / WMV / MOV) from a sequence of
HBitmaps. The required functionality has been wrapped in appropriate classes like
CAviFile,
CwmvFile and
CQTMovieFile. Using these classes is fairly simple and involves a single function call
AppendNewFrame(); All the necessary initialization (like frame rate settings etc..) would be taken care by the class itself when the
AppendNewFrame() is called for the first time. (Except for the
QuickTime class. It has its own Graphics world that need to be initialized explicitly through a call to
InitGraphicsWorld()).
As one can easily expect - this approach is two fold - for those who want to create movie from a set of image files, say *.jpg or *.bmp, all that is needed is - load all those images into an array of
HBitmaps and call
AppendNewFrame() with each of them in the order of presentation. For those who want to create movie from the program generated animation sequence - just render the drawing to an
HBitmap and call
AppendNewFrame() on it for each update (perhaps in
WM_PAINT or
OnPaint() handler).
Before we move on further, I would like to mention one point worth noting. These classes that we are about to discuss are primarily aimed at providing an add-on support for otherwise complete applications (though they could be used perfectly well in your not yet designed application also). To be exact, these classes have been designed with especial care so as to not to interfere with the design or functionality of the application that is using them. If any error occurs within these classes, they would rather turn off themselves than causing the entire application to halt. Hence the user is freed from any initializations and error checking's. If every thing goes well, you would have a fine movie at the end, but if any thing goes wrong (with in these modules), still you could have your application running perfectly.
In the following sections details of each of these classes has been explained separately.
The class
CAviFile creates an AVI movie from
HBitmaps. Using this class is a two step process. The first step involves creating a
CAviFile object. The constructor of
CAviFile has been declared in AviFile.h as:
class CAviFile{ public: CAviFile(LPCSTR lpszFileName=_T("Output.avi"), DWORD dwCodec = mmioFOURCC('M','P','G','4'), DWORD dwFrameRate = 1); ~CAviFile(void); HRESULT AppendNewFrame(HBITMAP hBitmap); HRESULT AppendNewFrame(int nWidth, int nHeight, LPVOID pBits, int nBitsPerPixel); };
The constructor accepts three arguments - the output file name, which by default is set to Output.avi, the Video codec to be used for compression, which by default is set to MPG4, and the Frame rate (FPS), which by default is set to 1. While creating the
CAviFile object, you can either use the default parameter values, which should work fine for most of the cases, or you can pass your own choice of values. More on this is explained later.
Once a
CAviFile object has been created with appropriate codec and frame rate values, the second step involved in using it is the actual call to the method
AppendNewFrame(). From the above it is clear that the method has two overloaded alternatives. One version is:
HRESULT AppendNewFrame(HBITMAP hBitmap);which is useful when all our drawing has been done on to a
HBitmapand is ready to be stuffed to the end of the current movie as a new frame. The other form accepts raw bitmap bits instead of
HBitmap, as shown below.
HRESULT AppendNewFrame(int nWidth, int nHeight, LPVOID pBits, int nBitsPerPixel);If you have your rendered drawing in the form of raw bits rather than
HBitmap, you might prefer this second version. However, it should be noted that once we start with one form we can not switch to other form in between during the movie creation.
The following illustrates the typical code sequence involved in using the
CAviFile class:
#include "avifile.h" CAviFile aviFile; OnPaint(){ hdc = BeginPaint(hWnd, &ps); //...Drawing Code onto some hBitmap EndPaint(hWnd, &ps); aviFile.AppendNewFrame(hBackBitmap); }
The method
CAviFile::AppendNewFrame() returns
S_OK on success and
E_FAIL on failure. In case of errors, we can use the
CAviFile's
GetLastErrorMessage() method to retrieve the error message description in string format.
LPCTSTR CAviFile::GetLastErrorMessage() const { return m_szErrMsg; }
The typical usage is as shown below:
if(FAILED(avi.AppendNewFrame(hBackBitmap))) { MessageBox(hWnd, avi.GetLastErrorMessage(), _T("Error Occured"), MB_OK | MB_ICONERROR); }
This section briefly covers the behind scene mechanisms involved in the operation of
CAviFile class. One can find all these details from the implementation file AviFile.cpp itself.
AVI movie creation has been one of the most oldest forms of movie creation and has lot of support through AVIFile set of functions. Before calling any AVIFile function we should call
AVIFileInit() and before exiting the application we should call
AVIFileExit(). The constructor and destructor are the best places for both of them. Hence you can find them in the constructor and destructor of
CAviFile class respectively.
Among all the set of AVIFile functions, the ones that we are interested in are :
AVIFileOpen(),
AVIFileRelease(),
AVIFileCreateStream(),
AVIMakeCompressedStream(),
AVIStreamSetFormat(),
AVIStreamWrite().
Among the above,
AVIStreamWrite() is the main operation that actually writes the compressed image bits to the movie file. All the others are used for setting the file, stream and compression options. After creating/opening the AVI file with
AVIFileOpen(), the compression options and video codec options can be chosen by settings appropriate values for the
AVISTREAMINFO structure members and passing it to the function
AVICreateStream(). For example, The
fccHandler member of
AVISTREAMINFO represents the four character code for the video codec. Typically, the four character code for the video codec is a string such as "divx" "mpg4" etc.. that would be unique for each video codec installed in the system. The function
mmioFOURCC() can be used to convert these characters into the
DWORD format acceptable by the
fccHandler member. By default, in the
CAviFile implementation we use "mpg4" codec. To choose a different codec for your application, pass the codec's fourcc as part of the constructor as shown below.
CAviFile avi("Output.Avi", mmioFOURCC('D','I','V','X'), 1); // Use DivX codec with 1 FPS
A list of Fourcc codes and other related information can be found here.
Note that you can pass 0 for the fourcc value to avoid using the codecs altogether, where by your bitmaps would be inserted into the movie as they are without being processed by any codec.
CAviFile avi("Output.Avi", 0, 1); // Does not use any Codec !!
The member
dwRate of
AVISTREAMINFO controls the Frame rate of the movie. Values between 5 to 15 are common and should be good for most animations (
dwRate = 15 typically means 15 frames per second). You can change this frame rate setting by passing your own choice of value to the third parameter (
dwFrameRate) of the
CAviFile constructor.
Once all these settings has been done successfully, we can create a new video stream in the movie file by using the function
AVICreateStream() function, after which we can call the method
AVIMakeCompressedStream() to setup the compression filter for the created stream. The success of
AVIMakeCompressedStream() depends on the codec you are using being available on the system. If you have used an invalid fourcc value or if the codec is not available on the machine, the call to
AVIMakeCompressedStream() would fail.
Finally, after setting the compression settings but before starting to write the actual image sequence, we need to set the format of our video stream, which is done by using
AVIStreamSetFormat. The success of
AVIStreamSetFormat() depends on the input bitmap data being suitable to the requirements of the compressor (codec). Note that each codec has different requirements for processing their input data (such as the bits per pixel value being multiple of 4 or the width and height of frames being powers of 2 etc...), and passing a bitmap (or bits) that does not meet those requirements may cause
AviStreamSetFormat() to fail.
Once the stream format has been set, we can start writing the
HBitmap data using the function
AVIStreamWrite(). This function automatically compresses the data (using the options we have set before) and writes the data to the video stream that would be saved to the output movie file. Upon completion, the movie file should be closed to flush all the buffers using the function
AVIFileRelease().
The set of AVIFile functions discussed above are declared in the standard header file
vfw.h, and the corresponding library that should be linked is
vfw32.lib.
The class
CwmvFile creates a WMV movie from
HBitmaps. This class is based on the Windows Media Format SDK. The library file wmvcore.lib is part of the SDK and can be downloaded from Microsoft.
By default, the implementation of
CwmvFile uses the Windows Media Format SDK Version 9.0. It has been defined in the file wmvfile.h as:
#define WMFORMAT_SDK_VERSION WMT_VER_9_0
However, You can change this to other versions by using the appropriate version number. Adding the following line in your main application causes the implementation to use the Media Format SDK Version 8.0 instead of the default 9.0 version
#define WMFORMAT_SDK_VERSION WMT_VER_8_0
Use the above
#define before including the wmvfile.h so that the default #define in the wmvfile.h can be ignored.
Using the class
CwmvFile is a two step process. The First step involves creating a
CwmvFile object. The constructor of
CwmvFile has been declared in wmvFile.h as:
class CwmvFile{ public: CwmvFile(LPCTSTR lpszFileName = _T("Output.wmv"), const GUID& guidProfileID = WMProfile_V80_384Video, DWORD dwFrameRate = 1); ~CwmvFile(void); HRESULT AppendNewFrame(HBITMAP hBitmap); HRESULT AppendNewFrame(int nWidth, int nHeight, LPVOID pBits, int nBitsPerPixel); };
The constructor accepts three arguments - the output file name, which by default is set to Output.wmv, and a profile Id, followed by the frame rate option. A profile is a set of media parameters used to create the WMV movie file. The Profile Id is unique GUID given to a profile. Ids for most common system profiles have been listed at MSDN.
All these profiles may not be available in your system. Using a profile Id which is not present in your system would fail the creation of
CwmvFile object. List of all available profiles in your system can be enumerated by using the
EnumProfiles() function provided in the source file: EnumProfiles.cpp in EnumProfiles.zip. The function
EnumProfiles() outputs the names of all the profiles available on your machine. You can lookup the profile ids for the profile names at the afore mentioned system profiles webpage.
The second step in using the
CwmvFileclass involves the actual call to
AppendNewFrame
(). From the above it is clear that it has two overloaded alternatives. One comes with
HBitmap style - where all our drawing has been done on to a
HBitmap and is ready to stuffed to the end of the current movie. The other form accepts raw bitmap bits instead of
HBitmap. If we have our rendered drawing in the form of bits than
HBitmap - we might as well use this option. However, it should be noted that once we start with one of them we can not switch to other form in between during the movie creation. The following illustrates the code sequence:
#define WMFORMAT_SDK_VERSION WMT_VER_8_0 #include "wmvfile.h" CwmvFile wmvFile("wmvFile.wmv", WMProfile_V80_384PALVideo, 1); OnPaint() { hdc = BeginPaint(hWnd, &ps); //...Drawing Code onto some hBitmap EndPaint(hWnd, &ps); wmvFile.AppendNewFrame(hBackBitmap); }
It should be noted that some codec's may require that height and width of the frame should be multiples of some integer like 3 or 4 etc.. That is, you can not have any size video height or width. There are limits on them like some codec's can handle only 320*240 or 640*480. Hence you should either create the
HBitmap with those supported sizes or you should blit it to a new bitmap with the supporting sizes and use that instead. Using a
HBitmap with unsupported sizes results in error.
This section briefly covers the behind scene mechanisms involved in the operation of
CwmvFile class. One can find all these from the implementation file wmvfile.cpp itself.
CwmvFile class maintains three private functions by name
AppendFrameFirstTime(),
AppendFrameUsual(), and
AppendDummy(). The first function
AppendFrameFirstTime() contains all the initialization code to setup the movie properties like width and height of frames etc.. and is called only once - only for the first frame. For the rest of the frames
AppendFrameUsual() takes care of them. It contains actual code for writing the samples of data to movie file and so is called for every frame.
AppendDummy() is just place holder function and as its name implies does nothing. Along with these a Function pointer
pAppendFrame has been defined. When the application starts when no frame have been added to movie file - the function pointer points to the
AppendFrameFirstTime() function. Once the first frame has been added and all the movie file properties have been initialized properly, the pointer is updated to point to the
AppendFrameUsual() function. Now, when the application calls the
AppendNewFrame() on the
CwmvFile object -all that the function does is just calling the function pointed to by the
pAppendFrame pointer. Hence, for the first time, it would be the
AppendFrameFirstTime() function and from then on it would be
AppendFrameUsual() function.
However, when an error occurs, the pointer
pAppendFrame would be made to point to
AppendDummy() so that from that point on wards no frames are added to the movie and just dummy code is executed and failure values are returned instead. This facilitates for you to continue animation even if an error occurs in the part of movie creation. However you can check for the return values in the code to determine the success state and can terminate the application on an error if you wish.
The actual process of creating the movie is done like this. Windows Media Format SDK supports COM interfaces
IWMProfile,
IWMWriter,
IWMInputMediaProps,
IWMProfileManager etc., for handling the movie operations. The
IWMWriter is the actual interface that supports writing the images streams to the movie file. To create an object for this interface, we need to use the function
WMCreateWriter(). This would give us the pointer to the
IWMWriter interface. However, before we can actually use the
IWMWriter object for the writing we need to set the profile for the writer. For that we need to Load the profile specified by the Profile Id. We can do this by using the
IWMProfileManager object. We create an object of
IWMProfileMnager using the
WMCreateProfileManager() function and then on the created profile manager object call the method
IWMProfileManager::LoadProfileById(). This gives us the pointer to the loaded profile interface, which we can use with the writer object by using
IWMWriter::SetProfile().
The Movie output file name can be set using the method
IWMWriter::SetOutputFileName(). The actual input video properties are set by using the method
IWMWriter::SetInputProps(). The interface
IWMInputMediaProps supports settings for various input properties like frame rate, source frame rectangle size etc. (Note that as mentioned earlier, these frame sizes should be in accordance with the requirements of the Video Codec and Profile). Before we can actually start writing the image data into the movie file we should call the method
IWMWriter::BeginWriting(). The method
IWMWriter::WriteSample() actually writes the image data stream into the movie file. However, it expects data in the form of
INSSBuffer. Hence for every frame, we need to create an
INSSBuffer object using the method
IWMWriter::AllocateSample() and use the returned buffer to hold the image data and pass it to the
IWMWriter::WriteSample(). We should free the buffer using the
INSSBuffer::Release() method. Note that the buffer should be created afresh for each input frame. Once we are finished with writing the image stream we should call the
IWMWriter::EndWriter() method to complete the writing. Finally before terminating the application we should free all our objects by using the
Release() method on each of them.
Note that before we can actually perform any operation on COM objects we should enable COM using the function
CoInitialize() and upon freeing all the COM objects we should close COM using the
CoUninitialize() function. These functions have been placed in the
CwmvFile constructor and destructor respectively.
Our class
CQTMovieFile creates a QuickTime movie from
HBitmaps. This class is based on the QuickTime 6 SDK for Windows. The library file QtmlClient.lib is part of the SDK and can be downloaded from here.
Using the
CQTMovieFile is a three step process. The first step involves creating the
CQTMovieFile object. The constructor for the class has been declared as:
class CQTMovieFile { public: CQTMovieFile(); HRESULT InitGraphicsWorld(HDC hBackDC,HBITMAP hBackBitmap, LPCTSTR lpszFileName=_T("Output.mov")); ~CQTMovieFile(void); HRESULT AppendNewFrame(); };
QuickTime uses its own Graphics World for its operations much the same way the windows uses the GDI. So, it is required to establish a connection between our GDI object
HBitmap and the internal Graphics World of QuickTime. This is done through the function
InitGraphicsWorld(). The method involved in creating the Quick time movie using the
HBitmap is as follows: QuickTime movie is nothing but a sequence of frames of its Graphics World (much the same way as the AVI file is a sequence of bitmaps). Hence, if we can draw our animation into the Graphics world of QuickTime then all that can be directly converted into QuickTime movie easily. This is facilitated by our function
InitGrpahicsWorld(). All that it does is - tells the Graphics World not to use its own memory but to use the memory provided by the
HBitmap that we supply to it.
Once we successfully finish the call to
InitGraphicsWorld() a relation would be established between the Graphics World of the QuickTime and GDI of the Windows. The
HBitmap that we supplied acts as the connection between these two worlds. Whatever we draw on the
HBitmap would affect the Graphics World of QuickTime (since it is using the bits of
HBitmap as its Graphics World Memory) and whatever Quick Time does to its Graphics World would be reflected on to our
HBitmap.
Using this newly established connection between QuickTime and GDI for our QuickTime movie creation is fairly simple. Render each frame of your animation onto the
HBitmap and call the
AppendNewFrame() function to append this frame to the Movie file. Note that
AppendNewFrame() has no parameters. It is due to the fact that Quick Time has got all the data it needs readily available with itself in the form of Graphics World. And also note that the
CQTMovieFile, unlike
CAviFile and
CwmvFile, does not have the overloaded raw bits version of the
AppendNewFrame() function. Hence you could use only
HBitmaps with the
CQTMovieFile class. The following illustrates the code sequence:
#include "QTMovieFile.h" CQTMovieFile movFile; OnCreate(){ InitGraphicsWorld(hBackDC,hBackBitmap); } OnPaint(){ hdc = BeginPaint(hWnd, &ps); //...Drawing Code onto the hBackBitmap EndPaint(hWnd, &ps); movFile.AppendNewFrame(); }
The
HBitmap that is to be used as the connection between the Graphics World of the QuickTime and the GDI of the Windows should be created using the function
CreateDIBSection(). And also note that the
HBitmap that is to be used with the Graphics World should be a top-down bitmap and so the height value of the
BITMAPINFOHEADER of the
BITMAPINFO structure should be set to negative when calling the
CreateDIBSecion. Using a positive height value when creating the bitmap would cause a bottom up bitmap to be generated and hence would result in an up side down QuickTime movie.
This section briefly covers the behind scene mechanisms involved in the operation of
CQTMovieFile class. One can find all these from the implementation file QTMoviefile.cpp itself.
According to the QuickTime SDK - before any of the QuickTime Functions can be accessed, the function
InitializeQTML() should be called and before closing the application
TerminateQTML() should be called. Hence the
CQTMovileFile class calls them in the constructor and destructor respectively. Another issue is - before calling any Movie Operations we should call
EnterMovies() and upon termination we should call
ExitMovies(). These too have been placed in the constructor and destructor as well.
QuickTime provides functions like
CreateMovieFile(),
NewMovieTrack(),
NewTrackMedia(),
AddMediaSample(),
InsertMediaIntoTrack(),
AddMovieResource() etc., to manipulate and control the behavior of the movie data and files along with compression functions like
CompressImage() etc., that make the movie creation an easy job. The detailed documentation for these can be found here.
For the QuickTime Movies Video Codec's can be chosen from a variety of types. By default the implementation uses
kJPEGCodecType. You can override this with
#defining
VIDEO_CODEC_TYPE in your application like,
#define VIDEO_CODEC_TYPE kAnimationCodecType
This should be
#defined before
#including the QTMovieFile.h
For a list of all the available codec's visit this link.
All the methods discussed above are aimed at a single goal - creating a movie from a
HBitmap. However, the results may vary depending on a variety of settings ranging from the video frame rate settings to the codec being used. For example, for some screen capture applications, choosing a particular codec known as Windows Media Video 9 Screen codec should give optimal results in both quality and size - though the same may not be the case for high bit rate animation applications (Refer to the article Capturing the Screen for more details about capturing the screen programmatically). Also the particular format (AVI /WMV /MOV) to be chosen for your content depends on many factors such as the size of the movie produced by each format, the quality of the movie produced and the issues of platform independence etc. While QuickTime offers wide platform coverage, the Windows Media format is quickly replacing the AVI format and is promising better quality. Whatever it is, next time when you see a
HBitmap - don't forget to check if you can make a nice movie out of it.
General
News
Question
Answer
Joke
Rant
Admin | http://www.codeproject.com/KB/graphics/createmovie.aspx | crawl-002 | refinedweb | 3,710 | 62.48 |
Toast
Type: React component
How to get Toast?
JavaScript
import { Toast } from 'fds/components';
A message rendered in Text using a connotation color as its background, specifying the severity of the message.
Toast is suited for a short (popup) message which is not interruptive, meaning the corresponding content is still visible while showing the message.
If the message should be interruptive, consider using StateMessage or CompactStateMessage instead.
Props
connotation
(Optional)
Type: String
Specifies the meaning and/or severity of the given context. The possible values are:
'info'
'success'
'warning'
'error'
Default value
content
(Required)
Type: React node
The human readable message displayed in the component, displayed inside a Text component if you use a string. If you want to display inlines (such as a TextLink component) inside your message. You have to provide the Text component yourself. In that case, take care to set the colorName and fontStackName prop as appropriate. For the colorName prop, use
toast-${connotation}-color. For the fontStackName prop, use the value you would have provided to this Toast, or omit it if you want to use the default "interface" font.
Related links
icon
(Optional)
Type: String
The name of the icon displayed in the component.
This should be one of the FontAwesome (v5 Pro) icon names with an optional style prefix ('far ' is the default prefix). For more info, see the Font Awesome concept page.
Default value
font
Stack Name
(Optional)
Type: String
The name of the font stack to render the textual content of the component in. This will set the "font-family" CSS property based on a predefined set of values. Each font stack represents a certain use case in which it should be implemented, which is described below.
Can be one of:
content: a serif font, should be used for articles and longer (regular) content.
interface: a sans-serif font, should be used for labels in components and other interface elements.
monospace: a fixed-width font, should be used for code (examples).
Default value | https://documentation.fontoxml.com/latest/toast-13519ea1660f | CC-MAIN-2021-21 | refinedweb | 332 | 63.39 |
Did you know that every object in your Python program is given a unique identifier by the interpreter which you can return using the ‘id()’ function? Let’s see what happens when we assign variables to each other in Python and then print out the variable value and object id:
x = 5 y = x print(x, id(x)) print(y, id(y))
Now I am printing out two things about each variable: the value it stores (the number 5) and the object id. The object id for both variables should be the same. This is telling us that both the x and y variables are referring to the same object. Now, what happens if I were to change the y variable?
x = 5 y = x y += 1 print(x, id(x)) print(y, id(y))
Here I’ve added 1 to the y variable, and as you can see, both the value and object id of the y variable is now different to the x variable. This change has occurred because integers in Python are immutable data types. Integers, floats, strings and tuples are examples of immutable objects in Python. What this means is that when you change the number a variable refers to, the Python interpreter points the variable to a completely different object.
Now, the distinction between mutable and immutable objects in Python starts to become more important when you start working with mutable data types like lists:
x = [1] y = x y.append(5) print(x, id(x)) print(y, id(y))
The thing that may surprise a lot of people is that now the list both x and y points to has changed! Now the list has a 1 and a 5 in it, even though I only appended to y. This is very easy to get tripped up on if you don’t know what Python is really doing under the hood.
Now how do you get around this? Luckily the standard library has us covered with a handy package called ‘copy’:
import copy x = [1] y = copy.copy(x) y.append(5) print(x, id(x)) print(y, id(y))
Once you use the ‘copy’ method on x, you can see from the output that y has a new object id and that changes you make to the y variable no longer affect x. Problem solved, right?
Well, there’s now just one final thing to consider – what happens if I have a list of lists and I use the copy method?
import copy x = [[1, 2], [3, 4]] y = copy.copy(x) y[0].append(5) print(x, id(x)) print(y, id(y))
You can see that I’ve made a copy of the x variable, then appended to the first list in y (the one containing [1, 2]). However, when you see the output, you’ll notice that like before, the change made to y has also modified x. You can see the reason for this by looking at the object id of the first list of x and y:
print(x[0], id(x[0])) print(y[0], id(y[0]))
Both lists refer to the same object, only the outer list was copied and received a new object id! To solve this, we’ll need to use the ‘deepcopy’ method. This will create unique copies of all the objects throughout the list – not just a copy of the outer list itself:
import copy x = [[1, 2], [3, 4]] y = copy.deepcopy(x) y[0].append(5) print(x, id(x)) print(y, id(y))
Now we should see that any changes to the lists in x or y will not affect the variable anymore.
So how is this useful? The reason I decided to write this post this evening was because some of the code I was working on today involved initialising multiple dictionaries with many keys. I could have copied and pasted them, but it was a lot easier and more readable for me to create an initial variable, then use ‘deepcopy’ to initialise the other variables. If I hadn’t been aware of Python object ids and mutable types, then I could very easily have created a massive bug in my code by creating several variables that all modified the same dictionary.
| https://jacksimpson.co/python-objectids-mutable-types/ | CC-MAIN-2021-31 | refinedweb | 715 | 73.81 |
Choosing from Multiple Options in the C Language with ELSE-IF
The C language gives you a number of ways to build a program that makes a decision. If you need something to happen only when a particular prerequisite is met, C offers you the if keyword. If your program needs to choose from two paths, using else with your if statement gives you even more choices.
If your C program needs to make a more complicated decision, you can use else if. By using else if, you can have several if statements piled on top of each other, narrowing a complex decision tree into a few possible outcomes:
#include <stdio.h> int main() { float temp; printf("What is the temperature outside?"); scanf("%f",&temp); if(temp < 65) { printf("My but it's a bit chilly out!\n"); } else if(temp >= 80) { printf("My but it's hot out!"); } else { printf("My how pleasant!"); } return(0); }
This is one way to handle multiple conditions in C. Here's how it works:
The first comparison is made by if in Line 9.
If the value of the variable temp is less than 65, those statements belonging to if are executed; the rest of the construction (Lines 13 through 20) is skipped.
When the first comparison is false, the comparison is made by else if in Line 13.
When that comparison is true, the statements belonging to else if are executed; Lines 17 through 20 (inclusive) are skipped.
Finally, when both if and else if comparisons are false, the statements belonging to else (Line 17) are executed.
When you're performing multiple comparisons, it's important to get the order right. Often, this requires a visual image, like the one shown here, because, if you cannot visualize the comparisons and the way they eliminate the outcome, the program doesn't do what you intended. (This is a "bug" type of error.)
In this illustration, you can see how the first if statement eliminates any temperatures lower than 65. Next, the else if statement eliminates all temperatures 80 and higher. When you get to the final else, the temperatures that remain are in the range of 65 to 79.99.
Now assume that someone wasn't thinking and the three statements appear as shown in the figure that follows. In this example, nothing is left for else to represent, and the program most likely yields an improper answer. (Note that the compiler doesn't point out this type of mental error.)
| http://www.dummies.com/how-to/content/choosing-from-multiple-options-in-the-c-language-w.navId-323181.html | CC-MAIN-2013-48 | refinedweb | 418 | 71.65 |
A bot is a software application programmed to perform certain tasks. The robots are automated, which means that they operate according to their instructions without a human user needing to start them. Bots often mimic or replace the behaviour of a human user. In this article, I will create a Telegram bot with Python, by using the telegram API.
To create a Telegram Bot using Python, you need to go through some steps to get a telegram bot API from the BotFather account on Telegram. BotFather is simply s Bot which helps in creating more bots by providing a unique API. So before using python to create our Telegram bot, we need to go through some steps to get the API.
Also, Read – Bubble Plots with Python.
Steps to Get the Telegram Bot API
First, create an account on telegram if you don’t have an account. After making your account search for BotFather, which is an official telegram bot that provides API to create more bots. When you will open the chat just write /start and send. The BatFather will reply you with a long text without reading the text you can type Newbot.
Now it will reply you again with a long text, asking about a good name for you Telegram bot. You can write any name on it. Now the next step is to give a username to your bot which should be in a format Namebot or Name_bot. And the main thing to notice in this step is that your username should be a unique one, it should not match any other username all around the world.
Also, Read – Scraping Twitter with Python.
Now after typing a unique username, it will send you an API key between a long message, you need to copy that username and get started with Python.
Telegram Bot with Python
Now, we have the API key to build our telegram bot, the next step is to install a package known as telegram, which can be easily installed by using the pip command in your command prompt or terminal – pip install python-telegram-bot.
After successfully installing the package, now let’s import the required packages and get started to make a Telegram Bot with Python. We only need the telegram package for this task, I will import it and prepare our program to read our API Key:
Code language: PHP (php)Code language: PHP (php)
import telegram bot = telegram.bot(token='TOKEN') #Replace TOKEN with your token string
Now that everything is working, let’s follow the tradition and create a Hello World program. I will simply program our chatbot here with a command on which our telegram bot will respond with the message “Hello, World”:
Now let’s create a hello function that sends the desired text message through the bot:
We now use a CommandHandler and register it in the dispatcher. Basically, we bind the / hello command with the hello () function:
And that’s it. To start our bot, add this code at the end of the file:
Code language: CSS (css)Code language: CSS (css)
updater.start_polling()
Now, run the code and write /hello in you your telegram messenger to your telegram bot. It will reply with the text “Hello World”.
COVID-19 Telegram Bot with Python
Now, let’s build our program to get information related to the COVID-19 to get results from a simple text. Now here, you need to import two modules here known as requests and json. Now let’s import these two modules and build a COVID-19 telegram Bot with Python:
Also, Read – Password Generator with Python.
I hope you liked this article on building a Telegram Bot with Python. Feel free to ask your valuable questions in the comments section below. You can also follow me on Medium to learn every topic of Machine Learning and Python.
3 Comments
TypeError: ‘module’ object is not callable
Giving me this error on the 2nd line, when I replace the token with my token string.
Can you tell me right way to import telegram?
I tried “import telegram” and “from telegram import *” But it doesn’t worked for me.
have you installed this library
Yes I installed the library, Actually we don’t need to import telegram. I skipped the first 2 lines and started my code “from telegram.ext import …….” and it worked for me.
But one question bro, I can only get total cases and total stats with “Global”. How can I print the data of a specific country? Like I tried a lot. I tried “print(data[“India”])” but there is no such response. It would be great if you give me little hint about it. | https://thecleverprogrammer.com/2020/08/18/telegram-bot-with-python/ | CC-MAIN-2021-04 | refinedweb | 786 | 70.84 |
M.-A. Lemburg wrote:
Tim Peters wrote:
[Raymond Hettinger]
I'm about to start working on this one and wanted to check here first to make sure there is still a demand for it and to get ideas on the best implementation strategy.
Marc-Andre implemented it for mxTools:.
I don't know whether anyone finds it useful in real life; maybe MAL has an idea about that.
Some do; I wrote this for cache management to at least have a hint at the memory size being used by the objects in the cache.
FWIW, here's something Dirk Holtwick started working on.
import struct sizeof_PyObject = len(struct.pack('P', 0))
def calcsize(i, s=0): s = sizeof(i) if type(i) == type({}): s += (len(i) * 2 * sizeof_PyObject) # guess table size s += (len(i) * sizeof_PyObject * 2) / 3 for k, v in i.items(): s += calcsize(k) s += calcsize(v) elif type(i) == type([]): for v in i: s += calcsize(v) s += 1 * sizeof_PyObject elif type(i) == type((1,)): for v in i: s += calcsize(v) return s
I'm sure this could easily be turned into a std lib module which then covers all the Python builtins.... -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: Python Software: | https://mail.python.org/archives/list/python-dev@python.org/message/TSHUYXHVZ3EQ7BPC7TOBQ3N5TAKX4S23/ | CC-MAIN-2021-21 | refinedweb | 220 | 72.05 |
go to bug id or search bugs for
New/Additional Comment:
Description:
------------
I got the error:
Fatal error: Call to undefined function domxml_open_file()
eventhough I compiled with the dom extension. I also tried the old xmldocfile() function, but that didn't work either.
Then I tried other domxml functions and neither of them worked. Phpinfo tells me that I configured --with-dom, shows that dom and libxml are both enabled.
My current libxml2 version is: 2.6.4
Phpinfo is on:
Reproduce code:
---------------
Expected result:
----------------
No output
Actual result:
--------------
Fatal error: Call to undefined function domxml_open_file() in /home/trueno/testdom.php on line 2
Add a Patch
Add a Pull Request
There is no such function in the new ext/dom..
Any idea where I may find documentation about the difference between old and new dom compared to php4.3 and php5.0?
I'm having the same problem with Redhat 9 and PHP5.0.0-RC1 (snapshot). By pulling up a list of all available functions it is confirmed that the domxml_open_file does not exist.
I know that it will take a while for all the documentation to reflect the major changes in PHP5, but is there a means how we can get the documentation for the DOM XML/XSL extension?
<?
$c = get_declared_classes ();
sort ($c);
print_r($c);
?>
By running the above code you'll get the following list of classes:
--snip--
[13] => domattr
[14] => domcdatasection
[15] => domcharacterdata
[16] => domcomment
[17] => domconfiguration
[18] => domdocument
[19] => domdocumentfragment
[20] => domdocumenttype
[21] => domdomerror
[22] => domelement
[23] => domentity
[24] => domentityreference
[25] => domerrorhandler
[26] => domexception
[27] => domimplementation
[28] => domimplementationlist
[29] => domimplementationsource
[30] => domlocator
[31] => domnamednodemap
[32] => domnamelist
[33] => domnamespacenode
[34] => domnode
[35] => domnodelist
[36] => domnotation
[37] => domprocessinginstruction
[38] => domstring_extend
[39] => domstringlist
[40] => domtext
[41] => domtypeinfo
[42] => domuserdatahandler
[43] => domxpath
--snip--
The indexes will differ, but that is besides the point. The DOM interface can now only be access through these classes.
For documentation on these classes you can try the libxml2 homepage at, but I'm not sure if the docs correspond to the PHP implementation.
Use the W3C docs for some hints, how to use it.
Or my slides from
Or wait for the Zend Article about that, which should be
published soon. | https://bugs.php.net/bug.php?id=26957&edit=1 | CC-MAIN-2020-50 | refinedweb | 369 | 51.78 |
Nested Class Constructor in C++
In today’s tutorial, we will learn about nested class constructors in C++.
Let’s start with constructors first. What is a constructor? Constructors are member functions of a class which initialize the values of objects of the class. They have the same name as the class name and they are automatically called when an object is created. Now, what is a nested class? C++ allows us to define a class within another class. A nested class is a class defined within another class. Further, the class in which it is defined is called the qualifier class.
Here’s an example to show the use of nested class constructors:
C++ Program for nested class constructors :
#include<iostream> using namespace std; class Q { //qualifier class public: int q; Q(int x) { q = x; } //qualifier class parameterized constructor class N { //nested class public: int n; N(int y) { n = y; } //nested class parameterized constructor void display(Q o1) //member func to display the data members { cout << "q = " << o1.q << endl; cout << "n = " << n << endl; } }; }; int main() { int q1, n1; cout << "Enter the value of q and n "; cin >> q1>> n1; Q o1(q1); //object of qualifier class Q::N o2(n1); //object of nested class o2.display(o1); return 0; }
Output:
Enter the value of q and n 20 30 q = 20 n = 30
Explanation of this program
In this code, we have made a qualifier class Q with the nested class N. Both of them have their individual parameterized constructors. The user will input the values and they will store in variables q1 and n1. For instance, we have given the values 20 and 30 to q1 and n1 respectively. We then pass these values as arguments while creating an object of each class to initialize the objects. Then we use the display member function is to display the values of both the objects. This displays the value of q =20 and n =30. Here, the scope of the nested class is limited to the qualifier class.
Hope this was helpful. Enjoy coding!
Also, learn:
Classes and objects in CPP
Multiple inheritance in C++ | https://www.codespeedy.com/nested-class-constructor-in-cpp/ | CC-MAIN-2020-40 | refinedweb | 358 | 63.29 |
In a post last week I mentioned a shortcoming of CodeRush navigation capabilities. On Friday (we don't work Fridays here) I decided that instead of sitting on my hands and complain I'll try to do something about it. I'll write a plugin for CodeRush that does this. I've written a few CodeRush plugins before, but I have never found the time to make something that I feel I can share with others. Not that the current implementation is a master piece, but it is small simple and works for what I want it to.
Because in my opinion it is such a pain to navigate the CodeRush object model I'll document here what I did and maybe the following will happen:
- Someone will comment on the code suggesting a better way of achieving the same result.
- Someone will use the code to implement his/her own plugin.
So here we go.
The first step is to define what we want to achieve. Take the following code.
public class CarTester
{
ICar _car;
public CarTester(ICar car)
{
_car = car;
}
public void TestCar()
{
_car.Drive();
_car.PushBreaks(2);
}
}
Let's imagine that there are many implementations of ICar such as Sedan, Trailer etc.
You are interested in working on the Truck Implementation. While getting familiar with the code you end up in the TestCar() method in CarTester. At this point you want to jump to the Truck implementation of ICar. So what do you do in Visual Studio to get to the Truck implementation? F12? It will only take you to the interface. You're out of luck. The goal of the plugin is to: "Position the caret on a method that's called on an Interface such as _car.Drive() and navigate to an implementation of your choice".
In the screenshot below you can see that the menu shows a list of all classes that implements the Interface ICar.
In the next part we will start to walk through the code of the plugin.
Que frase necesaria… La idea fenomenal, excelente
shabab
So-so. Something was not impressed. | http://blogs.microsoft.co.il/kim/2008/10/19/coderush-plugin-navigate-to-implementation-part-1/ | CC-MAIN-2015-35 | refinedweb | 351 | 74.19 |
-- | A gang consisting of a fixed number of threads that can run actions in parallel. -- Good for constructing parallel test frameworks. module BuildBox.Control.Gang ( Gang , GangState(..) , forkGangActions , joinGang , pauseGang , resumeGang , flushGang , killGang , getGangState , waitForGangState) where import Control.Concurrent import Data.IORef import qualified Data.Set as Set import Data.Set (Set) -- Gang ----------------------------------------------------------------------- -- | Abstract gang of threads. data Gang = Gang { gangThreads :: Int , gangThreadsAvailable :: QSemN , gangState :: IORef GangState , gangActionsRunning :: IORef Int , gangThreadsRunning :: IORef (Set ThreadId) } data GangState = -- | Gang is running and starting new actions. GangRunning -- | Gang may be running already started actions, -- but no new ones are being started. | GangPaused -- | Gang is waiting for currently running actions to finish, -- but not starting new ones. | GangFlushing -- | Gang is finished, all the actions have completed. | GangFinished -- | Gang was killed, all the threads are dead (or dying). | GangKilled deriving (Show, Eq) -- | Get the state of a gang. getGangState :: Gang -> IO GangState getGangState gang = readIORef (gangState gang) -- | Block until all actions have finished executing, -- or the gang is killed. joinGang :: Gang -> IO () joinGang gang = do state <- readIORef (gangState gang) if state == GangFinished || state == GangKilled then return () else do threadDelay 10000 joinGang gang -- | Block until already started actions have completed, but don't start any more. -- Gang state changes to `GangFlushing`. flushGang :: Gang -> IO () flushGang gang = do writeIORef (gangState gang) GangFlushing waitForGangState gang GangFinished -- | Pause a gang. Actions that have already been started continue to run, -- but no more will be started until a `resumeGang` command is issued. -- Gang state changes to `GangPaused`. pauseGang :: Gang -> IO () pauseGang gang = writeIORef (gangState gang) GangPaused -- | Resume a paused gang, which allows it to continue starting new actions. -- Gang state changes to `GangRunning`. resumeGang :: Gang -> IO () resumeGang gang = writeIORef (gangState gang) GangRunning -- | Kill all the threads in a gang. -- Gang stage changes to `GangKilled`. killGang :: Gang -> IO () killGang gang = do writeIORef (gangState gang) GangKilled tids <- readIORef (gangThreadsRunning gang) mapM_ killThread $ Set.toList tids -- | Block until the gang is in the given state. waitForGangState :: Gang -> GangState -> IO () waitForGangState gang waitState = do state <- readIORef (gangState gang) if state == waitState then return () else do threadDelay 10000 waitForGangState gang waitState -- | Fork a new gang to run the given actions. -- This function returns immediately, with the gang executing in the background. -- Gang state starts as `GangRunning` then transitions to `GangFinished`. -- To block until all the actions are finished use `joinGang`. forkGangActions :: Int -- ^ Number of worker threads in the gang \/ maximum number -- of actions to execute concurrenty. -> [IO ()] -- ^ Actions to run. They are started in-order, but may finish -- out-of-order depending on the run time of the individual action. -> IO Gang forkGangActions threads actions = do semThreads <- newQSemN threads refState <- newIORef GangRunning refActionsRunning <- newIORef 0 refThreadsRunning <- newIORef (Set.empty) let gang = Gang { gangThreads = threads , gangThreadsAvailable = semThreads , gangState = refState , gangActionsRunning = refActionsRunning , gangThreadsRunning = refThreadsRunning } _ <- forkIO $ gangLoop gang actions return gang -- | Run actions on a gang. gangLoop :: Gang -> [IO ()] -> IO () gangLoop gang [] = do -- Wait for all the threads to finish. waitQSemN (gangThreadsAvailable gang) (gangThreads gang) -- Signal that the gang is finished running actions. writeIORef (gangState gang) GangFinished gangLoop gang actions@(action:actionsRest) = do state <- readIORef (gangState gang) case state of GangRunning -> do -- Wait for a worker thread to become available. waitQSemN (gangThreadsAvailable gang) 1 gangLoop_withWorker gang action actionsRest GangPaused -> do threadDelay 10000 gangLoop gang actions GangFlushing -> do actionsRunning <- readIORef (gangActionsRunning gang) if actionsRunning == 0 then writeIORef (gangState gang) GangFinished else do threadDelay 10000 gangLoop gang [] GangFinished -> return () GangKilled -> return () -- we have an available worker gangLoop_withWorker :: Gang -> IO () -> [IO ()] -> IO () gangLoop_withWorker gang action actionsRest = do -- See if we're supposed to be starting actions or not. state <- readIORef (gangState gang) case state of GangRunning -> do -- fork off the first action tid <- forkOS $ do -- run the action (and wait for it to complete) action -- signal that a new worker is available signalQSemN (gangThreadsAvailable gang) 1 -- remove our ThreadId from the set of running ThreadIds. tid <- myThreadId atomicModifyIORef (gangThreadsRunning gang) (\tids -> (Set.delete tid tids, ())) -- Add the ThreadId of the freshly forked thread to the set -- of running ThreadIds. We'll need this set if we want to kill -- the gang. atomicModifyIORef (gangThreadsRunning gang) (\tids -> (Set.insert tid tids, ())) -- handle the rest of the actions. gangLoop gang actionsRest -- someone issued flush or pause command while we -- were waiting for a worker, so don't start next action. _ -> do signalQSemN (gangThreadsAvailable gang) 1 gangLoop gang (action:actionsRest) | http://hackage.haskell.org/package/buildbox-1.5.3.1/docs/src/BuildBox-Control-Gang.html | CC-MAIN-2013-48 | refinedweb | 717 | 64.91 |
I am using an autocomplete package for the rust language (racer), which requires access to some directories on my local machine to do its autocompletion. Specifically, this package needs to load the files in these directories, otherwise it gives an error (well known issue and is in the FAQ:)
Everything works as expected if I use a full path in the settings for the two required path variables: racerBinPath and rustSrcPath. The issue that I have is that if I use an environmental variable to access these paths, the package complains that it isn’t able to find the required files - I’m assuming this is because it doesn’t expand the environmental variable I’m using (i.e. $HOME on Linux into /home/user).
After some googling, I came across some similar issues where users were unable to get access to $PATH, but surprisingly, I was only able to find issues on Macs. I’m not sure if this is a related issue, but it
Looking at the source of racer, I was able to find where it reads one of the settings into its namespace:
The line that is failing reads
conf_bin = atom.config.get("racer.racerBinPath"). Is there any additional information I could give to atom to successfully read an environmental variable?
Thanks in advance,
cbcoutinho | https://discuss.atom.io/t/capture-environmental-variables-using-atom-config-get/45238 | CC-MAIN-2018-09 | refinedweb | 219 | 53.55 |
A directive to embed youtube videos in reStructuredText documents
Project description
rstyoutube is a package for embedding youtube videos in reStructuredText documents.
The code lives at. Bug reports, feature requests, and contributions are all welcome. If you find the code useful, hop on bitbucket and send me a quick message letting me know.
Usage
To use with pelican or another docutils-based system, add the following to your pelican configuration file:
import rstyoutube r Hope you enjoyed the video.
That’s all it takes.
Options
If you want more fine-grained control, you can add various options:
.. youtube:: 5blbv4WFriM :start: 67 :width: 640 :height: 480 :ssl: :hd:
start
The number of seconds into the video where you want to start playback.
width
height
The size of the embedded viewer. Defaults to 640x480, or if the hd option is set, defaults to 1080x720.
ssl
This option takes no arguments. If it is present, the player is embedded over https, rather than http.
hd
This option takes no arguments. If it is present, the embedded video is shown in HD. The player’s default size becomes 1080x720, but can still be overridden using the width and height options.
Changelog
0.1.1 – 2011/12/15
Added options
0.1.0 – 2011/12/15
Initial release
To Do
- Add options to allow people to customize their videos.
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/rstyoutube/ | CC-MAIN-2019-26 | refinedweb | 251 | 67.25 |
- Author:
- buriy
- Posted:
- July 12, 2008
- Language:
- Python
- Version:
- .96
- users admin groups information roles newforms-admin customization supervising nfa
- Score:
- 1 (after 1 ratings)
Add-on for auth app of newforms-admin branch, adding more information about users and their groups at user and group list in admin interface. Also, useradmin
The
import useradminmust come after
admin.autodiscover()is called in your main urls.py in r8010.
#
on django 1.4 I need to move this snippet from root project to the first app that have an admin.py.
I found that import this snippet on urls.py (on root project) gives an error because User and Group models are not yet registered by admin object. It's what I assume or seems.
That's why I try to move it for my first app that has an admin.py and works perfectly again.
see ay
#
Please login first before commenting. | https://djangosnippets.org/snippets/876/ | CC-MAIN-2020-29 | refinedweb | 152 | 68.97 |
I have a directory in my Python 3.3 project called /models.
from my main.py I simply do a
from models import *
__init__.py
__all__ = ["Engine","EngineModule","Finding","Mapping","Rule","RuleSet"]
from models.engine import Engine,EngineModule
from models.finding import Finding
from models.mapping import Mapping
from models.rule import Rule
from models.ruleset import RuleSet
from finding import Finding
No Such Module exists
from .finding import Finding
Since you are using Python 3, which disallows these relative imports (it can lead to confusion between modules of the same name in different packages).
Use either:
from models import finding
or
import models.finding
or, probably best:
import .finding # The . means "from the same directory as this module" | https://codedump.io/share/PAO8AcrDFbcR/1/how-to-import-python-class-file-from-same-directory | CC-MAIN-2017-09 | refinedweb | 119 | 55.5 |
This post will walk you through the implementation of Drag and Drop in LWC (Lightning Web Component) in the same component. We have to use HTML Drag and Drop API. We can also implement Drag and Drop between multiple Lightning Web Components which you can check here. Let’s get into the implementation.
Implementation
In this implementation, we will create a section to display the list of To-Do Posts in the TO-DO POSTS section. We will be able to drag and drop the To-Do Post into the COMPLETED POSTS section.
To create a Drag and Drop in LWC, first, create a Lightning Web Component upcomingPosts which will have two div tags to display TO-DO POSTS and COMPLETED POSTS. Use the div tag to display multiple To-Do Posts like below in the TO-DO POSTS section:
<div id="ToDo2" class="box" draggable="true" ondragstart={drag}> Create Dynamic Apex Instance using Type.forName() </div>
To make the To-Do Post draggable, we have added attribute draggable=”true”. Add attribute ondragstart to handle drag start event which will call the drag method of JS Controller.
We will drag and drop these posts in the COMPLETED POSTS section. To allow the drop functionality on the COMPLETED POSTS section, add attribute ondragover which will call the allowDrop method of JS Controller. When an element is dropped, the drop event is called. Add ondrop attribute which will call the drop method of JS Controller.
upcomingPosts.html
<template> <lightning-card <lightning-layout> <div class="slds-p-around_small"> <div class="slds-text-heading_small">TO-DO POSTS</div><br/> <div class="flex-container"> <div id="ToDo2" class="box" draggable="true" ondragstart={drag}> Create Dynamic Apex Instance using Type.forName() </div> <div id="ToDo3" class="box" draggable="true" ondragstart={drag}> Drag and Drop in Lightning Web Component (LWC) </div> <div id="ToDo4" class="box" draggable="true" ondragstart={drag}> Drag and Drop between Multiple Lightning Web Components </div> </div> <hr></hr> <div class="slds-text-heading_small">COMPLETED POSTS</div><br/> <div class="flex-container" ondragover={allowDrop} ondrop={drop}> <div id="ToDo1" class="box completed"> Share JavaScript Code Between LWC and Aura Component </div> </div> </div> </lightning-layout> </lightning-card> </template>
In JS Controller, the drag() method is called when we grab an element to drag. We will get the Id of an element that we want to drag and use event.dataTransfer.setData() to set the data to transfer. Set the Id of an element to transfer.
By default, data/elements cannot be dropped in other elements. To allow a drop, we must prevent the default handling of the element. The allowDrop() method will call event.preventDefault() to prevent the default behavior.
Finally, the drop() method will be called once the dragged element is dropped. This method will get the Id of element using event.dataTransfer.getData(). Get the element using querySelector() and call the appendChild() method to add the element into the COMPLETED POSTS section.
upcomingPosts.js
import { LightningElement } from 'lwc'; export default class UpcomingPosts extends LightningElement { drag(event){ event.dataTransfer.setData("divId", event.target.id); } allowDrop(event){ event.preventDefault(); } drop(event){ event.preventDefault(); var divId = event.dataTransfer.getData("divId"); var draggedElement = this.template.querySelector('#' +divId); draggedElement.classList.add('completed'); event.target.appendChild(draggedElement); } }
Here is the CSS that will make this implementation beautiful.; }
That is all.
Drag and Drop in LWC
This is how our implementation of Drag and Drop in LWC looks like:
This is how we can implement the functionality to Drag and Drop in LWC (Lightning Web Component). In this implementation, we Dragged and Dropped in the same Lightning Web Component (LWC). We can also drag an element from one Lightning Web Component and drop it into another Lightning Web Component. You can check this implementation here.
If you don’t want to miss a new post, please Subscribe here. If you want to know more about HTML Drag and Drop API, you can check the official documentation here.
Here are some hand-picked implementations for you:
- Upload Files using Lightning Web Components (LWC)
- Address Lookup in Lightning using Google API
- Custom Permission in Lightning Web Component
- Navigate to Lightning Web Component
See you in the next implementation. Thanks.
3 thoughts on “Drag and Drop in LWC (Lightning Web Component)”
Hi Nikhil
As usual very nice post.
In number of codes, I have seen the use of event.PreventDefault(); and explanation is given as ‘it prevents default behaviour’. What will happen if we miss this line. Is it safe to add this in every place where we add some custom behaviour?
In your next post for drag and drop between two different LWC can you make it for two way (moving completed posts back to upcoming posts as well).
I think we need to add ondragover and on drop for flex-container div tag for the TO-DO POSTS and believe the same JS method drop and allowdrop can be utilized. if we use the same method how can be find out if the drag is from todo to completed or from completed to todo so that CSS class completed can be either added or removed.
Yes, event.PreventDefault() is a must else it won’t work. It is used to prevent the default behavior of the respective element.
I have already written a post for two different LWC. Two-way drag and drop can be implemented in the same way you mentioned. We need to do some additional code to implement drag and drop for two LWC which is explained in the post. You can put extra checks to handle two-way drag and drop properly.
Hi Nikhil,
In my case, i need to drag and drop the image in same section.
I am getting the dragged element id through var divId = event.dataTransfer.getData(“divId”);
but not the drop index where i need to drop the element.
Based on that i will rearrange the array and do some DML for reordering.
Could you please help, how to get the index of drop section.
Thanks & regards,
Moni | https://niksdeveloper.com/salesforce/drag-and-drop-in-lwc-lightning-web-component/ | CC-MAIN-2022-27 | refinedweb | 1,007 | 64.81 |
Python.
In this example, classic iteration over cx_Oracle cursor result set will be used:
import cx_Oracle import os import datetime import pandas as pd from numpy.distutils.system_info import dfftw_info os.environ["ORACLE_HOME"] = "/path/to/oracle/home" con = cx_Oracle.connect(user='sh', password = 'xxx', dsn = '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = tcp)(host = localhost) (Port = 9999))) (CONNECT_DATA = (SID = orcl)))') sql = 'select * from sales' cur = con.cursor() cur.arraysize = 1000 counter = 0 beginTime = datetime.datetime.now() try: cur.execute(sql) for row in cur: counter +=1 except cx_Oracle.DatabaseError as ora_exception: error, = ora_exception.args print("Oracle Error Code: ", error.code) print("Oracle Error Message: ", error.message) print('elapsed_time = ', datetime.datetime.now() - beginTime) print(counter) cur.close() con.close() elapsed_time = 0:00:01.591582 918843
Elapsed time for processing approximately 1 million records (918.843) is 1.59 seconds.
2.
In this example, instead of iterating over a result set, Fetchall method will be used.
This is the part of code that I’ve changed:
r = cur.execute(sql).fetchall() counter = len(r) elapsed_time = 0:00:01.588170 918843
Elapsed time is almost identical as in the first case.
3.
In the third example I’ll use Pandas instead of cursor. There are several variation named as a subcase with a letter a – c.
a) Getting the number of records by using PROD_ID column name.
df_sales = pd.read_sql(sql, con) counter = df_sales['PROD_ID'].size elapsed_time = 0:00:04.065327 918843
Elapsed time to process the same amount of data is 4.06 sec, which is almost 3 times slower comparing with a cursor approach (cases 1 & 2).
b) Several other ways to get the number of records that are running roughly at the same speed as 3a case.
#uncomment one of the following options #counter = len(df_sales.index) #counter = df_sales.shape[0] #counter = len(df_sales.axes[0])
c) Here is the slowest way to get the number of records as I’m using values instead of key (index)
counter = len(df_sales.values) elapsed_time = 0:00:06.027399 918843
4.
Pandas case – selecting only the first column (instead of all columns) from the SALES table
sql = 'select prod_id from sales' df_sales = pd.read_sql(sql, con) counter = df_sales['PROD_ID'].size elapsed_time = 0:00:03.744749 918843
Elapsed time is 3.74 sec which is by far the best result I can get by using the Pandas framework for client side processing.
5.
Leaving to SQL engine to do its job of calculating the number of records – example with cursor:
sql = 'select count(*) as cnt from sales' cur = con.cursor() cur.execute(sql) counter = cur.fetchone()[0] elapsed_time = 0:00:00.004216 918843
6.
Leaving to SQL engine to do its job of calculating the number of records – example with Pandas:
sql = 'select count(*) as cnt from sales' a) counter = df_sales.iloc [0]['CNT'] elapsed_time = 0:00:00.013347 918843 b) counter = df_sales.iat[0,0] elapsed_time = 0:00:00.009238 918843 c) counter = df_sales.at[0, 'CNT'] elapsed_time = 0:00:00.002658 918843
Summary:
When you need to process data from a database, the best way to do that is to leave database SQL engine to do a job.
Results with SQL engine (cases 5 & 6) are many time (600 times or more) faster comparing with procedural logic.
That is expected (relational databases are created for that purpose), although you can still very often find a code logic where client side processing is used to do database engine job, which is a very wrong approach.
Another interesting point is that Pandas package is about 2.5 times slower comparing with a cursor (result set).
In cases where cursor approach is covering all needed functionality, you shouldn’t use Pandas framework as it’s about 2.5 times slower comparing with a cursor (result set) approach.
If you need to use Pandas, the best you can do is to leave all heavy processing to the SQL database engine, and fetch and manipulate only with necessary data volume. | https://www.performatune.com/en/how-to-efficiently-load-data-into-python/ | CC-MAIN-2021-04 | refinedweb | 660 | 61.33 |
How to properly read hana diagnosis files with the system view M_TRACEFILE_CONTENTS
Hello all. This is my first blog post, so please be kind.
In this blog post, I will give a code example in c# of how to read diagnosis files from hana using sql, and will also document it’s shortcoming. I will explain how the inside works on top of explaining how to correctly read the data.
It’s pretty technical, I took the time to write this for myself as code comment before translating it in this blog post. Complex code require comment !!!
Feature / Use case
SAP Hana logs some of it’s diagnostics data as part of normal files in the linux file system. Files like indexserver_alert_hxehost.trc are example of these diagnostics trace.
These files can be downloaded through ssh, but can also be downloaded or viewed from the hana cockpit (database explorer) or from the hana studio.
The sap hana database also provide a way to read trace file using only sql, simplifying greatly the retrieval of these files. Content of these files can be accessed from the public view M_TRACEFILE_CONTENTS. This is the way both the cockpit and studio uses to view and download the files.
I uses this view to retrieve content of a sql trace file, as part of my sql profiler for sap hana named Winterly SQL Profiler. The sql trace file contains system generated message like a connection was opened, a command was executed, but it also contains user generated content (sql commands). These sql commands may be in any language and can contains special unicode characters. Think of chinese characters, arabic, french accent characters etc. My software need to read the text and stream it; it when new data is added, only retrieve the new data from where you left. Parse the text and present it in a readable way to the user. It read the sql trace file and show the sql commands in real time.
Issue
While, at first sight, retrieving data from M_TRACEFILE_CONTENTS is straightforward. However if you don’t do it properly, you end up with corrupted text for anything except the basic latin characters of 7-bit ascii.
Here is the link to the tracefile_contents documentation from help.sap. I think the documentation is lacking, and I lost a lot of time on this thing so I wanted to share my knowledge and help the next developers that need to use this view.
The main issue is that the view has been created to return binary data, and not text. This is apparent with the way the data is splitted, every 1000 bytes, and the column offset, to control where you are in the file position / to seek in the file.
Because this was done to handle binary file, and it return this data like a nvarchar, sap hana scramble the binary data before returning the result to the consumer. This scrambling causes issue with anything that is not standard ascii.
Unfortunately most diagnosis file from the trace folder are byte compatible with ascii, until they are not and you start getting errors……..
Explaination
You must start from the fact that this view never return text. It only return and handle binary data.
To be able to return binary data from a view that expose such data as NVARCHAR, the database translate the binary data to character.
Data returned by the database is always binary but encoded as latin-1 to retrieve it as characters. Then these characters are encoded in utf-8 before being given to the sender as part of the nvarchar field.
In the case of a binary file, it’s easy to understand that returned chars are unrelated chars. Read a mp3 song from the view, and you’ll see text. It’s obvious that your mp3 song is not text.
However in the case of a utf-8 encoded text file, there are similarities between utf-8 and latin-1 that makes the basic format compatible. This misleading, as any special character and extended character are NOT compatible. It just so happen that for 7-bit latin ascii character (abc..), their numerical values is the same on utf-8 and ascii and a file will appear appear readable by getting directly the result from the query.
Take for example the binary file we’re trying to fetch is a utf-8 text file. It’s content are “è 1 A” without space. Let’s say for the example that there is no unicode BOM at the beginning of the file.
It’s underlying binary data will be 0xc3 0xa8 0x31 0x41.
The data is transposed as a latin-1 encoded text file. Each binary byte 0xc3 0xa8 0x31 0x41 is presented as UNRELATED character  ¨ 1 A in latin-1 / ISO/CEI 8859-1. Notice that the 1 and A character appear fine, but the special character é has been corrupted.
These unrelated character in latin-1 are converted to utf-8 as they are presented from the database as a nvharchar(1000) and all nvarchar are presented in unicode.
Thus their charcter stay the same  ¨ 1 A, but their underlying data changes : 0xc3 0x82 0xc2 0xa8 0x31 0x41. Notice that the data has been increased as utf-8 is variable-length.
This data is sent to the sql client as a utf-8 char of “Â ¨ 1 A”. Parsing the underlying data as a binary is not enough as that data has already been mangled because of the variable length.
We must do the reverse to get back our original binary data.
First, take the unicode characters and convert them to latin-1. The content  ¨ 1 A will stay the same but we get back our data 0xc3 0xa8 0x31 0x41
Then with this data, parse it/interpret it as a utf-8, cause we know this binary data is utf-8. You get back your original data of è 1 A.
Unicode issue to be aware of
When decoding the original bytes to utf-8, one must take care of unicode variable length and the fixed splitting of binary data by hana.
Because this was designed to read binary files, the data is presented as columns of 1000 bytes (or less) to the consumer, as if opening a binary in a hex editor.
The data is splitted after 1000 byte by hana regardless if it make sense inside the data. In case of variable length utf-8, one must take care to not parse a row of 1000 bytes
as a complete thing. If the underlying data presented a utf-8 char character that takes more than 1 byte, and this character is splitted as 2 database row,
re-interpreting just the first part or just the second part as a full utf-8 would break that character.
Dotnet has a solution for this, and it is to use Encoding.UTF8.GetDecoder() to change bytes to literal text, instead of Encoding.UTF8.GetString.
Encoding.UTF8.GetString assume the byte array is complete; if it see incomplete data, it will fallback to best-fit, remplacement or exception, the returned text will not be the same as received.
The better solution Decoder.GetChars assume the byte array is a stream of bytes, and if it receive only partial data, it will hold on to the partial data and wait for it’s next call to see if the next bytes allows
it to produce a character. So this handle completly the issue of the splitted byte array.
As for the other conversion, hana transpose the binary 1 to 1 to a char, so these is no special care when unscrambling it.
The transposed latin-1 is converted to utf8 and presented to the client, but this conversion is complete in every line/row. So again no need to handle this case.
Thus special care must only be taken when decoding the original data, depending on it’s format.
Example code
This show how to properly un-scramble the data returned by the sap hana database, get the file original data, then access it as a utf-8 text file.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.Odbc; using System.IO; namespace mytestprogram { class Program { //Keep the decoder as global var as it needs to keep it's state static Decoder utf8decoder = Encoding.UTF8.GetDecoder(); static void Main(string[] args) { var conn = HanaOdbcHelper.GetConnection(); conn.Open(); var cmd = conn.CreateCommand(); cmd.CommandText = @"select offset,to_binary(content) as CONTENTBIN from ""PUBLIC"".""M_TRACEFILE_CONTENTS"" where host='xxxxx' and file_name='xxx' and offset>0 order by offset asc"; var readerTrace = cmd.ExecuteReader(); while (readerTrace.Read()) { //Get the data as bytes. We could also use Encoding.UTF8.GetBytes if received a string thought this allocate memory that will be discarded. byte[] encodedbinary = readerTrace.GetFieldValue<byte[]>(1); //Convert back the encoded binary data from utf-8 to latin-1 to get the original binary value. byte[] rawbinary = Encoding.Convert(Encoding.UTF8, Encoding.GetEncoding("iso-8859-1"), encodedbinary); //Once we got our original binary from the file, I assume that all trace file created by hana are in utf-8 thus will decode this binary into a readable char char[] decodedchar = new char[utf8decoder.GetCharCount(rawbinary, 0, rawbinary.Length)]; //Unlike Encoding.GetString(), The "decoder" keep it's state, and if it's presented partial data (unicode surrogate pair) and can't make a full char, it's going to present that char in the next decoding / next pass. utf8decoder.GetChars(rawbinary, 0, rawbinary.Length, decodedchar, 0); //Then transform this array of char as a usable string. string currentLine = new string(decodedchar); //Do note that console might not be unicode and chars like japanese might not appar correctly in the console, even thought they have been properly decoded in the string. Console.WriteLine(currentLine); } Console.ReadLine(); conn.Dispose(); } } }
Here I applied a shortcut in the sql query : to_binary. Basically, since we need the raw bytes to convert from utf-8 to latin-1, getting the textual representation of utf-8 serves nothing but to slow things down by allocating a useless string and then having to memory collect it.
We could do Encoding.utf8.GetBytes(text) to retrieve the binary, but the hana database has a nice function to do just that. It will directly return utf-8 encoded binary that we can convert to latin-1
without an intermediate string.
You can also see a python example in sap help page. Thought I wonder if it support unicode surrogate pairs – probably not.
Other notes
Congradulation ! Now you’ve got uncorrupted text. but it’s still splitted by 1000 bytes. You need to concatenate it together, handle newlines, and if you’re doing text streaming / Live monitoring of trace file like me, handle the offset position properly (in bytes, not # of chars) to retrieve the next data set. This is yet another hurdle that you need to handle.
Final thought / Improvement
I lost so much time on this issue, I hope future developer can save some time with this blog post.
Currently, the way hana provide diagnosis file is really bad because it’s misleading. It appears to work until it does not, and you get to search evewhere where is the problem.
M_TRACEFILE_CONTENTS provide a view that could be read from any gui/point and click software, crystal Report editor, report file, a bash script, database management software, etc.
BUT it fail to provide the data as a readable text, without a insane amount of inside knowledge and the feature only a complete programming language can provide to unscramble the data. Thus from my point of view, it fail miserably.
I would suggest to SAP employees to create these alternative instead
Create a new function dedicated to retrieve binary files.
Name it GetTraceBinary that return data of data type varbinary or blob. It’s input would be Host, file name, offset and length. by providing the offset and length, you still allow to seek within the file. I would create it as a function, because it’s clear that it’s not for consuper app like Crystal Report. Developper that use the function can properly get the bytes array and read it as utf-8 or whatever they know. It’s not misleading anymore.
Create a new views that is dedicated to read text files.
The new view M_TRACEFILE_TEXT would read the data, and like any good text editor, will automatically detect if it’s ascii, utf-8, utf-16. It will provide the real text unlike the current version.
It would then present text separated by new line or by # of character, and not splitted by 1000 bytes. The newline type (windows, unix, mac) would be automatically detected.
As the data would be split per newline, the data would still be streamable for a software like mine.
Select TextContent from M_TRACEFILE_TEXT where … and linenumber > 10 or where charposition >= 357376.
For me it’s very important that the data is streamable / that you can retrieve only part of the file as small reads.
If any of the automatic detection fails (encoding, newline), the developper could still use GetTraceBinary to manually handle the case with full flexibility.
Thanks for posting, Keven Lachance; great work. | https://blogs.sap.com/2020/11/16/how-to-properly-read-hana-diagnosis-files-with-the-system-view-m_tracefile_contents/ | CC-MAIN-2021-17 | refinedweb | 2,222 | 64 |
[snip] >> function domain_get_screenshot($domain) { >> - $dom = $this->get_domain_object($domain); >> - >> - $tmp = libvirt_domain_get_screenshot($dom); >> + $dom = libvirt_domain_lookup_by_uuid_string($this->conn, $domain); >> + $hostname = $this->get_hostname(); >> + $tmp = libvirt_domain_get_screenshot($dom, $hostname); >> return ($tmp) ? $tmp : $this->_set_last_error(); >> } >> Hi Yukihiro, I did have a look to the class itself and I still don't follow what you mean. Please see current version of get_domain_object() PHP method: function get_domain_object($nameRes) { if (is_resource($nameRes)) return $nameRes; $dom=libvirt_domain_lookup_by_name($this->conn, $nameRes); if (!$dom) { $dom=libvirt_domain_lookup_by_uuid_string($this->conn, $nameRes); if (!$dom) return $this->_set_last_error(); } return $dom; } You changed this to lookup by UUID string directly however what's the problem here? Let's analyse the code above: 1) It's checking whether nameRes is a resource or not, if it's a resource then it's being returned with no modifications 2) We try to lookup by name and if there's still nothing found then we try to lookup by UUID string instead 3) If there's no domain object set then we set the last error string and return false (which is error value of _set_last_error() method), otherwise we return the domain object Since this function is widely used then it's not good to change domain_get_screenshot() to use domain lookup by UUID string (which would kill the option to lookup by domain name) and you should patch the get_domain_object() function instead. The ability to get the screenshot of remote host is a really nice thing and good to have, thanks for this but I can't ACK and apply the patch because of the hunk above. Could you please provide us more information what the problem there is ? Nevertheless, if there's a problem it's not good to patch the code to use some other function instead of properly patching the affected function. Could you please fix the get_domain_object() function and post it with this remote host screenshot hunk too? Thanks, Michal -- Michal Novotny <minovotn redhat com>, RHCE Virtualization Team (xen userspace), Red Hat | https://www.redhat.com/archives/libvir-list/2011-June/msg00372.html | CC-MAIN-2014-23 | refinedweb | 325 | 52.73 |
An In-Depth Tutorial of Webmentions + Eleventy
Sia Karamalegos
・9 min read
I am a huge fan of the static site generator Eleventy so far, and I was super excited to try out Webmentions with them.
Webmention is a web standard for mentions and conversations across the web, a powerful building block that is used for a growing federated network of comments, likes, reposts, and other rich interactions across the decentralized social web.
—from IndieWeb.org
They are a cool tool for enabling social interactions when you host your own content. Max Böck wrote an excellent post, Static Indieweb pt2: Using Webmentions, which walks through his implementation. He also created an Eleventy starter, eleventy-webmentions, which is a basic starter template with webmentions support.
So why am I writing this post? Sadly, I started with the eleventy-base-blog, and didn't notice the eleventy-webmentions starter until after I had already built my site. I also struggled to fully build out the functionality, partly because I'm still an Eleventy n00b. So I wanted to share the detailed steps I used in the hopes that it will help more of you join the Indie Web.
The perspective of this post is adding webmentions to an Eleventy site after the fact. The files, folders, and config architecture match the
eleventy-base-blog, but you can likely use this as a starting point for any Eleventy site. Make sure you watch out for spots where your analogous architecture may be different.
The code in this post is a mash up of Max Böck's original post and personal site, the eleventy-webmentions starter, Zach Leatherman's personal site, and the edits I made during my implementation. I am hugely grateful for their work, as I never would have gotten this far without it.
Step 1: Sign up for webmentions
First, we need to sign up with webmention.io, the third-party service that lets us use the power of webmentions on static sites.
- Set up IndieAuth so that webmention will know that you control your domain. Follow the setup instructions on their site.
- Go to webmention.io/.
- Enter your website's URL in the "Web Sign-In" input, and click "Sign in".
If your sign in was successful, you should be directed to the webmentions dashboard where you will be given two
<link> tags. You should put these in the
<head> of your website:
<!-- _includes/layouts/base.njk --> <link rel="webmention" href="" /> <link rel="pingback" href="" />
You'll also be given an API key. We want to safely store that in our local environment variables. Add
dotenv for easily getting and setting env variables:
$ npm install dotenv
Create a
.env file in the root of your project, and add your Webmention.io API key
WEBMENTION_IO_TOKEN=y0urKeyHeRe
Don't forget to add it to your
.gitignore file. While we are here, let's add the
_cache/ folder which will be created when we first fetch webmentions:
_cache/ _site/ node_modules/ .env
You probably want some content in your webmentions. If you use Twitter, Bridgy is a great way to bring in mentions from Twitter. First make sure your website is listed in your profile, then link it.
How it's all going to work
When we run a build with
NODE_ENV=production, we are going to fetch new webmentions from the last time we fetched. These will be saved in
_cache/webmentions.json. These mentions come from the webmention.io API.
When we do any build, for each page:
- From the webmentions cache in
_cache/webmentions.json, only keep webmentions that match the URL of the page (for me, this is each blog post).
- Use a
webmentionsByTypefunction to filter for one type (e.g., likes or replies)
- Use a
sizefunction to calculate the count of those mentions by type
- Render the count with mention type as a heading (e.g., "7 Replies")
- Render a list of the mentions of that type (e.g., linked Twitter profile pictures representing each like)
Fetching webmentions
First, we need to set up our domain as another property in our
_data/metadata.json. Let's also add our root URL for use later:
// _data/metadata.json { //...other metadata "domain": "sia.codes", "url": "" }
Next, we'll add a few more dependencies:
$ npm install lodash node-fetch
And update our
build script to set the
NODE_ENV in our
package.json:
// package.json { // ... more config "scripts": { "build": "NODE_ENV=production npx eleventy", // more scripts... }
Now we can focus on the fetch code. Okay, okay, I know this next file is beaucoup long, but I thought it was more difficult to understand out of context. Here are the general steps happening in the code:
- Read any mentions from the file cache at
_cache/webmentions.json.
- If our environment is "production", fetch new webmentions since the last time we fetched. Merge them with the cached ones and save to the cache file. Return the merged set of mentions.
- If our envinroment is not "production", return the cached mentions from the file
// _data/webmentions.js const fs = require('fs') const fetch = require('node-fetch') const unionBy = require('lodash/unionBy') const domain = require('./metadata.json').domain // Load .env variables with dotenv require('dotenv').config() // Define Cache Location and API Endpoint const>> unable to fetch webmentions: missing domain or token') return false } let url = `${API}/mentions.jf2?domain=${domain}&token=${TOKEN}&per-page=${perPage}` if (since) url += `&since=${since}` // only fetch new mentions const response = await fetch(url) if (response.ok) { const feed = await response.json() console.log(`>>> ${feed.children.length} new webmentions fetched from ${API}`) return feed } return null } // Merge fresh webmentions with cached entries, unique per id function mergeWebmentions(a, b) { return unionBy(a.children, b.children, 'wm-id') } // save combined webmentions in cache file function writeToCache(data) { const>> Reading webmentions from cache...'); const cache = readFromCache() if (cache.children.length) { console.log(`>>> ${cache.children.length} webmentions loaded from cache`) } // Only fetch new mentions in production if (process.env.NODE_ENV === 'production') { console.log('>>> Checking for new webmentions...'); const feed = await fetchWebmentions(cache.lastFetched) if (feed) { const webmentions = { lastFetched: new Date().toISOString(), children: mergeWebmentions(cache, feed) } writeToCache(webmentions) return webmentions } } return cache }
Filters for build
Now that we've populated our webmentions cache, we need to use it. First we have to generate the functions, or "filters" that Eleventy will use to build our templates.
First, I like keeping some filters separated from the main Eleventy config so that it doesn't get too bogged down. The separate filters file will define each of our filters in an object. The keys are the filter names and the values are the filter functions. In
_11ty/filters.js, add each of our new filter functions:
// _11ty/filters.js const { DateTime } = require("luxon"); // Already in eleventy-base-blog module.exports = { getWebmentionsForUrl: (webmentions, url) => { return webmentions.children.filter(entry => entry['wm-target'] === url) }, size: (mentions) => { return !mentions ? 0 : mentions.length }, webmentionsByType: (mentions, mentionType) => { return mentions.filter(entry => !!entry[mentionType]) }, readableDateFromISO: (dateStr, formatStr = "dd LLL yyyy 'at' hh:mma") => { return DateTime.fromISO(dateStr).toFormat(formatStr); } }
Now to use these new filters, in our
.eleventy.js, we need to loop through the keys of that filters object to add each filter to our Eleventy config:
// .eleventy.js // ...Other imports const filters = require('./_11ty/filters') module.exports = function(eleventyConfig) { // Filters Object.keys(filters).forEach(filterName => { eleventyConfig.addFilter(filterName, filters[filterName]) }) // Other configs...
I do not have a sanitize HTML filter because I noticed the content data has a
text field that is already sanitized. Maybe this is new or not true for all webmentions. I'll update this post if I add it in.
Rendering mentions
Now we're ready to put it all together and render our webmentions. I put them at the bottom of each blog post, so in my
_includes/layouts/post.njk, I add a new section for the webmentions. Here, we are setting a variable called
webmentionUrl to the page's full URL, and passing it into the partial for the
webmentions.njk template:
<!-- _includes/layouts/post.njk --> <section> <h2>Webmentions</h3> {% set webmentionUrl %}{{ page.url | url | absoluteUrl(site.url) }}{% endset %} {% include 'webmentions.njk' %} </section>
Now we can write the webmentions template. In this example, I will show links, retweets, and replies. First, I set all of the variables I will need for rendering in a bit:
<!-- _includes/webmentions.njk --> <!-- Filter the cached mentions to only include ones matching the post's url --> {% set mentions = webmentions | getWebmentionsForUrl(metadata.url + webmentionUrl) %} <!-- Set reposts as mentions that are `repost-of` --> {% set reposts = mentions | webmentionsByType('repost-of') %} <!-- Count the total reposts --> {% set repostsSize = reposts | size %} <!-- Set likes as mentions that are `like-of` --> {% set likes = mentions | webmentionsByType('like-of') %} <!-- Count the total likes --> {% set likesSize = likes | size %} <!-- Set replies as mentions that are `in-reply-to` --> {% set replies = mentions | webmentionsByType('in-reply-to') %} <!-- Count the total replies --> {% set repliesSize = replies | size %}
With our variables set, we can now use that data for rendering. Here I'll walk through only "replies", but feel free to see a snapshot of how I handled the remaining sets in this gist.
Since replies are more complex than just rendering a photo and link, I call another template to render the individual webmention. Here we render the count of replies and conditionally plural-ify the word "Reply". Then we loop through the reply webmentions to render them with a new nunjucks partial:
<!-- _includes/webmentions.njk --> <!-- ...setting variables and other markup --> {% if repliesSize > 0 %} <div class="webmention-replies"> <h3>{{ repliesSize }} {% if repliesSize == "1" %}Reply{% else %}Replies{% endif %}</h3> {% for webmention in replies %} {% include 'webmention.njk' %} {% endfor %} </div> {% endif %}
Finally, we can render our replies using that new partial for a single reply webmention. Here, if the author has a photo, we show it, otherwise we show an avatar. We also conditionally show their name if it exists, otherwise we show "Anonymous". We use our
readableDateFromISO filter to show a human-friendly published date, and finally render the text of the webmention:
<!-- _includes/webmention.njk --> <article class="webmention" id="webmention-{{ webmention['wm-id'] }}"> <div class="webmention__meta"> {% if webmention.author %} {% if webmention.author.photo %} <img src="{{ webmention.author.photo }}" alt="{{ webmention.author.name }}" width="48" height="48" loading="lazy"> {% else %} <img src="{{ '/img/avatar.svg' | url }}" alt="" width="48" height="48"> {% endif %} <span> <a class="h-card u-url" {% if webmention.url %}<strong class="p-name">{{ webmention.author.name }}</strong></a> </span> {% else %} <span> <strong>Anonymous</strong> </span> {% endif %} {% if webmention.published %} <time class="postlist-date" datetime="{{ webmention.published }}"> {{ webmention.published | readableDateFromISO }} </time> {% endif %} </div> <div> {{ webmention.content.text }} </div> </article>
Bravely jumping into the black hole...
Does it work?!?! We can finally test it out. First run
npm run build to generate an initial list of webmentions that is saved to the
_cache/webmentions.json file. Then run your local development server and see if it worked! Of course, you'll need to have at least one webmention associated with a post to see anything. 😁
You can see the result of my own implementation at the bottom of the original blog post. Good luck! Let me know how it turns out or if you find in bugs or errors in this post!
Continue your journey by using Microformats
Keith Grant has a great write-up in his article Adding Webmention Support to a Static Site. Check out the "Enhancing with Microformats" section for an explanation and examples.
Additional resources
- You can find the full code for my site on Github. It will evolve in the future, I'm sure, so you can focus on this commit which has the bulk of my changes for adding webmentions.
- How I added dotenv support to Netlify is covered in this Stack Overflow answer.
- How I set up a "cron" job through Github actions to periodically rebuild my site on Netlify (to grab and post new webmentions) is covered in Scheduling Netlify deploys with GitHub Actions. | https://practicaldev-herokuapp-com.global.ssl.fastly.net/thegreengreek/an-in-depth-tutorial-of-webmentions-eleventy-2n6c | CC-MAIN-2020-05 | refinedweb | 1,983 | 57.98 |
Calculates the inverse cosine of a number
#include <math.h>
double acos ( double x );
float acosf ( float x ); (C99)
long double acosl ( long double x ); (C99)
acos( ) implements the inverse cosine function, commonly called arc cosine. The argument x must be between -1 and 1, inclusive: -1 x 1. If x is outside the function's domainthat is, greater than 1 or less than -1the function incurs a domain error.
The return value is given in radians, and is thus in the range 0 acos(x) p.
/*
* Calculate the pitch of a roof given
* the sloping width from eaves to ridge and
* the horizontal width of the floor below it.
*/
#define PI 3.141593
#define DEG_PER_RAD (180.0/PI)
double floor_width = 30.0;
double roof_width = 34.6;
double roof_pitch = acos( floor_width / roof_width ) * DEG_PER_RAD ;
printf( "The pitch of the roof is %2.0f degrees.\n", roof_pitch );
This code produces the following output:
The pitch of the roof is 30 degrees.
The arc cosine functions for complex numbers: cacos( ), cacosf( ), and cacosl( ) | http://books.gigatux.nl/mirror/cinanutshell/0596006977/cinanut-CHP-17-4.html | CC-MAIN-2018-43 | refinedweb | 170 | 75.91 |
React Important Topics with Interview Questions
When you want a Web Developer job, In the Interview you will be faced with ReactJS related questions. So, here are some of the most Interview Questions about ReactJS, that can help you in the Interview.
1. React is not a framework it’s a library.
- like other framework as like Angular or Ember React is not a framework, framework comes with lot’s of built in rules and regulation you cannot go beyond them but using react for front end you have lot’s of control of your application.
- React is all about flexibility, you can use much more third party tools while building react application.
2. All About Jsx
- For beginner developer react is very good choice i should say, because i see a lot’s of developer this days learn basic html css before they learn the programming basics
because of the outcomes, when you will doing programming you see only a black console and some input output things . but you want to be a web developer you’re doing nothing with web still now. that’s where many people get frustrated, they want to see some output some visual output i must say. that’s why they learn html first writing some lines of output they can see their output in the browser window and they will pumped. that’s why jsx is important and jsx is some way easier for who did psd to html first.
- it’ s look like wow. it’s all about html .. i knew this. and they don’t get scared and trying to cope with react .. that’s why jsx is important and it plays a vital role for being a react developer.
see how easy it is , we can write html code inside a javascirpt function.
3. It’s All about JavaScript
what you see in the above example is not like that. there is no html inside the functions . It’ s all about syntactic sugar. behind the scene their is no html in react application. behind the scene
see what i say …. under the hood React.creatElement () method create what we want . like DOM creation, document.createElement() our React.createElement() also create what order the react dom.
4. How Data goes down.
- Data goes down means data flow from parent element to child element .
- If we want to pass the data from our parent component to child component we have to pass as a props .
- when we use a component inside another component then we can send some of the data into the child component
5. State Management
State is a important topics of react. when we need to change a specific property value… like we need to update things . we have to use state. using state life became more easier.
imagine you have a logged in user state there you have a value loggedInUser and it’s initial value is false. when a user logged in somehow you want to change the status of loggedInUser to true.. how will you do that ?? that’s where comes the state
6. How event goes up
- Event goes up means event bubbling. event bubble is a important topics in react, how event are bubbling and why they are bubbling .
- let’s say parent component needs to do a button click event and it will perform the button click event in parent element and get’s the data from the child element.
- sounds like fishy but many many times you will do that in the future and it’s very helpful for the application. let’ s see the example.
7. working process of render
When a state is changed and need to update then it will do componentDidUpdate() and it will call the render function and will say that hey render i need to update so you must re-render again and then render will be re-render again.
- when a state is changed and and render is re-render then child component will also re-render and will update if need any.
8. State Must be simple
- when we use state , we need to keep our state as small as we can do. because if we make our state so big then it will be very tough to handle.
- when we keep our state simple then we can easily handle our state ,like when we use a state in login page then we can use only one state that only keep our login user info.
- like login page in the registration page we can use our state as a small one by using only user name, password , and sometimes we call keep his some other information.
- if we need a big state instead of react state we can use redux state management
9. Conditional rendering in React
In react application, we cannot use if else or any other conditional rendering .but rather than use other conditional rendering we can user ternary operator rendering
- inside a {} curly braces we can use our conditional rendering using ternary operator.
- look at this example bellow , and you will se that i use a h1 and inside that h1 i used a curly braces and inside that curly braces i used a ternary operator and set a value depending on that condition.
10. Default Props
default props is a interesting topics in react and it is very handy. when we need a props that is specific and we don’t need to change that any time soon in that situation we can use default props
if i give an example like bellow that there is a button component and we want to give a default props color as blue. if u remember or if u use react-bootstrap then you must know that when you use a button like this <Button > or button class primary then that’s the use of default props their primary button has a default props which has a blue color property.
- when we set a default value like this color blue, it we don’t pass any other color, it will take that color as default.
1.What is JSX?
JSX is nothing but power of react which give us the power to use html and JavaScript together.
Look at the variable declaration which is given bellow:
const element = <h1>Hello, world!</h1>;
This looks funny but this the power of JSX which allows us this syntax tax to JavaScript. We recommend using it with React to describe what the UI should look like. JSX may remind us of a template language, but it comes with the full power of JavaScript. JSX produces React elements. We will explore rendering them to the DOM in the next section.
2.What are Pure Components?
React component is considered a Pure Component if it renders the same output for the same state and props value. React provides the PureComponent base class for these class components. Class components that extend the React.PureComponent classes.
3.What are synthetic events in React?.
4.What are stateless components?
Stateless components are simple functional component without having a local state but remember there is a hook in react to add state behavior in functional component as well.
We can use either a function or a class for creating stateless components. But unless we need to use a lifecycle hook in your components, you should go for function components. There are a lot of benefits if you decide to use function components here; they are easy to write, understand, and test, a little faster, and you can avoid the
this keyword altogether.
5.What are error boundaries in React v16?
React v16 has come up with some new features and Error Boundaries is one of them.In react, any runtime error during rendering puts React in a broken state and the whole component tree is unmounted from the root and needs a refresh to recover.
This can be prevented using a special React component called Error Boundaries which provides a fallback UI in case of a runtime error, like try-catch block.
These components are implemented using a special lifecycle method which catches any error in their child component tree. React v15 had this method with name unstable_handleError, but had very limited support for error boundaries. This unstable_handleError method no longer works as React v16 provided a new method called componentDidCatch.Error boundaries catch errors of child components only. Any error within itself will not be caught and the error will propagate the closet Error Boundary above it. And any error not caught by any Error Boundary will propagate to the root and crash/uproot the whole app.
6()
Example:()
})
7.What are the advantages of React?
The advantages of React are:
It facilitates the overall process of writing components
It boosts productivity and facilitates further maintenance
It ensures faster rendering
It guarantees stable code
It is SEO friendly
It comes with a helpful developer toolset
There is React Native for mobile app development
It is focused and easy-to-learn
It is backed by a strong community
It is used by both Fortune 500 companies and innovative startups.
8.How to focus an input element on page load?
By using ref for input element and using it in componentDidMount() we can focus an element on page load
Example:
class App extends React.Component{
componentDidMount() {
this.nameInput.focus()
}
render() {
return (
<div>
<input
defaultValue={‘Won\’t focus’}/>
<input
ref={(input) => this.nameInput = input}
defaultValue={‘Will focus’}/>
</div>)}
}
ReactDOM.render(<App />, document.getElementById(‘app’)).
10.What are the sources used for introducing hooks?
Hooks got ideas from several different sources. Below are some of them,
· Previous experiments with functional APIs in the react-future repository
· Community experiments with render prop APIs such as Reactions Component
· State variables and state cells in DisplayScript.
· Subscriptions in Rx.
· Reducer components in ReasonReact. | https://prionto71.medium.com/react-interview-questions-8a435ea43812?responsesOpen=true&source=user_profile---------5---------------------------- | CC-MAIN-2021-43 | refinedweb | 1,645 | 63.49 |
dgaudet 97/12/18 18:16:02
Modified: src/main conf.h
Log:
Better glibc support for linux.
PR: 1542
Reviewed by: Martin Kraemer, Jim Jagielski
Revision Changes Path
1.163 +30 -2 apachen/src/main/conf.h
Index: conf.h
===================================================================
RCS file: /export/home/cvs/apachen/src/main/conf.h,v
retrieving revision 1.162
retrieving revision 1.163
diff -u -r1.162 -r1.163
--- conf.h 1997/12/01 12:10:14 1.162
+++ conf.h 1997/12/19 02:16:01 1.163
@@ -310,22 +310,50 @@
#define HAVE_SYSLOG
#elif defined(LINUX)
+
#if LINUX > 1
#include <features.h>
+
+/* libc4 systems probably still work, it probably doesn't define
+ * __GNU_LIBRARY__
+ * libc5 systems define __GNU_LIBRARY__ == 1, but don't define __GLIBC__
+ * glibc 2.x and later systems define __GNU_LIBRARY__ == 6, but list it as
+ * "deprecated in favour of __GLIBC__"; the value 6 will never be changed.
+ * glibc 1.x systems (i.e. redhat 4.x on sparc/alpha) should have
+ * __GLIBC__ < 2
+ * all glibc based systems need crypt.h
+ */
#if defined(__GNU_LIBRARY__) && __GNU_LIBRARY__ > 1
-/* it's a glibc host */
#include <crypt.h>
-#define NET_SIZE_T size_t
#endif
+
+/* glibc 2.0.0 through 2.0.4 need size_t * here, where 2.0.5 needs socklen_t *
+ * there's no way to discern between these two libraries. But using int should
+ * be portable because otherwise these libs would be hopelessly broken with
+ * reams of existing networking code. We'll use socklen_t * for 2.1.x and
+ * later.
+ *
+ * int works for all the earlier libs, and is picked up by default later.
+ */
+#if defined(__GLIBC__) && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__
> 0))
+#define NET_SIZE_T socklen_t
+#endif
+
#define HAVE_SHMGET
#define USE_MMAP_FILES
#define HAVE_SYS_RESOURCE_H
+
+/* glibc 2.1 and later finally define rlim_t */
+#if !defined(__GLIBC__) || __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__
< 1)
typedef int rlim_t;
+#endif
/* flock is faster ... but hasn't been tested on 1.x systems */
#define USE_FLOCK_SERIALIZED_ACCEPT
+
#else
#define USE_FCNTL_SERIALIZED_ACCEPT
#endif
+
#undef HAVE_GMTOFF
#undef NO_KILLPG
#undef NO_SETSID | http://mail-archives.apache.org/mod_mbox/httpd-cvs/199712.mbox/%3C19971219021602.29934.qmail@hyperreal.org%3E | CC-MAIN-2016-40 | refinedweb | 322 | 71.31 |
Removes an interrupt handler.
#include <sys/types.h> #include <sys/errno.h> #include <sys/intr.h>
void i_clear (handler) struct intr *handler;
The i_clear service removes the interrupt handler specified by the handler parameter from the set of interrupt handlers that the kernel knows about. "Coding an Interrupt Handler" in AIX Kernel Extensions and Device Support Programming Concepts contains a brief description of interrupt handlers.
The i_mask service is called by the i_clear service to disable the interrupt handler's bus interrupt level when this is the last interrupt handler for the bus interrupt level. The i_clear service removes the interrupt handler structure from the list of interrupt handlers. The kernel maintains this list for that bus interrupt level.
The i_clear kernel service can be called from the process environment only.
The i_clear service has no return values.
The i_clear kernel service is part of Base Operating System (BOS) Runtime.
The i_init kernel service.
I/O Kernel Services, Understanding Interrupts in AIX Version 4.3 Kernel Extensions and Device Support Programming Concepts. | http://ps-2.kev009.com/tl/techlib/manuals/adoclib/libs/ktechrf1/iclear.htm | CC-MAIN-2022-27 | refinedweb | 172 | 51.24 |
plib3.classes 0.9.1
Useful Python 3 classes.
The PLIB3.CLASSES package contains a number of useful packages and modules that extend the Python 3 standard library.
Note: PLIB3.CLASSES works with Python 3. If you are using Python 2.7, see the PLIB.CLASSES package, available at.
The setup.py script for PLIB3.CLASSES uses the setuputils helper module, which helps to automate away much of the boilerplate in Python 3 setup scripts. This module is available as a separate release at.
The PLIB3.CLASSES Package
The following classes are available in the plib.classes namespace:
- The StateMachine class implements a basic finite state machine with customizable code to be run at each state transition.
Installation
To install PLIB3.CLASSES,
- Requires plib3.stdlib (>=0.9.22)
- Provides plib3.classes-0.9.1.xml | https://pypi.python.org/pypi/plib3.classes | CC-MAIN-2017-43 | refinedweb | 135 | 63.15 |
Rounding numbers in Python is quite common. There might be a situation where values must only be rounded to 3 decimals or some arbitrary number. Using the built-in function round() is handy but changes the original value.
During chemistry class in college, I frequently heard and used the term "significant figures". Which essentially referred to rounding off a large decimal number so that we only include the most relevant digits.
Significant figures of a number in positional notation are digits in the number that are reliable and absolutely neccessary to indicate the quantity of something. Wikipedia
Outside of "sig figs", rounding decimal values to a certain precision and determining the type of rounding that occurs is quite important for extremely precise calculations like those in banking/financial software.
How does Python handle floating point numbers?
Python at the lowest level, is built on top of C. That means that when floating point values undergo operations, the values that are being calculated by C (for Python) are converted to binary fractions and not floating point numbers. Unfortunately, the fractions are not as accurate as floating point numbers. When you see a floating point value, remember it is indeed a fraction (or two).
Somewhere within the calculations done by C, we realize that some floating points are being lost, which is not ideal for highly accurate financial software or other applications. Python gives us the built-in
round() function to round floating point numbers (but this does change the original value and is not the most accurate). For ultimate accuracy, we can use packages like decimal to ensure floating point numbers are extremely precise.
One way to quickly test this for yourself, is to try performing some operations on two decimal value literals. Jump into REPL or your favorite text editor to follow along.
>>> 4.6 + 3.3
7.8999999999999995
As we would expect, the type of
value is indeed a
float. But what is intriguing is that instead of 7.9 being calculated, somewhere along the way when C calculates the binary fractions, we lose roughly 5 points and are given the value
7.8999999999999995.
Basic Terminology
- 4.6 + 3.3 is an expression
- 4.6 and 3.3 are float literals (operands)
/is the division operator
Using the built-in
round() function, we can make sure the value is rounded to
n decimals. Remeber this is not extremely accurate and does change the original value, so the floating points truncated are no longer stored in
value and the new value is
7.9.
>>> round(4.6 + 3.3, 1)
7.9
Rounding without changing original value
If we don't want to change the original value with
round(), a great alternative for formatting output is
format(). It allows us to format the output string without changing the original floating point number like
round() does. This is handy when you just need to display the decimal output rounded to
n decimal places without altering the original value.
Note: Read more about rounding/formatting decimals on StackOverflow
This example demonstrates how to display the rounded/formatted decimal number output:
value = 4.652 + 3.321
print('The formatted/rounded value is {:0.2f}'.format(value))
# The formatted/rounded value is 7.97
You could also use f-strings which is a much quicker way to format strings as an alternative to the longhand
format() usage. Simply place the letter
f before your string and use curly braces
{} to interpolate variables inside a string just as we would do with backticks and string interpolation syntax
${} in JavaScript.
name = "Root"
size = 250
print(f"I Am {Root}. I have {size} GB of storage.")
# I am Root. I have 250 GB of storage.
Extreme precision rounding
If your building a complex financial system or application that requires very precise calculations, using the decmimal module will be the recommended course of action. The Python docs provide a great quick start example for anyone interested in using this module for precise floating point calculations.
from decimal import *
# View the current context
ctx = getcontext()
print(ctx) # Context(prec=28, rounding=ROUND_HALF_EVEN, Emin=-999999999, Emax=999999999, capitals=1, flags=[], traps=[Overflow, DivisionByZero, InvalidOperation])
# Alter precision
ctx.prec = 10
# Construct some new decimal objects
a = Decimal(3.14)
print(a) # 3.140000000000000124344978758017532527446746826171875
b = Decimal((0, (5, 1, 5), -2))
print(b) # 5.15
The significance of a new Decimal is determined solely by the number of digits input. Context precision and rounding only come into play during arithmetic operations.
Keep the above in mind when setting specific
prec values for the decimal module context
getcontext(). We create new
Decimal values in the code snippet above and the significance is determined by the number digits used as input. When arithmetic operations are performed, the context precision and rounding come into play.
# Arithmetic operations (where precision and rounding come into play)
val = Decimal(5.05362) + Decimal(2.61589)
print(val) # 7.66951
# Change rounding in context to round up (from default ROUND_HALF_EVEN)
ctx.rounding = ROUND_DOWN
val = Decimal(5.05362) + Decimal(2.61589)
print(val) # 7.66950
There is much more to be discovered in the decimal module, but I will leave that up to you. I hope this article shed some light on floating point numbers in Python and the options you have for dealing with extremely precise decimal calculations. | https://tannerdolby.netlify.app/writing/rounding-in-python/ | CC-MAIN-2022-05 | refinedweb | 888 | 56.45 |
I am currently working on a VB.NET project that uses Generics and during my course of research into Generics I found little information on using them in VB.NET. Sure I could easily extract the principles as they were explained in C# but the flavor of the explanations were mainly geared towards C#/C++ developers which I found were foreign to most VB.NET developers. What I wanted to accomplish here is to explain Generics using a slant that VB.NET developers could understand as well as have all my code examples in VB.NET.
So to start off what are Generics? To answer that question it is easier to explain what they do for you. What generics do is provide developers a way to create type safe classes and interfaces that are data type agnostic. This means that when you declare your class or interface you put a place holder for the agnostic type in the declaration and during instance creation you specify the actual type used. From this point on the compiler will enforce this contract and ensure that only types specified in your declaration are passed into your class or interface.
Dim myList As New List(Of Integer)
myList.Add(1) ‘everything works ok
myList.Add(“This is an error”) ‘this will not compile
In the example above you have the new Generic list class List( Of T) that can hold any type. In this example you are making a contract saying that this List will only hold integers. Then as you can see when you try to add a string you will get a compile error.
So what else can I benefit from with Generics you ask? Well how about eliminating boxing of value types. If you are not familiar with boxing here is a good explanation of it I copied from this link on MSDN that talks about types as well as boxing.() and CType(, Object) both box the value type.
To give you an example of boxing this code causes boxing.
‘Class that can potentially cause boxing
Public Class PotentialBoxing
Private _object As Object
Public Property SetValueToObject() As Object
Get
Return _object
End Get
Set(ByVal value As Object)
_object = value
End Set
End Property
End Class
‘An example of a boxing call
Dim myBoxingClass As New PotentialBoxing()
myBoxingClass.SetValueToObject = 1
So to sum up the benefits that most VB.NET developers will get out of Generics (1) ability to create type safe classes and interfaces that after declaration with the desired type will be enforced by the compiler (2) a way to eliminate boxing of value types.
So now with this knowledge I am going to walk you through the evolution of trying to create a type safe collection starting with how you would code it in .NET 1.0/1.1 then a potential pitfall that could occur by incorrectly coding a collection in .NET 2.0 and finally a complete type safe collection in .NET 2.0.
This example caused boxing of the integer type when it was added to the collection but not when the value was passed into the Add method.
Public Class MyBoxingList
Inherits CollectionBase
Public Function Add(ByVal value As Integer) As Integer
Return List.Add(value)
End Function
Public Sub Remove(ByVal value As Integer)
List.Remove(value)
End Sub
Public ReadOnly Property Item(ByVal index As Integer) As Integer
Get
Return CType(List.Item(index), Integer)
End Get
End Property
End Class
This example is much the same as above causing boxing but allows you to use any type instead of having to create a separate class for each type.
Public Class MyPossiblyStillBoxingGenericList(Of T)
Inherits CollectionBase
Public Function Add(ByVal value As T) As Integer
Return List.Add(value)
End Function
Public Sub Remove(ByVal value As T)
List.Remove(value)
End Sub
Public ReadOnly Property Item(ByVal index As Integer) As T
Get
Return CType(List.Item(index), T)
End Get
End Property
End Class
This example allows you to create a custom class based on a collection and give you the availability to override methods if needed and will not cause boxing if you type T is of a value type.
Public Class NoBoxingList(Of T)
Inherits System.Collections.ObjectModel.Collection(Of T)
‘you now have the opportunity to override any of the standard interfaces
‘of the Collection(Of T) class if needed.
End Class
Finally this is the easiest way to create a generic collection.
Dim myGenericList As New List(Of Integer)
So I am sure by now you are seeing that collections are something that Generics have really helped with. The BCL has a ton of collection classes in System.Collections.Generic namespace that you can use without creating any on your own. If you are more adventurous and want to create your own custom Generic collections you are in luck, look in the System.Collections.ObjectModel namespace for generic collections that were designed to be inherited from.
In my next installment on Generics I am going to cover their application outside the arena of collections and talk about generic constraints, inheritance and generics, generic methods, generic delegates and generics and reflection. | http://blogs.interknowlogy.com/2005/05/22/generics-in-vb-net/ | CC-MAIN-2022-21 | refinedweb | 863 | 52.7 |
when i compile it gives the error of that Nsobject or foundation directory not found
The code that is mentioned here doesn't work at all. First of all, how to compile each of these classes. Where do we find NSObject.h?
Post your Comment
Class and Method declaration and definitions
Class and Method declaration and
definitions
... directive.
Declaration of a simple class: MyClass.h...;
}
method declaration;
method declaration;
@end
Definitions
Declaration tag
; Declaration in JSP is way to define global java variable and method. This java variable method in declaration can be access normally. Normally declaration does... does not reside inside service method of JSP.
Declaration tag is used to define
DECLARATION IN JSP
DECLARATION IN JSP
In this Section, we will discuss about declaration of variables & method in
JSP using declaration tags.
Using Declaration Tag, you... declaration with a semicolon. The declaration must be valid
in the Java
STATIC VARIABLE DECLARATION
STATIC VARIABLE DECLARATION why cannot the static variable declare inside the method
Namespace Declaration
__FUNCTION__;
}
class One
{
function
myMethod()
{
echo
__METHOD...Namespace Declaration:
The term namespace is very much common in OOP based... a namespace, but in general
class, functions, and constants are placed for easy
Method in Declaration Tag
Method in Declaration Tag
... a Declaration
Tag. The syntax of this tag is <%! --------- %>. ... are declared inside the declaration tag so, that these
methods can be accessed from
Method Signatures
and method definitions. To define a method in java
we need to abide by the certain java syntax known as the method signature to
create a method within a class...
Method Signatures
Emitting DOCTYPE Declaration while writing XML File
Emitting DOCTYPE Declaration while writing XML File
... a DOCTYPE Declaration in a DOM document. JAXP (Java
API for XML Processing... for Emitting DOCTYPE Declaration are described below:-DocumentBuilderFactory in the following way:
String arr[]={};
For more more information, visit the following
Message Resources Definitions file to the Struts Framework Environment?
Message Resources Definitions file to the Struts Framework Environment? How you will make available any Message Resources Definitions file to the Struts Framework Environment
variable declaration in c and c++
variable declaration in c and c++ Comparison and an example of variable declaration in C and C
C Array Declaration
C Array Declaration
....
int arr[5];
In the above declaration, the arr is the array of integer... return type
becomes void. This means method will not return any value.
clrscr
track array declaration
track array declaration how to track an array declaration in a input program
Array Declaration
Array Declaration
In this Tutorial we want to describe you a code that helps you in
Understanding Array Declaration. For this we are using JavaScript
The abstract Keyword : Java Glossary
;
Abstract keyword used for method declaration declares... will be
used in method declaration to declare that method without providing... that,
it formally unfinished class as well as method, that marked
Method in Java
in a class, object can't do anything without method. Some
programming languages use... within the curly braces.
Method
Signature
Declaration part of the method....
Let's
take a look at the general syntax for a method declaration:
[modifiers
Declaring Method in Objective C
denotes the Class method and - sign denotes the Instance method.
For example.... for example…
Objective C method declaration with single parameter:
+ (void) getId...Declaring Method in Objective C
In Objective C we can declare two types
JavaScript Frameworks
definitions to an actionscript object
structure can read and resolve 'n' definition... use of method call interception and aims at
separation of concerns
Creating a Local Variable in JSP
;
In jsp when we have to create a method or variable we
usually declare it inside the declaration tag. If we declare it inside the
declaration directive then then the scope of the variables
Creating a Local Variable in JSP
;
In jsp when we have to create a method or variable we
usually declare it inside the declaration tag. If we declare it inside the
declaration directive... in tag
except the declaration directive. In this example we are declaring
Methods in Objective c
suggest that it's a class method where as method that begins with the "-" sign makes it a instance method. The method declaration in objective c also take... {
string= @"method declaration in Objective C";
label.text
java Method Error - Java Beginners
java Method Error class mathoperation
{
static int add(int...-n);
}
}
class mathdemo
{
public static void main(String args...
mathdemo.java:7: missing method body, or declare abstract
static int
Constructor Inheritance
the class.
Constructor declaration are just like method declaration, except that they do
not have any return type and they use the name of the class. The compiler
provides us with a default constructor to the class having no arguments
Use Constructor in JSP
.
Constructors are used to initialize the object. They are just like method
declaration but they do not return value. Constructors are defined by their
class name. Here...;
class X
{
int side;
int area;
int perimeter
Finalize Method in Java
no value and no arguments but can be overridden by any class. The finalize method... is destroyed.
The declaration for the finalize method is:
protected void finalize... unreachable.
Example of Finalize method in Java:
package Toturial;
class
errorghalib June 14, 2011 at 10:05 PM
when i compile it gives the error of that Nsobject or foundation directory not found
Code doesn't workBalaji November 16, 2011 at 4:43 PM
The code that is mentioned here doesn't work at all. First of all, how to compile each of these classes. Where do we find NSObject.h?
Post your Comment | http://www.roseindia.net/discussion/23875-Class-and-Method-declaration-and-definitions.html | CC-MAIN-2013-20 | refinedweb | 932 | 56.05 |
Visualizing the History of Epidemics
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
I really like National Geographic. Their magazine is great, their television documentaries are done well and they helped give me a lifelong love of maps. They generate very good information and help shed light on the world we all share. So why is this graphic so awful?
Let's have a look:
We'll start off by saying that no one will mistake me for Edward Tufte or Stephen Few or Nathan Yau, though I love their stuff, have read it and have tried to adopt as many of their more sensible recommendations as I can. That understood, I think I'm on solid footing when I say that at a minimum, all graphical elements should fit within the display surface. The first three quantities are so massive, that they can't be contained. How big are they? Well, we have the numbers within the circles, but beyond that, who knows? The plague of Justinian looks like it could be Jupiter to the Black Plague's Saturn, with modern epidemics having more of an Earthly size.
Speaking of circles, I try to avoid them. If those three aforementioned experts have taught me anything it's that the human brain cannot easily process the area of a round object. Quick: without looking at the numbers, tell me what's the relativity between HIV and ebola.
Did you have to scroll to look at both objects? I did. Not only do the largest epidemics spill over the display area, they make it difficult to view a large number of data points at the same time. As we scroll down, we eventually land on a display which has Asian flu at the top and the great plague of London at the bottom. Justinian, the black death and medieval history are erased from our thoughts.
And what's with the x-axis? The circles move from one side to the other, but this dimension conveys no meaning whatsoever.
As an aside, although I love having the years shown, it would have been good to use that to augment the graphic with something that conveys how epidemics have changed over time. Population has changed, medicine has changed and the character of human disease has changed. As I look at the graphic, what I tend to extrapolate from this is that surely the plague of Justinian wiped out most of southern Europe, Anatolia and Mesopotamia. In contrast, SARS likely appeared during a slow news cycle.
It would be disingenuous of me to criticize a display without proposing one of my own. So, here goes.
dfEpidemic = data.frame(Outbreak = c("Plague of Justinian", "Black Plague" , "HIV/AIDS", "1918 Flu", "Modern Plague" , "Asian Flu", "6th Cholera Pandemic" , "Russian Flu", "Hong Kong Flut" , "5th Cholera Pandemic", "4th Cholera Pandemic" , "7th Cholera Pandemic", "Swine Flu" , "2nd Cholera Pandemic", "First Cholera Pandemic" , "Great Plague of London", "Typhus Epidemic of 1847" , "Haiti Cholera Epidemic", "Ebola" , "Congo Measles Epidemic", "West African Meningitis" , "SARS") , Count = c(100000000, 50000000, 39000000, 20000000 , 10000000, 2000000, 1500000, 1000000 , 1000000, 981899, 704596, 570000, 284000 , 200000, 110000, 100000, 20000, 6631 , 4877, 4555, 1210, 774) , FirstYear = c(541, 1346, 1960, 1918, 1894, 1957, 1899, 1889 , 1968, 1881, 1863, 1961, 2009, 1829, 1817 , 1665, 1847, 2011, 2014, 2011, 2009, 2002)) dfEpidemic$Outbreak = factor(dfEpidemic$Outbreak , levels=dfEpidemic$Outbreak[order(dfEpidemic$FirstYear , decreasing=TRUE)]) library(ggplot2) library(scales) plt = ggplot(data = dfEpidemic, aes(x=Outbreak, y=Count)) + geom_bar(stat="identity") + coord_flip() plt = plt + scale_y_continuous(labels=comma) plt
I'm showing that data as a bar chart, so everything fits within the display and the relative size is easy to recognize. I also order the bars by starting year so that we can convey an additional item of information. Are diseases getting more extreme? Nope. Quite the reverse. 1918 flu and HIV have been significant health issues, but they pale in comparison to the plague of Justinian or the Black Death. HIV is significant, but we've been living with that disease for longer than I've been alive. If we want to convey a fourth dimension, we could shade the bars based on the length of the disease.
dfEpidemic$LastYear = c(542, 1350, 2014, 1920, 1903, 1958, 1923, 1890, 1969, 1896, 1879 , 2014, 2009, 1849, 1823, 1666, 1847, 2014, 2014, 2014, 2010, 2003) dfEpidemic$Duration = with(dfEpidemic, LastYear - FirstYear + 1) dfEpidemic$Rate = with(dfEpidemic, Count / Duration) plt = ggplot(data = dfEpidemic, aes(x=Outbreak, y=Count, fill=Rate)) + geom_bar(stat="identity") plt = plt + coord_flip() + scale_y_continuous(labels=comma) plt
The plague of Justinian dwarfs everything. We'll have one last look with this observation removed. I'll also take out the Black Death so that we're a bit more focused on modern epidemics.
dfEpidemic2 = dfEpidemic[-(1:2), ] plt = ggplot(data = dfEpidemic2, aes(x=Outbreak, y=Count, fill=Rate)) + geom_bar(stat="identity") plt = plt + coord_flip() + scale_y_continuous(labels=comma) plt
HIV/AIDS now stands out as having the most victims, though the 1918 flu pandemic caused people to succomb more quickly.
These bar charts are hardly the last word in data visualization. Still, I think they convey more information, more objectively than the National Geographic's exhibit. I'd love to see further comments and refinements.
Session info:
## R version 3.1.1 (2014-07-10) ##.6 RWordPress_0.2-3 scales_0.2.4 ggplot2_1.0.0 ## ## loaded via a namespace (and not attached): ## [1] colorspace_1.2-4 digest_0.6.4 evaluate_0.5.5 formatR_0.10 ## [5] grid_3.1.1 gtable_0.1.2 htmltools_0.2.4 labeling_0.2 ## [9] MASS_7.3-34 munsell_0.4.2 plyr_1.8.1 proto_0.3-10 ## [13] Rcpp_0.11.2 RCurl_1.95-4.1 reshape2_1.4 rmarkdown_0.2.50 ## [17] stringr_0.6.2 tools_3.1.1 XML_3.98-1.1 XMLRPC_0.3-0 ## [21] yaml_2.1. | https://www.r-bloggers.com/2014/10/visualizing-the-history-of-epidemics/ | CC-MAIN-2021-04 | refinedweb | 980 | 61.77 |
Red Hat Bugzilla – Bug 191582
Review Request: xgalaxy - Galaga clone for X11
Last modified: 2007-11-30 17:11:32 EST
Spec URL:
SRPM URL:
Description:
A clone of the classic game Galaga for the X Window System. Xgalaga is a space-
invader like game with additional features to produce a more interesting game.
I'm getting a build error in mock during configure:
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-fsigned-char -DXF86VIDMODE -lXxf86vm) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.
error: Bad exit status from /var/tmp/rpm-tmp.65804 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.65804 (%build)
Well it works fine for me can you lift the actual gcc error from config.log that
might help.
$ cat
/var/lib/mock/fedora-5-x86_64-core/root/builddir/build/BUILD/xgalaga-2.0.34/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:564: checking host system type
configure:588: checking for gcc
configure:701: checking whether the C compiler (gcc -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4
-m64 -mtune=generic -fsigned-char -DXF86VIDMODE -lXxf86vm) works
configure:717: gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-fsigned-char -DXF86VIDMODE -lXxf86vm conftest.c 1>&5
configure:714: warning: return type defaults to 'int'
/usr/bin/ld: cannot find -lXxf86vm
collect2: ld returned 1 exit status
configure: failed program was:
#line 712 "configure"
#include "confdefs.h"
main(){return(0);}
* rpmlint output clean
* Package meets Package Naming Guidelines
* Spec filename matches base package %{name}
* Package meets Packaging Guidelines
* Package licensed with open source compatible license
* License in spec matches actual license
* License text included in %doc
* Spec file written in American English
* Spec file is legible
* Sources match upstream
9f7ee685e9c4741b5f0edc3f91df9510 xgalaga_2.0.34.orig.tar.gz
9f7ee685e9c4741b5f0edc3f91df9510 xgalaga_2.0.34.orig.tar.gz
* Package successfully compiles and builds on FC5 x86_64
O Package has all BR except libXxf86vm-devel which I needed to add for it to compile
* Package does not have any locales
* Package does not contain any shared library files
* Package is not relocatable
* Package owns all directories it creates
* Package does not contain any duplicate files in %files
* File permissions are set properly
* Package contains proper %clean section
* Macro usage consistant enough
- I notice you use %{__sed}, but don't bother using %{__make} or %{__rm} etc..
* Package contains permissble content
* Package does not contain large documentation to warrent a seperate package
* Package does not contain header files, libraries or .pc files
* Package does not contain any .so files
* Package does not require or use a -devel package
* Package does not contain any .la files
* Package adds an appropriate .desktop entry
* Package does not own any files or directories owned by other packages
*** MUST ***
- You MUST figure out why FC5 needs to add a BuildRequires of libXxf86vm-devel
and why this is not needed for your build (presumably FC6)
Non-blocking SHOULDs:
- Be more consistant with macro usage, for example %{__sed}, but no %{__rm} etc.
- I also prefer %{buildroot} instead of $RPM_BUILD_ROOT, but that is a matter of
preference. I just think spec files look cleaner when everything consistantly
uses %{} format. So basically I'm saying you should use a clean more legible
consistant style in your spec files, but I'm not going to say this is a blocker
or should be fixed, just a suggestion.
- Let me know that the name xgalaga isn't going to be a problem with Namco.
I've heard the Lgames are not allowed because the names are too close to the
original, is this going to be a problem?
- Return the favor by reviewing some of my packages ;-)
One other minor thing I noticed:
cat > README.fedora << EOF
The latest Fedora xgalaga package also includes fullscreen support, start
xgalaga with -window to get the old windowed behaviour. You can switch on the
fly between window and fullscreen mode with alt+enter .
EOF
The word "behaviour" is not American English. It should be "behavior". In
addition there should not be a space before the final period.
Chris and I had a private discussion about this by email because BZ was down,
copy and pasting it here for future reference:
---
Hi Chris,
Bugzilla is down so I'm doing it this way. Thanks for the review.
About the missing BR I failed to add that its needed for the devel branch too,
things just worked on my system because I already had the needed devel-package
installed.
About the name, I wans't sure about this myself, so now I've changed the name to
xgalaxy (googled, not taken already).
New SRPM and spec are at:
Regards,
Hans
---
Christopher Stone wrote:
> okay ill take a look at this tomorrow, been really busy today and
> didnt get the chance to look at it.
>
> Do you think the name is going to be a problem? I'd prefer xgalaga,
> but then again, it's probably better to be safe than sorry.
>
The name is most likely not a problem, because the people with the rights to the
original name probably don't care. xgalaga has existed under this name for a
long time without trouble.
Then again the name had both me and you worried and those are valid worries the
name is a legal problem. Even if the other party _probably_ doesn't care it
still is a legal issue. It is the _probably_ that scares me and untill the "upto
now" part of upto now this hasn't been a problem. If the people with the rights
to the name one day all of a sudden do start caring, or get a grudge against OSS
we've a problem, which I would rather avoid. Since I've already done the hard
work of renaming (and recreating the "logo") I think its best / safest to stick
with the new name.
Regards,
Hans
New rpm is STILL missing libXxf86vm-devel.
Oops you're right, I did put adding it in the changelog, but I didn't actually
do this.
Fixed SRPM and spec are at:
Imported & Build,
Thanks!
Fixing bug report summary. | https://bugzilla.redhat.com/show_bug.cgi?id=191582 | CC-MAIN-2016-50 | refinedweb | 1,073 | 59.84 |
Write a program that generates a random number should use a loop that repeats until the user correctly guesses the random number.
#include <stdio.h> int main() { int num, guess, tries = 0; srand(time(0)); /* seed random number generator */ num = rand() % 100 + 1; /* random number between 1 and 100 */ printf("Guess My Number Game\n\n"); do { printf("Enter a guess between 1 and 100 : "); scanf("%d", &guess); tries++; if (guess > num) { printf("Too high!\n\n"); } else if (guess < num) { printf("Too low!\n\n"); } else { printf("\nCorrect! You got it in %d guesses!\n", tries); } }while (guess != num); return 0; }
Guess My Number Game
Enter a guess between 1 and 100 : 60
Too low!
Enter a guess between 1 and 100 : 80
Too low!
Enter a guess between 1 and 100 : 95
Correct! You got it in 3 guesses! | http://cprogrammingnotes.com/question/guess-my-number.html | CC-MAIN-2018-39 | refinedweb | 141 | 75.71 |
In a previous example, “Disabling keyboard navigation on the Accordion container in Flex”, we saw how to disabe keyboard navigation on the Flex Accordion container by overriding the
keyDownHandler() method.
The following example shows how you can disable keyboard navigation on the Flex List control by extending the List class and overriding the protected
keyDownHandler() method.> <comps:MyList </mx:Application>
/** * */ package comps { import flash.events.KeyboardEvent; import mx.controls.List; public class MyList extends List { public function MyList() { super(); } override protected function keyDownHandler(event:KeyboardEvent):void { } } }
View source is enabled in the following example.
thanks for you tutorials~ very userful!@
Thank you for your tutorials.
It’s possible to set a handCursor to a DataGrid Control?
I mean not only the Headers but the list too, preserving the list properties like the roll over and the selected Item color while using the hand cursor on the rows.
Thank you for your time.
Thank you for your tutorial.
Here I have one requirement i.e. I need to disable alt key and their combinations like f4, tab and also Esc key. I am implementing flex application as Desktop Application (runs in AIR).
Please tell me how can I disable these keys.
Regards,
Krishna | http://blog.flexexamples.com/2008/06/11/disabling-keyboard-navigation-on-the-list-control-in-flex/ | crawl-002 | refinedweb | 202 | 50.12 |
hello
alright, i made a blackjack program, it works. i don't know what i would do for the face cards, like jack,king,queen,and ace, how would i put them into a random generator. the jack,king,queen count as 10. also how would i get the ace to count as either 11 or 1, when needed.
i know the indentation is off, but its better than other programs that i have made.
also any hints if i could put more into a loop or something.
thanks
Code:#include<iostream> #include <cstdlib> //to use rand function #include <ctime> // to use time as the seed for rand using namespace std; /* Randall Foor Blackjack program 9/30/10 */ int main(){ for(int x=10;x>0;x--) { int guess, number,numcards, cardnum; int cardnumber; int n1,n2,n3,n4,n5; int numberGuesses; int total; char anothercard,repeat; srand(time(0)); /* while (numberGuesses < 10) { number = 1 + rand() % 10; cout << number << endl; numberGuesses++; } */ for (int n=2; n>0; n--) //outputs random numbers for cards { numberGuesses = 1; number = 1 + rand() % 10; cout <<"card with the value of: "<< number<<","<<endl; } cout<<"how many cards do you have? \n"; //asks how many cards you got cin>>cardnum; cout<<"what is the card value? \n"; //asks what the number of the card was cin>>n1>>n2; //stores card value total=n1+n2; //computes total if(total==21) { cout<<"you win!! \n"; } if(total>=22) { cout<<"busted \n"; } if(total<=20) { cout<<"your total is "<<total<<" \n"; cout<<"would you like another card? <Y or N>:"; cin>>anothercard; if(anothercard=='y' || anothercard=='Y') //if you want another card { for(int nextcard=3; nextcard>0;nextcard++) //enters loop to get card number { numberGuesses = 1; number = 1 + rand() % 10; //makes random number for card cout <<nextcard<<" cards \n"; cout<<" card value of : "<< number<<endl; cout<<"what was the card value? "; if(nextcard==3) { cin>>n3; total=n1+n2+n3; cout<<"total value of cards "<<total<<endl; if(total==21) { cout<<"you win!!! \n"; } if(total>=22) { cout<<"busted \n"; } } if(nextcard==4) { cin>>n4; total=n1+n2+n3+n4; cout<<"total value of cards "<<total<<endl; if(total==21) { cout<<"you win!!! \n"; } if(total>=22) { cout<<"busted \n"; } } if(nextcard==5) { cin>>n5; total=n1+n2+n3+n4+n5; cout<<"total value of cards "<<total<<endl; if(total==21) { cout<<"you win!!! \n"; } if(total>=22) { cout<<"busted \n"; } } if(nextcard==5 || total>=21) { break; //breaks loop after cout<<"you lose \n"; } } } } cout<<"Do you want to repeat? <Y or N> \n"; cin>>repeat; if(repeat=='y' || repeat=='Y') { //breaks loop system("cls"); } if(repeat=='n' || repeat=='N'){ //breaks loop system("cls"); break; } } system("pause"); return 0; } | https://cboard.cprogramming.com/cplusplus-programming/130460-blackjack-program-face-cards-problem.html | CC-MAIN-2017-26 | refinedweb | 450 | 58.52 |
Suppose there are N cars that are going to the same destination along a one lane road. The destination is ‘target’ miles away. Now each car i has a constant speed value speed[i] (in miles per hour), and initial position is position[i] miles towards the target along the road.
A car can never pass another car ahead of it, but it can catch up to it, and drive bumper to bumper at the same speed. Here the distance between these two cars is ignored - they are assumed to have the same position. A car fleet is some non-empty set of cars driving at the same position and same speed. If one car catches up to a car fleet right at the destination point, it will still be considered as one car fleet. So we have to find how many car fleets will arrive at the destination.
So if the target is 12, if position is [10,8,0,5,3] and speed is [2,4,1,1,3] then the output will be 3. This is because the cars starting at 10 and 8 become a fleet, meeting each other at 12. Now the car starting at 0 doesn't catch up to any other car, so it is a fleet by itself. Again the cars starting at 5 and 3 become a fleet, meeting each other at 6.
To solve this, we will follow these steps −
Let us see the following implementation to get better understanding −
#include <bits/stdc++.h> using namespace std; class Solution { public: int carFleet(int t, vector<int>& p, vector<int>& s) { vector < pair <double, double> > v; int n = p.size(); for(int i = 0; i < n; i++){ v.push_back({p[i], s[i]}); } int ret = n; sort(v.begin(), v.end()); stack <double> st; for(int i = 0; i < n; i++){ double temp = (t - v[i].first) / v[i].second; while(!st.empty() && st.top() <= temp){ ret--; st.pop(); } st.push(temp); } return ret; } }; main(){ vector<int> v1 = {10, 8, 0, 5, 3}; vector<int> v2 = {2,4,1,1,3}; Solution ob; cout << (ob.carFleet(12, v1, v2)); }
12 [10,8,0,5,3] [2,4,1,1,3]
3 | https://www.tutorialspoint.com/car-fleet-in-cplusplus | CC-MAIN-2020-50 | refinedweb | 370 | 80.72 |
how to access label variable in def?
when I run these code, it shows a error name lib is not defineded?
how to slove? thanks
import ui
from objc_util import *
def change(sender):
lb.text='new'
@on_main_thread
def main():
v=ui.View()
v.background_color='white'
lb=ui.Label(text='old') btn=ui.Button(title='press',action=change) v.add_subview(lb) v.add_subview(btn) v.present()
if name=='main':
main()
When you post code, can you add in the three backticks before and after, like this
``` import something def main(): ... ```
That way, we can see the proper indenting.
The reason is that you have defined lb inside a function -- main(), not as a global.
Either use globals, or use attributes directly accessible from your UI elements. Sender in your code will be the button--so sender.superview leads to your main view in this case, and sender.superview.lb.text='test' etc let's you store info in your own custom attribute names. Just be sure they are unique names that are not already attributes of ui.View.
When you are trying into to access subviews you can do
sender.superview['label1'].text='test'
if you originally define view names when you add them to your main view.
Or, you can add attributes of the button to point to it's target label,
B=ui.Button(...) L=ui.Label() B.target_label=L ... #Then in your callback sender.target_label.text='...'
@ryubai same kind of solution
import ui from objc_util import * def change(sender): sender.superview['lb'].text='new' @on_main_thread def main(): v=ui.View() v.background_color='white' lb=ui.Label(name='lb', text='old') btn=ui.Button(title='press',action=change) v.add_subview(lb) v.add_subview(btn) v.present() if __name__=='__main__': main()
thanks to you all. sloved!
and sorry for my wrong code format,i'll correct it in my next post.
This post is deleted!last edited by | https://forum.omz-software.com/topic/6257/how-to-access-label-variable-in-def | CC-MAIN-2020-29 | refinedweb | 318 | 61.12 |
[Cutting Edge]
Message-Based Business Logic in Practice
By Dino Esposito | September 2016
It’s common knowledge that to create efficient business software, you need to carefully model it around business events and faithfully mirror business processes.
Some 20 years ago, the flowchart used to be the ideal tool to represent large chunks of an application. Over the years, the size of flowcharts grew so big to become impractical to handle and engineers started looking elsewhere to find an appropriate model to outline the complexity of the business. Comprehensive, all-inclusive Unified Modeling Language (UML) diagrams appeared to be the way to go, starting from the class diagram, which is used to convey the domain model. That seemed to be the essence of Domain-Driven Design (DDD) and it worked for many projects, but also failed for reasons including poor design skills, lack of communication, inadequate range of technologies and, above all, insufficient understanding of the mechanics of the business processes.
An emerging and more modern approach to software engineering is to look at business events and use such events to gather requirements and build a deeper understanding of the mechanics of the system. In other words, instead of artificially creating a new model for the observed business, you aim at mirroring through code the same business processes that stakeholders and analysts describe and doing so using the procedures with which end users are familiar.
In this column, I’ll provide a practical demonstration of this approach by expressing relevant business processes through software entities called “sagas.” In addition, I’ll use ad hoc view models to populate each screen with which users are familiar. Finally, I’ll break up the steps of each application workflow into a combination of messages (commands and events) exchanged by involved parties. You’ll be surprised how easier it becomes expressing even complex pieces of business logic and, more than anything else, how quick and reliable it can be changing the implementation to stay in sync with variable business rules.
I’ll introduce a bunch of new software entities such as sagas, commands, events, buses and application services. To not reinvent the wheel for any new application—and to save a great deal of repetitive code—I’ll also sketch out the characteristics of a framework that can help you implement this kind of event-based architecture.
Alternative Way of Achieving the Same
Put together, the strategies “mirroring the business processes” and “mirroring the users’ procedures” make up for quite a different way of designing software. The overall methodology becomes top-down rather than bottom-up. A viable way could be to start designing the system from the presentation layer, which is primarily driven by the view models acting behind the user-facing screens and wizards. Altogether, users enter information in screens, which forms the view model of the screen and becomes input for any subsequent business actions to be taken against the system.
As users work with the UI, commands are pushed to the application layer—the topmost substrate of the business logic in charge of capturing any user input and returning any desired views. The application layer is seen as the orchestrator of the logic behind all the use cases of the application. Typically, the application layer is implemented as a set of services so a class library populated with methods that are one-to-one with user actions will definitely do the job. In the context of an ASP.NET MVC application, an application layer class can be one-to-one with controller classes and each controller method that triggers a business operation ends up calling into a particular application layer method in a one-to-one manner, as shown in Figure 1.
Figure 1 View Model and Application Layer
Next, I’ll show you how to rewrite a typical business action such as registering an invoice using a message-based approach.
From Presentation and Back
As a reference, I’ll use an excerpt of the sample application that Andrea Saltarello and I originally wrote as companion code for our Microsoft Press architecture book, “Microsoft .NET—Architecting Applications for the Enterprise, 2nd Edition” (2014). In the past year, the code evolved significantly and you can find it at bit.ly/29Nf2aX under the MERP folder.
MERP is an ASP.NET MVC application articulated in two areas. Each area is close to being a bounded context in the jargon of DDD and each can be considered, more generically, a microservice. In ASP.NET MVC, an area is a distinct collection of controllers, models and Razor views. Say, then, you have an InvoiceController class with an Issue method. Realistically, the Issue action is implemented through distinct GET and POST methods, as shown in Figure 2.
The member WorkerServices is the entry point in the application layer and is a reference injected in the controller class through dependency injection:
The structure of the GET method is fairly simple: The application layer retrieves the view model that contains all the data necessary to present the user screen to trigger the “Issue” action. The data the worker service returns is passed as is to the Razor view.
The POST method follows a CQRS logic and executes the command that will issue the invoice, thus altering the state of the system. The command doesn’t necessarily produce any direct feedback for the user, but a redirect occurs to physically separate the command from any successive queries that will actually update the UI.
Breaking up the Necessary Logic
In a classic implementation scenario, the worker service method will collect input data and trigger a sequential hardcoded workflow. At the end of the workflow, the service method will pick up results and package them into a data structure to be returned to upper layers of code.
The workflow is typically a monolithic procedure made of conditional branches, loops and whatever serves to express the required logic. The workflow is likely inspired by a flowchart diagram drawn by domain experts, but at the end of the day it turns out to be a software artifact in which the flow of the work is flattened through the constructs and intricacies of the programming language or ad hoc workflow frameworks. Making even a small change might have significant regression effects. While unit tests exist to control regression, they’re still often perceived as an extra burden, requiring extra costs and effort.
Let’s see what happens, instead, if you orchestrate the business processes using commands.
Pushing Commands to the Bus
In message-based software terms, a command is a packet of data, namely a POCO class with only properties and no methods. In abstract terms, instead, a command can be described as an imperative message delivered to the system to have some tasks performed. Here’s how you can trigger a task by pushing a command to the system:
The view model contains all the input data for the system to process. The model binding layer of ASP.NET MVC already does good mapping work between posted data and command data. It would come as no surprise if you were thinking of using the command class as the target of ASP.NET MVC model binding. In practice, though, model binding takes place in the controller context which is part of the presentation layer, whereas a command is a message that follows any decision made at the application layer level or even later. Admittedly, in the previous code snippet, the command class is close to being a copy of the view model class, but that’s mostly due to the extreme simplicity of the example.
Once you have a command instance ready, the next step is delivering it to the system. In a classic software design, a command has an executor that takes care of it from start to finish. The difference here is that any command can be rejected by the system and, more important, the effect of the command, as well as the list of actual handlers, might be different depending on the state of the system.
A bus is a publish/subscribe mechanism that’s primarily responsible for finding a handler for the command. The effect of the handler can be a single atomic action or, more likely, the command can trigger a saga. A saga is an instance of a known business process that typically comprises multiple commands and notifications of events for other sagas and handlers to which to react.
The bus is a central element in a message-based architecture. At the very minimum, the bus interface is likely to include the following methods:
In addition to the Send method used to publish commands, the bus typically offers methods to register sagas and handlers. Sagas and handlers are similar software components in the sense that both handle commands. A handler, however, starts and finishes in a single run without ever getting back to the bus. A common type of handler is the denormalizer, namely a component that saves a read-only projection of the current state of an aggregate in a full CQRS architecture. A saga can be a multi-step process made of multiple commands and event notifications pushed back to the bus for other handlers and sagas to react.
Configuring the Bus
Configuration of the bus takes place during the application’s startup. At this time, business processes are split in sagas and optionally handlers. Each saga is fully identified by a starter message (command or event) and a list of messages it will handle. Figure 3 is an example.
// Sagas var bus = new SomeBus(); ... bus.RegisterSaga<IncomingInvoiceSaga>(); bus.RegisterSaga<OutgoingInvoiceSaga>(); // Handlers (denormalizers) bus.RegisterHandler<IncomingInvoiceDenormalizer>(); bus.RegisterHandler<InvoiceDenormalizer>(); bus.RegisterHandler<OutgoingInvoiceDenormalizer>(); // Here’s a skeleton for the saga components above. public class IncomingInvoiceSaga : Saga, IAmStartedBy<RegisterIncomingInvoiceCommand> {... } public class OutgoingInvoiceSaga : Saga, IAmStartedBy<IssueInvoiceCommand> { ... }
A saga class typically inherits from a base class that conveniently packages references to assets you’re likely going to use such as the event store, the bus and the aggregate repository. As mentioned, a saga is also characterized by the starter message summarized by the IAmStartedBy<T> interface where T is either an event or a command:
As you can see, the IAmStartedBy<T> interface counts a single method—Handle—which gets an instance of the type T. The body of any Handle method contains the actual code to register the invoice and, more in general, to perform the business task. At the end of the task, there might be the need of notifying other sagas or handlers of what happened. In particular, you might want to raise an event to let others know that the invoice was registered successfully or whether it failed and why. Handlers of a “failed” notification will then be responsible for any compensation or rollback procedures and for generating any sort of feedback to the user.
From Flowcharts to Sagas
There’s an inherent similarity between flowcharts that domain experts may be able to use to outline a business process and how you define sagas in your code. In a way, the saga is the implementation of a flowchart where each block may be rendered through a received event or command to handle. A saga can be a long-running process and can even be suspended and resumed. Think, for example, of a business process that comprises an approval step (such as after doing offline research on a customer). The saga must be started and when the stage of approval is reached it should receive an event and get serialized by the handler. Next, the saga will be resumed when some code sends the command that witnesses the approval. As you can see, having the business logic split in micro steps also makes it easier to extend and alter the logic to stay in sync with the evolving business.
From Theory to Frameworks
So far I assumed the existence of components such as sagas and buses. Who writes the bus and deals with persistence of sagas? And what about the definitions of interfaces and base classes that I mentioned as part of a framework?
If you look at the source code of project MERP from bit.ly/29Nf2aX, you’ll see that it uses classes like Bus, Saga, Command and much more. In the latest version of the code, though, these classes come from a few new NuGet packages, collectively known as the MementoFX. A typical application based on the Memento framework requires the core MementoFX package, which defines base classes and a couple of helper packages for the bus (Memento.Messaging.Postie or Memento.Messaging.Rebus presently) and event persistence. At the moment, the MERP source code uses the Embedded RavenDB engine for persistence and wraps it up in a Memento.Persistence.EmbeddedRavenDB package: This way, the event store will be started as soon as the ASP.NET process is up.
By using the MementoFX packages, you can dramatically reduce the effort to build message-based business logic. Let me hear your thoughts!: Andrea Saltarello
Receive the MSDN Flash e-mail newsletter every other week, with news and information personalized to your interests and areas of focus.
Cutting Edge - Message-Based Business Logic in Practice
Dino, after reading the latest Sep 2016 article i was not sure if you article is pointing to NOT using the flow chart, UML for design? Since you mention both have failed for various reasons am i understanding correctly that both are becoming redundan...
Sep 10, 2016. Read this article in the Septemb...
Sep 1, 2016 | https://msdn.microsoft.com/magazine/mt763230 | CC-MAIN-2019-22 | refinedweb | 2,256 | 50.87 |
c++.idde - Given up on debugging!!!!!!!!
- Andy C <noone noname.com> Aug 06 2007
- Arjan <arjan ask.me> Sep 02 2007
- Andy C <sdf ha.com> Sep 10 2007
- Andy C <no no.com> Sep 11 2007
- Nicholas Jordan <ab5_041 inbox.com> Dec 14 2008
I have given up trying to use any debugger with DMC. Too many changes have rendered all of them either incompatable or unstable (thanks Bill). From now on I will compile in release mode, replace all references to TRACE() with my new function TraceEx() and when I want output I will compile the version by defining _TRACEEX and then run DebugView.exe before I run the program. Not as good as a debugger but at least I can trace the execution, and it does give me the ability to revert to TRACE() if needed. ======================================================= bool m_bTraceExEnabled = true; /** * New Trace function, replaces TRACE. * This gives 2 modes of operation, Off or OutputDebugString(). * This allows the use of trace lines with release code. */ void TraceEx(LPCTSTR lpszFormat, ...) { #ifdef _TRACEEX // Use TraceEx code if (!m_bTraceExEnabled) return; va_list args; va_start(args, lpszFormat); int nBuf; TCHAR szBuffer[1024]; nBuf = _vstprintf(szBuffer, lpszFormat, args); ASSERT(nBuf < _countof(szBuffer)); // if ((afxTraceFlags & traceMultiApp) && (AfxGetApp() != NULL)) // afxDump << AfxGetApp()-m_pszExeName << ": ";
OutputDebugString(szBuffer); va_end(args); #else // Use TRACE #ifdef _DEBUG // all AfxTrace output is controlled by afxTraceEnabled if (!afxTraceEnabled) return; va_list args; va_start(args, lpszFormat); int nBuf; TCHAR szBuffer[1024]; nBuf = _vstprintf(szBuffer, lpszFormat, args); ASSERT(nBuf < 1020); if ((afxTraceFlags & traceMultiApp) && (AfxGetApp() != NULL)) afxDump << AfxGetApp()-m_pszExeName << ": ";
va_end(args); #endif #endif }
Aug 06 2007
Andy C wrote:I have given up trying to use any debugger with DMC. Too many changes have rendered all of them either incompatable or unstable (thanks Bill).
What do you mean? You gave up debugging with the DMC debugger? Or did you mean to give up on the debugging altogether? fwiw it is possible to use the msvc debugger with dmc. Arjan
Sep 02 2007
I don't have the msvc debugger. I tried windbg, the DM debugger, and watcom. There are too many examples where I add a library that runs fine in release, but hangs in debug under a debugger. It is just too difficult to figure out. This does not always happen, and it is not MD's fault, but happens often enough and until I have more time....
Sep 10 2007
Let me clarify my problem, there are a number of cases where I am using libraries or DLL's where the code runs fine, but when run in a debugger will crash the program. The most current problem is with a firewire camera driver from QImaging (the DLL requires .Net so that may be a contributor) that produces a "protection Fault" when loading the driver. Either build version of code works fine outside the debugger but both crash under any debugger (watcom, windbg, or DM) so it is not DM's fault. Putting the call in a try- catch block does not help.
Sep 11 2007
This is common problem, debuggers are clumsy to use and prone to being taken over by system utilities. If I may suggest writing to a file during prototyping. It is still clumsy to remove all the print (test_value) but that can be overcome using boolean debug = true / false early in the file. Then you do if(debug){print to log;}, the compiler will remove these from the code path - see Effective C++ in the Addison-Wesley Professional Series
Dec 14 2008 | http://www.digitalmars.com/d/archives/c++/idde/Given_up_on_debugging_488.html | CC-MAIN-2015-14 | refinedweb | 580 | 65.62 |
- Parsing a string
- MOD operator not working right...
- Any experience with CC-RIDER ?
- How do you plan your programs?
- Problem with classes and Arrays
- Having trouble implementing enumeration.
- comparing two files
- Can Not Open File
- Please Help With Math Error
- Another Dynamic Memory Question
- dectobin
- Pointers and the free store
- I\O Copy &
- Need Help With Objects!!
- Where to store the data?
- Have a really basic easy question..
- Keeps getting error
- Information is not passing to txt
- Charts
- fstream problem (or it's the vector?)
- Dont know why
- Exporting
- Reading a file
- goto statement interpretation in VC 6 and 7
- Directory Contents C++
- process ring
- Standard namespace?
- 'new' keyword
- Linked List Anamoly
- Class Errors (LNK2005)
- Reading file into linked lists
- Inheriting static attributes
- Errors that make no sense...
- contents of a vector object in ddd
- a real beginner in Visual C++.net - Q about dialog problem
- finding mismatches
- fwrite to memory
- where are the constants?
- objects
- Reading in data from a file
- error when tring to run program
- Copying character arrays
- Recursive Rotate Left
- Declaring an variable number of variables
- Microphone input
- cin.get() ?
- Text based game..
- Dynamic data members?
- I am lost on how to read from file and output to file?
- Text Formatting & various questions. | http://cboard.cprogramming.com/sitemap/f-3-p-606.html?s=005eda5b076382f12de6fe32ff0f366a | CC-MAIN-2015-11 | refinedweb | 207 | 59.4 |
If you have trouble fetching GPS data with your MKR GPS Shield it is recommended to review the below advice.
The Arduino MKR GPS Shield works better under the recommended conditions:
Try to place it in an outdoor environment with clear sky. Cloudy weather, buildings, mountains, walls and obstacles decrease significantly GPS shield reception.
Take into account that, in ideal conditions, the GPS can take several minutes before GPS data becomes available. If using indoors, it can take more than 15 minutes.
It is recommended to connect with 8 or more satellites for reliable performance, but it can work with less too.
Make sure the shield has a working cell battery connected. The backup battery allows the GPS Shield to be reprogrammed without loosing the configuration when the shield is disconnected from the MKR board. It also stores the last location data registered and the battery keeps the information safe. Without battery all the data is lost when we restart the GPS shield.
Check that the Arduino_MKRGPS library is included in your sketch:
#include <Arduino_MKRGPS.h>
You can check the library code here:
Additionally you can try your sketch with this alternative library: SparkFun Ublox Arduino Library | https://support.arduino.cc/hc/en-us/articles/360018628960-The-MKR-GPS-shield-does-not-fetch-any-data | CC-MAIN-2021-39 | refinedweb | 197 | 54.93 |
If you have read Jason Zander’s post earlier today, you know that Visual Studio 2012 has been released to the web! Check out the MSDN Subscriber Download Page and the Visual Studio product website. This release has brought a huge amount of new value for C++ developers. Here are the highlights:
C++11 Standards Support
Language Support
- Range-based for loops. You can write more robust loops that work with arrays, STL containers, and Windows Runtime collections in the form for ( for-range-declaration : expression ).
-.
Compiler and Linker
We’ve made major investments to help developers make the most of their target hardware. We are introducing the auto-vectorizer to take advantage of SSE2 instructions to make your loops go faster by doing 4 number operations at time, auto-parallelizer to automatically spread your work on many CPUs, and C++ AMP (C++ Accelerated Massive Parallelism) to leverage the power of GPU for data parallel algorithms. Note that C++ AMP also comes with a first-class debugging and profiling support.
Libraries (PPL)
We continue to enhance the breadth and depth of Parallel Patterns Libraries (PPL). In addition to major investments in async programming, we’ve added more to algorithms and concurrent collections. We are also working very hard in bringing most of these concepts into the next revision of the C++ standard.
Debugging
In addition to the Parallel Tasks window and Parallel Stacks window, Visual Studio 2012 offers a new Parallel Watch window so that you can examine the values of an expression across all threads and processes, and perform sorting and filtering on the results.
Static code analysis helps identify runtime issues at compile time when they are much cheaper to fix. Code analysis for C++ feature in Visual Studio 2012 has been enhanced aiming to provide improved user experiences as well as analysis capabilities. In this new version, code analysis has been extended to support 64 bit apps, ship with additional concurrency rules to detect issues like race conditions, and offer the ability for creating customized rule sets. This feature is now available in all Visual Studio editions allowing every developer to make the best use of it.
Architecture Dependency Graphs
Generate dependency graphs from source code to better understand the architecture of your existing apps or code written by others. In Visual Studio 2012 you can generate dependency graphs by binaries, classes, namespaces, and include files for C++ apps. Also, use Architecture Explorer tool window to explore the assets and structure of your solution by looking at solution view or class view.
Example: Dependency Graph by Binary
Example: Dependency Graph by Include Files
Use Architecture Explorer to browse assets in the solution
Unit Test Framework for C++
Visual Studio 2012 ships with a new unit test framework for native C++. You can write light-weight unit tests for your C++ applications to quickly verify application behaviors. Use the new Test Explorer tool window to discover and manage your tests along with test results. This feature is now available in all Visual Studio editions.
Code Coverage
Code coverage has been updated to dynamically instrument binaries at runtime. This lowers the configuration overhead, provides better performance and enables a smoother user experience. Code coverage feature has also been integrated well with the new C++ unit test framework in Visual Studio 2012 allowing you to collect code-coverage data from unit tests for C++ app by one single click within Visual Studio IDE.
We’ve announced two things that will arrive in a few months:
- An update that will enable targeting Windows XP
- Availability of an Express SKU for Windows Desktop that includes C++ toolset
C++ for Windows Phone 8
As soon as the Windows Phone 8 SDK is made available, C++ developers will be able to target Windows Phone. Stay Tuned!
Example: Windows 8 Marble Maze Sample targeting Windows Phone 8
As always, we love hearing from you. Thanks for keeping us honest and kudos to those who have influenced our product design for the better!
On behalf of the VC++ team,
Rahul V.Patil
Lead Program Manager, C++
Join the conversationAdd Comment
Thanks to all involved for all the native code love in Visual Studio 2012. Looking forward to Microsoft's further adventures in native code… Some kick ***, on the metal, C++ libraries would be good now.
Awesome 🙂
So, any indication when VS 2012 will hit Dreamspark?
Tom,
Thanks! I take it you've read Herb's post on libraries: herbsutter.com/…/facebook-folly-oss-c-libraries
Do you have any favorite domains of libraries that you'd love to see?
Dudester,
Check out Neil Carter's response on Soma's blog post today. blogs.msdn.com/…/visual-studio-2012-and-net-4-5-now-available.aspx
If you have further questions on that, feel free to leave a note on Soma's blog.
—-copy-paste—–
Any hint of when the full c++11 support (variadic templates, initializer lists, etc) update will be released?
Sorry John – nothing that we can share yet.
Hi Rahul,
Well on the native libraries front (and take it as read that all of these should play nicely with STL, i.e. use std::basic_string and support contains and algorithms): XML parsing, file-system, web-stack (get Casablanca into supported mode), compression would be a good start.
Viz updates, Variadics and List Initialisation would be nice, but and I know you're sick of hearing this… Windows XP binary generation (i.e. the option to target either the Win7 or Win8 SDK) without having to bring the hammer of side-by-side installing VS2010. We have far too many clients in Financial Services who are going to stick with XP until the bitter end. Desperately need to be able to use out-of-the-box VS2012 to target Windows XP and create mixed-mode apps that combine C++ 11, C++/CLI and .NET 4.
Kind regards,
Tom
I'm really happy to be getting back onto RTM tools, despite how relatively stable the RC was. Anything particularly notable changed since the RC? I expect it's a pretty hard feature-freeze at that point.
Hi, Are there any improvements for Microsoft Foundation Classes in Visual Studio 2012?
Thanks for the details on libraries Tom.
Re: Windows XP. We hear you:). The plan still is targeting a late-Fall release as per the previous post: blogs.msdn.com/…/10320645.aspx
Hi Simon,
Almost all of the work post-RC was related to fit-and-finish, reliability and performance work – and mostly those reported by developers.
Hi Unique,
Re: MFC:
We've fixed a large number of connect issues/suggestions around MFC. See blogs.msdn.com/…/10320171.aspx However, no large chunk feature items this release.
Congratulations! I also want to say that I'm quite impressed at how MS listened to the community regarding XP support and native C++ in the Express SKU.
I think the decisions to support these things maybe came a bit late, but I really thought that XP support was a dead duck, so I'm especially impressed with that turn around. Kudos.
Thanks MikeB!
Simon Buchan: My last major change was to make <atomic>'s implementation header-only between RC and RTM, for increased performance..…/compatibility.
R J,
I just tried this on a couple of trivial projects. a) create a project in VS 2010. b) open in VS 2012 c) dont update. On Win 7 x64 ultimate. Intellisense seems to be working fine.
If you are seeing this issue on the RTM release build, please file a bug on the connect site: connect.microsoft.com/VisualStudio . Be sure to include the version numbers ("Help – about"), and as much information as possible.
Rahul V. Patil,
Yes, I see this issue on RTM release build. I also have no problem with trivial projects. Our solution is rather complicated and we are using lots of property pages. I think VC11 Intellisense fail in certain configurations like our solution and I hope that I can reproduce it in a sample solution.
I'm going to file a bug on connect asap. By the way we are really disappointed because we waited more than a year to get rid of that slow editor of VC10 + VAX and now here we are facing a new problem.
Reza,
That experience is disappointing indeed.
Thanks for filing the bug. We'll triage ASAP.
Auto-Completing IntelliSence in c++ sweet just need c++ express for 7 or below.
When will you guys add more support for C++11 standard? gcc knocks the pesky out of VC++ when it comes to supporting standards | https://blogs.msdn.microsoft.com/vcblog/2012/08/14/visual-c-in-visual-studio-2012/ | CC-MAIN-2016-50 | refinedweb | 1,434 | 62.38 |
0
Hi there, I am trying to find the max and min value in a an array of size 100, but the input is stopped when there is a 0 entered, and it too gets added to the array.
The code below works good, EXCEPT it's min value is always -2, for some reason but the max value is 100% right. Can somebody please tell me the answer, this is due tomorrow and I have been working on this for 2 days now.
#include <stdio.h> #include <stdlib.h> #define N 100 int main(void){ int numbers[N]; int i = 0; int j; int input; int maxvalue =1; int minvalue = 1; printf("Enter the next array element>"); scanf("%d", &input); while (input != 0){ ++i; numbers[i] = input; printf("Enter the next array element, while loop>"); scanf("%d", &input); if (input == 0){ ++i; numbers[i] = 0; for (j=0;j<i;j++){ if (numbers[j] > maxvalue){ maxvalue = numbers[j]; } else if(numbers[j] < minvalue){ minvalue = numbers[j]; } } } } printf("%d\t", maxvalue); printf("%d\t", minvalue); printf("%d\n", numbers[i-2]); }
Here is the output I am talking about:
Enter the next array elernnt>2
Enter the next array elenent while loop>3
Enter the next array elenent. while loop>0
3 —2 2
Press [Enter] to close the terminal
Edited by asyk: n/a | https://www.daniweb.com/programming/software-development/threads/314117/how-to-find-the-max-min-in-an-array-i-am-99-close-to-finishing | CC-MAIN-2017-09 | refinedweb | 225 | 60.38 |
Brett Cannon wrote: > On 7/29/05, Robert Brewer <fumanchu at amor.org> wrote: > >>Brett Cannon wrote: >> >>>New Hierarchy >>>============= >>> >>>Raisable (new; rename BaseException?) >>>+-- CriticalException (new) >>> +-- KeyboardInterrupt >>> +-- MemoryError >>> +-- SystemExit >>> +-- SystemError (subclass SystemExit?) >> >>I'd recommend not subclassing SystemExit--there are too many programs >>out there which expect the argument (e.g. sys.exit(3)) to mean something >>specific, but that expectation doesn't apply at all to SystemError. >> > > > Don't forget this is Python 3.0; if it makes more sense we can break code. True, but we should still have a decent reason to break stuff. One other thing to keep in mind is that it is easy to handle multiple exception classes with a single except clause - what is hard to fix in user code is inappropriate inheritance between exceptions (cases where you want to 'catch most instances of this class, but not instances of this particular subclass'). >>>+-- Exception (replaces StandardError) >>>... >>> +-- ControlFlowException (new) >> >>I'd definitely appreciate ControlFlowException--there are a number of >>exceptions in CherryPy which should subclass from that. Um, CherryPy >>3.0, that is. ;) >> > > > =) Well, assuming Guido thinks this is enough of a possible use case. Or if he can be persuaded that ControlFlowException should exist as a peer of Exception and CriticalException. . . >>> +-- TypeError >>> +-- AttributeError (subclassing new) >> >>"Since most attribute access errors can be attributed to an object not >>being the type that one expects, it makes sense for AttributeError to >>be considered a type error." >> >>Very hmmm. I would have thought it would be a LookupError instead, only >>because I favor the duck-typing parts of Python. Making AttributeError >>subclass from TypeError leans toward stronger typing models a bit too >>much, IMO. >> > > This idea has been brought up before on several separate occasions and > this subclassing was what was suggested. > > It seems a decision needs to be made as to whether the lack of an > attribute is a failure of using the wrong type of object, just a > failure to find something in an object, or a failure to find a name in > a namespace. I lean towards the first one, you like the second, and > Guido seems to like the third. $20 says Guido's opinion in the end > will matter more than ours. =) I think this is a context thing - whether or not an AttributeError is a TypeError or LookupError depends on the situation. In ducktyping, attributes are used to determine if the object is of the correct type. In this case, an AttributeError indicates a TypeError. However, it isn't that uncommon to use an instance's namespace like a dictionary to avoid typing lots of square brackets and quotes (e.g. many configuration handling modules work this way). In this case, an AttributeError indicates a LookupError. I think it's similar to the common need to convert from KeyError to AttributeError in __getattr__ methods - the extra attributes are looked up in some other container, and the resultant KeyError needs to be converted to an AttributeError by the __getattr__ method. That common use case still doesn't mean KeyError should subclass AttributeError. On the other hand, an AttributeError is _always_ a failure to find a name in a namespace (an instance namespace, rather than locals or globals), so having it inherit from NameError is a reasonable idea. Cheers, Nick. -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia --------------------------------------------------------------- | https://mail.python.org/pipermail/python-dev/2005-July/055027.html | CC-MAIN-2016-44 | refinedweb | 555 | 55.03 |
Ticket #3866 (closed Bugs: fixed)
detail/container_fwd.hpp lacks support for the parallel mode of GCC's STL
Description
GCC supports a parallel mode activated by _GLIBCXX_PARALLEL.
If you include <boost/bimap> under this parallel mode, you get compilation errors.
detail/container_fwd.hpp needs to be updated to support it, in a similar way as the debug mode. The following patch appears to fix it :
Index: detail/container_fwd.hpp =================================================================== --- detail/container_fwd.hpp (révision 59275) +++ detail/container_fwd.hpp (copie de travail) @@ -13,7 +13,7 @@
#include <boost/config.hpp> #include <boost/detail/workaround.hpp>
(I have lost my SVN access rights so I can't commit it myself)
Attachments
Change History
comment:1 Changed 6 years ago by danieljames
- Owner set to danieljames
- Status changed from new to assigned
- Milestone changed from Boost 1.42.0 to Boost 1.43.0
comment:2 Changed 6 years ago by anonymous
Another comment about this file, while at it.
What this file does is very fragile. It has the potential to break with any unforeseen configuration. Therefore, I would suggest to add a configuration macro for the user to be able to turn it off easily. If I understood it correctly, it is only a compile-time reduction feature, certainly not worth some big trouble.
The way we have to workaround this problem currently is to ship a fixed copy of this file, with some appropriate Boost version detection. This is not really nice.
comment:3 Changed 6 years ago by danieljames
- Status changed from assigned to closed
- Resolution set to fixed | https://svn.boost.org/trac/boost/ticket/3866 | CC-MAIN-2015-48 | refinedweb | 259 | 58.48 |
Created on 2019-08-28 20:33 by blhsing, last changed 2020-01-29 16:25 by cjw296. This issue is now closed.
As reported on StackOverflow:
The following code would output: [call(), call().foo(), call().foo().__getitem__('bar')]
from unittest.mock import MagicMock, call
mm = MagicMock()
mm().foo()['bar']
print(mm.mock_calls)
but trying to use that list with mm.assert_has_calls([call(), call().foo(), call().foo().__getitem__('bar')]) would result in:
TypeError: tuple indices must be integers or slices, not str
If we go ahead with this then we should also support other dunder methods of tuple like __setitem__ and so on.
Agreed. I've submitted a new commit with the call chaining behavior now generalized for all dunder methods by delegating the resolution of all attributes not directly in the _Call object's __dict__ keys to the getattr method.
Correction. I've now done this by delegating the resolution of attributes belonging to the tuple class to _Call.__getattr__ instead. Passed all build tests.
New changeset 72c359912d36705a94fca8b63d80451905a14ae4 by Michael Foord (blhsing) in branch 'master':
bpo-37972: unittest.mock._Call now passes on __getitem__ to the __getattr__ chaining so that call() can be subscriptable (GH-15565)
New changeset db0d8a5b2c803d30d9df436e00b6627ec8e09a13 by Michael Foord (Miss Islington (bot)) in branch '3.8':
bpo-37972: unittest.mock._Call now passes on __getitem__ to the __getattr__ chaining so that call() can be subscriptable (GH-15565) (GH-15965)
Closing as fixed since PRs were merged. Thanks Ben.
New changeset db5e86adbce12350c26e7ffc2c6673369971a2dc by Chris Withers in branch 'master':
Get mock coverage back to 100% (GH-18228) | https://bugs.python.org/issue37972 | CC-MAIN-2020-34 | refinedweb | 259 | 64.81 |
Unoffical Starbucks API.
Project description
Unofficial Starbucks API.
This API is written in Python.
Only supports for Starbucks Korea.
Installation
You can install Starbucks with pip
$ pip install starbucks
Features
1. Login
You can login to Starbucks like:
from starbucks import Starbucks starbucks = Starbucks() starbucks.login('username', 'password')
2. Get My Cards
You can get your cards like:
cards = starbucks.get_cards()
3. Get My Card Information
You can get your card information like:
# You should know the registration number of your card. # It is in the source code of Starbucks web page. card = starbucks.get_card_info('0000000')
or using CLI:
$ starbucks-card --id {username} --password {password} --reg-number {card reg number}
4. Get My Stars Count
You can get your stars count like:
starbucks.get_stars_count()
or using CLI:
$ starbucks-star --id {username} --password {password}
6. Get My Coupons
You can get the list of your coupons like:
starbucks.get_coupons()
7. Logout
If you want to logout, just:
starbucks.logout()
Known Issues
- Should I have to check if I logged in successfully like this?
To Do
- Card usage histories
- More error checks
- and so on.
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. | https://pypi.org/project/Starbucks/ | CC-MAIN-2021-17 | refinedweb | 212 | 69.28 |
Introduction
A.
MessageBox Class
The MessageBox class in
WPF represents a modal message box dialog, which is defined in the
System.Windows namespace. The Show static method of the MessageBox is the only
method that is used to display a message box. The Show method returns a
MessageBoxResult enumeration that has values - None, OK, Cancel, Yes, and No.
We can use MessageBoxResult to find out what button was clicked on a MessageBox
and take an appropriate action.
Show method has 13
overloaded methods. Here are the code samples and their results of these 13
overloaded methods.
Simple MessageBox
A simple MessageBox
shows a message and have only OK button. Clicking on OK button closes the
MessageBox. The following line of code uses Show method to display a message
box with a simple message.
MessageBoxResult
result = MessageBox.Show("Hello MessageBox");
The MessageBox generated
by the above line of code is a modal dialog with an OK button on it and looks
like Figure 2.
Figure 2
MessageBox with Title
A MessageBox can have a
title. The first parameter of the Show method is a message string and second
parameter is title string of the dialog. The following code snippet creates a
MessageBox with a message and a title.
MessageBoxResult
result = MessageBox.Show("Hello MessageBox", "Confirmation");
The output looks like
Figure 3.
Figure 3
MessageBox with Owner
A MessageBox does not
have an owner by default but you can specify an owner by setting the following
code. In this code, the first parameter is the current Window.
MessageBoxResult
result = MessageBox.Show(this, "Hello MessageBox");
MessageBoxButton Enumeration
The MessageBoxButton
enumeration is responsible for showing various buttons on the dialog. It has
following values:
MessageBox with Title, Yes and No
Buttons
A MessageBox can be used
to ask user a question and have Yes and No buttons. Based on the user selection (Yes or No), you
can execute the appropriate code. The third parameter of the Show method is a
MessageBoxButton enumeration.
The following code
snippet creates a MessageBox with a message, a title, and two Yes and No
buttons.
if (MessageBox.Show("Do
you want to close this window?",
"Confirmation",
MessageBoxButton.YesNo) == MessageBoxResult.Yes)
{
// Close the
window
}
else
// Do not close
the window
The output looks like
Figure 4.
Figure 4
MessageBox with Title, Yes, No and Cancel
Buttons
The following code
snippet creates a MessageBox with a message, a title, and two Yes, No, and
Cancel buttons.
MessageBoxResult
result = MessageBox.Show("Do you want to close this window?",
"Confirmation",
MessageBoxButton.YesNoCancel);
if
(result == MessageBoxResult.Yes)
// Yes code here
else if (result == MessageBoxResult.No)
// No code here
// Cancel code
here
The output looks like
Figure 5.
Figure 5
MessageBox with Title, Icon, Yes and No
Buttons
A MessageBox also allows
you to place an icon that represents the message and comes with some built in
icons. The MessageBoxImage enumeration represents an icon. Here is a list of
MessageBoxImage enumeration values that represent the relative icons.
The following code
snippet creates a MessageBox with a message, a title, and two Yes and No
buttons and an icon.
string
message = "Are you sure?";
string
caption = "Confirmation";
MessageBoxButton
buttons = MessageBoxButton.YesNo;
MessageBoxImage
icon = MessageBoxImage.Question;
if (MessageBox.Show(message, caption, buttons, icon)
== MessageBoxResult.OK)
// OK code here
// Cancel code
here
The output looks like
Figure 6.
Figure 6
MessageBox with Title, OK, and Cancel
Buttons
By simply using MessageBoxButton.YesNo
in the Show method creates a MessageBox with OK and Cancel buttons. The
following code snippet creates a MessageBox with a message, a title, and two OK
and Cancel buttons.
The output looks like
Figure 7.
Figure 7
MessageBox with Title, Icon, OK, and Cancel
Buttons
The following code
snippet creates a MessageBox with a message, a title, icon, and two OK and Cancel
buttons.
MessageBoxResult
result = MessageBox.Show(this, "If you close
this window, all data will be lost.",
"Confirmation",
MessageBoxButton.OKCancel, MessageBoxImage.Warning);
if
(result == MessageBoxResult.OK)
else
The output looks like
Figure 8.
Figure 8
Mixing it
These are not only options.
You can mix any of these options to show whatever kind of MessageBox you want to
display.
Customizing MessageBox
Even though it looks like
WPF MessageBox is a part of System.Windows namespace, it is just a wrapper of Win32
API and this is why you can't use it at design-time in XAML or customize it. To
customize a MessageBox, you will be better off creating your own Custom Control. See my articles on How to build Custom Controls in WPF by searching this website for custom control in WPF.
Summary
MessageBox in WPF
Styles in WPF
I've implemented a WPF MessageBox that has the exact same interface has the normal one and is also fully customizable via standard WPF control templates:
Features
•The class WPFMessageBox has the exact same interface as the current WPF MessageBox class.
•Implemented as a custom control, thus fully customizable via standard WPF control templates.
•Has a default control template which looks like the standard MessageBox.
•Supports all the common types of message boxes: Error, Warning, Question and Information.
•Has the same “Beep” sounds as when opening a standard MessageBox.
•Supports the same behavior when pressing the Escape button as the standard MessageBox.
•Provides the same system menu as the standard MessageBox, including disabling the Close button when the message box is in Yes-No mode.
•Handles right-aligned and right-to-left operating systems, same as the standard MessageBox.
•Provides support for setting the owner window as a WinForms Form control.
this is nice one..
It will better if Messagebox having foreground as well as background color.
thanks.
I recently needed an message box that would not block the calling thread. I used a delegate and BeginInvoke to show the message box asynchronously. I also was able to use the return from BeginInvoke, an IAsyncResult object, to prevent duplicate message boxes until the first one was displayed. Check out code and an example VS project here:
Short and sweet, thanks man :)-----------------------------Danny, Los Angeles Locksmith | http://www.c-sharpcorner.com/UploadFile/mahesh/messagebox-in-wpf/ | crawl-003 | refinedweb | 1,003 | 57.87 |
A mutex (“mutual exclusion”) is a synchronization device used to ensure exclusive access to a system resource. In a limited sense, a mutex is similar to (although costlier than) the lock keyword in that it can be used to protect state variables that are under contention by multiple threads.
But the mutex has the ability to be used not only across threads, but across processes (hence the additional cost over a mere lock).
The Canonical Mutex Example
The oft-cited mutex example is that of ensuring that an application be run just once. Here’s the code to do that:
static void Main(string[] args) { Mutex mutex = new Mutex(false, "My killer app"); if (mutex.WaitOne(3000)) { Console.WriteLine("This application is already running."); return; } try { RunTheApp(); } finally { mutex.ReleaseMutex(); } }
In this example, we create a named mutex that becomes associated with an operating-system object of the name “My killer app”. Since the name is system-wide, it is important to give it a globally unique name. We also specified false in the constructor to indicate that we don’t need to initially own the mutex.
We then wait to acquire the mutex. If we get it within 3 seconds, we hold onto it and run the app. If we don’t get it within 3 seconds we give the user a message that somebody else is running the app, and then exit out.
Notice that after acquiring the mutex we purposely don’t release it until the application is finished. This prevents anyone else on the current machine from getting access to our named mutex (including another instance of our app).
The mutex is ultimately released when the app terminates. To guarantee this, it’s best to put it in a try/finally block.
This is a nice use for a mutex, but mutexes have other uses, even within a single running process.
Protecting the Neutral Zone
The Neutral Zone was a fictitious buffer zone in Star Trek that separated the Federation from the likes of the Romulans and Klingons. If a ship from either side entered the Neutral Zone, it was usually considered an act of war. But as long as both sides did not enter at the same time, things could typically be ironed out between both parties to avoid catastrophe.
Assume that we’re writing a Star Trek simulation game in C#. Let’s protect our Neutral Zone with a mutex.
We will name our mutex “The Neutral Zone”. As long as the code instantiates a mutex with this name and waits on it, we will properly protect the Neutral Zone and avoid interstellar war.
Our main code might look something like this:
public static void Main() { FederationStarship enterprise = new FederationStarship(); RomulanWarbird warbird = new RomulanWarbird(); Thread thread1 = new Thread(enterprise.Explore); Thread thread2 = new Thread(warbird.Conquer); thread1.Start(); thread2.Start(); thread1.Join(); thread2.Join(); Console.WriteLine("Press a key to exit..."); Console.ReadLine(); }
We start by creating an instance of the FederationStarship class, as well as an instance of the RomulanWarbird class. Next we spin up a thread for each, provide an entry point, start our threads, and wait for our ships to finish their business of exploration or conquering.
The two classes look like this:
public class FederationStarship { public void Explore() { for (int i = 0; i < 2; i++) EnterNeutralZone(); } public void EnterNeutralZone() { Mutex _mutex = new Mutex(false, "The Neutral Zone"); Console.WriteLine("{0,2} Enterprise waiting to enter the Neutral Zone", DateTime.Now.ToString("h:mm:ss.fff")); _mutex.WaitOne(); Console.WriteLine("{0,2} Enterprise entering the Neutral Zone", DateTime.Now.ToString("h:mm:ss.fff")); // Simulate exploring the Neutral Zone Thread.Sleep(300); Console.WriteLine("{0,2} Enterprise exiting the Neutral Zone", DateTime.Now.ToString("h:mm:ss.fff")); _mutex.ReleaseMutex(); } } public class RomulanWarbird { public void Conquer() { for (int i = 0; i < 2; i++) EnterNeutralZone(); } public void EnterNeutralZone() { Mutex _mutex = new Mutex(false, "The Neutral Zone"); Console.WriteLine("{0,2} Warbird waiting to enter the Neutral Zone", DateTime.Now.ToString("h:mm:ss.fff")); _mutex.WaitOne(); Console.WriteLine("{0,2} Warbird entering the Neutral Zone", DateTime.Now.ToString("h:mm:ss.fff")); // Simulate some mischief in the Neutral Zone Thread.Sleep(500); Console.WriteLine("{0,2} Warbird exiting the Neutral Zone", DateTime.Now.ToString("h:mm:ss.fff")); _mutex.ReleaseMutex(); } }
Running the program produces the following output:
Notice that we have successfully prevented both ships from entering the Neutral Zone at the same time. If a ship tries to enter and another ship is already inside, it will wait until it leaves. This is because of the mutex and our consistent usage of it in both the FederationStarship and RomulanWarbird classes.
If one of the ships decided not to use it, then they could have entered the Neutral Zone without regard to the other ship’s presence. The Romulans might be able to pull this off with their cloaking device, but for the sake of argument let’s just say that today they are following protocol and decide to use our mutex.
Design Thoughts
As I mentioned earlier, synchronizing with a mutex is a bit costlier than synchronizing with a lock (on the order of milliseconds as opposed to nanoseconds). So why use it within a single application?
We certainly wouldn’t use a mutex to simply protect an instance field from multiple threads. A lock would do fine and would be very fast.
I suppose we could have created a static class that encapsulated a public synchronization object, and both ship classes could have locked around that. Or we could have shared a local mutex (i.e. non-named) between the classes in some fashion and not have resorted to the heavier named mutex (which associates the mutex with an operating system object of that name).
These are definitely some avenues to consider. The advantage of the named mutex is that it is easily referenced by classes that know nothing about each other. You simply instantiate a new mutex of that same name, and don’t have to worry about sharing an existing mutex instance between decoupled classes.
And if you need to protect a resource across processes, the named mutex is the way to go.
Hope this was useful reading, and help keep the Neutral Zone safe! 🙂 | https://larryparkerdotnet.wordpress.com/2009/09/ | CC-MAIN-2018-30 | refinedweb | 1,047 | 54.63 |
C# Corner
Eric Vogel covers how to create an Azure Mobile Services-backed Windows Store application.
In the past month, Windows Azure has been updated with some new services to widen its reach. Azure Mobile Services is a particularly interesting new service in the Azure ecosystem. When you create an Azure Mobile Service, a Web service is created that may connect to one or many Azure Storage tables. This service is exposed through a REST endpoint that may easily be called by a mobile or smart client application. Today I'll cover how to create an Azure Mobile Service and connect to it via a custom Windows 8 Store Application.
To get started, you'll need a Windows Azure account. A free trial account will do. Once you're set up, make your way here. You should now see a mobile services option on the left-hand side, as shown in Figure 1.
Click on the Create icon, and you'll be prompted to enter a name for your new mobile service, as shown in Figure 2.
Next you'll be prompted to enter your database settings for the mobile service. You'll have the option of creating a new database or using an existing one. As you can see in Figure 3, I've chosen to create a new database.
Within about 30 seconds, your new mobile service should be created. The result should look like Figure 4.
Select the existing Windows 8 application option, as in Figure 5, then copy the code for creating a MobileServiceClient. This code will be used within the demo application to connect to the mobile service.
Now that the Web service is set up, it's time to put it to good use. To demonstrate the full capabilities, I'll go over a simple contacts data entry application that showcases CRUD (Create-Read-Update-Delete) with the service.
The first thing is to add a ContactItem table in Azure table storage (Figure 6), to store contacts for the application. First click on the Data tab and then click on the Create icon.
You'll then be prompted to enter a name for the table. Name the table ContactItem and leave the default CRUD permissions, as shown in Figure 7.
Now that the Web service is fully set up, it's time to put it to good use through a new Windows Store application. Create a new Windows Store App in Visual Studio 2012. Next, add a reference to Microsoft.WindowsAzure.MobileServices to the project, as seen in Figure 8.
public static MobileServiceClient MobileService = new MobileServiceClient(
"Service endpoint URL goes here",
"serive password goes here");
Your App class should now resemble Listing 1.
Now it's time to add the ContactItem data transfer object class that will be used to transfer contacts to and from the Azure Mobile Service. A ContactItem will contain an Id, first name, last name and email properties. The Id field will be set by the Azure Mobile Service.
namespace VSMMobileServiceClient
{
public class ContactItem
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
public override string ToString()
{
return string.Format("{0}, {1}", LastName, FirstName);
}
}
}
Now it's time to bring the application alive. Open up MainPage.xaml.cs. First, add a using statement for System.Threading.Taks. Next, add three member variables that store the list of contacts, the current contact, and a flag for indicating an item is being updated.
List<ContactItem> _contacts;
ContactItem _item;
bool _update = false;
In the MainPage constructor, I set up binding for the editable contact item and initialized the rest of the form via the ClearItems method.
public MainPage()
{
this.InitializeComponent();
ClearItem();
}
To initialize the form, a new contact item is created and bound to the form. Then the delete button is disabled and the status is cleared.
private async void ClearItem()
{
_item = new ContactItem();
Contact.DataContext = _item;
Delete.IsEnabled = false;
_update = false;
await UpdateStatus(string.Empty);
}
The UpdateStatus method simply clears the Status TextBlock on the form and remains in place for a quarter of a second.
private async Task UpdateStatus(string status)
{
Status.Text = status;
await Task.Delay(250);
}
In the OnNavigatedTo event handler, I retrieve the existing contacts via the GetContacts method asynchronously, via the MobileServiceClient instance on the App class. Then the retrieved contacts are bound to the Contacts ListBox on the form.
protected async override void OnNavigatedTo(NavigationEventArgs e)
{
await GetContacts();
}
private async Task GetContacts()
{
_contacts = await App.MobileService.GetTable<ContactItem>().ToListAsync();
Contacts.ItemsSource = _contacts;
}
Next, the click button handler is set up to either insert or update the contact item loaded in the form. Once the item is saved, the Status label is updated to display "Saved" to the user, and the list of contacts is updated. Finally, the form is cleared to allow a fresh item to be added.
private async void Save_Click(object sender, RoutedEventArgs e)
{
if (_update)
await App.MobileService.GetTable<ContactItem>().UpdateAsync(_item);
else
await App.MobileService.GetTable<ContactItem>().InsertAsync(_item);
await UpdateStatus("Saved");
await GetContacts();
ClearItem();
}
In the Contacts LisBox SelectionChanged event, I get the selected item and then bind the item to the form. Then the update flag is turned on and the Delete button is enabled.
Lastly, the Delete Click event handler is added. When the Delete button is clicked, the loaded item in the form is deleted via the MobileService instance. Then the Status label is updated to display "Deleted" to the user. Finally, the form is cleared and then the Contact list is rehydrated via the GetContacts method. See Listing 3 for the full MainPage class source code. The completed application is shown in Figure 9.
Congratulations -- you've just created your first Azure Mobile Service client application! | https://visualstudiomagazine.com/articles/2012/10/10/azure-mobile-services.aspx | CC-MAIN-2019-43 | refinedweb | 960 | 65.62 |
Bummer! This is just a preview. You need to be signed in with a Pro account to view the entire video.
Using the Built-in Observer and Observable Classes10:39 with Craig Dennis
In the java.util package there is a class named Observable. It's been there a while, let's dust it off and use it to make our Restaurant Simulator hummmm.
- 0:00
So in order to make all the different configuration changes to our restaurant
- 0:03
simulator throughout our day,
- 0:05
it's clear that we're going to need to make things more extensible.
- 0:09
Different clients are gonna have different needs, and
- 0:11
we need to be able to configure things for each of our clients specifically.
- 0:15
Observer to the rescue.
- 0:16
So I've got some great news for you.
- 0:18
The Observer pattern has been included in the JDK pretty much from the beginning.
- 0:23
It's fairly well documented, and it's pretty straightforward to implement.
- 0:26
There are some complaints about the way that it's implemented,
- 0:29
and we'll explore those after we get our hands dirty with it a little bit.
- 0:32
Now, a quick word of warning here.
- 0:34
There's been a somewhat recent trend in what is known as reactive extensions.
- 0:38
RxJava is the Java flavored version.
- 0:41
Reactive extensions make use of the Observer pattern combined
- 0:44
with the the Iterator pattern to deal with strands of data and events.
- 0:47
It's everywhere these days.
- 0:49
But I wanted to warn you that there's a bit of a namespace collision
- 0:52
around a term that we are about ready to use.
- 0:55
That term is observable.
- 0:57
The observable from the reactive extensions world
- 1:00
is different than what we're going to be exploring.
- 1:02
- 1:04
just know that they are two different things.
- 1:07
Ready?
- 1:07
Let's dive in.
- 1:10
All right, so in java.util there is a class named Observable, and
- 1:15
this is what we're going to use to mark our subjects.
- 1:17
So in our case, the staff and
- 1:19
the dashboard are observing changes to the table.
- 1:22
So the table is the subject.
- 1:25
So let's go ahead and let's pop open the table.
- 1:29
And what we'll do is we'll have it extend that Observable class.
- 1:32
So we'll say extends Observable.
- 1:37
Now we have all of the methods available to us from Observable.
- 1:40
Now, basically, we have now exposed the ability to have Observer subscribe and
- 1:46
have added the ability to notify them when things change.
- 1:49
While we're in here, why don't we set up what it is that we want to broadcast?
- 1:54
So we're interested when the status changes, right.
- 1:57
So let's go to that status setter here.
- 2:00
We'll come in here, so status newStatus, and
- 2:04
what we'll do is we'll notify the observers.
- 2:08
So let's say notify, and see, it's now part of this, Observers.
- 2:12
Now this notifyObservers takes an optional argument, which can be anything at all.
- 2:17
Now, the parameter is used to narrow the focus of
- 2:20
what it was specifically that was changed.
- 2:23
So in our case, it probably makes sense for us to push the status through.
- 2:27
You don't have to do this.
- 2:28
This is a totally fine call.
- 2:29
Let's do it anyway, though.
- 2:30
So let's say, we'll pass through the new status that got set.
- 2:34
Now, there is one thing that we need to remember to do when we're
- 2:37
using the Observable class.
- 2:39
And pay close attention here, because this will for sure bite you.
- 2:42
So the way that notifyObservers works is it will
- 2:46
only send out notifications only if it's been told that changes were made.
- 2:52
Now, this allows you to make sure that you can control when your observers
- 2:56
are notified.
- 2:57
You must call setChanged, and you need to do it before the notifyObservers happens.
- 3:04
So it's called setChanged.
- 3:06
So what that does is that it lets it know that things changed.
- 3:09
So after the notification happens, the state will turn back to unchanged.
- 3:15
So you can also check that by using a method called hasChanged.
- 3:19
Now, I'm not gonna add any protection here,
- 3:21
as I want any tweak in our status to trigger events, right?
- 3:24
So what do you say we look at how to create an observer to observe changes to
- 3:29
our table.
- 3:30
Okay, so let's go ahead and we'll tackle this first issue here, right?
- 3:33
The staff will not like needing to refresh the desk dashboard, right.
- 3:37
So let's do that. Let's go over to the dashboard.
- 3:39
So let's open it up, we'll go Shift Shift dashboard.
- 3:42
And what we'll do is we'll have the Dashboard implement
- 3:47
the Observer interface, also in java.util.
- 3:51
Now, immediately, we'll see a squiggly,
- 3:54
because the interface has a required method, which if we go ahead and
- 3:59
try to see what it's angry about, it'll ask us to implement it.
- 4:04
So implement methods.
- 4:06
And it's one named update, and it takes an Observable and an Object.
- 4:14
So this is a method that is called from within that notifyObservers method
- 4:19
on the other side, right.
- 4:20
So as you can see, it's passed an Observable, which it's called o here.
- 4:26
And the second parameter arg is an object.
- 4:29
So in our case that would be the status object that we passed across, or
- 4:32
it's null in most cases.
- 4:34
So the idea here is, in this update method, it's where you add the code that
- 4:39
will respond to the change in the class that this will eventually observe.
- 4:43
That make sense?
- 4:44
So what do we want the dashboard to do when a specific table changes?
- 4:49
Well, ideally and
- 4:50
probably realistically, we'd update that single table in the dashboard.
- 4:55
But we don't have a way to do that right now.
- 4:57
So let's just go ahead and call the render method, right?
- 5:00
So if I put in here, say, render.
- 5:03
Now any time a table changes, the dashboard will update automatically.
- 5:08
Well, that is, of course, if we're observing it.
- 5:11
So let's go take a look at our simulator,
- 5:14
the main method here, and take a look at what's happening.
- 5:18
First of all, we can get rid of this refreshDashboard, right?
- 5:21
Before, the server was having to do it, and the assistant was having to do it.
- 5:26
So we'll remove this.
- 5:28
There's no more dashboard refresh.
- 5:30
It looks like most of this is actually gonna start going away here pretty
- 5:33
soon, right?
- 5:35
Really what we want, is we want for each table,
- 5:38
we'll make the dashboard observe it.
- 5:40
And there's a method that was added by the Observable superclass named addObserver.
- 5:45
Our tables have that.
- 5:47
So let's go ahead and let's, right after we go here,
- 5:52
let's do tables.forEach,
- 5:57
for each table, we'll add
- 6:01
the observer of dashboard.
- 6:08
There we go.
- 6:09
Now the dashboard is watching all the tables, and when the table state changes,
- 6:14
it will notify all of its observers and the dashboard will render.
- 6:21
Nice. So
- 6:21
I'm pretty sure we can remove this concern, right?
- 6:24
The staff will not liking needing to refresh it, so
- 6:26
we'll automatically refresh now.
- 6:27
Awesome.
- 6:29
Okay, let's see if we can't take care of this next one.
- 6:31
The servers should be assigned to a table.
- 6:34
Well, now that we know about addObserver,
- 6:36
it seems like we just need to have them observe specific tables, right?
- 6:41
You know what, let's do that for server.
- 6:43
Let's go ahead and let's come over here to the simulator,
- 6:49
and let's cut this logic for the server out of the main loop here, right.
- 6:54
So we're gonna grab, these two cases are both server-based, right, so,
- 7:00
they're gonna not be in here, server-based solution there.
- 7:05
Okay, and now let's open up server.
- 7:07
So I'm just gonna do Shift Shift server.
- 7:12
And we'll make this server implement the observer.
- 7:16
Now, wait a second, all employees should be able to observe a table.
- 7:21
So let's do that, let's make the employee actually implement the observer.
- 7:26
So we'll say implements Observer.
- 7:30
And you'll notice that we don't get a squiggly, and
- 7:33
that's because it's abstract.
- 7:35
So it's not required to be there yet.
- 7:37
But if we come back to our server,
- 7:38
now our server needs to have the observer method there.
- 7:42
So let's go ahead and implement the methods, and we'll do the update.
- 7:48
And I have in my clipboard, I pasted that original.
- 7:58
I pasted it at the wrong place.
- 8:01
There we go, so we'll paste.
- 8:03
All right.
- 8:05
So we will do, first I'm gonna clean up this little bit.
- 8:15
Get rid of all of this optional stuff here.
- 8:17
So if it's available, we'll do a leadToTable and we'll break.
- 8:24
And if it's finished, we'll just close out the table.
- 8:29
And it's complaining about not knowing what the table is.
- 8:32
So we need to define that, don't we?
- 8:35
We also need to define the switch bit here.
- 8:38
So we definitely need to access the table, right?
- 8:41
So what can we do?
- 8:42
So we can say table, and remember, it's passed in through that observable there.
- 8:47
But it is an observable, so we need to do a downcast to the table.
- 8:53
Yuck, right?
- 8:56
And now let's go ahead and add that switch statement, now that we have that.
- 9:00
So we'll say switch, and we'll do table.getStatus.
- 9:07
And in here, we'll add our case statements that we had from before.
- 9:13
Tab that in once there.
- 9:15
There, that's looking a lot better.
- 9:18
Okay, so if the table's available, we'll view the table,
- 9:20
otherwise we'll finish on that.
- 9:23
Cool.
- 9:25
Okay, and now, we know how to assign these tables, right, we just assign them, right?
- 9:29
So we add observers to those tables.
- 9:31
So let's come in, and why don't we move our observer stuff down below.
- 9:38
So let's move all the stuff where we started doing the observers down here.
- 9:42
And so let's just for each table, we'll say,
- 9:46
table1.addObserver, and we'll have Alice watch the first three.
- 9:52
That sound good?
- 9:53
So we'll say, Alice, 2, 3.
- 9:57
And then let's for 4 and 5, let's have Bob watch those.
- 10:02
So Alice and Bob all both servers.
- 10:05
So Bob's got 4 and 5, and Alice only has 1 and 2.
- 10:09
So now they shouldn't pick up each other's checks, right?
- 10:13
That's what the client was concerned about here.
- 10:17
So let's flip over, server should be assigned to a table, bam.
- 10:23
All right, so why don't we take a quick break,
- 10:25
this has been going on for a little bit.
- 10:26
And we'll return and fix up the assistant to use the pattern as well.
- 10:31
You know, why don't you try to then tackle the assistant, right?
- 10:34
Try to make that assistant observable.
- 10:36
And then tune back in and check out how I did it.
- 10:38
You got this. | https://teamtreehouse.com/library/using-the-builtin-observer-and-observable-classes | CC-MAIN-2017-47 | refinedweb | 2,257 | 83.66 |
- ordered: the list items are ordered (sequenced) and they can be sorted in many ways.
alist = [1,2,3,4,5] alist
[1, 2, 3, 4, 5]
- indexed: list items are referenced by an integer index. Indexes are placed within square brackets next to the list name. The first index in a list is always zero
alist = [1,2,3,4,5] alist[0]
1
- iterable: When used in a for loop a list can return its items one-by-one to the iterator variable.
alist = [1,2,3,4,5] for i in alist: print(i, end=' ')
1 2 3 4 5
- mutable: List items can be altered 'in place' (that is, in the memory places they occupy without a new copy of a list being created.
alist = [1,2,3,4,5] alist[0] = 100 alist
[100, 2, 3, 4, 5]
- heterogeneous: list items may be of various typs (integers, strings, floats, other Python types, user-created types, etc.)
alist = [1,2,3,4,5] alist[0] = 15.47 alist[2] = 'X' alist[3] = True alist
[15.47, 2, 'X', True, 5]
alist = [1,2,3,4,5] len(alist)
5
alist = [1,2,3,4,5] alist[0], alist[3], alist[len(alist)-1]
(1, 4, 5)
import math alist = [1,2,3,4,5] blist = [12.7, 'alpha', math.pi, 100] x = blist[0]-alist[2] x
9.7
alist = [1,2,3,4,5] blist = [12.7, 'alpha', math.pi, 100] blist[0] = alist[0] + alist[len(alist)-1] blist
[6, 'alpha', 3.141592653589793, 100]
alist = [1,2,3,4,5] alist[-1], alist[-5]
(5, 1)
alist = [1,2,3,4,5] clist = alist + [10, 12] clist
[1, 2, 3, 4, 5, 10, 12]
# Note that integer * list multiplication does NOT mean that list items are multiplied by the integer blist = [12.7, 'alpha', math.pi, 100] dlist = 2*blist dlist
[12.7, 'alpha', 3.141592653589793, 100, 12.7, 'alpha', 3.141592653589793, 100]
del object_name
alist = [1,2,3,4,5] del alist[0] print(alist) del alist alist
[2, 3, 4, 5]
--------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-3-a35aa046ad3b> in <module>() 4 5 del alist ----> 6 alist NameError: name 'alist' is not defined
(a string is not)
alist = [1,2,3,4,5] print(alist[2]) alist[2] = 'X' print(alist)
3 [1, 2, 'X', 4, 5]
s = '12345' print(s[2]) s[2] = 'X' print(s)
3
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-19-f3e2d9d6887f> in <module>() 1 s = '12345' 2 print(s[2]) ----> 3 s[2] = 'X' 4 print(s) TypeError: 'str' object does not support item assignment
s = '12345' print(s[2]) snew = s[0]+s[1]+'X'+s[3]+s[4] # Not a very efficient way to do it; wait till you see list slicing print(snew)
3 12X45
alist = [1,2,3,4,5] blist = alist blist[2] = 'X' print(alist)
[1, 2, 'X', 4, 5]
zoo = ['lion','tiger','elephant'] for i in range(3): print(zoo[i], end=' ') print() for animal in zoo: print(animal, end=' ')
lion tiger elephant lion tiger elephant
zoo = ['lion','tiger','elephant'] for i, animal in enumerate(zoo): print(i, animal)
0 lion 1 tiger 2 elephant
L = [1,3,5] print(2 in L)
False
s = 'spam' print('s' in s)
True
zoo = ['lion','tiger','elephant'] if 'dog' in zoo: print('dog is in zoo') else: print('still looking for my dog')
still looking for my dog
We 've seen so far that data objects are constructed from their class special method called 'constructor'
- For example, integers are constructed by activating int(), float numbers by float(), strings by str().
Similarly, list objects in Python are constructed by the list() constructor. We need to pass as argument some kind of sequential structure, for example a string
Also , recall that we can use type() to check the type of an object and dir() to get a glimpse at the attributes that the object inherits by its class.
s = 'spam' alist = list(s) print(alist) s = str(alist) print(s)
['s', 'p', 'a', 'm'] ['s', 'p', 'a', 'm']
s = '12345' nlist = list(s) nlist
['1', '2', '3', '4', '5']
alist = [1,2,3,4,5] print(type(alist),'\n') print(dir(alist))
<class 'list'> ['_']
Similarities:
- Both are sequences: they are ordered collections of 'elementary' items. In the case of strings elementary items are characters (strings of len=1). In the case of list the term 'elementary' simply denotes that the list contains other objects as its items. In fact, these other objects can be compound structures in themselves (for example, other lists).
- Both are indexed: their items are referenced by an index, which is an integer put in square brackets next to the list/string name.
- Both are iterable: technically this means that both types include a _next__ method that iterates over the sequencial structure (list or string), returning the next elementary item in order. This allows both lists and strings to be used as iterables in a 'for' loop.
Differences:
- Lists are mutable objects, but strings are immutable: this means that items of a list can be changed 'in place' (in memory places they already occupy) without creating a new list copy in memory. By contrast, to change a string one needs actually to create a new string copy. | http://pytolearn.csd.auth.gr/p0-py/03/list.html | CC-MAIN-2022-05 | refinedweb | 891 | 65.25 |
Join the community to find out what other Atlassian users are discussing, debating and creating.
Has anyone else run into this problem?
The only thing I can think is that Behaviours is seeing the "none" option selected in the Project select list as a viable option, instead of not one of the real options at all.
Note: "none" is not one of the options configured for the select list. It's only showing up because we don't want to set a default value for this particular select list so Jira puts a "none" in the select list for you when the form first loads.
Hello, @Crystal Gummo
Actually, there is a workaround for this problem.
You can control field input by setErrror(), clearError() methods.
Just add add behaviour to the target field, and here script example:
Boolean isValid
if (!StringUtils.isEmpty(getFieldById(getFieldChanged()).getValue())) isValid = true
isValid? getFieldById(getFieldChanged()).clearError() : getFieldById(getFieldChanged()).setError("You must enter field value")
I really like this idea.
I got an error when I tried your code:
StringUtils is undeclared.
so I added a
import org.apache.commons.lang3.StringUtils;
And then got this error:
it seems to be an error between types (object vs string). But I tried a few different things and couldn't get it to resolve.
So, I tried to write something similar, but while this doesn't give an syntax error, it still lets a user submit a ticket with "None" selected in the dropdown:
def ProjectFieldValue = getCustomFieldValue("12515")
Boolean isValid = true
if (ProjectFieldValue.equals("None")) isValid = false
isValid? getFieldById("12515").clearError() : getFieldById("12515").setError("You must enter a Project")
Any ideas where to go from here?
Your method does not work, because it gives you the NullPointerExeption (ProjectFieldValue is null)
Static type checking in not important, in runtime groovy will cast types anyway.
If it bothers you too much you can just cast it as String
Try the code bellow, it should work
import org.apache.commons.lang3.StringUtils
Boolean isValid = false
if (!StringUtils.isEmpty((String) getFieldById(getFieldChanged()).getValue())) isValid = true
isValid? getFieldById(getFieldChanged()).clearError() : getFieldById(getFieldChanged()).setError("You must enter field value")
You rock!
It works like a charm, with just one drawback: The field in question starts off red with the error message, as soon as the user pulls up the form. It's kind of like yelling at them when they haven't had the opportunity to mess up yet. Any ideas on how to avoid that? I admit I can't think of anything and this solutions as-is is already so much better than what I had before.
A behaviour works as soon as a form loads, so it's imposible to postpone that moment with behavior.
If you want to check fields after the submit button was pressed, you can use the simple scripted validator on the create transition with a condition like this:
cfValues['project_field1']?.value != null
but the field will be required everywhere on issue create.
One more variation. Service desk has the "Customer Request Type" field , the value for the field is set only if an issue is created from the portal or email (via service desk handler). So you could try a validator like this:
cfValues['project_field1']?.value != null && cfValues['Customer Request Type'] != null
So if you have service desk mail handlers configured, you need to test this solution, if it affects issue creation via email.
Thanks! I've already marked your solution as the "accepted solution" because it was so much better than just living with the problem until the underlying bug is resolved.
I've already got your setErrror/clearError approach in place on our production system and people are happy.
Thanks again!
We are currently aware of bug SRJIRA-2810 which causes the system to consider "None" as a valid option when it shouldn't. | https://community.atlassian.com/t5/Adaptavist-questions/ScriptRunner-behaviours-not-honoring-Required-for-my-quot-select/qaq-p/810910 | CC-MAIN-2019-43 | refinedweb | 640 | 55.34 |
05-17-2017 07:33 AM
05-17-2017 08:32 AM
You can find a lot reference design on xilinx.com, which contains SDK codes : xapp742, xapp1218, xapp1205,xapp794,xapp890,xapp1167,xapp1250,xapp1218
05-18-2017 06:50 AM
05-18-2017 07:03 AM
05-18-2017 07:16 AM
ok Thanks
05-24-2017 01:13 AM
05-24-2017 01:21 AM
Hi,
Sorry, I still have the same problem, no VDMA configuration found for my design, still searching...
11-21-2017 10:53 AM
01-12-2018 02:03 AM
01-14-2018 02:05 PM
As a beginner I faced the same problem in getting the VDMA to work. So I would like to share my experience of a workaround to get something started, hoping this might help other beginners as well. What I did was getting the VDMA to work as a triple buffering VDMA. A well guided C code was located in the VDMA example in SDK [Xilinx\SDK\{version}\data\embeddedsw\XilinxProcessorIPLib\drivers\axivdma_v6_1\examples]. vdma.c contains all the information, but still as an absolute beginner still I found this a bit too much of information. So what I did was without thinking how this code actually works I just tried to get the VDMA based on this code. The easiest way was to make the other c file vdma_api.c a header file (saved the c file as vdma_api.h). Then I included it in my c code and just called the run_triple_frame_buffer() method. I know this is not much but it is enough to get VDMA running at least.
Hope this might help other beginners as well. :-)
#include <stdio.h> #include "platform.h" #include "xil_printf.h" #include "xparameters.h" #include "xaxivdma.h" #include "vdma_api.h" #include "xil_types.h" #include "xil_io.h" XAxiVdma AxiVdma; int main() { init_platform(); int status; //Checking and configuring VDMA status = run_triple_frame_buffer(&AxiVdma, 0, 1920, 1080, XPAR_PS7_DDR_0_S_AXI_BASEADDR + 0x1000000, 100,0); if (status != XST_SUCCESS) { xil_printf("VDMA Transfer of frames failed with error = %d\r\n",status); return XST_FAILURE; } else { xil_printf("VDMA Transfer of frames started \r\n"); } cleanup_platform(); while (1) { } return 0; } | https://forums.xilinx.com/t5/Video-and-Audio/VDMA-s-SDK-code/m-p/821891 | CC-MAIN-2020-45 | refinedweb | 355 | 66.44 |
It’s time to get down to business and write a SchedulingModel class that encapsulates the resource constrained project scheduling model I wrote about in my previous two posts. Let’s break it down into three phases: defining the state, writing the code that constructs the model, and writing a function that solves the model and returns the results. To define the state, let’s review the important data associated with the model:
- Each event has a start date (t). We’ll call this Decision start.
- Each task is either active or inactive for each event (z). Let’s call this Decision isActive.
- The project duration is represented by C_max. We’ll call this makespan.
- The duration of each task (p) is an input Parameter.
- The above Decisions and Parameters are indexed by the sets of tasks and events.
We will have private member fields for this information since they will be used by the model throughout. Here is the start of our SchedulingModel class:
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using Microsoft.SolverFoundation.Common; using Microsoft.SolverFoundation.Services; using SolverFoundation.Plugin.Gurobi; namespace ProjectScheduling { /// <summary>A Solver Foundation model for solving resource constrained project scheduling problems. /// </summary> /// <remarks> /// This model produces a schedule with minimum duration with no overallocations. /// /// The source for this model is: /// "Event-based MILP models for resource-constrained project scheduling problems" /// by Oumar Kone, Christian Artigues, Pierre Lopez, Marcel Mongeau in /// Computers and Operations Research, December 2009. This model is the "On/Off Event-Based Formulation" /// presented in section 3.2. /// </remarks> public class SchedulingModel { private bool verbose; private SolverContext context; private Model model; private Set tasks, events, events1ToN; // in the paper: sets A, R, E, and E - 0. private Decision makespan; // C_max private Decision isActive; // z private Decision start; // t private Parameter duration; // p /// <summary>Create a new instance. /// </summary> /// <param name="verbose">Indicates whether to dump intermediate output.</param> public SchedulingModel(bool verbose) { this.verbose = verbose; } /// <summary>Create the model. /// </summary> /// <param name="project">The project to be scheduled.</param> public void Initialize(Project project) { context = SolverContext.GetContext(); context.ClearModel(); model = context.CreateModel(); int eventCount = project.Tasks.Count; // we will fill these in in the remainder of the post. InitializeSets(project.Tasks.Count, eventCount, project.Resources.Count); InitializeParameters(project.Tasks, project.Resources); InitializeDecisions(); InitializeGoal(); InitializeConstraints(project, eventCount); } }
Now let’s do the important part: write the model. This amounts to transcribing equations (34) – (45) on Page 9 of the paper. You might find the remainder of the post easier to follow if you have the paper with you as you read through the code and descriptions. The first thing I like to do is think about the Sets, Parameters (inputs) and Decisions (outputs) I will need, and then write down the constraints and goals. Let’s start with Sets. Looking over the equations we can observe the following:
- Most of the equations involve a “foreach” over the set E of events or the set A of tasks (or both). In these cases we will want to use the Model.Foreach construct.
- Equations (39) – (43) use summations. The natural SFS construct to use is Model.Sum. But note some subtle variations:
- In equation (39) we sum over the events from 0 to e-1, where e itself can be any event from 1 to Events.Count. The summations in (40) and (42) similar structure.
- The summation in (41) is simple: sum over all events.
- (43) appears simple: we just sum from i = 0 to n – 1.
If you review the documentation for Model.Sum you will see that the first argument is a Set, and the second is a Func that maps a Term (which represents an element of the set) to a Term (which represents the operand to Sum). This means that it won’t work too well for the sums in equations (39), (40), (42) because the number of terms in the sum varies depending on the value of e. We can still do what we want by just computing the sum ourselves using a standard C# for-loop. Therefore we need three sets: the set of tasks, the set of events, and the set of events from 1 to n. There are two ways to establish the elements of a Set. The first works for the case where the elements are numeric: specify the start, end, and step. I will use this constructor for the event-based sets. The second is more commonly used: define a Parameter or Decision that uses the Set, and bind the Parameter or Decision to a data source using SetBinding. The elements of the Set will be determined automatically. I like this way of defining sets because it is less brittle: if the size of my problem changes I generally don’t need to touch my code. I will use this for the task set, since I know I need to bind the task duration to a Parameter.
private void InitializeSets(int taskCount, int eventCount, int resourceCount) { tasks = new Set(Domain.Real, "tasks"); events = new Set(0, eventCount, 1); events1ToN = new Set(1, eventCount, 1); // starting from event 1. }
Next come Parameters. You can identify these by looking at the “input variables” of the equations. Here they are p_I (the task duration), b_ik (amount of work on task I performed by resource k) and B_k (resource availability). B_k and b_ik appear in equation (43). Stare at it for a second, and think about the data structures we defined last time. We defined an Assignment class that represents work performed by a resource on a task. Each task has a list of assignments. Therefore we do not really have a matrix b_ik, at least not in a single collection. We’ll need to iterate over the assignments for each task to collect the resource usage and capacity – so it doesn’t really buy us anything to define Parameters for these quantities. So we’ll just define a parameter for task duration – and remember that this will also establish the elements of the tasks set we defined earlier.
private void InitializeParameters(ICollection<Task> t, ICollection<Resource> r) { duration = new Parameter(Domain.RealNonnegative, "duration", tasks); duration.SetBinding(t, "Duration", "ID"); model.AddParameters(duration); }
Now for the Decisions. Those come straight out of the paper. When we define the decisions we need to specify the Sets over which they are indexed, and the range of possible values (the Domain) for each.
private void InitializeDecisions() { makespan = new Decision(Domain.RealNonnegative, "makespan"); isActive = new Decision(Domain.IntegerRange(0, 1), "isActive", tasks, events); start = new Decision(Domain.RealNonnegative, "start", events); model.AddDecisions(makespan, isActive, start); }
The Goal is incredibly simple: minimize the makespan.
private void InitializeGoal() { Goal goal = model.AddGoal("goal", GoalKind.Minimize, makespan); // (34) }
Now the fun part: the constraints. Of course, we have already examined most of the constraints so that we could define the other parts of our model. This is not unusual! Let’s work from top to bottom, starting with (35). This constraint establishes the makespan for the project: the latest finish time for any task. The equation says the constraint holds for all events and tasks, but that isn’t quite true: notice that we compare the start of event e with the start of event (e-1). So we actually want to start from event 1.
private void InitializeConstraints(Project project, int eventCount) { // Establish the makespan: the maximum finish time over all activities. model.AddConstraint("c35", Model.ForEach(events1ToN, e => Model.ForEach(tasks, i => makespan >= start[e] + (isActive[i, e] - isActive[i, e - 1]) * duration[i] )));
(36) is trivial:
// The first event starts at time 0. model.AddConstraint("c_36", start[0] == 0);
(37) is a foreach over each task and unique pair of events. It relates the isActive and start decisions. To model the fact that we want to consider unique pairs, we place a ForeachWhere inside a ForEach. The condition on the ForeachWhere ensures that the inner event index f exceeds outer event index e.
// Link the isActive decision to the starts of each event and task durations. model.AddConstraint("c_37", Model.ForEach(events1ToN, e => Model.ForEachWhere(events, f => Model.ForEach(tasks, i => start[f] >= start[e] + ((isActive[i, e] - isActive[i, e - 1]) - (isActive[i, f] - isActive[i, f - 1]) - 1) * duration[i] ), f => f > e)));
As I alluded to in my first post, the original paper does not consider the first event, so let us add one more constraint (37a).
// Link the isActive decision with the first event. This constraint is missing in the original // paper. model.AddConstraint("c_37_e0", Model.ForEach(events1ToN, f => Model.ForEach(tasks, i => start[f] >= start[0] + (isActive[i, 0] - (isActive[i, f] - isActive[i, f - 1]) - 1) * duration[i] )));
(38) is easy.
// Order the events. model.AddConstraint("c_38", Model.ForEach(events1ToN, e => start[e] >= start[e - 1]));
(39) and (40) are very similar, so let’s focus on (39). We looked at these when we were figuring out which Sets to define. Since the sum ranges from event 0 to event e, where e varies, we decided to use nested for-loops instead of the Model.Foreach construct. The outer loop is over the event e. If we look at the summation, we sum over events 0 .. e-1. We will use the SumTermBuilder class to accumulate these terms (I blogged about this class awhile ago – it is part of Solver Foundation 3.0).
// Ensure adjacency of events for an in-progress task. SumTermBuilder sum = new SumTermBuilder(eventCount); for (int i = 0; i < project.Tasks.Count; i++) { for (int e = 1; e < eventCount; e++) { sum.Add(isActive[i, e - 1]); model.AddConstraint("c_39_" + i + "_" + e, sum.ToTerm() <= e * (1 - (isActive[i, e] - isActive[i, e - 1]))); } sum.Clear(); } sum = new SumTermBuilder(eventCount); for (int i = 0; i < project.Tasks.Count; i++) { for (int e = 1; e < eventCount; e++) { for (int e1 = e; e1 < eventCount; e1++) { sum.Add(isActive[i, e1]); // (it's inefficient to reconstruct this for each value of e.) } model.AddConstraint("c_40_" + i + "_" + e, sum.ToTerm() <= e * (1 + (isActive[i, e] - isActive[i, e - 1]))); sum.Clear(); } }
(41) is easy.
// All activities must be active during the project. model.AddConstraint("c_41", Model.ForEach(tasks, i => Model.Sum(Model.ForEach(events, e => isActive[i, e])) >= 1));
(42) is not too hard at this point either. We need to iterate over the set of task dependencies, and add a constraint involving a summation for each. We once again use the SumTermBuilder class for performance.
// A link (i, j) means that the start of task j must be after the finish of task i. int c42 = 0; foreach (TaskDependency link in project.Dependencies) { int i = link.Source.ID; int j = link.Destination.ID; sum = new SumTermBuilder(eventCount); for (int e = 0; e < eventCount; e++) { sum.Add(isActive[j, e]); // sum now has isActive[j, 0] .. isActive[j, e]. model.AddConstraint("c_42_" + c42++, isActive[i, e] + sum.ToTerm() <= 1 + e * (1 - isActive[i, e])); } }
(43) is the last constraint – we already took care of (44) and (45) in our Decision definitions. We considered this constraint in some detail when we were figuring out our Parameter definitions. We want to express the fact that the sum of resource work on all tasks is no greater than its availability. This condition needs to hold for each event. The key is to iterate over all the assignments for all the tasks, and group the b_ik * z_ie terms by resource, using a Dictionary. Since most resources only work on a small percentage of the tasks, there will be very few nonzero b_ik terms. If we had stored the b_ik in a sparse matrix, this constraint would have been easier to write, on the other hand this would be more inconvenient in other parts of the system.
// Resource usage during each event must not exceed resource capacity. Dictionary<Resource, int> resToId = new Dictionary<Resource, int>(project.Resources.Count); for (int k = 0; k < project.Resources.Count; k++) { resToId[project.Resources[k]] = k; } SumTermBuilder[] totalResWork = new SumTermBuilder[project.Resources.Count]; int c43 = 0; for (int e = 0; e < eventCount; e++) { for (int taskID = 0; taskID < project.Tasks.Count; taskID++) { foreach (var assn in project.Tasks[taskID].Assignments) { int resID = resToId[assn.Resource]; if (totalResWork[resID] == null) { totalResWork[resID] = new SumTermBuilder(4); // most tasks will have <= 4 assignments. } totalResWork[resID].Add(assn.Units * isActive[taskID, e]); } } for (int resID = 0; resID < totalResWork.Length; resID++) { if (totalResWork[resID] != null) { model.AddConstraint("c43_" + c43++, totalResWork[resID].ToTerm() <= project.Resources[resID].MaxUnits); totalResWork[resID] = null; // note: memory churn... } } }
Whew. The rest is easy. We will expose a wrapper for SolverContext.Solve(). The return type for this function is a dictionary that maps task IDs to scheduled start date. We use a LINQ query to produce this dictionary from the Solver Foundation results.
/// <summary>Solve the model. /// </summary> public IDictionary<int, double> Solve() { GurobiDirective directive = new GurobiDirective(); directive.OutputFlag = verbose; //SimplexDirective directive = new SimplexDirective(); // use me if you do not have Gurobi. var solution = context.Solve(directive); if (verbose) { Console.WriteLine(solution.GetReport()); } return GetStartTimesByTask(); } private IDictionary<int, double> GetStartTimesByTask() { // The "start" decision has the start times for each *event*. Index 0 has the start and index 1 has the event. // Recall that the event set was created using Rationals, so we must convert to int here. var eventToStart = start.GetValues().ToDictionary(o => (int)((Rational)o[1]).ToDouble(), o => (double)o[0]); // Group the isActive decision by task. var isActiveByTask = isActive.GetValues().GroupBy(o => o[1]); // Find the first event where each task is active, and transform the output into (task, event) pairs. var firstActiveByTask = isActiveByTask .Select(g => g.First(a => (double)a[0] > 0.5)) .Select(o => new { TaskID = (int)((double)o[1]), EventID = (int)((Rational)o[2]).ToDouble() }); // Now we can use the (task, event) pairs to get a dictionary that maps task IDs to start dates. return firstActiveByTask.ToDictionary(f => f.TaskID, f => eventToStart[f.EventID]); } }
That’s a lot of code and it’s possible (perhaps probable) that I have made a mistake. So in the next post I will write a simple test program to see how it works. | https://nathanbrixius.wordpress.com/2010/12/20/project-scheduling-and-solver-foundation-revisited-part-iii/ | CC-MAIN-2017-26 | refinedweb | 2,364 | 59.6 |
Here are some things to check if there are problems running syzkaller.
Use the
-debug command line option to make syzkaller print all possible debug output, from both the
syz-manager top-level program and the
syz-fuzzer instances. With this option syzkaller will only run one VM instance.
Use the
-vv N command line option to increase the amount of logging output, from both the
syz-manager top-level program and the
syz-fuzzer instances (which go to the output files in the
crashes subdirectory of the working directory). Higher values of N give more output.
If logging indicates problems with the executor program (e.g.
executor failure), try manually running a short sequence of system calls:
syz-executorand
syz-execproginto a running VM.
./syz-execprog -executor ./syz-executor -debug sampleprogwhere sampleprog is a simple system call script (e.g. just containing
getpid()).
clonehas failed, this probably indicates that the test kernel does not include support for all of the required namespaces. In this case, running the
syz-execprogtest with the
-sandbox=setuidoption fixes the problem, so the main configuration needs to be updated to set
sandboxto
setuid.
Also see this for Linux kernel specific troubleshooting advice.
If none of the above helps, file a bug on the bug tracker or ask us directly on the syzkaller@googlegroups.com mailing list. Please include syzkaller commit id that you use and
syz-manager output with
-debug flag enabled if applicable. | https://android.googlesource.com/platform/external/syzkaller/+/HEAD/docs/troubleshooting.md | CC-MAIN-2021-17 | refinedweb | 240 | 56.35 |
From the previous project, it has been already learned.
In this project, two Bluetooth modules are used. The Bluetooth modules are interfaced to different Arduino Pro Mini boards which are connected to different computers running Arduino Serial Monitor application. Any hyper terminal application can be used for passing AT commands and data to be shared between the modules. The Arduino sketch used in this project is designed to exchange commands and data in an uninterrupted fashion. The Arduino code is written on Arduino IDE and burnt to the boards using AVR Dude.
Components Required –
1. Arduino Pro Mini – 2
2. HC-05 Bluetooth Module – 2
3. Desktop Computer or Laptop – 2
4. USB Cable – 2
Software Tools Required –
1. Arduino IDE
2. Any Hyper Terminal Desktop Application like Arduino Serial Monitor
Circuit Connections –
Fig. 1: Prototype of Arduino based Bluetooth Pairing
The Arduino Pro Mini boards manage the exchange of data between the serial application on the desktop computer and the respective Bluetooth module. The circuit on both the master and slave sides is assembled the same way in the following manner –
Power Supply – The circuit is powered by the battery which directly supplies to the Arduino board and the Bluetooth module.
HC-05 Bluetooth Module – HC-05 Bluetooth module is serial port protocol module. It operates on ISM band 2.4GHz with V2.0+EDR (Enhanced data rate). It can work in both Master and slave modes. 3 and 2 of the Arduino Pro Mini respectively. These connections are summarized in the table below –
Fig. 2: Table listing circuit connections between HC-05 Bluetooth Module and Arduino Pro Mini
Apart from these connections, the 34th pin of the module is wired to the pin 9 of the Arduino Pro Mini.
Desktop Computer – The computer is connected to the Arduino board through USB cable and transfers serial data to the board through Virtual serial communication using a hyper terminal application.
How the project works –
Both the modules receive the user entered AT commands from the hyper terminal application on the respective computers. The commands are serially read over virtual serial communication and passed to the Bluetooth modules. The Bluetooth modules respond to the AT commands and the responses are again serially read and transferred to the desktop application.
First one of the modules needs to be configured to Master role for which following steps need to be executed –
Step1: Enter into the AT command mode.
Step2: initiate SPP.
Step3: Inquire the devices available.
Step4: if Address available in the list, Pair it.
Step5: After pairing establish a communication link.
Step6: Send data to share.
Fig. 3: Image of Arduino based Bluetooth Pairing
These steps can be implemented by running the AT commands and changing the following configuration parameters –
Fig. 4: Table listing AT commands of HC-05 Bluetooth Module
The other module needs to be configured as a slave. For configuring the other module as slave, following steps need to be taken –
Step1: Enter into the AT command mode.
Step2: initiate SPP.
Step3: Inquire the devices available.
Step4: Check the status paired or not.
Step5: After Establishing communication link Receive data from the master and if needed, send data to share.
Fig. 5: Image of Arduino based Slave Bluetooth Module
These steps can be implemented by running the AT commands and changing the following configuration parameters –
Fig. 6: Table listing AT commands and their configuration parameters
Therefore for pairing the two modules following configuration parameters must be changed and taken note of.
– Both the modules should be in AT command mode.
– The name, password and address of the modules should be uniquely set and well known. The baud rate of both the modules should be same which is set 9600, 0, 0 in the project demonstration.
– The SPP mode should be initialized on both the modules using AT+STATE command.
– One of the module should be made master while the other should be set slave. For setting a module to master role, the AT+ROLE should be set to 1 in one of the module. The default role a is slave with value 0 which need not be changed in the other module.
– The communication mode should be enabled on both the modules by setting CMODE to 1.
– In the master module inquiry mode should be set to 0, 5, 5 where the first parameter is enquiry access mode which if set to 0 configures to inquiry_mode_standard and if set to 1 configures to inquiry_mode_rssi, second parameter is number Bluetooth device response allowed and third parameter is maximum limited inquiry time in seconds.
– The module configured as the slave should be free for which RMAAD command should be passed. Now the slave module will be free to pair with the master module.
– The master module should be set to inquire the available devices for pairing by setting the inquiry mode and if slave address is shown available, the name of the slave module should be verified by RNAM command.
– If the name of the available slave device is same as of the configured slave module, it can be paired by sending AT+PAIR= <slave address> command. On successful pairing with the slave module, the master module will respond with OK. The status of the pairing can be verified by passing AT+STATE? command on both the modules.
– The link between the modules can be set by passing AT+LINK? command.
– If both the modules send an OK response, the modules will be ready to share data.
– If the two modules are not pairing, the SPP & INQ initialization at slave could have been neglected or the slave module might not be in the AT mode. The baud rate of both the modules may not be same or wrong PIN may have been entered. There can also be a possibility that the slave module may not have configured to slave role and may have set the role parameter set to 1 by mistake. These settings should have been checked before trying to pair the devices.
So configure both the modules with proper settings, initiate pairing and try sharing some data.
Programming Guide –
The Arduino sketch manages the data communication between the computer and the Bluetooth module. After pairing the Bluetooth modules will be able to share data. On the master device, for enabling virtual serial communication, SoftwareSerial.h needs to be imported. An object of Software serial type is instantiated and mapped to Arduino pins 2 and 3. A variable to store data to be shared is declared.
#include <SoftwareSerial.h>0
SoftwareSerial BTserial(2, 3); // RX | TX
char c = ‘ ‘; slave module is checked for availability and if available is read and written to the serial port. Similarly, if any data from the computer is checked for availability and if available is stored in the variable and passed to the Master module for transmission.
This completes the Arduino Sketch for the Master side.
On the slave side, again SoftwareSerial.h needs to be imported. An object of Software serial type is instantiated and mapped to Arduino pins 2 and 3. master module is checked for availability and if available is read and written to the serial port. Similarly, if any data from the computer is checked for availability and if available is passed to the slave module for transmission.
This completes the Arduino Sketch for the Slave side. You can get the complete programming details in the code section.
Project Source Code
###//Program to#include <SoftwareSerial.h>0 SoftwareSerial BTserial(2, 3); // RX | TX char c = ' '; void setup() { Serial.begin(9600); Serial.println("__________Engineers Garage______________"); Serial.println("---------------Master------------------"); //); } } #include <SoftwareSerial.h> SoftwareSerial BTSerial(2, 3); // RX | TX void setup() { Serial.begin(9600); Serial.println("__________Engineers Garage______________"); Serial.println("---------------Slave------------------"); // HC-05 default serial speed for AT mode is 38400 BTserial.begin(38400); } void loop() { // Keep reading from HC-06 and send to Arduino Serial Monitor if (BTSerial.available()) Serial.write(BTSerial.read()); // Keep reading from Arduino Serial Monitor and send to HC-06 if (Serial.available()) BTSerial.write(Serial.read()); }
###
Project Video
Filed Under: Electronic Projects
Filed Under: Electronic Projects | https://www.engineersgarage.com/pairing-two-hc-05-bluetooth-modules-and-share-data-between-them/ | CC-MAIN-2021-49 | refinedweb | 1,348 | 56.96 |
stderr, stdin, stdout - standard I/O streams
Synopsis
Description
Return Value
Errors
Examples
Application Usage
Rationale
Future Directions
See Also
#include <stdio.h>
extern FILE *stderr, *stdin, *stdout;
A file with associated buffering is called a stream and is declared to be a pointer to a defined type FILE. The fopen() function shall create certain descriptive data for a stream and return a pointer to designate the stream in all further transactions. Normally, there are three open streams with constant pointers declared in the <stdio.h> header and associated with the standard open files.
At program start-up, three streams shall shall be associated with the C-language stdin, stdout, and stderr when the application is started . | http://www.squarebox.co.uk/cgi-squarebox/manServer/usr/share/man/man3p/stdout.3p | crawl-003 | refinedweb | 117 | 52.49 |
Wrapping command-line programs, part V
I'm nearly out of tricks for dealing with cantankerous programs but the ones I've outlined should be enough. I've only once had a real need to disassemble the binary and tweak the assembly code (which isn't allowed under my license with OpenEye). I've come across but never tried techniques like dynamically override a program while it's running.
So let's get to more practical matters. For the following I'll use the subprocess version of smi2name developed in the second essay of this current series.
OpenEye's naming code is very fast but give it a large enough structure and it still takes some time. Here's a little progam to time how long it takes to name structures of the form "C" * length where length is 1, 2, 5, 10, ....
import time import smi2name_subprocess as smi2name # Make sure the coprocess has started smi2name.smi2name("C") for i in (1, 2, 5, 10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000): t1 = time.time() name = smi2name.smi2name("C" * i) t2 = time.time() print i, "%.5f" % (t2-t1)As you can see, it scales roughly quadratically.
Suppose I try hit control-C part way through a long computation.
>>> import smi2name_subprocess as smi2name >>> smi2name.smi2name("C" * 10000) ^CTraceback (most recent call last): File "<stdin>", line 1, in ? File "smi2name_subprocess.py", line 91, in smi2name return _smi2name(smiles) File "smi2name_subprocess.py", line 63, in smi2name rlist, _, _ = select.select([mol2nam.stdout, mol2nam.stderr], [], []) KeyboardInterrupt >>> smi2name.smi2name("C") Traceback (most recent call last): File "<stdin>", line 1, in ? File "smi2name_subprocess.py", line 91, in smi2name return _smi2name(smiles) File "smi2name_subprocess.py", line 61, in smi2name mol2nam.stdin.write(smiles + "\n") IOError: [Errno 32] Broken pipe >>>The control-C killed the coprocess. Why? I don't know. It's part of the great mystery that is Unix terminal process control. But it's easy to fix. If the write fails, reset the connection to the coprocess and try again. If it fails again then let the exception occur because there's no way to even attempt a recovery.()
Suppose that mol2nam occasionally takes too long to run. It might be beacuse of an extremely long SMILES input or some sort of hyptothetical bug that puts it in an infinite loop. I want the wrapper code to identify that case and recover. Detection is easy. If there's nothing from stdout or stderr for more than some timeout value then it's too long. We're already using a select() statement to figure out which pipe has activity. The select() has an optional 4th argument which is the timeout. If the timeout is reached it returns three empty lists.
What remains is killing the child. We can't simply close the subprocess handle to the coprocess because if the coprocess is really in an infinite loop it will not notice that its stdin was closed. The Unix way is to send it a signal via os.kill(). You've probably used kill -9 from the Unix command-line to kill a process. Same idea. Except that -9 is usually too harsh. It doesn't give the program any way to quit gracefully. Because mol2nam doesn't ignore the polite SIGTERM signal to end I'll use that one instead.
import re, select import subprocess import os, signal MOL2NAM = "ogham): ...omitted; unchanged from the last time... class Smi2Name: def __init__(self, executable = None, timeout = None): # a subprocess.Popen connected to mol2nam self._mol2nam = None if executable is None: executable = MOL2NAM self.executable = executable self.timeout = timeout def _get_mol2nam(self): ... omitted; unchanged from the last time...() rlist, _, _ = select.select([mol2nam.stdout, mol2nam.stderr], [], [], self.timeout) if mol2nam.stderr in rlist: # Tells mol2nam to quit mol2nam.stdin.close() stderr_text = mol2nam.stderr.read() # Doing this will restart the subprocess the next time through self._mol2nam = None raise NamingError(_find_error(stderr_text)) if mol2nam.stdout in rlist: name = mol2nam.stdout.readline().rstrip() if "BLAH" in name: raise NamingError("Unsupported structure") return name # Timeout reached. Kill the child and restart. try: os.kill(mol2nam.pid, signal.SIGTERM) except OSError: # Already died? pass self._mol2nam = None raise NamingError("timeout reached") ... the rest of the code is unchanged...Testing it out ...
>>> import smi2name_subprocess as smi2name >>> namer = smi2name.Smi2Name(timeout = 2) >>> namer.smi2name("C" * 1000) 'kiliane' >>> namer.smi2name("C" * 5000) Traceback (most recent call last): File "<stdin>", line 1, in ? File "/Users/dalke/tmp/smi2name_subprocess.py", line 96, in smi2name raise NamingError("timeout reached") smi2name_subprocess.NamingError: timeout reached >>> namer.smi2name("C" * 750) 'pentacontaheptactane' >>>
The mol2nam program is easy to kill. Occasionally there are harder ones to kill. For example, the newly created program may in turn start its own processes. The grandchildren processes may ignore the kill command sent to the intermediate parent so they would need to be reaped as well.
There are a few ways to identify them. On some operating systems you can get a list of all the children processes to a given process. For Linux it's available from /proc/pid/status in the lines starting "PPid:\t".
In one case I found the best solution was to create a new process group because I could use os.killpg() to kill the parent of the group and all of its children. Assuming none of the children decide to start a new process group. Making the new process group is easy. It needs to be done by the subprocess.Popen() after the fork but before the exec, which is why there's a preexec_fn option to Popen(). For the mol2nam it would look like this:
mol2nam = subprocess.Popen( (self.executable, "-"), stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE, close_fds = True, preexec_fn = os.setpgrp )To kill the process group, instead of using os.kill() use
os.killpg(vsound.pid, signal.SIGTERM)
Whew! With this set of essays you've now got a good idea of the different ways to communicate with a command-line program and of some of the tricky things to watch out for. Now, start wrapping! :).
Andrew Dalke is an independent consultant focusing on software development for computational chemistry and biology. Need contract programming, help, or training? Contact me
| http://www.dalkescientific.com/writings/diary/archive/2005/04/18/wrapping_command_line_programs_V.html | CC-MAIN-2015-06 | refinedweb | 1,037 | 61.53 |
The NewsLynx web interface
This project is a part of research project at the Tow Center for Digital Journalism at Columbia University by Michael Keller & Brian Abelson.
Read our full documentation for installing your own instance. The instructions below cover installing and developing the app as well as architectural documentation on how it works.
Since a lot of functionality is intertwined across different repositories, please post all issues to our project issue tracker.
Install dependencies with
npm install.
If you haven't run
newslynx init by following the full install instructions, you can still test out the app by creating
.newslynx folder in your home folder and creating a
config.yaml file that looks like the following (change the secret key to something else or not if you're simply testing):
api_version: v1 app_secret_key: chicken-burrito-grande https: false api_url:
To recap, if you want to do a dry run to make sure the app runs locally but you haven't configured / ran the api yet, make a file that looks like the one above and put it in
~/.newslynx/config.yaml. Without having a server running locally, you won't get passed the login page, but at least you can make sure you get that far.
To start the server, run
npm start
This compiles your CSS and JS and runs the server with Forever.
When you see the following, it's done and you can visit.
Note: If you are running this in production, you want to run it in behind https and tell the app you are doing so one of two ways:
NEWSLYNX_ENV=https
https: truein your
~/.newslynx/config.yamlfile
This will make sure your cookies are set securely.
#################################### HTTP listening on 0.0.0.0:3000... # ####################################
Alternate commands are in
package.json under
scripts.
If you want to modify files and have the CSS and JS re-compiled automatically and the server restarted if necessary, do:
npm run dev
If you just want to watch the CSS and JS and re-compile when on change, do:
npm run watch-files
If you just want to watch the Express server and restart when its files change (templates, server js files), do:
npm run watch-server
These last two commands are best run in tandem in two separate shell windows.
npm run dev does them both in one window for convenience.
The final command listed is
npm test, which will run a simple test to make sure the server can launch.
This documentation will explain the architecture and design patterns in use in the Express app and each section's Backbone app.
The NewsLynx app has two main components:
The front-end code communicates with the Express side through Express routes as defined in
lib/routes/. Probaby the most important route is the one that redirects any URL that starts with
/api/ to the api endpoint and returns a JSON response.
The main Express app file is [
lib/app.js]. This file glues all the Express middleware together such as sessioning, cookies, routes and determines some logic for which routes require authentication.
To run the app, you can start it from the command line through the file
bin/ by providing the
run argument like so:
./bin/ run
It defaults to port
3000 but that can be changed with a second argument
./bin/ run 3001
In production and development, however, we run the server with Forever and Nodemon, respectively. These tools have better support for keeping a NodeJS server alive for long periods of time. Nodemon is used in development since it can restart the server whenever files are modified.
Templates are written in Jade and found in [
lib/views/]. They extend from
lib/views/layout.jade which specifies "blocks" that subviews will insert themselves into. Here's what
layout.jade looks like:
doctype html html head title NewsLynx | = info.title block css link(rel='stylesheet', href='/stylesheets/octicon/octicons.css') link(rel='stylesheet', href='/stylesheets/css/#{info.page}.css') body(data-section="#{info.page}") #main-wrapper block main-wrapper-contents #global-loading block bootstrap-data block templates block scripts
Note: If you open up
layout.jade you'll see it has all of this ugly JavaScript describing menu items like
Copy,
Paste and
Reload. This is to construct menu items for the Desktop application so we're skipping that here.
You can see two variables here,
title and
page. These are important, since, as you can see, that variable name determines what CSS file is loaded, which we'll explain more in the StyleSheets with Stylus section below. Generally, you can see that a page-specifi variable name will determine which CSS file we load. These variables match exactly the route name, for example, when you go to
/settings,
info.title is set to
Settings in
lib/routes/pages.js near line 103, which is then run through the
sanitize function, which will put it in lowercase and replace spaces with dashes. We'll then fetch the file at
/stylesheets/css/settings.css.
A page data attribute is also set on the body, which is used for loading page-specific JavaScript files and is discussed below in How page-specific JavaScript is loaded.
So, with this main
layout.jade file, we then have page-specific jade files which insert blocks. Each of these inherit from
lib/views/page.jade
Here's what that file looks like:
extends layout block main-wrapper-contents include includes/left-rail/index.jade #drawer(data-loading="true") block drawer #content(data-loading="true") block content
Take a look at
lib/views/settings.jade for an example of a "Page" layout file, which inserts code into the
drawer block, or the
content block.
Every API call must include
org and
apikey query parameters. Read more in the Newslynx Core documentation for more specifics. As far as the App is concerned, all user login operations are handled by routes in
lib/routes/organizations.js.
Logging in is done by sending a POST request to
/login containing the following data:
The
remember_me value is set via a checkbox, which will serialize to
on if checked and falsey if not. That value will set the
maxAge of the session cookie to the distant future so that a user does not need to enter their information until they logout.
You can see it's also doing a few things with this
redirect_url business. The idea here is that if you have not authenticated, and you want to go to, says,
/articles, you will be redirected to login. After you login, the expectation is that you will proceed to where you originally intended. To do that is both simple and complicated.
The simple part is that you can stash the incoming url on the
req.session object, which is what we do initially in
app.js near line 93. That url won't include anything in the hash, however, because the server never receives that information — it considers it below its station, it is the domain of the client and must not rise to such peaks.
For example, if we go to
/articles#detail, Express only sees
/articles as the page. This is better than nothing, though, so we save it as
req.session.redirect_page. So how do we save the
# stuff?
The complicated part is that we can save the hash client-side once we get to the login page by putting in some javascript that writes the hash to a hidden input field. When we submit our login form, we also submit the page where we intended to go. The jade template inserts that markup below the
.form-row label input('); }
Note How we don't stash this if we are on the
logout page since we would be redirected to logging out.
So if we want to go to the
/articles#detail page, the object we POST actually looks like this:
Notice how it thinks we want to go to the login page, plus our original hash, even though we requested
/articles#detail. This is because the
document.location.href is executing on the login page. So it preserves our hash but not the page!
Putting two and two together, Express was able to store the page, but not the hash. The client can store the hash, but not the original page. The rest of the code in our login POST endpoint replaces the
/login with our previously saved page. Phew!
This request is then forwarded to the almighty auth.relay function, which handles communication with the Core API. It deserves a few words.
All communication with the Core API is handled throgh
lib/utils/auth.js. For logging in this, means setting data under
auth. More generally, it adds our apikey and org id from the session to sign each request and adds the API url, as set in our
config.yaml file, and always returns JSON. The file itself is heavily commented for what each part does specifically but as an overview, if the Express App wants to talk to the Core API, it goes through the relay.
The app keeps track of whether a user is logged in by setting a cookie on the person's browser with a Session ID.The Session ID stores the user's api key in a LevelDB database, which is written out to the
lib/db/ folder.
This whole process is largely abstracted thanks to the use of two libraries:
This process is configured in
lib/app.js. We include a flag for storing the session securely if we are in an https production environment, which is set as explained above in Getting started.
var sessInfo = { store: new LevelStore(path.join(__dirname, 'db')), secret: NEWSLYNX_CONFIG.app_secret_key, resave: true, saveUninitialized: true, unset: 'destroy', cookie: {secure: false} }; // If we are running in a secure environment if (app.get('env') === 'https' || NEWSLYNX_CONFIG.https === true) { app.set('trust proxy', 1) // Trust the first proxy sessInfo.cookie.secure = true }
Currently, on initial load for any of your main Pages, the Express app will make a bunch of calls to the API and package up this data as a global data object called
pageData. You can see how all this plays out in the
lib/routes/pages.js file.
We currently have an open issue to change this pattern so that Backbone collections fetch their own data on load. The advantage with this change is that the user will see the page change more quickly than with the current setup. For example, from the Home screen, if you click "Approval River," that data is all fetched asynchronously by the Express app but then your browser loads it all in one big object, which is why you hang on that Loading gif of Merlynne making potions a few seconds.
We built it this way, essentially, because that's the way we first set it up. The benefit of doing it this way is we are also doing a number of transformations on the data and the fact that we serialize the JSON data (i.e. convert it to a string and then back out to JSON) lets us not worry about mutating data in unexpected ways (because objects are passed by reference, not duplicated in JavaScript, you can easily modify an object in one place and unexpectedly see those changes reflected in elsewhere as well).
For example, our articles come back from the server with a list of Subject tag ids. We then hydrate these ids with the full subject tag info. If we weren't careful, we would really only have one copy of this object instead of multiple. The consequence of that is if we delete a subject tag off of one article, it would be removed from every article.
This problem is not insurmountable, but I explain it here to point out some of the advantages of the current system and things to keep in mind for shifting to another system.
All of the transformations are stored in
lib/utils/transform.js
The front-end JavaScript is written in separate files that are meant to be concatenated together and minified. We use Gulp to do this and watch those files for changes. Gulp also transforms our Stylus files into normal CSS files. Checkout the Gulpfile, which orchestrates all the events.
The final concatenated JavaScript file is saved to
lib/public/javascripts/main.bundled.js and that file is loaded in every page template. Let's look at the hierarchy of these javascript files, which are all in
This is the order in which the gulpfile concatenates them:
// ... js: [ './lib/public/javascripts/namespace.js', './lib/public/javascripts/helpers/*.js', './lib/public/javascripts/models/*.js', './lib/public/javascripts/collections/*.js', './lib/public/javascripts/views/*.js', './lib/public/javascripts/app/*.js', './lib/public/javascripts/routing/*.js', './lib/public/javascripts/init.js' ] // ...
Because these files are concatenated in alphabetical order, views or other files that are meant to be extended are given the file name prefix
AA_ to make sure they are loaded first.
Let's look at
namespace.js in particular, since that's the first file and it will give us some sense of the structure the rest of the files are built around. This file creates our top-level objects we'll be using throughout the app:
var helpers = {}; var templates = {}; var models = {}; var collections = {}; var app = {}; var views = {}; var routing = {};;
We'll look at these more in detail in the How page-specific JavaScript is loaded section. For now, just note how these main objects are what the rest of the files add functions and objects to.
For styles, gulp puts page-specific CSS files in the
css/ folder. This is discussed more in detail in the next section, Stylesheets with Stylus.
The app uses a CSS preprocessor called Stylus, which is a NodeJS package. These files are in
lib/public/stylesheets/. Each page has its own top level file such as
articles.styl,
home.style,
approval-river.styl etc.
Styles are broken into smaller files so they can be more easily reused across views. These are all in
lib/public/stylesheets/blueprint/. Even smaller stylus files that are reused across "blueprint" files are in the the
modules subfolder. The nested folder structure helps show which files are meant to be used as shared assets.
During the build process, the top level files for each page are written into the
css/ folder at
lib/public/stylesheets/css/. To bring it full circle, these files,
articles.css,
home.css,
approval-river.css are what
layout.jade calls based on the
info.page variable, as explained above.
link(rel='stylesheet', href='/stylesheets/css/#{info.page}.css')
As explained in the Build process with Gulp, the JavaScript is baked out into one file
main.bundled.js unlike the CSS files, which are page-specific. Which JavaScript functions get executed, however, is determined through the same
info.page variable.
In the main
layout.jade file, the HTML
<body> element gets a page-specific data-attribute like so:
body(data-section="#{info.page}")
When the JavaScript file are loaded, they call corresponding functions and the page-specific code gets executed. In the build process section, we discussed the order in which these files were concatenated,the last element in that list is the first file we look to to run our app,
init.js.
If you look at this file, you'll see that each of the objects in our
namespace.js has an
init object, that contain page-specific functions. When we load a page, we grab that data-attribute off of
<body> and that dictates which function groups to execute off of these objects.
In this way, the app's models, collections and views are instantiated by the main
init object at the bottom of this file, which looks like this:
var init = { go: function(){ // Call the page specific functions var section = $('body').attr('data-section'); // Their `this` should be the root object so you can still say `this.` even though you're nested in the object templates.init[section].call(templates); models.init[section].call(models); collections.init[section].call(collections); app.init[section].call(app); routing.init.go.call(routing, section); } } init.go();
The main view for each page is the
app.instance object.
The app uses the library
jquery.serializeJSON to turn all form elements into JSON objects. Check out the
getSettings function in
AA_BaseForm.js near line 541 for the details of that implementation.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. | https://openbase.com/js/newslynx | CC-MAIN-2022-27 | refinedweb | 2,760 | 64 |
Visual.
Visual Studio Features):
- Shell Editor. New Project Dialog supports multi-targeting. A new Tools Extension Manager which allows you to download new templates and other materials from VS Gallery directly from within VS.
- Code Focused. Enhancements to the editor.
- Office Programmability. To make Office programming easier with C# and VB, we’ve added the new ‘dynamic’ keyword, named parameters, and optional parameters. It makes writing calls into Office much easier and without having to deploy PIA.
- Language Improvements. VB now has automatic properties which removes the verbose syntax for get/set. VB also gets statement lambdas. Gone are the dreaded ‘_’ at the end of continuing statements. C# also has a set of new features including the dynamic keyword.
- F#. F# now ships with VS2010 which means you can start using the language as soon as you install.
-. Yes, Ted (my brother), it’s in there.
- Web Tools. Web tooling has been updated with this version including the addition of HTML snippets. JavaScript IntelliSense has also been updated for performance and accuracy. JQuery now ships with VS with great IntelliSense support.
- C++. Build support has been moved to MSBUILD. New project editors can be used to create your own build lab scripts. and more.
- Team Architect. Visual Studio Team Architecture has been updated to support standard UML (V2.1.1). Integrates with Team Foundation System. The Architectural Explorer allows you to browse through your namespaces and explore the structure of your application. You can check code flow using the sequence diagram.
- Test and Lab Manager. The tool (which is written using WPF and does not require the full Visual Studio install) allows you to manage both test cases as well as lab (virtualization) configurations. Test plans are easy to create, execute, and track.
- Team Foundation Server. TFS includes several new features including branch visualization and easier tracking of changes through the system. You can visualize your source hierarchy. Source annotations can be viewed back through the branches. You can visually see where changesets have been applied. Build automation now targets the new Workflow support in .NET Framework 4.0.
- TFS Reporting. Hierarchical work items are now supported in TFS and Excel and Microsoft Project. You can write your work items in rich text. TFS is the backing store for all work items and can be accessed via Visual Studio, Test and Lab Manager, as well as Office. TFS Web Access is updated with integration with Microsoft Office SharePoint Server (MOSS). You can edit your main portal as a user and add your own Webparts.
One More Feature | https://blogs.msdn.microsoft.com/usisvde/2009/05/19/visual-studio-2010-net-framework-4-0-beta-1-available-through-microsoft-download/ | CC-MAIN-2017-47 | refinedweb | 428 | 59.9 |
*
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
|
Flagged Topics
|
Hot Topics
|
Zero Replies
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
inheritance
mani maran
Greenhorn
Joined: Dec 29, 2000
Posts: 1
posted
Dec 29, 2000 07:09:00
0
could u please explain about abstract class?
Patrick Lentz
Greenhorn
Joined: Oct 04, 2000
Posts: 23
posted
Dec 29, 2000 07:47:00
0
Hmmm, how to explain this in short. I would advice to buy a book like Sams Teach Yourself Java 2 or something of the like (I think Sams has good beginners books). Anyways, back to that abstract class.
First of all, you cannot create an object from an abstract class. Why not? Because an abstract class has at least one method in it that is abstract, in other words it has no implementation. An abstract method has a name followed by a semicolon and no implementation.
So,it's really easy to make an abstract class..all you need to do is for instance ad an abstract method and this automactically makes the whole class abstract.
What would this be usefull for?
Well, let's say you have an abstract class Shape. It has some methods with implementation, but also an abstract method Draw.
Now you make a couple of classes that extend themselves from Shape, namely Circle and Triangle. Since they inheritd all the methods from Shape, you make sure this way that they both have the method Draw, but they both need to implement the method themselve. In other words you need to make them concrete by writing code inside the Draw method for these classes. And for a Circle drawing itself this would be different than when you want a Triangle to draw itself.
So, the main use....to make sure that classes that are inherited from the abstract classes will know methods that are in the abstract class (and which have their own implementation).
Hope this makes things a bit clearer. Good luck
Patrick
Sean MacLean
author
Ranch Hand
Joined: Nov 07, 2000
Posts: 621
posted
Dec 29, 2000 07:58:00
0
An abstract class is a class that (ussually) contains an abstract method. An abstract class cannot be instantiated so it only becomes useful when you
extend
it with another class. So we have an abstract class with an abstract method and a class that extends the abtract class. The class that extends the abstract class
must
define the abstract method. Therefore, if you have a bunch of classes in which you want to have a particular method included, then create an abstract super class that contains the method as a abstract method and then have all the other classes extend this class. The result of doing this has another benefit. If you have several types of classes that are related (say in a list) and you want to process them, you can cast them to the super (abstract) class and then call the abstract method. Since all of the sub classes must implement this method, then you know that it must be available.
Often this type of thing is done using an interface because once you extend your custom abstract class you cannot extend any other classes. You can, however, implement interfaces until the cows come home. Have a look a
this
Java Ranch tutorial for a discussion on this. I hope this gives you a bit of a head start on abstract classes
Sean
Jacquie Barker
author
Ranch Hand
Joined: Dec 20, 2000
Posts: 201
posted
Jan 01, 2001 09:23:00
0
Here's a passage from my book, Beginning Java Objects, which explains abstract classes (taken from Chapter 7 - copyright 2000 Jacquie Barker) - I hope it helps!
(Unfortunately, when I pasted in the excerpt from the book, the indentation of all code examples was lost ...)
Abstract Classes
We learned in Chapter 5 how useful it can be to consolidate shared features - attributes and methods - of two or more classes into a common superclass, a process known as generalization. We did this when we created the Person class as a generalization of Student and Professor and then moved the declarations of all of their common attributes (name, address, birthdate) and methods (the 'get' and 'set' methods for each of the shared attributes) into this superclass. By doing so, the Student and Professor subclasses both became simpler, and we eliminated a lot of redundancy that would otherwise have made maintenance of the SRS much more cumbersome.
There is one potential dilemma to be dealt with when creating a superclass after the fact: if all of the classes that are to be subclasses of this new superclass happen to have defined methods with the same signature, but with different logic, which version of the method, if any, should be propagated up to the parent? Let's use a specific example: say that long before it occurred to us to create a Person superclass, a requirement arose to devise a method for both the Student and Professor classes to compute their respective monthly salaries (we are assuming that students work for the university as teaching assistants or as research fellows). We decided that the signature of this method would be as follows:
public float computePaycheck(int hoursWorked);
o In the case of a professor, his/her salary is based on the number of hours worked in a given month multiplied by an hourly wage.
o In the case of a student, his/her salary is a fixed monthly stipend, but is only paid if the student worked more than a certain minimum number of hours during the month.
We then implemented the computePaycheck() methods for these two classes, the code or which is shown below:
class Professor {
String
name;
String ssn;
float hourlySalary;
// etc.
// Get/set methods omitted ...
public float computePaycheck(int hoursWorked) {
return hoursWorked * hourlySalary;
}
}
class Student {
String name;
String ssn;
float monthlyStipend;
int minimumRequiredHours;
// etc.
// Get/set methods omitted ...
// Same signature as for the Professor class, but different
// internal logic.
public float computePaycheck(int hoursWorked) {
if (hoursWorked > minimumRequiredHours)
return monthlyStipend;
else return 0.0;
}
}
At some later point in time, we decide to generalize these two classes into a common superclass called Person. We can easily move the common attributes (name, ssn) and their get/set methods out of Student and Professor and into Person, but what should we do about the computePaycheck() method?
o We could provide a generic computePaycheck() method with the same exact signature in Person, and then allow the Professor and Student classes' specialized versions of the method to effectively override it. But, this raises the question, why even bother to code the internal processing details of a computePaycheck() method in Person if both Student and Professor have already in essence overridden it? The answer to this question depends on whether you plan on instantiating the Person class directly. That is,
o If you plan on creating objects of generic type Person in your application - objects which are neither Students nor Professors - then the Person class may indeed need a computePaycheck() method of its own, to perform some sort of generic paycheck computation.
q On the other hand, if you only plan on instantiating the Student and Professor classes, then going to the trouble of programming the internal processing details of a method for Person that will never get used does indeed seems like a waste of time.
o If we know that we are not going to instantiate Person objects, then another option would be to leave the computePaycheck() method out of the Person class entirely. Both Student and Professor would then be adding this method as a new feature above and beyond what they inherit from Person, versus inheriting and overriding the method. The shortcoming of this approach is that we lose the ability to guarantee that all future Person objects will understand the message for computing their paychecks. If another subclass of Person is created in the future (say, AdministrativeStaffMember), and the designer of that class isn't aware of the need to provide for a computePaycheck() method, then we'll wind up with a situation where some Person objects will understand a message like:
p.computePaycheck(40);
and others will not. We'll therefore lose the advantage of
polymorphism
: namely, being able to create a collection of all different types of Person objects, and to iterate through it to compute their paychecks, because even though an AdministrativeStaffMember is a Person, it doesn't know how to respond to a request to perform this service.
Before we try to make a final decision on how to approach the computePaycheck() method, let's consider a different set of circumstances.
The preceding example explored a situation where the need for generalization arose after the fact; now let's look at this problem from the opposite perspective. Say that we have the foresight to know that we are going to need various types of Course objects in our SRS: lecture courses, lab courses, independent study courses, etc. So, we want to start out on the right foot by designing the Course (super)class to be as versatile as possible to facilitate future specialization.
We might determine up front that all Courses, regardless of type, are going to need to share a few common attributes:
String courseName;
String courseNumber;
int creditValue;
CollectionType enrolledStudents;
Professor instructor;
as well as a few common behaviors:
establishCourseSchedule()
enrollStudent()
assignProfessor()
Some of these behaviors may be generic enough so that we can afford to program them in detail for the Course class, knowing that it is a pretty safe bet that any future subclasses of Course will inherit these methods 'as is' without needing to override them:
class Course {
String courseName;
String courseNumber;
int creditValue;
Collection enrolledStudents;
Professor instructor;
// Get/set methods omitted ...
public boolean enrollStudent(Student s) {
if (we haven't exceeded the maximum allowed enrollment)
enrolledStudents.add (s);
}
public void assignInstructor(Professor p) {
instructor = p;
}
}
However, other of the behaviors may be too specialized to enable us to come up with a useful generic version. For example, the rules governing how to schedule class meetings may be class-specific:
o A lecture course may only meet once a week for 3 hours at a time;
o A lab course may meet twice a week for 2 hours each time; and
o An independent study course may meet on a custom schedule agreed to by a given student and professor.
So, it would be a waste of time for us to bother trying to program a generic version of the establishCourseSchedule() method at this point in time. And yet we know that we'll need such a method to be programmed for all subclasses of Course that get created down the road. How do we communicate the requirement for such a behavior in all subclasses of Course and, more importantly, enforce its future implementation?
OO languages such as Java come to the rescue with the concept of abstract classes. An abstract class is used to enumerate the required behaviors of a class without having to provide an explicit implementation of each and every such behavior. We program an abstract class in much the same way that we program a regular class, with one exception: for those behaviors for which we cannot (or care not to) devise a generic implementation - e.g., the establishCourseSchedule() method in our preceding example - we are allowed to specify method signatures without having to program the method bodies. We refer to a 'codeless', or signature-only, method specification as an abstract method.
Beginners often confuse the term 'abstract class' with 'abstract data type' because the terms sound the same. But, ALL classes - abstract or not - are abstract data types, whereas only certain classes are abstract classes.
So, we can go back to our Course class definition, and add an abstract method as highlighted below:
class Course {
String courseName;
String courseNumber;
int creditValue;
CollectionType enrolledStudents = new CollectionType ();
Professor instructor;
public boolean enrollStudent(Student s) {
if (we haven't exceeded the maximum allowed enrollment)
enrolledStudents.add(s);
}
public void assignInstructor(Professor p) {
instructor = p;
}
// Note the use of the 'abstract' keyword.
public abstract void establishCourseSchedule (String
startDate, String endDate);
}
Note that the establishCourseSchedule() method signature has no curly braces following the closing parenthesis of the argument list. Instead, the signature ends with a semicolon (
- that is, it is missing its 'body', which normally contains the detailed logic of how the method is to be performed. The method signature is explicitly labeled as 'abstract', to notify the compiler that we didn't accidentally forget to program this method, but rather that we knew what we were doing when we intentionally omitted the body.
By specifying an abstract method, we have:
o Specified a service that objects belonging to this class (or one of its subclasses) must be able to perform;
o Detailed the means by which we will ask them to perform this service by providing a method signature, which as we learned in Chapter 4 controls the format of the message that we will pass to such objects when we want them to perform the service; and
o Facilitated polymorphism - at least with respect to a certain method - by ensuring that all subclasses of Course will indeed recognize a message associated with this method.
However, we have done so without pinpointing the private details of how the method will accomplish this behavior. That is, we've specified 'what' an object belonging to this class needs to be able to do without pinning down 'how' it is to be done.
Whenever a class contains one or more abstract methods, then the class as a whole is considered to be an abstract class. In Java, we designate that a class is abstract with the keyword 'abstract':
abstract class Course {
// details omitted
}
It isn't necessary for all methods in an abstract class to be abstract; an abstract class can also contain 'normal' methods that have both a signature and a body, known as concrete methods.
Abstract Classes and Instantiation
There is one caveat with respect to abstract classes: they cannot be instantiated. That is, if we define Course to be an abstract class in the SRS, then we cannot ever instantiate generic Course objects in our application. This makes intuitive sense:
o If we could create an object of type Course, it would then be expected to know how to respond to a message to establish a course schedule, because the Course class defines a method signature for this behavior.
o But because there is no code behind that method signature, the Course object would not know how to behave in response to such a message.
The compiler comes to our assistance by preventing us from even writing code to instantiate an abstract object in the first place; if we were to try to compile the following code snippet:
Course c = new Course(); // Impossible! The compiler will
// generate an error
// on this line of code.
// details omitted ...
// Behavior undefined!
c.establishCourseSchedule('01/10/2001', '05/15/2001');
we'd get the following compilation error on the first line:
class Course is an abstract class. It can't be instantiated.
While we are indeed prevented from instantiating an abstract class, we are nonetheless permitted to declare reference variables to be of an abstract type:
Course x; // This is OK.
x = new Course(); // Error - Course is an abstract class!
Why would we even want to declare reference variables of type Course in the first place if we can't instantiate objects of type Course? It has to do with supporting polymorphism; we'll learn the importance of being able to define reference variables of an abstract type when we talk about Java collections in depth in Chapter 13.
Inheritance and Abstract Classes
An abstract class may be extended to create subclasses, in the same way that a 'normal' class can be extended. Having intentionally created Course as an abstract class to serve as a common 'template' for all of the various course types we envision needing for the SRS, we may later derive subclasses LectureCourse, LabCourse, and IndependentStudyCourse. Unless a subclass overrides all of the abstract methods of its abstract superclass with concrete methods, however, it will automatically be considered abstract, as well. That is, a subclass of an abstract class must provide an implementation for all inherited abstract methods in order to 'break the spell' of being abstract.
In the following code snippet, we show these three subclasses of Course; of these, only two - LectureCourse and LabCourse - provide implementations of the establishCourseSchedule() method, and so the third subclass - IndependentStudyCourse - remains an abstract class and hence cannot be instantiated.
class LectureCourse extends Course {
// All attributes are inherited from the Course class;
// no new attributes are
// added.
public void establishCourseSchedule (String startDate,
String endDate) {
// Logic would be provided here for how a lecture course
// establishes a course schedule; details omitted ...
}
}
class LabCourse extends Course {
// All attributes are inherited from the Course class; no
// new attributes are
// added.
public void establishCourseSchedule (String startDate,
String endDate) {
// Logic would be provided here for how a lab course
// establishes a
// course schedule; details omitted ...
}
}
class IndependentStudyCourse extends Course {
// All attributes are inherited from the Course class;
// no new attributes are
// added, and we don't override the establishCourseSchedule()
// method in this subclass, either.
}
If we were to try to compile the above code, the Java compiler would force us to flag the IndependentStudyCourse class with the keyword 'abstract'; that is, we'd get the following compilation error:
Class IndependentStudyCourse must be declared abstract. It does not define void establishCourseSchedule (String, String) from class Course.
We've just hit upon how abstract methods serve to enforce implementation requirements! Declaring an abstract method in a superclass ultimately forces all derived subclasses to provide class-specific implementations of the abstract methods; otherwise, the subclasses cannot be instantiated.
------------------
author of:
Beginning Java Objects
[This message has been edited by Jacquie Barker (edited January 01, 2001).]
Author of
Beginning Java Objects
,
Beginning C# Objects
, and
Taming the Technology Tidal Wave
Peter Tran
Bartender
Joined: Jan 02, 2001
Posts: 783
posted
Jan 02, 2001 08:53:00
0
Jacquie Barker does a great job explaining your initial question regarding "abstract classes." One thing I found missing in all the replies are the difference between an interface and an abstract class. Personally, I think it's important to be able to determine during design when one should choose to use an interface vs an abstract class.
I won't go over an abstract class again, because Jacquie reply is more than adequate.
An interface is very similar to an abstract class. From the Java Tutorial, "A Java interface defines a set of methods but does not implement them. A class that implements the interface agrees to implement all of the methods defined in the interface, thereby agreeing to certain behavior." See,
The thing you have to remember, is that no implementation is provided at all for any of the methods in an interface. An interface just provides method signatures. Furthermore, any instance reference are required to be constants. This is done by declaring them "final static."
E.g. public final static double PI=3.14.
Why then would you want to use an interface rather than an abstract class?
1. JAVA only allows single inheritance, so you can't extend from multiple abstract class. You can however, implement as many interfaces as you want.
Should you then make everything an interface?
2. No. Only use interface when it makes sense to do so. If you have a legitimate design calling for an abstract class, then use one. My rule of thumb is always asking myself, is there an "is-a" relationship between my classes. If yes, then I use an abstract class. For example (borrowing from Jacquie example), "is-a" Student a Person? "is-a" Professor a Person? (Sometime I answer "no" for the last question. :-))
3. Use an interface when you have methods that you want a class to implement. This is really useful for cases where you hava a collection of classes, but you don't know the detail of the implementation. Here's a contrived example,
interface IChildren {
public void printChildren();
};
class People implements IChildren {
public void printChildren() {
System.out.println("One per year.");
}
};
class Rabbit implements IChildren {
public void printChildren() {
System.out.println("Many per year.");
}
};
public class ContrivedExample {
public static void main(String[] argv) {
java.util.List list = new
java.util.ArrayList
();
list.add(new People());
list.add(new Rabbit());
// We can enumrate through the list, and not worry
// about the actual class type if we use the interface.
for (int i = 0; i < list.size(); ++i) {
IChildren Obj = (IChildren)list.get(i);
Obj.printChildren();
}
}
};
In summary, use an interface for the following reasons (again borrowed from the JAVA Tutorial):
* Capturing similarities between unrelated classes without artificially forcing a class relationship. See above example, there are no similarities between class People and class Rabbit.
* Declaring methods that one or more classes are expected to implement.
I agree. Here's the link:
subject: inheritance
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
JForum
|
Paul Wheaton | http://www.coderanch.com/t/387546/java/java/inheritance | CC-MAIN-2014-41 | refinedweb | 3,539 | 57.1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.