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 |
|---|---|---|---|---|---|
I have to make my own turtle class without using the "from turtle import *" line.
This is the code i have so far:
from graphics import * class Turtle: '''The turtle''' def __init__(self, win, defstep, defwidth, defangle, startpt, startangle): '''initialize the turtle - win: window to draw - defstep: default stepsize - defangle: default angle - startpt: the starting position - startangle: the starting orientation angle ''' pass def step(self, penDown): '''make a step (draw if penDown==True) and update the state''' pass def rotate(self, angle): pass def scale(self, scalefactor): pass def draw(self, str): line = Line ( firstPoint, secondPoint) line.setWidth(self.state.width) line.draw(self.win) '''This function does the interpretation of the LS string str. Loop over characters in the str using the parseArg function. Every call to parseArg will return three values c,par,nextindex. Decide what to do for every character c (and use the right argument if an argument was given and found in the string). To draw a line: line = Line( firstPoint, secondPoint) line.setOutline(r,g,b) line.setWidth(self.state.width) line.draw(self.win) This is also the function where you need the Stack class. When you encounter the '[' character you have to push the state and when you encounter the ']' character you have to pop a state from the stack. Please be aware not to push a reference to the state on the stack (you will be overwriting it). I advise to have a method clone in the State class that really makes a new state object that you can safely push on the stack. ''' pass
Do any of you have any tips on how to start this? | https://www.daniweb.com/programming/software-development/threads/433856/how-to-make-my-own-turtle-class | CC-MAIN-2021-17 | refinedweb | 276 | 67.28 |
hello
can anyone help me in telling how to make video chat possible in java web anyone help me in telling how to make video chat possible in java web application??
Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.
Thanku
I have gone through all the details.
Can you please reply to my query.
--- Update ---
you there?
One good source for learning java is the tutorial. This link indexes many topics:
The Really Big Index
But I want to now about video chat in java
--- Update ---
can u please help me out of this?
--- Update ---
can u please help me out of this?
That is too complicated a project for someone that wants to learn java.
Start with the basics and build your knowledge before trying something so complicated.
Actually I m good with my basics
I just want to learn how to do chatting using java..
can u please help to guide is this possible with socket programming?
I think sockets can be used to send and receive data between internet sites.
So Is there any other option to make live chat?
and how can we do live video chating?
Sockets are a basic class. Other classes build on them. I imagine that someone has written some higher level classes and methods that will help you. Those classes are not part of Java SE. You'll have to do a search on the internet to see what is available.
Are you saying that these classes are a part of the java EE
The Socket class is part of the Java SE. Not the others.
But we can do socket programming in advanced java like in jsp and servlet for the web development
so i m asking that if we want to give a live audio video and text chat to the customers..how will we do that..Is this is possible by using Socket programing or can u give me a advice what should i do...please help its very urgent..
Sorry, video chat is too complicated. I don't know if I have seen code to do that.
There are lots of text chat examples here on the forum and on the internet. Do a Search for them.
Yes I got to know that when we connect java code with any hardware ( Web cam) then it will create many complications
--- Update ---
Do you now how to do send message from one user to another in java?
One way is to use Sockets.
After a quick google, I found that it is very possible for video chat and that many people have done this. Eether Java is really the best language... probably not, but i cant say. Try looking there for more info, but here is something particularly helpful ^.^
videochat - how to build a video chat program in java without jmf? - Stack Overflow
Can you send me the code of text chat using sockets?
Do a Search on this forum (or on the internet) for sample code.
I have searched but the code is not working..
Can you explain what "not working" means?Can you explain what "not working" means?the code is not working
If there are error messages, copy the full text and paste it here.
my server is not allowing connections
Sorry, I don't know anything about your server.
Thanks No problem
I will try...
Can you plz help me to run this codeCan you plz help me to run this code
Conversation started today
Neha Dhingra
17:47
Neha Dhingra
TcpClient.java
package tcpserver;
import java.io.*; import java.net.*;
public(); } }
TcpServer.java
import java.io.*; import java.net.*; public class TCPServer {
/** * @param args the command line arguments */( )); clientSentence = inFromClient.readLine(); System.out.println("Received: " + clientSentence); //capitalizedSentence = clientSentence.toUpperCase() + ":from server\n"; capitalizedSentence= "im grt\n"; // String sentence; BufferedReader inFromUser = new BufferedReader(new InputStreamReader(System.in)); // capitalizedSentence=inFromUser.readLine(); outToClient.writeBytes(capitalizedSentence); } } } | http://www.javaprogrammingforums.com/whats-wrong-my-code/36425-learn-java.html | CC-MAIN-2016-18 | refinedweb | 666 | 75.91 |
Namespacing is a must know for any JavaScript developer especially when your learning the basics, it’s essential you form a solid basis and know how to protect your code. I think a good way to start this off is by explaining what is is and giving you some examples of namespacing in JavaScript/jQuery.
What is namespacing?
In a nutshell, namespacing is a way to protect your code using javascript object literal notation to provide encapsulation. Minimizing your code’s footprint in this root scope by structuring your methods/data inside a single namespace should be the goal of every decent developer. The advantages are that you can name your variables whatever you like and not have to worry about some other code overwriting it’s value. In this post I’m going to show you nested object namespacing because this is the most common form of namespacing in jQuery.
Ok, lets dive straight into some examples.
You can paste any of these examples straight into the Firebug console to see what it does and play around with it.
This is a regular way to declare a function in JavaScript.
myFunction = function() { console.log('running myFunction...'); }; myFunction(); //function call
Now the problem with this, is any other code could also declare a function call “myFunction” and this would overwrite yours! Not good. So what’s the solution? You guessed it, namespacing!
A basic namespace
Here is how you would create a basic namespace to protect your function:
;MYNAMESPACE = { myFunction: function() { console.log('running MYNAMESPACE.myFunction...'); } } MYNAMESPACE.myFunction(); //function call
Now, nothing can overwrite your function and everything is contained within a namespace called “MYNAMESPACE”. To call your function you simply include the namespace before the function.
Naming your space
Ok, so you have looked at the code above and wondered why the namespace is all capitals. It’s my preference to keep namespaces in capitals because they are JavaScript referenced objects, but this depends on your personal or work coding practices. It’s also a good to keep them short as possible so I probably should have called my namespace “NS” or such (This is because namespaces can get long when chained together, we’ll go through this later on in the post).
A namespace with multiple functions
You can also declare variables and more functions, as many as you like. All of which are “local” to that namespace (it sort of acts like a controller to that code). Just remember the syntax changes within namespaces because you are referencing an object literal so you need to add commas after each statement instead of semi-colons.
;MYNAMESPACE = { name: 'MYNAMESPACE', myFunction1: function() { console.log('running MYNAMESPACE.myFunction...'); }, myFunction2: function() { console.log('running MYNAMESPACE.myFunction...'); } } console.log(MYNAMESPACE.name); //variable call MYNAMESPACE.myFunction1(); //function call MYNAMESPACE.myFunction1(); //function call
A namespaces inside a namespace
Now your thinking what about a namespace inside a namespace, sort of a sub-namespace. Yes, this is also possible you would just need to make sure your main namespace is declared beforehand, like this:
;var MYNAMESPACE = {}; MYNAMESPACE.SUBNAME = { myFunction: function() { console.log('running MYNAMESPACE.SUBNAME.myFunction...'); } } MYNAMESPACE.SUBNAME.myFunction(); //function call
A self encapsulated jQuery namespace structure
Ok, now suppose you wanted to use a self encapsulated jQuery function (also known as an “anonymous function“, or “self executing function”) to wrap around your namespace but you want to be able to reference your objects, functions and variables held within.
Firstly, you would need to declare the namespace outside the enclosing function to make the object assessable from outside, like so:
;var MYNAMESPACE = {};
If you don’t create the variable in the outer scope you will surely see the following error: ‘ReferenceError: MYNAMESPACE is not defined’.
This is the full structure of the code which has full encapsulation using namespacing and includes the dollar sign ($) for use with jQuery code only inside the enclosed jQuery function to prevent naming conflicts with other frameworks.
;var MYNAMESPACE = {}; ;(function($) { MYNAMESPACE.SUBNAME = { myFunction: function() { console.log('running MYNAMESPACE.SUBNAME.myFunction...'); } } })(jQuery); MYNAMESPACE.SUBNAME.myFunction(); //function call
Using the window scope alternative
Passing through parameters to anonymous functions, like jQuery – is awesome because in your case its lets you use $ even if jQuery.noConflict() is set. So in that sense it would make perfect sense if your code in your namespace used ‘$’.
You could actually still stick all the code inside the self executing function by just assigning MYNAMESPACE to the window scope (same effect as using var in the global scope above). Then you have your encapsulation and you’re free to use $.
;(function($) { // declare var in global scope window.MYNAMESPACE = {}; MYNAMESPACE.SUBNAME = { myFunction: function() { console.log('running MYNAMESPACE.SUBNAME.myFunction...'); } } })(jQuery); MYNAMESPACE.SUBNAME.myFunction(); //function call
That’s it! I hope you learnt something about namespacing in JavaScript/jQuery. If not, please feel free to leave a comment. Next post, i’ll look into event namespacing, which is awesome.
Pingback: 10 jQuery Developer Tips to Improve you | Developers Blog()
Pingback: 5 Different Ways to Declare Functions in jQuery | jQuery4u()
Pingback: 5 jQuery.each() Function Examples | jQuery4u()
Pingback: jQuery output array in random order | jQuery4u()
Pingback: The Fascade JavaScript Design Pattern | jQuery4u()
Pingback: A Basic jQuery Plugin using the Module Pattern | jQuery4u()
Pingback: BizSugar.com() | http://www.sitepoint.com/jquery-function-namespacing-plain-english/ | CC-MAIN-2015-35 | refinedweb | 874 | 54.22 |
This article showcases my AMS.ADO class library, which contains a set of classes used for executing database commands without the need for the typical connection management code. The classes are implemented into two separate assemblies -- one for .NET 2.0 (to take advantage of generics), the other for .NET 1.1 -- and are available for the four main providers: SQL Server, OLEDB, ODBC, and Oracle. Enjoy!
When you want to run a database query or stored procedure, you typically follow the same set of steps every time:
CommandType
StoredProcedure
The code in C# typically looks like this:
using System.Data.SqlClient;
...
using (SqlConnection conn = new SqlConnection(connectionString))
{
SqlCommand command = new SqlCommand("spUpdateDescription", conn);
command.CommandType = CommandType.StoredProcedure;
command.Parameters.Add("@ID", id);
command.Parameters.Add("@Description", description);
conn.Open();
command.ExecuteNonQuery();
}
or in VB.NET 1.1:
Imports System.Data.SqlClient
...
Dim conn As New SqlConnection(connectionString)
Dim command As New SqlCommand("spUpdateDescription", conn)
command.CommandType = CommandType.StoredProcedure
command.Parameters.Add("@ID", id)
command.Parameters.Add("@Description", description)
Try
conn.Open()
command.ExecuteNonQuery()
Finally
conn.Dispose()
End Try
This logic needs to be repeated pretty much everywhere a query or stored procedure is executed. The reason is that the connection needs to be carefully managed so that it's opened and used only for the time required to access the database. Since this is a manual process, it's possible to inadvertently forget to close a connection after it's been used, which may cause the pool of connections to eventually reach its limit.
My solution to these issues is to wrap the four main IDbCommand classes (SqlCommand, OleDbCommand, OdbcCommand, and OracleCommand) into two sets of classes, which handle the connection management details behind the scenes for me.
IDbCommand
SqlCommand
OleDbCommand
OdbcCommand
OracleCommand
The two classes are called SQL and StoredProcedure. They reduce the above six steps down to three:
SQL
So, the above code looks like this in C#:
using AMS.ADO.SqlClient;
...
StoredProcedure sp = new
StoredProcedure("spUpdateDescription", connectionString);
sp.Parameters.Add("@ID", id);
sp.Parameters.Add("@Description", description);
sp.ExecuteNonQuery();
or in VB.NET:
Imports AMS.ADO.SqlClient
...
Dim sp As New StoredProcedure("spUpdateDescription", connectionString)
sp.Parameters.Add("@ID", id)
sp.Parameters.Add("@Description", description)
sp.ExecuteNonQuery()
The same logic is now in five clear and simple lines of code, instead of ten (or twelve for VB.NET 1.1), with database access and connection management code mixed together. What a difference!
And it's not just the reduction in code, it's also not having to worry about leaving a connection open inadvertently. As you probably guessed, my ExecuteNonQuery creates and opens the connection, calls the real ExecuteNonQuery, and then closes the connection before returning the results. So, all that repetitive code is now where it should be: hidden away.
ExecuteNonQuery
The above example is a simple (but realistic) case of writing to the database via a stored procedure. Since I pass a connection string to the constructor, the class creates and maintains the connection internally. If I had passed a connection object instead, it would have left it in the same open/closed state as it found it before the call to ExecuteNonQuery.
The StoredProcedure class derives most of its functionality from the SQL class. It's designed to eliminate the extra call to set the CommandType to StoredProcedure and to make it easy to search for stored procedure calls inside the code. The SQL class is designed for executing general SQL statements or queries (CRUD) against the database.
Let's look at another example, this time using the SQL class to execute a SELECT query in C#:
using AMS.ADO.SqlClient;
using System.Data.SqlClient;
...
using (SQL sql = new SQL("SELECT Description FROM" +
" SomeTable WHERE ID = @ID", connectionString))
{
sql.Parameters.Add("@ID", id);
for (SqlDataReader reader = sql.ExecuteReader(); reader.Read(); )
{
string description = reader.GetString(0);
...
}
}
Imports AMS.ADO.SqlClient
Imports System.Data.SqlClient
...
Dim sql As New SQL("SELECT Description FROM" & _
" SomeTable WHERE ID = @ID", connectionString)
sql.Parameters.Add("@ID", id)
Try
Dim reader As SqlDataReader = sql.ExecuteReader()
While reader.Read()
Dim description As String = reader.GetString(0)
...
End While
Finally
sql.Dispose()
End Try
Did you notice something missing? That's right, the connection object is nowhere to be seen! You only see what you care about: running the query and retrieving the results.
In this case, the ExecuteReader creates and opens the connection before calling the real ExecuteReader. Then, when I dispose off the SQL object (or close the reader), the connection gets closed automatically.
ExecuteReader
Both classes, SQL and StoredProcedure, are well documented in the downloadable help file (AMS.ADO.chm zipped), which I created based on the XML comments inside the code (with the NDoc tool).
As I mentioned before, I created a separate set of these classes for the four main data providers available in .NET today. The classes are named the same (SQL and StoredProcedure) but they're distinguished by the namespace they belong to:
AMS.ADO.SqlClient
AMS.ADO.OleDb
AMS.ADO.Odbc
AMS.ADO.OracleClient
I initially wrote the code in C# 2.0 so that I could take advantage of generics. The idea was to have a single generic base class for all data providers since the code would be the same except for the type names. I named my class "Command" (inside the AMS.ADO namespace) and declared it like this:
Command
AMS.ADO
public class Command<ConnectionClass, TransactionClass, CommandClass,
ParameterClass, ParameterCollectionClass, DataReaderClass,
DataAdapterClass> : ICommand
{
...
}
So now, the same class serves as base for all four data providers -- SQL Server, OLE DB, ODBC, and Oracle -- and additional providers (such as SQL Server CE) can easily be added in future. Generics rocks!
After I had written the code, I wanted to use something like a typedef that would allow me to define the corresponding classes for all providers in one line of code, sort of like this:
typedef
public typedef AMS.ADO.Command<SqlConnection, SqlTransaction,
SqlCommand, SqlParameter, SqlParameterCollection,
SqlDataReader, SqlDataAdapter> SQL;
Unfortunately, C# doesn't have a real typedef equivalent -- the using directive is not the same -- so I was forced to define each class explicitly, along with all the required constructors, since they're not inherited. In short, I had to do this:
using
public class SQL : AMS.ADO.Command<SqlConnection, SqlTransaction,
SqlCommand, SqlParameter, SqlParameterCollection,
SqlDataReader, SqlDataAdapter>
{
public SQL()
{
}
public SQL(string sql);
{
...
}
public SQL(string sql, string connectionString)
{
...
}
...
}
It wasn't much of a problem, but it's a clear example of how the absence of a language feature can make a significant difference. (In retrospect, I could have written this in C++, but I'm too attached to C#.)
After I had written the code, I discovered Visual Studio 2005's cool new "View Class Diagram" feature (by right-clicking on the project), and decided to generate it for my classes. Here's what ClassDiagram.cd looks like:
As you can see, my ICommand interface derives from System.Data.IDbCommand. I simply added a couple of extra properties and methods that I thought would be nice to have. Other than that, the Command-derived classes look very much like their .NET counterparts, so they're easy to pick up.
ICommand
System.Data.IDbCommand
After I had written and documented the code, I decided to generate the help file from the comments in the code. The only tool, I know of, that does it is NDoc, which as of this writing does not support generic types in .NET 2.0. I decided to shelve this project to see if a working version of NDoc would be released... but it never came. So, I finally decided to create a version of these classes for .NET 1.1. This would also allow those users who still haven't moved to .NET 2.0 to use these classes. Of course, the downside would be that I would have to create four new sets of classes, and duplicate the code in the Command class directly inside each one. Not a pretty sight, but it worked.
I created a separate Visual Studio .NET 2003 solution inside the NET 1.1 folder, where I copied the files into. I kept the same names across the board, for both classes and namespaces. The idea is that when you switch to .NET 2.0, you'll just need to reference the .NET 2.0 assembly and rebuild your project(s). No code changes will be required.
So the help file is based on the .NET 1.1 version, but it's applicable to both assemblies since the names are the same.
I tested my code using the popular NUnit tool -- csUnit was still not available for .NET 2.0.
I created a "Test" folder where I added "fixtures" for the SqlClient, OleDb, and Odbc classes. They all work with the local SQL Server database using Windows authentication, and automatically create a small database ("testAMSADO") along with a couple of tables and stored procedures.
Since the test source files depend on the nunit.framework assembly, I decided to exclude them from the solutions to eliminate the unnecessary dependency. The files are still there in case anyone's interested. Here's how I had it set up for the two assemblies:
The tests were great in helping me verify that the code worked as designed. I highly recommend testing low-level code with tools like NUnit.
The downloadable zip file contains both the .NET 1.1 and 2.0 versions of AMS.ADO.dll (named the same, under different folders), so be sure to use the one appropriate for your project.
If you want to minimize the size of the assembly (although it's only 24K), you can open the corresponding solution inside Visual Studio and exclude the source files that you don't need. For example, if you won't need Oracle or ODBC access, you can right-click on OracleClient.cs and Odbc.cs and select "Exclude From Project". Then, you can remove the reference to System.Data.OracleClient. As an alternative, you may wish to copy the individual .cs files to your own project to avoid adding yet another assembly to your distribution.
System.Data.OracleClient
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
Akaitatsu wrote:This is exactly the type of thing the Enterprise Library was created for. You might want to look into it.
DBCommandWrapper dbCommandWrapper = db.GetStoredProcCommandWrapper(sql)
Akaitatsu wrote:There is no sense in reinventing the wheel and the Enterprise Library was built using all the best practices prescribed by Microsoft.
Akaitatsu wrote:Best of all, it simplifies many stored procedure calls down to two lines of code.
DaveSadler wrote:In your examples, is this an actual connectionString or is it the name of a from the web.config?
string connectionString = System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"];
DaveSadler wrote:That's what i thought... I was just wondering if you had taken that repeated code and moved it into your class also. Might be a nice feature.
Config
public class Config
{
public static string ConnectionString
{
get
{
return System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"];
}
}
....
}
Alvaro Mendez wrote:No matter how fancy you choose to wrap it, changes are that you still end up using a Connection and Command object to actually perform your queries. Am I wrong?
Marc Clifton wrote:Well yes, but their not scattered throughout the code.
Marc Clifton wrote:So sure, I could use this class to interface to other db's, etc.,
Marc Clifton wrote:but there's more involved than just that. DB's have different wildcards, tokens, etc., so the SQL has to be built specific to the db engine as well.
Alvaro Mendez wrote:But I'm sure there are plenty of applications out there
Marc Clifton wrote:not scattered throughout the code
Marc Clifton wrote:used a preprocessor that automates loading the parameters from data objects in a specified container
Marc Clifton wrote:My latest work simply autogenerates the SQL as well
rudy.net wrote:Can you share a link on the following two subjects that you mentioned?
Tom Wright wrote:yes this is sucking up at it's finest).
Tom Wright wrote:by the way is there an example of how you are doing your DAL with XML?
General News Suggestion Question Bug Answer Joke Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages. | http://www.codeproject.com/Articles/12628/Stop-writing-connection-management-code-every-time?fid=253288&df=90&mpp=10&noise=1&prof=True&sort=Position&view=Normal&spc=Relaxed&select=1390434&fr=11 | CC-MAIN-2015-35 | refinedweb | 2,106 | 58.08 |
Hi, I've been mangling python-irclib into an asyncore class, so it fits in nicely with the rest of my app. I ran into a problem with asyncore.dispatcher_with_send (Python 2.3.4), though. Not sure if this is the right place to file a bug, but here goes: class dispatcher_with_send(dispatcher): def __init__(self, sock=None): dispatcher.__init__(self, sock) self.out_buffer = '' def initiate_send(self): num_sent = 0 num_sent = dispatcher.send(self, self.out_buffer[:512]) self.out_buffer = self.out_buffer[num_sent:] def handle_write(self): self.initiate_send() def writable(self): return (not self.connected) or len(self.out_buffer) def send(self, data): if self.debug: self.log_info('sending %s' % repr(data)) self.out_buffer = self.out_buffer + data self.initiate_send() I assumed that disp.send('chunkofdata') would merely put it in the out buffer until the socket is writable, but this isn't what happens. It tries to send() the data straight away, which can raise an exception... and since we're not inside the asyncore.write() function, handle_error is never called. Here's the fixed version that I've cobbled together: class buffered_dispatcher(asyncore.dispatcher): def __init__(self, sock=None): asyncore.dispatcher.__init__(self, sock) self.out_buffer = '' # We only want to be writable if we're connecting, or something is in our # buffer. def writable(self): return (not self.connected) or len(self.out_buffer) # Send some data from our buffer when we can write def handle_write(self): sent = asyncore.dispatcher.send(self, self.out_buffer) self.out_buffer = self.out_buffer[sent:] # We want buffered output, duh def send(self, data): self.out_buffer += data Hopefully this saves someone else half an hour of annoyance at some point :) Freddie | https://mail.python.org/pipermail/python-list/2004-July/274054.html | CC-MAIN-2019-30 | refinedweb | 273 | 63.25 |
We are about to switch to a new forum software. Until then we have removed the registration on this forum.
//hey, I'm probably not doing this right //is it cause I'm using the context of PGraphics and PImage mixed up?? //IM GETTING 7 FPS W/ I7 7700K AND 1070 sli //CPU AND GPU ARE NOT BEING PUSHED ///NEED HELP!!!!
import java.util.ArrayList; import KinectPV2.KJoint; import KinectPV2.*;
KinectPV2 kinect;
import processing.video.*;
Movie coral; PGraphics feedback;
void setup() { fullScreen(P2D, 2); feedback = createGraphics(1920,1080,P2D); background(0); //blendMode(ADD);
//Video stuff coral = new Movie(this, "CoralReef.mp4"); coral.loop();
//Kinect stuff kinect = new KinectPV2(this); kinect.enableBodyTrackImg(true); kinect.enableSkeletonDepthMap(true); kinect.init(); }
void movieEvent(Movie m) { m.read(); }
PImage kinectSil;
void draw() {
kinectSil = kinect.getBodyTrackImage();
kinectSil.filter(INVERT); kinectSil.loadPixels(); for (int i = 0; i < kinectSil.pixels.length; i++) { if (kinectSil.pixels[i] == color(0)) { kinectSil.pixels[i] = color(0, 0); } else { kinectSil.pixels[i] = color(255,255); } } kinectSil.updatePixels();
feedback.beginDraw(); feedback.image(kinectSil,0,0,1920,1080); feedback.blend(coral, 0, 0, coral.width, coral.height, 0, 0, coral.width, coral.height, MULTIPLY); feedback.filter(THRESHOLD); feedback.endDraw(); tint(255,10); image(coral,0,0,width,height); blend(feedback,0,0,feedback.width,feedback.height, 0, 0, width, height, LIGHTEST); fill(45); rect(0,0,150,54); textSize(30); fill(255); text(frameRate, 20,40); }
Answers
Edit your post (gear icon in the top right corner of your post), select your code and hit ctrl+o to format your code. Make sure there is an empty line above and below your code.
Minor suggestion: You are doing this
kinectSil.pixels[i] == color(0). Instead do this:
Also, could you comment why you are calling threshold, tint and blend in every cycle of draw? I would guess these operations are expensive. It is a guess as I am not able to reproduce your sketch. You can try commenting those lines one by one or all together to see if that is your bottleneck. However, keep in mind that performing these operation plus using larger mage sizes will limited the fps. There are few strategies. For example, only process every second (or fifth) image. Or use a smaller image (maybe resize?).
Kf
Thank you for your help! | https://forum.processing.org/two/discussion/23072/blend-and-filter-significantly-slow-down-1080p-video-fps-to-7-any-solutions | CC-MAIN-2020-45 | refinedweb | 382 | 62.04 |
CodePlexProject Hosting for Open Source Software
Hello Prism Team,
I've been diving into Prism for the past couple months, and I have to say I'm very very very impressed with what I've seen. Much has transpired since version 2 when I first reviewed the codebase.
Since you are currently looking into version 4.1, I wanted to throw out a request for consideration, namely breaking out functionality in the Prism assembly that can be used in other hosted application contexts (such as WCF-Hosted or Windows Services Applications).
Namely, I'm wondering if you could create a "Prism.Core" that would host all the non-WPF-specific functionality, such as:
You have a lot of really great stuff going on in these namespaces. I'd like to be able to leverage this functionality in other application contexts without having to reference WPF-specific libraries.
Thank you for any consideration,
Michael
Hi,
Thanks, for your suggestion. I believe you could create a work item proposing this changes in the
issue tracker so that the Prism team considers it for a future release.
Regards,
Agustin Adami
Done:
Thanks Agustin!
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later. | http://compositewpf.codeplex.com/discussions/285616 | CC-MAIN-2017-04 | refinedweb | 226 | 64.3 |
ftw.publisher.receiver 2.0.2
Staging and publishing addon for Plone contents.
Introduction
The ftw.publisher packages provide tools for publishing plone contents from one instance to another.
This package should be installed on the receiver instance. It provides tools for unserializing publishing requests and creating, updating or deleting objects. See the links below for further information.
Links
The main project package is ftw.publisher.sender since it contains all the configuration panels and the most tools - but without the other mandatory packages it will not work. Here are some additional links:
- Publisher packages on pypi:
- Main github project repository:
- Issue tracker:
- Wiki:
- Continuous integration:
Changelog
2.0.2 (2013-10-28)
- Fix getObjectbyUid for nonreferenceable objects. Drops Plone 4.0 support. [tschanzt]
2.0.1 (2013-09-02)
- Fix updateObjectPosition method. “_objects” does no longer exists. [mathias.leimgruber]
2.0 (2013-05-24)
- Fix non-blob image decoding. [jone]
- Dexterity support. [jone]
- Do not unserialize schema fields on plone site root. The plone site has no schema. [tschanzt]
- Implement better blob file detection (ftw.file support). [jone]
- Fix decoding blobs so that it does not use the old _process_input method. [jone]
- Removed archetypes.schemaextender, since we can use obj.Schema() for getting. [Julian Infanger]
- Plone 4 support, drop Plone 3. [jone]
1.3 (2011-04-06)
- Cleanup, move to github () and prepare for release. [jone]
- If an object will be moved from a public to a private area. And the move job fails because the target parent does not exist. It will raise a CouldNotMoveError an deletes the source object on the remote site. [mathias.leimgruber]
1.2 (2011-02-01)
- Implemented TDI (Turbocharged Direct Injection) :-) [mathias.leimgruber]
1.1 (2011-01-19)
- Fix problem, while move objects from a different path than transmitted. [mathias.leimgruber]
- Fixed “path wrong” problem by trying to rename or move objects which can’t be pushed because the are in a wrong place. [jone]
- Using new states from ftw.publisher.core. [jone]
- Implemented AfterCreatedEvent and AfterUpdatedEvent [mathias.leimgruber]
- Implemented PloneFormGen Creation - remove all auto generated files after formgen creation [mathias.leimgruber]
- Added string encoding / decoding methods which work with json [jone]
- Fixed fixed namespace_packages in setup.py [jone]
- The modification date is now re-set. The modification date of the parent object will not change. [jone]
- Fixed encoding problem: generally encoding anything received with utf8 [jone]
- Issue #977 Integration: Probleme mit dem Publizieren von Objekten [jone]
- Fixed schema bug [jone]
- Fixed traversing bug / support for plone site root [jone]
1.0b1 (2010-05-07)
- Added z3c.autoinclude for zcml-dependencies [jone]
- implement rename and cut/paste support [mathias.leimgruber]
- Author: 4teamwork GmbH
- Keywords: ftw publisher receiver
- License: GPL2
- Categories
- Package Index Owner: jone, 4teamwork, maethu, tschanzt, shylux, buchi, lukasg
- Package Index Maintainer: nicke, bierik, mbaechtold, phgross, deif, shylux, elio.schmutz, tschanzt, raphael-s, Rotonen
- DOAP record: ftw.publisher.receiver-2.0.2.xml | https://pypi.python.org/pypi/ftw.publisher.receiver/2.0.2 | CC-MAIN-2017-39 | refinedweb | 481 | 52.56 |
Author: Olexandr Malko
Date: 09/29/2008
.NET Remoting is available since beginning of .NET intoduction. It’s time to get to know it well eventually. I hope this topic will help you with this. This document has many samples attached. It was decided not to overload one project with all features at once. Even though only couple lines should be changed for switching from one final application to another, there will be a separate solution to avoid text like “//uncomment this to gain that”. All samples are introduced with Visual Studio 2003 solutions. So, you should be able to open them with VS2005 and VS2008.
Sometimes objects on pictures won’t have numbers even though those will be referred as “second” or “fifth”. I will use such numbering with rules to count from top to bottom and from left to right.
1. What is .NET Remoting?
2. Simple project to show .NET Remoting
3. Configuration file and configuration in code
4. Types of remote object activation
4.1. Server Side Object Activation. Singleton
4.2. Server Side Object Activation. SingleCall
4.3. Client Side Object Activation
5. What is Lease Time? How to control it?
6. Hide Implementation from Client. Remoting via Interface exposure.
7. Custom types as parameters and return values
8. Custom exceptions through remoting channel
9. Events in .NET Remoting
10. Asynchronous calls
11. Several Services in one Server. Several Server links from single Client app
12. Summary
“.NET Remoting” are means in .NET Framework for 2 applications to interact over network (e.g. withing 1 PC, within LAN or even worldwide). Also, in .NET we have ability to run several Application Domains in one process. .NET Remoting is the way to interact between these Domains.
There are 2 common types of protocols used in .NET Remoting: tcp for binary stream and http for SOAP stream. Here in this article all samples will use binary channels, tcp. It requires less traffic load and better performance as there is no overhead with XML parsing. For our production projects it is a big plus.
As usual for distributed applications, there is a Server and a Client application. In .NET Remoting we can have as many clients as we want, and all those Client applications can use the same Server. .NET remoting is not just a socket with low level methods. It is framework where you can work remotely with classes with ability to invoke methods, to pass custom types as parameters and get them as return values, to throw Exceptions between processes, to pass Callback delegates and have them invoked later remotely, to do asynchronous calls.
Remoting interaction requires:
1) service type description that is available for both points on interaction
2) point #1 – host (e.g. Server) that holds the instantiated remoting object of our service type
3) point #2 – client application that can connect to Server and use remoting object
Now, let’s take a look at picture below. You can see two separate processes. Server is holding a real instance of MyService. This instance can be used by other processes over .NET Remoting. Client process is not instantiating the instance of MyService. It just has some transparent proxy. When Client application invokes methods of MyService proxy, the proxy redirects those calls to .NET Remoting Layer in Client process. That remoting layer knows where to send such call – so, call goes over network (e.g. over .NET Remoting channel) right to our remoted Server process. After that Remoting layer on Server side knows if it should use already existing instance of MyService or create new one. It depends on type of activations. Activation types can be configured in *.xml config file or through code. All this will be described later in this article.
You may find “Simple Remoting” solution in downloads. It consists of three core projects. Almost all samples in this article will have them:
1) ONXCmn - class library with definition of MyService type
2) ONXServer – executable console application that hosts MyService service.
3) ONXClient – executable console application that shows how to use remoted MyService sevice.
You can start as many Client applications as you want. All of them will be served by single Server application. You cannot start several Servers at the same time though. This is because there is a port to listen for remote Client applications. You cannot initiate several socket listeners on the same network card and the same port.
Also, I would like to pay your attention at Log and Utils classes. They will be used with all samples. You will find Log useful to print timestamp with each print out. Also, it prints id of current thread – so we can easily see if the same thread was used for group of actions or not. As for Utils class, it dumps information about all registered remoting service and client types. It helps you to catch some misconfiguration in case something is not working:
static void Utils.DumpAllInfoAboutRegisteredRemotingTypes()
public class MyService : MarshalByRefObject { public MyService() { Log.Print("Instance of MyService is created"); } public string func1() { Log.Print("func1() is invoked"); return "MyService.func1()"; } }
Here we describe our remoting type – MyService. It must be derived from MarshalByRefObject. This parent class tells our MyService class not to be sent by value – it is referred by reference only. Our MyService has only one service method – “string func1()”. Whenever we invoke “func1()” we print log message and return value. As you may guess, we instantiate MyService object in Server application and use it from Client application. That is why we should expect log message to appear in Server console and not in Client one. The same about MyService() constructor. Log message about object creation should appear in Server console.
Now, Server class:
class MyServer { [STAThread] static void Main(string[] args) { RemotingConfiguration.Configure("ONXServer.exe.config"); Utils.DumpAllInfoAboutRegisteredRemotingTypes(); Log.WaitForEnter("Press EXIT to stop MyService host..."); } }
It might surprise you if you really see .NET Remoting for first time. There is nothing specific and complex here. Why is it working? The “Utils.DumpAllInfoAboutRegisteredRemotingTypes()” is simply invoked to print registered .NET services. The “Log.WaitForEnter(..)” is just user prompt to press ENTER to close our console application. So, the only line of code that really turns our regular console application into .NET Remoting Server is “RemotingConfiguration.Configure("ONXServer.exe.config")”. This method reads *.xml file and has enough information from there to start socket listener on some port and to wait for requests from remote Client applications! This is nice approach as you can change behavior of your application without need to change and recompile our code. Now, let’s take a look at this configuration file:
<>
Remoting is configured inside <configuration><system.runtime.remoting><application> section. This is true for both Server and Client configuration (yes, Client is also configured through *.xml file). For Server we have <service> section that might have one or more <wellknown> sections. This wellknown section is the place where you describe your service to be available for Client applications. There are 3 attributes for it:
1) full type description – describes, what type to instantiate when we get request for this welknown type from Client. Full type value consists of type name with full namespace path and after comma there is the name of assembly where this type is.
2) objectUri – this is unique name that Client application will be requesting by. Client application usually requests service by “URI” and not by direct type name. You will know why when you get to “6. Hide Implementation from Client. Remoting via Interface exposure” topic.
3) This parameter may be either “SingleCall” or “Singleton”. In case of “SingleCall” every method call that comes from any Client is served by newly created instance of MyService. In “Singleton” configuration ALL calls from ALL client applications are served by single instance of MyService object.
If you have several services that should be registered in our application, list “wellknown” sections one after another inside “service” section.
Also, beside from “service” section there is “channels” section. Here we might have several channels defined. In our sample we have only “tcp” channel defined. It will be listening on port 33000.
Now, let’s take a look at Client configuration:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application> <client> <wellknown type="ONX.Cmn.MyService, ONXCmn" url="tcp://localhost:33000/MyServiceUri" /> </client> </application> </system.runtime.remoting> </configuration>
You may notice pretty much similarity between Server and Client configurations. The difference is that in Client configuration we have “<client />” section instead of “<service />”. It makes application understand that when we create instance of MyService we actually want to request this class remotely. Also, wellknown section has “url” attribute that will connect to “localhost” machine to port 33000 and request named service with URI MyServiceUri. Attribute “type” says application to use this remoting whenever Client application code tries to instantiate the MyService object on client side. So, no actual instance of MyService is created in Client application. We only create Proxy that knows where to send our call requests whenever we call some method.
And finally here is Client application:
class MyClient { [STAThread] static void Main(string[] args) { RemotingConfiguration.Configure("ONXClient.exe.config"); Utils.DumpAllInfoAboutRegisteredRemotingTypes(); MyService myService = new ONX.Cmn.MyService(); Log.Print("myService.func1() returned {0}", myService.func1()); Log.WaitForEnter("Press ENTER to exit..."); } }
As you see it is as simple as Server console application. You simply call “RemotingConfiguration.Configure("ONXClient.exe.config")” to register our MyService type correctly. Then you dump information about all remote types that were registered so far. After that you create “instance” on MyService. As you understand now, there will be only transparent proxy created. And then you call “MyService.func1()” method. This call will go to Server application, get return value from there, deliver it to Client application and print in our log on Client side.
Here is what we get in Server and in Client consoles for our sample:
SERVER: [1812] [2008/10/05 21:30:15.595] ALL REGISTERED TYPES IN REMOTING -(BEGIN)--------- [1812] [2008/10/05 21:30:15.595] WellKnownServiceTypeEntry: type='ONX.Cmn.MyService, ONXCmn'; objectUri=MyServiceUri; mode=SingleCall [1812] [2008/10/05 21:30:15.595] ALL REGISTERED TYPES IN REMOTING -(END) --------- [1812] [2008/10/05 21:30:15.595] Press EXIT to stop MyService host... [5068] [2008/10/05 21:30:20.876] Instance of MyService is created [5068] [2008/10/05 21:30:20.876] func1() is invoked
CLIENT: [7388] [2008/10/05 21:30:20.736] ALL REGISTERED TYPES IN REMOTING -(BEGIN)--------- [7388] [2008/10/05 21:30:20.798] WellKnownClientTypeEntry: type='ONX.Cmn.MyService, ONXCmn'; url=tcp://localhost:33000/MyServiceUri [7388] [2008/10/05 21:30:20.798] ALL REGISTERED TYPES IN REMOTING -(END) --------- [7388] [2008/10/05 21:30:20.892] myService.func1() returned MyService.func1()
You can see that Instance of Service is created in Server application even though we have “new MyService()” in Client application code!
All configurations that were performed for our “Simple Remoting” solution can be done through code without need to have additional *.xml configuration file. Sometimes it is easier to have it in code, but it makes harder to do quick adjustments or modifications to configuration. That is why in our article I will continue to use *.xml files as this is easier to read also. But for security or any other reasons still you may store configuration in some files or in database, and then teach your application to read that configuration data and register remoting types inside of your code if you wish.
As a brief example here is code that makes the same configuration as we have for our Client application in “Simple Remoting” sample in previous topic:
//RemotingConfiguration.Configure("ONXClient.exe.config"); RemotingConfiguration.RegisterWellKnownClientType( typeof(MyService), "tcp://localhost:33000/MyServiceUri");
You may want to check MSDN to get more details on .NET Remoting configuration in code.
There are 3 types of activation of remote objects: 2 types of Server Side Activation and 1 type of Client Side Activation:
1) Server Side Singleton - Object is created on Server when first request comes from one of Client applications. Nothing happens on a Server when you "create" instance in your Client application. Server acts only when Client application invokes first method of remote object. In Singleton mode all Client applications share SINGLE instance of remote object that is created on Server. Even if you create several objects in Client application, still they use the same single object from Server application.
2) Server Side SingleCall - Object is created for EACH method call. So, it does not matter how many Client applications are running. Every method call from any Client application has this life-cycle:
- Server creates new instance of remote object
- Server invokes requested method against newly created remote object
- Server releases the remote object. So, now the remote object is available for Garbage Collection.
3) Client Side Activation - Object is created in Server application with every "new" operator that is in Client application. Client application has full control over this remote object and does NOT share it with other Client applications. Also, if you create 2 or more remote objects in your Client application - yes, there will be created the exact number of remote objects in Server application. After that you may work with each instance individually as you would do without .NET remoting involved. The only issue here is Lease Time that might destroy your remote object on Server application earlier than you expect. See “5. What is Lease Time? How to control it?”
For Server Activation Object you will need to register “well known type”. For Client Activation Object you will need to register “activated type”. Let take a look at each type of activation closer.
In this type of activation no object is created on a Server until first call comes from one of Clients. It does not matter how many calls are coming after object is created. It does not matter how many Client applications are trying to use our Server object – all such calls are directed to single remote object, e.g. “Instance of MyService” on a picture below.
Also, I would like to pay your attention that even though you request several instances of MyService in Client application (see myService1 and myService2 on picture) those 2 variables will still point to single TransparentProxy in Client process. This is because for “wellknown” type one proxy per process is enough with either “Server Activation Object” model.
If Lease Time is expired, Singleton might be destroyed on Server. In this case with new request from Client application new Singleton is created and is used in the same way – e.g. Single object for all Clients requests. See “5. What is Lease Time? How to control it?”
To use this type of activation you should configure server with well-known type like this:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application> <service> <wellknown type="ONX.Cmn.MyService, ONXCmn" objectUri="MyServiceUri" mode="Singleton" /> </service> <channels> <channel ref="tcp" port="33000"/> </channels> </application> </system.runtime.remoting> </configuration>
And client configuration like this:
<ton” solution. With client code:
class MyClient { [STAThread] static void Main(string[] args) { RemotingConfiguration.Configure("ONXClient.exe.config"); Utils.DumpAllInfoAboutRegisteredRemotingTypes(); string result; //create myService1 Log.WaitForEnter("1) Press ENTER to create Remote Service..."); MyService myService1 = new MyService(); Log.Print("myService1 created. Proxy? {0}", (RemotingServices.IsTransparentProxy(myService1)?"YES":"NO")); //query myService1.func1() Log.WaitForEnter("2) Press ENTER to query 1-st time..."); result = myService1.func1(); Log.Print("myService1.func1() returned {0}", result); //query myService1.func2() Log.WaitForEnter("3) Press ENTER to query 2-nd time..."); result = myService1.func2(); Log.Print("myService1.func2() returned {0}", result); //create myService2 Log.WaitForEnter("4) Press ENTER to create another instance of Remote Service..."); MyService myService2 = new MyService(); Log.Print("myService2 created. Proxy? {0}", (RemotingServices.IsTransparentProxy(myService2)?"YES":"NO")); //query myService2.func1() Log.WaitForEnter("5) Press ENTER to query from our new Remote Service..."); Log.Print("myService2.func1() returned {0}", myService2.func1()); Log.WaitForEnter("Press ENTER to exit..."); } }
We get
SERVER: [4424] [2008/10/05 22:31:52.369] Instance of MyService is created, MyService.id=1 [4424] [2008/10/05 22:31:52.369] func1() is invoked, MyService.id=1 [4424] [2008/10/05 22:31:53.056] func2() is invoked, MyService.id=1 [4424] [2008/10/05 22:31:54.556] func1() is invoked, MyService.id=1
CLIENT: >1) Press ENTER to create Remote Service... [7076] [2008/10/05 22:31:51.416] myService1 created. Proxy? YES 2) Press ENTER to query 1-st time... [7076] [2008/10/05 22:31:52.400] myService1.func1() returned MyService#1.func1() 3) Press ENTER to query 2-nd time... [7076] [2008/10/05 22:31:53.056] myService1.func2() returned MyService#1.func2() 4) Press ENTER to create another instance of Remote Service... [7076] [2008/10/05 22:31:53.650] myService2 created. Proxy? YES 5) Press ENTER to query from our new Remote Service... [7076] [2008/10/05 22:31:54.556] myService2.func1() returned MyService#1.func1()
Here in this sample only 1 MyService instance was created on Server side. It served all 3 calls even though 2 calls came from myService1 and 1 call from myService2.
As for creation of object on a Server side, we have the same situation – no object is created with “new MyService()” on a Client application. But as soon as you invoke ANY method in Client code, the invocation is directed to Server application. The .NET Remoting creates NEW instace for each such query. As you can see on a picture below, there were 5 invocations sent from 2 Client applications. It made .NET Remting create 5 instances of MyService. Each of instances was used only once – for single call. Pay attention that “Instance of MyService” #3 and #5 were for the same created with the same call of “myService1.func1()”, but still .NET Remoting created a separate instance for each call.
Single Trasparent Proxy is created for all MyService objects in Client application (see second Client).
To use this type of activation you should configure server with well-known type like you did for SSA Singleton. The only difference is that mode should be set to “SingleCall”:
<>
Client configuration is absolutely the same as for SSA Singleton:
<Call” solution.
SERVER: >[3472] [2008/10/05 22:21:57.662] Instance of MyService is created, MyService.id=1 [3472] [2008/10/05 22:21:57.662] func1() is invoked, MyService.id=1 [3472] [2008/10/05 22:22:00.381] Instance of MyService is created, MyService.id=2 [3472] [2008/10/05 22:22:00.381] func2() is invoked, MyService.id=2 [3472] [2008/10/05 22:22:04.849] Instance of MyService is created, MyService.id=3 [3472] [2008/10/05 22:22:04.849] func1() is invoked, MyService.id=3
CLIENT: 1) Press ENTER to create Remote Service... [7252] [2008/10/05 22:21:54.209] myService1 created. Proxy? YES 2) Press ENTER to query 1-st time... [7252] [2008/10/05 22:21:57.693] myService1.func1() returned MyService#1.func1() 3) Press ENTER to query 2-nd time... [7252] [2008/10/05 22:22:00.381] myService1.func2() returned MyService#2.func2() 4) Press ENTER to create another instance of Remote Service... [7252] [2008/10/05 22:22:02.756] myService2 created. Proxy? YES 5) Press ENTER to query from our new Remote Service... [7252] [2008/10/05 22:22:04.849] myService2.func1() returned MyService#3.func1()
In our sample the “id” is the unique id of each instance of MyService object that is created on Server side. As you can see, we have as many instances created in SERVER app as number of calls (e.g. 2 calls for myService1 and 1 call for myService2 – in sum we got 3).
Also, according to timestamps you may conclude that MyService is created right with “func#()” call.
This is pretty nice type of activation to have as it makes you to work with object like “there is no remoting at all”. You have distinct instance of object created for each of your “new” operator. Your instance is created remotely on a Server and it is never shared with other Client applications. So, for Client application this type of activation is very close to use case when you create object is a regular way, without .NET Remoting involved.
myService, myService1 and myService2 are real 3 objects that were instantiated on Server and transparently used by Client applications. Pay attention that among 3 types of activation described this is the only one where we have more than one proxy created for Client #2. This is because number of proxies will be equal to number of remote objects that your Client application has created so far.
To use this type of activation you should configure server with “<activated />”section, not with well-known type:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application> <service> <activated type="ONX.Cmn.MyService, ONXCmn" /> </service> <channels> <channel ref="tcp" port="33000"/> </channels> </application> </system.runtime.remoting> </configuration>
Client configuration also uses “<activated />”section:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application> <client url="tcp://localhost:33000"> <activated type="ONX.Cmn.MyService, ONXCmn" /> </client> </application> </system.runtime.remoting> </configuration>
Pay attention that “url” parameter is specified in “<client />” section with this type of activation. There is no need for objectURI here as .NET Remoting will know what type to use.
Also, Leasing expiration is involved in this activation type. See
As for sample, locate “CAO” solution. I won’t present text of Client code as it is the same as for 2 tests from above. The only change is configuration that controls the type of activation. Now, we get
SERVER: >[6956] [2008/10/05 22:38:47.075] Instance of MyService is created, MyService.id=3 [6956] [2008/10/05 22:38:49.918] func1() is invoked, MyService.id=3 [6956] [2008/10/05 22:38:52.559] func2() is invoked, MyService.id=3 [6956] [2008/10/05 22:38:54.965] Instance of MyService is created, MyService.id=4 [6956] [2008/10/05 22:38:57.231] func1() is invoked, MyService.id=4
CLIENT: 1) Press ENTER to create Remote Service... [2280] [2008/10/05 22:38:47.090] myService1 created. Proxy? YES 2) Press ENTER to query 1-st time... [2280] [2008/10/05 22:38:49.918] myService1.func1() returned MyService#3.func1() 3) Press ENTER to query 2-nd time... [2280] [2008/10/05 22:38:52.559] myService1.func2() returned MyService#3.func2() 4) Press ENTER to create another instance of Remote Service... [2280] [2008/10/05 22:38:54.965] myService2 created. Proxy? YES 5) Press ENTER to query from our new Remote Service... [2280] [2008/10/05 22:38:57.231] myService2.func1() returned MyService#4.func1()
In this sample MyService instances created on Server side right at the time that Client application code hits “new MyService()” command. You can see some delay in creation of myService1 (15 ms). This is because this was first call from our Client application to Server. It required establishing physical network connection between our applications and did all other hidden .NET Remoting handshakes. As for myService2 it was created right at the same millisecond. Also, as you can see, each of our myService# on Client side was served with corresponding MyService instance on Server side.
In case of interprocess coordination Server does not know if Client is still going to use object or not. The easiest way for remoting object in Server application is to count how much time has passed since object was created or since last time when some Client used the object (e.g. made some method invocation).
There are means to set lease time through configuration files (showed below) and through code:
using System; using System.Runtime.Remoting.Lifetime; ... LifetimeServices.LeaseTime = TimeSpan.FromMinutes(30); LifetimeServices.RenewOnCallTime = TimeSpan.FromMinutes(30); LifetimeServices.LeaseManagerPollTime = TimeSpan.FromMinutes(1);
LeaseTime – is initial lease time span for AppDomain.
RenewOnCallTime - the amount of time by which the lease is extended every time when call comes in on the server object.
LeaseManagerPollTime - the time interval between each activation of the lease manager to clean up expired leases.
See MSDN for details.
Here is how it works. For each server object we can get CurrentLeaseTime time from Lease helper. This CurrentLeaseTime is how much time left for object to live. There is a .NET Remoting LeaseManager that wakes up periodically and checks every available server object in Server application. With each check it reduces the CurrentLeaseTime for each checked object. If object is expired then its reference is removed and that object is marked for GC to be collected. Every time when remote call comes for server object, this object’s CurrentLeaseTime is set to RenewOnCallTime time span.
Take a look at “Lease Time” solution. As you can see it uses Server Activation in Singleton mode. It should make all Clients and all MyService objects in Clients’ application use the same instance of MyService that is on Server.
But we configured lease time to be only 5 seconds:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application> ... <lifetime leaseTime="5S" renewOnCallTime="5S" leaseManagerPollTime="1S" /> </application> </system.runtime.remoting> </configuration>
It makes .NET Remoting mark remoted object for garbage collection until 5 seconds passed with no queries from any Client:
1) Press ENTER to create Remote Service... [5044] [2008/10/01 14:17:47.442] myService1 created. Proxy? YES 2) Press ENTER to query 1-st time... [5044] [2008/10/01 14:17:48.552] myService1.func1() returned MyService#4.func1() 3) Press ENTER to query 2-nd time... [5044] [2008/10/01 14:18:03.334] myService1.func2() returned MyService#5.func2() 4) Press ENTER to create another instance of Remote Service... [5044] [2008/10/01 14:18:04.099] myService2 created. Proxy? YES 5) Press ENTER to query from our new Remote Service... [5044] [2008/10/01 14:18:04.990] myService2.func1() returned MyService#5.func1()
See “3)” in output. As you can see, we were waiting too long (e.g. >5 seconds) before we invoked query 2-nd time. It made Server forget about MyService#4 and create new one – MyService#5. After that in “5)” we invoked func1() within 2 seconds and it was using MyService#5 as it was not expired yet on Server side.
Here we start our Client application again and press ENTER continuously with no delays. As you can see, all three invokes use the same MyService instance:
1) Press ENTER to create Remote Service... [5380] [2008/10/01 14:30:39.355] myService1 created. Proxy? YES 2) Press ENTER to query 1-st time... [5380] [2008/10/01 14:30:39.589] myService1.func1() returned MyService#6.func1() 3) Press ENTER to query 2-nd time... [5380] [2008/10/01 14:30:39.652] myService1.func2() returned MyService#6.func2() 4) Press ENTER to create another instance of Remote Service... [5380] [2008/10/01 14:30:39.808] myService2 created. Proxy? YES 5) Press ENTER to query from our new Remote Service... [5380] [2008/10/01 14:30:39.980] myService2.func1() returned MyService#6.func1()
We can also make our remoting object never expire. In order to do so we will need to override one of the MarshalByRefObject methods and make it return “null”:
public class MyService : MarshalByRefObject { ... public override object InitializeLifetimeService() { return null; } }
If you add such override to LeaseTime solution, you will see that even though we waited too long and have <lifetime> parameter specified in configuration – our MyService is not expired and reused for all calls:
2) Press ENTER to query 1-st time... [3056] [2008/10/01 14:36:51.455] myService1.func1() returned MyService#1.func1() >3) Press ENTER to query 2-nd time... [3056] [2008/10/01 14:37:14.049] myService1.func2() returned MyService#1.func2()
There is also “sponsoring” mechanism that allows customizing the lease time according application needs. You can read “sponsors” topic in MSDN to get more information on this.
It is not always a good idea to expose to the world the implementation of your remoting object. This is due to security reasons and due to size of assembly that has complex implementation. Also, implementation can use some other assemblies that you would not want to deploy to client computers. In this case it is a good idea to split our MyService class into:
1) interface that we will expose to client
2) and to the implementation itself.
At this point we can put out types into separate assemblies and deliver only small part to client computer:
Then during delivery we need to put only small part of product on Client computers:
You may find “Hide Implementation from Client app” solution to see how it is implemented. The idea is to request remote type by Uri and cast returned object to interface. On a server side such Uri request will instantiate our real implementation that is defined in ServerLib assembly.
Server configuration:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application> <service> <wellknown type="ONX.Server.MyService, ONXServerLib" objectUri="MyServiceUri" mode="Singleton" /> </service> <channels> <channel ref="tcp" port="33000"/> </channels> </application> </system.runtime.remoting> </configuration>
Client configuration (no need to define wellknown type here):
<?xml version="1.0" encoding="utf-8" ?> <configuration> </configuration>
Client code to access MyService through IMyService:
IMyService myService1 = Activator.GetObject( typeof(IMyService), "tcp://localhost:33000/MyServiceUri" ) as IMyService; string result = myService1.func1();
Note, that there is no way to use Client Activation Object if you decide to go with hiding implementation behind interface. This is because you need to _instantiate_ object of class in client side for Client Side activation. But you don’t have type information on client side – only interface. So, you can do this only with well known type definition (e.g. Server Activation Object).
If you want to pass your own types as parameters to methods of remoted objects… If you want to get such types as results of functions… The only thing that you should do is to make your type serializable. This is easy – just add [Serailizable] attribute for your type description. Note, if your type has members of custom types, those included types should be also serializable. As for standard types like int, double, string, ArrayList and so on – most of them are already serializable.
See “Custom Types” solution with example:
[Serializable] public class MyContainer { private string str_; private int num_; public MyContainer(string str, int num) { str_ = str; num_ = num; } public string Str { get{ return str_;} } public int Num { get{ return num_;} } public override string ToString() { return string.Format("MyContainer[str=\"{0}\",num={1}]", Str, Num); } } public class MyService : MarshalByRefObject { public MyContainer func1(MyContainer param) { Log.Print("func1() is invoked, got {0}", param); return new MyContainer("abc", 123); } }
With this Client code
class MyClient { [STAThread] static void Main(string[] args) { MyService myService = new MyService(); Log.Print("myService created. Proxy? {0}", (RemotingServices.IsTransparentProxy(myService)?"YES":"NO")); MyContainer container1 = new MyContainer("From Client", 555); MyContainer container2 = myService.func1(container1); Log.Print("myService.func1() returned {0}", container2); } }
it will give you such Server output:
[3660] [2008/10/03 10:05:27.970] func1() is invoked, got MyContainer[str="From Client",num=555]
and such Client output:
[2696] [2008/10/03 10:05:27.892] myService created. Proxy? YES [2696] [2008/10/03 10:05:27.970] myService.func1() returned MyContainer[str="abc",num=123]
There are no limitations on throwing standard Exception class as it already has everything that is needed. As for custom exceptions here is the list of required TODOs:
1) General rule: All custom exceptions should drive from Exception class or it’s descentants.
2) It must have [Serializable] attribute for class
3) It must have constructor
MyException(SerializationInfo info, StreamingContext context)
4) It must override
void GetObjectData(SerializationInfo info, StreamingContext context)
5) If your custom exception has some members, those should be taken care to write and read to/from stream.
Here is our custom exception from “Exceptions” solution:
[Serializable] public class MyException : ApplicationException { private string additionalMessage_; public MyException(string message, string additionalMessage) :base(message) { additionalMessage_ = additionalMessage; } public MyException(SerializationInfo info, StreamingContext context) :base(info, context) { additionalMessage_ = info.GetString("additionalMessage"); } public override void GetObjectData(SerializationInfo info, StreamingContext context) { base.GetObjectData (info, context); info.AddValue("additionalMessage", additionalMessage_); } public string AdditionalMessage { get{ return additionalMessage_;} } }
We save our member data in “GetObjectData(…)” method. During deserialization we restore this value in constructor with SerializationInfo as parameter.
With this MyService implementation:
public class MyService : MarshalByRefObject { public void func1() { throw new MyException("Main text for custom ex", "Additional text"); } public void func2() { throw new Exception("Main text for standard ex"); } }
We simply try to throw both our custom exception and starndard one. Having such Client implementation:
class MyClient { [STAThread] static void Main(string[] args) { RemotingConfiguration.Configure("ONXClient.exe.config"); MyService myService = new MyService(); try { myService.func1(); } catch(MyException ex) { Log.Print("Caught MyException: message=\"{0}\", add.msg=\"{1}\"", ex.Message, ex.AdditionalMessage); } try { myService.func2(); } catch(Exception ex) { Log.Print("Caught Exception: message=\"{0}\"", ex.Message); } Log.WaitForEnter("Press ENTER to exit..."); } }
We get output (stripped):
[15:09:39.380] Caught MyException: message="Main text for custom ex", add.msg="Additional text" [15:09:39.380] Caught Exception: message="Main text for standard ex"
If we comment out saving and restoring of additionalMessage field in MyException class – after deserialization we will get default string value. So, no error will be generated but not full state restoring. If we comment out [Serializable] attribute, we will get runtime exception.
Imagine use case. Our remoting object is instantiated in Server. In regular use case Client applications use remoting object by invoking its methods. What if you want it to invoke some callback method that is resided inside Client application? You might prepare some information for Client and wait for client application to use polling mechanism and to call some remote object method periodically like “Information[] MyService.IsThereSomeInfoForMe()”. But actually we can use event mechanism. There are some refinements though:
1) Server application should have runtime type information about type that holds callback method.
2) This callback method should be public and cannot be static
3) To avoid Server to wait and make sure that callback got recipient, we have to mark callback with [OneWay] attribute. It makes us unable to return some data neither through “return” value nor through “ref” of “out” parameters.
4) As instance of this type will instantiated on Client side and will be used on Server side, it should derive from MarshalByRejObject class.
Take a look at “Events” solution. All these limitations make us to introduce some even sink and define it in Cmn assembly so it is available for both Server and Client application:
public class EventSink : MarshalByRefObject { public EventSink() { } [System.Runtime.Remoting.Messaging.OneWay] public void EventHandlerCallback(string text) { } public void Register(MyService service) { service.EventHandler += new OnEventHandler(EventHandlerCallback); } public void Unregister(MyService service) { service.EventHandler -= new OnEventHandler(EventHandlerCallback); } }
As we want this sink to actually invoke our callback, we cannot use polymorphism and override some of methods in derived class that would be defined inside code of our Client application. This will violate rule #1 from above – Server will need to know our type. So we use delegation mechanism and pass our Client’s callback to EvenSink as constructor parameter. Here is full code for EventSink class:
public class EventSink : MarshalByRefObject { private OnEventHandler handler_; public EventSink(OnEventHandler handler) { handler_ = handler; } [System.Runtime.Remoting.Messaging.OneWay] public void EventHandlerCallback(string text) { if (handler_ != null) { handler_(text); } } public void Register(MyService service) { service.EventHandler += new OnEventHandler(EventHandlerCallback); } public void Unregister(MyService service) { service.EventHandler -= new OnEventHandler(EventHandlerCallback); } }
Also, since .NET Framwork v1.1 there are security restriction on deserialization of some types. In order to override default setting we need to set filterLevel to “Full”. Here is full Server config file:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application> <service> <wellknown type="ONX.Cmn.MyService, ONXCmn" objectUri="MyServiceUri" mode="Singleton" /> </service> <channels> <channel ref="tcp" port="33000"> <serverProviders> <formatter ref="binary" typeFilterLevel="Full" /> </serverProviders> </channel> </channels> </application> </system.runtime.remoting> </configuration>
And Client configuration:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application> <client> <wellknown type="ONX.Cmn.MyService, ONXCmn" url="tcp://localhost:33000/MyServiceUri" /> </client> <channels> <channel ref="tcp" port="0"> <clientProviders> <formatter ref="binary" /> </clientProviders> <serverProviders> <formatter ref="binary" typeFilterLevel="Full" /> </serverProviders> </channel> </channels> </application> </system.runtime.remoting> </configuration>
It is also possible to configure this through code. See MSDN for details. Take a look at MyService class now.
public delegate void OnEventHandler(string message); public class MyService : MarshalByRefObject { public event OnEventHandler EventHandler; public string func1() { PublishEventAnfScheduleOneMore("Event from Server: func1() is invoked"); return "MyService.func1()"; } private void PublishEvent(string message) { if (EventHandler != null) { EventHandler(message); } } private void PublishEventAnfScheduleOneMore(string text) { PublishEvent(text); Thread t = new Thread(new ThreadStart(PublishEventIn5Seconds)); t.Start(); } private void PublishEventIn5Seconds() { Thread.Sleep(5000); PublishEvent("5 seconds passed from one of method calls"); } }
As you can see we invoke callback immediately when some Client called “MyService.func()” and also we do it one more time from separate thread after 5 seconds timeframe. It was done for testing purposes to show that events can be invoked at any time (e.g. not even to answer on call invocation). We span a separate thread and return control to Client that invoked “func1()”. And then, after 5 seconds our spanned thread will raise event for all registered event handlers. Once Client registers its event handler - it will get ALL events from Server.
Here is stripped code for our Client application. Full version is available in “Events” solution:
class MyClient { private MyService myService_; private EventSink sink_; public MyClient() { //create proxy to remote MyService myService_ = new ONX.Cmn.MyService(); //create event sink that can be invoked by MyService sink_ = new EventSink(new OnEventHandler(MyEventHandlerCallback)); //register event handler with our event sink //(after that event sink will invoke our callback) sink_.Register(myService_); } public void MyEventHandlerCallback(string text) { Log.Print("Got text through callback! {0}", text); } public void Test() { Log.Print("myService.func1() returned {0}", myService_.func1()); } [STAThread] static void Main(string[] args) { RemotingConfiguration.Configure("ONXClient.exe.config"); MyClient c = new MyClient(); c.Test(); Log.WaitForEnter("Press ENTER to exit..."); } }
And here is stripped output from one of test runs:
[5412] [09:43:55] myService.func1() returned MyService.func1() [5412] [09:43:55] Press ENTER to exit... [7724] [09:43:55] Got … callback! Event from Server: func1() is invoked [7724] [09:44:00] Got … callback! 5 seconds passed from one of method calls
As you can see we got initial event right after call to “func1()” and then one more after 5 seconds. Pay attention that callback functions were invoked on a separate thread. So, if you need to synchronize some data access, beware.
This topic does not differ much from simple asynchronous calls without remoting. Let’s analyze “Async Calls” solution. It has simple implementation of MyService:
public class MyService : MarshalByRefObject { public string func1(string text) { Log.Print("func1(\"{0}\") is invoked", text); return text+DateTime.Now.ToString("HH:mm:ss.fff"); } }
And here is the sample of how it is used in Client application:
delegate string GetStringHandler(string arg); class MyClient { private const int NUMBER_OF_INVOCATIONS = 5; private static void OnCallEnded(IAsyncResult ar) { GetStringHandler handler = ((AsyncResult)ar).AsyncDelegate as GetStringHandler; int index = (int)ar.AsyncState; string result = handler.EndInvoke(ar); Log.Print("myService.func1() #{0} is done. Result is \"{1}\"", index, result); } [STAThread] static void Main(string[] args) { RemotingConfiguration.Configure("ONXClient.exe.config"); MyService myService = new MyService(); Log.Print("myService created. Proxy? {0}", (RemotingServices.IsTransparentProxy(myService)?"YES":"NO")); for(int index=1;index<=NUMBER_OF_INVOCATIONS;++index) { Log.Print("Invoking myService.func1() #{0}...", index); GetStringHandler handler = new GetStringHandler(myService.func1); handler.BeginInvoke("from Client", new AsyncCallback(OnCallEnded), index); } Log.WaitForEnter("Press ENTER to exit..."); } }
As you can see we loop 5 times in “for”. With every iteration we create delegate that corresponds to prototype of “MyService.func1” method and make asynchronous call with “BeginInvoke(…)”. As we passed our “OnCallEnded” method as callback, when asynchronous invocation is done, we get control in our OnCallEnded method. There we get reference to our delegate and get result by calling “EndInvoke(ar)”.
Here is example out output of Client application:
[0216] [2008/10/03 16:39:45.243] myService created. Proxy? YES [0216] [2008/10/03 16:39:45.243] Invoking myService.func1() #1... [0216] [2008/10/03 16:39:45.274] Invoking myService.func1() #2... [0216] [2008/10/03 16:39:45.274] Invoking myService.func1() #3... [0216] [2008/10/03 16:39:45.290] Invoking myService.func1() #4... [0216] [2008/10/03 16:39:45.290] Invoking myService.func1() #5... [0216] [2008/10/03 16:39:45.290] Press ENTER to exit... [2248] [2008/10/03 16:39:45.290] myService.func1() #2 is done. Result is "from Client16:39:45.274" [3868] [2008/10/03 16:39:45.290] myService.func1() #1 is done. Result is "from Client16:39:45.274" [2248] [2008/10/03 16:39:45.290] myService.func1() #3 is done. Result is "from Client16:39:45.290" [2248] [2008/10/03 16:39:45.290] myService.func1() #5 is done. Result is "from Client16:39:45.290" [3868] [2008/10/03 16:39:45.290] myService.func1() #4 is done. Result is "from Client16:39:45.290"
We were even lucky to get our 5 calls in order, that is different from original – call #2 ends earlier than call #1. The same about calls #4 and #5.
Also notice, that not all calls were running in the same thread. And all of them are different from thread where we initiated our 5 calls.
All the samples in MSDN and internet that I reviewed were showing single Remoting Object type in Server application. I was wonder how do we introduce several services in single Server. And how do we use several Servers in single Client application. It appeared to be not so hard, but still it better to see than to guess.
Let us analyze the case with 2 wellknown types on Server side:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application> <service> <wellknown type="ONX.Cmn.MyService1, ONXCmn" objectUri="MyService1Uri" mode="SingleCall" /> <wellknown type="ONX.Cmn.MyService2, ONXCmn" objectUri="MyService2Uri" mode="SingleCall" /> </service> <channels> <channel ref="tcp" port="33000"/> </channels> </application> </system.runtime.remoting> </configuration>
You cannot:
1) Have several channels with the same protocol (e.g. “ref” parameter). Otherwise you will get exception that such protocol is already registered. But you can specify several channels if they are for different protocols
2) Each known type should have unique objectUri. Otherwise definition of types will be overlapped and only on of types will be available
For configuration from above our helper “Utils.DumpAllInfoAboutRegisteredRemotingTypes();” method gives us:
[7496] [2008/10/05 00:01:04.047] ALL REGISTERED TYPES IN REMOTING -(BEGIN)--------- [7496] [2008/10/05 00:01:04.047] WellKnownServiceTypeEntry: type='ONX.Cmn.MyService2, ONXCmn'; objectUri=MyService2Uri; mode=SingleCall [7496] [2008/10/05 00:01:04.047] WellKnownServiceTypeEntry: type='ONX.Cmn.MyService1, ONXCmn'; objectUri=MyService1Uri; mode=SingleCall [7496] [2008/10/05 00:01:04.047] ALL REGISTERED TYPES IN REMOTING -(END) ---------
In our case Client configuration looks like:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application> <client> <wellknown type="ONX.Cmn.MyService1, ONXCmn" url="tcp://localhost:33000/MyService1Uri" /> <wellknown type="ONX.Cmn.MyService2, ONXCmn" url="tcp://localhost:33000/MyService2Uri" /> </client> </application> </system.runtime.remoting> </configuration>
If we would want to use Services from different Servers, each Server would listen on different port. So, there would be different port in each “<wellknown/>” section.
There is “Two Services in single Server” solution if you would like to try it for yourself.
Thank you for your time. I hope it was spent with use. Any comments are welcome. I will try to adjust this article as soon as I have some comments and time. Happy remoting!
General
News
Question
Answer
Joke
Rant
Admin | http://www.codeproject.com/KB/WCF/net_remoting.aspx | crawl-002 | refinedweb | 7,353 | 52.26 |
void teclado(){val = readkey(); if (val != old_val) { if ((val >> 8) == KEY_SPACE) { modo = 1 - modo; pillartecla(); } } old_val=val;} END_OF_FUNCTION(teclado);
bool pillartecla(){
if (modo == 1) { return true; } else { return false; } } END_OF_FUNCTION(pillartecla);
Looks fine and nice, suposedly, theres a function something like
if (pillartecla == true){openinventary()}else {closeinventary}
What all thaht is suposed to do is open the inventary when the player presses sapce_bar and closes it when he prees it again. As im only groping arround in the dark here, i'd apreciate any and all help you can give me, as it's not working. Especially if someone could tell me how yo use the readkey() properly and were to call the teclado(). I get a feeling inneed to call it in a while or a for but im not shure.Any help for a beginer?
Cheers
"Under the sword lifted high There is hell making you tremble: But go ahead, And you have the land of bliss. - Miyamoto Musahshi""When all else fails, read the manual - Dad"
First, use code tags, putting <code> and </code> surrounding your code so that it is "codified".
Second, you don't need to use END_OF_FUNCTION in all functions, only in those functions that are going to be called from inside a timer.
Third, the game should look something like this (this may not compile!):
#include <allegro.h>
int main() {
int quit = 0;
allegro_init();
install_keyboard();
while (!quit) {
teclado();
dibujo();
}
allegro_exit();
}
END_OF_MAIN()
You call teclado to poll the keyboard, and then call dibujo to draw on screen.
--RB光子「あたしただ…奪う側に回ろうと思っただけよ」Mitsuko's last words, Battle Royale
And using global variables isn't that good.Make function with arguments.
"Code is like shit - it only smells if it is not yours"Allegro Wiki, full of examples and articles !!
I know that using globals isn't a good thing, and I dont use them because people have told me to make functions with arguments... But why exactly is it bad?
But why exactly is it bad?
Couple of reasons can be red from here:
The thing about multithreading will become more and more important as multicore CPU's are becoming more widespread
_________
What all thaht is suposed to do is open the inventary when the player presses sapce_bar and closes it when he prees it again.
This is how I usually handle a situation like that.
bool key_space=false;
void input()
{
if(key[KEY_SPACE] && !key_space)
{
openInventory();
key_space = true;
}
else if(!key[KEY_SPACE] && key_space)
{
closeInventory();
key_space = false;
}
}
========================================================Actually I think I'm a tad ugly, but some women disagree, mostly Asians for some reason.
1000 thanks to everyone who's replied and excuse me for my lousy gramar, please, i was half asleep when i wrote the first post. I was wondering if anyone could explain Rick's code in a "for idiots" kind of way, because it looks just like what i was looking for but somehow i dont seem able to cram it into my own code and make it work...
Thanks again everyone.Cheers
Hopefully this'll clear it up for you:
--I thought I was wrong once, but I was mistaken.
Basically if you just use key[KEY_SPACE] to open the inventory it will run the code inside it on every loop, since if you hold it down it evaluates to true. Since we want a toggle of sorts, that is why we add the boolean value.
So I push the space bar, it goes in and opens the inventory, now if I hold the space bar it won't keep going in and opening the inventory. But actually thinking about it, you might not want what I posted. With that code if you let go on space the inventory closes. If you want to toggle it with the space bar you will have to put something inside the first if statement to see if it's open or closed and act on it that way.
That will toggle inventory based on open or closed.
Goin' a little off-topic.
In C++ (don't know if that'd work in C as well), a way to easily remove the global variable would be the following:
_______________________________Indeterminatus. [Atomic Butcher]si tacuisses, philosophus mansisses
Good point, although if I was doing this, input() would be in a Game class and key_space would be a member variable.
Rick, I believe the second code you posted would do just what the code I posted would do. I changed your original just a bit:
// I changed this line:
else if(!key[KEY_SPACE] && key_space)
// to this:
else if(key[KEY_SPACE] && key_space)
That way you don't need another function to determine if inventory is open, you can just use the boolean.
Or, since the input() function will most likely be looped, to make sure it doesn't run closeInventory() right away, you could just add this in: while (key[KEY_SPACE]) { rest(1); }like so: (see the edit, I rewrote it better)
EDIT-- I'm bored, have another version of the code. This one's the best (and conforms to not using a global):
That would actually freeze the entire game if I held the space bar. I don't like that solution.
The core of the problem is that you need to convert states into state changes over time. To do this, you need to keep a copy of the previous state around, and compare the current one. I prefer doing this for the entire key array, so I only have to implement it once:
Call tick_keyboard() once at the start of the input function. If delta_key[KEY_SPACE] is 1, toggle the inventory state (inv_open = !inv_open).
---Me make music: Triofobie---"We need Tobias and his awesome trombone, too." - Johan Halmén
Txs everyone for their help, really apreciate it people Problem is more or less solved now. Cheers | https://www.allegro.cc/forums/thread/560357/560395 | CC-MAIN-2018-13 | refinedweb | 969 | 69.41 |
I‘m trying to configure and install xcache under CentOS / Redhat enterprise Linux v5.4 and getting the following error:
/usr/include/php/ext/date/lib/timelib_structs.h:24:28: error: timelib_config.h: No such file or directory
How do I fix this problem and install xcache?
This is well known problem and it can be easily fixed by editing the /usr/include/php/ext/date/lib/timelib_structs.h file itself. Type the following command to edit the file, run:
# vi /usr/include/php/ext/date/lib/timelib_structs.h
Find line:
#include <timelib_config.h>
Replace / update as follows:
#include "timelib_config.h"
Save and close the file. Now, you can compile the xcache:
# make install
Thank you! That helped me alot!
best regards | https://www.cyberciti.biz/faq/usrincludephpextdatelibtimelib_structs-h2428-error-timelib_config-h-no-such-file-or-directory/ | CC-MAIN-2016-50 | refinedweb | 122 | 55.1 |
Stuck Inside Native Method638189 Jun 5, 2012 6:17 PM
I have developed some Java code to call a third party DLL using JNI. Most of the time everything works as expected, but once in a while (generally after several days of processing) my program hangs. The root cause appears to be related to an intermittent issue with the driver that I am calling, something that I have no control over. When I perform a thread dump I can see that the thread is "stuck" inside the native method that I am calling. I am able to detect the hangup using a timer, and even obtain the "stuck" thread, but I cannot kick it back into life...or kill it in any way. Does anyone have any ideas?
My code that is calling the native method is as follows:
My code that is calling the native method is as follows:
And the code for my timer task is as follows:And the code for my timer task is as follows:
public void process() { System.out.println("Hello world from Java"); Timer timer = new Timer(); timer.schedule(new MyTimerTask(), 1000); myNativeMethod(); System.out.println("Goodbye world from Java"); }
public class MyTimerTask extends TimerTask { @Override public void run() { System.out.println("Timeout"); ThreadGroup tg = Thread.currentThread().getThreadGroup(); Thread[] list = new Thread[tg.activeCount()]; tg.enumerate(list); for (Thread t : list) { System.out.println(t); System.out.println("---------------------------------------"); StackTraceElement[] st = t.getStackTrace(); for (StackTraceElement ste : st) { System.out.println(ste); if (ste.getMethodName().equals("myNativeMethod") && ste.isNativeMethod()) { System.out.println("stuck thread " + t.getName() + " detected!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); t.interrupt(); break; } } } } }
This content has been marked as final. Show 10 replies
1. Re: Stuck Inside Native MethodKevinPas Jun 5, 2012 6:34 PM (in response to 638189)What does the DLL do? Do you get data out of it? Can you launch it in a separate java Process?
private Process process = null;
// The following only works in Windows.
// Something like this might work in Linux: String command="ps -A -U "+System.getProperty("user.name")+" -d";
String line;
Process p = Runtime.getRuntime().exec("tasklist.exe /FI \"IMAGENAME eq " + "name of process" + "\"");
BufferedReader input = new BufferedReader (new InputStreamReader(p.getInputStream()));
while ((line = input.readLine()) != null) {
if ( line.contains( "name of process" ) ) {
alreadyLoaded = true; // Already Loaded.
break;
}
}
// Try to load it.
if ( alreadyLoaded == false )
{
process = Runtime.getRuntime().exec( path + " -m" );
}
else
{
}
2. Re: Stuck Inside Native MethodKevinPas Jun 5, 2012 6:36 PM (in response to KevinPas)I forgot. Then you can kill it.
if ( process != null )
process .destroy ();
Edited by: KevinPas on Jun 5, 2012 4:36 PM
3. Re: Stuck Inside Native Method638189 Jun 6, 2012 10:39 AM (in response to KevinPas)Thanks for your response KevinPas.
I am communicating with PC/SC smart card readers, using the javax.smartcardio classes, and it is these classes that are actually communicating with a DLL, so it's not really possible for me to use the approach that you have suggested. I really just wanted to illustrate a simplified view of what is happening with my code above. In an effort to simulate the issue in a repeatable manner I developed a DLL that simply contains an infinite loop, this is what I then called in my illustration.
4. Re: Stuck Inside Native MethodEJP Jun 6, 2012 10:51 AM (in response to 638189)There's no guarantee that interrupt() can interrupt everything. java.io comes to mind. You might have to use System.exit() ;-(
5. Re: Stuck Inside Native Method638189 Jun 6, 2012 10:58 AM (in response to EJP)You are quite correct EJP, interrupt() was doing nothing for me. Unfortunately using System.exit() is not an option in my solution, as the final code will be running inside the JBoss application server. I was really hoping for a solution that would not require a re-start of the application server, but it is looking more and more as if this is unlikely.
6. Re: Stuck Inside Native MethodEJP Jun 6, 2012 11:02 AM (in response to 638189)As it's a server you must use a separate process as per the suggestion above, no two ways about it.
7. Re: Stuck Inside Native Method638189 Jun 6, 2012 11:12 AM (in response to EJP)Just so I am clear, do you mean that:
I am assuming that you mean b), which is not really an option due to the fact that it is not my code that is communicating with the DLL, it is the javax.smartcardio classes that are communicating with the DLL. I could of course not use the javax.smartcardio classes and write something myself, but I figured there wasn't much point in re-inventing the wheel if I didn't need to.
8. Re: Stuck Inside Native MethodKevinPas Jun 6, 2012 11:31 AM (in response to EJP)Just to finish my thought which will only be useful as a last resort and only if you have permissions to do this on your server:
It seems possible, but maybe not practical and a lot of extra work:
1) Launch a separate process that runs your dll (or the code that uses the dll).
2) Pass a tcp port number on the command line when you start it.
3) Get and set values via tcp
4) If it locks up (you say you know when that happens) have the tcp client ask for a process kill.
5) Maybe your primary app can destroy the secondary process (which should dump the dll too) and restart it.
No need to respond I'm just doing a brain dump.
Edited by: KevinPas on Jun 6, 2012 9:26 AM
Edited by: KevinPas on Jun 6, 2012 9:31 AM
9. Re: Stuck Inside Native MethodjschellSomeoneStoleMyAlias Jun 6, 2012 5:45 PM (in response to 638189)
StuartyBoarder wrote:NoAbsolutely.
I am assuming that you mean b), which is not really an optionA process is a process. Doesn't matter what it runs.
An advantage that hasn't been mentioned in terms of a separate process is that if the dll has a system exception it will cause the process to exit. And there is no way to stop that. If that process is your JBoss server then it will exit. Which probably isn't what you want.
As a separate process if if exits all you need to is detect that (via correct usage of Process) and then just start it up again.
10. Re: Stuck Inside Native MethodEJP Jun 6, 2012 6:21 PM (in response to 638189)
Just so I am clear, do you mean that:None of the above. As it's a server that you don't want to restart you must put the bits that get stuck into a separate process that you can restart.
a) As it's a server [snip] | https://community.oracle.com/thread/2400324 | CC-MAIN-2015-18 | refinedweb | 1,143 | 73.17 |
21 August 2012 12:30 [Source: ICIS news]
By Janos Gal
LONDON (ICIS)--Negotiations over the European epoxy resins contract in September are expected to be tough as producers target increases, while buyers remain reluctant to accept any rises on the back of poor derivative demand, sources said on Tuesday.
"I ordered some material from ?xml:namespace>
Asian liquid epoxy resins (LER) prices are at $2,570-2,630/tonne (€2,081-2,130/tonne) free on board (FOB) northeast (NE)
Latest data by statistics agency Eurostat shows that in May, 12,989 tonnes of epoxy resins were imported to the EU from the rest of the world, up from 9,516 tonnes in April. Exports also increased, from 12,552 tonnes in April to 15,311 tonnes in May.
As a result of increasing feedstock costs, most European epoxy resins producers are targeting price hikes in September.
The European benzene contract price for August was agreed at €1,061/tonne, an increase of €108/tonne from the previous month; while co-feedstock propylene contract prices settled at €1,055/tonne, up by €120/tonne from July.
US-based producer Momentive announced that it would increase the price of LER and solid epoxy resins (SER) in Europe, the Middle East and
Similarly, Czech–based Spolchemie and two other producers announced increases of €50-100/tonne for LER and SER with effect from 1 August, or as contract terms allow. This was to increase low margins and to cover significant raw material cost increases. It remains to be seen whether buyers will accept the targeted hikes.
"It might be possible to increase prices by €50/tonne, but nothing more because the market just won't take it," an epoxy resins trader said.
However, producers said they will insist on passing on feedstock cost increases even if they lose customers because the current situation is unsustainable.
Sales are poor as nobody is keen on buying in the current uncertain economic climate, especially because construction and automotive demand continues to fall in
Statistics are showing no signs of improvement. Registrations for new passenger cars in the EU in June fell for the ninth consecutive month, according to data from the European Automobile Manufacturers' Association. In the first half of 2012, new car registrations in the EU fell by 6.8% year on year to 6.64m units.
EU construction output in June dropped by 1.7% compared with the month before, Eurostat said. On a year-on-year basis, output in June decreased by 5.8% in the EU and by 2.8% in the eurozone, Eurostat added.
This has resulted in falling demand from the paint and coatings industries, which is down by about 20-25% compared with the same time last year. Sales to the automotive and construction sectors are down by about 10-15% or more, depending on region.
In order to balance supply with demand, most feedstock bisphenol A (BPA) plants are running at 50-60% of operating rates. Epoxy resin plants are at 60-70%, while polycarbonate plants are at 45-60% capacity.
Because most market participants are on holiday and several plants are shutdown for maintenance, little activity is expected during the next two weeks, but tough negotiations are likely once players return.
"Even if our sales drop and we lose some customers we will be adamant to pass on these increases because the current situation is unsustainable," an epoxy resins producer said.
($1 = €0.81)
Follow Janos Gal for tweets on the epoxy resins market | http://www.icis.com/Articles/2012/08/21/9588534/europe-epoxy-players-expect-tough-talks-in-september.html | CC-MAIN-2015-06 | refinedweb | 589 | 59.33 |
that kind of error happen
that kind of error happen when you have a service that produce more data than a listener service can process.
I have run your script and did not get any error, but it said the word 'test' at a rate lower than what you asking for (it said test maybe a bit less than 1 time/s and you ask for 1-2 times/s). So your processor probably get busy saying 'test' and can't do other thing and at some point the buffers holding the messages between services overflow.
Try to not ask much than what your computer can do
Thank you Christian ! So t is
Thank you Christian ! So t is my hardware limits.
Time to hunt cpu burning processes and increase some timers values
I have removed this line
I have removed this line inside the timer ( from the whole script ) , and increase time . it is better ! but still have buffer errors....
it like the cpu doesn't like we change velocity every second while servo moving... there is something else it doesnt like I will look forward
setVelocity have probably
setVelocity have probably nothing to do with your problem, it`s just a variable setting.
what kind of computer are you using?
It use a corei3 2ghz 4g
It use a corei3 2ghz 4g ram
dude I just saw my java 32bit. > update to 64 and reinstall all
no more buffer problem. I do more test tomorow
( i think i have an hardware problem too like a crappy ssd )
Worky ! multiple problems
Worky ! multiple problems identified
I can now use indecent timer values + moveTo + at same time indecent analog poling !
Now I wait the servo had finish the movement before sending another ( servo.isMoving() no worky ) :
if -0.1 <= i01.head.rothead.getCurrentPos()-i01.head.rothead.getPos() <= 0.1:i01.head.rothead.moveTo(random.uniform(60,120))
+ I use
head.rothead.enableAutoDetach(0) , I think the autoDetach(1) event cause buffer problem inside the timer
Thank for those functions, I continue playin with them :)
Hi anthony there was
Hi anthony
there was effectively a problem with the autoDetach. The detach() call was place at the wrong place, wich cause a longer wait than expect, resulting in a bufferoverflow
I fix that in the latest version, along with the isMoving()
I m happy if we found this
I m happy if we found this bug !
I try to use autodetach() on 1953. I have no buffer error anymore. But I can't control velocity anymore ( full speed ) if autodetach(true)
Nice found.... You discover
Nice found.... You discover that before the servo start moving it send a servoEventStopped... that event quickly detach the servo before he finish moving... On the next move, it attach and "jump" at the position he think he should be, and that jump is always at full speed.
fixed in the latest, flash your arduino
But the good thing is that it show that it's working
Wahooo the mechanical is
Wahooo the mechanical is perfect now ! a real clock
If we meet one day I owe you a lot of
Arg, sorry I spoke too fast.
Arg, sorry I spoke too fast. there is still a little bug, the last one I think :
If setVelocity=-1 or is not set , autodetach(1) cause a lot of bufferoverun.
tested with a simple script
use serVelocity(-1) !!!!
use serVelocity(-1) !!!! why!!! who want to use servo without speed control LOL
I will look at this as soon as I can
you right :) It can be
you right :)
It can be usefull for fullspeed if we don't know maxvelocity ( like jaw servo, or for newbies )
I think I fix the autodetach
I think I fix the autodetach when velocity = -1
now you can try to break it again :)
buffer overrun crash
Hi dude. oups i did it again :)
I still have random buffer overrun crash if I use poling + servo.moveTo
. I try to isolate the problem but it is hard. I found this. Don't know if it is related but it is a good crash 100% reproductible :)
If I go inside arduino serial gui , and if I select text inside ( same problem if I click inside the terminal log )
Maybe sometime , something cause interferencies between gui and mrlcomm, like this test ?
from time import sleep
arduino = Runtime.createAndStart("arduino","Arduino")
arduino.connect("COM5")
for pin in range(0, len(pins)):
print 0
arduino.enablePin(6,100)
Let me try to explain you how
Let me try to explain you how data are transfered to different services, it will help you to understand why the buffer overflow happen and how to try to avoid them
You have a service (A) that publish data (in your case, the Arduino service that publish the pin value), so the data are put into the arduino outbox buffer. Then those data will be transfered to the inbox buffer of every services (B) that listening to those data (in your case, the serialGui). Service B will then take and remove one data from it's inbox and process it, then take another one and process it and so on.
Now what happen if service A publish data more quickly than service B can process them, the data will accumulate in the input buffer of service B. At some point, the input buffer will get full and the output buffer of service A will complain that he have no place to put the data, that's the error message you are seeing.
So sometimes it need to have some synchronization between the publisher service and the listener service to avoid the buffer to overflow.
So how to prevent the buffer overflow
in your specific example, when you select text in the box, the serialGui seem to halt, no other data get processed and show in the GUI. So the input buffer get quickly full and you get the buffer overflow errors.
Not sure how to fix that specific case, but one thing that's i'm sure is that those buffer overflow have no consequence other than losing some data to show in the serialGui. If anothe service is listening to the publish data, it should receive the data normally just as the serialGui is working normally. So that's annoying, but your code should work normally
I added a monitor button in
I added a monitor button in the Serial gui
There are several things which take time when data goes to the SerialGui
Lots of slowness with guis... so monitor button is off now by default - does not show data
You also want to make sure your not logging all this stuff (logging takes time too)
runtime->logging->info or warn or error (not debug)
:)
thank you ! those things made
thank you ! those things made me crazy, no more error or icerberg, see is calm now ! | http://myrobotlab.org/content/buffer-overrun-cause-script-stuck | CC-MAIN-2017-34 | refinedweb | 1,155 | 68.1 |
If you have never created a pet for Glowbe, you probably want to look into our FAT Pet Tutorial. If you feel sufficiently experienced, feel free to move forward with the more advanced steps below.
Basic Settings
You can configure your basic document properties under Modify → Document....
- Dimensions: A pet may be any size under the maximum of 450x500 pixels.
- Frame rate: All Glowbe pets must be 30 frames per second.
- Background color: You can use any background color you like, but it won't appear in Glowbe.
A pet's behavior is all controlled by scenes and the names you give them. There's no code involved - just use the right naming convention, and Glowbe will automatically incorporate your scenes into the pet's routines. Look at the examples in each category to see how scene naming defines what a scene does.
Moods
A pet's moods will change randomly, according to the whim of the pet. For any mood there must be an idle scene, and all pets require a base "content" mood.
The default moods defined by the SDK are:
- content_idle
- hungry_idle
- playful_idle
- sleepy_idle
- sleeping_idle
- lonely_idle
- curious_idle
- excited_idle
Walking
Walking scenes are triggered whenever your pet traverses space in the room. You can associate walks with any moods you've created. If a mood doesn't have an associated walk, your pet will just transition to "content" before moving.
Some example walks:
- content_walk
- hungry_walk
- playful_walk
Transitions
Transitions are special scenes that smooth the change from one scene (mood or walk) to another. They will be played through once before beginning the scene called. For example, if the pet decides to start flying, Glowbe will play content_to_flying once through before beginning flying_idle. You don't need transitions for all or even any of your moods. Just transition the ones you want.
Some example transitions:
- Transitioning to and from a walk:
- content_towalk
- content_fromwalk
- Transitioning between two moods:
- playful_to_content
- content_to_hungry
It is also possible to limit what mood changes your pet can have. These are the default changes:
- content changes to playful, excited, curious, hungry or lonely
- playful changes to content, sleepy, or excited
- sleepy changes to sleeping
- lonely changes to content or sleepy
- hungry changes to content, lonely or curious
- curious changes to content, hungry or excited
- excited changes to content, playful or curious
Incidentals
Sometimes you want a mood to vary. For instance, in an idle animation, you want the pet to yawn every so often. These are called incidentals, and can be handled with scene naming, just like other animations. Essentially, you split up the mood into multiple numbered versions (01, 02, 03...) and then assign each numbered version a percent probability (:05, :80, :66...) so that the versions' probabilities add up to 100. When a given scene of a mood is finished, Glowbe will randomly choose the next version of the mood to be played, based on these probabilities.
Some example incidentals:
- An occasional yawn in the content mood:
- content_idle_01:95
- content_idle_02:05
- A mood that equally mixes three possible animations:
- playful_idle_01:34
- playful_idle_02:33
- playful_idle_03:33
Pet Code
Just as a typical Glowbe pet is built in Adobe Flash CS3, the code to handle pets is written in Flash's ActionScript. Moving beyond the basic pet template doesn't require complex code writing. Setting up new actions for your pet is usually as easy as cut and paste.
Required ActionScripts
Glowbe pets require some ActionScript to communicate with Glowbe's servers and let each other know what's going on. The basic code tells the pet which way it's facing and whether or not it's walking. This pet foundation code is a combination of imported scripts from the Glowbe SDK and a few lines of ActionScript in the main scene. In the template we already did this for you. If you make a pet from scratch, or open the source file for someone else's pet, you'll need a basic understanding of how to set it up yourself.
Classpaths to Import Glowbe's Server Code
Setting a classpath in Flash's preferences means it will automatically import this code for all your future pets. Once it's set up, all your avatars will export with the server code.
- In Flash, choose Edit -> Preferences.
- Under Category, choose ActionScript.
- Click the button labeled "ActionScript 3.0 Settings...".
- Add the base Glowbe classpath:
- Click the plus to add a new classpath.
- Click the crosshairs to browse to your SDK folders.
- Find and set the path to "...\Glowbe\src\as".
- Add the pet classpath:
- Click the plus to add a new classpath.
- Click the crosshairs to browse to your SDK folders.
- Find and set the path to "...\Glowbe\examples\pets\urpet\src".
Basic ActionScript for the Main Scene
The "main" scene of your pet file should contain all the code for handling pet behavior in Glowbe. For a basic pet, this is a simple copy and paste.
- Select the scene "main". If this is a new file, double-click "Scene 1" to rename it "main".
- Open the Actions window (F9).
- Paste in this code and replace w with the width of your scene.
import com.Whirled.PetControl; if (_ctrl == null) { _ctrl = new PetControl(this); _body = new Body(_ctrl, this, w); _brain = new Brain(_ctrl, _body); addEventListener(Event.UNLOAD, handleUnload); function handleUnload (... ignored) :void { _brain.shutdown(); _body.shutdown(); } } var _ctrl :PetControl; var _body :Body; var _brain :Brain;
Hotspot
The hotspot determines where the pet sits on the floor of a room. The default hotspot is the center of the lowest point on the pet.
_ctrl.setHotSpot(x, y);
- Add this line of ActionScript directly under your existing "_ctrl..." lines.
- Click the Info tab.
- Move your cursor over the point on the "floor" directly below your pet's center of gravity.
- Note the coordinates of your cursor in the Info tab.
- Replace the x and y in the script with the x and y coordinates of your newfound hotspot.
Move Speed
The move speed is the rate at which your pet will traverse a room at full size, in pixels per second. The default move speed is 400. Lower numbers are slower and higher numbers are faster.
_ctrl.setMoveSpeed(n);
- Add this line of ActionScript directly under your existing "_ctrl..." lines.
- Replace the n in the script with the speed you want for your pet.
Upload to Glowbe and check your walk speed in action. Then go back to your source file and adjust up or down. | http://glowbeonline.wikia.com/wiki/FAT_Pet_Advanced | CC-MAIN-2018-47 | refinedweb | 1,079 | 64.71 |
I am trying to keep the code ANSI SQL for some purposes, so I will probably
have to have some different workaround... thanks!
On Mon, Sep 30, 2013 at 6:48 AM, Rick Hillegas <rick.hillegas@oracle.com>wrote:
> Hi Sergey,
>
> This looks like a bug to me. I have logged**
> jira/browse/DERBY-6358 <>to track
this.
>
> As a workaround, you could first put the results of the inner joins into a
> temp table and then select from the temp table, applying the WHERE clause.
>
> Another solution would be to wrap the inner joins in a table function and
> then select from the table function, applying the WHERE clause. Here's a
> table function you could use. You could eliminate the arguments to the
> table function if you wanted to make your query simpler to express...
>
> import java.sql.*;
>
> public class ForeignQueryVTI
> {
> public static ResultSet foreignQuery( String connectionURL, String
> query )
> throws SQLException
> {
> Connection conn = DriverManager.getConnection(
> connectionURL );
> PreparedStatement ps = conn.prepareStatement( query );
>
> return ps.executeQuery();
> }
> }
>
> The following script shows how to use this table function to get the right
> results:
>
> connect 'jdbc:derby:memory:db;create=**true';
>
> create table t1( a varchar( 10 ) );
> create table t2( a varchar( 10 ) );
>
> create function fq( url varchar( 100 ), queryString varchar( 100 ) )
> returns
> table
> (
> b varchar( 10 ),
> c varchar( 10 )
> )
> language java parameter style derby_jdbc_result_set reads sql data
> external name 'ForeignQueryVTI.foreignQuery'**;
>
> insert into t1( a ) values ( 'horse' ), ( 'apple' ), ( 'star' ), ( '6' );
> insert into t2( a ) values ( '6' );
>
> -- fails because of DERBY-6358
> from t1 inner join t2 on t1.a = t2.a
> where cast( t1.a as int ) > 5;
>
> -- succeeds
> from table
> (
> fq( 'jdbc:default:connection', 'select * from t1 inner join t2 on t1.a
> = t2.a' )
> ) s
> where cast( s.b as int ) > 5;
>
> Hope this helps,
> -Rick
>
>
>
>
> On 9/27/13 4:52 PM, Sergey Shelukhin wrote:
>
>> Hi.
>>. | http://mail-archives.apache.org/mod_mbox/db-derby-user/201309.mbox/%3CCAHXxaiCPpYPUZXy2mB1QF4QzWYFOvUu5xApAPfmBkBFB2SFQ4g@mail.gmail.com%3E | CC-MAIN-2014-23 | refinedweb | 307 | 63.49 |
Opened 2 years ago
Last modified 2 years ago
#28172 new Bug
Prevent nonexistent template filter arguments from raising VariableDoesNotExist
Description
I'd like to fix the error reported in #13167. The main bug
from django.template import Context, Template Template('{{ foo|default:notreal }}').render(Context({'foo': ''}))
still raises
VariableDoesNotExist exception, which is completely unexpected from templates, as noted in closing comment ticket:13167#comment:20. I took me more than an hour before I found out how did it make the server error I investigated.
I know the original ticket was closed as wontfix, but I understood it was due to the effect the proposed change would have on
if tag. But there's another way - capture the exception in
VariableNode the similar way
UnicodeDecodeError is silenced. If I understood the code correctly, that would solve the problem for all template filters, but left template tags intact.
Change History (4)
comment:1 Changed 2 years ago by
comment:2 Changed 2 years ago by
comment:3 Changed 2 years ago by
Alejandro, I don't think there's consensus to make this change (hence the ticket's Someday/Maybe status). Did you read the mailing list discussion linked from in comment 1?
I understand the "template errors don't raise exceptions" philosophy, however, I think changing the current behavior would be more error prone (e.g. typos in variable names go more easily undetected). I've started a django-developers thread to get other opinions. | https://code.djangoproject.com/ticket/28172 | CC-MAIN-2019-35 | refinedweb | 246 | 53.92 |
Testing Guidelines¶
Introduction¶
Until the 1.15 release, NumPy used the nose testing framework, it now uses the pytest framework. The older framework is still maintained in order to support downstream projects that use the old numpy framework, but all tests for NumPy should use pytest.
Our goal is that every module and package in SciPy and NumPy should have a thorough set of unit tests. These tests should exercise the full functionality of a given routine as well as its robustness to erroneous or unexpected input arguments. Long experience has shown that by far the best time to write the tests is before you write or change the code - this is test-driven development. The arguments for this can sound rather abstract, but we can assure you that you will find that writing the tests first leads to more robust and better designed code. Well-designed tests with good coverage make an enormous difference to the ease of refactoring. Whenever a new bug is found in a routine, you should write a new test for that specific case and add it to the test suite to prevent that bug from creeping back in unnoticed.
To run SciPy’s full test suite, use the following:
>>> import scipy >>> scipy.test()
or from the command line:
$ python runtests.py
SciPy uses the testing framework from
numpy.testing, so all
the SciPy examples shown here are also applicable to NumPy. NumPy’s full test
suite can be run as follows:
>>> import numpy >>> numpy.test()
The test method may take two or more arguments; the first,
label is a
string specifying what should be tested and the second,
verbose is an
integer giving the level of output verbosity. See the docstring for
numpy.test for details. The default value for
label is ‘fast’ - which
will run the standard tests. The string ‘full’ will run the full battery
of tests, including those identified as being slow to run. If
verbose
is 1 or less, the tests will just show information messages about the tests
that are run; but if it is greater than 1, then the tests will also provide
warnings on missing tests. So if you want to run every test and get
messages about which modules don’t have tests:
>>> scipy.test(label='full', verbose=2) # or scipy.test('full', 2)
Finally, if you are only interested in testing a subset of SciPy, for
example, the
integrate module, use the following:
>>> scipy.integrate.test()
or from the command line:
$python runtests.py -t scipy/integrate/tests
The rest of this page will give you a basic idea of how to add unit tests to modules in SciPy. It is extremely important for us to have extensive unit testing since this code is going to be used by scientists and researchers and is being developed by a large number of people spread across the world. So, if you are writing a package that you’d like to become part of SciPy, please write the tests as you develop the package. Also since much of SciPy is legacy code that was originally written without unit tests, there are still several modules that don’t have tests yet. Please feel free to choose one of these modules and develop tests for it as you read through this introduction.
Writing your own tests¶
Every Python module, extension module, or subpackage in the SciPy
package directory should have a corresponding
test_<name>.py file.
Pytest examines these files for test methods (named test*) and test
classes (named Test*).
Suppose you have a SciPy module
scipy/xxx/yyy.py containing a
function
zzz(). To test this function you would create a test
module called
test_yyy.py. If you only need to test one aspect of
zzz, you can simply add a test function:
def test_zzz(): assert_(zzz() == 'Hello from zzz')
More often, we need to group a number of tests together, so we create a test class:
from numpy.testing import assert_, assert_raises # import xxx symbols from scipy.xxx.yyy import zzz class TestZzz: def test_simple(self): assert_(zzz() == 'Hello from zzz') def test_invalid_parameter(self): assert_raises(...)
Within these test methods,
assert_() and related functions are used to test
whether a certain assumption is valid. If the assertion fails, the test fails.
Note that the Python builtin
assert should not be used, because it is
stripped during compilation with
-O.
Note that
test_ functions or methods should not have a docstring, because
that makes it hard to identify the test from the output of running the test
suite with
verbose=2 (or similar verbosity setting). Use plain comments
(
#) if necessary.
Labeling tests¶
As an alternative to
pytest.mark.<label>, there are a number of labels you
can use.
Unlabeled tests like the ones above are run in the default
scipy.test() run. If you want to label your test as slow - and
therefore reserved for a full
scipy.test(label='full') run, you
can label it with a decorator:
# numpy.testing module includes 'import decorators as dec' from numpy.testing import dec, assert_ @dec.slow def test_big(self): print 'Big, slow test'
Similarly for methods:
class test_zzz: @dec.slow def test_simple(self): assert_(zzz() == 'Hello from zzz')
Available labels are:
slow: marks a test as taking a long time
setastest(tf): work-around for test discovery when the test name is non conformant
skipif(condition, msg=None): skips the test when
eval(condition)is
True
knownfailureif(fail_cond, msg=None): will avoid running the test if
eval(fail_cond)is
True, useful for tests that conditionally segfault
deprecated(conditional=True): filters deprecation warnings emitted in the test
paramaterize(var, input): an alternative to pytest.mark.paramaterized
Easier setup and teardown functions / methods¶
Testing looks for module-level or class-level setup and teardown functions by name; thus:
def setup(): """Module-level setup""" print 'doing setup' def teardown(): """Module-level teardown""" print 'doing teardown' class TestMe(object): def setup(): """Class-level setup""" print 'doing setup' def teardown(): """Class-level teardown""" print 'doing teardown'
Setup and teardown functions to functions and methods are known as “fixtures”, and their use is not encouraged.
Parametric tests¶
One very nice feature of testing is allowing easy testing across a range
of parameters - a nasty problem for standard unit tests. Use the
dec.paramaterize decorator.
Doctests¶
Doctests are a convenient way of documenting the behavior of a SciPy
subpackage will have that subpackage already imported. E.g. for a test
in
scipy/linalg/tests/, the namespace will be created such that
from scipy import linalg has already executed.
tests/¶
Rather than keeping the code and the tests in the same directory, we
put all the tests for a given subpackage in a
tests/
subdirectory. For our example, if it doesn’t already exist you will
need to create a
tests/ directory in
scipy/xxx/. So the path
for
test_yyy.py is
scipy/xxx/tests/test_yyy.py.
Once the
scipy/xxx/tests/test_yyy.py is written, its possible to
run the tests by going to the
tests/ directory and typing:
python test_yyy.py
Or if you add
scipy/xxx/tests/ to the Python path, you could run
the tests interactively in the interpreter like this:
>>> import test_yyy >>> test_yyy.test()
__init__.py and
setup.py¶
Usually, however, adding the
tests/ directory to the python path
isn’t desirable. Instead it would better to invoke the test straight
from the module
xxx. To this end, simply place the following lines
at the end of your package’s
__init__.py file:
... def test(level=1, verbosity=1): from numpy.testing import Tester return Tester().test(level, verbosity)
You will also need to add the tests directory in the configuration section of your setup.py:
... def configuration(parent_package='', top_path=None): ... config.add_data_dir('tests') return config ...
Now you can do the following to test your module:
>>> import scipy >>> scipy.xxx.test()
Also, when invoking the entire SciPy test suite, your tests will be found and run:
>>> import scipy >>> scipy.test() # your tests are included and run automatically!
Tips & Tricks¶
Creating many similar tests¶
If you have a collection of tests that must be run multiple times with minor variations, it can be helpful to create a base class containing all the common tests, and then create a subclass for each variation. Several examples of this technique exist in NumPy; below are excerpts from one in numpy/linalg/tests/test_linalg.py:
class LinalgTestCase: def test_single(self): a = array([[1.,2.], [3.,4.]], dtype=single) b = array([2., 1.], dtype=single) self.do(a, b) def test_double(self): a = array([[1.,2.], [3.,4.]], dtype=double) b = array([2., 1.], dtype=double) self.do(a, b) ... class TestSolve(LinalgTestCase): def do(self, a, b): x = linalg.solve(a, b) assert_almost_equal(b, dot(a, x)) assert_(imply(isinstance(b, matrix), isinstance(x, matrix))) class TestInv(LinalgTestCase): def do(self, a, b): a_inv = linalg.inv(a) assert_almost_equal(dot(a, a_inv), identity(asarray(a).shape[0])) assert_(imply(isinstance(a, matrix), isinstance(a_inv, matrix)))
In this case, we wanted to test solving a linear algebra problem using
matrices of several data types, using
linalg.solve and
linalg.inv. The common test cases (for single-precision,
double-precision, etc. matrices) are collected in
LinalgTestCase.
Known failures & skipping tests¶
Sometimes you might want to skip a test or mark it as a known failure, such as when the test suite is being written before the code it’s meant to test, or if a test only fails on a particular architecture.
To skip a test, simply use
skipif:
import pytest @pytest.mark.skipif(SkipMyTest, reason=
xfail:
import pytest @pytest.mark.xfail(MyTestFails, reason="This test is known to fail because...") def test_something_else(foo): ...
Of course, a test can be unconditionally skipped or marked as a known
failure by using
skip or
xfail without argument, respectively.
A total of the number of skipped and known failing tests is displayed
at the end of the test run. Skipped tests are marked as
'S' in
the test results (or
'SKIPPED' for
verbose > 1), and known
failing tests are marked as
'x' (or
'XFAIL' if
verbose >
1).
Tests on random data¶
Tests on random data are good, but since test failures are meant to expose
new bugs or regressions, a test that passes most of the time but fails
occasionally with no code changes is not helpful. Make the random data
deterministic by setting the random number seed before generating it. Use
either Python’s
random.seed(some_number) or NumPy’s
numpy.random.seed(some_number), depending on the source of random numbers. | https://docs.scipy.org/doc/numpy-1.17.0/reference/testing.html | CC-MAIN-2019-39 | refinedweb | 1,757 | 63.9 |
The CheckBox in JavaFX can be configured for two states (selected, or not) or three states (selected, unselected, or indeterminate). This indeterminate state is often useful when a checkbox is being used in a TreeView, for example. You might be implementing a tree view showing which features are installed, and need to toggle to an indeterminate state for the branch of some of the children are selected, and some are not.
In JavaFX, putting the CheckBox into a mode where it can be indeterminate is quite simple, simply set the allowIndeterminate property to true:
CheckBox cb = new CheckBox("Indeterminate CheckBox"); cb.setAllowIndeterminate(true);
You manipulate the state of the check box through the use of two properties: selected and indeterminate. If allowIndeterminate is true, then as the user clicks on the check box, it will cycle through three state combinations:
- selected = true, indeterminate = false
- selected = false, indeterminate = true
- selected = false, indeterminate = false
Here is a full example:
import javafx.application.Application; extends Application { Label label; CheckBox cbox; @Override public void start(Stage stage) { label = new Label(); cbox = new CheckBox("Indeterminate CheckBox"); cbox.setIndeterminate(true); cbox.setAllowIndeterminate(true); ChangeListener<Boolean> listener = new ChangeListener<Boolean>() { @Override public void changed(ObservableValue<? extends Boolean> prop, Boolean old, Boolean val) { updateLabel(); } }; cbox.selectedProperty().addListener(listener); cbox.indeterminateProperty().addListener(listener); updateLabel(); VBox vbox = new VBox(7); vbox.setAlignment(Pos.CENTER); vbox.getChildren().addAll(label, cbox); Scene scene = new Scene(vbox, 400, 400); stage.setTitle("Hello CheckBox"); stage.setScene(scene); stage.setVisible(true); } private void updateLabel() { final String txt = cbox.isIndeterminate() ? "The check box is indeterminate" : cbox.isSelected() ? "The check box is selected" : "The check box is not selected"; label.setText(txt); } public static void main(String[] args) { launch(args); } }
So, whenever either the indeterminate or selected property changes, we update the label’s text to match. This is kind of gross though (now that I’ve typed it out), because I have to attach a listener to two different properties. It would be nicer if there were a proper event handler that I could attach to the CheckBox which would be notified whenever indeterminate or selected changed.
I’ve filed a JIRA RT-13992 to track this.
Meanwhile, I can also use the high level binding APIs to do this. Here is an alternative implementation.
import javafx.application.Application; import javafx.beans.binding.Bindings;2 extends Application { @Override public void start(Stage stage) { CheckBox cbox = new CheckBox("Indeterminate CheckBox"); cbox.setIndeterminate(true); cbox.setAllowIndeterminate(true); Label label = new Label(); label.textProperty().bind( Bindings.when(cbox.indeterminateProperty()). then("The check box is indeterminate"). otherwise( Bindings.when(cbox.selectedProperty()). then("The check box is selected"). otherwise("The check box is not selected")) ); VBox vbox = new VBox(7); vbox.setAlignment(Pos.CENTER); vbox.getChildren().addAll(label, cbox); Scene scene = new Scene(vbox, 400, 400); stage.setTitle("Hello CheckBox"); stage.setScene(scene); stage.setVisible(true); } public static void main(String[] args) { launch(args); } }
And that’s pretty darn slick, IMHO.
It certainly is good to see indeterminate is supported in the core (unlike JCheckBox). But coming from a business model background I see need to write a wrapper on top of it, because in the business model the indeterminate state is not something separate from the actual value; a boolean itself can have three values: true, false and null. So binding the checkbox to a business model directly is not possible with the current implementation in JFX; we need to introduce a virtual Boolean (capital is intentional) property that deligates to selected and indeterminate.
For JCheckBox I chose to extend it and add the logic directly on top, not the conceptually best solution, but a very practical one. And it works great.
If you like, file a JIRA with an API suggestion!
RT-14012
Giving meaning to null Booleans is the same as saying that a null Integer is MAX_INT + 1 or even worse saying that a null String is the same as the empty string. Please do not do this in API code.
Object reference variables in Java can point to nothing, null. You should (in API code) never interpret the lack of an object as a value for an object of that type. That will undoubtedly lead to confusion and someone wishing it didn’t work this way. 🙂
I would have to agree with tbee, the current API isn’t good.
Instead use
check.setState(Boolean b)
or
check.setState(State.INDETERMINTATE/SELECTED/UNSELECTED)
Both would throw RuntimeException if the check is set to not support indeterminate.
There can still be a
boolean check.isSelected()
which only returns true for State.SELECTED.
And please don’t make the enum a part of CheckBox, it looks ugly and doesn’t save a file anyway.
Or did you go “no API changes” before you released to public? Nice move if so.
Hi, I did a quick test with the TableView: I created a table with 30 columns and 10000 lines, full of values. When I scroll up and down, the table has trouble keeping track of the current position and drawing appropriately. I can see that it is eating up CPU as well. Doing the same thing with a swing JTable, this was completely fluid. This leads to several questions:
– how do I know if my program does use prism rather than java 2D for rendering (is there a simple test)?
– if I was not using prism, why is the JTable still looking better than the TableView? Is that a problem of optimization in the TableView
– is that a goal for the GA to optimize it in such a way that it (out?)performs at least to the level of the JTable?
– if I was using prism, will the TableView then compete with the JTable?
In short, what I have seen in terms of performance was disappointing, and I am wondering if this is just a matter of not using GPU, or if this is a problem with the control itself, or both. I would hope to have decent performances even without prism, because there old configurations out there, and I cannot tell everybody to change their graphic cards just to do some scrolling ion a table…
Thanks for handwork!
Vince,
Thanks for testing out TableView! Firstly, you can determine if you are using prism by running your application with the following flags: -Djavafx.verbose=true -Dprism.verbose=true
Certainly by the time JavaFX 2.0 GA ships we intend to have considerably better performance than we do now! At this stage we’ve only just (mostly) frozen the APIs, and really have a long road ahead of us to fix bugs and improve performance. You know what they say about premature optimisation 🙂
However, I just recently applied a number of performance improvements to TableView that have not yet been put out into a public build. These were based on Jira issues I received and considerably improve performance in a few common cases. It would be great if you could please file a Jira issue and attach a test application I can use to easily reproduce your issue. If you do this I will hopefully reply with the good news that the performance has already improved….and if not then I have something else to work on :-). If you file it against Runtime and set the component to ‘Control’ the bug will end up assigned to me.
Thanks again!
Hi Jonathan, thanks for your answer.
A colleague of mine did create a JIRA: RT-14045. I ran the application with system properties on, and I got:
Prism pipeline init order: d3d j2d
Using openpisces for shapes, t2k for text rasterization
Using dirty region optimizations
Prism pipeline name = com.sun.prism.d3d.D3DPipeline
(X)(1) D3D loading native lib
prism-d3d loaded.
(X)d3dEnabled =false
(X) Got class = class com.sun.prism.d3d.D3DPipeline
D3DPipeline:getInstance(), d3dEnabled=false
Prism pipeline name = com.sun.prism.j2d.J2DPipeline
GraphicsPipeline.createPipeline: error initializing pipeline com.sun.prism.d3d.D3DPipeline(X) Got class = class com.sun.prism.j2d.J2DPipeline
*** Fallback to Prism SW pipeline
Initialized prism pipeline: com.sun.prism.j2d.J2DPipeline
JavaFX: using com.sun.javafx.tk.quantum.QuantumToolkit
RESIZE: 28626752466535 w: 1200 h: 550
Glass native format: 1
I suppose I am using java 2D. even though, I would argue that even in Java 2D, javafx should be able to perform as well as Swing. I read that the JFXtras/XTableView (at the time) did “heavy use of node caching and other scene graph optimizations to ensure that operations do not degrade with the size of the data”. Is the TableView using the same kind of tricks?
Thanks,
Vince
Vince,
Yes, TableView does the same kind of tricks – in fact, it’s likely XTableView from JFXtras used the same approach that was previously used in ListView in JavaFX 1.3.
For JavaFX 2.0, we use the same implementation across TreeView/ListView/TableView – we only create a very, very small number of ‘cells’ in these controls – just enough to show on screen (and maybe one or two more). As you scroll these controls, these cells are reused.
My guess is that the performance issues are related to the number of columns you’re testing with. This will need to be investigated further to ensure good performance.
Thanks to you and your colleague for the bug report – I’ll be looking into it in the comming weeks.
Hey,
I have been trying out the table view, but the recent build changes have affected my code and the previous code base is erroneous now. The cell values are just not able to render themselves. FYI, I read values out of a resultset. Can you please check my code and help me figure out the problem ?
The code is at :
I would recommend visiting the OTN forums for JavaFX. | http://fxexperience.com/2011/06/indeterminate-checkbox/ | CC-MAIN-2017-04 | refinedweb | 1,633 | 56.15 |
Hi Matt, On 07/08/2009, Matthew Dillon <dillon@apollo.backplane.com> wrote: > > :Hi All, > : > :I'm trying to do some testing with dfly 2.2 (both release and the last > :release snapshot) and HAMMER. > :For the first run I issued a simple dd if=/dev/zero of=testfile bs=1M > :command on the filesystem, which wrote some stuff out and immediately > :switched the file system into read only mode. > : > :UFS works fine. > : > :The kernel logs this: > :(da1:ciss1:0:1:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 > :(da1:ciss1:0:1:0): CAM Status: SCSI Status Error > :(da1:ciss1:0:1:0): SCSI Status: Check Condition > :(da1:ciss1:0:1:0): ILLEGAL REQUEST asc:20,0 > :(da1:ciss1:0:1:0): Invalid command operation code > :(da1:ciss1:0:1:0): Unretryable error > :HAMMER(test): Critical error inode=-1 while flushing meta-data > :HAMMER(test): Forcing read-only mode > :HAMMER(test): Critical error inode=-1 while flushing meta-data > :HAMMER(test): Critical write error during flush, refusing to sync UNDO FIFO > : > :This is with a HP P400 controller with battery backed write cache, > :which -as it seems- doesn't support the SYNCHRONIZE CACHE command. > :FreeBSD's ciss driver apparently has workaround for this. > : > :Any chance of merging that change into dfly? > : > :Regards, > > Hmm. I looked at the driver code and we seem to have the same > workaround. The workaround is disabled in both the FreeBSD driver > and our driver. Please try changing line 899 in dev/raid/ciss.c, > change the #if 0 to an #if 1. > > #if 0 > /* XXX later revisions may not need this */ > sc->ciss_flags |= CISS_FLAG_FAKE_SYNCH; > #endif > > And see if that fixes the problem. Also post all the ciss lines > from /var/run/dmesg.boot, maybe I can do a more specific check of > adapter version to set the flag for. ciss0: <HP Smart Array P800> port 0x5000-0x50ff mem 0xfdef0000-0xfdef0fff,0xfdf00000-0xfdffffff irq 7 at device 0.0 on pci14 ciss1: <HP Smart Array P400> port 0x4000-0x40ff mem 0xfdbf0000-0xfdbf0fff,0xfdc00000-0xfdcfffff irq 10 at device 0.0 on pci6 da0 at ciss1 bus 0 target 0 lun 0 da1 at ciss1 bus 0 target 1 lun 0 da2 at ciss1 bus 0 target 2 lun 0 but I think it would be the same for all SA family members... Works fine with this change, thanks. -- | http://leaf.dragonflybsd.org/mailarchive/kernel/2009-08/msg00016.html | CC-MAIN-2014-52 | refinedweb | 400 | 62.98 |
How to use C# while loop
The while statement continually executes a block of statements until a specified expression evaluates to false . The expression is evaluated each time the loop is encountered and the evaluation result is true, the loop body statements are executed.
Like if statement the while statement evaluates the expression, which must return a boolean value. If the expression evaluates to true, the while statement executes the statement(s) in the while block. The while statement continues testing the expression and executing its block until the expression evaluates to false.
The C# while statement executes a statement or a block of statements until a specified expression evaluates to false . The above program the loop will execute the code block 4 times. A while loop can be terminated when a break, goto, return, or throw statement transfers control outside the loop. To pass control to the next iteration without exiting the loop, use the continue statement.
while(true)
An empty while-loop with this condition is by definition an infinite loop. You can implement an infinite loop using the while statement as follows:
using System; using System.Windows.Forms; namespace WindowsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { int count = 1; while (count < = 4) { MessageBox.Show("The value of i is : " + count); count = count + 1; } } } } | http://csharp.net-informations.com/statements/csharp-while-loop.htm | CC-MAIN-2015-32 | refinedweb | 225 | 54.52 |
T/F: The recent trend is for the federal government and corporations to shift more responsibility to the individual with respect to providing for their financial future
True
Assume you bought a 5 year certificate of deposit (CD) last year which pays 5%. If you decide to cash out of your CD before 5 years, then the bank will impose a severe penalty by reducing the interest you receive. Assume today you could buy a 5 year CD and receive 7% due to rising interest rates. You wish to cash out of your 5% CD and invest at a higher rate, but the penalty is too severe. This situation is an example of ______ risk.
Liquidity
T/F: There is no correlation between the methods and techniques necessary to make money in a business as compared to the methods and techniques necessary to make money as an individual.
False
What is the first step in the financial planning process?
Determine your current financial condition
T/F: Individuals should generally be careful when considering financial advice from those in the financial services industry since often times there can be a conflict of interest.
True
Several years ago, selected new autos had an average cost of $12,000, and today, the average cost is $17,400.
What is the total rate of increase for these autos between the two time periods?
45%
You just received a copy of an email from an unknown investment advisor to a client recommending the purchase of a stock. The email appears to have been sent to you by mistake.
What is your best course of action?
Do nothing. This is probably a scam. Do not trust the information in this email. Do not believe the advice from the broker.
Using the Rule of 72, approximately how long does it take for your money to double in value if you earn a 35% annual return?
2.06
A UCF graduate is getting a masters degree at night. The graduate expects to receive an annual salary of $6,000 per year more as a result of getting a masters degree. The graduate plans to work for 40 years, so he/she will earn $240,000 more in their lifetime ($6,000 x 40 years).
What is the present value of a stream of $6,000 payments for 40 years based on an annual interest rate of 7%? Assume the $6,000 is paid annually at the END of the year. By the way, if it costs say $25,000 today to get a masters degree, do you think a graduate degree is a smart economic move if your salary goes up by $6,000 per year?
$79,990, yes get the masters degree, the net present value of this decision is $54,990
A UCF graduate is offered a salary of $35,000 in the year 2012 and expects to receive 3% raises each year. What would be his/her salary in 2016?
$39,393
A UCF graduate is earning $38,000 a year in Orlando, and has an offer to move to a city where the cost of living is 12% higher. What would be the minimum salary this graduate would need to maintain the same standard of living?
$42,560
Assume you make $50,000/year and save 6% of your monthly salary ($250/month) in your 401-K account. Your employer will match 3% of your salary per month (at the end of the month) and deposit it in your 401-K account for 30 years. You expect this account to earn an 10% return.
What is the future value of the 401-K account in 30 years?
$847,683
What is the AFTER TAX value of a $5,000 company car, assuming a 25% marginal tax rate? (Note that if your employer provides you with a car, the personal use of the car will be added to your W-2, and you will have to pay taxes, thus cars are a "Pre-tax" benefit).
$3,750.00
A UCF graduate has two job offers. Job 1 pays $36,500 with a $4,400 non-taxable benefit, while Job 2 pays $34,700 and has a $6,100 non-taxable benefit. What is the PRE-TAX value of each job assuming the graduate is in a 10% marginal tax bracket?
Job 1: $41,389 Job 2: $41,478
Assume the following for a 401-K plan.
Annual salary = $60,000
Monthly salary = $5,000
Pay date = End of each month
Amount you save in 401-K = 5% of salary
Amount of employer match = 4% of salary
How much will you have in the 401-K plan after 40 years assuming a 8% investment return?
$1,570,953.52
In general, experts advise that one must save _____ of your salary in order to have sufficient funds to maintain your standard of living in retirement (this % would include both your 401-K savings and the employer match and other savings).
15-18%
Which of the following is TRUE?
A. More and more employers are using credit reports as hiring tools.
B. Federal law does NOT require applicants to be told if credit histories are being used in the hiring process.
C. Federal law requires that job applicants must be told if credit histories are being used in the hiring process.
D. It is against the law for employers to use credit reports as hiring tools.
E. Answers a and c are true
E. Answers a and c are true
Liquid assets: $14,670
Current liabilities: $2,670
Long term liabilities: $66,230
Investment assets: $8,340
Household assets: $90,890
What is this person's net worth?
$45,000
If a student has a new worth of $50,000 and liabilities of $20,000, what are his/her total assets?
$70,000
Ima Knight has budgeted $300 for food, $400 for insurance, and $500 for gifts. Ima's actual expenses were $200 for food, $300 for insurance and $500 for gifts. What is Ima's total budget variance?
A positive $200 (under budget)
Assume the following:
Assets = $100,000
Liabilities = $75,000
Net Worth = $25,000
Monthly credit payments = $1,440
Take home pay = $7,200
What is the debt ratio and debt payments ratio for this individual?
Debt ratio = 3.0
Debt payments ratio = .20
Most of the information in your credit file may be reported for only ______ years (if you have not declared bankruptcy).
7
A homeowner paid $75,000 for his/her house and after several refinancings now owes $140,000 on the mortgage. The house is currently worth $160,000.
A bank will provide home equity loans up to 85% of the value of the house. What is the maximum amount the homeowner could borrow on a home equity loan?
$0
Experts advise that your debt payments to take home pay ration should not exceed 20%. A homeowner has the following monthly income and expenses:
Gross salary: $2,000
Taxes/social security: $340
Visa card payments: $35
Mastercard payments: $30
Discover card payments: $20
Auto loan payments: $385
What is the homeowner's "debt payments to take home pay" ratio?
28.3%
A UCF graduate has $7,000 of debt excluding her house and a net worth of $30,000 ($21,000 excluding her house). What is the graduate's debt to net worth ratio exclusive of the house? Experts say the ideal target ratio should not exceed 1 (100%)
33.3%
A UCF student (who has not taken FIN 2100) decides that he really needs a large screen HD TV for football season. The student goes to a "rent to own" center and agrees to rent a TV for $50 per month (end of month). After 36 months, the student will own the TV. Assuming that the student could buy the same TV today for $1,000, what is the effective interest cost of renting the TV?
43%
A student borrows $500 for one year, and is charged $50 in interest. He/she also pays a fee of $10 for the loan.
What is the total cost of financing and the APR?
$60 financing cost with a 12% APR
A student has two credit card offers. Credit card "A" has an 18% per annum interest rate with no fee, while credit card "B" has a 12% per annum interest rate with a $50 annual fee. If the student maintains an average balance at month end in excess of $______, he/she should select the card "B" which has a lower rate with an annual fee. (i.e. what is the break-even point?)
$833.33
A student takes a $200 cash advance on his credit card in January. The cash advance fee is 2% of the amount withdrawn. In addition, he/she does not pay off the $200 balance on the credit card at month end. The credit card carries an 18% per annum interest rate. The student just received his February credit card statement. Assuming the beginning January 1 balance was zero, how much money could the student have saved in January had he/she not taken out the cash advance?
$7
You are shopping for a TV, and three stores carry the same model for $300 each. Each store charges 18% interest per annum, has a 30 day grace period, and sends out their bills on the first of the month. Each store calculates the finance charge using different methods:
Store A Average daily balance method
Store B Adjusted balance method
Store C Previous balance method
Assume you bought the TV on May 5, and made one payment of $100 on June 15. What is the cost of financing with Store A for the month of June?
$3.75
Using the same information as the previous card, what is the cost of financing with Store B in the month of June?
$3.00
Using the same information as the previous two cards, what is the cost of financing with Store C in the month of June? (By now you should know which one of these methods is best, and which two to avoid!)
$4.50
If you finance a car with a dealer, most likely you'll pay interest calculated with the "add on interest" or "tack on interest" method (which not surprisingly works to the favor of the dealer). During the life of the loan, interest is paid on the full amount borrowed, even though some principal is paid back each month. A student buys a car as follows:
Down payment- $2,000
Amount financed- $9,000
Total cost of car- $11,000
Finance charge- Add on interest @11% per annum over 4 years (48 months)
What is the monthly payment and APR of this loan using your HP 10BII?
$270/month with an APR of 19.2%
A Navy petty officer needs cash and goes to a paycheck advance company for some money. He/she agrees to pay $550 in two weeks (when his/her paycheck arrives) in exchange for $500 today.
What is the interest rate implicit in this loan?
Hint: this is a TVM problem, and the payments per year should be listed as 365, with n=14.
249%
You currently are spending $50/year renting a pressure washer to clean you house. The cost of a new pressure washer is $300. If you bought the pressure washer, how many years would it take to obtain full payback on your original investment relative to renting (use a simple payback calculation)?
Note: Payback is a useful, but simplistic way to evaluate a purchasing decision, that does not consider the time value of money.
A quick payback implies a better deal, while a slower playback is not as good. But what if the pressure washer had to be replaced every 3 years at a cost of $300 each time? Buying would not be a better deal than renting.
6 years
Using the same information as the last card, assume that the pressure washer had to be replaced every 10 years. So your decision is to rent each year at $50 per year, or spend $300 now, which would save you $50 per year for 10 years. Assume the appropriate discount rate (interest rate or i) is 8%.
The same type of analysis used by corporations to evaluate capital investments would also apply to this buy/rent decision. Be sure you are in the right mode.
Calculate the present value of a stream of payments of $50 at the beginning of the year for 10 years at 8% and compare it to the $300 cost. By doing so you conclude:
(Note you could also do an NPV analysis, but be sure you net the initial cash flows for time period 0 i.e. $300 minus $50 = $250 and then use 9 Ns for the 50 payment)
It is better to buy now, with a net savings of $62.34
Your favorite cereal (standard 18 oz box) is sold for $3.78 at your local grocery. The local wholesale club packages two giant 22 oz. boxes of the same cereal (which must be bought together) for $9.68. The wholesaler list a per package cost of $4.84 rather than a list a per ounce cost (this is a common tactic used to confuse consumers). Which is the better buy on a per ounce basis?
The grocery store's price is 21 cents per ounce, 1 cent better
What is the annual cost per mile of operating a car given the following information?
Annual miles driven: 12,300
Gas cost:
-Average miles/gallon: 24
-Average cost of gas/gallon: $3.35
Annual depreciation: $2,500
Interest: $650
Insurance: $680
License: $65
Repairs/oil: $370
Parking: $498
53 cents
An advantage of buying a car over leasing a car is:
Buying can be cheaper in the long run and there are no mileage restrictions when buying a car
You have been given a choice of paying $19,000 for a new GM car with a $3,000 cash rebate (net cost of $16,000 which you finance separately), or zero percent financing for 48 months with no cash rebate. What is the implicit rate of interest in this deal?
8.69%
You are considering the purchase of a hybrid Honda Civic. Assume that you drive 12,000 per year, and will keep the auto for 10 years, at which time the car will have zero trade-in value. Assume the cost of gas is $2.49/gallon. The "normal" model gets 34 miles per gallon, while the "hybrid" model gets 50 miles per gallon. The hybrid model cost $21,850 while the normal model costs $18,260. All other operating costs are the same. You can invest your money at a 6% interest rate (i.e. use a 6% discount rate).
Given these assumptions, is it a good economic decision to purchase the hybrid?
Hint: Calculate the annual gas cost for each car then take the difference (or savings) per year. Next calculate the PV of the annual savings (END MODE) and compare the gas cost savings in today's dollars to the cost difference for the two vehicles. You could also do a NPV analysis, with the car cost difference being used for cash out time period 0, and the savings entered in the CFj key for ten years.
No, don't buy the hybrid. The PV of the savings is $2,070 which is less than the cost difference. You need a greater savings to economically justify the purchase of this hybrid (i.e. the NPV is negative).
You subscribe to XM Radio and pay $12 at the end of each month (which equates to $144 per year). You plan to keep this service for the next five years.
Assume you have plenty of cash in your emergency reserve fund, which is in a bank account earning 4% interest per annum. XM Radio offers you a deal whereby you can prepay two years worth of service for $230, payable today. Given these assumptions,
You are better off to prepay XM for the next two years.
Chrysler recently offered the following deal for a Jeep Commander:
$1,000 cash rebate at closing PLUS 2,400 gallons of gas at $1.99/gallon over a three year period (or 66.67 gallons per month END for three years).
What is the present value of this deal assuming that gas prices will be $2.99 per gallon over the next three years and using a 6% interest rate?
$3,192, and if gas prices average more than $3.00/gallon, then the value of the deal to the buyer will increase
A spender UCF graduate likes the prestige of a Lexus IS 250. Saver UCF graduate drives a Corolla. The internet shows that the five year cost of owning a 2010 Lexus IS 250 is $42,814 while the five year cost of owning a 2010 Corolla is $24, 607, an $18,207 difference over five years. On an annual basis, this would equate to the Lexus costing $3,641.40 more per year.
Assume our UCF saver invests the savings of $3,641.40 per year (end of year) for 40 years and earns 11% per year (interest compounded annually). How much will the saver have in his/her retirement account as a result of driving lower cost cars throughout his/her lifetime?
$2,118,661.44
A common advantage associated with home ownership is
Appreciation of the house's value over long periods of time
Which of the following statements is false?
A. Mortgage interest on a primary residence is fully deductible for mortgages up to $1 million
B. Points paid on a new mortgage are fully deductible in the year incurred
C. Points paid on a refinancing are fully deductible in the year incurred
D. In most cases, interest on a home equity loan is fully deductible in the year incurred
C
Which of the following monthly payments go to an escrow account?
A. Principal
B. Interest
C. Property taxes
D. Homeowners insurance
E. Answers c and d are correct
E. Answers c and d are correct
Bill and Hillary each buy a house and take out a $100,000 loan. His house is in New York and her house is in Washington D.C. Bill takes out a conventional 30 year fixed rate mortgage, and Hillary opts for a conventional 15 year fixed rate mortgage. Which of the following correctly summarizes how Bill's mortgage is different from Hillary's (all other things being equal)?
Bill's 30 year mortgage has a higher interest rate, lower monthly payments and higher overall interest payments. It builds equity more slowly than Hillary's mortgage
What is a disadvantage of using an adjustable rate mortgage (ARM) compared to a fixed rate mortgage?
If interest rates rise, ARM interest rates will also increase after the lock in date and your mortgage payments (principal and interest) are not fixed for the term of the loan with an ARM as they are with a fixed rate mortgage.
A bank offers you a thirty year $175,000 mortgage at 6.75% with two points payable at closing.
The monthly payment is $1,135.05
What is the effective interest rate on this loan?
6.95%
Assume you receive the following mortgage:
Amount borrowed= 175,000
Annual interest rate= 6.5%
Term=30 years
What is the monthly payment and how much of the payments in year 5 go toward interest?
Monthly payment = $1,106.12
Interest in year 5 = $10,738.39
A homeowner can save $130.00 per month for the next 15 years by refinancing at a new 4% fixed mortgage rate. What is the present value of the savings that would be used to compare against the current cost of refinancing?
The present value of the savings is $17,574.98. If closing costs were less than this amount, refinancing would be a good deal if you remain in the house 15 years
Assume the following:
Annual Salary= $65,000
Estimated monthly property taxes & insurance = $500
Mortgage interest rate= 6.0%
Mortgage term= 30 years
Down payment= 10%
Refer to the Chapter 9 textbook exhibits on housing affordability and mortgage payment factors.
Using the formula in the book, what is the affordable home purchase price using the above assumptions?
$242,284
A situation in which one person is held responsible for the actions of another is:
Vicarious liability
Driver classification includes information on a person's ______ and is used to set auto insurance rates
Driving habits
T/F Homeowners insurance does not cover flood damage. Insurance must be purchased separately and is sold by the National Flood Insurance Program (NFIP)
True
T/F With respect to auto insurance, you should NOT file a claim if the repair cost is less than the deductible
True
A homeowner was robbed and lost $3,500 in jewelry and $3,800 in silverware. The homeowner's policy covers up to $1,000 of losses for jewelry and up to $1,500 in losses for the silverware with no deductible.
How much is homeowner's recovery from the insurance company?
$2,500
What amount would a person with actual cash value coverage receive for two-year old furniture that was destroyed by a fire?
Assume the furniture has a $4,000 replacement cost today and an estimated life of 10 years.
$3,200
A driver has 25/50/10 auto coverage. He/she is in an accident (and at fault) resulting in two bodily injury claims of $50,000 each.
How much must the driver pay of the $100,000 in claims?
$50,000
A driver has 50/100/15 auto coverage. He/she is in an accident (and at fault) resulting in $5,000 of damage to a parked car and $15,000 damage to a store. How much must the driver pay of the total claims?
$5,000
A married couple spends $800 a year in insurance with three separate companies. Their agent will give them a 10% discount if they consolidate their policies with her firm.
Over the next 10 years, what is the future value of the savings benefit, assuming a 6% rate, with annual savings deposited at the end of the year?
$1,054.46
The cost of long term care, such as a prolong stay at a nursing home, is
generally not covered by Medicare
Which health insurance plan is administered by each state within certain broad federal requirements and guidelines?
Medicaid
You have elected to deposit $120 per month in your flexible spending plan next year. Assuming a 25% tax bracket, how much in qualifying medical expenses would you have to incur to break even on your deposits to the flexible spending plan next year?
$1,080
A UCF graduate makes $700 per week and has a disability plan that pays 70% of his/her salary after the first four weeks of disability.
If the graduate is disabled for 17 weeks, how much will he/she receive from the insurance company?
$6,370
A family has health coverage that pays 80% of medical expenses after the first $500 of qualifying expenses. If the family incurs $1,200 of medical expenses during the year, how much will their insurance company pay of the total claims incurred?
$560
Your employer has offered you a choice of a lower cost HMO plan or a higher cost standard health insurance plan. Next year you will need physical therapy and want to compare the cost of the therapy under the two plans.
The standard health insurance plan pays 65% of therapy after a $200 deductible, while the HMO will pay the full cost of the therapy as long as you pay a $15 co-payment per visit.
Assume you need 10 therapy sessions that will cost $50 each for the high cost plan ($15 for HMO).
How much would you save using the HMO vs. the traditional health insurance plan?
$155
With respect to comprehensive major medical insurance, which statement is INCORRECT?
A. It is offered without a separate basic plan.
B. It's a type of major medical insurance with a low deductible.
C. It's all inclusive health insurance.
D. Deductibles often run around $2,000 to $3,000
D
Under the rules of COBRA, how long can you continue medical coverage under your former spouse's medical plan after a divorce (assuming the former spouse works at a company with more than 20 employees)?
36 months
T/F: Most group health policies have a coordination of benefits provision, which is a method of integrating the benefits payable under more than one health insurance plan so that benefits are limited to no more than 200% of allowable expenses (e.g. if you and your spouse each have health insurance which covers each other, then you can collect no more than twice the claim since you each are paying premiums).
False
With respect to federal tax law, life insurance proceeds paid to a beneficiary:
Are excluded from taxable income, bur included in the taxable estate (unless a life insurance trust has been established)
Which life insurance provision ensures that you will not have to forfeit all accrued benefits?
Non-forfeiture clause
You and your spouse make $28,000 per year, have an $100,000 mortgage, owe $10,000 on auto loans, owe $5,000 on student loans, and owe $3,000 on credit cards. You estimate funeral costs at $5,000. How much life insurance should you carry using the DINK method?
$64,000
A couple has two children ages 4 and 7 only one spouse has income. Using the "non-working" spouse method, they should have _____ of life insurance.
$140,000
A couple currently spends $40,000 per year for all their living expenses. Only one spouse works while the other spouse stays at home with the chidden. Upon the death of the working spouse, they want a life insurance policy whereby the proceeds could be invested in a tax-free municipal bond fund that would yield enough tax-free cash each year to pay the entire $40,000 of expenses (i.e. the non-working spouse would not have to return to work, and there would be sufficient funds on his/her death to leave some inheritance to the kids). They assume that the yield on municipal bond funds will be 5%. How much insurance should they purchase?
$800,000
How much life insurance would you need using the easy method for a family with $40,000 in gross income?
About $200,000
Life insurance is usually sold not bought, because the life insurance industry has a vested interest in selling you high commission, high cost ______ policies
Whole life
What percentage of the first year premiums on a whole life insurance policy go to the agent's commission?
80%
A parent is evaluating a $250,000 term life policy vs. a $250,000 whole life policy. Over the next 25 years, the term policy will cost $10/month, and build no cash values. The insurance agent informs the parent that the whole life policy will cost $100 per month, but will build guaranteed cash values of $75,000 at the end of 25 years. The parent assumes that he/she can invest the $90 per month difference in a mutual fund and earn 9% per year for the next 25 years. What is the future value of the mutual fund at the end of 25 years assuming end of the period deposits of $90 per month at a 9% interest rate; and how does it compare to the whole life cash value investment return (ignoring taxes)?
The mutual fund will be worth $100,900.97, implying that the return on the whole life policy is less than 9%
A UCF grad has gross monthly income of $3,200 and net take home pay of $2,800 per month, which approximates his/her monthly living expenses. What is the minimum amount should have in his/her emergency fund?
$8,400
Which of the following investments would have the greatest potential for risk?
Options or commodities
A $1,000 corporate bond has a 9.5% coupon rate. Since issuance, interest rates have fallen for comparable bonds to 8%. What would be the market value of the bond now that interest rates have fallen (i.e. what would you have to pay for this bond today in order to achieve the same yield)?
$1,187.50
T/F: An investor can reduce both systematic and non-systematic risk in a stock portfolio by increasing the number of individual stocks held in the portfolio.
False
Which best describes cash dividends paid by corporations?
Dividends generally come from after-tax earnings of the corporation, and are taxed again when received by an individual at a 15% maximum rate.
An investor has 220 shares of Exxon/Mobil stock, which pays a quarterly dividend of $0.40 per share. What is his/her quarterly dividend payment?
$88.00
An investor has 360 shares of Walmart, which just declared a 2 for 1 stock split. On the day before the stock split, the shares were trading at $80 per share. The day after the split,
The investor wil have 720 shares trading at around $40 per share
An investor bought 100 shares of JNJ stock for $28.50 per share plus a commission of $10. He/she sold the stock after two years for $38 per share and again paid a commission, this time for $10. The investor received dividends while holding the stock of $0.46 per share per quarter (a total of eight quarters). What is the total gain and annual return on this stock?
$1,298 gain, 20% annual return.
Refer to the previous card. With respect to the investor's stock transaction assuming all dividends received were "qualifying":
The separate gain on the stock is treated as a long-term capital gain, and both the capital gain and qualifying dividend income are now taxed at lower favorable rates.
What is the equity risk premium for small company stocks given the following assumptions:
Return on small company stocks=12%
Return on Treasury bonds= 5%
Inflation rate= 3%
7%
An investor bought a stock for $40 per share. It now trades for $90 per share and pays an annual dividend of $1 per share ($0.25 per quarter). What is the current dividend yield on this stock?
1.11%
ABC Corp. has earnings of $300,000,000 with 100,000,000 shares outstanding. ABC's earnings per share would be _____?
$3
Knight Corp.'s stock trades at $60. It has a book value of $15 per share and earnings per share of $3.00. What is the PE ratio for Knight Corp.?
20
A government security issued in minimum units of $100 with maturities that are 4-week, 13-week, 26-week, and 52-week is called a
Treasury bill
Zero coupon bonds would be best suited for
a 35 year old woman with a high risk tolerance and no need for current income
A $1,000 bond carries a 7.55% coupon. The bond currently trades at $1,100. What would the annual interest payment be on this bond?
$75.50
What is the comparable pre-tax yield on a municipal bond yielding 5.2% assuming a marginal tax bracket of 25%?
6.93%
A $1,000 bond has an annual 9.5% coupon and trades for $860. It has 10 years to maturity. What is the current yield and yield to maturity?
11.05% yield with an 11.98% yield to maturity
A $1,000 bond was issued five years ago with an 8% coupon. If interest rates fall for comparable bonds, you would expect the fair market value of the bond to
Increase
You plan to invest $100 per month in an S&P 500 index fund for the next 40 years, and are trying to decide whether to use an ETF or an open ended mutual fund. Which option would be the most advisable? (assume that the ETF and open ended index mutual fund have the same expense ratio, but the broker will charge you a $5 commission for each trade, while the mutual fund will not charge you a commission if purchased directly from the mutual fund)
Opening an account with a mutual fund family, then investing in an open ended S&P 500 index mutual fund each month.
When you sell shares of a mutual fund, how do you determine the basis of the shares held?
You may use either the specific identification or average cost method
Payments made to a fund's shareholders that result from the sales of securities in the fund's portfolio are called
Capital gains distributions (either short term or long term)
ABC fund has a 4.55 front-end sales load and a net asset value of $40. You plan to invest $16,000. How many more shares would you have received if the fund did not have a sales load?
18
A mutual fund has a 1% operating expense ratio, and you just invested $22,000. How much of your investment will go toward paying the operating expenses of the mutual fund this year?
$220
You buy 100 shares of a mutual fund for $10 per share at the beginning of the year. The fund subsequently makes a $0.75/share dividend distribution. At year-end, the fund is worth $15 per share. What is the total return on your investment?
$575 or 57.5%
Assume the following mutual fund transactions:
Year | Invest | Price per share
2007 $3,000 $40
2008 $3,000 $50
2009 $3,000 $60
2010 $3,000 $55
How many shares do you now own and what is the average cost per share?
239.5455 shares with an average cost per share of $50.09
By the time you turn 60, a large percentage of your net worth will likely consist of
Equity in your primary residence
You have net passive activity losses of $10,000 related to an investment in a real estate partnership. Which statement is true with respect to your federal tax return?
Net passive activity losses are carried forward to future tax returns and available to offset future passive activity gains
Which of the following is a disadvantage of direct investments in real estate, such as rental property?
The investment can be illiquid
Gold prices are more likely to rise
During wars or other periods of significant geopolitical uncertainty
You buy a property for $200,000 in cash and sell it at the end of the year for $240,000. What is your gain and return on investment?
$40,000 and 20%
You buy a property for $200,000. You pay $20,000 in cash and borrow $180,000 interest free! At the end of the year, you sell the property for $240,000. What is your gain and return on investment?
$40,000 and 200%
With respect to Roth IRAs and Traditional IRAs, which statement is true?
Roth IRA contributions are non-deductible, but earnings grow tax free
Which investment would generally be inappropriate for a 25 year old with a traditional IRA invested for his/her retirement?
A substantial and permanent investment in money market mutual funds
What important matter should you always assess before changing jobs?
Your current vesting status on the company 401-K plan; Your current vesting status on the company defined benefit pension plan; Your current vesting status on the company stock option plan
A UCF graduate has a traditional IRA and plans to take the money out prior to age 59 1/2 in order to pay off some accumulating credit card debt. The graduate will pay:
A 10% penalty on the total withdrawn, plus will owe taxes on the amount withdrawn based on his/her marginal tax rate
T/F: Social security payments are always tax free since they are primarily a return of your money, which was previously deducted from your paycheck
False
Fidelity Investment recently recommended that individuals save at least _____ years of their final salary before retiring
8
A UCF graduate saves $300 at the end of each month in a Roth IRA for 40 years (retirement date), earning 9% annually. How much money will be in the account at the end of 40 years, and how long will the money last if the graduate withdraws $15,000 at the end of each month at the retirement date, assuming the investments continue to earn 9% annually?
HINT: Once you calculate the FV of the savings, this will be your PV for the second part of the problem where you solve for n.
Value of account in 40 years = $1,404,396: Account will run out of money in 162 months
Calculate the first and second year ANNUAL payment that you could withdraw for a "growing annuity" using the following assumptions:
Interest rate= 8%
Inflation rate= 4%
Remaining life expectancy= 27 years
Amount invested at retirement date= $450,000
First withdrawal taken at the end of the year
Hint real rate:
((1 + interest rate) divided by (1 + inflation rate)) - 1
Year 1 = $27,084 year 2 = 28,167
What document is generally used to name the guardian of your minor children in the event that both you and your spouse should die?
A last will and testament
Which type of trust would be used for young adult children, where the deceased parents wish to ensure that the principal of the trust is maintained for a long period of time?
A spendthrift trust
What happens if you die without a will
The courts will determine how your assets will be distributed based on state law
What are your options for managing your property after your death if your children are still relatively young?
Name a property guardian in your will;
Name a custodian under the Uniform Transfers to Minors Act;
Set up a trust for each child;
Set up a "pot or family trust" for your children
Which of the following is true with respect to wills?
If your state allows holographic wills, you don't need witnesses;
You must date and sign the will;
The will must be signed by at least two witnesses (for states that do not allow holographic wills);
In most states, witnesses can not be heirs
T/F: A living will or advance health care directive documents your wishes in the event that you become so physically or mentally disabled that you are unable to act on your own
True
If you and your spouse or anyone else own property as ______, each individual is considered to own a proportionate share for tax purposes, and only your share is included in your estate
Tenants in common | https://quizlet.com/17448620/fin2100-flash-cards/ | CC-MAIN-2015-22 | refinedweb | 6,500 | 69.31 |
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).
I want to create a mathematical surface using a Python generator. Essentially, I’m wanting to get a very similar effect to using a formula deformer on a plane, but instead I’m wanting to do it all from within Python. The reason I want to do it from within Python is because I want to model the output of a complex function, in other words, where the input is of the form x + i*z (i is the imaginary unit) and the output y is either the real or imaginary part of some function of that input. This is easy to do with the cmath module and just taking the real and imaginary parts of the output function, but the problem is that I don’t know how to actually generate a surface from it.
In other words, if I am able to specify a set of points (x, y, z), how would I turn this into a surface using a Python generator?
For example, if I have the list of points (x, y, z):
(1, 1, 1), (1, 1, -1)
(0 0, 1), (0, 0, -1)
(-1, 1, 1), (-1, 1, -1)
I would expect something that looks like this:
Any ideas how to do this with a Python generator?
Hi @johntravolski,
thank you for reaching out to us. Please remember that we need the user's coding environment, os and Cinema 4D version attached as tags to questions in order to answer them in the best way possible. I have added a Python tag to your posting, please add the missing information. I also moved your posting into the Development forum. You can learn more about the forum's tagging feature and general support procedures in the Forum Guidelines.
About your question:
What you are trying to do can be and should be done with a Python generator object, since such tasks are its main use case. Cinema 4D does however not provide an auto-triangulation routine in the Python generator, like you might be used to from the various plotting environments out there, e.g. matplotlib or Mathematica/Wolfram. The Python generator is not a plotting tool, but a pruned version of an ObjectData plugin, allowing you to build arbitrary shapes (at the cost of not having an automesher like provide by matplotlib.mplot3d for example). Cinema does also not support complex numbers as point coordinates, since its vector space is exclusively R³ - at least for polygon objects. You can however use Python's complex module if you want to deal with complex numbers and then map these into R³.
matplotlib
Mathematica/Wolfram
ObjectData
matplotlib.mplot3d
R³
complex
Below you will find the code for your example and also a file with a Python generator in it, running that code.
Cheers,
Ferdinand
the file:
wedge_shape_generator.c4d
the code:
import c4d
# Your vertex data expressed as c4d.Vector instances.
VERTEX_DATA = [
c4d.Vector(1, 1, 1), c4d.Vector(1, 1, -1),
c4d.Vector(0, 0, 1), c4d.Vector(0, 0, -1),
c4d.Vector(-1, 1, 1), c4d.Vector(-1, 1, -1),
]
SCALE = 100.
def main():
"""
"""
# Create a polygon object node setup for 6 vertices and 2 polygons.
node = c4d.PolygonObject(pcnt=6, vcnt=2)
# Your data is rather small, so we have to scale it a bit up.
points = [p * SCALE for p in VERTEX_DATA]
# Set all points.
node.SetAllPoints(points)
# Now we have to create the polygons which are represented by CPolygon in
# Cinema 4D. Cinema has no rectangular auto-mesher which will
# automatically triangulate a point cloud provided in a certain way, like
# for example provided by matplotlib in Python, Mathematica/Wolfram or
# similar math packages.
# In this case we could iterate in a convenient fashion over our data
# due to its regular nature. I will doe it however manually for clarity.
# The first polygon: CPolygon references point indices in its attributes
# a, b, c and d. In Cinema all non-gons are represented by CPolygon,
# including triangles, which just repeat their third index in d.
#
# We index our vertices here. The a bit odd index order is caused by
# how you did provide your data. Polygons are organized ccw for forward-
# facing normals in Cinema, read more about it here [1].
cpoly = c4d.CPolygon(0, 1, 3, 2)
# Then we add the first polygon to our mesh.
node.SetPolygon(0, cpoly)
# Now we do the same with the second polygon. We have to reindex the
# vertices 2 and 3 here, since they are shared by both polygons.
cpoly = c4d.CPolygon(2, 3, 5, 4)
node.SetPolygon(1, cpoly)
# And we are done and can return our little wedge shape.
return node
# Links
# [1]
@ferdinand Thanks, this does help a lot, but I wonder if it would just be easier/faster/more efficient if I could somehow simply displace the points of an existing plane, similar to the way the manual mode of the formula deformer applied to a plane does. I don't imagine it would be easy to manually set all of the faces as you do in your example.
Is it possible to displace vertices of existing geometry with Python? I don't know if a generator would be able to do that.
Thanks for your help. This was the best I could do. Let me know if you have any suggestions or improvements.
import c4d
import math
import cmath
min_x = -3.0*math.pi/2.0
max_x = 1.0*math.pi/2.0
min_y = -2.0*math.pi
max_y = 2.0*math.pi
resolution = 10 # number of points along each axis
point_count = resolution*resolution
poly_count = (resolution - 1)*(resolution - 1)
def maprange(xx, min_in, max_in, min_out, max_out):
return min_out + (xx - min_in)/float(max_in - min_in)*(max_out - min_out)
def getpoints(time_perc):
tt = 2*math.pi*time_perc*8
vecs = []
for yy_r in range(resolution):
yp = maprange(yy_r, 0, resolution-1, min_y, max_y)
for xx_r in range(resolution):
xp = maprange(xx_r, 0, resolution-1, min_x, max_x)
com = cmath.exp(xp + (yp + tt)*1j)
zp = com.real
vecs.append(c4d.Vector(xp, zp, yp))
return vecs
SCALE = 100)
polynum = 0)
polynum += 1
return node
The blue is using zp = com.imag while the red is using zp = com.real. Sorry for switching z and y.
looks good to me. Some minor points:
BaseLink
ObjectData.ModifyObject
TagData
maprange
c4d.utils.RangeMap
xp + (yp + tt)*1j
c4d.Matrix
But these points are mostly academic, if this works for you, I would say this is absolutely fine. In case you run into performance issues - for larger subdivision counts all that mesh building per frame can get a bit slow, I would recommend moving towards a deformer solution, either in the Python generator input object fashion or in a less hack way via a proper ObjectData deformer or a tag solution.
@ferdinand Thanks. There is something odd that I've noticed. For some reason, when enough of the Python generator goes offscreen, the whole object seems to vanish. Here is a video demonstrating it. I have plotted the complex part of the gamma function and then cloned the plot on a 3x3 grid so you can see nine instances of the Python generator and how each one disappears when enough of it is offscreen.
Do you know why this happens, or what I can do to prevent it? Thanks.
@johntravolski
I figured it out, I needed to add
node.Message(c4d.MSG_UPDATE)
after the for double loop where I set the polygons. | https://plugincafe.maxon.net/topic/13235/create-geometry-from-python-generator | CC-MAIN-2021-49 | refinedweb | 1,283 | 64.61 |
FGETS(3) BSD Programmer's Manual FGETS(3)
fgets, gets - get a line from a stream
#include <stdio.h> char * fgets(char *str, int size, FILE *stream); char * gets(char *str);
The fgets() function reads at most one less than the number of characters specified by size from the given stream and stores them in the string str. Reading stops when a newline character is found, at end-of-file, or on error. The newline, if any, is retained. In any case, a '\0' character is appended to end the string. The gets() function is equivalent to fgets() with an infinite size and a stream of stdin, except that the newline character (if any) is not stored in the string. It is the caller's responsibility to ensure that the input line, if any, is sufficiently short to fit in the string.
Upon successful completion, fgets() and gets() return a pointer to the string. If end-of-file or an error occurs before any characters are read, they return NULL. The fgets() and gets() functions do not distinguish between end-of-file and error, and callers must use feof(3) and ferror(3) to determine which occurred. Whether fgets() can possibly fail with a size argument of 1 is implementation-dependent. On MirOS, fgets() will never return NULL when size is 1.
[EBADF] The given stream is not a readable stream. The function fgets() may also fail and set errno for any of the errors specified for the routines fflush(3), fstat(2), read(2), or malloc(3). The function gets() may also fail and set errno for any of the errors specified for the routine getchar(3).
feof(3), ferror(3), fgetln(3)
The functions fgets() and gets() conform to ANSI X3.159-1989 ("ANSI C"). NUL ('\0') charac- ter. If the first character of a line returned by fgets() were null, strchr() would immediately return without considering the rest of the returned text which may indeed include a new- line. Consider using fgetln(3) instead when dealing with untrusted input.
Since it is usually impossible to ensure that the next input line is less than some arbitrary length, and because overflowing the input buffer is almost invariably a security violation, programs should NEVER use gets(). The gets() function exists purely to. | http://mirbsd.mirsolutions.de/htman/i386/man3/gets.htm | crawl-003 | refinedweb | 383 | 63.49 |
Menu Close
Red Hat Training
A Red Hat training course is available for Red Hat Gluster Storage
3.4 Release Notes
Release Notes for Red Hat Gluster Storage 3.4
Edition 1
Abstract
Chapter 1. Introduction
Red Hat Gluster Storage Server for On-premises enables enterprises to treat physical storage as a virtualized, scalable, and centrally managed pool of storage by using commodity servers and storage hardware.
Red Hat Gluster Storage Server for Public Cloud packages GlusterFS for deploying scalable NAS in AWS, Microsoft Azure, and Google Cloud. This powerful storage server provides a highly available, scalable, virtualized, and centrally managed pool of storage for users of these public cloud providers.
Chapter 2. What Changed in this Release?
2.1. What's New in this Release?
- Red Hat Gluster Storage volumes exported using SMB can now be mounted on macOS clients
- Red Hat Gluster Storage volumes exported using SMB can now be mounted on macOS clients.
- Support for upgrading across underlying Red Hat Enterprise Linux versions
- You can now upgrade the underlying Red Hat Enterprise Linux 6 to Red Hat Enterprise Linux 7 by performing an offline upgrade on a gluster system using the preupgrade-assistant.For more information, see Upgrading Red Hat Gluster Storage to Red Hat Enterprise Linux 7 chapter in the Red Hat Gluster Storage 3.4 Installation Guide.
- Identify files that skipped rebalance operation
- We can identify the files that skipped rebalance operation. Until this release, rebalance status would only indicate the 'count' of failed and skipped entries. Now, users can search for the msgid
109126to fetch the list of skipped files.For more information, see Displaying Rebalance Progress section in the Red Hat Gluster Storage 3.4 Administration Guide.
- Reserve disk space on the bricks
- Administrators can now reserve disk space on the bricks. The
storage.reserveoption helps reserve enough space for gluster processes, preventing the disks from reaching full capacity.For more information, see Reserving Storage on a Volume section in the Red Hat Gluster Storage 3.4 Administration Guide.
- Capability to resolve GFID split brain from CLI
- GFID split brain can be analysed and resolved automatically through a new CLI command.For more information, see Recovering GFID Split-brain from the gluster CLI section in the Red Hat Gluster Storage 3.4 Administration Guide.
- Stopping the remove-brick operation
- Stopping a remove-brick operation is now fully supported. If you have started a remove-brick operation, but have not yet committed the operation, you can now stop the operation. Files migrated during the remove-brick operation are not migrated back to the original brick when the remove-brick operation is stopped.For more information, see Stopping a remove-brick operation in the Red Hat Gluster Storage 3.4 Administration Guide.
- Mounting volumes read-only
- Mounting volumes with read-only permissions is now fully supported. Volumes can be mounted with read-only permissions at either the volume or the mount point level.To mount a volume as read-only, use the
rooption when you mount the volume.
# mount -t glusterfs -o ro hostname:volname mountpointTo specify that a volume can only be mounted with read-only permissions, enable the
read-onlyvolume option by running the following command on any Red Hat Gluster Storage server in the storage pool that hosts that volume.
# gluster volume set volname read-only enable
- Mounting sub-directories using Native Client (FUSE)
- Mounting sub-directories of a gluster volume using the Native Client is now fully supported. Giving multiple users access to an entire mounted volume can be a security risk, as users can obtain information belonging to other users. Mounting subdirectories ensures that users can access only their part of the storage. It also provides namespace isolation for users, so that multiple users can access the storage without risking namespace collision with other users.See Manually Mounting Sub-directories Using Native Client in the Red Hat Gluster Storage 3.4 Administration Guide for more information.
- Firewall Configuration automated by tendrl-ansible for Red Hat Gluster Storage Web Administration
- Previously, firewall configuration was done manually leading to firewall misconfiguration. With this release, firewall configuration is automated in tendrl-ansible and applied during automated installation, allowing proper firewall rules to be configured for Web Administration without affecting other existing rules.For more information, see 2.4. Firewall Configuration chapter in the Red Hat Gluster Storage 3.4 Administration Guide.
- Setting customized and user-friendly cluster name for easy identification in Red Hat Gluster Storage Web Administration
- Previously, clusters were imported without being able to set a user-friendly cluster name. The clusters were identified using the UUID which caused difficulty in locating and identifying a particular cluster when multiple clusters existed. With this new feature, users can provide a customized and user-friendly cluster name during importing cluster for easy identification of clusters managed by the Web Administration environment.
- Unmanage clusters through Web Administration UI
- Previously, there was no UI-based feature to unmanage a specific cluster. With this release, users are able to unmanage a specific cluster using the UI-based feature available in the Web Administration interface.For more information, see chapter 3.1. Unmanaging Cluster in the Red Hat Gluster Storage Web Administration 3.4 Monitoring Guide..
2.3. Deprecated Features
- Red Hat Gluster Storage Console
- As of Red Hat Gluster Storage 3.4, the existing Red Hat Gluster Storage Console management infrastructure is supported through the current Red Hat Gluster Storage 3.x life cycle, which ends on October 31, 2019. Red Hat Gluster Storage Web Administration is now the recommended monitoring tool for Red Hat Storage Gluster clusters.For information on Red Hat Gluster Storage life cycle, see Red Hat Gluster Storage Life Cycle.For Red Hat Gluster Storage Web Administration installation instructions, see the Red Hat Gluster Storage Web Administration Quick Start Guide and for instructions to monitor your Gluster servers, see the Red Hat Gluster Storage Web Administration Monitoring Guide
- Nagios Monitoring
- As of Red Hat Gluster Storage 3.4, Nagios is considered deprecated. Nagios plugins and Nagios server are no longer maintained and would not be provided in releases post Red Hat Gluster Storage 3.4. Nagios remains supported for this release, but Red Hat no longer recommends its use, and plans to remove support in future versions of Red Hat Gluster Storage.Nagios is being deprecated because of the limited capabilities of monitoring and aggregation of results for a gluster cluster. These limitations are addressed in Red Hat Gluster Storage Web Administration.Red Hat Gluster Storage users need to set up Red Hat Gluster Storage Web Administration in order to monitor a cluster. There is no migration path for the data collected in Nagios.For Red Hat Gluster Storage Web Administration installation instructions, see the Red Hat Gluster Storage Web Administration Quick Start Guide and for instructions to monitor your Gluster servers, see the Red Hat Gluster Storage Web Administration Monitoring Guide.
- gstatus command
- gstatus is deprecated. The gstatus command provided an overview of the health of Red Hat Gluster Storage clusters and volumes. To view health of Red Hat Gluster Storage clusters and volumes, access the Grafana Dashboard integrated to the Web Administration environment.
- Parallel NFS (pNFS)
- As of Red Hat Gluster Storage 3.4, Parallel NFS is considered unsupported and is no longer available as a Technology Preview. Several long-term issues with this feature that affect stability remain unresolved upstream. Information about using this feature has been removed from Red Hat Gluster Storage 3.4 but remains available in the documentation for releases that provided Parallel NFS as a Technology Preview.
Chapter 3. Notable Bug Fixes
Note.
Chapter 4. Known Issues
Note
4.1. Red Hat Gluster Storage
Issues related to glusterd
- BZ#1567616
- If the
enable-shared-storageoption is disabled when any one of the glusterd is down, disabling the shared storage operation will be a success. However, subsequent requests of enabling and disabling of
enable-shared-storageoperations will fail.Workaround: Run the following commands to overcome this behavior:
# gluster v delete gluster_shared_storage
# gluster v set all cluster.enable-shared-storage enable
- BZ#1400092
- Performing add-brick to increase replica count while I/O is going on can lead to data loss.Workaround: Ensure that increasing replica count is done offline, i.e. without clients accessing the volume.
- BZ#1403767
- On a multi node setup where NFS-Ganesha is configured, if the setup has multiple volumes and a node is rebooted at the same time as when volume is stopped, then, once the node comes up the volume status shows that volume is in started state where as it should have been stopped.Workaround: Restarting the glusterd instance on the node where the volume status reflects
startedresolves the issue.
- BZ#1417097
- glusterd takes time to initialize if the setup is slow. As a result, by the time
/etc/fstabentries are mounted, glusterd on the node is not ready to serve that mount, and the glusterd mount fails. Due to this, shared storage may not get mounted after node reboots.Workaround: If shared storage is not mounted after the node reboots, check if glusterd is up and mount the shared storage volume manually.
- BZ#1394138
- If a node is deleted from the NFS-Ganesha HA cluster without performing umount, and then a peer detach of that node is performed, that volume is still accessible in
/var/run/gluster/shared_storage/location even after removing the node in the HA-Cluster.Workaround: After a peer is detached from the cluster, manually unmount the shared storage on that peer.
Issues related to gdeploy
- BZ#1408926
- Currently in a gdeploy configuration file, the
ssl_enableoption is part of the
volumesection. If more than one volume section is used in a single gdeploy configuration file for a single storage pool and
ssl_enableis set in all the volume sections, then the SSL operation steps are performed multiple times. This fails to mount the older volumes. Thus, users will not be able to set SSL with a single line in the gdeploy configuration file.Workaround: If there are more than one volume sections in a single gdeploy configuration file for a single storage pool, set the variable
enable_sslunder only one volume section and set the keys: '
client.ssl', value: 'on'; '
server.ssl', value: 'on';'auth.ssl-allow', value: comma separated SSL hostnames
Issues related to Arbitrated Volumes
- BZ#1387494
- Currently, if the data bricks of the arbiter volume are completely consumed, further creation of new data entries may succeed in the arbiter brick without failing with an
ENOSPCerror. However, the clients will correctly receive the creation failure error on the mount point. Thus the arbiter bricks might have more entries. When an
rm -rfcommand is executed from the client,
readdiroperation is performed on one of the databricks to get the list of files to deleted. Consequently, only those entries will get deleted on all bricks. When the
rmdircommand is executed on the parent directory, it succeeds on the data bricks but fails on the arbiter with an
ENOTEMPTYerror because it has some files in it.Workaround: If the deletion from the mount does not encounter an error while the arbiter bricks still contain the directories, the directories and its associated GFID symlinks need to be manually removed. If the directory to be deleted contains files, these files and their associated GFID hard links need to be removed manually.
- BZ#1388074
- If some of the bricks of a replica or arbiter sub volume go offline or get disconnected from the client while a
rm -rfcommand is being executed, the directories may re-appear when the bricks are back online and self-heal is complete. When the user tries to create a directory with the same name from the mount, it may heal this existing directory into other DHT subvolumes of the volume.Workaround: If the deletion from the mount did not complete, but the bricks still contain the directories, the directories and its associated GFID symlink must be removed manually. If the directory to be deleted contains files, these files and their associated GFID hard links need to be removed manually.
- BZ#1361518
- If a file is being created on all bricks but succeeds only on the arbiter brick, the application using the file will fail. But during self-heal, the file gets created on the data bricks with arbiter brick marked as the data source. Since data self-heal should not be done from the arbiter brick, the output for the
gluster volume heal volname infocommand will list the entries indefinitely.Workaround: If the output of the
gluster volume heal volname infocommand indefinitely displays the pending heals for a file, check if the issue is persistent by performing the following steps:
- Use the
getfattrcommand to check the following:
- If the trusted.afr.volname-client* xattrs are zero on the data bricks
- If the trusted.afr.volname-client* xattrs is non-zero on the arbiter brick only for the data part. The data part is the first 4 bytes.For example:
#getfattr -d -m . -e hex /bricks/arbiterbrick/file |grep trusted.afr.volname* getfattr: Removing leading '/' from absolute path names trusted.afr.volname-client-0=0x000000540000000000000000 trusted.afr.volname-client-1=0x000000540000000000000000
- If the command output matches the mentioned state, delete the xattr using the following command:
# for i in $(getfattr -d -m . -e hex /bricks/arbiterbrick/file |grep trusted.afr.volname*|cut -f1 -d'='); do setfattr -x $i file; done
Issues related to Distribute (DHT) Translator
- BZ#1136718
- The automatic file replication (AFR) self-heal can have a partially healed file if the brick containing the AFR self-heal source file goes offline during a heal operation. If this partially healed file is migrated before the brick is back online, the migrated file would have incorrect data and the original file would be deleted.
Issues related to Replication (AFR)
- BZ#1426128
- In a replicate volume, if a gluster volume snapshot is created when a file creation is in progress, the file may be present in one brick of the replica but not the other brick on the snapshotted volume. Due to this, when this snapshot is restored and a
rm -rf dircommand is executed on a directory from the mount, it may fail with an
ENOTEMPTYerror.Workaround: If you receive the ENOTEMPTY error during the
rm -rf dircommand execution, but the output of the
lscommand of the directory shows no entries, check the backend bricks of the replica to verify if files exist on some bricks and not the other. Execute the
statcommand with the file name from the mount, so that it is healed to all bricks of the replica. Once the file is completely healed, executing the
rm -rf dircommand is successful.
Issues related to gNFS
- BZ#1413910
- From Red Hat Gluster Storage 3.2 onwards, for every volume the option
nfs.disablewill be explicitly set to either
onor
off. The default value for new volumes created is
on, due to which these volumes will not be exported via. Gluster NFS. The snapshots which were created from 3.1.x version or earlier does not have this volume option.Workaround: Execute the following command on the volumes:
# gluster v set nfs.disable volname offThe restored volume will not be exported via. Gluster NFS.
Issues related to Tiering
- BZ#1334262
- If the
gluster volume tier attachcommand times out, it could result in either of two situations. Either the volume does not become a tiered volume, or the tier daemon is not started.Workaround: When the timeout is observed, perform the following:
- Check if the volume has become a tiered volume.
- If not, then rerun the
gluster volume tier attachcommand.
- If it has, then proceed with the next step.
- Check if the tier daemons were created on each server.
- If the tier daemons were not created, execute the following command:
# gluster volume tier volname start
- BZ#1303298
- Listing the entries on a snapshot of a tiered volume displays incorrect permissions for some files. This is because the User Serviceable Snapshot (USS) returns the
statinformation for the link to files in the cold tier instead of the actual data file. These files appear to have
-----Tpermissions.Workaround: FUSE clients can work around this issue by applying any of the following options:
NFS clients can work around the issue by applying the
use-readdirp=noThis is the recommended option.
attribute-timeout=0
entry-timeout=0
noacoption.
- BZ#1303045
- When a tier is attached while I/O operation is in progress on an NFS mount, I/O pauses temporarily, usually for between 3 to 5 minutes.Workaround: If I/O does not resume within 5 minutes, use the
gluster volume start volname forcecommand to resume I/O without interruption.
- BZ#1273741
- Files with hard links are not promoted or demoted on tiered volumes.There is no known workaround for this issue.
- BZ#1305490
- A race condition between tier migration and hard link creation results in the hard link operation failing with a
File existserror, and logging
Stale file handlemessages on the client. This does not impact functionality, and file access works as expected.This race occurs when a file is migrated to the cold tier after a hard link has been created on the cold tier, but before a hard link is created to the data on the hot tier. In this situation, the attempt to create a hard link on the hot tier fails. However, because the migration converts the hard link on the cold tier to a data file, and a linkto already exists on the cold tier, the links exist and works as expected.
- BZ#1277112
- When hot tier storage is full, write operations such as file creation or new writes to existing files fail with a
No space left on deviceerror, instead of redirecting writes or flushing data to cold tier storage.Workaround: If the hot tier is not completely full, it is possible to work around this issue by waiting for the next CTR promote/demote cycle before continuing with write operations.If the hot tier does fill completely, administrators can copy a file from the hot tier to a safe location, delete the original file from the hot tier, and wait for demotion to free more space on the hot tier before copying the file back.
- BZ#1278391
- Migration from the hot tier fails when the hot tier is completely full because there is no space left to set the extended attribute that triggers migration.
- BZ#1283507
- Corrupted files can be identified for promotion and promoted to hot tier storage.In rare circumstances, corruption can be missed by the BitRot scrubber. This can happen in two ways:
When tiering is in use, these unidentified corrupted files can be 'heated' and selected for promotion to the hot tier. If a corrupted file is migrated to the hot tier, and the hot tier is not replicated, the corrupted file cannot be accessed or migrated back to the cold tier.
- A file is corrupted before its checksum is created, so that the checksum matches the corrupted file, and the BitRot scrubber does not mark the file as corrupted.
- A checksum is created for a healthy file, the file becomes corrupted, and the corrupted file is not compared to its checksum before being identified for promotion and promoted to the hot tier, where a new (corrupted) checksum is created.
- BZ#1306917
- When a User Serviceable Snapshot is enabled, attaching a tier succeeds, but any I/O operations in progress during the attach tier operation may fail with stale file handle errors.Workaround: Disable User Serviceable Snapshots before performing
attach tier. Once
attach tierhas succeeded, User Serviceable Snapshots can be enabled.
Issues related to Snapshot
- BZ#1403169
- If NFS-ganesha was enabled while taking a snapshot, and during the restore of that snapshot it is disabled or shared storage is down, then the snapshot restore will fail.
- BZ#1403195
- Snapshot create might fail, if a brick has started but not all translators have initialized.
- BZ#1169790
- When a volume is down and there is an attempt to access
.snapsdirectory, a negative cache entry is created in the kernel Virtual File System (VFS) cache for the
.snapsdirectory. After the volume is brought back online, accessing the
.snapsdirectory fails with an ENOENT error because of the negative cache entry.Workaround: Clear the kernel VFS cache by executing the following command:
# echo 3 > /proc/sys/vm/drop_cachesNote that this can cause temporary performance degradation.
- BZ#1174618
- If the User Serviceable Snapshot feature is enabled, and a directory has a pre-existing
.snapsfolder, then accessing that folder can lead to unexpected behavior.Workaround: Rename the pre-existing
.snapsfolder with another name.
- BZ#1394229
- Performing operations which involve client graph changes such as volume set operations, restoring snapshot, etc. eventually leads to out of memory scenarios for the client processes that mount the volume.
- BZ#1129675
- Performing a snapshot restore while
glusterdis not available in a cluster node or a node is unavailable results in the following errors:
Workaround: Perform snapshot restore only if all the nodes and their corresponding
- Executing the
gluster volume heal vol-name infocommand displays the error message
Transport endpoint not connected.
- Error occurs when clients try to connect to glusterd service.
glusterdservices are running. Start
glusterdby running the following command:
# service glusterd start
- BZ#1118780
- On restoring a snapshot which was created while the rename of a directory was in progress ( the directory has been renamed on the hashed sub-volume but not on all of the sub-volumes), both the old and new directories will exist and have the same GFID. This can cause inconsistencies and issues accessing files in those directories.In DHT, a rename (source, destination) of a directory is done first on the hashed sub-volume and if successful, on the remaining sub-volumes. At this point in time, both source and destination directories are present in the volume with same GFID - destination on hashed sub-volume and source on rest of the sub-volumes. A parallel lookup (on either source or destination) at this time can result in creation of these directories on the sub-volumes on which they do not yet exist- source directory entry on hashed and destination directory entry on the remaining sub-volumes. Hence, there would be two directory entries - source and destination - having the same GFID.
- BZ#1236149
- If a node/brick is down, the
snapshot createcommand fails even with the force option. This is an expected behavior.
- BZ#1240227
- LUKS encryption over LVM is currently not supported.
- BZ#1246183
- User Serviceable Snapshots is not supported on Erasure Coded (EC) volumes.
Issues related to Geo-replication
- BZ#1393362
- If a geo-replication session is created while gluster volume rebalance is in progress, then geo-replication may miss some files/directories sync to slave volume. This is caused because of internal movement of files due to rebalance.Workaround: Do not create a geo-replication session if the master volume rebalance is in progress.
- BZ#1561393
- If the quick-read performance feature is enabled on the geo-rep slave volume, it could serve stale data as it fails to invalidate its cache in a corner case. This could affect applications reading slave volume as it might get served with stale data.Workaround: Disable quick read performance feature on the slave volume:
# gluster vol set
slave-vol-namequick-read offWith quick-read performance feature disabled, slave will not serve stale data and serves consistent data.
- BZ#1344861
- Geo-replication configuration changes when one or more nodes are down in the Master Cluster. Due to this, the nodes that are down will have the old configuration when the nodes are up.Workaround: Execute the Geo-replication config command again once all nodes are up. With this, all nodes in Master Cluster will have same Geo-replication config options.
- BZ#1293634
- Sync performance for geo-replicated storage is reduced when the master volume is tiered, resulting in slower geo-replication performance on tiered volumes.
- BZ#1302320
- During file promotion, the rebalance operation sets the sticky bit and suid/sgid bit. Normally, it removes these bits when the migration is complete. If readdirp is called on a file before migration completes, these bits are not removed and remain applied on the client.If rsync happens while the bits are applied, the bits remain applied to the file as it is synced to the destination, impairing accessibility on the destination. This can happen in any geo-replicated configuration, but the likelihood increases with tiering as the rebalance process is continuous.
- BZ#1102524
- The Geo-replication worker goes to faulty state and restarts when resumed. It works as expected when it is restarted, but takes more time to synchronize compared to resume.
- BZ#1238699
- The Changelog History API expects brick path to remain the same for a session. However, on snapshot restore, brick path is changed. This causes the History API to fail and geo-rep to change to
Faulty.
Workaround:
- After the snapshot restore, ensure the master and slave volumes are stopped.
- Backup the
htimedirectory (of master volume).
cp -a <brick_htime_path> <backup_path>
NoteUsing
-aoption is important to preserve extended attributes.For example:
cp -a /var/run/gluster/snaps/a4e2c4647cf642f68d0f8259b43494c0/brick0/b0/.glusterfs/changeslogs/htime /opt/backup_htime/brick0_b0
- Run the following command to replace the
OLDpath in the htime file(s) with the new brick path, where OLD_BRICK_PATH is the brick path of the current volume, and NEW_BRICK_PATH is the brick path after snapshot restore.
find <new_brick_htime_path> - name 'HTIME.*' -print0 | \ xargs -0 sed -ci 's|<OLD_BRICK_PATH>|<NEW_BRICK_PATH>|g'For example:
find /var/run/gluster/snaps/a4e2c4647cf642f68d0f8259b43494c0/brick0/b0/.glusterfs/changelogs/htime/ -name 'HTIME.*' -print0 | \ xargs -0 sed -ci 's|/bricks/brick0/b0/|/var/run/gluster/snaps/a4e2c4647cf642f68d0f8259b43494c0/brick0/b0/|g'
- Start the Master and Slave volumes and Geo-replication session on the restored volume. The status should update to
Active.
Issues related to Self-heal
- BZ#1240658
- When files are accidentally deleted from a brick in a replica pair in the back-end, and
gluster volume heal VOLNAME fullis run, then there is a chance that the files may not heal.Workaround: Perform a lookup on the files from the client (mount). This triggers the heal.
- BZ#1173519
- If you write to an existing file and go over the
_AVAILABLE_BRICK_SPACE_, the write fails with an I/O error.Workaround: Use the
cluster.min-free-diskoption. If you routinely write files up to nGB in size, then you can set min-free-disk to an mGB value greater than n.For example, if your file size is 5GB, which is at the high end of the file size you will be writing, you might consider setting min-free-disk to 8 GB. This ensures that the file will be written to a brick with enough available space (assuming one exists).
# gluster v set _VOL_NAME_ min-free-disk 8GB
Issues related to replace-brick operation
- After the
gluster volume replace-brick VOLNAME Brick New-Brick commit forcecommand is executed, the file system operations on that particular volume, which are in transit, fail.
- After a replace-brick operation, the stat information is different on the NFS mount and the FUSE mount. This happens due to internal time stamp changes when the
replace-brickoperation is performed.
Issues related to NFS
- After you restart the NFS server, the unlock within the grace-period feature may fail and the locks held previously may not be reclaimed.
fcntllocking (NFS Lock Manager) NAT (Network Address Translation) router or a firewall, the locking behavior is unpredictable. The current implementation of NLM assumes that Network Address Translation of the client's IP does not happen.
nfs.mount-udpoption is disabled by default. You must enable it to use posix-locks on Solaris when using NFS to mount on a Red Hat Gluster Storage volume.
- If you enable the
nfs.mount-udpoption, while mounting a subdirectory (exported using the
nfs.export-diroption) on Linux, you must mount using the
-o proto=tcpoption. UDP is not supported for subdirectory mounts on the GlusterFS-NFS server.
- For NFS Lock Manager to function properly, you must ensure that all of the servers and clients have resolvable hostnames. That is, servers must be able to resolve client names and clients must be able to resolve server hostnames.
Issues related to NFS-Ganesha
- BZ#1570084
- The
dbuscommand used to export the volumes fails, if the volumes are exported before completing nfs-ganesha start up.Workaround: Restart the nfs-ganesha process and then export the volumes.
- BZ#1535849
- In case of NFS-Ganesha, the memory created for a cache entry is recycled instead of freeing it. For example, if there is a file "foo" and it is removed from different client cache entry for "foo", it still exists. As a result, memory used by NFS-Ganesha will increase till cache is full.
- BZ#1461114
- While adding a node to an existing Ganesha cluster, the following error messages are displayed, intermittently:
Error: Some nodes had a newer tokens than the local node. Local node's tokens were updated. Please repeat the authentication if needed
Error: Unable to communicate with pcsdWorkaround: These messages can safely be ignored since there is no known functionality impact.
- BZ#1402308
- The Corosync service will crash, if ifdown is performed after setting up the ganesha cluster. This may impact the HA functionality.
- BZ#1330218
- If a volume is being accessed by heterogeneous clients (i.e, both NFSv3 and NFSv4 clients), it is observed that NFSv4 clients take longer time to recover post virtual-IP failover due to node shutdown.Workaround: Use different VIPs for different access protocol (i.e, NFSv3 or NFSv4) access.
- BZ#1416371
- If
gluster volume stopoperation on a volume exported via NFS-ganesha server fails, there is a probability that the volume will get unexported on few nodes, inspite of the command failure. This will lead to inconsistent state across the NFS-ganesha cluster.Workaround: To restore the cluster back to normal state, perform the following
- Identify the nodes where the volume got unexported
- Re-export the volume manually using the following dbus command:
# dbus-send --print-reply --system --dest=org.ganesha.nfsd /org/ganesha/nfsd/ExportMgr org.ganesha.nfsd.exportmgr.AddExport string:/var/run/gluster/shared_storage/nfs-ganesha/exports/export.<volname>.conf string:""EXPORT(Path=/<volname>)"""
- BZ#1381416
- When a READDIR is issued on directory which is mutating, the cookie sent as part of request could be of the file already deleted. In such cases, server returns
BAD_COOKIEerror. Due to this, some applications (like bonnie test-suite) which do not handle such errors may error out.This is an expected behaviour of NFS server and the applications has to be fixed to fix such errors.
- BZ#1398280
- If any of the PCS resources are in the failed state, then the teardown requires a lot of time to complete. Due to this, the command
gluster nfs-ganesha disablewill timeout.Workaround: If
gluster nfs-ganesha disableencounters a timeout, perform the
pcs statusand check whether any resource is in failed state. Then perform the cleanup for that resource using following command:
# pcs resource --cleanup <resource id>Re-execute the
gluster nfs-ganesha disablecommand.
- BZ#1328581
- After removing a file, the nfs-ganesha process does a lookup on the removed entry to update the attributes in case of any links present. Due to this, as the file is deleted, lookup will fail with ENOENT resulting in a misleading log message in
gfapi.log.This is an expected behaviour and there is no functionality issue here. The log message needs to be ignored in such cases.
- BZ#1259402
- When vdsmd and abrt services are installed alongside each other, vdsmd overwrites abrt core dump configuration in
/proc/sys/kernel/core_patternfile. This prevents NFS-Ganesha from generating core dumps.Workaround: Set
core_dump_enableto
falsein
/etc/vdsm/vdsm.conffile to disable core dumps, then restart the
abrt-ccppservice:
# systemctl restart abrt-ccpp
- BZ#1257548
nfs-ganeshaservice monitor script which triggers IP failover runs periodically every 10 seconds. By default, the ping-timeout of the glusterFS server (after which the locks of the unreachable client gets flushed) is 42 seconds. After an IP failover, some locks are not cleaned by the glusterFS server process. Therefore, reclaiming the lock state by NFS clients fails.Workaround: It is recommended to set the
nfs-ganeshaservice monitor period interval (default 10s) to at least twice the Gluster server ping-timeout (default 42s) period.Therefore, you must decrease the network ping-timeout by using the following command:
# gluster volume set <volname> network.ping-timeout <ping_timeout_value>or increase nfs-service monitor interval time by using the following commands:
# pcs resource op remove nfs-mon monitor
# pcs resource op add nfs-mon monitor interval=<interval_period_value> timeout=<timeout_value>
- BZ#1470025
- PCS cluster IP resources may enter FAILED state during failover/failback of VIP in NFS-Ganesha HA cluster. As a result, VIP is inaccessible resulting in mount failures or system freeze.Workaround: Clean up the failed resource by using the following command:
# pcs resource cleanup resource-id
- BZ#1474716
- After a reboot, systemd may interpret NFS-Ganesha to be in STARTED state when it is not running.Workaround: Manually start the NFS-Ganesha process.
- BZ#1473280
- Executing the
gluster nfs-ganesha disablecommand stops the NFS-Ganesha service. In case of pre-exported entries, NFS-Ganesha may enter FAILED state.Workaround: Restart the NFS-Ganesha process after failure and re-run the following command:
# gluster nfs-ganesha disable
Issues related to Object Store
- The GET and PUT commands fail on large files while using Unified File and Object Storage.Workaround: You must set the
node_timeout=60variable in the proxy, container, and the object server configuration files.
Issues related to Red Hat Gluster Storage Volumes
- BZ#1578703
- Large number of inodes can cause the itable to be locked for a longer period during inode status dump. This behavior causes performance issues on clients command timeout on inode status dump.Workaround: Reduce the LRU inodes when performing ‘inode status’ by running the following commands.Set to small value:
# gluster v set v1 inode-lru-limit 256Take inode dump:
# gluster v status v1 inodeSet to previous value:
# gluster v set v1 inode-lru-limit 16384
- BZ#1286050
- On a volume, when read and write operations are in progress and simultaneously a rebalance operation is performed followed by a remove-brick operation on that volume, then the
rm -rfcommand fails on a few files.
- BZ#1224153
- When a brick process dies, BitD tries to read from the socket used to communicate with the corresponding brick. If it fails, BitD logs the failure to the log file. This results in many messages in the log files, leading to the failure of reading from the socket and an increase in the size of the log file.
- BZ#1224162
- Due to an unhandled race in the RPC interaction layer, brick down notifications may result in corrupted data structures being accessed. This can lead to NULL pointer access and segfault.Workaround: When the
Bitrotdaemon (bitd) crashes (segfault), you can use
volume start VOLNAME forceto restart
bitdon the node(s) where it crashed.
- BZ#1227672
- A successful scrub of the filesystem (objects) is required to see if a given object is clean or corrupted. When a file is corrupted and a scrub has not been run on the filesystem, there is a good chance of replicating corrupted objects in cases when the brick holding the good copy was offline when I/O was performed.Workaround: Objects need to be checked on demand for corruption during healing.
Issues related to Samba
- BZ#1329718
- Snapshot volumes are read-only. All snapshots are made available as directories inside .snaps directory. Even though snapshots are read-only, the directory attribute of snapshots is same as the directory attribute of root of snapshot volume, which can be read-write. This can lead to confusion, because Windows will assume that the snapshots directory is read-write. Restore previous version option in file properties gives open option. It will open the file from the corresponding snapshot. If opening of the file also creates temp files (for example, Microsoft Word files), the open will fail. This is because temp file creation will fail because snapshot volume is read-only.Workaround: Copy such files to a different location instead of directly opening them.
- BZ#1322672
- When vdsm and abrt's ccpp addon are installed alongside each other, vdsmd overwrites abrt's core dump configuration in /proc/sys/kernel/core_pattern. This prevents Samba from generating core dumps due to SELinux search denial on new coredump location set by vdsmd.Workaround: To workaround this issue, execute the following steps:
- Disable core dumps in
/etc/vdsm/vdsm.conf:
core_dump_enable = false
- Restart the abrt-ccpp and smb services:
# systemctl restart abrt-ccpp # systemctl restart smb
- BZ#1300572
- Due to a bug in the Linux CIFS client, SMB2.0+ connections from Linux to Red Hat Gluster Storage currently will not work properly. SMB1 connections from Linux to Red Hat Gluster Storage, and all connections with supported protocols from Windows continue to work.Workaround: If practical, restrict Linux CIFS mounts to SMB version 1. The simplest way to do this is to not specify the
vers mountoption, since the default setting is to use only SMB version 1. If restricting Linux CIFS mounts to SMB1 is not practical, disable asynchronous I/O in Samba by setting
aio read sizeto 0 in
smb.conffile. Disabling asynchronous I/O may have performance impact on other clients
- BZ#1282452
- Attempting to upgrade to ctdb version 4 fails when ctdb2.5-debuginfo is installed, because the ctdb2.5-debuginfo package currently conflicts with the samba-debuginfo package.Workaround: Manually remove the ctdb2.5-debuginfo package before upgrading to ctdb version 4. If necessary, install samba-debuginfo after the upgrade.
- BZ#1164778
- Any changes performed by an administrator in a Gluster volume's share section of
smb.confare replaced with the default Gluster hook scripts settings when the volume is restarted.Workaround: The administrator must perform the changes again on all nodes after the volume restarts.
Issues related to SELinux
- BZ#1256635
- Red Hat Gluster Storage does not currently support SELinux Labeled mounts.On a FUSE mount, SELinux cannot currently distinguish file systems by subtype, and therefore cannot distinguish between different FUSE file systems (BZ#1291606). This means that a client-specific policy for Red Hat Gluster Storage cannot be defined, and SELinux cannot safely translate client-side extended attributes for files tracked by Red Hat Gluster Storage.A workaround is in progress for NFS-Ganesha mounts as part of BZ#1269584. When complete, BZ#1269584 will enable Red Hat Gluster Storage support for NFS version 4.2, including SELinux Labeled support.
- BZ#1291194 , BZ#1292783
- Current SELinux policy prevents ctdb's 49.winbind event script from executing smbcontrol. This can create inconsistent state in winbind, because when a public IP address is moved away from a node, winbind fails to drop connections made through that IP address.
Issues related to Sharding
- BZ#1520882 , BZ#1568758
- When large number of shards are deleted in a large file, the shard translator synchronously sends unlink operation on all the shards in parallel. This action causes replicate translator to acquire locks on the .shard directory in parallel.After a short period, large number of locks get accumulated in the locks translatory, and the search for possible matching locks is slowed down, sometimes taking several minutes to complete. This behaviour causes timeouts leading to disconnects and also subsequent failure of file deletion leading to stale shards being left out under the .shard directory.Workaround: Use shard block size of 64 MB as the lower the shard-block-size, the higher the chances of timeouts.
- BZ#1332861
- Sharding relies on block count difference before and after every write as gotten from the underlying file system and adds that to the existing block count of a sharded file. But XFS' speculative preallocation of blocks causes this accounting to go bad as it may so happen that with speculative preallocation the block count of the shards after the write projected by xfs could be greater than the number of blocks actually written to.Due to this, the block-count of a sharded file might sometimes be projected to be higher than the actual number of blocks consumed on disk. As a result, commands like
du -shmight report higher size than the actual number of physical blocks used by the file.
General issues
- GFID mismatches cause errors
- If files and directories have different GFIDs on different back-ends, the glusterFS client may hang or display errors. Contact Red Hat Support for more information on this issue.
- BZ#1236025
- The time stamp of files and directories changes on snapshot restore, resulting in a failure to read the appropriate change logs.
glusterfind prefails with the following error:
historical changelogs not available. Existing glusterfind sessions fail to work after a snapshot restore.Workaround: Gather the necessary information from existing glusterfind sessions, remove the sessions, perform a snapshot restore, and then create new glusterfind sessions.
- BZ#1573083
- When
storage.reservelimits are reached and a directory is created, the directory creation fails with ENOSPC error and lookup on the directory throws ESTALE errors. As a consequence, file operation is not completed.Workaround: No workaround is available.
- BZ#1578308
- Stale statistics cached in the
md-cacheand
readdir-ahead, fail to get updated on write operations from the application. As a result, the application does not see the effect of write operations like size from the statistics which does not reflect the writes that are successfully completed.Workaround:Turn off performance.stat-prefetch and performance.readdir-ahead options and the application will no longer receive stale statistics.
- BZ#1260119
glusterfindcommand must be executed from one node of the cluster. If all the nodes of cluster are not added in
known_hostslist of the command initiated node, then
glusterfind createcommand hangs.Workaround: Add all the hosts in peer including local node to
known_hosts.
- BZ#1058032
- While migrating VMs, libvirt changes the ownership of the guest image, unless it detects that the image is on a shared filesystem and the VMs cannot access the disk images as the required ownership is not available.Workaround: Before migration, power off the VMs. When migration is complete, restore the ownership of the VM Disk Image (107:107) and start the VMs.
- BZ#1127178
- When a replica brick comes back online, it might have self-heal pending. Executing the
rm -rfcommand on the brick will fail with the error message Directory not empty.Workaround: Retry the operation when there are no pending self-heals.
- BZ#1460629
- When the command
rm -rfis executed on the parent directory, which has a pending self-heal entry involving purging files from a sink brick, the directory and files awaiting heal may not be removed from the sink brick. Since the readdir for the
rm -rfwill be served from the source brick, the file pending entry heal is not deleted from the sink brick. Any data or metadata which is pending heal on such a file are displayed in the output of the command
heal-info, until the issue is fixed.Workaround: If the files and parent directory are not present on other bricks, delete them from the sink brick. This ensures that they are no longer listed in the next 'heal-info' output.
- BZ#1462079
- Due to incomplete error reporting, statedump is not generated after executing the following command:
# gluster volume statedump volume client host:portWorkaround: Verify that the
host:portis correct in the command.The resulting statedump file(s) are placed in
/var/run/glusteron the host running the gfapi application.
Issues related to Red Hat Gluster Storage AMI
- BZ#1267209
- The redhat-storage-server package is not installed by default in a Red Hat Gluster Storage Server 3 on Red Hat Enterprise Linux 7 AMI image.Workaround: It is highly recommended to manually install this package using yum.
# yum install redhat-storage-serverThe redhat-storage-server package primarily provides the
/etc/redhat-storage-releasefile, and sets the environment for the storage node. package primarily provides the
/etc/redhat-storage-releasefile, and sets the environment for the storage node.
Issues related to Red Hat Gluster Storage Web Administration
- BZ#1622461
- When central store (etcd) is stopped which could happen either due to stopping of etcd or shutting down the Web Administration server node itself, all the Web Administration services start reporting exceptions regarding reachability to the etcd. As a consequence, Web Administration services crash as etcd is not reachable.Workaround: Once etcd is back, restart Web Administration services..
Chapter 5. Technology Previews
Note | https://access.redhat.com/documentation/en-us/red_hat_gluster_storage/3.4/html-single/3.4_release_notes/index | CC-MAIN-2022-27 | refinedweb | 7,423 | 53.71 |
RDF::NS - Just use popular RDF namespace prefixes from prefix.cc
version 20130402
use RDF::NS '20130402'; # check at compile time my $ns = RDF::NS->new('20130402'); # check at runtime $ns->foaf; # $ns->foaf_Person; # $ns->foaf('Person'); # $ns->uri('foaf:Person'); # use RDF::NS; # get rid if typing '$' by defining a constant use constant NS => RDF::NS->new('20111208'); NS->foaf_Person; # $ns->SPAQRL('foaf'); # PREFIX foaf: <> $ns->TTL('foaf'); # @prefix foaf: <> . $ns->XMLNS('foaf'); # xmlns:foaf="" # load your own mapping from a file $ns = RDF::NS->new("mapping.txt"); # select particular mappings %map = $ns->SELECT('rdf,dc,foaf'); $uri = $ns->SELECT('foo|bar|doz'); # returns first existing namespace # instances of RDF::NS are just blessed hash references $ns->{'foaf'}; # bless { foaf => '' }, 'RDF::NS'; print (scalar keys %$ns) . "prefixes\n"; $ns->COUNT; # also returns the number of prefixes
Hardcoding URI namespaces and prefixes for RDF applications is neither fun nor maintainable. In the end we all use more or less the same prefix definitions, as collected at. This module includes all these prefixes as defined at specific snapshots in time. These snapshots correspond to version numbers of this module. By selecting particular versions, you make sure that changes at prefix.cc won't affect your.
Create a new namespace mapping from a selected file or date. The special string
"any" can be used to get the newest mapping, but you should better select a specific version, as mappings can change, violating backwards compatibility. Supported options include
warn to enable warnings and
at to specify a date.
Returns the namespace for E<prefix> if namespace prefix is defined. For instance
$ns->foaf returns.
Returns the namespace plus local name, if namespace prefix is defined. For instance
$ns->foaf_Person returns.
Expand a prefixed URI, such as
foaf:Person or
foaf_Person. Alternatively you can expand prefixed URIs with method calls, such as
$ns->foaf_Person. If you pass an URI wrapped in
< and
>, it will not be expanded but returned as given.
Returns a Turtle/Notation3
@prefix definition or a list of such definitions in list context. Prefixes can be passed as single arguments or separated by commas, vertical bars, and spaces.
Returns a SPARQL PREFIX definition or a list of such definitions in list context. Prefixes can be passed as single arguments or separated by commas, vertical bars, and spaces.
Returns an XML namespace declaration or a list of such declarations in list context. Prefixes can be passed as single arguments or separated by commas, vertical bars, and spaces.
Returns a list of tabular-separated prefix-namespace-mappings.
Returns a list of BEACON format prefix definitions (not including prefixes).
Get a prefix of a namespace URI, if it is defined. This method does a reverse lookup which is less performant than the other direction. If multiple prefixes are defined, it is not determinstic which one is returned. If you need to call this method frequently, better create a reverse hash (method REVERSE).
Get all known prefixes of a namespace URI.
Create a lookup hash from namespace URIs to prefixes. If multiple prefixes exist, the shortes will be used.
In list context, returns a sorted list of prefix-namespace pairs, which can be used to assign to a hash. In scalar context, returns the namespace of the first prefix that was found. Prefixes can be passed as single arguments or separated by commas, vertical bars, and spaces.
Internally used to map particular or all prefixes. Prefixes can be selected as single arguments or separated by commas, vertical bars, and spaces. In scalar context,
$_ is set to the first existing prefix (if found) and
$code is called. In list context, found prefixes are sorted at mapped with
$code.
This method is used internally to create URIs as return value of the URI method and all lowercase shortcut methods, such as
foaf_Person. By default it just returns
$uri unmodified.
There are several other CPAN modules to deal with IRI namespaces, for instance RDF::Trine::Namespace, RDF::Trine::NamespaceMap, URI::NamespaceMap, RDF::Prefixes, RDF::Simple::NS, RDF::RDFa::Parser::Profile::PrefixCC, Class::RDF::NS, XML::Namespace, XML::CommonNS etc.
Jakob Voss
This software is copyright (c) 2013 by Jakob Voss.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. | http://search.cpan.org/~voj/RDF-NS-20130402/lib/RDF/NS.pm | CC-MAIN-2014-23 | refinedweb | 717 | 57.57 |
Like most good Rails developers, we use presenters at Stitch Fix. We typically implement them using delegation, but I’ve been finding that the time savings of this approach over just making a struct-like class is negligable, and results in code that’s harder to change and harder to use.
What is a presenter?
Briefly, a presenter is a form of adapter. You use it when your view requires data that isn’t in the form provided by your controller. For example, at Stitch Fix, we track events that occur on our shipments (a shipment being what we send to our clients and the basic unit of work for our internal systems). As described in my previous post, these events are either attributed to a client or to an internal user.
The view of an event, however, requires simply a username—who initiated the event? In classic Rails, you might do:
<% if @event.admin_user.present? %> <%= @event.admin_user.name %> <% else %> <%= @event.client.display_name %> <% end %>
You might put this into a helper, but helpers have a way of getting out of control. An alternative is to adapt our controller to our view by means of a presenter:
class EventPresenter def initialize(event) @event = event end def username if event.admin_user.present? event.admin_user.name else event.client.display_name end end end
Which turns our template into:
<%= @event.username %>
where
@event is actually an
EventPresenter. The “problem” here is that we also need access to other attributes of
Event,
such as the
event_name and
created_at. In a sense, we want our
EventPresenter to behave just like the
Event that was given to its initializer, but with the additional
username method as well. We can do this by telling
EventPresenter to delegate methods to its internal
Event instance.
Delegation
Rails provides the method
delegate that works as a “class macro”, allowing you to declare attributes that get their values from
another object.
class EventPresenter def initialize(event) @event = event end delegate :created_at, :event_name, to: "@event" end
This means that objects of this class respond to the messages
created_at and
event_name and that they will do so by passing
the message along to the
@event ivar. Basically, shorthand for:
def created_at @event.created_at end
This tends to work pretty well, but you’ll notice that the implementation of
EventPresenter is very tightly coupled to
Event.
If we want to create and display events in some other way, we really can’t unless we have a bonafide
Event instance.
I recently ran into this problem where I needed to merge two event streams into one logical view. We (unfortunatley) have a second log of changes made to shipments, and it’s not feasible to convert the code generating the second log to use the shipment events we have. Worse, the schema of that log is fairly different from the shipment events.
While accessing the log is a snap, there wasn’t a clear way to fit it into my existing view, which was based on
EventPresenter.
I saw three possible options:
- Create non-persisted
Eventinstances, based on the log entries, and feed those to
EventPresenter
- Create a
LogPresenterthat exposed the same interface as
EventPresenter, but adapter the second log entries
- Rework
EventPresenterso that it could “present” either type of object.
I chose the later by changing
EventPresenter into a simple struct that could get its values from anywhere.
Structs Can Separate Concerns
A struct is often called a “Plain Ole’ Ruby Object” or “Plain Ole’ Java Object”, but is simply a class that groups data together, providing access to it via methods like so:
class Event def initialize(event_name, created_at, admin_user, client) @event_name = event_name @create_at = created_at @admin_user = admin_user @client = client end attr_reader :event_name, :created_at, :admin_user, :client end
You might be familiar with Ruby’s
Struct class. It’s a nice attempt to make generating a class like this simpler, but it’s flawed:
- attributes are mutatable, which is not needed nor desired when generating a view
- the constructor it generates doesn’t use an options hash, but instead a big blob of positional arguments, making construction difficult to understand
Stitch Fix has our own version of
Struct called
ImmutableStruct which solves both of these. For example:
EventPresenter = ImmutableStruct.new(:event_name, :created_at, :admin_user, :client) nil_event = EventPresenter.new # => all fields nil name_only = EventPresenter.new(event_name: 'printed_labels') name_only.event_name # => printed_labels everything = EventPresenter.new(event_name: 'styled', created_at: 4.days.ago, admin_user: AdminUser.find(user_id))
Notice how our
EventPresenter here has nothing to do with the
Event class. We can create objects usable by our view in any
way we’d like. That means that to merge our two event log streams, we merely create
EventPresenter instances.
We’ve lost the delgation aspects, so we must explicitly map the fields of our objects. To do this, I created factory methods
inside the
EventPresenter class itself:
EventPresenter = ImmutableStruct.new(:event_name, :created_at, :admin_user, :client) do def self.from_event(event) self.new(event_name: event.event_name, created_at: event.created_at, admin_user: event.admin_user, client: event.client) end def self.from_secondary_log(log) self.new(event_name: log.action_description, created_at: log.action_date, client: log.user.client) end end
We can then merge our log streams like so:
events = shipment.events logs = SecondaryLogs.for_shipment(shipment) shipment_event_log = ( events.map(&EventPresenter.method(:from_event) + logs.map(&EventPresenter.method(:from_secondary_log)) ).sort_by(&:created_at)
By using a struct instead of a delegator, we’ve separated what an
EventPresenter is from how its constructed. Because our “classic” presenter
relied on delegation, there was no easy way to change it to get its attributes’ values from a different place. Here, the
attribute values are simply whatever was given to the constructor.
This also allows us to easily create instances of
EventPresenter without having any particular backing data, which is handy for
testing.
But, Lines of Code!
Yes, it’s slightly longer than our delegation-backed version, but it’s not that much longer, possibly taking an extra 30 seconds to type out, and it’s conceptually the same size. It’s more flexible, simple to construct, and simple to understand. It’s just a Ruby class in its most basic form.
This is another way of saying that we get better, simpler code, without almost the same effort, if we just create a basic class
instead of using delegation.
ImmutableStruct is only 26 lines of code (it’s very similar to the values gem, but works a bit
more to my personal tastes).
So, next time you’re thinking about delegation when trying to adapt two different bits of code, consider a simple struct. It’s not that much more difficult to create, and makes your code flexible and easy to understand while making tests easier to write. | https://multithreaded.stitchfix.com/blog/2013/12/20/presenters-delegation-vs-structs/ | CC-MAIN-2020-29 | refinedweb | 1,111 | 55.44 |
24,07 Herbert S .. -#- .HIGH 75 LOW 58 Creator of hurricane intensity scale dies /3A T Ru s FORECAST: Partly sunny. Chance of rain in the evening. PAGE 4A NOVEMBER 24, 20 Heroic efforts Pakistan protests .Supreme Court makes nusharraf's declared emer- gency legal./Page 12A STOCKS: The season $ Black Friday buying boosts confidence on fall Street./Page 9A Evangelism z.u A new breed of religious lead- ers from the developing world are out to convert people from the nations that first corivert- ed them./Page 1C OPINION: There is no better investment than in the lives of children. a.P.!L PAGE 10A. WANNA BUY A LIGHTHOUSE: FixerOupper The federal government is selling the 102-year-old Point No Point lighthouse in the Chesapeake Bay./Page 6A TALKS ON TAP: Mideast peace several Arab nations agree to participate in an upcoming ,peace talk./Page 12A ODD NEWS FEED: National videos , @ Check out the Web site Chronicleonline .com to see videos of odd events from across the nation. COMING UP: Future is here :New business seeks to change ,the way property is appraised :in Citrus County./Sunday Annie's Mailbox ........ 7C ;Com ics .............. 8C iCrossword .......... 7C Editorial ........ ... 10A Entertainment ......... 6B 'Horoscope ........ . .7C Lottery Payouts ........ 6B Movies .............. 8C Obituaries .......... 6A Stocks ............. 8A Thr e Qgrfirnnc DAVE SIGLER/Chronicle Crystal River High School player Shay Newcomer scrambles away from a tackle by North Marion's Tyler Holley during first half action Friday night at North Marion High School. For details of the game, see Page 1B. Employees refute allegation Investigation focuses on anonymous complaint TERRY WiTT terrywitt@chronicleonline.com Chronicle The formal county investigation into allegations that the county fire chief had a sexual relationship with a female employee he supervises took a new twist this week, with the new Animal Services director being interviewed. County officials questioned Animal Services Director Sandra A Watson, who was named by an anonymous source as the woman who had a rela- tionship with Fire Chief Richard E. Stover. She denies the allegation. Stover said he is innocent Since the allegations are anonymous, Human Resources Director Randy Petitt and Community Services Director Brad Thorpe - the two senior managers con- ducfing the investigation - have yet tb find any evidence supporting the accusation. The investigation is ongoing. Stover has been placed on Ric paid administrative leave pend- St< ing the outcome of the investi- Citrus gation. The county employee fire ch handbook prohibits supervisors accu. from being romantically are involved with the people they supervise. He is accused of breaking the fraternization rule. In the same anonymous allegation, Stover is also accused of creating a hos- tile work atmosphere in the Fire Rescue department Petitt and Thorpe are also investigating that aspect of the complaint, but Petitt said the second ie is fa allegation appears to have noth- ing to do with the first Prior to Watson starting her new job as Animal Services director Monday --the isam p day the allegation was revealed to the Chronicle she served as shelter manager. Stover was Sard placed on paid administrative ver leave Friday, Nov. 17. County During her employment as ef says shelter manager, Stover had nations served as acting director of alse. Animal Services after former director Xan Rawls resigned on Dec. 11, 2006, for personal reasons. Watson holds a bachelor's degree in education from Plattsburgh State University in New York and a master trainer certificate from Tarheel K-9, Sanford, N.C, according to her person- nel records. She also is certified by the Please see : ,. '-/Page 4A Crime tech wins award F1AI @ "Copyrighted Material Syndicated Content Available from Commercial News Providers" oS O w -si& ^ S Forensic work aided major case CRUSTY LOFTIS cloftis@chronicleonline.com Chronicle He was inside the closet where Jessica Lunsford's fin- gerprints were found and was the first to notice the blood stains on the mattress in John Couey's. bedroom. Now crime scene technician Dave Cannaday has received an award for his work that led to the conviction of a man who kidnapped a 9-year-old Homosassa girl from her home, raped her in his bedroom and buried her alive. Cannaday, 50, earned the 2007 Outstanding Forensic Science Award from the Florida Division of the International Association for Identification. "He did an excellent job in that case," Sgt. Tim Martin said who oversees the sheriff's identification and evidence section. The blood and semen stained mattress and finger- prints were critical pieces of evidence in proving Jessica was inside Couey's bedroom and that sexual activity took place between the two. While Cannaday is a known jokester, Martin said he always knows how to get down to busi- ness and described Cannaday as thorough and efficient. P Cannaday has worked for the Special to the Chronicle Crime technician Dave Cannaday has received an award for his work that led to the conviction of John Couey in the Jessica Lunsford case. Citrus County Sheriff's Office since 1995. Before that he served 20 years in the U.S. Air Force as an aircraft weapons system supervisor. When talking about the award he received at an October conference in Fort Lauderdale, Cannaday was quick to say that the work on the Lunsford case should be credited to the seven other people in the identification and evidence section. "It was very tough emotion- ally for, everyone," Cannaday said. Despite the. tragic and intense nature of his job, Cannaday said he enjoys his work. "I figure out what happened, who the bad guy was, and help The award. put him in jail," Cannaday said. "Whenever we are able to do that that's a good day." Bargain hunters wait in dark Holiday shoppers take stores on in teams KERi LYNN MCHALE kmchale@chronicleonline.com Chronicle There are two different types of Black Friday shoppers, the line leaders and the latecomers. The difference between them? Their level of dedica- tion and a whole lot of shopping carts. At Wal-Mart in Homosassa, Crystal River resident Perna Guthrie, a veter- an Black Friday shopper, secured her No. 1 spot in line during the final hours of Thanksgiving Day. The discount-driv- en leader of the pack manned her cart at 10 p.m. Thursday and waited for the E For more doors to open at 5 about sales a.m. Friday. PAGE 5A Although Wal-Mart in Homosassa is rou- -tinely open 24 hours a day, it closed from 11 p.m. Thursday to 5 a.m. Friday so employees had time to prepare for one of the busiest shopping days of the year. Once Guthrie entered the store, she planned to grab "anything and every- thing" on sale. "The camera I'm going for is regular- ly $220 and it's going to be $80," Guthrie said./' .. .... The talk about electronics continued behind her The sleep-deprived, paja- ma-clad overnight campers brain- stormed ways to snag the low-priced DVD players and TVs. "You hit electronics first, then you go to toys and clothing," Homosassa resi- dent Leslie Stevens said. Black Friday is all about strategy, she explained, which is why she brought along her sis- ter Amanda Davis., "I'm an extra cart pusher," first-time Black Friday shopper Davis said. She was excited about the whole experi- ence, she said. "It's the thrill of the shop," Stevens said. It's also about tradition and bond- Please see .' i: /Page 5A T ~~bCAT Crntus COUNTY (FL) CHRONICLE 2A SATIJEDAY, NOVEMBER 24, 2007 Water supply forum slated Bicycle weather Regional state issues on tap Special to the Chronicle The Heart of Florida Regional Coalition will con- duct a Regional Water Supply Forum at 9 a.m. Thursday at Marion County Growth Man- agement conference room, 2710 E. Silver Springs Blvd., Ocala. * The purpose of the Regional Water Supply Forum is to dis- cuss regional and state water supply issues and brainstorm possible immediate and future direction. Invitations to participate in the leadership roundtable dis- cussion will include: a representative of Alachua and Marion County commissions. a representative of the Gainesville and Ocala City Council/Commission. Gainesville and Ocala mayors. Alachua and Marion County manager/administrator. * WHAT: Regional Water Supply Forum, sponsored by the Heart of Florida Regional Coalition. WHEN: 9 a.m. Thursday. WHERE: Marion County Growth Management con- ference room, 2710 E. Sil- ver Springs Blvd., Ocala. CONTACT: Ron Barnwell, (352) 854-2322, ext. 1535. members of the Heart of Florida Regional Water Committee. representatives of the University of Florida Alachua and Marion County Legislative Delegation. other designated guests bf the Heart of Florida Regional Coalition. Although participation in the leadership roundtable dis- cussion is limited to the invita- tion list, there will be limited seating for public observation. For more information about the Heart of Florida Regional Coalition, call Ron Barnwell, executive director at (352) 854- 2322, ext. 1535. WALTER CARLSON/For the Chronicle Robert and Suzanne Johnson of Largo ride along the Withlacoochee State Trail in Inverness. The couple said that they enjoyed the trail and tried to ride it for 40 miles at least two times a month. The couple are riding short-wheelbase recumbent bicycles. County : Arts, crafts festival today in Ozello The Ozello Civic Association will host the Ozello Arts and Crafts Festival from 10 a.m. to 4 p.m. today on the grounds of the associ- ation's building, 6.2 miles down County Road 494 (Ozello Trail). Call 563-5961 or 795-2879. Wildlife park to host bird walk today Homosassa Springs Wildlife State Park is inviting experienced and novice birdwatchers to partici- pate in bird walk at 7:45 a.m. today on the Pepper Creek Trail at the park. An experienced birder will lead the walk on this trail, one of 1.9 new birding trails in Citrus County that are part of the newly opened West Section of the Great Florida Birding Trail. Participants will meet at 7:45 at the entrance to the Park's Visitor Center and the bird walk will begin at 8. Bring binoculars and a field guide. Pepper Creek Trail is about 3/4 mile in length and follows along the park's tram road connecting the Visitor Center on U.S. 19 and the West Entrance on Fish Bowl Drive. You .can either walk back or wait and take the boat back after the park opens. There is no charge to use the Pepper Creek trail or for the return boat trip. Monthly bird walks are scheduled throughout the year except the months of June through August and December. Call Susan Strawbridge at 628- 5343, ext. 1002, or visit dastateparks.org/homosassa springs. Gifts sought for returning soldiers A number of Citrus County ser!" vicemen and -women in the Army, Air Force, Rational Guard will be returning from their overseas serv- ice between now and January. Barbara Mills wants to ensure that each of the locals who have served receives a gift basket filled with gift certificates and goodies to make each person feel appreciated and welcome. Businesses or people interest- ed in assisting Mills can call her at 422-6236 or e-mail to barbaramills @remax.net. Checks or gift certificates can be mailed to the Hernando VFW at P.O. Box 1046, Inverness, FL 34451. Checks should be made out to VFW Womens Auxiliary 4252. Taxes explained at free workshop The Florida Department of Revenue, as part of its educational program to help taxpayers under- stand and meet their obligations, will present a free Tax Workshop on Sales and Use Tax at 10 a.m. Thursday, Dec. 13, at the Bushnell Public Library, 402 N. Florida St., Bushnell. For information, call Chris Okolo, tax specialist, at (352) 315-4435. Democratic club slates meeting The Southwest Citrus Demo- cratic Club will meet 10 a.m. Sat- urday, Dec. 1, in the new Homosassa Library on Grover Cleveland Boulevard. Democratic candidates for 2008 local, state and federal office elec- tions and new members will be introduced. For additional information, call Democratic Club President Ed Murphy at 383-0876, Vice President Lorraine Osborne at 382- 3652 or Secretary Mary Gregory at 382-1330. Dream Society to wrap presents, raise money The Dream Society's Wrap-Up A Dream Fundraiser will be from 8 a.m. to 7:30 p.m. Dec. 8 to 9 and Dec. 15 to 16 at the Inverness Wal- Mart. Free gift-wrapping is available and a basket of goodies will be raf- fled. The Dream Society is hosting the fundraiser to benefit its many programs. Volunteers and supplies includ- ing wrapping paper, scissors, tape, gift boxes, bows and ribbons are needed. Donations are tax-exempt. For information, call 400-4967 or e-mail info@thedreamsociety.org. From staff reports GET THE WORD OUT * Charitable organizations are invited to submit news releas- es about upcoming community events. * Write the name ol the event, who sponsors it, when and where it will take place and other details. A Include a contact name and phone number to be printed in the paper SMNews releases are subject to editing. * Call 563 5660 tor details Simlify Life. Breakthrough product of the year... & ACl11 It's stylish, innovative and practical with multiport docking stations for cell phones, computers, ipods and more. Coordinating life is much easier when you bring it all together in one practical location. Order Now For Holiday Delivery smart int Creating the very best for people who know the difference O errors 9 / 97 W. Gulf to Lake Hwy. Lecanto 5141 Mariner Blvd. Spring Hill 352-527-4406 352-688-4633 Open 9:30-5:00 Sat. 10:00-4:00 Financing Available 6 months Same As Cash A FAMILY COMMUNICATIONS CENTER bySligh CiTRus CouNTY (FL) Ci-momcu LO r-"ATi 7~ *.-z 7 3A SATURDAY NOVEMBER 24, 2007 CITRUS COUNTY CHRONICLE TM of& -4 00 qmft mm t -.0 4W-- omm 0 4m -nm 1mm -b go-mw =D ol -df __4WD - d nm 40m - a ddb - - ~ - waft w .- - a - -- w - a- 0--"Available -m- -.0W- 10-MIIM- m o. 4 .- I.. ` M=, go-- 40W do. MEMO%- __ -- f-. a, -0 4WD 41b -,4 qW __o ______410 --45 db 9 bNW a .Na --f m pum-RW -00- 0 do ob WNW W Odom 4MO WO ft q jnmmuum t Correction Due to an editor's error, a headline on Page 1A of Thursday's Chronicle, "Board OKs septic tank rule," was incor- rect. The county commission did not vote on the issue. The Chronicle regrets the error. a -- -~ a - - Copyrighted Material Syndicated Content from CommercNews 4MOD 0~ 4w4D 1 no_41M 0 . ,Mwu hawmak udia kiflhr inp A 'A* -A, - O=M-es 1 a - - ___ -4 - - - . - ft - qm*- -M m -Q *-Nw A "M 409 map -oduma p A q- 0MN ft- 4m W- do Gmm~w C- WadUwl 4"P a-ho- -g dp -A -M VN Provders'L: abIt- emmms. -.no f. -m ft, -mm- m~l- a -waem .MG" *m 0 410a 40M qm- ---w 4m saw. a r .0 -lo a o cam mA "m a -.10 Mmm a 04 40m eb f- % ~-- f- --.~-~- Oa -.0 ftow 4a mw -&- a-samo- sm, wo o-a MMU Aw -.WP f I'ow . -- No- 40- 4-6--- 46 amp wo om -4m-0 -* -40 .~ - - a - I. (,* <.1 ow %- dim -on 4w-- - e- 4 qm -4 .-am-won-a -O lumu -- me _ qlD 4 - -0 -Oda . -L b o d ,ow 40 Of MO&M %W& r IMPEPRINVEPW CITRUS COUNTY (FL) CHRONICLE ASASTURDAY. NOVrErnrU24, 2007 "Copyrighted Material Syndicated Content NATURE COAST EMS Nov. 11 to 17 -* Nature Coast EMS responded to 374 medical emergencies and - 250 patients were transported to a hospital Out of the 374 medical emergency calls, based on the caller's infor- mation, 203 required an emergency response (with lights and siren) to S the scene. * Average emergency response time was 6 minutes and 48 seconds. Critical calls 6 Codes (cardiac arrests). -- : - S" 6 Cardiac alerts. 0 3 Stroke alerts. - Available from Commercial News Providers". S 1 :' 4 . .- ~ .* * S -- a* ** -* *-___ * 2 Trauma alerts (major or potentially major trauma injuries). Typos of calls . Care level provided for calls: 0 36 BLS (basic life support) m 206 ALS (advanced life support). M 8 ALS2 (critical advanced life support). 0 Average calls per day: 53.4. 0 Average transports per day" 35.7. REFUTE Continued from Page 1A Florida Animal Control Association in the chemical capture of animals. . She was shelter manager from July 7 until her appoint- ment as Animal Services direc- tor this past Monday. As shelter manager she supervised 18 employees, supervised adop- tions, the impounding of ani- mals and handling other administrative functions, her records said. From January 2005 to July 7, 2006, Watson was self- employed as a canine trainer in Citrus County. She worked with private citizens training their animals, according to her records. From October 2000 to January of 2005 she was man- ager/trainer at Pinetree Animal Hospital, Aberdeen, N.C. Before that, Watson was a teacher at Episcopal Day School in Southern Pines, I was told three months ago my job was in jeopardy because of what's going on with the volunteers. Richard Stover Citrus County fire chief. N.C., from August 1988 to May 2000. Petitt said she did a good job of operating Citrus County Animal Services for the pasts five months. Petitt said Stover did not rec- ommend Watson for the job of Animal Services director. He said Stover made no recom- mendation whatsoever. Petitt said the decision to hire Watson was made solely by a three-member committee con- sisting of himself, Thorpe and Public Safety Director Charles Poliseno. While Stover suggested the Chronicle contact Watson for comment, she declined an interview. A senior secretary suggested the Chronicle contact county public relations director Jessica Lambert and schedule an interview in about two weeks. Lambert is presently on vacation. Stover told the Chronicle he believes the allegations stem from problems he had with vol- unteer firefighters several months ago. He said some of the volunteers were apparently upset with him, but he has no idea who filed the anonymous complaint "I was told three months ago my job was in jeopardy because of what's going on with the volunteers," Stover said. Stover, 47, has received con- sistently high grades from his superiors for his job perform- ance as Citrus County fire chief. He had been Coral Springs Fire Department assistant chief from 2000 to 2005 and has been an instructor with Broward Community College since 1994, teaching fire ground tactics, fire prevention and other fire-related subjects. Stover was Broward County Fire Rescue Professional Standards captain from 1991- 2000, developing and imple- menting comprehensive train- ing and lesson plans, and coor- dinating mutual aid drills for more than 600 Broward County Fire Rescue employees, according to his personnel filed. He holds a bachelor's degree in professional management from Nova University, and ani associate of science in fire scI- ence from Broward Community College. "your Father knows what you need before you ask Him." Matthew 6:8 I a.41 -IND. 4 _ C I T R U S S. -. a * ~a a. * -a S. = C - -a. - 5.0 * - m - m .-win - a - * - -a S -- - a a a I -y "Copyrighted Material . * Syndicated Content : _Available from Commercial News Providers" .a 4011 a - -~ m S em. ob ""L ?~ - 4b.10041MD m ow0 0 mo .7 AIL m ~O .C G U N T Y "-- CHoONICL Florida's Best Community Newspaper Serving Floida's Best Commun To start your subscription: Call now for home delivery by our carriers: Citrus County: (352) 563-5655 Marion County: 1-888-85; or visit us on the Web at .htmi to subscribe. 13 wks.: $34.00* 6 mos.: $59.50* 1 year: $10 *Plus 6% Florida sales tax For home delivery by mall: In Florida: $59.00 for 13 weeks Elsewhere in U.S.: $69.00 for 1 To contact us regarding your service: 563-5655 Call for redelivery: 6 to 11 a.m. Monday through Frida 6:30 to 11 a.m. Saturday and Sundi: advertislng@chronlcleonline.col Newsroom: newsdesk@chronicleonline.com Where to find us: Meadow 4 office l Norvell BryantHwy Meadow Dunkenfield Blvd., C Ave. Cannondale Dr River, F A \ "s MeadowcTest N -'Blvd. I I z I Inverni Courthouse office TompkinsSt. C 3 square S106 VW 0 St., In S 4 L ity 2-2340 chronicle 05.00* 3 weeks y lay Friday inday Marion om 14451 10 m II crest crest rystal L 34429 N. Main verness, 450 3-3222 3-3232 3-3225 3-3240 3-3275 3-5655 3-3255 3-6363 4-2917 4-2908 4-2910 1-3225 1-5660 4-2930 1-5660 1-3261 3-0579 print. i.com - -, - m U ~W-do C. S a 9" M*j4 3ATURDAY, INUVhMIJI-Ii m I M-1- I-ll d * * %"W fp-.e - - * &mmft qlop-- 40- qw 9: dp SATURDAY, NOVEMBER 24, 2007 5A - Copyrighted Material. : -- Syndicated Content: doa- 0 AD - All. Available from Commercial News Providers"' -ano- - S- 41b. a a- - a. - ~.- a bReg a popular -emd a- ~- a. -w qw- - a S- 4a. o-mill: 0 00 4 .-o .ANN-a MD- -_ . go - a a -- .m a .- -- a - . q a a- - "Pa a-qD - - - aw dl- - - - - -- * w~- qbw -Mai 40--m a- - mm-am a. a-.- a- - ~ - a a. -~ - - - a. ofo dw-qft . ' MATTHEW BECK/Chronicle Shoppers come and go from the Crystal River Mall on Friday afternoon, a day regarded as the busiest shopping day of the year. HUNTERS Continued from Page 1A ing, she added. Most of the shoppers on the long line came in pairs to tag team the store or in groups of many members to scatter throughout the different cdptr.; ments. Long-time best friends as, well as husbands and wives formed inseparable teams of two. Homosassa residents Amanda and Justin Caster said the sales are worth the loss of sleep. "It's only once a year so why not?" Justin said. "It's the one time of year she gets up early," he joked about his wife. The new parents brought along their 3-month-old daugh- ter Riley, who slept through all the noisy chatter. Amanda and Justin talked about cashing in on learning toys for their daugh- ter Meanwhile, strangers on line conversed with each other and munched on doughnuts. Members of the Homosassa Church of God sold refresh- ments to raise money for their women's ministry. "We started at three this morning," President of the Women's Ministry Cherie Richey said. Meanwhile, Christmas carols seeped out of the speakers of the CD player on their snack table. Black Friday is the unofficial b,.t, traditional beginning pf the holiday shopping season. Many people had holiday checklists in their hands. Around 4:30 a.m., Wal-Mart employees handed out store maps and the groups of people prepared for the opening of the doors. Latecomers pushed their carts through the parking lot and decided to wait until the people on the line filtered in instead of walking to its end, which wrapped around the plaza. As soon as the early birds saw the latecomers, the suspicious looks and whispers surfaced. To Black Friday shoppers, door busters aren't only free give- aways, they're the sneaky peo- ple who creep in with their carts, cut the line at the last sec- ond and barrel through the doors. Citrus County Sheriff's Office deputies were on hand to make sure the cutters hopped on the caboose and everyone made safe entry into the building. When Wal-Mart employees unlocked the doors, around 200 deal-hungry holiday shoppers filtered into the store. Everyone made it in from the infants to the elderly, the veteran to the first- time shoppers. There were no signs of elbows; just stern looks from competitive cart pushers. 'The only way you get through this is if you are as tired as her (Stevens) and you're not sane," Davis said. SATURDAY St DEC s5pm TH- ROTAR9 CLUBS OF LNVERNESS, CRYSTAL RIVER. HOMCSASsA SPRINwa, CENTRAL ClTRUs & KINGS BAY the 2007 j - RAD47b V AUCTIDN Thousands of dollars in new merchandise & services to be auctioned to the highest bidder...which could be you. : .' "" Tune to 96.3 FM THE FOX OR WVKE Channel 16 Also Channel 47 SooSaturday, December 1 From 1 pm to 5 pm .TO 1ID CALL 352-795-4919 ...... For more info and to view all of the auction items on-line visit or contact Doug Lobel 352-400-0540 729168 VASC1 IM WOODWORKING ANTIQUE RESTORATION REFNISHING Custom Furniture and US 19 Homosassa 628-9010 Cabinetry Made to Order vasciminiwoodworking.com , 'N 7263B9 / 6(ET INVOLVED WITH YOUR COMMUNITY CENTER YOUR BOAT OR. BE A SPONSOR J// 1.: cembe'r 8th, 07 C NE0 c--t" ,i,"- -,,7, (_)u, /tti-.-/f/ f,,f ar/ire. ss't aA,,s-t . TO: Our friends and neighbors Cash prizes will be given FROM: The Homosassa Civic Club to personal crafts WHAT: A Christmas Boat Parade and free advertising will be given WHERE: The Homosassa River in the commercial category WHEN: From 6:00pm until 7:30pmThere will be a 1st, 2nd & 3rd prize WHY: To keep our tradition alive in both categories The Homosassa Civic Club & Community Businesses P.O. Box 370, Homosassa FL 34487 or email to gmcrael@tampabay.rr.com for more info **This y ear's Community Events Calendar includes the best month-to-month look at Citrus County's Community and Business Events. Also Available Online! Call, Fax or E-mail your 2008 Community Events Information! Fax: 563-3260 Phone: 563-3291 E-Mail: adsc@chronicleonline.com 1624 N. Meadowcrest Blvd. Crystal River, FL 34429 CTR~1fUS COUNTY (PLI) kCHRONICVLEf -~ Ol P-0- f-rpr c tnr w7- ,i'T )Cr,4.nw,,i, I qw o o o o 4 - om 6hristffl6fS CrIRus COUNTY (FL) CHRONIcrI) GA SATURDAY, NOVEMBER 24, 2007 W ow r - ,Copyrighted Material Syn te Content - Available from Commercial News Providers" - C -q - mm --. - Earl Daley Sr., 66 HOMOSASSA Earl E. Daley Sr, 66, died Wednesday, Nov. 21, 2007, at Hospice of Citrus County Hospice House in Lecanto. Born May 26, 1941, in Taunton, Mass., to John and Barbara Daley, he came to this area three months ago from Norton, Mass. He was a factory worker in the glass manufacturing indus- try Survivors include one son, Earl E. Daley Jr, of Taunton, Mass.; two daughters, Deborah LeClair of Homosassa and Donna DaRosa of Massachusetts; two brothers, Jack Daley of Taunton, Mass., and Bob Daley of East Freetown, Mass; five grand- children; two great-grand- daughters; and his companion, Rhoda Martin, of Norton, Mass. ; Interment will be at a later date in Mayflower Cemetery, Mass. In lieu of flowers, memo- rial are requested to Hospice of Citrus County, PO. Box 641270, Beverly Hills, FL 34464. Chas. E. Davis Funeral Home with Crematory, Inverness. Clement Perez, 83 HOMOSASSA Clement Perez, 83, Hom- osassa, died Thursday, Nov. 22, 2007, in Homosassa. Born Sept 24,1924, in Tampa to Mitchell Perez and Flora Leveque, he came here in 1996 from Tampa. He was a lith- ographer for the American Can Company - He was an Army Air Corps veteran, serv- ing during Korea. He was a member of Good Sam's Camping Club, volunteer and chief of Armdale Volunteer Fire Department, and former member of the Lions Club. He loved fishing, camping and auto racing. He was a former race car driver at the Inverness Speedway, and a private pilot. He was Catholic. He was preceded in death by a grandson, Scotty Perez, in 1992. Survivors include his wife of 58 years, Dorothy Perez of Homosassa; four sons, Daniel Perez and wife Kaethe of Bradenton, William Perez of Tampa, Robert Perez and wife Patty and John Perez, all of Homosassa; daughter, Debra Hawkins and husband Fred of Tampa; 10 grandchildren; and nine great-grandchildren. Hooper Funeral Homes, Homosassa Chapel. Roberta Rumplasch, 55 BEVERLY HILLS Roberta J. Rumplasch, 55, Beverly Hills, died Wednesday, Nov. 21, 2007, in Lecanto. A native of Worcester, Mass., she came here seven years ago from Upper Freehold Township, N.J. She was born to Robert and Jean (Palmer) Provost. She was a homemaker. She loved to travel. She was extremely talented and enjoyed painting and home decorating. She was Catholic. Survivors include her hus- band of 24 years, Robert M. Rumplasch of Beverly Hills; daughter, Jodi Rumplasch of Beverly Hills; mother, Jean Provost of Beverly Hills; sister, Pam Birkbeck and husband John of Worcester, Mass.; sis- ter- and brother-in-law, June and Jeff Pretty of Beverly Hills; nephews, Rick Scheidt of Beverly Hills and Rob Scheidt and wife Andrea of Land 0'. Lakes. Fero Funeral Home with Crematory, Beverly Hills. Janet Thoinpson, 57 ,INVERNESS Janet Louise Thompson, 57, Inverness, died Thursday, Nov. 22, 2007, at the Citrus County Hospice House in Lecanto. A native of St Petersburg, she was born July 29, 1950, to Walter and Ella Kelly. She was a waitress at Frank's Family Restaurant Janet and other local L.- restaurants. She was very artistic and enjoyed being a beautician for her family and friends. She was Baptist. Her father, Walter L. Kelly, preceded her in death Nov. 10, 2005. Survivors include four sons, Ronnie Speckner and wife .Patty, Dale Speckner and wife Missy, Darin Speckner and wife Kim and Raymond Thompson and wife Charlene, all of Inverness; mother, Ella Kelly of St. Petersburg; brother, Walter Kelly of Vero Beach; sis- ters, Sharon Vizandiou of St. Petersburg and Gloria Gill of Frisco, Texas; and six grand- children. Chas. E. Davis Funeral Home, Inverness. This notice is to inform our Bright House Networks' customers In Citrus County of upcoming changes to their cable programming lineup. WKMG, channel 19, may no longer be available on the channel lineup effective December 31, 2007 Bright House customers can still receive CBS programming on WTSP, channel 10 For more Information regarding Bright House Networks, please visit our website at mybrighthouse.com bright house Z ces available WORKSt areas Services available In most areas. Jopathan Shoemaker, 28 TAMPA Jonathan Lee- Shoemaker died Thursday, Nov. 22, 2007. Born Jan. 30, 1979, in Owensboro, Ky., he moved with his family to Crystal River in February 1979. He attended Crystal River Baptist Church and was bap- tized by L.B. Thomason at the church. .Jonathan~ sho emlaiket He graduated from Lecanto High School after receiving numerous honors in academ- ics, wrestling and playing foot- ball. He was All Conference wrestler for two years, the Elks Student of the Month, and voted the Homecoming King at LHS. He graduated from Florida State University while working for S.A.EFE. Connection, a stu- dent-operated rape prevention and designated-driver pro- gram, which provided security services for university students at night He was a Brother in Sigma Epsilon Fraternity and lived in the fraternity house as an adviser to younger members. After graduating from FSU with a bachelor's degree in marketing and finance, he began work in Tampa with life- long friends at Drain Doctors Inc., and as a mortgage broker. He currently was enrolled in an MBA program and was working for Scranton University recruiting students for college and universities. Survivors his mother, Sherry Cf. E. bau Funeral Home With Crematory CARL NOBLE Services: Middletown ,OH Baker-Stevens Funeral Home CHARLES BROWN Private CremationArrangements EARL DALY,Sr. Private CremationArrangements THOMAS BUNCH Mass:Sat.,10am OurLadyofFatima JANET THOMPSON Viewing: Mon., 12 Noon Service: Mon.,2pm -Chapel JULIA L. PADFIELD Private Cremation Arrangements 726-8323 73230. Ann Shoemaker; father, Wayne B. Shoemaker; brother, Barclay Shoemaker; sister-in- law, Haymeli Shoemaker; niece, Sophie Ann Shoemaker; and grandmothers Virginia Dare Chancellor and Avanell Curling. Also surviving are sev- eral aunts, uncles and cousins. Brown Funeral Home and Crematory, Lecanto. Click on- line.com to view archived local obituaries. Funeral ,". Clement Perez. The service of remembrance will be at 3 p.m. Sunday, Nov. 25, 2007, at the Homosassa Chapel of Hooper Funeral Home. Friends may call from 2 p.m. until the time of service Sunday at the Homosassa Chapel. Cremation will be under the direction of Hooper Crematory, Inverness. Those who wish may send memorial donations to Hospice of Citrus County, PO. Box 641270, Beverly Hills, FL 34464. Roberta J. Rumplasch. Funeral services will be at 3 p.m. Monday, Nov. 26, at Fero Funeral Home, 5955 N. Lecanto Highway, Beverly Hills, with services conducted by Deacon Jim Kennedy Cremation services are under the direction of Fero Funeral Home. Jonathan Lee Shoemaker. The family will receive friends from 9 until 11 a.m. Saturday, Dec. 1, 2007, at the Brown Funeral Home, Lecanto. A funeral service will began at 11 a.m. Saturday with the Rev L. B. Thomason officiating. Interment will follow at the Crystal River Memorial Park. 726916 11/24/06 al y ,a hei prenP amd," "oifi/d/oinies (/iOfifedw * - - -- C - Obituaries 7 BLINDS WE'LL MEET OR BEAT ANY COMPETITORS PRICE* The Savings Are Yours Because The Factory Is Ours! FAST DELIVERY PROFESSIONAL STAFF S71 HOURUND FACTORY SFREE o W 72-hourbliids corn In Horre Consult.ng InstallationL RA 2 3 ._Valances U4 ,i.. ^B ^^ j~ g - Q - -- qow -- lp .91b. - 4m With Medicare & Supplement If You Qualify Harmar Tub Lift S1,499 Swivel Seat Option :129 Chest harness & seat belts extra 11 lb. Folding Rolling Walker w/seat, basket & brakes Only$179 Aquatic Access Pool Lift Model #Igat-180 '3,612 Portable Battery Operated Concentrator Rental $250 per Week FREE Rental if you have oxygen service with us. Clearway Van Lift Requires Additionanl Parts $50-$185 Depending On Vehicle $4,760 JAZZY SELECT Air Sep QUIET LIFE 5 Does your oxygen concentrator make too much noise? C.-ll toi a ERF.r[ Iu, d vision r t riton it I o qi| et .u cannot hcai it rIn' Vertical Platform Lift Great for Manufactured Homes Stairlift Straight & Curved Starting At *2,999 The Backpacker $1,999 Crystal Residential Elevator Includes automatic operation on all buttons. Silver Egg crate ceiling with recessed lights, and more! 3 Wheel $1299 Reg. $1,499 4 Wheel $100 Extra FREE TRUNK LIFT with Deluxe Scooter purchase @ MSRP. Wall Hugger | Lift Chair Recliner On Sale 1899 SED Pride Jet III ower Wheelchair $1300 s600 Down 90 Days Same As Cash Threshold Ramps As Low' 166.00 Diabetic Socks Starting At '17.95 use Pride Jazzy 1100 Power Wheelchair 1400 .700 Down 90 Days Same As Cash Walker Tray Only 19.95 ,> -. ' Fashionable Plaid Transport Chair L. I Only 17 Pounds, Easily S Fits In Car $ 399 Pollywog Converts From Wheelchair To "_ Transport Chair 1525.00 Bruno Turny Easily Transfer Someone A From Vehicle To SWheelchair - Works With -- .- Both Older And Newer Vehicles. SALES SERVICE RENTALS DEMOS TRADE-INS HOURS: Mon-Fri: 9am-4:30pm Sat: 10am-1pm rsmobil ity.com CALL IN YOUR ORDER, SHOP FROM HOME! 3221 S. Florida Ave (Hwy. 41) Inverness Across from the airport 352-637-6088 11163 Spring Hill Drive Spring Hill East of Mariner Blvd. 352-666-3006 CITRUS COUNTY (FL) CHRONICLED SATURDAY, NOVEMBER 24, 2007 7A sc'00ter -rune UP A valu I GO*GO ELITE TRAVELER STOCKS SA SATURDAY, NOVEMBER 24, 2007 CITRUS COUNTY (FL) CHRONICLE THE ARKE IN EVIE NYE MX ASA Hw oREDTH MRETINRVIWSTOK F *OA NTEES MOST ACTIVE ($1 OR MORe) Name Vol (00) Last Chg Cihgrp 329613 31.70 +.97 FordM 238111 7.19 +.24 Pfizer 233984 22.98 +.63 GenElec 228294 37.67 +.50 CntwdFn 213435 9.65 +.23 GAINERS (52 OR MORE) Name Last Chg %Chg AgriaCpn 9.98 +2.01 +25.2 CBRERIt 7.37 +1.27 +20.8 CITGp 28.46 +4.62 +19.4 CircCity 6.51 +1.06 +19.4 E-Housen 21.73 +3.32 +18.0 LOSERS ($2 on MORE) Name Last Chg %Chg FredM pfN 38.30 -3.70 -8.8 Oil-Dri 19.24 -1.06 -5.2 Theragen 3.81 -.21 -5.2 MSDCX31 21.50 -1.04 -4.6 RBcp pfA 21.25 -1.00 -4.5 DIARY Advanced Declined Unchanged Total issues New Highs New Lows Volume 2,654 551 73 3,278 15 93 1,477,183,635 MOST ACTIVE ($1 OR MORE) Name Vol (00) Last Chg SPFnd 716949 29.27 +.68 SPDR 700583 144.13 +2.45 iShR2Knya 482669 75.06 +1.56 PrUShS&P 99869 56.99 -1.76 PrUShQQQ 70917 40.82 -1.06 GAINERS ($2 OR MORE)" Name Last Chg %Chg MSCC08n 3.40 +.50 +17.2 NeoStm n 2.30 +.30 +15.0 Metallic g 5.72 +.58 +11.3 Anooraq g 4.30 +.40 +10.3 GoldRsvg 5.23 +.48 +10.1 LOSERS ($2 OR MORE) Name Last Chg %Chg LazKap 8.05 -1.20 -13.0 AdvBatt n 3.78 -.42 -10.0 Aerocntry 16.98 -1.77 -9.4 TandyLthr 4.31 -.43 -9.1 FoxbyCorp 2.89 -.21 -6.8 DIARY Advanced Declined Unchanged Total issues New Highs New Lows Volume 4L3. 339 83 1,245 23 40 324,395,204 MOST ACTIVE ($1 OR MORe) Name Vol (00) Last Chg ETrade 917576 5.33 +1.07 PwShsQQQ440765 49.84 +.53 Microsoft 322269 34.11 -.12 Intel 246906 25.07 +.44 Cisco 216653 28.69 +.44 GAINERS ($2 OR MORE) Name Last Chg %Chg GPCBiot 5.10 +1.15 +29.2 WHIdpfB 15.28 +3.17 +26.2 Langerh 2.77 +.57 +26.0 ETrade 5.33 +1.07 +25.1 Ashwrth 3.48 +.67 +23.8 LOSERS ($2 OR MORE) Name Last Chg %Chg CityTIcm 5.64 -1.24 -18.0 SoNatBcVa 10.17 -1.98 -16.3 Spreadtrn 10.74 -1.99 -15.6 IntestCorp 2.23 -.35 -13.6 SptChalA 5.41 -,69 -11.3 DIARY Advanced Declined Unchanged Total issues New Highs New Lows Volume 2,144 687 111 2,942 11 125 762,730,228 Here are the 825 most active stocks on the New York Stock Exchange, 765 most active on the Nasdaq National Market and 116 most active on the American Stock Exchange. Stocks in bold are wonn al ai Ia i.5 and cnangea 5 percent or nre in pric Ufderlning lor 5'0 mosl acinve on NYSE and Nasdpq rna 25 mosl acrt.e oun ,'rnex TDale show namre ipri.e and net charge. 83an onre ic two ddAtnr.na lielu, ro.iaed inr.)ugn tre ceek as lollowz Div: Cu'enl annual dai.iaen, rate paid on ic:lock D sed on laisl quarterly or se.rriiarnual declaration unless oirerwise loornoied Name: Slocks appear alphabetically by, ire company's lull name inot .is atbreaiicri Names consisting of iritials appear at ine beginning ol eacn letters list Last: Prce stock'. *3E reading al when e xr:nnge closed. fi-:r the da', Chg: Loss or gain for the day No change indicaiea by U, Stock Footnotes ...7 -Pu 4ram -,rcar~. 9 .m 13: ,- r, .r.ipn wadkired A r-.nrp tu. ,, ~ ~ ~ '.ursga.ay .3 lJ ..i. . A -1-1 -L 0 ;I. I II,, i-.. U. 03.~4,jy i10 .i,.icd j I .I14J 98 .1: p.C."i ..C3'.3 6a ol r n inn,1:.rbrv -iru i.Porn N 'i,,+ c4.451 +1.1 rplaoi ,irmyl CuIi.dn T.i f ,' .1 3r..+u im- ,~ ir, in.,. a,).1.Tre ar.,. 10A pi oais i n'l,nI.-f r- 0 f. tr'q ,d=RI. 5tM E%1 .iPnpc-,pd nix r P pp HC.iacrr-.5.j3 prce q Cw-3 r=,:i.5,+ --wai w,.j r.cPE calc.lPt Cnr3.dN1W r.-.1 T i i c ToO, p-. CI "i ..E. a ix rj: OP.: IlupO r,i- Or. c..,l, *EI 'U . Aendti )Tul Ci.X' Wi. 're Il'i.-KWT,',I C.ri ine* 1 5I3.'), W r.. I ". k 31.Alb 53i ur. InT . .C_)rr84riacd ,.'.l-, ,r, PhSprS r IcuiaA App,66 In, no .i: ,ar,,, Dividend Foo~tnotes. i CEM3 adi~jid.'fllI CCI,d N11 a[i..)rjtI bip SAorialr-31,. p.Tux 4:0 -: .L'pWdai.5 lnf(imj1d r1A.5. A.npainirud 5, ~ Cpaid in lm1,,1 d 1i,,I Cur ar -r-i anrl sia.ln.:h .,,0-7.6366-Ad tq T ?-c? ld., x ucr P ,. cx .13 pail ..l rrren, 10 53i,.ll i' I 0=,~~ 1, I,13raIn,-.- ITT., I~ _____ 1,0rCFA 1iLV I 0.n 1 d0 ,i,~ L~s~ ,~ia i ,, ,,r11 ,E-6-1 ,-1 am .InN7 E16CI TUmcd S -303(031-M I iCI~r 0(01.1 3r~oo~n:rnc I 031.31'li,.15rd Irsh rP O'-roT Irra'3.-IJr. m -.6%,a. .P ,,N~i,.."r'IinThe Associated Press. Sales figures are unofficial. YTD Div YId PE Last Chg %Chg Name +.18 +5.3 +1.01 -19.2 +.67 -25.3 +.97 -43.1 +.34 -5.0 +.51 -10.3 +1.25 +15.2 +.05 +25.9 +.24 -4.3 +.50 +1.2 +.77 -11.6 +.90 -27.9 +.44 +23.8 +1.83 +7.1 +.16 -28.5 +.39 +30.2 -.12 +14.2 Name Dow Jones Industrials Dow Jones Transportation Dow Jones Utilities NYSE Composite Amex Index Nasdaq Composite S&P 500 Russell 2000 DJ Wilshire 5000 AT&T Inc 1.42 BkofAm 2.56 CapCtyBk .70 Citigrp 2.16 Disney .31 EKodak .50 ExxonMbl 1.40 FPL Grp 1.64 FordM GenElec 1.12 GnMotr 1.00 HomeDp .90 Intel .51 IBM 1.60 Lowes .32 McDnlds 1.50 Microsoft .44 52-Week High Low 14,198.10 5,487.05 537.12 10,387.17 2,562.20 2,861.51 1,576.09 856.48 15,938.99 11,939.61 4,346.39 443.78 8,802.62 1,116.16 2,331.57 1,363.98 736.00 13,769.16 Motorola .20 Penney .80 ProgrssEn 2.44 RegionsFn1.52 SearsHldgs ... SprintNex .10 TimeWarn .25 UniFirst .15 VerizonCml.72 Wachovia 2.56 WalMart .88 Walgrn .38 YTD) Div YId PE Last Chg %Chg 49 15.71 +.38 -23.1 8 41.30 +1.23 -46.6 A 19 48.57 +.17 -1.0 11 24.22 +.70 -354 12 112.58 +2.26 -33.9 ... 15.08 +.23 -20.2 13 16.72 +.17 -23.i 16 37.93 +1.56 -1.2 A 23 42.64 +.69 +14.5 9 41.05 +2.23 -27.0 15 45.73 +.87 -1.i 20 39.73 +.33 -13.4 Net % YTD 52-w1 Last, Chg Chg % Chg % Chg 12,980.88 4,451.07 523.75 9,582.98 2,384.22 2,596.60 1,440.70 755.03 14,518.19 +181.84 +84.47 +1.88 +177.76 +46.25 +34.45 +23.93 +14.73 +229.90 +4.15 -2.39 +14.66 +4.86 +15.94 +7.51 +1.58 -4.14 +1.83 +5.71 A -8.14' +16.24A +7.27' +17.04) +5.54r +2.84A -4.701 +2.70 NEYOK TOKXCANG Div Name Last Chg .20e ABB Ltd 27.15 +.31 1.08 ACE Ltd 58.78 +.83 AESCorp 21.16 +.32 .82 AFLAC 61.82 +1.98 1.64 AGLRes 36.14 -.26 .., AKSteel 42.67 +1.09 AMR 20.65 +.64 2.30e ASA Ltd 74.74 +2.64 1.42 AT&TInc 37.63 +18 .06r AUOptron 19.36 +.31 1.42e AXA 39.34 +1.31 1.30 AbtLab 55.49 +.76 .70 AberFic 76.95 +2.18 ... AbiBown 15.11 +.12 .421 Aeoenture 35.16 +.60 1.03e AdamsEx 13.29 +.17 .. AdvMOpt d24.08 -.09 AMD 10.78 -05 .83e Aegon 17.54 +.58 .. Aeropstls 26.48 +1.34 .04 Aetna 54.14 +.34 AliCmpSv 41.43 +1.04 .. Agilent 36.91 +.21 .12f Agnicog 52.22 +1.44 .11 Agriumg 53.40 +2.09 1.52 AirProd 93.43 +1.01 ... AirTran 8.53 +.21 .22e AlcatelLuc 7.56 +.19 .68 Alcoa 35.15 -.02 124 AlescoFnd 332 +23 .72f AlegTch 93.28 +2.76 .20 Alergans 62.61 +1.15 1.64 Allete 42.39 +36 1.02a AlliBGIbHi 12.44 +.06 .60 AliBInco 7.99 +.01 4.75e AlliBem 76.88 +4.10 .51e Allianz 20.26 +27 .. AldWaste 11.02 +22 1.52 Alstate 50.09 +.87 .. AlphaNRs 25.72 +.75 .. Alpharma 19.69 +.65 3.00f Altrias 72.97 +.56 .87e AlumChina 51.49 +.63 .84 AmbacF 25.55 +1.41 2.54 Ameren 53.59 +.06 2.22e AMoviL 58.02 +.26 .40 AEagleOs 22.05 +.79 1.641f AEP 46.45 -.14 .76f AmExp 55.63 +1.29 .40 AFndGp s 28.62 +.52 .76 AFndRT 7.70 +.02 .80 AmlntGolf 5303 +170 ... AmOlBio 11.35 +.06 .64 AmStands 33.99 +1.01 .90a AmSIP3 10.22 +.14 .. AmTower 44.13 +53 Ameriodt 10.41 +.43 2.44a Amerigas 35.55 -.05 .60 Ameriprise 57.98 +2.25 -30 AmeriBrg 43.89 +.37 .36 Anadarko 57.42 +1.53 .72 AnalogDev 31.16 +.12 .52e AnglogIdA 45.72+3.05 1.32 Anheusr 50.19 +.95 .. AnnTaylr 32.20 +.97 .89e Annaly 16.81 +.31 1.20 AnthCap 7.60 +.08 .60 AonCorp 48.15 +.94 .60 Apache 101.60 +2.61 .50 AquaAm 21.84 +.17 .. Aquila 4.00 +.06 1.30 ArcelorMit 71.45 +1.71 .28 ArchCoal 35.72 +.65 .46 ArchDan 35.59 +.46 .40 ArvMrit 10.40 +.24 1.10 Ashland d48.15 -.11 .68 AsdEstat 11.99 +.47 1.75e AstraZen 46.57 +334 1.30f ATMOS 26.58 +.11 .. AutoNatn 16.37 +.50 1.16f AutoData 45.73 +.55 ... Avnet 32.99. -.16 .74 Avon 41.17 +.42 1.84 BB&TCp 34.00 +1.20 .94e BHP BilLt 72.82 +2.97 .20 BJSvcs 25.12 +.49 BJsWhIs 34.40 +48 .. BMCSft 32.49 +.69 2.54e BPPLC 71.31 +.20 2.48 BRT 15.15 -.46 BWAYn 11.24 +1.71 .52 BakrHu 82.31 +2.04 .40 BallCp 45.47 +1.10 .17i BcBradess 28.90 +.09 .50e Bncoltaus 23.45 -.09 2.56 BkofAm 43.15 +1.01 ,96 BkNYMel 45.41 +.85 2.57e Barclay 42.06 +1.60 .60 BamesNob 37.06 +.71 .30 BanickG 43.10 +1.36 .871 Baxter 57.89 +1.38 2.16 BaytexEg 18.75 +.35 1.28 BearSt 94.23 +2.95 ... BeadngPIIf 3.88 +.18 .40 BeazrHmlf 851 +.51 1.141 BecDck 83,52 +1.21 .50 Belo 16.23 +.20 .20 Berey 29.03 +.22 .52 BestBuy 48.02 +.42 SBgLots 20.87 +.47 1.401 BkHlIlsCp 41.61 +.06 ,45 BkFL08 14.60 .. Backstnn 21.16 +.14 .57 BidiHR 19.36 +.36 ... BlEocfkbsr 3.84 +.08 .59e BlueChp 5.68 -.07 1.40 Boeing 89.54 +2.13 .44 Borders 11.80 +.25 BostBeer 31.43 -.39 2.72a BostProp 93.25 +2.21 BostonSci 12.51 +.09 .36 Brinkers 23.84 +.73 1.12 BrMySo 28.08 +.62 .60b Brunswick 19.26 +.33 .68 BungeLt 106.02 -2.63 1.28 BurINSF 82.45 +.97 .16 CA Inc 24.65 +.10 ... CBRElls 19.80+1.42 .78e CBRERt 7.37 +1.27 1.00 CBSB 26.58 +.68 2.16 CHEngy 4523 +.73 .04. CIGNAs 49.03 +.28 1.00 CrTGp 28.46 +4.62 .20 CMSEng 17.17 +.06 .56 CSS Inds 38.05 +1.44 .60 CSX 41.31 +.96 .24 CVSCare 41.94 +112 .. Cabelas 16.35 +.68 .. CablvsnNY 26.35 +34 .12 CabotOs 35.09 +1.09 .28 CallGolf 16.29 +.28 .20 Camecogs 40.95 +1.09 .. Cameron 94.23 +2.43 .88 CampSp 35.06 +.16 .84 CdnNRyg 46.68 +.47 .34 CdnNRsg 72.79 +.46 2.28 Caneticg 14.36 +.27 .11 CapOne 52.07 +2.26 2.40 CapilSrce 15.01 +.48 1.26 CapMpfB 12.75 -.03 .48 CardniHith 56.98 +.51 ... CarMaxs 20.65 1.601 Carnival 42.73 +.39 1.44 Caterpillar 68.63 +.69 .16 Celanese 36.92 +1.25 .75e Camex 25.91 +.45 123i Cemigpfs 19.77 -.09 .68 CenterPnt 17.49 +.03 .16 Centex 19.96 +.74 .26 CntryTel 42.42 +1.11 .. ChmpE 8.67 +.41 .01 Checkpnt 24.94 +1.05 .20 Chemtura 7.11 -.02 .27 ChesEng 38.13 +.84 2.32 Chevron 86.67 +.92 .. Chicos 10.40 +.10 .27i Chinatfes 77.53 +2.16 1.12e ChinaMble 84.05 +2.78 1.16 Chubb 52.17 +.57 1.09r ChungTel 18.88 +1.15 ... CinBe 5.04 +.05 .16 CirCity 6.51 +1.06 .72a CitadlBr 227 +.04 2.16 Cifarp 31.70 +.97 1.00 CitzComm 12.64 +.14 .75 ClearChan 33.68 +.30 .50 ClevCtls 80.50 +4.55 1.60 Clorox 65.17 -.07 .. Coach 35.91 +1.08 .24 CocaCE 24.81 +.10 1.36 CocaCI 62.30 +.05 .. Coeur 4.22 +.19 1.44 ColgPal 79.00 +.97 ColictvBrd 16.48 +.42 .75 ColBgp 15.96 +.27 2.56 Comerica 43.09 +1.24 .52 CmcBNJ 35.96 +1.00 .36 CmdMtis 29.67 +.45 .. ComScop 38.03 -.22 .. CmlyHIt 30.75 +.41 .34e CVRDs 32.56 +.13 .34e CVRDpfs 27.55 +.39 ... CompSdci 51.32 +.19 .40 Con-Way 39.04 +.90 .761 CdrAgra 23.82 -.05 1.64 ConocPhil 7912 +1.30 .401 ConsolEngy 54.95 +1.51 2.32 ConEd 48.45 +.45 ConstellA 23.51 +.86 1.74 ConstellEn 99.53 +.48 ... CAirB 27.60 +.54 Cnvrgys 17.05 +.57 .84 Coopers 47.53 +.06 .20 Comins 23.03 +.83 ConctCps 28.42 +.39 .60 CntwdFn 9.65 +23 CoventyH 56.58 .16p Covidienn 38.35 +.25 224e CredSuiss 57.17 +.58 .. CwnCstle 41.13 +.43 1.00 Cummins s 106.32 -1.11 .. CypSem 29.92 +.50 .78 DNPSelct 10.60 -.03 1.04 DPL 29.55 +.10 .60 ODRHortlon 11.38 +.42 2.12 DTE 48.76 +.01 2.00e Daimler 97.19 +2.05 .12 Danaher 81.15 +.65 .72 Darden 39.40 +.47 S2.00f Deere 156.64 4.58 DeltaAirn 18.15 +24 2.64 DevDv 43.10 +.66 .56 DevonE 85.34 +1.31 .50a DiaOffs 114.58 +2.03 2.05e DianaShip 28.80 +.88 ... DicksSptg 32.01 +1.11 1.24f DigitalRIt 37.75 +.75 .16 Dillards 18.30 +1.00 ... DirecTV 24.17 +.57 .06p Discover n 16.68 +.43 .31f Disney 31.84 +.34 1.58f DomRess 45.71 -.51 Domtarglf 7.13 +.15 1.04 DonlleyRR 36.11 +.16 1.68 DowChm 40.15 +.88 1.64f DuPont 44.69 +.34 .88 DukeEgys 19.91 +.08 1.92 DukeRlty 26.36 +.25 .. Dynegy 7.36 -.07 ... E-Housen 21.73 +3.32 EMCC 18.45 +.20 .36 EOG Res 83.64+1.19 1.76 EastChm 60.41 +.56 .50 EKodak 23.15 +.51 1.90 EVTxMGon 15.90 +.32 1.16 Edisonint 54.53 +.17 .16 BPasoCp 16.18 +.23 .. Ban 22.57 +.04 .20 EDS 20.53 +.47 1.20f EmersnEs 54.68 +1.30 1.28 EmpDist 23.84 +.05 3.80f EnbrEPtrs 52.70 +.10 .80 EnCana 67.93 +.48 2.61e Endesa 53.89 -.07 ... EngyPrt 12.98 -.09 .57e Enersis 17.03 +.05 ... EnPro 32.44 +.86 .10 ENSCO 54.29 +1.38 3.00 Entergy 115.13 -.18 1.85 EqtyRsd 36.92 +1.09 .55f EsteeLdr 41.95 -.28 1.76 Exelon 8064 +.34 ... ExprsJet 2.68 +.17 1.40 ExxonMbl 88.29 +1.25 1.64 FPLGrp 68.49 +.05 ... FairchldS 15.61 +.32 .46 FamilyDIr 22.82 +.62 2.00a FannIeMae 32.20 +2.97 FedExCp FedSignl Ferrellgs Fefro RdlNRn FstAmCp FsFiRnFd FstHodzon FtTrEnEq FstFed FirstEngy FEMSA s FoolLockr FordM ForestLab Fortress n FortuneBr FdtnCoal 93.60 +1.89 11.87 +.41 22.05 +.16 20.72 +.35 14.61 +.21 31.49 +.54 11.71 +.23 21.59 +.79 15.61 +.18 32.15 +.68 67.87 -.31 30.32 +.36 12.76 -.06 7.19 +.24 36.77 +1.33 16.42 +.36 77.76 +.44 42.37 +.60 2.00 FredMac 26.47 +.47 1.25 FMCG 93.16 +3.10 .12j FremontGn 2.57 +.24 .20 FriedBR 3.00 +.04 10.99r Frontline 46.00 +3.62 .96 GATX 35.76 +.96 .80a GabelliET 9.13 +.16 .. GabHIthW 6.76 +.13 .72 GabUil 9.07 ... GameStops 50.15 +.83 1.60 Gannett 37.72 +.69 .32 Gap 18.89 -.07 .. Genentch 74.82 +.66 1.16 GenDynam 88.50 +1.71 1.12 GenBec 37.67 +50 2.00f GnGrthPrp 46.59 +1.13 1.56 GenMills 57.10 +.77 1.00 GnMotr 27.16 +77 .401 Genworth 24.60 +.81 1.50 GaPw8-44 24.42 +.18 .68e Gerdau 26.88 -.09 Giantlntn 11.50 +.03 2.06e GlaxoSKIn 50.79 +2.92 .90 GlobalSFe 85.92 +3.21 .77e GoILInhas 26.02 +1.26 .26e GoldFLtd 17.62 +.54 .18 Goldcrpg 34.66 +1.80 1.40 GoldmanS 216.48 +6.98 .901 Goodrich 69.96 +1.48 ... Goodyear 26.58 +.50 .521 GranileC 34.88 +.29 GrantPrde 46.98 +1.00 1.66 GtPlainEn 30.07 -.12 ... Griffon 13.20 +.23 .66e GpTelevisa 23.00 +.10 .52e GuangRy 34.55 +.94 .321 Guesss 42.76 +2.28 1.78 HCPInc 31.95 +.68 .84 HRPTPrp 8.55 +.22 4.35e HSBC 84.74 +2.12 .36 Halibrtn 36.81 +.42 .91e HanJS 12.91 +.01 .58a HanRDv2 9.93 +.05 ... Hanesbrds 28.79 +.24 .401 Hanoverins 42.60 +.03 1.201 HarleyD 46.53 +.08 ... HarmonyG 10.31 +.57 1.60 HarrahE 87.14 +.47 2:121 HartfdFn 90.78 +3.14 .64 Hasbro 27.01 +.13 1.24 HawaiiEl 23.31 '+.28 2.64 HItCrREIT 43.35 +.76 10.00e HItMgts 6.37 +.05 1.54 HIlhcrRlty 24.15 +.36 HedaM 12.10 -.14 1.52 Heinz 45.73 +.78 .37e HellnTel 18.69 -.02 .20 Hercules 18.03 +.42 .40 Hess 70.26 +1.67. .32 HewlettP 49.17 +.29 1.70 HighwdPrp 30.78 +.16 .90 HomeDp 2895 +90 1.00 HonwillnU 54.67 +.76 3.08f HospPT 36.22 +.58 .80a HostHots 18.31 +.37 .. HovnanE 7.25 +.13 Humana 71.19 +.99 .07 IAMGIdg 9.00 +.10 .50e ICICI Bk 58.76 +2.66 1.90e ING 37.42 +1.01 .87e iShBrazil 77.44 +.79 .32e IShHK 20.82 +.56 .10e iShJapan 13.64 +.30 .33e iShKor 62.40 +.79 .20e iShMalasia 12.32 +.20 .31e iShSing 13.69 +.30 .31e iShTaiwan 15.50 +.36 1.31e IShChln25 172.29+8.78 2.59e iShSPS00 144.37 +2.51 1.58e iShEmMkt 147.38 +423 .85e iShSPGth 68.27 +.81 1.53e iShEAFE 81.10 +1.99 3.20e iShREst 67.82 +1.27 .25e iShDJBkr 48.85 +1.35 .49e iShSPSmI 64.70 +1.40 3.48f iStar 27.00 +.39 1.16 ITCHold, 48.15 t.56 1.20 idacorp 35.27 -.11 1.37 Idearc 20.33 +.07 .16. IkonOffSol 12.67 +.29 1.12 ITW 54.62 +.65 .64 Imaion 20.17 +.52 1.00m Indymac 9.01 +.20 ... Infineon 11.39 +.10 .72 IngerRd 48.70 +.66 IngrmM 19.73 +.33 2.64 IntegrysE 51,19 +.52 ... IntcnflEx 168.00 +2.80 1.60 IBM 104.05 +1.83 .56f IntlGame 41.74 +.72 1.00 IntPap 32.89 +.52 ... Interpublic 9.02 +.06 .. IronMtns 34.96 +.44 ... JCrew 38.20 +2.06 1.52 JPMoraCh 41.95 +1.27 .28 Jabil 17.35 +.15 .04 JanusCap 30.39 +1.00 .50 Jeffenes 23.58 +.69 1.66 JohnJn 66.88 +.16 .521 JohnsnCHts 36.61 +.55 ..56 JonesApp 19.29 +.25 1.00 KBHome 21.69 +.72 ... KTCorp u27.67 +2.95 .60 Kaydon 49.99 +.54 1.24 Kellogg 52.96 +.08 .64 Kellwood 16.54 +1.41 1.46 Keycorp 25.05 +.84 2.12 KimbClk 68.25 +.69 1.60 Kimco 37.82 +1.19 3.521 KindME 49.54 +.01 .. KingPhrm 10.29 +.27 .Kinrossg 18.62 +.89 .. Kohls 48.72 +1.13 ... KoreaElc 20.37 +.62 1.081 Kraft 33.44 +.63 KrispKrm 2.64 +.06 .30 Kroger 28.00 -.23 1.71e LANAIrs 13.97 +.87 ... LDKSoln 30.86 +.68 LG Philips 27.23 +1.13 .06j LLERy 1.77 +.06 .. LSICorp 5.78 +.09 1.50 LTCPrp 22.57 +.57 .48 LaZBoy d6.42 -.20 .. LabCp 69.59 +1.06 .LaBmch 4.85 +230 1.46 Ladede 34.68 +.49 ... LVSands 111.30 +.85 .96 LeggMason 70.04 +1.27 1.001 LeggPlat 20.25 +.29 .60 LehmanBr 60.86 +3.11 .64 LennarA 15.59 +.62 Lexmark 36.37 +.64 .61e LbIyASG 5.33 +.01 1.70 UllyEli 50.79 +1.70 .60 Umited 18.79 +.84 1.66f UncNat 59.76 +2.21 .28 Undsay 48.54 +1.17 2.78e UoydTSB 38.66 +1.41 1.68f LockhdM 111.01 +2.73 .25 Loews 45.31 +.92 .60 LaPac d14.46 .32 Lowes 2227 +16 .60j Luminentl 1.16 +.08 .. LundinMs 9.98 +58 .90 Lyondell 47.30 +.30 2.80 M&T Bk 89.97 +2.60 1.36 MBIA 34.14 +1.96 .58 MDURes 26.64 +.19 .. MEMC 67.53 +1.93 .40f MFAMtg 7.99 +.08 .48 MCR 8.31 .10m MGIC 20.63 +1.11 ... MGMMir '8.46 +.21 .52 Macys 30,03 +1.53 Madeco 12.61 +.29 1.44 Magnalg 87.22 +1.68 .08 Manitows 39.40 +1.07 .68 ManorCare 61.26 -1.18 .96f Manulifgs 40.06 +.54 .96 Marathons 56.37 +.10 .30 MarlntA 35.11 +.56 .76 MarshM 24.92 +.24 ... Marshllsn 30.72 +1.15 MStewrt 1022 +.33 1.38 MartMM 121.91 +1.71 .92 Masco 21.65 +.71 201 MasseyEn 31.11 +1.32 .60 MasterCrd 181.10 +.18 ... MatertalScI 8.37 +.57 .75f Mattel 20.47 +.51 .72 McClatchy 14.26 -.27 .. McDermls 47.25 +.32 1.501 McDnlds 57.72 +.39 .82 McGrwH d46.18 +.53 .24 McKesson u67.00 +.89 .92 MeadWvoo 30.83 +.65 Mechel 77.850 +3.42 .. MedcolHth 97.66 +1.72 .50 Medtnic 48.32 +.03 1.52 Merck 57.66 +114 1.40 MenillLyn 5354+173 .74f MetUfe 61.77 +.67 .. MetroPCS n 15.55 +.31 .. MicronT 8.37 +.29 2.42 MidAApt 48.90 +.80 .. Midas 16.86 -.35 .. Millipore 81.13 +1.63 .15e MindrayM 37.00 +.05 Mirant 37.01 +.44 MitsuUFJ 8.66 +.40 ... MobileTel 84.77 +25 .70f Monsanto 90.41 +2.68 .32 Moodys 3724 +1.45 1.08b MorgStan 4989 +138 6.84e MSEmMkt 30.67 +.71 Mosaiclf 61.00 +2.07 .20 Motorola d1571 +.38 .18j Mylan 13.61 +.32 NCR Cp s 22.93 -.01 .. NRGEgys 39.14 -.05 1.00 NYSE Eur 82.72 +3.01 Nabors 27.51 +.49 1.64 NatCity 19.55 +.86 1.24 NatFuGas 47.02 +22 2.98e NatGrid 82.94 +2.85 ... NOilVarcs 68.06 +1.90 .24f NatSemi 22.36 +.35 1.64 NatwHP 29.06 +.31 .27 Navtios 13.17 +.15 Navteq 76.24 -.09 .21a NewAm 1.76 +.03 1.60f NJRscs 49.86 +.04 NY&Co 7.15 +.20 1.00 NYCmtyB 17.38 +.39 .92 NYTimes 17.26 +.12 .84 NewellRub 28.70 +.49 .40 NewmtM 52.09 +1.53 ... NwpkRsIf 5.50 +.15 .12 NewsCpA 20.40 +26 .10 NewsCpB 21.20 +.24 .10 Nexengs 29.39 +.08 .92 NiSource 18.31 +.31 1.86 Nioor 41.66 +.43 .921 NikeBs 63.75 '+.87 ... 99 Cents 8.37 +.24 ....NoahEdn 6.87 -.18 .16 NobleCps 51.08 +1.57 .48 NobleEn 74.09 +1.42 .56e NokiaCp 38.66 +.95 4.73e NordicAm 32.90 +2.88 .54 Nordstrm 35.72 +.77 1.04 NorlkSo 49.55 +.88 Nortellfrs 17.07 +.12 .80 NoestUt 31.79 -.23 1.48 NorthropG 80.07 +1.85 1.44 NStarRIt 8.91 +.42 ... NwstAirn 17.81 +.25 1.10e Novartis 55.98 +3.49 ... NovaStrrs 1.24 -.02 1.30 NSTAR 34.99 -.21 .44a Nucor 53.23 +1.21 IAME I ANS OC XC A GEu Div Name Last Chg .42 AbdAsPac 6.00 -.01 .47f AdmRsc 25.13 -.77 .. AdvBattn d3.78 -.42 Adventx d.47 -05 ApexSilv 17.50 +.04 .. ApolloGg .47 -.01 Aurizong 4.08 +.15 AuroraOG 1.44 +.10 .. Axesslel d.25 -.02 .. BPZResn 10.72 +.64 .. BrchMtg .84 +.24 .. CanArgoh .48 +.01 .01 CFCdag 10.90 +.18 .48f CommSys 11.02 +.16 ... CovadCm .85 +.01 ... Crystallxo 2.80 +.18 4.34e CurEuronyal48.57 -.27 2.61e DJIADiam 129.42 +1.63 .74 EVInMu2 13.51 -.05 ...EldorGidg 6.06 +.48 1.15e BlswthFd 8.19 +.08 ... Emeritus 24.30 +.27 .45 RaPU8 11.81 -.03 ... GamGldg 7.32 +.02 ... GascoEngy 1.90 -.01 ... GenMoly 10.40 +.50 ... GoldRsvg 523 +.48 ... GoldStrg 334 +12 ... GrtBasGg 3.12 +.15 ... GreyWo 6 5.22 +.10 ... ISCOInl .25 +.01 1.10e iSAstanya 30.56 +.37 .28e iSCannya 31.85 +.64 .51e iShGernya 34.82 +.45 .46e iShMexnya 54.65 +.67 ... iShSilver 146.63 +3.18 1.32e iShSP100 cbo67.69+1.14 4.10e iSh20Tnyau93.73 +.28 3.47e iShl-3Tnya82.40 -.09 .60e iSRMCG nya109.88+1.68 ... iShNqBio 80.47 +1.05 3.07e iShC&SRI nya82.52 +1.20 1.95e iSR1KVnya 79.33 +1.31 .54e iSRIKGnya 59.65 +.95 1.42e iSR2KVnya 71.05 +1.60 .46e iSR2KGnya 8141 +164 .84e iShR2Knya 7506 +156 .. InSiteVis 1.14 +.08 ... IntellgSys 3.25 -.10 ... Invemss 58.89 +1.43 ... KodiakOg 2.44 -.14 .12e MktVGold 48.85 +2.03 ... Merrimac 9.64 +.06 ... Metalico 9.46 -.30 ... Metallic g 5.72 +.58 ... MetroHith 2.22 +.01 ... Miramar 6.57 +.08 ... Nevsung 2.21 +.06 ... NDynMng 11.52 +.30 NthgMg 3.23 +.14 ... NovaGIdg 20.24 +1.00 1.37e OilSvHT 187.39 +5.49 ... Oilsandsg 5.06 +.03 ... On2Tech .94 ... Orezonea 120 -02 ... PacRim 1.27 +.13 ... Palatin .30 +.02 2.21e PhmHTr 79.67 +1.17 ... PwshDB 31.64 +.29 ... PS Agrin 30.74 +.23 .24e PwShChina 31.11 +.94 .04e PwSCInEn 22.49 +.57 .15e PwSWlr 21.06 +.36 1.94e PrUShS&P 56.99 -1.76 1.98e PrUIShDow 53.41 -1.29 2.67e PrUShMC 59.13 -1.22 5.43e ProUltQQQ 9916 +236 177e PrUShQQQ 4082 -106 4.56e ProUltSP 83.60 +2.42 ... PrUShCh25 85.66 -5.59 1.24e PrUShREn111.20 -2.95 .62e PrUShOG n 42.00 -.97 1.21e PrUShFnn 103.98 -5.29 .85e ProUtFnn 42.00 +2.20 .96e ProUSR2Kn73.82 -3.54 ... Questcor 4.77 +.11 5.71r RegBkHT 133.66 +3.74 ... Rentech 2.16 -.05 1.16e RetailHT 94.25 +185 .28e SpdrHome 18.30 +.50 2.29e SpdrKbwBk 45.65 +1.48 .98e SpdrKbwlns 52.17 +.98 1.69e SpdrTotMkt 103.62 +1.50 1.52e SpdrKbwRB38.72 +1.05 .14e SodrRel 3471 +.55 .44r SemiHTr 31.79 +.36 2.74e SPDR 144.13 +2.45 1.99e SPMid 151.74 +2.18 .81e SPMatds 3952 +.58 .55e SPHihC 35.18 +.56 .58e SPCnSt 28.54 +.29 .35e SPConsum 33.55 +.58 .77e SPEngy 7405 +1.90 .88e SPFndc 2927 +M68 .66e SPInds 38.17 +.50 .22e SPTech 25.78 +.25 1.11e SPUtil 41.92 -.04 ... TanzRyg 6.15 +.26 ... Taseko 4.88 +.17 ... US Gold n 4.01 +.13 US NGFd n 39.45 +.79 ... USOilFd 76.76 +.32 .60e VangGrth 62.80 +.73 2.53e VangTSM 142.60+2.10 1.34e VangEmg 103.26 +1.85 ... Westmind d16.01 -.58 I NA iSD AQATIO M ARKET I Div Name Last Chg .. ACMoorelf 16.35 -.46 .. ADCTelr 15.81 +.19 .. APP Phm 11.49 +.25 .. ASMLHId 33.31 +.06 .. ATSMed 1.70 +.01 Aastlrom .90 -.01 .. Abaxis 32.06 +.19 .. AcadaTc 9.82 -.11 .. Accurayn 15.20 +.15 .20p Acergy 23.95 +1.37 .. ActivePwr 2.17 +.14 .. Adivisn 1949 +57 .. Actuate 7.60 -.17 .. Adaptec 3.27 -.04 .. AdobeSy 41.91 +.07 .. AdolorCp 3.39 +.16 .36 Adran 22.00 +.61 .71 AdvantaAs11.93 +.59 .85 AdvantaBs 12.89 +.48 .. Affymetrix d20.35 +.29 .. AirMedian 16.56 +.31 .. AkanaiT 36.35 +.47 .60 Aldila 16.12 -.05 ... Axion 69.64 .+.89 .47 AifaCp 21.57 +.07 AlignTech 14.80 +.11 Alkerm 13.62 +.54 .. Alscripts 17.19 +.06 AInylamP 32.48 +1.25 .. AltirNano 3.94 .16 AMteraCIlf 1870 +43 ...Alvason 9.36 +.13 .10 AmTrstFn 12.64 +.41 .. Amarinh .37 -01 .. Amazon 81.43 +1.67 ... AmerBioh .60 -.04 4.001 AmCapStr 37.79 +.70 ... ACmdLnn 14.85 +.30 ... AmerMod 12.91 +27 ... AmSupr 21.60 +.98 .41 AmCasino 30.43 +,33 Amnen 53.76 +92 AmkorTIf 7.94 +22 ... Ampex 2.30 +.05 .. Amylin 38.83 -.02 Anadigc 12.80 -.01 .40 Anlogic 53.03 +.39 Analysts 1.42 -.01 Andrew 14.53 -.02 Angiotchg 3.85 +.10 .57e AngloAm 30.77 +1.71 .. Ansyss 38.21 +1.41 .301 ApogeeE 20.65 +.35 .. ApolloGrp 71.10 +.08 2.08f Apollolnv 18.11 +.41 .. Apple nc 171.54 +3,08 .221 Applebees 25.20 +.26 AppidDigl .65 +.04 .24 ApldMati 1833 +33 AMCC 2.46 +.06 ArenaPhm 823 +.09 1.68f AresCap 15.32 +.18 A...iadP 4.36 +.01 Aribanc 11.20 +50 .60 ArkBest 22.40 +.21 SAris 1021 +.42 A. Tech 4.13 +.02 AjthroCr 53.71 +.10 AnjbaNetn 15.56 +.31 AscentSol 15.17 +.05 Ashwrth 3.48 +.67 Asialnfo 10.01 -.01 AspenTchif 16.21 +31 Asprevag 25.50 +.14 1.24 AsscdBanc 26.48 +.67 AsystTchif' 3.50 +.22 AthrGnc .67 +.02 Atheros 29.76 +,30 Atmel 4.52 +.03 AudCodes 5.28 +.05 Audvox 12.53 Aulodesk 45.79 +.56 Avanex 1.48 +.01 Avanllmh .54 +.13 ... AvoctCp 25.00 +.49 Aware 5.09 +.07 ... AxcanPh 17.83 +.91 ... Axcelis 4.35 +.08 ... BEASyst 15.47 +20 Baidu.com 30886 +94 .. BallardPw 4.62 +.14 .02 BnkUtd 7.01 +.69 BareEscent 22.95 +.35 ... BasinWfr 5.88 -.20 ... BeaconPw 1.67 +.06 BeacnRfg 7.55 -.05 .25 BeasleyB 7.00 +.05 * .20 BebeStrs 12.49 +.09 BedBath 30.62 +.36 ... Bldz.comn 19.94 +2.43 ... -.W.".,: 69.51 +.88 ... .M 26.22 +.66 ... Biomirah .39 +.01 Biopure rs .62 -.05 .. BioScrip 8.68 -.07 BlueCoats 36.83 -.09 .56 BobEvn 30.26 +.77 .20 BonTon 13.24 +1.59 ... Bookham 2.55 +.15 Borland d3.30 +.01 .36 BostPrv 26.28 +32 ... BigExp 6.88 +.07 ..Brightpnt 16.33 +.61 Broadcom 2783 +.69 BrcdeCm 7.72 +.16 .34a BiklneB 9.93 +.31 BrooksAuto 1284 +.17 ... BrukBio 9.06 +.13 ... Buca d1.13 -.01 .20 Bucyrus 82.92 +1.15 C-COR 11.89 +.39 ... CDCCpA 5.82 +.24 .88 CH Robins 46.89 +.49 ... CMGIrs 10.26 +.58 CNET 7.28 ... CNinsuren 15.88 +2. 8 CSG Sys 16.62 -.16 CTC Media 23.66 -.05 CVThera 8.96 +.15 .34b CVBFnd 10.97 +.37 Cachelnc 14.74 +84 .. Cadence 16.63 +.22 ... CdnSolar 15.47 +.87 .70 CapCtyBk 26.37 +.67 .. CpstnTrb 1.21 +.02 .. CareerEd 28.98 +1.44 .40 CarverBcp 14.50 .26 Caseys 29.05 +.96 .10 CastlePin 11.01 -.05 CasualMal 7.91 +,31 CalSemi 5.99 +.08 .42 CathayGen 28.32 +.95 .. Cavium n 24.37 +1.61 ... Ceokene 62.35 -.19 ... CellGens d2.19 ... CentlCom 8.99 +.12 CEurMed 104.47 +1.90 .. CentAl 50.80 +1.04 .. Cephln 73.85 +.39 ... Copheid 20.84 +.45 .. Ceradyne 43.33 +1.06 .. CeragonN 12.54 -.53 .. Cemer 57.44 -.27 CharRsse 15.22 +.44 ... ChirmSh 5.66 -.38 ChartCm 1.24 +.04 ChkPoint 21.41 +.04 ChkFree 47.38 +.02 Cheesecake23.06 +.49 ChildPlclf 23.79 +.53 ... ChinaBAK 3.79 +.21 ... ChlFnOnI 21.98 -1.31 .40p ChlnaMed 38.66-228 ChinaNRes 16.23 +.39 ... ChinaPrecn 5.13 +.13 ... ChinaSunn 7.13 +.16 ... ChinaTcF 5.45 -.11 ChinaTDvif 4.87 -.28 ... Chordntrs 9.27 +.32 .50 ChrchllO 51.41 +.07 .. CienaCorp 41.73 +.53 1.42 CinnRn 40.61 +.45 .39f Cintas 32.71 +.50 ... Cirrus 5.81 +.01 ... Cisco 2869 +44 ... CitiTrends 15.12 +.03 1.16 CiifzRep 13.99 +.39 ... CtrixSys 36.69 +.15 .10p CityTIcm 5.64 -1.24 CleanEnn 16.21 +.57 ... CleanH 54.87 +1.00 ... Clearwiren d12.40 +.23 ... CogentC 21.49 +.53 ... Cogent 11.90 +.38 ... CogTechs 30.46 +.35 .. Cognosg 57.19 -.06 ... ColdwtrCrk 8.42 +.43 ... ColeyPhm 7.84 1.060e Comarco 5.35 ... Cornmcasts 19.54 +.35 Corncsos 1934 +26 ... CmTouchh 2.15 +.06 .. CompCrd 12.52 +.57 Compugn 1.83 +.11 .. Compuwre 8.46 +.01 ComtchGr 17.64 +.23 .. ConcurTch 34.37 +1.61 ... ConcCm ,99 +.05 ... Conexant 117 +05 ... Conmed 24.78 +.25 ... CointhC 15.79 +.07 1.600 CorusBksh 9.58 +.59 .58 Costco 66.97 +90 CredSys 2.10 +.04 Creelnc 21.08 +.10 Cross 39.50 +.74 CrssCtryHI 13.27 +.01 ... Cip.coms 54.60 +.50 ... CubislPh 20.45 +.31 .CybSrce 15.43 +.56 Cymer 38.27 +.54 ... Cynosure 28.79 +1.76 .. CytRx 3.23 +.04 ... Cytogenh .60 -.01 .07f Daktronics 21.13 +.60 Dankah .42 +.03 ... DatDomn 25.35 +.74 ... DealrTrk 41.14 -.15 ... DeckOut 131.91 +5.84 ... deodGenet 3.55 +.03 ... Delcath 2.13 -.03 ... Dellinc 2613 +57 ... DPtr 14.08 +.09 ... Dndreon 5.59 +.09 .181 Dentsply 40.77 -.33 .. DigRiver 39.97 +.30 ... DiscHoldA 23.23 -.13 ... DiscvLabs 2.50 +.11 ... DivX 17.87 +.84 ... DllrTree 26.80 -.12 ... DressBamrn 14.77 +.28 .80 DrvShlns 76.95 -1.86 ... Dynavax 4.91 +.22 ... ETrade 5.33 +1.07 1.53 ETrade un 8.40+1.22 ... eBay 3194 +35 ... eResrch 10.79 +38 .. eTelecaren10.00 +1.37 ... ev3Inc 14.90 +.46 ... EZEM 20.70 +.12 2.00 EagleBulk 26.01 +.17 ... ErthUnk 7.02 +.11 .40 EstWstBcp 27.07 +1.21 ... EchebonC 15.16 +.19 ... EchoStar 41.85 -.40 .. EdgePet 6.08 -.07 .221 EduDv 5.99 ... BectEnh .51 +.05 ... EectSci 19.78 +.30 Elctgs d1.50 -.03 ... EectArts 54.29 +48 ... Emageon 4.31 +.30 ... Emcoreh 7.87 +.05 EncysiveP .94 +.18 EndoPhrm 26.71 +.16 ... EngyConv 25.85 +.51 ... Entegris 8.33 +.18 ... EnzonPhar 9.69 +.42 ... EpicorSft 11.28 +.33 .. Equinx 102.52 +2.04 .74e EricsnI 23.43 +.24 ... etialswt .03 ... Euronet 31.25 +.90 ... EvrgrSIr 12.59 +.05 ... Exelixis d8.10 +.07 ... ExideTc 5.99 +.15 ... Expediah 29.35 +.38 .28 Expdlntl 43.64 +.15 ... ExpScrips 64.83 +.47 ... ExtimnNet 3.87 +.09 .. Ezcorps 12.68 +.70 ... F5Netwksd26.97 -.07 FBRn 11.18 +.20 ... FLIRSys 65.20 +1.56 .46f Fastenal 38.47 +.26 ... RberTowr 2.24 +.09 1.68 FifthThird 28.04 +.88 ... Finisar f 1.72 +.02 .05j RnLine 3.13 +.04 1.18 FMidBc 31.29 +909 .56 FstNiagara 12.37 +.38 ... FstSolar 210.13 -2.37 1.16 FstMeit 19.72 +.72 ... serve 51.26 +.18 ... Rextm 12.05 -.01 ... FocusMda 50.35 ... ForcePron d12.48 +.01 ... ForrnFac 36.32 -.35 ... Fossil Inc 41.66 +.85 ... FosterWh 135.00 +1.34 ... FoundryN 17.86 +.37 ... FrnkBTX 5.56 +.02 .08 'Fredslnc 9.66 +.13 ... FmbrAir 65.75 -.04 .681 FrontFncl 18.62 +.45 .. FuelTech 21.96 -.12 ... FuelCell 8.92 +.29 .60 FullonFncl 12.05 +.32 GMarket 21.15 +.31 ... GSICmmrc 24.64 +.08 .751 Gannmin 91.86 +.66 ... Gestar 5.42 +27 ... GenBiolc 1.68 +.01 ... GenesMcr 5.27 +.08 ... Gentarsh .64 +.03 .42f Gentex 19.28 +.16 ... GenVec 2.05 -.04 .. Genzyme 72.17 +.43 ... GeronCp 6.19 +.03 ... GigaMed 17.62 +.66 ... GileadScs 43.32 +.26 Globlind 22.67 +.49 2.00a GolarLNG 19.86 -.25 .80 GoldTIcm 102.38 +5.00 ... Google 67670+1618 .. GreenMts 30.93 -.39 ... Gymbree 31.61 +.73 HLTH 13.38 +.14 1.00 HMNFn 24.34 +.01 HansenNat 41.00 +.52 ... Harmonic 10.52 +.52 .. Harrislnt 4.25 +.24 HayesLm 4.00 +.06 ... Healtwys 53.63 +.63 .52 HeidrkStr 35.99 +1.16 HSchein 56.51 +.17 ... HercOffsh 26.00 +.71 ... Hibbelt 20.11 +.31 .20p HimaxTch 4.35 -.02 ... HokuSci 5.92 +.05 HollisEden 2.04 +.05 Hologic 63.81 +.63 .. Home Inns 33.43 +1.84 ... HomeSol d1.03 -.23 ... HotTopic 6.89 +.09 .. HubGroup 24.56 +.22 .34 HudsCity 14.85 +16 HumGen 9.81 +11 .36 HuntJB 24.31 -.04 1.06 HuntBnk 14.56 +.49 ... HuronCon 69.59 +2.60 ... Hydrogcs 1.03 +.04 ... Hythiam 3.95 +.02 ... IAC Inter 27.35 -.29 .80 IPCHold 28.64 -.21 ... iRobot 15.84 +.33 ... IconixBr 22.45 +.60 llumina 52.24 +.70 .. Imclone 40.20 -.22 .. Immersn 13.11 +.80 Immucor 31.46 +.31 .. Imunmd 2.09 +.07 Incyte 8.20 +.06 Informat 16.40 +.30 .31e InfosysT 39.10 +,44 InsitTc 12.95 +.17 .. IntgDv 11.83 +.04 .51f Intel 25.07 +,44 InlaclBrkn 27.66 -.34 InterDig 20.82 +.69 .08 Intrface 17.21 +.44 InterNAP 10.39 +.13 .10f IntlSpdw 43.00 +.51 .40 Intersil 27.72 +.62 Intevac 14.46 +.45 Intuit 29.17 +.16 IntSurg 283.71 +3.84 inVeniv 30.35 +.71 Investools 14.91 +.29 Isis 16.94 +.44 Itron 74.83 +.33 IvanhoeEn 1.77 +.07 j2GIobal 24.25 +.21 , JASolarn 53.13 +1.47 JDSUniph 12.95 .26 JackHeery 26.16 +39 ... Jamba 3.60 +47 JetBlue 7.10 +.25 ... JonesSoda 6.94 +.31 .60 JoyGibl 52.90 +.61 JnprNtwk 29.49 +45 .60 KLATnc 48.06 +.69 ... Kenexa 17.66 +.18 .. KnghtCap 13.78 +.72 2.50e KntghtT 25.00 +1.26 ... KnotInc 13.53 +.09 KongZhg 4.62 -.17 .. Kulicke 7.40 +.23 .72 LCAVis 16.69 +.61 LHC Grp 24.79 +44 ... Uln I 2.39 -.13 LKQCp 37.42 +.85 .60f LSI nds 20.12 +.39 LTX 2.77 +.21 LakesEnt 6.47 -.04 LamRsch If 44.91 +.41 3.25e LamarAdv 48.76 +.02 .15 Landstar 37.97 +.15 Lattice 3.40 +.10 LawsnSft 9.41 +.13 Layne 56.40 +2.84 LeapWirdil 32.48 +.42 ... Level3 3.22 +01 ... LexiPhrm d2.84 -.06 UbGlobA 37.12 +.60 LibGIobC 34.68 +.59 UbtyMIntA 19.53 -.03 UbtMCapA111.22 -.08 2.50e LigandPhm d4.30 +.14 Uncare 35.27 +.46 .72 UnearTch 30.47 +.26 2.28 Li UnnEngy d2453 +.46 Lionbrdg 3.21 +05 UvePrsn 5.27 +.04 LodgEnt 17.74 +.13 Logitech 32.86 +.31 LookSmart 3.23 +.07 LoopNel 1435 +,47 .. lululemngn 39.14 +1.37 1.76 MCGCap 11.92 +.31 1.42 MGE 34.94 +.33 ... MGIPhr 2941 +55 .301 MGP Ing 7.31 +1.09 MKS Inst 17.98 +.36 ... MRVCCm 2.38 +.14I .60f MTS 42.80 +1.28 ... Macrvsn 24.63 +.15 Magma 13.51 +.12 M.. MannKd 8.29 +.71 .08 MarchxB 12.28 +.57 ... MarveiT 16.52 +.28 ... MatixSv 25.58 -.15 ... MaxwrlT 8.67 +.20 ... Medarex 12.21 +44 ... Mediacm 4.33 +.34 MedicActs 19.53 +.41 ... MediCo 17.89 +.33 ... MedisTech 13.37 -.16 ... MelcoPBLn 12.97 -.09 MentGr 11.56 +.08 MergeTech 1.50 +.04 .44 MenrdBs 29.74 +.51 MesaAir 3.41 +.06 .56 Methanx 26.92 +.89 .12 Micrel 8.49 +12 1.241 Microchp 28.52 +.41 ... MicroSemi 22.54 -.05 .441 Microsoft 34.11 -.12 Micrvisn 4.07 +.13 Middlebys 75.04 -.47 MillCellh .57 +05 MillPhar u14.30 +34 .35 MillerHer 24.79. +.59 Millicomh 107.88 +3.40 .. Mindspeed 1.36 +.08 Misonix 4.87 ... MobileMini 17.97 +.16 .45f Molex 27.26 +41 .45f MolexA 26.84 +.44 ... Mnognrm 1.21 -.04 ... MonstrWw 33,06 +.42 .. MorgHU 17.97 -.04 Movenc 2.47 +18 ... MydadGn 46.85 +.80 NABI Bi 3.35 +.16 ... NICESys 32.82 +.32 .Nil HIdg 49.85 +1.75 .32 NNInc 9.00 +.47 Nanogen .60 +.05 Napster 2.72 -.04 Nasdaq 43.63 +.28 Nastech d3.91 -.13 NatAtH 5.45 +.13 NektarTh 6.42 +.01 NessTech d9.49 -.11 NetlUEPS 32.95 +.36 .05e NetServic 12.93 -.52 NetLogic 29.40 +.58 Netease 19.23 +.26 Neiflix 21.75 +.20 NetSolTch 3.02 -.09 NetwkAp 24.81 +.37 Neurcrine 10.06 +.35 .62e Nissan 20.75 +.38 ,50f NobllyH 19.00 1.121 NorTrst 76.94 +2.19 NthfldLb 1.03 +.02 NvtlWris 15.54 -.16 Novavax 3.14 +.11 Novell 6.58 +.12 Novius 26.73 +.72 Noven 14.71 +34 NuHoriz I 6.70 -.60 NuanceCn 19.21 +.19 NutriSys 23.14 +34 Nuvelo 1.31 +02 Nvdia s 30.22 +51 OReillyA 31.20 +.20 OSIPhrm 41.59 +.08 Omniture 27.93 +.73 OmniVisn 19.49 +.27 OnAssign 6.32 +.15 OnSmcnd 8.62 +.14 OnyxPh 53.07 -51 OpenTxt 31.90 +07 1.20e OpnwvSy 2.91 +.20 .25 optXprs 28.71 +.87 Oracle 20.31 +.10 OdginAg d5.45 +.07 Onhfx 58.08 +104 1.17 OlterTail 34.59 +.18 PDLBio 17.99 +.35 ... PFChng 25.87 +.71 .. PMCSra 7.32 +.24 PSSWld 18.53 +.01 .721 Paccars 48.19 +.51 .60 Pacerlnd 13.52 +.35 .88 PacCapB 20.55 +58 PacEthan d4.22 -.08 SPacSunwr 15.17 +61 Packer 7.13 +.07 PaelecHn 10.74 +.09 9.00e Palmlncs d7.21 +.28 PanASIv 34.37 +1.88 PaneraBrd 35.09 +.82 Pantry 28.09 +.05 ParamTch 16.83 +.16 .98e PrtnrCm u20.67 +.47 .28 PartTrFnI 12.47 +.01 ... Patterson d29.91 +.83 .48 PattUTI d19.36 +.38 1.20 Paychex 38.19 +.04 Penwest 5.06 +.05 .53 PeopUtdF 16.71 +.53 .. PerfectWn 19.47 -24 .18 Perrigo 29.98 +.34 ... PetroDev 52.10 +1.42 .12 PetsMart 26.34 +.18 PFSweb 1.08 +.01 .40f PharmPdt 40.83 +.93 Pharmaoup 4.95 -.10 Pharmion 65.62 +.48 PhaseFwd 21.96 -.47 PhotoMdx d.80 Phorln 9.97 +.17 PlugPower 3.54 +.01 Polygom 25.26 +.63 .48 PoolCorp 21.39 +.74 .64 Popular 9.47 +.32 Power-One 4.79 +.07 .14e PwShsQQQ4984 +53 ... Powwav 4.32 +14 ... Presstek 6.20 +.16 .68 PriceTR 59.05 +1.95 .. pipeline 107.69 +4.25 PrugPh 19.64 +22 .501 ProspBcsh 31.29 +38 PsychSol 37.01 +.37 ... Qiaoing 8,31 +.22 Qlogic 14.12 +.24 .56 Qualcom 40.53 +.07 ... QuanFuel .70 -.01 QuestSfhlf 16.43 +.24 1.24 QuIntMari 23.66 +1.22 RAMHIdgs 6.08 +.12 RF MicD 5.62 +.09 ... RackSys 9.92 +.24 RadioOneD d2.29 +.30 ... Rambus 18.53 +.37 .10e Randgold u38.56 +.72 RealNwk 6.30 +.29 Regenm 18.34 +.46 Renovis 3.00 +.14 RentACI 14.00 +.43 RschMots 113.85 +283 RestHrd 7.06 -.09 RigelPh d7.34 +.14 Riverbed 27.20 +1.40 .30 RossStrs 26.22 +.20 .281 RoyGId 31.31 +1.04 ... RubiconTn 18.99 +.01 RuriCellA 44.07 +W07 RushEnAs 14.47 -.22 Ryanairs 40.63 +.14 SBACom 34.40 +.74 SEI Invs 28.58 +.38 STEC 7.48 +.28 SVBFnGp 50.49 +.45 SaJixPhm 10.83 +.19 SanDisk 36.11 -.08 SangBo 12.81 +.24 Sanmina d1.84 +.10 Sapient 7.13 +.25 Satconh 1.45 -.12 SavientPh 12.18 +.33 Savvwis 31.88 +.47 .07 Schnitzer 61.75 +.84 ... Scholastc 37.21 +.39 .20a Schwab 23.56 +.75 SciGames 31.07 -.05 SearsHidgs112.58 +2.26 SeattGen 10.00 +.12 ... SecureCmp 9.34 +.26 SelCmfit 11.12 +.21 .52f Selctlnss 22.71 +.82 Semtech 15.28 +.22 .. Senomyx d6.69 +.04 Sepracor 25.57 +.26 .. Shanda 31.50 +.46 .22e Shire 68.32 +3.64 ShoeCam d12.30 +.09 .. ShufflMstr 12.50 +.21 SiRFTch 26.13 +.88 ... SlerraWr 16.00 -.20 ... SigmaDsg 52.67 +2.89 .46 SigmAls 50.70 +.38 .. Silicnimg 4.43 +.14 ..SilcnLab 36.56 +.62 SllicnMotn 18.84 +.19 SSTIf 2.83 +.14 .51r Slcnware 8.98 +.06 .. lStdg 40.57 +1.70 Siverstar 1.78 +.09 ... Sina 44.00 -.05 .70f Sinclair 10.18 +.02 ... SriusS 346 -.03 .. SironaDent 25.99 -.14 .12 SkyWest 24.80 +.49 SkywksSol 8.33 +.32 SmilhWes 10.22 +.19 SmithMicro d8.20 -.09 SmunSlne 10.14 +.25 ... Sohu.cm 48.61 +.68 ... Solaun 10.93 +.67 SonicCoip 23.61 +.32 .. SncWall 10.11 .. Sonus 6.30 ... SonusPhh .42 +.02 .40 SouMoBc 14.00 SourceFrg 2.62 +.07 .72 SouthFncl 17.12 +.40 .SpansonA 5.05 +.07 .11a SpartMots 9.98 +.31 SpectPh d2.75 -.01 Spreadtrn 10.74 -1.99 .29f Staples 20.56 +.48 Starbucks 23.07 +26 .40a StlDynam 49.19 +.68 .25 SteinMrt 5.91 +.15 StemCells 2.01 -.07 Stricycles 55.19 -.51 .21 SterlBcss 11.15 +.24 .381 StdFWA 18.17 +.79 -.. SMadden 23.25 +1.37 ... SuccessFn 12.68 -.07 .. SunHlthGp 15.14 +.21 SunMicrors 1916 +05 ... SunPower 105.97 +1.90 SupTech 5.87 -.09 SuperGen 4.04 +.02 ... SupOffshn 6.44 +.18 1.041 SusqBnc 18.94 +.74 Sycamore 3.91 -.03 Symantec 1755 +.03 Symelic 4.29 +.10 Synaptics 55.28 +2.27, Synopsys 23.39 +.09 Synovis 20.00 +1.02 SynltaPh n 7.58 +14 SynlaxBrilh 2.97 +.11 .TBSIntlA 31.63 -.35 TDAmneritr 18.90 +.82 THQ 25.16 +.23 TOP Tank 4.05 +.25 TTMTch 11.97 +.06 TXCORes 11.39 -.03 TakeTwo 14.72 -.13 Taleo A 25.47 +.96 1.35 TargaResn 27.07 +.53 ... Tarragn 1.92 +.07 ... TASER 13.04 -.01 ... TechDala 35.91 +56 ... Tekelec 12.32 +.61 ... TeleTchlf 20.94 +.41 ... Teliknc 2.99 -.04 ... Tellabs 7.03 +13 ... TescoCp 23.07 -.36 .. TesseraT 37.63 +.41 ... TetraTc 22.02 +.23 .39e TevaPhnm 43.77 +.07 ... TexRdhsA 12.31 +.29 The9Ltd 21.56 +1.10 .10 ThStreet 12.80 .. 3Com 4.66 +.17 ... 3Son 13.93 +.39 ThrshkiPhh .65 +.08 .. TibcoSft 7.38 +.63 ... TWTele 21.33 +.36 ... VoInc 5.90 +.05 ... TomoThn 16.29 +.05 ... Toreador 7.05 +21 TmnStc d.88 +.01 TiZetto 15.30 +23 ... TriadGty 9.84 +.75 .. TridentMh 6.38 +.01 ... TrmbleNs 35.49 +,64 ... Tmeris 6.39 +.03 ... riQuInt 5.86 +.03 ... TneReliglf 17.00 +.11 ... TrumpEnt 5.23 +.11 .64 TrstNY 10.49 +.30 .921 Trustmk 25.84 +.61 .80 TuesMm 7.76 +.36 .. UAL 40.23 +1.23 .12 UCBHHid 15.70 +.77 ... USBloEnn 7.44 +.38 .24 USGIobals 15.80 +.89 ,06 UTiWrldwd 21.84 +.04 ... UTStrcm 2.88 -.05 .761 Umpqua 15.11 +.58 .36 UtdCBksGa 19.25 +.57 ... UtdNilF 27.29 -.01 .80 UtdOnIn 16.50 +.02 .1de USEnr 4.88 +.06 ... UnvAmr 23.63 -.11 ... UnivDisp 16.20 +.36 .11 UnvFor 29.76 +1.26 UraniumRn 11.63 +.43 UrbanOut 24.75 +.64 VCAAnt 40.62 +.06 .. ValVisA 6.41 +.14 ... ValueCiick 21.35 +.82 ... VarianSms 36.52 -.62 ... VasoDta 21.21 +.08 Vedgy 20.13 +.23 .. Versign 36.75 -.08 VertxPh 24.00 +.46 ViewptCph .84 +.05 .16f VirgnMdah 18.57 -.01 ... ViroPhrm 8.34 +.26 ... VisuaSd 15.56 +.53 ... Vs 5.21 +.03 .72e Volvos 16.32 -.18 Vyyolnc 4.66 +.38 WarrenRs 13.50 +50 .84 WashFed 22.33 +.45 .20 WemerEnt 17.18 -.07 WelSeal 2.34 -.02 1.16 WhitneyH 25.77 +.66 .72 WholeFd 40.75 -68 WindRvr 10.11 +.27 WrightM 25.75 +.07 6.00e Wynn 135.05 -.25 XMSat 14.02 -.01 XOMA 3.21 -.04 .48 Xilinx 2169 +10 XinhuaFn 5.97 -.03 ... YRCWwde 16.65 +.12 Yahoo 2613 +42 ... ZhoneTch 1.26 1.72 ZwonBcp 52.00 +1.75 ... ZCorp 3.85 +.02 .. Zoltek 35.89 +1.52 ... Zoran 22.15 +.95 ... Zumiez 27.94 +1.21 .65 NvFL 12.62 -.05 .70a NvlIMO 13.39 +.13 1.14 NvMulSI&G 10.75 +.18 1.03a NuvQPf2 10.90 +.14 1.36 OGEEngy 36.07 1.00 OcciPet 72.10 +1.82 ... OfficeDpt 17.50 +.78 .60 OfficeMax 23.97 +.60 .80 Olin 19.33 +.54 .09 Omncre 25.48 +.46 .30 Omnicms 46.80 +.09 4.04f ONEOKPt 60.96 -.03 ... Orbitzn 8.28 +.33 .40 OshkoshT 47.00 +.23 1.25 OvShIp 65.55 4.25 ... OwensCom 21.95 -.05 1.44 PG&ECp 45.52 +.11 .21 PMIGrp 11.55 +1.36 2.52 PNC 69.84 +1.99 .92 PNMRes 22.23 +.16 2.08 PPG 66.50 +1.09 1.22 PPLCorp 49.12 +.17 1.20f PackAmer 28.25 +.28 .. Pactiv 23.10 +.18 .. ParkDd 7.77 +29 .84 ParkHans 76.48 +.55 .24b PeabdyE 52.61 +1.46 2.70 Pengrlhg 18.45 +.14 1.72f PennVaRs 25.70 +.20 4.08 PennWstg 27.89 +.50 .80 Penney 41.30 +1.23 .27 PepBoy 14.51 +.51 1.50 PepsiCo 75.51 +.47 .52 PepsiAmer 32.17 +.15 1.32e Prmian 15.63 +.22 4.74e PetChina 184.80 +3.80 1.36e PetrbrsAs 85.50 +1.34 1.36e Perobrss 100.78 +1.74 1.16 Pfizer 22.98 +.63 .80e PhIlipsEI 4222 +2.73 1.00 PiedNG 25.83 +.42 .. Pier1 3.97 +.30 .78 PimcoStrat 933 +.01 2.10 PinWst 43.18 +.09 .28f PioNt 468.40 +.28 1.40f PitnyBw 37.73 +43 1.68 PlumCrk 43.14 +1.26 1.36 Polaris 45.17 +.67 .20 Polo RL 66.80 +1.80 1.80 PostPrp 38.44 +.46 .40 Potash s 108.08 +1.90 120 Praxair 80.67 +1.38 1.40 ProctGam 72.86 +.60 2.44 ProgrssEn 48.57 +.17 .04a ProgsvCp 17.88 +.13 1.84 ProLogis 65.07 +1.57 .28 ProsStHiln 2.79 -.03 1.44 ProvETg 11.07 -.03 1.15f Prudend 93.87 +1.79 2.34 PSEG 92.20 +.74 .2.00 PubStrg. 76.25 +1.53 1.00 PugelEngy 28.06 +.04 .16 PulleH 9.63 +.38 .39 PHYM- 6.83 +.08' .49 PIGM 9.36 +.(2 .36 PPriT 6.17 +.07 ... QimodaAG d7.14 +49 .56 Quanex 49.37 -.04 QuantaSvc 25.80 .40 QstDiag 53.92 .49 Questars 54.86 .+.77 .. QweslCm 6.58 +.)2 1.84m RAIFiRn 7.79 +96 RH DonI 43.21 +1.78 .76f RPM 18.32 +:8 .08 RadianGrp 10.57 T .25 RadioShk 18.55 +.24 ... Ralcorp 62.97 +1.82 .12 RangeRs 38.75 +.44 .40 RJFamesFn 30.25 +.70 2.00 Rayonier 44.51 +.0 1.02 Raytheon 62.09 +J4 1.63 Ritylnco 29.19 +.63 .. RedHat 18.62 -.93 3.00a RedwdTr 29.99 -122 1.521 RegionsFn 24.22 +.370 .32 RelStlAl 49.94 +2.7 ... ReliantEn 24.66 +.2 .98e Repsol 37.00 +.5 ... ResMed 45.46 +1.73 ... RetailVent 6.73 +.20 ... RevIon 1.09 +.'3 3.40 ReynldAm 65.15 +.2 .. RiteAid 3.48 - .40 RobtHaf 25.48 1.16 RockwlAut 65.81 1.48 RoHaas 48.36 +.67 .40 Rowan 36.99 +1.07 .. RBScotd n 8.82 +.54 .60 RylCarb 38.09 -.07 2.81e RoyDShlIA 81.75 -.90 1.88e Royce 17.80 +10 1.47 RoycepfB 22.43 +.92 .48 Ryland 21.78 +.1 1.76 SCANA 41.97 -20 .. SKTin 3.05 +1.65 1.00 SLMCp 38.76 +1.67 .28 Safeway 33.69 +.16 .48j StJoe 28.46 +.39 StJude 38.95 +.62 .. Saks 19.09 -.9? ... Salesforce 55.16 -16O 2.33e SJuanB 33.65 -.92 1.15e Sanofi 46.32 +2.W7 .421 SaraLee 16.12 +.22 .17e Satyamn 25.12+1. .26 SchergPI 29.18 +.77 .70 Schmbrg 94.11 +2.p .40 SeagateT 25.00 -15 .08 SecCapAs 4.70 +.41 .72 Sensient 27.55 +12 .16f ServiceCp 12.99 +.k7 .32 SierrPac 17.25 -.A9 SIlvWhing 15.58 +74 3.36 SimonProp' 90.76 +1.02 ... ;.-i,: ".- -67 .72 '.:,..m O *. 7 1,-i The remainder of tme New York j a Slock Excnange listings can be lound on the next page Request slOCK or mutual funas by riling ire Cnrorincle. Ann. Stock , RequesIs 1624 N Meadowerest Blvd.. Crystal River. FL 34429: or phoning 563-5660 For stocks. include the name oli e slock, its market and' its ticker symbol. For mutual funds, list the parent company and Ire exact I name ol Ihe fund. Yesterday Pvs Day , Australia 1.1422 1.1451 D Brazil 1.8045 1.7805 Britain 2.0612 2.0644 Canada .9893 .9876 China 7.4002 7.4120 . Euro .6739 .6735 Honq Kong 7.7751 7.7785 Hungary 173.61 172.98 India 39.675 39.276 Indnsia 9433.96 9433.96 0 Israel 3.8639 3.8870 Japan 108.18 108.68 Jordan .7095 .7095 Malaysia 3.3610 3.3825 Mexico 10.9776 10.9790 Pakistan 61.14 61.00 Poland 2.48 2.49 Russia 24.3303 24.3126 Sinqapore 1.4423 1.4488 Slovak Rep 22.64 22.52 So. Africa 6.8125 6.8040 So. Korea 930.23 929.37 Sweden 6.2613 6.2724 Switzerlnd 1.1020 1.1029 Taiwan 32.43 32.44 U.A.E. 3.6657 3.6714 Venzuel 2145.92 2150.54 British pound expressed In U.S. dollars. All others show dollar in foreign currency. Yesterday Pvs Day Prime Rate 7.50 7.50 Discount Rate 5.00 5.00 Federal Funds Rate 4.47 4.50 a Treasuries 3-month 3.14 3.30 6-month 3.28 3.45 5-year 3.40 3.67 10-year 4.00 4.14 30-year 4.43 4.51 FUTURES Exch Contract Settle Chi Lt Sweet Crude NYMX Jan 08 98.18 +.89 Corn CBOT Mar 08 4053/4 +7 Wheat CBOT Mar08 8451/2 +191/2 Soybeans CBOT Jan08 11001/4 +161/4 Cattle CME Feb 08 98.70 +.50 Pork Bellies CME Feb08 93.50 +.45 Sugar (world) NYBT Mar 08 9.78 Orange Juice NYBT Jan08 134.35 SPOT a Yesterday Pvs Day' Gold (troy oz., spot) $824.00 $785.70 Silver (troyoz., spot) $14.715 $14.483 Copper (pound) 52.985U $3.1bb0 NMER = New York Mercantile Exchange. CBOT= Chicajb Board of Trade. CMER = Chicago Mercantile Exchange. NCSE = New York Cotton, Sugar & Cocoa Exchange. NCTN New York Cotton Exchange. RTT US 1UNT1(fSHR SAUDENOEBR24 079 MCUAFUD 4-wk ame NAV Chg %Rtn IM Investments A: LesValAp36.24 +.69 -5.9 ChartAp 16.56 +.23 -2.2 TConstp 28.60 +.47 -5.2 ,HYdA p 4.22 ... -3.5 InlGrow 33.80 +.57 -4.4 SeAEqtyr 20.66 +.32 -5.6 AIM Investments B: -CapDvBt17.70 +.27 -6.2 AIM Investor Cl: 'Energy 51.57 +.95 -2.1 ,SummrPp 14.87+.21 -2.1 tJities 19.53 +.08 -0.7 Advance Capital I: Balancp 18.94 +.22 -3.6 .Retinc 9.51 -.01 -0.3 Alger Funds B: SiCapGrt6.71 +.11 -4.7 AlllanceBernm A: BalanAp 17.86 +21 -2.8 GjbTchAp 75.43+1.01 -6.3 IntalAp 23.33 +.61 -5.2 SmCpGrA 29.79 +.46 -7.5 AllianceBem Adv: IntValAdv 23.73 +.62 -5.2 .,LgCpGrAd 23.61 +.51 -4.5 S BlianceBern B: 8o:Bp11.88 ... -0.7 GIbTchB 166.86 +.89 -6.3 GrowthB 127.34 +.48 -5.8 SCpGrBt 124.61 +.38 -7.6 AllianceBern C: SCpGrC t 24.71 +.39 -7.5 Allianz Funds A: NFJDvVI t 117.17 +.33 -4.0 'Allianz Funds C: GrowthCt24.35 +.34 -3.8 TargetCt 21.51 +.38 -7.1 Amer Beacon Plan: LgCpPIn 23.00 +.42 -5.4 lAmer Century Adv: EqGroAp25.16 +.39 -5.6 Amer Century Inv: Balanced n16.80 +.16 -2.8 Iqncn 8.47 +.11 -4.6 Inrowthin 25.23 +.35 -3.3 leritagel n21.04 +.41 -4.6 SncGron 31.85 +.51 -5.6 IntDisc rn 17.70 +.22 -9.0 intlGrol n 14.45 +.29 -3.5 l-feSdn 5.84 +.08 -1.7 New Opprn7.85 +.14 -6.1 'OneChAg n14.03+.17 -3.9 RealEst n26.09 +.48 -9.2 Ultra n 31.71 +.50 -2.6 'Valuelnvn 7.06 +.11 -5.5 Vistan 22.01 +.39 -5.5 American Funds A: 4mcpAp 21.03 +.29 -4.4 SAMutlAp 29.19 +.38 -4.9 ;,BalAp 19.68 +.21 -2.6 BondAp 13.19 ... -0.7 LCapWAp 20.55 +.01 +1.2 tCaplBAp 65.08 +.65 -3.2 EtapWGA p 47.64+.72 -2.8 0EupacA p 54.92 +1.04 -1.6 fFdlnvAp 43.70 +.77 -4.5 0GwthAp 35.90 +.55 -4.3 41l TrAp 11.87 ... -3.4 incoApp 20.25 +20 -4.2 lntBdAp 13.54 ... +0.5 ',ICAAp 34.45 +.51 -4.2 NEcoAp 29.24 +.34 -5.8 $JPerAp 36.64 +.64 -1.9 wWdtdA 61.51 +.57 -3.0 0GmCpAp 44.83 +.34 -7.5 jTxExAp 12.28 +.01 -0.4 iWshAp 35.05 +.55 -5.4 ,American Funds B: tBalBt 19.59 +.21 -2.7 'CaplBBt 65.08 +.65 -3.2 UCpWGrBt 47.37 +.72 -2.9 OGrwthBt 34.54 +.52 -4.4 SqncoBt 20.13 +.20 -4.2 r CABt 34.27 +.51 -4.3 eWashB t 34.81 +.54 -5.4 el Mutual Fds: .Arec 43.48 +.89 -5.5 5riel 46.47 +.77 -5.4 Artisan Funds: cIntS 34.14 +.56 -3.0 eMidCap 35.35 +46 -6.6 \MidCapVal 20.17 +.24 -3.9 'Baron Funds: - GAsset 64.38 +.80 -4.3 Growth 52.21 +.86 -4.7 TPartners p24.57 +.37 -7.1 SvmCap 25.03 +.38 -4.9 emrnsteln Fds: '.ntDur 13.22 +.02 +0.4 0OivMu 14.05 ... +0.3 ,"xMgdInt 28.27 +.72 -4.8 cnlPort 28.27 +.75 -3.9 ,EmMkts 49.64 +.60 -6.7 BlackRock A: SAuroraA 27.20 +.46 -4.2 :BaVlAp 30.87 +.56 -5.5 aCapDevA p 16.93+.22 -4.4 TGIAIAr 20.82 +.15 0.0 HiY[nvA 7.72 ... -2.6 SBlackRock B&C: IAICt 19.61 +.15 -0.1 tackIRock Instl: SaVII 31.07 +.57 -5.5 GIbAllocr20.91 +.16 0.0 Brandywine Fds: BlueFdn 34.12 +.44 -4.1 Bmdywnn35.35 +.53 -4.5 Brinson Funds Y: HiYldlYn 6.57 +.01 -3.3 -GM Funds: SCapDvn 32.26 +.62-10.8 iFocun 56.12+1.27 -6.1 In 35.32 +.39 -4.0 CRM Funds: MdCpVII 31.63 +.43 -5.2 Calamos Funds: Gr&lncAp31.33 +.28 -3.8 GrwthAp 56.24 +.88 -6.7 GrowthC 152.38 +.82 -6.8 Calvertd Group: Incop 16.92 +.02 +0.4 InlEqAp 23.83 +.67 -7.6 Munint 10.56 ... 0.0 SocialAp 30.54 +.26 -2.4 SocBd p 1621 +.01 +0.9 SocEqA p 39.87 +.63 -2.7 TxFLt 10.02 ... -0.4 S TxFLgp 16.26 +.01 -0.5 TxFVT 15.68 ... +0.2 Causeway Intl: I nstitutnl r n21.17 +.58 -2.5 gaipper 8924+1.23 -3.5 Cohen & Steers: -RltyShrs 74.28+1.47 -9.6 Columbia Class A: SAcornt 30.01 +.42 -6.4 -FocEqAt 24.52 +.41 -4.1 -21CntryAt 116.38 +.15 -3.2 SMarsGrAt 122.53 +.37 -4.4 1 Columbia Class Z: _AcomZ 30.81 +.44 -6.3 AcomlntZ46.09 +.44 -7.1 IntEqZ 19.03 +.45 -3.0 -LgCpldxZ28.21 +.47 -4.7 _MrlnOpZr17.59 +.40 -3.6 DFA Funds: USCorEq2 n11.52+.20 -6.0 0DWS Scudder CI A: -CommA p 23.28 +.41-11.3 -DrHiRA 48.35+1.09 -6.9 ; DWS Scudder CI S: SCorPlslncx12.60-05 +0.3 -EmMkGrr 28.60 +.29 -5.2 -EurnEq 40.52 +.92 -4.4 _GlbBdSrx 10.19 -.03 +2.4 GIbOpp 44.68 +.77 -5.0 -G2lTnem 35.15 +.64-5.4 -GoldatAPrc26.0598 +.943 -1.0 MgiYIdTx 12.75 ... -0.3 MATFS 14.16 ... +0.1 Davis Funds A: NYVenA 39.44 +.64 -4.3 Davis Funds B: .NYVen B 37.54 +.60 -4.4 avis Funds C & Y: NYVenY 39.98 +.65 -4.3 -delaware Invest A: TxUSAp 11.30 ... -0.7 Delaware Invest B: -DelchB 320 ... -3.3 SlGrBt 26.25 +.32 -5.4 Dimensional Fds: nEmMktV 44.43 +.48 -6.3 _lntSmVan21.63 +.37 -7.3 _USLgCon42.40 +.70 -4.7 -US Mico n14.67 +.27 -7.3 .JS Small n20.36 +.38 -6.6 I "nlSrnCo n20.41 +.36 -6.6 .1 E_.gMktn33.98 +.49 -6.1 I fRxdn 10.20 ... +0.3 -ntVa n 24.90 +.54 -4.6 _Glb5Fxlncn10.85+.01 +0.5 TMUSTgtV22.80+.47 -6.9 "TM IntVa 21.39 +.44 -4.5 -TMMklwV17.04 +.32 -6.4 ;YGIFxdn10.38 ... +0.3 i DFARIEn26.82 +.53-9.5 Codge&Cox: SBalanced 85.88 +1.28 -2.9 Income 12.61 +.02 -0.2 InfStk 47.93 +.95 -2.6 Stock 150.08+3.25 -4.1 Dreyfus: Aprec 45.91 +.67 -2.4 -Dreyf 10,67 +.17 -3.2 Dr500lnt 41.14 +.68 -4.7 EmgLd 31.07 +.61 -8.2 FLIntr 12.87 +.01 +0.1 -InsMut ... ... 0.0 iDreyfus Founders: 'GrowthB 0.0 GrwthF p 0.0 Dreyfus Premier: CorVIvp 31.24 +.54 -5.5 LUdHYdA p 6.87 .., -2.9 StrValAr 32.97 +.57 -5.5 TchGroA 26.86 +.35 -6.6 Driehaus Funds: EMktGr 52.75 +.54 -6.4 Eaton Vance CI A: ChinaA p 35.88 -.12-13.9 AMTFMB1I10.48 -.01 -2.4 MuliCGrA11,17 +.20 -4.7 InBosA 6.17 ... -2.7 LgCpVal 21.99 +.38 -3.9 NatlMun 11.07 -.02 -3.6 SpEqtA 15.53 +25-5.7 TradGvA 7.24 -.01 +1.1 Eaton Vance CIB: FLMBt 10.66 -.01 -1.7 HIlhSBt 12.71 +.25 -1.1 NafMBt 11.07 -.02 -3.6 Eaton Vance CI C: GovtC p 7.24 ... +1.2 NatiMCt 11.07 -.02 -3.6 Evergreen A: AstAllp 15.55 +.18 -1.8 Evergreen C: AstAIICt 15.00 +.17 -1.9 Evergreen I: CorBdl 10.37 +.01 -0.8 SIMunil 9.86 ... +0.1 Excelsior Funds: Energy 27.28 +.47 -4.8 HiYield p 4.42 ... -3.6 ValRestr 55.17+1.07 -6.7 FBR Funds: Focus 55.08 +.49 -3.7 FPA Funds: Nwlinc 11.06 ... +0.8 Fairholme 32.59 +.26 -4.3 Federated A: MidGrStA 37.78 +.64 -5.5 KaufrnAp 5.95 +.08 -3.5 MuSecA 10.33 ... -0.6 Federated Instl: KaufmnK 5.95 +.07 -3.5 Fidelity Adv Foc T: EnergyT 51.44 +.97 -3.9 HkCarT 22.12 +.30 -2.5 Fidelity Advisor A: DivlntlAr 24,92 +.42 -3.3 Fidelity Advisor I: DivIln n 25.33 +.43 -3.3 EqGri n 66.21 +1.01 -5.9 EqIni n 30.45 +.54 -5.5 IntBdIn 10.73 ... +0.2 Fidelity Advisor T: BalancT 16.25 +.18 -4.6 DivlntTp 24.62 +.41 -3.3 DivGrTp 13.25 +.22 -6.0 DynCATp 19.56 +.39 -7.5 EqGrTp 62.27 +.95 -5.9 EqInT 30.02 +.53 -5.6 GrOppT 41.01 +.73 -7.1 HilnAdTp 10.12 +.06 -4.7 IntBdT 10.71 -.01 +0.1 MidCpTp26.65 +.37 -5.7 MulncTp 12.73 +.01 -0.4 OvrseaT 25.64 +.49 -3.5 STFT 9.27 -.01 0.0 Fidelity Freedom: FF2010 n 15.12 +.12 -2.8 FF2015n 12.68 +.11 -3.1 FF2020n 16.08 +.18 -3.8 FF2025n 13.31 +.15 -4.0 FF2030n 16.63 +.22 -4.5 FF2035n 13.77 +.19 -4.6. FF2040 n 9.83 +.14 -4.7 Fidelity Invest: AggrGrrn22.26 +.25 -7.9 AMgr50n 16.53 +.14 -3.2 AMgr70n 17.13 +.20 -4.2 AMgr20rnl2.72 +.05 -1.4 Balancn 19.46 +.22 -4.5 BlueChGrn44.19+.62 -4.1 CAMunn12.16 +.01 -0.5 Canada n 62.89 +.87 -5.4 CapApn 29.13 +.59 -7.4 CapDevOn14.13+.21 -3.9 Cplncrn 8.66 +.03 -3.1 ChinaRg n34.01 +.32-14.8 CngSn 494.25+0.10 -3.6 CTMunrnl1.28 ... +0.1 Contran 75.00+1.02 -3.0 CnvSen 28.08 +.38 -6.6 DisEq n 31.00 +.45 -5.0 Divintln 42.41 +.83 -3.6 DivStkOn16.41 +.25 -5.9 DivGth n 29.77 +.47 -5.9 EmrMk n 33.25 +.29 -6.4 Eqlnon 56.51+1.04 -6.5 EQII n 23.51 +.42 -5.6 ECapAp 30.92 +.44 -2.8 Europe 45.59 +.54 -1.2 Exchn 349.7944.57 -2.6 Export n 25.16 +.42 -5.4 Fidel n 40.06 +.68 -3.6 FrItyrn 22.65 +.36 -6.0 FtRateHi r n9.60 +.01 -0.9 FrlnOnen30.75 +.44 -3.8 GNMAn 10.95 +.01-+1.3 GovtInc 10.33 ... +1.4 GroCon 80.94+1.29 -5.5 Grolnc n 27.86 +.56 -6.1 Grolnclln 11.52 +.19 -4.2 HighncIrn 8.60 +.01 -2.4 Indepn n 26.65 +.45 -6.5 IntBdn 10.19 -.01 +0.2. IntGovn 10.26 -.01 +1.4 InlDiscn 44.43 +.74 -3.6 IntlSCp rn28.34 +.35 -6.1 InvGB n 7.21 +.01 -0.3 Japann 16.87 +.35 -2.7 JpnSmn 11.83 +.18 -3.8 LCpVIrn 14.76 +.23 -6.6 LatAmn 61.15 +.48 -4.7 LevCoStk n31.42+.66 -7.8 LowPrn 41.97 +.67 -4.8 Magelln n 96.91 +1.70 -4.1 MDMurn10.76 +.01 -0.1 MAMunn11.78 +.01 -0.1 MIMunn 11.74 ... -0.1 MidCapn 29.19 +.47 -7.9 MN Mun n11.25 ... -0.2 MtgSecn 10.48 +.01 -1.0 Munilncn 12.59 ... -0.3 NJMunrnr1.46 ... 0.0 NwMktr n 14.59 -.01 -1.3 NwMilln 32.42 +.45 -5.6 NYMunn 12.67 ... -0.2 OTC n 50.22 +.86 -7.2 OhMu n 11.49 ... 0.0 100lndex 10.50 +.17 -4.4 Ovrsean 53.64+1.10 -4.8 PcBasn 32.96 +.40 -7.1 PAMun r n10.73 ... +0.2 Puritnn 19.36 +.22 -3.6 RealEn 27.73 +.62 -:.8 StlntMu n 10.28 ... +0.4 STBFn 8.63 -.01 -0.2 SmrCapnd r 2205+.32 -9.1 SmrnIlCpS r n18.65+25 -6.8 SEAsian 40.53 +.03-13.9 StkSIc n 30.35 +.50 -4.1 Strallncn 10.62 -.01 -0.1 StrReRtr 10.17 +.06 -0.2 TotalBd n 10.35 ... +0.1 Trendn 73.10+1.28 -5.3 USBIn 10.90 ... +0.5 Utilin 20.08 +.13 -3.4 ValStratn32.71 +.48 -7.9 Value n 81.65+1.30 -7.0 Fidelity Selects: Air 48.67+1.05 -8.4 Banksngn26.34 +.75 -9.6 Blotch n 68.68 +.94 -5.0 Brokr n 69.16 +1.66 -5.3 Chem n 79.51 +1.3Z -7.0 ComEquip n22.87+.50 -8.3 Compn 46.73 +.59 -7.9 ConDis n 23.20 +.42 -6.8 ConStap n68.23 +.46 +0.9 CstHon 36.60 +.74-11.6 DfAern 92.19+1.72 -4.8 Electrn 45.09 +.53 -7.7 Enrgyn 63.78+1.20 -3.9 EngSv n 95.75+2.24 -5.2 Ensirn 18.46 +.17 -6.0 Goldrn 44.86+1.35 +0.8 Health n 133.37+1.77 -2.5 HomFn 29.17+1.0O-17.8 Insur n 65.82+1.34 -6.2 Matedal n 56.39+1.09 -7.0 MedDIn 53.07 +.45 +1.5 MdEqSys n25.42 +.33 -2.5 NtGaun 47.21 +.71 -4.1 Paper 31.33 +.58 -7.2 Pharrsn 11.87 +.21 -1.2 Rerailn 46.44+1.13 -5.8 Softwrn 75.90 +.96 -5.1 Techn 79.88 +1.31 -8.5 Fidelity Spartan: Eqldxlnvn51.13 +.85 -4.7 50nlnsv r n160.60+1.68 - 4.7 TotMktlnvn40.77+.66 -4.9 Fidelity Span Adv: 56DAd r n160.62+1.69 -4.7 TotMktAd r n40.78+.66 -4.9 First Eagle: GIbIA 49.92 +.51 0.0 OveresesA27.15+.26 -1.3 First Investors A BlChpAp 24.20 +.39 -4.2 GloblAp 8.65 +.16 -2.9 GovtAp 10.84 +.02 +1.1 GrolnAp 15.86 +.29 -5.1 IncoAp 2.86 ... -3.8 MATFAp 11.57 .. -0.2 MITFAp 1202 ... -0.2 MidCpAp 29.84 +.52 -4.2 NJTFAp 1267 ... -0,2 NYTFAp 14.13 ... -0.2 PATFAp 12.70 ... -0.1 SpSM p 23.73 +.32 -3.9 TxExAp 9.74 ... +0.1 TotRtAp 15.42 +.17 -2.7 ValueB p 7.66 +.12 -4.5 Firsthand Funds: GlbTech 5.08 +.05 -3.6 Tech Val 42.30 +.61 -7.8 Frank/Temp Frnk A: AdjUS p 8.89 ... +0.5 ALTFAp 11.33 +.01 -0.2 AZTFAp 10.86 ... -0.6 Ballnvp 62.58+1.21 -7.6 CallnsAp 12.49 +.01 -0.6 CA IntA p 11.43 ... -0.3 CafTFA p 7.21 ... -0.6 0I HO T EA TmMUUL UN *:BE Here are the 1.i 0 oggest mutual31 funds listed on Nasdaq. Tables -show ie fund n3me 5iell price cr Nel Assei Value (NAV) and daily net chranige. as well as one loial return figure as follows Tues: 4 w 10rial relurri :.) Wed: 12-mo iotal return l'.,i Thu: 3 yr .:umulaiiv total return ('c) Fri: 5 vr cumulariue ioalI return (%.l Name. Name 01 mutual fund and family NAV: Net asset value Chg: Net change in price oft JAV Total return: Percent change in NAV Ior the ime period shown, with di..idenrds renvelted I period lonriger inan 1 year. return is cumula- live Data asedn onr, NAL,'s reported to Lipper by 6 p rn Eastern Footnotes: a Ex-capital gains distributon f Previous day's quote. n No-load lurid p Fund assets used to pay distribution costs. r - Redemption lee or contingent deferred sales load may apply s - STock dividend or split t Botlh p and r x Ex-cash dividend NA - No information available NE Data in question NN Fund does not wish 10o e Iracked NS Fund did not exist at start date Source: ULipper, Inc. and The Associated Press CapGrA 12.83 +.18 -3.7 COTFAp 11.81 +.01 -0.6 CTTFAp 10.89 ... -0.4 CvtScAp 15.90 +.16 -5.9 DblTFA 11.73 +.01 -1.0 DynTchA 31.40 +.39 -4.6 EqlncA p 20.38 +.37 -7.1 Fedlntp 11.37 ... 0.0 FedTFAp11.93 ... -0.4 FLTFAp 11.68 ... -0.2 FoundAlp14.01 +.19 -3.0 GATFAp 11.93 ... -0.4 GoldPrM A40.69+1.19 -1.2 GrwthAp 44.78 +.71 -4.7 HYTFAp 10.59 ... -0.8 IncomAp 2.62 +.02 -3.2 InsTFAp 12.11 +.01 -0.3 NYITF p 10.83 ... 0.0 LATFAp 11.39 +.01 -0.5 LMGvScA 10.09 -.01 +0.8 MDTFAp11.51 +.01 -0.8 MATFA p 11.72 .. -0.3 MITFAp 12.09 ... 0.0 MNInsA 11.95 ... -0.4 MOTFA p 12.07 ... -0.5 NJTFAp 11.99 ... -0.3 NYlnsAp 11.32 ... -0.9 NYTFAp 11.64 +.01 -0.2 NCTFAp 12.08 ... -0.5 OhiolAp 12.46 +.01 -0.2 ORTFAp 11.73 ... -0.2 PATFAp 10.29 +.01 -0.2 ReEScAp 19.24 +.38 -8.0 RisDvAp 34.12 +.58 -5.5 SMCpGrA 40.88 +.72 -8.9 USGovAp 6.50 +.01 +1.2 UtilsAp 15.26 +.05 +1.9 VATFAp 11.63 +.01 -0.2 Frank/Tmp Frnk Adv: IncmreAd 2.61 +.02 -3.2 Frank/Temp Frnk B: IncomeB t 2.61 +.02 -3.3 FrankrrTemp Frnk C: FoundAlp13.73 +.18 -3.1 IncomCt 2.64 +.02 -3.3 Frank/Temp Mtl A&B: BeacnA 16.74 +.21 -3.7 DiscA 32.57 +.32 -3.2 QualfdAt 23.27 +.16 -1.6 SharesA 26.34 +.36 -3.2 Frank/Temp Mtl C: DiscCt 32.15 +.31 -3.3 SharesCt25.91 +.35 -3.3 Frank/Temp Temp A: DvMktAp 33.98 -.09 -8.6 ForgnAp 12.79 +.20 -2.1 GIBdAp 11.76 ... +0.3 GrwthAp 24.26 +.46 -2.6 IntxEM p ... 0.0 WoddAp 18.59 +.23 -3.1 Frank/Temp Tmp Adv: GrthAv 24.29 +.46 -2.6 Frank/Temp Tmp B&C: DevMktC 33.08 -.08 -8.6 ForgnCp 12.55 +.19 -2.1 GrwthCp 23.59 +.45 -2.6 GE Elfun S&S: S&S PM 48.86 +.78 -3.7 GE Investments: TRFdl 19.38 +.26 -2.4 GMO Trust III: EmMk r 25.48 +.25 .-8.8 For 19.61 +.43 -2.6 IntlntrVI 37.23 +.95 -3.3 GMO Trust IV: EmrMkt 25.41 +.25 -8.9 rlriqn r'[ -: +.43'-2.6 .,'SQlE .1 iq +.82 -3.0 A t .5 37.23 +.95 -3.3 GMOTrust VI: EmgMkts r 25.43 +.25 -8.9 InflndxPI 25.91 +.04 +1.5 InllCorEq 42.51 +1.08 -3.6 USQ0IyEq 22.35 +.28 -1.1 Gabelli Funds: Asset 51.85 +.73 -4.2 Gateway Funds: Gateway 28.36 +.17 -1.5 Goldman Sachs A: HYMuAp 10.56 ... -2.3 MdCVAp 38.32 +.55 -6.2 Goldman Sachs Inst: HYMunin 10.56 ... -2.3 MidCapV 38.74 +.55 -6.2 Strulnt 16.60 +.39 -3.9 Harbor Funds: Bond 11.99 +.01 +1.1 CapAplnst 36.55 +.60 -3.5 Inl r 74.45+1.65 -2.5 Hartford Fds A: CpAppA p 39.22 +.75 -4.2 DirvGthAp 20.63 +.30 -3.5 Hartford Fds C: CapApC 135.24 +.67 -4.2 Hartford Fds L: GrwOppL-31.87 +.49 -3.7 Hartford HLS IA: CapApp 58.54+1.13 -4.8 Div&Gr 23.81 +.36 -3.6 Advisers 23.48 +.28 -3.3 Stock 53.84 +.99 -5.4 TotRetBd 11.68 +.01 -0.3 Hartford HLS IB: CapApp p 58.09+1.12 -4.8 Henderson GibI Fds: IntOppA p 27.51 +.36 -5.0 Hennessy Funds: CorGroll 26.31 +.50-12.0 HollBalFdn16.97 +.14 -1.0 Hotchki s& Wiley: MidCpVal24.81 +.46 -7.5 HussmnSltrGr 15.81-.03+0.4 ICON Fds: Energy 40.46 +.76 -4.9 Hithcare 17.39 +.20 -1.4 ISI Funds: NoAm p 7.64 +.01 +1.5 Ivy Funds: AssetSCt 26.60 +.20 +2.3 GINatRsA p 40.31+.83 -3.3 JPMorgan A Class: MCpValp26.01 +.37 -3.8 JPMorgan Select: IntEqn 40.35+1.13 -1.4 JPMorgan Sel Cls: IntrdAmrern27.98+.42 -5.6 Janus: Balanced 26.19 +.29 -1.8 Contrarian 19.82 +,28 -2,6 Enterpr 55.29 +.68 -4.1 FedTE 6.47 .. -0.9 FIxBnd 9.58 .. +1.2 Fund 31.43 +.55 -4.6 FundaEq 27.74 +.54 -6.0 GI UfeSc 23.63 +.39 -0.2 GITechr 15.20 +.25 -4.4 GrInc 40.12 +.85 -6.,8 MdCpVal 25.20 +.37 -3.5 Orion 12.56 +.22-4.1 Ovrseasr57.17 +.92 -3.8 Research 29.96 +.49 -3.8 ShTmBd 2.89 ... +0.4 Twenty 70.04 +1.16 -2.8 Ventur 70.93+1.03 -6.5 WddW r 54.66+1.02 -5.5 Janus Adv S Shrs: Forty 39.22 +.65 -4.3 JennlsonDryden A: BlendA 18.61 +.30 -5.1 HiYldAp 5.48 +.01 -2.7 InsuredA 10.56 ... -0.4 John Hancock A: SBodAp 14.78 +.01 0.0 ClassicVIp 23.49+.48-10.4 RgBkA 31.19 +.85 -6.3 SIrlnA p 6.56 ... -0.2 John Hancock B: StrlncB 6.56 .. -0.2 John Hancock CI 1: LSAggr 15.64 +.27 -5.0 LSiBalanc 14.83 +.16 -3.3 LSGrwth 15.51 +.21 -4.1 Julius Bser Funds: IntlEql r 49.72 +.64 -3.3 IntlEqA 4.60 +.63 -3.3 IntEqlllr 17.26 +.24 -2.8 KeelSmrCp p27.04+.54 -7.3 Kinetics Funds: Pdrm 30.36 +.27 -6.9 LSWalEq n18.22 +.37 -6.5 Lazard Insti: EmgMktl 25.98 +.30 -4.0 Legg Mason: Fd Splnvp 33.75 +.45-11.6 VauTrp 66.06+1.12 -8.8 Legg Mason InstI: ValTrdnst 74.25+1.27 -8.7 Legg Mason Ptrs A: AgGrAp 114.44+2.25 -3.7 HilncAt 6.39 ... -3.8 InAICGA p 15.17 +.25 -2.5 LgCpGA p 24.80 +.30 -4.9 Legg Mason Ptrs B: CaplncBt 17.06 +.15 -3.7 LgCpGBt122.99 +.27 -5.0 Longleaf Partners: Partners 33.45 +.49 -6.5 Intl 19.88 +.33 -0.4 SmCap 28.19 +.46 -3.5 Loomis Sayles: LSBondl 14.71 +.04 -1.6 StrIncC 15.16 +.04 -1.9 LSBondR 14.67 +.05 -1.6 StrIncA 15.11 +.05 -1.8 Lord Abbott A: AfilAp 13.66 +.22 -5.3 BdDebAp 7.87 +.02 -2.4 MidCpAp21.59 +.30 -7.7 MFS Funds A: MITA 22.02 +.38 -3.3 MIGA 15.12 +.26 -2.6 HiinA 3.65 ... -3.3 IntNwDA 29.52 +.59 -6.2 MFLA 9.86 -.01 -0.6 TotRA 16.39 +.19 -2.9 ValueA 27.90 +.48 -4.0 MFS Funds B: MIGBn 13.64 +.23 -2.6 GvScB n 9.60 +.01 +0.9 HilnBn 3.66 ... -3.3 MulnBrn 8.44 ... -0.4 TotRBn 16.38 +.19 -2.9 MFS Funds Instl: IntlEq n 21.63 +.45 -2.2 MainStay Funds A: HiYIdBA 6.22 ... -1,6 MainStay Funds B: CapApB t32.11 +.57 -5.8 ConvBt 16.54 +.13-2.8 GovLBt 8.31 +.02 +0.8 HYIdBBt 6.19 +.01 -1,7 InllEqB 16.20 +.27 -3.0 SmCGBp 14.72 +.31 -7.0 TotRtBt 1922 +21 -3.3 Mairs & Power: Growth 79.00 +1.55 -3.3 Marsico Funds: Focus p 21.52 +.36 -4.0 Growp 22.56 +.37-4.5 21stCntp 17.76 +.18 -3.6 Matthews Asian: China 38.85 ...-12.3 India r 22.53 +.05 +2.6 PacTiger 30.09 +.45 -6.8 Mellon Funds: IntlFd 17.59 +.35 -2.9 Midas Funds: Midas Fd 5.92 +.20 -0.8 Monetta Funds: Monettan 15.57 +23 -4.6 Morgan Stanley A: DivGthA 20.51 +.33 -4.8 Morgan Stanley B: DivGtB 20.66 +.34 -4.8 GIbDivB 16.41 +.33 -3.9 StratB 20.73 +.22-2.9 MorganStanley Inst: EmMkt n 38.93 +.37 -7.9 GIValEqAn20.93+.42 -4.0 IntlEqn 22.69 +.36 -1.2 Under Funds A: IntemtA 23.38 +.29 -7.3 Mutual Series: BeacnZ 16.89 +.21 -3.7 DiscZ 32.99 +.32 -3.2 QuasfdZ 23.47 +.17 -1.6 $haresZ 26.59 +.36 -3.2 Neuberger&Berm Inv: Focus 32.61 +.48 -3.8 GenesInst 53.81 +.73 -2.2 Inl r 24.88 +.48 -6.9 Partner 32.16 +.57 -5.7 Neuberger&Berm Tr: Genesis 56.05 +.76 -2.2 Nicholas Group: Hilnc In 10.22 +.01 -3.2 Nich n 55.15 +.76 -3.4 Northern Funds: SmCpldx n10.35 +.20 -6.3 Technlyn 13.79 +.17 -6.1 Oak Assoc Fds: WhitOkSG n36.29+.62 -5.9 Oakmark Funds I: Eqtylnc r n29.01 +.20-0.2 Global n 26.69 +.54 -4.0 Intl I r 24.59 ... NA Oakmark r n44.35+.72 -5.4 Select r n 29.30 +.65 -8.8 Old Mutual Adv II: Tc&ComZn16.40+.18 -4.5 Oppenheimer A: AMTFMu 9.13 +.01 -3.8 AMTFrNY 12.48 +.01 -2.4 CAMuniAp 10.55 ... -3.1 CapApA p 51.03 +.92 -5.8 CapincAp 12.50+.07 -4.0 ChmplncA p 8.77+.01 -5.2 DvMktA p 52.83 +.53 -5.6 Discp 55.13 +.81 -6.6 EquityA 11.65 +.20 -6.2 GlobAp 76.83+1.30 -4.8 GIbOppA 36.98 +.55 -9.3 Goldp 38,09+1.36 -4.1 IntBdAp 6.70 -.02 +3.2 MnStFdA 41.34 +.72 -6.1 MnStOAp 14.94 +.27 -6.3 MSSCAp21.42 +.39 -7.1 MidCapA 19.30 +.28 -7.3 PAMuniAp 12.32 ... -1.9 S&MdCpVI 38.95+.47 -6.5 StrInA p 4.45 .. +0.6 USGv p 9.53 ... +0.4 Oppenheimer B: AMTFMu 9.09 ... -3.8 AMTFrNY 12.49 +.01 -2.3 CplncBt 12.35 +.07-4.0 Chmplnct6t8.76 +.01 -5.3 EquityB 10.99 +.19 -6.3 StrncB t 4.46 -.01 +0.3 Oppenhelm Quest: QBalA 17.96 +.31 -4.7 Oppenheimer Roch: LtdNYA p 3.32 ... -0.3 RoMu A p 17.73 ... -2.3 RcNIMuA 11.20 ... -3.6 PIMCO Admin PIMS: TotRtAd 10.69 ... +0.9 PIMCO InstI PIMS: AllAsset 13.15 +.04 -0.7 ComodRR 16.56 +.22 +5.9 DevLcMkr11.56 ... +0.2 Fllnc r 9.94 -.01 -2.2 HiYld 9.47 +.01 -2.1 LowDu 10.16 ... +1.0 RealRtnl 11.38 ... +3.0 TotRt 10.69 ... +0.9 PIMCO Funds A: TotRtA 10.69 ... +0.8 PIMCO Funds D: TRtnp 10.69 .. +0.9 PhoenixFunds A: BalanA 14.98 +.14 -2.0 CapGrA 16.81 +.24 -5.4 Pioneer Funds A: BoSendAp 9.24 +.01 +1.0 EurSelEqA 41.85+1.16 -5.0 GrwthA p 14.28 +.23 -5.4 IntlValA 27.27 +.54 -4.5 MdCpGrA 16.34 +.23 -5.9 PionFdAp49.51 +.90 -3.7 TxFreAp 11.23 ... -1.4 ValueAp 16.81 +.28 -6.1 Pioneer Funds B: HiYldBt 10.99 +.05 -4.1 Pioneer Funds C: HiYdCt 11.10 +.05 -4.1 Price Funds Adv: Eqlncp 29.16 +.46 -4.5 Growth pn33.77 +.52 -4.3 Price Funds: Balance n21.95 +.25 -2.6 BIChipn 39.41 +.65 -4.6 CABondnlO.84 ... -0.3 CapAppn21.30 +.18 -2.6 DivGro n 26.22 +.39 -3.7 EmEurp 38.10 +.06 +0.5 EmMklS n43.05 -.17 -7.4 Eqlnc n 29.22 +.45 -4.4 Eqlndex n38.73 +.65 -4.7 Europe n 22.85 +.43 -3.7 GNMAn 9.51 +.02 +1.2 Growth n 34.09 +.52 -4.3 Gr&Mlnn 22.33 +.34 -3.7 HmhScin 29.83 +41 -2.5 HiYleld n 6.72 ... -2.6 IntlBondn10.57 +.01 +3.5 IntDis n 54.28 +,54 -6.7 IntlStkn 18.80 +.30 -3.4 Japan n 10.64 +.22 -1,7 LalAm n 53.69 +.37 -4.3 MDShrtn 5.15 ... +0.2 MDBond n1O.41 ... -0.4 MidCapn 60.97 +.67 -5.1 MCapVal n25.38 +.32 -4.2 NAmern 34.82 +.44 -5.1 NAsian 21.33 -.31-10.5 New Era n60.47 +1.02 -4.1 N Horiz n 33.33 +51 -6.9 N Incn 9.04 +.01 +0.9 NYBond n11.13 ... -0.5 PSIncn 16.47 +.13 -1.6 RealEst n 20.72 +.38-10.1 R2010n 16.70 +.17 -2.7 R2015n 13.03 +.15 -3.1 R2020 n 18.25 +.23 -3.5 R2025n 13.52 +.18 -3.9 R2030n 19.56 +.28 -4.1 SciTec n 23.22 +.27 -6.6 ShtBd n 4.74 ... +0.8 SmCpStk n33.45 +.61 -5.8 SmCapVal n40.85+.67 -5.1 SpecGrn 21.72 +.33 -4.8 Specinn 12.30 +.04 -0.1 TFIncn 9.83 ... -0.4 TxFrHn 11.57 ... -12 TxFrSI n 5.35 ... +0.3 USTInt n 5.53 -.01 +2.7 USTLgn 11.99 +.04 +3.5 VABond n11.43 ... -0.4 Value n 27.01 +.41 -5.5 Principal Inv: DiscLClnst 16.66 +.26 -4.6 LgGrIN 9.32 +.14 -3.4 Putnam Funds A: AmGvAp 9.18 +.01 +1.2 AZTE 9.06 ... -0.2 Conv p 20.05 +.15 -4.1 DiscGr 21.52 +.34 -5.3 DvrlnAp 9.68 +.03 -2.2 EqinAp 17.54 +.29 -5.3 EuEq 3220 +.84 -4.0 GeoAp 17.72 +.19 -3.9 GIbEqtyp11.85 +.18 -6.9 GrinAp 18.39 +.34 -7.0 HIthAp 58.71 +.92 -2.0 HiYdA p 7.68 +.02 -2.9 HYAdAp 5.98 +.01 -2.7 IncmAp 6.77 +.01 -0.2 IntiEq p 34.00 +.77 -4.2 inlGrlnp 16.70 +.30 -5.4 InvAp 14.14 +.32 -7.3 NJTxAp 9.16 ... 0.0 NwOpAp 50.82 +.75 -5.9 OTCAp 9.70 +.15 -5.7 PATE 9.02 ... -0.2 TxExAp 8.62 .. -0.4 TFInAp 14.68 ... -0.1 TFHYA 12.64 ... -0.8 USGvAp 13.28 +.02 +0.3 UtilAp 15.92 +.07 +1.2 VstaAp 11.21 +.17 -7.7 VoyAp 18.64 +.28 -4.3 Putnam Funds B: CapAprt 19.42 +.40 -6.6 DiscGr 19.54 +.31 -5.3 DvrinBt 9.60 +.03 -2.2 Eqlnct 17.37 +.29 -5.4 EuEq 31.02 +.81 -4.1 GeoBt 17.52 +.19 -3.9 GIbEqt 10.76 +.17 -6.9 GINtRst 34.79 +.60 -4.6 GrInBt 18.09 +.33 -7.0 HlthBt 51.77 +.81 -2.0 HiYdBt 7.65 +.01 -3.0 HYAdBt 5.89 ... -2.9 IncmBt 6.73 +.01 -0.3 IntGrInt 16.34 +.30 -5.4 IntlNopt 17.80 +.41 -4.8 InvBt 12.85 +.29 -7.4 NJTxBt 9.15 ... -0.2 NwOpBt 44.93 +.66 -5.9 NwValp 17.73 +.34 -6.3 OTCBt 8.43 +.13 -5.8 TxExBt 8.62 ... -0.5 TFHYBt 1266 ... -0.9 TFInBt 14.70 ... -0.2 USGvBt 13.21 +.02 +0.2 UlSiBt 15.83 7 .+1.2 VistaBt 9.63 +.15 -7.8 VoyBt 16.08 +.24 -4.3 RS Funds: CoreEqA 41.95 +.57 -3.2 IntGrA 20.84 +31 -3.7 Value 27.95 +.39 -5.0 Rainier Inv Mgt: SmMCap 42.39 +.78 -8.8 RiverSource A: BalanceA 10.95 +.12 -3.7 DEI 13.43 +.22 -5.7 DvOppA 9.15. +.14 -5.0 Growth 33.37 +.33 -3.2 HiYdTEA 4.29 ... -0.8 LgCpEq p 6.60 +.08 -4.5 MCpGrA 11.91 +.22 -6.3 MidCpVIlp 9.49 +.15 -6.6 Royce Funds: LwPrSkSv r 17.13+.29 -4.5 MicroCapI 18.47 +.27 -4.5 PennMul r 11.78 +.20 -4.8 Premerlr 19.50 +.29 -3.9 TotRetl r 13.78 +.22 -4.5 ValSvct 11.27 +.21 -6.4 VIPISvc 14.62 +.30 -6.0 Russell Funds S: DivEq 51.55 +.90 -5.4 IntlSe 84.99+1.68 -3.4 MStratBd 10.43 +.02 +0.3 QuantEqS 40.69 +.63 -5.0 Rydex Advisor: OTCn 1280 +.14 -6.3 SEI Portfolios: CoreFxAnlO.19 +.01 +0.1 IntlEqAn 15.41 +.36 -5.0 LgCGroAn23.15 +.01 -3.6 LgCVaIAn21.87 +.01 -6.3 TxMgLCn13.92 +.01 -4.7 SSgA Funds: EmgMkt 29.84 +.32 -7.7 ntlStock 14.38 +.29 -4.6 STI Classic: LCpVIEqA 15.05 +.22 -4.9 LCGrStkA p 13.51+.19 -3.8 LCGrStkC p12.53+.17-3.9 SelLCSkCt 28.51 +.42-2.2 SelLCpStk 30.99 +.46 -2.1 Schwab Funds: HIthCare 16.47 +.24 -2.1 1000lnvr 42.65 +.68 -4.7 100OSel 42.69 +.69 -4.7 S&P Inv 22.53 +.37 -4.7 S&PSel 22.63 +.38 -4.6 S&PlnstSI 11.55 +.20 -4.6 SmCplnv 23.20 +.42 -5.7 YIdPIsSI 9.27 -.03 -1.3 Selected Funds: AmShD 47.16 +.77 -4.1 AmShSkp 47.02 +.77 -4.2 Sellgman Group: ComunA 136.81 +.31 -5.3 FrontrAt 11.61 +.18 -8.2 FrontrDt 9.47 +.15 -8.3 GIbSmA 15.86 +.22 -6.7 GIbTchA 17.92 +.13 -6.4 HYdBAp 3.16 ... -4.0 Sentinel Group: CornS A p 34.87 +.52 -4.3 Sequoia n157.17+1.45 -2.5 Sit Funds: LrgCpGr 45.11 +.62 -3.3 SundSh 39.60 +.51 -4.1 St FarmAssoc: Gwlh 61.95 +.89 -2.2 Stratton Funds: Dibdend 30.95 +.46 -6.2 MuI-Cap 45.00 +.77 -3.1 SmCap 46.53 +.75 -6.7 SunAmerica Funds: USGvBt 9.46 +.02 +1.6 Tamarack Funds: EntSmCp 29.42 +.69 -5.2 Value 40.95 +.72 -4.7 Templeton Instilt: EmMS p 25806 -.07 -4.6 FofEqS 30.63 +.47 -2.4 Third Avenue Fds: Inld r 22.81 +24 -6.1 RIEstVlr 31,49 +.61 -7.1 LgCpStk 29.25 +.48 -4.4 TA IDEX A: TempGIbA p33.55+.685-3. TrCHYBp 8.78 +.01 -3.1 TAFtvlnp 9.10 ... -0.3 Turner Funds: SmlCpGrn31.44 +.59 -6.8 Tweedy Browne: UBS Funds Cl A: UMB Scout Funds: Intl 37,53 +.53 -2.5 US Global Investors: . AIIAm 29.68 +.41 -6.8 GIbRs 19.60 +.45 -6.2 GIdShr 19.19 +.59 +1.2 USChina 15.36 -.10-15.5 WidPrcMn 33.73+1.16 -2.3 USAA Group: AgvGt 37.19 +.61 -4.4 CABd 10.70 ... -1.0 -- cIOL bic-13 AA Lin aic vc..e3p c CmstStr 27.93 +.38 -3.9 GNMA 9.66 +.02 +1.2 GrTxStr 14.19 +.09 -3.0 Grwth 17.10 +.29 -4.4 Gr&Inc 19.25 +.30 -4.9 IncStk 15.79 +.27 -6.1 Inco 12.19 +.02 +0.4 Intl 29.29 +.64 -2.1 NYBd 11.67 ... -1.0 PrecMM 35.65+1.16 -0.9 Sc[Tech 12.72 +.16 -5.4 ShtTBnd 8.95 ... +0.7 SmCpStk 14.49 +.26 -6.7 TxElt 12.94 ... -0.5 TxELT 13.50 +.01 -1.0 TxESh 10.57 ... +0.2 VABd 11.23 +.01 -0.6 VWdGr 21.61 +.38 -1.7 VALIC: MdCpldx 24.35 +.30 -5.6 Stkldx 37.73 +.63 -4.7 Value Line Fd: LrgCo n 23.88 +.39 -4.2 Van Kamp Funds A: CATFA p 17.70 ... -1.4 CmstAp 18.49 +.32 -4.6 CpBdAp 6.57 +.02 +0.2 EqincAp 9.18 +.09 -2.4 Exch 482.49 7.81 -2.8 GrinAp 22.13 +.34 -3.4 HarbAp 16.07 +.12 -3.5 HiYtdA 10.28 +.01 -2.3 HYMuAp 10.61 ... -1.4 InTFAp 1741 -.01-2.1 MunlAp 14.15 ... -1.3 PATFAp 16.63 ... -1.3 StrGrwth 47.34 +.63 -7.7 StrMunlnc 12.69 ... -1.8 US MtgeA 13.26 +.03 +0.4 UtilAp 24.98 +.07 -0.3 Van Kamp Funds B: EnterpBt 13.91 +.20 -4.9 EqlncBt 9.02 +.09 -2.4 HYMuBt 10.61 ... -1.4 MulB 14.13 ... -1.3 PATFBt 16.58 ... -1.3 StrGwth 39.77 +.52 -7.8 StrMunInc 12.68 .. -1.8 USMtge 13.20 +.03 +0.4 UtilB 24.84 +.07 -0.4 Vanguard Admiral: CAITAdmnlO.89-.01 -0.2 CpOpAdln93.67+1.56 -5.2 Energy n154.33 +1.98 -1.9 EuroAdml n96.60+2.36-2.3 ExplAdml n71.34+1.17 -6.5 ExtdAdm n39.55 +.61 -6.3 500Adml n133.08+2.23-4.7 GNMAAd n10.38+.02 +1.3 GrolncAd n58.47 +.95 -5.4 HIthCrn 64.07 +1.47 +0.1 HiYldCpn 5.85 ... -2.9 InfProAd n24.72 +.04 +3.3 ITsryAdmln11.28 ... +2.3 IntGrAdm n87.17+1.94 -2.5 ITAdmn r13.21 ... 0.0 ITGrAdmln 9.86 -.01 +1.1 UdTrAd n 10.76 ... +0.4 MCpAdmln92.30+1.349-6.0 MorgAdm n63.63+1.02 -4.9 MuHYAdm n10.58 ... -0.7 PrmCapprn77.48+1.40 -4.1 ShtTrAd n15.64 ... +0.3 STIGrAdnlO.70 .. +0.9 TxMCap rn70.10+1.13-5.0 TtlBAdml n1O.14 +.01 +0.9 TStkAdn n34.79 +.56 -4.9 WellsAdrm n53.77+.29 -1.1 WelltnAdm n58.62+.59 -1.8 Windsor n60.39 +1.10 -5.8 WdsrllAd n62.17 +.99 -5.6 Vanguard Fds: AssetA n 29.66 +.45 -3.9 CALTn 11.41 .., -0.8 Cap0ppn40.51 +.67 -5.2 Convrtn 14.73 +.11 -1.8 DivdGron 15.11 +.22 -2.4 Energyn 82.13+1.06 -1.9 Eqlnc n 25.48 +.39 -4.4 Expirdn 76.52+1.26 -6.5 FLLTn 11.49 .. 0.0 GNMAn 10.38 +.02 +1.3 GlobEq n 25.23 +.48 -6.1 Grolncn 35.79 +.58 -5.4 GrthEqn 12.90 +.19 -4.4 HYCorp n 5.85 ... -2.9 HlthCre n151.70+3.48 +0.1 InfiaPr6n 12.59 +.02 +3.4 IntlExpIrn21.96 +.48 -8.2 InlGr n 27.35 +.61 -2.5 IntlValn 45.07+1.06 -3.1 ITIGrade n 9.86 -.01 +1.1 ITsry n 11.28 ... +2.3 LifeConn 17.15 +.15 -1.7 UfeGro n 24.98 +.38 -3.8 Ufelncn 14.31 +.08 -0.6 UfeMod n21.26 +.25 -2.8 LTIGraden9.15 +.03 +0.3 LTTsry n 11.60 +.04 +3.0 Morg n 20.49 +.33 -4.9 MuHYn 10.58 ... -0.7 MuinsLg n12.35 ... -0.5 Mulntn 13.21 ... 0.0 MuLtdn 10.76 ... +0.4 MuLong n11.07 .. -0.4 MuShrtn 15.64 ... +0.3 NJLTn 11.66 ... -0.4 NYLTn 11.04 ... -0.7 OHLTEn1l.83 ... -0.1 PALTn 11.13 .. -0.5 PrecMls r n35.76+.96 -4.7 PrmcpCorn13.24+.25 -4.4 Prmcprn 74.59+1.35 -4.1 SelVaJurn20.76 +.35 -4.7 STAR n 21.87 +.26 -2.7 STIGradenl.70 ... +0.8 STFedn 10.51 .. +0.9 STrsryn 10.61 -.01 +1.6 StratEq n 22.73 +.39 -7.6 TgtRe2O25n13.80+.19 -3.5 TglRe2015 n13.20+.15 -2.7 TgtRe2035 n14.65+.22-4.1 USGron 19.45 +.30 -4.9 USValue n14.19 +.25 -6.1 Wellslyn 22.19 +.12 -1.2 Welln n 33.94 +.34 -1.8 Wndsrn 17.89 +.33 -5.7 Wndsll n 35.01 +.56 -5.6 Vanguard Idx Fds: 50 n 133.06+2.22 -4.7 balanced n21.87 +.22 -2.6 DevMktn 14.01 +.32 -2.6 EMk n 32.59 +.44 -6.7 Europe n 41.09+1.60 -2.3 Extend n 39.48 +.61 -6.3 Growth n 32.41 +.46 -3.4 ITBnd n 10.51 +.01 +1.5 LgCaplxn26.12 +.41 -4.7 MidCap n 20.32 +.29 -6,0 Pacific n 13.13 +27 -3.5 REITrn 21.50 +.43 -8.8 SmCap n 32.50 +.57 -6.3 SmICpGth n19.60+.35 -6.6 SmIlCpVI ln15.78 +.28 -6.0 STBndn 10.14 -.01 +1.3 TotBndn 10.14 +.01 +0.9 Totllntln 20.34 +.44 -3.5 TotStkn 34.78 +.56 -4.9 Value n 25.70 +.46 -6.0 Vanguard Instl Fds: Ballnstn 21.88 +.22 -2.6 DvMkIlnst n13.90+.32 -2.7 Eurolnst n41.17 +1.00 -2.3 Extlin n 39.57 +.60 -6.3 Grwthlstn32.42 +.46 -3.4 Inslldxon 132.06+2.20 -4.7 InsPIn 132.07+2.21 -4.7 TotlBdldxn51.11 +.05 +0.9 lnsTStPlusan31.37+.50 -4.9 MidCplst n20.40 +.30 -6.0 Paclnstn 13.16 +.27 -3.4 SCInstn 32.57 +.57 -6.3 TBIstn 10.14 +.01 +0.9 TSInstn 34.80 +.57 -4.9 Valuelst n25.70 +.45 -6.0 Vanguard Signal: 5600g1n109.92+1.84 -4.7 Tot~dSgl n10.14 +.01 +0.9 TotStkSgl n33.58 +.55 -4.9 Vantagepoint Fds: Growth 10.33 +.16 -5.2 Victory Funds: DvsStA 17.59 +29 -3.7 WM Blair MIl Fda: IntlGthI r 32.94 +,50 -5.4 Waddell & Reed Adv: AssetSp 12.95 +.10 +2.3 CorelnvA 6.75 +.12 -4.8 SeTechA 13.25 +.21 -5.4 Wasatch: SmCpGr 38.95 +.53 -5.1 Wells Fargo Adv: CmStkZ 21.48 +.33 -5.2 SCApValZ p 33.47+.58 -7.6 Western Asset: CorePlus 10.13 -.01 -1.6 Core 10.85 +.01 -1.9 as. hs. b AM aO. - a omm *n 0 a. 0 c~ a ee Oe a a a - -e - fl S "Copyrighted Material w -- Syndicated Content SAvailable from Commercial News Providers" 0 .w, p - - a -0 - -a - 0 41b dip a e-- a- a - O -a a - - a - ~ a - - -a a - 4 o 0* - 41- qm0w a - -f r a -- - e - a- .-- NEED A KnPOKitf. DIv Name Last Chg .40 SmithInt 63.86 +1.89 .21e SonyCp 49.08 +1.75 .60 Sethebys 35.75 +1.02 1.081 SoJerlnd 38.02 +.26 1.61 SeuthnCo 38.04 -.02 6.80e SthnCopper104.20 +4.00 .02 SwstAirl 13,73 +.23 ... SwstnEngy 49.69 +.45 .32 SovrgnBcp 10.96 +.38 .88 SpectraEn 24.48 -.02 10 SnrintNex 1508 +23 .12 StdPac 2.66 +.26 ,84 Standex 19.92 +.71 .90e StarwdHtl 53.50 +1.84 .88 SlateStr 77.76 +1.97 .24 Sleds 27.29 +.37 .. Sterilen 22.30 +.47 ... sTGold 81.25 +1.89 .221 Stryker 70.64 +.36 ... SturmRug 9.37 +.51 3.00f SubPpne 42.10 +.13 2.52 SunCmts 24.35 +.41 .40 Suncorg 102.35 +1.45 1.10 Sunoco 67.73 +1.64 Suntech 68.05 +4.31 2.92 SunTrst 68.39 +2.59 .68 Supvalu 41.02 +.53 .82 Synovus 23.79 +1.05 .88f Sysco 31.87 +.06 .97 TCFFncI 19.34 +.57 .78 TECO 17.12 +.12 .36 TJX 28.52 +.23 .45r TaIwSemi 949 +22 .18 TalismEgs 18.62 +.35 .56 Target 57.17 +3,.07 .37e TataMotors 18.16 +1.26 1.00 TeckCmgs 37.84 +.30 1.10f Teekay 53.20 +4.88 .40e TelNort 20.20 -.64 4.14e TelcNZs 15,.98 +.74 .79e TelMexL 35.49 +1.12 1.12 Templeln 42.83 +.79 .32 TempurP 29.51 +.15 .86e Tenasr 45.94 -.36 TenetHIth 3.97 +.01 2.78f Teppco 39.70 +.13 Teradyn 10.60 +.22 ... Terex 60.24 +1.63 .. Terra 34.67 +1.02 7.64e TerraNito 103.56 +2.65 .40 Tesoros 55.92 +.92 ... TeraTech 15.14 +.42 .40f TexInst 30.91 +,27 .92 Textron s 66.98 +3.06 .. Theragen 3.81 -.21 TherrnoRs 57.21 +.50 ... ThmBet 51.96 +1.75 .28a Thor Inds 36.01 -.27 2.04j Thombg 9.32 +.28 1.92 3MCo 82,75 +1.51 .60 TSiwtr 50.66 +1.13 .60 Tiffany 47.99 +1.64 TW.Cable n 24.66 -.26 .25 TimeWam d16,72 +17 a a - - -e ~e - -e - a e- a4a-. a. a- a -e 0'~ - - - -e - O 5 * a - ab a-- - S the *eart of MC 19% Solar Lights & More 690-9664 1-800-347-9664 4 Solar Pool Heating Solar Attic Fans 4 Tubular Skylights Q Solar Water Heating I NEWYORK0 STOKECAG .68 Timken 30.41 +.71 ... TtonMet 26.04 +.45 .60 ToddShp 21.45 +.63 ... TolBrs 18,98 +.59 .48e TorchEn 10.35 +.12 .52 Trchmrk 60.60 +.94 2.281 TorDBkg 66.79 +.88 2.71e Total SA 81.45 +.59 .28 TotalSys 28.62 +1.20 ... Transoc 126.28 +4.50 1.16 Travelers 51.61 +1.56 .16 Tredgar 14.12 +.67 2.449 TriConi 21.77 +.36 ... TrinaSoln 37.11 -.26 281 Trinity 25.33 +1.01 .47e Turkcell 25.05 +.28 .14p TycoElecn 35.43 +.42 .60 Tycolnmln 39.83 +.59 .16 Tyson 14.83 +.15 1.83e UBSAG 45.24 +1.56 1.32 UDR 21.97 +.64 1.73 UILHold 35.92 -.18 ... USAIrwy 20.35 +.41 .. USEC 8.07 +.16 3.05e UUnlao 134.56 +1.46 .15 UniFrst 37.93 +1,56 1.00e UnilevNV 35.50 +.25 1.76f UnionPac 124.68 +1.77 .. Unisys 5.14 +.15 .11e UtdMicro 3.62 +.18 1.68 UPS B 70.92 +.78 1.60 USBancro 3121 +72 .80 USSteel 93,90 +2.76 1,28 UtdTech 73.46 +.68 .03 UtdhlthGp 54.07 +.66 .30 UnumGrp 23.43 +57 .. ValeantPh 11.14 +.19 .48 ValeroE 65.96 '+.88 .. VarianMed 49.22 +.69 1.26 Vectren 28,98 -.09 2,67e VeollaEnv 90.70 +.95 1.721 VerizonCm 42.64 +.69 .. ViacomB 40.70 +.50 .33e VImpelCs 32.72 +1.67 Vishay 12.09 +.10 .. Visteon 3.99 +.15 .Ole VioPait 5.43 +.01 ... VMwaren 78.84 -1.84 1.42e Vodafone 3838 +.60 3.601 Vornado 90.83 +1,27 1.84 VulcanM 81.71 +.40 .19 WHklngIf 1.40 +.11 .18 Wabash 7.12 +.09 2.561 Wachovia 41.05 +2.23 .88 WalMadl 45,73 +87 .38 Walgm 39.73 +.33 .20 Watlerlnds 33.32 +1.00 .52 WamerMus 7.01 +.08 2.24 WA Mutt 18.21 +.87 .96 WsteMInc 34.03 +.25 ... Weathfdlnt 62.29 +1.79 1.98 WeinRIt 35.59 +.71 ... Wellcare f 38.98 +1.87 .06j Wellmn .40 +.00 .. WellPoint 81.76 +.49 1.24 WellsFaro 30.84 +.92 .50 Wendys 28.10 +.64 1.08 WestarEn 25.62 +.35 1.16 WAEMInc2 12.53 -.02 .54 WslAgdHi 5.64 +.01 .75 WAstlnOpp 11.85 +.01 WD4git f 25.39 +.13 .01e WstUnion 21.68 +.58 2.40 Weyerh 68.71 +.92 1.72 WhrLpl 77.88 +1.85 .88e WilmnCS 9.16 +.18 .40 WrnmsCos, 34.94 +.90 .46 WmsSon 28.39 +,46 1.00 Windstrm 13.03 +.14 ,48 Winnbgo 21.94 +.25 1.00 WiscEn 47.65 +.01 .68 Worhgtn 20.59 +.06 1,16 Wigtey 62.47 +.73 1.121 Wyeth 46.90 +.70 .16 Wyndham 28.28 +.35 1.52 XLCap 52.99 +1.96 .60f1 XTO Engy 63.65 +1.43 .92 XcelEngy 22.16 +.06 ... Xerox 16.56 +.47 .04 Yamanag 13.94 +.76 ... Yinglin 25.73 +.79 .60 YumBrdss 37.65 +.44 ... ZaleCp 20.38 +.73 SZimmer d64.55 +1.07 .50 ZwelgTll 4.44 +.08 a - - 6 - se.- - a --a - a- a - S - 5 a a ~ a a o e ___ e -~ r - ~- .e 0 0 e - -. -- a-~ a aS e a -e ~* - S r S C 0 a4W @N d. 0w o - a - 0. - .GN SATuRDAY, Novr--MBER 24, 2007 9A BUSINESS r IFT)CmnvrF -.41. - A I Over 90 Custornizable Floor Plans Priced From $85,000-S300,00D o B Q o ) a SATU F? I. E? A No\ FMBER 24, 200)7 /:- CITRUS COUNTY CHRONICLE A EDITORIAL BOARD Gerry M ulligan .............. ..............publisher Charlie Brennan ............. .................editor Neale Brennan ......promotions/community affairs Kathie Stewart ..................circulation director "Children are poor men's riches." English proverb, CITRUS COUNTY CHRONICLE Straight talk, straight awmay I a. -.~ -~ - -- = _ .~.% 4.3 ____ ~ ~- - - - m -.~ - . - ~ - - - 0.~e - __ - -~ - - - . TAKE STOCK TurboCharge2 is an opportunity to invest in Ltomnow t's a statewide program with a local impact, and for some Citrus County students it's a once-in-a-lifetime opportunity to make the most of their education. Local donors have a new oppor- tunity as well. TurboCharge2 is a program that will triple the value of each donation through the match- ing funds available. The original dona- tion of $5,000, matched dollar for THE I! Take S Chilc OUR OP Get inv( TurboC dollar by the corporate board of Take Stock in Children, will then be matched again by the Philip A. Benjamin Community College Fund and the Florida Prepaid College Fund, bringing the dona- tion value to $30,000. And that's enough for three of the organization's -c hola rships. The local chapter'-of Take Stock in Children is sponsored by the Withlacoochee Workforce Development Authority Inc. in partnership with the Citrus, Levy and Marion Workforce Connection and provides college scholarships for students from low-income families. Not only are funds provided, but also mentoring and intervention services, career and education counseling. It's not just free money, howev- er, as academic and behavior requirements must be met and students SSUE: must remain drug- oc in and crime-free. *oLk I Parental involve- lren. ment is also required, as well as *INION: participation in lived in education counsel- narge2. ing. This is.a wonder- ful opportunity for individuals to see the impact of their gifts. Organizations that participate in fundraising for charitable causes should also consider Take Stock in Children as a recipient of donations. There is no better investment than in the lives of children. For a student to earn a college schol- arship and have the benefit of mentoring, the effects will stay with them long after their col- lege years. This program gives kids who might not otherwise have a chance to improve their position in life the incentive and motivation to get on the right track and stay on the right track. And that's priceless. - .~ "D -. ---mom -44 - - -- 6 .m 4M p- .0 - I- Wm - - - - =. a. -. ~ = 9-- -- _ a - - I% -6 'm m U m 40b m 4b t4w - ~ - - - -~ . - ~- b~ ~ - ~- a.- - - *. ~ -- - -- -.~ - -.- .. Copyrighted Material ---- -" ._. -: *Syndicated Content - : - Available from Commercial News Providers" ~rK .4 - : w~.s Hot Corner: IM PACT &EE ---- Ebb and flow This is in regard to the article on the front page talking about impact fees and how some of the people in construction are suffer- ing and out of work. I have worked construction for a long time. Construction has a natural ebb and flow and you have to move around. You have to go out of town to work. It's not up to us to bail out the construction and building industry, which So definitely (hurt) itself by overbuilding and just totally inflating the prices, and now they're sitting rcs there with a fallout of V that. The impact fees are f . appropriate because the county's gqt to grow in a regulated manner. The CAL. roads are already overfull, schools are full, hospitals 563 are full. You have to have growth that's regulated and not just totally out of control. Can't have it all In reference to the growth in Citrus County: All I heard for the past two years was: "Let's stop all this overcrowding in this area." "We don't need another New Port Richey." "There's too much traffic on U.S. 19." "There are too many new housing developments going in." Now all I hear is: "We want a Target store." "We want an Olive Garden restaurant." People, what do you want? You can't have all this without creating more traffic on these already overcrowded roadways. Impact fees were creat- ed to fund new roads, fire stations and things that make this county more livable to the citizens that are already here. I say if you feel the need to have a Target or an Olive Garden, go visit the one in Ocala or New Port Richey and get a taste of what uncontrolled growth is, Nationwide slump The Citrus County housing * slump is not because of impact fees. This is a nationwide, Florida- wide problem. I don't want to pay higher taxes so builders and real estate agents can sell more. It's easy for a builder to complain about higher impact fees but close his eyes to the nationwide building slump. Don't lower impact fees so I subsidize builders and develop- ers. Take right step JN I think the proposal by Gary Bartell, Dennis Damato and John Thrumston is a step in S the right direction, to either freeze the impact S fees for possibly a six- ^5 month period or more, or S at least cut them in half. It's outrageous that Vicki 0 579 Phillips and Joyce 0579 Valentino don't want to do this, and their con- cern is more with roads than with people ... Just proposing this isn't enough. We need to really enact what they're saying here. So when they do enact this, then we can applaud them. But, you know, at this point I'd say it's a step in the right direction and we need to move forward. And we need to cre- ate more jobs for the people by eliminating these impact fees or cutting them down for a period of time and stimulate the economy here in Citrus County. Dollar amounts This is on impact fees. I wonder if anyone out there has any idea of the dollar amount of the revenue that has been generated by the impact fees, if any. Also, does any- one know how much revenue has been generated by the 6-cents gas tax actually, I think it's a total of 12 cents and on that tax, what has been raised vs. what was expected? I think those would be interesting and telling numbers if anyone has access to that and could share. LETTERS Dream Act facts Please allow a response to letter of Ms. Dobronyi on the Dream Act With all due respect, madam, your submis- sion on the Dream Act was in truth an awakening, or, more precisely, "A Sleeper Amnesty" Your submission attempts to pull at the heartstrings and to reflect our Senate as cold- hearted and as you put it "irrational"! The Social Progressive and Liberal Democratic leadership wants to pass this bill so bad that Mr. Richard (Dick) Durbin (D) announced on the Senate floor his intention to offer this pipe dream as an amendment to the defense authorization bill. Ms. Dobronyi, this bill is a bloody nightmare. In your submission, you say this bill would have provided a path to citizenship for "some" young, undocumented immigrants. Your "some," madam, are millions who entered our country illegally before or at the age of 16. What you did not say was that this act would allow illegal aliens to receive in-state tuition rates at public universities. This discriminates against American-born citizens who come from out of state and law-abid- ing foreign students. What you did not mention, madam, was that the Dream Act would repeal a 1996 federal law that prohibits any state from offering in-state tuition rates to illegal aliens unless the state also offers in-state tuition rates to all U.S. citizens. You also did not disclose in your submission the fact that the illegal alien who applies for this amnesty Dream Act is immediately rewarded with a "conditional lawful permanent status," what we immigrants call a Green Card. Yes, ma'am, "we." I am an immi- grant to this country. I entered this country "legally"! After four years of OPINIONS INVITEE l All letters must be signed and phone number and hometown, letters sent via e-mail. Names hometowns will be printed; phc bers will not be published or gi IN We reserve the right to edit lett length, libel, fairness and good Letters must be no longer than words, and writers will be limited three letters per month. SEND LETTERS TO: The Editor, Meadowcrest Blvd., Crystal Rive 34429. Or, fax to (352) 563-32 mail to letters@chronlcleonllna "legal" residency, I applied fc American citizenship. I stood Federal judge, answered som tions about our country, pledge loyalty to this country, and wa accepted and admitted to citi I might add this was all done English language. In closing, Ms. Dobronyi, I w to you, submit the facts, all the Mich Insurance social According to Dr. Dixon, eve this country has access to qua health care. He suggests later article that emergency room is part of everyone's health ca being the case, if you have to enough to go to the emergency you do not have quality health You simply have one time em service. to the Editor The truth is, if you do not qualify D for Medicaid, cannot afford physician nicle edi-. and hospital service, and do not have editorial insurance, you are up the creek with- car- out a paddle. ot neces- I do not like socialism. I like to be the edito- able to pay for what I get. I think most Ad to people do, but we already have a er to the form of socialism. The half of us who are blessed enough to have health editorial insurance, or otherwise can afford 660. care, are paying for (please note) the include a emergency room service of the other including half. Why not spread the cost amonj and the population. This would not comr ven out. pletely solve the problem, but it ers for would help. taste. The real problems are probably 350 many, but two of them are greed anc; the fact that we don't take care of our 1624 N. health in the first place. er, FL An example: My wife recently had to 80; .com. e have a stent in one of her arteries. The; work was done at Citrus Memorial Hospital. The bill was $57,816.55. My )r insurance paid $48,000. I received a before a bill for $4,500, which my wife paid, .e ques- which, by the way, we can't afford. ged my To be fair to the hospital, they as returned us a check in the neighbor- zenship. hood of $272 and asked if we would in the consider donating it to the hospital. I don't know where the other $5,316.55 vould say was to come from. Later, I found that a facts. average, reasonable and customary iael Pitts charges for the procedure is $36,000. nverness That probably pays for my wife's plus possibly two or three more. ism I don't mind paying my share, butt seems to me that my insurance and ryone in myself paid our share plus $16,200. ality I don't know what can be done r in his about the situation, but something service needs doing, and every idea I have are. This read or heard about from many differ- get sick ent and smarter sources than I am is y room, a government-run system. h care. A ergency J. A. Hollafld Hernan. -WIngo looo"O.X6 "-MO ftk. - o B- s t d PI SATURDAY, NOVEMBER 24, 2007 HIA CrrRus COUNTY (FL) CHRONICLE TABLE & FOUR SIDE CHAIRS s$799 2 ARM CHAIRS ",H SLREG.$S239 119 BUY THE SOFA...GET THE LOVESEAT FOR H. LF PRICE ."I- TAW LO--VESEAT ". .i. . tOYESEAT, .o^ 490r FURNITURE 2402 SW COLLEGE ROAD NEXT DAY DELIVERY GUARANTEED IN MARION COUNTY OCALA, FLORIDA 732-4296 (SUNDAYS NOTINCLUDED) SEE STORE FOR DETAILS Prior sales not included. Due to early advertising deadlines, some items may be sold or out of stock. With a $599 minimum purchase and approved credit a customer is eligible for no money down, on in stock merchandise, no payments, ap availablee on clearance items. See or call store for details on total delivery area. Delivery is additional. Product photos are for illustration only, actual product may not be as pictured. Not responsible for typographical errors. These prices cannot be combined with any other discount or promotion. Super Buy and As Advertised merchandise is not included in this promotion. Satisfaction guarantee does not apply, see store for details, 731678 12 A Ia.LUn TVr n nTI SATURDAY NOVEMBER 24, 2007 www chronic cleonline cor n a f-r-xIrorc tO"OTIoMTV IgIT r,^ -.i i._iii 'iii 'r ,... 11 guNS et fum - Peace ,F~-p |hr C Va9 O I^^Bi^ same = wer l&~l lkHe II bwAmlH a * ulf i sopiii i-tIk~ -.,=pmI I S h a.m a -a -.. .....e eminha * -"n- -, -- *. amme 1fc .- iiiii mrmi * - e. m fl a Caourt mk rrp dJ ....... .... -W Web ste 4wful in .ca'rh a ^ik- ^W~e C. a .*. .. :',a :i. a F- - a - eeAvailable from Commercial News roviders miii amni qm ca *m0 adb- *40w wl alti a mn6 o 4 1:,iii - n a a as A ialke uk *e * i. - .**.. a mam 4mnmmom emt - -m a us u. ..- .a S~ :i Fttd.t i a il JI- di :H. r ,hrwt? Ir4 C- ... a,: S... ...... 'a ft. p.. .... !..... 't4 0 * M."l ieto C a- ad mm flofl ....................... .......... .......... ........ ............ owlsm . .......... . K "10 Arlir pri ".. lautA M College football previews/2B, 3B * Scoreboard/4B * College basketball/5B * NBA, NHL/5B * Entertainment/6B SATU RDAY NOVEMBER 24, 2007 No 1 Tigers blindsided by unranked Hop 1, rm a4 -r 4 -%m I 0 -" "Copyrighted Material Syndicated Content, Available from Commercial News Providers" Ab 0 4 -;.A -k- em p hmi Cinderella Crystal River falls in playoff 45-6, Friday to North Marion ALAN FEySTO afesto@ chronicleonline.com Chronicle CITRA The Crystal River football team had gotten used to scoring late in the fourth quarter to win games; however, on Friday night against the North Marion Colts, the Pirates' late touchdown did noth- ing more then delay the inevitable. The Pirates were no match for the Colts' speed and athleticism, falling 45- 6 in the second round of the Class 3A playoffs. "They're a really good football, a lot of speed," Crystal River coach Anthony Paradiso said of North Marion. "We'll be .42 -. . rooting for them. "I'm proud of our kids, .. its been a heck of a season, a heck of a ride to do what Wi we've accomplished in so -- little time." Following a 64 yard pass on the game's opening ..... drive from the Pirates' Shay Newcomer to Torrion Smith on third down, it looked as though Crystal River might have a shot. ' Five plays later Crystal ' River found itself on the 1- yard line but a sack on sec- . ond down would eventually force the Pirates to kick a field goal. Austin Atkins' 26- yard attempt was blocked giving the Colts possession at the 20-yard line. Colts' coach Craig Damon admitted he was worried about the Pirates offense heading into the game but credited his defense with an outstand- ing performance that made plays when it needed to. .. North Marion drove the Crystal River's Tevin Devaughn (11) takes a handoff Friday and carri Please see /: ../Page 4B (54) and Demario Sims (61) in third quarter action at North Marion H r ide ends DAVE SIGLER/Chronicle ies the ball only to be stopped by North Marion's Justin Williams High School. The Pirates lost, 45-6, to the Colts. John Coscia SPORTS TALK Players should be proud of effort he Crystal River Pirates football team's Cinderella season struck midnight Friday night at North Marion bringing to an end a season that exceeded every one of the team's preseason goals. And while the pain of last night's defeat is still fresh, the players will soon be able to look back objectively on what they accomplished, and when they do they'll have plenty of which to be proud. They say you have to -endure the bad to appreci- ate the good. Well, that can certainly be said of this Pirates team that com- prised itself of a solid core of seniors that as sopho- mores and juniors suffered through the bad times of two long, agonizing sea- sons in which they went 2-8 each year. Last year was particularly difficult losing several nail biters that went in their opponents' direction. But this year that all changed. This was the year of the Please see PLAYERS/Page 4B Nok. to game till ha imp tcaiom Copyrighted Material .: Syndicated Content " Available from Commercial News Providers" .1" 0 r~ ~ ~-m w*No- ,&m *-am-m or..ts 2B sATURDAY, NOVEMBER{ 24, 200~J BE g l2poton i:k",^Ilov jLa k^l^^^^ War S I.. pno b W ai,, in i= lh a wm gp w aOK * n, a latmmm p0smm w40 aM a 0, umn ap fl 4b40 a00nfl 4M a u S = .= ,...... .. .:xr ...... ,.w 1w:l a.>< B F "Copyrighted Material# BigEAi t Syndicated Contentay r A(' inth title up foAvailable from Commercial News Providers"'" I# to ' *6~ XaIag 4a *- W qmdf * Sm 10o M =ae4W W 0 0A aN&a ui ,a o, mum 41, 9u umaa =a= al l glml~ll A~IID . - -ft ot . ,, r. . . M. ... 0== - 41a Alabama.,Auburn play to -w in Iron Bowl ama om mm4ow-0. e "N4 .40- -ao -a a ea S S a* -v a-04mmo ..bwm a aN**mmo- Mie. w S amS. am 0om MMA. aUMESAW 4W-01a IM4PO MIMA 0* I CITRUS COUNTY (FL) CHRONICLE C40LLIEC-IE IFC3C3FBALL PKEVIIIEWS JSM ---, T--.- >A '?nn-7 . ..::. ri-.w..rr. C,-n., r,, Fl. ) ChRsnIrCLr cE 4w 0 0 0-- 0 "Copyright'ed Material A .. Syndicated Content Available from Commercial News Providers" ~-e * - 0 - ~- -~ - 0 * ~0 GO LF T AMERICA . Pro Shop & Clearance Center Monday-Saturday 9-6, Sunday 10-4 DIVIDER GOLF BAGS $40 99 14 Way Top While Supplies Last- $ Each & Up Sbonm '&Fur 0. - C -0 * .~ -~-- 0 S - C... ~ 0 .~ - C. C - - -~~0 0 a o .- - - C. *. .~ C~ 00 ~ - -~ 0- ~- - 0- -~ - - 0 - ~ '0 - C. ~. 0 ~ ~~-0 * - - C. - low - a - - .~' - -C.- Cornerstone Baptist Church "Forward in Faith" Golf Tournament December 15, 2007 * - -Inverness Golf & Country Club Registration: 7 a.m. Tee off: 8 a.m. - 4 Man Best Ball Scramble Registration $50 per golfer includes 18 holes, cart. and steak lunch. Prizes for 1st, 2nd and 3rd place. For more information call 726-7335. ORLIMAR PACKAGE DEAL Irons, Woods, Hybrid Putter, Bag, Head Covers ASSORTED PACKAGE DEALS Best Selection & Price Ever! Irons, Woods, $ 2999 Putter, Bag, Etc. 1 up $34999 GOLF HUGE SELECTION ASSORTED GLOVES Drivers Hybrids Putters Fairway Woods & Wedges i $999 to $2999 : 10 .'I & UP RAAssoJAT GO ONLINE * Visit to read today's headlines, add your thought the weekly opinion poll, search the classified ads, look up movie times or pla.,gan * * To see manatees at Homosassa Springs Wildlife State Park, go to wvwv.Mant~'eCa'dm.combi. Pay for your CITRU S COUNTY The LZ! Just call 563-5655 for details. 70Mo. *Charge may vary at first transaction and at each vacation start. Contest Rules 1. Poster must be on standard poster board, 28"x22" (Any color is acceptable). 2. Use of any medium (paint, crayon, chalk, pastel, etc.) is acceptable, as well as the usage of creative items for Contest Catagories Best Overall '100 and cover of festival special section " K-2nd Grade 3rd-5h Grade 6th-8th Grade -9-12 Grcadi" 1st s25 1st 25 1st 525 ,, st.25 2nd and 3rd place awards 2nd and 3rd place awards 2nd and 3rd place awards 2nd and 3rd place, a , :Age eH-O N1 l 2, L ---_--------------------.------------- --- jI U * -e - .~ - C .ITRUS COUN7Y (PL) CHRONICLE SA-rufuDAY, NOVEMBER 24, 2007 3B CCOLILIDGE F40CMBALIL PREVIEWS QQ - - - - tw LB SATURDAY.. NOEMER24 207ScsCxsCONY(L HOIL FOOTBALL Friday's Major College Scores EAST Delaware 44, Delaware St. 7 SOUTH Arkansas 50, LSU 48, 30T Mississippi St. 17, Mississippi 14 MIDWEST Bowling Green 37, Toledo 10 Cent. Michigan 35, Akron 32 SOUTHWEST Texas A&M 38, Texas 30 FAR WEST Colorado 65, Nebraska 51 Colorado St. 36, Wyoming 28 AP Top 25 Schedule Today's Games No. 2 Kansas vs. No. 3 Missouri, 8 p.m. No. 4 West Virginia vs. No. 20 Connecticut, 3:30 p.m. No. 6 Georgia at Georgia Tech, 3:30 p.m. No. 8 Virginia Tech at No. 16 Virginia, Noon No. 9 Oregon at UCLA, 3:30 p.m. No. 10 Oklahoma vs. Oklahoma State, 3:30 p.m. No. 12 Florida vs. Florida State, 5 p.m. No. 15 Boston College vs. Miami, Noon No. 19 Tennessee at Kentucky, 1:30 p.m. No. 21 Clemson at South Carolina, 7 p.m. No. 23 BYU vs. Utah, 2 p.m. No. 24 Cincinnati at Syracuse, 7:15 p.m. No. 25 Auburn vs. Alabama, 8 p.m. NFL Standings AMERICAN CONFERENCE W New England 10 Buffalo 5 N.Y. Jets 2 Miami 0 Indianapolis Jacksonville Tennessee Houston Pittsburgh Cleveland Baltimore Cincinnati Denver San Diego ' Kansas City Oakland East L T 0 0 5 0 9 0 10 0 South L T 2 0 3 0 4 0 5 0 North L T 3 0 4 0 6 0 7 0 West L T 5 0 5 0 6 0 8 0 NATIONAL CONFERENCE East W L T Pct PF PA Dallas 10 1 0 .909 358 221 N.Y. Giants 7 3 0 .700 236 20( Philadelphia 5 5 0 .500 206 187 Washington 5 5 0 .500 200 221 South W L T Pct PF PA Tampa Bay 6 4 0 .600 195 151 Carolina 4 6 .0 .400 167 212 New Orleans 4 6 0 .400 212 246 Atlanta 3 8 0 .273 155 244 North W L T Pct PF PA Green Bay 10 1 0 .909 296 185 Detroit 6 5 0 .545 257 269 Chicago 4 6 0 .400 184 217 Minnesota 4 6 0 .400 195 21C West W L T Pct PF PA Seattle 6 4 0 .600 221 164 Arizona 5 5 0 .500 223 222 St. Louis 2 8 0 .200 149 257 San Francisco 2 8 0 .200 113 223 Thursday's Games Green Bay 37, Detroit 26 Dallas 34, N.Y. Jets 3 Indianapolis 31, Atlanta 13 Sunday's Games's Game Miami at Pittsburgh, 8:30 p.m. BASKETBALL Friday's Major College Scores EAST Drexel 56, Robert Morris 40 Loyola, Md. 73, Howard 58 Pittsburgh 92, Buffalo 45 Seton Hall 79, Navy 75 SOUTH Alabama 79, Southern Miss. 77 Austin Peay 67, Florida Gulf Coast 57 Charleston Southern 72, North Florida 61 Florida St. 65, Florida 51 Georgia Southern 68, Furman 63 Maryland 72, Lehigh 51 Middle Tennessee 91, Tenn. Wesleyan 48 Wake Forest 73, Winston-Salem 53 MIDWEST Coppin St. 102, SE Missouri 99, 20T S. Dakota St. 61, N. Iowa 55 UNC Wilmington 80, Longwood 65 Xavier 78, Kent St. 65 SOUTHWEST Bradley 67, Iowa 56 Valparaiso 66, Md.-Eastern Shore 55 FAR WEST Air Force 58, MVSU 40 Hartford 73, Jackson St. 57 S. Carolina St. 81, lona 76 TOURNAMENT Anaheim Classic Second Round Chattanooga 85, UC Irvine 80 S. Illinois 63, Mississippi St. 49 CarrslSafeway Great Alaska Shootout Consolation Bracket Michigan 61, E. Washington 53 W. Kentucky 71, Alaska-Anchorage 67 NIT Season Tip-off Championship Texas A&M 70, Ohio St. 47 Third Place Syracuse 91, Washington 85 Old Spice Classic Semifinals N.C. State 63, South Carolina 61 Villanova 84, George Mason 76 Semifinals Kansas St. 73, UCF 71, OT Rider 82, Penn St. 73 StubHub Legends Classic First Round Texas 102, New Mexico St. 87 For tilf CO On the AIRWAVES TODAY'S SPORTS COLLEGE BASKETBALL 7 p.m. (VERSUS) Legends Classic Tournament Championship Game. 10:30 p.m. (ESPN2) Las Vegas Invitational Final Teams TBA. 12:30 a.m. (ESPN2) Great Alaska Shootout Final Teams TBA. NBA BASKETBALL 1 p.m. (WGN) Chicago Bulls at New York Knicks. 7 p.m. (FSNFL) Miami Heat at Orlando Magic. COLLEGE FOOTBALL 12 p.m. (28 ABC) South Florida at Pittsburgh. 12 p.m. (44 CW) Maryland at North Carolina State. 12 p.m. (ESPN) Miami at Boston College. 12 p.m. (ESPN2) Virginia Tech at Virginia. 1:30 p.m. (6, 10 CBS) Tennessee at Kentucky. 2 p.m. (2, 8 NBC) State Farm Bayou Classic Grambling State vs. Southern. 2 p.m. (VERSUS) Utah at BYU. 3:30 p.m. (9, 20, 28 ABC) Regional Coverage Connecticut at West Virginia, Georgia at Georgia Tech or Oregon at UCLA. 3:30 p.m. (ESPN) Notre Dame at Stanford. 3:30 p.m. (ESPN2) Georgia at Georgia Tech or Kansas State at Fresno State. 3:30 p.m. (FSNFL) Oklahoma State at Oklahoma. 5 p.m. (6, 10 CBS) Florida State at Florida. 7 p.m. (ESPN2) Clemson at South Carolina. 8 p.m. (9, 20, 28 ABC) Kansas vs. Missouri. 8 p.m. (ESPN) Alabama at Auburn. 9:30 p.m. (FSNFL) Washington Slate at Washington. (Joined in Progress) GOLF 9:30 a.m. (GOLF) MasterCard Masters Third Round. 1 p.m. (9, 20, 28 ABC) LG Skins Game Day 1. 11:30 p.m. (GOLF) Omega Mission Hills World Cup Day 4. NHL HOCKEY 7:30 p.m. (66 PAX) New Jersey Devils at Tampa Bay Lightning. Prep CALENDAR GIRLS BASKETBALL TBA Lecanto in Charlotte Tournament. NBA Standings EASTERN CONFERENCE Atlantic Division W L Pct Boston 10 1 .909 Toronto 6 6 .500 New Jersey 5 7 .417 Philadelphia 3 8 .273 New York 2 9 .182 Southeast Division Orlando Charlotte Washington Atlanta Miami Detroit Milwaukee Cleveland Indiana Chicago WES So San Antonio Dallas New Orleans Houston Memphis Denver Utah Portland Seattle Minnesota 3 9 .250 Central Division W L Pct 8 4- .667 6 4 .600 6 6 .500 6 7 .462 2 8 .200 TERN CONFERENCE southwest Division W L Pct 11 .2 .846 9 3 .750 s 9 4 .692 6 7 .462 3 9 .250 Northwest Division W L Pct 8 4 .667 8 4 .667 4 8 .333 2 10 .167 1 8 .111 Pacific Division W L Pct GI Phoenix 10 2 .833 - L.A. Clippers 6 4 .600 L.A. Lakers 7 5 .583 Golden State 4 7 .364 5V Sacramento 4 8 .333 Friday's Games Orlando 105, Charlotte 92 Golden State 123, Washington 115 Boston 107, L.A. Lakers 94 Indiana 111, Dallas 107 Miami 98, Houston 91 Detroit 83, Philadelphia 78 San Antonio 101, Memphis 88 Minnesota at Denver, 9 p.m. New Orleans at Utah, 9 p.m. L.A. Clippers at Phoenix, 9 p.m. Sacramento at Portland, 10 p.m. New Jersey at Seattle, 10:30 p.m. Today's Games Chicago at New York, 1 p.m. Toronto at Cleveland, 1 p.m. Miami at Orlando, 7 p.m. Boston at Charlotte, 7 p.m. Golden State at Philadelphia, 7 p.m. Washington at Memphis, 8 p.m. Atlanta at Minnesota, 8 p.m. Denver at Houston, 8:30 p.m. Dallas at Milwaukee, 9 p.m. New Orleans at L.A. Clippers, 10:30 p.m. Sunday's Games Chicago at Toronto, Noon Utah at Detroit, 1 p.m. Cleveland at Indiana, 2:30 p.m. San Antonio at Seattle, 9 p.m. New Jersey at L.A. Lakers, 9:30 p.m. HOCKEY NHL Standings EASTERN CONFERENCE Atlantic Division W LOT Pts GF GA N.Y. Rangers 13 8 2 28 51 4' Philadelphia 12 7 2 26 66 57 N.Y. Islanders 11 8 0 22 47 51 New Jersey 10 10 2 22 53 5 Pittsburgh 9 11 2 20 63 69 Ottawa Montreal Boston Toronto Buffalo Carolina Florida Atlanta Northeast Division W L OT Pts GF 16 4 1 33 68 12 7 3 27 69 11 7 2 24 51 8 10 5 21 69 9 10 1 19 58 Southeast Division W LOT Pts GF 13 7 3 29 78 11 12 1 23 63 11 11 0 22 61 Tampa Bay 10 10 2 22 72 Washington 7 14 1 15 51 WESTERN CONFERENCE Central Division W L OT Pts GF Detroit 15 6 1 31 74 Chicago 12 8 1 25 64 St. Louis 12 8 0 24 50 Nashville 11 8 2 24 59 Columbus 10 8 4 24 59 Northwest Division W LOT Pts GF GA Colorado 12 8 1 25 61 61 Minnesota 11. 9 2 24 57 58 Vancouver 11 9 2 24 60 60 Calgary 9 10 3 21 61 66 Edmonton 8 13 1 17 51 71 Pacific Division W L OT Pts GF GA Dallas 11 7 4 26 66 57 San Jose 11 7 3 25 57 47 Anaheim 10 9 4 24 58 64 Phoenix 10 10 0 20 50 60 Los Angeles 8 12 1 17 59 70 Two points for a win, one point for overtime loss or shootout loss. Thursday's Games Pittsburgh 6, Ottawa 5, SO Nashville 3, Detroit 2 Colorado 3, Edmonton 2 Chicago 2, Calgary 1 Friday's Games Boston 2, N.Y. Islanders 1 Washington 4, Philadelphia 3, OT Columbus 4, Minnesota 0 Phoenix 4, Anaheim 3, SO Carolina 4, Tampa Bay 3 Buffalo 4, Montreal 2 New Jersey 3, Atlanta 0 Florida 3, N.Y. Rangers 2, SO St. Louis 3, Vancouver 1 Dallas 3, Toronto 1 Today's Games Buffalo at Montreal, 7 p.m. Calgary at Colorado, 7 p.m. Toronto at Phoenix, 7 p.m. Boston at N.Y. Islanders, 7 p.m. Detroit at Columbus, 7 p.m. Philadelphia at Ottawa, 7 p.m. Carolina at Washington, 7 p.m. Atlanta at Pittsburgh, 7:30 p.m. New Jersey at Tampa Bay, 7:30 p.m. Minnesota at Nashville, 8 p.m. Chicago at Edmonton, 10 p.m. Los Angeles at San Jose, 10:30 p.m. Sunday's Games Dallas at N.Y. Rangers, 1 p.m. Calgary at St. Louis, 6 p.m. Los Angeles at Anaheim, 8 p.m. Chicago at Vancouver, 10 p.m. MOVES Friday's Sports Transactions BASKETBALL National Basketball Association BOSTON CELTICS-Assigned G Gabe Pruitt to Utah (NBADL). FOOTBALL National Football League BUFFALO BILLS-Released LB Leon Joe. Signed CB Dustin Fox from the prac- tice squad. WASHINGTON REDSKINS-Signed TE Brian Kozlowski. Waived WR Jimmy Farris. HOCKEY National Hockey League BOSTON BRUINS-Recalled C Vladimir Sobotka from Providence (AHL). CAROLINA HURRICANES-Activated RW Erik Cole from injured reserve. Assigned LW Ryan Bayda to Albany (AHL). COLUMBUS BLUE. JACKETS- Assigned LW Alexandre Picard to Syracuse (AHL). DALLAS STARS-Activated LW Brad Winchester from injured reserve and assigned him to Iowa (AHL). PHOENIX COYOTES-Loaned G David Aebischer to HC Lugano (Swiss Elite). ON THIS DAY Nov. 24.. -. S. - 0 ~. 0 -. S 0 S - - - -~- - ~ __ * m - - . S -. - * * S - - S * S a - 0 ~ - - -- .-~ . S - - a 0 -~ * . S- 44W - .-- - * -- - -- - S - - - Ct -m - "Copyrighted Material -~-m now,==m :- : :- Syndicated Content - Available from Commercial News Providers"' - -.W- S - - fv 400m~w amp 4b b - 4=b qu d. 4-11 5-- 49- dt 41. S . S- m. p - 4.Jj S S -. .0 S. * 6 * 5- ~S a. -. *'- a -w4 -As- 4"-do --Gm- 41A a - ~ 40 40M AM 4N.-a .OM 0.~ .o 4w U t jj - p q.ft S - W i m 0 b q --om ftm 0.0- * -~ 'a.. S - a. - S 0 0 - - - - S * S S. 5 - - - ~a 0- S a = PLAYERS- Continued from Page 1B Pirates. Although at season's start it didn't look that way. After two narrow-margined losses to open the season the team could easily have felt like its destiny of heartbreak was again being written. Instead this team did what all winners do, they regrouped and fought back and no one deserves cred- it for that turnaround more than Crystal River's head coach Anthony Paradiso. It's been said that a poor leader tells his followers what to do. A fair leader explains to his leader how to do it A good leader demonstrates how to do it But it's the truly great leader that can inspire his followers. Anyone that watched the Crystal River Pirates football team play this season knows they played an inspired brand of football. And that doesn't just happen... it's taught And never was that inspirational leadership seen more than immediately following last night's loss. As Paradise's team gathered for one final post game huddle this season, their heads hung low. "We've had one heck of a season! Don't let the outcome of this game ruin what we've accomplished this year," Paradiso exclaimed. Don't you dare let tonight's loss define you, because it doesn't. Have character and pride in your- selves. You're all winners in my book. We've had a heck of a PIRATES Continued from Page 1B ball down the field with ease on its first possession but on a third-and-short, the Colts decided to throw and Chuckie Looney's pass was intercepted at the 2-yard line by Ronnie Baldner. The Colts' defense then forced a three-and-out by the Pirates giving the ball back to their explosive offense. It took North Marion just four plays to get in the end zone, the score coming on a 23-yard run by Albert Gary with just over three minutes left in the first quarter. Crystal River was forced to punt again on its ensuing pos- session after picking up one first down and once again Gary made the Pirates pay. The elec- - S year and its one worth cele- brating." And 'you wonder why the players on this team accom- plished what they did, per- formed they way they per- formed and won and lost with the class that they exhibited. Well, wonder no more. The leadership was this team's inspiration. Ask Paradiso, however, and he'll be the first to tell you that he was accompanied by a group of coaches that were equally influential. And he would be right. Truth is, however, when things go wrong it's the one standing on the top that gets all the blame. The same, there- fore, goes for when everything clicks. Coach Paradiso gath- ered his troops when they were most vulnerable and inspired them to believe in themselves. And then there were the par- ents and the fans that turned out in earnest to support their team last night in North Marion, a fact that didn't escape the notice of Paradiso. "The fan support for our team- has been excellent," Paradiso explained. "This town has been hungry for suc- cess and now we've given it to them. They've got it now. Now there's no turning back." But we'd be remiss to not give credit to where it truly belongs... the players them- selves. They bought what their coach was selling. The result was that some players, like Shay Newcomer and Ronnie Baldner, turned in record-set- tric running back took the punt back 77 yards for the touch- down and the Colts had a 14- point lead to end the opening quarter. The Pirates' next possession started in Colts' territory thanks to a failed onside kick Newcomer drove the Pirates down to the 15-yard line, but his pass on fourth-and-one was batted down at the line by Demario Simms. The Colts (11-1) took advan- tage on their first offensive play as Looney hit Gary on a quick pass that Gary took 85 yards to paydirt. Gary, who has a scholarship offer from Tennessee, 150 yards on the ground to go along with his touchdown reception and punt return. Crystal River (9-3) trailed 21- 0 at the half but things just got uglier when the teams came out of the locker room. The - 0 a.. ~.a po - S.- ~m a- ting performances. But they were just part of the story. There' "were the Torrioni Smith's, the Kyle Roddenberry's, the Wes Lanier's and Jake Nolan's who also stepped up big. But truth is this was a year that belonged to every member of the team, on both sides ofthe ball. Even the players that saw very little playing time were an integral part of this team's spir- it and soul. Not every victory ends with a state champi- onship but make no mistake- about it this team was filled with a group of winners. When you won, you did so : with class. And when the other, team was simply better you knew how to lose with dignity In so doing you learned the les- son that scholastic sports are meant to instill... that winners never quit because quitters' never win. The chariot has parked on this year's Cinderella story. But it's an experience that all that played a part in will never forget It's so true that it's better to have loved and lost than to have never loved at all . You wore the glass slipper.; and danced it for all it was worth. A state championship may not have been in the cards but the ride of your lives cer- tainly was. Congratulations, Crystal River Pirates! This is one ride you'll never forget John Coscia is the sports edi- tor of the Citrus County Chronicle and can be reached atjcoscia@chronicle online.com or at 352-564-2928. Colts scored on four posses- sions in the second half. Gary scored on runs of 33 and 46 yards in the second half, help- ing his team amass over 300 yards on the ground. With a running clock in the fourth quarter the Pirates finally got on the scoreboard with just over two minutes left in the game. The Pirates' drive, which started on their own 35-yard line, ended when Newcomer hit Baldner for a 3-yard score. Newcomer followed up his record-breaking performance, against Williston with 234 yards, completing 21-of-36 passes. "He's meant a lot to this team, as a leader as a player, on and off the field," Paradiso said of his 3,000 yard passer. "I've really enjoyed the short time I've had to coach him." - S.~ 0 -- 0 ~ ~ 40 U 4 -- q - mp-mwS *v0 Torel" 4BSATuRt)AY, NOVFMBER 24, 2007 SPORTS Cmus CouNTY (FL).CHRoNicLE - . - .. . . . o * 4p - it * * - " - * o qlb o SATURDAY. NOVEMBER 24, 2007 5B CrRus COUNTY (FL) C 'HRONICLE S wt-u until fiN III ~tAIf ..Ow- .1ySw-0- - own9 -it fl.:S. =m 47p = mmo w .0 o 41 emw QgZme tmw "mom bu * lll m - --l m a __Ua . ""Copyrighted Material Syndicated Content - ~ - * .3. * .-, ...~ .- ,.a. "S - 3. SMr..m .. N I ble Available from Commercial News Providers" ,, .., ..... *. lb ft ,WNW 0 -S *S=* ~,. *5 ..... .. a *bM:-. H wneans m towtLghnn Gum moom w . .. .. . .. .. ............ MAD .:- 5 5 . / ... ......i , 4ba m aWS '41. NK5, ... ............ 'AV.. n n.e .. -3 b AMl - i-.. ._ 40om Aem -m ob.4 -k 0MM0 AN&_ md go wo Mb Id.. I ..:.. : *~.* - .SW * 'a .- a. - 0:1 4001 - .5 Ma..M. , ,, M -atime Sd- 'a - a ~, ~, U ~. "S-S ,m. I- S Sf **.*-*** ****n~ t it tE- VACATION TIME! newspaper in education :.. N :. CA Ls:L *563-5Ok 655 I ,.-. .W ,... . ,,.. .- * nn : :as c1 -Miwrc @ km ...::. I .. .:; H=f... SATURDAY NOVEMBER 24, 2007 CIl-Rus COUNTY CHRONICLE mH *ARM ,b op.. "re- b *. ii "Copyrighted Material I Syndicated Content o Available from Commercial News Provide ,,, ' .adig .a. . a. 'J AW O 10 .-- .. .- . a. ~ ~- -a H. a~.. a a a a- .. . .* ~s AM- *e - "m w.a . :. .4 . .. - -- a a 1 * ** - '- e* AMo .. -m eq .a.:L aW- Florida LOTTERIES Here are the winning numbers selected Friday in the Florida a w i Lottery: CASH 3 8-2-0 PLAY 4 3-5-1-2 MEGA MONEY 9-22-25 29 MEGA BALL 16 FANTASY 5 16-17-25-26-35 THURSDAY, NOVEMBER 22 Cash 3:8-1-4 Play4:3-2-0-2 Fantasy 5:1 10- 12- 18- 21 5-of-5 winners $60,384.07 4-of-5 391 $74.50 3-of-5 9,962 $8 WEDNESDAY, NOVEMBER 21 Cash 3:9-2-8 Play 4:1-5-3-3 Lotto: 4-5-13-31 -47-50 6-of-6 1 winner $6 million 5-of-6 55 $6,225.50 4-of-6 3,685 $75.50 3-of- 76,458 $5 rs Fantasy 5:1- 5 23-28 -30 5-of-5 1 winner $268,352.43 . 4-of-5 307 $140.50 a 3-of-510;765 $11 S.TUESDAY, NOVEMBER 20 S..Cash3: 6 3: Play 4:1 -0-0-8 8 .- S Fantasy 5: 3- 10-19- 20- 28 m - 5-of-5 No winner S* a e 4-of-5 344 $782 p 3-of-5 11,278 $9 ..... ,=. Mega Money; 12 22 24 40 .. .- Mega Ball: 22 4-of-4 MB No winners 4-of-4 10 $2,007.50 3-of-4 MB 73 $601 W"a" 3-of-4 1,345 $97.50 2-of-4 MB 2,750 $33:50 2-of-4 43,945 $3 1-of-4MB 21,311 $4.50 I .4wa .-* ... .- a" ak -*** ..... ~ ... ^ W jj ,A* .10 . -.... . -.. 4. S .a SW. .~ .~. -a ~m.~ a- a ~a a MNw va IN, OWa : a ~ Is a rW INSIDE THE NUMBERS STo verify the accuracy of winning lottery numbers, players should double-check the numbers printed above with numbers officially posted by the Florida Lottery. On the Web, go to .com; by telephone, call (850) 487-7777. Grand CavanIt- ,.tow 2008 RamBeu new 2008$ Dakotah new 2008 Caliber:.. 1b- I.N-. *i~"a. a ..0 .- 40 1 Ms *jBf""- :xee . .i.. ......... .. iF m: ... SATURDAY NOVEMBER 24, 2007 / COUNTY CHRONICLE 0 mow a ao _ww-00000 sw- aSo*mum 400 0 SMlb. Syndicated Contentl 'Available from commercial News Providers ,. .. .. .,,,,= .,,=. .m. .... =,0.... ... .... t == =*= = =l aaemene e 0ramm ammmmunalg*ammi, 4mes go a fto assm==" 0me e ameles 4manmme a a n awiw om one mona oomm aslom ftft"0 S -o I mS -po Calendar ofEV : Christmas coming... Annie Johnson Senior Center food baskets offered for less fortunate to celebrate the Christmas holiday season. From 10 a.m. to 1 p.m. Monday through Friday applications will be accepted for Christmas baskets for the fol- lowing ZIP codes (physical addresses): 34431, 34432, 34433, and 34434. Applicants must pres- ent Social Security cards for every- one in the household; copy of iden- tification (picture ID, drivers' license, voter registration with other picture ID); and copies of proof of income for every member of the household. (Proof can be the fol- lowing: A letter from an employer or consecutive pay stubs showing gross for at least 30 days, award letter or letter from individual or agency from which income is received, SSA, SSI, VA, pension welfare, child support, alimony, and/or food stamps. Recipients will be notified at the time of registra- tion when the Christmas baskets are ready for pickup. Call (352) 489-8021 between 10 a.m. and 1 p.m. Monday through Friday. First Presbyterian Church of Crystal River hanging of greens at 3 p.m. Sunday. A light supper will be served following the decorating of the sanctuary. A service of heal- ing and wholeness will follow the regular Sunday morning worship service. Inverness Vineyard's Christmas Dinner Theater, "Jesus Loves Fruitcakes" on Saturday through Wednesday, Dec. 1-5. Doors open at 6 p.m. All are invited. Reservations required; call Susan at 726-1480. A Festival of Trees decorated in styles popular during the past 500 years with real candles, paper chains, to fiber-optic lights - will be on display in Luther Hall at Hope Evangelical Lutheran Church in Citrus Springs on Dec. 2 at 4 p.m. Every family is also welcome to make an Advent wreath during a time of fellowship. Thrivent Financial for Lutherans is providing funds to the Sunday school for this project through the Care in Congregations program. Those planning to make a wreath must sign up ahead for supplies, com- plete with colored or white candles. All will light the first candle together to show they are all members of God's family. The Puppet Ministry Class is preparing a musical pres- entation. Watch the festivities, lis- ten to music, then enjoy Christmas treats, candy canes, and some- thing to drink. The church is at 9425 N. Citrus Springs Boulevard in Citrus Springs. Call the church office at (352) 489-5511 for infor- mation. Come experience the drama and excitement of Christmas as a 23-foot Christmas tree filled with 60 singers puts on a spectacular light show to some favorite Christmas Carols at First Baptist Church of Crystal River. Show dates and times: Sunday, Dec. 2, at 2:30 and 6 p.m.; Wednesday, Dec. 5, at 7 p.m.; Friday, Dec. 7, at 7 p.m.; Saturday, Dec. 8, at 7 p.m.; and Sunday, Dec. 9, at 2:30 and 6 p.m. For tickets, call 795-3367. Crystal River United Methodist Church Advent and Christmas music and worship events: Sunday, Dec. 2 - "Hanging of the Greens" service at 6 p.m.; Sunday, Dec. 9 - Covenant Kid's Club musical, "Miracle at Midnight," at 6 p.m.; Sunday, Dec. 16 chancel choir cantata, "Journey of Hope," at 6 p.m.; Sunday, Dec. 23 Praise Team's evening concert of religious and secular holiday favorites at 6:30 p.m.; Monday, Dec. 24 - Christmas Eve candlelight worship services at 5, 7:30 and 11 p.m. Church is at 4801 N. Citrus Ave., Crystal River. Call 795-3148 or visit. Crystal River First Assembly of God Christmas pageant at 6 p.m. Saturday and Sunday, Dec. 8 and 9, at 5735 W. Gulf-to-Lake Highway, Crystal River. Call 795- 2594. The Music and Worship Ministry of First Baptist Church of Inverness Adult Worship Choir presents "The Christmas Offer- ing" at 6 p.m. Sunday, Dec. 9, at 550 Pleasant Grove Road, Inver- ness. Enjoy music, drama, and dance as you are reminded of the ultimate Christmas gift, Jesus Christ. Free admission. Call 726- 1252. Music & more Free concert by Christian band "Among the Thirsty" today at Cafe, 960 S. U.S. 41, Inverness. Call 726-1383 for information. Inverness First Church of God gospel concert featuring Royal City Family Ministries at 6 tonight at 5510 E. Jasmine Lane. Call 726-8986. Hernando Church of the Nazarene upcoming concerts include: Citrus Concert Band at 7 p.m. Wednesday, Dec. 5; Children's musical, "Living Inside Out," at 6 p.m. Sunday, Dec. 16; "Hernaz Christmas Live," at 6 p.m. Sunday, Dec. 16; "Triumphant Quartet" at 7 p.m. Wednesday, Jan. 16; "Ernie Couch & Revival" at 6 p.m. Sunday, Feb. 10; "His Song" and "Reign Song," at 6 p.m. Sunday, March 30. Church is at 2101 N. Florida Ave., Hernando.. Call 726-6144. Light Shine presents its schedule of events for the 2007- 08 season: "The Messiah," by Handel, at 4 p.m. Sunday, Dec. 9, at Curtis Peterson Auditorium, presented by Gainesville Civic Chorus and Gainesville Philharmonic Orchestra under direction of Dr. Will Kesling, director of Choral Activities at University of Florida. Admission is $10 donation, $5 for students. Royal City Family Ministries Please see '.'-; '"./Page 2C Nancy Kennedy GRACE NOTES Thank you, God insuffi- cient, yet it's all I have to give you. Thank you, Lord, for Capri pants and Gerber daisies. For thick, warm towels fresh from the dryer, "two-point" tapioca pudding and pump- kin marmalade. Thank you for keeping my husband safe through all of his surgeries and proce- dures this year. Thank you for knitting our hearts together. Thank you for answering my prayers. Thank you for your gener- ous, sustaining grace. This year I have been stressed and stretched and very, very afraid. But you have calmed my fears. You have cradled me, held me, gripped me tight. You never N WMO -abD - 0 4) 0 0 CO .Cu 4) I 0 "9- O 0~ E E 0 C.. 0 q> CO m< m5 411W --Ift I,,- -11MAI-l-W INII- jjjjjjkmr 41dimp- -. .-::- ... a ft b qft. m qA-. - ) ; 4him SC SATURDAY, NOVEMBER 24, 2007! EVENTS Continued from Page IC musical presentation at 2 p.m. Sunday, Jan. 20, at BHRAC. 'The History of Two Florida Fishing Villages: A Film on Change and Development," at 4 p.m. Sunday, Feb. 10, at BHRAC pre- sented by Dr. Michael Jepson, marine anthropologist at University of Florida. . "Spiritual Renaissance Singers - A History of the African-American Spiritual," at 4 p.m. Sunday, March 9, at unless noted otherwise. Events sponsored by Shepherd of the Hills Episcopal Church on County Road 486 east of C.R. 491. Special events First Presbyterian Church of Inverness final date for photo-tak- ing for the new church directory is Dec. 21. Call Jill at 860-1448. Blood pressure screening available from 9 to 9:30 a.m. Sunday in church office. No appointment nec- essary. St. Timothy Lutheran Church informal come-as-you-are worship service is at 5 p.m. today at 1070 N. Suncoast Blvd. (U.S. 19), Crystal River. Pastor Bradford's sermon for Christ the King Sunday: "Above All, Before All." Worship services at 7:30, 8:30 and 11 a.m. Holy Communion offered. Coffee fellowship from 9:30 to 10 a.m. Sunday school classes for all ages from 10 to 10:45 a.m. Nursery available. Blood pressure screening offered. Advent Vigil beings at 6 p.m. Sunday followed by WELCA pro- gram and dessert and beverages in fellowship hall. Focus country is Hungary. Family and guests invit- ed. Pastor Bradford leads study of weekly scriptures (Pericope Bible study), from 7 to 8:30 p.m. Thursday. Call 795-5325. First Baptist Church of Homosassa will change services times as of Sunday, Dec. 2 as fol- lows: Sunday school classes at 9 a.m. Worship services at 10:30 a.m. and 6 p.m. Sunday and 7 p.m. Wednesday. Call 628-3858. St. Thomas the Apostle Catholic Church's Council of Catholic Women in Homosassa "Tricky Tray" on Sunday, Dec. 9, at the Knights of Columbus on Atlas Drive in Homosassa. Assorted themed gift baskets of a minimum value of $25 on display starting at noon. Drawings begin at 2 p.m. Tickets are $2.50 for a sheet of 25. Proceeds go to sup- port local charities. Unitarian Universalist Fellowship "Browse and Buy" book sale today at 2149 County Road 486, a mile east of County Road 491 in the Oak Tree Plaza, next to the new Vanilla Bean Cafe. Large variety of reading material available. Earnings for the church's building fund. Call 527- 8263 or 795-8085. First Baptist Church of Hernando Sunday services at 3790 E. Parsons Point Road: Prayer for Sunday school classes at 9:30 a.m. in fellowship hall; dea- cons prayer at 10:45 in children's church classroom; worship servic- es led by the Rev. Randy Wilkerson, interim pastor, at 11 a.m. and 6 p.m.; choir rehearsal at 5 p.m. Workday at 9 a.m. today. Faith Baptist Church invites the public to Sunday school class- es. Places of worship that offer love, peace and harmony to all. I Come on over to "His" house, your spirits will be lifted!!! SERVICING THE COMMUNITIES OF CRYSTAL RIVER AND HOMOSASSA MOUNT OLIVE MISSIONARY BAPTIST CHURCH Sunday Services * Sunday School 9:30 AM. *: Morning Service 11:00 AM. * Wed. Prayer Meeting & Bible Study................. 12:00 Noon & 6:30 P.M. "The Church in the Heart of the Community with a Heart for the Community" 105.N Georgia.Rd PO *. Crystal River FL 34423 Crurcri Pnorne m (352) 563-1577 [1 Crystal 0SB First Baptist p Church of Homosassa "Come Worship with Us" 10540 W. Yulee Drive Homosassa 628-3858 Rev. J. Alan Ritter Rev. Chris Brewer Sunday 9.45 am Sunday School iAJ Aaero u&ar 8 30 11 00 am Worship Celebration Choir / Special Music I Children Sunday Night 6 pm Worsnip Celebration Children r M -Aislry Youth Bible Study Wednesday Night 7 pm Worship Celebraiior, Children s Awanas Group Youth Activities THE SALVATION CORPS. SUNDAY: Sunday School 9:45 A.M. Morning Worship Hour 11:00 A.M. TUESDAY: Home League 11:30 A.M. Bible Study 1:00 P.M. Captain Jamie Bell Nature's Independent Church Located past the guard shack at Nature's Resort, Halls River Road, Homosassa Sunday Morning Service 10:30am Thurs. Night Prayer & Bible Study 7:00pm Preacher: Tom "Tex" Evans (352) 628-9562) 716221 Hw *4, ryta ive St. Benedict Catholic Church U.S. 19 at Ozello Rd. Vigil: 5:00pm Sun.: 8:30 & 10:30am DAILY MASSES Mon. Fri.: 8:00am HOLY DAYS As Announced CONFESSION Sat.: 3:30 4:30pm .- 795-4479 CRYSTAL RIVER I I UNITED L I METHODIST CHURCH, |L 4801 | S- N. Citrus IV -" Ave. t| (2 miles north of US 19) E Sunday Worship ' 8:00 Early Communion u 9:30 a.m. Praise & Worship I 11:00 a.m. Traditional | V Worship I Sunday School for All Ages 9:30 & 11: 00a.m. I Nursery Available at all Services 0 Youth Fellowship 4:30 p.m. | Kid's Club E | 4:30 p.m. Rev. David Gill SSenior Pastor T Provider | 795-3148 i [ al..L e Irir aifi I .IrI.i[uieI.iEI I.i Special Event or Weekly Services Please Call Kathy at 563-3209 For Information On Your Religious Advertising (us t0- First Presbyterian 1501 SWHwy. 19 Crystal River Sunday Worship 10:00am Sunday School For all ages 9:00am ALL ARE WELCOME! 352-795-2259 Certified "Child Safe"Environment (t. Crystal Qiver Special Event or Weekly Services Please Call Kathy at 563-3209 for Advertising Information ^Bfl~lBBHMI- I^^ Pastors Dave & Susie Sininger * Powerful Praise & Worship * Nursery & "Kids Church" * Youth Program * Food Pantry Sunday 10:30am & 6:30pm Wednesday 7pm 795-LIFE (5433) .org -12718 .iTzzzzzzZZZZZZZZZZZXZZZZZ M FIRST BAPTISTH S CHURCH " CRYSTAL RIVER: " 700 N. Citrus Avenue H R. 352-795-3367 H H Rev. Did Throcknurton H H Sunday AM Services H 8;45 Conternporary S Worship Service H it:15 orslip Service M Tho Bible Study Session i H 8-45 and 10-15 H AVANA Clubs 5:00 pm H H " Wednesday PM Service H 5.00 Famil) Supper RS\ P) M 6:00 Worship Service H H Children & Student H H Activities H H 715219 4 zT Zei2zxXzXzXX 2zzX=XXX ,ST. THOMAS CATHOLIC CHURCH Sen ing Soutwest Citrus Ccount) | MASSES: )turday 4:30 P.M. unday 8:00 A.M. 10:30 A.M. .U S. i9 mile Soutn at West Corcinol St., HomoSS0550 First United Methodist Church A Stephen Ministry Church 8831 W. Bradshaw St. Homosassa West Of US15223 I~ )First Assembly of God Come One Come All!!! Service Times: Sunday School 9:00 a.m. Morning Worship 10:00 a.m. Wednesday Bible Study 7:00 p.m. Richard Hart SeniorPastor MILES EAST OF HwY. 19 ON HwY. 44 (327529. Onus CouNTY (FL) CHRONICLE REL ION AA ...... SATURDAY, NOVEMBER 24, 2007 3C Places of worship that .. offer love, peace 1 and harmony to all. Come on over to "His" house, your spirits will be lifted! !! SERVICING THE COMMUNITIES OF HERNANDO, LECANTO, FLORAL CITY, HOMOSASSA SPRINGS LECANTO CHURCH OF CHRIST State Road 44 & Rowe Terrace 746-4919 Sunday Bible Study ': 10:00 A.M. .. Sunday Worship 11:00 A.M. Sunday Evening S 6:00 P.M. Wednesday Bible Stud v 7:00 P.M. S"in Search Of The Lord's Way" 8:30 Sunday Channel 22 (TWC 2) r 1.:.rithl BEii.le ':.iu.1, .:ih-,.ijl . '. ';v ,:0 ".ri r l ,l,:' r t.:i.:.:.l.: ,'3 HERNANDO United Methodist Church. opeK "A Safe Sanctuary for Children and Families" 2125 E. Norvell Bryant Hwy. (12 miles from Hwy. 41) For information call (352) 726-7245 Sunday School 8:45 AM 9:30 AM Fellowship 9:30 AM Worship Service 10:00 AM Ministries and Activities for all Ages. Reverend Lois Barnum, Pastor I sI / 3rd[Sundays rr I01, Pastor- Rev Frederick W Schielke Website: www2faithlecanto.com HOMOSASSA SPRINGS CHRISTIAN CENTER CHURCH 7961 W. Green Acres. St., Homosassa Springs Marcus Rooks, Sr. Pastor Rev. WJF. Todd, Pastor Emeritus retired 628-5076 N. GROlERtLEEELA.ND GREENi .ACRE . Location: US 19 At Green Acres Street South of Homosassa Springs 5z Christian Education 9:30amrn [ Contemporary Service 10:30am [ Wednesday Services 7:00pm (nursery provided) Full ( 3t M I r) Special Event or Weekly Services Please Call Kathy at 563-3209 For Information On Your Religious Advertising Isn't it time to begin the journey of discovering your faith? S.5, Worship Service 10:0.'AM . ,(t nitftS of WwMgssi~nmunityChurv ;nii TD-so-*JU Grace Bible Church e-mail: gbc@tampabay.rr.com 713183 ^ Shepherd of the Hills Adult Christian Formation 9:00 am Healing Service Wednesday 10:00 am 2540 W. Norvell Bryant Hwy. (CR 486) Lecanto, Florida S (4/10 mile east of CR 491) Real Life Chr'.stan Church FAITH BAPTST CHURCH Homosassa Springs Rev. Wm. LaVerle Cojts SUNDAY SUNDAY SCHOOL: 9:45 am WORSHIP: 11:00 am & 6 pm WEDNESDAY WORSHIP: 7 pm YOUTH: 6:30pm Independent & Fundamenial On Spartan I 2 mile front Li S 19 off Cardinal 628-4793 Special Event or Weekly Services, Please Call Kathy at 563-3209 For Information' On Your Religious Advertising From 5-7 PM Our purpose: To honor the Savior by shepherding " \ people into a meaningful relationship with God Byron Hendry, SPastor (352) 527-9900 baptistchurch.org '1 * I.... .4 NATURE COAST UNITARIAN UNIVERSALISTS FELLOWSHIP Oak Tree Plaza 2149 Hwy. 486, Lecanto (1 Mile East of Hwy. 491) SUNDAY SERVICES 10:30 A.M. WHERE REASON & RELIGION MEET ALL ARE WELCOME 746-920229656 Floral City, FL. '^BHernando Churchof TheNazarene A Place to Rt. I , 1 Hernando, FL 344 3790 E.. Parson's Poi Visit us on the Web at iwwwAchermande.carm .20 CITRsUS COUNrs' (FL) CHRONICLEz IGLESIA HISPANA CASA DE ORACION "Donde la Palar de Dios es el lenguaje del Espiritu Santo" Escuela Dominical.. .9:30 AM Adoraci6n........1....10:15 AM Martes .9:30 AM Mi6rcoles...............7:00 PM Dr. Teddy Aponte & Hayi Aponte, Pastores 3220 N. Carl G. Rose Hwy. (200) Hernando 352-341-5100 Florallevard CITRUS COUNTY (FL) CHRONICLE Places of worship that I offer love, peace and i harmony to all. . Come on over to "His" house, your spirits will be lifted! ! ', i- SERVICING THE COMMUNITIES OF CITRUS SPRINGS, BEVERLY HILLS, BROOKSVILLE, DUNNELLON, INVERNESS F 41 Years f F IRST Bringing COWrs8 F IRST ,,, L UTHERAN CHURCH Divine Services: 7:45 & 10am Holy Communion 7:45 Every Sunday: 10:00 1st & 3rd Sun. Sunday School & Bible Class 8:45 AM. 726-1637 Cry Room 1900 W. Hwy. 44,Inverness The Rev. Thomas Beaverson PRIMERA IGLESIA ) HISPANA DE CITRUS COUNTY Asambleas de Dios Inverness. Florida ORDEN DE SERVICIOS: DOMiNGOS: 9:30 AM Escuella Biblica Dominical 10:30 AM Adoraci6n y Pr6dica MARTES: 7:00 PM Culto de Oraci6n JUEVES: 7:00 PM Estudios Biblicos Laessperamos! David Pirero, Pastor 1370 N, Croft Ave, Inverness, FL 34451. Tel6fono: (352) 341-1711 CHRIST LUTHERAN CHURCH-LCMS "A CHURCH THAT IS A FAMILY" SUNDAY SERVICES Sunday School & Bible Class ,4:45 A.M. Morning Worship : 15 & 11:00 A.M. Holy Communion ist & 3rd 8:15 2nd & 4th 11:00 Pastor Paul Meseke Nur-.-rN Aailable 796-8331 475 North Ave. West, Brooksvilleg I,..-, ,.t kve. East of 98 N.) - A LITTLE STRESSED? FIND RELIEF HERE! First United Methodist SChurch of Inverness 3896 S. Pleasant Grove Rd. Inverness,FL 34452 (2 mi. so. of Applebee's) Come as you are. (352) 726-2522 KIP YOUNGER Senior POstor Join us for a casual I uplifting service with family praise & worship on Sunday at 9:00 AM A Additional Sunday Worship H Opportunities A WE ALSO OFFER 8:00 AM SHoly Communion S 10:45 AM STraditional Worship A S Signing for hearing impaired available upon request S 9:00 AM & 10:45 AM A Sunday School Classes for all ages 5:00 PM Student A Connection Time A S 6th Grade thru 12th A S Nursery care available starting at 9:00 AM WEDNESDAYS S 6:15 PM Bible Studies& SConnection Groups for everyone Open Hearts, Open Minds, . SOpen Doors A S , The Little House t Fellowship A Christian Ministry to enhance believers and fellowships by providing discipleship training Sunday Services lO R VINEYARD CHRISTIAN FELLOWSHIP Pastor: Kevin & Ruth Ballard Sunday Schedule: Holy Grounds Cafe..............900 AM Sunday Celebration..... .........:..10:00 AM Kids'C.vrr r liit.i AM Weekly Schedule: Fellowship Dinner.............6.........6 PM Wed. Bible Teaching 7 PM Wed. Pioneer Club 7 PM Wed. Fruit of the Vine Luncheon.....12 PM -11--'The ^ %Abundance is not somethingwe acquire, it is something we tune into." Wayne Dyer 'Learn to live a life o jo0ous abundance' Hope Evangelical Lutheran Church ELCA 9425 N. Citrus Springs Blvd. Citrus Springs SUNDAY Sunday School 9:15 Am Worship 8:00 AM & 10:45 AM Communion Every Sunday Information: 489-5511 Our Lady of Fatima CATHOLIC CHURCH U.S. Hwy. 41 South, Inverness, Florida K Sunday Masses 7.30 A.M 9 AM & 11.00 AM Saturday Vigil 4:00 PM Weekdays 00 A M KConfessions 2 30 3 30 P.M 726-1670 ,-e Holy Faith Episcopal Church 19924 W. Blue Cove Dr. Dunnellon Sunday Rite I Bible Study Sunday School Rite II Mission Possible MwISlES _J V. David Lucas, Jr. Senior Pastor (, 9921 N. Deltona Boulevard (352) 489-3886 | Sundays I Sunday School 9:30 am (English/Spanish) Worship 10:30 am Huhgry for God Service ................6 pm 1st Sunday of month (Nursery Care & Children's Church Provided) I Wednesday I Youth Group, Bible Study & Kid's Programs 7 pm (Nursery Care Provided) I Fridays ] Spanish Worship Service..............7 pm ARMS OF MERCY FOOD PANTRY 1st & 3rd Tuesday of the month. 8:00 am-11:00m am 8:00 AM 9:00 AM 9:00 AM 10:00 AM 489-2685 Hall Available For KCommunity Functions A friendly church where Christ is exalted!l! Sunday School Morning Worship Evening Service INVEYRNESS CHURCH OF GOD Re '. I rr N Po"'ur- Sundai Scrrsice.: E% c ni, Ss t) il1.' I .il I'I -X IJ I ICIJII .>I' 1.1r. Bo,'., iid Girl'1, Bri-nde 1111 f,1 TcrrI' if-. K im --h'j. h4:.4 Lsirnini: I ,risr" JESUS Is LORD MOUNTAIN ASSEMBLY 10117 E. Gulfto LakeHwy. Inverness, FL 34450-5430 East Hwy. 44 (352) 637-3110 Sunday School 10:00 A.M. Sunday Worship 10:30 A.M. Sunday Evening 6:30 P.M. | Thursday 7:00 P.M. - Re'. & Airs - Junohr Bri.sori "' j (352) 341-2884 f, - 9:00 A.M. 10:15 A.M. 6:00 P.M. Bible Study & Prayer 7:00 P.M. Awana /(K-RIa nrasi R': 81'5RPD U Special Event or Weekly Services Please Call Kathy at 563-3209 For Information On Your Religious Advertising I Hwy.44 E @ " Washington Ave., Inverness U " Sunday Services Traditional * 8:00 AM 11:00 AM I Contemporary I* 9:30 AM * 11:00 AM Service s Broadcast live on WRZN am 720 0 Sunday School for All Ages I 0 9:30 AM0 0 Nursery Provided 0 Fellowship & Youth Group I 0 6:00 PM 0 24-Hour Prayer Line * 563-3639 Web Site: i * Church Office 637-0770 * Pastors: Craig Davies & * I Dustin Sedlak First Baptist Church of Beverly Hills Marple Le%%is. Ill Pa. .r Alan Sanders .' ..'cio, Pa, lo 4950 N. Lecanmo Hwv. Beveri Hills. FL Located at the inlersection of Hwy 491 (Lecanto H*wy1 and Forest Ridge Blv''dlllsbaptist@tampabay.rr.com Sunday 10:45 AM & 6:00 PM Wednesday 7:00 PM Independent Fundamental Pastor Terry Roberts Ph: 726-0201 VIGIL MASSES: 4:00 P.M. & 6:00 P.M. SUNDAY MASSES: 8:00 AM & 10:30 A.M. ***** ***** SPANISH MASS: 12:30 P.M. CONFESSIONS: 2:30 P.M. to 3:30 P.M. Sat. orByAppointment WEEKDAY MASSES: 8:00 A.M. 6 Roosevelt Blvd., Beverly Hills V 746-2144 (1 Block East of S.R. 491) !- A70 INVERNESS SEVENTH-DAY 4ADVENTIST CHURCH 638 S. Eden Gardens Inverness, 34450 Hershel Mercer, Pastor 726-9311 Sat. Sabbath School 9:10AM Sat. Worship Hour 11:00 A.M. Wed. Prayer Meeting 6:00 P.M. , 4 Beverly Hills Jewish Center CONGREGATION BETH SHOLOM, INC. Fri. Evening Services 7:30 P.M. Sat. Shabbat Services 9:30 A.M. Spiritual Leader Rabbi Zvi Ettinger 746-5303 CIVIC CIRCLE, BEVERLY HILLS, FL. 34465 713189 729651 At Victory Baptist Church General Conference Sunday School 9:45 AM Worship 10:45 AM Sunday Evening 6:00 PM Wednesday 7:00 PM Choir Practice 8:00 PM Quality Child Care 5040 N Shady Acres Dr. 726-9719 or 795-5265 Highway 41 North, turn at Sportsman Pt. "A place to belong.A place to become." SNI'LIRDAY, NOVEMBFR Z-4, ZL)U/ Aft ....4.Z.'I' ., MT A r-Tv e 4 nn--4 7 A*%; 11 ('imus Cou'N7Y (FL) CHRONICLE H.ELIGIcN SATURDAY, NOVEMBER 24, 2007 5C GRACE Continued from Page lC let me go, not even once. Not even for a moment Not even when I thought perhaps you had. Thank you, Lord, that you never let me go! This year I have pondered the 23rd psalm. How you shep- herd, how you provide. How you make me lie down in green pastures and lead me beside still and quiet waters when my natural inclination is to wan- der into the weeds and thoins and mud. I don't understand why I fight you. I'm just thankful that you forgive, that you go get me and lovingly lead me back. Thank you for remaining faithful even when I'm not. Thank you for being mercy and grace. Thank you for your peace when I'm caught in a whirlwind of my own making, your patience with my impa- tience. Nothing surprises you, does it? Nothing is out of your con- trol. Nothing is too hard for you - no sin you won't forgive, no sinner you won't welcome home. Thank you, Lord, for the gift of repentance, the joy in confession, the delight of being forgiven and set free. Thank you, Lord, for my fuzzy green blanket, Brighton heart jewelry, stretch boot-cut jeans and my husband's unshaven face early in the morning. Thank you for warm breezes that blow against my skin and your mighty, holy wind that blows through my life. Thank you for awe and wonder, for silence and solitude, for grilled cheese sandwiches on sourdough bread, for a soul- satisfying job and co-workers who are friends. Thank you for my pastor. Thank you for my church. Thank you for my precious hus- band, for mentors and teach- ers, my daughters, my sister and my friends. Thank you for cleansing tears and rejuvenat- ing laughter, for the rhythm of words, the smell of chlorine, the sound of thunder and the hope that's in your name. Thank you, Lord, for not giv- ing me everything I ask for. '1 Thank you, Lord, for all you withhold and even take away. Thank you for your severe mercy, for it drives me to your side, brings me to my knees, teaches my heart that you alone are God. Holy! Awesome! Glorious in all that you do and are! You are wholly good. You are holy God. When I think about my life before I knew you, I remember the emptiness and the longing, the brokenness, the search for meaning, the fear and shame, the guilt Thank you, Lord, for not erasing those memories, for they remind me from where I came. I need to be reminded of your great kindness, the immense mercy of your salva- tion and the bottomless well of your much-needed grace. In a world gone mad, you are stability and saneness. A strong tower I can run to for safety, a caring Father I can turn to for love. You are faithful when I am not Your forgiveness has no end. You give life you are life. You, who fling the stars in the heavens to light the darkest darkness, thank you! You, who paint the morning sky with strokes of lavender, butter- scotch and pink, praise you. You, who rule the universe from on high and yet stop to hear my prayers, glory to your - --.-- - name. Thank you, Father, for your tender care. Thank you, Jesus, for shedding your blood for me. Thank you, Spirit, for breath- ing life into every cell of my being. With all I am and all I have, thank you. Amen.. Places of worship that Offer love, peace and Harmony to all. Come on over to "His house 'yor" spirits will be lifted.! L_ G o , C>-c 0) *A- 0" 0 S *.a m - - .- C,, ___ a) "~~0 a - 0~ -o I- C,) 4 '-_ E. 0_ -o C-)- E_ 0 a) -~~0 - S" SERVICING THE CITY OF INVERNESS - -~ -, ~ ~.R~'Tc7 %Norship/Teaching Suin 10ldill FEnglhsh Sun 6i pin Spal~ih Small Group Study SWed 7 pm LJIFl Group Celebrate Recovery SFil 7 pm FoodcGroup 2242 I Iw 44 West (across from Outhack in Inemrness) Freedom from Fwnedom In .. IA CHRIs-T PLEASANT GROVE CHURCH OF CHRIST 3875 S. Pleasant Grove Rd. Inverness, FL 34450 "Come Be A Part Of God's Family" Minister: Michael Raine (352) 344-9173 Sunday School For AllAges Nursery & Children's Training Class Provided S.R. 44 APPLEBEE'S ABC S3 PGRELEMENTARY PLEASANT GROVE RD. CHURCH OF CHRIST K ) All are invited to our Healing Services First Church of Christ, Scientist Inverness 224 N. Osceola Ave. Sunday Services 10:30 AM Sunday School 10:30 AM Wed. Testimony Meeting 1:00 PM 713187 352-726-4033 , INVERNESS First . CHURCH OF CHRIST Assembly OF CHRIST. of God i 8? * - - a a .~. - a - 0 - a .- S a a *0 - - S- FIRST CHRISTIAN CHURCH OF INVERNESS 2018 Colonade St., Inverness (behind Cinnamon Sticks Restaurant) 344-1908 We welcome you and invite you to worship with our family. Wednesday: 6:30 P M. Youth Program for all ages. Adult and Young Adult Bible Studies Something for everyone!!! Sunday: 9:00 A.M. Sunday School 10:15A.M. Worship 6:00 P.M. Worship Todd Langdon, Sr. Minister Dave Woodrurn, Worship Leader Dustin Gall, Youth Minister (c-mail: officc@fccinv.com) Children's Church 9:i lh 5- 2e6s* 205* -dw .c 550 Pleasant Grove Rd. 726-1252 I 352-O637-6400 5148 Live Oak Lane SUNDAY 10:00 AM 11:00 AM 5:00 PM WEDNESDAY 7:00 PM Come Worship With Us Darryl Cope, Evangelist BOWLING LIVE OAK LANE ALLEY K MART W HWY 44 E HWY. 44 7 9655 CHRISTIAN yr old Pre K 4 Before & After School Care Mon-Fri 6:30 A.M.-6-00 P.M. Two miles from Hwy. 44 on the corner of Croft & Harley 2728 Harley St., Inverness FL p Fort Cooper aBaptist Church Home of Inverness Christian Academy 4222 S. Florida Ave. Hwy. 41 S. Inverness, FL 34450 Sunday Sunday School Morning Service 1 Adult Bible Study Evening Service Wednesday K-5 5th Grade 9:30 AM 0:30 AM 5:00 PMI 6:00 PM Youth Programs 7:00 PM Teens' Program 7:00 PM. Adult Bible Study 7:00 PMI Marne Palmanii Pastor (352) 726-0707 " Q 01 - 0 - - S - S U- -a--- - ~ C .* - U- ao KINCDOM EMPOWERMENT CHUR611 KINGDOM EMPOWERMENT CHURCH I:F,11- CHI-CH SATuRDAY, NOVEMBER 24, 2007 SC RELIGION RTIC US COUNTY (FL E 5; l. ; .,'+. .: ; m . . - * o * qb 40 . i o . * l,-~N..--~N ,~L7>.. U ii, ,II'. I News British American Club meets monthly The next meeting of the British American Club of Citrus County will be from 7 to 9 p.m. Monday in the Beverly Hills Recreation Centre at 77 Civic Circle, off Forest Ridge Boulevard in Beverly Hills. Meetings are generally the fourth Monday monthly, although because of the proxim- ity of Christmas, the December meeting will be brought forward to Dec. 17. Coffee and refresh- ments are available. The club features a variety of activities every month, ranging from speakers on local or British topics, cards, bingo or trivia quiz. Visits to local museums and sites of interest, theater and garden trips. All visitors are welcome. You do not have to be British to par- ticipate, just have a lively mind and interest in contributing to discussions and conversations. For more information, call President Derek Johnson at 382-1611 or Vice President Derek Thorne at 527-3217. Doll, bear club to meet Wednesday The next meeting of the Sugar Babes Doll and Teddy Bear Club will be at 10:30 a.m. Wednesday at the Crystal Paradise Restaurant on East Citrus Avenue in Crystal River. Hostess for November is Suzanne Manning. She has chosen Advertising Dolls as her program. For Show and Tell, dolls in this group will be wel- come, as well as any soft-sculp- ture dolls from our October meeting. Sugar Babes welcomes guests and new members. Meetings are from September through June, with an informal luncheon in August. Please join us if you are a doll or teddy bear fan. Call Francine at (352) 794- 0070 or Barbara at 344-1423. Food ministry plans giveaway Wednesday EI-Shaddai Food Ministries will sponsor a "Brown Bag" of food from 10 a.m. to 2 p.m. Wednesday at the Crystal River Church of God, 2180 W. 12th Ave., Crystal River. Bags are made up of USDA food and donations to fill the bags. Food is given out the last Wednesday monthly as tempo- rary assistance to families in need. The church is behind the Lincoln Mercury dealer north of the Crystal River Mall. If you are homebound, call Don at 628- 9087 regarding delivery in the Crystal River area. USDA is an equal-opportunity provider. Weekly income has been raised. Call 795-3079. Dream Society seeks wrapping donations The Dream Society is in need of volunteers to wrap gifts and/or to donate the following supplies for its fundraising event from 9 a.m. to 7:30 p.m. Saturday and Sunday, Dec. 8 to 9 and 15 to 16, outside the Inverness Wal-Mart: wrapping paper, scissors, tape, gift boxes, bows or ribbon. All donations are tax exempt. E-mail Tricia Riccardi at info@thedreamsociety.org or call 400-4967 for more informa- tion about the event. According to the group's Web site,, "It is the goal of The Dream Society to assist people with moderate to severe physical challenges in becoming inde- pendent, productive citizens. By enhancing their lives with the tools to assist them, they will be able to give back to themselves and their community.". IR-RU 'Dice Run' today Social club gathers toys for needy families Special to the Chronicle today. Bring a new, unwrapped toy Hands are $5 or three for $10. 50/50s The IR-RU Family Social Club, a and all-day raffles. Leaves the club at charitable, nonprofit organization, is 10:30 a.m., 9211 S. Florida Ave., Floral having its annual Christmas Dice Run City. Stops include: 1. Sandhill Saloon, 3782 State Road 44, Lecanto, call 527-6759. 2. Mike's Friendly Pub, 5465 S. Oak Ridge Drive, Homosassa Springs, cor- ner U.S. 19/98, call 628-6896. 3. Tailgators' Sports Bar, 8129 Cortez Blvd., Weeki Wachee, call (352) 596- Seven Rivers Regional's annual Employee Awards Special to the Chronicle The 24th Annual Employee Awards Banquet was Oct. 10 at Citrus Hills Golf and Country Club. The director or manager for each employee read a short biography telling a little something about them, while Joyce Brancato, CEO, then presented each recipi- ent with a gift of an HMA milestone pin. Employees who were able to attend the event are pictured, but all of the employees who were recognized for their years of service at SRRMC are listed below the appropriate milestone. Five years; service Back row, from left, are: Kimberly Posila, Deborah Bennett, Ava Berry, Brian Almond, Donna Austin, Barry Lingelbach, Katarina Kapisoda, Michael Carlo, Ronnie Hamed and Barbara Roderka; center, James Wims, Jason McCauley, Anne Gilley, Marilyn Borchers, Sheila Hendricks, Lorretta Raynes, Rachel Nicholson, Talya Hastings and Rachel Bilby. Front row, from left, are: Michelle Breitweg, Kathleen Brown, Albert Barcena, Carol Lewis, Waylyn Lambe, Deborah Perry and Darlene Scully. Not pic- tured: Carol Bastress, Carla Buzby, Kimberly Kelly, Lisa Leirer, Robert Lobianco, Kelly Niblett, Eric Peterson, Marion Pontier, Mary Sanchez, Duann Stiles and Nancie Vanture. I I f^ll^ iE~sB^^^ K'1 |^-' ." " 10 to 15 years' service Back row, from left, are: Theresa Bodden, Elizabeth Hooper, James Finney and Donna Johnson; front row, Evelu Ramos-Huffman, Janora Wade, Ann St. Clair Taube, Cathleen Munn, Carol DeFalco, Jeanne Murawski and Stephen Troiano. Not pictured: Jacqueline Ayala, Janet Birdsong, Michael Bushey, Donald Dempsey, Anna Eades, Debra Guilmette, Paula Houseknecht, David Kirshen, Bryan Labuda, Debbie Otterbein and Mary Scott. 20 to 30 years' service - Back row, from left, are: Elizabeth Boswell, Susan Gibson, Lewis Wilt, Ethel McCauley, John Martynowski and Cynthia Heitzman; front row, Renate Smith and Elizabeth Martynowski. Not pictured: Carla Harber, Karen Hubbell and Richard Tomlinson. Retirees not pictured: Richard Edstrom, Lewis Michael, Judy Seiber and Mary Shrewsbury.- Hospital volunteer officers installed Special to the Chronicle Citrus Memorial Health System installed its new Volunteer Officers on Nov. 8. Iva Puckett handed over the presidential reins to Nora Devitt. Iva served as president from 2005 to 2007. She began volunteering in July 1996 and has served more than 16,000 hours. Puckett was awarded Volunteer of the Year in 2000. She has served in many areas of the hospital and is always willing to help and go the extra mile. Puckett has done so much for our organization and will continue to give. She now serves in the auxiliary office and the information desk. The new officers were all installed at the general auxil- iary meeting. Lynn Jones will be the new treasurer. She has been volun- teering at CMHS since January 2007 and has given almost 500 hours. The new secretary is Pat Anson, who became a volun- teer in June 2006 and has given '-Si 2w 1',. Volunteer Officers at Citrus Memorial Health System, from left, Devitt, Jack Condron, Lynn Jones and Iva Puckett. 1,500 hours of service. Jack Condron accepted the first vice president service position. He started volunteer- ing in July 2005 and has given more than 1,100 hours. The new vice president is Jacque Brown, who began vol- unteering in August 2004 and has served 2,300 hours. The new president is Nora Devitt, who became a CMHS Special to the Chronicle are: Pat Anson, Jacque Brown, Nora volunteer in August 2004. During this time, she has served in obstetrics, the infor- mation desk and the auxiliary office. She has given more than 4.100 hours of her time. 0034. 4. Mac's Place, 12750 S. Florida Ave., Floral City, call 637-6442. 5. Then back to IR-RU for food, music and fun. All wheels welcome. Help us bring Christmas to those less fortunate. For information, call 637-5118. SFriends offer holiday tours Special to the Chronicle The Friends of Crystal River State Parks Inc. is offering a variety of special holiday boat tours. The first is a Sunset Cruise at 4:30 p.m. Friday, into the Gulf of Mexico. The next trip is a Saturday, Dec. 22, excursion in the Crystal River Lighted Boat Parade. Boats will depart the Preserve docks at 5 p.m. for a 4-hour trip around Kings Bay and back. The boats will be decked out in hundreds of lights and will join many oth- ers in the annual event. Christmas Eve, the regular 10:30 a.m. and 1:30 p.m. trips will have a special route, and gifts for all. Another sunset cruise for the following Friday, Dec. 28 at 4:30 p.m., will offer riders a chance to enjoy a typi- cally cool and crisp evening on the river. The final trip of the holiday season is a New Year's Eve adventure, departing the docks: at 7 p.m. for a two-hour trip out - to the Gulf of Mexico. Refresh- ments and snacks provided. The regular trips at 10:30 a.m. and 1:30 p.m. Monday, Wednesday and Friday run throughout the holidays. Tickets for all trips are avail- able in advance, via cash or check only, at the Preserve Visitors Center. Seats are limit- ed. A donation of $15 for the New Year's Eve trip, and $10 for all others is suggested. For more information, call the Preserve State Park office at 563-0450. Events support Relay team Special to the Chronicle The Inverness Primary Relay for Life team has the fol- lowing fundraisers going on and welcomes the public to join them. All current fundraisers can be found at, then click on the Relay for Life button. There are poinsettias for sale at $9 per plant Orders will be taken until Wednesday with plants being delivered the first week of December. A Breakfast with Santa on Saturday, Dec. 15, at IPS. Tickets are on sale until Dec. 13 with two sittings, 9 and 10:30 a.m. with a full breakfast, as well as pictures with Santa and face paintings. Tickets are $3 each. There is also a pie sale going on until Dec. 15. Cinnamon Sticks restaurant has teamed up with us for several years to offer many of their delicious pies at their regular price, but then donating a large portion of the sales for those that we pre-order for the American Cancer Society Order forms for all of these fundraisers can be printed from the Web site and sent to the school, or call 726-2632 for more information. Ask for Dawn Mundy or Robin Coolbeth, team captains. Submit information at least two weeks before the event. 4-.. A I SAU -- '-Y NOVEMBER 24, 2007 corn - ' Cl T R LI- I( U N -1 C 1-fR L E. I RTIC US COUNTY (FL) C s SATURDAY EVENING NOVEMBER 24, 2007 C: Comcast,Citrus B: Bright House D: Comcast,Dunnellon I: Comcast, Inglis C B D I 6:00 6:30 7:00 7:30 8:00 8:30 | 9:00 | 9:30 10:00 10:30 11:00 11:30 WESH j News (N) NBC News Entertainment Tonight (N) Movie: k "The Incredibles" (2004) Voices of Craig T. 30 Rock News (N) Saturday NBC 19 19 1 989 1c 8279 Nelson, Holly Hunter. (In Stereo) 2B 105429 'PG' 40569 8540 Night Live 3OU ___ Andre Rieu: Radio City Lawrence Welk. God Bless America (In Stereo) 'G' g 362366 Celtic Woman: A Christmas American Soundtrack: PBS- 3 3 Music Hall Celebration (In Stereo) 'G' e 51434 Doo Wop WUiT f Suze Lawrence Welk: God Bless America (In Stereo) 'G' cc 998705 Celtic Woman: A Christmas Stevie Ray Vaughan Live: Play Hard & PUBS- B 5 5 5 Orman Celebration (In Stereo) 'G' c 98291 Floor It! 'G' Bc 84786 NwFLAE News (N) NBCNews Entertainment Tonight (N) Movie: *** "The Incredibles" (2004) Voices of Craig T. 30 Rock News (N) Saturday NBC 8 8 8 8 4231 1 49366 Nelson, Holly Hunter. (In Stereo) c] 623989 'PG' 82569 98237 Night Live w-V) College Football Jeopardy! Wheel of College Football Teams to Be Announced. (In Stereo Live) 'G' [c 383328 News (N) ABC 20 20 20 20 'G' B 1160 Fortune 'G' 5126328 wrs.P College Football Florida State at Florida. (Live) B CSI: Miami CSI: NY "Raising Shane" 48 Hours Mystery (In News (N) Paid CBS B 10 10 10 10 317076 "Backstabbers" '14, V '14, L' c] 83724 Stereo) 'PG' 9 86811 3501250 Program \0 m 1" News (N) R 42892 King of the The Bernie Cops (N) Cops'PG, L' America's Most Wanted- News (N) cc 16683 Mad TV Kathy Griffin. (N) FOX 13 13 Hill'PG' Mac Show 'PG, L' [ 002347 Fights Back '14, D,L,S' B 29786 ["wcJ1 College Football Entertainment Tonight (N) College Football Teams to Be Announced. (In Stereo Live) 'G' BB 194076 News (N) ABC 11 11 [E 81908 45601 [ Cornerstone Hour 3[ Van Impe Giving Hope Scott Young Healing Leslie Hale c9 9800540 Live From Liberty 'G' 9 Ed Young Wisdom IN 2 2 2 2 3683386 Pres Touch 9810927 Television. Keys (WFTS College Football News (N) Wheel of College Football Teams to Be Announced. (In Stereo Live) 'G' B[ 367960 News (N) ABC B3 11 11 11106 Fortune'G' 1357863 1WMOR) Frasier 'PG' Frasier 'PG' Family Guy Family Guy UFC Wired 'PG' c 87144 Cheaters (N) (In Stereo) Chappelle's Chappelle's Law & Order: Special IND 12 12 23960 47540 '14, D,L,S' '14, D,L,S,V' 'PG' 0] 62368 Victims Unit '14' 34298 WTT6) The Shield "Kavanaugh" Seinfeld Every- NFL Total Access (N) B9 IFL Battleground (N) (In Star Trek "Space Seed" Sex and the Sex and the MNT B 6 6 6 6 'MA' c 6615182 'PG' Raymond 7064960 Stereo) 9 7084724 'PG' C] 7087811 City '14, City'14, '*WAr Higher Variety 7569 Dr. Dave Life Center Church Hal Lindsey Calvary in Rod Parsley 'G' c Sheila J. Mike Kingdom TBN 21 21 21 Ground Martin 590927 4499 Focus 850786 Spencer Murdock 'G' Life 98521 (WTOG Two and a The King of Two and a The King of The Friends '14' The Friends '14' CSI: Miami "Come As CSI: Miami CW 'a 4 4 4 4 Half Men Queens Half Men Queens Simpsons 9 8219 Simpsons 52279 You Are" '14, V c9 16665 "Backstabbers" '14, V c lWE 1 1 Raceline FIM Steel Cybernet 'Y' USAR Hooters ProCup Planet X'G' Planet X'G' HWAAdrenaline Ultimate Combat FAM 16 16 16 16 'PG' 30250 Freestyle Dreams 'G' 27786 Series Racing 94434 76540 27219 Wrestling cc 84057 Experience 'MA RE 82160 (W .. Seinfeld Seinfeld American Idol Rewind (N) Cops (N) Cops'PG, L' America's Most Wanted- News (In Stereo) c[ Mad TV Kathy Griffin. (N) FOX J 13 13 'PG' c 'PG' c 'PG' c 81366 'PG, L' cc cc 3811 Fights Back 80637 '14, D,L,S' 0g 58415 S(W a 4. .- 4 Que Locura Noticiero Una Familia La Parodia Sabado Gigante'PG' 149786 Primer Noticiero UNI 15 15 15 15 Univisi6n de Diez 453144 Impacto Univision fwxpx NFL Game of the Week It's a NHL Hockey New Jersey Devils at Tampa Bay Lightning. From the St. Pete it's a Time Life Paid i 17 in HD Miracle Times Forum in Tampa Fla. (Live) 562163 IMiracle Music Program A 54 ,48 54 A A Movie: **** "The Godfather" (1972, Drama) Movie: *** "The Godfather, Part II" (1974, Drama) Al Pacino, Robert Duvall, Diane Keaton. A 4 4 4 4 Marion Brando, Al Pacino. 9 172182 Michael Corleone moves his father's crime family to Las Vegas. cc 802811 55 64 55 55 Movie: ***s "The Hunt for Red October" Movie: ** ** "The Searchers" (1956, Western) John Wayne, Movie: *** "Rio Bravo" (1959) (1990, Suspense) Sean Connery. 407811 Jeffrey Hunter, Natalie Wood. 84120328 John Wayne 70090960 i 52 35 52 52 To Be'Announced 5210453 Wild 100: Top 10 (N)'G' The Most Extreme, the Best ofthe Best Special'G' Wild 100: Top 10'G' 9899434 c c 9892521 8583347 BRAVO 74 Project Runway '14' cc Project Runway '14' cc Movie: *** "Cold Mountain" (2003, Drama) Jude Law, Nicole Kidman. A Movie: "Cold Mountain" 367908 902095 Confederate soldier tries to reach his sweetheart. 0 629347 (2003)643927 S 27 61 27 27 "Adam Movie: **' "Blue Collar Comedy Tour Rides Again" (2004, Kevin James: Sweat the Dave Chappelle: Killin' S. S. Sandler's" Documentary) 780347 Small Stuff'PG' 62386 Them Softly'MA 12863 Silverman Silverman 8o 5 o9n o9 Cheerleader Cheerleader Cheerleader Cheerleader I Want to Look Like a HS Trick My Cyrus, A Toby Keith Classic "A Smoky Mountain SCMT] 98 45 98 98 Cheerleader Trucker Home Christmas (N) 15927 Christmas" 987144 E -N 95 65 95 95 Mother Angelica Live Daily Mass: Our Lady of God Touches a Life: Bookmark The Holy Fr. John Corapi 'G' The Journey Home 'G' (EWT 95 5 95 9 Classic Episodes the Angels 'G' 6435453 Catherine LaBoure 'G' 4071366 Rosary 6434724 1512144 FM 29 52 29 29 Movie: ** "Three Days" (2001, Romance) Kristin Movie: * "White Christmas" (1954) Bing Crosby. Four Movie: ** "White Christmas" Davis, Reed Diamond. 'G' 0 371255 entertainers try to save an innkeeper from ruin. 171724 (1954) Bing Crosby. 169989 rcv1 30 60 30 30 Movie: * "13 Going on 30" (2004) Jennifer Movie: * "Spider-Man 2" (2004, Action) Tobey Maguire, Kirsten Dunst, James Franco. 30 Days [,Rj Garner, Mark Ruffalo, Jud" Greer. 6427434 Peter Parker fights a man who has mechanical tentacles. 7540415 'MA, L' GTV 23 57 2 3 23 Get It 24 Hour House House Designed to Deserving Color Divine Design on a Find Your Color Get It i--lV 3 5 Together 'G' Design 'G' Worth? Hunters'G' Sell'G' Design'G' Splash'G' Design'G' Dime'G' Style'G' Correction Together'G' e51 25 51 51 Andrew Jackson 'PG' c Modern Marvels "Corn" Kennedys: The Curse of Power 'G' c9 6420521 The Kennedy Assassination: Beyond Conspiracy 57203182 'PG' c 6417057 'PG' 4060250 IE 24 38 24 24 Movie: ** "Lucky 7" Movie: ** "Miss Congeniality" (2000) Sandra Movie: **hs "Beauty Shop" (2005) Queen Grey's Anatomy c9 [ ... .. 2 (2003) 'PC, S' 09 704347 Bullock, Michael Caine. c9 792637 Latifah, Alicia Silverstone. Premiere. cc 876845 781521 ,,iki 28 36 28 28 Fairly SpongeBob SpongeBob SpongeBob Back, Tak, Power SpongeBob SpongeBob Full House George Fresh Fresh OddParents Barnyard 'G'535279 Lopez 'PG' Prince Prince -E.31 59 31 31. The Stand '14, V' [ The Stand (In Stereo) (Part 4 of 4) '14, V' c Battlestar Galactica Lee Adama embarks on his first Movie: * I 31 59 31 5436786 9278434 mission as commander. (N) 'PG' [] 4920892 "BloodRayne" (2005) SIK .37 43 37, 7, CSI: Crime Scene CSI: Crime Scene CSI: Crime Scene CSI: Crime Scene The Ultimate Fighter (In TNA IMPACT! (In Stereo) SrE ,, 3 433 37 -Investigation '14, V Investigation 'PG' 330188 Investigation '14, L,V' Investigation '14, S,V Stereo) '14, L,V' 485417 '14, L,V' c 294873 -dq 49 23 49 49 Sex and the Sex and the Seinfeld Seinfeld Movie: * "Guess Who" (2005) Bernie Mac, Movie: *, "Boat Trip" (2003, Comedy) Cuba S 49 49 4 City '14, City '14, 'PG' 460366 'PG' 174057 Ashton Kutcher. c 2603144 Gooding Jr., Horatio Sanz. [ 5711786 TCM 53 Movie: **** "Elmer Gantry" (1960) Burt Movie: ***'A "From Here to Eternity" (1953, Movie: *** "Take the Money and Run" (1969, S 5 Lancaster, Jean Simmons c9 41102892 Drama) Burt Lancaster. 24853521 Comedy) Woody Allen. 0 94812231 5:3 34 A 53 53 Planet Earth "Ice Worlds" Planet Earth Seasonal Movie: * *,s "March of the Penguins" (2005) Giant Squid: Caught on Planet Earth Seasonal (T'^ 53- 34 53 53 'G' c[ 244415 effects. 'G' 929569 Narrated by Morgan Freeman. 909705 Camera 'G' 911540 effects. 'G' 501347 ti 50 46 50 50 Flip It Back 707502 Property Ladder "What Little People, Big World Flip That IFlip That Trading Spaces (N) 'G' Little People; Big World Women Want"'G'730304 'G' [ 730124 House (N) IHouse (N) 180845 'G' 9 442298 TT 48 33 48 48 A Movie: *** "Spider- Movie: *** "Men in Black" (1997) Tommy Lee Movie: ** "Men in Black ll" (2002) Movie: *** "Spider-Man" (2002) [ T 48, 33 48o 48 Man" 0 600366 Jones, Will Smith. cc 411328 Tommy Lee Jones. 5983434 Tobey Maguire. 7522927 T 9 54 9 9 Yellowstone: America's The Colorado: River of Secrets of Niagara Falls World Poker Tour 'PG, D' c 7078095 The Colorado: River of First National Park 'G' Wonders 'G' 7059960 'PG' c 7075908 Wonders 'G' 5348618 -T 32 75 32 392 100 Memorable TV 100 Memorable TV Movie: * "Saturday Night Fever" (1977) John Travolta. A Andy Griffith Andy Griffith Andy Griffith .V . 3 Moments 3588732 Moments 9808182 Brooklyn nobody becomes a disco king. 4237366 I I S 47 32 47 47 Movie: * "Bruce Almighty" (2003) Jim Carrey, Movie: * "Elf" (2003, Comedy) Will Ferrell, Law & Order: Special House A patient wants to Morgan Freeman. 9 533786 James Caan, Bob Newhart. 538231 Victims Unit '14' 557366 end his life. 130873 S o18 18 18 18 Idol Rewind Home Lighting of the Great Tree Movie: *** "The American President"(1995) WGN News at Nine (In Scrubs'14' Reno 911! Videos at Macy's Michael Douglas. cc 986057 Stereo) cc 998892 276182 1'14' 344182 SATURDAY EVENING NOVEMBER 24, 2007 C: Comcast,Citrus B: Bright House D: Comcast,Dunnellon I: Comcast, Inglis C B D I 6:00 6:30 7:00 7:30 8:00 L8:30 9:00 9:30 10:00 10:30 11:00 11:30 IN 46A 40 46 46 Cory in the Cory in the Cory in the Cory in the Movie: "Jump In!"(2007, Drama) Hannah Hannah Hannah Zack & Cody Hannah House 'G' House'G' House 'G' House 'G' Corbin Bleu, Keke Palmer. 'G' 2267057 iMontana 'G' Montana 'G' Montana Montana 'G' HALL 39 68 n39 39 Movie: "Fallen Angel" Movie: "The Christmas Card" (2006, Romance) Ed Movie: "A Grandpa for Christmas" (2007, Comedy- Movie: "Fallen Angel" 3 (2003) 'PG' 7727250 Asner, John Newton. 'PG' E 8570873 Drama) Ernest Borgnine. 'PG' 00 9885231 (2003) 'PG' 7533163 HBO Movie: **u "You've Got Mail" (1998, Romance- Movie: ** '"The Nativity Story" Movie: ** "Fantastic Four" (2005, Action) loan *4 "The Comedy) Tom Hanks. c 81615892 (2006, Drama) c[ 3314809 Gruffudd, Chris Evans. cc 51758328 Marine" _: "Black Movie: ** "She's the Man" (2006) Movie: ** "Major Payne" (1995, Comedy) Damon Movie: ** "Snakes on a Plane" (2006, Horror) Rain"B 0 rAmanda Bynes. 8123163 Wayans, Bill Hickey. 93128927 Samuel L. Jackson. 0 7425163 9} 97 66 97 97 America's Next Top Model America's Next Top Model America's Next Top Model America's Next Top Model America's Next Top Model A Shot at Love With Tila 'f) 6 7 'PG' 9 426057 'PG' 0 199148 'PG' 721796 'PG' c] 826340 'PG' cc 171417 Tequila 783989 fNTGC 71 Lockdown "Total Control" Explorer "Heroin Crisis" Dangerous Encounters Animal Genius: Hog Explorer "Hogzilla"'G' Dangerous Encounters '14, V 5290095 '14'2030811 With Brady Barr 'PG' Genius (N) 'PG' 2036095 2039182 With Brady Barr 'PG' 62 Movie: "Mass Appeal" Movie: ** "Pandaemonium" (2000, Drama) Linus Movie: ** "Crazy/Beautiful"(2001) Movie: ** "I'll Do Anything" (1994) [PE (1984) 5318347 Roache. cc 57557144 Kirsten Dunst. N 4213845 Nick Nolte. c9 82384881 CNBC 43 42 43 43 Paid Paid Deal or No Deal (In Flipping Out 'PQ L' 0[ The Suze Orman Show Deal or No Deal (In Flipping Out 'PQU L' 0 43 42 43 43 program Program Stereo) '14' 0 8518569 8594989 (N) 9 8507453 Stereo) '14' 0 8500540 3350601 CN 40 29 40 40 Lou Dobbs This Week This Week at War 563927 CNN: Special Larry King Live 'PG' Newsroom 562298 CNN: Special 895163 Investigations Unit'PG' 552811 Investigations Unit 'PG' 25 55 25 25 Forensic Forensic Forensic Forensic Forensic Forensic The Investigators 'P L' Haunting Evidence Hollywood Hollywood COU 25 55 25 25 Files'14' Files '14' Files '14' Files '14' Files 'PG' Files '14' 8592521 8502908 Justice 'PG' Justice fcTh 44 37 44 44 The Beltway Fox News Fox Report 4936453 Geraldo at Large (In Special Programming The Line-Up 4935724 Jml Edit. Rpt The Beltway Boys Watch Stereo) 'PG' 004912873 4932637 Boys M SN i 42 41 42 42 Tim Russert 6184182 Murder on Lovers Lane Dead Men Talking: Trail of Lockup: San Quentin Dead Men Talking: Double Dead Men Talking: Trail of 4949927 Evidence 4938811 Homicide Evidence S 33 27 33 33 College Scoreboard College Football College Football Teams to Be Announced. (Live) 'G' 139908 SportsCenter (Live) cc IESPJ 33 2 3 Football Scoreboard 389927 956873 34 28 34 34 College Scoreboard College Football Teams to Be Announced. (Live) 'G' 0 8504144 Scoreboard College Basketball Las Vegas SP 34 28 34 Football Invitafional Final Teams TBA. cc F 35 39 5 35 College Football Big 12 NBA Basketball Miami Heat at Orlando Magic. From Magic Best Damn To Be Final Score FSN Pro Football Preview [f Teams TBA. 332057 Amway Arena in Orlando, Fla. 8717927 Tonight 50 Announced 699144 F ] 67 Big Break: Mesquite Big Break: Mesquite Tiger's Clinic Golf Central Golf Omega Mission Hills World Cup Day 3. From Shenzhen, Golf: World 6002786 8510927 (Live) China. 1042057 'Cup SUNii 36 31 36 36 To Be Announced 611618 NBA Basketball Miami Heat at Orlando Magic. From Heat Breaking, Boxing 2006 Richard Hall vs. Glenn Johnson. 70328 Amway Arena in Orlando, Fla. 1264328 Postgame Weapons qmp a m j --. 4 . & _ Y Y Y Y * - 0 - *0 - - S 0 a - S ~- 'w - ~ a -~ - a a a5 o~ 0 a- -. - . :-4, -- duo-oz a- dam, d - 0 -I 0 * a YvYv' a - 0 0 0 * * -~ 'a a-- ~-~- * a--- 0 - 4.- -a - - = ~- a.- - he PlusCode number printed next to each pro- PlusCode number. cable cha gram is for use with the Gemstar VCR Plus+ sys- If you have cable service, please make sure that the conv tern. If you have a VCR with the VCR Plus+ fea- your cable channel numbers are the same as the procedure ture (identified by the VCR Plus+ logo on your VCR), channel numbers in this guide. If not, you will need to Should yi all you need to do to record a program is enter its perform a simple one-time procedure to match up the tern, plea The channel lineup for KLiP Interactive cable customers is in the Sunday View - -?,a I)- -"Copyrig innels with the guide channel numbers using enient chart printed in the Viewfinder. This e is described in your VCR user's manual. ou have questions about your VCR Plus+ sys- ise contact your VCR manufacturer. m finder on page 70. hted Material i* * m -~ * a * m 410 o d*- b.. 4 a" - - -- -~. ~@ *' 'q ~' Syndicated Content I Available from Commercial News Providers" _- -R w ~ I - ~ a- 0* * _ sm" SATuRDAY, NOVEMBER 24, 2007 7C ENTERTAINMENT f--y rc t-nr fvu (Pf ) T.- 4 1 . * o * * - - 4NO.Om . . * * - - B 9 '% - 4wo" CiTRUS COUNTY (FL) CHRONICLE (C)oM ICS a U 4 go Apo- w eliOT U'. 44 00 4, a S S 0 0 0 04- S - *4, S * . mop, 4,d 0 0 & 4, - . ~* .t aim V3-w * __ 4,4 * - 4, 0 S3' IM. C'l -ZB ow 4mb 4m 4 V:: 44% - eaC"Coynghte ri all p r* IMAf SI. --- synadcatedContent- *Available from Commercial News Providers * 4, * - ft 4, ~ - 1 0 a q. S. 'q6 B .3 now_4b a 4,ll -,% S S 4m r-4, .5 0% 4,.-- ~ 4,. *bwqa * ~ m ~. -. WW d- hido im- W4b Wlk WE-s 4p. a *. ee 4 .. e . SA\1 0 " . a ps 0 4 maw* boom 4 ~ - - 4, U - a 111 pir'LvtL w e * - - o .*0*.0.- 0 0 0 0 0 S00 0 0S 0 ft-. o - * * * * 0 0*. 0 * * * * * -0 0 dip 4m 60 0 *00 060 * 0 * * 4, 4, - o~~ un - 4,0~ - *0 - mom _ Ao - 4 0 0 4 AC~ Obp emw-Qwam-o *1 * 0 * 0 * * RS%. SATuRDAY, NovFmBFR 24, 2001 Re- NI--RPR 944 ?007 - o o do ON -mm 4wo- 4ow 4004M %.qpmw abow %S 401M 41L pf lp &us I SATURDAY, NOVEMBER 24, 2007 9C CriRus CouNT' (FL) CHRONICLE Remodeled from the roof down & beautiful!!! 2 BEDROOM, 1 BATH HOME -_ .A with family room & carport. NEW: Central heat & a/c, roof, S' kitchen,bath, all appliances, carpet, ceramic tile, ceiling fans & more. Fenced yard with shed. $89,900 Call 352-527-1239 Directions: Hwy. 491 to Roosevelt to Left on S. Lee to #43 Classifieds i waa^, Get Results In The Homefront Classifieds! 1.25 Acre fenced yard, side entry garage, custom maple kitchen, ceramic tile, ceiling fans. new appliances & numerous upgrades. (352) 270-7127 726915 Directions: Corner of Breadnut & Mustang 4302 N Breadnut Ter. To place an ad, call 563-5966 Classifieds In Print and Online All The Time --_Moro" Fax: (352) 563-5665 1 Toll Free: (888) 852-2340 1 Email: classifieds@chronicleonline.com I website: C= Free Event Personal CO Restaurant -%General 4hh 401h 01 D Offers M Announcements M Announce"ic" Tickets Icp/Beauty IC." Medical 1cm/Lounge Ic= Help Is there a special Female in Citrus Co. aged 25-35 yrs. old? I am a decent man & in need of someone for a relationship and possible future. Call anytime (352) 628-9416 LOOKING FOR A LONG TERM RELATIONSHIP, with a slim, trim lady in her 50's, that is a non smoker, no tattoos, no drugs and is Clean and neat. Lets talk. Please call (352)209-7337, Ocala Widower, WM, 65, 6'2", 220#, retired. ISO lady, 55-65 for LTR. Likes movies, dining out, beach, travel. No-smk. See what happens! Replies to: Blind Box 1406, c/o Citrus County Chronicle, 106 W. Main St., Inverness, FL 34450 Young Male Doctor looking for girlfriend 18 28 for travel & good exp's. Looking for someone different, not something. Please send photos & information to Drtomas3@ yahoo.com $$CASH WE BUY TODAY Cars, Trucks, Vans rt FREE Removal Metal, Junk Vehicles, No title OK 352-476-4392 Andy Tax Deductible Receipt 30 Years of Amatuer Radio Magazine "QST" (352) 344-4688 S TOP DOLLAR For Junk Cars $(352) 201-1052 $ $$ CASH PAID $$ Having Code Enforcement problems w/ Junk vehicles in your yard? (352) 860-2545 $$CASH FOR CARS$$ No Title Needed. Gene(352) 302-2781 CHOW MIX DOG FREE TO GOOD HOME Good w/other animals. (352) 270-3270 COCKER SPANIEL 5yrs for ADULT Companion Great DOG (352) 465-1750 COMMUNITY SERVICE The Path Shelter is available for people who need to serve their community service. (352) 746-9084 Leave Message FIREWOOD Oak not split, U-haul 352-212-0081 Free Freezer upright, needs work, call Doug at (352)341-0745 FREE LARGE ORGAN You haul, Hernando United Methodist Church, Mon-Fri. 9-3pm (352) 726-7245 *FREE REMOVAL OF. ATV's, bikes, cars, jet skis mowers, golf carts, We sell ATV parts 628-2084 FREE REMOVAL Scrap Metal, Appl.'s, A/C, Mowers, Motors, etc. Brian (352) 302-9480 FREE removal Unwanted Furniture Garage Sale & Household Items Call (352) 476-8949 Lab/Dane Mix 921bs, 2yrs old, all shots/neuter'd hse broken, no other male dogs (352) 270-8126 a I B 7 4 The Path Shelter will pick up your unwanted vehicle Tax deductible receipt given (352) 746-9084 $ $ CASH PAID $ $ Junk Cars, Trucks, Vans No Title OK, Call J.W. (352) 228-9645 GARAGE DOOR OPENER grey w/blue button. Sears, vic. of. ' Inverness. 352-726-8643 LOST PRESCRIPTION SUNGLASSES, Thurs. Nov. 15, vicinity of downtown Inverness Call (352) 726-0585 Ferret in Homosassa Please call to identify (352) 628-3685 PUPPY Mix Breed Med Size Nuetered VIC Citrus Springs Blvd. (352) 465-1750 PUPPY, young female, Turner Camp Rd. area. Call to indentity. (352) 212-5736 E-3 iotcewt r "DIvORCES m BANKRUPTCY *Name Change | SChild Support .Wills We Come To You 637-4022 .795-5999 1 (352) 563-5966 HOUSECLEANING 2/1 Home $40 Cry. Riv. or Homosas. (352) 209-3124 9 a a 4 "Copyrighted Material Syndicated Content a I? rescued pet cornm View available pets on our website or call (352) 795-9550 Need help rehoming a pet call us Adoptive homes available for small dogs Requested donations are tax deductible PET ADOPTIONS Saturday, Nov. 24. 10am- 12pm Sugarmill Manor As- sisted Living Facility US Rt. 19, Homosassa Saturday, Nov. 24. 12pm 2pm Grooming by Glenda 407 US Hway 41, Inverness Christmas puppies and kittens NEED YOUR CHRISTMAS LIGHTS HUNG? Call James 352-302-0397 OPENING SOON Mobile Lunch Stand Coall If you have a desirable location. Monica or Zlatko Kendic (352) 503-6124 or (352) 697-1193 rescued oet cam View available pets on our website or call (352) 795-9550 Need help rehoming a pet call us Adoptive homes available for small dogs Reauested donations are tax deductible PET ADOPTIONS Monday, Nov. 26 12pm 2pm Mercantile Bank US Rt. 19 Crystal River .41N www hofsoha org or stop by our offices at 1149 N Conant Ayve. Corner of 44 Sand Conant. Look for the big white building with the bright paw prints. Navigate the INTERNET like a PRO. 1 Price $25 (352) 563-0434 Trace Adkins and Montgomery Gentry Concert tickets avail, great seats. Help a youth organization. 352-613-8165, 527-4224 CNA AVAILABLE For Private duty 1st or 3rd shift, 15 yrs. exp. (352) 302-4015 One Crypt for Sale in Beverly Hills Memorial Gardens Cemetery. $7,000. (516) 766-1942 A free report of your home's value living.net B'ost Traffiq To Your Website Chronicle Website Directory In print and online. Our search engine will link customers directly to your site. In Print = One Price $51.95 (3 lines of copy for 30 days) Header and Website Address Call Today: (352) 563-5966 Home Decor/Gifts littlerivertrading post.com PARALEGAL/ LEGAL SECRETARY Family Law exp. pref'd. Drop/mail resume. Militello & Militello, P.A. 107-B W Main St. Inverness, FL (352) 637-2222 TELEPHONE OPERATOR F/T, Busy Med. Practice. Experience a plus. Must be able to multi-task. FAX RESUME TO: (352)726-5038 -U D.Mssae | 'WIeekend Dec. 10 Cometlogy';.1Al~ BARBER/STYLIST Great opp. Busy. FT/PT Family Headquarters 628-2040/ 249-0833 SERENITY DAY SPA "Best of the Best" Looking for: NAIL TECHS MASSAGE/ SKINCARE Apply in person. 1031 N. Commerce Ter. Lecanto Wanted Non smoking Live in Companion for legally blind Senior Female Veteran Call Vera (352) 795-7613 CARE Coordinator The Centers Is recruiting for a bachelor level case manager to coordinate mental health services for children enrolled In Behavioral Health Network. Extensive travel in Citrus & Hernando counties. Work hrs dictated by case load. Salary: $15.00 $16.00 per hr. Full benefits pkg DFWF EOE Fax or email resume to HR, the Centers, Inc. 352-291-5580, iobs@thecenters.us For more info visit us DIETARY AIDE POSITION AM or PM shifts; Apply at: Cypress Cove Care Center 700 SE 8th Avenue Crystal River, FL 34429 EOE/DFWP New Pay Scale for Licensed Therapists! Do you have demonstrated experience as a Licensed Therapist or Licensed Clinical Supervisor? Are you interested in working in a great environ- ment? Come join The Centers, Inc. team. NEW PAY SCALE, Please submit salary requirements, Full benefits package DFWP/EOE For details please Fax or e-mail resume to HR, the Centers, Inc., (352) 291-5580, iobs@thecenters us For more Info visit www thecenters.us Your World CHRONICLE w'. chr.:,nfcleonlrire corn EARN AS YOU LEARN CNA Test Prep/CPR Continuing Education 341-2311/Cell 422-3656 EXP'D MEDICAL FRONT OFFICE POSITION Full time/Part time. Including Saturdays. FAX RESUME TO: (352) 794-0877 NURSE PRACTIONER/ PA Busy Family Practice. (352) 795-2273 Or FAX RESUME TO: (352) 795-2296 Nurses Arbor Village Nursing a 210-bed SNF seek LPNs 3-11 SHIFT We offer great salary competitive benefits Strong Mgmt team + great team environ- ment drug/bckgmd chk req. Call 800-442-1353 Fax 877-571-1952 Jobs@CQcare coam 490 S. Old Wire Rd. Wildwood RN UNIT MANAGER Arbor Trail Rehab Is Seeking a RN Leader to take charge of our Long Term Care Unit. Customer service oriented and high-energy level a must. WE OFFER: *401 K/Health/Dental/ Vision *Vacation/Sick Time Apply In person or Fax Resume to: ARBOR TRAIL REHAB 611 Turner Camp Rd Inverness, FL 34434 Fax 352-637-1921 EOE RN, LPN, CMA NEEDED ALL STAR * Professional Staffing Services 352-560-6210 RN/LPN CNA/HHA'S Interim Health Care (352) 637-3111 Therapists & Counselors The Centers Is seeking Master's level Therapists & Bachelor's level Counselors with sub- stance abuse and/or mental health exp, Submit Salary Req. Full benefits pkg DFWP/EOE Fax or e-mail resume to HR, the Centers, Inc., (352) 291-5580, lobs@thecenters.us For more Info visit Auto Service Mgrs Service Managers wanted, Must be motivated to increase productivity & performance. F/T. Benes & signing bonus available Call (727)726-2577 or fax resume to (727)726-2531 "IT'S COMING" THE BLUE IGUANA FAMILY RESTAURANT & LOUNGE Ground floor opp, Unique, Fun, Exciting, Multifaceted, Casual to Elegant, Family Style Dining and Entertainment Venue. Applications & Consideration being taken for all positions. Please Apply in person 'o.rda h-i ,.33 '- Ir, or call-352-637-BLUE' AC SALES TECH/ EMT Needed. Experience preferred. $60K+ annually + benefits. 352-628-0254 AC SALES TECH/ EMT Needed. Experience preferred. $60K+ annually + benefits. 352-628-0254 Door to Door Sales Position Commission based for Roof cleaning & Exterior Coatings Co. Previous sales exp.a must, (352) 489-5265 Field/Sales Rep's Citrus, Marion, Hern. Full time or Part time (352) 628-4391 CIRCUIT BOARD ASSEMBLY Openings for people with experience in hand soldering of Circuit boards. Apply in person at 1760 S DIMENSIONS TER, HOMOSASSA r PLUMBERS NL ONLY I Experienced I Service Plumbers 352-621-7705 QUALITY CONTROL INSPECTOR Inspections of Printed Circuit boards, confirmation of part values, polarity & solder acceptability. Knowledge SMT, IPC, Windows, use of DMM's & calibers a plus. Apply in person at 1760 S Dimensions Ter. Homosassa TOWER HAND Starting at $9 00/hr Bldg Communication Towers. Travel, Good Pay & Benefits. OT, 352-694-8017 Mon-Frl APEX OFFICE PRODUCTS Furniture Assembler/Driver Must be 25 or older, Apply within 719 W MAIN ST CUSTODIAL PERSONELLE Part Time for Southern Woods Club House Contact Rick Kelso 352-382-5996 Customer Service Representative Full Time CSR needed for Sleep Lab. Excellent computer & telephone skills necessary. Medical and/or transcription experience desired. Fax resume 352-637-5567 Or Call 352-637-5599 Help Needed NOW Looking for FT & PT, workers; flexible hrs. great pay, no exp req Call 877-709-0074 POSTAL JOBS $17.33- $27.58/HR, NOW HIRING. for application & free government job Into. call AMERICAN ASSOC. OF LABOR 1-913-599-8226, 24HRS emp. serve. PT COOK & DISHWASHER NEEDED Apply in Person Call for appointment Ask for Cary or Patty. (352) 344-5555 TRUCK DRIVER Local Only The Path Shelter (352) 746-9084 LARGE GREETING, CARD COMPANY Is seeking Merchandiser for local Inverness area. 10-15 daytime hours per week. Busy retail environment, Seeking highly moti- vated individual Call 1-800-373-3636 Voicemail 99833 S-- -- "I N NOWCHIRING LOCALLY . Large national organization. Avg. Pay $20/hr. Over $55K annually. Including full benefits & OT, paid training, vacation, S F/T & P/T '1 1-866-515-1762 L,= Ienin KI. io ,[11-ii AN .I~ l LIU "Copyrighted Material S Syndicated Content * Available from Commercial News Providers" * o * & Available from Commercial News Providers" A " 00L sATURDAY, NOVEMBER 24, 2007/ A/C Tune up w/ Free permanent filter + Termite/Pest Control Insp. Uc & Boned Only $44.95 for both. (352) 628-5700 caco36870 r--- --i ADVERTISE YOUR BUSINESS IN THE SERVICE DIRECTORY! $$$$$$$$$$$$$$$$$ ONE CALL ONE PRICE ONE MONTH ONLY $200.00 $$$$$$$$$$$$$$$$$ appears in the *Citrus County Chronicle *Beverly Hills Visitor *Riverland News *Riverland Shopper *South Marion Citizen *West Marion Messenger *Sumter County Times CALL TODAY (352) 563-5966 "DEBRIS HAULING" & Misc. Clean-Up, Tree Service & Demos 352.447-3713/232-2898 COLEMAN TREE SERVICE Trim & Removal. Lic. Ins. FREE EST. Lowest rates guarant. 352-270-8462 DOUBLE J STUMP GRINDING, Mowing, Hauling,Cleanup, Mulch, Dirt. 302-8852 D's Landscape & Expert Tree Svce Personalized design. Stump Grinding & Bobcat work. Fill/rock & Sod: 352-563-0272 R WRIGHT TREE SERVICE, tree removal, stump grind, trim, Ins.& Lic #0256879 352-341-6827 r TREE REMOVAL Stump grinding, land I I clearing, bushhog. I 352-220'-6054 L ----". A TREE SURGEON iUc. & Ins. Exp'd friendly serve. Lowest rates Free estimates,352-860-1452 All Tractor/Dirt Service Land Clear, Tree Serv., Bushhog, Driveways & Hauling 302-6955 - Citrus County Computer Doctors Repairs In-Home or Pick-Up, Delivery, avail, Free quote, 344-4839 All Computer Repair I We come to you. I S21 yrs. exp. 7 days. | (352) 212-1165 L ----- im En.e 10% off w/this ad Call Chris Martone lic. 352-726-4052 ins. REPAIR SPECIALIST Restretch Installation Call for Fast Service C & R SERVICES Sr. Discount 586-1728 VChris Satchell Painting & Wallcovering.All All Phaze Construction Clean Quality painting & repairs. Faux fin. #0255709 352-586-1026 FERRARO'S PAINTING SERVICE Interior. Exterior. Free Estimates. Senior Discount. (352)465-6631 George Swedlige Painting- Int./Ext. Pressure Cleaning- Free est. 794-0400 /628-2245 INTERIOR/EXTERIOR & ODD JOBS. 30 yrs J. Hipchick Uc./Ins. (352) 726-9998 AUTO, RV & TRUCK SERVICE CENTER COMO RV&TRUCK Hwy. 44-W. Inverness (352)344-1411 RV & AUTO BODY SHOP COMO RV&TRUCK Hwy. 44-W. Inverness (352)1344-1411 Affordable Boat Maint. & Repair, Mechanical, Electrical, Custom Rig. John (352) 746-4521 MORRILL MARINE Outboard Repairs, Dockside Service. Elec. installed (352) 628-3331 PHIL'S MOBILE MARINE All Makes & Models All Work Guaranteed 352-220-9435 AT YOUR HOME Res, mower & small engine repair. Uc#99990001273 352-220-4244 BATHTUB REGLAZING Old tubs & ugly ceramic tile is restored to new cond. All colors avail. 697-TUBS (8827) FREE ESTIMATES FREE P.U. & DELIVERY Furniture & Cornices (352) 628-5595 COMPANION/House Keeper/ElderCare I will cook, clean, errands Laura 447-5952 If your 1-3 yr old is on a day care waiting list call me. I will care for your child in my home Jennifer (352) 795-5068 (352) 464-1251 . i.j'3,,,3 .- & errands, FREE Est Ref. & Lic. Marcia (352) 560-7609 AVERAGE HOME Professionally Cleaned $50/ea. Twice per mo. Supplies & Equip. Incl. Joe's Cleaning Service (352) 628-1539 EXP'D HOUSEKEEPER 12 yrs. in Citrus Co. Avg. $60/home (352) 212-3441 Lv. Mess. FINAL DETAILS, LLC CLEANING SERVICES, New Const.,Vacant Prop.,Offices, Residen- tial 352-400-2772 Lic. Ins. Touch of Class Cleaning Service, 15 Yrs. Exp. Also If you Need Help? With Errands, Things Around the House. Ref. Nancy (352) 628-2774 DOTSON Construction 25 yrs. in Central FL. Our own crews! Specializing in additions, framing, trim, & decks. Lic. #CRC1326910 (352) 726-1708 ROGERS Construction Repairs & All types of Construction. 637-4373 CRC 1326872 -IL Roofs, Drives, & Homes ($60+ up) SW ($50+up) DW ($65+ up) 24/7 Kerry (352) 795-4204 ALL AMERICAN HANDYMAN Free Est. Affordable & Reliable Lic.34770 (352)302-8001 FAST AFFORDABLE RELIABLEI Most repairs. Free Est., Lic # 0256374 (352) 257-9508 -U r AFFORDABLE, HAULING CLEANUP, I PROMPT SERVICE I Trash, Trees, Brush, Appl. Furn, Const, I I Debris & Garages I 352-697-1126 ALWAYS AVAILABLE All Maint. & Repairs Inside & Out. No job too Smallll Lic. #5953 (352) 560-7609 Scott 'iw:my-wimI I FASTI AFFORDABLE! RELIABLEI Most repairs. Free Est., Lic # 0256374 (352) 257-9508 HANDYMAN If its Broke Jerry Can Fix It. Lic FULL ELECTRIC SERVICE Remodeling, Lighting, Spa, Sheds LIc. & Insur, #2767 (352)257-2276 "DEBRIS HAULING" & Misc. Clean-Up, Tree Service & Demos 352.447-3713/232-2898 "DEBRIS HAULING" & Misc. Clean-Up, Tree Service & Demos 352.447-3713/232-2898 r AFFORDABLE, I HAULING CLEANUP, I PROMPT SERVICE I Trash, Trees, Brush Appl. Furn, Const. I Debris & Garages | 352-697-1126 All of Citrus Hauling/ Moving items delivered, clean ups.Everything from A to Z 628-6790 AFFORDABLE, HAULING CLEANUP, PROMPT SERVICE Trash, Trees, Brush, Appl. Furn, Const, I I Debris & Garages | 352-697-1126 C.J.'S TRUCK/TRAILERS Furn., apple, trash, brush, Low $$$/Professional Prompt 7 day service 726-2264 /201-1422 WE MOVE SHEDS 352-637-6607 All kinds of fences JAMES LYNCH FENCE Free estimates. (352) 527-34311-_oo6n #1 in Service Hise Roofing New const. reroofs & repairs. 25 yrs. exp. leak spec. #CCC1327059 (352) 344-2442 John Gordon Roofing Reas, Rales. Free est. Proud to Serve You. ccc 1325492. 795-7003/800-233-5358 JOHN SCOTT ROOFING FREE Est, Senior Discount Lc.ccc1325704 352-447-8050 RE-ROOFS & REPAIRS Reasonable Rates!! Exp'd, Lie. CCC DOTSON Construction 25 yrs, in Central FL. Our own crews! Specializing in additions, framing, trim, & decks. Lic. #CRC1326910 (352) 726-1708 W. F. GILLESPIE Room Additions, New Home Construction, Baths & Kitchens St. Lic. CRC 1327902 (352) 465-2177 I-I CERAMIC TILE INSTALLER Bathroom remodeling, handicap bathrooms. Lic/Ins, #2441 795-7241 CUTTING EDGE Ceramic Tile. Lic. #2713, Insured. Showers Firs. Counters Etc, (352) 422-2019 STONE MASON Outdoor Fireplaces, Waterfalls & Ponds, Walks & Patios, Etc. (352) 592-4455 HURRICANE BUILDERS Unlimited, LLC. 30yrs. Exp, Drywall Specialty New, Restoration & Repair. Llc CRC 1329305 (352) 563-2125 ROCKMONSTERS, INC. St. Cert. Metal/Drywall Contractor. Repairs, Texture, Additions, Homeowners, Builders Free est. (352) 220-9016 Llc.#SCC131149747 job too small. 352-302-7325 341-2019 - - ALL AROUND TRACTOR LAWN SERVICE Landclearing, Hauling, We do re-sodding Site Prep, Driveways, and patching. Lic. & Ins, 795-5755 Free Estimate 795-4798. All Tractor/Dirt Service Land Clear, Tree Serv., Bushhog, Driveways & Hauling 302-6955 LARRY'S TRACTOR SERVICE Finish grading POOL BOY SERVICES & bush hogging. Total Pool Care 352-302-3523/628-3924 Acrylic Decking TOP SOIL SPECIAL v 352-464-3967 v Screened, no stones. 10 Yds $150; 20 Yds $225 POOL LINERSI 352-302-6436 a 15 Yrs. Exp. * Call for free estimate v (352) 591-3641vI POOL REPAIRS? ALL AROUND TRACTOR Comm. & Res., & Leak Landclearlng, Hauling, detection, ilc. 2819, Site Prep, Driveways. 352-503-3778, 302-6060 Lic. & Ins. 795-5755 I Site prep, Tree Serv., SDump Truck, Demo 3 c i Jw o L -.- -- - DRY OAK FIREWOOD All Tractor/Dirt Service 4 X 7 Stack Land Clear, Tree Serv., $80 delivered, Bushhog, Driveways (352) 344-2696 & Hauling 302-6955 FIREWOOD seasoned oak split 4x8 facecord, delivered & stkd $70 352-220-9444 3rd GENERATION SERV OAK FIREWOOD Fencing, General $80./4x 8 (Face Cord) Home Repairs, Int/ Ext. Delivery Available Painting, lawn trees, & 352-726-9476, 860-2214 landscaping FREE Est., 10% Off Any Job. OAK FIREWOOD lic 99990257151 & Ins. Quality Seasoned & (352) 201-0658 Split. 4 x 8 face cord, .BANG'S LANDSCAPING del. $75 (352)476-3149 St. Augustine Sod $125 Pallet- 400sf. $145-500sf 1 (352) 341-3032 Iv. mess. BIG KUHUNA LAWN _ SERVICE Palm Tree trimming, Cleanups, Free est. 352-586-1721 WATER PUMP SERVICE D's Landscape & Expert & Repairs on all makes D's Landscape & Expert & models. Anytime, Tree Svce Personalized 344-2556, Richard design. Stump Grinding & Bobcat work. Fill/rock & Sod: 352-563-0272 j H IM I High Quality Lawn Care Comm./Res All Your Property Needsl 352-419-4607 3rd GENERATION SERV Fencing, General Home Repairs, Int/ Ext. Painting, lawn trees. & landscaping FREE Est.. IGV. Oft Any Job lic 9 : : i:, I ` i, . (352> 201-0658'. ANDERSEN S YARDMAN SERVICES. l.:..-.. .3 5 Trimming, irashn, hauling, Low rates 1-352-277-6781 Bob's Pro Lawn Care Reliable, Quality work Residential / Comm. LIc. -I c[n roes* YVUNNI MUKTIII Realtor, Crystal Realty Soecializina in: AFFORDABLE Commercial, Residential, & Waterfront Propertlesl Call me day or night 24/7 for all your Real Estate needs (352) 201-9898 For Listings See RAINDANCER 0 6" Seamless Gutter Best Job Avallablell Lic. & Ins. 352-860-0714 r MALL EXTERIOR S ALUMINUM I Quality Pricel | 6" Seamless Gutters Uc&Ins 621-0881 " L N1 -- - ALUMINUM STRUCTURES 5" & 6" Seamless Gutters FREE Estimatesl Uc., & Insured (352) 563-2977 DYAMOND GUTTERS 5" & 6" seamless. Colors available. Lic. ins. (352) 464-4525 St Augustine Sod S 125 i.-- rJi ,: *~ 145 '. ',.r (352) 341-3032 Iv. mess. CIRCLE T SOD FARMS INC. Res/Com. Installations Lic. (352) 400-2221 Ins. Your World 9W i 9,eiaotl-n. or BUILDING OR REMODELING? For All Your Entryway Needs!! Pre-Hung Doors Door Slab Replacements Decorative Door Glass Decorative Cabinet Glass Phantom Screens Schlage locks RAISE & LOWER BLINDS BETWEEN THE GLASS Perry's Custom Glass & Doors 730293 (352) 726-6125 Lic.#2598 Roof Cleaning Specialist The Only Company that can Keep Mold & Mildew Off Siding Stucco Vinyl Concrete Tile & Asphalt Roofs GUARANTEED! Restore Protect Beautify Residential & Commercial =. Suncoast Exterior Restoration Service Inc. 1877-601-5050 352-489-5265 A4inum Stucte, ure. * Siding Skirting Roofovers Carports Soffit & Fascia Decks Screen Rooms Windows Doors Murals (352) 563-2977 #CBCA15418 Licensed & Insured PAINTING CORP. Lic. & Ins. EXPERT PAINTERS - Cal l axe e Bruce SKaufman Construction * Small jobs WehlcomI Porch Enclosures * Remodeling Sf//it & Facing * Room additions Vinyl Siding * Garages Doorn & i 1indowi (352) 628-0100 B o ul l .ie AlcooCm CCC025404 QB0002180 .CR00I P i, . & SUPPLY INC. Family Owned & Operated NEW ROOFS REROOFS REPAIRS FREE ESTIMATES I I-- $1 007K.TFF COPLT ROOF -----352 628-5079---------- (352 628-7445 I(352) 628-5079 *1 (352) 628-71445 Modernize Your Home ./ ALL TYPES OF INTERIOR TRIM V ADD NEW HARDWARE OR LOCKS V CHANGE YOUR DOORS OR TRIM V ADD CROWN MOLDING V ALL TYPES OF REPAIRS Call Doors & More 732329 (352) 697-1200 Wood and Formica cabinets & counters FREE Estimates 795-5300 or 628-0839 732803 Lic. & Ins. Installations by f- Brian CBC1253853 352-628-7519 ,,a .info Siding, Soffit & Fascia, Skirting, Roofovers, Carports, Screen Rooms, Decks, Windows,Doors, Additions a $49.99 A/C Tune Up from PHI A/C & Refrigeration (352) 302-9409 Lic. & Ins. 732801 CAC1815620 - 00\0 SC I T R U S C O U N T Y CiiirwdTicTEh S, Services for People Who Want Results In Print and Online Daily -71019 I Ar"7*11 1 W4,% - I I V,% I CITRUS COUNTY (FL) CHRONICLE DECLASSIFIED wt1no- SATU -DA ,N V B 2 20. .. . t:-M IVIIZIL;Ulldllt;UUZI " Serywc I ' "Mmd " lj Aw-m ''a E I SATURDAY, NOVEMBER 24, 2007 11C CI~TRUS COUNTY (FL) CHROICUYLEI 0--- TE 200E MODEL 522 2007 2007 , MODEL 522 200( MODEL 617 2007 MODEL 048 2008 MODEL 492 ALL PRICES WrTH '1,000 CAS 730106 SNT VNT NT EVENT 3 NISSA TWO OR MORE AT 68 THIS PRICE! NISSAr -l 0 TWO OR MORE AT THIS PRICE! NISSAN TWO OR MORE AT THIS PRICE! NISS/ N VERSA FREE 24 HOUR RECORDED MESSAGE WITH INFORMATION ON THIS VEHICLE 800-325-1415 EXT. 1322 $12,990 q ALTIMA FREE 24 HOUR RECORDED MESSAGE WITH INFORMATION ON THIS VEHICLE 800-325-1415 EXT. 1328 1 8,990 FRONTIER FREE 24 HOUR RECORDED MESSAGE WITH INFORMATION ON THIS VEHICLE 800-325-1415 EXT. 1332 $15,990 kN TITAN FREE 24 HOUR RECORDED MESSAGE WITH INFORMATION ON THIS VEHICLE 800-325-1415 EXT. 1336 $17,998 J XTERRA FREE 24 HOUR RECORDED MESSAGE WITH INFORMATION ON THIS VEHICLE 800-325-1415 EXT. 1340 1$8,990 I ARMADA FREE 24 HOUR RECORDED MESSAGE WITH INFORMATION ON THIS VEHICLE 800-325-1415 EXT. 1344 129,990 TWO OR MORE AT 18 THIS PRICE! NISSANi TWO OR MORE AT 17 THIS PRICE! NISSAN TWO OR MORE AT THIS PRICE! OCALA NISSAN 2200 SR 200 (352)622-4111 (800)342-3008 OR TRADE EQUITY PLUS SALES TAX, LICENSE FEE AND '395 DEALER FEE. ALL INVENTORY PRE-OWNED AND SUBJECT TO AVAILABILITY PICTURES ARE FOR ILLUSTRATION PURPOSES ONLY. SA FREE 24 HOUR RECORDED MESSAGE WITH INFORMATION AND SPECIAL PRICING ON THIS VEHCILE .. a. S23. '16.988 MPG ME-U 20'0 -'-AN E-W 1 m--WI~ e~ = FREE 24 HOUR RECORDED MESSAGE WITH INFORMATION AND SPECIAL PRICING ON THIS VEHCILE 800-325-1415 EXT 1182 *is1 d-ma n I 29 Mm - IRNAE GA!3RT' FREE 24 HOUR RECORDED MESSAGE WITH INFORMATION AND SPECIAL PRICING ON THIS VEHCILE 800-325-1415 EXT 1192 ^4 S^f~f~I '13.888y^y^" 27 MPG FREE 24 HOUR RECORDED MESSAGE WITH INFORMATION AND SPECIAL PRICING ON THIS VEHCILE 800-325-1415 EXT 1194 *"15o88 26 MPG SU t FREE 24 HOUR RECORDED MESSAGE WITH INFORMATION AND SPECIAL PRICING ON THIS VEHCILE 800-325-1415 EXT 1196 '17,986 01A 10 YEAR 100,000 MILE .^I n AWAEBANg, 7 YEAR -100,000 MILE .ANTI-~ORRSION WARRANTY ,= .'^ ^A i-'= 2 ,t >_, '- "-. 2-'. j' 'ri' -."= *, .-''^ -n.^ -< : '.: t- 5 YEARML, 60,QOO MILE SYUNLIMITED IiE UJNLIUMITEDWIE I OCALA MITSUBISHI 2200 SR 200 (352)622-4111 (800)342-3008 ALL PRICES NET OF ALL REBATES INCLUDING '1,000 OWNER LOYALTY, PLUS TAX, TAG AND A *395 DEALER FEE AND DESTINATION. YOU NEED TO KNOW EXACTLY WHAT YOUR CAR IS WORTH, NO MATTER WHERE YOU PLAN TO BUY! CALL THE INSTANT APPRAISAL LINE... IT'S FREE! 8OO-342-30O8 0 WA w OM m 0 04 EMM -mm I LM R -MM I MR, m L - - - I I -Ir- r I T I-- "f-- ,- P 1 Dn ltr I F I |G " --- -wi-- 12C SATURDAY, NOVEMBER 24, 2007 JMAN WANRVUN CASH * DOWN Il-R RWSlLYFRA6O ALL :Sao@ DU LY, agesMALMB SAVE$ ONOWHE UP TO'W0 AHE N~w! 2o~ .mN''Of'W KR L E CLRD M8RP' 16,670 |f Starting at IV MP NA232678 Starting at #28021 3A ' S AS MSRP$'15,995 $ 1 l LWAS I ONLW AVAMOHE LT L AS PM ;S)RP*$35,759 LOWAS w 'Starting at MSP' AS LOW AS #27468 -"T ,Starting at_ v 2-a~,Z-4f Mdo^~lH wPmm m NPIMPALA M0 ,Fo 60 rOA j M AS LOW A' nStarting at _LOW AS . WA4M EWR 0/0LR LeR 0 !ORga mom on ,+ ____ _'I DI .rRun.' M8RP '12,695 $0 Starting at a8j #NA409154 :MSRP '13,790 SStarting at AS LOW AS *Prices/payments include all factory rebates, incentives, bonus and owner loyalty cash, 6% tax, tag transfer, title, dealer fee (399.50) and dealer ads plus 20% down (Cash or trade equity). Payments are based on 7.54% APR @ 84 months. W.A.C. Not responsible for typographical errors. Pictures are for illustration purposes only. 0% down with approved credit. 0On select models and years. W.A.C. CRYSTAL PRE-OWNED SOpen 24 hours aday at Free CARFAX Vehicle History 2002 SATURN S-SERIES 2005 CHEVY IMPALA 1999 CHEVY SILVERADO 2005 FORD FOCUS 27311 B 9932P 27298A J70213G $6,998t $8,998t $ 10,998t $11,998t 2005 DODGE GRAND CARAVAN 2003 GMC SIERRA 2500HD 2005 CHEVY TRAILBLAZER 2007 DODGE CALIBER J70409A 28015A 3877A 3632A $14,988t $14,988t $15,488t $15,488t 2003 CHEVY MONTE CARLO 3899A $12,998t . .6 .. 2002 CHEVY CAMARO Z28 B70192B $1 5,900t L m A 2004 CHRYSLER SEBRING 2002 GMC ENVOY J70437F 28049A $14,488t $14,987t UllING ff-a-_ 2004 DODGE RAM 1500 2003 CHRYSLER TOWN AND COUNTRY D70319A 3925P $15,988t $15,998t 2007 JEEP LIBERTY 2005 CHEVROLET IMPALA 2002 JEEP WRANGLER 2004 CHEVY AVALANCHE 2006 FORD F-150 3870L 28012A J70481A 28006A B80095A $16,488t $1 6,488t$1 6,998t $17,988t $1 8,450t 2003 TOYOTA SEQUOIA B50040A $18,995t 2006 JEEP GRAND CHEROKEE N7091A s19,488t 2007 CHEVY SILVERADO 1500 2005 FORD MUSTANG 2001 CHEVY SILVERADO 27291A 3882P B70395G $21.988t $22.498t $24.998t 2004 CHEVY TAHOE 27348A $25.998t 2006 FORD F350 27206A $33,900t 2004 CHEVY CORVETTE B70395A $34.900t 2005 CHEVY CORVETTE J70374B $41,998t 1035 S. SUNCOAST BLVD., HOMOSASSA 1-866-434-3065 S1s;-;+ >MY('RYST'AL CRYSTALAUTOS.C.OM CRYSTAL CHE VRO 0 L ET lb035 . uncoast lvd. Homosassa, FL (866) 434-3065 CRYSTALAUTOS.COM CrTRUS COUNTY (FL) CHRONICLE HWY MPG I I iip^^g^g.^p^r fqr.ll..v2rLI1 vents" mwv mmmw OLMI ".Aw RTI US OUNTY ( ) HRO irnm7n 4W'S wM %:c L__ i, .. . I I aI ~' ,'I ~ ' jJ~Il T05ISSAN -IA LE3A iL"I1 200 BI -it>LLL'LL~Z~ ~is S.23 900 2 II1Th'1~:LI'7~~ I' $14.900 7ll. OIL CHANGES FOR 2 YEARS WI IUTHE PURCHASE OF AmY PRE-OWNED VEHICLE*f - ij is1d 78.900 s 4 11, 2431 SUNCOAST BLVD, US HWY 19 *HOMOSASSA, FL 34448 Ends 11/26/07. All prices plus $399.00 dealer fee plus tax, tag & title. All offers valid on pre-owned vehicles only. Amount of financing needs to be over $9000 or greater. Offer is subject to primary lender approval. Severity of credit/debt will affect down payment, monthly 72SM payment. and APR. Dealer to determine vehicle. Bankruptcies must be discharged. *Offers cannot be combined with internet prices or managers special. All offers cannot be combined. tDoes not qualify for this promotion. All pictures for illustration purposes only. $4 20INCOL 7, H!U~in II q0TOD 20i6HM'E I LIU i 1,1111L I j I ij 2003 CADIUAC . DEVILLE I I I I L ,F E IFIELI SAT-uRDAY, NOVEMBER 24, 2007 13C C C FL C NICLE 4 " - 14C SATURDAY, NOVEMBER 24, 2007 "Copyrighted Material Syndicated Content Available from Commercial News Providers" w 0dw- I WANT TO BUY Your Lawn Service Business or Accounts (352) 201-0658 TANNING BUSINESS FOR SALE IN CRYSTAL RIVER $10,000 (352) 257-9173 COMMERCIAL LOANS Prime to Hard Money, Investment REHAB, Private, Lg Equip. loans. Mark (352) 422-1284 TELEMARKETERS Mom & Dads work from home securing locations for Charity Vending Machines. Must have computer & fax. Top dollars paid (352) 637-0176 ALL STEEL BUILDINGS 25x30x9 (3:12 Pitch) Roof Overhang 2-9x7 garage doors, 2 vents, entry door, 4" concrete slab INSTALLED- $16.495 35x50x12 (2:12 pitch) S. 2 10x10 Roll-up Doors 2-Gable Vents, Entry Dr. 4' Concrete Slab $29 795 INSTALLED WE MOVE SHEDS 352-637-6607 "LIVE AUCTIONS" * , For Upcoming Auctions 1-800-542-3877 SPRINGFIELD 1884 45-70 Trapdoor Rifle S'Cartouche Circle P on wrist, wood, exc. metal, some blue turning plum , Matching bayonette, no scabbard, Must seel $11(00/obo 352-634-1120 -Spa Hydro Spa, 3 person Hot Tub, Very good cond. new jets, $650. obo, Must Sell (352) 726-7537 NEW HYDRO SPASI S-5 Person, 15 Jets $1,995 3 Person, 34 jets $3,250 5 Person, 33 jets $3,450 S (352) 572-7940 1 YR OLD WHIRLPOOL WASHER & DRYER SET, Ig. capacity. Com- merc. quality. $325/obo (352) 697-2766 A/C & HEAT PUMP SYSTEMS. 13th SEER & UP. New Units at SWholesale Prices S-. 2 Ton $780.00 -. 2-2 ton $814.00 3 Ton $882.00 *Installation kits; *Prof. Installation; *Pool Heat Pumps Also Avail. Free Delivery! 746-4394 ABC Briscoe Appliance Refrigerators, washers, stoves. Service & Parts (352) 344-2928 Electric Range, Kenmore, clean, good cond. $100. (352)746-0284 Frigidaire Washer & Dryer, ,. excel, cond. works great $150. (352) 637-5745 Just in Time for Xmas v,,Gve your sweetheart a S Portable Dish Washer ..sed very little, like new ,. cond. asking $150. ,new $395. 352-489-2408 SKENMORE DRYER -WHIRLPOOL WASHER $125/both -'" (352) 621-0651 or (352) 422-6128 HOTPOINT WASHER KENMORE DRYER $150/pair. (352) 795-7764 REFRIG 21" w/ Ice maker $75 Range 30" $50 both Exc Cond. (352) 527-0873 WASHER or DRYER $150 w/trade-in. 90 Day Warranty. Repairs Avail. (352) 628-4321 Call after 12 WHIRLPOOL SS cooktop range, stovetop only w/SS Hood, $60/both (352) 344-2321 Whirpol & Maytag Frig, Dishwasher, Stove, Microwv, Washer/Dryer all wht.$900 takes all Call 352-419-4051 "LIVE AUCTIONS" For Uocomina Auctions IU KAUIAL ARMSAW incl. Steel Base cabinet & access. $185/obo (352) 527-0698 DELTA 24" CLASSIC SCROLL SAW w/stand. $100 (352) 382-1525 Kwik Way Valve Grihder Model VS. Very good shape, $850/obo (352) 465-3674 ROUTER TABLE W/Stand Craftsman, Ind. $65; 15" DRILL PRESS Craftsman 1/2 hp., 12 spd. floor model. $125 (352) 382-1525 Tools & misc. items. Nail guns, compressors, Toyota truck topper, seed spreader, ladders, mowers, chalnsaws & morel Call John (352) 476-4441 32" SANYO FLAT SCREEN TV. 1.5yrs. old. $225/obo (352) 726-5698 35" RCA TV In perfect working condition. $285; (352) 382-3879 43" Hitachi TV, like new, $350; 27" Zenith TV. $50; (352) 419-4304 (352) 201-1104 55" Phillips Magnavox, excellent condition $425. (352)341-0850 57" HitachI, HD TV $450. (352) 634-1676 MITSUBISHI , 65" Platinum Hi-Def 59"x62" Great Picture & Sound New $4000- Sell $975(352) 527-3201 SONY 50" 48"w x 50"T x 20"Dp on wheels very Irg grt cond.$400 (352) 621-0848 Toshiba 55" Color TV Excellent cond. $475. obo (352) 746-5296 (352) 476-3042 Citrus County Computer Doctors Repairs In-Home or Pick-Up, Delivery. avail. Free quote, 344-4839 DIESTLER COMPUTERS Internet service, New & Used systems, parts & upgrades. Visa/ MCard 637-5469 YANMAR TRACTOR Howse 4' Bushhog, 4WD, YM2000D, 285 4' Bulldog Bucket, 10Ohrs. $6000 (352) 697-1911 PATIO TABLE 40x70 $65 (352) 637-5903 QUALITY PVC 64" Oval table, w/4 cushioned chairs, $150, (352)527-0920 2 UPHOLSTERED ROCKERS Brown. $50/firm, both Leather Like Black Couch $250. Both exc. (352) 726-3217 6' GLASS TABLE, Stucco pews, 6 chairs, $275; Small Blue Swivel Recliner, $50; Leave msg. only. 352-794-3231 A Kitchen Table/ 4 chairs, wood $100. Bath Floor Cabinet white, excel. $75. (352) 586-7393 YOUR FURNITURE Is Waiting For You NU 2 U FURNITURE Homosassa 621-7788 A Love Seat, floral, beautiful $100. 2 End Tables, solid wood, nice $75. (352) 586-7393 ADJUSTABLE BED Twin XL, Uke Brand Newly $600 (352) 382-5486 Armoire finished In dark cherry, space for TV, shelves, storage, behind tall double doors. Drawers below, pretty, $70. 341-2447 BADCOCK Discovery Wood bunk bed w/desk, drawers built in. $325 (352) 563-9830 BEDROOM SET Gray w/gold trim. Inc. Queen pillow-top bed w/box spring & frame. Triple dresser w/round mirror. Chest of drawers & night stand. Headboard & 2 gold lamps. $650/set (352) 344-0787 BEDS 4- BEDS BEDS The factory outlet store For TOP National Brands Fr.50%/70% off Retail Twin $119: Full $159 Queen $199 / King $249 Please call 795-6006 BUNK BED from Fort Wilderness, complete w/mattress, cost $620, Sacrifice $200; TABLE W/4 chairs $75. (352) 621-0300 CEDAR CHIFFOROBE Antique, $450; WOODEN COMPUTER DESK (pressed wood) $25 (352) 794-3231 CITRUS HOME DECOR Uke new Furniture Buy, Sell, Consignment, Homosassa, 621-3326 COMPUTER DESK Solid Wood w/hutch top. 5'W $115 (352) 637-2032 COUCH & LOVESEAT Victorian, + 5 yds. fabric Sea Green & Burgundy roses. Exc.Cond. Non-Smoking. $700 obo COMPUTER DESK $10 (352) 637-4779 CURIO CABINET Cherry wood finish, lighted, exc. cond. $130. (352) 628-5949 DINING RM SET Oval tble w/4chrs, blue/wht check wood $150 (352) 637-5783 DINING ROOM TABLE Seats 12 w/2 leaves. Solid wood. $50 obo (352) 795-0211 End Tables, Glass Top center table, and 2 lamps. All are hunter green w/ brass accents. $75.00 (352) 533-3222 FULL SIZE CAPTAIN'S BED, w/ new mattress, headboard shelf, 4 drawers w/lots of strg. underneath, matching chest of drawers, oak. $475. (352) 344-5434 KG. SZ. PEDESTAL BED w/towers, drawers & cabinets (w/near new mattress) $650 obo; 3 PC. Dark Wood DRESSER SET $150 obo (352) 344-9658 Lane Swivel Rocker, recliner, tan $40. Recliner, Brown $15, (352) 860-2271 LIVING RM. SET, Suede sect. eggshell, gis & chrome daub. dckr, coffee & end tbis, Oak Wall Unit. $1300all, TABLE W/4 CHAIRS, glass & wrought iron, $200 (352) 212-4586 LOVESEAT Tan fabric w/2 black & tan pillows. Great Cond.l $100 (352) 382-5055 Iv. mess. OAK QU. BDRM SET 4 poster, modern, Less than lyr."Rooms to Go", Inc. Dresser, mirror, bed complete, chaise $1500 (352) 212-4586 PAUL'S FURNITURE Cooler Weather Longer hours. Tues thru Fri. 9am-5pm Saturday 9am-lpm Homosassa 628-2306 Pine Coffee Table, barely used, $50 Fontana Style Entertainment center, $150/obo (352) 726-5698 Preowned Mattress Sets from Twin $30; Full $40 Qn $50; Kg $75. 628-0808 QUEEN BEDSET Med. Oak. Headboard, rails, armoire & 2 nlghtstands. $250 (352) 344-8445 Redecorating Large Quality Sofa, med. blue, w/ tan pip- ing, very comfortable, excel. cond. $225. (352)465-6551 ROUND DINING TABLE, W/2 LEAVES & 4 CHAIRS,, $200 QUEENSIZE SOFA SLEEPER, llne new $150 obo (352) 746-3618 SLEEPER SOFA & Love Seat(Bassett) wicker frame, loose cush's, soft floral colors, great cond. $550 352-419-4158 M-. - QU. WATERBED LINER, Heater, Bladder $25 (352) 637-4779 SLEEPER SOFA & LOVESEAT, tan, good cond. Can deliver, $300 (352) 746-0714 Sofa, blue w/ 3 cushions & two pillows excel. cond. $300. Swivel Rocker, mauve, good cond. $100. (352) 489-4576 The Path's Graduates, Single Mothers, Needs your furniture. Dining tables, dressers & beds are needed. Call (352) 746-9084 WALL UNIT Like new, $600; DVD/CD $60. (352) 257-8788 -U 2000 Cub Cadet 3000 Series, 54" deck. Hydrostatic Transmission $450 (352) 464-1476 *FREE REMOVAL OF. ATV's, bikes, cars, jet skis mowers, golf carts. We sell ATV parts 628-2084 LAWN MOWER (Weedeater) Riding, 42" cut, Strong 14hp,$400 (352) 637-5783 Tractor/Mower, Sears 42", YS 4500, 60 hrs. excellent condition, free delivery in Citrus $1,500. New, Sell $1,175 obo 352-746-6624 -UIP "LIVE AUCTIONS" For Upcoming Auctions 1-800-542-3877 BEVERLY HILLS Fri, Sat & Sun., 8am-? 98 S. Desoto St. BEVERLY HILLS Sat. 24th, 8-12N New rugs, quilt, misc. 315 S. Washington St. CITRUS SPRINGS Fri. Sat. 8-3 Multi Family 3926W POINCIANA ST CRYSTAL RIVER Fri. Sat. Sun. 9-4 6701 W RICH ST CRYSTAL RIVER Fri./Sat 8 4, Baby/Kids Toys Cloths,, Etc. 8220 W. Pine Bluff St. CRYSTAL RIVER LARGE SALE Lots of Variety Saturday 8 1 9200 W. Dunnellon Rd. CRYSTAL RIVER MOVING SALE Sat. 9-4 no earlybirds 402 N. McGowan Ave. CRYSTAL RIVER Sat. 24, & 25, 8-12 9350 W. Milwaukee Ct. Furniture, Clothes, Tools, New John Deere Mower, Baby Clothes and much much more GARAGE SALE LEFT OVERS AD Did you ever wonder what to do with those left over items from your Garage sale? We have the Answer for Only $12.95 The week after your Garage Sale Just give us a cal/ and we will run a 6 line ad for 5 days. (352) 563-5966 (352) 726-0902 HOMOSASSA Fri/Sat 8-2 Kids/Baby Items, Women's & Maternity clothes, luggage, pool fable, misc. Items Cardinal to Pleasant to 4891 Mockingbird Ln. HOMOSASSA MOVING SALE! Sugar Mill Woods Fri/Sat 8 ? King Tempurpedic, 60" Hitachi, 19"TV/Vcr/DVD, Band saw, Drill Press, other tools, Hide-a-bed sofa, chrs, over 40 items 47 Lnder Drive HOMOSASSA Multi Family Sale Fri. Sat. 8am-until 5484 S. Island Dr. HOMOSASSA Sat. 8am-lpm handbags, video games, toys etc 5807 W Potomac Ln CLASSIC CRYSTAL RIVER Sat. 24 & Sun. 25, 9 2 On 488 close to 19 HOMOSASSA Saturday 8-3 Baby Items, Clothes, Tackle, H.H. Items, Toys, Furn., Kitchen Items, etc 11516 W. Island Ct. (Mason Crk Rd. to Rt. on Garcia to Island Dr. to end of cul-de-sac.) INVERNESS BIG YARD SALE TODAY 4000 Hwy. 41-S INVERNESS Fri. 23, & Sat. 24,9-3p Nice Multi-Family Sale 725 N. Woodlake Ave. INVERNESS SAT. 9 -1 Everything 1/2, price from prev. sale! 6729 East Red Robin Ln. LECANTO Sat. 24, 8a-2p, House items, gifts, & books. Unitarian Fellowship, Hwy. 486, Oak Tree Plaza 1 mi. E. of Hwy 491. 352-527-8263 N. LECANTO Sat. Nov.24, 8-2p Many Quality Items Timberlane Estates 1082 N. Rabeck Ave. PINE RIDGE Fri/Sat 8-2 6618 W. Sentinel Post Path (Near Equest.Cntr) PINE RIDGE Sat 8-2 Multi Family Sale 5255 N Sonora Ter PINERIDGE Sat., 7-3 Men's Tools & Christmas Items, misc. 4249 W. Ranger St. TIMBERLANE EST. HUGE CRAFT/YARD SALE Mink Coat, Full Length, 52", female pelts, shawl collar, band cuff, Euro sz. 34, Worn only 1 season, org. $5,995, will sell for $2,200. presently In cold storage, excel. hoidinvx, ntif Made in 1924 KOHLER CLAW FOOT CAST IRON TUB, $150. Good cond. (352) 697-1911 IL= ADVERTISE YOUR BUSINESS IN THE SERVICE DIRECTORY! ONE CALL ONE PRICE ONE MONTH ONLY $200.00 $$$$$$$$$$$$$$$$$$ I *Citrus County Chronicle *Beverly Hills Visitor *Riverland News *Riverland Shopper *South Marion Citizen *West Marion Messenger *Sumter County Times CALL TODAY S(352) 563-5966 Bamboo End Tables w/glass tops, $25; HP Printer 842C $35. Call (352) 212-6299 COLLECTIBLES TYs, Barbles, Tools & Much morel Too much to list!! $100/FOR ALL (352) 400-6091 Conico small pick up truck box, 60" long, $25. Clip on tow mirror $10. (352) 465-6811 Demco Tow Dolly, $400; Chest Freezer, Like new used short time. $50; Antiques, Hitch, Knick-knacks (352) 621-9250 DINING TABLE, OAK & 2 leaves w/6 chairs & China Cabinet. $375; (2) 100 Watt SOLAR PANELS & Auto Charge Cntri Unit matingg hrdwr. $995 352-795-4513 Dog Groomers Table, w/ fold up legs, $45. Dog Crate Large airline approved $40. (352) 637-3599 Foosball Game used $25. Eureka Vacuum, the boss, bag less, wide track $25. (352) 637-3599 FOOTBALL TABLE, $500; KINETICO REVERSE OSMOSIS water cond. sys. Brand new, $700 (352) 302-4142 GOLF CART BATTERIES THE BATTERY MEDICS 36V & 48V Sets $245 Free Delivery 1 yr. warr. Contact Mark @ 727-375-6111 HOMEOWNERS If you would like to sell your home or mobile for cash quickly, call Fred Farnsworth (352) 726-9369 HOUSE 2B DEMOLISHED Contents Must Go[ Pool tbi, Jacuzzi w/matching sinks & commode, Ap- pliances fixtures & morel 352-795-5516 KEYBOARD, battery or electric, $50; CHAINSAW, 46cc, 20: bar. $50 (352) 628-7688 CITRus COUNTY (FL) CHRONICLE IFMD S M THE SPIRIT @4.7erest Call A N352-400-5367 OF THANKS INVERNESS 2/1.5 on 1A ac. 840 sq.ft. The Chronicle Classified Team $7,500 down. $650/mo. would like to extend to you our Thanks No(813EDIT7705HECK by offering: Lake Rousseau D A Deeded access, 1 acr. FR EEIg. like D AYD W, 3/2, '\ I Riverbend Rd. Area on any paid 2 Day Garage Sale Ad. $92,500. (352) 897-4070 S Give us a call during the month EWe3 BR, 2 BA of November and I Set Up, AC, Sklrting, permitsandrehooks Well EaYour ords" 318.68 mo. P&I, WAC on the 3rd Day. I Frsttime Home Buy- Offerers roravalid Novm avail. Offer valid Nov. 1 Nov. 30, 2007. 3 52-794-730 481mr4blo AtW WENALS November 14,2007 CRY L RIVE 2 Bedr0mo2 Bath Apts. $550. $600 2 WF Furnished Condo $1400 ill Condo Untfurished $575 3/2/2 unfurnished hame $750 3/2/2 New Unurnished home $1000 32/3 New Unfurnished home $1100 Storage Units 12x12x20 $100.70 per mo. See additional rentals at r j.%l li Pool/Spa Heater WE BUY GUNS Never used. Hayward On site Gun Smithing o 400,000 BTU, propane, (352) 726-5238 elec. ignition. Worth $2,350. new Asking $1,200. obo 4u i (352) 746-6925 m SHOWER/TUB r in a NEW, fiberglass. "10% OFF SALE" $70; Any new or used U CAGE 2 3/4 X 3 1/2 | Trailer "In Stock' | 30 45 w/ad. EZ Pull Trale Copyrighted Material (352) 476-4568 52 W Gulf to Lake Table 4 chairs, L A green wicker/glass top 3 AXEL TRAILER Synd ted Content Manual Treadmill, ramp! Could haul Back (35new $4.599 (3hoe. $1000 Available from Commercial News TV (SONY) 8'X18' HAULMARK ENCL. 32" w/Stand $125 Bed Tandem Axle Car U Full-size 4polster Hauler, rr ramp &sd dr, CompleteS125 $2500. (352) 795-4770 512-899-5322 FLATBED TRAILER U Used Reverse Osmosis 6 x 16 HD w/winch Tan- water system, never deM Wheels, 2 ramps. used for 8 yrs. $75 Will carry sm. truck, (352) 341-2447 backhoe, etc. $1,050 (352) 628-3674 f *NEW 3 MOTORCYCLE TRAILER. W/gated rampcuretan Front wheel r s locks, $975/obo tanning bed, still under (352) 697-2766 - warr. w/Lotions, station- Open Utility Trailer TOY POODLE INVERNESS ary massage table, 5'X7' 20001b. load Puppies, 3fem. Iml. 55+ Lakefront park machu facial bed w/ capacity, $300 3 Choc. 1 blk born Exciting oppt'y, 1 or 2BR creams. 352-634-5349 52)464-16 9/29/07, parents on Mobiles for rent. Screen Because of health. TRAILERS! premises 352-489-5686 porches, apple water Cargo, Utility, Boat Incl. Fishing piers. 4x8 to 8.5x24 Beautiful trees $350/up 100 trailers in stock Leeson's 352-476-4964 GULF TO LAKE SALES INVERNESS 352-527-0555 Dog Crate, 42"Lx28"W, Rent/Buy opt. Lg 4/1 HANDICAPPED 31"H. All accessories. $795/mo. 352-560-3355 VAN FOR SALE ??WMWatd $295. LECANTO Handicapped van with h (352) 795-8741 2/1 $500/mo. + $500 Braun ilfft,hand con- LARGE DOG CRATE sec. No pets/smoking trols, six way power BUYING US COINS good cond. (352)746-6687/302-1449 seat, fully loaded, Beating all Written $65. SUGARMILL WDS wood package with offers. Top $$$ Paid (352) 637-6354 2Br SW no pets TV,VCR, Ford E250,2003- (352) 228-7676 Asking $18.000 or best Vintage BASEBALL BATS 352-382-1076 offer... 352-270-3883. Any condition. Ball ask for Julle gloves, team balls, & IBR Furn. Carpet Scrn HOSPITAL BED trophies.(727)236-6545 1BR Furn. CarptScm Like Newl rophes.(727)236-6545 Belgian Mares (2) rm. $550: 1BR unfurn. $250 WANTED Old 17 Hands Tall, Broke to $400 1 BR RV furn $325. (352)746-2456 Slot Machines ride & Drive, Quiet, traf- No pets. 628-4441 2 74-2456 Any condition or parts, fic sate. Bread to foal In LIFT CHAIR (352) 628-5287 Spring, By registered 1 As newly Belgian Stallion, Load. Orig. $1,200/Sell $185 Clip & Tie ,Must See! (352) 344-9810 $4000ea. 352-212-0451 POWER CHAIR ^GIVE SOMEONE A N =ew'5/3 - JET 3 Ultra Used very HORSE FOR XMASI I 2100 sf, spacious little. Looks newly NOTICE Gift Certificates avail. kitchen, platinum HERCULES 3000 Pets for Sale for scenic trail rides $35 apple. pkg. delivered CHAIR LIFT. Mounts In the State of Florida Eng/West Lessons 25 and set u Inside back of SUV or per stature 828.291all (352) 628-1472 only $596,901 P-up. Both only $895 dogs or cats offered QUARTER HORSE, Mare, SUN COUNTRY (32) 746-0530 for sale are required 6yrs. old. 15HH, very HOMES to be at least 8 weeks sweet, no bad habits. 352-794-7321 POWER of age with a health $1500. (352) 726-9928 L .mmm - WHEELCHAIR certificate per NICE older 2/2 on lake '05, Pride Jet 3 Ultra. Florida Statute. in Inverness Sr. Park. fish- Orig. $4,000/Sell $395 ing pier & poss. owner Exc.cond. 2 BIRDCAGES l Ig. $150;CL ivs finance, $1,000 down, (352) 344-9810 SMALL, $70; $250 aio. + $240 lot RALLY PRIDE SCOOTER 352-212-6299 BABY FEMALE rent. (352) 726-9369 With folding AKC YORKIE PUPS DONKEY With folding AKC YORKIE PUPS 5mo.old. $500. BANK FORECLOSURE factory made ramp for Six- Health Certificates (352) 637-4138 5BR, $37,500. 2BR loading/unloading. Incl 8 wks old $600. $12,800. For listings manual .5001/ob Excel. Xmas Present P 800-366-9783 Ext 5714 (352) 746-1552 352-726-5576 I REVO 3 WHL SCOOTER, AKITA Puppy 2111h"I at f Battery chrgr Anti-tip Female AKC 10wks whls, running light, Health Cert $300 CR Riv./Hernando Battery cond. meter, (352) 228-3679 Rent/Buy 1 & 2 BR's' spd adj. $1450. Hardly BABY COCKATIELS Furn./Unfurn., No pets, 7440 CHASSAHOWTZKA used. (352) 726-7405 BABY COCKATIELS Ist/Istdp 352 -795-5410 4/2, $950/mo. $35 YOUNG ADULTS $20 11438 MARY ELLEN TER SUNDANCER (352) 726-7971 Crystal River 2/2 SW $450; Bothi- Motor Scooter w/6' BENGAL CAT 1 on secluded st /sec No ets. ramp ($2,200/Sell $500oborg Beautiful 2 yr. old Acre $500./mo 727-480-2507/480-2216 352-382-4348/214-4644 spayed, shots 352-637-2973 home, $400. CRYSTAL RIVER (352) 382-2572 2/1, Porch, No Pets $495 Chocolate Lab Ist/last/sec. 422-1031 FSBO Waterfront 2/2 Puppies AKC Reg. $500 CRYSTAL RIVER 40' dock, off BUYING US COINS Cathy (352) 895-8729 3/2 $575/Mo. CLEAN Homosassa River. Beating all Written 2/1 $500/Mo. CLEAN No owner financing. offers. Top $$$$ Paid COCKER SPANIEL, $700 Sec. No dogs. Many extras $222K (352)228-7676 AKC, male,all shots (352) 447-0333 (352) 628-9487 (352) 227-6354 Beautlfusoc.lazd $ 40T 0. ne orhood (352) 7396(352) 795-8741 CRYSTAL RIVER Lecanto Sac. fenc'd house-trained. $300 2/pasture, Very Nice 3/2 SW on Two iniaure (352)601-524mo27 1stold fireplace skylites pets & males blk. & tan. $150 horses ok, Leacanto ngprT 7Y3 Magic Geni Organ ea. (352) 447-5952 School $1150/mo yearly very good cond. FRENmill AKC BULLDOGS lease 727-580-1083 1/2 AC. N. of CR Mall $250. AKC, Health Cert.f FLORAL CiTY 2/2 in well mintained e cond $195 Beautiful sovalzed $525/mo.+th, F/L/Sec $124,900. (352)2-503-4142570 (352) 341-1354 (352) 795-1902 dep.(352) 346-5420 '99 OAKWOOD 16 X 70 SUNLIGHT DRUMS, pups. 8 wks. 2 (M), 2 (F) 352-344-1845 e 5 Green, extra symbols, $1 ,200-$1 ,5005 2/2 DW, 1/3 crnr acre All hardware included. (352) 794-4183 FLORAL CITY Riverlakes Manor. New $500. GOLDEN RETRIEVER Sm. IBR $350/mo. AC, septic & well. All (352) 746-7396 AKC, Fem., 9 mos. Ist/last/sec. No pets. appli's inc W&D $59,900 Mini Darochipped, good (352) 726-6197 Owner Fin. w/$10,000 C4 Fitesw/kids & pets, FLORAL CITY/HERN down (813) 240-7925 Shouse- trained. $300 2/1 CH/A, $400-$500 3/2 SW on Two 1/2 AC (352) 601-5227 st, last, sec., No pets Lots. Scm porch. Pro-form 325X LAB PUPS (352) 564-0578 By Owner $44,500/obo Crosswalk Treadmill AKC Reg. Blks. $200; HERN/Citrus Hills 1592 S Lookout Pt exerciser, 3 yrs old, Health certificate 3/2, / Ac. Scar. prch. 2 blocks off U19 exc. cond. $195 vet approved $525/mo.+ $400 352-503-4142 (352) 341-1354 (352) 795-1902 dep.(352) -6346-5420 '99 OAKWOOD 16 X 70 Fc LAB PUPS HERNANDO 3/2 New well, septic. 72- 37-61rtin AKC, Black & Choc. 2 bron one wooded Extra lot. Great Shapel Ready 11/22. $400 acre $650.00 + $59,900 (352)427-5574 (352)726-4334 (352) 795-5444 deposit.Avail DecI BELOW APPRAISAL BIKE RACK MinI Dachshunds wks 815-985-1647 Assume Mtg. of $76,852 (352) 465-0911 352-302-8807 pls Iv msg dryer area on 2 acres modeled ats., POOL TABLE Hoop SIAMESE Knquires only. $650mo, (813) 843-2105 69435003994For Appton Basketball game Rtszeweller Pups HERNANDO BEST OF electric score board Absolutely Beautiful Lg. DW 3/2/carport THE BEST (352) 746-0284 M/F shots, wormed, New AC, water soft. #I Volume Dealer (2 F R L OF. (352) 228-1906 a p d h AV's, bikens, cars, jet skis i 3 smoking Sc 800/m a. 32 X 80. 4/2 mowers, gof carts We SCOTTISH TERRIERS F/L/S. (352-344-4250/ Only $7,900. sell AC V parts 628-2084 Reg. ACA, Mom & 3 214-4202 on your lot or ours worst, wood, exc. metal, MalesINGLIS E9 382-0654 MatchingGOLF CART BATTERIES little Christmas Bear es HOMOSASSA Land Available! THEno scabbardY MEDICS Firs t 375/Mor $200 1 & 2/1 st/Ist/sec. CALL 352621918Home $1100/obo36V & 48V Sets 352-6345 (352) 726-0133Rck, 305-773-5368 By Owner 2/2, (15X66)2 acre .1I07,250. --. - for only $49,900. on yourosures. Rate ors buylow as 4.of our75%, 30 yr. term Call Lauren Financial for details, 352-621-3807 or 352-302-7332 S SpecHomes 2, 3, 4 & 5 BdRm Packages Available Multiple Sites to choose From Packages starting at $79,900. special FHA fin. avail. SUN COUNTRY I S HOMES 352-794-7309 SUPER NICE 1993 furnished 2/2 Mobile. Screen Porch Roofover, Fenced. $55,500. Parsley Real Estate, Inc. Charleen Hamilton (352) 212-2517 INVERNESS 55+ MUST SELLI Beautiful Remodel $13,500 352-400-4891 2/1, 55+, roof over, central air & heat, car- portutil,. shed, w/ wash/Dry, $9,500. (352) 564-0843 2/1, excellent cond., nice clean, 55+ park new carpet, ftile, updated kit. & bath, scrn. porch, carport, shed, $13,500. (352) 860-1795 55+ PARK, 3/2 Low mo. rent. w/furn. & apple. Lg. lanai, Strg., Porch. $18,500 Neg. 352-746-9595 CRYSTAL RIVER 55+ Community, 2/2, DW, Carport, Shed, screen rm. Wooded lot, like new. Must seel $63,900 352-794-5439/257-9466 DUNNELLON Withlacootchee Backwaters, '98 24x46 2x2 Carport Porch Patio 10x14 Workshed w/river access Many xtras $45K 352-489-0919/427-2119 FOREST VIEW ESTATES Great Loc. Pools, clbhs. & more. Move-In ready, comp. tumn. 2/2 DW, wheelchair. acc.shed & sprklr. $51,900. (352) 563-6428/352-563-1297 INVERNESS 1/1 Part Furn apple air move In now. Inverness 55+Pk, $29,900, Poss. fin.(352) 344-1002 or 302-2824 Retirement Mobile 1 Bedroom 10 x 24 scrn In porch, roofover car- port all redone Inside excel. cond. $10,000. 352-563-0232 Must See SINGING FORREST 14 X 64,2/2, turn. like a model home. New lanai, roofover, Fl. rm., carport. $149 Lot rent. S38K (352) 726-2446 WALDEN WOODS 2003 DW, 3/2, vinyl Fl. Rm., new berber carpet. 6 mos. Free Lot Rent. $62,500 (352) 382-2356 WALDEN WOODS 3/2/carport. Many upgrades. Workshop, glass lanai & many amenities!I $95K (352)382-7334 WEEK WACHEE 55+ 2+/2, carport, shed, scrnd prch, W/D, LR, DR, crnr. prop. Strm wndws, sprinklers & new insulation, $50K 352-597-8207/428-1545 Uff 2008 MERCURY MILAN 2008 MERCURY MARINER *SZ'91mo 39 mos RCL. $2,699 Cash due at signing after $1000 cash back Secunty deposit waived Excludes tax title and license fees. '08 GRAND MARQUIS GS #1 Selling Luxury Car in Florida 16 ,, -- _ ~ STyears running ,w.. r- ..... ."L, STAR CRASH RATING / URItW A OnLot. AkR;,1 95 Keyless entry system, keyless remote, cruise control, power windows/locks, AM/FM . -stereo w/CD player, 8 way power driver seat, Michelin tires, tilt steering wheel %5 2007 LINCOLN NAVIGATOR flS) 2007 MERCURY MILAN f 8,000 OFF 2,000 OFF 99 FORD ESCORT WAGON Red 53 000 miles one oi ner #R329174 $12,995. O 97 LINCOLN : TOWN CAR SIG. Silver like ne\\ one ot9ner. $5,995. 04 MERCURY SABLE Gold leather interior #91684 $10,995. 04 GRAND MARQUIS GS L-1titfe ..loth 30 000 miles #90994 $11,995. 05 FORD FOCUS U4 MERCUKY ZX4 SABLELS Green loaed ll wtre leather loaded, 03 MERCURY GRAND MARQUIS LS 23 000 miles #R3300 #P3277 Green leather nt #R3269 s11,995. *12,995. 912,995. 07 FORD 06 FORD TAURUS FOCUS SE SEL Auto CD player Gold Aloonroof leather 21k miles #R3282 #R3224 ^12,995. o12,995. 05 FORD 05 MERCURY RANGER XLT GRAND MARQUIS Black V6 aulo 17 17 2 top silver 25 000 miles #R3208 m,les #R3302 $I4,995. 14,995. 05 MERCURY 06 GRAND MONTEGO PREMIER MARQUIS LS r Leather tihite one Siver leather or, ner #9182.4 #R3238 s 15,995. s15,995. $ Ub KAIANU MARQUIS LS Ltvhite moonroof leather #R321-4 15,995. 06 MERCURY GRAND MARQUIS LS Silver 18 000 miles leather interior #P3743 $15,995. 04 LINCOLN TOWN CAR SIGNATURE Leather blue 31 000 miles #R3290 $17,995. 06 MILAN 07 FORD FIVE 06 MILAN 07 MERCURY GRAND 06 MERCURY 07 MUSTANG V6 07 GRAND 07 FORD 04 MERCURY c06 premier leather HUNDRED PREMIER MARQUIS LS MONTEGO 4uto. leather red MARQUIS LS FREESTYLE LTD. MOUNTAINEER 18k miles Gray loaded only 75k Gold leather V6 Ice blue 12.000 Gold moonroof 13 000 #R3274 Gold 14 000 miles Burgundy SGold moonroof 3rd seat #R3266A miles one on ner #/9t1 15k miles #X970 miles #P3299 miles #X916.4 #R3260 10000 miles #R3297 only 26000 mies #R3226 $17,995. 17,995. AI7,995. I07,995. 7,995. 7,995. 17,995. 19,995. $20,995. %L ---r q m.. 07 FORD 06 LINCOLN TOWN CAR 07 FORD 08 MERCURY GRAND FREESTAR PRESIDENTIAL EDITION FREESTYLE LTD. MARQUIS LS Leather gold 74k miles Pearl khite 76000 A laroon leather Gold 7 000 miles nat sys #R3268 miles #R3301 10 000 miles #R3303 #P3305 s20,995. *20,995. $20,995. *20,995. 04 FORD F150 XLT Red 26k miles #R3205 121.995. 05 LINCOLN LS 20 000 miles. V8 sport wvory #P3273 $21,995. 06 MERCURY MOUNTAINEER Silver leather 20.000 miles #R3254 122.995. * wsrr~1~,e~v 2005 LINCOLN 2006 LINCOLN TOWN CAR ZEPHER One outner 13 000 AMoon roof 20 000 miles #X917 miles #R3294 123 995. 24 995. IWy~ M u^u 06 LINCOLN MKZ Llhite moonroo' leather 5000 miles #P326- s25,995. PROPER VEHICLE MAINTENANCE IS KEY TO MAXIMUM FUEL EFFICIENCY! I q 06 TOWN CAR I LI green only 18 000 mile leather #X909 $279995. I FACTORY AUTHORIZED I A/C SYSTEM 4I.U .Cf I* I . . . . . I ru n t u rVa fT f r*jI., 1,.: 6 1 A-3 fit r 1 I' II II ' 07 TOWN CAR LIMITED Gold moonroof #R3296 $29,995. Pearl thite moonroof 9 000 miles #R3281 $29,995. COOLING SYSTEM IMOTORCRAFT'PREMIUMWEARINDICATOR, SERVICE II II II II ri I' WIPER BLADES $1995 WITH WEAR INDICATOR THAT SIGNALS WHEN TO REPLACE *1., 1 1 i , 1 l l ,t i" i 07 LINCOLN TOWN CAR LTD. 1-.000 miles, silver moon root #R3287 $29,995. -q I WHEEL BALANCE, I TIRE ROTATION AND BRAKE INSPECTION I 1 r I.. ,.,TI, ,,y : f u, ,- 1 a, ,' E (,: .' 06 LINCOLN NAVIGATOR 4X4 Moon roof gold. 16 000 miles #R3263 s34,995. MOTORCRAFT~ BRAKES, INSTALLED! Engineered for your vehicle. $8995 ..I ,.,, I., ,. 1 A a Im FUEL SAVER mur PACKAGE 07 LINCOLN TOWN CAR SIG. 71 000 miles silver #R3286 $28,995. $2495 40 r-I - 9 - - il - En F - N-I SATup.DAY, NovrMBER 24, 2007 15C CLASSIFIED CrrRis Carry (FO C e S#ts LINCOLN MERCURY NEW 2007 and No-Charge 3-Year/45,000 Mile 2008 Lincolns FE Premium Maintenance Plan $ 4t.9 due at sninag after $1 000 c:ash Dbak $, .99 due at s grng after $1 I,0' cash back $- 899 due at s gning after $ 000 cash back Security depot .o aed E,-ludes ra! title and license fees Securty deposit .aived Ejcludes tax tte and Incense fees Security deposit waived Ezcludes ta, title and license fees ,, I ..i OWN CrTRus COUNTY (FL) CHRONICLE 'I ZA UK-I~flI, Nn.vpnFR 24 2007 GET THE BEST OFFERS DURING THE BIGGEST EVENT OF THE YEAR It 2008 FORD FUSION SE 1 99/MONTH 39 month Red Carpet Lease $1,839 due at signing* 2008 FORD EDGE SE Current Ford owners: Thanks to $1,000 Cash Back, plus $1,000 Bonus Cash and $750 Ford Credit Owner Loyalty Cash, you can now purchase a 2007 Edge SE for $9 4 ** 2007 FORD F150 SUPERCAB AND SUPERCREW O %APR for 60 Months PLUS $4 flflif D uime each*** *Not all buyers will qualify for Ford Credit Red Carpet Lease. Lease payments vary: dealers determine prices. Residency restrictions apply. Cash due at signing is after $1,000 cash back. For cash back and special lease terms, take new retail devilvery from dealer stock by 1/2/08. See dealer for qualifications and complete details. **2007 Ford Edge SE. Average of prices after $2,750 total cash back based on regional transactions. Some prices higher, some lower. Taxes, title and registration fees extra. See dealer for their price. Must currently own or lease a '98 or newer Ford car, SUV or turck and finance or lease through Ford Credit to recieve Owner Loyalty Cash. Take new retail delivery from dealer stock by 1/2/08. See dealer for qualifications and complete details. ***See dealer for qualifications and complete details. Not all buyers will qualify for Ford Credit financing. Not available on Harley-Davidson or Regular Cab models. 60 month APR at $16.67 per month per $1,000 financed with 0% down. Take new retail delivery from dealer stock by 1/2/08. '99 FORD ESCORT '04 VOLVO XC90 ul:. ,r,. ,r Lo.ad, e ' s4,995 s22 995 '03 FORD F250 SUPER CAB XLT On .- :.wrer 'i riser s1 6.995 rII*~ . x\. '87 FORD F350 DUALLY DIESEL '01 FORD F150 SUPER CREW XLT 5 speed, one owner $6,995 $9,995 **^-*^*.rilH^^ff- '04 LINCOLN TOWN CAR SIGNATURE LTD Loaded! L ... j *U1 LINCULN lUVPWN Executive Series. $8,995 g-J./^lAm '04 FORD F150 SUPER CAB XL 4X4 One owner. $13,995 '06 CHEVY COBALT LT 12,995 iMMS ^-I 3 FORD F150 SUPER CREW Lariat 4x4. $19.995 7 FORD F150 SUPER CREW Lariat 4x4, loaded! $29.995 '07 FORD FREESTYLE SI Leather int, loaded! s*19.995 '04 HONDA ClNIVI . *11.995 $17,995 UIS '02 CHEVYS10.CREW CAB LS 4X4 05 FORD F150 SUPER CREWLARIAT Leer t$9 - *13.995 *22.995 05 ACU Moonrool 219 FORD E350 CLUB WAGON: $19.995 XLT '03 FORD MUSTANG GT Only 36 000 ml-ec *15 995 '06 FORD MUSTANG GT $24.995 $65995 FORD F150 XLT SPORT 4X4 One owner . $14,995 :_ -- ,-- ..." '07 FORD EXPLORER XLT $19,995 '05 FORD 500 $14v995 FORD FOCUS WAGON SE Full power, one owner. '$9995 '03 FORD FOCUS SE Great economy. Stk# G7CO94A *6 995 95 FOURU E3U 14' box, one owner. $5,995 '04 FORD F Full power 1( $11-_ us ZX5' ~vas Only 6,000 miles. V8, automatic & air. $14,995 $8,995 _3995 '02 FORD RANGER XLT $8,995 0,*7 _9 - ES"^' 1 M 1v~ '02 FORD F150 XL One owner, $7,995 Cargo racks and bins. $199999 '04 FORD EXPLORER S$17, FORD EXPEDITION 4X4 lie Bauer, loaded, TV and navigation $21,995 SPORT TRACK XLT '04 FORD FREESTAR SE '07 MUSTANG One owner full power 995 9,5 99 $197 COME MEET YOURFRIENDS Rick Petro Ron Tesar Ana Cruz Scott Parker Greta Miner '" Jeremy Welsen F-Pank Espiritu RickCanady 15 years Sales 25yearsa $ales 10 yeam Sales 6 years Sales 5years-,Sales ,..Aydar, Sales L4yerM- Sales 5 years Sals G ulf Coast Ford is H hiring i Genuine Motorcrat Premium We are looking for full-time sales associates FREE LIFETIM E TIRE Synthetic Blendoiland k"V Rotate and inspect four tires Bonuses & Commission 401K Medical Benefits ROTATIO N & BALA NCE Check airand cabinairfilters Apply in person I Oam-5pm No Appointment Necessary AVE Inspect brake system Interviews will be held at: 1W ith Purchase of FUELSAVER Propervehicle ITest battery Gulf Coast Ford A maintenance key / Check belts and hoses 2440 N.W; Hwy. 19 Crystal River, FL 34428 Any Four Tires / Top off all fluids 352-795-7371 Any Four Tires efficiency. Top offall fluids 3 2-795-737 ff er Expires 11/30/07 Up to five quarts of Motorcraft oil. Taxes and diesel vehicles extra. Disposal fees Ask for Jim Preston er pire 11/30/0 not included in some locations. See Service Advisor for details through 11/30/07. Enqual Onpmortunitv Employer Drug FreeWnrkpnlace 0 CRSA IE AL Tt MVER, SATURDAY, NOVFMBERZ4, ZUU/ I I Xt,. S ,w 106 FORD ESCAPE 105 MERCURY MARINER 104 FORD F1 50 4X4 '07 FREESTA SEL 102 FORD THUNDERBIRD 106 GMC SIERRA SUPER CAB % $0, one owner Loaded, one owner. Loaded Super Cab Lariat Edition. Leather, loaded. Full power, one owner. 6.3995 $13.1995 $21.3995 $18 995' $24999,5' $199995 WK JWAP j.4 VIM' - AL bibs. CITRUS COUNTY (FL) CHRONICLE Cj ui C," Ral E c=for enlfmB Citrus Hills Golf Course Home 2/2/2 $850 Month Call Gail Stearns, Realtor* 352-422-4298 72 7anas 'I ii '"" s' a ,ok o.- ,.e.,.*. iMa 'u 2/2/2 House, Scn. Prch. Fa InR eso n Prch $700r p MaN E.7Hagr Broker.Realor.Prope ty aaer (352) 79-REN (80) 795-6855 wwwCitsCountyHomeRentals.com BEST RENTALS DE-CARLO ESTATES 2/2/2 House, Scrn. Prch. $700; 2/2 Scrn Prch Villa All new $675; 2/2 House Fam Rm, Scrn Prch $700 1/1 Apt $400. 352-422-2393 FLORAL CITY 20X40 3 Stall Horse Barn for Price neg. 352-476-4441 Property Management & Investment Group, Inc. ULicensed R.E. Broker )- Property & Comm. Assoc. Mgmt. is our only Business Res.& Vac. Rental Specialists > Condo & Home owner Assoc. Mgmt. Rabbie Anderson LCAM, Realtor 352-628-5600 Infow property managmentgroup coa SUGARMILL WOODS Brand new 4BR/2BA home $1150 mo + dep. Call 813-994-7762 HERNANDO Fully turn, studio, incl. power & cable. CHA $150/wk + $150 dep. Must have local refer. (352) 746-9398 Homosassa Sprngs 1/1, quiet, clean No smok / Pets, $550. (352) 220-9063 Inglis Apts./Studios Riverhouse $600/ Studio $400. All utilities. No Pets(352) 447-2240 APARTMENTS FOR RENT 2/1 Apts. Unfurnished Crystal River Starting @ $475 Call Nancy atActionRental Management Realty, Inc. 417 NE2nd St, Crystal River, FL ,-(352) 795-RENT - Chassahowitzka Waterfront, Gulf Access Nice 2/1, $495. mo. (352) 341-3131. lst/last/sec (800) 709-8555 INVERNESS 2/1,$520mo.$1,000 Sec. 1st Month FREEI 352-302-3911 INVERNESS Large 2/1, CHA, W/D hook-up Garage. 1 acre Private Spotless $695. 3575A E. Theresa Ln. 352-422-3217 INVERNESS NEWLY REMODELED 2/1 $575mo. $862 sec. 9am-6pm 352-341-4379 I Mayo Drive Apts. I Units Available I Starting at $395, Long & Short Term I I Rentals Available | (352)795-2626 L -- J INVERNESS Lg. 2/2 W/D hkup, $575/mo 352-341-2182/586-2205 E-Ul CRYSTAL RIVER 1 & 2BR Fumn. $600 + Dep. (352) 563-9857 LANDMARK REALTY We have a variety of rentals ranging from $450 on up. Call for more information. Ask for Kathy or Janet 352-726-9136 311 W Main St. Inverness BEVERLY HILLS Winri Dixie Plaza 1500sf commercial bldg. avail, for rent. Call 352-586-0632 FLORAL CITY Rural area, office bldg. Price neg. 352-476-4441 HOMOSASSA 3 Offices + Reception $600 mo. (352)400-1989, 2'/ BA Townhouse Furnished $800/mo. 352-697-0801 CRYSTAL RIVER Meadowcrest 2/2 Villa $875mo. 352-422-2367 INVERNESS . 2/2/1 Whispering Pine Pk. Comm. pool/club. $800 + util. 1st & last. Myrlam(352) 613-2644 INVERNESS VLG. 2/2, 55+, heated pool, no pets/smok. Yrly lease $650/mo. 352-344-2770 DUPLEX FOR RENT 2/1 Duplex $600 moves you in! No security deposit required! Neat & clean. Includes washer & dryer hookup, water, trash pickup. Call Nancy atAction Rental Management Realty, Inc. 417 NE 2nd St., Crystal River, FL (352) 795-RENT NEW DUPLEX Citrus Springs 3/2/1, appliances, furnished. $950 per month lease, deposit. Call 697-3133 725994 Realtor CITRUS SPRINGS New, 2/2, all apple , W/D $650.-$700. (954) 557-6211 CRYSTAL RIVER 1/1 $600/Mo. Broker/Ownr 422-7925 CRYSTAL RIVER 1/1 Real nicely $450/mo. F/S (352) 228-9027 CRYSTAL RIVER 2/1 Clean W/D hu $600 No pets. 352-228-0525 CRYSTAL RIVER 2/1, no pets $525. mo. + dep. (352) 464-2716 INVERNESS SLifge 2/1; CHA, W/D hook-up Garage, acre Private Spotless $695. 3575A E. Theresa Ln. 352-422-3217 HOMOSASSA TRL. Share 2/2 mobile. Cntry acreage, prvt. $100/wk. Mike L. (352) 212-1115 INVERNESS End of Turner Camp Rd. $450, 1st. Ist. $400 sec. Credit ck. 352-697-1911 LECANTO Quiet, Priv. Ac w/ beau. view. Lg. Cozy Camper w/rfovr. Furn. All util. Inc. Cbl TV Sips. 2, Ref. req. $685/mo. 352-621-4725 Rentals COUNTYWIDEI GREAT AMERICAN REALTY ALL PRICE RANGES Call:352-637-3800 or see ALL at www choosegar coam CITRUS SPRINGS 2/2/1, newly painted. $875+ util. 718-619-2635 CRYSTAL RIVER 2/1.5,Garb.,H20,cable,e electric. $1,100/MO. (352) 527-0260 HOMOSASSA Lg. 2/1, $225. wkly Bring Suitcasel! 352-628-7862 INGLIS 5/2, Furn. $1800/mo, Call Lisa Brkr /owner. 352-422-7925 INVERNESS Seasonal or long term. 1/1,furn., scr. porch, fenced yard. Util., basic cable, waterfront community $165 wkly (352) 344-4945 SUGARMILL WOODS 2/2/2 +Lanai,1600 sq.ft. io$1,100mo + util. Shrt or Ig term. (727) 804-9772 BETTER THAN RENT or RENT TO OWN 2-3 BR. NO CREDIT CHECKII 352-484-0866 jademlsslon.com BEVERLY HILLS 1/1/1+Carprt, FR, Fl. Rm, CHA, Fncd.Conv. Area. $625 (352) 746-3700 BEVERLY HILLS 2 & 3 Bed. FIRST MO FREE CHA, W/D 352-422-7794 BEVERLY HILLS 2/1 $595 + UP. Will work w/you! Call Carol (401) 726-5496 BEVERLY HILLS 2/1 C/A, Nice /Clean $700/mo Ist Mo. FREE TIKA Prop. 888-886-8452 BEVERLY HILLS 2/1, $600mo. + Sec. 14 Taft (352) 697-1907 BEVERLY HILLS 2/1/FI.Rm., $635mo. + Sec. 20 N. Osceola (352).697-1907 Forest Ridge Village 2/2/2 $825.00 Please Call for more Info (352) 341-3330 or visit the web at: citrusvlllages HERNANDO 3/3 water access Some pets allowed, (352Y)422-8656" HOMOSASSA 2/1 CHA, No pets $550. 1st & sec 352-628-4210 HOMOSASSA 2/2 Brand New, close to river, all appincs.Fenc'd Yrd, Prvt, non-smoking, No Pets $800+Sec(1mo) (561) 312-5695 HOMOSASSA 4/2, newer CBS home, move In cond., Ig. strg. shed, ac. lot. avail 12/1, $900. 352-628-3543 or 305-804-6168 Homosassa Sprng. Remodeled 3/2 on fenced acre, Fl. Rm., Lg Deck, 1st + sec. $875. mo (352) 628-0731 HOMOSASSSA Duplexes 1/1 $400; 2/1 $525. Meadows 3/2/2 Houses from $750; RIVER LINKS REALTY 628-1616/800-488-5184 INVERNESS 2 Lrg Homes on Golf- Crs 3/2/2s No pets $800/mo908-322-6529 INVERNESS 2/2, W/D included very clean, close to everything $650.mo. 1st, Ist, sec 352-344-8412 INVERNESS 2/2/2 Detached home, Royal Oaks upgrades. Club house/pool/lawn. serv. $800/mo. Incl. Cable & water. Avail 11/5 (949) 633-5633 Inverness 3/1/1, fenced yd., tiled, cent. vac. $650.mo.,1st +dep. ref. 352-344-2222 INVERNESS 3/2, near Wal-mart & Lowes, big fenced back yard, $850 mo. or sell $149,900. Lease opt or seller fin. avail. Mike (813) 312-3753 INVERNESS 3/2/2, $850 + $600 sec. (352) 476-4441 INVERNESS 3/2/2, Lake Area. New Int/ext paint $860. mo. (352) 341-1142 INVERNESS Brand New 3/2/2 Home W&D Hook ups- Dbl Lot All Appliances, No pets, F/L/S (352) 302-3927 LECANTO 2/1 $650 F'd yd. Fish Pond. 4 lots 628-7042 LECANTO Black Diamond 3/2/2, heated pool. S.S. appl., updated Interior. Neutral colors. Inc. cable. 1750 sf. Avail, now $1,500/mo. (740) 398-9585 LECANTO Spacious 3/2/1, /2 ac. fncd, pets ok, $900 mo. 352-637-3484/476-6555 N. Crystal River 2/1, $650. mo., $650. Dep. quiet country area No Pets (352) 795-7205 PINE RIDGE Country LivingI Unique 2/2/crpt. Fam. Room, newer appl.$900/mo. (352) 746-3700 PINE RIDGE Lease/Sale. 14 Rm. English Style Tudor Home. $2,000/$475K www Icpl com/fl Open House Sat/Sun. 11-2 (727) 459-7204 R.L.E. DUNNELLON 2/1.5, FP, laundry, $550 352-347-5161/572-2993 = CIASSIFIEDS C" Waterfront ch Rentals SATURDAY, NOVEMBER 24, 2007 170 r.. I BEVERLY HILLS 2/2/1 FR, CHA, new kitch. Good Area $725 (352) 746-3700 BEVERLY HILLS 2/2/2 + Bonus Rm. $750 mo.(352) 527-1051 BEVERLY HILLS 2/2/2, 352-464-2514 BEVERLY HILLS 2+, $590/mo. $990 move in. (352) 220-0592 1/1/1 Fl Rm. $590 Inc. Water, Swr. & Garb. 1st & sec.(352) 249-1149 CITRUS SPRINGS 2 Weeks FREE Rent If Qualify (352) 795-9123 Charlotte G Realty & Investment LLC CITRUS SPRINGS 3/1, $725/mo INVERNESS 2/1/1 $700 401-692-6966 CITRUS SPRINGS 3/2/2, CHA. $900 mo. Inc. Util. Ist/last/sec. (352) 503-6049 CITRUS SPRINGS 4/2/2, Newer Home, lawn serv. incl. Near golf course. $975. mo. 352-812-1414 Lease/option $800/mo (352) 795-6127 CRYSTAL RIVER 2/2/1, fam. rm., water, gar. & pest, incl. $675. + sec. (352).464-2716 CRYSTAL RIVER 3/2 Clean, $800 mo. 352-795-6299 697-1240 SMW 2/2/11/2, Spacious Atrium Villa, w/yard care $795; 4/2/2 House, like new, $1025; RIVER LINKS REALTY 628-1616/800-488-5184 -g CRYSTAL RIVER 2/2 Furn., floating dock, sea-wall. Indian Waters Loc. $1,600/mo. Seasonal or Long Term. (352) 628-0011 CRYSTAL RIVER 2/2/1 Canal Home, scrn prch, fncd bkyrd, dock, mint. Pets ok, 1st, Ist. Sec. Avail Jan thru Apr. '08. (352) 843-8437 JEN IIS AZ*A m80'II.81 WELLPY*OF OURTRDEO ATTRHO UC@O OE ITKEATSTDIV ODY 2007 Mazda 3 Speed 3's A ilable Avail~ ,abl .SE ^ 2007Mazda 2007 Mazda 3 HB Speed 6 TuboChaorged p__^ M R #M3H OWN FOR 1 M MONTH 2008 Mazda MIATA MX-5 #MXSP OWN FOR MOMTH Pg UNDfhllL"t Sale bg51795Jd jl ~O insSaleo2,9 ~~IIDUSale 08992002 AZDA 6$399Soll 13,599 Sole poW9 1999 TOYOTA NINEI #M7514A ml stsSale 4,995- UM06Ch" I&U FhoMSio v, I99ITUI5MHTIOPRft25 204hi hnllToi .a~ig Sale 211)(112 SITIIRIS9LPM1 281 A Ms~sinkSle9 V06 dd6 2001 jlviDl3 1,995I 2OOACUEA U 3.2#0M535A r'007IWK salef 2006 WuINaVh s"952Mftd flt~lMtSaleo 11 9 203DIS- iEOSol 9 S1ale 2,699 ItIIIVTAIO Sale9 $ Siloa"n vehiclssl a s d da honaoe A I II J W I o 0 0 * 2007 Mazda 5 2007 Mazda 6 i^^MjMii~~~i--.e fB DUNNELLON 3/2/2 waterfront w/pool & dock.on 1.2 acres MUST SEE! $2300/mo F/L (352) 322-0199 INV./GOSPEL IS. 3/2 & 2/2 for rent. Possible Lease Opt. (954) 663-0405 UNFURNISHED HOUSES CRYSTAL RVR. 4/2'h/2, huge LR, Central Local $1125; HISTORIC HOMOSASSA 3/11'/ carport, dock, $1050 RIVER LINKS REALTY 628-1616/800-488-5184 WATERFRONT APTS. 1/1 Rent includes water, sewer & trash. 1st mo. & sec.. No pets: Avail. now. (352)563-5004 3/2/2 3 SISTERS AREA Fum. w/pool tbl. Boat slip, floating dock, all util Incl. $2,000/mo. 352-220-6631/258-6000 Bev. Hills/Citrus Springs Several To Choose Low down, Seller finan. EZ Terms, 352-201-0658 CITRUS SPRINGS New 3/2/2 Rent-to-Own Low Down, Easy Terms Danny (407) 227-2821 CRYSTAL RIVER IBR Furn., cable, W/D, phone, priv. BA, use of it, $350(352)795-7412 INVERNESS 1/1, Priv. entrance, kit., bath, FP Irg. Yd, until. inc $400mo (352) 212-4151 INVERNESS Clean, nice location. Priv. bath, cable TV, $125/wk. (352) 212-5198 CRYSTAL RIVER 2/2/1 Canal Home, scrn prch, fncd bkyrd, dock, mint. Pets ok, 1st, Ist. Sec. Avail Jan thru Apr. '08. (352) 843-8437 CRYSTAL RIVER SAdorable furnished waterfront 2BR/Boatsllp, Kayaks, Bikes, Golfculbs Wk or Mo 352-220-6593 CRYSTAL RIVER Attnl Power Plant Workers/Snowbirds, Rentals Avail. for all situations 352-628-0011 CRYSTAL RIVER Seasonal 1/1.5 WaterFrnt @ Sawgrass Landing, Pool, Sundeck Dock, Nature, Furnished $1000mo 352-564-0343 DUNNELLON River Frnt Condo Avail. Jan. March Due to Last Minute Cancel (352) 465-2702 CRYSTAL RIVER Attn! Power Plant Workers/Snowbirds, Rentals Avail. for all situations 352-628-0011 CRYSTAL RIVER Waterfront Rentals 2,3 & 4 Bedroom $1200 $2100/Mo. For Details Sam Latiff @352-422-7777 ERA Suncoost Realty 352-795-6811 DUNNELLON 3/2/2 waterfront w/pool & dclock.on 1.2 acres MUST SEE! $2300/mo F/L (352) 322-0199 HERNANDO 1 BR Apt., turn., on lake w/dock, clean, off Van Ness Rd. No pets, $850. + dep. (270) 320-3332 (270) 320-4312 INVERNESS Seasonal or long term. 1/1, turnn, scr. porch, fenced yard. Util., basic cable, waterfront community $165 wkly (352) 344-4945 LECANTO Quiet, Priv. Ac w/ beau. view. Lg. Cozy Camper w/rfovr. Fum. All until. Inc. Cbl TV Sips. 2, Ref. req. $685/mo. 352-621-4725 SUGARMILL. WOODS FURN. 3/2 POOL HOMES $1600 UP, tax River Links Realty 628-1616/800-488-5184 LG. HOME. SEAS. Wkly/mthly. Fum/ I | Unfurn.Pool. All newil 352-302-1370 I-- m m m11 CRYSTAL RIVER 2/1.5,Garb.,H20,cable,e electric. $1,100/MO. (352) 527-0260 Waterfront Rentals Furn. 1/1 Apt. Sleeps 4 $1000/mo. Include boat slip. Avail. Jan/Mar/Apr 2008. 386-462-3486 J ADVANCED HOME BUILDERS NO PAYMENTS FOR THE 1st YEAR! NEW HOMES Call Nowl (352) 694-2900 'ETY RATING NHTSA mat; Sv1 uKIAY, LNO)VEMBER 24, 2007 k in u t I NsIA CITRUS COUNTY (FL) CHRONICLE mul MSRP 11 I MSRP $1 I MSRP '3 I MSRP 12 I MSRP $269925 1 LIU A 'I ada NJ----. . 9Z, ? nn SATURDAY, NOVEMBER 24, 2007 fCrrr Conrrtwry/F) CHnvrrrONI YOUR CHOICE OF GIFT CARD! Rules: Odds of winning 1-60,000. Winner selected randomly. Winner is responsible for all taxes associated with prize. Contest ends on November 25th @ 5pm. Please allow 1 week to receive your shopping spree. a F4-C4-*-* liii S ,I Afl FI m~k (r I "a M -r Lcpprpu L j il-hI If NEHI 7 BJBJpt, OF CRYSTAL RIVER ftcCt1VE YOUR CHOICE OFA FREE WALUMART GIFT CARD OR BEST BUY GIFT CARD JUST FOR STOPPING BY! First 100 customers No purchase required r DAYS ONLY! Wednesday November 21 9AM-8PM CLOSED FOR THANKSGIVING Friday November 23 9AM-8PM Saturday November 24 9AM-5PMN Sunday November 25 v 12PM-5PM ,, . ll Imi[,;v^^...^ : 11 B I SNEbN Mrp. W.S.U. PAMOOMP iWm or ~'19 FJB 1994061A ITTT 3, III I I 111 3 r.'rYw.T~wr-g..~... St * r I- 71. -FT 11 F 11II Ik ulll(u, %-uufviy (Fl,) Urmumuix .- a 0ow".. I I 74 W. IL 4 MMI liq 9 Laill J1 Iq 00,1111661 Mm 1-11 IT VI I Il H I I W, CiTRus COUNTY (FL) CHRONICLE ML.- 'o4il I -Jill fim * U E4 I lI" ,. . i U4 MIVEtKLUKY GRAND MARQUIS LS Leather, loaded, 03 MERCURY SABLE WAGON LS Leather, low mi, local trade LDWES GIFT CARD =m 07 SUZUKI FORENZA Auto, air, pw, pi, Bal. of factory COMPLIMENTARY Wii GAMING CONSOLE! 04 SUZUKI GRAND VITARA Auto, pw, pl. air, low miles - -. I ~99 CHEVY i SUBURBAN LT 4X4 Leather, loaded 05 SUZUKI AERIO SX Low miles, local trade 01 CHEVY S-10 LS Auto, 3rd dool, ai pw, pl, tilt, cruise HOME THEATER SYSTEW6 .g : *1_s 03 MAZDA PROTEGE Pw, pl, air, alum wheels 01 PONTIAC GRAND PRIX SE Auto, air, pl, pw, tilt, cruise 00 CHEVY S-10 LS Ext. cab, auto, air MPLAYSTATIN 3 PLAYSTATIDN 3 99 FORD EXPEDITION EDDIE BAUER 4X4, leather, loaded 03 TOYOTA SIENNA XLE Quad seating, loaded, low miles 05 DODGE RAM 1500 LARAMIE AWD, Hemi, leather, laoded 03 PONTIAC GRAND AM V6, auto, air, pl, pw 05 TOYOTA HIGHLANDER LIMITED Leather, 7 pass, Bal. of warr. 10k mi 4Att 04 CHRYSLER SEBRING Low miles, local trade 02 PONTIAC SUNFIRE SE Auto, air, pi, pw, tilt, cruise COWMPULME1RV iPOD 02 DODGE DURANGO SXT PI, pw, alum wheels, tilt, cruise 02 CHEVY AVALANCHE LT 4x4, leather, OnStar, loaded 05 HONDA PILO EX 4x4, auto, air, low miles, local trade 05 SUZUKI FORENZA Air, pl, pw, low miles, Bal. of factory warranty ! ..* ,- .': ,.p - 07 SUZUKI XL7 Loaded, Balance of factory warranty 05 HYUNDAI ACCENT GLS Auto, air, Balance of factory warranty 05 KIA SORENTO EX Leather, roof. loaded, 18k miles NEED FINANCING? - CASH SCHE K - FINANCING I -~ 06 JEEP GRAND CHEROKEE LAREDO Loaded, inral trarde 99 TOYOTA CAMRY LE Leather, pl, pw, roof 02 BUICK RENDEZVOUS CX2 Loaded, INSTANT CREDIT APPROVAL! ,. ,=e ', .^g ^ f3,,^''^ 2* *''1- - . .... Li "TLLIL5 izBR 4 20 kL T 0=4- II i,, ~-J ~I . e .. .. A *1- * - SATURDAY, INOVEMBER Z44, Zkjkj I ".-. -17 ^ '*1'"-^.-- w^-'** ,, -',K Q.x aim SATURDAY, NOVEMBER 24, 2007 CITRUS COUNTY (FL) CHRONICLE 4-, "4 I 1. 9- t SI - SI VEHICLE INFORMATION: All vehicles have been inspected and their titles have been certified and cleared for transfer to prospective new owners The majority of these vehicles are still under factory warranty and select vehicles come with a balance of the factory warranty. REGISTRATION: 1 All prospective buyers are required to register at the sale office to preview A vehicles. (Must be 18 years or older and bring a valid drivers license) Oritin SI Cash. Personal Check. Credit Card (Maximum $2.000 payment by charge card.) Option 2 Negotiate new loan with on-site competing/lending institutions GUARANTEED FINANCING: Lenders onsite have waived all stipulations. All currently employed applicants will be guaranteed financing on available approved vehicles from participating banks and credit unions regardless of prior credit history Down payment may vary for approval. TRADE-INS WILL BE PERMITTED: State licensed auto brokers will bid on attendees current vehicles) and any balance owed will be paid off (if purchased).Purchaser may apply equity (positive or negative) towards new loan amount if desired. 29 [EMPLIMENTARY E-MACHINE 01 FORD EXPLORER .-: SPORT TRAC Leather, loaded, local trade 4.- -9 *^ ^_i-, Y 01 CHRYSLER PT CRUISER - Chrome, auto, pw, A- pl, tilt, cruise 01 BUICK CENTURY LIMITED Leather, loaded, local trade COMPLIMENTARY PLAYSTATION 3 00 NISSAN MAXIMA Leather, roof, loaded 03 JEEP WRANGLER SPORT V6, auto, air 02 GMC ENVOY LT Leather, roof, loaded * ,,- . S00 FORD CONTOUR SE V6, auto, air, loaded 05 PONTIAC GRAND AM SE PI, pw, tilt, cruise 06 FORD TAURUS Auto, pl, pw, cruise, Balanc .factory warra -V. ThI tilt. ;e of nty 02 CHRYSLER SEBRING LXI Leather, pl, pw, tilt, cruise, wheels, loaded CUvPLIENT' p LOWES GIFT CARD M e 06 KIA SORENTO EX Loaded, 14k miles, Balance of factory warranty 06 CHEVY SILVERADO LT Ex cab, alum wheels, tilt, cruise 04 JEEP GRAND CHEROKEE LAREDO Auto, alum wheels, nl nw loaded 04 CHEVY AVALANCHE LS PI, pw, alum wheels, loaded 05 TOYOTA COROLLA CE Auto, air. low miles 04 PONTIAC GRAND AM SE Auto, air, tilt, cruise, pl, pw 03 MAZDA TRIBUTE ES Leather, loaded, low miles 05 FORD EXPLORER SPORT TRAC PI, pw, loaded E-MACHINE 05 CHRYSLER PT CRUISER Auto, air, low miles, Bal of factory warranty 06 KIA SEDONA LX Quad seating, rear air, Balance of factnrv warrantv 03 CHEVY SILVERADO Dump bed, work truck 02 KIA SEDONA EX Quad seating, rear air, pl, pw, tilt, cruise 04 SUZUKI VERONA Auto, air, pl, pw, low miles Wii GAMING CONSOLE! I ' .Wii RECEIVE YOUR CHOICE OF A FREE OR BEST BUY GIFT CARD JUST FOR STOPPING BY! First 100 customers. No purchase required 02 SUZUKI VITARA IX Auto, air, pl, pw, low miles 06 SUZUKI XL7 ; 7 pass., auto, air, low miles, Bal. of factory ^, warrantv 1 04SUZUKI XL7 . Leather, loaded, 10k ;- miles, Balance of . factory warranty . I, mB 4 * L I ~ K. ~. :,w. F: .~-t:s~.~'Av ~ r$-'. I. ,c4,,5~t< ..~4 'b4'A.C 4-s.~k..~qw.'4n~.AMfl' t5r ~~"4~r-. ;4~Y;.2M' I ~ ~ hS~'j~ I I I -. .' '24 W A '1 9J '41 '4 ".:. - 04 MAZDA MIATA Pw, pl, CD, tilt, cruise -4-. V.' - I [ 1 } ^; ', *!. ,' 'f I -1- I s,:~W,. I,' -_.,, may nr CITRUS COUNTY (FL) CHRONICLE Y, NOVEMBER 24,, UU/007 H I I I I I I H- : ~1 W mq TI I 01: INSTANT I NEW 2007 SUZUKI XL7 .OAN APPROVAL 252-hp V6 engine Available 7-passenger seating Available navigation system Front-seat and side-curtain alrbags NEW 2 SK4 (f I rfi REBATES AND DISCOUNTS UP TO COMPLIMENTARY I I HOME THEATER SYSTEM 27 SX4s in stock and ready for Immediate delivery NEW2 -ado -. I i,.IW i iARY Wii GAMING CONSOLE! REBATES AND DISCOUNTS UP TO i , FORENZA COMPLIMENTARY hh. E-MACHINE 15 XL7's in stock and ready for immediate delivery REBATES AND DISCOUNTS UP TO 17 Forenzas in stock and ready for Immediate delivery UKI GRAND VITARA S [:[1MRPIIMN I ARYE ,,.> iPOO NEW fUlKI FORENZA WAGON COMPLIMENTARY .ammarS PLAYSTATION 3 REBATES AND DISCOUNTS UP TO :i =1i I 15 Grand Vitaras in stock and ready for immediate delivery REBATES R jL AND DISCOUNTS UP TO 11 Forenza Wagons in stock and ready for immediate delivery DAYS ONLY! Wednesday November 21 I 9AM-8PM CLOSED FOR THANKSGIVING Friday November 23 9AM-8PM Saturday November 24 9AM-5PM Sunday November 25 12PM-5PM - I 1" .1SIR * P p. ~ - VT SATURDAY III i " U ri ~iI t N' NEON MOON PARKING LOT I . : -- .- -) li ')- rl n -7 FIA 4 ;il I 1 1 k, FAI k, rw @(@I ji I : r L110 no ha j ji j ji 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/01076 | CC-MAIN-2015-27 | refinedweb | 54,114 | 79.16 |
Implementing I2C device drivers in userspace¶. You can examine /sys/class/i2c-dev/ to see what number corresponds to which adapter. Alternatively, you can run “i2cdetect -l” to obtain a formatted list of all I2C adapters present on your system at a given time. i2cdetect is part of the i2c-tools package.
I2C device files are character device files with major device number 89 and a minor device number corresponding to the number assigned as explained above. They should be called “i2c-%d” (i2c-0, i2c-1, …, i2c-10, …). All 256 minor device numbers are reserved for I2C.
C example¶
So let’s say you want to access an I2C adapter from a C program. First, you need to include these two headers:
#include <linux/i2c-dev.h> #include <i2c/smbus.h>
Now, you have to decide which adapter you want to access. You should inspect /sys/class/i2c-dev/ or run “i2cdetect -l” to decide this. Adapter numbers are assigned somewhat dynamically, so you can not assume much about them. They can even change from one boot to the next.
Next thing, open the device file, as follows:
int file; int adapter_nr = 2; /* probably dynamically determined */ char filename[20]; snprintf(filename, 19, "/dev/i2c-%d", adapter_nr); file = open(filename, O_RDWR); if (file < 0) { /* ERROR HANDLING; you can check errno to see what went wrong */ exit(1); }
When you have opened the device, you must specify with what device address you want to communicate:
int addr = 0x40; /* The I2C address */ if (ioctl(file, I2C_SLAVE, addr) < 0) { /* ERROR HANDLING; you can check errno to see what went wrong */ exit(1); }
Well, you are all set up now. You can now use SMBus commands or plain I2C to communicate with your device. SMBus commands are preferred if the device supports them. Both are illustrated below:
__u8 reg = 0x10; /* Device register to access */ __s32 res; char buf[10]; /* Using SMBus commands */ res = i2c_smbus_read_word_data(file, reg); if (res < 0) { /* ERROR HANDLING: I2C transaction failed */ } else { /* res contains the read word */ } /* * Using I2C Write, equivalent of * i2c_smbus_write_word_data(file, reg, 0x6543) */ buf[0] = reg; buf[1] = 0x43; buf[2] = 0x65; if (write(file, buf, 3) != 3) { /* ERROR HANDLING: I2C transaction failed */ } /* Using I2C Read, equivalent of i2c_smbus_read_byte(file) */ if (read(file, buf, 1) != 1) { /* ERROR HANDLING: I2C transaction failed */ } else { /* buf[0] contains the read byte */ }
Note that only a subset of the I2C and SMBus protocols can be achieved by the means of read() and write() calls. In particular, so-called combined transactions (mixing read and write messages in the same transaction) aren’t supported. For this reason, this interface is almost never used by user-space programs.
IMPORTANT: because of the use of inline functions, you have to use ‘-O’ or some variation when you compile your program!
Full interface description¶
The following IOCTLs are defined:
ioctl(file, I2C_SLAVE, long addr)
Change slave address. The address is passed in the 7 lower bits of the argument (except for 10 bit addresses, passed in the 10 lower bits in this case).
ioctl(file, I2C_TENBIT, long select)
Selects ten bit addresses if select not equals 0, selects normal 7 bit addresses if select equals 0. Default 0. This request is only valid if the adapter has I2C_FUNC_10BIT_ADDR.
ioctl(file, I2C_PEC, long select)
Selects SMBus PEC (packet error checking) generation and verification if select not equals 0, disables if select equals 0. Default 0. Used only for SMBus transactions. This request only has an effect if the the adapter has I2C_FUNC_SMBUS_PEC; it is still safe if not, it just doesn’t have any effect.
ioctl(file, I2C_FUNCS, unsigned long *funcs)
Gets the adapter functionality and puts it in
*funcs.
ioctl(file, I2C_RDWR, struct i2c_rdwr_ioctl_data *msgset)
Do combined read/write transaction without stop in between. Only valid if the adapter has I2C_FUNC_I2C. The argument is a pointer to a:
struct i2c_rdwr_ioctl_data { struct i2c_msg *msgs; /* ptr to array of simple messages */ int nmsgs; /* number of messages to exchange */ }
The msgs[] themselves contain further pointers into data buffers. The function will write or read data to or from that buffers depending on whether the I2C_M_RD flag is set in a particular message or not. The slave address and whether to use ten bit address mode has to be set in each message, overriding the values set with the above ioctl’s.
ioctl(file, I2C_SMBUS, struct i2c_smbus_ioctl_data *args)
If possible, use the provided
i2c_smbus_*methods described below instead of issuing direct ioctls.
You can do plain I2C transactions by using read(2) and write(2) calls. You do not need to pass the address byte; instead, set it through ioctl I2C_SLAVE before you try to access the device.
You can do SMBus level transactions (see documentation file smbus-protocol for details) through the following functions:
__s32 i2c_smbus_write_quick(int file, __u8 value); __s32 i2c_smbus_read_byte(int file); __s32 i2c_smbus_write_byte(int file, __u8 value); __s32 i2c_smbus_read_byte_data(int file, __u8 command); __s32 i2c_smbus_write_byte_data(int file, __u8 command, __u8 value); __s32 i2c_smbus_read_word_data(int file, __u8 command); __s32 i2c_smbus_write_word_data(int file, __u8 command, __u16 value); __s32 i2c_smbus_process_call(int file, __u8 command, __u16 value); __s32 i2c_smbus_block_process_call(int file, __u8 command, __u8 length, __u8 *values); __s32 i2c_smbus_read_block_data(int file, __u8 command, __u8 *values); __s32 i2c_smbus_write_block_data(int file, __u8 command, __u8 length, __u8 *values);
All these transactions return -1 on failure; you can read errno to see what happened. The ‘write’ transactions return 0 on success; the ‘read’ transactions return the read value, except for read_block, which returns the number of values read. The block buffers need not be longer than 32 bytes.
The above functions are made available by linking against the libi2c library, which is provided by the i2c-tools project. See:.
Implementation details¶
For the interested, here’s the code flow which happens inside the kernel when you use the /dev interface to I2C:
Your program opens /dev/i2c-N and calls ioctl() on it, as described in section “C example” above.
These open() and ioctl() calls are handled by the i2c-dev kernel driver: see i2c-dev.c:i2cdev_open() and i2c-dev.c:i2cdev_ioctl(), respectively. You can think of i2c-dev as a generic I2C chip driver that can be programmed from user-space.
Some ioctl() calls are for administrative tasks and are handled by i2c-dev directly. Examples include I2C_SLAVE (set the address of the device you want to access) and I2C_PEC (enable or disable SMBus error checking on future transactions.)
Other ioctl() calls are converted to in-kernel function calls by i2c-dev. Examples include I2C_FUNCS, which queries the I2C adapter functionality using i2c.h:i2c_get_functionality(), and I2C_SMBUS, which performs an SMBus transaction using i2c-core-smbus.c:
i2c_smbus_xfer().
The i2c-dev driver is responsible for checking all the parameters that come from user-space for validity. After this point, there is no difference between these calls that came from user-space through i2c-dev and calls that would have been performed by kernel I2C chip drivers directly. This means that I2C bus drivers don’t need to implement anything special to support access from user-space.
These i2c.h functions are wrappers to the actual implementation of your I2C bus driver. Each adapter must declare callback functions implementing these standard calls. i2c.h:i2c_get_functionality() calls i2c_adapter.algo->functionality(), while i2c-core-smbus.c:
i2c_smbus_xfer()calls either adapter.algo->smbus_xfer() if it is implemented, or if not, i2c-core-smbus.c:i2c_smbus_xfer_emulated() which in turn calls i2c_adapter.algo->master_xfer().
After your I2C bus driver has processed these requests, execution runs up the call chain, with almost no processing done, except by i2c-dev to package the returned data, if any, in suitable format for the ioctl. | https://www.kernel.org/doc/html/latest/i2c/dev-interface.html | CC-MAIN-2022-05 | refinedweb | 1,272 | 61.16 |
Doc No: SC22/WG21/N1459 J16/03-0042 Date: April 25, 2003 Project: JTC1.22.32 Reply to: Robert Klarer IBM Canada, Ltd. klarer@ca.ibm.com
Plauger had a concern that the discussion of export would be held during an evening technical session (agenda item 4.1, "Why We Can't Afford Export"), as the issue is too important to be discussed during an evening session.
Clamage assured Plauger that no votes would be taken during the evening session, and that the session would consist only of technical discussion.
Plauger stressed the importance of this issue, not only from a technical point of view, but from the point of view of process and procedure.
Plum suggested that some committee time during the day be devoted to the discussion of process and procedure.
Clamage observed that time could be allotted from the schedule on Thursday.
Discussion followed concerning the time on Thursday during which this session would be held.
Clamage concluded that this session would be held from 1:30pm to 3:30pm on Thursday.
Evening technical sessions:
Clamage indicated that the evening technical sessions will begin at 7:30pm on Monday and Tuesday.
Motion to approve the agenda as amended:
Mover: Plum
Seconder: Dawes
Adamczyk mentioned that the Core Working Group (CWG) had intended to discuss issues that were of interest to members of other working groups. The various Working Group chairs will meet to agree on arrangements so that interested parties may participate.
Austern reported that the Library Working Group (LWG) would continue its work of processing DRs and discussing proposals for inclusion in the TR.
Goldthwaite reported that the vote to register the Performance TR has been approved.
Stroustrup suggested that the Evolution Working Group (EWG) needed to establish an issues list and to establish an overall direction for the evolution of the language. Stroustrup intended to begin by emphasizing proposals that sought to "remove embarassments" and proposals that will facilitate the construction of libraries.
Sutter also reported that there was discussion in the WG21 meeting about the need for a base document for the C++0x effort. It was proposed that TC1 (document number 14882:2003(E) ) be used for this purpose.
Adamczyk expressed concern about the proposed new working paper. His specific comments were:
Adamczyk asked whether there would be a TC2.
Glassborow suggested that we should agree that there will be no TC2, and that we will begin work on a revised standard.
After some discussion, there was concensus that the base document for the C++0x effort will be equivalent to 14882:2003(E) with all DRs applied. It was agreed that this decision would be moved for formal voting during the Friday session. There was tacit agreement that there will be no TC2 in the form of a revised standard.
Sutter reviewed the schedule for future meetings:
Plum reported that nine members of WG14 at the meeting were liaisons from C++ to C.
Plum took a count of liaisons from C to C++ among WG21 members at this meeting. Plum counted 8 liaisons.
Plum reviewed the 16-bit and 32-bit character types that were approved for C.
T. Plauger reviewed document N996, the embedded C TR, and document N998, concerning extended character types.
Sutter reported that Martyn Lovell's paper 997 on C library security was presented to WG14.
A similar paper will be presented to WG21 in the Monday night technical session.
The committee broke into subgroups at 10:30am.
Adamczyk reported that most of the CWG's time was devoted to DR processing. All items in Ready state except one will be proposed for integration into the Working Paper. One issue requested a relaxation of the rules for the placement of the typename keyword. CWG has decided in principle to permit typename to be used with qualified names in any context, even outside of templates. The requester, P J Plauger has requested that typename be permitted on any name that is a type, including both qualified names and unqualified names.
Plauger reviewed his request for the group.
Crowl claimed that syntactical ambiguities would arise if typename could be applied to unqualified names.
Spicer suggested that these ambiguities already exist.
Austern asked whether this proposal would allow a programmer to disambiguate code in ways that are not possible today. The consensus opinion of the group was that the answer to Austern's question was "no."
Adamczyk reviewed Core Issue 339 concerning the use of an arbitrary expression as an operand to a sizeof expression that is used as a template parameter. Template argument deduction does not currently work in this sort of case in most C++ compilers. To make this work compilers may need to make ABI changes. Adamczyk invited the group to express opinions to him about whether this sort of deduction should work, and -- more specifically -- in which cases it should or should not work.; } int main() { printf("short: %d\n", conv_int<short>::value); printf("int *: %d\n", conv_int<int *>::value); printf("short: %d\n", conv_int2<short>()); printf("int *: %d\n", conv_int2<int *>()); }Evolution Working Group progress:
Stroustrup reported that the EWG will not be bringing forward any formal motions at this meeting.
Some specific proposals that had been discussed by EWG included:
Austern asked whether C committee was approached concerning ideas about changing the preprocessor.
Stroustrup answered: not yet. We need to develop the idea further and to write a paper.
Stroustrup also recalled that Vandevoorde hosted an information session in which he presented his C++ metaprogramming project
Library Working Group progress:
Austern reported that the LWG spent most of the week reviewing proposals to the Library TR, and that many proposals have been accepted in principle by the LWG for inclusion in the TR.
Austern also noted that some LWG issues in Ready Status will be moved for approval as DRs.
Austern reviewed two TR proposals that were controversial among the members of the LWG: N1422/03-0004 "A Proposal to Add Mathematical Special Functions to the C++ Standard Library" and N1443/03-0025 "A Proposal to Add Hash Tables to the Standard Library."
Mathematical Special Functions:
Austern reported that concerns expressed among the LWG about the proposal for mathematical special functions were that these functions are suitable for C, so work on them should be coordinated with the C committee. Also, this library is very large and complicated and the proposal may be controversial for that reason.
Discussion followed concerning the suitability of a special purpose library such as this one for inclusion in the TR.
Some points made during this long discussion:
A straw poll was taken, and expressed opinion among the group was that this proposal should be moved for inclusion in the TR on Friday.
Hash Tables:
Austern reviewed the LWG discussion about the names of the containers proposed in "A Proposal to Add Hash Tables to the Standard Library." Specifically, there had been concern that confusion and incompatibility would result if the names hash_set, hash_multiset, hash_map, and hash_multimap were used, since these names are already commonly used for similar -- but slightly different -- nonstandard containers. A revision of the proposal (document N1456) reflects the outcome of this discussion; the names of the proposed containers have changed from hash_set, hash_multiset, hash_map, and hash_multimap, to unordered_set, unordered_multiset, unordered_map, and unordered_multimap, respectively.
Discussion about these names followed.
Dawes reviewed some of the alternatives that were considered by the LWG:
In a straw poll, it was found that there was strong support for a motion to approve this proposal for inclusion in the TR.
Austern reviewed the LWG discussion of the equality operator for the unordered containers.
Performance Working Group progress:
Goldthwaite reported that editorial work on the Performance TR continued. In particular, a great deal of work was devoted to the integration of changes into the document which originated from the C committee's parallel document. The TR is now very close to completion.
Move to adopt ISO/IEC 14882:2003(E) as the working paper.
Mover: Charney
Seconder: Nelson
Move to amend the working paper by applying all issues whose
status is DR from N1434, "C++ Standard Core Language Defect
Reports, Revision 25".
Mover: Adamczyk
Seconder: Sutter
Move to amend the working paper by applying all issues whose status is DR from N1441, "C++ Standard Library Closed Issues List Revision 25".
Mover: Austern
Seconder: Charney
Move to ask SC22 to make the performance TR available for free, or to authorize WG21 to make it available for free.
Mover: Glassborow
Seconder: Charney
Move to direct the project editor of the performance TR to make changes of an editorial scope, such as reconciling it with the WG14 technical report WD TR 18037, fixing typographical errors, and fixing incorrect code examples.
Mover: Glassborow
Seconder: Charney
Move to accept N1452, "A Proposal to Add an Extensible Random Number Facility to the Standard Library", for inclusion in the library extensions technical report.
Mover: Austern
Seconder: Glassborow
Move to accept N1422, "A Proposal to Add Mathematical Special Functions to the C++ Standard Library", for inclusion in the library extensions technical report.
Mover: Austern
Seconder: Brown
The convenor ruled that the above result constituted concensus among the commitee to approve the motion. Some discussion ensued concerning the level of discomfort among some members of the committee about this motion.
Move to accept N1424, "A Proposal to add Type Traits to the Standard Library", for inclusion in the library extensions technical report.
Mover: Austern
Seconder: Hinnant
Move to accept N1429, "A Proposal to add Regular Expression to the Standard Library", for inclusion in the library extensions technical report
Mover: Austern
Seconder: Dawes
Move to accept N1450, "A Proposal to Add General Purpose Smart Pointers to the Library Technical Report", for inclusion in the library extensions technical report.
Mover: Austern
Seconder: Charney
Move to accept N1432, "A Proposal to Add an Enhanced Member Pointer Adaptor to the Library Technical Report", for inclusion in the library extensions technical report.
Mover: Austern
Seconder: Dawes
Move to accept N1453, "A proposal to add a reference wrapper to the standard library", for inclusion in the library extensions technical report.
Mover: Austern
Seconder: Abrahams
Move to accept N1454, "A uniform method for computing function object return types", for inclusion in the library extensions technical report.
Mover: Austern
Seconder: Abrahams
Move to accept N1455, "A Proposal to Add an Enhanced Binder to the Library Technical Report", for inclusion in the library extensions technical report.
Mover: Austern
Seconder: Marcus
Move to accept N1456, "A Proposal to Add Hash Tables to the Standard Library (revision 4)", for inclusion in the library extensions technical report.
Mover: Austern
Seconder: Dawes
Glassborow reported that he was uncomfortable with the names of the containers specified in this proposal, but that he felt that it made sense to try the name in a TR.
Hinnant reported that all of the names will likely be declared in a namespace named tr1 that is nested inside the nested namespace std.
There was agreement that issues that had been incorporated into the Working Paper would be assigned the status code WP.
Nelson moved to thank the host.
Applause.
Dawes moved to thank Maurer and those others who maintained web servers throughout the meeting.
Applause.
Glassborow suggested that guidelines be written for hosts of future meetings to simplify their work and to allow them to benefit from the experience of previous hosts.
Glassborow suggested that companies that were not willing to host meetings themselves take it upon themselves to help others to finance the cost of future meetings.
Plauger requested that an agenda item be created to deal with the issue concerning DLLs.
There was concensus that this could be worked out in private e-mail.
Motion to adjourn
Mover: Plauger
Seconder: Dawes
Meeting adjourned at 9:15. | http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003/n1459.html | crawl-002 | refinedweb | 1,958 | 50.67 |
?
Activity
I re-read the initial comment and noticed the note about the id starting with "_id". I changed all of my <h:outputText> tags which are generating URLs to contain id attributes starting with "_id" and that fixed my problem. So, I have a workaround but don't think that the format of an id attribute value should have such an impact. I'll look at the source with my team to see if we can offer a suggestion for a fix.
BTW: I would rather use <h:outputLink> but it seems to only allow absolute urls and I have relative urls. Have I missed the boat on this?
Nothing in the MyFaces-implementation does this, as far as I can see.
Hmm - I don't know much about the portlet integration, maybe Stan can say more?
regards,
Martin
Hi
I've just experienced the same issue with Liferay 3.6.1 and Myfaces 1.1.1.
I've looked around in Liferay in the util-jsf library but couldn't find anything of significance.
-Henrik
I discovered one thing in my case.
The Id's of all the components are "automagically" prefixed with the name of the portlet. So unless the ID is manually set, the ID's generated
in my case look like this: "reportingid0","_reportingid1","_reporting_id2", where "reporting" is the name of the portlet.
DOn't know what or who generates the IDs yet.
In the case of verbatim tags there is no way of specifying an ID so span is injected regardless.
-Henrik
It seems when the components are created the createUniqueId method in UIViewRoot.java
calls ExternalContext.encodeNamespace(...) method.
The portlet implementation of the ExternalContext (PortletExternalContextImpl.java) returns
"((RenderResponse)_portletResponse).getNamespace() + name" where name is passed in and looks like "_id0", "_id1", "_idx".
The Servlet implementation just returns the passed in value.
Myfaces's HtmlTextRendererBase.java seems to inject SPAN elements around all components that
has an ID which does NOT start with "_id".
-Henrik
One line fix to PortletExternalContextImpl.encodeNamespace.
Thanks to Martin Marinschek for the best solution.
Reopening because PORTLETBRIDGE-186 was filed. ()
I.e. The problem reported in MYFaces-702 was reopened against the bridge indicating that the 1.1 Bridge change/patch to work around this should be applied to the 1.2 bridge.
I am not so sure. It appears that the real bug is that UIViewRoot.createUniqueId calls ExternalContext.encodeNamespace on the id before returning. It shouldn't make this call. Rather it should just return the uniqueId it generates. My guess is this was very old code that was added to deal with portlet/portal namespacing issues. However, the bridge now handles this more correctly by not impacting the component id – rather it introduces its own UIViewRoot that provides a NamingContainer which ensures all clientIds are namespaced via this externalcontext call.
Is this correct, or is there some valid reason that createUniqueId calls encodeNamesapce? and MYFACES-454.
>this issue should be fixed on 1.2.x and 2.0.x branches
So? Why you mark it as fixed without any changes.
Some corporate portals still use jsf 1.1 and old portlet bridge so they can't upgrade theirs portals without this fix.
We are having the same exact issue. Has anyone found a fix or workaround? | https://issues.apache.org/jira/browse/MYFACES-702?focusedCommentId=12361138&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel | CC-MAIN-2015-14 | refinedweb | 550 | 68.57 |
Factory and staticErik Doetsch May 11, 2011 4:57 PM
This worked in JBoss 4.2.3/Seam 2.1.1 but not flunks in 5.1/2.2.1
This was coded by a previous developer and I am wondering if I am simply do not understand @Factory or if it worked differently previously. This dropdown is giving me the error:
Expected a child component type of UISelectItem/UISelectItems for component type javax.faces.SelectOne(startDateLimit)
I left the previous developer's comment in as it implies perhaps something strange was done in earlier versions.
<ui:define <h:selectOneMenu <s:selectItems </h:selectOneMenu> </ui:define> @Name("contractSearchData") @Scope(ScopeType.CONVERSATION) public class ContractSearchData extends SessionAwareObject implements Serializable { // Static var goes into one of the Seam Contexts?? // When referencing a static var on JSF page, use its name as is, without reference to the component itself, // like "dateLimits", not "contractBean.dateLimits". // Have to use @Factory for Seam to inject a static var, // because it may need it, like in this case before seam component itself is needed. public final static String [] dateLimits = new String[] {"On or Before", "On", "On or After"}; /** * @return drop down values for selecting dates */ @Factory("dateLimits") public static String[] getDateLimits() { return dateLimits; } }
1. Re: Factory and staticLeo van den berg May 11, 2011 5:54 PM (in response to Erik Doetsch)
Hi,
I don't think it works on a static method. Test this by just removing the static from the method.
Leo
2. Re: Factory and staticErik Doetsch May 12, 2011 10:20 AM (in response to Erik Doetsch)
Leo van den Berg wrote on May 11, 2011 17:54:
Hi,
I don't think it works on a static method. Test this by just removing the static from the method.
Leo
Thanks for the reply, removing static from the method did not work unfortunately. Is it possibly the conversation scope?
3. Re: Factory and staticAlexandr Areshchanka May 12, 2011 2:06 PM (in response to Erik Doetsch)
Select components won't work with arrays, use List.
4. Re: Factory and staticErik Doetsch May 12, 2011 3:34 PM (in response to Erik Doetsch)
Alexandr Areshchanka wrote on May 12, 2011 14:06:
Select components won't work with arrays, use List.
I was able to get this to work by moving the @Factory method to another class using SESSION scope. There it looked like:
@Factory("dateLimits") public String[] getDateLimits() { return ContractSearchData.dateLimits; }
Not sure if that was the sole issue. Perhaps the class to which I moved it was instantiated already keeping the problem from occurring. | https://developer.jboss.org/thread/194030 | CC-MAIN-2018-39 | refinedweb | 432 | 53.21 |
Related
Tutorial
Vue.js Unit Testing with Karma and Moch some point, any serious development project should implement testing for their components. Generally, the first step is unit testing. Unit testing allows you to ensure that the behavior of your individual components is reliable and consistent. By using Karma and Mocha, combined with Webpack, we can unit-test Vue components with relative ease.
Installation
There’s no soft way to put it, the JavaScript web app testing scene is a complicated beast. As a result, the configuration required for a successful unit-testing setup is fairly extensive. Accordingly, you’ll probably be best off using vue-cli with the webpack template ($ vue init webpack my-project) and testing enabled.
Even then, there are some configuration changes to make to test/unit/karma.conf.js. You’ll need to specify the plugins you’re using, and possibly change the launcher. In this case, I’m using karma-chrome-launcher instead of karma-phantomjs-launcher.
var webpackConfig = require('../../build/webpack.test.conf'); module.exports = function (config) { config.set({ // To run in additional browsers: // 1. install corresponding karma launcher // // 2. add it to the `browsers` array below. browsers: ['Chrome'], frameworks: ['mocha', 'sinon-chai'], reporters: ['spec', 'coverage'], files: ['./index.js'], preprocessors: { './index.js': ['webpack', 'sourcemap'] }, // ** ADD THIS IN ** (vue-cli's webpack template doesn't add it by default) plugins: [ // Launchers 'karma-chrome-launcher', // Test Libraries 'karma-mocha', 'karma-sinon-chai', // Preprocessors 'karma-webpack', 'karma-sourcemap-loader', // Reporters 'karma-spec-reporter', 'karma-coverage' ], webpack: webpackConfig, webpackMiddleware: { noInfo: true }, coverageReporter: { dir: './coverage', reporters: [ { type: 'lcov', subdir: '.' }, { type: 'text-summary' } ] } }) }
Your First Component Unit Test
Let’s create a small component to test.
<template> <p>{{propValue}}</p> </template> <script> export default { props: ['propValue'] } </script>
Now we’ll add a spec for it in test/unit/specs. This just checks that the component’s text is set to the property value.
import Vue from 'vue'; // The path is relative to the project root. import TestMe from 'src/components/TestMe'; describe('TestMe.vue', () => { it(`should render propValue as its text content`, () => { // Extend the component to get the constructor, which we can then initialize directly. const Constructor = Vue.extend(TestMe); const comp = new Constructor({ propsData: { // Props are passed in "propsData". propValue: 'Test Text' } }).$mount(); expect(comp.$el.textContent) .to.equal('Test Text'); }); });
Waiting For Async Updates
Vue updates the DOM asynchronously, in ticks. Therefore, when we modify anything that affects the DOM, we need to wait for the DOM to update using Vue.nextTick() before making any assertions.
<template> <p>{{dataProp}}</p> </template> <script> export default { data() { return { dataProp: 'Data Text' } } } </script>
import Vue from 'vue'; // The path is relative to the project root. import TestMe2 from 'src/components/TestMe2'; describe('TestMe2.vue', () => { ... it(`should update when dataText is changed.`, done => { const Constructor = Vue.extend(TestMe2); const comp = new Constructor().$mount(); comp.dataProp = 'New Text'; Vue.nextTick(() => { expect(comp.$el.textContent) .to.equal('New Text'); // Since we're doing this asynchronously, we need to call done() to tell Mocha that we've finished the test. done(); }); }); });
Reference
Hopefully that helps get you started!
However, the way components are instanced and extended in Vue can be a bit confusing, so you may want to take a look at the official Vue tests to get a better idea on how to test various component capabilities. | https://www.digitalocean.com/community/tutorials/vuejs-unit-testing-karma-mocha | CC-MAIN-2020-34 | refinedweb | 554 | 51.04 |
0
Greetings! I am new to the Daniweb community but hopefully you all can help me out with this problem!
I am to write a c++ function, smallestIndex that takes as parameters int array & its size and returns the index of the smallest element. then I have to write a program to test the function. So here's the code so far:
#include <iostream> using namespace std; int smallestIndex( int[], int); // function prototype void main() { int arr[10] = {2,5,6,9,3,7,1,15,12,10}; int position; position = smallestIndex(arr, 10); cout << "The smallest Index is: " << position << endl; } int smallestIndex( int arr[], int size) { int smallestIndex=0; int temp=arr[0]; int i; for(int i=0;i<size;i++) { if(arr[i]<temp) { smallestIndex = i; temp=arr[i]; } } return i; }
I don't know if the function is correct. Someone on a different forum helped me out with correcting it so Hopefully it's right but I keep getting a warning at first then it says fatal error that variable i hasn't been initialized! SO I don't know. Then I was having trouble figuring out how to get it to output the value but hopefully I've figured that out up there at the top?? Let me know! THanks!! | https://www.daniweb.com/programming/software-development/threads/95092/help-with-smallest-index-of-an-array | CC-MAIN-2017-09 | refinedweb | 215 | 64.95 |
This Tutorial is all about Introduction to Database Access in VB.Net. In this tutorial you will be able to learn about Database Access in VB.Net. So lets get Started:
- Applications communicate with a database. Firstly is to stored data. To retrieve it and to present it in a user-friendly way. Then to update the database by inserting, modifying and deleting data.
- The data residing in a data store or database is retrieved through the Data provider.
Various components of the data provider retrieve data for the application and update data.An application accesses data either through a Datasets or a Data readers.
- Datasets – store data in a disconnected cache and the application retrieves data from it.
- Data readers – provide data to the application in a read-only and forward-only mode.
Data provider
- is used to connect into a database. Executing commands and retrieving data, storing it in a Dataset, reading the retrieved data and updating the database.
Connection
-This component is used to set up a connection with a data source.
Command
-A command is a SQL statement or a stored procedure used to retrieve, insert, delete or modify data in a data source.
DataReader
-Data reader is used to retrieve data from a data source in a read-only and forward-only mode.
DataAdapter
-This is integral to the working of ADO.Net since data is transferred to and from a database through a data adapter. It retrieves data from a database into a dataset and updates the database. When changes are made to the dataset, the changes in the database are actually done by the data adapter.
DataSet
- is an in-memory representation of data. It is a disconnected, cached set of records that are retrieved from a database. When a connection is established with the database, the data adapter creates a dataset and stores data in it.
The DataSet class is present in the System.Data namespace. The following table describes all the components of DataSet:
DataTableCollection
-contains all the tables retrieved from the data source.
DataRelationCollection
-contains relationships and the links between tables in a data set.
ExtendedProperties
– contains additional information, like the SQL statement for retrieving data, time of retrieval, etc.
DataTable
-consists of the DataRow and DataColumn objects. The DataTable objects are case-sensitive.
DataRelation
-It is used to relate two DataTable objects to each other through the DataColumn objects.
DataRowCollection
-contains all the rows in a DataTable.
DataView
-It represents a fixed customized view of a DataTable for sorting, filtering, searching, editing and navigation.
PrimaryKey
-It represents the column that uniquely identifies a row in a DataTable.
DataRow
-It represents a row in the DataTable. The DataRow object and its properties and methods are used to retrieve, evaluate, insert, delete, and update values in the DataTable.
DataColumnCollection
-represents all the columns in a DataTable.
DataColumn
-consists of the number of columns that comprise a DataTable.
Connecting to Database:
The .Net Framework provides two types of Connection classes
- SqlConnection – designed for connecting to Microsoft SQL Server.
- OleDbConnection – designed for connecting to a wide range of databases, like Microsoft Access and Oracle.
If you have any comments or suggestions about on Introduction to Database Access in VB.Net, please feel free to contact our webpage.
Other Articles Readers might read:
- How to Connect Visual Basic.Net to MS Access Database
- How to Load Data From MySQL Database to Table Element Using Java
- How to Used a Module in AutoSuggest and AutoAppend in VB.Net and MySQL Database | https://itsourcecode.com/blogs/introduction-to-database-access-in-vb-net/ | CC-MAIN-2019-39 | refinedweb | 586 | 58.58 |
In this post I want to tell you a little bit about slicing in Python. Slicing is a powerful tool, but it's also quite easy to make mistakes with if you're not careful.
So, what exactly is slicing? Slicing is the process of creating a new sequence from some portion of an existing sequence. It's actually quite an intuitive concept, with very clear parallels to something like cutting a cake in order to get a slice of the whole.
We can perform slicing on any sequence type in Python. This includes string, lists, tuples, byte objects and byte arrays.
Because slicing relies on the position of items in a sequence, it cannot be used on things like sets, which do not preserve order. More importantly, they aren't indexed by consecutive non-negative integers, which is why dictionaries also cannot be sliced, despite having a reliable ordering in modern Python.
Creating a slice
Let's define our first slice.
slice_instance = slice(0, 2)
While
slice may look like a function here, it's actually a class. We therefore just bound
slice_instance to some
slice object.
We can see this if we print the type of
slice_instance:
print(type(slice_instance)) # <class 'slice'>
So far so good. So what are those numbers we passed into slice when we created this slice object?
If we take a look at the documentation for the slice class, we see that slice has three parameters:
slice(start, stop[, step])
If you're not familiar with the notation in the documentation for parameters, items inside the square brackets are optional.
Great, so we passed in arguments for the
start and
stop parameters. We'll come back to step in a little while. These
start and
stop values represent indexes in some as yet unspecified sequence.
So how do we use this slice object? Well, we need some sequence to try it out on.
Let's go with a simple list to start:
x = [1, 2, 3, 4, 5]
We can get a slice of a sequence using subscript syntax:
x_slice = x[slice_instance] print(x_slice) # [1, 2]
Since our
slice_instance goes from index 0 to index 2, we got that part of the
x list only.
There are a couple things to note here:
x_sliceis of type list.
- The item at index 2 of
xwasn't included in
x_slice.
This leads us to our first warning regarding slices: the index we provide for the stop parameter is not inclusive.
Slicing other sequence types
Slicing other sequence types uses exactly the same syntax.
We can define a slice object and then use it for any sequence type like so:
s = slice(1, 4) t = (1, 2, 3, 4, 5) # tuple l = [1, 2, 3, 4, 5] # list c = "12345" # string print(t[s]) # (2, 3, 4) print(l[s]) # [2, 3, 4] print(c[s]) # 234
What you might have noticed from the example above is that slicing a sequence gives us a sequence of the same type back.
Remember that strings are just sequences of characters, and are therefore perfect candidates for slicing!
Defining a slice object inline
Instead of going through this process of defining a slice object, binding it to a variable, and then providing that variable name as part of the subscript syntax, we can do the following:
t = (1, 2, 3, 4, 5) print(t[slice(1, 4)]) # (2, 3, 4)
However, there is a faster way still, which we're going to cover next.
A faster way
Python has an alternative syntax for defining a slice directly in the square brackets we use as part of the subscript syntax.
Let's define the same slice object as we used above, but using the new syntax:
t = (1, 2, 3, 4, 5) print(t[1:4]) # (2, 3, 4)
As you can probably tell, the first number is our starting index, then we provide a colon to separate our values, and the second value is the stop index. Just like before, this stop index is not inclusive.
This new syntax functions the same way for all sequence types.
Leaving some values empty
What might surprise you is that each of the following is valid syntax:
print(t[:4]) print(t[1:]) print(t[:])
So, what exactly do each of these mean?
When we miss off the starting index, this means "start from the beginning of the sequence".
When we miss off the stopping index, this means "stop at the end of the sequence".
In the latter case, the final element is included in the new slice.
Putting these together, we can guess what the final example means: "give me the whole sequence". When you miss off both starting and ending indices, you get everything back.
Using step values
Right at the start of this post I mentioned that we can also provide an optional step value when creating a slice object. This allows us to skip over values by providing a step greater than
1.
For example:
t = (1, 2, 3, 4, 5) print(t[1:4:2]) # (2, 4)
We go from the item at index
1, and then go straight to the item at index
3.
Negative step values
Step values don't need to be positive, and this is actually a really useful property. When a step value is negative, we start at the starting index as usual, but then move along the sequence in reverse.
For example, we might want to start at index
4, stop at index
2, and move in steps of
-1.
t = (1, 2, 3, 4, 5) print(t[4:2:-1] # (5, 4)
Notice that the results came back in the reverse order to the original tuple. This is because the values at the end of the tuple were encountered first, and we kept stepping towards the start of the tuple.
Using extended slicing, we can still grab a whole list using the following syntax:
[::]. It looks a little arcane, but it just means start at the beginning of the sequence, stop at the end, and use the default step value:
1.
In combination with a negative step values. we can use syntax like this to check if a sequence is a palindrome, for example:
def palindrome_check(word): if word == word[::-1]: # check against full sequence in reverse order return True return False print(palindrome_check("kayak")) # True print(palindrome_check("lemon")) # False
A warning about negative step values
One thing about slices is that it's very easy to end up with an empty slice, particularly when negative values come into play.
For example, we might try to use a negative step with one of our older slices:
t = (1, 2, 3, 4, 5) print(t[1:4:-1]) # () <- Empty tuple
But the example above will give us back an empty tuple. This is because it's impossible to get from index
1 to index
4 in steps of
-1. What would should have written is
t[4:1:-1], starting at a higher index than where we finish, which would print
(5, 4, 3).
Negative indices
In addition to providing a negative step value, we can also provide negative numbers for indices.
When using a negative index, we start counting backwards from the end of the sequence. In our tuple
t above, the index
-1 is the same as index
4. In other words, the last item in the tuple.
The item at index
0 in
t is also at index
-5. We can therefore write a slice like this:
t = (1, 2, 3, 4, 5) print(t[-1:-5:-1]) # (5, 4, 3, 2)
I chose this example for a particular reason, because it highlights another easy trap to fall in when working with slices. When using negative indices, the stop value is still not inclusive. In order to include the item at index
0, we would have to write:
t[-1:-6:-1]
Recap
- Slices can be used to create sequences from some portion of another sequence.
- Only sequence types can be sliced, as slicing relies on the items being indexed by non-negative indices.
- We can define a slice object creating an instance of the
sliceclass, which has three parameters: a starting index, a stopping index, and an optional step value. Remember that the item at the stopping index of a given sequence is not included in the slice.
- We can create a slice of a specific sequence by passing a slice object into a pair of square brackets directly after that sequence, e.g.
some_sequence[slice(1, 2)]. We can also use special slice syntax inside these square brackets, removing the need for use to explicitly create a slice object, e.g.
some_sequence[1:2].
- Both indices values and step values can be negative, but we have to be careful when using negative values, as it's easy to end up with a slice that contains nothing. One use case for a negative step is quickly reversing a sequence like so:
some_sequence[::-1]. | https://blog.tecladocode.com/python-slices/ | CC-MAIN-2019-26 | refinedweb | 1,505 | 67.08 |
0
class A { int num; public: A() {} A(int _num) : num(_num) {} A operator + (const A & ob) { return (num+ ob.num); } }; int main() { A ob1(1); A ob2(2); A ob3(3); A ob4=ob1+ob2+ob3; } My doubt is in ob1+ob2+ob3 . First ob1+ob2 is evaluated and a temporary object is created . The temporary is of const type . Next the operator function of the const object is created . So we have to explicitly state that the function is const otherwise it should result in compilation error right . But the above code executes without any error . Plz enlighten me | https://www.daniweb.com/programming/software-development/threads/287667/operator-overloading | CC-MAIN-2016-50 | refinedweb | 101 | 68.67 |
, 07.10.11 21:24, Eric W. Biederman (ebiederm@xmission.com) wrote:
>
> L
> initial pid namespace? I expect what you are really after is something
> else entirely, and you are asking the wrong question.
Well, all other virtualization solutions are easily detectable via CPUID
leaf 0x1, bit 31, and via DMI and some other ways. However, for Linux
containers there is no nice way to detect them.
VMs are pretty good at providing a comprehensive emulation of real
machines, and distributions running in them usually do not need
information whether they are running in a VM or not. This is very
different though for containers:.
Of course, in 10 years or so containers might be much more complete then
they are right now, and virtualize all subsystems I listed above and
maybe a ton more, but that's 10y for now, and for now to make things
work as cleanly as possible it would be immensly helpful if containers
could be detectable in a nice way.
Of course, in many case there are nicer ways to shortcut the init jobs
on a container. For example, instead of bypassing root fsck in a
container it makes a lot more sense to simply say: bypass root fsck if
the root fs is already writable. And there's more like that. But at the
end of the day you always want to be able to bind certain things to the
fact that you are running in a container, if you want things to "just
work". And I believe that must be the goal.
I am pretty sure that having a way to detect execution in a container is
a minimum requirement to get general purpose distribution makers to
officially support and care for execution in container environments. As
you are a container guy I am sure that would be very much in your
interest.
And note that I am only interested in detecting CLONE_NEWPID, not the
other namespaces. CLONE_NEWPID is the core namespace technology that
turns a container into a container, so that's all that's needed.
And yes, CLONE_NEWPID can be useful for other purposes then just
containers as well. However, that doesn't really matter for my usecase
as mentioned above: becuase if you run an init system in CLONE_NEWPID
namespace, then that's what I call a container, and the init system
should have all rights to detect that.
The root PID namespace is different from all other namespaces btw,
already in the fact that the the kernel threads are part of it, but not
the other namespaces.
Finally, note that it prevously has been very easy to detect execution
in a container, simple by checking the "ns" cgroup hierarchy. (i.e. look
whether the path in /proc/self/cgroup for "ns" wasn't "/" and you knew
you were in a container). systemd made use of that and since very early
on we supported container boots. The removal of "ns" broke systemd in
that regard. Now, I don't want "ns" back, and I am not going to make the
big hubbub out of the fact that you guys broke userspace that way. But
what I do like to see made available again is a sane way to detect
execution in a container environment, i.e. a way for a process to detect
whether it is running in the root CLONE_NEWPID namespace.
Thanks,
Lennart
--
Lennart Poettering - Red Hat, Inc.
Linux is a registered trademark of Linus Torvalds | http://lwn.net/Articles/462725/ | CC-MAIN-2013-20 | refinedweb | 578 | 68.81 |
17 February 2011 09:28 [Source: ICIS news]
SINGAPORE (ICIS)--Borouge’s polyethylene (PE) plant in Ruwais, ?xml:namespace>
“Production at the PE facility is very unstable, so the company has little export availability for February and March,” a source said.
The source did not disclose the reasons behind the production problem. Company officials were not available for comment.
Supply of high-end grades such as PE pipe has tightened in the Middle East and
Borouge doubled its production of PE to 1.2m tonnes/year in October 2010.
The company's new 800,000 tonne/year polypropylene (PP) plant at Ruwais is running normally, the source added. | http://www.icis.com/Articles/2011/02/17/9436140/middle-east-asia-pe-supply-tightens-on-problem-at-borouge-plant.html | CC-MAIN-2013-48 | refinedweb | 108 | 57.27 |
Randomness¶
Prerequisites
Outcomes
Recall basic probability
Draw random numbers from numpy
Understand why simulation is useful
Understand the basics of Markov chains and using the
quanteconlibrary to study them
Simulate discrete and continuous random variables and processes
# Uncomment following line to install on colab #! pip install
Randomness¶
We will use the
numpy.random package to simulate randomness in Python.
This lecture will present various probability distributions and then use numpy.random to numerically verify some of the facts associated with them.
We import
numpy as usual
import numpy as np import matplotlib.pyplot as plt %matplotlib inline
Probability¶
Before we learn how to use Python to generate randomness, we should make sure that we all agree on some basic concepts of probability.
To think about the probability of some event occurring, we must understand what possible events could occur – mathematicians refer to this as the event space.
Some examples are
For a coin flip, the coin could either come up heads, tails, or land on its side.
The inches of rain falling in a certain location on a given day could be any real number between 0 and \(\infty\).
The change in an S&P500 stock price could be any real number between \(-\) opening price and \(\infty\).
An individual’s employment status tomorrow could either be employed or unemployed.
And the list goes on…
Notice that in some of these cases, the event space can be counted (coin flip and employment status) while in others, the event space cannot be counted (rain and stock prices).
We refer to random variables with countable event spaces as discrete random variables and random variables with uncountable event spaces as continuous random variables.
We then call certain numbers ‘probabilities’ and associate them with events from the event space.
The following is true about probabilities.
The probability of any event must be greater than or equal to 0.
The probability of all events from the event space must sum (or integrate) to 1.
If two events cannot occur at same time, then the probability that at least one of them occurs is the sum of the probabilities that each event occurs (known as independence).
We won’t rely on these for much of what we learn in this class, but occasionally, these facts will help us reason through what is happening.
Simulating Randomness in Python¶
One of the most basic random numbers is a variable that has equal probability of being any value between 0 and 1.
You may have previously learned about this probability distribution as the Uniform(0, 1).
Let’s dive into generating some random numbers.
Run the code below multiple times and see what numbers you get.
np.random.rand()
0.6809164549702249
We can also generate arrays of random numbers.
np.random.rand(25)
array([0.56809309, 0.95739 , 0.38522504, 0.96400724, 0.76746327, 0.25753374, 0.54159254, 0.74269935, 0.12833218, 0.57001677, 0.43338998, 0.9242875 , 0.59654011, 0.71941341, 0.2239652 , 0.11091815, 0.41818928, 0.61051308, 0.36939679, 0.02993523, 0.13763884, 0.72691149, 0.53215505, 0.53546629, 0.78262982])
np.random.rand(5, 5)
array([[0.81877101, 0.59696775, 0.78551529, 0.42634593, 0.58595086], [0.05241018, 0.73925291, 0.22210444, 0.66055498, 0.94085804], [0.11634698, 0.22433645, 0.56532265, 0.03579394, 0.90916698], [0.5987494 , 0.2414621 , 0.78210652, 0.28553926, 0.60475478], [0.96491595, 0.4010047 , 0.88325809, 0.92191154, 0.16468268]])
np.random.rand(2, 3, 4)
array([[[0.38822234, 0.47256517, 0.20660397, 0.62313552], [0.49285325, 0.85010693, 0.85755273, 0.54802445], [0.61191737, 0.58327951, 0.91683166, 0.75937925]], [[0.59899151, 0.79080103, 0.80589416, 0.77592496], [0.4603769 , 0.51089222, 0.66616417, 0.78195522], [0.49185075, 0.44906991, 0.15041834, 0.50654612]]])
Why Do We Need Randomness?¶
As economists and data scientists, we study complex systems.
These systems have inherent randomness, but they do not readily reveal their underlying distribution to us.
In cases where we face this difficulty, we turn to a set of tools known as Monte Carlo methods.
These methods effectively boil down to repeatedly simulating some event (or events) and looking at the outcome distribution.
This tool is used to inform decisions in search and rescue missions, election predictions, sports, and even by the Federal Reserve.
The reasons that Monte Carlo methods work is a mathematical theorem known as the Law of Large Numbers.
The Law of Large Numbers basically says that under relatively general conditions, the distribution of simulated outcomes will mimic the true distribution as the number of simulated events goes to infinity.
We already know how the uniform distribution looks, so let’s demonstrate the Law of Large Numbers by approximating the uniform distribution.
# Draw various numbers of uniform[0, 1] random variables draws_10 = np.random.rand(10) draws_200 = np.random.rand(200) draws_10000 = np.random.rand(10_000) # Plot their histograms fig, ax = plt.subplots(3) ax[0].set_title("Histogram with 10 draws") ax[0].hist(draws_10) ax[1].set_title("Histogram with 200 draws") ax[1].hist(draws_200) ax[2].set_title("Histogram with 10,000 draws") ax[2].hist(draws_10000) fig.tight_layout()
Exercise
See exercise 1 in the exercise list.
Discrete Distributions¶
Sometimes we will encounter variables that can only take one of a few possible values.
We refer to this type of random variable as a discrete distribution.
For example, consider a small business loan company.
Imagine that the company’s loan requires a repayment of \(\$25,000\) and must be repaid 1 year after the loan was made.
The company discounts the future at 5%.
Additionally, the loans made are repaid in full with 75% probability, while \(\$12,500\) of loans is repaid with probability 20%, and no repayment with 5% probability.
How much would the small business loan company be willing to loan if they’d like to – on average – break even?
In this case, we can compute this by hand:
The amount repaid, on average, is: \(0.75(25,000) + 0.2(12,500) + 0.05(0) = 21,250\).
Since we’ll receive that amount in one year, we have to discount it: \(\frac{1}{1+0.05} 21,250 \approx 20238\).
We can now verify by simulating the outcomes of many loans.
# You'll see why we call it `_slow` soon :) def simulate_loan_repayments_slow(N, r=0.05, repayment_full=25_000.0, repayment_part=12_500.0): repayment_sims = np.zeros(N) for i in range(N): x = np.random.rand() # Draw a random number # Full repayment 75% of time if x < 0.75: repaid = repayment_full elif x < 0.95: repaid = repayment_part else: repaid = 0.0 repayment_sims[i] = (1 / (1 + r)) * repaid return repayment_sims print(np.mean(simulate_loan_repayments_slow(25_000)))
20198.571428571428
Aside: Vectorized Computations¶
The code above illustrates the concepts we were discussing but is much slower than necessary.
Below is a version of our function that uses numpy arrays to perform computations instead of only storing the values.
def simulate_loan_repayments(N, r=0.05, repayment_full=25_000.0, repayment_part=12_500.0): """ Simulate present value of N loans given values for discount rate and repayment values """ random_numbers = np.random.rand(N) # start as 0 -- no repayment repayment_sims = np.zeros(N) # adjust for full and partial repayment partial = random_numbers <= 0.20 repayment_sims[partial] = repayment_part full = ~partial & (random_numbers <= 0.95) repayment_sims[full] = repayment_full repayment_sims = (1 / (1 + r)) * repayment_sims return repayment_sims np.mean(simulate_loan_repayments(25_000))
20250.0
We’ll quickly demonstrate the time difference in running both function versions.
%timeit simulate_loan_repayments_slow(250_000)
153 ms ± 857 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
%timeit simulate_loan_repayments(250_000)
6.94 ms ± 29.5 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
The timings for my computer were 167 ms for
simulate_loan_repayments_slow and 5.05 ms for
simulate_loan_repayments.
This function is simple enough that both times are acceptable, but the 33x time difference could matter in a more complicated operation.
This illustrates a concept called vectorization, which is when computations operate on an entire array at a time.
In general, numpy code that is vectorized will perform better than numpy code that operates on one element at a time.
For more information see the QuantEcon lecture on performance Python code.
Profitability Threshold¶
Rather than looking for the break even point, we might be interested in the largest loan size that ensures we still have a 95% probability of profitability in a year we make 250 loans.
This is something that could be computed by hand, but it is much easier to answer through simulation!
If we simulate 250 loans many times and keep track of what the outcomes look like, then we can look at the the 5th percentile of total repayment to find the loan size needed for 95% probability of being profitable.
def simulate_year_of_loans(N=250, K=1000): # Create array where we store the values avg_repayments = np.zeros(K) for year in range(K): repaid_year = 0.0 n_loans = simulate_loan_repayments(N) avg_repayments[year] = n_loans.mean() return avg_repayments loan_repayment_outcomes = simulate_year_of_loans(N=250) # Think about why we use the 5th percentile of outcomes to # compute when we are profitable 95% of time lro_5 = np.percentile(loan_repayment_outcomes, 5) print("The largest loan size such that we were profitable 95% of time is") print(lro_5)
The largest loan size such that we were profitable 95% of time is 19523.809523809523
Now let’s consider what we could learn if our loan company had even more detailed information about how the life of their loans progressed.
Loan States¶
Loans can have 3 potential statuses (or states):
Repaying: Payments are being made on loan.
Delinquency: No payments are currently being made, but they might be made in the future.
Default: No payments are currently being made and no more payments will be made in future.
The small business loans company knows the following:
If a loan is currently in repayment, then it has an 85% probability of continuing being repaid, a 10% probability of going into delinquency, and a 5% probability of going into default.
If a loan is currently in delinquency, then it has a 25% probability of returning to repayment, a 60% probability of staying delinquent, and a 15% probability of going into default.
If a loan is currently in default, then it remains in default with 100% probability.
For simplicity, let’s imagine that 12 payments are made during the life of a loan, even though this means people who experience delinquency won’t be required to repay their remaining balance.
Let’s write the code required to perform this dynamic simulation.
def simulate_loan_lifetime(monthly_payment): # Create arrays to store outputs payments = np.zeros(12) # Note: dtype 'U12' means a string with no more than 12 characters statuses = np.array(4*["repaying", "delinquency", "default"], dtype="U12") # Everyone is repaying during their first month payments[0] = monthly_payment statuses[0] = "repaying" for month in range(1, 12): rn = np.random.rand() if (statuses[month-1] == "repaying"): if rn < 0.85: payments[month] = monthly_payment statuses[month] = "repaying" elif rn < 0.95: payments[month] = 0.0 statuses[month] = "delinquency" else: payments[month] = 0.0 statuses[month] = "default" elif (statuses[month-1] == "delinquency"): if rn < 0.25: payments[month] = monthly_payment statuses[month] = "repaying" elif rn < 0.85: payments[month] = 0.0 statuses[month] = "delinquency" else: payments[month] = 0.0 statuses[month] = "default" else: # Default -- Stays in default after it gets there payments[month] = 0.0 statuses[month] = "default" return payments, statuses
We can use this model of the world to answer even more questions than the last model!
For example, we can think about things like
For the defaulted loans, how many payments did they make before going into default?
For those who partially repaid, how much was repaid before the 12 months was over?
Unbeknownst to you, we have just introduced a well-known mathematical concept known as a Markov chain.
A Markov chain is a random process (Note: Random process is a sequence of random variables observed over time) where the probability of something happening tomorrow only depends on what we can observe today.
In our small business loan example, this just means that the small business loan’s repayment status tomorrow only depended on what its repayment status was today.
Markov chains often show up in economics and statistics, so we decided a simple introduction would be helpful, but we leave out many details for the interested reader to find.
A Markov chain is defined by three objects:
A description of the possible states and their associated value.
A complete description of the probability of moving from one state to all other states.
An initial distribution over the states (often a vector of all zeros except for a single 1 for some particular state).
For the example above, we’ll define each of these three things in the Python code below.
# 1. State description state_values = ["repaying", "delinquency", "default"] # 2. Transition probabilities: encoded in a matrix (2d-array) where element [i, j] # is the probability of moving from state i to state j P = np.array([[0.85, 0.1, 0.05], [0.25, 0.6, 0.15], [0, 0, 1]]) # 3. Initial distribution: assume loans start in repayment x0 = np.array([1, 0, 0])
Now that we have these objects defined, we can use the a
MarkovChain class from the
quantecon python library to analyze this model.
import quantecon as qe mc = qe.markov.MarkovChain(P, state_values)
We can use the
mc object to do common Markov chain operations.
The
simulate method will simulate the Markov chain for a specified number of steps:
mc.simulate(12, init="repaying")
array(['repaying', 'repaying', 'repaying', 'delinquency', 'default', 'default', 'default', 'default', 'default', 'default', 'default', 'default'], dtype='<U11')
Suppose we were to simulate the Markov chain for an infinite number of steps.
Given the random nature of transitions, we might end up taking different paths at any given moment.
We can summarize all possible paths over time by keeping track of a distribution.
Below, we will print out the distribution for the first 10 time steps, starting from a distribution where the debtor is repaying in the first step.
x = x0 for t in range(10): print(f"At time {t} the distribution is {x}") x = mc.P.T @ x
At time 0 the distribution is [1 0 0] At time 1 the distribution is [0.85 0.1 0.05] At time 2 the distribution is [0.7475 0.145 0.1075] At time 3 the distribution is [0.671625 0.16175 0.166625] At time 4 the distribution is [0.61131875 0.1642125 0.22446875] At time 5 the distribution is [0.56067406 0.15965937 0.27966656] At time 6 the distribution is [0.5164878 0.15186303 0.33164917] At time 7 the distribution is [0.47698039 0.1427666 0.38025302] At time 8 the distribution is [0.44112498 0.133358 0.42551703] At time 9 the distribution is [0.40829573 0.1241273 0.46757697]
Exercise
See exercise 2 in the exercise list.
Exercise
See exercise 3 in the exercise list.
Continuous Distributions¶
Recall that a continuous distribution is one where the value can take on an uncountable number of values.
It differs from a discrete distribution in that the events are not countable.
We can use simulation to learn things about continuous distributions as we did with discrete distributions.
Let’s use simulation to study what is arguably the most commonly encountered distributions – the normal distribution.
The Normal (sometimes referred to as the Gaussian distribution) is bell-shaped and completely described by the mean and variance of that distribution.
The mean is often referred to as \(\mu\) and the variance as \(\sigma^2\).
Let’s take a look at the normal distribution.
# scipy is an extension of numpy, and the stats # subpackage has tools for working with various probability distributions import scipy.stats as st x = np.linspace(-5, 5, 100) # NOTE: first argument to st.norm is mean, second is standard deviation sigma (not sigma^2) pdf_x = st.norm(0.0, 1.0).pdf(x) fig, ax = plt.subplots() ax.set_title(r"Normal Distribution ($\mu = 0, \sigma = 1$)") ax.plot(x, pdf_x)
[<matplotlib.lines.Line2D at 0x7f218f86aa60>]
Another common continuous distribution used in economics is the gamma distribution.
A gamma distribution is defined for all positive numbers and described by both a shape parameter \(k\) and a scale parameter \(\theta\).
Let’s see what the distribution looks like for various choices of \(k\) and \(\theta\).
def plot_gamma(k, theta, x, ax=None): if ax is None: _, ax = plt.subplots() # scipy refers to the rate parameter beta as a scale parameter pdf_x = st.gamma(k, scale=theta).pdf(x) ax.plot(x, pdf_x, label=f"k = {k} theta = {theta}") return ax fig, ax = plt.subplots(figsize=(10, 6)) x = np.linspace(0.1, 20, 130) plot_gamma(2.0, 1.0, x, ax) plot_gamma(3.0, 1.0, x, ax) plot_gamma(3.0, 2.0, x, ax) plot_gamma(3.0, 0.5, x, ax) ax.set_ylim((0, 0.6)) ax.set_xlim((0, 20)) ax.legend();
Exercise
See exercise 4 in the exercise list.
Exercises¶
Exercise 1¶
Wikipedia and other credible statistics sources tell us that the mean and variance of the Uniform(0, 1) distribution are (1/2, 1/12) respectively.
How could we check whether the numpy random numbers approximate these values?
Exercise 2¶
In this exercise, we explore the long-run, or stationary, distribution of the Markov chain.
The stationary distribution of a Markov chain is the probability distribution that would result after an infinite number of steps for any initial distribution.
Mathematically, a stationary distribution \(x\) is a distribution where \(x = P'x\).
In the code cell below, use the
stationary_distributions property of
mc to
determine the stationary distribution of our Markov chain.
After doing your computation, think about the answer… think about why our transition probabilities must lead to this outcome.
# your code here
Exercise 3¶
Let’s revisit the unemployment example from the linear algebra lecture.
We’ll repeat necessary details here.
Consider an economy where in any given year, \(\alpha = 5\%\) of workers lose their jobs, and \(\phi = 10\%\) of unemployed workers find jobs.
Initially, 90% of the 1,000,000 workers are employed.
Also suppose that the average employed worker earns 10 dollars, while an unemployed worker earns 1 dollar per period.
You now have four tasks:
Represent this problem as a Markov chain by defining the three components defined above.
Construct an instance of the quantecon MarkovChain by using the objects defined in part 1.
Simulate the Markov chain 30 times for 50 time periods, and plot each chain over time (see helper code below).
Determine the average long run payment for a worker in this setting
Hint
Think about the stationary distribution.
# define components here # construct Markov chain # simulate (see docstring for how to do many repetitions of # the simulation in one function call) # uncomment the lines below and fill in the blanks # sim = XXXXX.simulate(XXXX) # fig, ax = plt.subplots(figsize=(10, 8)) # ax.plot(range(50), sim.T, alpha=0.4) # Long-run average payment
Exercise 4¶
Assume you have been given the opportunity to choose between one of three financial assets:
You will be given the asset for free, allowed to hold it indefinitely, and keeping all payoffs.
Also assume the assets’ payoffs are distributed as follows:
Normal with \(\mu = 10, \sigma = 5\)
Gamma with \(k = 5.3, \theta = 2\)
Gamma with \(k = 5, \theta = 2\)
Use
scipy.stats to answer the following questions:
Which asset has the highest average returns?
Which asset has the highest median returns?
Which asset has the lowest coefficient of variation (standard deviation divided by mean)?
Which asset would you choose? Why?
Hint
There is not a single right answer here. Be creative and express your preferences.
# your code here | https://datascience.quantecon.org/scientific/randomness.html | CC-MAIN-2022-40 | refinedweb | 3,291 | 56.96 |
I'm -1 on that, for three reasons.
1. I have a number of packages where the PyPI name is not the name of the toplevel package where the two names aren't the same on purpose. An example of this is "pyobjc-framework-WebKit", containing the python package "WebKit". The two don't have the same name because "import WebKit" is more natural during imports, while "pyobjc-framework-WebKit" is clearer in the PyPI listing (you don't have to wonder if this is some cross-platform web toolkit, it's obviously related to PyObjC).
2. For basicly the same reason a number of my PyPI packages have a number of toplevel Python packages. That's again because that makes sense for these packages, and it's furthermore needed for backward compatibility.
3. There actually a good reason for using "pysomelib" instead of "somelib" as the PyPI name for the python bindings for the C library "somelib". Naming the python bindings the same as the base project is confusion, while at the same time "import pysomelib" looks lame in Python code.
That said, I agree that there should be a good reason for not using the python package/module name as the PyPI name, and I'm +1 on adding advice to the distutils documentation to keep the two the same.
It's also not clear to me what your proposal would mean for namespace packages. Would packages like "zope.interface" be allowed with your proposal?
Ronald
On Friday, May 01, 2009, at 04:20PM, "Brandon Craig Rhodes" brandon@rhodesmill.org wrote:
I think that, going forward, Python packaging tools (not installation tools; they should remain as they are, for backwards compatibility) should move to supporting only One Package Per Project. And, each project should have the same name as the package inside. In the future, people should have to download an old copy of distutils deliberately if they want to build projects with several packages inside; we should stop releasing tools that support or encourage it.
-
It is easier on developers who want to "import escher" to know that they can simply list "escher" as a dependency instead of having to guess whether it's "Escher" or "EscherProject" or whether it's part of a larger "lithographers" project or whether, heaven forbid, the author decided to redundantly call the project "pyescher".
-
This practice would make PyPI's name make actual sense. It actually claims to be (you can check the site!) the "Python *Package* Index" whereas in fact it's currently nothing of the sort! It's really an index of "projects" that might have zero, one, or several packages inside of them. We should move all projects towards the good behavior of the ones that already name themselves after the single package that they contain.
-
I think the whole idea of putting several packages in a project was useful back when dependencies didn't exist. It made sense, in ancient days, for "ZODB" to include "transaction" because there was no other way to make sure they got installed together. But now that dependencies are possible, there is no longer a need for multiple- package project that outweights the costs involved.
-
The current scheme makes it impossible to choose a "safe" package name when creating and registering a new package. Just because there's no "escher" *project* when you look at PyPI doesn't mean that some project doesn't have an "escher" package hidden inside. You could choose a package name, distribute your product, and only find out later that your users cannot install both your product and another product simultaneously because the other product was, in fact, already using that package name but without your knowing it.
-- Brandon Craig Rhodes brandon@rhodesmill.org _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org | https://mail.python.org/archives/list/distutils-sig@python.org/thread/73VFF753LH64UCOR4FPJDQEZD6YJGJOR/ | CC-MAIN-2022-40 | refinedweb | 635 | 59.64 |
I suspected that it could have been just that. I removed the entry
"ws-security.sts.client" with all its configuration as a start from my
jaxws:client-configuration and now the client really tries to create a
requestsecuritytoken-request. The problem now is the soap-version. My wsdl
uses soap 1.2.
On both the client and the server I added the following configuration:
<jaxws:binding>
<soap:soapBinding
</jaxws:binding>
Still in the logs I can see the following:
<soap:Envelope xmlns:
What's missing? Why does cxf insist of using an old namespace for soap?
--
View this message in context:
Sent from the cxf-user mailing list archive at Nabble.com. | http://mail-archives.apache.org/mod_mbox/cxf-users/201406.mbox/%3C1402904504214-5745190.post@n5.nabble.com%3E | CC-MAIN-2017-51 | refinedweb | 113 | 58.99 |
See retrofit.dart
Add this to your package's pubspec.yaml file:
dependencies: retrofit_generator: ^0.0.1
You can install packages from the command line:
with pub:
$ pub get
Alternatively, your editor might support
pub get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:retrofit_generator/builder.dart';
We analyzed this package on May 8, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: other
Platform components identified in package:
build,
io,
mirrors.
Document public APIs. (-1 points)
2 out of 2
retrofit. | https://pub.dev/packages/retrofit_generator/versions/0.0.1 | CC-MAIN-2019-22 | refinedweb | 102 | 52.46 |
Before reading the FAQ, please make sure that you’re familar with The Rules.
Can I use Mad Level Manager with Unity Personal/Pro?
Yes, you can! Mad Level Manager works fine with all Unity versions. The only limitation is that you cannot use asynchronous level loading on Unity versions prior to 5.
Can I use Mad Level Manager to create a paid game/presentation/etc. ?
You can use Mad Level Manager with any type of project. It can be free, it can be paid, it doesn’t matter. You’re only restricted not to distribute Mad Level Manager sources and other files in the form that can be reused.
I am not a programmer. Can I still use Mad Level Manager?
Yes! Mad Level Manager is a great tool to create level select screens without programming abilities. If you’re the only person in your team, then you should look at PlayMaker integration package, which allows to use Mad Level Manager API in PlayMaker.
Are updates free?
Yes, they are! All updates are available through Unity Asset Store.
How to add a custom GUI to level select screen?
It’s really simple! All you need to to is to create a new GUI over Mad Level Manager’s level select screen just like you would for any other scene. Just initialize your scene with the new Unity UI.
If you want to display a pop-up window when the icon is pressed, you have to switch your layout Load Level setting to Send Message.
I am seeing "This was the first scene opened. I assume that this was the ‘Level Choose’ level.
Don’t worry about it! It basically means that Mad Level Manager is looking around and trying to find where it is currently. It will bind your scene to the first level with that scene name found in the configuration to ensure its proper functionality.
When I’m pressing the level icon nothing happens or target level is loading with a large delay.
There may be two reasons for that:
1. You have 2-step activation enabled
2-step activation is a feature that allows you to customize how the level icon should behave when pressed the first time, and that it should be loaded when pressed second time. In some Mad Level Manager versions this feature was enabled by default. Now it’s disabled to avoid confusion but the previous settings may persist for already existing scenes.
Please look at your layout inspector to tell if Two Step Activation is enabled. If you don’t want to use it, just set it to Disabled.
2. You’re loading a level that needs time to be loaded
If you’re loading a level that contains a lot of resources (or the big ones), it’s clear that it needs time to be loaded. It’s especially visible on mobile devices, on which speed of data transfer is mostly a lot slower than on PC or Mac.
MadLevel API supports asynchronous level loading (Unity Pro feature only). What you can do is to change your level configuration in that way:
- All levels should point to the level loading screen
- For each level set the target level name as argument
- Put actual levels in a group that won’t be displayed on your current level select screen
- When loading screen is up and running do something like this:
var levelName = MadLevel.arguments; var asyncOperation = MadLevel.LoadLevelByNameAsync(levelName);
This will return object of type AsyncOperation and you can update your progress bar or anything while the scene is loading.
I am experiencing a warning message “This layout was prepared for different level configuration than the active one.”
This means that you’re playing the scene that was prepared for different configuration than the currently active one. To test this layout you may:
- Accept to activate/synchronize your build configuration automatically when entering the Play Mode.
- Need to activate proper configuration
- Change configuration for this layout
You can take advantage of the last two options by checking out the configuration setting in layout object inspector:
- Find object with Layout in its name under Mad Level Root/Camera 2D/Panel in Hierarchy.
- Select it and look at its Inspector view. You should look for the field called Configuration Used.
What does “No active level configuration found. I will activate this one.” means?
It means that at the current time there was no activated configuration. Mad Level Manager requires exactly one level configuration to be activated for the whole time. It will choose one randomly if necessary. Don’t worry. Build configuration won’t be synchronized automatically.
After hitting the Play button icon levels are changing (levels are unlocked, starts are gained)
That’s because Mad Level Manager saves automatically the game state even in the Unity editor. If you want to reset this state, you have to use the Reset button in the Profile Tool.
I cannot find icon objects in hierarchy. I see only empty “Page” objects.
That’s because Mad Level Manager is hiding managed objects from you by default, to prevent a situation in which you change the object that will be regenerated anyway.
Managed objects are the objects that shouldn’t be modified by a user. You can toggle the visibility of a managed object by disabling Hide Managed option in Grid Layout inspector.
You can also change your icons setup method from Generate to Manual. Manual allows you to manually change all the icon instances without a risk that they will be modified.
I am receiving compilation error like “error CS0246: The type or namespace name `TypeName’ could not be found. Are you missing a using directive or an assembly reference?”
Please make sure that you’ve typed TypeName correctly. If it is the type from Mad Level Manager, then in most cases you have to add
using MadLevelManager;
At the top of your C# script. If you’re using JavaScript, please reference all the types using MadLevelManager namespace as prefix:
MadLevelManager.MadLevel.LoadLevelByName("My First Level");
I am clicking on a level icon, but the level next to it is loaded instead.
That’s because you haven’t set the border for your icon sprites and its nested sprites. If sprite borders are too big (by default it is the texture size) then it can catch clicks that visually happened on the invisible part of a texture.
For each sprite for your template/prefab (icon, sprite properties, and regular sprites) you should find Sprite Border section in the inspector, and set the borders manually, or click on the Compute button to make Mad Level Manager to set your sprite border automatically.
You can read more about this issue here.
My icons are displaying at a very low resolution.
This is often caused by Quality Settings. Please review it and try to select the best quality available (by default it’s Fantastic).
Sprites on my icons are appearing and disappearing randomly.
Most probably your sprite GUI depth settings need to be changed. If your sprite has the same GUI depth as any other texture on your scene, it can appear above and beneath it randomly. It’s often mistaken with disappearing.
Can I customize my level icons individually?
Yes, you can! If you’re using the Free Layout then you’re free to change your icon instances. For Grid Layout you will have to switch to Manual Mode.
I am using Unity 5 and there are missing sprites on my level select screen.
You should switch to atlases. Please read the Unity 5 compatibility aricle.
Will the X feature be available?
Sometimes I will publish on a forum, Facebook, blog or Twitter what are the plans for the next release, but I don’t have any official list. Why not? Because I want you to write to me and ask about this feature! This is the only way for me to know that you are waiting for it! More people will write to me with a feature request, then there’s a bigger chance to this feature to be available soon! Please write to support@madpixelmachine.com!
I have a problem/suggestion/something to tell.
You’re welcome! Please write on the forums or you can contact us directly by writing to support@madpixelmachine.com.
I want to be notified about updates.
There are many ways to do that. When new version of Mad Level Manager is released the information about it is published at:
Subscribe or follow any of them to be always up to date.
I have an issue that is not in the list.
Don’t worry. First make sure that your solution isn’t explained in this documentation. If not, feel free to:
- Write to support@madpixelmachine.com
- Write on our dedicated forums (account needed)
- Write on Unity3D forum thread | http://madlevelmanager.madpixelmachine.com/doc/latest/faq.html | CC-MAIN-2019-13 | refinedweb | 1,477 | 65.42 |
WebP 2 is the successor of the WebP image format, currently in development. It is not ready for general use, and the format is not finalized so changes to the library can break compatibility with images encoded with previous versions.
USE AT YOU OWN RISK!
This package contains the library that can be used in other programs to encode or decode Webp 2 images, as well as command line tools.
See for the first version of WebP.
The WebP 2 experimental codec is mostly pushing the features of WebP further in terms of compression efficiency. The new features (like 10b HDR support) are kept minimal. The axis of experimentation are:
The use cases remain mostly the same as WebP: transfer over the wire, faster web, smaller apps, better user experience...
WebP 2 is primarily tuned for the typical content available on the Web and Mobile apps: medium-range dimensions, transparency, short animations, thumbnails.
As of Nov. 2020, WebP 2 is only partially optimized and, roughly speaking 5x slower than WebP for lossy compression. It still compresses 2x faster than AVIF, but takes 3x more time to decompress. The goal is to reach decompression speed parity.
Side-by-side codec comparisons can be found at:
A compiler (e.g., gcc 6+, clang 7+ or Microsoft Visual Studio 2017+ are recommended) and CMake.
On a Debian-like system the following should install everything you need for a minimal build:
$ sudo apt-get install build-essential cmake
$ mkdir build && cd build $ cmake .. $ make -j
Configuration options:
WP2_ENABLE_SIMD: enable any SIMD optimization.
WP2_ENABLE_BITTRACE: enable tracing.
For additional options see:
$ cmake .. -LH
The latest NDK for Android can be retrieved from the Android download page.
Assuming the variable NDK_ROOT is positioned correctly to point to the NDK's directory, the Android binaries can be built with:
$ mkdir build && cd build $ cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/android.cmake \ -DWP2_ANDROID_NDK_PATH=${NDK_ROOT} $ make -j
Extra configuration option:
ANDROID_ABI: one of armeabi-v7a,armeabi-v7a with NEON,arm64-v8a,x86,x86_64... (default is arm64-v8a)
cwp2 is a tool to encode images in webp2.
Usage:
$ cwp2 in_file [options] [-o out_file]
Example for a single image:
$ cwp2 -q 70 input.png -o output.wp2
Example for an animation, with list of frames and durations in ms:
$ cwp2 -q 70 -f frame1.png 10 frame2.png 20 frame3.png 5 -o output.wp2
Important options:
* The quality factor range corresponds to:
Use
cwp2 -h to see a full list of available options.
dwp2 is a tool to decode webp2 images.
Usage:
$ dwp2 in_file [options] [-o out_file]
Use
dwp2 -h to see a full list of available options.
vwp2 is a visual inspection and debugging tool. You need OpenGL and GLUT to build it.
To open any image (jpeg, png, etc.) then compress it in WebP 2 and view the result:
$ vwp2 in_file...
vwp2 takes most of the same flags as
cwp2, e.g.
-q for quality. Encoding parameters can also be changed dynamically in the tool using key bindings.
h to a list of key bindings.
Use the top left menu or press
v and
shift+v to cycle between views.
i to show or hide info (note this hides the menu).
To view an already compressed file, use:
$ vwp2 -d path/to/image.wp2
rd_curve is a command-line tool for compressing images at multiple quality levels using different codecs (webp2, webp, jpeg, av1) to create rate-distortion curves (rd curves). An rd curve is a plot of distortion (difference between source and encoded image) vs bits per pixel, for different quality settings.
$ rd_curve [options] input_file
rd_curve takes most of the same flags as
cwp2, e.g.
-q for quality,
-effort, and so on.
By default, only the webp2 codec is used. Use
-webp,
-jpeg or
-av1 flags to add other codecs.
By default, results are printed as plain text on standard output.
With the
-html flag, rd_curve outputs an html file. It also saves compressed images (turns on the
-save option). Use the
-save_folder option to set the directory where images are saved.
$ rd_curve input.png -webp -jpeg -av1 -html -save_folder $(pwd) > myfile.html
get_disto computes the difference between two images (typically the compressed file and the original file)
$ get_disto [options] compressed_file orig_file
get_disto outputs in order:
Encoding functions are available in the header
src/wp2/encode.h.
#include "imageio/image_dec.h" #include "src/wp2/base.h" #include "src/wp2/encode.h" WP2::ArgbBuffer input_buffer; WP2Status status = WP2::ReadImage("path/to/image.png", &input_buffer); if (status != WP2_STATUS_OK) { /* handle error */ } WP2::EncoderConfig config; config.quality = 70; WP2::MemoryWriter writer; status = WP2::Encode(input_buffer, &writer, config); if (status != WP2_STATUS_OK) { /* handle error */ } // do something with writer.mem_
#include "imageio/image_dec.h" #include "src/wp2/base.h" #include "src/wp2/encode.h" WP2::ArgbBuffer frame1, frame2; WP2Status status = WP2::ReadImage("path/to/frame1.png", &frame1); if (status != WP2_STATUS_OK) { /* handle error */ } status = WP2::ReadImage("path/to/frame2.png", &frame2); if (status != WP2_STATUS_OK) { /* handle error */ } WP2::AnimationEncoder encoder; status = encoder.AddFrame(frame1, /*duration_ms=*/100); if (status != WP2_STATUS_OK) { /* handle error */ } status = encoder.AddFrame(frame2, /*duration_ms=*/50); if (status != WP2_STATUS_OK) { /* handle error */ } WP2::EncoderConfig config; config.quality = 70; WP2::MemoryWriter writer; status = encoder.Encode(&writer, config, /*loop_count=*/1); if (status != WP2_STATUS_OK) { /* handle error */ } // do something with writer.mem_
Decoding functions are available in the header
src/wp2/decode.h.
This is mainly just one function to call:
#include "src/wp2/base.h" #include "src/wp2/decode.h" const std::string data = ... WP2::ArgbBuffer output_buffer; WP2Status status = WP2::Decode(data, &output_buffer);
If the file is a WebP 2 animation,
output_buffer will contain the first frame.
Please have a look at the file
src/wp2/decode.h for further details.
To decode all the frames of an animation, the more advanced
Decoder API can be used. See tests/test_decoder_api.cc for common use cases.
WP2::ArrayDecoder decoder(data, data_size); uint32_t duration_ms; while (decoder.ReadFrame(&duration_ms)) { // A frame is ready. Use or copy its 'duration_ms' and 'decoder.GetPixels()'. } if (decoder.GetStatus() != WP2_STATUS_OK) { /* error */ }
If you want to start decoding before all the data is available, you can use the
Decoder API. Use an
WP2::ArrayDecoder if the data is stored in an array that progressively gets larger, with old bytes still available as new bytes come in. Use a
WP2::StreamDecoder if data is streamed, with old bytes no longer available as new bytes come in. You can also subclass
WP2::CustomDecoder to fit your needs. See tests/test_decoder_api.cc for common use cases.
Below is an example with
WP2::StreamDecoder.
WP2::StreamDecoder decoder; while (/*additional data is available in some 'new_data[]' buffer*/) { decoder.AppendInput(new_data, new_data_size); while (decoder.ReadFrame()) { // ReadFrame() returns true when an entire frame is available // (a still image is considered as a single-frame animation). // The canvas is stored in GetPixels() till the next call to ReadFrame(). // Use the whole GetPixels(). } if (decoder.Failed()) break; if (!decoder.GetDecodedArea().IsEmpty()) { // Use the partially GetDecodedArea() of GetPixels(). } } if (decoder.GetStatus() != WP2_STATUS_OK) { /* error */ }
Please report all bugs to the issue tracker:
See CONTRIBUTING.md for details on how to submit patches.
One of the easiest ways to contribute is to report cases with compression artifacts or surprising output size. These ‘bad cases’ are very useful to help improve the compression library!
Please use the tracker to report such issues, making sure to include:
the version or revision used (using “
git rev-parse HEAD” for instance)
the version of the compiler used (if you compiled your own version)
the problematic source image (will only be used for debugging and discarded afterward!)
the exact command line to use to reproduce the issue
the output file, if applicable.
Code must follow the Google C++ style guide unless local style differs.
const is used for variables everywhere possible, including for pointers in function declarations. Input parameters use const references.
void DoSomething(const Type1& const input, Type2* const out)
Do not use C++ exceptions.
Do not use std containers in the main library, e.g. no std::vector/set/map (but they can be used in tests). For vectors, use WP2::Vector instead.
Use uint32_t for sizes, width, height, loop indices, etc.
Most functions should return a WP2Status
CMakeLists.txt and cmake/* are used to build the project with CMake.
doc/* contains the container and format specifications.
examples/* and extras/* contain executables and tools.
imageio/* contains image-reading and image-writing functions. Several formats are handled such as PNG, WebP etc.
presubmit/* contains the continuous integration testing scripts (run by Jenkins when a patch of libwebp2 is sent to Gerrit).
swig/* contains the SWIG wrapper for Python and wp2_js/* contains the Javascript interface.
src/* contains the core library.
src/wp2/* contains the public API headers. Consult encode.h and decode.h to interact with libwebp2.
src/enc/* contains the encoder-related sources.
src/dec/* contains the decoder-related sources.
src/dec/main_dec.cc contains the still image decoding entry functions.
src/dec/incr/decoder_stages.cc contains the incremental and animation Decoder class implementation.
src/common/* and src/utils/* contain the files that are used by both encode and decode functions.
src/common/header_enc_dec.h is used to code image-wise BitstreamFeatures.
src/common/global_params.h contains the frame-wise GlobalParams.
src/enc/tile_enc.h and src/dec/tile_dec.h contain the tile-wise coding functions.
src/dsp/* contains the low-level, platform-optimized algorithms.
tests/* contains the tests:
test_simple_enc_dec.cc and test_decoder_api.cc are simple examples to start with.
tests/include/* and tests/tools/* contain the helper headers and tools for testing.
tests/testdata/* contains some sample images used by the tests.
tests/bench/* contains the performance-measuring tools. Requires Google Benchmark.
tests/fuzz/* contains the fuzzing tools. See OSS-Fuzz for more information.
A part of testing support is built using Google Test. To enable it the
WP2_ENABLE_TESTS cmake variable must be turned on at cmake generation time (ON by default), and the
GTEST_SOURCE_DIR cmake variable must be set to the path of the Google Test source directory (../googletest by default):
$ git clone path/to/googletest $ cmake path/to/wp2 -DWP2_ENABLE_TESTS=ON -DGTEST_SOURCE_DIR=path/to/googletest
To run the tests you can use ctest after the build:
$ make $ ctest
Web: | https://chromium.googlesource.com/codecs/libwebp2/+/49d171d188449df74e1cc8f341f227214f6d9825/README.md | CC-MAIN-2021-39 | refinedweb | 1,685 | 52.97 |
I am very confused about what to do with this assignment. I am relatively new to java programming and I have to calculate GPA when given a grade and the corresponding amount of credits in an input file. The exact description is
The first requirement is to "1. Use a method that takes a letter grade and a number of credits as parameters, calculates and returns the points for the course."The first requirement is to "1. Use a method that takes a letter grade and a number of credits as parameters, calculates and returns the points for the course."The course points equal (gradePoints x credits). Write a program that reads data from a text file that contains a sequence of (letter grade, credits) pairs, and calculates the overall GPA of the student. An example of the input may look something like this:
B- 3
D+ 2
A 3
W 0
C+ 4
B 3
My problem currently is that I am unsure how to create a new method after the main and still keep the information from the input file. my code so far is below.
import java.util.Scanner; import java.io.*; public class GPA { public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("Darrien Kamai"); System.out.println("CPS 180"); String filename = scan.nextLine(); File file = new File(filename); Scanner inputFile = new Scanner(file); String gradePoint, readData; //Read grade and amount credits from data file public static void readData(String grade, int credits) throws IOException { grade = inputFile.nextLine(); credits = inputFile.nextInt(); } }
Any help would be very appreciated as I am completely stuck with the new method. the program is giving an illegal start of expression error | https://www.javaprogrammingforums.com/whats-wrong-my-code/12218-gpa-calculation-program-using-input-file.html | CC-MAIN-2020-29 | refinedweb | 286 | 64.91 |
On Monday 02 June 2003 17:38, Bruno Dumon wrote:
BD> What I wanted to avoid though is that problems with the normal HTML
BD> serializer (like the namespace or textarea problem) would be hidden by
BD> jtidy, and that users would be pointed to the tidyserializer as the
BD> solution for these problems. One should not forget the performance
BD> impact of the tidyserializer: it uses an additional thread and has to
BD> reparse the serialized output.
When TidySerializer would be in cocoon, more people would try it. And perhaps
there will be someone who cleans it up and adds SAX and DOM support. Also
perhaps someone integrates it into xalan.
And for the namespace problem. Tidy hides it only for (X)HTML. It doesn't hide
it for WML, where you have the same. Everywhere where you have a DTD for the
output and using different namespaces during creation, you can have the
problem.
We have a current problem, that cocoon is not useable in many cases, because
it's nearly impossible to create valid (x)html. With TidySerializer we would
have a temporary inofficial solution. There is also HTMLGenerator using jtidy
and noone says, we wait for the web pages to have valid (X)HTML.
Regards
Torsten
--
Domain in provider transition, hope for smoothness. Planed date is 1.7.2003. | http://mail-archives.apache.org/mod_mbox/cocoon-dev/200306.mbox/%3C200306021757.53626.torstenknodt@datas-world.de%3E | CC-MAIN-2017-34 | refinedweb | 223 | 64.3 |
March 9, 2019 SRM 752 Editorial
Poker Round
Solution:
Let us see what happens after one round if they had 10000-x and x initially.
After 1 round, it becomes 2*(10000-x) and 2*x-10000.
Lets assume second player had z after first round.
Then z=2*x-10000, i.e x= (z+10000)/2
So now we can try to go 1 step back at a time for 3 times to reach initial amounts. If the final amount is not an integer then answer is -1.
Code:
public int getamt(int t,int left){ if(left==0){ return t; } if(t%2==1){ return -1; } return getamt(t+(10000-t)/2,left-1); } public int amount(int T){ return getamt(T,3); }
Time complexity:
To move back each round, it takes O(1) time because we are simply evaluating a formula. To move back 3 rounds, it takes O(1) operations.
Literature Optimal
Solution:
Teja understands everyones cards if and only if at least lets.
For the game to end in minimal moves.The best thing that can happen is Vinay and Sohail to call out the cards of the other player which were not called yet.
So we can just simulate their steps assuming each one calls the cards not yet called of the other person.
Code:
public int minTurns(int n,int[] Teja,int[] history){]); } } int lef1 = set1.size(); int lef2 = set2.size(); lef1=n-lef1; lef2=n-lef2; if(lef1==0 || lef2==0) return 0; i=y; int cnt=0; while(true){ cnt++; if(i%3==1) lef1--; if(i%3==2) lef2--; if(lef1==0 || lef2==0) return cnt; i++; } }
Time Complexity: O(n+size(history)). size(history) because we have to iterate the whole history array. The simulation part takes O(n) because in every three steps, we discover 2 unknown cards. Since total number of unknown cards is atmost 2*n, we need O(n) turns in simulation and simulating each turn takes O(1) time.
Problems to try: Div1 Medium is a problem with similar background sharing some part of the solution.
Literature:
Solution:
Teja understands everyones cards if and only if atleast let’s.
Let us dp state dp[person][call1][call2] as expected number of turns needed for Teja to understand everyone’s cards if current turn belongs to person and Vinay has called out call1 cards of Sohail and Sohail has called out call2 cards of Vinay. Let us person takes values 0,1,2 representing Teja, Vinay, Sohail respectively,
We can define the following recurrence relations.
dp[2][call1][call2] = ((n-call2)/(2*n)) * dp[0][call1][call2+1] + ((n+call2)/(2*n)) * dp[0][call1][call2] +1.
The first term corresponds to player 2 calling a card that gives new information. Second term corresponds to player 2 calling a card that gives no new information.
dp[1][call1][call2] = ((n-call1)/(2*n)) * dp[2][call1+1][call2] + ((n+call1)/(2*n)) * dp[2][call1][call2] +1.
Similar explanation as first equation.
dp[0][call1][call2] = dp[1][call1][call2] + 1
Whatever card Teja calls, it’s never informative because he knows his own cards.
Now if the dependency graph of these equations was a DAG, then we could have directly solved this as a standard dp.
But the dependency graph contains cycles (for example if player 1 and player 2 calls cards which do not give new information then we come back to the same state where we started),
To avoid this, one idea is we can solve using Gaussian Elimination.
There is a more easier approach, we can rewrite the equations in such a way that there will be no cycles.
dp[0][call1][call2] = dp[1][call1][call2] + 1
dp[1][call1][call2] = ((n-call1)/(2*n)) * dp[2][call1+1][call2] + ((n+call1)/(2*n)) * dp[2][call1][call2] +1.
The second and third from previously defined equations remains the same. Let us expand the first equation a little more.
dp[2][call1][call2] = ((n-call2)/(2*n)) *( dp[0][call1][call2+1] +1) + ((n+call2)/(2*n)) * ((n-call1)/(2*n)) *(dp[2][call1+1][call2] +3) + ((n+call2)/(2*n)) * ((n+call1)/(2*n)) *(dp[2][call1+1][call2] +3).
The terms are as follows,
1st : player 2 calls a new card of player 1.
2nd: player 2 calls a card of no new information and player 0 move is irrelevant and player 1 calls a card of some new information
3rd: player 2 calls a card of no new information and player 0 move is irrelevant and player 1 calls a card of no new information
We can rewrite last equation as
(1 – ((n+call2)/(2*n)) * ((n+call1)/(2*n))) *dp[2][call1][call2] = ((n-call2)/(2*n)) *( dp[0][call1][call2+1] +1) + ((n+call2)/(2*n)) * ((n-call1)/(2*n)) *(dp[1][call1+1][call2] +3) + ((n+call2)/(2*n)) * ((n+call1)/(2*n)) *3 .
Now the dependency graph is a DAG, Hence we can solve the problem like it is a standard dp problem.
Proof that dependency graph is DAG : We can see that from every state either one of the card counts (call1 or call2 ) rises or index of the person called rises. Hence ,there cannot be cycles.
Code:
int n; double[][][] dp = new double[3][1003][1003]; int[][][] visit = new int[3][1003][1003]; public double getprob(int val1,int val2){ double x=1.0; x*=val1; x/=val2; return x; } public double solve(int person,int given1,int given2){ if(given1==n || given2==n){ return 0; } if(visit[person][given1][given2]==1) return dp[person][given1][given2]; visit[person][given1][given2]=1; if(person==2){ dp[person][given1][given2] = getprob(n-given2,2*n) * (solve((person+1)%3 , given1,given2+1)+1); dp[person][given1][given2] + = getprob(n+given2,2*n) * getprob(n-given1,2*n) * (solve(person,given1+1,given2)+3); dp[person][given1][given2] + = getprob(n+given2,2*n) * getprob(n+given1,2*n)*3; dp[person][given1][given2] / = 1-getprob(n+given2,2*n)* getprob(n+given1,2*n); } else if(person==1){ dp[person][given1][given2] = getprob(n-given1,2*n) * (solve((person+1)%3,given1+1,given2)+1); dp[person][given1][given2] + = getprob(n+given1,2*n) * (solve((person+1)%3,given1,given2)+1); } else{ dp[person][given1][given2]=solve(person+1,given1,given2)+1; } return dp[person][given1][given2]; } public double expectation(int _n,int[] Teja,int[] history){ n=_n;]); } if(set1.size()==n || set2.size()==n){ return i+1; } } int given1=set1.size(); int given2=set2.size(); double ans=solve(y%3,given1,given2); ans=ans+y; return ans; }
Time Complexity :O (n*n + size(history)) , Initial preprocessing takes O(size(history)) time. Dp table has 3*n*n states with each taking O(1) time to be computed. Hence, time complexity for the dp part is O(n*n).
Reconstruct Number:
Let us define the dp state dp[pos][dig] as if it is possible to fill the digits from the pos position (assuming zero based indexing) and previous digit was dig. We will handle the first digit (position 0)(separately as it has different restrictions.
Let us define nex[pos][dig] as the best digit to give to current position so that we reach minimum number from pos position till end obeying all the restrictions.
Since the total number of digits in the final number is always same at any state, The key observation to minimise the number is pick the first digit as small as possible. So now we can use dynamic programming to solve this.
Iterate from 0 to 9 for the current digit, check if comparison given holds between previous digit and current current digit and also dp[pos+1][current digit] this is true. Then current digit can be chosen at present position. Choose the minimum one among all those satisfying the criteria.
For the first digit, we iterate from 1 to 9 , and all are valid digits with respect to comparison because there is comparison it needs to hold because it does not have previous digit.
The computation of dp states will be clear from the code.
And finally we can reconstruct the answer using the nex array built during the dp.
Code:
int n; string s; int dp[12345][12],nex[12345][12],visit[12345][12]; int solve(int pos,int dig){ if(pos==n) return 1; if(visit[pos][dig]) return dp[pos][dig]; int i; visit[pos][dig]=1; for(i=0;i<10;i++){; } } } return 0; } string printans(int dig){ string ans=""; int i=0; while(i<=n){ ans+=(char)(dig+'0'); dig=nex[i][dig]; i++; } return ans; } class ReconstructNumber{ public: string smallest(string comparisons){ s=comparisons; n=s.length(); int i; for(i=1;i<10;i++){ if(solve(0,i)){ return printans(i); } } return ""; } };
Token Doubling Game:
First let us see what exactly is happening in the game.
Let us denote number of token on the table as x and in hand as y.
- If heads, y=1 then x=x+y
- If tails, x=x-y then y=2*y,
If x goes outside (1,2*n-1) then game ends.
Now let us define dp[i] as expected number of coin flips for the game to end with currently having x=i and y=1.
The key observation is we want to consider possible moves from a state such that always the state we reach has y=1. So the kind of moves we can consider from a state is something like tail,tail,… head (till first head occurs or x goes out of the range). Since as tails keep occuring , y increases exponentially and x decreases at a exponential rate as tails increase. So we can observe there can atmost O(logn) tails continuously such that x still stays in range. So number of possible moves from a state will be O(logn) because each move is the type (Tail)*Head or only tails until you go below x=1. Now we can try to write these dynamic programming equations , We will try to give a taste of how the equation looks for a particular i.
dp[i] = ½(dp[i+1]+1) + ¼(dp[i]+2) +⅛(dp[i-2]+3) + …
Similarly we can write other equations. Also dp[2*n]=0.
Now we can observe that we cannot solve this dp straight forward because there are cycles. One way to solve is to use gaussian elimination. The complexity of gaussian elimination is n*n*n which is not enough.
Now we can rewrite the equation written for i=1,2,….,2*n-2 such that
½(dp[i+1]+1) = -¾(dp[i]) + ½ + ⅛(dp[i-2]+3) + …
So now we have expressing i = 2,3,…., 2*n-1 using only lower indexed states.
And we still haven’t used dp equation written for 2*n-1.
So we can take equation written for dp[2*n-1] and keep removing highest indexed term by substituting its formula using only lower indexed terms (as found above). Finally we will be left with some equation of the form a*dp[1]-b =0. And dp[1] = b/a = b *(a^(-1)).
Now once we find dp[1], we can use
½(dp[i+1]+1) = -¾(dp[i]) + ½ + ⅛(dp[i-2]+3) + …
To find all the dp values. We need to return dp[n] because initially x=n and y=1.
Now, question guarantees few things such as inverse exists. Do you see a way to prove inverse exists ? We could not see a way, so we simulated all the possible values for n from 1 to 100000 and checked that always inverse existed at the step where dp[1] is calculated.
Code:
public class TokenDoublingGame{ public long getpow(long a,long b){ long mod=(1000*1000*1000+7); long res=1; while(b!=0){ if(b%2==1){ res*=a; res%=mod; } b/=2; a*=a; a%=mod; } return res; } public long inverse(long val){ long mod=(1000*1000*1000+7); return getpow(val,mod-2); } public int expectation(int n){ if(n==1){ return 1; } long inv2=inverse(2); long mod=(1000*1000*1000+7); long[] dp = new long[2*n+10]; long[] ans = new long[2*n+10]; long[] remem = new long[2*n+10]; long[] pr = new long[200]; long[] st = new long[200]; ArrayList<Integer> states_reachable[] = new ArrayList[2*n+10]; ArrayList<Long> coeffs[] = new ArrayList[2*n+10]; long prob; long twos,val; long value=0; long steps; int i,j; pr[0]=1; for(i=1;i<200;i++){ pr[i]=pr[i-1]*inv2; pr[i]%=mod; } for(i=0;i<200;i++){ st[i]=i*pr[i]; st[i]%=mod; } for(i=0;i<2*n+5;i++){ states_reachable[i]=new ArrayList<>(); coeffs[i]=new ArrayList<>(); } for(i=2;i<2*n-1;i++){ prob=1; twos=1; val=i; value=0; steps=0; j=0; while(true){ if(val<=0){ value+=st[(int)steps]; value%=mod; break; } prob = pr[(int)steps+1]; value+=st[(int)steps+1]; if(val+1!=i+1){ states_reachable[i+1].add((int)val+1); if(val+1==i){ coeffs[i+1].add((2*prob-2)%mod); } else{ coeffs[i+1].add((2*prob)%mod); } } val-=twos; twos*=2; steps=steps+1; } remem[i+1]=2*value; remem[i+1]%=mod; } states_reachable[2].add(1); coeffs[2].add(-2L); remem[2]=2; for(i=2*n-1;i<=2*n-1;i++){ prob=1; twos=1; val=i; value=0; steps=0; j=0; dp[2*n-1]=1; while(true){ if(val<=0){ value+=st[(int)steps]; value%=mod; break; } prob = pr[(int)steps+1]; value+=st[(int)steps+1]; if(val+1!=i+1){ dp[(int)val+1]-=prob; dp[(int)val+1]%=mod; } val-=twos; twos*=2; steps=steps+1; } value*=-1; value%=mod; } for(i=2*n-1;i>=2;i--){ for(j=0;j<states_reachable[i].size();j++){ dp[states_reachable[i].get(j)]-=dp[i]*coeffs[i].get(j); dp[states_reachable[i].get(j)]%=mod; } value-=dp[i]*remem[i]; value%=mod; dp[i]=0; } assert(dp[1]!=0); ans[1]=-1*value*inverse(dp[1]); ans[1]%=mod; for(i=2;i<=n;i++){ ans[i]=0; for(j=0;j<states_reachable[i].size();j++){ ans[i]+=ans[states_reachable[i].get(j)]*coeffs[i].get(j); ans[i]%=mod; } ans[i]+=remem[i]; ans[i]=-1L*ans[i]; ans[i]%=mod; } ans[n]%=mod; ans[n]+=mod; ans[n]%=mod; return (int)ans[n]; } }
Time Complexity: Since each equation of size O(log(n)). We need O(nlogn) time to find all the equations. Each equation will be substituted atmost once. So we need O(nlogn) time. And to evaluate all the equations from bottom to top , we need O(nlogn) time.
Hence, total time complexity is nlogn.
teja349
Guest Blogger | https://www.topcoder.com/blog/single-round-match-752-editorials/ | CC-MAIN-2022-40 | refinedweb | 2,508 | 54.22 |
this Keyword Java
"this" keyword refers an object, to say, the current object. Observe the following program and pay attention to this.salary.
public class Officer3 { int salary; public void display(int salary) { this.salary = salary; } public static void main(String args[]) { Officer3 o1 = new Officer3(); o1.display(5000); System.out.println(o1.salary); // 5000 } }
In the display() method, local variable and the instance variable are same, salary. That is, local variable clashes with instance variable. If "this" is removed in display() method, o1.salary in the main() method prints 0. "this" refers the object o1 as with o1 the display() method is called. Now we can make one rule, if a method is called with an object, the instance variables inside the method are linked with the object implicitly. Now, this.salary becomes o1.salary internally and one memory location is created. If "this" is removed, both salaries are treated as local variables and thereby the compiler does not create any memory location. Use always "this" keyword to differentiate a local from instance variable when they clash. C++ people, call "this keyword" as "this pointer".
Explanation on parameters passing to method is available at Three Great Principles – Data Binding, Data Hiding, Encapsulation.
14 thoughts on “Using this Keyword Example Java”
Sir, plz write more about uses of this keyword..this() method..
this keyword is just to avoid clash between instance and local variables.\
this() is to call one constructor from another of the same class.
this and this() works very differently and no similarities.
what about local variables is memory created for them too ?
Local variables memory exist as long as the method executes.
very intresting site..
i was verp weak in java
but reading this site getting more benefit..
thank you nageshewar sir..
contact-8334090510
Tell your friends also to derive benefit of the site.
Sir please can u explain the below line as i am not understanding it…???
“this” refers the object o1 as with o1 the display() method is called.
this website is very useful for me i request you please share java EE tutorial
It takes lot of time. It is my passion to do this in my leisure hours.
Friends this really very good..A simple example cleared all my doubt in sec so thank u..
This web site is very useful for the Softwere engineering student.
it is very simple example &its make so helpful for clearation of basic concept
Thanks, tell your friends to get benefited of this web site.
Very easy example ,very helpful for begineers. | https://way2java.com/oops-concepts/using-this-keyword/ | CC-MAIN-2020-50 | refinedweb | 425 | 68.06 |
0
I would like to program that reads a file with 6 lines that have 7 numbers on each line. The output should save a file with sum, average, max and min of each line. For now I just have to figure out how to get the max and min numbers the robust way. For starters this is my code. (please note that my goal for now is just to sort my 7 entered numbers)
My code is not working and my total is wrong. Please advise.
//Program utilizing one file for input and one file for output #include <iostream> using namespace std; int main() { int num1, num2, min = 0, max = 0, sum = 0, count = 0; double avg; cin >> num1 >> num2; for (count = 0; count <= 7; count++) { if (num1 > num2) max = num1, min = num2; if (num1 < num2) max = num2, min = num1; else max = num1, min = num2; sum = sum + min + max; } avg = sum/7.0; cout << min << " & " << max << endl; cout << "Sum = " << sum << endl; cout << "Average = " << avg << endl; system ("pause"); return 0; } | https://www.daniweb.com/programming/software-development/threads/319448/min-and-max-numbers | CC-MAIN-2017-26 | refinedweb | 170 | 80.96 |
Hi
Thank you for using justanswer
Even though you may not owe tax, as a Resident Alien you are bound by the same rules as any US citizen, which is that you must report, and pay tax on, worldwide income.
Although there is a $ limit that if you make UNDER the amount (for single filers with no other dependents, you would not have to file a tax return if your income is below $9750.00)
You can find these limits on page 7 of
However, under an H1B visa, it would be extremely unlikely for you to make less than $9,750.00
Additionally, if you had more withheld through your W2 than what your true tax liability is, then by not filing you will be giving up the right to claim that refund.
You have 3 years that are considered "open".
That means that you have 3 years from the due date of the return (plus extensions) in order to file your tax return and still be able to claim a refund .
After that time, the IRS will keep your money, even if you were due a refund.
How does this non filling affect my status?
Your status as in Resident Alien status?
Yes
Once you gain Residence Alien status, you keep that status until you either apply for a green card, or you decide to permanantly leave the US
Not filing does not change you're status
Ok. Thank you. | http://www.justanswer.com/tax/7z0ul-h1b-visa-haven-t-filed-tax-return-last.html | CC-MAIN-2014-41 | refinedweb | 242 | 72.7 |
ICANN Cancels 'Digital Archery' Program 54
itwbennett writes "ICANN announced today that it has canceled the Digital Archery contest it had planned to use to decide which gTLD applications would be evaluated first. The organization gave no indication of what it will do instead. In making the announcement, Cherine Chalaby, chair of the gTLD Program Committee, said, 'We will not make a decision in Prague but will take all of the ideas into account and build a roadmap,' adding that the roadmap will detail the next steps and timelines as well as assess implications to applicants and the risk to the program."
Re: (Score:2, Offtopic)
Bernie Madoff comes to mind.
Oh, bullshit: he was supremely competent at ripping people off. ICANN could not be more different!
Unless, of course, they weren't trying to rip people off at all. That would be different indeed
;-)
Re:ICANN is the biggest pile of shit (Score:5, Funny)
Oh, I don't know if they're actually that competent. But then evil is there because being competent is too hard.
It seems that they have been making decisions of late that come from late nights out at the bar, hookers, and blow.
ICANN VP#1: Hey I have an idea, let's charge 185,000 dollars for these new TLDs - it's the speed of packets travelling down a wire in miles per second!!! ISN'T THAT NEAT?
ICANN BOARD: What a perfectly capital and cromulent idea, old chap!
ICANN VP#2: Hey, we can't decide who should get these new TLDs if more than one entity decides to buy the same TLD. Let's make a game! A flash game that you can't audit! We can have it cheat and give advantage to our buddies!
ICANN BOARD: What a perfectly capital and cromulent idea, old chap!
ICANN TECH: Holy shit guys, someone walked away with the list of bids and bidders!
ICANN FLASH DEVELOPER: This flash game is BOLLOCKS. I can't make a workable game *and* have it cheat without without it being too obvious!
ICANN SWITCHBOARD SECRETARY: Goddamnit, I can't handle all these irate calls!
ICANN BOARD: OH SHIT!
PUBLIC: YOU GUYS ARE IDIOTS!
ICANN BOARD: OOPS.
--
BMO
Re:ICANN is the biggest pile of shit (Score:5, Funny)
How did you get the transcript from their meeting?
Re: (Score:2)
Yeah no kidding, it usually takes weeks to get those.
Re: (Score:1)
"cromulent"
When did ICANN become British?
Cromulent, old chap? (Score:3)
"cromulent"
I say, old bean, this isn't a British word at all. Some American chappie called David X. Cohen came up with this word for "The Simpsons", which is apparently a very popular animated show.
Toodle pip!
Re: (Score:1)
Re: (Score:2)
Since when is "The Simpsons" British?
Re:Hit and Miss (Score:5, Funny)
Re: (Score:2)
>inspired alliteration
I love you.
--
BMO
Re: (Score:1)
Why is this voted troll? Should be funny, but I have no mod points.
Re: (Score:2)
Time for UN takeover? (Score:1)
These stumbles with the sponsored gTLD flop speak volumes for ditching the whole ICANN in its current form. In practice, this hastens the development that will eventually lead to the United Nations taking over the ICANN's current operations; a death sentence to Internet neutrality and uncensored access.
Re: (Score:1)
This isn't a 'stumble'. They just finally realized they are leaving money on the table by having this stupid lottery to only let some fraction of these new gTLD's be granted. Now, they need some way to announce that all of them will be permitted, followed by some kind of internal bonus awarded to everyone involved within ICANN.
Insane mismanagement (Score:5, Interesting)
This shows that ICANN has no clue what they're doing. All they cared about was getting the huge cash infusion from the application fees. They should at the very least have had the entire process planned out from the beginning.
What would be nice now would be fore a coalition of major ISPs to state that the new TLDs are stupid, and they won't support any of them on their name servers. That should pretty much kill the whole thing. In fact, and association of ISPs could use this as a chance to replace ICANN, demonstrating that their authority is limited based on the extent that the ISPs agree to let them have the authority.
Re:Insane mismanagement (Score:5, Insightful)
Sorry no.. almost anyone but the ISPs.. I want my ISP to be as close to a dumb pipe as it can be.
Re: (Score:2)
I agree with you, but I don't see who else has the power to simply reject ICANN and make it stick.
Re:Insane mismanagement (Score:5, Insightful)
In particular, ICANN has room for TLD fuckery, and seems to be making use of it lately; but ISPs are in the position to both engage in TLD fuckery and the overwhelmingly more serious business of controlling traffic for various rent-seeking or voice/cable TV legacy service preservation purposes.
TLDs are a penny-ante sideshow by comparison.
Re: (Score:2)
Sounds like a request for bribes... (Score:2)
Re: (Score:2)
So this will make it closer to an auction, which is what should have been done in the first place?
Re: (Score:2)
So this will make it closer to an auction, which is what should have been done in the first place?
Somewhat (though ultimately no), and no.
.icannsucksass, they will shop it around to all three. If they like company C better than B, but B offers some amount that is
It somewhat makes it closer to an auction in that more money wins the contest. However, most auctions follow a time table and have some sort of equal chance for bidding. Bribery - which is likely closer to what ICANN is after as they are openly crooked - does not care about equality. If they have companies A B and C bidding for the gTLD
So like eBay (Score:2)
If [...] B offers some amount that is higher they will go tell C what the offer was from B and ask them to beat that offer.
And on eBay, each bidder knows when he has been outbid. How is this different?
No, not like eBay (Score:2)
If [...] B offers some amount that is higher they will go tell C what the offer was from B and ask them to beat that offer.
And on eBay, each bidder knows when he has been outbid. How is this different?
A couple important ways
In other words, it really isn't like eBay. Few people would want eB
Re: (Score:2)
That'd be a lovely idea. They'll be cobranded "gTLD by Google" and "gTLD by Microsoft". Well, I'm sure a few banks would get in on the game too. Anywhere they can make money for nothing is their favorite industry.
From the end of the article: (Score:5, Funny)
BECAUSE WE ALREADY SPENT IT ON HOOKERS AND BLOW.
--
BMO
Re:From the end of the article: (Score:5, Funny)
Re: (Score:2)
Re: (Score:2)
yeah.. it's rather ridiculous. notice that he didn't even dispute who is the "owner" of the cash, just said that he wouldn't be paying the deposits back.
fucking ridiculous, "hey, pay us money! you might get a tld!" then later.. "yeah yeah we're exploring the options how to make it happen, honest!"
Re: (Score:1)
It was essentially the equivalent of ICANN going 'I'm thinking of a number between x and y...' and people trying to guess the number to get their gTLD applications looked at first.
Digital archery (Score:1)
decision making (Score:2)
Re: (Score:3)
"We will not make the decision in Prague
... no, this decision will require at least 15-20 more all-expenses-paid meetings in luxury resorts around the world."
I think it's just a matter of cultural sensitivity. It's against local custom to make any decisions in Prague. If you make an important decision, you may even end up paying a stiff fine to the city magistrate. There is an ordinance against making important decisions here and the city council takes these matters very seriously. If they actually wanted to make a decision at the summit, they'd have to make a phone call to Vienna, Berlin, or Moscow in order not to offend the locals.
Digital Archery (Score:2)
Online gaming as a part of TLD creation process? (Score:2)
Seriously? I mean, seriously? ICANN, even briefly, introduced online gaming into the process of creating new top level domains? I knew that the Internet could resemble a circus, but that really stretches the limits of believability.
Pardon me while I file a registration for
.barnum.
I don't wanna know what was before that. (Score:1)
> ICANN Cancels 'Digital Archery' Program
The article continues:
"The 'Digital Archery' program had itself replaced the earlier and even less popular 'Digital Ball Cupping' Program."
Re: (Score:2)
..and the original plan was to only allow tld's that one couldn't dispute. for example pepsi getting
.pepsi. basically if there's any dispute between two applicants - even just between two potential applicants, then the tld shouldn't be granted.
it's just a fucking money grab now.
ICANN'T (Score:2)
Has ICANN ever had any clue about what it's doing? It is the keymaster to the modern Fort Knox, and it has always been supremely incompetent in every way.
How is it possible for "typo domains" to scam millions every year by violating legitimate trademarks? Why would you expand the top level domains without ensuring they segregate names into sites that don't conflict with each other, which is the only purpose of a namespace, thereby ensuring that names in the different TLDs do conflict and confuse the consume
The real question that should be asked (Score:2)
Is why are domain names still a hierarchy? They were only designed that way because computing resources were expensive.
Think about it. Do we want to give people names or entire hierarchies and hops they do the right thing? | https://tech.slashdot.org/story/12/06/30/2159228/icann-cancels-digital-archery-program | CC-MAIN-2016-44 | refinedweb | 1,714 | 73.27 |
NAME
getsid -- get process session
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <unistd.h> pid_t getsid(pid_t pid);
DESCRIPTION
The session ID of the process identified by pid is returned by getsid(). If pid is zero, getsid() returns the session ID of the current process.
RETURN VALUES
Upon successful completion, the getsid() system call returns the session ID of the specified process; otherwise, it returns a value of -1 and sets errno to indicate an error.
ERRORS
The getsid() system call will succeed unless: [ESRCH] if there is no process with a process ID equal to pid. Note that an implementation may restrict this system call to processes within the same session ID as the calling process.
SEE ALSO
getpgid(2), getpgrp(2), setpgid(2), setsid(2), termios(4)
HISTORY
The getsid() system call appeared in FreeBSD 3.0. The getsid() system call is derived from its usage in AT&T System V UNIX. | http://manpages.ubuntu.com/manpages/oneiric/man2/getsid.2freebsd.html | CC-MAIN-2013-20 | refinedweb | 155 | 61.36 |
I grabbed a £5 xbox USB wireless receiver (you can get them on Amazon UK
Zephod’s code used the screen output of xboxdrv (a linux xbox controller driver) to create events which could be interpreted from python. I decided on a different route and (after being shown the way by Dave Honess at Pycon) used pygame to interface with xboxdrv and the controller directly.
I originally just hacked together some code to make my solution work but after asking twitter whether anyone else would find it useful I created a generic python module to allow anyone to incorporate an xbox controller into their projects.
The module works by interpreting the pygame events which xboxdrv creates when the xbox controller is used (button pressed, button released, analogue stick moved, trigger pressed, etc) and keeps track of the values of all the buttons, sticks and triggers on the controller.
These values can be read directly from the properties on the class (e.g xboxController.RTRIGGER) or the values can be passed to your program through the use of call backs i.e. when a button is pressed or a stick moved a function in your program is called and the details about what was changed and what the new value is are passed to it.
Installing and testing the module
If there is demand in the future I will wrap the module into a proper python package, but for the time being its just a separate python file (XboxController.py) which you can add to your python project.
Install xboxdrv
sudo apt-get install xboxdrvGrab the code from GitHub (github.com/martinohanlon/XboxController) and copy the XboxController.py file to your project:
git clone cp XboxController/XboxContoller.py pathToYourProjectYou need to run xboxdrv before you can use the module, run
sudo xboxdrv --silent &You may get an error asking you to run xboxdrv with the option --detach-kernel-driver, if so run:
sudo xboxdrv --silent --detach-kernel-driver &You can test the module by running the XboxController.py file
python XboxController.pyWhen you see the message on the screen saying the controller is running, press a button on your xbox controller.
Using the module
The module is pretty easy to use, but there are a few complex concepts to get your head around such as call backs and threading - first you need to import it into your code:
import XboxControllerThen you can create an instance to the XboxController:
xboxCont = XboxController.XboxController( controllerCallBack = None, joystickNo = 0, deadzone = 0.1, scale = 1, invertYAxis = False)You can adjust the behaviour of the module by passing different parameters:
- joystickNo : specify the number of the pygame joystick you want to use, usually 0
- deadzone : the minimum value which is reported from the analogue sticks, a deadzone is good to reduce sensitivity
- scale : the scale the analogue sticks will report to, so 1 will mean values are returned between -1 and 1, 0 is always the middle
- invertYAxis : the Y axis is reported as -1 being up and 1 being down, which is just weird, so this will invert it
- controllerCallBack : pass the name of a function and the xbox controller will call this function each time the controller changes (i.e. a button is pressed) returning the id of the control (what button, stick or trigger) and the current value
To add a controller call back you would use:
def myCallBack(controlId, value): print "Control id = {}, Value = {}".format(controlId, value) xboxCont = XboxController.XboxController( controllerCallBack = myCallBack)
You can also add other call back functions so that when specific buttons, sticks or triggers are pressed or moved it will call a specific function, e.g. to add a function which is called when the start button is pressed / released you would used the code:
def startButtonCallBack(value): print "Start button pressed / released" xboxCont.setupControlCallback( xboxCont.XboxControls.START, startButtonCallBack)The XboxController runs in its own thread, so you need to tell the controller to start using
xboxCont.start()Control values can be read directly from the XboxController while it is running, by using the properties of the class e.g. to read the current value of the right trigger you would use:
print xboxCont.RTRIGGERThe XboxController also needs to be stopped at the end of your program using
xboxCont.stop()For more information about the module, see the code in the the XboxController.py file.
Hello Martin,
just wanted to let you know that your module works like a charm and helped me undestand python in general and Callback functions in particular a great deal better. At the moment your module controls a GoPiGo robot but will soon also control a foam rocket launcher on top of the GoPiGo ;)
Thanks for the great help you are providing with your code!
Excellent news, please let me know how you get on.
Hi Martin,
Do you know if this works with an Xbox one controller?
Thanks,
Steve
I dont believe there is a linux driver for the xbox one controller yet so unfortunately not. I suspect its only a matter of time tho.
Hi Martin,
thanks for the code, it works great! I am in the process of building a cnc mill and the joysticks control what I have so far (X stage and Z axis). Very satisfying to control something in real life with the xbox controller.
Just one addition to your code - I had to add time.sleep(0.001) to your main loop. This way my main thread gets some processing time and prevents xboxCont from hogging it all.
Thanks again,
Will
This comment has been removed by the author.
Sorry for the previous comment. I ended up just doing a fresh install of Rasbian using noobs, copied your stuff over, and got the script to work. When I ended up coding stuff on my own, CTRL + C wasn't killing things the way it should have - so I stole the code at the end of XboxController.py [with the try/catch stuff] and then everything was working flawlessly. Being able to programatically take input from the controller is flat out amazing, thank you for making it even easier. With this + relays + a vehichle mounted DTV dish, I'm going to probably get a bunch of fun looks when I'm controlling my dish with a wireless 360 controller
Hey Douglas, I'm in the process of trying to write a software equivalent of CTRL + C right now. What exact commands or lines did you take from the XboxController.py script?
This comment has been removed by the author.
Martin - will xboxcontroller.py work with ubuntu-xboxdrv on a pc-based Linux box? Thanks.
I see no reason why not. Its only requirement is the pygame library. Providing that is installed, yes it should work.
Thank you Martin. I'll give it a try and let you know.
when i try the callback function
"def startButtonCallBack(value):
print "Start button pressed / released"
xboxCont.setupControlCallback(
self.xboxCont.XboxControls.START,
startButtonCallBack)"
then i get the error "NameError: name 'self' is not defined"
You dont need the "self." - my bad.
Post updated, thanks for letting me know.
How would you use these events to trigger a GPIO on the pi? I only want the pin to be HIGH while the joystick is in a position or a button is pressed.
This comment has been removed by the author.
Can someone post a If else example (trying to figure out how to use this am fairly new at this )
if this == True:
print("True")
else:
print("False")
ok I got the cod to work... Its awesome this is what i have:
from rpi_serial import *
import XboxController
xboxCont = XboxController.XboxController(
controllerCallBack = None,
joystickNo = 0,
deadzone = 0.1,
scale = 1,
invertYAxis = False)
def LeftButtonCallBack(value):
doMotorRun("M1",-120)
doMotorRun("M2",120)
xboxCont.setupControlCallback(
xboxCont.XboxControls.LTRIGGER,
LeftButtonCallBack)
def RightButtonCallBack(value):
doMotorRun("M1",120)
doMotorRun("M2",-120)
xboxCont.setupControlCallback(
xboxCont.XboxControls.RTRIGGER,
RightButtonCallBack)
def UpButtonCallBack(value):
doMotorRun("M1",120)
doMotorRun("M2",120)
xboxCont.setupControlCallback(
xboxCont.XboxControls.Y,
UpButtonCallBack)
def DownButtonCallBack(value):
doMotorRun("M1",-120)
doMotorRun("M2",-120)
xboxCont.setupControlCallback(
xboxCont.XboxControls.X,
DownButtonCallBack)
def StopButtonCallBack(value):
doMotorRun("M1",0)
doMotorRun("M2",0)
xboxCont.setupControlCallback(
xboxCont.XboxControls.B,
StopButtonCallBack)
def AutoButtonCallBack(value):
doMotorRun("M1",120)
doMotorRun("M2",120)
xboxCont.setupControlCallback(
xboxCont.XboxControls.A,
AutoButtonCallBack)
xboxCont.start()
print xboxCont.controlId
xboxCont.stop()
====================================
But how do I use the Joystick ? can i get a example for that Please it would be greatly appreciated...
This comment has been removed by the author.
The same way you have for the other controls but you will have to use
xboxCont.XboxControl.LTHUMBX
xboxCont.XboxControl.LTHUMBY
xboxCont.XboxControl.RTHUMBX
xboxCont.XboxControl.RTHUMBY
This is great ! just what I'm looking for.
Hi,
I ran this program on my raspberry pi3,
It is constantly showing me this error
print "Control Id = {}, Value = {}".format(xboxControlId, value)
^
SyntaxError: invalid syntax
What could be wrong ?
TY
Sanky - you are using Python 3 - its seems I wrote this using Python 2 - change to:
print("Control Id = {}, Value = {}".format(xboxControlId, value))
will resolve this error, but there could be others.
Thanks for the reply Martin, Is there any example code which involves controlling servo motor using Xbox 360 joystick ?
Thank you, so Much...
But how do you get the LTHUMBX Value into a variable that can be used to increases the motor speed ?
like the 1 through 100 and the -1 through -100 in my code above M1 is for motor one and M2 for motor 2 but the 120 is hard coded speed what am trying to do is take the X and Y value turn it into a variable so that when you increase the joystick into a forward motion it will speed up the robot.
I got it to work by doing the following:)
lol don't use the above code - I fried my board...
Still a work in progress but this code will mess up your stuff..)
there was smoke and fire... it was glorious lol, in the process of buying another board there 25 dollars each.. will not have one for about 3 weeks, will update on findings as soon as i can...
O no...
This might help, its the code i created to move my robot using the xbox controller (as seen in the video)
I got my new boards lol this is the error am getting when using the code you provided Thank you for your help by the way..
started
Unexpected error:
stop
Traceback (most recent call last):
File "joystick.py", line 150, in
if initioCont.running == True: initioCont.stop()
NameError: name 'initioCont' is not defined
It should have been defined before, i.e.
initioCont = InitioXboxControl()
Martin, I think I am confused as to how this needs to be setup. Is this a necessary initialization/does it format all events to act in such a way from now on? How does it affect anything if your callback is empty? I thought it was just a general 'this is how you would set up one, just make it more specific to the button/trigger and what you want it to do' type deal but someone posted their code with this at the beggining and you didn't mention anything about that being unnecessary.
xboxCont = XboxController.XboxController(
controllerCallBack = None,
joystickNo = 0,
deadzone = 0.1,
scale = 1,
invertYAxis = False)
Yes, it is neccessary to create the XboxController class i.e.:
xboxcontroller = XboxController.XboxController()
You then have to start it running:
xboxcontroller.start()
You then have a choice how you use it, either setting up callbacks for each button, trigger, stick or by reading the properties directly.
Its also a good idea to stop it at the end of your program:
xboxcontroller.stop()
This comment has been removed by the author.
Hey Martin thanks for all this code. I'm having one issue though, the code doesn't keep outputting values from the analog sticks once they stop moving, is there a way to fix this? I would like to find a way to keep polling the analog sticks and the triggers for their values.
You can use the properties of the XboxController class to poll values e.g. print(xboxcontroller.RTHUMBY)
Wait scratch that seems like that error is controller specific. Now the error I'm getting is with xboxCont.start (), it says there is a runtime error:threads can only be started once
Based on the code you put in your comment:
while True:
xboxCont.start()
xboxCont.stop()
You are stopping and starting the controller continuously as you go round the loop.
You need to start the controller once and stop it once.
The invalid joystick id number could be because you are using id 1, normally the first joystick has the id 0.
Martin you are awesome. I wish I updated my question earlier. I tried id 0 and it didnt work initially so I switched it to 1 to check and forgot to change it back. I have an older controller that seems to have no issue. Last question though,
(and I tried to look at your code before hand), it seems how to handle variable information coming in isnt as simple as confining it and outputting it within those parameters (I.E if..pwm=...led.start(pwm)).. because now I can get the controller to blink the led but not change brightness based on input.
I still haven't understand how can I set up conditions with this code. Where do I have to write "if" and "else" codes? and what do I have to write after "if" to verify whether a button is pressed or not?
Sorry I dont really understand your question? Perhaps you need to go back to basics of python programming?
My friend I need to send the control to arduino but I can't to do it, I can't send de "value" from the xbox controller botons
How are you sending the data to the arduino? Serial? The values from the buttons are just numbers, you shouldnt have too much trouble turning the values into strings to send.
yes, I did it, It was easy to do it, but Now I can't to do that Arduino read always correct values for the buttons,
New to this and this is exactly what i want to do, control my bot with my xbox controller. i followed the page, when i run the XboxContoller.py i get the following error
Traceback (most recent call last):
File "XboxController.py", line 360, in
xboxCont = XboxController(controlCallBack, deadzone = 30, scale = 100, invertYAxis = True)
File "XboxController.py", line 163, in __init__
self._setupPygame(joystickNo)
File "XboxController.py", line 251, in _setupPygame
joy = pygame.joystick.Joystick(joystickNo)
pygame.error: Invalid joystick device number
when i run the driver i see the controller
Controller: Microsoft Xbox 360 Wireless Controller (PC)
Vendor/Product: 045e:0719
USB Path: 001:004
Wireless Port: 0
Controller Type: Xbox360 (wireless)
Your Xbox/Xbox360 controller should now be available as:
/dev/input/js0
/dev/input/event2
Thanks
Perhaps try a different joystick no. pygame might be picking it up as a different id.
i.e.
XboxController(joystickNo = 1)
Im using an Adafruit MotorHat, any suggestions how to use it? I wanted to avoid using a breadboard
I realize this is a year later but any luck controlling your robot with the Adafruit MotorHat this way? I have 4 motors running through it and am having trouble.
Gave up on the project for other things. I have it working with keyboard input but not this way. Still want too
Update to python-pygame worked for me.
THanks
I beat my head against the wall on this for a couple of hours only to realize that I needed to type sudo python XboxController.py... may want to change the how to above :)
AC
Ok. You shouldnt need to though. I wonder what is different about your install?!
Thank you for writing this code, it has helped me a lot with my remote control car project!
I wanted to let you know that I ran into some hiccups with the program. Some buttons were not reacting correctly. For instance, when I activated the right thumb x axis on my xbox controller, the program thought I had activated the y axis. After some troubleshooting, I concluded my controller has different Control IDs than the program expected. My Control IDs are as follows:
Left Trigger = 2 (program expected 5)
Right Trigger = 5 (program expected 4)
Right Thumb Y = 4 (program expected 3)
Right Thumb X = 3 (program expected 2)
When I went into the XboxController.py file and changed the Control ID numbers in the XboxControls class, I didn’t see a change. But when I changed them in the PyGameAxis class, the problem was resolved.
I’m using a Raspberry Pi 3 running Raspbian GNU/Linux 8 (jessie), an Xbox 360 wireless controller, and a PC Wireless Gaming Receiver.
I’m not a very experienced programmer. It’s possible I’ve botched something during this process. If you have time, I would be grateful if you could take a look at this and let me know if you see the same results.
It looks like pygame was detecting the xbox 360 controller as a different joystick to when I created the class.
Its entirely possible, drivers change, different software stacks, updates, etc.
You changed the right piece of code, the PygameAxis is the mapping between the id's pygame returns and a internal description the code uses.
Oh, that makes sense. Thanks for taking a look at it!
I am pretty confused on this. I have the XboxController.py able to detect my controller and the input, but i can't figure out how to use that for my code. I originally made my car based off this video series ""
and he uses gpio pin for the motors.
I dont know the series and I couldnt find any links to the code in the series of videos, but to make the robot move Im guessing you will have to turn on the pins the motors are connected too when button presses are detected:
def startButtonCallBack(value):
print "Start button pressed / released"
GPIO.output(motoropinnumber, True)
It might help, this is the code I created to move the robot I created, but it is specific for my robot, so use it as a reference not as a solution.
Hi there Martin, awesome tutorial! I wanted to use your library to send pwm values to a talon sr motor controller () which operates on a signal between 1 to 2 milliseconds. What do you think I should put as the value of the scale in order to return values between 1 and 2? This means that if the analog stick is in the center the value returned should be 1.5, if the stick is pushed all the way forward it should be 2, and if it is pulled all the way back it should be 1. Any help would be greatly appreciated. Thanks!
Unfortunately the scale doesn't work that way. 0 is always the centre and the scale is the value when pushed all the way forward.
It should be pretty easy to turn that into the values you need though.
It's working great now with a tank drive, thanks!
@TheN that's what I want to do too and have had issues, use a pwm with the controller. See if you gave email me and maybe you can help me out.
...what is the base OS you are running on the raspberry pi? Raspian? Ubuntu?
I would have used Raspbian, but it should work on Ubuntu.
hello im getting the __init__() got an unexpected keyword argument 'controllerCallback' error on my xboxCont = xboxController.XboxController(controllerCallback = MyCallback)
im using the raspian os from dexter industries
Capital B for Back... i.e. controllerCallBack not controllerCallback
I keep having trouble getting XboxController.py to successfully receive input from my wireless controller. The controller LED says it's paired (although it cycles between player 1-4 slots) and XboxController.py says the controller is running, but nothing happens when I press buttons. Maybe it's because it's not an official Microsoft Wireless dongle (it works on PC and sometimes on the Pi though)?
I keep getting this error when the controller pairs: [ERROR] USBController::on_read_data() : USB read failure: 32: LINUSB_TRANSFER_ERROR
Its not an error i have seen before, but it does sounds like a hardware issue. Although i didnt use an official one so dont assume it has to be a genuine one.
what do I need to make this?
Make what? The robot controlled by an xbox controller? My code is here if you want it
Thanks!
But, i also meant what materials am i going to have to buy to construct this. I'm very new to the idea of using coding and all that and I was wondering what i needed.For example, the initio robot and the xbox USB wireless receiver. Also, I'm not sure if this requires the Rasberry pi thing or not and what is a python package? I'm sorry if I'm asking a lot of question but I'm trying to make this for a school project.
I am able to run the XboxController.py file and i see 'xbox controller running' but when I press buttons nothing prints to the screen. Any thoughts?
I am new to this, but when I try to run my code to make an LED turn on with the Xbox 360 controller, it keeps displaying this error:
Traceback (most recent call last):
File "light.py", line 20, in
joy = xbox.Joystick()
File "/home/pi/Xbox/xbox.py", line 72, in __init__
raise IOError('Unable to detect Xbox controller/receiver - Run python as sudo')
IOError: Unable to detect Xbox controller/receiver - Run python as sudo
My controller should be connected because I'm running
sudo xboxdrv --silent &
I have also noticed that sudo xboxdrv --silent & shuts down when I try to run my program. Help would be greatly appreciated. Thanks!
Hey,
I am stuck at the first step. When I try to install xboxdrv, I get an error saying: "Unable to locate package xboxdrv".
Please help me fix this. | https://www.stuffaboutcode.com/2014/10/raspberry-pi-xbox-360-controller-python.html?showComment=1479074905584 | CC-MAIN-2019-35 | refinedweb | 3,710 | 63.29 |
Using ES2015 with Asset Pipeline on Ruby on Rails
Read in 6, which is now called ES20151. The first drafts were published in 2011, but the final specification was released in June of 2015.
ES2015 has so many new features:
Browsers are implementing ES2015 in a fast pace, but it’ll take some time until we can actually use it. Maybe years. Fortunately, we have Babel.js. We can use all these new features today without worrying with browser compatibility.
Babel.js2 is just a pre-processor. You write code that uses these new features (and more), which will be exported as code that browsers can understand, even those that don’t fully understand ES2015.
Using Babel.js with Asset Pipeline
There are several ways you can use to precompile your JavaScript code. Some people use Babel’s CLI. Some people prefer builders like Grunt or Gulp to automate the compilation process. But if you’re using Ruby on Rails you’re more likely to use Asset Pipeline for front-end assets compilation. And this is, in my opinion, the easiest way of using Babel, believe it or not.
Unfortunately there’s no built-in support on the stable release of Sprockets, so you’ll have to use a pre-release version.
The transpilation is performed by babel-schmooze-sprockets. It vendors several Babel extensions so that you can use Babel without having to deal with NPM on your application (you’ll still need Node.js though).
Update your
Gemfile to include these dependencies.
source "" gem "rails", "4.2.6" gem "sqlite3" gem "uglifier", ">= 1.3.0" gem "sprockets", "~> 4.x" gem "babel-schmooze-sprockets" gem "turbolinks", "~> 5.x". You also need to load Babel helpers; they’ll be used to reduce the amount of generated code.
//= require babel //= require_tree . //= require_self
Now if you access the page on your browser, you’ll see an
alert box like this:
If you want the new module system, you still have some things to configure.
Using ES2015 modules
ES2015.6" gem "sqlite3" gem "uglifier", ">= 1.3.0" gem "sprockets", "~> 4.x" gem "babel-schmooze-sprockets" gem "turbolinks", "~> 5.x" gem "jquery-rails" source "" do gem "rails-assets-almond" end
Finally, update
app/assets/javascripts/application.js so it loads almond.
//= require turbolinks //= require almond //= require jquery //= require_tree . //= require_self
Notice that Turbolinks must be loaded before Almond; this happens because Turbolinks is an anonymous AMD module. For more information, check the section “Almond.js gotcha”, later on this article. turbolinks //= require almond //= require jquery //= require_tree . //= require_self require(["application/boot"]);
You have to create
app/assets/javascripts/application/boot.es6. I’ll listen to some events, like DOM’s
ready and Turbolinks’
turbolinks:load.
import $ from "jquery"; function runner() { var path = $("body").data("route"); // Load script for this page. // We should use System.import, but it's not worth the trouble, so // let's use almond's require instead. try { require([path], onload, null, true); } catch (error) { handleError(error); } } function onload(mod) { // Assign the default module. var Page = mod.default; //("turbolinks:load", runner);
This script needs a
data-route property property on your
<body> element. You can add something like the following to your layout file (e.g.
app/views/layouts/application.html.erb). You can use the following helper method:
# app/helpers/application_helper.rb module ApplicationHelper ACTION_ALIASES = { "update" => "edit", "create" => "new" } def js_route action_name = ACTION_ALIASES[controller.action_name] || controller.action_name controller_name = controller.class.name.underscore.gsub("_controller", "") "#{controller_name}/#{action_name}" end end
And then:
<body data-20152015 today is a viable option. With Babel you can use all these new features without worrying with browser compatibility. The integration with Asset Pipeline make things easier, even for those that don’t fully grasp the Node.js ecosystem.
There’s a working repository available at Github.
ES2015 is also known as ES.Next or ES6. ↩
This project used to be called 6to5.js. Read more. ↩ | http://nandovieira.com/using-es2015-with-asset-pipeline-on-ruby-on-rails | CC-MAIN-2017-04 | refinedweb | 647 | 61.02 |
+1 would really love to see your code for doing this.
Does this allow validation data to be re-randomized when you run different experiments?
+1 would really love to see your code for doing this.
Does this allow validation data to be re-randomized when you run different experiments?
In the course I show an end to end process for MNIST that includes both ensembling and pseudo-labeling using “dark knowledge”.
Sorry @jeremy, I ran through a number of the lectures again looking for the section you’re talking about and the closest I could find was the start of lecture 6 where you talk about ensembling and pseudo labeling and I checked the mnist code but it doesn’t contain what I’m referring to.
My understanding after watching Hinton’s talk on dark knowledge is that what he refers to as ‘dark knowledge’ is the resulting vector from the shifting of a softmax layer’s outputs via a temperature so that the relationship between objects is much clearer. The vectors he shows at around 11:35 in the lecture are the idea i’m driving at. By training a new net on those soft predictions and a subset of hard targets he’s able to get some very interesting results.
I think there’s a chance we’re talking about different things unless I’m misunderstanding.
I spend about two weeks in this competition and learned a lot, my last score is 0.05051, place at 67, close to top 5%. The tools I used are dlib, keras and mxnet.
What I learned from this competition is:
1 : Ensemble may make your results worse
2 : Remember to record down the parameters you used, excel like editor is a nice tool for this
3 : Feed pseudo labels into the mini-batch with naive way do not work(I should finished lessons 4 before I gave it a rush even I am running out of time)
4 : Leverage pretrained model is much easier to get good results
5 : How to use dlib, keras and mxnet
6 : Read the post at forums, it may give you useful info
7 : Fast ai course is awesome, I should view them earlier(just finished lesson 4)
-------------Work approach--------------------
a : dlib
1 : split the data to 5 cross with augmentation(5 times), I did not figure out
which augmentation tricks work best, however, vertical augmentation looks like a bad choice
2 : extract features by resnet34 of dlib on the training data and test data, store them
3 : Predict the labels by different combinations of the k-cross models.
4 : Submit, score is 0.06266
5 : clip the value to 0.02, 0.98, this improve the score to 0.05688
6 : validate data with random crop might improve accuracy, but I have no time to try out
b : mxnet
I reentered this competition when I got 5 or 6 days left, so I am in a hurry, solution I tried on
mxnet and keras are less sophisticated than dlib
1 : Fine tune resnet34~200 on the dataset with augmentation, no k-cross validation,
did not figure out best why to augment the data.
2 : ensemble all of the results of the models, including the results of dlibs, this improve my
score to 0.05051
-------------Non work approach--------------------
1 : I trained different models by dlibs and ensemble them, but this give me worse results.The steps are
a : Extract augmented features by resnet34, store them
b : Train k-cross models with extracted features and different "top models"
c : ensemble the results
d : clip value to 0.02, 0.98
e : get worse results
--------------My views on the library(bias)------------------
1 : keras
pros : easiest to use, lots of nice examples out there
cons : hard to extend(I want to change the way the data feed into mini-batch), maybe it is
because I am not an expert of python yet.Learn a new language is very easy, but become an expert of it is another story.
2 : mxnet
pros : more pretrained models
cons : Documents and examples are not that good, some(many) examples are outdated.I cannot figure out how to find out the numbers of layers, freezing learning rate of base layers with correct solution yet(I implement them but not sure they are correct).
3 : dlib
pros : could work as a zero dependency lib, easy to port to different platforms, a library designed to solve real world problems, apps development rather than prototype nor academic use. Nice documents, examples, high quality source codes(this is what we called modern c++
looks like).
cons : Got one pretrained model(resnet34) only, small community, lack lots of of features in deep learning world. Since it is new, we can expect there will be more features add into it in the future.
ps : I may have bias on dlib because it is written by my favorite language–c++
Thank you for this idea @Even - works like a charm. I think it even works without follow_links = True in the generator (unless it is a default value as I didn’t have to set it).
Good point - I think of ‘dark knowledge’ as referring in general to the idea of training a neural net using the full set of predictions as the target, rather than just the predicted class. That’s what we do when we do pseudo-labeling in the lessons.
I’m not aware of the shifting the layer’s outputs via a temperature as being important - although I’m not sure I’ve seen a direct comparison.
Hey, i also created some code to automate the creation of test/sample folders
import os import random import shutil def organize_folder(folder): _, _, filenames = next(os.walk(folder)) unique_classes = {filename.split(".")[0] for filename in filenames} for _class in unique_classes: path = os.path.join(folder, _class) if not os.path.exists(path): os.makedirs(path) for filename in filenames: if filename.startswith(_class): shutil.move(os.path.join(folder, filename), os.path.join(path, filename)) def create_sample_folder(_from, to, percentage=0.1, move=True): if not os.path.exists(to): os.makedirs(to) _, folders, _ = next(os.walk(_from)) for folder in folders: if not os.path.exists(os.path.join(to, folder)): os.makedirs(os.path.join(to, folder)) _, _, files = next(os.walk(os.path.join(_from, folder))) sample = random.sample(files, int(len(files) * percentage)) for filename in sample: if move: shutil.move(os.path.join(_from, folder, filename), os.path.join(to, folder, filename)) else: shutil.copyfile(os.path.join(_from, folder, filename), os.path.join(to, folder, filename))
I used organize_folder to create two folders for the dogs and cats competition, haven’t found a use for it in other competitions yet.
create_sample folder was what i used to create a sample/test/validation folders, it has served me pretty well so far.
Wow thanks tham for the write-up. its a great result, thank you for sharing your workflow.
I’ve started experimenting with Resnet50 (Keras’ builtin model), can you talk about the optimizer you use, and what kind of learning rate, decay, momentum you try with?
Thanks,
Jerry
Sorry for my late reply, recently I was spending my times on the videos and lectures of fast ai.
Yes, I do not have much times to tune the parameters, almost every models keras use the same setting.
Because I was running out of time, I trained on the whole training data set, did not split to training set and validate set
optimizer = adam
learning rate = 0.0001
momentum = default value
my top models looks like
top_model = Dense(128, activation='relu')(top_model) top_model = Dropout(0.5)(top_model) top_model = Dense(256, activation='relu')(top_model) top_model = Dense(classes, activation='softmax')(top_model)
However, keras do not improve my results, mxnet did
@tham thanks for replying. Resnet50 doesn’t have the 2 dense layers like in VGG, are you referring to VGG in this example?
Thanks,
Jerry
it is resnet50, what I did is slap the resnet and dense layers together.
base_model = ResNet50(include_top=False, weights='imagenet', input_tensor=Input(shape=(im_dim, im_dim, 3))) top_model = create_top_model(base_model, top_model_index=2, classes=2) # Slap the model and FC block together and compile model = Model(input=base_model.input, output=top_model)
Looks like the final answer wasn’t that complicated. Just throw a bunch of pretrained networks at the problem + ensembling.
So much training and training time though…I wonder, is this really applicable in real life applications?
Just seems like a grand ensemble of all possibilities, which wouldn’t be useful or applicable for real world applications?
You can try to create a single neural network that consolidates the information from your ensemble into a single simpler model.
Hi I am trying to run the ensemble notebook but I am running into a problem. When building the ensemble on the first pass when setting the weights at the top of train_dense_layer
def train_dense_layers(i, model):
conv_model, fc_layers, last_conv_idx = get_conv_model(model)
conv_shape = conv_model.output_shape[1:]
fc_model = Sequential(get_fc_layers(0.5, conv_shape))
for l1,l2 in zip(fc_model.layers, fc_layers):
weights = l2.get_weights()
l1.set_weights(weights) <------ Returns following error
the error
ValueError: You called ‘set_weights(weights)’ on layer "batchnormalization_xx with a weight list of length 0, but the layer was expecting 4 weights. Provided weights:[]…
Every time I retry the cell xx keeps increasing and when I look after the cell at the model summary the xx is always xx - 1.
Not sure I explained that very well.
So far I have discovered that dropout is causing a problem in this weight setting. All layers setting weights match until layer 4 is reached. In which we try to set the batchnormalization weights with dropout weights which of course there aren’t. Now I have to discover how to solve this.
If the layers have to match then I see the only way to get them to match is to add dropout to the l1 layers or remove dropout from the l2 layers. I tried the latter with comments which didn’t seem to work
I figured it out::
The get_fc_layers uses batch normalisation so calls to egg should use vgg16BN or remove the bn from get_fc_layers.
Thanks if you have had a similar issue
My experience was the ensemble results don’t match the position on the leader board. It is overfitting.
Took the Mnist ensemble and merged it to implement the dogscats-ensemble. The result; I moved up the leader board 150 places with respect to the original dogscacts-ensembler. (0.06668).
Changing the notebooks is quite challenging with out an xml type editor.
I want to change my latest to include Jeremy’s resnet50, but I am having problems fine tuning the model, i.e. to get dense 2 way output. I can remove (pop) the end layers or create with include_top=False but if I try to add a batch norm as per the ensemble three layers I am passing into batch norm parameters when they are not expected. Not sure what I am doing wrong
Joining the party a little late. The Dogs Vs Cats competition is closed, however I went ahead and submitted my file just to see where i was .
I was getting the validation accuracy of 0.9170 after 3 epochs following the notebook step by step. however, my logloss was pretty terrible. initially i did 0.025/0.975 and got logloss of 0.33. I then changed to 0.05/0.95 as in the notebook and it improved slightly.
Dogs and Cats predictions before clipping
Is dog predictions after clipping 0.05/0.95
Any pointers would be hugely appreciated…
Thanks
There are only 36 images within isdog where the probability is between 0.2 and 0.8 and 14 images where isdog is between 0.4 and 0.6 | http://forums.fast.ai/t/dogs-vs-cats-lessons-learned-share-your-experiences/1656/37 | CC-MAIN-2018-30 | refinedweb | 1,979 | 62.68 |
Test Run
Using Combinations to Improve Your Software Test Case Generation
Dr. James McCaffrey
Code download available at:TestRun0407.exe(132 KB)
Contents
Combinations
A Combination Class
Calculating the Number of Combination Elements
Generating All Combination Elements
Conclusion
Testing has always been a vital part of the software development process, but three recent factors have caused it to take an even more central role. First, the introduction of the Microsoft® .NET environment has dramatically improved developers' ability to write custom test automation. Test programs that took weeks to create before the .NET Framework can now be written in just hours. Second, increasingly complex systems are being built that require more sophisticated testing. Finally, software security is no longer an afterthought of the development process; it is an absolute essential. It once was possible to push a product out the door without complete testing, but this is no longer a viable option. To help you meet today's testing challenges I will show you best practices, principles, and techniques of software testing right here in this column every few months.
This month I'll begin with the role of combinations in software testing. The ability to programmatically generate combinations gives you a powerful way to generate test case input. To see what I mean about combinations, suppose you are writing a poker program. Manually generating all possible five-card test inputs would not be pleasant. But with the code in this column you can do it in minutes:
string[] deck = new string[] { "Ac", "Ad", "Ah", "As", "Kc", (...) }; Combination c = new Combination(52,5); // 52 cards, 5 at a time string[] pokerHand = new string[5]; while (c != null) { pokerHand = c.ApplyTo(deck); PrintHand(pokerHand); c = c.Successor(); }
The number of test automation scenarios in which combinations are useful is astonishing once you learn to recognize them. As another example, suppose you are testing some system that accepts user input into a textbox that holds 10 characters. One input might be "ABCDEFGHIJ" and another might be "!@#$%^&*()". You want to know how many different test cases there are. Let's assume you've determined that the character input falls into 20 equivalence classes—categories that are equivalent as far as your system is concerned. One equivalence class might be uppercase A through Z and another equivalence class might be the digits 0 through 9.
Notice that you must select 10 characters and each character must come from one of 20 categories. So you have 20 items taken 10 at a time, or Choose(20,10)—a function I'll discuss a little later in this column. Note that I have simplified this scenario. In practice, you would also need to consider permutations of each combination along with boundary conditions and many other test concepts.
Here I will build a Combination class in C# and show you how to use combinations to improve your testing effort. I think you'll find that understanding and using combinations and their associated algorithms are valuable assets.
Figure 1** Combinations Demo **
The best way to show you where I'm headed is with a screen shot. Figure 1 is a screen of a Windows®-based application that demonstrates the use of combinations. As you can see, a combination of items is a subset of those items in which order does not matter. In this example I have five items—the names Adam, Barb, Carl, Dave, and Eric—and I am interested in combinations of size 3. There are 10 possible subsets of the 5 items taken 3 at a time:
{ Adam, Barb, Carl }, { Adam, Barb, Dave }, . . . { Carl, Dave, Eric }
Notice that since order doesn't matter I don't count a subset like { Carl, Barb, Adam } because I consider it the same as { Adam, Barb, Carl }. The example in Figure 1 also illustrates that in addition to generating combinations, I need the ability to compute how many combinations there are for a particular item set size and subset size.
A mathematical combination is a generalization of this idea of subsets. Instead of being a subset of arbitrary items, a mathematical combination of order n is a subset of the integers from 0 up to n-1. So the six elements of a mathematical combination of four items taken two at a time are:
{ 0, 1 }{ 1, 2 } { 0, 2 } { 1, 3 } { 0, 3 } { 2, 3 }
As I said, combinations are enormously useful in a surprising number of areas of software test automation, development, and management. While the mathematical concepts behind combinations are old and deep, I recently discovered that, in general, combinations are not well understood by software engineers, and that the majority of combination-related code examples available on the Internet are terribly inefficient, or in many cases, just plain wrong.
Combinations
The three essential operations on mathematical combinations are illustrated in Figure 2. The output tells you that with n = 4 and k = 2, there are six combinations:
{ 0, 1 } { 1, 2 } { 0, 2 } { 1, 3 } { 0, 3 } { 2, 3 }
From this example you can see that I need to be able to create a combination, calculate how many total combination elements there are for a given set of items and subset size, and determine the successor to a particular combination element so that I can list all combination elements.
Figure 2 Combinations
static void Main() { long n = 4; long k = 2; Console.WriteLine("With n = " + n + ", and k = " + k); Console.WriteLine("There are " + Combination.Choose(n,k) + "combinations\n"); Combination c = new Combination(n,k); Console.WriteLine("The mathematical combinations are:"); while (c != null) { Console.WriteLine(c.ToString()); c = c.Successor(); } Console.ReadLine(); }
Looking a little closer at the examples, you can see that combinations have two important characteristics: the total number of items in the set (usually denoted by n in mathematical literature) and the size of the subset (usually denoted by k). Mathematical combinations can be 0-based or 1-based. I will use 0-based notation throughout this column, and use n and k for the total number of items and the number of items in the subset, respectively.
In my examples thus far I have listed the elements of the combinations in what is called lexicographic order (sometimes called dictionary order). For mathematical combinations this means that the elements, if interpreted as integers, are listed in increasing order. For example, if n = 5 and k = 3, the first element is { 0, 1, 2 } and the next element is { 0, 1, 3 } because 12 comes before 13. Notice too that the atoms (individual integers) of a combination element also appear in increasing order so there is a kind of dual ordered-ness.
An important function for combinations is the total number of elements for particular n and k values. This function is most often called Choose. So for the first example with 5 names of people I can write Choose(5,3) = 10, meaning that for 5 items taken 3 at a time there are 10 total combination elements. There are other notations and names for the Choose function that you might run into, particularly in math articles but I'll use Choose.
It is very easy to confuse a combination of n and k with a Choose function of n and k. A mathematical combination of n = 7 and k = 4 (7 items taken 4 at a time) has elements like { 0, 3, 4, 6 }, whereas the associated Choose(7,4) function returns 35 and is the total number of elements of 7 items taken 4 at a time.
Combinations are frequently confused with permutations which are all the possible arrangements of a set of items where order does matter. Say you have the names Alex, Bill, Cris, and Doug. The first three permutations in lexicographic order are { Alex, Bill, Cris, Doug }, { Alex, Bill, Doug, Cris }, and { Alex, Cris, Bill, Doug }.
A Combination Class
A mathematical combination lends itself very nicely to implementation as a class. For data members you need to store the values of n (total number of items), k (number of items in each subset element), and an array to hold the "atoms" of each combination element. The basic code that represents a Combination object and a constructor to create the first lexicographic element of the Combination object along with code to represent it as a string is shown in Figure 3. I decided to use C#, but you can easily adapt it to the .NET-based language of your choice.
Figure 3 Combination Class Definition; } public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("{ "); for (long i = 0; i < this.k; ++i) sb.AppendFormat("{0} ", this.data[i]); sb.Append("}"); return sb.ToString; }
After I put this code into a Class Library and compile, I can add a Project Reference to it and call it from a .NET Console Application, like I've done here:
Combination c = new Combination(5,3); Console.WriteLine("\nCombination c(5,3) is initially " + c.ToString());
The following output would display on the screen:
Combination c(5,3) is initially { 0 1 2 }
When the Combination constructor is invoked like so:
Combination c = new Combination(5,3);
I get an object in memory that represents the first mathematical combination element in lexicographic order of five items taken three at a time. The object in memory can be represented as shown in Figure 4.
Figure 4** Object in Memory **
The constructor code that creates the first combination element is quite simple. The two parameters that represent the total number of items and the size of the subset are stored in data members n and k, respectively. Because the values I'm dealing with can be very large, I decided to use the C# type long instead of type int. If I wanted to I could have doubled the range of values by using type ulong (unsigned long). I use the size of the subset, k, to allocate space for an array of long-named data, and then fill each cell of data with integers ranging from 0 through k-1.
Calculating the Number of Combination Elements
Now that I've determined how to create a Combination object, let's look at the second of three fundamental operations on combinations—calculating the total number of combination elements for a given total number of items n, and the subset size k. For example, if you are dealing with n = 5 items taken k = 3 at a time, there are 10 possible combination elements:
{ 0, 1, 2 } { 0, 3, 4 } { 0, 1, 3 } { 1, 2, 3 } { 0, 1, 4 } { 1, 2, 4 } { 0, 2, 3 } { 1, 3, 4 } { 0, 2, 4 } { 2, 3, 4 }
I want to implement a Choose(n,k) function that returns the number of elements; Choose(5,3) returns 10. Looking for existing Choose implementations, I was surprised to find that the most common algorithms on the Internet are very weak. Before I show you my implementation of Choose, let's briefly examine the standard implementation of a Choose function.
The standard way of coding the Choose(n,k) function uses its definition formula directly. This is an obvious but poor solution. Here's the typical Choose(n,k) function coded using C#:
// poor implementation of Choose(n,k) static int Choose(int n, int k) { int numerator = Factorial(n); int denominator = Factorial(k) * Factorial(n-k); return ( numerator / denominator ); }
The helper function Factorial is implemented as follows:
static int Factorial(int m) { int ans = 1; for (int i = m; i >= 1; —i) { ans = ans * i; } return ans; }
But there are several problems with this implementation of Choose(n,k). The most serious is that it will overflow for relatively small values of n and k. Notice that this Choose(n,k) first calculates Factorial(n), which can quickly grow into a huge number even for relatively small values of n (for example, 21! will overflow an unsigned 64-bit number). Then Choose(n,k) divides by the product of two factorials, which could also be a huge number, bringing the result back down to a relatively small number. The point is that even if Choose(n,k) returns a reasonably small value, the intermediate calculations can easily overflow.
A better implementation of Choose(n,k) calculates its answer in a different way. It turns out that Choose(n,k) can be calculated using the following alternative formula
Choose(n,k) = (<em xmlns="">n</em> * (n-1) * (n-2) * ... * (n-k+1)) / ( 1 * 2 * ... * k)
which looks ugly, but is more understandable with an example:
Choose(7,3) = (7 * 6 * 5) / (1 * 2 * 3)
Instead of computing the numerator (a big number), then the denominator (a big number), and then dividing, you can calculate partial products and divide as you go. For the Choose(7,3) example, you first calculate 7 * 6 and divide by 2, getting 24 (skipping the first 1 term on the bottom of the fraction because dividing by 1 has no effect). Then multiplying that partial product by 5 and dividing by 3, you get an answer of 35, as before.
There is a second optimization for the Choose(n,k) method that is a consequence of the following property:
Choose(n,k) = Choose(n, n-k).
For example, Choose(10,8) = Choose(10,2). This is not an obvious relationship, but if you experiment with a few examples you'll see why this is true. Calculating Choose(10,8) directly involves computing seven partial products and seven divisions, but calculating the equivalent Choose(10,2) requires only one multiplication and one division operation.
Putting these ideas together, I implemented Choose(n,k) as shown in Figure 5. In the Choose function, I do a quick check for n equal to k and return 1 when this is true. My Choose algorithm works without this check, but it improves the performance of a method that generates a specified Combination object element. The remainder of the Choose implementation calculates the total number of elements using the algorithm I just explained.
Figure 5 Efficient Choose Method Implementation
public static long Choose(long n, long k) { if (n < 0 || k < 0) throw new Exception("Invalid negative parameter in Choose()"); if (n < k) return 0;; }
Generating All Combination Elements
The third fundamental operation on combinations is generating a list of all combination elements for a given number of items, n, and subset size, k. Just like the problem of implementing the Choose function in the previous section, a search on the Internet turned up less than optimal solutions. Let's briefly look at a typical solution for generating all combination elements for given n and k values, and then I'll improve on it.
Suppose you have four items—the names Adam, Barb, Carl, Dave—and you want all combinations of these four items taken two at a time. A fragment of C# code that will generate the six elements of this combination is shown here:
// naive technique to generate all combinations Console.WriteLine("\nAll elements of 4 names, 2 at a time: "); string[] names = {"Adam", "Barb", "Carl", "Dave"}; for (int i = 0; i < names.Length; ++i) { for (int j = i+1; j < names.Length; ++j) { Console.WriteLine( "{ " + names[i] + ", " + names[j] + " }" ); } }
If you execute this code, the (correct) result will be:
{ Adam, Barb }, { Adam, Carl }, { Adam, Dave }, { Barb, Carl }, { Barb, Dave }, { Carl, Dave }.
But there are three problems. First, the technique works well if you want to generate all elements of a combination, but what if you only want some of the elements or a particular element? Second, this technique is very specific to a particular problem and doesn't generalize well. And third, it works nicely when the number of items in each subset element, k, is small, but what if k is very large? If you were interested in n = 100 items taken k = 50 at a time, you'd have to code 50 for loops or use recursion.
A better solution to the problem of generating all combination elements is to implement a Successor method that returns the next lexicographic element of a given element. If you combine Successor with an ApplyTo method that maps a mathematical combination onto a string array, you'll have an efficient, general way to produce all combination elements.
The code in Figure 6 shows the Successor method. Successor begins by checking to see if there is a next combination element. Suppose, for example, you are dealing with n = 5 items taken k = 3 at a time. There are 10 combination elements:
{ 0, 1, 2 } { 0, 3, 4 } { 0, 1, 3 } { 1, 2, 3 } { 0, 1, 4 } { 1, 2, 4 } { 0, 2, 3 } { 1, 3, 4 } { 0, 2, 4 } { 2, 3, 4 }
Figure 6 Lexicographic Successor of an Element
public Combination Successor() { if (this.data.Length ==; }
Notice that you can identify the last lexicographic element, { 2, 3, 4 }, because it is the only element which has a first atom of 2—which equals the value n-k, or in other words, it has a value of n-k at position 0. This relationship is true in general for all combinations. Likewise, you can identify the first lexicographic element, { 0, 1, 2 }, because it is the only one with a last atom of 2 or, in other words, it has a value of k-1 at position k-1. Again, this is true in general. The Successor method returns null if there is no valid next element. Alternatives to returning null would be to throw an exception or return an error code.
The algorithm to generate the Successor element does not use any special tricks. Essentially you start at the right-most atom and move left until you locate the left-most atom which should be incremented. Then you increment the atom at index i and reset all atoms to the right of i to be 1 larger than the value to its left. For example, suppose n = 5 and k = 3 and you want the successor to the combination { 0, 3, 4 }. Index i starts at cell 2 (pointing to atom value 4), and moves left until it hits cell 0 (pointing at atom value 0). That atom value is incremented to 1, and all atoms to the right (the 3 and 4) are incremented from the value to the left in the array, yielding the result { 1, 2, 3 }.
Once you have your Successor method, you need an ApplyTo method that will apply a combination element to an array of strings. The ApplyTo method is simple:
public string[] ApplyTo(string[] strarr) { if (strarr.Length != this.n) throw new Exception("Bad array size"); string[] result = new string[this.k]; for (long i = 0; i < result.Length; ++i) result[i] = strarr[this.data[i]]; return result; }
After checking to make sure that the array of strings input parameter has the correct number of strings, you create a result array with the size of the subset k. You then iterate through the input strings and store a reference to each at the appropriate cell of the result array. Like many operations that are performed with combinations, it's not entirely obvious what is happening until you trace through an example or two.
After instantiating a Combination object of the appropriate size and subset size, create an array of strings to hold the result combinations. Use a while loop to iterate through all combination elements—recall that the Successor method returns null when there aren't any more next elements—and the ApplyTo method maps the current element onto the original array of strings.
Conclusion
Combinations are an indispensable tool in planning and executing configuration testing, especially in a sub-area called interaction analysis. Suppose, for example, you need to test your product on a machine with multiple browsers and multiple media players installed. You want to test your system in conjunction with three browsers installed from a pool of eight browsers, and with two media players installed from a pool of six players. How many configuration combinations are there? How can you programmatically list these configurations? The techniques presented in this column make it easy for you to calculate that there are Choose(8,3) * Choose(6,2) = 840 possible test configurations. It also allows you to easily list all of them programmatically.
Combinations are useful when examining and testing paths of execution. I'll illustrate with a classic problem that is a surrogate for analyzing paths of execution (problems like this example are often used in interviewing test engineer candidates at Microsoft). Suppose you are developing a game. Players enter the southwest corner of a room with a tiled floor. Players must move to the northeast corner of the room by moving one tile to the east or one tile to the north (in other words players are always moving in the direction of the exit and do not backtrack). If the room is small—only 10 tiles by 6 tiles—how many different paths can the player take? Can you test all of them? If a move to the east is represented using the letter E and a move to the north is represented by the letter N, one possible path to the exit where the player moves all the way to the east wall and then straight north is:
E E E E E E E E E E N N N N N N
A different path is:
E N E N E N E N E N E N E E E E
Observe that no matter how the player moves, there will always be exactly 16 moves. Also notice that you can think of a move as "E" or "not E." If you imagine a sequence of 16 blanks, you must fill in 10 of the 16 blanks with "E" (because the remaining blanks must be "N"). So, the answer to this question is that there are Choose(16,10) = 8,008 possible paths and you can easily generate them using the code in this column.
As I said earlier, testing is a vitally important aspect of software development. Join me here next time for more tips you can put to use in your testing process.
Send your questions and comments for James to testrun@microsoft.com.
Dr. James McCaffrey works for Volt Information Sciences Inc. where he manages technical training for software engineers at Microsoft. He has worked on several Microsoft products including Internet Explorer and MSN Search. James can be reached at jmccaffrey@volt.com or v-jammc@microsoft.com. | https://docs.microsoft.com/en-us/archive/msdn-magazine/2004/july/using-combinations-to-improve-your-software-test-case-generation | CC-MAIN-2020-05 | refinedweb | 3,763 | 51.28 |
I pasted my code here, I didn't use the approach that reverse the second half of the list, but I think my solution should also work. Could anyone point out where I'm wrong please. I failed to pass the input of :Last executed input: {3,2,3,3,3,1,3,1,3,3,1,1,3,3,2,1,1,1,1,2,1,1,2,1,2,1,3,2,...........
public class Solution { public void reorderList(ListNode head) { // IMPORTANT: Please reset any member data you declared, as // the same Solution instance will be reused for each test case. ListNode slow = head; ListNode fast = head; boolean odd = false; if (head==null){ return; } while (fast.next!=null && fast.next.next!=null){ fast = fast.next.next; slow = slow.next; } if (fast.next==null){ odd = true; } reorder (odd, slow, head); } public ListNode reorder(boolean odd, ListNode mid, ListNode head){ ListNode res; if (head==mid){ if (odd){ res = head.next; head.next=null; return res; } res = head.next.next; head.next.next=null; return res; } ListNode current = reorder(odd, mid, head.next); res = current.next; current.next = head.next; head.next = current; return res; }
}
I met the same problem before. I guess it is because the recursion depth is too large, then cause stack over flow. Then I implement it using iterative method, it accepted.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect. | https://discuss.leetcode.com/topic/320/i-have-the-same-problem | CC-MAIN-2017-34 | refinedweb | 240 | 68.36 |
I'm a newbie for Meteor.js and working on a project where I'm also using Redux so I added the kyutaekang:redux package. The problem is that I don't know how to import Redux to use it. I tried:
import { createStore } from 'redux';
[Error: Unable to fetch "redux". Only file URLs of the form allowed running in Node.]
Meteor does not yet support the ES2015
import out of the box (might be available in 1.3.0). Therefore, you will need a modern module bundler, as also described in the package's Readme file:
This assumes that you’re using npm package manager with a module bundler like Webpack or Browserify to consume CommonJS modules.
You can take a look at this excellent example by Adam Brodzinski to get you started.
Edit:
After taking a closer look at the package, it does not seem to contain any code.
Nonetheless, my recommendation about Adam's repo (or his other repo, pointed in the comments) still remains as a nice, clean implementation. | https://codedump.io/share/XUwuIERxUr3S/1/using-redux-in-meteorjs | CC-MAIN-2018-26 | refinedweb | 173 | 63.39 |
I'm very interested in to @Data and @Setter / @Getter annotation. Our
internal policy requires that we document every getter/setter method
in order to generate a clean java documentation, is there any
workaround in this regard?
Kind regards
public class User {
/**
* Returns the name of the user.
*
* @return The name of the user.
*/
public String getName() {
return this.name;
}
}
is very very broken, even though I see it fairly often and is a style
espoused in many enterprise settings. It's broken because it repeats
itself ad nauseam, and violating the 'Dont-Repeat-Yourself' principle
is always bad (see footnote 1), and in this case, worse, 2 of the 4
repeats are in comments, and comments are _impossible_ to unit/
integration/regression test. Therefore, any need to change name later
will most likely result in an outdated (and probably confusing and
wrong) until someone bothers to notice it.
The pragmatic endresult for the API user is this:
- documentation that is needlessly long and repetitive (User.getName
() returns the "name" of the "User"? I really need the docs to tell me
this!)
- documentation is going to run out of date. For example, if
User.getName() is later changed to getFullName and a method,
getNickName is added, then the original documentation is less useful
than the method name and can get confusing.
The pragmatic endresult for the ones coding the API is this:
- source files explode into truly stupendously large files (500+
lines for a simple @Data class that, with lombok and no javadoc, would
have been 5)
- many violations of DRY, some of which can't even be tested.
- all in all this spells out: Massive maintainance headache.
The solution to this problem is to stop seeing missing javadoc as
indicative of a broken state. Comments are BAD and this extends to a
certain extent to javadoc: If the code itself, by using clear
structure and properly chosen names of things (parameters, methods),
conveys its meaning naturally, then that is always far superior to
writing comments, which run out of date and cannot be tested.
We're unfortunately not always in a position to change the accepted
style rules, even if they aren't very good, so we may be able to cater
to this scenario. Also, there's the situation where a basic getter/
setter DOES in fact need documentation to highlight certain specific
stuff that can't be conveyed in the field name, so let's brainstorm a
solution to this.
We could copy any javadoc on the field over to the getter and setter,
and 'link' the getter and setter to each other using an @see
annotation. But, the javadoc for a getter and for a setter aren't the
same. 3 solutions spring to mind:
1. Copy over the javadoc, and add a specific line that is just
"returns the (fieldName) from the (className)" and "sets the
(fieldName) for the (className)" along with @returns and @param. This
way if you want the standard javadoc you just have to javadoc the
field with /** */ and we'll add the rest.
2. Accept the javadoc that's there as the getter javadoc, and generate
nothing for the setter, unless there's a top level div or p tag in the
javadoc with 'class="setterDocs"'. In that case we rip out the
contents, use that as setter javadoc, and leave the rest as getter
javadoc. We'll take any @return that's there as being for the getter,
and any @param as for the setter.
I'm leaning towards #2 as doing #1 just feels like propagating a
ridiculous java practice. With #2, you can generate the drudgery
javadoc like so:
* Returns the name of the User.
* <div class="setterDocs">
* Sets the name of the User.
* </div>
*
* @param name The new name of the User.
* @return The name of the User.
*/
@Getter @Setter private String name;
As a last bit of boilerplate reduction, we may allow a templatey way
to fill this in:
* {@lombok default}
*/
@Getter @Setter private String name;
What do you think? Which one seems more likely to work for you? What
syntax would be good for this? The stuff I've reproduced below is just
a strawman syntax so we have something to point at while we discuss
options.
footnote 1: Why is DRY bad?
DRY is bad for two reasons:
1. it's a maintainance nightmare; if ever you want to change something
that's been repeated elsewhere, you break stuff unless you change it
in all other places as well. The IDE can figure out the link between
'foo.method()' and the declaration of 'method' in Foo.java, but it is
far less good at seeing such links in other places.
2. The information density of repeated stuff is by definition bad: It
has the complexity density of the thing you copied, but, as it is
repeated info, the information density is low. The good scenario is
for stuff to carry a lot of information (high information density) but
not be very hard to understand (low complexity density). DRY
violations are the reverse.
Let's consider this example :
private String fileEncoding = null;
* Get the file encoding. Most common values are UTF-8, Latin2.
* @return fileEncoding, The file encoding, null = auto-detect.
*/
public String getFileEncoding();
* Set the file encoding, if not set by the user, we will try to detect
it using byte order mark.
* @param fileEncoding The file encoding, null = auto detect.
*/
public String setFileEncoding(String fileEncoding);
Ok, please do not focus on how java compliant it is, I know there
might be classes or constants in the JDK related to encodings.
A solution that seems reasonable to me would be to share the same
documentation block between the getter and the setter, I mean the
remarks concerning null acceptation, auto-detect, possible values, are
all part of the same *property* documentation. I'm not sure it's that
common to have completely different comments between a getter and a
setter that affect the same member variable, so why not describing it
as a property.
Once that property is properly documented, there's not much left to
say in @param and @return, a default text like "the current value
of", "new value for" would be more than enough..
What do you think?
I agree that some extra note can be useful. I was imaginating this one
variant when I was writing following issue:
v6ak
On Jan 13, 1:48 pm, v6ak <v...@volny.cz> wrote:
> On 13 led, 11:48, StefCl <stefatw...@gmail.com> wrote:
>
> >.
>
> I agree that some extra note can be useful. I was imaginating this one
> variant when I was writing following issue:
>
> v6ak | https://groups.google.com/g/project-lombok/c/m-6mhcXoVSk | CC-MAIN-2022-21 | refinedweb | 1,112 | 62.17 |
Implementing a WCF service based on REST and JSON
In this article we are going to see how to write a WCF Service Based on REST and JSON..
The AJAX-Enabled WCF Service template defines a class that can be used to create a WCF service for use with AJAX.
For example, Let us create a service to display the Employee salary based on the EmployeeId.
Step 1: Open Visual Studio and Create a ASP.NET website and name it as "MyEmpSite" as shown below:
Step 2: Now add "AJAX-Enabled WCF service" to the website. Right click on "MyEmpSite" and Add New Item. Select "AJAX-Enabled WCF service" template and name it as EmpService.svc as shown below:
When the AJAX enabled WCF service is added to the site,Visual Studio updates the Web.config file. Observe the following configuration file section. Notice the
thus be consumed by AJAX. Here webHttpBinding binding is used, indicating
again that this service is called via HTTP.
Step 3: Write the code shown below in this service.
namespace EmpServices
{
[ServiceContract(Namespace = "EmpServices")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class EmpService
{
[OperationContract]
[WebInvoke]
public double GetEmpSalary(int empId)
{
//You can write the code to get the data from database.
//For simplicity I wrote switch case here.
switch (empId)
{
case 1: return 3000;
case 2: return 5000;
case 3: return 45000;
}
//If the empId is not matching throw an error.
throw new ApplicationException("No data");
}
}
}
Here we have written "EmpService" class in the EmpServices namespace. In this class we have the method "GetEmpSalary". The service method is marked with the WebInvoke attribute. This indicates that the method can be called by an HTTP request using HTTP POST.
Step 4: Calling a JSON-Based WCF Service from AJAX:
Add a ScriptManager control to your page. In the ScriptManager control, set a service reference to the RESTful WCF service "EmpService.svc". Doing this will define a JavaScript proxy class for you to call. This
proxy class manages the call from the AJAX-enabled page to the WCF service(EmpService.svc). Following is the code.
<asp:ScriptManager
<Services>
<asp:ServiceReference
</Services>
</asp:ScriptManager>
Step 5:Update the web.config file as shown below to include the EmpServices namespace in the service configuration:
<services>
<service name="EmpServices.EmpService">
<endpoint address="" behaviorConfiguration="EmpServiceAspNetAjaxBehavior"
binding="webHttpBinding" contract="EmpServices.EmpService" />
</service>
</services>
Step 6: Write the below code in Default.aspx page:
<asp:Content
<script language="javascript" type="text/javascript">
function GetEmpSalary() {
var service = new EmpServices.EmpService();
service.GetEmpSalary(document.forms[0].MainContent_txtEmpId.value, onSuccess, onFail, null);
}
function onSuccess(result) {
MainContent_lblSalary.innerText = result;
}
function onFail(result) {
alert('No Data');
}
</script>
</asp:Content>
In the above code, we create an instance of the EmpService service and call the "GetEmpSalary" method of the service. Notice that this method accepts below parameters:
1.The value entered by the user in the "txtEmpId" textbox.
2.The reference to the JavaScript method "onSuccess". This method is called by the ScriptManager after the service is called and success is returned. Here, a successful call writes the results to a Label control.
3.The reference to the JavaScript method "onFail". This method is called by the ScriptManager after the service is called and the call fails due to some error.
Now define a script block on your page to call the proxy class that is generated based on the above service reference. In our example, the service takes an Employee ID.
Step 7: Now add the below code to the Default.aspx page:
<asp:Content
Emp Id: <asp:TextBox</asp:TextBox>
<input name="btnGetSalary" type="button" value="Get Salary" onclick="GetEmpSalary()" />
<asp:Label</asp:Label>
</asp:Content>
In the above code we have added few controls. When the user enters a value in the textbox (txtEmpId) and clicks the button "btnGetSalary", It calls the method : "GetEmpSalary()". this method call the service method and if the call is successful, it calls the onSuccess Javascript method else it calls the onFail Javascript method if the call fails.
| http://www.dotnetspider.com/resources/45303-Implementing-WCF-service-based-REST-JSON.aspx | CC-MAIN-2018-39 | refinedweb | 665 | 57.87 |
Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.
Juan Jose Garcia-Ripoll
<juanjose.garciaripoll@...> writes:
> On Fri, Feb 19, 2010 at 7:55 PM, Tobias C. Rittweiler <tcr@...>wrote:
>
>> Juan Jose Garcia-Ripoll writes:
>>
>> > On Wed, Feb 17, 2010 at 8:55 PM, Tobias C. Rittweiler <tcr@...>
>> wrote:
>> > There is now a function called EXT:ALL-ENCODINGS that lists all
>> > available encoding names.
>> >
>> > Juanjo
>>
>> That seems to return the same list regardless of whether ECL was built
>> with --enable-unicode or --disable-unicode.
>>
>
> This is because you forgot to cleanup your installation when using
> --disable-unicode : there is a stale directory of encodings left out in
> lib/ecl-10.2.1 or whatever. I will add a bit more intelligence to the
> function to avoid this problem.
Oh, ok.
>
>> Your Slime patch which just comments out the definition of
>> FIND-EXTERNAL-FORMAT in swank-ecl.lisp is not really right. Even when
>> ECL was built without unicode, it supposedly supports (all or some of,
>> pardon my ignorance on this issue) the LATIN-N encodings.
>>
>
> No, it does not. It uses whatever encoding the OS has, but we have no way to
> know which one. For that reason in that case no external format symbol is
> supported except :DEFAULT The fact that it uses an I/O function called
> latin1* internally is because it is just an 8-bit reading function and I did
> not want to duplicate lines of code.
So (EXT:ALL-ENCODINGS) will only return (:DEFAULT)?
-T.
View entire thread | http://sourceforge.net/p/ecls/mailman/message/24597116/ | CC-MAIN-2014-35 | refinedweb | 271 | 66.03 |
Send events to Azure Event Hubs using the .NET Framework
Event Hubs is a service that processes large amounts of event data (telemetry) from connected devices and applications. After you collect data into Event Hubs, you can store the data using a storage cluster or transform it using a real-time analytics provider. This large-scale event collection and processing capability is a key component of modern application architectures including the Internet of Things (IoT).
This tutorial shows how to use the Azure portal to create an event hub. It also shows how to send events to an event hub using a console application written in C# using the .NET Framework. To receive events using the .NET Framework, see the Receive events using the .NET Framework article, or click the appropriate receiving language in the left-hand table of contents.
To complete this tutorial, you need the following prerequisites:
- Microsoft Visual Studio 2017 or higher.
- An active Azure account. If you don't have one, you can create a free account in just a couple of minutes. For details, see Azure Free Trial.
Create an Event Hubs namespace and an event hub
The first step is to use the Azure portal to create a namespace of type Event Hubs, and obtain the management credentials your application needs to communicate with the event hub. To create a namespace and event hub, follow the procedure in this article, then proceed with the following steps in this tutorial.
Create a sender console application
In this section, you write a Windows console app that sends events to your event hub.
In Visual Studio, create a new Visual C# Desktop App project using the Console Application project template. Name the project Sender.
- In Solution Explorer, right-click the Sender project, and then click Manage NuGet Packages for Solution.
Click the Browse tab, then search for
WindowsAzure.ServiceBus. Click Install, and accept the terms of use.
Visual Studio downloads, installs, and adds a reference to the Azure Service Bus library NuGet package.
Add the following
usingstatements at the top of the Program.cs file:
using System.Threading; using Microsoft.ServiceBus.Messaging;
Add the following fields to the Program class, substituting the placeholder values with the name of the event hub you created in the previous section, and the namespace-level connection string you saved previously.
static string eventHubName = "Your Event Hub name"; static string connectionString = "namespace connection string";
Add the following method to the Program class:))); } catch (Exception exception) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("{0} > Exception: {1}", DateTime.Now, exception.Message); Console.ResetColor(); } Thread.Sleep(200); } }
This method continuously sends events to your event hub with a 200-ms delay.
Finally, add the following lines to the Main method:
Console.WriteLine("Press Ctrl-C to stop the sender process"); Console.WriteLine("Press Enter to start now"); Console.ReadLine(); SendingRandomMessages();
- Run the program, and ensure that there are no errors.
Congratulations! You have now sent messages to an event hub.
Next steps
Now that you've built a working application that creates an event hub and sends data, you can move on to the following scenarios: | https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-dotnet-framework-getstarted-send | CC-MAIN-2018-34 | refinedweb | 520 | 57.16 |
1.1 Bugs?
- pruppert222
I am not sure if this will catch on, but I thought it might be helpful to have a thread for bugs noticed in the new update. I have noticed at least 2 possible bugs so far.
- MMD tables only display in the preview if the global MMD setting is on. Tables do not display if MMD setting is off, even if the individual Tables setting is on.
- When viewing the documentation within the iPhone's web browser, tapping on the "copy" button at the top of a python code window returns an error "The URL can't be shown" and the code is not copied to the clipboard.
Found one bug so far.
The following syntax for images does not work for images in Dropbox (haven't tested in local since I never use it) when the MMD option is enabled in the "Settings -> Markdown -> HTML PREVIEW" section.
Works as expected when MMD is disabled.
Another bug. Images refered to in Dropbox do not print in either MMD or non-MMD mode. (See previous comment for code.)
Brand new purchaser, still finding my way. Not sure if this is a bug, but it seems to me that TextExpander snippets are not updating on iPhone. I made some changes, but the old snippet is still appearing, despite multiple "refreshes" of snippets on both TextExpander and in Editorial. Drafts uses the new version happily.
Amazing product, by the way.
Thanks all, I'll look into these.
I can't set keyboard shortcuts for my own workflows. External keyboard works fine. Built-in presets are working, too.
- MartinPacker
The image one would be pretty serious for me. I have a problem I'm finding very hard to troubleshoot with footnotes. If I can codify it I'll post.
- minnepicker
When I open taskpaper documents, they don't display the taskpaper formatting. If I open settings and flip the checkboxes switch off then back on again, it usually works after that.
Peace,
Dan
I had some flickering in browser mode on iPhone last night. Only the Status bar and the bottom bar were doing it. Only noticed it the one time though.
Also, I guess it's a bug.mwell, to be honest, I have no idea what the heck this was. I was taking notes in my astronomy lab today and I wasn't typing at the time, but looked at my screen, with Editirial 1.1 open with a markdown file, and out of nowhere, in the current cursor position, three purple dots appeared, like an ellipses used to indicate "Loading..." In some apps, (they were about the size of the dots in the game, Dots). Then text appeared where the dots had been. I meant to get a screenshot, but it said something like "F. Don't have the change 5000. Bring" or very similar to that. In v1.0, I sometimes would hit the return key while outlining and I'd get a year automatically inserted. Well, a four digit number. Only a few times and I figured it was my iOS keyboard being dumb, but this was different. My iOS keyboard is pretty dumb, but still - as in it likes to put a question mark before a random word sometimes like ?this.
Anyways, any ideas on what could cause something like that without me even touching the keyboard? Am I just crazy maybe? Thanks.
Anyways, any ideas on what could cause something like that without me even touching the keyboard? Am I just crazy maybe? Thanks.
The purple dots would indicate that you've triggered dictation somehow.
I have been enjoying Editorial 1.1 and the new ui module. I have run into a problem with the Segmented Control class. When I try to access the segments method in Segmented Control, I get a list of only the first segment. For example:
import ui def segment_changed(sender): index = sender.selected_index print sender.segments[index] view = ui.View() view.name = 'Demo' view.background_color = 'white' segmented_control = ui.SegmentedControl() segmented_control.name = 'segmentedcontrol1' segmented_control.segments = ('First','Second') segmented_control.action = segment_changed view.add_subview(segmented_control) view.present()
This will print out:
First First
If you select the first segment and then the second segment. This will continue for whatever the segment you press is. I tried renaming the segments, but it still only gives you the first segment. If you change the action method to:
def segment_changed(sender): print sender.segments
It will print out:
('First', 'First')
So I believe this to be a bug in the SegmentedControl class in the ui module.
@omz: Please let me know what you think is going on
@everyone else: Let me know if you get similar results and if you found a fix!
It will print out:
('First', 'First')
So I believe this to be a bug in the SegmentedControl class in the ui module.
This definitely looks like a bug. Thanks a lot, I'll look into it.
@omz that's interesting. I wasn't touching the device and even if I had activated that, nobody was speaking at the time, and certainly wouldn't have said anything close to what it typed. Weird. I wonder what could cause that and if it's really an issue in iOS and not Editorial. Thanks for the input. 1.1 is a beast! Love it. Thanks.
Sorry if this has been covered elsewhere (it didn't seem to be):
The Extract Range action can handle negative values, but (at least on the iPhone version) the keyboard that pops up is the numeric one, so I can't input a negative number.
I actually just realized that what I really want is Remove Whitespace (I was trying to do 1:-1), but it still seems like a bug.
- anatomatic
This is more of an user-interaction edge case than a bug:
When reading a long markdown document in Preview, there are relative links to text files, e.g.
[Another File](/reference-file.txt). Click the link to the relative file and it displays in preview as black monospaced plain text on white. In order to go 'back' to the originating preview you must go back to the editor, make a change, then return to Preview for the refreshed markdown preview of the initial document. (Note: a change must be made to revert the preview to the original document. Otherwise Preview is stuck on the relative file in plain-text mode.)
Possible solution: a 'back' button that appears when you open a second document in preview. An added bonus: showing the referenced text file as a rendered preview.
- pruppert222
Not sure this has been mentioned anywhere, but Editorial preview panel is not showing any document’s first line of text. Bug?
@pruppert, have you rebooted the entire ipad already? Something like that is hard to reproduce.
What is the first line? If it is in the format of metadata, then it wouldn't show (multimarkdown).
See if it shows up if you change options in your markdown HTML View settings.
Well, I guess this has happened before, but I wasn't doing anything major then.
I left the browser view to go into another app, and when I came back, it was still there for a few seconds, then Editorial closes and re-opens to a blank browser page. I was editing a forum post!
Major bug. It doesn't reload my page either.
By the way, any plans on adding tabs to the browser?
I made a workflow that changes the input of a web-view by selection of an option from a table view.
It didn't crash at first, so I know it should work, but yet it keeps crashing. Could this be a bug?
I changed it from a table-view to three buttons, and now it workd. Seems like a bug in the table-view control.
UI Designer Bug
There are many bugs i am finding, having dug deeper into python scripting.
One major annoyance right now is that when I make a custom action or python script that uses the ui designer, and thereafter make another python script that uses the ui designer, Editorial can't bind actions to controls, because it stlil has the former script in memory.
Warning: Couldn't bind action 'change' of 'switch'
(There is no action "change")
Sometimes I have to just place a new control in the UI designer for the current script, and it will get rid of the error. Right now however, that int working. | https://forum.omz-software.com/topic/1611/1-1-bugs | CC-MAIN-2018-47 | refinedweb | 1,423 | 74.59 |
Examine or change the signal mask for a thread
#include <signal.h> int sigprocmask( int how, const sigset_t *set, sigset_t *oset );.
The set argument isn't changed. The resulting set is maintained in the process table of the calling thread. If a signal occurs on a signal that's masked, it becomes pending, but doesn't affect the execution of the process. You can examine pending signals by calling sigpending(). When a pending signal is unmasked, it's acted upon immediately, before this function returns.
When a signal handler is invoked, the signal responsible is automatically masked before its handler is called. If the handler returns normally, the operating system restores the signal mask present just before the handler was called as an atomic operation. Changes made using sigprocmask() in the handler are undone.
The sigaction() function lets you specify any mask that's applied before a handler is invoked. This can simplify multiple signal handler design.
#include <stdio.h> #include <stdlib.h> #include <signal.h> #include <unistd.h> int main( void ) { */ return( EXIT_SUCCESS ); }
POSIX 1003.1 CX
kill(), pthread_sigmask(), raise(), sigaction(), sigaddset(), sigdelset(), sigemptyset(), sigfillset(), sigismember(), signal(), SignalProcmask(), sigpending() | http://www.qnx.com/developers/docs/6.5.0_sp1/topic/com.qnx.doc.neutrino_lib_ref/s/sigprocmask.html | CC-MAIN-2019-47 | refinedweb | 190 | 52.36 |
Animated graph with matplotlib.animation
Hello
i've code in python 3 to make animated graph with datas coming in realtime
for this, i use
ani = FuncAnimation(fig, update, frames=np.linspace(0,40, 4096), init_func=init, blit=True) plt.show()
with update function where i update the graph objects
it works well on my desktop
In pythonista it shows the first frame then exit like the animation loop is not implemented. It does the init function only
Do you have any clue on this issue ?
Thanks in advance :)
You might try with the backend_pythonista, however many features are not implemented (like blit).
Plt.show shows a plot to the console, but it is a static image.
For animating specific types of data, you will be better off going with a custom view, since vector ops are a lot faster than generating a whole image each frame.
Hi:
Is not possible to animate graphs yet? I took some examples and they’re not working. I’m sharing one of them:
import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation def data_gen(): t = data_gen.t cnt = 0 while cnt < 1000: cnt+=1 t += 0.05 yield t, np.sin(2*np.pi*t) * np.exp(-t/10.) data_gen.t = 0 fig, ax = plt.subplots() line, = ax.plot([], [], lw=2) ax.set_ylim(-1.1, 1.1) ax.set_xlim(0, 5) ax.grid() xdata, ydata = [], [] def run(data): # update the data t,y = data xdata.append(t) ydata.append(y) xmin, xmax = ax.get_xlim() if t >= xmax: ax.set_xlim(xmin, 2*xmax) ax.figure.canvas.draw() line.set_data(xdata, ydata) return line, ani = animation.FuncAnimation(fig, run, data_gen, blit=True, interval=10, repeat=False) plt.show()
@Kephy I don't know anything about matplotlib but try this little script, perhaps it could help you to start.
from io import BytesIO import numpy as np import matplotlib.pyplot as plt import ui v = ui.ImageView() v.frame = (0,0,400,400) v.present('sheet') a = np.array([]) fig, ax = plt.subplots() for i in range(20): # update the data a = np.append(a,np.random.randn(10)) plt.plot(a) b = BytesIO() plt.savefig(b) plt.close(fig) # free memory v.image = ui.Image.from_data(b.getvalue())
Thanks. So grateful. ☺️ | https://forum.omz-software.com/topic/4309/animated-graph-with-matplotlib-animation | CC-MAIN-2022-05 | refinedweb | 381 | 62.75 |
Applications..
If an error occurs in a transaction, or if the user decides to cancel the transaction, then roll the transaction back. A ROLLBACK statement backs out all modifications made in the transaction by returning the data to the state it was in at the start of the transaction. A ROLLBACK also frees resources held by the transaction.
You can identify when Database Engine transactions start and end with Transact-SQL statements or API functions and methods..
Database APIs such as ODBC, OLE DB, ADO, and the .NET Framework SQLClient namespace contain functions or methods used to delineate transactions. These are the primary mechanisms used to control transactions in a Database Engine application.). | http://msdn.microsoft.com/en-us/library/ms175523.aspx | crawl-002 | refinedweb | 113 | 55.24 |
A friend and I are working on a simple game, and I have run into a roadblock. The program contains a class, called Area, whose purpose is to read in a series of coordinate pairs into an arraylist that tell the runner class where to place environmental sprites (trees, roads, houses, etc.) in the game screen. At the start of the game, the runner class reads these Area instances into a 2-dimensional array, so you'd have new Area(0,0) , new Area(0,1) ,etc.
The problem I'm having is that, while the Area class functions when the constructor is called from a public static void main within itself, when the runner class tries to create a new Area instance, it throws a FileNotFoundException. Can someone look at this code and help me figure out why it's not working?
public class Area { public static void main(String[]args){ Area area = new Area(0,0); } int x = 0; int y = 0; public ArrayList<int[]>roads = new ArrayList<int[]>(); public ArrayList<int[]>trees = new ArrayList<int[]>(); Scanner input = null; String line = null; String[] locs = null; String search = null; boolean go = true; File file = new File("Areas.txt"); public Area(int xCoord, int yCoord){ x = xCoord; y = yCoord; search = (xCoord + " " + yCoord); try{ input = new Scanner(file); } catch (FileNotFoundException ex) { System.out.println("Cannot open Areas.txt"); System.exit(1); } //all the code past this point is for reading in the coordinate data; it works fine } | http://www.javaprogrammingforums.com/whats-wrong-my-code/15956-class-throws-filenotfoundexception-when-called-another-class.html | CC-MAIN-2014-35 | refinedweb | 246 | 66.27 |
#include "lwip/opt.h"
#include "lwip/def.h"
Go to the source code of this file.
Set an IP address given by the four byte-parts
Definition at line 139 of file ip_addr.h.
Definition at line 212 of file ip_addr.h.
Determine if two address are on the same network.
Definition at line 194 of file ip_addr.h.
Safely copy one IP address to another (src may be NULL)
Definition at line 164 of file ip_addr.h.
Safely copy one IP address to another and change byte order from host- to network-order.
Definition at line 175 of file ip_addr.h.
Determine if an address is a broadcast address on a network interface
Definition at line 55 of file ip_addr.c.
Checks if a netmask is valid (starting with ones, then only zeros)
Definition at line 90 of file ip_addr.c.
Ascii internet address interpretation routine. The value returned is in network order.
Definition at line 130 of file ip_addr.c.
Check whether "cp" is a valid ascii representation of an Internet address and convert to a binary address. Returns 1 if the address is valid, 0 if not. This replaces inet_addr, the return value from which cannot distinguish between failure and a local broadcast address.
Definition at line 152 of file ip_addr.c.
Referenced by ipaddr_addr().
returns ptr to static buffer; not reentrant!
Convert numeric IP address into decimal dotted ASCII representation. returns ptr to static buffer; not reentrant!
Definition at line 261 of file ip_addr.c.
Same as ipaddr_ntoa, but reentrant since a user-supplied buffer is used.
Definition at line 276 of file ip_addr.c.
Referenced by ipaddr_ntoa(). | https://doxygen.reactos.org/d8/d88/ipv4_2lwip_2ip__addr_8h.html | CC-MAIN-2020-29 | refinedweb | 272 | 61.53 |
- View groups
- Create a group
- Add users to a group
- Request access to a group
- Prevent users from requesting access to a group
- Change the owner of a group
- Remove a member from the group
- Filter and sort members in a group
- Mention a group in an issue or merge request
- Change the default branch protection of a group
- Add projects to a group
- Group activity analytics
- Share a group with another group
- Manage group memberships via LDAP
- Transfer a group
- Change a group’s path
- Use a custom name for the initial branch
- Remove a group
- Restore a group
- Prevent a project from being shared with groups
- Prevent members from being added to a group
- Restrict group access by IP address
- Restrict group access by domain
- Group file templates
- Disable email notifications
- Disable group mentions
- Enable delayed project removal
- Prevent project forking outside group
- Group push rules
- Related topics
- Troubleshooting
Groups
To view groups:
- In the top menu, select Groups > Your Groups. All groups you are a member of are displayed.
- To view a list of public groups, select Explore public groups.
You can also view groups by namespace.
Names linked issues and merge requests checkbox.
- Select Remove member.
Filter and sort members in a group
- Introduced in GitLab 12.6.
- Improved in GitLab 13.7.
- Feature flag removed in GitLab 13.8.
To find members in a group, you can sort, filter, or search.
Filter
You can search for members by name, username, or email.
- Go to the group and select Members.
- Above the list of members, in the Filter members box, enter search criteria.
- To the right of the Filter members box, select the magnifying glass ().
Sort ( or ).
Mention from the dropdown menu.
Specify who can add projects to a group
- Introduced in GitLab Premium 10.5.
- Brought to GitLab Starter in 10.7.
- Moved to GitLab Free.
Group activity analytics
- Introduced in GitLab Starter 12.10 as a beta feature.
For a group, you can view how many merge requests, issues, and members were created in the last 90 days.
These Group Activity Analytics can be enabled with the
group_activity_analytics feature flag.
View group activity
You can view the most recent actions taken in a group.
- From the top menu, select Groups > Your Groups.
- Find the group and select it.
- From the left menu, select Group overview > Activity.
To view the activity feed in Atom format, select the RSS () icon.
Share.
Share group after enabling this feature:
- Go to your group’s page.
- In the left sidebar, go to Members, and then select Invite a group.
- Select a group, and select a Max access level.
- (Optional) Select an Access expiration date.
- Select Invite..
Create group links via CN
LDAP user permissions can be manually overridden by an administrator. To override a user’s permissions:
- Go to your group’s Members page.
- In the row for the user you are editing, select the pencil () icon.
- Select the brown Edit permissions button in the modal.
Now you can edit the user’s permissions from the Members page.
Transfer.
Use
Introduced in GitLab 12.8.
To restore a group that is marked for deletion:
- Go to your group’s Settings > General page.
- Expand the Path, transfer, remove section.
- In the Restore group section, select Restore group.
Prevent
- Introduced in GitLab Ultimate 12.0.
- Moved Groups and Projects
To enable group file templates:
- Go to the group’s Settings > General page.
- Expand the Templates section.
- Choose a project to act as the template repository.
- Select Save changes.
Disable disable group mentions:
- Go to the group’s Settings > General page.
- Expand the Permissions, LFS, 2FA section.
- Select Disable group mentions.
- Select Save changes.
Enable delayed project removal.
Prevent project forking outside group.
- DORA4 Project Analytics API: View deployment frequency analytics. Introduced in GitLab Ultimate 13.9 as a Beta feature.
-.
Troubleshooting
Verify. | https://docs.gitlab.com/13.11/ee/user/group/index.html | CC-MAIN-2021-21 | refinedweb | 641 | 68.16 |
This is my first time posting here so I hope that I get the posting procedures correct. I am currently taking a C# programming class and our teacher has assigned us a project that entails us designing a C# Farkle Game. If you haven't played Farkle before (which I haven't prior to taking this class) all you really need to know is it's basically like Yahtzee. You roll six dice and try to get the most points out of the dice you hold, then roll again but minus the dice you've already held aside... if that makes sense. Well, I have to create a form that controls the Farkle board then create another class that can ONLY be for code whos' sole purpose is to calculate the score of the held dice. However, the kicker is that I can't use any code that represents picture boxes, labels, text boxes, etc. Just old school c++ style code (i.e. arrays, ints, doubles, etc.).
Using the code below, my problem is that after the user rolls the dice and holds whatever dice/he she wants, I need a way to pass the dice that was held to the other class for calculating the best score. I can figure that out, however I can't figure out how to pass which dice was held to the other class. Since I can't use images, pictureboxes, etc. in the other class per my professor, my plan is as follows (starting after the 'Roll Dice' button has been clicked and the user checks which dice he/she wants to hold THEN clicks the 'Roll Dice' Button again):
Use the for loop(s) and if/else statements to go through and find out which dice was (or wasn't held). If the dice wasn't held, then go ahead and randomize the dice. If the dice was held, then somehow store the value of the dice in temp_array. My thought process in doing this was since the imageList1 stores all the dice*.png images (i.e. index 0 = 1, index 1 = 2, etc.) then I could somehow store the index of the dice in the temp_array and pass the temp_array to the other class for review and ultimately scoring. However, I can't get the pogram to read the index and respective dice face correctly. If I go in and click 'Roll Dice' the first time to randomize the dice, hold my dice, then click the array again, the value of index that pops up in label1 (which is just there to test what is being passed to my other class) isn't correct. I need to find out a way to store the face of the dice being held in an array so I can use it later in my other class. I can't figure out what I am doing wrong!! I go through each iteration on a piece of paper and everything seems to add up correctly. Any help is greatly appreciated. The code for the form is below. Also, an image is attached as well of what the form looks like after I select which dice to hold and click 'Roll Dice'. Please keep in mind that my professor put something in my code that I didn't take out before this post that sets the label1 label to all zeros initially so you are going to have to disregard the first six zeros. Sorry. However, as you can see, 2 and 3 are not the dice that I held.
Thanks in advance for your help!!! There are several events below but the 'Roll Dice' click event is the one (I think) is causing the problem.
using System; using System.IO; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace HonorsPracticeFarkle { public partial class Form1 : Form { ImageList imageList1 = new ImageList(); private Random m_rand = new Random(); private int[] i_array = new int[6] { 0, 1, 2, 3, 4, 5 }; private int counter = 0; private FrmRegistration theApp; private PictureBox[] pic_array = new PictureBox[6]; private CheckBox[] chbx_array = new CheckBox[6]; private int[] diceHeld_array = new int[6]; public Form1(FrmRegistration frm) { InitializeComponent(); theApp = frm; imageList1.ImageSize = new Size(50, 50); imageList1.Images.Add(Image.FromFile(@"..\..\Dice Image Files\die1.png")); imageList1.Images.Add(Image.FromFile(@"..\..\Dice Image Files\die2.png")); imageList1.Images.Add(Image.FromFile(@"..\..\Dice Image Files\die3.png")); imageList1.Images.Add(Image.FromFile(@"..\..\Dice Image Files\die4.png")); imageList1.Images.Add(Image.FromFile(@"..\..\Dice Image Files\die5.png")); imageList1.Images.Add(Image.FromFile(@"..\..\Dice Image Files\die6.png")); pic_array[0] = picDice1; pic_array[1] = picDice2; pic_array[2] = picDice3; pic_array[3] = picDice4; pic_array[4] = picDice5; pic_array[5] = picDice6; chbx_array[0] = chbxDie1; chbx_array[1] = chbxDie2; chbx_array[2] = chbxDie3; chbx_array[3] = chbxDie4; chbx_array[4] = chbxDie5; chbx_array[5] = chbxDie6; for (int i = 0; i < pic_array.Length; i++) { pic_array[i].Image = imageList1.Images[i]; } } private void btnClose_Click(object sender, EventArgs e) { this.Close(); } private void btnRollDice_Click(object sender, EventArgs e) { int[] temp_array = new int[6]; int index = 0; if (counter >= 1 && (chbxDie1.Checked == false && chbxDie2.Checked == false && chbxDie3.Checked == false && chbxDie4.Checked == false && chbxDie5.Checked == false && chbxDie6.Checked == false)) { MessageBox.Show("You must select a die or dice to proceed!", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { for (int i = 0; i < pic_array.Length; i++) { if (chbx_array[i].Checked == false) { index = m_rand.Next(0, 5); pic_array[i].Image = imageList1.Images[index]; pic_array[i].Image.Tag = index; } else { for (int j = 0; j < pic_array.Length; j++) if (pic_array[i].Image.Tag == imageList1.Images[j].Tag) index = j + 1; temp_array[i] = index; } } for (int i = 0; i < temp_array.Length; i++) label1.Text += temp_array[i].ToString(); } counter++; lblMessageToCurrent.Text = "Pick which dice to hold"; } private void btnReplay_Click(object sender, EventArgs e) { for (int i = 0; i < pic_array.Length; i++) { pic_array[i].Image = imageList1.Images[i]; } lblGameScore1Output.Text = "0"; lblGameScore2Output.Text = "0"; lblRollScore1Output.Text = "0"; lblRollScore2Output.Text = "0"; lblTurnScore1Output.Text = "0"; lblTurnScore2Output.Text = "0"; btnRollDice.Enabled = false; btnNextPlayer.Enabled = false; btnReplay.Enabled = false; btnGameOver.Enabled = false; for (int i = 0; i < chbx_array.Length; i++) chbx_array[i].Checked = false; lblMessageToCurrent.Text = "Guess Numbers To Play"; } private void btnGameOver_Click(object sender, EventArgs e) { lblMessageToCurrent.Text = "***GAME OVER***\nPlease Press 'Replay' or 'Close'!"; btnRollDice.Enabled = false; btnNextPlayer.Enabled = false; } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { theApp.Close(); } private void Form1_Load(object sender, EventArgs e) { lblMessageToCurrent.Text = theApp.getOutput(); } } }
Attached File(s)
Farkle Program Example.doc (216K)
Number of downloads: 254 | http://www.dreamincode.net/forums/topic/295283-c%23-farkle-game-problem-school-project-code-and-example-included/ | CC-MAIN-2016-50 | refinedweb | 1,082 | 60.92 |
PROBLEM LINK:
DIFFICULTY:
EASY
PREREQUISITES:
Dynamic Programming
PROBLEM:
Given two strings S and P,you have to find the parity of the number of substrings T in S such that T and P are Twins. Two strings are said to be twins if the sum of value of the letters in the string are same. The value of a letter is their respective postion in the list of 26 alphabets
EXPLANATION:
The naive approach to this problem is to perform brute force and consider all (N*(N-1))/2 substrings in S. Find the value of each substring and compare with the value of P,and increment the counter accordingly. This can be done in O(N^3) complexity, with some preprocessing , the same can be done in O(N^2).
An efficient way to solve this is to use Dynamic programming (DP).Let K be the value of the string P. K can be obtained in O(|P|) time complexity.Now the idea is to initialize an array A where A[i] stores the sum of values of first i letters of string S.
Declare a map or dictionary M.Now for each i such that 1<=i<=N, update the value for A[i] as 1 in dictionary M with A[i] as the key. Also make the value for 0 in dictionary M as 1 with 0 as key.
Now let us consider two valid indices i and j (1<=i<=j<=N),the value of the substring T starting from i and ending at j is A[j]-A[i-1] if i!=1,otherwise the value will be A[j].
Using the above idea, let us consider a substring T ending at position j in S.The value of string T is A[j].Suppose A[j]>=K and if M[A[j]-K] is 1, it means that there is an index i such that 1<=i<=j and A[i]=A[j]-K, therefore the substring R in S starting from i+1 and ending at j will have an value of K (i.e; R is a twin string of P). Now declare and initialize a counter C as 0 and run a loop for all 1<=j<=N, if there exists an R ending at position j satisfying the above conditions, then increment the counter C by 1.The counter variable C will give us the number of twin strings of P in S and check the parity of C.
TIME COMPLEXITY
O(|S|+|P|)=O(N) as |S|=N and |P|<=|S|.
SOLUTIONS:
Setter's Solution
#include<bits/stdc++.h> #include<math.h> #include<string.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int t,n,k,x; string s,p; cin>>t; while(t--) { cin>>n; cin>>s; cin>>p; map<int,int> m; int a[n],k=0,c=0; for(int i=0;i<p.length();i++) k+=p[i]-96; a[0]=s[0]-96; if(a[0]==k) c++; m[a[0]]++; m[0]++; for(int i=1;i<n;i++) { a[i]=a[i-1]+(s[i]-96); m[a[i]]++; if(a[i]>=k) if(m[a[i]-k]>0) c++; } if(c%2==0) cout<<"GRYFFINDOR\n"; else cout<<"SLYTHERIN\n"; } return 0; } | https://discuss.codechef.com/t/aoc05-editorial/80484 | CC-MAIN-2021-10 | refinedweb | 555 | 71.14 |
In this series, we're focusing on the bone-based 2D animation tools provided by the Unity engine. The main idea is to present and teach the fundamentals of 2D animation in order for you to apply it to your own games. In this tutorial, we'll use Unity's excellent Mecanim tool to blend animations, and we'll add some simple scripting to demonstrate the final result.
Before we start the tutorial, we would like to thank Chenguang (DragonBonesTeam) for providing us with the game art used to produce this tutorial series.
Where We Left Off
In the previous tutorials, we set up the project, assembled a 2D dragon character, and created three different animations. If you haven't completed the previous tutorials yet, we strongly recommend you do so before continuing.
Final Preview
This demo shows the animated dragon we're aiming for—hit Space to make it jump:
Mecanim
At this point, you have your dragon completely assembled with three defined animations. However, there's no connection between them. So, our initial goal is to connect the different animation clips and blend them together. For this, Unity provides an awesome tool called Mecanim that does exactly what you need.
Mecanim is a powerful and flexible animation system. Since it's integrated with Unity itself, there is no need for third party software. You can easily animate anything, from sprites to blend shapes or even lights. Mecanim allows you to create state machines and blend trees to control your character.
But, before we go any further, let's talk a little bit about blending animations and state machines so you'll have a better understanding of what we are about to do.
What is a State Machine?
In Unity, you can blend two or more similar motions—for example, you may want to blend running and walking animations depending on the character's current speed. Basically, you have two different ways to blend animations in Unity. In some situations you may want to use Transitions; in others you will need to use Blend Trees:
- Transitions are used for transitioning smoothly between animations. This usually works well if the transition is quick.
- Blend Trees allow multiple animations to be blended smoothly, while incorporating parts of them in variable amounts. These amounts are controlled by numerical parameters. To give a practical example, imagine that we have a shooter game; you may want the character to fire and run at the same time. Blend trees allow you to blend the two animations together, letting the character run and shoot at the same time, without needing to create a third animation for that specific mixture of actions.
A state machine stores the state of an entity at a given time, and can react to an input to change the state of that entity, or to cause an action or output. For more information, see Finite-State Machines: Theory and Implementation.
In Unity, you use state machines to control the state of the game's characters. For example, one state for a character could be
Walk, and another could be
Jump. The character can change from the
Walk state to the
Jump state based on input from the player (probably hitting the Jump button).
Here you can see an example of a (more complex) state machine from the Unity documentation. Each box represents a state, and the arrows represent possible transitions between them:
We're going to create a state machine with our existing animations, and then use transitions to blend them together.
Building Our State Machine
If you check the Animations folder where you have been saving your
.anim files, you will find a
Dragon.controller file. This is the mecanim file associated with the character that Unity automatically generated when you saved your first animation.
Double-click on the
Dragon.controller file, and Unity will open a Animator view tab next to your Scene and Game tabs.
As you can see, Unity already added the three animations to the file. Since the animations are already in place, there is no need to add them, but, if you wanted to add an extra animation to the controller, all you'd need to do is drag the
.anim file to the Animator view. In the same way, if you want to remove an existing animation from the controller, you should just select on the Animator view and press Delete. Feel free to try this for yourself.
We have four different boxes in the Animator:
- Any State
- Idle
- Jump
- Fall
Any State is the default state that the mecanim creates, and you will not use it. You can drag it to any corner of the Animator window and leave it there.
The other three boxes refer to the three animations that we created. As you may notice, Idle is colored with orange, while the other two are grey. That's because Idle is the root animation; it's the animation that the character is going to play by default. If you press the play button on your editor and test it, you will see that the character does this Idle animation. In this particular case, that's exactly the behavior we want; however, if you wanted, say, the Fall animation to be the root animation, all you'd have to do is right-click it select Set As Default.
As you can see, the Fall animation is now orange and the Idle is grey.
Since you want Idle to be the root animation, just repeat the process to make it orange again.
It is now time to connect the animations. Right-click Idle and select Make Transition.
This will create a small arrow that starts from Idle. Click on the Jump animation to make the arrow connect the two animations.
If you select the arrow you just created, you will see that new properties show up in the Inspector tab.
As you can see, you have a time-line, and the animations Idle and Jump. There is a blue band over the animations that starts on Idle but then changes to Jump. Also, there is a period in time during which the two animations overlap.
Since the Preview area is empty, even if you click on the play button over the preview, you can't see what is happening.
To preview the transition that you are working on, just select the Dragon game object from the Hierarchy tab and drag it to the Preview area. Now you can see the character in the preview and, if you press play, you can see the transition between the two animations.
In the Inspector, the area where the blue band changes from Idle to Jump is our transition:
You can edit the transitions by dragging the two blue arrows on the timeline that limit the transition area. By changing their position, you can make the transition quicker or softer.
The next thing you need to do is define when you want this transition to happen. To do that, create a new parameter by clicking on the + sign in the Parameters list.
Next, select the Float option and call it
VerticalMovement:
Now, go back to the Inspector, and under Conditions the variable
VerticalMovement will show up. Select it.
You've just defined the condition to determine when to change the state in the state machine: if the value of
VerticalMovement is greater than
0, then the character will start the Jump animation.
We also want a transition between the Jump animation and the Fall animation:
The maximum value that
VerticalMovement is going to reach is
1, so, for the transition between Jump and Fall, we can activate it when that value is less than
0.5.
Now we need to make the character return to the Idle animation after the fall. Since Idle should be playing when the character is on the floor, you should create a transition between Fall and Idle.
To finish, you have to make sure it activates when the character is on the ground. You can do that be setting the transition parameter of
VerticalMovement to less than
0.1—that basically means that the
VerticalMovement is
0, meaning that the character is on the ground.
We now need to make sure that we don't see any Idle animations while the character is in the air between the Jump and Fall animations. To do that, create a new parameter, this time a Bool.
Call it
OnGround.
Select the transition between Jump and Fall. You want this transition to happen when the character is still in the air, right? So go to the Inspector, click the +, and add a new parameter to the transition. Basically, you want this to happen when the value of
OnGround is
false.
Next, on the transition from Fall to Idle, add the parameter
OnGround and set the value to
true:
Our work with Mecanim is done. Now it's time to move to scripting.
Scripting Animations
In your asset directory, create a new folder called
Scripts. Next, create a new C# script called
CharacterMove.cs. Note that the script you are about to create is a very simple one, which the main goal is to show how you can change the animations of the character by code.
The best practice is to use Unity's physics when you want to create robust games. However, for the sake of simplicity and understanding, we'll just create a small simulation.
Create four variables in the script: one to reference the Animator component, another for the speed of the fall, a third one for the amount of vertical movement, and a flag to check whether the character is on the ground.
public class CharacterMove : MonoBehaviour { // Variables public Animator anim; // Refrerence to the animator private float fallSpeed; // The speed the character falls private float verticalMovement; // The amount of vertical movement private bool onGround; // Flag to check whether the character is on the ground
In the
Start() method, you need to make sure that the speed is set to
0.03 (or whichever other value you feel suits your animations) and that the character is grounded.
void Start () { // The character starts on the ground onGround = true; // Set the fall speed fallSpeed = 0.03f; }
Now, on the
Update() method, there are several things you need to check. First, you need to detect when the Space Bar is pressed, to make the character jump. When it's pressed, set the vertical movement to
1 and the
onGround flag to
false.
void Update () { // If the space bar is pressed and the character is on the ground if (Input.GetKeyDown(KeyCode.Space) == true && onGround == true) { verticalMovement = 1f; onGround = false; } }
What happens when the Space Bar is not being pressed? Well, you need to check if the character is in the air and its vertical movement is greater than
0; if so, you need to reduce the vertical movement by subtracting the fall speed.; } } }
As you'll recall, once
verticalMovement drops below
0.5, the Fall animation will start playing.
However, we don't want to subtract
fallSpeed from
verticalMovement forever, since the character will land at some point. If the vertical movement value is equal to or less than
0, we'll say that means the character has hit the ground.; } } } }
To end the
Update() method, you need to pass the values of
verticalMovement and
onGround to the Animator component:; } } } // Update the animator variables anim.SetFloat("VerticalMovement", verticalMovement); anim.SetBool("OnGround", onGround); }
The script is finished. Now you have to add it to the
Dragon game object and add the reference to the Animator component. To do this, once you add the script, drag the Animator to the proper field on the script.
If you press play and test it, the animations should be changing like they're supposed to. The dragon starts on Idle, but once you press the Space Bar it will Jump and then start playing the Fall animation before returning to Idle.
External Tools and Technologies
Although in this tutorial series we've only used the default tools that come with Unity, there are a lot of great 2D tools on the Unity Asset Store that can help you make this process even easier and faster. Two good examples are Smooth Moves and Puppet 2D, each of which can help you to define the characters, the hierarchy and the animations in an intuitive and easy way.
Plug-ins like these offer some extras, like the ability to add 2D "bones", making the whole animation process easier and the deformations more realistic. If your idea is to use 2D animations with several degrees of detail, we strongly recommend you to check out those plugins.
Conclusion
This concludes our tutorial series about how to create a bone-based 2D animation with Unity. We've covered a lot of ground in this short series, and you should now know enough to get started with your 2D animations. If you have any questions or comments, as always, feel free to drop us a line in the comments.
References
- Dragon sprite sheet: used with permission from Chenguang from DragonBonesTeam
Envato Tuts+ tutorials are translated into other languages by our community members—you can be involved too!Translate this post
| https://gamedevelopment.tutsplus.com/tutorials/bone-based-unity-2d-animation-mecanim-and-scripting--cms-21367 | CC-MAIN-2017-47 | refinedweb | 2,210 | 61.26 |
Am 05.10.2010 15:50, Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> Am 05.10.2010 15:42, Gilles Chanteperdrix wrote: >>> Jan Kiszka wrote: >>>> Am 05.10.2010 15:15, Gilles Chanteperdrix wrote: >>>>> Jan Kiszka wrote: >>>>>> Hi, >>>>>> >>>>>> quite a few limitations and complications of using Linux services over >>>>>> non-Linux domains relate to potentially invalid "current" and >>>>>> "thread_info". The non-Linux domain could maintain their own kernel >>>>>> stacks while Linux tend to derive current and thread_info from the stack >>>>>> pointer. This is not an issue anymore on x86-64 (both states are stored >>>>>> in per-cpu variables) but other archs (e.g. x86-32 or ARM) still use the >>>>>> stack and may continue to do so. >>>>>> >>>>>> I just looked into this thing again as I'm evaluating ways to exploit >>>>>> the kernel's tracing framework also under Xenomai. Unfortunately, it >>>>>> does a lot of fiddling with preempt_count and need_resched, so patching >>>>>> it for Xenomai use would become a maintenance nightmare. >>>>>> >>>>>> An alternative, also for other use cases like kgdb and probably perf, is >>>>>> to get rid of our dependency on home-grown stacks. I think we are on >>>>>> that way already as in-kernel skins have been deprecated. The only >>>>>> remaining user after them will be RTDM driver tasks. But I think those >>>>>> could simply become in-kernel shadows of kthreads which would bind their >>>>>> stacks to what Linux provides. Moreover, Xenomai could start updating >>>>>> "current" and "thread_info" on context switches (unless this already >>>>>> happens implicitly). That would give us proper contexts for system-level >>>>>> tracing and profiling. >>>>>> >>>>>> My key question is currently if and how much of this could be realized >>>>>> in 2.6. Could we drop in-kernel skins in that version? If not, what >>>>>> about disabling them by default, converting RTDM tasks to a >>>>>> kthread-based approach, and enabling tracing etc. only in that case? >>>>>> However, this might be a bit fragile unless we can establish >>>>>> compile-time or run-time requirements negotiation between Adeos and its >>>>>> users (Xenomai) about the stack model. >>>>> A stupid question: why not make things the other way around: patch the >>>>> current and current_thread_info functions to be made I-pipe aware and >>>>> use an "ipipe_current" pointer to the current thread task_struct. Of >>>>> course, there are places where the current or current_thread_info macros >>>>> are implemented in assembly, so it may be not simple as it sounds, but >>>>> it would allow to keep 128 Kb stacks if we want. This also means that we >>>>> would have to put a task_struct at the bottom of every Xenomai task. >>>> First of all, overhead vs. maintenance. Either every access to >>>> preempt_count() would require a check for the current domain and its >>>> foreign stack flag, or I would have to patch dozens (if that is enough) >>>> of code sites in the tracer framework. >>> No. I mean we would dereference a pointer named ipipe_current. That is >>> all, no other check. This pointer would be maintained elsewhere. And we >>> modify the "current" macro, like: >>> >>> #ifdef CONFIG_IPIPE >>> extern struct task_struct *ipipe_current; >>> #define current ipipe_current >>> #endif >>> >>> Any calll site gets modified automatically. Or current_thread_info, if >>> it is current_thread_info which is obtained using the stack pointer mask >>> trick. >> >> The stack pointer mask trick only works with fixed-sized stacks, not a >> guaranteed property of in-kernel Xenomai threads. > > Precisely the reason why I propose to replace it with a global variable > reference, or a per-cpu variable for SMP systems.
Advertising
Then why is Linux not using this in favor of the stack pointer approach on, say, ARM? For sure, we can patch all Adeos-supported archs away from stack-based to per-cpu current & thread_info, but I don't feel comfortable with this in some way invasive approach as well. Well, maybe it's just my personal misperception. Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux _______________________________________________ Xenomai-core mailing list Xenomai-core@gna.org | https://www.mail-archive.com/xenomai-core@gna.org/msg08799.html | CC-MAIN-2018-13 | refinedweb | 650 | 62.17 |
rhomobile app crashes on Incredible 2, not on Incredible.John Warren Jan 31, 2013 9:08 AM
The Incredible 2 is running Android version 2.3.4, HTC sense ver 2.1 Software number 6.01.605.05 710RD PRI version 1.94_002 PRL Version 52826 And ERI version 5.
On startup, the spash-screen is displayed then the main screen appears. Any other attempts to launch fail quickly unless the cache is emptied.
Re: rhomobile app crashes on Incredible 2, not on Incredible.Robert Galvin Feb 1, 2013 7:21 AM (in response to John Warren)
Kind of hard to say what is going on with that description. Have you cranked up logging and compared the two logs? What are you doing in the startup?
Re: rhomobile app crashes on Incredible 2, not on Incredible.John Warren Feb 4, 2013 7:13 AM (in response to Robert Galvin)
As far as I know, there is no way to log what happens on a device itself. If this is possible, please give me detailed instructions on how to build it.
Re: rhomobile app crashes on Incredible 2, not on Incredible.John Warren Feb 15, 2013 9:04 AM (in response to John Warren)
I am not getting any logs on the device or on the simulator. I do not get it.
I set rhoconfig.txt
# Rhodes log properties
# log level
# 0-trace, 1-info(app level), 3-warnings, 4-errors
# for production set to 3
MinSeverity = 0
# enable copy log messages to standard output, useful for debugging
LogToOutput = 0 #I have also set this to 1
# '*' means all categories, otherwise list them : Cat1, Cat2
LogCategories = *
# what categories to exclude
ExcludeLogCategories =
# max log file size in Bytes, set 0 to unlimited size; when limit is reached, log wraps to beginning of file
MaxLogFileSize=0
LogMemPeriod=500
# location of log file on SD card
LogFilePath = '/mnt/sdcard/download/MyApp.
log'
# turn on local http server traces, off by default
#net_trace = 0
# timeout of network requests in seconds (30 by default)
#net_timeout = 11
# where log will be posted by RhoConf.send_log or from the log menu
# source is also open and up on, so you can deploy your own logserver
#logserver = '' # I Have also uncommented this
# log file prefix - contain human-readable text
logname='My.mobileapp'
# Keep track of the last visited page
KeepTrackOfLastVisitedPage = 0
LastVisitedPage = ''
# sync server url, typically this will look like 'http://<hostname>:<port>/application'
# for example: ''
syncserver = ''
then I have this in MshellController
def MshellController.init()
Mshell.info "MshellController.init invoked"
# set default menu for the application here rather than requiring manual
# edits to application.rb
application = ::Rho.get_app
app_info "MshellController.init invoked"
RhoLog.info("RhoLog.info", "MshellController.init invoked")
I get this error in the simulator:
SERVER ERROR
Error: undefined method 'app_info' for MShellController:Class.
Even though the documentation says app_info can be used from any controller, I took it out. Now it is:
def MshellController.init()
Mshell.info "MshellController.init invoked"
# set default menu for the application here rather than requiring manual
# edits to application.rb
application = ::Rho.get_app
RhoLog.info("RhoLog.info", "MshellController.init invoked")
and there is NO LOG, and NO OUTPUT.
Re: rhomobile app crashes on Incredible 2, not on Incredible.Kutir Mobility Apr 19, 2013 4:57 PM (in response to John Warren)
You can try to use the "ADB" tool from the Android SDK and see if you can get a useful log that way.
adb is located in android-sdk/platform-tools, invoke it with
adb logcat
then start your application on the device and let us know if you get anything that way
Thanks
Javier
Kutir Mobility | https://developer.zebra.com/thread/2835 | CC-MAIN-2017-34 | refinedweb | 607 | 56.05 |
>>IMAGE!
Try this at home
The source code for this tutorial can be found on GitHub at.
The example code requires Python 3 (Django 2.x requires Python 3.4 or higher) and uses a SQLite database, so install should be easy and painless.
Background info
My previous tutorial will give you a basic understanding of how to make API calls using Angular.
If you're new to Django and DRF, you can find some useful tutorials at the Django project and the Django Rest Framework site. This example will build upon the basic knowledge from those tutorials.
Some knowledge of pip and Python Virtual Environments will also be useful here. Be aware that we're using classic virtualenv here and not the newer pipenv yet.
Technology selection
The demo shown here uses the following technology:
- Angular 6.1 - The latest as of the time of this writing
- RxJS 6.0 - This is the version included with Angular 6.0. All API calls in this tutorial use the newer RxJS syntax introduced with this version. See my previous post about upgrading from RxJS 5.5 here.
- Angular CLI v6.x
- Django 2.1 - The current release of Django
- Django Rest Framework - The standard suite for generating a REST API in Django
- Python 3.5 or higher - Django 2.x requires Python 3 and no longer supports Python 2.7
- Node 8.x or higher
Why these platforms? Angular, because it's a full-featured front-end framework that has tremendous popularity. Django and Django Rest Framework, to provide the ORM and API layer. Python is growing in popularity and is an enjoyable language to develop applications.
The Django app
The Django app is the back end of our decoupled application. It serves the API endpoints and it also renders the HTML container for the Angular front end app.
We will dive more deeply into DRF and its models, serializers, and viewsets in a later part of this tutorial. For now, we have a simple Django project with Django Rest Framework and the Django Rest Framework JWT packages installed.
pip install Django pip install djangorestframework djangorestframework-jwt.
What these do:
- the DJango package is the basic framework itself
- djangorestframework is the core of DRF and provides the means to build API endpoints
- djangorestframework-jwt is an extension to DRF which provides an authentication layer using JSON Web Tokens
The vanilla install of Django provides a basic settings file for the application. To activate DRF and the JWT extension, we need to add DRF to our installed apps, and configure its settings:
angular_django_example/settings.py:
INSTALLED_APPS = [ ... 'rest_framework', ] REST_FRAMEWORK = { 'DEFAULT_PERMISSION_CLASSES': ( 'rest_framework.permissions.IsAuthenticatedOrReadOnly', ), 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework_jwt.authentication.JSONWebTokenAuthentication', 'rest_framework.authentication.SessionAuthentication', 'rest_framework.authentication.BasicAuthentication', ), }
By default, DRF allows Basic and Session authentication. The DEFAULT_AUTHENTICATION_CLASSES setting adds a third authentication mechanism, the JWT.
How do these work?
- Basic Auth - a username and password are passed with each API request. This provides only a minimum level of security and user credentials are visible in the URLs
- Session Auth - requires the user to log in through the server-side application before using the API. This is more secure than Basic Auth but is not convenient for working with single-page apps in a framework like Angular.
- JSON Web Tokens are an industry standard mechanism for generating a token which can be passed in the HTTP headers of each request, authenticating the user. This is the mechanism we will use for authentication.
In addition to the Rest Framework configuration, the JWT package also has its own configuration settings. We will update two settings in particular for our app.
angular_django_example/settings.py
JWT_AUTH = { 'JWT_ALLOW_REFRESH': True, 'JWT_EXPIRATION_DELTA': datetime.timedelta(seconds=3600), }
JWT tokens have a life span, after which they are no longer valid. The default is only 5 minutes, but we can set it to a longer time (say, 1 hour) using the JWT_EXPIRATION_DELTA setting. The JWT_ALLOW_REFRESH setting enables a feature of DRF-JWT where an application can request a refreshed token with a new expiration date.
URLs
In addition to the settings, we need to add a few URLs to our API:
angular_django_example/urls.py:
from rest_framework_jwt.views import obtain_jwt_token, refresh_jwt_token urlpatterns = [ ... other patterns here ... path(r'api-token-auth/', obtain_jwt_token), path(r'api-token-refresh/', refresh_jwt_token), ]
These endpoints provide us with a means to authenticate via the API and to request a new token.
The Microblog app
Now that our application-wide settings are configured, we can create the Django app and the Angular app within it.
From the terminal, we can run
python manage.py startapp microblog to create our new Microblog app. This gives us an empty Django app with the usual views.py, models.py, urls.py, and so on.
We now need to create a simple View and a template which will serve the single-page app.
microblog/views.py:
from django.shortcuts import render def index(request, path=''): """ The home page. This renders the container for the single-page app. """ return render(request, 'index.html')
In Django fashion, we will use two template files, base.html, providing the outer HTML shell, and index.html, providing the content of the index page itself.
microblog/templates/base.html:
{% load staticfiles %} <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Angular, Django Rest Framework, and JWT token demo</title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> "> {% block heading %} <h1>Angular, Django Rest Framework, and JWT demo</h1> {% endblock %} {% block content %}{% endblock %} </div> </body> </html>
microblog/templates/index.html:
{% extends "base.html" %} {% load staticfiles %} {% block content %} <p>This is a mini-blog application using a back-end built on Django 2.0 and Django Rest Framework. It illustrates how to create and send JSON Web Token authentication headers with the HTTP requests.</p> <app-root>Loading the app...</app-root> <script type="text/javascript" src="{% static 'front-end/runtime.js' %}"></script> <script type="text/javascript" src="{% static 'front-end/polyfills.js' %}"></script> <script type="text/javascript" src="{% static 'front-end/styles.js' %}"></script> <script type="text/javascript" src="{% static 'front-end/vendor.js' %}"></script> <script type="text/javascript" src="{% static 'front-end/main.js' %}"></script> {% endblock %}
The
<script> tags in index.html will load the compiled JavaScript files generated by webpack. We'll need to change a setting in angular.json to make this work, which we'll see momentarily.
For the first part of this tutorial, we are using only built-in models (like django.contrib.auth.models.User) and the Views that are provided by DRF and the JWT extension. In Part 2, we will delve into creating the rest of our micro-blogging application. There, you will see custom models, serializers, and views.
The Angular App
To install an Angular app within a Django project, we just place the TypeScript source code inside of our "microblog" Django app.
cd microblog ng new front-end
This will generate a starter Angular app in microblog/front-end, with the following interesting files:
- app - The location of the Angular module, components, and services
- angular.json - The configuration for the Angular CLI
- dist - The destination where the Angular CLI will place the compiled files. We'll change this in just a moment to be compatible with Django.
Here we have our first conflict between the "Django way" and the "Angular way". Django's built-in "staticfiles" app won't know to look in microblog/front-end/dist to find the compiled JavaScript files and other assets. Django wants the static files for each app to live in a subdirectory called "static". So, we need to edit our angular.json file to instruct Angular CLI to place the files there.
microblog/front-end/angular.json:
{ ... "projects": { "ng-demo": { ... "architect": { "build": { ... "options": { "outputPath": "../static/front-end", <-- change this line ...
Now, when we run
ng build it will place the files right where Django wants them.
What's in our Angular app
The Angular app we're creating here will contain the following pieces:
- microblog/front-end/src/app/app.component.html - a template that will contain the login form
- microblog/front-end/src/app/app.component.ts - our main component
- microblog/front-end/src/app/user.service.ts - a service that will manage the authentication API requests
The Angular Module
Let's start building the app by configuring our module file.
microblog/front-end/src/app/app.module.ts:
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { HttpClientModule } from '@angular/common/http'; // add this import { FormsModule } from '@angular/forms'; // add this import { AppComponent } from './app.component'; import { UserService } from './user.service'; // add this @NgModule({ declarations: [AppComponent], imports: [BrowserModule, FormsModule, HttpClientModule], // add this providers: [UserService], // add this bootstrap: [AppComponent] }) export class AppModule { }
This is very close to the default Angular module file. We have only added the built-in HttpClientModule and FormsModule, as well as our custom UserService, which we'll build in a minute.
Our app is very simple and has just one Component:
microblog/front-end/src/app/app.component.ts:
import {Component, OnInit} from '@angular/core'; import {UserService} from './user.service'; import {throwError} from 'rxjs'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent implements OnInit { /** * An object representing the user for the login form */ public user: any; constructor(private _userService: UserService) { } ngOnInit() { this.user = { username: '', password: '' }; } login() { this._userService.login({'username': this.user.username, 'password': this.user.password}); } refreshToken() { this._userService.refreshToken(); } logout() { this._userService.logout(); } }
Our template contains a login form, and a message to the user once they have logged in. We can also spruce it up a little with some Bootstrap classes.
microblog/front-end/src/app/app.component.html:
<h2>Log In</h2> <div class="row" * <div class="col-sm-4"> <label>Username:</label><br /> <input type="text" name="login-username" [(ngModel)]="user.username"> <span *<br /> {{ error }}</span></div> <div class="col-sm-4"> <label>Password:</label><br /> <input type="password" name="login-password" [(ngModel)]="user.password"> <span *<br /> {{ error }}</span> </div> <div class="col-sm-4"> <button (click)="login()" class="btn btn-primary">Log In</button </div> <div class="col-sm-12"> <span *{{ error }}<br /></span> </div> </div> <div class="row" * <div class="col-sm-12">You are logged in as {{ _userService.username }}.<br /> Token Expires: {{ _userService.token_expires }}<br /> <button (click)="refreshToken()" class="btn btn-primary">Refresh Token</button> <button (click)="logout()" class="btn btn-primary">Log Out</button> </div> </div>
When the user first arrives on the page, they will see the login form. Once they have successfully logged in, they will see a welcome message and their username. For the purposes of this demo app, we will also output the expiration time of their JWT authentication token.
Now for what you're been waiting for: the User Service, which handles all the Angular API calls we need to authenticate a user and manage their JWT tokens.
microblog/front-end/src/app/user.service.ts:
import {Injectable} from '@angular/core'; import {HttpClient, HttpHeaders} from '@angular/common/http'; @Injectable() export class UserService { // http options used for making API calls private httpOptions: any; // the actual JWT token public token: string; // the token expiration date public token_expires: Date; // the username of the logged in user public username: string; // error messages received from the login attempt public errors: any = []; constructor(private http: HttpClient) { this.httpOptions = { headers: new HttpHeaders({'Content-Type': 'application/json'}) }; } // Uses http.post() to get an auth token from djangorestframework-jwt endpoint public login(user) { this.http.post('/api-token-auth/', JSON.stringify(user), this.httpOptions).subscribe( data => { this.updateData(data['token']); }, err => { this.errors = err['error']; } ); } // Refreshes the JWT token, to extend the time the user is logged in public refreshToken() { this.http.post('/api-token-refresh/', JSON.stringify({token: this.token}), this.httpOptions).subscribe( data => { this.updateData(data['token']); }, err => { this.errors = err['error']; } ); } public logout() { this.token = null; this.token_expires = null; this.username = null; } private updateData(token) { this.token = token; this.errors = []; // decode the token to read the username and expiration timestamp const token_parts = this.token.split(/\./); const token_decoded = JSON.parse(window.atob(token_parts[1])); this.token_expires = new Date(token_decoded.exp * 1000); this.username = token_decoded.username; } }
Remember when we installed djangorestframework-jwt that we added two URLs to our urls.py, "/api-token-auth" and "/api-token-refresh"? Here we use Angular's HttpClient service to send POST requests to them.
The UserService's login() method sends the username and password to "/api-token-auth" and receives a token in response. If the login is unsuccessful, we receive some error messages (this.errors) which will be shown to the user within the template.
The UserService's refreshToken() method sends the current token (not the username and password) to the "/api-token-refresh" endpoint. This retrieves a new token for the same user, with a new expiration time.
Getting the expiration time from JWT tokens
So, what's in a JWT token? The API endpoints will return something like this:
That looks frightening, but it is really just a series of base64-encoded strings glued together. The data payload is stored in JSON format within the second of these strings, between the first and second dot.
We can split by the dot, then run the built-in JavaScript method
window.atob() and
JSON.parse() on the second result, to get our token payload:
const token_parts = this.token.split(/\./); const token_decoded = JSON.parse(window.atob(token_parts[1])); console.log(token_decoded); // output: // { // "orig_iat": 1528071221, // "exp": 1528074821, // "username": "user1", // "email": "user1@example.com", // "user_id": 2 // }
This contains the username as well as the user's email address and numeric ID from the database. It also contains the expiration time as a Unix timestamp. In the code above, we used
this.token_expires = new Date(token_decoded.exp * 1000); to convert this into a JavaScript Date object which provides a nicer display for the user.
Using the tokens in subsequent API calls
Now that we have a means for our users to log in, it's time to build the rest of the Microblog app. The Django models and custom API endpoints will be covered in a future post, but for now, here's a teaser:
microblog/front-end/app/blog_post.service.ts:
import {Injectable} from '@angular/core'; import {HttpClient, HttpHeaders} from '@angular/common/http'; import {UserService} from './user.service'; @Injectable() export class BlogPostService { constructor(private http: HttpClient, private _userService: UserService) { } // send a POST request to the API to create a new blog post create(post, token) { let httpOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/json', 'Authorization': 'JWT ' + this._userService.token }) }; return this.http.post('/api/posts', JSON.stringify(post), httpOptions); } }
Notice how we send the JWT token in the Authorization header on our API call. This will authenticate the user with each request and will allow Django to know which user made the request.
Further Reading
Continue to Part 2 of this series to see the rest of the micro-blogging app.!
Arik
Sun, 08/12/2018 - 10:38
Suraj Acharya
Fri, 09/07/2018 - 16:44
Great work,That helps me a…
Great work,That helps me a lot
Love Your Work
Sun, 09/16/2018 - 17:46
i Love Your Woork
that's in depth tuto
i find it very helful
thank you so much
Arturo
Fri, 09/21/2018 - 05:50
Thanks !!!
Just what I was looking for.
Cheers !!
Anonymous
Sat, 09/22/2018 - 17:19
Thanks but didn't work for me
Hey thanks but it didn't work for me, everything is ok with django rest auth jwt it works great. when i implement like you didn't with angular, it's seems like it checked if the user exist, show that i'm logged in but when i check django i'm not, and also when i refresh the page i'm not logged in? How can i solve that?
Aux
Sun, 12/30/2018 - 14:51
Thanks
Thank you very much. This is a nice Tut. I am a student and I have problem. How does it work with only Django server? I meant, without starting Angular server? I have tried similar exericse by starting both Django and Angular server and cross origin policy. But here, how it is working with just Django server?
Tuvia Khusid
Sun, 09/22/2019 - 10:27
Can't see angular ptoject
Thanks for your article. I am new to Django. I have successfully installed angular project inside django. I run the django server and no errors there. However I see only index.html of Django and do not see my app.component.html. Any ideas, why it might happen? Thanks in advance!
Benjamin
Thu, 06/14/2018 - 09:20 | https://www.metaltoad.com/blog/angular-api-calls-django-authentication-jwt | CC-MAIN-2020-16 | refinedweb | 2,772 | 50.43 |
Odoo Help
Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
[8.0/Master] How can I call the url/src value for an image created by an image widget into a custom attribute - eg. data-src?
I've begun work on creating a module to provide multiple product images that can be displayed on the website's product view page here:
currently the 8.0 branch I am pushing stable merges to, however the project is still very much in it's early stages of development. The module is working great for storing and displaying multiple product images onto the product page in a synced slider setup using one2many and a slider called OwlCarousel2.
What I am trying to figure out is how to call the src value from the image widget into another attribute called:
data-src
to allow for lazyloading of product images and a few other useful features.
The code I am trying to place this img src inside of is here (t-att-data-src):
<t t-
<span t-
</t>
here's the python in product_images.py:
from openerp.osv import osv, fields
class product_image(osv.Model):
_name = 'product.image'
_columns = {
'name': fields.char('Name'),
'description': fields.text('Description'),
'image_alt': fields.text('Image Label'),
'image': fields.binary('Image'),
'image_small': fields.binary('Small Image'),
'product_tmpl_id': fields.many2one('product.template', 'Product'),
}
product_image()
class product_product(osv.Model):
_inherit = 'product.product'
_columns = {
'images': fields.related('product_tmpl_id', 'images', type="one2many", relation="product.image", string='Images', store=False),
}
product_product()
class product_template(osv.Model):
_inherit = 'product.template'
_columns = {
'images': fields.one2many('product.image', 'product_tmpl_id', string='Images'),
}
product_template()
Does anyone have any suggestions on how I can add the data-src attribute correctly to the:
<span t-
in order to be able to pull the img src into the resulting img tag that is output from the image widget? I have been searching the forums, Odoo github source code and google, but I cannot figure this one out.
About This Community
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
Ah, good post. I'm struggling with the same problem. Would like to know the answer.
@Ludo - Neobis, I'll be trying to crack this over the weekend. I'll post back here once I figure it out. Please do likewise if you find a way to do this. | https://www.odoo.com/forum/help-1/question/8-0-master-how-can-i-call-the-url-src-value-for-an-image-created-by-an-image-widget-into-a-custom-attribute-eg-data-src-69776 | CC-MAIN-2017-13 | refinedweb | 418 | 51.95 |
Mandatory video (might not appear if you’re reading from a planet):
Following the work of Siegfried to integrate Zeitgeist and the Shell, I decided to see if I could make the Shell search use Tracker. Having the example of the Zeitgeist search providers was a huge help, and I managed (with a lot of trial and error) to hack support for Tracker search in the Shell.
The results returned from Tracker are organized into categories, for now “Documents”, “Music” and “Videos”. This can be very easily extended, as each category is mapped to a SPARQL query while the core logic is abstracted in a base class.
I have experienced a few crashes that I haven’t solved yet, looking at the backtrace it seems that gjs is trying to call some javascript that is not here anymore from the libtracker-sparql callback… It is also not super fast on my computer, though the part that is a bit slow is the adding of items to the results grid (the queries themselves are next to instantaneous).
If you want to try this at home:
- You need to patch tracker (any 0.10 series should do) with this patch to add some needed GObject introspection annotations. libtracker-sparql is in Vala, so one could hope you’d get the .gir for free, but because it uses nested namespaces, va_list for some functions etc. it gets complicated. Fixing it properly was outside of the scope of a weekend hack. For the lazy, you can also get the (incomplete but good enough for that hack) gir file directly here.
- You need to apply Seif’s “add async search providers” patch that you can find here, as well as a patch to fix thumbnailing when you’re not using GtkRecentInfo (which is not the case since the results come from Tracker), and finally the patch to add the Tracker search providers.
If you use the gir from step 1 directly (don’t forget to compile it to a typelib and install it!), no recompilation at all should be needed since everything in step 2 is javascript. You just need to install the patched shell, and enjoy the better search (plus the few crashes I mentioned above
)!
Even more awesome would be to have *both* Zeitgeist and Tracker work together, so that results would be ordered by popularity. I actually have an experimental patch for tracker-needle, the search UI from Tracker, that does just that, but I’m not happy enough with the UI integration to blog about it yet.
Update: If your browser does not support webm, you can see the video hosted on Vimeo
20/03/2011 at 12:16 pm
Great weekend-hack Adrien!
20/03/2011 at 12:57 pm
Great to see this work!
A question I have is if and how the Zeitgeist search and Tracker search will coexist within the Shell?
20/03/2011 at 1:07 pm
@Alex: Tracker and Zeigeist are not focused on the same things, Tracker is about providing information about the contents (and user metadata) of your files, while Zeitgeist focuses on the context where you use them. Crossing the two means that you can for example enrich the search results from Tracker using Zeitgeist (for each results, get the files that were used at the same time, or sort search results by popularity…). Actually, there is even a Zeitgeist extension to export events to Tracker (though the ontology is not merged in Tracker yet), so that you can directly query about the content and the context directly in SPARQL… How they will cooperate is an interesting question, and will mostly depend on the crazy ideas people have to use those two technologies
20/03/2011 at 4:52 pm
How does the zeitgeist FTS extension relate to this?
20/03/2011 at 5:00 pm
@John I haven’t played enough with zeitgeist to know what it does with FTS… Having the input from a Zeitgeist developer would be interesting. I guess because Zeitgeist cannot depend on Tracker, it can’t assume that Tracker will be here to do FTS and therefore has its own implementation. I’d say the main difference would be that FTS concerns only documents attached to events, whereas Tracker indexes all your personal data.
I should indeed file a bug to get a more thorough review on my patch, and possibly comments on why the code would crash sometimes. I also have to file a bug against Tracker for gobject-introspection support.
20/03/2011 at 7:31 pm
The FTS extension we provide is nothing like what Tracker is doing. The fts extension is just an easy way to search through all metadata of the events and subjects and get them back sorted. We use Xapian for that. If you comment one line out in the code it even indexes the content of the documents. But currently its disables by default so we can focus on context and not content.
20/03/2011 at 7:35 pm
I think all the tools to deploy both on different projects is doable. Like Adrien said. Its two different fields. Tracker can relate data over the its metadata while Zeitgeist related them over how they are used.
20/03/2011 at 4:55 pm
Also, can you please file a bug about this so I can track your progress?
20/03/2011 at 5:12 pm
@John Stowers: Filed
21/03/2011 at 10:37 am
I would love to see things like Gnome-shell use Tracker & Zeitgeist together. I need the search on file contents feature to dig out documents from over a year ago, and then having Zeitgeist’s knowledge of how/when used improving how search results are presented would make things even better.
21/03/2011 at 10:40 am
I’ll try to beat my needle/zeitgeist patch into shape, with that one you can search results from Tracker and get them ordered by popularity using Zeitgeist… I guess I could add info like “last time used” too in the results view. | https://blogs.gnome.org/abustany/2011/03/20/weekend-hack-gnome-shell-tracker-integration/ | CC-MAIN-2016-22 | refinedweb | 1,019 | 65.05 |
#include <winpr/crt.h>
#include <winpr/print.h>
#include <winpr/synch.h>
#include <winpr/thread.h>
#include <winpr/collections.h>
#include "update.h"
#include "surface.h"
#include "message.h"
#include "info.h"
#include "window.h"
#include <freerdp/log.h>
#include <freerdp/peer.h>
#include <freerdp/codec/bitmap.h>
#include "../cache/pointer.h"
#include "../cache/palette.h"
#include "../cache/bitmap.h"
FreeRDP: A Remote Desktop Protocol Implementation Update Data PDUs
Copyright 2011 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2016 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m Copyright 2016 stated in 2.2.9.1.1.4.4 Color Pointer Update: The maximum allowed pointer width/height is 96 pixels if the client indicated support for large pointers by setting the LARGE_POINTER_FLAG (0x00000001) in the Large Pointer Capability Set (section 2.2.7.2.7). If the LARGE_POINTER_FLAG was not set, the maximum allowed pointer width/height is 32 pixels.
So we check for a maximum of 96 for CVE-2014-0250.
There does not seem to be any documentation on why xPos / yPos can be larger than width / height so it is missing in documentation or a bug in implementation 2.2.9.1.1.4.4 Color Pointer Update (TS_COLORPOINTERATTRIBUTE)
Spec states that:
xorMaskData (variable): A variable-length array of bytes. Contains the 24-bpp, bottom-up XOR mask scan-line data. The XOR mask is padded to a 2-byte boundary for each encoded scan-line. For example, if a 3x3 pixel cursor is being sent, then each scan-line will consume 10 bytes (3 pixels per scan-line multiplied by 3 bytes per pixel, rounded up to the next even number of bytes).
In fact instead of 24-bpp, the bpp parameter is given by the containing packet.
andMaskData (variable): A variable-length array of bytes. Contains the 1-bpp, bottom-up AND mask scan-line data. The AND mask is padded to a 2-byte boundary for each encoded scan-line. For example, if a 7x7 pixel cursor is being sent, then each scan-line will consume 2 bytes (7 pixels per scan-line multiplied by 1 bpp, rounded up to the next even number of bytes).
The Synchronize Update is an artifact from the T.128 protocol and should be ignored.
Alternate Secondary Drawing Orders
Primary Drawing Orders | http://pub.freerdp.com/api/update_8c.html | CC-MAIN-2019-18 | refinedweb | 410 | 52.87 |
On Tue, Sep 08, 2009 at 05:35:06PM +0200, Gabor Gombas wrote: > On Tue, Sep 08, 2009 at 04:35:42PM +0200, Fabian Greffrath wrote: > > > With the namespace issue fixed and a blacklist to avoid mounting > > partitions in a virtualization environment, would it make sense to > > make grub-pc recommend (or even depend on) os-prober again? > > The problem is not just virtualization but also exporting the block > device over the network. E.g. vblade does not open the device with > O_EXCL, so it is possible to mount it locally while some remote client > also have it mounted, resulting in data corruption. I think the best thing to do would be to use some kind of COW scheme on the device before mounting it. Setting up a device mapper snapshot, backed by a sparse file in a tmpfs is probably a good though hackish solution. I can give some help if needed. Mike | http://lists.debian.org/debian-devel/2009/09/msg00371.html | CC-MAIN-2013-48 | refinedweb | 154 | 63.53 |
It is very rare to find a raw dataset which perfectly follows certain specific distribution. Usually every dataset needs to be standarize by any means.
So this is the recipe on how we can standardise features in Python.
from sklearn import preprocessing import numpy as np
We have only imported numpy and preprocessing which is needed.
We have created an numpy array with different values.
x = np.array([[-500.5],
[-100.1],
[0],
[100.1],
[900.9]])
StandardScaler is used to remove the outliners and scale the data by making the mean of the data 0 and standard deviation as 1. So we are creating an object scaler to use standardScaler.
We have fitted the fit data and transformed train and test data form standard scaler. Finally we have printed the dataset.
scaler = preprocessing.StandardScaler()
standardized_x = scaler.fit_transform(x)
print(x)
print(standardized_x)
As an output we get
[[-500.5] [-100.1] [ 0. ] [ 100.1] [ 900.9]] [[-1.26687088] [-0.39316683] [-0.17474081] [ 0.0436852 ] [ 1.79109332]] | https://www.projectpro.io/recipes/standardise-features-in-python | CC-MAIN-2021-39 | refinedweb | 167 | 67.45 |
I am working on a program that scans a host and I ve run in to a simple problem I cant figure out. When it asks what type of scan to perform and you say number 2 it will go to the number 1 type of scan. Here is the code:
#include <iostream> #include <cstring> #include <string> using namespace std; int main() { string ping = "ping"; string ip_address; string ipai; string ping_ip; string ping_ip_intense; int rd; int number_of_scan; string scan; string intense_scan; string light_scan; cout<<"1. Regular Scan"<<endl; cout<<"2. Intense Scan"<<endl; cout<<"3. Light Scan"<<endl; cout<<"\n\n\n"<<endl; cout<<"Please enter the number of the scan you would like to perform: "<<endl; cin>>number_of_scan; if (number_of_scan = '1'){ cout<<"You are going to perform the Regular Scan"<<endl; cout<<"Please enter the IP address or domain of the host: "<<endl; cin>>ip_address; ping_ip= ping+" "+ip_address; system(ping_ip.c_str()); } if (number_of_scan = '2'){ cout<<"You are goin to perform the Intense Scan"<<endl; cout<<"Please enter the IP address or domain of the host: "<<endl; cin>>ipai; rd = rand()% 83 + 107; cout<<"Estimated time(seconds): "<<rd<<endl; ping_ip_intense="ping "+ipai+" -n 20 -l 60 -w 10000"; system(ping_ip_intense.c_str()); } system("pause"); return 0; }
Thank You. | https://www.daniweb.com/programming/software-development/threads/104133/problem-with-program | CC-MAIN-2018-17 | refinedweb | 207 | 65.76 |
Representing the machine itself in C is fairly easy. We require two parts. One is the memory of the machine and the other is the processor. You'll find the C code containing the data structures for representing our machine in the emulate.h file. The memory is simply implemented as an array of 65536 bytes. Since the C char type is one byte, we simply implement the memory with the following line of code:
unsigned char mem[65536];
Alternatively, we could have used unsigned short int instead of unsigned char. The unsigned is simply used to specify that by default, each memory location will contain an unsigned value. We wouldn't want 5, 255 representing -1*256 + 5 = -251, so we need to treat the individual bytes of memory as unsigned numbers.
Remarkably, representing the internals of the processor in C is also not very difficult. We simply use a struct and typedef combination:
typedef struct machine { int A, X, IP, SP; int REGS[7]; bool C, Z, P; bool running; } machine;
This defines a new type called machine which consists of a structure, also called machine. The structure contains fields for each of the internal parts of the processor.
Since the C type int usually represents 16 bits of storage, it is ideal for representing our registers inside the processor. Thus we have an int field inside our struct for the accumulator A, the segment register X, the instruction pointer IP and the stack pointer SP. Each of the 7 registers is also an int inside our struct. We implement the seven of them with an array of 7 ints, which we call REG. Thus REG[0] is the first of the registers, REG[1] is the second, etc.
Since the flags are either going to be set or clear, we can implement these with a field of type bool for each of them. We must remember to include the stdbool.h library with the following line:
#include <stdbool.h>
so that we can work with these fields of type bool.
Finally, we need some way to keep track of whether a program is running on our machine, or whether a HLT instruction has been encountered, and execution should cease. This is implemented with a field inside our processor, again of type bool. This is somewhat artificial, since most processors in real computers are executing something at all times. If it isn't executing a specific program, then it is running the operating system (even if just an idle loop), or just maintenance code which keeps track of the time or whatever. | http://friedspace.com/cprogramming/represent.php | crawl-001 | refinedweb | 434 | 62.07 |
.)
Since IIRC KDE 3 will be based on Qt 3 and if this UCOM will be part of KDE 3, what can we expect from KParts ? Will it be converted to use UCOM or just as it is ?
People are re-inventing 20 year old technology, badly.
Go away if you have nothing to say except pointless one-line trolls. Otherwise do a better job of explaining your opinion.
This is very nice work and deserves more than your one line put-down.
This looks like the beginning of an increasing "trollification" of KDE.
As both a windows and Linux developer I always detested Microsofts COM model. Although it looked good on paper it ended as complicated and error prone way of doing large scale development. Now I am starting to see stuff I don't like enter Linux. I could always ignore it but I always liked KDE. I wish QT would just do a widget set but as a commercial company they obviously need to put as much functionality into QT as they can. Functionality that might be better placed within KDE maybe.
KParts seemed nice but I guess like increasingly other parts of KDE everybody will just go along with the Troll functionality. They seems to be wrapping up more and more stuff that happend within the KDE community effort. Not to mention stuff that exists within the POSIX sphere. HTTP support, Regular expression stuff, Database stuff.
KDE will end up as nothing more than a thin layer on QT if its not careful.
Is there any examples of QT going along with any KDE ideas? Everything I can think of seems to be KDE changing direction to encompass latest changes in QT.
Of course people will argue that the "Trolls" are a nice bunch of guys and so they are for now, but what if they decide to license QT under more onerous conditons a couple of years from now one KDE/QT is mainstream and developers can no longer just pick and choose but are locked in like we currently are with Microsoft?
>> KDE will end up as nothing more than a thin layer on QT if its not careful.
And how is this a bad thing? Because...
>> what if they decide to license QT under more onerous conditons a couple of years from now
Then KDE stays with the GPL version and develops based off of that. 3.0 will be GPL. If an alien shoots the trolls with a brain ray, and 3.1 is only released commercially, 3.0 will still be (and always will be) available under GPL, and a fork will occur. Since that will really destroy a large chunk of Trolltech's position in the developer community (not just FS and OS developers), it's a very unlikely move. And it won't affect KDE anyway.
Incidently, I disagree with you about putting things like database abstraction into the toolkit; in modern programming, such things are pretty much necessary, and if done right (I'm not a fan of ODBC), it makes the code much more flexable and powerful.
>> As both a windows and Linux developer I always detested Microsofts COM model.
Now that I will agree with. I've been stuck doing "pay the bills" programming, and have only played around with KDE (tossing out patches to authors, mostly), but dcop seemed to head in a direction I really liked. Some things (like namespace handling) needed to be cleaned up a bit, IMO, but Signal/Slots, KParts, dcop, views and kio slaves seem to really work well together in real world situations. I'd like to see something like KParts and dcop without a GUI so that server and embedded processes can be connected to remotely and controlled via native KDE app connectivity, plus a full relational database included by default into KDE (something like MySQL - small, fast and relatively (for a desktop backend) powerful), but that's just me daydreaming about the perfect environment.
--
Evan.
There is some similarity to Trolltech position now and Microsofts in the 80s/early 90s. Shawn Gordon in his recent Slashdot Interview mentioned he was taking a more "QT centric" approach with his Kompany. This is much like the feeling among Windows developers of the last few years to eshew some third party software today because Microsoft was going to "officially" implement some functionality later and there was no point building your code around something today when you "knew" you would end up using the the Microsoft stuff a bit later.
For the moment the having the Free software community on board is important to Trolltech. They won't for the moment do anything to hurt that. However if commercial development takes off on KDE/QT Trolltechs priorities will change. They will use QT to drag KDE where they want to go, not necessarily where the Open source community wants to go.
I am not so sure the KDE community would branch of from QT like you mentioned above. Technically they could but as core KDE architects work for Trolltech it would be difficult even if dissatisfaction was fairly high. Once KDE was a a defacto desktop then the "official" TrollTech sanctioned branch of KDE would be the one distributed with the major linux distributions and any branch could be sidelined..
They don't "suck from KDE into Qt". All code in Qt is property of Trolltech. They are not stealing KDE code.
The scenario you lay out is ludicrous. Trolltech will not be able to "drag KDE around". If they stop releasing the free Qt, then the KDE team would fork the latest Qt GPL version. This would destroy commercial development on KDE (which, in-turn, would cut into Trolltech license sales) for 1 year, after which KDE will LGPL their forked Qt. This would make commercial development cost nothing. If, by then, KDE has become the standard unix desktop, then Trolltech would have just signed their death.
Now, if you're suggesting that Trolltech would do something silly like fork KDE, let me tell you it would never work. I don't care how many members of KDE work for Trolltech. The news would make Slashdot headlines and in less than a week the original KDE team would be reformed and marching merrily along, with full support from the open source community.
Just curious, sorry if it sound trollish.
If TrollTech was to use KDE code would they be able use dual licence, or would they only be able to use it in the GPLd version of QT? If thats the case it will continue to be a one way merge, and there will not be using the full potential of Free Software.
Has there been any open discussion about what will happen with the KDE/Qt overlapping technologies such as Kpart. Will it be killed of as KSQL was?
Trolltech could not reuse GPLed code from KDE and integrate it into a non-GPLed product. In order to be able to do so they would need permission from the authors of the original code. This will not happen and the idea that Trolltech is taking over KDE makes little sense.
Ok, before reading this, you better understand I'm not siding with anyone's opinion -- just reporting what I believe is going on in other's minds. (A crazy thing to do to start with)
----
He actually makes a few important points:
1) All commercial development of KDE apps goes thru TrollTech. This means that any sort of possible revenue is TrollTech's. Bad or good? Not sure, but I sure don't like that. In one way, it improves the possibility that GPL'ed versions of commercial products will be created, if only for the freedom of bypassing the middleman (TrollTech). In another way, it also makes sure that TrollTech gets to state the rules for any sort of KDE commercial developments. No matter how honest (and they are) and good willing (and they are -- 'KDE Free Qt Foundation') they are, I don't like that, and never will.
2) Functionality has been going from KDE to Qt. KAction -> QAction, kio-slaves to qt network protocols, KParts -> UCOM. Once again, KDE serves as a nice testbed for TrollTech's additions to Qt. I don't mean to say that TrollTech's purposefully trying to use KDE as a testbed, but saying that Qt didn't improve due to KDE's usage of it, and KDE's boldness of design would be a blatant lie.
This is bad for KDE, if only from a technical point: Code duplication. Efforts that would be better put into improving what is already there.
From a 'marketing' point-de-vue, it's bad. Real bad. KDE's stuff is simply not good enough, TrollTech had to make better versions. I'm pretty sure there's gonna be an awful lot of confusion about UCOM vs KParts for KDE3 third party applications. Quote me on that.
It also creates the very real possibility that people will create cross-platform applications (which is not a bad thing, by any means) at the detrimental of KDE integration (KParts vs UCOM again) which at the very least, _sounds_ bad for KDE.
> They don't "suck from KDE into Qt". All code in Qt is property of Trolltech. They are not stealing KDE code.
You honestly believe that code is all that matter? Does design quality and algorithmic value mean nothing to you?
Yes, sharing should be encouraged at all cost. Yes LGPL is better than GPL in ALL SITUATIONS (which is my main problem with TrollTech, currently), as far as the movement is concerned. That doesn't mean that people selling code and _ideas_ they took from freely available sources should be encouraged.
I think TrollTech was a blessing for KDE, is still a blessing, but, honestly, has all the potential to become a curse. In a world, especially in the computer-related business, where the vast majority of corporations care nothing about their users/customers and everything about their pockets, that people become paranoid about most things TrollTech do is a good thing. Too many old wounds that took too long to dress.
The real issue here is the division between the idealistic part of the OSS movement (we shall all share code, knowledge, live as equals, etc.) and the pragmatic part (as long as we have something good working and going... ). The idealistic part believes that TrollTech is abusing (even without wanting to) KDE to feed its Qt product, that they already have too much freedom with basic stuff underlying KDE, and that anything they do that's not directly and unambiguously improving KDE is bad.
When I said suck I didn't mean "steal". I meant the appearance of functionality that was in KDE is being reimplemented in QT. So a migration of functionality occurs from KDE to QT.
I never said they would "stop" releasing a free version. My point is more subtle. They could take control of KDE while all the time releasing new and free versions of QT that slowly recreate the base functionality that KDE provides.The mistake is to believe that the free software community will always be as important to QT and KDE as it is now. Yes we will always have a GPLed KDE and QT. It just that commercial development built on top of KDE/QT may start calling the shots about its direction and that may not always mean a desktop that is what we want.
There are two possible forks if either party is disatisfied: Either Trolltech can fork KDE or KDE team fork QT. Let me address both and how their really is only one outcome with Trolltech in charge.
If and its a big if KDE team really did fork of the last version of QT how long would that branch of the forked QT underpinning KDE last. Trolltech would still be able to ask commercial developers to pay up to develop for the KDE teams fork of QT. They could set a very unfavourable rate for the KDE teams fork of QT all the while giving favourable rates to developers who go with with their offically sanctioned QT. Once commercial development on top of KDE is of equal importance to open source stuff, it will be what large corporates choose as their version of QT that will determine which fork will win. Since they would have to pay for the KDEs fork of QT and for the Trolltech version, they would choose the "official" QT. Hence it will be the version of KDE built on top of the "official" QT that wins.
As for the other away around you are right, Trolltech never would do some thing silly like fork KDE. They won't have to. They will practically be in charge of it anyway. Its largely matter of perception of whose is forking from who, and who is the official maintainer.
I am thinking out aloud. If someone starting making dark predictions in the 1980s about how a small bitplayer called Microsoft would slowly leverage its position with its DOS OS , to supplanting competing GUIs on top of DOS, to building the core applications, and now to providing a media content and services, it would have been seen as a "ludicrous" what if scenario. Even more so since Microsoft was then seen as the "good guy" compared to the IBM of the time.
The similarities are striking. Microsoft initially allowed all sorts of software to live on top of its OS, however it gradually ate up into that ecosystem of third party software from its position of strength of owning the underlying APIs. Almost identical in fact to what QT is starting to do with KDE right now.
I believe Trolltech is in that Microsoft 1980s phase right now and even they may not realize the possible future extent that their current position gives them. Can I buy shares in Trolltech now? (I am serious!)
The one thing you seem to miss is the KDE QT Free Foundation. If TrollTech ever makes QT proprietary, the last open version would become LGPL'ed, IIRC.
I do see your other concerns, but if companies want their software to fit into the leading desktop environment, they must use the "official" KDE way of doing things and not the QT-way...
It does bring me to a question though. Does anyone know if the KDE Project is actually planning to drop KParts or KIO? I've never heard that anywhere besides here.
Finally, I might note that TT really doesn't have total control of commercial software. Think about it: I could release an "engine" of a program that is proprietary, and then simply GPL the wrapper-GUI. The GUI would be virtually useless without the "engine," but the engine wouldn't come under the terms of the GPL because it wouldn't be linked to QT. Maybe not the cleanest way of doing things, but it would allow GUI portablity, and some other cool stuff.
-Tim
Tim,
I am aware of the KDE/QT free foundation. I think it might be a BSD type license its released under if that was to happen.
However they need never make QT proprietry to gradually take control of KDE. They just need to gradually recreate functionality in QT that was once part of KDE and make sure KDE tracks the latest version of QT. In that way functionality originally part of KDE libs end up in QT (Note, I am not saying KDE code ends up in QT). Once similar functional efforts by the KDE community efforts are aborted, the functionality is for use under the dual licenses of QT where they can charge commercial developers for it.
KDE functionality that was once provided for free for both open source and commercial developers ends up being charged for within QT, for commercial developers anyway, and KDE direction is then indirectly influenced by commercial concerns rather than KDE community interests.
QT interests are to be platform independant. A noble goal but the main platform after Unix that TrollTech is interested in is Windows. How likely that QTs goals will always in be same as KDE. Does KDE really care about running under Windows.
.
--
So you like to work for the sake of the work? The more (basic) code which is in QT the less work KDE developers have to create/correct/verify and they can take the time to develop something different/fancy, and there is enough to develop.
To get specific: have a look at the almost off topic dicussion on kde-devel about the necessity of hyphenation/justification support for a DTP application. Everybody of course thinks it would be nice if QT would provide this, since one would have to study a lot ( font handling, grammar, layout techniques ) just to start this, and there is almost nobody willing to make this effort.
And here you get specific:
.
You are actually worrying about commercial/closed source (ccs) apps. Now, I hope, KDE will not need this and will be able to provide a free replacement for all standard and some non standard apps.
But the developers of ccs have to pay Trolltech independently of the amount of "KDE-functionality" which is in QT, if they want to develop for KDE or with QT. The alternative would be to start a new project with a LGPLd library, but why would you want to do that? why shouldnt ccs pay a trolltech tax - who carees?
There are currently many free replacements for QT, even in other lanuages - the competition is high and Trolltech will never be able to charge an unreasonable price for their toolkit.
Anyway: "Once KDE was a a defacto desktop" is far, far away. Currently its important to make it the best alternative desktop there is and every programmers effort is necessary to achieve this. This includes of course Trolltechs programmers
Yes, I do worry about Commercial apps in KDE, but not in the way you are implying. I worry that that commercial apps have the power to influence KDE via its link to QT.
I don't care that corporates they have to pay money to Trolltech. I worry that the money TrollTech receives for QT will change QT in ways that are unfavourable to KDE, and KDE will just have to go along with the changes.
I think QCOM is an example of this. A messy Windows technology being ported over to QT because Trolltech think big corporates want this sort of "enterprise" functionality. Microsoft has come up with some decent stuff in their time. COM is one of them though. From a C++ developers perspective its difficult and clumsy.
Hard to say when or if KDE becomes a defacto desktop but my belief is it might be sooner rather than later and not a long way off like you think. However once that happens the same lock in effect occurs that we have now with windows and the fact that there is other free toolkits will become irrelevant.
'A messy Windows technology being ported over to QT'
Your an Idiot, that is all I have to say.
And what do the main KDE developers think of that?
Those who developed KParts, are they happy with this evolution of QT?
I'd like to hear them express their thoughts as I don't have the technical skill to judge the matter.
The KDE developers have understood what Qt is from the start. This evolution of Qt is nothing surprising to them, I dare say. It is the people who think that Qt is a widget library who are surprised. Qt has always been more than a widget library.
If KDE has superior technology, then KDE will not be forced to switch to inferior technology. KDE developers do what is best for KDE, so maybe it is time for people to quit being so alarmist.
Actually I think you are rewriting history here. KDE developers initially treated QT as nothing more than a particularly good widget library. Its only in the last year or two that it seems to have dramatically increased its ambitions, with KDE taking on board much of its functionality.
What are QTs limits then? Does it have no limits?
Will its limits be too wrap up all OS functionality?
If KDE has superior technology it won't be forced to switch? Has history alway borne this out in the past?
KDE developers do best for KDE? Depends, What if they also work with Trolltech, will their not be conflicts of interest.
I think some hard questions are being brushed aside with a cheery don't worry. It was the lack of foresight with Microsofts strong position in the 1980s that I am stuck being a Windows developer now.
Have you ever heard of QString? What about QUrl? Or QFile? The list goes on. What does this have to do with widgets? They have been used in KDE for as long as I remember.
You show me where KDE has abandoned existing superior technology to Qt. You're the one who wants to make a point. :)
The KDE community is a much larger project than Trolltech or a few Trolltech employees. Big decisions are made by logical group decisions, not coersion. You should give the developers more credit than that. :)
Its a bit like saying Microsoft Internet Explorer is superior technolgy. It is, but only because its starved other companies of resources to develop competing browsers by being "free" so its the only one left standing.
Similarly 3 years from now, QCOM, I have no doubt will be hailed as "superior" technology if indeed KParts is killed now. But who knows how good KParts could become if it was left within the KDE community.
QString, QUrl , QFile, Are they the best examples of QT aspirations to be "greater" than a widget set? ;-) Seriously, I understand a toolkit may spread out into other areas. I just wonder about how much it will or should encroach into KDE? And how willing the KDE community would be willing to stand up against something in QT that is undesirable?
My point is how much should be done by QT and how much by the KDE community. There surely reaches a point where if the KDE community want to pass up on implementing certain functionality you got to question how interested they are really in developing a desktop that they are in control of.
I like Qt as a widget library, because of (at last for me) clear design and easy learning. But I'm in doubt about implementing non widget things. Library should do one thing good, than many things averagely. QCom can be separate library for people, who like it and KDE remains on kparts, which works well.
I would like to know, why Qt provides and KDE uses QString, when string is in the standard c++ libraries, why Qt implements container templates, when STL do the same thing... are QString, QList, etc. inspirated by MFC's CString, CList, etc.?
The QT library is older than the STL. Not all compilers which QT wanted to support could handle the templates in the STL. QString provides unicode support and implicit sharing, which the std string doesnt provide
You may want to read sections 21.2 and following
of the C++ standard:
"The header defines a basic string
class and its traits that can handle all
char-like (clause 21) template arguments..."
But AFAIK you are right in that the standard does
not require reference counted implementations (see
21.3, verse 6).
Ingolf
First I want to say, I agree that Qt should be split into several smaller libs (qtutils, qtui, qtextensions or something like this).
Well, the reason why to use QString instead of string is simple, all other Qt classes take QString as argument (e.g. the text for QLabels), additionally all Qt classes are documented *very* good and online, compare this to the STL docs you can find on the net.
And last thing, kparts will probably not be killed with KDE 3/Qt 3, since KDE 3 will mainly be a port to the binary incompatible Qt3 including fixes which could not be done until now due to the BC freeze.
bye
Alex
Well, if KDE will end up as nothing more than a thin layer on QT, then more developers have more time to develop applications. Wouldn't that be good ?!
Following that line of thought to its conclusion we end up as KDE consumers not developers. Is that the ultimate desirable outcome.
Sure, lots of things make sense in QT, and lots of thing won't, but Trolltech as a commercial company obviously won't want to limit themselves to just a purveyor of widgets. They will add things to QT whether or not it makes sense for KDE.
In my opinion, coming from the Windows world COM is a unholy mess of a technology that seems to be coming soon to a KDE desktop near you. Will KParts disappear in favour of QCOM. I hope not. the QT / KDE programming model was so clean and now it looks like getting a lot of Windows type complications. I think this might be the first real test for the QT and KDE relationship.
Your extreme logic is flawed in that it already extreme from the get go. You should know that Qt has always been and will be more than GUI widgets.
Qt is an application framework that needs to be portable. Qt contains technology towards that portability goal. KDE uses what it needs but is not limited or controlled by Qt.
KParts will not disappear unless it is a decision by the KDE developers. KDE developers will do what is best for KDE. This is not any first real test of the Qt/KDE relationship by any stretch. :-)
KDE developers will always do what is best for KDE?
What about if they also work for Trolltech?
Then they are at the same time KDE developers and TT developers. And if they ever get into a conflict of interest, we will know what they prefer to be.
However, this silly little jealusy scenario you are flaunting is no conflict of interest.
I, for one thing, am glad of using whatever TT chooses to create.
Just as since the beginning of KDE, we were always happy to use whatever someone else was developing that was usable.
Life is only this long, and if someone wants to create a XML parser, we will use it so we don have to know how to write a damn XML parser.
If Qt grows until it does a bazillion things well, GREAT. We will do another bazillion things on top of it, or half a bazillion, or whatever.
In the end, you get more bang for none of your bucks. What exactly is wrong with it?
I, for one thing, am glad of using whatever MS chooses to create.
See the point.
No, I don't see the point.
TT produces GPLed code. KDE uses this GPLed code. If TT decides to re-do something that KDE has already done, then it will either be worse then KDE's stuff (and it goes down the drain) or better then KDE's stuff (and KDE's stuff dies, and there's a small period of switching over).
What the hell does this have to do with M$?
I'm afraid that TT will not drop its code because KDE's one is better. It is possible only in one direction.
When Microsoft released its Windows, all application developers were happy - do you remember this - "we have a standard platform at last". But Microsoft didn't stopped it became to develop applications. There is an third party application running on Microsoft system, and a Microsoft application running on Microsoft system - and Microsoft wins even if its application is much worse. The question is only when TT will finish QT and start to develop applications.
What with API's - did you see MFC ? It is horrible, but the most popular - do you think that developers have choosen it because there was nothing better ?
Well, there's a big difference between TT and Microsoft:
Microsoft produces an OS, and it's most popular office suite, and it's most popular web browser, and controls all of it. This will change in a few years, I am certain, but right now, the desktop market is cornered by M$, and for most userland (not serverland or developerland) software, it's their way or the highway.
Troll Tech produces an Open Source library, that does GUI stuff, and many other functions. It does things similar to several other libraries, both commercial and Open Source. Note the reference to *alternatives*. Yes, TT is doing things that have already been done, but unlike with M$, it isn't forced on anyone. If they produce crap software, well, then they lose, and KDE developers fork the QT tree (or perhaps switch to some other library/libraries) and TT loses. But if their software is better then what's out there, then TT wins, KDE wins, and even the people who liked (for example) DCOP win (because they wouldn't switch if they didn't like it, and thus we go back to the first scenario)
TT doesn't have to drop any code that it doesn't want to, but if they do something that hurts KDE, and don't stop, then they've just lost a whole load of developers, beta testers, and customers (because who would pay for the commercial version of a library that's different from the one that everyone else is using?)
Thus, TT produce bad code, TT dies. TT produce good code, everyone wins, especially KDE developers, KDE users, and TT.
>It is horrible, but the most popular - do you think that developers have choosen it because there was nothing better?
Who am I to explain the strange behavior of many Windows developers? :-)
>The question is only when TT will finish QT and start to develop applications.
They already have, and look what's happened! QT Designer is a (imho) good piece of software, and several people are using it. It's even being used in KDevelop, iirc. On the other hand, QT Linguist is really not as good as KBabel, and just about everyone I've seen is using KBabel, not QT Linguist.
QT and KDE are now well and truely married for better or worse and the normal open source protection of forking won't work because of the dual license.
KDE developers will not be able to fork QT and have both opensource and commercial development exist on top of KDE. Trolltech could put more onerous licensing conditions on top of the KDE split of QT for any commerical developers who chose it. One may argue that they don't care about commerical developers but if there is a Troll tech supported KDE with its official version of QT or a KDE community split of QT the main distributions will probaby run with the TT one as both versions are GPLed and will argue that the TT version is just as good. If commercial development on top of KDE becomes a large scale activity on par with the volume of open source apps then it will be the version of KDE that can support both Comercial and Opensource development will win. Trolltech probably have a better chance of forking and supporting KDE then KDE have of forking QT.
Its well past the point where KDE can just drop QT. QT has reached a size where a reverse engineering of it or building a new KDE on top of a different toolkit would be a 2 year minimum undertaking. In the current environment that would effectively kill KDE.
KDE is married to Trolltechs QT and will live or die with Trolltechs version of QT.
You are completely missing the point I think. KDE is not designed for commercial companies to write programs for. It is an open source desktop environment and always will be. What you seem to want is an LGPL QT. Well, it ain't gonna happen, and in RMS' view it shouldn't. See his "Why not LGPL" article on the GNU web page.
I understand that KDE is not designed for commerical companies but it is built on QT which is. The reality is that if Linux/KDE becomes successful then commerical developement will appear on top of KDE whether it was designed for it or not. Trolltech as a the gatekeeper to commercial companies developing on KDE will have then an interest in making sure KDE develops in a way favourable to QT and Trolltech and not necessarily the way the open source community would like.
A LGPL QT would get KDE out of many problems I think. Certainly core KDE developers believe in the LGPL as well or why would so many KDE libs be under the LGPL.
I would love to know if Stallman really believes that the dual GPL licensed QT really works in KDEs advantage. I don't think he does but he has dug himself in a hole with his statements about the LGPL so he could hardly say otherwise. Still his statements a year back had a coolness to them about the GPLing of QT that I can't quite place my finger on.
You are right though. A LGPL version of QT will never come from Trolltech as it would blow a big hole in their business model.
The best thing would be for Red Hat / Mandrake / or SUSE to buy out Trolltech and LGPL the stuff so that the Trolls don't end up becoming the Microsoft of Linux. I think by the time the big distributers notice this problem Trolltech might become a very expensive company to buy as everybody else will be suddenly noticing the strength of Trolltech positions as well. Of course if they did buy Trolltech with the knowledge that it was in a very powerful position then they would be tempted to keep on the dual licensing as a revenue stream. I guess we are stuck! I would love to buy shares in Trolltech but its privately held?
It doesn't have to be reverse engineered! QT is GPLd for pete's sakes, it's forkable
I explained in other postings why I think KDE would never fork QT no matter what direction QT goes in, good or bad. I am not willing to repeat here again.
Interesting you mention XML parser. I am no XML expert but why use the TT one. Why not use the one of the other XML parser tools out there. Do we really want KDE be just be based on QT or should KDE draw from the best of the vast richness of opensource projects out there?
KWord was retrofitted to use the QT3 rich text edit control. There well might be a good argument to have done this, I am not familiar enough with this area to say if this was a good idea but it does give pause for thought.
What about KSpread based on some future Spreadshead/table control or worse a future Konqueror based on a future QHtml widget instead of KHtml? Does the KDE community keep saying "great now we can concentrate on doing something else because Trolltech have decided to support this functionaility in QT". If the KDE developers really want a commercial company to support all this extra functionality for them maybe we should question how much KDE community is really interested in having a desktop they control.
In fact TT are interested in the desktop environment and producing the whole shebang on top of that environement for the embedded market with QT/Embedded and QT/Palmtop. A future TT might very well be interested in going the full distance with its own desktop environment. In which case KDE was a merely a useful bootstrapping environment to mature QT to the point of it being a replacment.
TrollTech have been pretty good guys so far. I just don't think KDE has the protection or the mind set at the moment so defend itself against a Trolltech that might be very different in a couple of years. When Trolltech starts recruiting MBAs and Business Analysts and Marketing people who have no appreciation of open source or QTs history and will just see QT involvement in KDE as a means to an end.
Although everybody is very defensive of TT and QT and seem to have a unreasoning faith in the protection of the GPL and the KDE/QT foundation ask youselves this question, if Microsoft bought Trolltech out, would you have no worries. Can you truely answer yes to that? I know I can't.
KDE uses both the xml parser in Qt and the parser from libxml. libxml is nice because it supports a an xslt layer (libxslt) and supports external entities, which is e.g. important for docbook->html conversion. Qt's parser is nice because its unicode support integrates well with QString and it has a nice dom-based api. So this is indeed an example how KDE "draws the best from the vast richness of opensource projects".
As for KWord, I have no idea what you are trying to say. Should KWord continue to use the old buggy code instead of stable and maintained code just out of spite for Trolltech? Why? Does it carry the Ebola virus or what?
Also, the statement about the "KDE community" is nonsense. There is no central authority which controls which programs users use and which programs developers write. Users will use whatever fits their needs best, regardless who writes it. Developers use those tools which fit their needs best. When I want to parse xml files, I naturally use QDom unless there is a good reason not to do so, because it is just the most convenient way to access dom trees. Who are you to tell me that I must use a different parser? If you are going to write a parser that is as easy to use as QDom and has more features/is faster/whatever, fine, it will be used by developers. But expecting people to use inferior code just in order to avoid Trolltech is plain ridiculous.
Don't get furious and whip yourself up into up an anger for something I am not saying. I am not saying you should not use QT parser. I am not setting myself up as an authority on what developers should be using. I am saying I am noticing an accelerating migration of functionality from KDE to QT and am speculating on what happens if this continues.
My point is it will nearly always make more sense to use QT funtionality instead of stuff outside QT. It will also nearly always be easier. And that may not be always a good thing in my point of view.
KDE could be Trolltechs big jackpot in the future if commerical apps start appear on any scale on KDE. Trolltech will always want to make things as easy as possible for KDE to use QT. And that could be double edged sword for KDE.
Funnily enough this is just like in Windows. It always made more sense to use the Microsoft technology instead of third party software. Because they had more flexibilty in tying new functionalty into old it was always more "convienent" to use the Windows stuff instead.
If you remember Borland OWL C++ libraries from a few years ago and its competition with MFC. There was always the feeling that MFC was better because Micosoft owned the Win32 API and thus MFC would fit in better into the Microsoft model and track future changes more closely.
The example you mention, that you like using the Qt parser because it better integrates with QString. That sounds like a past echo to me and future warning of QTs dominance over KDE..
KDE community is a good term. You don't need a central authority to give a a label to KDE users and developers. Type "community" into KDEs search engine on and look at the many hits. Obviously KDE developers do view themselves as a community You say there is no central authority which controls which programs users use and write but I guess Trolltech is starting to come close in some ways.
I guess until Trolltech start producing applications that start eating into KDE apps will the bell really drop amongst KDE/Trolltech evangelists and for now I just look like a mad GNOME troll myself. :-)
PS I am no fan of GNOME. I love KDE, I like QT. and I think Trolltech have been model citizens to date, but my points still stand unchallenged IMO.
--.
--
Then you are guessing wrong. KDE has always been about creating something that *works*. It has never been KDE's goal to reinvent stuff just for the fun of it, when a component is already available, maintained and free.
--
You say there is no central authority which controls which programs users use and write but I guess Trolltech is starting to come close in some ways.
--
Then you guessing wrong again. It seems that it is trendy these days to make conspiracy theories about companies controlling projects or whatever. We have seen this with "RedHat is controlling Linux", "Ximian is controlling GNOME" and "IBM is controlling Apache". What these claims all have in common that they completely ignore how free software development works. When RedHat chose to boycott KDE, within weeks a new company (Mandrake) appeared and sold a RedHat plus KDE; very soon RedHat had to realize that would massively lose market share if they continued their boycott and had to bow down to their users. In a similar way, when the Open Group decided not to distribute X11 under a free license anymore, they had to take back their decision very quickly because it turned out that both users and developers would have simply ignored their X11 implementation.
It's always the same pattern. In a market with competition no company make decisions against their users. That's why Trolltech could never afford to massively increase their prices, as some people like to claim. If they demand an inappropriate amount of money or use inacceptable license conditions, developers will use a different toolkit, and they will go out of business, period. Obviously, they have massive competition in the form of Java (which has a lot of hype, advertizing and many companies behind it) which is even cheaper. They also have competition in the form of gtk and Tk which are completely free, and nevertheless they sell Qt. Why? Because customers think it is a good and well-supported product which follows their needs. This implies that it adds functionality whereever needed or whereever it is not provided by 3rd party tools. Database support a standard feature of tools like Delphi and Visual Basic, so of course it is good when Qt (and specifically the Qt designer) supports it. Also, networking support is a feature that has been demanded by developers. The xml parser is even used in Qt designer itself, so of course it is good to have it available also for other applications that utilize the qt library. The way Qt is developed is a sign that it follows the demands of its users, not a sign of the opposite. On the contrary, it would be a bad sign for the future of Qt if it can't offer the features of competing toolkits like Delphi.
>>I, for one thing, am glad of using whatever TT chooses to create.
Lets make that the rallying cheer of KDE. Hurrah for TrollTech. What ever you agree to bestow on us we will happily except.
>>If Qt grows until it does a bazillion things well, GREAT. We will do another bazillion things on top of it, or half a bazillion, or whatever.
Microsoft also does a "bazillion" things so as to save third party developers the annoying little "chore" of having to write boring things like applications and what not. The idea of a open source community desktop is that they would do it themselves.
Do the KDE community want to develop their own desktop or do they just want to eventually outsource the work to Trolltech?
If someone prefers to do two bazillion things instead of taking advantage of the bazillion TT has given us, he has every right to do so too.
Freedom cuts both ways: you are free not to use it. I am free to use them.
And at least there is a rational argument for the use of TT code: it is licensed freely for us to use it, and it is maintained, and, in many cases, it is pretty good.
Now, if the only reason not to use that freely licensed, maintained, pretty good code is "TT will make more things that we can use", excuse me if it doesn make me want to run and implement a competing codebase.
There were many rational reasons for going with Microsoft 10 years ago. As many third party developers found out to their cost, those "rational" reasons where not a long term rational decision but only bought themselves a short term advantage while giving Microsoft the long term advantage.
And so is the gains KDE makes from QT.
So, basically, you are scared, so we should do what you say.
Yes, very rational, that.
Grow up and look around: just about EVERY successful software company is successful on windows. Pretty much none is successful outside of windows.
Why? Because windows does provide useful stuff to the application programmer. Deny it if you will, but pretty much any programmer will know you are wrong ;-)
A nice thing about KDE is that it provides me (as a programmer) a whole bunch of stuff that makes my life more pleasant, and does that without requiring me to agree to funky licenses [1]
If Qt would provide me everything KDE provides, with as good or better code, in the same conditions, I would say, let's take Qt immediately, and make KDE something else, something new, something cool, something useful.
Because, after all, that is why KDE got started, was it not? Because there was no cool, useful desktop software for unix. And KDE provided it.
Now, if Qt provides that and KDE gets "marginalized" into high-end applications, no big deal, just more interesting and fun things to hack.
And if Qt does not, and KDE provides the whole shebang as now, no big deal, more varied things to hack.
In any case, no big deal. And if someone prefers to ignore Qt and reimplement stuff, last I heard some people founded a whole desktop project just for that, and they seem to be happy doing it.
Just don't get all chicken little on us and ask US to run because the sky is gonna fall.
[1] Except the Funky Software Foundation's GPL, of course.
>>Grow up and look around: just about EVERY successful software company is successful on windows. Pretty much none is successful outside of windows. <<
Windows is > 90 percent of the market. Almost by definition most current successful software companies will have been successful on windows. Isn't this what is called a tautology?
The list of once successful companies on windows who found their functionailty absorbed into windows is a long and well documented one.
>Just don't get all chicken little on us and ask US to run because the sky is gonna fall. <
You are starting to babble.
A tatutology, among other things, is true[1]. You may say whatever you want, but if my argument is backed by a tautology, I am pretty confident on its correctness.
I may babble, but at least I babble with flair.
[1] Despite what you may have heard, tautologies are good. E=mc² is a tautology, once you know that, well, E=mc².
Roberto,
I notice you are one of the voting members of the Free Qt foundation board? That worries me. I would rather see a more cool detached viewpoint towards Trolltech involvement in KDE rather than always automatically running to their defence.
You may indeed disagree with me but as you are a voting member I would expect to take a more protective role towards KDE and a more suspicous role ( even if its not currently warranted ) towards Trolltech.
I am a Windows software developer who is currently only a KDE user. However I would like to develop to the KDE/QT APIs but I have this nagging worry that Trolltech can become to Linux/KDE what Microsoft became to PC developers even with the protections of the GPL and foundation. Am I just swapping the devil I know for a future one that I don't? | http://dot.kde.org/comment/85782 | CC-MAIN-2014-10 | refinedweb | 8,205 | 70.84 |
Uniform Access Principle is a programming concept which was first introduced by Bertrand Meyer which stated that
All services offered by a module should be available through a uniform notation, which does not betray whether they are implemented through storage or through computation.
The principle simply means that the notation used to access a feature of a class shouldn’t differ depending on whether it’s an attribute or a method.
For example, if you have an object Person and you want to find it’s age, you should use the same notation whether the age is stored field or a computed value. The client should not know or care whether the age is calculated or stored. This gives the Person object flexibility to change between the two which is an unnecessary concern from the client side.
Implementation of UAP(Uniform Access Principle) in Scala
Scala supports this principle by allowing parentheses to not be placed at call sites of parameterless functions. As a result, a parameterless function definition can be changed to a val, or vice versa, without affecting client code. Accessing methods and variables is the same in scala.
For example,
In above example, the methods and variables of class Runnable can be altered without affecting the client code which is calling it. The notation to access is same for both.
But Java does not support this principle, as accessing the length of an array is different from accessing the length of a string. We cannot access both in the same way because the array length is a variable and the String.length() is actually a method inside the String class.
Scala suffers from a namespace collision problem because of how the principle works.
For example, the following code would lead to a compilation error in Scala while it would work fine in Java.
Therefore, compiler checks for error as there can be ambiguity at the language level.
This principle provides a few advantages to Scala developers or the language itself:
- Leads to better design patterns.
- Client-side remains unaffected and the code logic can be altered easily.
- Refactoring of code becomes easier.
- Scala Collections API benefits from this principle.
- It leads to less confusion as in case of array.length or string.length, both are accessed in the same way.
- Writing unit tests becomes easier.
Hope you find this blog interesting, Thanks for reading. | https://blog.knoldus.com/what-is-uniform-access-principle/ | CC-MAIN-2019-47 | refinedweb | 397 | 64.1 |
Red Hat Bugzilla – Bug 1022642
Discovery queue can't display large inventory
Last modified: 2014-01-02 15:43:25 EST
Created attachment 815490 [details]
screenshot
Description of problem:
Discover queue can't display large inventory (75 agents x 25 EAP6 instances)
Version-Release number of selected component (if applicable):
ER3
How reproducible:
100%
Steps to Reproduce:
1. Install 25 EAP6 instances
2. Start 75 Agents via agentcopy script
Actual results:
Firefox shows spinning circle/loading data... timeout exception in server.log
Created attachment 815491 [details]
server.log
I'll take a swing at this an try to pull data incrementally. Not with paging but rather fetching data as needed to handle expansion. Basically, increase the number of DB round trips.
ETA = now.
release/jon3.2.x commit 85a41a0bc2cfc3512f13cc852def22ae5ea2cdef
Author: Jay Shaughnessy <jshaughn@redhat.com>
Date: Wed Nov 6 09:56:11 2013 -0500
The issue is that we attempt to pull all the ADQ resources at one time. Which
overwhelms the view if there are many discovered resources. For example,
when many new agents monitoring many servers all start up and report
discovery results at basically the same time.
This commit changes the approach such that we pull only the relevant platforms
first. And then the server resources as needed, such as on tree expand. Things
are complicated somewhat by the fact that we allow child server selection
without platform expansion and also but supporting "Select All". Select All
will pull the child servers for each server in a separate DB request. Whether
this is the best (or an acceptable) approach remains to be seen.
Finally, assuming we now can display a large inventory of uncommitted resources
it remains to be seen whether we can select all and import them all
successfully, as a quick look at the code reveals that we do it all
in one transaction. It may make sense to break up the import work and
process one platform at a time.
Cherry-Pick Master : 2bc5aab6ec08055c1c7c981aabaded8f05fb44f4
I'm looking at some follow-up work now, to perhaps prevent a large import failure now that we should be able to actually perform a large import request...
master commit fd18ea22f83297bb806deba47365e86ebe23d573
Author: Jay Shaughnessy <jshaughn@redhat.com>
Date: Wed Nov 6 15:02:57 2013 -0500
Related to the work on this BZ. Given that we can now support a large
inventory in this view (hopefully) we may have a downstream issue trying to
import the inventory in one large import request.
So, this commit breaks it up into one import request per platform (well,
per relevant platform that has selected uncommitted resources)
*** note
This is in master only as it doesn't immediately affect the BZ in question. But if desired, or certainly if there is a discovered issue importing a large inventory, this commit could move to the release branch.
***
Moving to ON_QA as available for testing with new brew build.
Mass moving all of these from ER6 to target milestone ER07 since the ER6 build was bad and QE was halted for the same reason. | https://bugzilla.redhat.com/show_bug.cgi?id=1022642 | CC-MAIN-2018-26 | refinedweb | 509 | 61.77 |
Agenda
See also: IRC log
Minutes of the meeting of 2006-03-27 were accepted without objection
hugo: headup on change of contact person . I am leaving the WG and W3C by the end of May
Bob: Hugo has been a tremendous help to me and the WG. We will miss him and wish him the best.
<dhull> +1
Hugo: I will go to yahoo to do some web-servicey "stuff"
Bob: reviewing action items:
1- editors to remove editorial notes, text from hugo accepted...
Bob: we will come back to these later
proposed and new issues
* lc123 - Example Improvement suggestion Owner: ??? Proposal 1: <>
ideal would be to align examples with WSDL document and use hotel reservations
dhull: describing the example suggestions
bob: any objections to regularizing the examples?
no objections
<scribe> ACTION: editors to modify text accordingly [recorded in]
issue: * lc124 - Conformance section Owner: ???
bob: Hugo, is this due to the new document policy?
hugo: W3C had a QA Activity, not really a new rule, but looking from a QA perspective
bob: should we add a conformance section, or change how we use the word "conform" ?
Jonathan: When we talk about
supporting usingAddressing, the use of anonymous or Action is
implied....
... for optional features, it is not clear exactly how you specify conformance
bob: there are some general statements in the doc style guide which contain some canned conformance statements
trutt: lots of specs have
"conformance points" which we can consider
... we need to clarify what are the conformance points - are they grouped or separate?
<Jonathan>
bob: any volunteers for writing a
conformance section?
... do we need a conformance section? We should explore that.
trutt: are the optional points sufficiently clear now, which ones are needed?
Jonathan: it is clear to me, but maybe it is not clear in the spec which individual items are required
bob: can we get an issue owner?
<anish> i see only two occurances of 'conforms to' and they all point to ws-addr (core/soap), i think
Jonathan: I can do it, suggest some clarifying text. If others want to work in parallel, that is fine.
<scribe> ACTION: Jonathan to work on clarifying conformance points [recorded in]
<bob> ref:
<GlenD> I think that what we did in WSDL was actually a mistake, and that a lot of people are going to be confused when they try to understand how to correctly use extensibility. :(
Jonathan: metadata is an issue - diferent use cases - hard to deal with
glenD: WS-A is used for messages... it cuts out databases, other interesting things... just say a sentence in that direction, may address the issue...?
<dorchard> I tend to agree with Glen. I especially don't like that the conformance seems related to fluffing up an abstract component model...
<anish> is this comment against all the specs or just the wsdl binding?
<dhull> paul, that was me ("WS-A is used for messages")
dhull: is there any product that
this would not apply to?
... if there is no meaningful kind of process it does not apply to, we can say it applies to all..
<bob> definition:
<bob> class of products
<bob> The generic name for the group of products or services that would implement, for the same purpose, the specification, (i.e., target of the specification). A specification may identify several classes of products.
we can say it is applicable everywhere, not have a canonical list of products it applies to.
bob: we can say: we heard your
comment, but it does not apply because of the following, or we
can address it
... the class of product we can describe here might be as simple as "web services"
jonathan: or a class of systems which consume WSDL
bob: wouldn't the class of products be WSDL consumers?
hugo: we can say WSDL or EPR
consumers. it does not need more than that.
... the conformance item was useful, but this item does not bring a lot of value.
bob: any objections to "WSDL or EPR consumers"?
jonathan: I agree,
bob: no objections,
<scribe> ACTION: bob to craft response respond to submitter; class of consumers is EPR and WSDL consumers [recorded in]
bob: not sure what is the point
jona: usingAddressing
<scribe> ACTION: Bob to respond to author. [recorded in]
hugo: possibly use a code font to mark element names
jona: or add a namespace prefix lowercase wsa-w
<hugo> in XMLSpec, <el> can be used to surround element names and <att> can be used to surround attribute names
<scribe> ACTION: editors to investigate ways to typographically clarify how to depict our intent [recorded in]
bob: ways for the application to determine how to use Anon? Is this an implementation issue?
<bob>
bob: the comment is in end of the
third paragraph of the link posted
... the answer may be: "yes, you are right, but..?"
jonathan: don't quite see the problem with a single endpoint, using non-anonymous, sending it on...
bob: asynchronously with respect to the lifetime of the backchannel?
<anish> i didn't understand what he meant by creating a new binding type. And how would that address his problem
jona: at the application level?
bob: using a non-anonymous
replyTo, you allow a future response to come on that
channel
... can someone craft a response? it is an overall WS-Adderessing question in some ways. Can someone try to take ownership to tease out what Todd means?
Anish: like jonathan, I'm not sure what the issue is...
jonathan: I will respond to him and try to get more detail, and explain our thinking.
<scribe> ACTION: Jonathan to respond to author (Todd) [recorded in]
Bob: We will need two hours for
the meeting next week, things are piling up
... I have opened registration for the F2F
... planning a Wednesday PM activity, possibly at Museum of Fine Arts
... it would need to be fairly early, by 6:30
... adjourning now, prepare for 2 hours next week!
... Paul, thanks for scribing | https://www.w3.org/2002/ws/addr/6/04/03-ws-addr-minutes.html | CC-MAIN-2016-36 | refinedweb | 993 | 71.65 |
- Code: Select all
class Redo(sublime_plugin.EventListener):
pending = 0
def on_modified(self, view):
if self.pending == 1:
return
self.pending = 1
try:
edit = view.begin_edit()
view.run_command('redo')
finally:
view.end_edit(edit)
self.pending = 0
Save this code as a plugin, edit a buffer, and hit undo twice.
I ran into this because I'm trying to add to a closed edit—i.e., when the user types something, I want to modify the buffer, but I want to do it in such a way that hitting undo once will undo both my changes and their changes. I tried to call "undo", and then start an edit and call "redo" and make my changes before closing the edit, and that's when I ran into this issue. | http://www.sublimetext.com/forum/viewtopic.php?p=8073 | CC-MAIN-2015-18 | refinedweb | 127 | 67.35 |
Opened 9 years ago
Closed 8 years ago
#2684 closed defect (worksforme)
[patch] Backwards relations (ie. xxx_set) across different apps needs voodoo magic to work
Description
As described (and temporarily solved) here:
In general, I have a Photo model and an Article model. They live in separate applications. The Article model has:
picture = models.ForeignKey(Photo)
The problem is that you can't access the 'article_set' attribute from a Photo instance *unless* you've already imported 'Article'.
Russell says that this is reasonably obvious if you know the internals, but it's definitely not documented.
So this should be properly documented, and if anyone can figure out how, a fix should be put in so you don't need to import the 'Article' model just to be able to access 'article_set' on a Photo instance.
Attachments (1)
Change History (9)
comment:1 Changed 9 years ago by parlar@…
Changed 9 years ago by russellm
Patch to force caching of related objects
comment:2 Changed 9 years ago by russellm
- Owner changed from adrian to russellm
- Status changed from new to assigned
- Summary changed from Backwards relations (ie. xxx_set) across different apps needs voodoo magic to work to [patch] Backwards relations (ie. xxx_set) across different apps needs voodoo magic to work
- Version set to SVN
The attached patch fixes the problem; commit pending the lifting of the moratorium on django.db.models development.
comment:3 Changed 9 years ago by russellm
To clarify the exact problem; If you have a model A with a ForiegnKey/M2M relation on model B, and your code is:
from test.project.models import B objs = B.objects.all()
the members of objs don't have their related descriptors (e.g., b.a_set) instantiated. This is because the related models are never imported, so the contribute_to_class methods for the related classes are never called.
A single call to B.objects.get(), B.objects.filter(), or just about anything else that interacts with fields will call the _meta.get_all_related_objects() and _meta.get_all_related_many_to_many_objects() methods to be called, which causes these methods to fill their caches, which causes the related models to be imported, and the related descriptors to be created.
Simple workaround, demonstrated in the patch - force the creation of an object instance to cause the meta class instance to populate its caches.
comment:4 Changed 9 years ago by russellm
I should clarify - this isn't anywhere close to an ideal fix; I'm actually against applying it to trunk. However, it is a rough workaround, and gives a vague indication where the problem lies.
comment:5 Changed 9 years ago by mtredinnick
comment:6 Changed 9 years ago by SmileyChris
- Patch needs improvement set
- Triage Stage changed from Unreviewed to Accepted
comment:7 Changed 8 years ago by oggie_rob
- Owner changed from nobody to oggie_rob
- Status changed from assigned to new
I think this can be closed now. I tested it out and it seems to work without importing the backward-related field.
comment:8 Changed 8 years ago by russellm
- Resolution set to worksforme
- Status changed from new to closed
Looks like this problem has been fixed by the model loading refactor.
Update:
If you do the following:
'Photo.objects.all()[0].article_set.all()' without importing 'Article', you will get an AttributeError on 'article_set'.
However, if you do this instead:
'Photo.objects.get(id=1).article_set.all()' without importing 'Article', the 'article_set' attribute works perfectly! | https://code.djangoproject.com/ticket/2684 | CC-MAIN-2015-48 | refinedweb | 570 | 52.39 |
Investors in Amcor plc (Symbol: AMCR) saw new options become available this week, for the January 2023. At Stock Options Channel, our YieldBoost formula has looked up and down the AMCR options chain for the new January 20 AMCR, that could represent an attractive alternative to paying $13.01/share today.
Because the $11 4.09% return on the cash commitment, or 6.09% annualized — at Stock Options Channel we call this the YieldBoost.
Below is a chart showing the trailing twelve month trading history for Amcor plc, and highlighting in green where the $11.00 strike is located relative to that history:
Turning to the calls side of the option chain, the call contract at the $16.00 strike price has a current bid of 5 cents. If an investor was to purchase shares of AMCR stock at the current price level of $13.01/share, and then sell-to-open that call contract as a "covered call," they are committing to sell the stock at $16.00. Considering the call seller will also collect the premium, that would drive a total return (excluding dividends, if any) of 23.37% if the stock gets called away at the January 2023 expiration (before broker commissions). Of course, a lot of upside could potentially be left on the table if AMCR shares really soar, which is why looking at the trailing twelve month trading history for Amcor plc, as well as studying the business fundamentals becomes important. Below is a chart showing AMCR's trailing twelve month trading history, with the $16.00 strike highlighted in red:
Considering the fact that the $16.00 strike represents an approximate 23% 86%. 0.57% annualized, which we refer to as the YieldBoost.
The implied volatility in the put contract example is 37%, while the implied volatility in the call contract example is 38%.
Meanwhile, we calculate the actual trailing twelve month volatility (considering the last 253 trading day closing values as well as today's price of $13.01) to be 23%. For more put and call options contract ideas worth looking at, visit StockOptionsChannel.com.
The views and opinions expressed herein are the views and opinions of the author and do not necessarily reflect those of Nasdaq, Inc. | https://www.nasdaq.com/articles/first-week-of-january-2023-options-trading-for-amcor | CC-MAIN-2022-27 | refinedweb | 376 | 63.49 |
#include <qtoolbutton.h>
A tool button is a special button that provides quick-access to specific commands or options. As opposed to a normal command button, a tool button usually doesn't show a text label, but shows an icon instead. Its classic usage is to select tools, for example the "pen" tool in a drawing program. This would be implemented with a QToolButton as toggle button (see setToggleButton() ).IconSet. setUsesBigPixmap() and setUsesTextLabel(). When used inside a QToolBar in a QMainWindow, the button automatically adjusts to QMainWindow's settings (see QMainWindow::setUsesTextLabel() and QMainWindow::setUsesBigPixmaps()). The pixmap set on a QToolButton will be set to 22x22 if it is bigger than this size. If usesBigPixmap() is TRUE, then the pixmap will be set to 32x32.
A tool button can offer additional choices in a popup menu. The feature is sometimes used with the "Back" button in a web browser. After pressing and holding the button down for a while, a menu pops up showing a list of possible pages to jump to. With QToolButton you can set a popup menu using setPopup(). The default delay is 600ms; you can adjust it with setPopupDelay().
qdockwindow.png Toolbar with Toolbuttons A floating QToolbar with QToolbuttons
Definition at line 54 of file qtoolbutton.h. | http://qt-x11-free.sourcearchive.com/documentation/3.3.4/classQToolButton.html | CC-MAIN-2018-22 | refinedweb | 211 | 56.76 |
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: mata: passing additional arguments to functions passed tofunctions
Thanks!
On Thu, 8 Jun 2006, William Gould, Stata wrote:
Matt Weinber <mweinber@gmail.com> has written Mata function -qnewsolve()- and
asked two questions. I have already replied to his first question, which I
mention becomes sometimes replies arrive out of the intended order.
The releavant parts of Matt's program reads,
numeric matrix qnewsolve(pointer matrix f, numeric matrix x, ...)
{
...
return(x\rc)
}
and Matt asks,
[...] is there an easy way to return x and rc separately instead of tacking
rc to the end of x?
Unlike my reply to Matt's other question, this reply is mostly about good
programming style, about which reasonable people can disagree. In addition,
however, I SPOTTED A BUG in Matt's code. Look at the little bit of code I
quoted. Do you spot it? Well, I'll mention it last.
First, Opinion
--------------
Ben Jann <ben.jann@soz.gess.ethz.ch> replied, "Use structures." I disagree.
In my opinion, structures are an elegant way of tying things together that
belong together, but in this case, I argue, x and rc do not belong together.
If I had a function that returned a parameter vector b and a variance matrix
V, I would find Ben's structure suggestion appealing (but see "A note on
structures", below). I would find it appealing because b and V belong
together. In calls to other subroutines, I can easily imagine that I will
want to pass along both, and I will want to store both together. In summary,
structures used this way are elegant because the resulting code reflects the
reality of the situation.
In this case, however, rc is dross. It is something the caller of
-qnewsolve()- needs to look at, but if it is as expected, the caller continues
and x stands alone. For the same reason, I do not much like Matt's
-return(x\rc)- solution.
So let's consider the general problem of returning multiple results that
do not belong together. x and rc is one example. Let's use b and V as
another, and ignore structures.
One solution is to put the returned results on equal footing -- pass them
as arguments, not because they contain anything, but with the sole intention
of defining them to contain our results. Our function will return (in
the programming return() sense) nothing:
xmpl1a(b, V, ...) (1)
xmpl1b(rc, x, ...)
or
xmpl2a(..., b, V) (2)
xmpl2b(..., x, rc)
I like this solution when the returned results are of equal importance.
In the b,V case, I find (1) and (2) more appealing than
b = xmpl3a(..., V) (3)
or the other way around, which somehow suggests that b is more important than
V. Moreover, I have another argument to favor (1) and (2) over (3): As a
user, when a function returns something (like b), I assume that it does not
change any of the other arguments that I pass it. I know I should look at the
decumentation, but I don't. When a function returns nothing, I know to be on
the lookout for changed arguments.
Another solution is,
bV = xmpl4(b, V) (4)
b = bV[1, .]
V = bV[| 2,1 \ .,. |]
but I do not like that because of how difficult it is to take back apart
and because V might be a large matrix and so (4) is wasteful of memory.
So we are back to (1) and (2). Between them, I do not have an opinion.
Usually I prefer (1) because I am used to seeing assignment on the left:
b = ...
But then I run into "copy" routines. In C, routines that end in -*cpy()-
always copy from the first argument to the last. Much of my taste has
been formed using C, and so whenever I fall into "copy" mode, I expect
the outputs to be on the right.
Anyway, when I have to write a routine that returns more than one
result, of equal importance, I tend to gather them together and put them
either at the beginning or the end according to which seems most natural.
Now let's consider x and rc. My usual preference is for
rc = xmpl5a(x, ...) (5)
rc = xmpl5b(..., x)
and that is because of how I will use the functions. I need to look
at rc before I look at x, and having looked at rc and found what I
expect, all I care about is x:
if (rc = xmpl45(x, ...)) {
/* there were problems */
}
... x ... /* and I never use rc again */
I told you I did not like (3), but in fact I do like (3) when what is
returned is a return code, error flag, and the like.
So my suggestion to Matt is to adapt (5) in his case.
Next there is the issue of input, output, and input/output variables. Let's
pretend Matt adopts by suggestion,
rc = qnewsolve(x, ...)
Question: Is x an output variable, or an input/output variable? Let's
assume -qnewsolve()- reuires an vector initial values for x. We could
imagine the following designs,
rc = qnewsolve(x, ...) x initial values and x returned
rc = qnewsolve(x, x0, ...) x0 initial values, x0 unchanged,
x final result
If I am required to provide initial values to use -qnewsolve()-, I prefer the
first solution, but do not much object to the second. If -qnewsolve()- can
produce initial values on its own, then I strongly prefer the second. In that
case, argument x0 might be optional, or it might be required but allowed to be
0 x 0.
A note on structures
--------------------
I wrote, "If I had a function that returned a parameter vector b and a
variance matrix V, I would find Ben's structure suggestion appealing."
In fact, I often use Ben's structure suggestion, but only for internal
subroutines that are undocumented and not directly called by users.
Structures scare users.
We at StataCorp will be working on alleviating that fear, but I do not expect
a lot of success. The long and short of it is that understanding structures
takes more time that it is worth for many. That does not mean structures are
not useful. I use them. We at StataCorp use them. Ben uses them. Many
advanced programmers use them, and will be using them more. What I am
suggesting is that users should not be required to understand structures to
use Mata, or to use end-user subroutines.
-qnewsolve()-, I suspect, falls into this category.
In my response to the previous question on -qnewsolve()-, I used structures to
solve the problem of calling user functions and passing additional arguments.
Note, however, the use of structures was all internal. Matt needed to
understand structures, but users of -qnewsolve()- did not, and in fact, will
never even know that structures were used in obtaining the result.
-qnewsolve()-, however, is an end-user function. If -qnewsolve()- returned
results in a structure, then the caller would have to know how to use them.
A bug in -qnewsolve()-
----------------------
Matt's current version of -qnewsolve()- reads,
numeric matrix qnewsolve(pointer matrix f, numeric matrix x, ...)
{
...
return(x\rc)
}
Let's assume that in some other program we used -qnewsolve()-:
...
x0 = ... initial values ...
...
soln = qnewsolve(&f(), x0, ...)
if (soln[length(soln)]) {
... (there were problems) ...
}
x = soln[| 1 \ length(soln)-1 |]
...
Would you expect -x0- to change aftrer the call to -qnewsolve()-? I argue you
would not, else why would -qnewsolve()- be returning x to us?
But, as Matt as outlined -qnewsolve()-, x0 will change. Function -qnewsolve()-
receives arguement x and returns x\rc, so -qnewsolve()- changes x.
We called -qnewsolve()- by coding
soln = qnewsolve(&f(), x0, ...)
so our variable x0 is -qnewsolve()-'s x. -qnewsolve()- changes x, so it
changes x0.
I'm sure that was not Matt's intention. The solution is
numeric matrix qnewsolve(pointer matrix f, numeric matrix userx, ...)
{
x = userx
...
return(x\rc)
}
Now the program receives a variable it calls userx, and x is its own,
private variable. The x returned by -qnewsolve()- is unrelated to
x0.
-- Bill
wgould@stata.com
*
* For searches and help try:
*
*
*
*
* For searches and help try:
*
*
* | http://www.stata.com/statalist/archive/2006-06/msg00308.html | CC-MAIN-2014-52 | refinedweb | 1,368 | 74.59 |
How to record multiple cameras with VideoWriter?
Im.
Edit: Code
#include <iostream> #include <unistd.h> #include <opencv2/opencv.hpp> using namespace cv; using namespace std; string addr; string outfile; int main(int argc, char *argv[]) { addr = argv[1]; outfile = argv[2]; VideoCapture vcap(addr); Mat frame; if(vcap.isOpened()){ VideoWriter writer(outfile,cv::VideoWriter::fourcc('X','2','6','4'),15,Size(1280,768)); int i = 0; while(vcap.read(frame) && i<20*60){ resize(frame,frame,Size(1280,768)); writer.write(frame); usleep(100); i++; } writer.release(); }else{ cout << "Video couldnt open" << endl; } return 0; }
Did you run your code in serial and check if it works there? How are your cameras connected to the PC? USB 3.0? Do you use an USB HUB in between? Also atleast one corrputed image and the corresponding code would be helpful ... At the moment it sounds to me that there is a bottleneck somewhere to the connection to your pc and the frames can't be properly transmitted.
The connection to the cameras is via RTSP. I added the code
I dont kown it clearly,but you may have a look at " cv::VideoCapture::grab() and cv::VideoCapture::retrieve()"
As far as i can tell, the code looks fine to me. Anyway this sounds too me that there is a bottleneck anywhere in your setup so the frames can't be properly transmitted. I had similar issues when i connected 2x usb 3.0 cameras to an usb hub and connect the hub to the pc. Some frames where fine but the majority were unuseable ... . Hard to tell when you don't have the same setup ...
EDIT: Did you try lowering your resolution to eg.: 640x480 and try to run it? Are you frames still corrupt? | https://answers.opencv.org/question/162453/how-to-record-multiple-cameras-with-videowriter/?comment=162503 | CC-MAIN-2019-35 | refinedweb | 294 | 76.93 |
Innovation and integration across the entire application development life cycle
A: As mentioned in this post, having a NETBIOS domain name that is not the same as the domain component (DC) of the distinguished name can cause Group Security Services to fail due to a disjoint namespace. To determine if this is causing your Team Foundation install to fail, do the following on the application tier computer:
1. At the Command Prompt, type SET USERDOMAIN and press ENTER. This will return the NETBIOS name of your domain.
2. Install the Windows Support Tools (suptools.msi) found in the \support\tools folder of the Windows Server 2003 installation CD.
3. Click Start, point to All Programs, point to Windows Support Tools, and then click Command Prompt.
4. At the Command Prompt, type ADSIEDIT.MSC and press ENTER.
5. On the Action menu, click Connect To. The Connection Settings dialog box appears.
6. In the Select a well known Naming Context list, click RootDSE, and then click OK.
Note If RootDSE is not listed, there may be a problem with your Active Directory installation.
7. Expand the RootDSE connection node.
8. Right-click the RootDSE folder and then click Properties. The RootDSE Properties dialog box appears.
9. Compare the value of defaultNamingContext with the NETBIOS domain name you obtained in step 1. If the first DC item (e.g., NewYork in "DC=NewYork,DC=corp,DC=fabrikam,DC=com") in the defaultNamingContext value is not the same as the NETBIOS domain name, this will cause Group Security Services to fail.
For more information, see Domain Controller's Domain Name System Suffix Does Not Match Domain Name.
Applicability: Visual Studio 2005 Beta 1 Refresh with Visual Studio 2005 Team System
If you would like to receive an email when updates are made to this post, please register here
RSS
I do not agree. Go to
I do not agree. Go to
I do not agree. Go to
I do not agree. Go to | http://blogs.msdn.com/askburton/archive/2004/09/14/229638.aspx | crawl-002 | refinedweb | 330 | 66.54 |
Background Worker Threads
IronPython & Windows Forms, Part IX
Note
This is part of a series of tutorials on using IronPython with Windows Forms.
Follow my exploration of living a spiritual life and finding the kingdom at Unpolished Musings.
The BackgroundWorker Class
Recently we tried to add an 'activity indicator' (throbber) to a long running process in our Windows Forms application. Unfortunately we ran into difficulties.
The main problem was that we were using the wrong event to detect when a control lost the focus. You might think that LostFocus was the obvious choice [1]. In fact this is a low level event only used when updating UICues. The correct event to use is Leave.
LostFocus is raised when the user clicks on the exit button, but Leave
isn't. We spent part of today fixing all the places we used GotFocus
and LostFocus and replacing them with Enter
and Leave. Luckily it wasn't too many.
Using the BackgroundWorker, suggested by Andriy in a comment, the code is quite nice [2].
You provide the BackgroundWorker with your long running process as an event handler. It has a method to detect if one is already running, and raises an event when it has finished.
A common idiom in our code is to have our own event hooks. Rather than tightly coupling our objects together, they can raise events.
An approximation of the code structure we used is shown below. This is also a good [3] example of how to use the BackgroundWorker.
This code shows an event hook class [4], which provide the LongRunningStart and LongRunningEnd events which enable and disable the activity indicator: the throbber.
This is automatically triggered when the textbox Leave event is raised. (But I've omitted all the boiler-plate in setting up the form and textbox of course.)
clr.AddReference('System')
clr.AddReference('System.Windows.Forms')
from System.ComponentModel import BackgroundWorker
from System.Windows.Forms import Form, TextBox
class EventHook(object):
def __init__(self):
self.__handlers = []
def __iadd__(self, handler):
self.__handlers.append(handler)
return self
def __isub__(self, handler):
self.__handlers.remove(handler)
return self
def fire(self, *args, **keywargs):
for handler in self.__handlers:
handler(*args, **keywargs)
class LongRunning(object):
def __init__(self):
self._worker = BackgroundWorker()
#
self.LongRunningStart = EventHook()
self.LongRunningEnd = EventHook()
self._worker.DoWork += lambda _, __: self.__longRunningProcess()
self._worker.RunWorkerCompleted += lambda _, __: self.LongRunningEnd.fire()
def LongRunningProcess(self):
# This can be called directly if you need a
# synchronous call as well.
# The long running process will block the GUI from
# updating though.
self.LongRunningStart.fire()
self.__longRunningProcess()
self.LongRunningEnd.fire()
def LongRunningProcessAsync(self):
# Just drop out if one is already running
if not self._worker.IsBusy:
# This starts __longRunningProcess on a background thread
self.LongRunningStart.fire()
self._worker.RunWorkerAsync()
def __longRunningProcess(self):
# Do *lots* of stuff :-)
class MainForm(Form):
def __init__(self):
self.longRunning = LongRunning()
self.longRunning.LongRunningStart += self.enableThrobber
self.longRunning.LongRunningEnd += self.disableThrobber
self.textBox = TextBox
self.Controls.Add(self.textBox)
self.textBox.Leave += lambda _, __: self.longRunning.LongRunningProcessAsync()
def enableThrobber(self):
# do something
def disableThrobber(self):
# do something
To check if the BackgroundWorker is in the middle of running, we use the IsBusy Property.
To tell it what to do when started, we add our long running process to the DoWork Event, this is kicked off on a separate thread: so be careful !
This is actually launched by the RunWorkerAsync Method.
When our process (bad choice of word, hey) has finished, the RunWorkerCompleted Event is raised.
Notice that if we wrap our .NET event handlers in a lambda we don't need the sender and event arguments.
lambda _, __: self.LongRunningEnd.fire()
You can use the event argument sent to DoWork handlers to pass arguments when RunWorkerAsync is called, but this isn't shown.
Note
Thanks to Davy Mitchell for pointing out a couple of errors in the code example which have now been fixed.
For buying techie books, science fiction, computer hardware or the latest gadgets: visit The Voidspace Amazon Store.
Last edited Fri Nov 27 18:32:35 2009.
Counter... | http://www.voidspace.org.uk/ironpython/winforms/part9.shtml | CC-MAIN-2017-04 | refinedweb | 678 | 51.34 |
DISCLAIMER: This was written all the way back in Feb. 2006 when we MVP with ASP.NET was the only real alternative. I thank you for the interest, but there have been better articles written since, and I'd strongly recommend looking at MonoRail or Ruby on Rails or the new MVC framework for ASP.NET if you're interested in maintainable, testable web applications.
A friend of mine was asking me a while back about ways to apply the Model View Presenter (the “Humble Dialog Box”) pattern to ASP.Net development to promote easier unit testing of the user interface layer. Two weeks and a major case of writer’s block later, I finally finished the post. I wrote a blog post last spring describing the usage of MVP (“The Humble Dialog Box”) with WinForms clients, but web development in general and ASP.Net in specific comes with a different set of challenges.
If you asked me to name the single most important principle in all of software design, regardless of language, platform, or programming paradigm, I’d say “Separation of Concerns” in a heartbeat. For the sake of maintainability, each piece of code should have one and only one distinct responsibility. Even in the initial act of coding I only want to work on one problem at a time. I want to look at the business logic code without seeing database infrastructure code or HTML construction intermingled with everything else (a huge pet peeve of mine).
The traditional approach for building maintainable user interface code is to separate the typical concerns of a user interface with the Model View Controller (MVC) pattern. Unfortunately, ASP.Net is optimized for Rapid Application Development, not for creating maintainable code. A common criticism of the ASP.Net development model (and ASP classic before that) is that it does not enforce or even encourage a clean Model View Controller separation. Many ASP.Net applications seem to be a jumble of data access code, HTML markup, and business logic, but it doesn’t have to be that way. By itself, the “code-behind” model in ASP.Net does not do enough to create a good separation of concerns. Plus it’s difficult to get code-behind code into unit tests.
My preference is to use the Model View Presenter pattern to structure ASP.Net code to create maintainable and testable solutions. I think of MVP as just a flavor of MVC, but it’s worth stating the differences. The central fact of MVP architectures is that the “view” is a very shallow wrapper around the actual screen. Unlike most traditional MVC implementations, the view classes are entirely passive. The Presenter classes are the active classes that are responsible for initiating the view processing.
The big challenge in unit testing ASP.Net code is the tight coupling to the ASP.Net runtime. The web controls are very tightly bound to the underlying HttpContext and the web event pipeline, making the user interface code difficult to work with inside an xUnit test harness. I’ve seen people successfully create fake HttpContext objects in memory, but it really amounts to a hack to test existing legacy ASP.Net code. You can also use tools like NUnitASP or Selenium to test web applications, but those tests are integration tests, not unit tests. The best thing to do in my experience is to isolate as much of the functionality as possible away from the ASP.Net runtime into classes that can be easily tested inside of NUnit, and that’s exactly what the MVP pattern does. Putting this another way, I would suggest that any piece of code that isn’t directly manipulating web controls or parts of the web page should be moved out of the code behind classes and into another class.
A lot of .Net literature describes the “Code-Behind” class as the MVC controller. I think this is dead wrong. The code-behind is View code, period. For best results, the presenter should never have any reference to any type in the System.Web namespace.
The basic concept is simple. Like the classic Model View Controller pattern, you divide the responsibilities of the web page into separate classes. In specific, we want to isolate as much of the functionality as possible away from the ASP.Net runtimes. The functionality of a screen is divided into three parts:
Let’s dive into some code. You’re creating a new web screen in a custom workflow application for people to enter and assign “WorkItem’s” to other people. The screen will have dropdown lists for both the WorkItem category and the assigned user. In no particular order, let’s start with the Model class.
The next step is to create an abstracted interface to represent the View class. Note that we’re not yet working with any System.Web classes, web pages, or web controls. The IWorkItemView interface encapsulates all interaction with the ASP.Net runtime.
The backend business and workflow system is accessed by a Façade class with an interface called IWorkItemService. The backend might be a call to a web service, a remoted object, or an in-process call. All we’re concerned with in the user interface code is how the presenter interacts with the interface of the service.
The lynchpin of the MVP pattern is the Presenter class, WorkItemPresenter. In this particular user story there is a requirement that the categories displayed in the dropdown on the screen are limited by the role membership of the logged in user. There is another requirement that the values in the dropdown for the assigned to user are dependent upon the selected category. The logic that determines the topic and category list is completely isolated from the web page machinery for easier unit testing and maintainability.
}
The key things to note here are that the WorkItemPresenter class only depends on the abstracted interfaces for IWorkItemView and IWorkItemService. The WorkItemPresenter class can now be unit tested with mock objects inside of the NUnit. WorkItemPresenter is just a “Plain Old CLR Object” that can run and be tested completely outside of the ASP.Net process. This is strictly personal preference, but I like to build and unit test the Presenter class(es) before I even start to create the ASPX or ASCX’s.
Lastly, we’ve got to actually create the web page itself. I’m using a UserControl as an example, but it could easily be a web page instead. The WorkItemView UserControl implements the IWorkItemView interface. It has a reference to an instance of the WorkItemPresenter class with which it communicates.
In this case I have an ASPX page that contains a WorkItemView control. In the Page_Load event of the ASPX page I create a new instance of the WorkItemPresenter, attach it to the user control, and call Initialize() on the presenter class to start the display.
A big challenge in any complex web application is session state. Think of a typical online store like Amazon. On one hand the logic involved in maintaining the session state is important and certainly deserving of isolated unit tests. If I was coding for Amazon, I would certainly want to be writing unit tests around maintaining the state of the “shopping cart” when users select and remove items. The state of the shopping cart will affect the way the page is displayed and the navigation logic after the page. That’s exactly the kind of logic that is hard to test if you don’t loosely couple the logic from the HttpContext.
On the other hand, a lot of web screens are only reachable from a series of user actions on previous pages. The checkout screen can only be reached after working through previous screens. My first TDD project was an ASP.Net project that had some web pages like this. We were using NUnitASP to write automated tests. I didn’t know much about mock objects or MVP (or MVC), so the only way to test my pages and all of their logic was to write tests that progressed through multiple screens just to get to the point where I really wanted to test. Those tests were laborious to write and very brittle. Smaller tests are always easier to write and read. What I’ve learned since then is to either create an abstraction around the state management that the presenter classes depend on, or have another class push the state into the presenter. I touched on this strategy in an earlier post on mock objects.
At some point you do have to test the actual web screens, and it’s a great thing to have automated testing on the user interfaces. It’s just a theory, but I’d think seriously about creating intermediate integration tests that use stubs for all the backend and state management to isolate the web views. You can use a dynamic service locator like StructureMap to substitute stubs for the services with configuration, or create separate ASPX pages to host the UserControl’s and presenter classes, but use the stub objects instead. You could then write much simpler Selenium tests to verify granular parts of the user interface in isolation. You’ve got to maintain loose coupling between the user interface code and the backend to pull it off though. As usual, testability and good design practices are very closely aligned.
I’ve had a couple of conversations over the last year on the proper place for the user input validation. I still think you have to take advantage of the built in validation controls in the ASP.Net views if you can do it in a declarative way. Any kind of validation more complicated than “this field is required” or numeric validation should probably be put into some sort of presenter class or the model classes. By and large, you want any kind of code that spawns bugs under automated unit testing. Input validation definitely meets that criterion.
Something I like to do is use what I think of as “Embedded Controllers.” You need to be cautious in using the MVP pattern to keep the presenter classes from getting too big with too many responsibilities and preventing the bidirectional view-presenter communication from being way too chatty. I try to alleviate the presenter “blob” anti-pattern by moving validation logic into other controller classes that are used from within the views. I also like to move functionality like filtering, paging, and sorting to these secondary controller classes. It’s just a way of keeping the size of the classes down and maintaining class cohesion.
We’ve had some success with writing our FitNesse tests directly against the Presenter classes. We have been making the Fixture class for the screen implement the interface for the view and passing itself into an instance of the Presenter, then letting an ActionFixture drive the screen. It’s a lot simpler than trying to drive the tests against the screens themselves. Our sister office is using FitNesse to drive Selenium tests to great effect, but they’re doing it because they don’t have a suitable service layer to test business logic through. These Fixtures look something like this:
}
Jeremey, nice work.
It is working well, but I am having a bit of conceptual struggle implementing the User Interface Application Block with MVP. The UIP maintains state in the controller, and has a single controller per business thread, or business group. Any work done in this area?
Don
P.S. As for MK: I would like to see critics like this post their work on the net for all to see. I really detest people who pick at little wrong things in light of all this good.
Don,
As far as I know, the UIP is effectively dead.
Jeremy
Jay Kimble , CodeBetter's resident AJAX guru, issued a little challenge to us TDD bloggers about using
Design Patterns Bootcamp: Model View * Patterns Listen to the Show! Thanks to Dave Bost for the intro!
Design Patterns Bootcamp: Model View * Patterns Listen to the Show! Thanks to Dave Bost for the intro!...
PingBack from
PingBack from
Outro dia respondi uma pergunta no fórum MSDN sobre desenvolvimento em camadas. Meu único conselho para
PingBack from
PingBack from
Pingback from ' + title + ' - ' + basename(imgurl) + '(' + w + 'x' + h +')
MVP is a wonderful design pattern.
Thanks for this great post.
I have the following questions:
How can you use the MVP when creating a wizard type interface?
I want the user to be able to click ‘next’ then the current triad changes to the next triad, and updates the view. I have an implementation, but it does not seem that ‘clean’.
1. So how do you change triads/views?
In MVC a model could have multiple views. As far as my understanding of MVP, each presenter has no more than one view – a model can have multiple presenters.
2. Are these thoughts correct?
Thank you!
Dear Manager,
Hope you are doing great!
The purpose of this letter is to introduce you to CAT Technology Inc and our Offshore Development services.?
Out Team size in INDIA:
.Net/C# Developers: 90 Members
Delphi Programmers: 18 Members
Web developers: 50 Members
JSP/ Java Programmers: 45 Members
PHP Programmers: 30 Members
System/Network Administrators (MCSE) (CCNA) (CCNP):30 Members
Visit us at---
View our development office in INDIA :
You can view our development office in INDIA through this camera.
Camera Server URL:
Login: cat
Password: techno.
Maintenance Projects:
Just because your project is complete does not mean you dont | http://codebetter.com/blogs/jeremy.miller/archive/2006/02/01/test-driven-development-with-asp-net-and-the-model-view-presenter-pattern.aspx | crawl-001 | refinedweb | 2,262 | 63.19 |
Installed.
I installed Outlook 2016 on my Windows 10 pc. I have contact lists saved by google mail and outlook.com mail. How do I copy those contact lists into the Outlook 2016 desktop client??
I have Outlook 2000 Inbox set up as follows:
( Notice the circle around the "Account" tab) But, my friend has Outlook XP and can't get the "Internet Account" tab to show which Internet Account (i.e. Comcast, Yahoo, AOL, etc) that the incoming email is from like mine is with Outlook 2000.
He can only get the "tab" to be displayed that states "Internet Account" but the tab's contents (unlike mine) remain blank when he gets mail from any of the accounts.
Is this done differently in XP compared to 2000 Outlook??? How can I get his "Internet Account" tab to show which account incoming mail is from like mine is in the pic???
Hello all I run most of my daily operations off of Delete folder account IMAP for Outlook my iMac and I run Entourage on my Mac for email I have two IMAP accounts that I access on a regular basis In Entourage I have an option in the advanced tab for each account that allows me to handle how I Outlook Delete folder for IMAP account want to handle deleting messages from the IMAP server It's called quot Delete Options quot and I have selected quot Move messages to the Deleted Items folder quot selected This is great because I always have Outlook Delete folder for IMAP account my deleted messages stored in this file for future reference Note I also have the quot Purge Deleted Items quot option selected to purge this folder every days My problem is I use a PC when on the run and I would like it to handle deleting items the same way as my Mac Right now when ever I delete an item in Outlook it does not Outlook Delete folder for IMAP account go to the Deleted Items folder It just magically disappears forever Can someone help me out to get Outlook to act like my Entourage Thanks just installed OL 2010 for the first time and created 3 different accounts (or identities), and now I see that there are a number of mail maps for each of these accounts.
How can I change it, so that mail to/from all accounts are placed in the same maps?
Thanks
You can consolidate them by moving the .pst files into the same folder:
Move an Outlook Data File (.pst) to different folder - Outlook - Office.com
Good day.
After running combofix on several Windows XP computers, I noticed that in Outlook Express Mail Account entries were missing. This seems to affect only OE, Microsoft Outlook was not harmed and also Windows Mail kept its acc's.
Any idea how to bypass this account removal?
Thank you,
Aig recently formatted my Windows XP due to various problems. I have verizon email account. Prior to formatting, my emails were deleted automatically from the web account (netmail.verizon.net) each time I opened outlook. However, this changed after the reformat. I now have two copies of each mail- one in outlook and the other one in the web account. What setting do I need to modify in outlook? Thanks in advance.
please helpp !! fast respond!! how to delete these file ...
HEELLLPPPPPPPPPPPPP IM JUST COLLEGE KIDS DONT KNOW ANYTHING.
Please bear with me- I'm a complete 8.1 newbie and flabbergasted by the new screens!
When I first started my Dell XPS 15 yesterday with W 8.1 I was forced to enlist @ outlook.com.
Now I have an e mail acct I will never use plus my own...
And two login instances.
Can I get rid of this outlook account?
Is there any way to just enter a short password (which I need because I have a homegroup), as I had in W7 ?
I'm the only one here so I feel the risk is low.
You might want to look into using a "Local" account instead of a Microsoft account. That's what I do. See Local Account - Switch to in Windows 8
After restarting my computer outlook will work fine the first time it is opened. However, if it is closed and reopened it will no longer allow us to delete mail. I found a post that suggested deleting the inbox.dbx file and I did so. It worked for a while and now it is not allowing me to delete mail again. I have deleted or moved all mail in the inbox folder to other folders and emptied the deleted items folder. Any Ideas??????
Thanks,
Paul
Back up any mail you currently have in Outlook. Also back up your address books.
Uninstall Outlook, reboot, then reinstall.
Sometimes this simple procedure will work to resolve issues.
I'm trying to help a friend who has just installed Office on her computer Windows Outlook to 10 Calendar 2016? Export Mail and for from calendar which was recently upgraded from Win to Win She's been using Outlook com and has accumulated a fair amount of email contacts and calendar appointments I've managed to get her email to show Export calendar from Mail and Calendar for Windows 10 to Outlook 2016? up by adding it to Outlook as a POP account I was able to import her contacts into Outlook from a file called OutlookContacts csv Now I'm trying to get her calendar with all its many calendars and appointments into Outlook I'm not sure why but Export calendar from Mail and Calendar for Windows 10 to Outlook 2016? the appointments all show up just fine in Mail and Calendar for Windows even though we did nothing to put them there as far as we know But she'd like them to appear when she clicks on the Calendar in Outlook and Export calendar from Mail and Calendar for Windows 10 to Outlook 2016? I can't find any information on how to do that I've also looked for some kind of Export function in the Mail and Calendar for Windows app but I came up empty How do I get her calendar into Outlook.
Dear all,
Greetings!
I configured my Outlook 2013 as below:
I created a profile with 2 accounts: one is Exchange mode account, the other is IMAP mode account.
Now I set the Exchange mode account data to E:\email. But the data of IMAP account if in C drive, I want to change it to E:\email too.
How do I change it?
Thank you in advance.
Every post I see says they don't recommend doing this, so make suer you have everything backed up should you try. I have no personal experience in this and don't use Outlook myself.
Outlook 2013 change .ost path - Microsoft Community
How to move the IMAP personal folder (*.pst) - Slipstick Systems
A Guy.
A friend has six basic POP Outlook email account on his XP. He deleted an account via the standard Tools, and Account removal process. The account no longer appears on his Accounts list. But when Outlook is launched the standard pop up window still continually appearing showing the name of the deleted account and the ?Please type user name and password? prompt. Am going demented trying to find out where the hidden profile details are so that I can delete them also for him. Any help greatly appreciated.
(He will then hopefully stop hassling me and I can collect the 3 beers he promised me if I sort it).
Richard
Go to Control Panel. Double-click the Mail icon.On the General tab, uncheck Always use this profile under the When starting Outlook use this profile option.Click okgood luck
MS Outlook amp Windows Live mail keeps asking me to enter a security code and other personal info that I don't feel I need to give to MS I initially used a code number sent to an alternate e-mail address blocking e-mail keeps account access MS Outlook my I had to open in order to receive the code to verify my current e-mail account I told MS I didn't want to keep doing this anymore and asked them to either stop blocking my account or delete it They still persist with requesting my personal info phone numbers creating alternate MS Outlook keeps blocking my e-mail account access e-mail accounts and passwords MS Outlook keeps blocking my e-mail account access etc I'm confused as to why they need to continually make you re-verify our personal info or give additional info If I am thinking Patriot Act info is this out of line I have had the same e-mail account for several years and never had any known issues or problems with hackers or otherwise Personally I think its just a ploy to collect personal info for MS Outlook keeps blocking my e-mail account access some use other than to make my account secure Like a government agency wanting MS to verify all e-mail account info and find another e-mail service provider that is less intrusive If so any other e-mail provider recommendations Or any other solutions to circumvent the annoyingly redundant MS account re-verifications - times a month Thanks Vista-Win
Hi, I have just installed outlook 2007 on my vista home PC but unable to configure my gmail account. tried all stuff from the web but no luck. I am sure there is nothing to do with email settings I am entering as using same I am able to setup email on other systems with similar office. Any help would be highly appreciated! Thanks in advance!
I have somehow deleted my personal folders in my inbox. When I restore a .pst file from previous backup, I have everything such as inbox, deleted items, sent items, etc. However, the personal folders I created within inbox are missing. I am so confused. They have had to been backed up because I can go back and recover deleted emails from years ago, yet I still cannot find my very important folders that I created within my inbox. This pertains to the discussion as I am using Outlook 2013 and I was able to find them when my hard drive failed a year ago, but as of two days ago, I cannot find them. Is there something hiding them? I have used scanpst.exe as well but to no avail. ?
Thanks
Personally I would leave the account as it is. An IMAP account have the advantage of leaving copies of e-mail on the server. So in the event of system failure all your e-mails are safe.
Are you able to send/receive e-mail ok?
Hi geeks Long version An old Microsoft email account xxxxxxxx MSN COM from the days before Hotmail when you still could get msn com addresses Account correctly set up in Windows Mail App on Windows Tested the set up by logging out and logging back in with the new password and as it should be outlook com asked for the authentication code Outlook.com App Unable Mail account Windows to add to Unable to add Outlook.com account to Windows Mail App in below screenshot Short version Can't add an email account to Windows Mail App credentials sure correct Additional issue This might be impossible to solve I would like to set my years old original msn com address again as the primary alias but apparently it is not possible It was the primary alias before the issues told above has worked as an MS account to be used for instance as the login account for Windows Any ideas Kari
Hello Kari,
If your password has more than 16 characters, then that may be the issue. Test it with no more than 16 to see if you are able to add it afterwards.
Hi! I have changed computers (from a '98 to an XP) and have set up all my email accounts in Outlook 2000. Don't want to use Outlook Express because it interferes with attachments people send me.
My problem is that it won't let me select which address I am sending from! This creates great confusion for the customers of our three businesses. I have clicked on the Options button as Outlook advises but it keeps telling me that it is out of memory and to close other programs and try again. This even happens when there is nothing else open.
Any clues?
Thanks,
Ronlyn
Victoria, Australia
When you come to send the message, instead of using the SEND button, there is a tiny arrow just to the right of it. Click on that and it will drop down a list of the accounts you have set up for you to choose which to send from.
In June of my power supply abruptly failed taking out the electronics of my hard drive with of old Outlook Data E-mail Recovery it I thought I had my data backed up but I was mistaken and I should have known better after forty years in data processing At any rate I recently contracted with a data recovery service to try to recover the data and now have a new external Gig USB hard drive which contains a copy of of the data which was on the failed hard drive I had one way or another already restored most of the data from other sources Here Recovery of old Outlook E-mail Data s my current problem Recovery of old Outlook E-mail Data I want to import my Outlook not Outlook Express e-mail folders from the recovered data I found this folder M ntfs GoodFiles Documents and Settings me Local Settings Application Data Microsoft Outlook which contains Outlook pst a KB file which I believe is that data Unfortunately my version Outlook SP of Outlook s Import function does not allow for the import of Outlook data only Outlook Express among others which I consider to be a major oversight Does anyone have any suggestions on how to accomplish this nbsp
Good Day Everyone a few hours ago, I just finished installing Windows Professional x32 and had a problem with deleting the windows.old because of the permission bug.
Well I managed to delete the Windows.old by editing my security and user however when I log-offed, I saw another user account that I think I've mistakenly made while editing the security in the properties of a folder in windows.old.
My problem is, the delete function GONE!
The mistakenly made user is Administrator.
When I logged in Administrator, a pop-up appeared saying that it is a temporary user account.
I really want to delete it, It's a nuisance every time I log-in and takes some space.
Can anyone help me regarding this? I will appreciate it greatly.
Built-in Administrator Account - Enable or Disable
This account is not able to be deleted. It is built in and has EVERY permission by default so you don't need to take ownership.
It is used to rescue your computer from viruses using Safe Mode, etc.
i can't seem to delete emails from 'all mail' ? thanks
OE doesn't have an "All Mail" folder (at least mine doesn't). Perhaps you or someone else created one with that name.
If you use an imap setup with a web based email (like Google) they have an "All Mail" folder
I tried to send a large file (30mb). I recently installed cable internet and didn't think I would have a problem. However the file won't send and I get a timeout error. I tried to delete the file from the send folder and it seems to lock up and gives me an "outlook express not responding" error. I locked my firewall and even disconnected my cable modem with the same problem. How can I delete this :
Hi, we recently purchased a group of PCs with Windows 10 installed at our institution. We would like to configure the PCs to have a guest account and when a user logs off the account his or her files would be deleted (much like the guest account of a Mac), is there a way to do it?
If this is not possible, is there a way to configure the PCs so they are for public use? (such as limit access with files deletion upon logging off)
Many libraries use DeepFreeze, however, I'm not sure if that will be something you want. Short of enabling Guest account on boot/startup and disabling Guest account on Restart or Shutdown -- I have no idea.
This is a strange bug I seen once before in windows I was downloading a video file off megaupload with firefox Firefox makes files for a download the file itself and a temp file where all the data goes to till the download is done So I pick the dir where I want to place the file Windows admin delete bug? Unable to account file and I download it but right when it finishes I get a error message saying it dose not have access Windows admin account bug? Unable to delete file to save the file So there I get left with a kb file and a finished temp file I can move the temp file and edit out the part to use it but the blank file can't be deleted It clams I don't have administrator access to delete the file but I only have Windows admin account bug? Unable to delete file a admin account setup in use What can I do to fix this The last time it happened I deleted the temp file restarted and it was ok but I need a better solution for this stupid error
Hello smsff7
Maybe an AV scan is in order, the AV scanner below is free, have a go.
Malwarebytes.org
hi,
i have been going nuts over this, and i am sure that it is a very simple process, but i need to have my outlook express on my work computer be active in accessing my e-mail address from work. can anyone help?
Following on from the thread about changing Windows Live ID New mail address new Windows Live ID and a to 2007? Live account How Outlook with mail filter in successfully integrating the new live no account into Office Outlook I'm discovering to my disappointment that the new account can't filter mail With my old pop smtp account I could set up rules to divert mail from specific groups or senders to a specific folder For example my pop account filters out and places email from the various Yahoo forums I subscribe to into specific folders created for the purpose This is the How to filter mail with a Live account in Outlook 2007? function of the quot create rule quot facility in Outlook Now the new Windows Live email setup is what they call an imap account It has its own pst file and its own inbox and outbox How to filter mail with a Live account in Outlook 2007? in Office Outlook These can't be merged with the old inbox or outbox How to filter mail with a Live account in Outlook 2007? because they're two different systems apparently What I can't understand is why I can't quot create rules quot for mail coming through my Live email account Or rather I can create the rules but the imap system just doesn't follow them No Yahoo forum mail is placed automatically into the relevant Yahoo forum folders in Outlook Have I misunderstood something because an email service account which doesn't allow me to create rules or filter mail is not really much use to me
you might be able to set up rules if you go into the web version of the live email account
This way it will filter before it gets into your outlook 2007
Hi. I have a similar problem.?
When Win 8 asks you to verify your account, it shows you your email address in one box with some of the characters replaced by *s and wants you to type in the email address in its entirety in another box. Once you do that, an email is sent to that address with a code for you to enter to verify.
There shouldn't be any confusion about which email address to enter unless you have 2 different but very similar email addresses.
I HAVE SEVERAL EMAIL ADDRESS AND USE OUTLOOK I SET UP A BUNCH OF ACCOUNTS AND SET THE OUTGOING SMTP SETTING FOR WHAT EVER DSL PROVIDER IS AT THE LOCATION I USE THE COMPUTER AT AND THE POP FOR THE ACTUAL ACCOUNT I WANT TO CHECK EVEN IF IT IS WITH ANOTHER PROVIDER THIS MAKES IT SO I CAN REPLY TO EMAILS AND SEND EMAIL IN ACCOUNT PROPERTIES I CAN UNCHECK INCLUDE THIS ACCOUNT WHEN RECEIVING MAIL OR SYNCHRONIZING TO DISABLE AN ACCOUNT I JUST GOT A NEW LAPTOP TO USE AT A FEW LOCATIONS I FIGURED I COULD SET UP DIFFERENT ACCOUNTS IN OUTLOOK FOR THE SAME EMAIL ADDRESS AND SET EA WITH THE SMTP FOR THE DIFFERENT LOCATIONS AND JUST UN-CHECK INCLUDE THIS ACCOUNT WHEN RECEIVING MAIL OR SYNCHRONIZING AS I HAVE DONE IN THE PAST THE PROBLEM IS NEW COMPUTER CAME WITH OFFICE XP AND I CANT FIND THAT SETTING DOSE ANYONE KNOW WHERE IT IS IF I HAVE ALL THREE ACCOUNTS SET UP AT THE SAME TIME I GET THE SAME EMAIL THREE TIMES YEA A BIG DUH IF I COULD EASILY DISABLE THE REDUNDANT ACCOUNTS THIS WOULD SOLVE THE PROBLEM nbsp
XP uses some damn grouping thing. It sucks. I went back to 2000 because I hated that issue, and some others.
Try checking out the grouping option.
I have been cleaning up my folders/files and moved all my videos and images + documents to an external hard drive. Now I can't find all my current emails and folders. I can find an old version from beginning of 2013 with a different email address I no longer use.
However, I have just checked my external drive and I have found one OUTLOOK data file file showing my correct email address size 1.36 Gb and a small data OUTLOOK file size 158MB.
How can I restore and transfer the two data files back into my OUTLOOK? I also need to get rid of the older version email address which I no longer use.
Hope someone could help me please.
Hi and welcome to SevenForums,
Have you checked for any previous versions of the data file? From the file properties tab "Previous Versions" (assuming you have System Restore turned on for files)
You handle all data files from the Account Settings, tab "Data files". But I think you can just copy and replace the data file with your backup as long as the names are the same and Outlook isn't running.
I have installed Office 2007 (I am still running Windows XP) and want to use Outlook 2007 as my default mail. I am running Outlook Express at present. I followed Microsoft's instructions to import all my folders across but when I tried to import account name and account settings from Outlook Express under the Import and Export facility in Outlook I clicked Import Internet Mail Account Settings and then Next but received a message saying there were no other Internet accounts. My mail is still only being sent and received from Outlook Express. When I open Outlook 2007 it asks if I want to make it my default and I clicked yes but my mail is still only being sent and received from Outlook Express. Can you advise how I make Outlook 2007 my default mail account?
Hope this all makes sense!
Thx
I have one workstation and want to have two Outlook2000 mail accounts on this workstation. I need to have two different individuals receive email on this one workstation. Does anyone know how to configure this?
I have a client I'm trying to help with an e-mail issue I was handling this remotely and can't give you much info about the system beyond the fact that he is running Windows He has Outlook on the system and was previously popping his Gmail into Outlook and everything was working fine Then he bought a tablet and set his e-mail up on the tablet and says that the next time he tried to get to his e-mail on his computer it didn't work I first tried to set up a new account in Outlook using IMAP I followed Gmails e-mail up to Outlook in retrieve Thunderbird account or set Unable from guidelines and triple checked the settings so I know Unable to retrieve e-mail from Outlook or set up account in Thunderbird they are correct It still wouldn't work and just rendered a generic error saying the servers couldn't be contacted The client then agreed to try Thunderbird I attempted to set up the account in Thunderbird but it said the password was not valid I then re-checked his e-mail address and had him enter his password again Still didn't work Out of curiosity I then entered the information one of my own Gmail accounts Unable to retrieve e-mail from Outlook or set up account in Thunderbird and again it said the password was incorrect I then entered the information for one of my Yahoo accounts and again it said the information was incorrect At this point I am at a loss as to where to go from here Any help would be greatly appreciated
G'day PrimeMinisterX, and Welcome to BC
I assume you are trying to set up these a/c's with imap type settings......
Try using pop3 settings for Incoming.....and leave the outgoing settings as they are
Hi all,
Does anybody know, after adding a POP account on Windows 10 mail app,
where is the pst file created and saved?
Thank you in advance
Originally Posted by ukulele13
Hi all,
Does anybody know, after adding a POP account on Windows 10 mail app,
where is the pst file created and saved?
Thank you in advance
Documents/Outlook files/Outlook.pst
i am use outlook and my outlook 1 mail through the spam is coming that spam infected the my email that is my mail is very imp how to release infected mail another 1 mail is infected but that mail release password through but that mail not password so pls suggestion.
Kind regards. create an do Data Outlook in How (.pst) 2003 File Outlook I get the message ANSI-formatted How do I create an Outlook Data File (.pst) in Outlook 2003 pst files also known as Outlook - Personal Folders Files were the standard personal folder format for saving data in Outlook for Windows in versions - How do I create an Outlook Data File (.pst) in Outlook 2003 This file format can't be imported into Outlook for Mac Beginning with Microsoft Office Outlook a new Personal Folders file pst format was introduced that How do I create an Outlook Data File (.pst) in Outlook 2003 for Windows or later versions and then import items from the older file into the new file You can then import the new pst file into Outlook for Mac But how do I create a new Outlook Data File pst in Outlook for Windows or later versions
try this pdf I made
Hi All,
I am running Outlook 2007 on a Windows Vista machine. I have recently set up a second email account in Outlook. I have no problems sending or receiving from either account, however when I recieve email for the new email account (not the defalut account by the way) I recieve the same message twice.
I've looked at the headers for the two different emails, and it appears that one is being sent to my default address. I obvioulsy don't have any forwards set up, or anything like that.
I was told it was a known issue with Outlook 2007, but nobody seem to have a work around for it.
Any suggestions are appreciated.
Thanks!
I used the following MS Knowledge Base article to create an autoreply message since we don t use MS Exchange Server in our office I don t have the Out of Office Assistant support microsoft com kbid hhmm seems I m not allowed to post active urls since I am new here the non-active link above works if you cut and paste it to your browser I ve never created an autoreply message before but I was pretty sure there was some way to do it so I tracked that down The only problem default) on mail (not in 2000 on Autoreply Outlook account came in email is that I only want to create this autoreply for a email account which is not the default email account In the template file I even specified to send the message using the account the email comes in on but it replies using the default mail account rather than the one Autoreply in Outlook 2000 on email account mail came in on (not default) I want it to My Rule for this is Check mail Autoreply in Outlook 2000 on email account mail came in on (not default) on arrival from this altername account Reply using template C Documents and Settings user Applications Templates OutOfOffice oft stop rule processing In reality part of this rule should be Reply using template C Documents and Settings user Applications Templates OutOfOffice oft and send via altername account Is there any way to set the reply to use the non-default account rather than the default one If not can anyone suggest an application which will do this nbsp
I'm new to Outlook I used Outlook Express exclusively until now I am able to send to mail 2007 Primary Outlook - secondary account cannot send mail from my primary Outlook account to itself I am also able to send mail from the secondary to the Outlook 2007 - Primary account cannot send mail to secondary primary However I cannot send mail from the primary to the secondary nor can the secondary mail itself Actually in these cases the message does go to the 'Sent' folder but does not download with a subsequent 'Send Receive' All Accounts But both the primary and secondary receive mail in their correct folders and successfully send mail to outside recipients Both accounts are defined the same POP SMTP and I checked them on my provider's web site -- they are unchanged for over a decade Not using Live Mail or any other mail client software This is not a problem for me just an oddity I am simply curious I believe all the above scenarios worked under O E Why do I send mail to myself Basically to see what pictures graphs and Outlook 2007 - Primary account cannot send mail to secondary other attachments will look like to the ultimate recipient
I noticed that in emails I sent to the secondary account from the primary, the email address appeared as:
instead of Addressee ([email protected]_address)
Things were complicated a bit by the fact that the secondary account (my wife) also had a 2nd email address (her job). After I straightened out the address book, everything works just as it did in Outlook Express..
i can export out all my mail from window live mail to my destop. but i don know how to inport in all the mail to my outlook. can anyone help?
thank you...
I have Live Mail up and running, and have imported my contacts from Outlook 2002 by exporting and importing as a CSV file.
As Live Mail only wants to import messages from Outlook Express 6, windows Mail or Live Mail (and doesn't seem to want to look at CSV or other data files), any thoughts on getting my messages, calendar etc. from Outlook 2002?
Have Outlook 2002 installed on the Windows 7 PC.
Thanks
Hi,
Welcome to Seven Forum
The calendar is a different story, since Outlook can't export to a .ics file
that Windows Calendar uses.
What I tried... and it seemed to work...
In Outlook (I have version 2003), export to a CSV file.
Went to my calendar on Gmail.com
import the CSV file to Google calendar
export to .ics file (had to use help for these two steps, as it's not
straightforward)
Windows Calendar:
import the .ics file
Hopes that helps
Hi
In Outlook Express is there a way to delete a e-mail without opening it? Can you just look at the message and delete the e-mail without it opening up. I received a virus because I deleted a e-mail and the next e-mail automatically opened which contained a virus. I looked in options but didn't find anything. Any information would be extremely helpful.
Kurt
kurtkampy
First off you do not get a virus from viewing the text in an e-mail message however if you suspect there is an e-mail that needs to be deleted while closed click the view tab up top and then click layout and then remove the check mark in show preview pane. This will prevent the e-mail from opening by just clicking on it and allow you all the time you need to delete it. Remember to use same procedure deleting it from the delete box.
Dave
I keep having a issue with MS Outlook amp Windows Live mail I keep getting asked to enter a security code and other personal info that I don't feel I need to give to MS I initially used a code number sent to an alternate e-mail address Live/Outlook blocked access re-verifications Windows account e-mail & I had to open in order to receive the code to verify my current e-mail account I told MS I didn't want to keep doing this anymore and either stop blocking my account or delete it They still persist with requesting my personal info phone numbers creating alternate e-mail Windows Live/Outlook e-mail account blocked access & re-verifications accounts and passwords etc I'm totally confused I also Windows Live/Outlook e-mail account blocked access & re-verifications have had the same e-mail account for several Windows Live/Outlook e-mail account blocked access & re-verifications years and never had any security issues or problems Personally I think its just a ploy to collect personal info for some use other than to make my account secure or something and find another e-mail service provider that is less intrusive If so any other e-mail provider recommendations Or other solutions to circumvent the annoyingly redundant MS account re-verifications - times a month Thanks Vista-Win
I feel your pain - Gmail is just about as bad.
Drop the "service" and pay a small amount for a different service. I switched to fastmail.fm - price is very low and service has been fantastic.
I dropped the MS account long ago and cleaned out my Gmail so there is nothing to see. Have to keep it in order to update my Android tablet otherwise I would trash it, too.
Regards,
GEWB
I am migrating from an XP SP3 desktop to a Windows 7 64 bit machine. I use Outlook Express extensively on the XP machine, but have loaded Live Mail on the W7 one as the recommended solution.
I have experimented with the Import function in Live Mail using the .dbx files produced by OE held under 'Identities' but find that the Account field for each email (visible in Live Mail when the Account column is enabled) is not being populated in Live Mail. Am I doing something wrong, or is this a bug? I note that any new emails I receive do populate the Account field, and I am confident that the Account information is present in the .dbx files.
I would like to find a workaround for this problem - any ideas folks?
Many thanks
Quote: Originally Posted by runner bean
...the Account field for each email (visible in Live Mail when the Account column is enabled) is not being populated in Live Mail. Am I doing something wrong, or is this a bug?...
I suppose you could call it a bug. It seems to happen whenever you do an import using the "import/export" "wizards". Not just with OE>WLM but also WLM>WLM. (Same with Vista's built-in WM.) It's been too long for me to remember what happened when I last did OE>OE. Keep in mind that wherever an import/export is involved (even with contacts), some fields are lost.
Hi I tried to activate my Administrator account on - Administrator activation account incomplete a Win HP Envy - I did this because I thought it would help Administrator account - incomplete activation me delete some folders files from a local network external hard drive These file were created by a Vista machine that I no longer have I get access denied when I try to delete them I can not change the owner or the permissions on properties gt security The attempt to activate the Administrator account went horribly bad It was partially created with only the recycle bin on the Administrator account - incomplete activation desktop I had to do Ctrl Alt Delete to get back to my regular account I did not capture the error messages - my mistake - and I can't find them in event Viewer I don't know what log to search Activation was by dos cmd Net User Administrator active yes Since it was bad I followed with Net User Administrator active no The administrator account was not completely deactivated Is there a way that I can undo the mess that I made and get the administrator activated correctly Thanks Frank C
Hello Frank,
I'm not sure if you have already read through this tutorial but if not, it will give you a number of alternative ways of activating and deactivating the Admin account. Hopefully one of these other methods will work.
Administrator account - Enable or Disable in Windows 10
Hello. How can I make gmail pst file the default delivery location in place of exchange ost?
We switched away from Exchange (2003) to gmail IMAP. All needed emails and contacts are now in gmail and are synched with the local machines.
I cannot delete the exchange data file in Outlook 2010 "account settings." because it is the "default deliver location." It says to create a new one. How do I do that? Thanks.
Is there a better place to post this?.
We're having difficulty with a large data file of 4 million records in Access 2000. We can't delete records after it has been linked. Also, when opening an unlinked database, it automatically links it.
error: operation not supported by this ISAM.
I hope someone out there has the answer as I have spent many hours trying to work this porblem through.
My outlook 2002 contacts when I transfer to mail merge there is an inconsistency with the details I have entered in the data. Like one will have the Mr and then it will miss a few then maybe decide to add it again there is no pattern happening. So when I attempt to enter say a 300 odd contacts mail merge I have to individually go through and alter and check each one. My outlook contacts data is filled out corectly with the Mr & Mrs (or whatever is applicable). At time it will say Dear Anna (not Dear Ms Cox) then on the next one it could say Dear Mr Williams - whereas all the data is filled out exactly the same. I hope this makes some sense it's driving me mad!!!!
I thought you could set up rules or conditions when you mail merged. So that if a particular field was blank, it would not be included.
I want to install ubuntu into my laptop, but I have one small problem. I need to save content of Windows Mail and transfer it to my desktop to the Outlook Express. I have no idea how to do that.
Outlook has started sending e-mail with attached file that is too large to send. When I right click on the e-mail and click on Delete, nothing happens. | http://winassist.org/thread/2473625/Outlook-2016-cannot-delete-an-incomplete-mail-account-pst-data-file.php | CC-MAIN-2017-30 | refinedweb | 6,824 | 62.82 |
Hey everyone,
So here is the assignment that was given to me:
2d060e66f10d1c03c7a7c9e030b55057.jpg
The assignment is based off of using the if statements and I'm just not familiar with how to start this. The following is how to calculate heart rate and such: Training Heart Rate using the Karvonen Formula
The sample "guide" they showed me if I needed a reference was this:
PHP Code:
/**
* Description for 4.03 Target Zone project
*
* @author (Your Name)
* @version (The Date)
*/
import java.util.Scanner;
public class TargetZone
{
public static void main(String[] args)
{
//Initialize and declare variables
String target = "within";
Scanner in = new Scanner(System.in);
//Prompt user for input
//Calculate heart rate target zone min and max
//Determine if heart rate after exercise is between the min and max
//If the heart rate is below, change the value of target to "below".
//If the heart rate is above, change the value of target to "above".
//Print two output statements
//The first stating the heart rate target zone
//The second stating if the heart rate after exercise was within, above or below
//the target zone. The variable "target" will have a value of within, above or below
} //end main
}//end class TargetZone
How do I even do this assignment?
Thanks,
Disruption | http://www.javaprogrammingforums.com/whats-wrong-my-code/33671-completely-clueless-how-do-assignment.html | CC-MAIN-2014-15 | refinedweb | 211 | 65.46 |
Matlab is one of the popular software used in academics and labs to solve problems in mathematics, engineering and research domain. But matlab being a commercial software it is often not within reach of most of the students and developers. There are some open source and free equivalent of matlab software like octave, scilab and scipy. Here in this article we’re going to learn about scipy. Scipy library is written for python programming language which internally depends on numpy. With scipy you can do equal computations that you used to do with matlb or mathematica.
Scipy Download
You can download scipy from it’s official download section. Depending on your operating system, you have to download both numpy and scipy package for your version of python. If you’re using old version of python then it’s better to upgrade your python version to recent supported scipy version. Please keep in mind that you need numpy package along with scipy on your operating system.
Using Scipy
In order to work with scipy library you need to import it as subpackage. e.g. take a look at code below.
import scipy as sp
Now you need to use the respective calls to scipy library to do your tasks related to maths or any other specific task like charting etc.
You can also download numpy and matplotlib as it helps you to perform some operation related to scipy. So in order to perform all the scientific calculations, you have to download three packages – numpy, scipy and matplotlib. You can also perform scientific calculations using ipython or interactive python.
Matrices Using Scipy and Numpy
from numpy import* a= array([10,20,30,40]) b=array([50,60,70,80]) c=b-a; # subtraction operation, you can also do addition or multiplication print c
Generate Random Number
rn=scipy.randn(10) print rn
2-Dimmensional Array
eye(x,y) – Creates a 2D array size of n x m. Here N= number of 1’s and M= number of elements in 2-dimmensional array.
eye(6,6) # output- 6x6 array with 1 in each row and rest of the elements as 0s.
Help in Scipy
help() method is not useful because it is specific to the python distribution and not to sub packages of python. In order to use scipy help documentation you need to use scipy.info(). In order to get information about any specific math function you need to call it in info(). e.g. scipy.info(“pi”).
You can read more numpy methods here, these are equivalent of matlab/octave. Another source is to get recently updated documentation.
Help and Resources for Scipy
You can get more help on scipy on official documentation page. This page is regularly updated with changes in numpy/scipy. Another place to learn more about scipy is cookbook. You’ll find sample code and usage of scipy in cookbook section. | http://onecore.net/how-to-use-scipy-python-scientific-library.htm | CC-MAIN-2016-30 | refinedweb | 484 | 64.1 |
The union of all files from all check-ins in directory macosx [history]
- Tk.xcode
- Tk.xcodeproj
- Wish.pbproj
- Wish.xcode
- Wish.xcodeproj
- GNUmakefile
- Makefile
- README
- Tk-Common.xcconfig
- Tk-Debug.xcconfig
- Tk-Info.plist
- Tk-Info.plist.in
- Tk-Release.xcconfig
- Tk.icns
- Tk.tiff
- Wish-Common.xcconfig
- Wish-Debug.xcconfig
- Wish-Info.plist
- Wish-Info.plist.in
- Wish-Release.xcconfig
- Wish.icns
- Wish.sdef
- buildTkConfig.tcl
- configure.ac
- tclets.r
- tkAboutDlg.r
- tkMacOSX.h
- tkMacOSXAETE.r
- tkMacOSXAppInit.c
- tkMacOSXApplication.r
- tkMacOSXBitmap.c
- tkMacOSXButton.c
- tkMacOSXCarbonEvents.c
- tkMacOSXClipboard.c
- tkMacOSXColor.c
- tkMacOSXConfig.c
- tkMacOSXConstants.h
- tkMacOSXCursor.c
- tkMacOSXCursors.h
- tkMacOSXCursors.r
- tkMacOSXDebug.c
- tkMacOSXDebug.h
- tkMacOSXDefault.h
- tkMacOSXDialog.c
- tkMacOSXDraw.c
- tkMacOSXEmbed.c
- tkMacOSXEntry.c
- tkMacOSXEvent.c
- tkMacOSXEvent.h
- tkMacOSXFont.c
- tkMacOSXFont.h
- tkMacOSXHLEvents.c
- tkMacOSXImage.c
- tkMacOSXInit.c
- tkMacOSXInt.h
- tkMacOSXKeyEvent.c
- tkMacOSXKeyboard.c
- tkMacOSXKeysyms.h
- tkMacOSXLaunch.c
- tkMacOSXLaunchServices.c
- tkMacOSXLibrary.r
- tkMacOSXMenu.c
- tkMacOSXMenu.r
- tkMacOSXMenubutton.c
- tkMacOSXMenus.c
- tkMacOSXMouseEvent.c
- tkMacOSXNotify.c
- tkMacOSXPort.h
- tkMacOSXPrivate.h
- tkMacOSXRegion.c
- tkMacOSXResource.r
- tkMacOSXScale.c
- tkMacOSXScrlbr.c
- tkMacOSXSend.c
- tkMacOSXServices.c
- tkMacOSXSubwindows.c
- tkMacOSXTest.c
- tkMacOSXUtil.c
- tkMacOSXUtil.h
- tkMacOSXWindowEvent.c
- tkMacOSXWm.c
- tkMacOSXWm.h
- tkMacOSXXCursors.h
- tkMacOSXXCursors.r
- tkMacOSXXStubs.c
- ttkMacOSXTheme.c
- ttkMacOSXTheme.h
Tcl/Tk macOS README ---------------------- This is the README file for the macOS/Darwin version of Tcl/Tk. 1. Where to go for support -------------------------- - The tcl-mac mailing list on sourceforge is the best place to ask questions specific to Tcl & Tk on macOS: OS, see - Please report bugs with Tk on macOS to the tracker: 2. Using Tcl/Tk on macOS --------------------------- - There are two versions of Tk available on macOS: TkAqua using the native aqua widgets and look&feel, and TkX11 using the traditional unix X11 widgets. TkX11 requires an X11 server to be installed, such as XQuartz (available from). TkAqua and TkX11 can be distinguished at runtime via [tk windowingsystem]. - At a minimum, macOS 10.3 is required to run Tcl and TkX11. TkAqua requires macOS 10.6 or later. - Unless weak-linking is used, Tcl/Tk built on macOS 10.x will not run on 10.y with y < x; on the other hand Tcl/Tk built on 10.y will always run on 10.x with y <= x (but without any of the fixes and optimizations that would be available in a binary built on 10.x). Weak-linking is available on OS X 10.2 or later, it additionally allows Tcl/Tk built on 10.x to run on any 10.y with x > y >= z (for a chosen z >= 2). - Wish checks the Resources/Scripts directory in its application bundle for a file called AppMain.tcl, if found it is used as the startup script and the Scripts folder is added to the auto_path. This can be used to emulate the old OS9 TclTk droplets. - If standard input is a special file of zero length (e.g. /dev/null), Wish brings up the Tk console window at startup. This is the case when double clicking Wish in the Finder (or using 'open Wish.app' from the Terminal). - Tcl extensions can be installed in any of: $HOME/Library/Tcl /Library/Tcl $HOME/Library/Frameworks . - The 'deploy' target of macosx/GNUmakefile installs the html manpages into the standard documentation location in the Tcl/Tk frameworks: Tcl.framework/Resources/Documentation/Reference/Tcl Tk.framework/Resources/Documentation/Reference/Tk No nroff manpages are installed by default by the GNUmakefile. - The Tcl and Tk frameworks can be installed in any of the system's standard framework directories: $HOME/Library/Frameworks /Library/Frameworks - ${prefix}/bin/wish8.x is a script that calls a copy of 'Wish' contained in Tk.framework/Resources - if 'Wish' is started from the Finder or via 'open', $argv may contain a "-psn_XXXX" argument. This is the process serial number, you may need to filter it out for cross platform compatibility of your scripts. - the env array is different when Wish is started from the Finder (i.e. via LaunchServices) than when it (or tclsh) is invoked from the Terminal, in particular PATH may not be what you expect. (Wish started by LaunchServices inherits loginwindow's environment variables, which are essentially those set in $HOME/.MacOSX/environment.plist, and are unrelated to those set in your shell). - TkAqua provides access to native OS X images via the Tk native bitmap facility (including any image file readable by NSImage). A native bitmap name is interpreted as follows (in order): - predefined builtin 32x32 icon name (stop, caution, document, etc) - name defined by [tk::mac::iconBitmap] - NSImage named image name - NSImage url string - 4-char OSType of IconServices icon the syntax of [tk::mac::iconBitmap] is as follows: tk::mac::iconBitmap name width height -kind value where -kind This support was added with the Cocoa-based Tk 8.5.7. - TkAqua cursor names are interpred as follows (in order): - standard or platform-specific Tk cursor name (c.f. cursors.n) - @path to any image file readable by NSImage - NSImage named image name Support for the latter two was added with the Cocoa-based Tk 8.5.7. - The standard Tk dialog commands [tk_getOpenFile], [tk_chooseDirectory], [tk_getSaveFile] and [tk_messageBox] all take an additional optional -command parameter on TkAqua. If it is present, the given command prefix is evaluated at the global level when the dialog closes, with the dialog command's result appended (the dialog command itself returning an emtpy result). If the -parent option is also present, the dialog is configured as a modeless (window-modal) sheet attached to the parent window and the dialog command returns immediately. Support for -command was added with the Cocoa-based Tk 8.5.7. - The TkAqua-specific [tk::mac::standardAboutPanel] command brings the standard Cocoa about panel to the front, with all its information filled in from your application bundle files (i.e. standard about panel with no options specified). See Apple Technote TN2179 and the AppKit documentation for -[NSApplication orderFrontStandardAboutPanelWithOptions:] for details on the Info.plist keys and app bundle files used by the about panel. This support was added with the Cocoa-based Tk 8.5.7. - TkAqua has three special menu names that give access to the standard Application, Window and Help menus, see menu.n for details. By default, the platform-specific standard Help menu item "YourApp Help" performs the default Cocoa action of showing the Help Book configured in the application's Info.plist (or displaying an alert if no Help Book is set). This action can be customized by defining a procedure named [tk::mac::ShowHelp]. If present, this procedure is invoked instead by the standard Help menu item. Support for the Window menu and [tk::mac::ShowHelp] was added with the Cocoa-based Tk 8.5.7. - The TkAqua-specific command [tk::unsupported::MacWindowStyle style] is used to get and set macOS-specific toplevel window class and attributes. Note that the window class and many attributes have to be set before the window is first mapped for the change to have any effect. The command has the following syntax: tk::unsupported::MacWindowStyle style window ?class? ?attributes? The 2 argument form returns a list of the current class and attributes for the given window. The 3 argument form sets the class for the given window using the default attributes for that class. The 4 argument form sets the class and the list of attributes for the given window. Note that not all attributes are valid for all window classes. Support for the 3 argument form was added with the Cocoa-based Tk 8.5.7, at the same time support for some legacy Carbon-specific classes and attributes was removed (they are still accepted by the command but no longer have any effect). - Another command available in the tk::unsupported::MacWindowStyle namespace is: tk::unsupported::MacWindowStyle tabbingid window ?newId? which can be used to get or set the tabbingIdentifier for the NSWindow associated with a Tk Window. See section 3 for details. - The command: tk::unsupported::MacWindowStyle appearance window ?newAppearance? is available when Tk is built and run on macOS 10.14 (Mojave) or later. In that case the Ttk widgets all support the "Dark Mode" appearance which was introduced in 10.14. The command accepts the following values for the optional newAppearance option: "aqua", "darkaqua", or "auto". If the appearance is set to aqua or darkaqua then the window will be displayed with the corresponding appearance independent of any preferences settings. If it is set to "auto" the appearance will be determined by the preferences. This command can be used to opt out of Dark Mode on a per-window basis. It may be best to run the "update" command before setting the appearance property, to allow the event loop to run. - To determine the current appearance of a window in macOS 10.14 (Mojave) and higher, one can use the command: tk::unsupported::MacWindowStyle isdark The boolean return value is true if the window is currently displayed with the dark appearance. - If you want to use Remote Debugging with Xcode, you need to set the environment variable XCNOSTDIN to 1 in the Executable editor for Wish. That will cause us to force closing stdin & stdout. Otherwise, given how Xcode launches Wish remotely, they will be left open and then Wish & gdb will fight for stdin. 3. FullScreen, Split View and Tabbed Windows -------------------------------------------- Since the release of OSX 10.6 (Snow Leopard) a steadily expanding sequence of high level window operations have been added to Apple's window manager. These operations are launched by user actions which are handled directly by the window manager; they are not initiated by the application. In some, but not all cases, the application is notified before and after the operations are carried out. In OSX releases up to and including 10.6 there were three buttons with stoplight colors located on the left side of a window's title bar. The function of the green button was to "zoom" or "maximize" the window, i.e. to expand the window so that it fills the entire screen, while preserving the appearance of the window including its title bar. The release of OSX 10.7 (Lion) introduced the "FullScreen" window which not only filled the screen but also hid the window's title bar and the menu bar which normally appears at the top of the screen. These hidden objects would only become visible when the mouse hovered near the top of the screen. FullScreen mode was initiated by pressing a button showing two outward pointing arrows located on the right side of the title bar; it was terminated by pressing a similar button with inward pointing arrows on the right hand side of the menu bar. In OSX 10.10 (Yosemite) the FullScreen button was removed. The green button was repurposed to cause a window to become a FullScreen window. To zoom a window the user had to hold down the option key while pressing the green button. The release of OSX 10.11 added a third function to the green button: to create two half-screen windows with hidden title bars and a hidden menu bar, called Split View windows. If the green button is held down for one second its window expands to fill half of the screen. It can be moved to one side or the other with the mouse. The opposite side shows thumbnail images of other windows. Selecting one of the thumbnails expands its window to fill that half of the screen. The divider between the two windows can be moved to adjust the percentage of the screen occupied by each of the two tiles. In OSX 10.12 (Sierra) Tabbed windows were introduced. These allow an application with multiple windows to display its windows as tabs within a single window frame. Clicking on a tab brings its window into view. Tabs can be rearranged by dragging. Dragging a tab to the desktop turns it into a separate window. Items in the Window menu can be used to cycle through the tabs, move tabbed windows to separate windows, or merge a set of separate windows as tabs in the same window frame. Tk now fully supports all of these high level window operations on any system where the operation exists. The FullScreen and Split View windows are handled automatically with no action required on the part of the programmer. Tabbed windows, on the other hand, require some attention from the programmer. Because many of the operations with tabs are handled through the application's Window menu, it is essential that an application provide a Windows menu to avoid presenting a confusing interface to the user. This cannot be ignored, in part because the systemwide Dock Preferences offers an option to always attempt to open application windows as tabs. An application which does not provide a Window menu will necessarily present a confusing interface to any user who has selected this option. A further complication is that it is not neccessarily appropriate for all of an application's windows to be grouped together as tabs in the same frame. In fact, the Apple guidelines insist that windows which are grouped together as tabs should be similar to each other. The mechanism provided for arranging this was to assign to each NSwindow a tabbingIdentifier, and to require that all windows grouped together as tabs in the same window frame must have the same tabbingIdentifier. A tabbingIdentifier is implemented as an arbitrary string, and a system-generated default tabbingIdentifier is provided to all new windows. Tk provides a means for getting and setting the tabbingIdentifier of the NSWindow underlying a Tk Window. This is handled by the command tk::unsupported::MacWindowStyle tabbingid window ?newId? (This command generates an error if used on OSX 10.11 or earlier, since the tabbingIdentifier does not exist on those systems.) The command returns the tabbingIdentifier which had been assigned to the window prior to execution of the command. If the optional newId argument is omitted, the window's tabbingIdentifier is not changed. Otherwise it is set to the string specified by the argument. Since NSWindows can only be grouped together as tabs if they all have the same tabbingIdentifier, one can prevent a window from becoming a tab by giving it a unique tabbingIdentifier. This is independent of any preferences setting. To ensure that we maintain consistency, changing the tabbingIdentifier of a window which is already displayed as a tab will also cause it to become a separate window. 4. Ttk, Dark Mode and semantic colors --------------------------------------- With the release of OSX 10.14 (Mojave), Apple introduced the DarkAqua appearance. Part of the implementation of the Dark Mode was to make some of the named NSColors have dynamic values. Apple calls these "semantic colors" because the name does not specify a specific color, but rather refers to the context in which the color should be used. Tk now provides the following semantic colors as system colors: systemTextColor, systemTextBackgroundColor, systemSelectedTextColor, systemSelectedTextBackgroundColor, systemControlTextColor, systemDisabledControlTextColor, systemLabelColor, systemLinkColor, and systemControlAccentColor. All of these except the last three were present in OSX 10.0 (and those three are simulated in systems where they do not exist). The change in 10.14 was that the RGB color value of these colors became dynamic, meaning that the color value can change when the application appearance changes. In particular, when a user selects Dark Mode in the system preferences these colors change appearance. For example systemTextColor is dark in Aqua and light in DarkAqua. One additional color, systemSelectedTabTextColor, does not exist in macOS but is used by Tk to match the different colors used for Notebook tab text in different OS versions. The default background and foreground colors of most of the Tk widgets have been set to semantic colors, which means that the widgets will change appearance, and remain usable, when Dark Mode is selected in the system preferences. However, to get a close match to the native Dark Mode style it is recommended to use Ttk widgets when possible. Apple's tab view and GroupBox objects delimit their content by displaying it within a rounded rectangle with a background color that contrasts with the background of the containing object. This means that the background color of a Ttk widget depends on how deeply it is nested inside of other widgets that use contrasting backgrounds. To support this, there are 8 contrasting system colors named systemWindowBackgroundColor, and systemWindowBackgroundColor1 - 7. The systemWindowBackgroundColor is the standard background for a dialog window and the others match the contrasting background colors used in ttk::notebooks and ttk::labelframes which are nested to the corresponding depth. 5. Building Tcl/Tk on macOS ------------------------------ - macOS 10.6 is required to build TkAqua and TkX11. The XCode application provides everything needed to build Tk, but it is not necessary to install the full XCode. It suffices to install the Command Line Tools package, which can be done by running the command: xcode-select --install - Tcl/Tk are most easily built as macOS frameworks via GNUmakefile in tcl/macosx and tk/macosx (see below for details), but can also be built with the standard unix configure and make buildsystem in tcl/unix resp. tk/unix as on any other unix platform (indeed, the GNUmakefiles are just wrappers around the unix buildsystem). The macOS specific configure flags are --enable-aqua, --enable-framework and --disable-corefoundation (which disables CF and notably reverts to the standard select based notifier). Note that --enable-aqua is incompatible with --disable-corefoundation (for both Tcl and Tk configure). - It was once possible to build with the Xcode IDE via the projects in tk/macosx, but this has not been tested recently. Take care to use the project matching your DevTools and OS version: Tk.xcode: for Xcode 3.1 on 10.5 Tk.xcodeproj: for Xcode 3.2 on 10.6 These have the following targets: Tk: calls through to tk/macosx/GNUMakefile, requires a corresponding build of the Tcl target of tcl/macosx/Tcl.xcode. tktest: static build of TkAqua tktest for debugging. tktest-X11: static build of TkX11 tktest for debugging. The following build configurations are available: Debug: debug build for the active architecture, with Fix & Continue enabled. Debug clang: use clang compiler. Debug llvm-gcc: use llvm-gcc compiler. Debug gcc40: use gcc 4.0 compiler. DebugNoGC: disable Objective-C garbage collection. DebugNoFixAndContinue: disable Fix & Continue. DebugUnthreaded: disable threading. DebugNoCF: disable corefoundation (X11 only).k.xcode) resp. 10.6 (Tk.xcodeproj). The Xcode projects refer to the toplevel tcl and tk source directories via the the TCL_SRCROOT and TK_SRCROOT user build settings, by default these are set to the project-relative paths '../../tcl' and '../../tk', if your source directories are named differently, e.g. '../../tcl8.6' and '../../tk8.6', you need to manually change the TCL_SRCROOT and TK_SRCROOT settings by editing your ${USER}.pbxuser file (located inside the Tk.xcodeproj bundle directory) with a text editor. - To enable weak-linking, set the MACOSX_DEPLOYMENT_TARGET environment variable to the minimal OS version the binaries should be able to run on, e.g: export MACOSX_DEPLOYMENT_TARGET=10.6 This requires at least gcc 3.1; with gcc 4 or later, set/add to CFLAGS instead: export CFLAGS="-mmacosx-version-min=10.6" Support for weak-linking was added with 8.4.14/8.5a5. Detailed Instructions for building with macosx/GNUmakefile ---------------------------------------------------------- - Unpack the Tcl and Tk source release archives and place the tcl and tk source trees in a common parent directory. [ If you don't want have the two source trees in one directory, you'll need to ] [ create the following symbolic link for the build to work as setup by default ] [ ln -fs /path_to_tcl/build /path_to_tk/build ] [ (where /path_to_{tcl,tk} is the directory containing the tcl resp. tk tree) ] [ or you can pass an argument of BUILD_DIR=/somewhere to the tcl and tk make. ] - The following instructions assume the Tcl and Tk source trees are named "tcl${ver}" and "tk${ver}" (where ${ver} is a shell variable containing the Tcl/Tk version number, e.g. '8.6'). Setup this shell variable as follows: ver="8 and Tk source trees and build: make -C tcl${ver}/macosx make -C tk${ver}/macosx - Install Tcl and Tk onto the root volume (admin password required): sudo make -C tcl${ver}/macosx install sudo make -C tk${ver}/macosx install if you don't have an admin password, you can install into your home directory instead by passing an INSTALL_ROOT argument to make: make -C tcl${ver}/macosx install INSTALL_ROOT="${HOME}/" make -C tk${ver}/macosx install INSTALL_ROOT="${HOME}/" - The default GNUmakefile targets will build _both_ debug and optimized versions of the Tcl and Tk frameworks with the standard convention of naming the debug library Tcl.framework/Tcl_debug resp. Tk.framework/Tk make -C tk${ver}/macosx deploy sudo make -C tcl${ver}/macosx install-deploy sudo make -C tk${ver}/macosx install-deploy - The GNUmakefile can also build a version of Wish.app that has the Tcl and Tk frameworks embedded in its application package. This allows for standalone deployment of the application with no installation required, e.g. from read-only media. To build & install in this manner, use the 'embedded' variants of the GNUmakefile targets. For example, to build a standalone 'Wish.app' in ./emb/Applications/Utilities: make -C tcl${ver}/macosx embedded make -C tk${ver}/macosx embedded sudo make -C tcl${ver}/macosx install-embedded INSTALL_ROOT=`pwd`/emb/ sudo make -C tk${ver}/macosx install-embedded INSTALL_ROOT=`pwd`/emb/ Notes: * if you've already built standard TclTkAqua, building embedded does not require any new compiling or linking, so you can skip the first two makes. (making relinking unnecessary was added with 8.4.2) * the embedded frameworks include only optimized builds and no documentation. * the standalone Wish has the directory Wish.app/Contents/lib in its auto_path. Thus you can place tcl extensions in this directory (i.e. embed them in the app package) and load them with [package require]. - It is possible to build Tk against an installed Tcl.framework; but you will still need a tcl sourcetree in the location specified in TCL_SRC_DIR in Tcl.framework/tclConfig.sh. Also, linking with Tcl.framework has to work exactly as indicated in TCL_LIB_SPEC in Tcl.framework/tclConfig.sh. If you used non-default install locations for Tcl.framework, specify them as make overrides to the tk/macosx GNUmakefile, e.g. make -C tk${ver}/macosx \ TCL_FRAMEWORK_DIR=$HOME/Library/Frameworks TCLSH_DIR=$HOME/usr/bin sudo make -C tk${ver}/macosx install \ TCL_FRAMEWORK_DIR=$HOME/Library/Frameworks TCLSH_DIR=$HOME/usr/bin The Makefile variables TCL_FRAMEWORK_DIR and TCLSH_DIR were added with Tk 8.4.3. 5. Details regarding the macOS port of Tk. ------------------------------------------- 5.1 About the event loop ~~~~~~~~~~~~~~~~~~~~~~~~ The main program in a typical OSX application looks like this (see\ Reference/ApplicationKit/Classes/NSApplication_Class) void NSApplicationMain(int argc, char *argv[]) { [NSApplication sharedApplication]; [NSBundle loadNibNamed:@"myMain" owner:NSApp]; [NSApp run]; } Here NSApp is a standard global variable, initialized by the OS, which points to an object in a subclass of NSApplication (called TKApplication in the case of the macOS port of Tk). The [NSApp run] method implements the event loop for a typical Mac application. There are three key steps in the run method. First it calls [NSApp finishLaunching], which creates the bouncing application icon and does other mysterious things. Second it creates an NSAutoreleasePool. Third, it starts an event loop which drains the NSAutoreleasePool every time the queue is empty, and replaces the drained pool with a new one. This third step is essential to preventing memory leaks, since the internal methods of Appkit objects all assume that an autorelease pool is in scope and will be drained when the event processing cycle ends. The macOS Tk application does not call the [NSApp run] method at all. Instead it uses the event loop built in to Tk. So the application must take care to replicate the important features of the method ourselves. The way that autorelease pools are handled is discussed in 5.2 below. Here we discuss the event handling itself. The Tcl event loop simply consists of repeated calls to TclDoOneEvent. Each call to TclDoOneEvent begins by collecting all pending events from an "event source", converting them to Tcl events and adding them to the Tcl event queue. For macOS, the event source is the NSApp object, which maintains an event queue even though its run method will never be called to process them. The NSApp provides methods for inspecting the queue and removing events from it as well as the [NSApp sendevent] which sends an event to all of the application's NSWindows which can then send it to subwindows, etc. The event collection process consists of first calling a platform specific SetupProc and then a platform specific CheckProc. In the macOS port, these are named TkMacOSXEventsSetupProc and TkMacOSXEventsCheckProc. It is important to understand that the Apple window manager does not have the concept of an expose event. Their replacement for an expose event is to have the window manager call the [NSView drawRect] method in any situation where an expose event for that NSView would be generated in X11. The [NSView drawRect] method is a no-op which is expected to be overridden by any application. In the case of Tcl, the replacement [NSView drawRect] method creates a Tcl expose event for each dirty rectangle of the NSView, and then adds the expose event to the Tcl queue. 5.2 Autorelease pools ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In order to carry out the job of managing autorelease pools, which would normally be handled by the [NSApp run] method, a private NSAutoreleasePool* property is added to the TkApplication subclass of NSApplication. The TkpInit function calls [NSApp _setup] which initializes this property by creating an NSAutoreleasePool prior to calling [NSApp finishLaunching]. This mimics the behavior of the [NSApp run] method, which calls [NSApp finishLaunching] just before starting the event loop. Since the CheckProc function gets called for every Tk event, it is an appropriate place to drain the main NSAutoreleasePool and replace it with a new pool. This is done by calling the method [NSApp _resetAutoreleasePool], where _resetAutoreleasePool is a method which we define for the subclass. Unfortunately, by itself this is not sufficient for safe memory managememt because, as was made painfully evident with the release of OS X 10.13, it is possible for calls to TclDoOneEvent, and hence to CheckProc, to be nested. Draining the autorelease pool in a nested call leads to crashes as objects in use by the outer call can get freed by the inner call and then reused later. One particular situation where this happens is when a modal dialogue gets posted by a Tk Application. To address this, the NSApp object also implements a semaphore to prevent draining the autorelease pool in nested calls to CheckProc. One additional minor caveat for developers is that there are several steps of the Tk initialization which precede the call to TkpInit. Notably, the font package is initialized first. Since there is no NSAutoreleasePool in scope prior to calling TkpInit, the functions called in these preliminary stages need to create and drain their own NSAutoreleasePools whenever they call methods of Appkit objects (e.g. NSFont). 5.3 Clipping regions and "ghost windows" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Another unusual aspect of the macOS port is its use of clipping regions. It was part of Daniel Steffen's original design that the TkWindowPrivate struct maintains three HIShapeRef regions, named visRgn, aboveVisRgn and drawRgn. These regions are used as clipping masks whenever drawing into an NSView. The visRgn is the bounding box of the window with a rectangle removed for each subwindow and for each sibling window at a higher stacking level. The drawRgn is the intersection of the visRgn with the clipping rectangle of the window. (Normally, the clipping rectangle is the same as the bounding rectangle, but drawing can be clipped to a smaller rectangle by calling TkpClipDrawableToRect.) The aboveVisRgn is the intersection of the window's bounding rectangle with the bounding rectangle of the parent window. Much of the code in tkMacOSXSubwindows.c is devoted to rebuilding these clipping regions whenever something changes in the layout of the windows. This turns out to be a tricky thing to do and it is extremely prone to errors which can be difficult to trace. It is not entirely clear what the original reason for using these clipping regions was. But one benefit is that if they are correctly maintained then it allows windows to be drawn in any order. You do not have to draw them in the order of the window hierarchy. Each window can draw its entire rectangle through its own mask and never have to worry about drawing in the wrong place. It is likely that the need for using clipping regions arose because, as Apple explicitly states in the documentation for [NSView subviews], "The order of the subviews may be considered as being back-to-front, but this does not imply invalidation and drawing behavior." In the early versions of the macOS port, buttons were implemented as subviews of class TkButton. This probably exacerbated the likelihood that Tk windows would need to be drawn in arbitrary order. The most obvious side effect caused by not maintaining the clipping regions is the appearance of so-called "ghost windows". A common situation where these may arise is when a window containing buttons is being scrolled. A user may see two images of the same button on the screen, one in the pre-scroll location and one in the post-scroll location. To see how these 'ghost windows' can arise, think about what happens if the clipping regions are not maintained correctly. A window might have a rectangle missing from its clipping region because that rectangle is the bounding rectangle for a subwindow, say a button. The parent should not draw in the missing rectangle since doing so would trash the button. The button is responsible for drawing there. Now imagine that the button gets moved, say by a scroll, but the missing rectangle in the parent's clipping region does not get moved correctly, or it gets moved later on, after the parent has redrawn itself. The parent would still not be allowed to draw in the old rectangle, so the user would continue to see the image of the button in its old location, as well as another image in the new location. This is a prototypical example of a "ghost window". Anytime you see a "ghost window", you should suspect problems with the updates to the clipping region visRgn. It is natural to look for timing issues, race conditions, or other "event loop problems". But in fact, the whole design of the code is to make those timing issues irrelevant. As long as the clipping regions are correctly maintained the timing does not matter. And if they are not correctly maintained then you will see "ghost windows". It is worth including a detailed description of one specific place where the failure to correctly maintain clipping regions caused "ghost window" artifacts that plagued the macOS port for years. These occurred when scrolling a Text widget which contained embedded subwindows. It involved some specific differences between the low-level behavior of Apple's window manager versus those of the other platforms, and the fix ultimately required changes in the generic Tk implementation (documented in the comments in the DisplayText function). The Text widget attempts to improve perfomance when scrolling by minimizing the number of text lines which need to be redisplayed. It does this by calling the platform-specific TkScrollWindow function which uses a low-level routine to map one rectangle of the window to another. The TkScrollWindow function returns a damage region which is then used by the Text widget's DisplayText function to determine which text lines need to be redrawn. On the unix and win platforms, this damage region includes bounding rectangles for all embedded windows inside the Text widget. The way that this works is system dependent. On unix, the low level scrolling is done by XCopyRegion, which generates a GraphicsExpose event for each embedded window. These GraphicsExposed events are processsed within TkScrollWindow, using a special handler which adds the bounding rectangle of each subwindow to the damage region. On the win platform the damage region is built by the low level function ScrollWindowEx, and it also includes bounding rectangles for all embedded windows. This is possible because on X11 and Windows every Tk widget is also known to the window manager as a window. The situation is different on macOS. The underlying object for a top level window on macOS is the NSView. However, Apple explicitly warns in its documentation that performance degradation occurs when an NSView has more than about 100 subviews. A Text widget with thousands of lines of text could easily contain more than 100 embedded windows. In fact, while the original Cocoa port of Tk did use the NSButton object, which is derived from NSView, as the basis for its Tk Buttons, that was changed in order to improve performance. Moreover, the low level routine used for scrolling on macOS, namely [NSView scrollrect:by], does not provide any damage information. So TkScrollWindow needs to work differently on macOS. Since it would be inefficient to iterate through all embedded windows in a Text widget, looking for those which meet the scrolling area, the damage region constructed by TkScrollWindow contains only the difference between the source and destination rectangles for the scrolling. The embedded windows are redrawn within the DisplayText function by some conditional code which is only used for macOS. 6.0 Virtual events on 10.14 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 10.14 supports system appearance changes, and has added a "Dark Mode" that casts all window frames and menus as black. Tk 8.6.9 has added two virtual events, <<LightAqua>> and <<DarkAqua>>, to allow you to update your Tk app's appearance when the system appearance changes. Just bind your appearance-updating code to these virtual events and you will see it triggered when the system appearance toggles between dark and light. 7.0 Mac Services ~~~~~~~~~~~~~~~~~~~~~~~~~~~ With 8.6.10, Tk supports the Mac's NSServices API, documented at and in TIP 536 and Tk's man page. Tk presents a simple, straightforward API to implement the Services functionality. The Tk implementation of the NSServices API is intended for standalone applications, such as one wrapped by the standalone version of Wish and re-named into a different application. In particular such an application would specify its own unique CFBundleIdentifier in its Info.plist file. During development, however, if Wish itself is being used as the receiver, it may be necessary to take some care to ensure that the correct version of Wish.app is available as a receiver of NSServices data. When one macOS app uses NSServices to send data to another app that is not running, LaunchServices will launch the receiver. LaunchServices assumes that the CFBundleIdentifier uniquely identifies an app among all of the apps installed on a system. But this may not be the case for Wish.app if, for example, you have compiled Tk from source at some time in the past. In that case the Tk build directory will contain its own copy of Wish.app that will be visible to LaunchServices. It may be necessary when testing your app to take some steps to ensure that LaunchServices is launching the correct Wish.app. Instructions for doing this are provided below. The command line tool which manages the LaunchServices database has an amazingly unwieldy path name. So, first, run this command: alias lsregister='/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister' Then you can reset the LaunchServices database like this: $ lsregister -kill $ lsregister -seed To find out which versions of Wish.app have been located by LaunchServices, run: $ lsregister -dump | grep path | grep Wish If more than one version of Wish is showing up in this list, eliminate all of the unintended targets by running lsregister -u /path/to/bad/Wish.app Continue this until only the correct version of Wish shows up in the list. | https://core.tcl-lang.org/tk/dir?name=macosx | CC-MAIN-2020-29 | refinedweb | 6,026 | 54.02 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.